1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8044,9055],{29055:(e,t,a)=>{a.r(t),a.d(t,{PNP_HERO_FORM_ID:()=>u,default:()=>i});var r=a(6029),o=a(12382),n=a(10177),s=a(1721);a(55729);let u="pnp-hero-form",i=({amount:e})=>{let{t}=(0,s.Bd)("auth"),{data:a}=(0,n.oN)(),{isContainModal:i}=(0,o.hS)();return i(o.uj.SIGN_UP)?null:(0,r.jsx)("button",{type:"submit",form:u,disabled:a?.isAuthorizing||!(e=>{if(!/^\d+$/.test(e))return!1;let t=Number(e);return t>=10&&t<=5e3})(e),"data-testid":"pnp-submit-button",className:"thumbnail-17 h-[40px] w-[213px] bg-[#F60] font-semibold text-[#002356] text-base leading-[22px] hover:bg-[#ff8b3f] active:bg-[#DB4A00] disabled:cursor-not-allowed disabled:bg-[#b73300] disabled:text-[#F60] disabled:hover:bg-[#b73300] lg:w-[299px]",children:t("DEPOSIT_AND_PLAY")})}},88044:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var r=a(6029),o=a(12382),n=a(10177),s=a(55729),u=a(10832),i=a(29055);let l=({onEngagedChange:e,amount:t,onAmountChange:a})=>{let{isContainModal:l,setModalName:d}=(0,o.hS)(),{data:f}=(0,n.oN)(),[b,h]=(0,s.useState)(!1),c=l(o.uj.SIGN_UP),p=(0,s.useCallback)(()=>e(!0),[e]),g=(0,s.useCallback)(()=>d(o.uj.SIGN_UP,{isPnp:!0}),[d]);(0,s.useEffect)(()=>()=>e(!1),[e]);let m=(0,s.useRef)(null);(0,s.useEffect)(()=>{let t=t=>{m.current?.contains(t.target)||f?.isAuthorizing||e(!1)};return document.addEventListener("pointerdown",t),()=>document.removeEventListener("pointerdown",t)},[f?.isAuthorizing,e]);let N=(0,s.useCallback)(t=>{t.currentTarget.contains(t.relatedTarget)||b||f?.isAuthorizing||e(!1)},[b,f?.isAuthorizing,e]);return c?null:(0,r.jsx)("div",{ref:m,className:"mt-4 w-full text-left","data-testid":"pnp-hero-fields",onTouchStart:e=>e.stopPropagation(),onPointerDown:p,onFocus:p,onBlur:N,onInput:e=>{h(!!e.target.value),p()},children:(0,r.jsx)(u.A,{onAuthorizeStart:g,amount:t,onAmountChange:a,layout:{hideInputLabel:!0,hideErrorSummary:!0,steadyInput:!0,formId:i.PNP_HERO_FORM_ID,hideSubmit:!0,showSupportLink:!1,showPaymentLogo:!1,chipThumbnail:!0,chipClassName:"h-[44px] border-[#8fe5ff] bg-[#8fe5ff] hover:bg-[#a9edff]",inputClassName:"mt-2",ctaWrapperClassName:"mt-3",chipButtonClassName:"bg-[#8fe5ff] text-[#002356] hover:bg-[#a9edff] hover:text-[#002356]",chipSelectedClassName:"border-[#8fe5ff] bg-[#8fe5ff] hover:bg-[#8fe5ff]",chipSelectedButtonClassName:"bg-primary-500 text-secondary-500 hover:bg-primary-500 hover:text-secondary-500",ctaClassName:"h-[40px] bg-[#F60] hover:bg-[#ff8b3f] active:bg-[#DB4A00]",ctaButtonClassName:"bg-[#F60] text-[#002356] hover:bg-[#ff8b3f] active:bg-[#DB4A00]"}})})}}}]); 2//# sourceMappingURL=8044.c20316f7b24ff960.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.