1/*! For license information please see 1681.c70856ea18ce7d4482d7.js.LICENSE.txt */ 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"1.0.5831+d662378"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="45188df7-d6d2-4730-98f2-bacec4fd0ff5",e._sentryDebugIdIdentifier="sentry-dbid-45188df7-d6d2-4730-98f2-bacec4fd0ff5")}catch(e){}}(),(self.webpackChunkpayfac_merchant=self.webpackChunkpayfac_merchant||[]).push([[1681],{52813(e,n,r){r.d(n,{A:()=>t});r(96540);const t=r.p+"6eef1997f7f49b317daca1d5d200de4b.svg"},91681(e,n,r){r.r(n),r.d(n,{default:()=>an});var t=r(3606),o=r(85072),i=r.n(o),a=r(97825),l=r.n(a),s=r(77659),u=r.n(s),c=r(55056),f=r.n(c),d=r(10540),p=r.n(d),A=r(41113),m=r.n(A),y=r(46830),b={};b.styleTagTransform=m(),b.setAttributes=f(),b.insert=u().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=p();i()(y.A,b);y.A&&y.A.locals&&y.A.locals;var h=r(18492),g=r(52813),v=r(7812),C=r(66926),w=r(27472),x=r(96540),_=r(35079),j={};j.styleTagTransform=m(),j.setAttributes=f(),j.insert=u().bind(null,"head"),j.domAPI=l(),j.insertStyleElement=p();i()(_.A,j);_.A&&_.A.locals&&_.A.locals;var k=r(92757),$={};$.styleTagTransform=m(),$.setAttributes=f(),$.insert=u().bind(null,"head"),$.domAPI=l(),$.insertStyleElement=p();i()(k.A,$);k.A&&k.A.locals&&k.A.locals;var q=r(15037),O=r(30595),I=r(74848);function B(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return S(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r<n;r++)t[r]=e[r];return t}var T=function(e){var n,r=e.id,t=e.choices,o=e.form,i=e.questionGroup,a=e.setFormValue,l=(0,h.B)().i18n;function s(e){a(i.surveyType,r,null,null,[e])}return(0,I.jsx)(I.Fragment,{children:null===(n=B(null!=t?t:[]))||void 0===n?void 0:n.sort((function(e,n){return e.ordering===n.ordering?0:null===e.ordering||void 0===e.ordering?1:null===n.ordering||void 0===n.ordering||e.ordering<n.ordering?-1:1})).map((function(e){var n,t=null===(n=o.find((function(n){return n.questionId===r&&n.surveyType===i.surveyType&&n.choiceId===e.id})))||void 0===n?void 0:n.choiceId;return(0,I.jsx)(q.A,{label:(0,O.xd)(l.resolvedLanguage,e.caption,e.language1Caption),name:"group_".concat(e.questionId),value:e.id,checked:e.id===t,onChange:s,className:"question__radio-list-item"},"question__radio-list_".concat(e.id))}))})},E=r(35027);function N(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return P(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r<n;r++)t[r]=e[r];return t}var D=function(e){var n,r=e.id,t=e.choices,o=e.form,i=e.questionGroup,a=e.setFormValue,l=(0,h.B)().i18n;function s(e,n){var t=o.filter((function(e){return e.questionId===r&&e.surveyType===i.surveyType})).filter((function(e){return void 0!==e.choiceId})).map((function(e){return e.choiceId}));n?t.push(+e):t=t.filter((function(n){return n!==+e})),a(i.surveyType,r,null,null,t)}return(0,I.jsx)(I.Fragment,{children:null===(n=N(null!=t?t:[]))||void 0===n?void 0:n.sort((function(e,n){return e.ordering===n.ordering?0:null===e.ordering?1:null===n.ordering||e.ordering<n.ordering?-1:1})).map((function(e){var n,t=null===(n=o.find((function(n){return n.questionId===r&&n.surveyType===i.surveyType&&n.choiceId===e.id})))||void 0===n?void 0:n.choiceId;return(0,I.jsx)(E.A,{id:e.id.toString(),checked:e.id===t,onChange:s,label:(0,O.xd)(l.resolvedLanguage,e.caption,e.language1Caption),labelBefore:!1},"question__checkbox-list_".concat(e.id))}))})},G=r(94671);function R(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return F(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r<n;r++)t[r]=e[r];return t}var L=function(e){var n,r,t=e.id,o=e.choices,i=e.form,a=e.questionGroup,l=e.setFormValue,s=(0,h.B)().i18n;return(0,I.jsx)(G.A,{options:null!==(n=null===(r=R(null!=o?o:[]))||void 0===r||null===(r=r.sort((function(e,n){return e.ordering===n.ordering?0:null===e.ordering?1:null===n.ordering||e.ordering<n.ordering?-1:1})))||void 0===r?void 0:r.map((function(e){var n;return{value:e.id,label:(0,O.xd)(s.resolvedLanguage,e.caption,e.language1Caption),selected:null!==(n=i.some((function(n){return n.questionId===e.questionId&&n.choiceId===e.id})))&&void 0!==n&&n}})))&&void 0!==n?n:[],onChange:function(e){l(a.surveyType,t,null,null,[+e.value])}})},M=r(14430),z=r(8391),U=function(e){var n,r,t,o,i=e.id,a=e.caption,l=e.form,s=e.questionGroup,u=e.setFormValue;function c(e){u(s.surveyType,i,e.target.value,null)}return null!=a&&a.startsWith("Vinsamlegast tilgreindu alla aðila sem hafa heimild")?(0,I.jsx)(M.A,{name:i.toString(),rows:5,value:null!==(t=null===(o=l.find((function(e){return e.questionId===i&&e.surveyType===s.surveyType})))||void 0===o?void 0:o.textValue)&&void 0!==t?t:"",onChange:c}):(0,I.jsx)(z.A,{type:"text",name:i.toString(),autocomplete:"off",onChange:c,value:null!==(n=null===(r=l.find((function(e){return e.questionId===i&&e.surveyType===s.surveyType})))||void 0===r?void 0:r.textValue)&&void 0!==n?n:""})},J=r(32485),Q=r.n(J),V=function(e){return e.BOARD_MEMBER="BOARD_MEMBER",e.CHAIRMAN_OF_THE_BOARD="CHAIRMAN_OF_THE_BOARD",e.COMANAGER="COMANAGER",e.CEO="CEO",e.POWER_OF_ATTORNEY="POWER_OF_ATTORNEY",e.OTHER="OTHER",e}({}),W=function(e){return e.Textbox="Textbox",e.RadioList="RadioList",e.CheckboxList="CheckboxList",e.RadioMatrix="RadioMatrix",e.CheckboxMatrix="CheckboxMatrix",e.DropDown="DropDown",e.CountryRa
2dioList="CountryRadioList",e.Hidden="Hidden",e.LegalBinder="LegalBinder",e.BeneficialOwner="BeneficialOwner",e}({}),Y=r(9796);function H(e){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(e)}function K(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||X(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;s=!1}else for(;!(s=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,n)||X(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,n){if(e){if("string"==typeof e)return ee(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ee(e,n):void 0}}function ee(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r<n;r++)t[r]=e[r];return t}function ne(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function re(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ne(Object(r),!0).forEach((function(n){te(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function te(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=H(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,n||"default");if("object"!=H(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==H(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var oe=function(e){var n,r,t=e.id,o=e.previousAnswers,i=e.questionGroup,a=e.setFormValue,l=e.errors,s=(0,h.B)().t,u=null!==(n=null===(r=o.find((function(e){return e.questionId===t&&e.surveyType===i.surveyType})))||void 0===r||null===(r=r.relevantPersons)||void 0===r?void 0:r.map((function(e){return re({id:(0,O.GD)()},e)})))&&void 0!==n?n:[],c=Z((0,x.useState)(u),2),f=c[0],d=c[1];function p(e,n,r){var o=f.map((function(t){return t.id===n?re(re({},t),{},te({},r,e)):t}));d(o);var l=o.map((function(e){return{fullName:e.fullName,ssn:e.ssn,kind:e.kind,shares:e.shares,phone:e.phone}}));a(i.surveyType,t,null,null,void 0,l)}return(0,x.useEffect)((function(){a(i.surveyType,t,null,null,void 0,f)}),[]),(0,I.jsxs)(I.Fragment,{children:[f.map((function(e,n){var r,o=null==l?void 0:l.filter((function(e){return e.index===n}));return(0,I.jsxs)("div",{className:Q()("question__person--box",{"question__person--box-invalid":null==o?void 0:o.length}),children:[(0,I.jsx)("div",{className:"question__person--box-title",children:(0,I.jsx)(C.A,{handleClick:function(){return function(e){var n=f.filter((function(n){return n.id!==e}));d(n);var r=n.map((function(e){return{fullName:e.fullName,ssn:e.ssn,kind:e.kind,shares:e.shares,phone:e.phone}}));a(i.surveyType,t,null,null,void 0,0===r.length?null:r)}(e.id)},styleType:"text",size:"small",text:"",className:"question__person--box-close",leftIcon:(0,I.jsx)(Y.A,{})})}),(0,I.jsxs)("div",{children:[(0,I.jsx)(z.A,{type:"text",name:"fullName",label:"".concat(s(v.t.kycSurvey.benef
2icialOwner.fullName)),autocomplete:"off",onChange:function(n){return p(n.target.value,e.id,"fullName")},value:e.fullName}),(null==o?void 0:o.find((function(e){return"fullName"===e.field})))&&(0,I.jsx)("p",{className:"question__error",children:"".concat(s(v.t.kycSurvey.reviewAnswer))})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)(z.A,{type:"text",name:"ssn",label:"".concat(s(v.t.kycSurvey.beneficialOwner.ssn)),autocomplete:"off",onChange:function(n){return p(n.target.value.replace(/\D/g,""),e.id,"ssn")},value:e.ssn.length>6?e.ssn.replace(/(\d{6})/,"$1-"):e.ssn,maxLength:11,minLength:11}),(null==o?void 0:o.find((function(e){return"ssn"===e.field})))&&(0,I.jsx)("p",{className:"question__error",children:"".concat(s(v.t.kycSurvey.reviewAnswer))})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)(z.A,{type:"number",name:"shares",label:"".concat(s(v.t.kycSurvey.beneficialOwner.shares)),autocomplete:"off",onChange:function(n){return p(n.target.value,e.id,"shares")},value:e.shares}),(null==o?void 0:o.find((function(e){return"shares"===e.field})))&&(0,I.jsx)("p",{className:"question__error",children:"".concat(s(v.t.kycSurvey.reviewAnswer))})]}),(0,I.jsxs)("div",{children:[(0,I.jsxs)("div",{className:"app-kyc-survey__form-row-wrapper",children:[(0,I.jsx)("div",{className:"app-kyc-survey__form-row__prefix",children:"+354"}),(0,I.jsx)(z.A,{className:"app-kyc-survey__form-row__form-control",type:"text",name:"phone",label:"".concat(s(v.t.kycSurvey.beneficialOwner.phone)),autocomplete:"off",onChange:function(n){return p(n.target.value.replace(/\D/g,""),e.id,"phone")},value:null!==(r=e.phone)&&void 0!==r?r:void 0,minLength:7,maxLength:7})]}),(null==o?void 0:o.find((function(e){return"phone"===e.field})))&&(0,I.jsx)("p",{className:"question__error",children:"".concat(s(v.t.kycSurvey.reviewAnswer))})]})]},e.id)})),(0,I.jsx)(C.A,{handleClick:function(){d([].concat(K(f),[{id:(0,O.GD)(),fullName:"",ssn:"",kind:"BENEFICIAL_OWNER",shares:0,phone:null}]))},text:"".concat(s(v.t.kycSurvey.beneficialOwner.addPerson)),size:"medium",className:"question__person--add-button",styleType:"line"})]})};function ie(e){return ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie(e)}function ae(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||se(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;s=!1}else for(;!(s=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,n)||se(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,n){if(e){if("string"==typeof e)return ue(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ue(e,n):void 0}}function ue(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r<n;r++)t[r]=e[r];return t}function ce(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function fe(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ce(Object(r),!0).forEach((function(n){de(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEac
2h((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function de(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=ie(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,n||"default");if("object"!=ie(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==ie(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var pe=function(e){var n,r,t=e.id,o=e.previousAnswers,i=e.questionGroup,a=e.setFormValue,l=e.errors,s=(0,h.B)().t,u=[{id:V.BOARD_MEMBER,name:s(v.t.kycSurvey.legalBinder.positions.boardMember)},{id:V.CEO,name:s(v.t.kycSurvey.legalBinder.positions.ceo)},{id:V.CHAIRMAN_OF_THE_BOARD,name:s(v.t.kycSurvey.legalBinder.positions.chairmanOfTheBoard)},{id:V.COMANAGER,name:s(v.t.kycSurvey.legalBinder.positions.comanager)},{id:V.OTHER,name:s(v.t.kycSurvey.legalBinder.positions.other)},{id:V.POWER_OF_ATTORNEY,name:s(v.t.kycSurvey.legalBinder.positions.powerOfAttorney)}],c=null!==(n=null===(r=o.find((function(e){return e.questionId===t&&e.surveyType===i.surveyType})))||void 0===r||null===(r=r.relevantPersons)||void 0===r?void 0:r.map((function(e){return fe({id:(0,O.GD)()},e)})))&&void 0!==n?n:[],f=le((0,x.useState)(c),2),d=f[0],p=f[1];function A(e,n,r){m(e,n,r)}function m(e,n,r){var o=d.map((function(t){return t.id===n?fe(fe({},t),{},de({},r,e)):t}));p(o);var l=o.map((function(e){return{fullName:e.fullName,ssn:e.ssn,kind:e.kind,position:e.position,phone:e.phone}}));a(i.surveyType,t,null,null,void 0,l)}return(0,x.useEffect)((function(){a(i.surveyType,t,null,null,void 0,d)}),[]),(0,I.jsxs)(I.Fragment,{children:[d.map((function(e,n){var r,o=null==l?void 0:l.filter((function(e){return e.index===n}));return(0,I.jsxs)("div",{className:Q()("question__person--box",{"question__person--box-invalid":null==o?void 0:o.length}),children:[(0,I.jsx)("div",{className:"question__person--box-title",children:(0,I.jsx)(C.A,{handleClick:function(){return function(e){var n=d.filter((function(n){return n.id!==e}));p(n);var r=n.map((function(e){return{fullName:e.fullName,ssn:e.ssn,kind:e.kind,position:e.position,phone:e.phone}}));a(i.surveyType,t,null,null,void 0,0===r.length?null:r)}(e.id)},styleType:"text",size:"small",text:"",className:"question__person--box-close",leftIcon:(0,I.jsx)(Y.A,{})})}),(0,I.jsxs)("div",{children:[(0,I.jsx)(z.A,{type:"text",name:"fullName",label:"".concat(s(v.t.kycSurvey.legalBinder.fullName)),autocomplete:"off",onChange:function(n){return A(n.target.value,e.id,"fullName")},value:e.fullName}),(null==o?void 0:o.find((function(e){return"fullName"===e.field})))&&(0,I.jsx)("p",{className:"question__error",children:"".concat(s(v.t.kycSurvey.reviewAnswer))})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)(z.A,{type:"text",name:"ssn",label:"".concat(s(v.t.kycSurvey.legalBinder.ssn)),autocomplete:"off",onChange:function(n){return A(n.target.value.replace(/\D/g,""),e.id,"ssn")},value:e.ssn.length>6?e.ssn.replace(/(\d{6})/,"$1-"):e.ssn,maxLength:11,minLength:11}),(null==o?void 0:o.find((function(e){return"ssn"===e.field})))&&(0,I.jsx)("p",{className:"question__error",children:"".concat(s(v.t.kycSurvey.reviewAnswer))})]}),(0,I.jsx)(G.A,{label:"".concat(s(v.t.kycSurvey.legalBinder.position)),options:u.map((function(n){return{value:n.id,label:n.name,selected:n.id===e.position}})),onChange:function(n){return r=n,t=e.id,void m(r.value,t,"position");var r,t}}),(0,I.jsxs)("div",{children:[(0,I.jsxs)("div",{className:"app-kyc-survey__form-row-wrapper",children:[(0,I.jsx)("div",{className:"app-kyc-survey__form-row__prefix",children:"+354"}),(0,I.jsx)(z.A,{className:"app-kyc-survey__form-row__form-control",type:"text",name:"phone",label:"".concat(s(v.t.kycSurvey.legalBinder.phone)),autocomplete:"off",onChange:function(n){return A(n.target.value.replace(/\D/g,""),e.id,"phone")},value:null!==(r=e.phone)&&void 0!==r?r:void 0,minLength:7,maxLength:7})]}),(null==o?void 0:o.find((function(e){return"phone"===e.field})))&&(0,I.jsx)("p",{className:"question__error",children:"".concat(s(v.t.kycSurvey.reviewAnswer))})]})]},e.id)})),(0,I.jsx)(C.A,{handleClick:function(){p([].concat(ae(d),[{id:(0,O.GD)(),fullName:"",ssn:"",kind:"LEGAL_BINDER",position:V.BOARD_MEMBER,phone:""}]))},text:"".concat(s(v.t.kycSurvey.legalBinder.addPerson)),size:"medium",className:"question__person--add-button",styleType:"line"})]})};function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}function me(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function ye(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
2n%2?me(Object(r),!0).forEach((function(n){be(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function be(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=Ae(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,n||"default");if("object"!=Ae(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==Ae(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var he=function e(n){var r=(0,h.B)(),t=r.i18n,o=r.t;function i(e,r,t,o,i,a){var l=n.form.filter((function(n){return!(n.questionId===r&&n.surveyType===e)}));n.dependentQuestions&&n.dependentQuestions.forEach((function(e){e.dependencyChoiceIds.filter((function(e){return null==i?void 0:i.includes(e)})).length>0||(l=l.filter((function(n){return!(n.questionId===e.id)})))})),i&&i.forEach((function(n){l.push({surveyType:e,questionId:r,choiceId:n,textValue:null,tagName:o,relevantPersons:null})})),t&&l.push({surveyType:e,questionId:r,choiceId:null,textValue:t,tagName:o,relevantPersons:null}),a&&l.push({surveyType:e,questionId:r,choiceId:null,textValue:null,tagName:o,relevantPersons:a}),n.setAnswers(l)}var a=n.errors.some((function(e){return e.questionId===n.id&&(e.questionType===W.RadioList||e.questionType===W.CheckboxList||e.questionType===W.DropDown||e.questionType===W.CountryRadioList||e.questionType===W.Textbox||e.questionType===W.CheckboxMatrix||e.questionType===W.LegalBinder&&!e.index&&!e.field||e.questionType===W.BeneficialOwner&&!e.index&&!e.field)})),l=n.errors.filter((function(e){return e.questionId===n.id&&e.questionType===W.BeneficialOwner})),s=n.errors.filter((function(e){return e.questionId===n.id&&e.questionType===W.LegalBinder}));return(0,I.jsxs)("div",{className:"question",children:[(0,I.jsx)("div",{className:Q()("question-title",{"question-title-error":a}),children:(0,O.xd)(t.resolvedLanguage,n.caption,n.language1Caption)}),(0,I.jsx)("div",{className:"question-sub-title",children:(0,O.xd)(t.resolvedLanguage,n.description,n.language1Description)}),n.questionType===W.RadioList&&(0,I.jsx)("div",{className:"question__radio-list",children:(0,I.jsx)(T,ye(ye({},n),{},{setFormValue:i}))}),n.questionType===W.CheckboxList&&(0,I.jsx)("div",{className:"question__checkbox-list",children:(0,I.jsx)(D,ye(ye({},n),{},{setFormValue:i}))}),(n.questionType===W.DropDown||n.questionType===W.CountryRadioList)&&(0,I.jsx)("div",{className:"question__dropdown",children:(0,I.jsx)(L,ye(ye({},n),{},{setFormValue:i}))}),n.questionType===W.Textbox&&(0,I.jsx)("div",{className:"question__textbox",children:(0,I.jsx)(U,ye(ye({},n),{},{setFormValue:i}))}),n.questionType===W.BeneficialOwner&&(0,I.jsx)("div",{className:"question__person",children:(0,I.jsx)(oe,ye(ye({},n),{},{setFormValue:i,errors:l}))}),n.questionType===W.CheckboxMatrix&&(0,I.jsx)("div",{className:"question__textbox",children:n.questionType}),n.questionType===W.LegalBinder&&(0,I.jsx)("div",{className:"question__person",children:(0,I.jsx)(pe,ye(ye({},n),{},{setFormValue:i,errors:s}))}),a&&(0,I.jsx)("div",{className:"question__error",children:"".concat(o(v.t.kycSurvey.fieldError))}),n.dependentQuestions&&(0,I.jsx)(I.Fragment,{children:n.dependentQuestions.map((function(r){var t=n.form.filter((function(e){return e.questionId===r.dependsOnQuestionId})).map((function(e){return e.choiceId}));return r.dependencyChoiceIds.filter((function(e){return t.includes(e)})).length>0?(0,I.jsx)(e,ye(ye({},r),{},{dependentQuestions:n.questionGroup.questions.filter((function(e){return e.dependsOnQuestionId===r.id})),questionGroup:n.questionGroup,form:n.form,setAnswers:n.setAnswers,errors:n.errors,previousAnswers:n.previousAnswers}),"question_".concat(r.id)):null}))})]})};function ge(e){return ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ge(e)}function ve(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function Ce(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
2n%2?ve(Object(r),!0).forEach((function(n){we(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function we(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=ge(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,n||"default");if("object"!=ge(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==ge(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function xe(e){return function(e){if(Array.isArray(e))return _e(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return _e(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_e(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r<n;r++)t[r]=e[r];return t}var je=function(e){var n=(0,h.B)().i18n;return(0,I.jsxs)("div",{className:"questionare-group",children:[(0,I.jsx)("div",{className:"questionare-group-title",children:(0,O.xd)(n.resolvedLanguage,e.caption,e.language1Caption)}),xe(e.questions).sort((function(e,n){return e.ordering===n.ordering?0:null===e.ordering||void 0===e.ordering?1:null===n.ordering||void 0===n.ordering||e.ordering<n.ordering?-1:1})).filter((function(e){return null===e.dependsOnQuestionId})).map((function(n){return(0,I.jsx)(he,Ce(Ce({},n),{},{dependentQuestions:e.questions.filter((function(e){return e.dependsOnQuestionId===n.id})),questionGroup:e,form:e.form,setAnswers:e.setAnswers,errors:e.errors,previousAnswers:e.previousAnswers}),"question_".concat(n.id))}))]})};function ke(e){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ke(e)}function $e(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function qe(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?$e(Object(r),!0).forEach((function(n){Oe(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$e(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Oe(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=ke(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,n||"default");if("object"!=ke(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==ke(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Ie(e){return function(e){if(Array.isArray(e))return Be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return Be(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Be(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r<n;r++)t[r]=e[r];return t}var Se=function(e){return(0,I.jsx)(I.Fragment,{children:Ie(e.questionGroups).sort((function(e,n){return e.ordering===n.ordering?0:null===e.ordering||void 0===e.ordering?1:null===n.ordering||void 0===n.ordering||e.ordering<n.ordering?-1:1})).map((function(n){return(0,I.jsx)(je,qe(qe({},n),{},{form:e.form,setAnswers:e.setAnswers,errors:e.errors,previousAnswers:e.previousAnswers}),"questionare-group_".concat(n.id))}))})},Te=r(70255),Ee=function(){return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"questionare-group",children:[(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"questionare-group-title",children:(0,I.jsx)(Te.A,{width:300})}),(0,I.jsx)(Te.A,{width:500}),(0,I.jsx)(Te.A,{width:80})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"questionare-group-title",children:(0,I.jsx)(Te.A,{width:300})}),(0,I.jsx)(Te.A,{width:500}),(0,I.jsx)(Te.A,{width:80})]})]}),(0,I.jsxs)("div",{className:"questionare-group",children:[(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"questionare-group-title",children:(0,I.jsx)(Te.A,{width:300})}),(0,I.jsx)(Te.A,{width:500}),(0,I.jsx)(Te.A,{width:80})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"questionare-group-title",children:(0,I.jsx)(Te.A,{width:300})}),(0,I.jsx)(Te.A,{width:500}),(0,I.jsx)(Te.A,{width:80})]})]}),(0,I.jsxs)("div",{className:"questionare-group",children:[(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"questionare-group-title",children:(0,I.jsx)(Te.A,{width:300})}),(0,I.jsx)(Te.A,{width:500}),(0,I.jsx)(Te.A,{width:80})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"questionare-group-title",children:(0,I.jsx)(Te.A,{width:300})}),(0,I.jsx)(Te.A,{width:500}),(0,I.jsx)(Te.A,{width:80})]})]})]})},Ne=r(62547),Pe=r(13561),De=r(8365),Ge=r(83783),Re=r(2106),Fe=r(61671),Le=r(83741);function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}function ze(){"use strict";var e=Ye(),n=e.m(ze),r=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function t(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===r||"GeneratorFunction"===(n.displayName||n.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var n,r;return function(t){n||(n={stop:function(){return r(t.a,2)},catch:function(){return t.v},abrupt:function(e,n){return r(t.a,o[e],n)},delegateYield:function(e,o,i){return n.resultName=o,r(t.d,Ue(e),i)},finish:function(e){return r(t.f,e)}},r=function(e,r,o){t.p=n.prev,t.n=n.next;try{return e(r,o)}
vendor: 4,209 bytes, line 2
2finally{n.next=t.n}}),n.resultName&&(n[n.resultName]=t.v,n.resultName=void 0),n.sent=t.v,n.next=t.n;try{return e.call(this,n)}finally{t.p=n.prev,t.n=n.next}}}return(ze=function(){return{wrap:function(n,r,t,o){return e.w(i(n),r,t,o&&o.reverse())},isGeneratorFunction:t,mark:e.m,awrap:function(e,n){return new Ke(e,n)},AsyncIterator:We,async:function(e,n,r,o,a){return(t(n)?Ve:Qe)(i(e),n,r,o,a)},keys:Je,values:Ue}})()}function Ue(e){if(null!=e){var n=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(Me(e)+" is not iterable")}function Je(e){var n=Object(e),r=[];for(var t in n)r.unshift(t);return function e(){for(;r.length;)if((t=r.pop())in n)return e.value=t,e.done=!1,e;return e.done=!0,e}}function Qe(e,n,r,t,o){var i=Ve(e,n,r,t,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function Ve(e,n,r,t,o){return new We(Ye().w(e,n,r,t),o||Promise)}function We(e,n){function r(t,o,i,a){try{var l=e[t](o),s=l.value;return s instanceof Ke?n.resolve(s.v).then((function(e){r("next",e,i,a)}),(function(e){r("throw",e,i,a)})):n.resolve(s).then((function(e){l.value=e,i(l)}),(function(e){return r("throw",e,i,a)}))}catch(e){a(e)}}var t;this.next||(He(We.prototype),He(We.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),He(this,"_invoke",(function(e,o,i){function a(){return new n((function(n,t){r(e,i,n,t)}))}return t=t?t.then(a,a):a()}),!0)}function Ye(){var e,n,r="function"==typeof Symbol?Symbol:{},t=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,t,o,i){var s=t&&t.prototype instanceof l?t:l,u=Object.create(s.prototype);return He(u,"_invoke",function(r,t,o){var i,l,s,u=0,c=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(n,r){return i=n,l=0,s=e,d.n=r,a}};function p(r,t){for(l=r,s=t,n=0;!f&&u&&!o&&n<c.length;n++){var o,i=c[n],p=d.p,A=i[2];r>3?(o=A===t)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(l=0,d.v=t,d.n=i[1]):p<A&&(o=r<3||i[0]>t||t>A)&&(i[4]=r,i[5]=t,d.n=A,l=0))}if(o||r>1)return a;throw f=!0,t}return function(o,c,A){if(u>1)throw TypeError("Generator is already running");for(f&&1===c&&p(c,A),l=c,s=A;(n=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(u=2,i){if(l||(o="next"),n=i[o]){if(!(n=n.call(i,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,l<2&&(l=0)}else 1===l&&(n=i.return)&&n.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((n=(f=d.n<0)?s:r.call(t,d))!==a)break}catch(n){i=e,l=1,s=n}finally{u=1}}return{value:n,done:f}}}(r,o,i),!0),u}var a={};function l(){}function s(){}function u(){}n=Object.getPrototypeOf;var c=[][t]?n(n([][t]())):(He(n={},t,(function(){return this})),n),f=u.prototype=l.prototype=Object.create(c);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,He(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=u,He(f,"constructor",u),He(u,"constructor",s),s.displayName="GeneratorFunction",He(u,o,"GeneratorFunction"),He(f),He(f,o,"Generator"),He(f,t,(function(){return this})),He(f,"toString",(function(){return"[object Generator]"})),(Ye=function(){return{w:i,m:d}})()}function He(e,n,r,t){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}He=function(e,n,r,t){function i(n,r){He(e,n,(function(e){return this._invoke(n,r,e)}))}n?o?o(e,n,{value:r,enumerable:!t,configurable:!t,writable:!t}):e[n]=r:(i("next",0),i("throw",1),i("return",2))},He(e,n,r,t)}function Ke(e,n){this.v=e,this.k=n}function Ze(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function Xe(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ze(Object(r),!0).forEach((function(n){en(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEac
2h((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function en(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=Me(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,n||"default");if("object"!=Me(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==Me(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function nn(e,n,r,t,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?n(s):Promise.resolve(s).then(t,o)}function rn(e){return function(){var n=this,r=arguments;return new Promise((function(t,o){var i=e.apply(n,r);function a(e){nn(i,t,o,a,l,"next",e)}function l(e){nn(i,t,o,a,l,"throw",e)}a(void 0)}))}}function tn(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;s=!1}else for(;!(s=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,n)||function(e,n){if(e){if("string"==typeof e)return on(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?on(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function on(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r<n;r++)t[r]=e[r];return t}const an=function(){var e=(0,h.B)().t,n=(0,t.Zp)(),r=(0,De.j)(),o=(0,Pe.d4)((function(e){return e.kyc})),i=o.authorizationToken,a=o.employeeSsn,l=o.employeePhone,s=o.legalEntity,u=o.type,c=o.fullName;if((void 0===s||void 0===i)&&u===Fe.Iv.Company||(void 0===i||void 0===a)&&u===Fe.Iv.Individual||void 0===u)return(0,I.jsx)(t.C5,{to:w.R.Global.Kyc,state:{replace:!0}});var f=tn((0,x.useState)(),2),d=f[0],p=f[1],A=tn((0,x.useState)(""),2),m=A[0],y=A[1],b=tn((0,x.useState)([]),2),_=b[0],j=b[1],k=tn((0,x.useState)([]),2),$=k[0],q=k[1],B=tn((0,x.useState)([]),2),S=B[0],T=B[1],E=tn((0,x.useState)(!1),2),N=E[0],P=E[1];function D(e,n,r){var t=e.questionGroups.map((function(e){return e.questions})).flat().find((function(e){return e.id===r}));if(!t)return!1;if(!t.dependsOnQuestionId)return!0;var o=n.filter((function(e){return e.questionId===t.dependsOnQuestionId}));return 0!==o.length&&!!t.dependencyChoiceIds.some((function(e){return o.map((function(e){return e.choiceId})).includes(e)}))}function G(){return(G=rn(ze().mark((function e(n){return ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,q(n);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,x.useEffect)((function(){fetch("".concat(Ne.U.api.baseUrl,"/api/kyc/get-survey"),{method:"POST",headers:{"Content-Type":"application/json",Culture:localStorage.getItem("lng")||Fe.Ox[Fe.Ox.English],"str-client-version":(0,O.PH)()},body:JSON.stringify({authorizationToken:i,ssn:u===Fe.Iv.Company?s.ssn:a})}).then((function(e){if(e.ok)return e.json();throw new Error})).then(function(){var e=rn(ze().mark((function e(n){var r,t,o;return ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.survey,t=n.answers,p(r),null!=t&&t.answers&&(T(t.answers),o=t.answers.map((function(e){return D(r,t.answers,e.questionId)?e:Xe(Xe({},e),{},{relevantPersons:null})})),q(o));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()).catch((function(n){y(e(v.t.kycSurvey.fetchQuestionarieError))}))}),[]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"app-kyc-survey__sidebar",children:(0,I.jsx)("img",{height:"10",width:"40",src:g.A,alt:"Straumur - Merchant Portal",className:"app-kyc-survey__sidebar-logo"})}),(0,I.jsxs)("main",{role:"main",className:"app-kyc-survey__content",children:[(0,I.jsxs)("div",{className:"app-kyc-survey__content-header",children:[(0,I.jsx)("div",{className:"app-kyc-survey__content-header-title",children:"".concat(e(v.t.kycSurvey.title))}),(0,I.jsxs)("div",{className:"app-kyc-survey__content-header-actions",children:[(0,I.jsxs)("div",{className:"app-kyc-survey__content-header-actions-text",children:["".concat(e(v.t.kycSurvey.changeText)),(0,I.jsx)("span",{className:"app-kyc-survey__content-header-actions-text--strong",children:u===Fe.Iv.Company?s.name:c})]}),u===Fe.Iv.Company&&(0,I.jsx)("div",{children:(0,I.jsx)(C.A,{handleClick:function(){n(w.R.Global.KycLegalEntity,{replace:!0})},text:"".concat(e(v.t.kycSurvey.changeButton)),styleType:"line"})})]})]}),!m&&!d&&(0,I.jsx)(Ee,{}),m&&!d&&(0,I.jsx)("div",{className:"app-kyc-survey-submit-error",children:m}),d&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Se,Xe(Xe({},d),{},{form:$,errors:_,setAnswers:function(e){return G.apply(this,arguments)},previousAnswers:S})),(0,I.jsxs)("div",{className:"app-kyc-survey-submit",children:[(0,I.jsx)(C.A,{handleClick:function(){j((function(){return[]})),y((function(){return""}));var t=d.questionGroups.map((function(e){return e.questions})).flat().filter((function(e){return null===e.dependsOnQuestionId})).filter((function(e){return!0===e.isRequired})),o=[];t.forEach((function(e){$.some((function(n){return n.questionId===e.id}))||o.push({questionId:e.id,questionType:e.questionType})}));var f=$.filter((function(e){return e.choiceId})).map((function(e){return{questionId:e.questionId,choiceId:e.choiceId}}));if(d.questionGroups.map((function(e){return e.questions})).flat().filter((function(e){return e.dependsOnQuestionId})).filter((function(e){return f.some((function(n){var r;
2return n.questionId===e.dependsOnQuestionId&&(null===(r=e.dependencyChoiceIds)||void 0===r?void 0:r.includes(n.choiceId))}))})).forEach((function(e){$.some((function(n){return n.questionId===e.id}))||o.push({questionId:e.id,questionType:e.questionType})})),d.questionGroups.map((function(e){return e.questions})).flat().filter((function(e){return e.questionType===W.BeneficialOwner})).forEach((function(e){var n,r=null===(n=$.find((function(n){return n.questionId===e.id})))||void 0===n?void 0:n.relevantPersons;r&&r.forEach((function(n,r){n.fullName||o.push({questionId:e.id,questionType:e.questionType,index:r,field:(0,Re.b)((function(e){return e.fullName}))}),n.ssn||o.push({questionId:e.id,questionType:e.questionType,index:r,field:(0,Re.b)((function(e){return e.ssn}))}),null!==!n.shares&&void 0!==!n.shares||o.push({questionId:e.id,questionType:e.questionType,index:r,field:(0,Re.b)((function(e){return e.shares}))})}))})),d.questionGroups.map((function(e){return e.questions})).flat().filter((function(e){return e.questionType===W.LegalBinder})).forEach((function(e){var n,r=null===(n=$.find((function(n){return n.questionId===e.id})))||void 0===n?void 0:n.relevantPersons;r&&r.forEach((function(n,r){n.fullName||o.push({questionId:e.id,questionType:e.questionType,index:r,field:(0,Re.b)((function(e){return e.fullName}))}),n.ssn||o.push({questionId:e.id,questionType:e.questionType,index:r,field:(0,Re.b)((function(e){return e.ssn}))}),n.phone||o.push({questionId:e.id,questionType:e.questionType,index:r,field:(0,Re.b)((function(e){return e.phone}))})}))})),o.length>0)return j((function(){return o})),void y((function(){return e(v.t.kycSurvey.genericError)}));P((function(){return!0})),fetch("".concat(Ne.U.api.baseUrl,"/api/kyc/post-survey"),{method:"POST",headers:{"Content-Type":"application/json",Culture:localStorage.getItem("lng")||Fe.Ox[Fe.Ox.English],"str-client-version":(0,O.PH)()},body:JSON.stringify({authorizationToken:i,employeePhone:l,employeeSsn:a,name:u==Fe.Iv.Company?s.name:c,ssn:u==Fe.Iv.Company?s.ssn:a,surveyId:d.id,isDone:!0,companyId:u==Fe.Iv.Company?s.id:0,answers:$,kycType:u})}).then(function(){var e=rn(ze().mark((function e(n){return ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.ok){e.next=2;break}return e.abrupt("return",n.json());case 2:return e.abrupt("return",Promise.reject(n));case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()).then(rn(ze().mark((function e(){return ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r((0,Ge.fB)());case 2:n(w.R.Global.KycSuccess,{replace:!0});case 3:case"end":return e.stop()}}),e)})))).catch((function(n){n.json().then((function(e){if(e.Message)try{var n=function(e){if(!e.detail)return[];for(var n=d.questionGroups.map((function(e){return e.questions})).flat(),r=[],t=function(){for(var t,i=e.detail[o].loc.filter((function(e){return!("body"===e||"answers"===e||"LEGAL_BINDER"===e||"BENEFICIAL_OWNER"===e)})),a=$,l=0;l<i.length;l++){var s=i[l];if("number"==typeof s)a=a[s];else{if("string"!=typeof s)throw new Error("Unknown error");a=a[s]}if(0===l){var u=n.find((function(e){return e.id===a.questionId}));if(!u)throw new Error("Unknown question");t={questionId:u.id,questionType:null==u?void 0:u.questionType}}l+1===i.length-1&&(t.index=+s),l+1===i.length&&(t.field=s.toString())}r.push(t)},o=0;o<e.detail.length;o++)t();return r}(JSON.parse(e.Message));n.length>0&&j((function(){return n}))}catch(e){(0,Le.Cp)(e)}})),y((function(){return e(v.t.kycSurvey.genericError)}))}
2)).finally((function(){P((function(){return!1}))}))},text:"".concat(e(v.t.kycSurvey.formButtonCaption)),styleType:"solid",disabled:N}),m&&(0,I.jsx)("div",{className:"app-kyc-survey-submit-error",children:m})]})]})]})]})}},92757(e,n,r){r.d(n,{A:()=>l});var t=r(71354),o=r.n(t),i=r(76314),a=r.n(i)()(o());a.push([e.id,".question{margin-bottom:2rem;padding-top:1rem;background-color:#fff;border-radius:1rem}.question-title{font-weight:500;font-size:1rem;line-height:1.25rem;color:#002649;width:100%}@media screen and (min-width: 768px){.question-title{width:600px}}.question-title-error{color:#d03e00}.question-sub-title{font-style:italic;font-weight:400;font-size:1rem;line-height:1.5rem;color:#002649;width:100%}@media screen and (min-width: 768px){.question-sub-title{width:600px}}.question__radio-list{width:fit-content;margin-top:.5rem}.question__radio-list-item{flex-grow:1;display:flex;align-items:center;height:40px;padding-left:2rem}.question__radio-list-item>input{margin-left:.5rem}.question__radio-list-item>label{margin-left:.5rem;margin-right:.5rem;font-size:1rem;line-height:1rem}.question__checkbox-list{width:fit-content;margin-top:.5rem}.question__checkbox-list-item{flex-grow:1;display:flex;align-items:center;height:40px}.question__checkbox-list-item>input{margin-left:.5rem}.question__checkbox-list-item>label{margin-left:.5rem;margin-right:.5rem;font-size:1rem;line-height:1rem}.question__textbox{width:100%;margin-top:.5rem}@media screen and (min-width: 576px){.question__textbox{width:400px}}.question__dropdown{width:100%;margin-top:.5rem}@media screen and (min-width: 576px){.question__dropdown{width:400px}}.question__person{margin-top:.5rem}.question__person--box{display:flex;flex-direction:column;gap:1rem;width:100%;padding:1rem;margin-bottom:1rem;overflow:hidden;border:1px solid #e7e7e7;border-radius:9px}@media screen and (min-width: 576px){.question__person--box{width:400px}}.question__person--box-title{display:flex;justify-content:flex-end}.question__person--box-invalid{border-color:#d03e00}.question__person--box-close{padding:0 !important;height:fit-content !important}.question__error{margin-top:.25rem;color:#d03e00;font-weight:500;font-size:.8125rem;line-height:1rem}","",{version:3,sources:["webpack://./src/pages/kycSurvey/components/question/question.scss","webpack://./src/style/_variables.scss"],names:[],mappings:"AAGA,UACI,kBAAA,CACA,gBAAA,CACA,qBAAA,CACA,kBAAA,CAEA,gBACI,eAAA,CACA,cAAA,CACA,mBAAA,CACA,aCVc,CDWd,UAAA,CAEA,qCAPJ,gBAQQ,WAAA,CAAA,CAGJ,sBACI,aC0BM,CDtBd,oBACI,iBAAA,CACA,eAAA,CACA,cAAA,CACA,kBAAA,CACA,aC3Bc,CD4Bd,UAAA,CAEA,qCARJ,oBASQ,WAAA,CAAA,CAIR,sBACI,iBAAA,CACA,gBAAA,CAEA,2BACI,WAAA,CACA,YAAA,CACA,kBAAA,CACA,WAAA,CACA,iBAAA,CAEA,iCACI,iBAAA,CAGJ,iCACI,iBAAA,CACA,kBAAA,CACA,cAAA,CACA,gBAAA,CAKZ,yBACI,iBAAA,CACA,gBAAA,CAEA,8BACI,WAAA,CACA,YAAA,CACA,kBAAA,CACA,WAAA,CAEA,oCACI,iBAAA,CAGJ,oCACI,iBAAA,CACA,kBAAA,CACA,cAAA,CACA,gBAAA,CAKZ,mBACI,UAAA,CACA,gBAAA,CAEA,qCAJJ,mBAKQ,WAAA,CAAA,CAIR,oBACI,UAAA,CACA,gBAAA,CAEA,qCAJJ,oBAKQ,WAAA,CAAA,CAIR,kBACI,gBAAA,CAEA,uBACI,YAAA,CACA,qBAAA,CACA,QAAA,CACA,UAAA,CACA,YAAA,CACA,kBAAA,CAMA,eAAA,CACA,wBAAA,CACA,iBAAA,CANA,qCARJ,uBASQ,WAAA,CAAA,CAOJ,6BACI,YAAA,CACA,wBAAA,CAGJ,+BACI,oBCjFE,CDoFN,6BACI,oBAAA,CACA,6BAAA,CAKZ,iBACI,iBAAA,CACA,aC7FU,CD8FV,eAAA,CACA,kBAAA,CACA,gBAAA",sourcesContent:['@import "style/variables";\n@import "style/mixins";\n\n.question {\n margin-bottom: rem(32);\n padding-top: rem(16);\n background-color: white;\n border-radius: 1rem;\n\n &-title {\n font-weight: 500;\n font-size: rem(16);\n line-height: rem(20);\n color: $color-primary-alpha;\n width: 100%;\n\n @media screen and (min-width: $md) {\n width: 600px;\n }\n\n &-error {\n color: $color-red-alpha;\n }\n }\n\n &-sub-title {\n font-style: italic;\n font-weight: 400;\n font-size: rem(16);\n line-height: rem(24);\n color: $color-primary-alpha;\n width: 100%;\n\n @media screen and (min-width: $md) {\n width: 600px;\n }\n }\n\n &__radio-list {\n width: fit-content;\n margin-top: rem(8);\n\n &-item {\n flex-grow: 1;\n display: flex;\n align-items: center;\n height: 40px;\n padding-left: 2rem;\n\n > input {\n margin-left: 0.5rem;\n }\n\n > label {\n margin-left: 0.5rem;\n margin-right: 0.5rem;\n font-size: 1rem;\n line-height: 1rem;\n }\n }\n }\n\n &__checkbox-list {\n width: fit-content;\n margin-top: rem(8);\n\n &-item {\n flex-grow: 1;\n display: flex;\n align-items: center;\n height: 40px;\n\n > input {\n margin-left: 0.5rem;\n }\n\n > label {\n margin-left: 0.5rem;\n margin-right: 0.5rem;\n font-size: 1rem;\n line-height: 1rem;\n }\n }\n }\n\n &__textbox {\n width: 100%;\n margin-top: rem(8);\n\n @media screen and (min-width: $sm) {\n width: 400px;\n }\n }\n\n &__dropdown {\n width: 100%;\n margin-top: rem(8);\n\n @media screen and (min-width: $sm) {\n width: 400px;\n }\n }\n\n &__person {\n margin-top: rem(8);\n\n &--box {\n display: flex;\n flex-direction: column;\n gap: rem(16);\n width: 100%;\n padding: rem(16);\n margin-bottom: rem(16);\n\n @media screen and (min-width: $sm) {\n width: 400px;\n }\n\n overflow: hidden;\n border: 1px solid $color-gray-epsilon;\n border-radius: 9px;\n\n &-title {\n display: flex;\n justify-content: flex-end;\n }\n\n &-invalid {\n border-color: $color-red-alpha;\n }\n\n &-close {\n padding: 0 !important;\n height: fit-content !important;\n }\n }\n }\n\n &__error {\n margin-top: rem(4);\n color: $color-red-alpha;\n font-weight: 500;\n font-size: rem(13);\n line-height: rem(16);\n }\n}\n','// ******************+\n// Colors\n// ******************+\n$color-primary-alpha: #002649;\n$color-primary-beta: #dafda3;
2\n$color-primary-gamma: #ff8b59;\n$color-primary-delta: #bce6f3;\n\n$color-secondary-alpha: #fcf8f2;\n$color-secondary-beta: #fbfaf9;\n$color-secondary-gamma: #eef0f2;\n$color-secondary-delta: #262b31;\n\n$color-gray-alpha: #fcfcfc;\n$color-gray-beta: #fafafa;\n$color-gray-gamma: #f4f5f5;\n$color-gray-delta: #eef0f2;\n$color-gray-epsilon: #e7e7e7;\n$color-gray-zeta: #e3e3e3;\n$color-gray-eta: #6d858c;\n\n$color-green-alpha: #5b8206;\n$color-green-beta: #9bd71a;\n$color-green-gamma: #f0fbd8;\n\n$color-neon-green-alpha: #3b4926;\n$color-neon-green-beta: #dafda3;\n$color-neon-green-gamma: #f0feda;\n$color-neon-green-delta: #f0fbd8;\n$color-neon-green-epsilon: #5b8206;\n$color-neon-green-zeta: #88a64e;\n\n$color-blue-alpha: #08576f;\n$color-blue-beta: #bce6f3;\n$color-blue-gamma: #eff8fa;\n$color-blue-delta: #0a3761;\n$color-blue-epsilon: #e2f9fe;\n\n$color-cosmos-blue-alpha: #f5f8fa;\n$color-cosmos-blue-beta: #eff2f5;\n$color-cosmos-blue-gamma: #e6ebef;\n$color-cosmos-blue-delta: #cdd8e2;\n$color-cosmos-blue-epsilon: #72889d;\n$color-cosmos-blue-zeta: #4d5f6f;\n$color-cosmos-blue-eta: #243b50;\n$color-cosmos-blue-theta: #4e74a6;\n\n$color-red-alpha: #d03e00;\n$color-red-beta: #ffede5;\n$color-red-gamma: #fff8f5;\n$color-red-delta: #d96666;\n\n$color-black: #000000;\n$color-white: #ffffff;\n$color-transparent: "transparent";\n\n$color-white-blue: #edf5ff;\n\n$color-icon-light: #bfc8d1;\n$color-icon-dark: #657c91;\n\n$color-yellow-alpha: #fff7db;\n$color-yellow-beta: #dfae00;\n$color-yellow-gamma: #775d00;\n\n$color-purple-alpha: #8e4ea6;\n\n// ******************+\n// Breakpoints\n// ******************+\n$sm: 576px;\n$md: 768px;\n$lg: 992px;\n$xl: 1200px;\n\n$nav-sm: 430px;\n$nav-lg: 1440px;\n\n// ******************+\n// Modal sizes\n// ******************+\n$modal-sm: 456px;\n'],sourceRoot:""}]);const l=a},35079(e,n,r){r.d(n,{A:()=>l});var t=r(71354),o=r.n(t),i=r(76314),a=r.n(i)()(o());a.push([e.id,".questionare-group{margin-bottom:2rem;padding:2rem 2.5rem;background-color:#fff;border-radius:1rem}.questionare-group-title{font-weight:500;font-size:1.25rem;line-height:1.5rem;color:#002649}","",{version:3,sources:["webpack://./src/pages/kycSurvey/components/questionareGroup/questionareGroup.scss","webpack://./src/style/_variables.scss"],names:[],mappings:"AAGA,mBACI,kBAAA,CACA,mBAAA,CACA,qBAAA,CACA,kBAAA,CAEA,yBACI,eAAA,CACA,iBAAA,CACA,kBAAA,CACA,aCVc",sourcesContent:['@import "style/variables";\n@import "style/mixins";\n\n.questionare-group {\n margin-bottom: rem(32);\n padding: rem(32) rem(40);\n background-color: white;\n border-radius: 1rem;\n\n &-title {\n font-weight: 500;\n font-size: rem(20);\n line-height: rem(24);\n color: $color-primary-alpha;\n }\n}\n','// ******************+\n// Colors\n// ******************+\n$color-primary-alpha: #002649;\n$color-primary-beta: #dafda3;\n$color-primary-gamma: #ff8b59;\n$color-primary-delta: #bce6f3;\n\n$color-secondary-alpha: #fcf8f2;\n$color-secondary-beta: #fbfaf9;\n$color-secondary-gamma: #eef0f2;\n$color-secondary-delta: #262b31;\n\n$color-gray-alpha: #fcfcfc;\n$color-gray-beta: #fafafa;\n$color-gray-gamma: #f4f5f5;\n$color-gray-delta: #eef0f2;\n$color-gray-epsilon: #e7e7e7;\n$color-gray-zeta: #e3e3e3;\n$color-gray-eta: #6d858c;\n\n$color-green-alpha: #5b8206;\n$color-green-beta: #9bd71a;\n$color-green-gamma: #f0fbd8;\n\n$color-neon-green-alpha: #3b4926;\n$color-neon-green-beta: #dafda3;\n$color-neon-green-gamma: #f0feda;\n$color-neon-green-delta: #f0fbd8;\n$color-neon-green-epsilon: #5b8206;\n$color-neon-green-zeta: #88a64e;\n\n$color-blue-alpha: #08576f;\n$color-blue-beta: #bce6f3;\n$color-blue-gamma: #eff8fa;\n$color-blue-delta: #0a3761;\n$color-blue-epsilon: #e2f9fe;\n\n$color-cosmos-blue-alpha: #f5f8fa;\n$color-cosmos-blue-beta: #eff2f5;\n$color-cosmos-blue-gamma: #e6ebef;\n$color-cosmos-blue-delta: #cdd8e2;\n$color-cosmos-blue-epsilon: #72889d;\n$color-cosmos-blue-zeta: #4d5f6f;\n$color-cosmos-blue-eta: #243b50;\n$color-cosmos-blue-theta: #4e74a6;\n\n$color-red-alpha: #d03e00;\n$color-red-beta: #ffede5;\n$color-red-gamma: #fff8f5;\n$color-red-delta: #d96666;\n\n$color-black: #000000;\n$color-white: #ffffff;\n$color-transparent: "transparent";\n\n$color-white-blue: #edf5ff;\n\n$color-icon-light: #bfc8d1;\n$color-icon-dark: #657c91;\n\n$color-yellow-alpha: #fff7db;\n$color-yellow-beta: #dfae00;\n$color-yellow-gamma: #775d00;\n\n$color-purple-alpha: #8e4ea6;
2\n\n// ******************+\n// Breakpoints\n// ******************+\n$sm: 576px;\n$md: 768px;\n$lg: 992px;\n$xl: 1200px;\n\n$nav-sm: 430px;\n$nav-lg: 1440px;\n\n// ******************+\n// Modal sizes\n// ******************+\n$modal-sm: 456px;\n'],sourceRoot:""}]);const l=a},46830(e,n,r){r.d(n,{A:()=>l});var t=r(71354),o=r.n(t),i=r(76314),a=r.n(i)()(o());a.push([e.id,".app-kyc-survey__sidebar{width:72px;float:left;background-color:#fff;min-height:100vh;border-right:1px solid #e7e7e7}.app-kyc-survey__sidebar-logo{margin:0 auto;width:100%;margin-top:40px}@media screen and (max-width: 576px){.app-kyc-survey__sidebar{display:none}}.app-kyc-survey__content{display:flex;flex-direction:column;background-color:#eef0f2;padding-left:1rem;padding-right:1rem;height:100%;overflow:overlay}.app-kyc-survey__content-header{display:flex;justify-content:space-between;gap:.75rem;align-items:center;background-color:#eef0f2;padding:1.5rem 1rem 1.5rem 1.5rem;font-weight:500;font-size:1.25rem;line-height:1.5rem}@media screen and (max-width: 768px){.app-kyc-survey__content-header{flex-direction:column;align-items:unset}}.app-kyc-survey__content-header-title{text-align:left}.app-kyc-survey__content-header-actions{display:flex;justify-content:space-between;align-items:center}.app-kyc-survey__content-header-actions-text{font-weight:400;font-size:1rem;line-height:1.5rem;color:#262b31;padding-right:1rem}.app-kyc-survey__content-header-actions-text--strong{font-weight:500}.app-kyc-survey__questionarie{background-color:#fff}.app-kyc-survey-submit{display:flex;gap:1rem;align-items:center;margin-bottom:1rem}.app-kyc-survey-submit-error{font-weight:500;font-size:1rem;color:#d03e00}.app-kyc-survey__form-row-wrapper{display:flex;align-items:center}.app-kyc-survey__form-row-wrapper .base-input-wrapper{width:100%}.app-kyc-survey__form-row-wrapper .base-input-wrapper:focus-within .form-notch .form-notch-leading{border-radius:0}.app-kyc-survey__form-row-wrapper .app-kyc-survey__form-row__prefix{background-color:#eff2f5;border:1px solid #e6ebef;color:#262b31;padding:.75rem;min-width:fit-content}.app-kyc-survey__form-row-wrapper .app-kyc-survey__form-row__prefix{border-top-left-radius:4px;border-bottom-left-radius:4px}.app-kyc-survey__form-row-wrapper .app-kyc-survey__form-row__form-control{border:none;background:#f5f8fa;color:#262b31;padding:.75rem;transition:border-color .25s ease-in-out;width:100%}.app-kyc-survey__form-row-wrapper .app-kyc-survey__form-row__form-control:hover{border:none}.app-kyc-survey__form-row-wrapper .app-kyc-survey__form-row__form-control:disabled{background-color:#eef0f2;pointer-events:none;border-color:rgba(0,0,0,0);color:#72889d}.app-kyc-survey__form-row-wrapper .app-kyc-survey__form-row__form-control:focus{border:none}.app-kyc-survey__form-row-wrapper .app-kyc-survey__form-row__form-control:focus-within,.app-kyc-survey__form-row-wrapper .app-kyc-survey__form-row__form-control.active{outline:none;border:none}","",{version:3,sources:["webpack://./src/pages/kycSurvey/kycSurvey.scss","webpack://./src/style/_variables.scss"],names:[],mappings:"AAII,yBACI,UAAA,CACA,UAAA,CACA,qBAAA,CACA,gBAAA,CACA,8BAAA,CAEA,8BACI,aAAA,CACA,UAAA,CACA,eAAA,CAGJ,qCAbJ,yBAcQ,YAAA,CAAA,CAIR,yBACI,YAAA,CACA,qBAAA,CACA,wBCfgB,CDgBhB,iBAAA,CACA,kBAAA,CACA,WAAA,CACA,gBAAA,CAEA,gCACI,YAAA,CACA,6BAAA,CACA,UAAA,CACA,kBAAA,CACA,wBC1BY,CD2BZ,iCAAA,CACA,eAAA,CACA,iBAAA,CACA,kBAAA,CAEA,qCAXJ,gCAYQ,qBAAA,CACA,iBAAA,CAAA,CAGJ,sCACI,eAAA,CAGJ,wCACI,YAAA,CACA,6BAAA,CACA,kBAAA,CAEA,6CACI,eAAA,CACA,cAAA,CACA,kBAAA,CACA,aCjDI,CDkDJ,kBAAA,CAEA,qDACI,eAAA,CAOpB,8BACI,qBAAA,CAGJ,uBACI,YAAA,CACA,QAAA,CACA,kBAAA,CACA,kBAAA,CAEA,6BACI,eAAA,CACA,cAAA,CACA,aCrCM,CD0ClB,kCACI,YAAA,CACA,kBAAA,CAEA,sDACI,UAAA,CAEA,mGACI,eAAA,CAIR,oEACI,wBC/DiB,CDgEjB,wBAAA,CACA,aC7FgB,CD8FhB,cAAA,CACA,qBAAA,CAGJ,oEACI,0BAAA,CACA,6BAAA,CAGJ,0EACI,WAAA,CACA,kBC9EkB,CD+ElB,aC1GgB,CD2GhB,cAAA,CACA,wCAAA,CACA,UAAA,CAEA,gFACI,WAAA,CAGJ,mFACI,wBC/GO,CDgHP,mBAAA,CACA,0BAAA,CACA,aCxFgB,CD2FpB,gFACI,WAAA,CAGJ,wKAEI,YAAA,CACA,WAAA",sourcesContent:['@import "style/variables";\n@import "style/mixins";
2\n\n.app-kyc-survey {\n &__sidebar {\n width: 72px;\n float: left;\n background-color: white;\n min-height: 100vh;\n border-right: 1px solid $color-gray-epsilon;\n\n &-logo {\n margin: 0 auto;\n width: 100%;\n margin-top: 40px;\n }\n\n @media screen and (max-width: $sm) {\n display: none;\n }\n }\n\n &__content {\n display: flex;\n flex-direction: column;\n background-color: $color-secondary-gamma;\n padding-left: rem(16);\n padding-right: rem(16);\n height: 100%;\n overflow: overlay;\n\n &-header {\n display: flex;\n justify-content: space-between;\n gap: rem(12);\n align-items: center;\n background-color: $color-secondary-gamma;\n padding: rem(24) rem(16) rem(24) rem(24);\n font-weight: 500;\n font-size: rem(20);\n line-height: rem(24);\n\n @media screen and (max-width: $md) {\n flex-direction: column;\n align-items: unset;\n }\n\n &-title {\n text-align: left;\n }\n\n &-actions {\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n &-text {\n font-weight: 400;\n font-size: rem(16);\n line-height: rem(24);\n color: $color-secondary-delta;\n padding-right: rem(16);\n\n &--strong {\n font-weight: 500;\n }\n }\n }\n }\n }\n\n &__questionarie {\n background-color: white;\n }\n\n &-submit {\n display: flex;\n gap: rem(16);\n align-items: center;\n margin-bottom: rem(16);\n\n &-error {\n font-weight: 500;\n font-size: rem(16);\n color: $color-red-alpha;\n }\n }\n}\n\n.app-kyc-survey__form-row-wrapper {\n display: flex;\n align-items: center;\n\n .base-input-wrapper {\n width: 100%;\n\n &:focus-within .form-notch .form-notch-leading {\n border-radius: 0;\n }\n }\n\n .app-kyc-survey__form-row__prefix {\n background-color: $color-cosmos-blue-beta;\n border: 1px solid $color-cosmos-blue-gamma;\n color: $color-secondary-delta;\n padding: rem(12);\n min-width: fit-content;\n }\n\n .app-kyc-survey__form-row__prefix {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n }\n\n .app-kyc-survey__form-row__form-control {\n border: none;\n background: $color-cosmos-blue-alpha;\n color: $color-secondary-delta;\n padding: rem(12);\n transition: border-color 0.25s ease-in-out;\n width: 100%;\n\n &:hover {\n border: none;\n }\n\n &:disabled {\n background-color: $color-gray-delta;\n pointer-events: none;\n border-color: transparent;\n color: $color-cosmos-blue-epsilon;\n }\n\n &:focus {\n border: none;\n }\n\n &:focus-within,\n &.active {\n outline: none;\n border: none;\n }\n }\n}\n','// ******************+\n// Colors\n// ******************+\n$color-primary-alpha: #002649;\n$color-primary-beta: #dafda3;\n$color-primary-gamma: #ff8b59;\n$color-primary-delta: #bce6f3;\n\n$color-secondary-alpha: #fcf8f2;\n$color-secondary-beta: #fbfaf9;\n$color-secondary-gamma: #eef0f2;\n$color-secondary-delta: #262b31;\n\n$color-gray-alpha: #fcfcfc;\n$color-gray-beta: #fafafa;\n$color-gray-gamma: #f4f5f5;\n$color-gray-delta: #eef0f2;\n$color-gray-epsilon: #e7e7e7;\n$color-gray-zeta: #e3e3e3;\n$color-gray-eta: #6d858c;\n\n$color-green-alpha: #5b8206;\n$color-green-beta: #9bd71a;\n$color-green-gamma: #f0fbd8;\n\n$color-neon-green-alpha: #3b4926;\n$color-neon-green-beta: #dafda3;
2\n$color-neon-green-gamma: #f0feda;\n$color-neon-green-delta: #f0fbd8;\n$color-neon-green-epsilon: #5b8206;\n$color-neon-green-zeta: #88a64e;\n\n$color-blue-alpha: #08576f;\n$color-blue-beta: #bce6f3;\n$color-blue-gamma: #eff8fa;\n$color-blue-delta: #0a3761;\n$color-blue-epsilon: #e2f9fe;\n\n$color-cosmos-blue-alpha: #f5f8fa;\n$color-cosmos-blue-beta: #eff2f5;\n$color-cosmos-blue-gamma: #e6ebef;\n$color-cosmos-blue-delta: #cdd8e2;\n$color-cosmos-blue-epsilon: #72889d;\n$color-cosmos-blue-zeta: #4d5f6f;\n$color-cosmos-blue-eta: #243b50;\n$color-cosmos-blue-theta: #4e74a6;\n\n$color-red-alpha: #d03e00;\n$color-red-beta: #ffede5;\n$color-red-gamma: #fff8f5;\n$color-red-delta: #d96666;\n\n$color-black: #000000;\n$color-white: #ffffff;\n$color-transparent: "transparent";\n\n$color-white-blue: #edf5ff;\n\n$color-icon-light: #bfc8d1;\n$color-icon-dark: #657c91;\n\n$color-yellow-alpha: #fff7db;\n$color-yellow-beta: #dfae00;\n$color-yellow-gamma: #775d00;\n\n$color-purple-alpha: #8e4ea6;\n\n// ******************+\n// Breakpoints\n// ******************+\n$sm: 576px;\n$md: 768px;\n$lg: 992px;\n$xl: 1200px;\n\n$nav-sm: 430px;\n$nav-lg: 1440px;\n\n// ******************+\n// Modal sizes\n// ******************+\n$modal-sm: 456px;\n'],sourceRoot:""}]);const l=a}}]); 3//# sourceMappingURL=1681.c70856ea18ce7d4482d7.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.