1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4349,906],{4349:function(e,a,t){t.r(a);var l=t(52322),s=t(25237),i=t.n(s),o=t(2784),d=t(98123),n=t(21723),r=t(25218),c=t(70906),m=t(16237);let _=i()(()=>Promise.resolve().then(t.bind(t,67190)),{loadableGenerated:{webpack:()=>[67190]},ssr:!1}),u={POI:"verifyIDProofOfIdentityText",POA:"verifyIDProofOfAddressText",POP:"jumioIDProofOfPaymentText"},f=e=>{var a,t;let{document:s,setMenuState:i,setShouldUseKycPopup:f,docTypeData:x,onDocumentTypeSelect:v,idStatus:p}=e,[h,j]=(0,o.useState)(!0),[N,y]=(0,o.useState)(!1),[b,g]=(0,o.useState)(!1),[P,k]=(0,o.useState)(""),[w,C]=(0,o.useState)(""),[S,K]=(0,o.useState)(null!==(t=null==x?void 0:null===(a=x[0])||void 0===a?void 0:a.value)&&void 0!==t?t:""),[O,T]=(0,o.useState)(!1),{ua:E}=(0,n.e)(),{fetcher:I}=(0,r.a)(),{t:D}=(0,d.$G)(["lexicons"]),M=()=>{j(!1),i(!0)},A=()=>{g(!1),k(""),T(!0)},B=async e=>{try{var a,t,l,i,o;y(!0);let d=await I("/api/player/getKycLink",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({document:s,...e&&{documentType:e},...p&&"Rejected"===p&&{forceValidation:!0}})}),n=null==d?void 0:null===(a=d.Response)||void 0===a?void 0:a.Link;n?(g(!0),k(n)):(null==d?void 0:null===(t=d.AdditionalData)||void 0===t?void 0:null===(l=t.Error)||void 0===l?void 0:l.ErrorMessage)?C(null==d?void 0:null===(i=d.AdditionalData)||void 0===i?void 0:null===(o=i.Error)||void 0===o?void 0:o.ErrorMessage):(j(!1),f(!1))}catch(e){console.error("Error fetching KYC link:",e)}finally{y(!1)}};return(0,l.jsx)(_,{showClose:!b,isShow:h,showModal:M,handleClickContainer:!1,children:b?(0,l.jsxs)("div",{className:"jumio-iframe-wrapper",children:[(0,l.jsx)("button",{className:"jumio-iframe-close","data-testid":"btn__KycPopup-close",onClick:A,"aria-label":"Close"}),(null==E?void 0:E.isMobile)||(null==E?void 0:E.isIphone)?(0,l.jsx)("iframe",{id:"mitek_iframe_mobile","data-testid":"iframe__KycPopup-verificationMobile",src:P}):(0,l.jsx)("iframe",{id:"mitek_iframe","data-testid":"iframe__KycPopup-verification",src:P})]}):O?(0,l.jsxs)("div",{className:"modal-form__body new",children:[(0,l.jsx)("div",{className:"modal-form__header new",children:(0,l.jsx)("div",{className:"modal-form__title register",children:D("kycWaitingForStatus_title")})}),(0,l.jsx)("div",{className:"modal-form__body__content m__t--2",children:(0,l.jsx)("p",{className:"p-text__medium translation-format",children:D("kycWaitingForStatus_body")})}),(0,l.jsx)("div",{className:"modal-form__footer",children:(0,l.jsx)("div",{className:"flex gap-10",children:(0,l.jsx)(c.default,{className:"btn btn__primary rounded-8 flex-1",onClick:M,children:D("close")})})})]}):w?(0,l.jsxs)("div",{className:"modal-form__body new",children:[(0,l.jsx)("div",{className:"modal-form__header new",children:(0,l.jsx)("div",{className:"modal-form__title register",children:D("upload_documents")})}),(0,l.jsx)("div",{className:"modal-form__body__content m__t--2",children:(0,l.jsx)("p",{className:"p-text__medium translation-format",children:D(w)})}),(0,l.jsx)("div",{className:"modal-form__footer",children:(0,l.jsx)("div",{className:"flex gap-10",children:(0,l.jsx)(c.default,{className:"btn btn__primary rounded-8 flex-1","data-testid":"btn__KycPopup-close",onClick:M,isLoading:N,disabled:N,children:D("close")})})})]}):(0,l.jsxs)("div",{className:"modal-form__body new",children:[(0,l.jsx)("div",{className:"modal-form__header new",children:(0,l.jsx)("div",{className:"modal-form__title register",children:D("upload_documents")})}),(0,l.jsxs)("div",{className:"modal-form__body__content m__t--2",children:[(0,l.jsx)("p",{className:"p-text__medium translation-format",children:(0,l.jsx)(m.default,{text:"JumioPrompt","data-testid":"text__KycPopup-jumioPrompt"})}),(0,l.jsx)("p",{className:"p-text__medium translation-format",children:(0,l.jsx)(m.default,{text:u[s],"data-testid":"text__KycPopup-verifyBody"})})]}),x&&x.length>1&&(0,l.jsxs)("div",{className:"form__column",children:[(0,l.jsx)("label",{className:"form__label",children:D("documentType")}),(0,l.jsx)("div",{className:"form__radio radio-castom custom-popup__radio-buttons",children:(0,l.jsx)("div",{className:"form__row kyc-docType-options",children:x.map(e=>{let a=S===e.value;return(0,l.jsxs)("div",{className:"radio-castom__item ".concat(a?"is-selected":""),children:[(0,l.jsx)("input",{id:"".concat(s,"-").concat(e.value),type:"radio",name:s,value:e.value,checked:a,"data-testid":"radio__KycPopup-docType--".concat(e.value),onChange:e=>K(e.target.value)}),(0,l.jsx)("label",{htmlFor:"".concat(s,"-").concat(e.value),children:D(e.label)})]},e.value)})})})]}),(0,l.jsx)("hr",{className:"horizontal-line m__b--2"}),(0,l.jsx)("div",{className:"text__center translation-format",children:(0,l.jsx)(m.default,{text:"jumioConsent","data-testid":"text__KycPopup-jumioConsent",className:"p-text__small"})}),(0,l.jsx)("div",{className:"modal-form__footer",children:(0,l.jsx)("div",{className:"flex gap-10",children:(0,l.jsx)(c.default,{className:"btn btn__primary rounded-8 flex-1","data-testid":"btn__KycPopup-continue",onClick:()=>{let e=null==v?void 0:v(S);e||B(x&&x.length>0?S:void 0)},isLoading:N,disabled:N,children:D("continue")})})})]})})};a.default=f},70906:function(e,a,t){t.r(a);
1var l=t(52322);let s=e=>{let{children:a,isLoading:t=!1,...s}=e;return t?(0,l.jsx)("button",{"data-testid":"btn__Button-loading",...s,children:(0,l.jsx)("svg",{className:"spinner",viewBox:"0 0 50 50",children:(0,l.jsx)("circle",{className:"path",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"5"})})}):(0,l.jsx)("button",{"data-testid":"btn__Button-default",...s,className:"".concat(null==s?void 0:s.className," pp-button--component"),children:a})};a.default=s}}]);
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.