1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5461,5631],{35631:function(e,l,t){t.d(l,{r:function(){return i}});var s,n=t(2784),a=["title","titleId"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e}).apply(null,arguments)}var i=(0,n.forwardRef)(function(e,l){var t=e.title,i=e.titleId,r=function(e,l){if(null==e)return{};var t,s,n=function(e,l){if(null==e)return{};var t={};for(var s in e)if(({}).hasOwnProperty.call(e,s)){if(-1!==l.indexOf(s))continue;t[s]=e[s]}return t}(e,l);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)t=a[s],-1===l.indexOf(t)&&({}).propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(e,a);return n.createElement("svg",o({width:12,height:6,viewBox:"0 0 12 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":i},r),t?n.createElement("title",{id:i},t):null,s||(s=n.createElement("path",{d:"M5.64645 5.64645C5.84171 5.84171 6.15829 5.84171 6.35355 5.64645L11.1464 0.853554C11.4614 0.538571 11.2383 0 10.7929 0H1.20711C0.761654 0 0.538571 0.538571 0.853553 0.853553L5.64645 5.64645Z",fill:"#838FBB"})))})},45461:function(e,l,t){t.r(l),t.d(l,{default:function(){return O}});var s=t(52322),n=t(2784),a=t(25218),o=t(24511),i=t(11768);class r extends i.Z{constructor(e){super(),this.PlayerId="",this.Token="",this.ItemString="",this.ItemId=0,Object.assign(this,e)}}r.schema=o.Ry({PlayerId:o.Z_(),Token:o.Z_(),ItemString:o.Z_(),ItemId:o.Rx()}).noUnknown();var c=t(9934),d=t(63602);class u extends i.Z{constructor(e){super(),this.months="",Object.assign(this,e)}}u.schema=o.Ry({months:o.Z_().matches(/^[0-9]+$/,"Minutes should be only number").matches(/\b(0?[1-9]|[1-9][0-9]|[1-3][0-9][0-9]|36[0-5]|730|10000|1095)\b/,"Entered value not in the range. Value is converted to appropriate").max(5,e=>{let{max:l}=e;return"Month(s) canât be longer than ".concat(l," numbers")}).required("Month(s) is required field")}).noUnknown();var m=t(98123),_=t(70853),v=t(36683);let h=[{value:"6",label:6},{value:"12",label:12},{value:"24",label:24},{value:"36",label:36},{value:"48",label:48},{value:"60",label:60}],x=[{value:"1",label:1},{value:"2",label:2},{value:"3",label:3},{value:"5",label:5},{value:"7",label:7},{value:"10",label:10},{value:"14",label:14},{value:"18",label:18},{value:"21",label:21},{value:"28",label:28},{value:"30",label:30},{value:"40",label:40},{value:"50",label:50},{value:"60",label:60},{value:"70",label:70},{value:"80",label:80},{value:"90",label:90},{value:"100",label:100},{value:"120",label:120},{value:"150",label:150},{value:"180",label:180},{value:"270",label:270},{value:"365",label:"365 (one year)"},{value:"730",label:"730 (two years)"},{value:"1095",label:"1095 (three years)"},{value:"10000",label:"Indefinitely"}],b=e=>{let{isSetError:l,setIsSetError:t,onSubmit:n,onHandleSubmit:a,onChangeText:o}=e,{t:i}=(0,m.$G)(["lexicons"]),r=(0,_.v4)();return(0,s.jsx)(d.J9,{initialValues:{...new u({})},onSubmit:n,validationSchema:u.schema,children:e=>{let{values:n,errors:c,setFieldValue:d,handleSubmit:u}=e;return(0,s.jsxs)("div",{id:"Exclusiion",className:"play-responsibly-form",children:[(0,s.jsxs)("div",{className:"play-responsibly-form__content",children:["CURACAO"===r?(0,s.jsx)("p",{className:"play-responsibly-form__text",children:i("limits_Exclusion_notes_curacao")}):"UK"===r?(0,s.jsx)("p",{className:"play-responsibly-form__text translation-format",children:i("UK_SE_exclusion_text_new")}):(0,s.jsx)("p",{className:"play-responsibly-form__text",children:i("limits_Exclusion_notes")}),(0,s.jsx)("div",{className:"play-responsibly-form__items",children:(0,s.jsx)("div",{className:"play-responsibly-form__item",children:(0,s.jsx)("div",{className:"item__form",children:(0,s.jsxs)("div",{className:"form__column",children:[(0,s.jsx)("label",{className:"form__label",children:"MGA"===r?i("timeoutDurationInDays"):i("exclusionDurationInMonths")}),"MGA"===r?(0,s.jsx)(v.Z,{options:x,onChangeHandler:e=>o("months",null==e?void 0:e.value,d),defaultOption:null==x?void 0:x[0],error:c.months,isSetError:l,onFocusHandler:()=>l&&t(!1),"data-testid":"select__ExclusionFormInner-durationDays"}):(0,s.jsx)(v.Z,{options:h,onChangeHandler:e=>o("months",null==e?void 0:e.value,d),defaultOption:null==h?void 0:h[0],error:c.months,isSetError:l,onFocusHandler:()=>l&&t(!1),"data-testid":"select__ExclusionFormInner-durationMonths"})]})})})})]}),(0,s.jsx)("div",{className:"play-responsibly-form__buttons",children:(0,s.jsx)("button",{className:"btn",onClick:()=>a(u),"data-testid":"btn__ExclusionFormInner-submit",children:i("submit")})})]})}})};var p=t(98921),f=t(35599),j=t(97125),y=t(72620),k=t(67190),g=t(92496);let S=e=>{let{isShowModal:l,setIsShowModal:t,onClose:n,changeForm:a}=e,{t:o}=(0,m.$G)(["lexicons"]),i=()=>{t(""),(0,g.m)(n)&&n()},r=()=>{a("Timeout")};return(0,s.jsx)(k.default,{isShow:!!l,showClose:!1,showModal:()=>i(),children:(0,s.jsxs)("div",{className:"modal-form__body",children:[(0,s.jsx)("div",{className:"form__column",children:o("UK_SE_to_TO_popup_text")}),(0,s.jsxs)("div",{className:"play-responsibly-form__buttons__popup form__buttons",children:[(0,s.jsx)("button",{className:"btn btn__sm",onClick:r,"data-testid":"btn__ExclusionRedirectPopup-changeToTimeout",children:o("UK_SE_to_TO_popup_button1")}),(0,s.jsx)("button",{className:"btn btn__sm",onClick:()=>i(),"data-testid":"btn__ExclusionRedirectPopup-close",children:o("UK_SE_to_TO_popup_button2")})]})]})})};class N extends i.Z{constructor(e){super(),this.PlayerId="",this.Token="",this.daysUntilRevoke=0,this.comments="",this.hasGamblingProblem=!1,Object.assign(this,e)}}N.schema=o.Ry({PlayerId:o.Z_(),Token:o.Z_(),daysUntilRevoke:o.Rx(),comments:o.Z_(),hasGamblingProblem:o.O7()}).noUnknown();var w=t(40921),E=t(70906),C=t(74533);let I=e=>{let{setRevokeSelfExclusionModal:l,player:t}
1=e,[o,i]=(0,n.useState)(1),[r,c]=(0,n.useState)(""),[d,u]=(0,n.useState)(""),[_,v]=(0,n.useState)(""),[h,x]=(0,n.useState)(!1),[b,p]=(0,n.useState)(!1),[f,j]=(0,n.useState)(!1),[y,g]=(0,n.useState)(!1),{t:S}=(0,m.$G)(["lexicons"]),{fetcher:I}=(0,a.a)(),R=()=>{r?(x(!1),i(2)):x(!0)},M=()=>{d?(p(!1),i(3)):p(!0)},P=async()=>{if(_){j(!1),g(!0);let e=await I("/api/playResponsibly/revokeSelfExclusion",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(new N({PlayerId:t.PlayerId,Token:t.Token,daysUntilRevoke:r,comments:d,hasGamblingProblem:"Yes"!==_}))});(null==e?void 0:e.IsSuccess)&&i(4)}else j(!0)};switch(o){case 1:return(0,s.jsx)(k.default,{isShow:!0,showModal:()=>l(),showClose:!1,newContainerStyle:!0,children:(0,s.jsxs)("div",{className:"manage-cookies__wrapper",children:[(0,s.jsxs)("div",{className:"manage-cookies__header revoke-self-exclusion-header",children:[(0,s.jsx)("div",{className:"manage-cookies__title",children:S("revoke_selfExclude")}),(0,s.jsx)("button",{onClick:()=>l(),className:"manage-cookies__close-button","data-testid":"btn__RevokeSelfExclusionModal-closeDaysStep",children:(0,s.jsx)(w.r,{})})]}),(0,s.jsxs)("div",{className:"revoke-self-exclusion-modal__body",children:[(0,s.jsx)("div",{className:"revoke-self-exclusion-main-text",children:S("revoke_selfExclude_submit_warning")}),(0,s.jsx)("div",{className:"revoke-self-exclusion-sub-text",children:S("revoke_selfExclude_following_days")}),(0,s.jsx)("div",{className:"revoke-self-exclusion-label",children:S("days")}),(0,s.jsx)("input",{className:"form__input ".concat(h?"input-error":""),type:"text",placeholder:"0",onChange:e=>{let l=e.target.value;/^\d*$/.test(l)&&c(l)},value:r,onFocus:()=>x(!1),"data-testid":"input__RevokeSelfExclusionModal-days"})]}),(0,s.jsxs)("div",{className:"revoke-self-exclusion-modal__footer",children:[(0,s.jsx)(E.default,{className:"btn2",onClick:()=>l(),type:"button",style:{marginBottom:"16px"},"data-testid":"btn__RevokeSelfExclusionModal-cancel",children:S("Cancel")}),(0,s.jsx)(E.default,{className:"btn2 ".concat(r?"":"btn-disabled"),onClick:R,type:"submit","data-testid":"btn__RevokeSelfExclusionModal-daysContinue",children:S("Continue")})]})]})});case 2:return(0,s.jsx)(k.default,{isShow:!0,showModal:()=>l(),showClose:!1,newContainerStyle:!0,children:(0,s.jsxs)("div",{className:"manage-cookies__wrapper",children:[(0,s.jsxs)("div",{className:"manage-cookies__header revoke-self-exclusion-header",children:[(0,s.jsx)("div",{className:"manage-cookies__title",children:S("revoke_selfExclude_confirmation")}),(0,s.jsx)("button",{onClick:()=>l(),className:"manage-cookies__close-button","data-testid":"btn__RevokeSelfExclusionModal-closeCommentsStep",children:(0,s.jsx)(w.r,{})})]}),(0,s.jsxs)("div",{className:"revoke-self-exclusion-modal__body",children:[(0,s.jsx)("div",{className:"revoke-self-exclusion-main-text sub-text",children:S("revoke_selfExclude_review_request_statement")}),(0,s.jsx)("div",{className:"revoke-self-exclusion-main-text sub-text",children:S("revoke_selfExclude_review_request_question_1")}),(0,s.jsx)("div",{className:"revoke-self-exclusion-label",children:S("add_comments")}),(0,s.jsx)("textarea",{className:"form__input textarea_container ".concat(b?"input-error":""),placeholder:S("your_comment"),onChange:e=>u(e.target.value),value:d,onFocus:()=>p(!1),"data-testid":"input__RevokeSelfExclusionModal-comments"})]}),(0,s.jsx)("div",{className:"revoke-self-exclusion-modal__footer",children:(0,s.jsx)(E.default,{className:"btn2 ".concat(d?"":"btn-disabled"),onClick:M,type:"submit","data-testid":"btn__RevokeSelfExclusionModal-commentsContinue",children:S("Continue")})})]})});case 3:return(0,s.jsx)(k.default,{isShow:!0,showModal:()=>l(),showClose:!1,newContainerStyle:!0,children:(0,s.jsxs)("div",{className:"manage-cookies__wrapper",children:[(0,s.jsxs)("div",{className:"manage-cookies__header revoke-self-exclusion-header",children:[(0,s.jsx)("div",{className:"manage-cookies__title title-wide",children:S("revoke_selfExclude_approve_no_gambling_issues")}),(0,s.jsx)("button",{onClick:()=>l(),className:"manage-cookies__close-button","data-testid":"btn__RevokeSelfExclusionModal-closeDeclarationStep",children:(0,s.jsx)(w.r,{})})]}),(0,s.jsx)("div",{className:"revoke-self-exclusion-modal__body inline-flex",children:(0,s.jsxs)("div",{className:"revoke-confirmation-wrapper ".concat(f?"input-error":""),onFocus:()=>j(!1),children:[(0,s.jsx)("input",{className:"revoke-confirmation-button",type:"checkbox",id:"Yes",name:"confirmation",value:"Yes",checked:"Yes"===_,onChange:e=>v(e.target.value),"data-testid":"checkbox__RevokeSelfExclusionModal-declarationYes"}),(0,s.jsx)("label",{htmlFor:"Yes",children:S("yes")}),(0,s.jsx)("input",{className:"revoke-confirmation-button",type:"checkbox",id:"No",name:"confirmation",value:"No",checked:"No"===_,onChange:e=>v(e.target.value),"data-testid":"checkbox__RevokeSelfExclusionModal-declarationNo"}),(0,s.jsx)("label",{htmlFor:"No",children:S("no")})]})}),(0,s.jsx)("div",{className:"revoke-self-exclusion-modal__footer",children:(0,s.jsx)(E.default,{className:"btn2 ".concat(""===_?"btn-disabled":""),onClick:P,type:"submit","data-testid":"btn__RevokeSelfExclusionModal-declarationSubmit",children:y?(0,s.jsx)(C.Z,{}):S("Submit")})})]})});case 4:var O;return(0,s.jsx)(k.default,{isShow:!0,showModal:()=>l(),showClose:!1,newContainerStyle:!0,children:(0,s.jsxs)("div",{className:"manage-cookies__wrapper",children:[(0,s.jsxs)("div",{className:"manage-cookies__header revoke-self-exclusion-header",children:[(0,s.jsx)("div",{className:"manage-cookies__title title-narrow",children:S("request_submission")}),(0,s.jsx)("button",{onClick:()=>l(),className:"manage-cookies__close-button","data-testid":"btn__RevokeSelfExclusionModal-closeThankYouStep",children:(0,s.jsx)(w.r,{})})]}),(0,s.jsxs)("div",{className:"revoke-self-exclusion-modal__body",children:[(0,s.jsx)("div",{className:"revoke-self-exclusion-main-text sub-text",children:S("revoke_selfExclude_team_review_7_days")}),(0,s.jsxs)("div",{className:"revoke-self-exclusion-main-text sub-text",children:[S("thanks"),(0,s.jsxs)("span",{children:[", ",null==t?void 0:null===(O=t.WhiteLabel)||void 0===O?void 0:O.Name," "]}),S("support_team")]})]}),(0,s.jsx)("div",{className:"revoke-self-exclusion-modal__footer",children:(0,s.jsx)(E.default,{className:"btn2",onClick:()=>l(),type:"submit","data-testid":"btn__RevokeSelfExclusionModal-closeThankYou",children:S("Close")})})]})})}};var R=t(28881),M=t(64622);let P=e=>{let{changeForm:l}=e,{fetcher:t}=(0,a.a)(),{player:o,mutatePlayer:i}=(0,j.A)({}
1),[d,u]=(0,n.useState)(!1),[v,h]=(0,n.useState)(""),[x,k]=(0,n.useState)(""),[g,N]=(0,n.useState)(""),[w,E]=(0,n.useState)(!1),{config:C}=(0,M.useBrandConfig)(),{controls:P}=(0,y.Z)(),O=(0,_.v4)(),{t:T}=(0,m.$G)(["lexicons"]),Z=async e=>{let l=await t("/api/playResponsibly/doSetExclusion",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(new r({...e,ItemId:+g}))}),s=async()=>{try{await R.Z.info("logout triggered - exclusion-form/index.tsx - line 60 >>> error",{playerId:null==o?void 0:o.PlayerId,player:o,whiteLabelName:null==C?void 0:C.Name.toLowerCase(),jurisdiction:O,response:l},null)}catch(e){console.error("Log error: logout triggered - exclusion-form/index.tsx",e)}};(null==l?void 0:l.Response)&&t("/api/auth/logout?bpc=1").then(e=>{(null==e?void 0:e.ok)&&(s(),i(new c.Z({}),!1).catch(),null==P||P.Logout(),(0,f.Ov)(null==C?void 0:C.Name.toLowerCase()),(0,f.cS)(null==C?void 0:C.Name.toLowerCase()).catch())})},L=async e=>{h(e.months),N(e.months),u(!1)},F=(0,n.useCallback)((e,l,t)=>{let s=l;if(!s||s.match(/^[0-9]+$/)){if("0"===s[0]){var n,a;s=null===(n=null===(a=null==l?void 0:l.split(""))||void 0===a?void 0:a.filter((e,l)=>!!l))||void 0===n?void 0:n.join("")}t(e,s)}},[]),A=e=>{u(!0),e()};return(0,s.jsx)(s.Fragment,{children:(null==o?void 0:o.BlockType)==="SoftBlock"&&"MGA"===O?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{style:{fontSize:"18px",marginBottom:"16px"},children:T("revoke_selfExclude_currently_excluded")}),(0,s.jsxs)("div",{style:{color:"#A7B2D1",marginBottom:"5px"},children:[T("revoke_selfExcluded_period_ends")," ",new Date(null==o?void 0:o.BlockReleaseDate).toLocaleDateString()]}),(0,s.jsx)("div",{style:{display:"inline-flex",alignItems:"center",gap:5,color:"#A7B2D1"},children:T("revoke_selfExcluded_change_exclusion_period")}),(0,s.jsx)("button",{className:"btn",onClick:()=>E(!0),style:{width:"176px",borderRadius:"8px",marginTop:"24px"},"data-testid":"btn__ExclusionLimitsForm-revokeExclusion",children:T("Click here")}),w&&(0,s.jsx)(I,{setRevokeSelfExclusionModal:()=>E(!1),player:o})]}
1):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b,{isSetError:d,setIsSetError:u,onSubmit:L,onHandleSubmit:A,onChangeText:F}),v?(0,s.jsx)(p.Z,{isSEPopup:!0,isTimeoutPopup:!1,isShowModal:v,isSetError:d,setIsShowModal:h,setIsSetError:u,onSubmit:Z,onHandleSubmit:A}):null,x?(0,s.jsx)(S,{changeForm:l,isShowModal:x,setIsShowModal:k}):null]})})};var O=P},98921:function(e,l,t){var s=t(52322),n=t(67190),a=t(63602),o=t(65592),i=t(15102),r=t(75905),c=t(98123),d=t(92496),u=t(70853);let m=e=>{let{isShowModal:l,isSetError:t,textArray:m,title:_,setIsSetError:v,setIsShowModal:h,onSubmit:x,onHandleSubmit:b,onAction:p,onClose:f,isTimeoutPopup:j,isSEPopup:y}=e,{t:k}=(0,c.$G)(["lexicons"]),g=(0,u.v4)(),S=()=>{h(""),(0,d.m)(f)&&f()};return(0,s.jsx)(n.default,{isShow:!!l,showModal:()=>S(),children:(0,s.jsxs)("div",{className:"modal-form__body",children:[(0,s.jsx)("div",{className:"modal-form__header",children:(0,s.jsx)("h2",{className:"heading__text",children:k("Responsible gaming")})}),(()=>{switch(l){case r.zr.PASSWORD:return(0,s.jsx)(a.J9,{initialValues:{...new i.Z({})},onSubmit:x,validationSchema:i.Z.schema,children:e=>{let{values:l,errors:n,handleChange:a,handleSubmit:i}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"modal-form__title",children:k("Please enter your password to confirm your request.")}),(0,s.jsx)("div",{className:"form__column",children:(0,s.jsx)(o.default,{type:"confirm-password",placeholder:"Password",value:l.ItemString,onHandleTextChange:e=>{a("ItemString")(e)},error:n.ItemString,isSetError:t,onFocus:()=>t&&v(!1)})}),(0,s.jsxs)("div",{className:"play-responsibly-form__buttons form__buttons",children:[(0,s.jsx)("button",{className:"btn",onClick:()=>b(i),"data-testid":"btn__LimitsPopup-submitPassword",children:k("submit")}),(0,s.jsx)("button",{className:"btn btn__transparent",onClick:()=>S(),"data-testid":"btn__LimitsPopup-cancel",children:k("cancel")})]})]})}});case r.zr.LIMITS:return(0,s.jsxs)(s.Fragment,{children:[_?(0,s.jsx)("div",{className:"modal-form__title",children:k(_)}):null,(0,s.jsx)("div",{className:"form__column",children:m.map(e=>(0,s.jsx)("p",{className:"play-responsibly-form__text",children:k(e)},e))}),(0,s.jsxs)("div",{className:"play-responsibly-form__buttons form__buttons",children:[(0,s.jsx)("button",{className:"btn",onClick:()=>p(),"data-testid":"btn__LimitsPopup-submitLimits",children:k("submit")}),(0,s.jsx)("button",{className:"btn btn__transparent",onClick:()=>S(),"data-testid":"btn__LimitsPopup-cancel",children:k("cancel")})]})]});default:return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"modal-form__title",children:"10000"===l?k("se_mga_indefinitely"):j?k("UK_Timeout_confirm_title")+": ".concat(k(l)):"UK"===g?k("UK_SE_duration_msg_months",{PERIOD:l}):k("Mga_SE_duration_msg_days")+k(l)}),(0,s.jsx)("div",{className:"form__column",children:(0,s.jsx)("p",{className:"play-responsibly-form__text",children:j?k("UK_Timeout_confirm_body"):"MGA"===g&&y?k("MGA_SE_confirmation_text_body"):k("limits_exclusion_approve")})}),(0,s.jsxs)("div",{className:"play-responsibly-form__buttons form__buttons",children:[(0,s.jsx)("button",{className:"btn",onClick:()=>h(r.zr.PASSWORD),"data-testid":"btn__LimitsPopup-confirm",children:k("confirm")}),(0,s.jsx)("button",{className:"btn btn__transparent",onClick:()=>S(),"data-testid":"btn__LimitsPopup-cancel",children:k("cancel")})]})]})}})()]})})};l.Z=m},36683:function(e,l,t){var s=t(52322),n=t(2784),a=t(65592),o=t(35631),i=t(59060),r=t(98123);let c=(e,l)=>e.label===l.label&&e.value===l.value,d=e=>{var l,t;let{name:d="",listBodyClass:u="",placeholder:m,options:_=[],isSearchable:v=!1,isDisabled:h,autoComplete:x,onChangeHandler:b,optionsTitle:p,defaultOption:f,components:j,onFocusHandler:y,isAbsolute:k=!0,type:g,isOtherOptionDisabled:S,hasCheckmarks:N=!1,noDataText:w="select_search_results_no_data",selectedRightAddon:E,classInput:C,singleValue:I=!1,"data-testid":R}=e,[M,P]=(0,n.useState)(!1),[O,T]=(0,n.useState)(!0),[Z,L]=(0,n.useState)([]),[F,A]=(0,n.use
1State)({label:"",value:""}),[U,D]=(0,n.useState)(""),[G,B]=(0,n.useState)(0),[H,K]=(0,n.useState)([]),{t:$}=(0,r.$G)(),q=(0,n.useRef)(null),Y=(0,n.useRef)(null);(0,n.useEffect)(()=>{var e,l;if(!(null==q?void 0:q.current))return;let t=e=>{var l;(null==q?void 0:null===(l=q.current)||void 0===l?void 0:l.contains(null==e?void 0:e.target))||P(!1)};return window.addEventListener("click",t),B(null===(e=null==q?void 0:null===(l=q.current)||void 0===l?void 0:l.getBoundingClientRect())||void 0===e?void 0:e.x),()=>{window.removeEventListener("click",t)}},[q]);let z=e=>{D(e)},V=(0,i.D)((e,l)=>{K(e.filter(e=>{var t;return null===(t=e.label)||void 0===t?void 0:t.toString().toLowerCase().includes(l.toLowerCase())}))},500);(0,n.useEffect)(()=>{var e,l;(null==Y?void 0:Y.current)&&(null==H?void 0:H.length)&&T((null==Y?void 0:null===(e=Y.current)||void 0===e?void 0:e.scrollHeight)>(null==Y?void 0:null===(l=Y.current)||void 0===l?void 0:l.offsetHeight))},[Y,null==H?void 0:H.length,M]);let J=e=>e.reduce((e,l)=>(e.some(e=>c(e,l))||e.push(l),e),[]),W=e=>{let l={element:e.label,isActive:!1};return(null==j?void 0:j.option)&&(l.element=null==j?void 0:j.option(e)),F.value===e.value&&(null==j?void 0:j.activeOption)&&(l.element=null==j?void 0:j.activeOption(e),l.isActive=!0),l};(0,n.useEffect)(()=>{if(!_.length){L([]),K([]);return}L(J(_))},[_]),(0,n.useEffect)(()=>{I&&!F.value&&1===Z.length&&A(Z[0])},[I,F.value,Z]),(0,n.useEffect)(()=>{if(!f||!(null==Z?void 0:Z.length))return;let e=Z.find(e=>e.value===f.value);e&&A(l=>(null==l?void 0:l.value)?l:e)},[Z,"Currency"!==m&&f]),(0,n.useEffect)(()=>{Z.length&&V(Z,U)},[U,Z]),(0,n.useEffect)(()=>{(null==F?void 0:F.value)&&b&&b(F)},[F]),(0,n.useEffect)(()=>{M&&y&&y()},[M]);let Q=()=>{A({value:340,label:"Other"}),P(!1)};return(0,s.jsx)("div",{className:"select ".concat(h?"disabled":""),ref:q,"data-testid":R,children:I||H.length>1||M?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{"data-testid":"select__Select-trigger",className:"input-button__wrap select__input ".concat(h?"disabled":"form-select-control"," ").concat(null!=C?C:""),onClick:()=>{h||I||P(!M)},style:{justifyContent:"space-between"},children:[(0,s.jsx)(a.default,{type:g,isReadonly:!0,placeholder:null!=m?m:d,value:null==F?void 0:null===(l=F.label)||void 0===l?void 0:l.toString(),onHandleTextChange:e=>{},hasAutoComplete:!!x,autoValue:null!=x?x:"do-not-autofil",rightAddon:E}),!I&&(0,s.jsx)("div",{className:"input-button__btn-wrap",children:(0,s.jsx)(o.r,{})})]}),M&&(0,s.jsxs)("div",{className:"select__options__container ".concat(k?"absolute":""," ").concat(G>window.innerWidth/2?"right":""," ").concat(u),children:[p&&(0,s.jsx)("p",{className:"form__input",children:p}),v&&(0,s.jsx)(a.default,{classInput:C,type:g,placeholder:$("select_search_placeholder"),value:U,onHandleTextChange:e=>{z(e)}}),(0,s.jsxs)("ul",{className:"select__options ".concat(O?"scroll":""),ref:Y,children:[H.map(e=>{let{element:l,isActive:t}=W(e);return(0,s.jsx)("li",{"data-testid":"select__Select-option--".concat(e.value),className:"form__input select__option ".concat(t?"active":""),onClick:()=>{A(e),D(""),P(!1)},children:l},e.value)}),0===H.length&&(0,s.jsx)("li",{className:"form__input select__option",onClick:()=>{S||Q()},children:$(w)})]})]})]}):(0,s.jsx)("div",{className:"input-button__wrap select__input",children:(0,s.jsx)(a.default,{classInput:C,isReadonly:!0,hascheckmark:N,isFocus:!0,touched:!0,type:g,placeholder:null!=m?m:d,value:null==F?void 0:null===(t=F.label)||void 0===t?void 0:t.toString(),autoValue:null!=x?x:"do-not-autofil",rightAddon:E})})})};l.Z=d},59060:function(e,l,t){t.d(l,{D:function(){return s}});let s=(e,l)=>{let t;return function(){for(var s=arguments.length,n=Array(s),a=0;a<s;a++)n[a]=arguments[a];clearTimeout(t),t=setTimeout(()=>e(...n),l)}}},15102:function(e,l,t){t.d(l,{Z:function(){return a}});var s=t(24511),n=t(11768);class a extends n.Z{constructor(e){super(),this.PlayerId="",this.Token="",this.ItemString="",this.ItemId=0,Object.assign(this,e)}}a.schema=s.Ry({PlayerId:s.Z_(),Token:s.Z_(),ItemString:s.Z_().min(6,"Password canât be shorter than 6 characters").required("Please enter your password").test("Please check the correctness of the entered password",(e,l)=>{let t=/[a-z]/.test(e),s=/[0-9]/.test(e),n=0;
1return[t,s].forEach(e=>e?n++:null),n>=2}),ItemId:s.Rx()}).noUnknown()}}]);
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.