PageSourceSearch

https://games.vegasmobilecasino.co.uk/_next/static/chunks/9488.8d7400934d1db175.js

js vegasmobilecasino.co.uk collected 2026-10-02 18:37:00 UTC 2,764 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9488],{49488:function(a,t,e){"use strict";e.r(t),e.d(t,{default:function(){return v}});var n=e(52322),i=e(2784),l=e(63602),r=e(98123),s=e(76767),o=e(70906),u=e(7959),c=e(63034),d=e.n(c),m=e(67902),h=e(25237),_=e.n(h),p=e(51286),w=e(56346);let f=_()(()=>e.e(1999).then(e.bind(e,91999)),{loadableGenerated:{webpack:()=>[91999]},ssr:!1});function v(a){let{methodInfo:t,onHandleSubmit:e,onSubmit:c,isSetError:h,setIsSetError:_}=a,[v,b]=(0,i.useState)(""),{t:x}=(0,r.$G)(),{data:g}=(0,p.ZP)("/api/player/getDefault"),y=async a=>{let e=await (0,m.y)(a,t).catch(),n=null==e?void 0:e.Other;return(null==n?void 0:n.Range)?b(null==n?void 0:n.Range):b(""),e};return(0,i.useEffect)(()=>{t&&(s.Z.schema=(0,m.z)(t))},[t]),(0,n.jsx)(l.J9,{enableReinitialize:!0,validate:a=>y(a),onSubmit:c,initialValues:{...new s.Z({...(0,u.At)(null==t?void 0:t.inputFields,null==g?void 0:g.ip)})},children:a=>{let{values:t,errors:i,handleChange:l,handleSubmit:r,isSubmitting:s}=a;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"form__column m__b--6 w__max--305 w__max--158",children:[(0,n.jsx)("label",{className:"form__label",htmlFor:"amountToWithdrawal",children:x("withdrawal_amount")}),(0,n.jsx)(w.Z,{value:t.Amount,handleChange:l,error:x(i.Amount)+"".concat(v?" ("+v+")":""),isSetError:h,onFocus:()=>h&&_(!1)})]}),(0,n.jsx)("div",{className:d().infoContainer,children:(0,n.jsx)(f,{})}),(0,n.jsx)(o.default,{className:"btn m__t--4",onClick:()=>e(r),disabled:s,isLoading:s,"data-testid":"btn__WithdrawalDefaultFormForm-submit",children:x("withdrawal")})]})}})}},67902:function(a,t,e){"use strict";e.d(t,{y:function(){return r},z:function(){return l}});var n=e(76767),i=e(24511);let l=a=>n.Z.schema.shape({Amount:i.Z_().matches(/^\d+$/,"Amount should be a number").test({name:"Amount",test:function(){let{Amount:t=0}=this.parent;return+t>(null==a?void 0:a.maxWithdrawal)?this.createError({type:"max",message:"cashier_amount_max",params:{rule:null==a?void 0:a.maxWithdrawal}}):+t<(null==a?void 0:a.minWithdrawal)?this.createError({params:{rule:null==a?void 0:a.minWithdrawal},type:"min",message:"cashier_amount_min"}):void 0}}).required("cashier_amount_required")}),r=async(a,t)=>{let e=n.Z.schema,i={};try{await e.validate(a,{abortEarly:!1})}catch(a){a.inner.forEach(a=>{"min"===a.type&&(i[a.path]="".concat(a.message),i[a.path]="".concat(i[a.path]),i.Other={Range:"".concat(null==t?void 0:t.minWithdrawal," - ").concat(null==t?void 0:t.maxWithdrawal)}),"max"===a.type&&(i[a.path]="".concat(a.message),i[a.path]="".concat(i[a.path]),i.Other={Range:"".concat(null==t?void 0:t.minWithdrawal," - ").concat(null==t?void 0:t.maxWithdrawal)})})}return i}},63034:function(a){a.exports={subTitle:"form_subTitle__deKWg"}}}]);

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.