PageSourceSearch

https://www.spinandwin.com/build/_shared/bonusHistory-5C7LTEFF.js

js spinandwin.com collected 2026-09-26 06:50:11 UTC 4,728 bytes, 1 lines download raw bytes

1import{a as p,b as M}from"/build/_shared/chunk-DOJH6AOT.js";import{h as L}from"/build/_shared/chunk-HQKYMZTK.js";import{a as I}from"/build/_shared/chunk-BSPUWKEF.js";import"/build/_shared/chunk-5Z5IJJIE.js";import{a as w}from"/build/_shared/chunk-HFUZZOIL.js";import"/build/_shared/chunk-MQJDYMCS.js";import"/build/_shared/chunk-QFXWV5ET.js";import"/build/_shared/chunk-BM3QBHZU.js";import"/build/_shared/chunk-JSPWYSGG.js";import"/build/_shared/chunk-RZAQFZQG.js";import"/build/_shared/chunk-RAQE33EU.js";import{a as T}from"/build/_shared/chunk-LWRH4PUZ.js";import"/build/_shared/chunk-VJCLY7ZY.js";import{a as N}from"/build/_shared/chunk-LXYKMAPX.js";import"/build/_shared/chunk-H5UJJ74Q.js";import{b as B,z as v}from"/build/_shared/chunk-TQS5E2SK.js";import{q as D,u as h}from"/build/_shared/chunk-RBFCHJWR.js";import"/build/_shared/chunk-GZJBGZQO.js";import{a as E}from"/build/_shared/chunk-JUM7J4TY.js";import{a as d}from"/build/_shared/chunk-RW7BUM27.js";import{e as l}from"/build/_shared/chunk-ADMCF34Z.js";var s=l(E());var e=l(d());function g(){let{siteConfig:o}=h();(0,s.useEffect)(()=>{let t="react-datepicker-css";if(document.getElementById(t))return;let k=Object.assign(document.createElement("link"),{id:t,rel:"stylesheet",href:M});document.head.appendChild(k)},[]);let r=new Date,a=new Date(r.getFullYear(),r.getMonth()-1,r.getDate());a.setHours(0,0,0,0);let i=new Date(r);i.setHours(23,59,59,999);let[c,y]=(0,s.useState)(a),[b,f]=(0,s.useState)(i),x=o.bonusCategories?o.bonusCategories.map(t=>
1t.content):[],[C,F]=(0,s.useState)(x[0]),[u,H]=(0,s.useState)(!1),[m,S]=(0,s.useState)(!0),O=(0,s.useRef)(null),P=()=>{y(a),f(i),H(!u)},R=()=>{H(!u)};return(0,e.jsxs)("div",{className:"h-full m-4",children:[o.bonusHistoryNote&&(0,e.jsx)("p",{className:"text-bonusHistoryColor pb-4",children:o.bonusHistoryNote}),(0,e.jsx)("p",{className:"text-bonusHistoryColor pb-2",children:"Filter by bonus type:"}),(0,e.jsx)(L,{styles:{option:(t,k)=>({...t,minHeight:"56px",maxHeight:"auto",overflowY:"auto",display:"flex",alignItems:"center"})},classNames:{control:t=>"pl-2 h-14 border bg-textBoxBackgroundColor text-textBoxColor border-textBoxBorderColor",option:t=>"pl-2 h-8 text-textBoxColor bg-dropdownOptionEvenBackgroundColor odd:bg-dropdownOptionOddBackgroundColor",menu:t=>"bg-textBoxBackgroundColor border border-textBoxFocusedBorderColor"},isSearchable:!1,className:"pb-4",defaultValue:C,onChange:F,options:x,unstyled:!0}),(0,e.jsxs)("div",{className:"grid grid-flow-col items-center",children:[(0,e.jsx)("p",{className:"text-bonusHistoryColor",children:"Filter by date range:"}),(0,e.jsx)("div",{className:"text-bonusHistoryLinkColor underline justify-self-end cursor-pointer",onClick:P,children:"Reset"})]}),(0,e.jsxs)("div",{className:"grid grid-flow-col items-center py-4",children:[(0,e.jsx)(p,{selected:c,onChange:t=>{t.setHours(0,0,0,0),y(t)},className:"h-14 max-w-[119px] sm:max-w-[150px] text-sm border border-datePickerBorderColor bg-datePickerBackgroundColor text-datePickerColor",minDate:new Date().setMonth(r.getMonth()-o.bonusHistoryDateRangeLimitInMonths),maxDate:new Date().setDate(r.getDate()-1),dateFormat:"dd/MM/yyyy"}),(0,e.jsx)("p",{className:"px-[15px] sm:px-[25px]",children:"to"}),(0,e.jsx)(p,{selected:b,onChange:t=>{t.setHours(23,59,59,999),f(t)},minDate:new Date().setMonth(r.getMonth()-o.bonusHistoryDateRangeLimitInMonths),maxDate:new Date().setDate(r.getDate()),className:"h-14 max-w-[119px] sm:max-w-[150px] text-sm border border-datePickerBorderColor bg-datePickerBackgroundColor text-datePickerColor",dateFormat:"dd/MM/yyyy"})]}),(0,e.jsx)(B,{type:"primary",label:o.bonusHistoryCTAText,size:"large",className:"w-full mb-4",onClick:R,disabled:m,loading:m,svgSource:o.spinnerSVG.Url}),(0,e.jsx)(T,{children:()=>(0,e.jsx)(I,{startDate:c,endDate:b,bonusType:C.value,refresh:u,loading:m,setLoading:S,noResultsText:o.bonusHistoryNoResults,ref:O})})]})}var n=l(d());function A({onCloseClick:o,onBackClick:r,profile:a,liveHelpUrl:i,liveHelpEnabled:c}){return(0,n.jsxs)("div",{className:"flex flex-col h-full",children:[(0,n.jsx)(v,{username:N(a),backIconSrc:"/images/back-icon.svg",accountIconSrc:"/images/account-icon.svg",closeIconSrc:"/images/close-icon.svg",menuTitle:"BONUS HISTORY",menuUserClasses:"text-bonusHistoryAccountMenuHeaderTextTopColor",menuTitleClasses:"text-bonusHistoryAccountMenuHeaderTextBottomColor",onBackIconClick:()=>{r&&r()},onCloseIconClick:()=>{o()}}),(0,n.jsx)(w,{leftContent:c&&(0,n.jsx)(D,{className:"btn btn-ghost underline text-bonusHistoryLiveHelpLinkColor",to:i,rel:"noopener noreferrer",target:"_blank",children:"Live Help"})}),(0,n.jsx)("div",{className:"h-full overflow-y-scroll",id:"bonusHistoryContainer",children:(0,n.jsx)(g,{})})]})}export{A as default};

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.