sy-ui-lib 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -55,5 +55,5 @@ React keys must be passed directly to JSX without using spread:
55
55
  transition-colors duration-200
56
56
  ${h?"border-secondary":""}
57
57
  ${s?"cursor-not-allowed":"cursor-pointer"}
58
- `,children:h&&o.jsx("span",{className:"w-4 h-4 rounded-full bg-secondary"})}),o.jsx("span",{children:d.label})]},d.value.toString())})})},F7=e=>{const{data:t,scrollSpeed:n=100,defaultTitle:r="No upcoming events. Stay tuned!"}=e,s=g.useRef(null),i=g.useRef(null);return g.useEffect(()=>{const a=s.current,l=i.current;if(a&&l){a.style.cursor="pointer";const C=a.offsetWidth,c=l.offsetWidth,d=(c+C)/n,h=[{transform:`translateX(${C}px)`},{transform:`translateX(-${c}px)`}],f=l.animate(h,{duration:d*1e3,iterations:Number.POSITIVE_INFINITY,easing:"linear"}),m=()=>f.pause(),x=()=>f.play();return a.addEventListener("mouseenter",m),a.addEventListener("mouseleave",x),()=>{f.cancel(),a.removeEventListener("mouseenter",m),a.removeEventListener("mouseleave",x)}}},[n]),o.jsx("div",{className:"overflow-hidden h-9 flex items-center bg-primary",ref:s,children:o.jsx("div",{ref:i,className:"whitespace-nowrap will-change-transform flex items-center",children:(t==null?void 0:t.length)>0?o.jsx(o.Fragment,{children:t==null?void 0:t.map((a,l)=>{var C;return o.jsxs("div",{className:"flex items-center mx-10",children:[o.jsx(M,{text:a==null?void 0:a.title,variant:"captionBold",color:"error"}),o.jsx(z,{icon:a==null?void 0:a.iconName,size:24,color:"error",className:"ml-2 mr-15"}),((C=a==null?void 0:a.events)==null?void 0:C.length)>0&&a.events.map((c,u)=>o.jsxs("span",{className:"mr-10 whitespace-nowrap flex items-center",children:[o.jsx("span",{className:"mr-2",children:o.jsx(M,{text:c.timeLabel,variant:"caption",color:"secondary",underline:!0})}),o.jsx(M,{text:c.description,variant:"captionBold",color:"secondary"})]},`${u+1}-${c.timeLabel}`))]},`${l}${a==null?void 0:a.title}`)})}):o.jsx(M,{variant:"captionBold",text:r,color:"error"})})})},B7=e=>{const{titles:t,bets:n}=e,[r,s]=g.useState(!1),i={Back:{typeColor:"bg-babyBlue",bgColor:"bg-cloudBlue"},Lay:{typeColor:"bg-watermelonRed",bgColor:"bg-softRosePink"}},a=["Yes","Back","Even","Odd"],l=c=>{const{odds:u,showTitles:d=!1}=c;return o.jsx("div",{className:"flex items-center ml-auto justify-between min-w-32 lg:min-w-40",children:u==null?void 0:u.map(h=>o.jsx("div",{children:o.jsx(M,{variant:d?"caption":"captionBold",text:d?h.title:h.value})},h.title))})},C=({label:c,value:u})=>o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsx(M,{variant:"caption",text:c,color:"slategray"}),o.jsx(M,{variant:"caption",text:u,color:"slategray"})]});return o.jsxs("div",{className:"w-full",children:[o.jsx("div",{className:"hidden lg:block",children:o.jsx(I5,{variant:"EventTitle",title:t.slipTitle||""})}),o.jsx("div",{className:"max-h-64 overflow-y-auto p-1 bg-tertiary",children:o.jsx("div",{className:"space-y-1",children:n==null?void 0:n.map(c=>{const u=a.includes(c.type)?"Back":"Lay",{typeColor:d,bgColor:h}=i[u];return r?o.jsxs("div",{children:[o.jsxs("div",{className:`py-1 px-2 flex items-center ${d}`,children:[o.jsx(M,{variant:"caption",text:`${c.type} ${c.type===f1.BACK?`(${t.betFor})`:`(${t.betAgainst})`}`}),o.jsx(l,{odds:c.oddsDetails,showTitles:!0})]}),o.jsxs("div",{className:h,children:[o.jsxs("div",{className:"p-1 gap-4 flex items-center",children:[o.jsx(C,{label:t.reference,value:c.reference}),o.jsx(C,{label:t.time,value:c.time})]}),o.jsx("hr",{className:`border-t ${d}`}),o.jsxs("div",{className:"flex p-1 gap-2",children:[o.jsxs("div",{children:[o.jsx(M,{variant:"captionBold",text:c.subTitle}),o.jsx(M,{variant:"caption",text:c.result,color:"slategray"})]}),o.jsx(l,{odds:c.oddsDetails})]})]})]},c.id):o.jsxs("div",{className:`px-2 py-1 flex items-center ${h} gap-2`,children:[o.jsx("div",{className:`flex items-center justify-center p-1 min-w-12 rounded-md ${d}`,children:o.jsx(M,{variant:"captionBold",text:c.type})}),o.jsxs("div",{children:[o.jsx(M,{variant:"captionBold",text:c.subTitle}),o.jsx(M,{variant:"smallMedium",text:c.result,color:"slategray"})]}),o.jsx(l,{odds:c.oddsDetails})]},c.id)})})}),o.jsxs("div",{className:"flex items-center gap-1 py-2 px-3 bg-tertiary rounded-b-lg",children:[(n==null?void 0:n.length)>0&&o.jsx($2,{checked:r,onChange:c=>s(c.target.checked)}),o.jsx(M,{variant:"caption",text:(n==null?void 0:n.length)>0?t.betInfo:t.nullMessage})]})]})},T7=({slides:e,isLoading:t=!1,altImageUrl:n="",interval:r=3e3,loop:s=!0,pauseOnHover:i=!0,className:a=""})=>{const[l,C]=g.useState(0),c=g.useRef(null),[u,d]=g.useState(!1),h=g.useCallback(()=>{C(f=>f===e.length-1?s?0:f:f+1)},[e.length,s]);return g.useEffect(()=>{if(i&&u)return;function f(){h(),c.current=setTimeout(f,r)}return c.current=setTimeout(f,r),()=>{c.current&&clearTimeout(c.current)}},[u,r,i,h]),o.jsx("div",{className:`relative overflow-hidden w-full aspect-19/6 max-h-82.5 rounded-2xl shadow-lg z-level-0 ${a}`,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:t?o.jsx("div",{className:"flex justify-center items-center h-40 md:h-96",children:o.jsx(E5,{className:"animate-spin"})}):o.jsxs(o.Fragment,{children:[e==null?void 0:e.map((f,m)=>o.jsx("div",{className:`absolute inset-0 transition-opacity duration-700 ease-in-out ${m===l?"opacity-100 z-level-1":"opacity-0 z-level-0"}`,children:o.jsx("img",{src:f.imageURL||n,alt:f.alt||"slide image",className:"relative w-full h-full object-fill"})},f.id)),o.jsx("div",{className:"absolute z-level-2 bottom-4 left-1/2 transform -translate-x-1/2 flex space-x-2",children:e==null?void 0:e.map((f,m)=>o.jsx("button",{type:"button",onClick:()=>C(m),className:`h-2 bg-white rounded-full cursor-pointer transition-all duration-300 ${m===l?"w-8":"w-2"}`,"aria-label":`Go to slide ${m+1}`},f.id))})]})})},$7=({betSlipVariant:e,slipTitle:t,betSlipLabels:n,betDetails:r,betButtonAmounts:s=[],defaultStake:i=0,defaultOdds:a,minBet:l,maxBet:C,errorMessage:c,footerCTA:u,projectedPL:d,handleBetPlacement:h})=>{const f={Back:{primaryBg:"bg-babyBlue",secondaryBg:"bg-cloudBlue",border:"border-babyBlue"},Lay:{primaryBg:"bg-watermelonRed",secondaryBg:"bg-softRosePink",border:"border-watermelonRed"}},x=["Yes","Back","Even","Odd"].includes(e)?"Back":"Lay",{primaryBg:p,secondaryBg:j,border:y}=f[x],[w,k]=g.useState(i),[S,v]=g.useState(a);g.useEffect(()=>{k(i),v(a)},[i,a]);const L=g.useRef(h);g.useEffect(()=>{L.current=h},[h]),g.useEffect(()=>{L.current({stake:w,odds:S})},[w,S]);const N=H=>o.jsx("div",{className:"text-center",children:o.jsx(M,{variant:"caption",text:H})},H),E=H=>{const V=Number(H.target.value),D=a-T1.LIMIT,W=a+T1.LIMIT;V<D||V>W||v(V)};return o.jsxs("div",{className:"pb-2 bg-brightgray",children:[o.jsxs("div",{className:`p-2 grid grid-cols-2 items-center ${p}`,children:[o.jsx(M,{variant:"caption",text:t}),o.jsxs("div",{className:"flex items-center justify-end mr-10",children:[N(n.pLValueTitle),o.jsx("div",{className:"mx-1 min-w-8 max-w-16 text-right",children:o.jsx(M,{variant:"captionBold",text:d})})]})]}),o.jsxs("div",{className:j,children:[o.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-2",children:[o.jsxs("div",{className:"flex flex-col justify-center m-2",children:[o.jsx(M,{variant:"captionBold",text:r.betTitle}),o.jsx(M,{variant:"caption",text:r.betDescription})]}),o.jsxs("div",{className:"flex items-center gap-1 justify-end px-2",children:[o.jsxs("div",{className:"flex flex-col flex-start items-center gap-1",children:[N(n.oddsTitle),o.jsx("input",{type:"number",step:T1.NUMBER_FILED_STEPS,value:S,min:a-T1.LIMIT,max:a+T1.LIMIT,onChange:E,onKeyDown:H=>H.preventDefault(),disabled:["Yes","No","Odd","Even"].includes(e),className:"min-w-12 max-w-14 h-10 rounded-sm px-1 bg-white border-0"})]}),o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"flex flex-col items-center gap-1",children:[N(n.stakeTitle),o.jsx("input",{type:"text",value:w,onChange:H=>{const V=H.target.value;u3.NUMBER_INPUT_REGEX.test(V)&&k(Number(V))},className:"min-w-12 max-w-16 h-10 rounded-sm p-2 bg-white border-0"})]}),w<l.amount&&o.jsxs("div",{className:"z-level-1 absolute top-full left-0 mt-1 text-xs text-error bg-white border border-error rounded px-2 py-1 shadow-md",children:[l.errorMessage," ",l.amount]}),C&&w>C.amount&&o.jsxs("div",{className:"z-level-1 absolute top-full left-0 mt-1 text-xs text-error bg-white border border-error rounded px-2 py-1 shadow-md",children:[C.errorMessage," ",C.amount]})]})]})]}),o.jsx("div",{className:"h-auto flex flex-wrap gap-2 overflow-x-auto mt-4 mx-2 mb-2 whitespace-nowrap no-scrollbar",children:s.length>0&&s.map(H=>o.jsx(n1,{text:`+${X1(H)}`,size:"small",variant:"outline",onClick:()=>k(V=>V+H)},H))}),o.jsxs("div",{className:`h-6 flex items-center justify-end border-t border-b p-2 gap-4 ${y}`,children:[o.jsx(M,{variant:"captionBold",text:`${l.title}: ${l.amount}`}),C&&o.jsx(M,{variant:"captionBold",text:`${C.title}: ${C.amount}`})]})]}),c&&o.jsx("div",{className:"px-2 mt-1",children:o.jsx(M,{variant:"caption",color:"error",text:c})}),u&&o.jsxs("div",{className:"flex items-center justify-between px-2 py-1",children:[o.jsx(n1,{text:"Clear",variant:"ghost",size:"small",onClick:()=>{k(0)}}),o.jsx("div",{className:"flex items-center justify-end mt-1 mr-2 gap-2",children:u.map((H,V)=>o.jsx(n1,{...H},H.text||V))})]})]})},X2=[{code:"+1",shortName:"US",fullName:"United States"},{code:"+91",shortName:"IND",fullName:"India"},{code:"+44",shortName:"UK",fullName:"United Kingdom"},{code:"+61",shortName:"AUS",fullName:"Australia"},{code:"+81",shortName:"JPN",fullName:"Japan"},{code:"+49",shortName:"DE",fullName:"Germany"},{code:"+33",shortName:"FR",fullName:"France"},{code:"+39",shortName:"IT",fullName:"Italy"},{code:"+7",shortName:"RU",fullName:"Russia"},{code:"+55",shortName:"BR",fullName:"Brazil"},{code:"+27",shortName:"ZA",fullName:"South Africa"},{code:"+82",shortName:"KR",fullName:"South Korea"},{code:"+34",shortName:"ES",fullName:"Spain"},{code:"+46",shortName:"SE",fullName:"Sweden"},{code:"+31",shortName:"NL",fullName:"Netherlands"},{code:"+52",shortName:"MX",fullName:"Mexico"},{code:"+20",shortName:"EG",fullName:"Egypt"},{code:"+90",shortName:"TR",fullName:"Turkey"},{code:"+66",shortName:"TH",fullName:"Thailand"},{code:"+65",shortName:"SG",fullName:"Singapore"},{code:"+62",shortName:"ID",fullName:"Indonesia"},{code:"+98",shortName:"IR",fullName:"Iran"},{code:"+64",shortName:"NZ",fullName:"New Zealand"},{code:"+41",shortName:"CH",fullName:"Switzerland"},{code:"+351",shortName:"PT",fullName:"Portugal"},{code:"+353",shortName:"IE",fullName:"Ireland"}],I7={true:"border-error focus-within:border-error",false:"border-brightgray focus-within:border-smokyblack"},A7={true:"bg-brightgray",false:"bg-white"},W7=e=>{const{label:t,id:n="",name:r="",value:s="",onChange:i=()=>{},placeholder:a="",isRequired:l=!1,className:C="",isDisabled:c=!1,hasError:u=!1,errorMessage:d="",...h}=e,[f,m]=s.split("-"),[x,p]=g.useState(!1),j=X2.find(N=>N.code===f)||X2[0],y=g.useRef(null);g.useEffect(()=>{const N=E=>{y.current&&!y.current.contains(E.target)&&p(!1)};return document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[]);const w=N=>{p(!1),i==null||i(`${N}-${m||""}`)},k=N=>{i==null||i(`${f||X2[0].code}-${N}`)},S=`${x?"relative":""} flex items-center border rounded-lg px-7 py-4 min-h-16 ${I7[`${u}`]} ${A7[`${c}`]}`,v=`flex-1 w-full font-roboto text-base text-smokyblack font-normal focus:outline-none focus:ring-0 focus:border-slategray text-black font-normal ${C}`,L=`${t}${l?"*":""}`;return o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsx(M,{variant:"body1",text:L,color:u?"error":"slategray"}),o.jsxs("div",{className:S,children:[o.jsxs("div",{className:"mr-2",ref:y,children:[o.jsxs("button",{type:"button",className:"flex items-center cursor-pointer gap-1",onClick:()=>!c&&p(!x),children:[o.jsx(M,{variant:"subtitle1",text:j.shortName,color:"smokyblack"}),o.jsx(z,{icon:x?"caretUp":"caretDown",color:"smokyblack"}),o.jsx("div",{className:"h-7 border border-neutralGray"}),o.jsx(M,{variant:"subtitle1",text:j.code,color:"smokyblack"})]}),x&&o.jsx("ul",{className:"absolute top-full my-1 left-0 w-full bg-white border border-brightgray rounded-lg shadow-lg z-level-3 max-h-60 overflow-auto",children:X2.map((N,E)=>{const H=N.code===j.code,V=H?"white":"slategray";return o.jsx("li",{className:`px-3 py-2 flex items-center gap-2 cursor-pointer hover:bg-brightgray ${H?"bg-secondary text-white hover:bg-secondary/85":""}`,onClick:()=>w(N.code),onKeyUp:D=>{(D.key==="Enter"||D.key===" ")&&w(N.code)},children:o.jsx(M,{variant:"caption",text:`${N.code} ${N.fullName} (${N.shortName})`,color:V})},`${N.code}-${E}`)})})]}),o.jsx("input",{id:n,name:r,type:"tel",value:m||"",onChange:N=>{k(N.target.value)},placeholder:a,className:v,disabled:c,...h})]}),u&&d&&o.jsx("div",{className:"flex justify-end",children:o.jsx(M,{variant:"caption",text:d,color:"error"})})]})},Y7=e=>{const{text:t,onClick:n}=e;return o.jsx("button",{type:"button",onClick:n,className:"w-40 px-5 py-2 flex items-center text-xs font-normal tracking-tight transition-all duration-200 rounded-lg hover:bg-brightgray cursor-pointer",children:o.jsx(M,{variant:"caption",text:t})})},z7=e=>{const{items:t,lastItem:n}=e;return o.jsx("div",{className:"w-fit bg-white shadow-md rounded-lg",children:o.jsxs("ul",{className:"flex flex-col",children:[t.length===0?o.jsx("div",{className:"flex justify-center w-40 py-2",children:o.jsx(M,{variant:"caption",text:"No data available!",color:"slategray"})}):t.map(r=>o.jsx("li",{children:o.jsx(Y7,{...r})},r.text)),!!n&&o.jsx("li",{children:o.jsxs("button",{type:"button",onClick:n.onClick,className:"w-40 px-5 py-2 flex items-center gap-3 hover:bg-offwhite border-t border-brightgray rounded-b-lg cursor-pointer",children:[!!n.text&&o.jsx(M,{text:n.text,variant:"subtitle2",color:"techBlue"}),!!n.iconName&&o.jsx(z,{icon:n.iconName,color:"techBlue"})]})})]})})},G7=e=>{const{steps:t}=e;return o.jsx("div",{className:"flex items-center justify-between w-full",children:t==null?void 0:t.map((n,r)=>{var c;const s=r===t.length-1,i=(c=t[r+1])==null?void 0:c.status,a=n.status==="completed"?o.jsx("div",{className:"p-[6px] md:p-4 bg-secondary rounded-full flex items-center justify-center shadow-lg",children:o.jsx("div",{className:"p-[2px] md:p-1 bg-white/40 rounded-full flex items-center justify-center",children:o.jsx("div",{className:"p-[2px] md:p-[6px] bg-white/30 rounded-full flex items-center justify-center",children:o.jsx("div",{className:"flex items-center justify-center bg-secondary/60 rounded-full",children:o.jsx(z,{icon:"doneFill",size:20,color:"white"})})})})}):n.status==="inProgress"?o.jsx("div",{className:"p-3 md:p-5 rounded-full bg-secondary flex items-center justify-center",children:o.jsx("div",{className:"p-1 md:p-2 bg-white/30 rounded-full flex items-center justify-center",children:o.jsx("div",{className:"w-2 h-2 md:w-4 md:h-4 bg-white rounded-full"})})}):o.jsx("div",{className:"p-5 md:p-9 rounded-full bg-brightgray flex"}),l=n.status&&i==="completed"?"bg-secondary":"bg-brightgray",C={...n.title,color:n.status==="pending"?"neutralGray":n.title.color};return o.jsxs("div",{className:"flex-1 flex flex-col items-center",children:[o.jsxs("div",{className:"relative flex items-center justify-center w-full",children:[o.jsx("div",{className:"flex justify-center",children:a}),!s&&o.jsx("div",{className:"absolute top-1/2 left-[calc(50%+20px)] md:left-[calc(50%+36px)] w-[calc(100%-20px)] md:w-[calc(100%-36px)]",children:o.jsx("div",{className:`h-[2px] w-full ${l}`})})]}),o.jsx("div",{className:"mt-2 md:mt-4 text-center",children:o.jsx(M,{variant:n.title.variant??"caption",...C})})]},`${r+1}`)})})},q7=e=>{const{walletData:t,footerCTA:n,redirectLinks:r}=e||{},{isMobile:s}=A1();return o.jsxs("div",{className:"max-w-56 rounded-md bg-primary shadow-md shadow-white p-2",children:[o.jsxs("div",{className:"pb-2",children:[t==null?void 0:t.map(i=>{var a,l,C;return o.jsxs("div",{className:"flex items-center justify-between gap-2",children:[o.jsx("div",{className:"flex-1",children:o.jsx(M,{text:(i==null?void 0:i.key)??"",variant:"caption",color:"white"})}),o.jsx("div",{className:"flex-1 text-left",children:o.jsx(M,{text:(i==null?void 0:i.value)??"",variant:"captionBold",color:(i==null?void 0:i.color)??"white"})}),!s&&((a=i==null?void 0:i.info)==null?void 0:a.title)&&o.jsx(c4,{title:(l=i==null?void 0:i.info)==null?void 0:l.title,position:(C=i==null?void 0:i.info)==null?void 0:C.position,children:o.jsx(z,{icon:"info",color:"white"})})]},i.key)}),o.jsx("div",{className:"flex justify-between pt-2 px-3 gap-2 flex-wrap",children:n==null?void 0:n.map((i,a)=>o.jsx(n1,{text:(i==null?void 0:i.text)??"",variant:i==null?void 0:i.variant,size:"extraSmall",onClick:i==null?void 0:i.onClick,disabled:i==null?void 0:i.disabled},(i==null?void 0:i.text)??`${a+1}`))})]}),o.jsx("div",{className:"border-t border-brightgray pt-2 px-2",children:r==null?void 0:r.map((i,a)=>o.jsxs("button",{onClick:i==null?void 0:i.onClick,type:"button",className:"flex justify-between gap-2 py-1 w-full",children:[o.jsx(M,{text:(i==null?void 0:i.title)??"",variant:"caption",color:"white"}),o.jsx(z,{icon:"caretRight",color:"white"})]},`${a+1}-${i==null?void 0:i.title}`))})]})},U7=({id:e="",name:t="",label:n="",isRequired:r=!1,hasError:s=!1,errorMessage:i="",isDisabled:a=!1,onChange:l,instructionText:C,supportText:c,supportFormate:u,maxFiles:d=10,maxLimitMessage:h="Upload limit reached. Maximum allowed files",invalidFileMessage:f="Invalid file type.",maxFileSize:m=1,maxFileSizeMessage:x="File size exceeds the allowed limit."})=>{const[p,j]=g.useState(!1),[y,w]=g.useState([]),[k,S]=g.useState(null),v=g.useRef(null),L=u.map(R=>`.${R.toLowerCase().replace(u3.FILE_FORMAT_REGEX,"")}`).join(","),N=y.length>=d,E=`${n}${r?" *":""}`,H=u.join(", ").toUpperCase(),V=s?"border-error":p?"border-secondary":"border-slategray",D=R=>{var Z;return((Z=R.name.split(".").pop())==null?void 0:Z.toLowerCase())??""},W=R=>{l==null||l({target:{name:t,files:R},currentTarget:{name:t,files:R}})},U=R=>{S(R)},X=R=>{R.target.value=""},c1=R=>{const Z=D(R);return u.map(a1=>a1.toLowerCase()).includes(Z)},g1=R=>R.size<=m*1024*1024,x1=R=>R.filter(Z=>c1(Z)&&g1(Z)),Q=R=>{if(a)return;if(R.some(m1=>!c1(m1))){U(f);return}if(R.some(m1=>!g1(m1))){U(x);return}const Z=x1(R);if(Z.length===0){U(f);return}const a1=[...y,...Z].slice(0,d);w(a1),S(null),W(a1)},o1=R=>{if(a)return;const Z=y.filter((a1,m1)=>m1!==R);w(Z),W(Z)},b=R=>{R.preventDefault(),R.stopPropagation(),!(a||N)&&j(R.type==="dragenter"||R.type==="dragover")},_=R=>{var Z;R.preventDefault(),R.stopPropagation(),!a&&(j(!1),Q(Array.from(((Z=R.dataTransfer)==null?void 0:Z.files)??[])))},A=R=>{var Z;R.stopPropagation(),!(a||N)&&((Z=v.current)==null||Z.click())},F=R=>{var Z;a||N||(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),(Z=v.current)==null||Z.click())},h1=R=>{const Z=Array.from(R.target.files??[]);Z.length>0&&Q(Z),X(R)};return o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[n&&o.jsx(M,{variant:"body1",text:E,color:s?"error":"slategray"}),o.jsxs("div",{"aria-disabled":a,onClick:A,onKeyDown:F,onDragEnter:b,onDragOver:b,onDragLeave:b,onDrop:_,className:`border-2 border-dashed rounded-md transition-all duration-200 p-6 md:p-8 text-center focus:outline-none ${V} ${N||a?"cursor-not-allowed opacity-60":"cursor-pointer hover:border-secondary"}`,children:[o.jsx("input",{id:e,name:t,type:"file",ref:v,accept:L,multiple:!0,disabled:a,onChange:h1,className:"hidden"}),o.jsxs("div",{className:"flex flex-col items-center justify-center pointer-events-none",children:[o.jsx(z,{icon:"upload"}),o.jsxs("div",{children:[o.jsx("div",{className:"flex gap-1 items-center justify-center",children:o.jsx(M,{variant:"subtitle2",text:C})}),o.jsxs("div",{className:"flex gap-2 justify-center my-2 flex-wrap",children:[o.jsx(M,{variant:"caption",text:`${c} :`}),o.jsx(M,{variant:"caption",text:`${H} (Max : ${m}MB)`})]}),(k||s)&&o.jsx(M,{variant:"caption",color:"error",text:k||i})]})]})]}),N&&h&&o.jsx(M,{variant:"caption",color:"error",text:h}),y.length>0&&o.jsx("div",{className:"mt-4 max-h-40 overflow-y-auto space-y-2 no-scrollbar bg-brightgray p-2 rounded-xl",children:y.map((R,Z)=>{const a1=D(R);return o.jsxs("div",{className:"flex justify-between items-center rounded-md py-2 px-4 bg-offwhite",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(z,{icon:a1||"file"}),o.jsx(M,{variant:"body2",text:`${R.name} (${(R.size/(1024*1024)).toFixed(2)} MB)`})]}),!a&&o.jsx(z,{icon:"cancel",color:"slategray",size:20,onClick:()=>o1(Z)})]},`${Z+1}`)})})]})},K7=()=>{const e=[{className:"z-n-20",label:"z-n-20 (-20)",usage:"Background utility / debugging"},{className:"z-n-10",label:"z-n-10 (-10)",usage:"Behind-base elements"},{className:"z-level-0",label:"z-level-0 (0)",usage:"Base layer / normal components"},{className:"z-level-1",label:"z-level-1 (100)",usage:"Swiper slide"},{className:"z-level-2",label:"z-level-2 (200)",usage:"Slide indicators"},{className:"z-level-3",label:"z-level-3 (300)",usage:"Dropdown / Multi-select dropdown / DatePicker"},{className:"z-level-4",label:"z-level-4 (400)",usage:"Reserved for minor overlays"},{className:"z-level-5",label:"z-level-5 (500)",usage:"Tooltips"},{className:"z-level-6",label:"z-level-6 (600)",usage:"Reserved overlay layer"},{className:"z-level-7",label:"z-level-7 (700)",usage:"Modal"},{className:"z-level-8",label:"z-level-8 (800)",usage:"High overlays (future use)"},{className:"z-level-9",label:"z-level-9 (900)",usage:"Snackbar"},{className:"z-level-10",label:"z-level-10 (999)",usage:"Loaders / Always on top"}],t=["bg-red-400","bg-orange-400","bg-yellow-400","bg-green-400","bg-emerald-400","bg-teal-400","bg-cyan-400","bg-sky-400","bg-blue-400","bg-indigo-400","bg-violet-400","bg-fuchsia-400","bg-pink-400"],n=150,r=n*.4,s=30,i=n+(e.length-1)*s+16;return o.jsx(o.Fragment,{children:o.jsxs("div",{className:"p-6 space-y-6",children:[o.jsx("div",{className:"relative overflow-visible rounded-lg",style:{height:i},children:e.map((a,l)=>{const C=l*r,c=l*s,u=t[l%t.length];return o.jsx("div",{className:`absolute ${a.className} ${u} text-white rounded-xl shadow-md flex justify-center p-3`,style:{width:n,height:n,left:C,top:c},children:o.jsx(M,{variant:"captionBold",text:a.label,color:"white"})},a.className)})}),o.jsxs("div",{className:"p-5 bg-gray-100 rounded-xl shadow-inner",children:[o.jsx(M,{variant:"captionBold",text:"Z-Index Usage Details"}),o.jsx("div",{className:"mt-3 space-y-1",children:e.map(a=>o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx("span",{className:"font-mono text-sm text-gray-700 w-40",children:a.label}),o.jsxs("span",{className:"text-gray-600 text-sm",children:["→ ",a.usage]})]},a.className))})]})]})})},X7=({isOpen:e,onClose:t,betSlipVariant:n,slipTitle:r,betSlipLabels:s,betDetails:i,betButtonAmounts:a,defaultStake:l=0,defaultOdds:C,minBet:c,maxBet:u,projectedPL:d,footerCTA:h,errorMessage:f,handleBetPlacement:m})=>{const x={Back:{primaryBg:"bg-babyBlue",secondaryBg:"bg-cloudBlue",tertiaryBg:"bg-lavenderBlue",border:"border-pastelBlue"},Lay:{primaryBg:"bg-watermelonRed",secondaryBg:"bg-peachbloom",tertiaryBg:"bg-softRosePink",border:"border-peachyPink"}},j=["Yes","Back","Even","Odd"].includes(n)?"Back":"Lay",{primaryBg:y,tertiaryBg:w,secondaryBg:k,border:S}=x[j],[v,L]=g.useState(l),[N,E]=g.useState(C);g.useEffect(()=>{L(l),E(C)},[l,C]);const H=g.useRef(m);g.useEffect(()=>{H.current=m},[m]),g.useEffect(()=>{H.current({stake:v,odds:N})},[v,N]);const V=D=>{const W=Number(D.target.value),U=C-T1.LIMIT,X=C+T1.LIMIT;W<U||W>X||E(W)};return e?o.jsx("div",{className:"fixed inset-0 z-level-6 flex items-start justify-center pointer-events-none",tabIndex:-1,children:o.jsxs("div",{className:"bg-white shadow-lg w-full pointer-events-auto",onMouseDown:D=>D.stopPropagation(),role:"presentation",children:[o.jsxs("div",{className:`flex items-center justify-between px-4 py-1 ${y}`,children:[o.jsx(M,{variant:"subtitle1",text:r,color:"white"}),o.jsx(z,{size:16,icon:"cancel",color:"white",onClick:t})]}),o.jsxs("div",{className:`${k} flex flex-row justify-between py-1 px-4`,children:[o.jsxs("div",{children:[o.jsx(M,{variant:"captionBold",text:i==null?void 0:i.betTitle}),o.jsx(M,{variant:"caption",text:i==null?void 0:i.betDescription})]}),o.jsxs("div",{className:"text-right",children:[o.jsx(M,{text:s.pLValueTitle,variant:"subtitle2"}),o.jsx(M,{text:d,variant:"caption"})]})]}),o.jsx("div",{className:`${k} px-4 pb-2 flex flex-wrap gap-3`,children:a.map(D=>o.jsx(n1,{text:`+${D}`,size:"extraSmall",variant:"outline",onClick:()=>L(v+D)},D))}),o.jsxs("div",{className:`${k} px-3 pb-1`,children:[o.jsxs("div",{className:"grid grid-cols-2 text-center mb-2",children:[o.jsx(M,{text:s.oddsTitle,variant:"captionBold"}),o.jsx(M,{text:s.stakeTitle,variant:"captionBold"})]}),o.jsxs("div",{className:"px-4 pb-1 grid grid-cols-2 gap-4",children:[o.jsx("input",{type:"number",step:T1.NUMBER_FILED_STEPS,value:N,min:C-T1.LIMIT,max:C+T1.LIMIT,disabled:["Yes","No","Odd","Even"].includes(n),onChange:V,onKeyDown:D=>D.preventDefault(),className:"w-full px-4 py-2 bg-white rounded-md shadow-sm text-center text-black outline-none appearance-auto"}),o.jsx("input",{type:"text",value:v,onChange:D=>{const W=D.target.value;u3.NUMBER_INPUT_REGEX.test(W)&&L(Number(W))},className:"w-full px-4 py-2 bg-white rounded-md shadow-sm text-center text-black outline-none"})]}),u&&v>u.amount?o.jsx("div",{className:"px-5 flex justify-end",children:o.jsx(M,{text:`${u.errorMessage} ${u.amount}`,variant:"caption",color:"error"})}):c&&v<c.amount&&o.jsx("div",{className:" px-5 flex justify-end",children:o.jsx(M,{text:`${c.errorMessage} ${c.amount}`,variant:"caption",color:"error"})})]}),o.jsxs("div",{className:`flex justify-end gap-4 px-4 py-1 border-t border-b ${S} ${w}`,children:[o.jsx(M,{variant:"caption",text:`${c.title}: ${c.amount}`}),u&&o.jsx(M,{variant:"caption",text:`${u.title}: ${u.amount}`})]}),f&&o.jsx("div",{className:"px-2 mt-1",children:o.jsx(M,{variant:"caption",color:"error",text:f})}),h&&o.jsxs("div",{className:"flex items-center justify-between px-4 py-1",children:[o.jsx(n1,{text:"Clear",variant:"ghost",size:"small",onClick:()=>{L(0)}}),o.jsx("div",{className:"flex gap-3",children:h.map((D,W)=>o.jsx(n1,{...D},`${D==null?void 0:D.text}-${W}`))})]})]})}):null},Q7=e=>{const{isVisible:t,typographyProps:n,color:r="error"}=e;return t?o.jsx("div",{className:`flex justify-center rounded-lg border-4 border-double animate-pulse [animation-duration:0.6s] bg-${r} border-${r} bg-clip-padding p-2 md:px-4`,children:o.jsx(M,{text:n.text,variant:n.variant??"overline",color:n.color??"white"})}):null},P3=()=>o.jsxs("div",{className:"flex gap-1 pr-23 md:pr-26 lg:pr-34",children:[o.jsx("div",{className:"flex justify-center items-center lg:min-w-18 min-w-14 h-7 bg-babyBlue rounded-t-lg",children:o.jsx(M,{text:"Back All",color:"black",variant:"captionBold"})}),o.jsx("div",{className:"flex justify-center items-center lg:min-w-18 min-w-14 h-7 bg-watermelonRed rounded-t-lg",children:o.jsx(M,{text:"Lay All",color:"black",variant:"captionBold"})})]}),I5=({title:e,variant:t,eventId:n="0",level:r=3,min:s=10,max:i=100,selectionCount:a=0,totalMatched:l=0,isSubHeader:C=!1,onClick:c,eventDetails:u="",onInfoClick:d})=>{const h=["1","X","2"].slice(0,r),{isMobile:f}=A1(),m=()=>o.jsxs("div",{className:"flex gap-1 bg-slategray px-1 md:px-2 py-1 rounded-md",children:[o.jsx(M,{color:"white",variant:"caption",text:"Min/Max:"}),o.jsx(M,{color:"white",variant:"caption",text:`${X1(s)}/${X1(i)}`})]});return t==="EventTitle"?o.jsxs("div",{className:"flex flex-col md:flex-row gap-1 bg-primary rounded-t-lg px-2 py-2 w-full justify-between",children:[o.jsxs("div",{className:"flex gap-2 justify-between",children:[o.jsx(M,{variant:"captionBold",text:e,color:"white"}),d&&o.jsx(z,{icon:"info",onClick:d,cursorPointer:!0,color:"white"})]}),u&&o.jsxs("div",{className:"flex gap-1",children:[o.jsx(z,{icon:"calendar",color:"white",size:16}),o.jsx("div",{className:"w-max",children:o.jsx(M,{color:"success",text:u,variant:"caption"})})]})]}):o.jsxs(o.Fragment,{children:[t!=="MatchOdds"?o.jsxs("div",{className:"bg-primary rounded-t-lg px-2 py-2 flex flex-row items-center gap-4 w-full justify-between",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[t==="MultiMarket"&&o.jsx("div",{className:"bg-success w-6 h-6 rounded flex items-center justify-center",children:o.jsx(z,{icon:"pin"})}),o.jsx(M,{variant:"subtitle2",text:e,color:"white"})]}),t==="FancyMarket"&&o.jsxs("div",{className:"flex md:gap-8 lg:mr-24 mr-18 gap-6",children:[o.jsx(M,{variant:"caption",text:"No",color:"white"}),o.jsx(M,{variant:"caption",text:"Yes",color:"white"})]}),t==="MultiMarket"&&o.jsx("div",{className:"ml-auto md:block",children:o.jsx(n1,{variant:"primary",size:"extraSmall",text:"Match Odds",onClick:()=>c==null?void 0:c(n)})})]}):o.jsxs("div",{className:"bg-brightgray flex justify-between gap-2 items-center pr-5",children:[o.jsx("div",{className:"flex gap-1 md:gap-3 items-center",children:o.jsx("div",{className:"bg-primary px-2 py-2",children:o.jsx(M,{color:"white",text:e,variant:"subtitle2"})})}),o.jsxs("div",{className:"hidden md:flex gap-2",children:[o.jsx(M,{color:"neutralGray",text:"Matched",variant:"subtitle2"}),o.jsx(M,{color:"black",text:`PTH ${l}`,variant:"subtitle2"})]})]}),t==="MultiMarket"&&o.jsxs("div",{className:"hidden md:flex max-full max-h-12 border border-brightgray mt-1 items-center justify-between px-4 pt-3",children:[o.jsx(M,{variant:"caption",text:`${a} Selections`}),!f&&o.jsx(P3,{})]}),t==="Sports"&&C&&o.jsxs("div",{className:"flex items-center justify-end bg-brightgray px-4 py-2",children:[o.jsx("div",{className:"min-w-10 px-2 text-center",children:o.jsx(M,{variant:"body1",color:"black",text:"Matched"})}),o.jsx("div",{className:"flex items-center justify-center",children:h.map(x=>o.jsx("div",{className:"min-w-36 mx-1 flex justify-center",children:o.jsx(M,{variant:"body1",color:"black",text:x})},x))}),o.jsx("div",{className:"w-9"})]}),(t==="OtherMarket"||t==="MatchOdds")&&o.jsxs("div",{className:"flex justify-between border border-b border-brightgray py-1 px-2",children:[m(),r===3&&o.jsx("div",{className:"ml-1 max-[430px]:hidden",children:o.jsx(P3,{})})]})]})},t4=({marketId:e,eventId:t,providerId:n,runnerId:r,runnerName:s,item:i,index:a,color:l,type:C,disabled:c,showSize:u,min:d,max:h,onClick:f})=>{const m=C===f1.BACK&&a===2||C===f1.LAY&&a===0,x=[f1.YES,f1.NO,f1.ODD,f1.EVEN].includes(C),p={marketId:e,eventId:t,providerId:n,runnerId:r,runnerName:s,type:C,odds:i==null?void 0:i.odds,size:(i==null?void 0:i.oddsSize)||0,min:d,max:h,acceptBestOdds:!(m||x)};return o.jsxs("button",{type:"button",disabled:c||!(i!=null&&i.odds)||!(i!=null&&i.oddsSize),onClick:()=>(i==null?void 0:i.odds)&&(i==null?void 0:i.oddsSize)&&!c&&f(p),className:`min-[420px]:px-1 md:px-2 min-[420px]:py-1 rounded min-w-11 min-[420px]:min-w-12 lg:min-w-16 min-h-8 text-center cursor-pointer disabled:cursor-not-allowed flex-1 ${l}`,children:[o.jsx(M,{variant:"smallBold",color:"black",text:i!=null&&i.odds?i.odds:"-"}),u&&o.jsx(M,{variant:"smallMedium",color:"black",text:i!=null&&i.oddsSize?X1(i.oddsSize):"-"})]})},J7=({marketId:e="0",eventId:t="0",providerId:n="0",runnerId:r,runnerName:s="",currentValue:i=0,projectedValue:a=0,notes:l="",batb:C=[],batl:c=[],showOddsSize:u=!1,isFreezed:d=!1,isSuspended:h=!1,suspendedMsg:f="Suspended",min:m=10,max:x=100,isYesNO:p=!0,onRowClick:j=()=>{},onOddClick:y=()=>{}})=>{const w=d||h,k=a!==0,S=Math.max(C==null?void 0:C.length,c==null?void 0:c.length),v=Array.from({length:S},(H,V)=>C[V]),L=Array.from({length:S},(H,V)=>c[V]),N=p?f1.YES:f1.EVEN,E=p?f1.NO:f1.ODD;return o.jsx("div",{className:"w-full border-x border-b border-brightgray py-1 px-2 md:px-4",children:o.jsxs("div",{className:"flex items-start gap-2 justify-between align-center",children:[o.jsxs("div",{className:"flex justify-between w-full cursor-pointer",onClick:()=>j(r),onKeyDown:()=>j(r),children:[o.jsxs("div",{children:[o.jsx(M,{variant:"subtitle2",color:"black",text:s}),l&&o.jsx(M,{variant:"smallMedium",color:"black",text:l})]}),(i||k)&&o.jsx(M,{text:Number((i+a).toFixed(2)),variant:"caption",isNumberTypography:!0})]}),o.jsxs("div",{className:"flex gap-2 items-start",children:[o.jsxs("div",{className:"relative",children:[d&&o.jsx("div",{className:"absolute inset-0 bg-freeze-pattern rounded pointer-events-auto cursor-not-allowed"}),h&&o.jsx("div",{className:"absolute inset-0 flex items-center justify-center rounded border-2 border-error bg-white/30 backdrop-blur-sm",children:o.jsx(M,{variant:"captionBold",color:"error",text:f})}),o.jsxs("div",{className:"flex gap-1",children:[o.jsx("div",{className:"flex flex-col gap-1",children:L.map((H,V)=>o.jsx(t4,{marketId:e,eventId:t,providerId:n,runnerId:r,runnerName:s,item:H,index:V,color:p?y2.NO_COLOR:y2.ODD_COLOR,type:E,disabled:w,showSize:u,min:m,max:x,onClick:y},U1(f1.NO)))}),o.jsx("div",{className:"flex flex-col gap-1",children:v.map((H,V)=>o.jsx(t4,{marketId:e,eventId:t,providerId:n,runnerId:r,runnerName:s,item:H,index:V,color:p?y2.YES_COLOR:y2.ODD_COLOR,type:N,disabled:w,showSize:u,min:m,max:x,onClick:y},U1(f1.YES)))})]})]}),o.jsxs("div",{className:"text-left",children:[o.jsx(M,{variant:"smallMedium",text:"Min/Max"}),o.jsx(M,{variant:"smallMedium",text:`${X1(m)}/${X1(x)}`})]})]})]})})},e0=({marketId:e="0",eventId:t="0",providerId:n="0",runnerId:r,runnerName:s="",currentValue:i=0,projectedValue:a=0,batb:l=[],batl:C=[],level:c=3,showOddsSize:u=!1,isFreezed:d=!1,isSuspended:h=!1,suspendedMsg:f="Suspended",min:m=10,max:x=100,onOddClick:p=()=>{},notes:j=""})=>{const y=d||h,w=i!==0,k=a!==0,S=Array.from({length:c},(L,N)=>l[N]),v=Array.from({length:c},(L,N)=>C[N]);return o.jsxs("div",{className:"w-full border-x border-b border-brightgray py-1 px-2 md:px-4",children:[o.jsxs("div",{className:"flex flex-col min-[420px]:flex-row min-[420px]:items-center gap-2 min-[420px]:justify-between",children:[o.jsxs("div",{className:"flex min-[420px]:flex-col justify-between",children:[o.jsx(M,{text:s,variant:"subtitle2",color:"black"}),!w&&!k?null:o.jsxs("div",{className:"flex gap-1 items-center",children:[(w||k)&&o.jsx(M,{variant:"caption",text:i,isNumberTypography:!0}),k&&o.jsxs(o.Fragment,{children:[o.jsx(z,{icon:"forwardArrow",size:12,cursorPointer:!1}),o.jsx(M,{variant:"caption",isNumberTypography:!0,text:Number((i+a).toFixed(2))})]})]})]}),o.jsxs("div",{className:"relative flex gap-0.5 sm:gap-1",children:[d&&o.jsx("div",{className:"absolute inset-0 rounded bg-freeze-pattern pointer-events-auto cursor-not-allowed"}),h&&o.jsx("div",{className:"absolute inset-0 flex items-center justify-center rounded border-2 border-error bg-white/30 backdrop-blur-sm",children:o.jsx(M,{variant:"captionBold",color:"error",text:f})}),o.jsx("div",{className:"flex gap-0.5 sm:gap-1 flex-1",children:S.map((L,N)=>o.jsx(t4,{marketId:e,eventId:t,providerId:n,runnerId:r,runnerName:s,item:L,color:y2.BACK_COLORS[N],index:N,type:f1.BACK,disabled:y,showSize:u,min:m,max:x,onClick:p},U1(f1.BACK)))}),o.jsx("div",{className:"flex gap-0.5 sm:gap-1 flex-1",children:v.map((L,N)=>o.jsx(t4,{runnerId:r,runnerName:s,marketId:e,eventId:t,providerId:n,item:L,index:N,color:y2.LAY_COLORS[N],type:f1.LAY,disabled:y,showSize:u,min:m,max:x,onClick:p},U1(f1.LAY)))})]})]}),j&&o.jsx(M,{variant:"caption",color:"black",text:j})]})},t0=({id:e,eventName:t="",inPlay:n=!1,openDate:r="",showBookmakerIcon:s=!1,showFancyIcon:i=!1,showTotalMatched:a=!1,totalMatched:l=0,batb:C=[],batl:c=[],level:u=3,showOddsSize:d=!1,pinned:h=!1,isFreezed:f=!1,isSuspended:m=!1,suspendedMsg:x="Suspended",onClickRedirect:p=()=>{},onOddClick:j=()=>{},onPinClick:y=()=>{}})=>{const{isMobile:w}=A1(),k=Array.from({length:u},(S,v)=>({Back:C[v],Lay:c[v]}));return o.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-2 w-full border-x border-b border-brightgray py-1 px-2 md:px-4",children:[o.jsxs("div",{className:`flex justify-between gap-1 ${n?"md:flex-col":"flex-col"}`,children:[o.jsx("button",{onClick:()=>p(e),type:"button",className:"cursor-pointer text-left",children:o.jsx(M,{variant:w?"captionBold":"body1",text:t,underline:!0,color:"techBlue"})}),o.jsxs("div",{className:"flex gap-1 items-center",children:[o.jsxs("div",{className:"",children:[n&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"hidden md:block",children:o.jsx(M,{variant:"caption",text:_3.IN_PLAY_MSG,color:"success"})}),o.jsx("div",{className:"md:hidden w-4 h-4 bg-success rounded-full"})]}),r&&o.jsx(M,{variant:"caption",text:r,color:"neutralGray"})]}),o.jsxs("div",{className:"flex gap-1 items-center",children:[s&&o.jsx(z,{icon:"letterB",size:16}),i&&o.jsx(z,{icon:"letterF",size:16})]})]})]}),o.jsxs("div",{className:"flex flex-row md:items-center justify-between gap-2",children:[a&&!w&&o.jsx("div",{className:"min-w-10 px-2",children:o.jsx(M,{variant:"caption",color:"slategray",text:`${_3.MATCHED_POINTS} ${X1(l)}`})}),o.jsxs("div",{className:"relative flex gap-1 flex-1",children:[f&&o.jsx("div",{className:"absolute inset-0 z-level-1 rounded bg-freeze-pattern pointer-events-auto cursor-not-allowed"}),m&&o.jsx("div",{className:"absolute inset-0 z-level-1 flex items-center justify-center rounded border-2 border-error backdrop-blur-xs",children:o.jsx(M,{variant:"captionBold",color:"error",text:x})}),k.map(S=>o.jsx("div",{className:"flex gap-1 flex-1",children:[f1.BACK,f1.LAY].map(v=>{const L=S[v],N=v===f1.BACK,E=N?"bg-babyBlue":"bg-peachyPink";return o.jsxs("button",{type:"button",disabled:!(L!=null&&L.odds)||f||m,onClick:()=>!f&&!m&&(j==null?void 0:j(N?f1.BACK:f1.LAY,L==null?void 0:L.odds)),className:`${E} flex-1 min-[420px]:px-1 md:px-2 min-[420px]:py-1 rounded min-w-8 min-[420px]:min-w-12 md:min-w-18 min-h-8 text-center cursor-pointer disabled:cursor-not-allowed`,children:[o.jsx(M,{variant:"smallBold",color:"black",text:L!=null&&L.odds?L.odds:"-"}),d&&o.jsx(M,{variant:"smallMedium",color:"black",text:L!=null&&L.oddsSize?X1(L.oddsSize):"-"})]},U1(v))})},U1("Pair_Odds")))]}),o.jsx("button",{type:"button",onClick:()=>y==null?void 0:y(!h),className:"sm:ml-2",children:o.jsx(z,{icon:h?"pinned":"pin",color:h?"error":"slategray",size:w?20:24})})]})]})},n0=e=>{switch(e.variant){case"fancy":return o.jsx(J7,{...e});case"layered":return o.jsx(e0,{...e});case"pair":return o.jsx(t0,{...e});default:return null}},A5=e=>{const{checked:t,onChange:n,disabled:r=!1,ariaLabel:s="Toggle",onColor:i,offColor:a}=e,l=()=>{r||n==null||n(!t)},C=t?i??"bg-techBlue":a??"bg-primary";return o.jsx("button",{type:"button",role:"switch","aria-checked":t,"aria-label":s,disabled:r,onClick:l,className:`relative w-16 h-8 rounded-full transition-colors duration-200 bg-offwhite border border-neutralGray ${r?"opacity-50 cursor-not-allowed":"cursor-pointer"}`,children:o.jsx("span",{className:`absolute top-[3px] left-1 w-6 h-6 rounded-full transition-all duration-200 ease-in-out ${C} ${t?"translate-x-8":"translate-x-0"}`})})},r0=e=>{const{competition:t,startStatus:n,title:r,time:s,id:i,isLive:a,onClick:l}=e;return o.jsxs("div",{className:"w-full overflow-hidden rounded-xl border border-brightgray bg-white",children:[o.jsxs("div",{className:"flex items-center justify-between bg-primary px-7 py-2",children:[o.jsx(M,{variant:"body1",color:"secondary",text:t}),o.jsx($4,{text:"Live",state:a?"active":"locked",variant:"filled"})]}),o.jsxs("div",{className:"py-6 md:py-4 flex flex-col gap-3 md:gap-4 pr-3 pl-7",children:[o.jsx(M,{variant:"h4",color:"black",text:r}),o.jsxs("div",{className:"flex items-center justify-between ",children:[o.jsxs("div",{className:"flex items-center gap-2 md:gap-3",children:[o.jsx($4,{text:n,state:a?"active":"info",variant:"outlined",iconName:"timer"}),o.jsx(M,{variant:"caption",color:"slategray",text:s})]}),o.jsx("div",{children:o.jsx(n1,{variant:"ghost",text:"View",iconName:"caretRight",textColor:"techBlue",size:"small",onClick:()=>l==null?void 0:l(i)})})]})]})]})},o0={matchOdds:{supportsLimits:!0},bookmaker:{supportsLimits:!0},fancy:{supportsLimits:!1}},s0=e=>{const{eventId:t,eventName:n,eventStartTime:r,betTiming:s,betLimits:i,visible:a,onToggle:l,onEdit:C,onView:c}=e,{isMobile:u}=A1();return o.jsxs("div",{className:"w-full max-w-lg mx-auto bg-white rounded-xl shadow-sm border border-brightgray overflow-hidden",children:[o.jsxs("div",{className:"bg-primary p-2 flex flex-col md:flex-row justify-between items-start sm:items-center gap-1 md:gap-4",children:[o.jsxs("div",{className:"flex w-full justify-between md:flex-col",children:[o.jsx(M,{variant:u?"captionBold":"subtitle1",text:n,color:"white"}),o.jsx(M,{variant:"caption",text:r,color:"white"})]}),o.jsxs("div",{className:"flex flex-row-reverse w-full mt-1 md:w-auto md:flex-row justify-between gap-1 md:gap-4 items-center",children:[o.jsx(A5,{checked:a,onChange:d=>l(t,d),onColor:"bg-success",offColor:"bg-error"}),o.jsx(n1,{text:"Edit",iconName:"edit",variant:"secondary",iconPosition:"right",size:"small",onClick:()=>C(t)})]})]}),o.jsxs("div",{className:"py-1 md:py-2",children:[o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-1 md:gap-6 items-center px-2 py-1",children:[o.jsx(M,{variant:u?"captionBold":"subtitle1",text:"Bet Timer"}),o.jsx("div",{className:"col-span-1 md:col-span-3 grid grid-cols-3 gap-3 md:gap-6",children:s.map(({key:d,label:h,value:f})=>o.jsxs("div",{className:"flex flex-col items-center text-center space-y-1",children:[o.jsx(M,{variant:"caption",text:h,color:"smokyblack"}),o.jsx(M,{variant:u?"captionBold":"subtitle2",text:f,color:"smokyblack"})]},d))})]}),o.jsx("div",{className:"h-px w-full bg-brightgray"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-1 md:gap-6 items-center px-2 py-1",children:[o.jsx(M,{variant:u?"captionBold":"subtitle1",text:"Bet Limits"}),o.jsx("div",{className:"col-span-1 md:col-span-3 grid grid-cols-3 gap-3 md:gap-6",children:Object.keys(o0).map(d=>{const h=i[d];return o.jsx("div",{className:"text-center space-y-1 md:space-y-2 flex justify-end flex-col",children:h?o.jsxs(o.Fragment,{children:[o.jsx(M,{variant:"caption",text:"Min / Max",color:"smokyblack"}),o.jsx(M,{variant:u?"captionBold":"subtitle2",text:`${h.min} / ${X1(h.max)}`,color:"black"})]}):o.jsx(n1,{size:"small",variant:"ghost",text:"View",textColor:"techBlue",iconName:"caretRight",onClick:()=>c(t)})},d)})})]})]})]})};var w1=function(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},i0=["onCopy","onCut","onPaste"],a0=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],l0=["onFocus","onBlur"],C0=["onInput","onInvalid","onReset","onSubmit"],c0=["onLoad","onError"],u0=["onKeyDown","onKeyPress","onKeyUp"],d0=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],f0=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],h0=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],g0=["onSelect"],m0=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],p0=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],x0=["onScroll"],v0=["onWheel"],w0=["onAnimationStart","onAnimationEnd","onAnimationIteration"],y0=["onTransitionEnd"],j0=["onToggle"],M0=["onChange"],b0=w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1([],i0,!0),a0,!0),l0,!0),C0,!0),c0,!0),u0,!0),d0,!0),f0,!0),h0,!0),g0,!0),m0,!0),p0,!0),x0,!0),v0,!0),w0,!0),y0,!0),M0,!0),j0,!0);function L0(e,t){var n={};return b0.forEach(function(r){var s=e[r];s&&(n[r]=s)}),n}function W5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=W5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function I2(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=W5(e))&&(r&&(r+=" "),r+=t);return r}function L1(e){if(e instanceof Date)return e.getHours();if(typeof e=="string"){var t=e.split(":");if(t.length>=2){var n=t[0];if(n){var r=parseInt(n,10);if(!isNaN(r))return r}}}throw new Error("Failed to get hours from date: ".concat(e,"."))}function K1(e){if(e instanceof Date)return e.getMinutes();if(typeof e=="string"){var t=e.split(":");if(t.length>=2){var n=t[1]||"0",r=parseInt(n,10);if(!isNaN(r))return r}}throw new Error("Failed to get minutes from date: ".concat(e,"."))}function d2(e){if(e instanceof Date)return e.getSeconds();if(typeof e=="string"){var t=e.split(":");if(t.length>=2){var n=t[2]||"0",r=parseInt(n,10);if(!isNaN(r))return r}}throw new Error("Failed to get seconds from date: ".concat(e,"."))}function V4(e){if(e instanceof Date)return e.getMilliseconds();if(typeof e=="string"){var t=e.split(":");if(t.length>=2){var n=t[2]||"0",r=n.split(".")[1]||"0",s=parseInt(r,10);if(!isNaN(s))return s}}throw new Error("Failed to get seconds from date: ".concat(e,"."))}function F2(e,t){t===void 0&&(t=2);var n="".concat(e);return n.length>=t?e:"0000".concat(n).slice(-t)}function Y5(e){var t=F2(L1(e)),n=F2(K1(e));return"".concat(t,":").concat(n)}function z5(e){var t=F2(L1(e)),n=F2(K1(e)),r=F2(d2(e));return"".concat(t,":").concat(n,":").concat(r)}function E4(e){var t=e.angle,n=t===void 0?0:t,r=e.name,s=e.length,i=s===void 0?100:s,a=e.oppositeLength,l=a===void 0?10:a,C=e.width,c=C===void 0?1:C;return o.jsx("div",{className:"react-clock__hand react-clock__".concat(r,"-hand"),style:{transform:"rotate(".concat(n,"deg)")},children:o.jsx("div",{className:"react-clock__hand__body react-clock__".concat(r,"-hand__body"),style:{width:"".concat(c,"px"),top:"".concat(50-i/2,"%"),bottom:"".concat(50-l/2,"%")}})})}var F3=g.memo(function(t){var n=t.angle,r=n===void 0?0:n,s=t.length,i=s===void 0?10:s,a=t.name,l=t.width,C=l===void 0?1:l;return o.jsx("div",{className:"react-clock__mark react-clock__".concat(a,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:o.jsx("div",{className:"react-clock__mark__body react-clock__".concat(a,"-mark__body"),style:{width:"".concat(C,"px"),top:0,bottom:"".concat(100-i/2,"%")}})})}),S0=g.memo(function(t){var n=t.angle,r=n===void 0?0:n,s=t.length,i=s===void 0?10:s,a=t.name,l=t.number;return o.jsx("div",{className:"react-clock__mark react-clock__".concat(a,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:o.jsx("div",{className:"react-clock__mark__number",style:{transform:"rotate(-".concat(r,"deg)"),top:"".concat(i/2,"%")},children:l})})}),O4,B3;function k0(){if(B3)return O4;B3=1;const e=(C,c,u,d)=>{if(u==="length"||u==="prototype"||u==="arguments"||u==="caller")return;const h=Object.getOwnPropertyDescriptor(C,u),f=Object.getOwnPropertyDescriptor(c,u);!t(h,f)&&d||Object.defineProperty(C,u,f)},t=function(C,c){return C===void 0||C.configurable||C.writable===c.writable&&C.enumerable===c.enumerable&&C.configurable===c.configurable&&(C.writable||C.value===c.value)},n=(C,c)=>{const u=Object.getPrototypeOf(c);u!==Object.getPrototypeOf(C)&&Object.setPrototypeOf(C,u)},r=(C,c)=>`/* Wrapped ${C}*/
58
+ `,children:h&&o.jsx("span",{className:"w-4 h-4 rounded-full bg-secondary"})}),o.jsx("span",{children:d.label})]},d.value.toString())})})},F7=e=>{const{data:t,scrollSpeed:n=100,defaultTitle:r="No upcoming events. Stay tuned!"}=e,s=g.useRef(null),i=g.useRef(null);return g.useEffect(()=>{const a=s.current,l=i.current;if(a&&l){a.style.cursor="pointer";const C=a.offsetWidth,c=l.offsetWidth,d=(c+C)/n,h=[{transform:`translateX(${C}px)`},{transform:`translateX(-${c}px)`}],f=l.animate(h,{duration:d*1e3,iterations:Number.POSITIVE_INFINITY,easing:"linear"}),m=()=>f.pause(),x=()=>f.play();return a.addEventListener("mouseenter",m),a.addEventListener("mouseleave",x),()=>{f.cancel(),a.removeEventListener("mouseenter",m),a.removeEventListener("mouseleave",x)}}},[n]),o.jsx("div",{className:"overflow-hidden h-9 flex items-center bg-primary",ref:s,children:o.jsx("div",{ref:i,className:"whitespace-nowrap will-change-transform flex items-center",children:(t==null?void 0:t.length)>0?o.jsx(o.Fragment,{children:t==null?void 0:t.map((a,l)=>{var C;return o.jsxs("div",{className:"flex items-center mx-10",children:[o.jsx(M,{text:a==null?void 0:a.title,variant:"captionBold",color:"error"}),o.jsx(z,{icon:a==null?void 0:a.iconName,size:24,color:"error",className:"ml-2 mr-15"}),((C=a==null?void 0:a.events)==null?void 0:C.length)>0&&a.events.map((c,u)=>o.jsxs("span",{className:"mr-10 whitespace-nowrap flex items-center",children:[o.jsx("span",{className:"mr-2",children:o.jsx(M,{text:c.timeLabel,variant:"caption",color:"secondary",underline:!0})}),o.jsx(M,{text:c.description,variant:"captionBold",color:"secondary"})]},`${u+1}-${c.timeLabel}`))]},`${l}${a==null?void 0:a.title}`)})}):o.jsx(M,{variant:"captionBold",text:r,color:"error"})})})},B7=e=>{const{titles:t,bets:n}=e,[r,s]=g.useState(!1),i={Back:{typeColor:"bg-babyBlue",bgColor:"bg-cloudBlue"},Lay:{typeColor:"bg-watermelonRed",bgColor:"bg-softRosePink"}},a=["Yes","Back","Even","Odd"],l=c=>{const{odds:u,showTitles:d=!1}=c;return o.jsx("div",{className:"flex items-center ml-auto justify-between min-w-32 lg:min-w-40",children:u==null?void 0:u.map(h=>o.jsx("div",{children:o.jsx(M,{variant:d?"caption":"captionBold",text:d?h.title:h.value})},h.title))})},C=({label:c,value:u})=>o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsx(M,{variant:"caption",text:c,color:"slategray"}),o.jsx(M,{variant:"caption",text:u,color:"slategray"})]});return o.jsxs("div",{className:"w-full",children:[o.jsx("div",{className:"hidden lg:block",children:o.jsx(I5,{variant:"EventTitle",title:t.slipTitle||""})}),o.jsx("div",{className:"max-h-64 overflow-y-auto p-1 bg-tertiary",children:o.jsx("div",{className:"space-y-1",children:n==null?void 0:n.map(c=>{const u=a.includes(c.type)?"Back":"Lay",{typeColor:d,bgColor:h}=i[u];return r?o.jsxs("div",{children:[o.jsxs("div",{className:`py-1 px-2 flex items-center ${d}`,children:[o.jsx(M,{variant:"caption",text:`${c.type} ${c.type===f1.BACK?`(${t.betFor})`:`(${t.betAgainst})`}`}),o.jsx(l,{odds:c.oddsDetails,showTitles:!0})]}),o.jsxs("div",{className:h,children:[o.jsxs("div",{className:"p-1 gap-4 flex items-center",children:[o.jsx(C,{label:t.reference,value:c.reference}),o.jsx(C,{label:t.time,value:c.time})]}),o.jsx("hr",{className:`border-t ${d}`}),o.jsxs("div",{className:"flex p-1 gap-2",children:[o.jsxs("div",{children:[o.jsx(M,{variant:"captionBold",text:c.subTitle}),o.jsx(M,{variant:"caption",text:c.result,color:"slategray"})]}),o.jsx(l,{odds:c.oddsDetails})]})]})]},c.id):o.jsxs("div",{className:`px-2 py-1 flex items-center ${h} gap-2`,children:[o.jsx("div",{className:`flex items-center justify-center p-1 min-w-12 rounded-md ${d}`,children:o.jsx(M,{variant:"captionBold",text:c.type})}),o.jsxs("div",{children:[o.jsx(M,{variant:"captionBold",text:c.subTitle}),o.jsx(M,{variant:"smallMedium",text:c.result,color:"slategray"})]}),o.jsx(l,{odds:c.oddsDetails})]},c.id)})})}),o.jsxs("div",{className:"flex items-center gap-1 py-2 px-3 bg-tertiary rounded-b-lg",children:[(n==null?void 0:n.length)>0&&o.jsx($2,{checked:r,onChange:c=>s(c.target.checked)}),o.jsx(M,{variant:"caption",text:(n==null?void 0:n.length)>0?t.betInfo:t.nullMessage})]})]})},T7=({slides:e,isLoading:t=!1,altImageUrl:n="",interval:r=3e3,loop:s=!0,pauseOnHover:i=!0,className:a=""})=>{const[l,C]=g.useState(0),c=g.useRef(null),[u,d]=g.useState(!1),h=g.useCallback(()=>{C(f=>f===e.length-1?s?0:f:f+1)},[e.length,s]);return g.useEffect(()=>{if(i&&u)return;function f(){h(),c.current=setTimeout(f,r)}return c.current=setTimeout(f,r),()=>{c.current&&clearTimeout(c.current)}},[u,r,i,h]),o.jsx("div",{className:`relative overflow-hidden w-full aspect-19/6 min-h-40 max-h-82.5 rounded-2xl shadow-lg z-level-0 ${a}`,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:t?o.jsx("div",{className:"flex justify-center items-center h-38 md:h-96",children:o.jsx(E5,{className:"animate-spin"})}):o.jsxs(o.Fragment,{children:[e==null?void 0:e.map((f,m)=>o.jsx("div",{className:`absolute inset-0 transition-opacity duration-700 ease-in-out ${m===l?"opacity-100 z-level-1":"opacity-0 z-level-0"}`,children:o.jsx("img",{src:f.imageURL||n,alt:f.alt||"slide image",className:"relative w-full h-full object-fill"})},f.id)),o.jsx("div",{className:"absolute z-level-2 bottom-4 left-1/2 transform -translate-x-1/2 flex space-x-2",children:e==null?void 0:e.map((f,m)=>o.jsx("button",{type:"button",onClick:()=>C(m),className:`h-1 md:h-2 bg-white rounded-full cursor-pointer transition-all duration-300 ${m===l?"w-4 md:w-8":"w-1 md:w-2"}`,"aria-label":`Go to slide ${m+1}`},f.id))})]})})},$7=({betSlipVariant:e,slipTitle:t,betSlipLabels:n,betDetails:r,betButtonAmounts:s=[],defaultStake:i=0,defaultOdds:a,minBet:l,maxBet:C,errorMessage:c,footerCTA:u,projectedPL:d,handleBetPlacement:h})=>{const f={Back:{primaryBg:"bg-babyBlue",secondaryBg:"bg-cloudBlue",border:"border-babyBlue"},Lay:{primaryBg:"bg-watermelonRed",secondaryBg:"bg-softRosePink",border:"border-watermelonRed"}},x=["Yes","Back","Even","Odd"].includes(e)?"Back":"Lay",{primaryBg:p,secondaryBg:j,border:y}=f[x],[w,k]=g.useState(i),[S,v]=g.useState(a);g.useEffect(()=>{k(i),v(a)},[i,a]);const L=g.useRef(h);g.useEffect(()=>{L.current=h},[h]),g.useEffect(()=>{L.current({stake:w,odds:S})},[w,S]);const N=H=>o.jsx("div",{className:"text-center",children:o.jsx(M,{variant:"caption",text:H})},H),E=H=>{const V=Number(H.target.value),D=a-T1.LIMIT,W=a+T1.LIMIT;V<D||V>W||v(V)};return o.jsxs("div",{className:"pb-2 bg-brightgray",children:[o.jsxs("div",{className:`p-2 grid grid-cols-2 items-center ${p}`,children:[o.jsx(M,{variant:"caption",text:t}),o.jsxs("div",{className:"flex items-center justify-end mr-10",children:[N(n.pLValueTitle),o.jsx("div",{className:"mx-1 min-w-8 max-w-16 text-right",children:o.jsx(M,{variant:"captionBold",text:d})})]})]}),o.jsxs("div",{className:j,children:[o.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-2",children:[o.jsxs("div",{className:"flex flex-col justify-center m-2",children:[o.jsx(M,{variant:"captionBold",text:r.betTitle}),o.jsx(M,{variant:"caption",text:r.betDescription})]}),o.jsxs("div",{className:"flex items-center gap-1 justify-end px-2",children:[o.jsxs("div",{className:"flex flex-col flex-start items-center gap-1",children:[N(n.oddsTitle),o.jsx("input",{type:"number",step:T1.NUMBER_FILED_STEPS,value:S,min:a-T1.LIMIT,max:a+T1.LIMIT,onChange:E,onKeyDown:H=>H.preventDefault(),disabled:["Yes","No","Odd","Even"].includes(e),className:"min-w-12 max-w-14 h-10 rounded-sm px-1 bg-white border-0"})]}),o.jsxs("div",{className:"relative",children:[o.jsxs("div",{className:"flex flex-col items-center gap-1",children:[N(n.stakeTitle),o.jsx("input",{type:"text",value:w,onChange:H=>{const V=H.target.value;u3.NUMBER_INPUT_REGEX.test(V)&&k(Number(V))},className:"min-w-12 max-w-16 h-10 rounded-sm p-2 bg-white border-0"})]}),w<l.amount&&o.jsxs("div",{className:"z-level-1 absolute top-full left-0 mt-1 text-xs text-error bg-white border border-error rounded px-2 py-1 shadow-md",children:[l.errorMessage," ",l.amount]}),C&&w>C.amount&&o.jsxs("div",{className:"z-level-1 absolute top-full left-0 mt-1 text-xs text-error bg-white border border-error rounded px-2 py-1 shadow-md",children:[C.errorMessage," ",C.amount]})]})]})]}),o.jsx("div",{className:"h-auto flex flex-wrap gap-2 overflow-x-auto mt-4 mx-2 mb-2 whitespace-nowrap no-scrollbar",children:s.length>0&&s.map(H=>o.jsx(n1,{text:`+${X1(H)}`,size:"small",variant:"outline",onClick:()=>k(V=>V+H)},H))}),o.jsxs("div",{className:`h-6 flex items-center justify-end border-t border-b p-2 gap-4 ${y}`,children:[o.jsx(M,{variant:"captionBold",text:`${l.title}: ${l.amount}`}),C&&o.jsx(M,{variant:"captionBold",text:`${C.title}: ${C.amount}`})]})]}),c&&o.jsx("div",{className:"px-2 mt-1",children:o.jsx(M,{variant:"caption",color:"error",text:c})}),u&&o.jsxs("div",{className:"flex items-center justify-between px-2 py-1",children:[o.jsx(n1,{text:"Clear",variant:"ghost",size:"small",onClick:()=>{k(0)}}),o.jsx("div",{className:"flex items-center justify-end mt-1 mr-2 gap-2",children:u.map((H,V)=>o.jsx(n1,{...H},H.text||V))})]})]})},X2=[{code:"+1",shortName:"US",fullName:"United States"},{code:"+91",shortName:"IND",fullName:"India"},{code:"+44",shortName:"UK",fullName:"United Kingdom"},{code:"+61",shortName:"AUS",fullName:"Australia"},{code:"+81",shortName:"JPN",fullName:"Japan"},{code:"+49",shortName:"DE",fullName:"Germany"},{code:"+33",shortName:"FR",fullName:"France"},{code:"+39",shortName:"IT",fullName:"Italy"},{code:"+7",shortName:"RU",fullName:"Russia"},{code:"+55",shortName:"BR",fullName:"Brazil"},{code:"+27",shortName:"ZA",fullName:"South Africa"},{code:"+82",shortName:"KR",fullName:"South Korea"},{code:"+34",shortName:"ES",fullName:"Spain"},{code:"+46",shortName:"SE",fullName:"Sweden"},{code:"+31",shortName:"NL",fullName:"Netherlands"},{code:"+52",shortName:"MX",fullName:"Mexico"},{code:"+20",shortName:"EG",fullName:"Egypt"},{code:"+90",shortName:"TR",fullName:"Turkey"},{code:"+66",shortName:"TH",fullName:"Thailand"},{code:"+65",shortName:"SG",fullName:"Singapore"},{code:"+62",shortName:"ID",fullName:"Indonesia"},{code:"+98",shortName:"IR",fullName:"Iran"},{code:"+64",shortName:"NZ",fullName:"New Zealand"},{code:"+41",shortName:"CH",fullName:"Switzerland"},{code:"+351",shortName:"PT",fullName:"Portugal"},{code:"+353",shortName:"IE",fullName:"Ireland"}],I7={true:"border-error focus-within:border-error",false:"border-brightgray focus-within:border-smokyblack"},A7={true:"bg-brightgray",false:"bg-white"},W7=e=>{const{label:t,id:n="",name:r="",value:s="",onChange:i=()=>{},placeholder:a="",isRequired:l=!1,className:C="",isDisabled:c=!1,hasError:u=!1,errorMessage:d="",...h}=e,[f,m]=s.split("-"),[x,p]=g.useState(!1),j=X2.find(N=>N.code===f)||X2[0],y=g.useRef(null);g.useEffect(()=>{const N=E=>{y.current&&!y.current.contains(E.target)&&p(!1)};return document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[]);const w=N=>{p(!1),i==null||i(`${N}-${m||""}`)},k=N=>{i==null||i(`${f||X2[0].code}-${N}`)},S=`${x?"relative":""} flex items-center border rounded-lg px-7 py-4 min-h-16 ${I7[`${u}`]} ${A7[`${c}`]}`,v=`flex-1 w-full font-roboto text-base text-smokyblack font-normal focus:outline-none focus:ring-0 focus:border-slategray text-black font-normal ${C}`,L=`${t}${l?"*":""}`;return o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsx(M,{variant:"body1",text:L,color:u?"error":"slategray"}),o.jsxs("div",{className:S,children:[o.jsxs("div",{className:"mr-2",ref:y,children:[o.jsxs("button",{type:"button",className:"flex items-center cursor-pointer gap-1",onClick:()=>!c&&p(!x),children:[o.jsx(M,{variant:"subtitle1",text:j.shortName,color:"smokyblack"}),o.jsx(z,{icon:x?"caretUp":"caretDown",color:"smokyblack"}),o.jsx("div",{className:"h-7 border border-neutralGray"}),o.jsx(M,{variant:"subtitle1",text:j.code,color:"smokyblack"})]}),x&&o.jsx("ul",{className:"absolute top-full my-1 left-0 w-full bg-white border border-brightgray rounded-lg shadow-lg z-level-3 max-h-60 overflow-auto",children:X2.map((N,E)=>{const H=N.code===j.code,V=H?"white":"slategray";return o.jsx("li",{className:`px-3 py-2 flex items-center gap-2 cursor-pointer hover:bg-brightgray ${H?"bg-secondary text-white hover:bg-secondary/85":""}`,onClick:()=>w(N.code),onKeyUp:D=>{(D.key==="Enter"||D.key===" ")&&w(N.code)},children:o.jsx(M,{variant:"caption",text:`${N.code} ${N.fullName} (${N.shortName})`,color:V})},`${N.code}-${E}`)})})]}),o.jsx("input",{id:n,name:r,type:"tel",value:m||"",onChange:N=>{k(N.target.value)},placeholder:a,className:v,disabled:c,...h})]}),u&&d&&o.jsx("div",{className:"flex justify-end",children:o.jsx(M,{variant:"caption",text:d,color:"error"})})]})},Y7=e=>{const{text:t,onClick:n}=e;return o.jsx("button",{type:"button",onClick:n,className:"w-40 px-5 py-2 flex items-center text-xs font-normal tracking-tight transition-all duration-200 rounded-lg hover:bg-brightgray cursor-pointer",children:o.jsx(M,{variant:"caption",text:t})})},z7=e=>{const{items:t,lastItem:n}=e;return o.jsx("div",{className:"w-fit bg-white shadow-md rounded-lg",children:o.jsxs("ul",{className:"flex flex-col",children:[t.length===0?o.jsx("div",{className:"flex justify-center w-40 py-2",children:o.jsx(M,{variant:"caption",text:"No data available!",color:"slategray"})}):t.map(r=>o.jsx("li",{children:o.jsx(Y7,{...r})},r.text)),!!n&&o.jsx("li",{children:o.jsxs("button",{type:"button",onClick:n.onClick,className:"w-40 px-5 py-2 flex items-center gap-3 hover:bg-offwhite border-t border-brightgray rounded-b-lg cursor-pointer",children:[!!n.text&&o.jsx(M,{text:n.text,variant:"subtitle2",color:"techBlue"}),!!n.iconName&&o.jsx(z,{icon:n.iconName,color:"techBlue"})]})})]})})},G7=e=>{const{steps:t}=e;return o.jsx("div",{className:"flex items-center justify-between w-full",children:t==null?void 0:t.map((n,r)=>{var c;const s=r===t.length-1,i=(c=t[r+1])==null?void 0:c.status,a=n.status==="completed"?o.jsx("div",{className:"p-[6px] md:p-4 bg-secondary rounded-full flex items-center justify-center shadow-lg",children:o.jsx("div",{className:"p-[2px] md:p-1 bg-white/40 rounded-full flex items-center justify-center",children:o.jsx("div",{className:"p-[2px] md:p-[6px] bg-white/30 rounded-full flex items-center justify-center",children:o.jsx("div",{className:"flex items-center justify-center bg-secondary/60 rounded-full",children:o.jsx(z,{icon:"doneFill",size:20,color:"white"})})})})}):n.status==="inProgress"?o.jsx("div",{className:"p-3 md:p-5 rounded-full bg-secondary flex items-center justify-center",children:o.jsx("div",{className:"p-1 md:p-2 bg-white/30 rounded-full flex items-center justify-center",children:o.jsx("div",{className:"w-2 h-2 md:w-4 md:h-4 bg-white rounded-full"})})}):o.jsx("div",{className:"p-5 md:p-9 rounded-full bg-brightgray flex"}),l=n.status&&i==="completed"?"bg-secondary":"bg-brightgray",C={...n.title,color:n.status==="pending"?"neutralGray":n.title.color};return o.jsxs("div",{className:"flex-1 flex flex-col items-center",children:[o.jsxs("div",{className:"relative flex items-center justify-center w-full",children:[o.jsx("div",{className:"flex justify-center",children:a}),!s&&o.jsx("div",{className:"absolute top-1/2 left-[calc(50%+20px)] md:left-[calc(50%+36px)] w-[calc(100%-20px)] md:w-[calc(100%-36px)]",children:o.jsx("div",{className:`h-[2px] w-full ${l}`})})]}),o.jsx("div",{className:"mt-2 md:mt-4 text-center",children:o.jsx(M,{variant:n.title.variant??"caption",...C})})]},`${r+1}`)})})},q7=e=>{const{walletData:t,footerCTA:n,redirectLinks:r}=e||{},{isMobile:s}=A1();return o.jsxs("div",{className:"max-w-56 rounded-md bg-primary shadow-md shadow-white p-2",children:[o.jsxs("div",{className:"pb-2",children:[t==null?void 0:t.map(i=>{var a,l,C;return o.jsxs("div",{className:"flex items-center justify-between gap-2",children:[o.jsx("div",{className:"flex-1",children:o.jsx(M,{text:(i==null?void 0:i.key)??"",variant:"caption",color:"white"})}),o.jsx("div",{className:"flex-1 text-left",children:o.jsx(M,{text:(i==null?void 0:i.value)??"",variant:"captionBold",color:(i==null?void 0:i.color)??"white"})}),!s&&((a=i==null?void 0:i.info)==null?void 0:a.title)&&o.jsx(c4,{title:(l=i==null?void 0:i.info)==null?void 0:l.title,position:(C=i==null?void 0:i.info)==null?void 0:C.position,children:o.jsx(z,{icon:"info",color:"white"})})]},i.key)}),o.jsx("div",{className:"flex justify-between pt-2 px-3 gap-2 flex-wrap",children:n==null?void 0:n.map((i,a)=>o.jsx(n1,{text:(i==null?void 0:i.text)??"",variant:i==null?void 0:i.variant,size:"extraSmall",onClick:i==null?void 0:i.onClick,disabled:i==null?void 0:i.disabled},(i==null?void 0:i.text)??`${a+1}`))})]}),o.jsx("div",{className:"border-t border-brightgray pt-2 px-2",children:r==null?void 0:r.map((i,a)=>o.jsxs("button",{onClick:i==null?void 0:i.onClick,type:"button",className:"flex justify-between gap-2 py-1 w-full",children:[o.jsx(M,{text:(i==null?void 0:i.title)??"",variant:"caption",color:"white"}),o.jsx(z,{icon:"caretRight",color:"white"})]},`${a+1}-${i==null?void 0:i.title}`))})]})},U7=({id:e="",name:t="",label:n="",isRequired:r=!1,hasError:s=!1,errorMessage:i="",isDisabled:a=!1,onChange:l,instructionText:C,supportText:c,supportFormate:u,maxFiles:d=10,maxLimitMessage:h="Upload limit reached. Maximum allowed files",invalidFileMessage:f="Invalid file type.",maxFileSize:m=1,maxFileSizeMessage:x="File size exceeds the allowed limit."})=>{const[p,j]=g.useState(!1),[y,w]=g.useState([]),[k,S]=g.useState(null),v=g.useRef(null),L=u.map(R=>`.${R.toLowerCase().replace(u3.FILE_FORMAT_REGEX,"")}`).join(","),N=y.length>=d,E=`${n}${r?" *":""}`,H=u.join(", ").toUpperCase(),V=s?"border-error":p?"border-secondary":"border-slategray",D=R=>{var Z;return((Z=R.name.split(".").pop())==null?void 0:Z.toLowerCase())??""},W=R=>{l==null||l({target:{name:t,files:R},currentTarget:{name:t,files:R}})},U=R=>{S(R)},X=R=>{R.target.value=""},c1=R=>{const Z=D(R);return u.map(a1=>a1.toLowerCase()).includes(Z)},g1=R=>R.size<=m*1024*1024,x1=R=>R.filter(Z=>c1(Z)&&g1(Z)),Q=R=>{if(a)return;if(R.some(m1=>!c1(m1))){U(f);return}if(R.some(m1=>!g1(m1))){U(x);return}const Z=x1(R);if(Z.length===0){U(f);return}const a1=[...y,...Z].slice(0,d);w(a1),S(null),W(a1)},o1=R=>{if(a)return;const Z=y.filter((a1,m1)=>m1!==R);w(Z),W(Z)},b=R=>{R.preventDefault(),R.stopPropagation(),!(a||N)&&j(R.type==="dragenter"||R.type==="dragover")},_=R=>{var Z;R.preventDefault(),R.stopPropagation(),!a&&(j(!1),Q(Array.from(((Z=R.dataTransfer)==null?void 0:Z.files)??[])))},A=R=>{var Z;R.stopPropagation(),!(a||N)&&((Z=v.current)==null||Z.click())},F=R=>{var Z;a||N||(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),(Z=v.current)==null||Z.click())},h1=R=>{const Z=Array.from(R.target.files??[]);Z.length>0&&Q(Z),X(R)};return o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[n&&o.jsx(M,{variant:"body1",text:E,color:s?"error":"slategray"}),o.jsxs("div",{"aria-disabled":a,onClick:A,onKeyDown:F,onDragEnter:b,onDragOver:b,onDragLeave:b,onDrop:_,className:`border-2 border-dashed rounded-md transition-all duration-200 p-6 md:p-8 text-center focus:outline-none ${V} ${N||a?"cursor-not-allowed opacity-60":"cursor-pointer hover:border-secondary"}`,children:[o.jsx("input",{id:e,name:t,type:"file",ref:v,accept:L,multiple:!0,disabled:a,onChange:h1,className:"hidden"}),o.jsxs("div",{className:"flex flex-col items-center justify-center pointer-events-none",children:[o.jsx(z,{icon:"upload"}),o.jsxs("div",{children:[o.jsx("div",{className:"flex gap-1 items-center justify-center",children:o.jsx(M,{variant:"subtitle2",text:C})}),o.jsxs("div",{className:"flex gap-2 justify-center my-2 flex-wrap",children:[o.jsx(M,{variant:"caption",text:`${c} :`}),o.jsx(M,{variant:"caption",text:`${H} (Max : ${m}MB)`})]}),(k||s)&&o.jsx(M,{variant:"caption",color:"error",text:k||i})]})]})]}),N&&h&&o.jsx(M,{variant:"caption",color:"error",text:h}),y.length>0&&o.jsx("div",{className:"mt-4 max-h-40 overflow-y-auto space-y-2 no-scrollbar bg-brightgray p-2 rounded-xl",children:y.map((R,Z)=>{const a1=D(R);return o.jsxs("div",{className:"flex justify-between items-center rounded-md py-2 px-4 bg-offwhite",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(z,{icon:a1||"file"}),o.jsx(M,{variant:"body2",text:`${R.name} (${(R.size/(1024*1024)).toFixed(2)} MB)`})]}),!a&&o.jsx(z,{icon:"cancel",color:"slategray",size:20,onClick:()=>o1(Z)})]},`${Z+1}`)})})]})},K7=()=>{const e=[{className:"z-n-20",label:"z-n-20 (-20)",usage:"Background utility / debugging"},{className:"z-n-10",label:"z-n-10 (-10)",usage:"Behind-base elements"},{className:"z-level-0",label:"z-level-0 (0)",usage:"Base layer / normal components"},{className:"z-level-1",label:"z-level-1 (100)",usage:"Swiper slide"},{className:"z-level-2",label:"z-level-2 (200)",usage:"Slide indicators"},{className:"z-level-3",label:"z-level-3 (300)",usage:"Dropdown / Multi-select dropdown / DatePicker"},{className:"z-level-4",label:"z-level-4 (400)",usage:"Reserved for minor overlays"},{className:"z-level-5",label:"z-level-5 (500)",usage:"Tooltips"},{className:"z-level-6",label:"z-level-6 (600)",usage:"Reserved overlay layer"},{className:"z-level-7",label:"z-level-7 (700)",usage:"Modal"},{className:"z-level-8",label:"z-level-8 (800)",usage:"High overlays (future use)"},{className:"z-level-9",label:"z-level-9 (900)",usage:"Snackbar"},{className:"z-level-10",label:"z-level-10 (999)",usage:"Loaders / Always on top"}],t=["bg-red-400","bg-orange-400","bg-yellow-400","bg-green-400","bg-emerald-400","bg-teal-400","bg-cyan-400","bg-sky-400","bg-blue-400","bg-indigo-400","bg-violet-400","bg-fuchsia-400","bg-pink-400"],n=150,r=n*.4,s=30,i=n+(e.length-1)*s+16;return o.jsx(o.Fragment,{children:o.jsxs("div",{className:"p-6 space-y-6",children:[o.jsx("div",{className:"relative overflow-visible rounded-lg",style:{height:i},children:e.map((a,l)=>{const C=l*r,c=l*s,u=t[l%t.length];return o.jsx("div",{className:`absolute ${a.className} ${u} text-white rounded-xl shadow-md flex justify-center p-3`,style:{width:n,height:n,left:C,top:c},children:o.jsx(M,{variant:"captionBold",text:a.label,color:"white"})},a.className)})}),o.jsxs("div",{className:"p-5 bg-gray-100 rounded-xl shadow-inner",children:[o.jsx(M,{variant:"captionBold",text:"Z-Index Usage Details"}),o.jsx("div",{className:"mt-3 space-y-1",children:e.map(a=>o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx("span",{className:"font-mono text-sm text-gray-700 w-40",children:a.label}),o.jsxs("span",{className:"text-gray-600 text-sm",children:["→ ",a.usage]})]},a.className))})]})]})})},X7=({isOpen:e,onClose:t,betSlipVariant:n,slipTitle:r,betSlipLabels:s,betDetails:i,betButtonAmounts:a,defaultStake:l=0,defaultOdds:C,minBet:c,maxBet:u,projectedPL:d,footerCTA:h,errorMessage:f,handleBetPlacement:m})=>{const x={Back:{primaryBg:"bg-babyBlue",secondaryBg:"bg-cloudBlue",tertiaryBg:"bg-lavenderBlue",border:"border-pastelBlue"},Lay:{primaryBg:"bg-watermelonRed",secondaryBg:"bg-peachbloom",tertiaryBg:"bg-softRosePink",border:"border-peachyPink"}},j=["Yes","Back","Even","Odd"].includes(n)?"Back":"Lay",{primaryBg:y,tertiaryBg:w,secondaryBg:k,border:S}=x[j],[v,L]=g.useState(l),[N,E]=g.useState(C);g.useEffect(()=>{L(l),E(C)},[l,C]);const H=g.useRef(m);g.useEffect(()=>{H.current=m},[m]),g.useEffect(()=>{H.current({stake:v,odds:N})},[v,N]);const V=D=>{const W=Number(D.target.value),U=C-T1.LIMIT,X=C+T1.LIMIT;W<U||W>X||E(W)};return e?o.jsx("div",{className:"fixed inset-0 z-level-6 flex items-start justify-center pointer-events-none",tabIndex:-1,children:o.jsxs("div",{className:"bg-white shadow-lg w-full pointer-events-auto",onMouseDown:D=>D.stopPropagation(),role:"presentation",children:[o.jsxs("div",{className:`flex items-center justify-between px-4 py-1 ${y}`,children:[o.jsx(M,{variant:"subtitle1",text:r,color:"white"}),o.jsx(z,{size:16,icon:"cancel",color:"white",onClick:t})]}),o.jsxs("div",{className:`${k} flex flex-row justify-between py-1 px-4`,children:[o.jsxs("div",{children:[o.jsx(M,{variant:"captionBold",text:i==null?void 0:i.betTitle}),o.jsx(M,{variant:"caption",text:i==null?void 0:i.betDescription})]}),o.jsxs("div",{className:"text-right",children:[o.jsx(M,{text:s.pLValueTitle,variant:"subtitle2"}),o.jsx(M,{text:d,variant:"caption"})]})]}),o.jsx("div",{className:`${k} px-4 pb-2 flex flex-wrap gap-3`,children:a.map(D=>o.jsx(n1,{text:`+${D}`,size:"extraSmall",variant:"outline",onClick:()=>L(v+D)},D))}),o.jsxs("div",{className:`${k} px-3 pb-1`,children:[o.jsxs("div",{className:"grid grid-cols-2 text-center mb-2",children:[o.jsx(M,{text:s.oddsTitle,variant:"captionBold"}),o.jsx(M,{text:s.stakeTitle,variant:"captionBold"})]}),o.jsxs("div",{className:"px-4 pb-1 grid grid-cols-2 gap-4",children:[o.jsx("input",{type:"number",step:T1.NUMBER_FILED_STEPS,value:N,min:C-T1.LIMIT,max:C+T1.LIMIT,disabled:["Yes","No","Odd","Even"].includes(n),onChange:V,onKeyDown:D=>D.preventDefault(),className:"w-full px-4 py-2 bg-white rounded-md shadow-sm text-center text-black outline-none appearance-auto"}),o.jsx("input",{type:"text",value:v,onChange:D=>{const W=D.target.value;u3.NUMBER_INPUT_REGEX.test(W)&&L(Number(W))},className:"w-full px-4 py-2 bg-white rounded-md shadow-sm text-center text-black outline-none"})]}),u&&v>u.amount?o.jsx("div",{className:"px-5 flex justify-end",children:o.jsx(M,{text:`${u.errorMessage} ${u.amount}`,variant:"caption",color:"error"})}):c&&v<c.amount&&o.jsx("div",{className:" px-5 flex justify-end",children:o.jsx(M,{text:`${c.errorMessage} ${c.amount}`,variant:"caption",color:"error"})})]}),o.jsxs("div",{className:`flex justify-end gap-4 px-4 py-1 border-t border-b ${S} ${w}`,children:[o.jsx(M,{variant:"caption",text:`${c.title}: ${c.amount}`}),u&&o.jsx(M,{variant:"caption",text:`${u.title}: ${u.amount}`})]}),f&&o.jsx("div",{className:"px-2 mt-1",children:o.jsx(M,{variant:"caption",color:"error",text:f})}),h&&o.jsxs("div",{className:"flex items-center justify-between px-4 py-1",children:[o.jsx(n1,{text:"Clear",variant:"ghost",size:"small",onClick:()=>{L(0)}}),o.jsx("div",{className:"flex gap-3",children:h.map((D,W)=>o.jsx(n1,{...D},`${D==null?void 0:D.text}-${W}`))})]})]})}):null},Q7=e=>{const{isVisible:t,typographyProps:n,color:r="error"}=e;return t?o.jsx("div",{className:`flex justify-center rounded-lg border-4 border-double animate-pulse [animation-duration:0.6s] bg-${r} border-${r} bg-clip-padding p-2 md:px-4`,children:o.jsx(M,{text:n.text,variant:n.variant??"overline",color:n.color??"white"})}):null},P3=()=>o.jsxs("div",{className:"flex gap-1 pr-23 md:pr-26 lg:pr-34",children:[o.jsx("div",{className:"flex justify-center items-center lg:min-w-18 min-w-14 h-7 bg-babyBlue rounded-t-lg",children:o.jsx(M,{text:"Back All",color:"black",variant:"captionBold"})}),o.jsx("div",{className:"flex justify-center items-center lg:min-w-18 min-w-14 h-7 bg-watermelonRed rounded-t-lg",children:o.jsx(M,{text:"Lay All",color:"black",variant:"captionBold"})})]}),I5=({title:e,variant:t,eventId:n="0",level:r=3,min:s=10,max:i=100,selectionCount:a=0,totalMatched:l=0,isSubHeader:C=!1,onClick:c,eventDetails:u="",onInfoClick:d})=>{const h=["1","X","2"].slice(0,r),{isMobile:f}=A1(),m=()=>o.jsxs("div",{className:"flex gap-1 bg-slategray px-1 md:px-2 py-1 rounded-md",children:[o.jsx(M,{color:"white",variant:"caption",text:"Min/Max:"}),o.jsx(M,{color:"white",variant:"caption",text:`${X1(s)}/${X1(i)}`})]});return t==="EventTitle"?o.jsxs("div",{className:"flex flex-col md:flex-row gap-1 bg-primary rounded-t-lg px-2 py-2 w-full justify-between",children:[o.jsxs("div",{className:"flex gap-2 justify-between",children:[o.jsx(M,{variant:"captionBold",text:e,color:"white"}),d&&o.jsx(z,{icon:"info",onClick:d,cursorPointer:!0,color:"white"})]}),u&&o.jsxs("div",{className:"flex gap-1",children:[o.jsx(z,{icon:"calendar",color:"white",size:16}),o.jsx("div",{className:"w-max",children:o.jsx(M,{color:"success",text:u,variant:"caption"})})]})]}):o.jsxs(o.Fragment,{children:[t!=="MatchOdds"?o.jsxs("div",{className:"bg-primary rounded-t-lg px-2 py-2 flex flex-row items-center gap-4 w-full justify-between",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[t==="MultiMarket"&&o.jsx("div",{className:"bg-success w-6 h-6 rounded flex items-center justify-center",children:o.jsx(z,{icon:"pin"})}),o.jsx(M,{variant:"subtitle2",text:e,color:"white"})]}),t==="FancyMarket"&&o.jsxs("div",{className:"flex md:gap-8 lg:mr-24 mr-18 gap-6",children:[o.jsx(M,{variant:"caption",text:"No",color:"white"}),o.jsx(M,{variant:"caption",text:"Yes",color:"white"})]}),t==="MultiMarket"&&o.jsx("div",{className:"ml-auto md:block",children:o.jsx(n1,{variant:"primary",size:"extraSmall",text:"Match Odds",onClick:()=>c==null?void 0:c(n)})})]}):o.jsxs("div",{className:"bg-brightgray flex justify-between gap-2 items-center pr-5",children:[o.jsx("div",{className:"flex gap-1 md:gap-3 items-center",children:o.jsx("div",{className:"bg-primary px-2 py-2",children:o.jsx(M,{color:"white",text:e,variant:"subtitle2"})})}),o.jsxs("div",{className:"hidden md:flex gap-2",children:[o.jsx(M,{color:"neutralGray",text:"Matched",variant:"subtitle2"}),o.jsx(M,{color:"black",text:`PTH ${l}`,variant:"subtitle2"})]})]}),t==="MultiMarket"&&o.jsxs("div",{className:"hidden md:flex max-full max-h-12 border border-brightgray mt-1 items-center justify-between px-4 pt-3",children:[o.jsx(M,{variant:"caption",text:`${a} Selections`}),!f&&o.jsx(P3,{})]}),t==="Sports"&&C&&o.jsxs("div",{className:"flex items-center justify-end bg-brightgray px-4 py-2",children:[o.jsx("div",{className:"min-w-10 px-2 text-center",children:o.jsx(M,{variant:"body1",color:"black",text:"Matched"})}),o.jsx("div",{className:"flex items-center justify-center",children:h.map(x=>o.jsx("div",{className:"min-w-36 mx-1 flex justify-center",children:o.jsx(M,{variant:"body1",color:"black",text:x})},x))}),o.jsx("div",{className:"w-9"})]}),(t==="OtherMarket"||t==="MatchOdds")&&o.jsxs("div",{className:"flex justify-between border border-b border-brightgray py-1 px-2",children:[m(),r===3&&o.jsx("div",{className:"ml-1 max-[430px]:hidden",children:o.jsx(P3,{})})]})]})},t4=({marketId:e,eventId:t,providerId:n,runnerId:r,runnerName:s,item:i,index:a,color:l,type:C,disabled:c,showSize:u,min:d,max:h,onClick:f})=>{const m=C===f1.BACK&&a===2||C===f1.LAY&&a===0,x=[f1.YES,f1.NO,f1.ODD,f1.EVEN].includes(C),p={marketId:e,eventId:t,providerId:n,runnerId:r,runnerName:s,type:C,odds:i==null?void 0:i.odds,size:(i==null?void 0:i.oddsSize)||0,min:d,max:h,acceptBestOdds:!(m||x)};return o.jsxs("button",{type:"button",disabled:c||!(i!=null&&i.odds)||!(i!=null&&i.oddsSize),onClick:()=>(i==null?void 0:i.odds)&&(i==null?void 0:i.oddsSize)&&!c&&f(p),className:`min-[420px]:px-1 md:px-2 min-[420px]:py-1 rounded min-w-11.5 min-[420px]:min-w-12 lg:min-w-16 min-h-8 text-center cursor-pointer disabled:cursor-not-allowed flex-1 ${l}`,children:[o.jsx(M,{variant:"smallBold",color:"black",text:i!=null&&i.odds?i.odds:"-"}),u&&o.jsx(M,{variant:"smallMedium",color:"black",text:i!=null&&i.oddsSize?X1(i.oddsSize):"-"})]})},J7=({marketId:e="0",eventId:t="0",providerId:n="0",runnerId:r,runnerName:s="",currentValue:i=0,projectedValue:a=0,notes:l="",batb:C=[],batl:c=[],showOddsSize:u=!1,isFreezed:d=!1,isSuspended:h=!1,suspendedMsg:f="Suspended",min:m=10,max:x=100,isYesNO:p=!0,onRowClick:j=()=>{},onOddClick:y=()=>{}})=>{const w=d||h,k=a!==0,S=Math.max(C==null?void 0:C.length,c==null?void 0:c.length),v=Array.from({length:S},(H,V)=>C[V]),L=Array.from({length:S},(H,V)=>c[V]),N=p?f1.YES:f1.EVEN,E=p?f1.NO:f1.ODD;return o.jsx("div",{className:"w-full border-x border-b border-brightgray py-1 px-2 md:px-4",children:o.jsxs("div",{className:"flex items-start gap-2 justify-between align-center",children:[o.jsxs("div",{className:"flex justify-between w-full cursor-pointer",onClick:()=>j(r),onKeyDown:()=>j(r),children:[o.jsxs("div",{children:[o.jsx(M,{variant:"subtitle2",color:"black",text:s}),l&&o.jsx(M,{variant:"smallMedium",color:"black",text:l})]}),(i||k)&&o.jsx(M,{text:Number((i+a).toFixed(2)),variant:"captionBold",isNumberTypography:!0})]}),o.jsxs("div",{className:"flex gap-1 md:gap-2 items-start",children:[o.jsxs("div",{className:"relative",children:[d&&o.jsx("div",{className:"absolute inset-0 bg-freeze-pattern rounded pointer-events-auto cursor-not-allowed"}),h&&o.jsx("div",{className:"absolute inset-0 flex items-center justify-center rounded border-2 border-error bg-white/30 backdrop-blur-sm",children:o.jsx(M,{variant:"captionBold",color:"error",text:f})}),o.jsxs("div",{className:"flex gap-1",children:[o.jsx("div",{className:"flex flex-col gap-1",children:L.map((H,V)=>o.jsx(t4,{marketId:e,eventId:t,providerId:n,runnerId:r,runnerName:s,item:H,index:V,color:p?y2.NO_COLOR:y2.ODD_COLOR,type:E,disabled:w,showSize:u,min:m,max:x,onClick:y},U1(f1.NO)))}),o.jsx("div",{className:"flex flex-col gap-1",children:v.map((H,V)=>o.jsx(t4,{marketId:e,eventId:t,providerId:n,runnerId:r,runnerName:s,item:H,index:V,color:p?y2.YES_COLOR:y2.ODD_COLOR,type:N,disabled:w,showSize:u,min:m,max:x,onClick:y},U1(f1.YES)))})]})]}),o.jsxs("div",{className:"text-left w-14",children:[o.jsx(M,{variant:"smallMedium",text:"Min/Max"}),o.jsx(M,{variant:"smallMedium",text:`${X1(m)}/${X1(x)}`})]})]})]})})},e0=({marketId:e="0",eventId:t="0",providerId:n="0",runnerId:r,runnerName:s="",currentValue:i=0,projectedValue:a=0,batb:l=[],batl:C=[],level:c=3,showOddsSize:u=!1,isFreezed:d=!1,isSuspended:h=!1,suspendedMsg:f="Suspended",min:m=10,max:x=100,onOddClick:p=()=>{},notes:j=""})=>{const y=d||h,w=i!==0,k=a!==0,S=Array.from({length:c},(L,N)=>l[N]),v=Array.from({length:c},(L,N)=>C[N]);return o.jsxs("div",{className:"w-full border-x border-b border-brightgray py-1 px-1 md:px-4",children:[o.jsxs("div",{className:"flex flex-col min-[420px]:flex-row min-[420px]:items-center gap-2 min-[420px]:justify-between",children:[o.jsxs("div",{className:"flex min-[420px]:flex-col justify-between",children:[o.jsx(M,{text:s,variant:"subtitle2",color:"black"}),!w&&!k?null:o.jsxs("div",{className:"flex gap-1 items-center",children:[(w||k)&&o.jsx(M,{variant:"captionBold",text:i,isNumberTypography:!0}),k&&o.jsxs(o.Fragment,{children:[o.jsx(z,{icon:"forwardArrow",size:12,cursorPointer:!1}),o.jsx(M,{variant:"captionBold",isNumberTypography:!0,text:Number((i+a).toFixed(2))})]})]})]}),o.jsxs("div",{className:"relative flex gap-0.5 sm:gap-1",children:[d&&o.jsx("div",{className:"absolute inset-0 rounded bg-freeze-pattern pointer-events-auto cursor-not-allowed"}),h&&o.jsx("div",{className:"absolute inset-0 flex items-center justify-center rounded border-2 border-error bg-white/30 backdrop-blur-sm",children:o.jsx(M,{variant:"captionBold",color:"error",text:f})}),o.jsx("div",{className:"flex gap-0.5 sm:gap-1 flex-1",children:S.map((L,N)=>o.jsx(t4,{marketId:e,eventId:t,providerId:n,runnerId:r,runnerName:s,item:L,color:y2.BACK_COLORS[N],index:N,type:f1.BACK,disabled:y,showSize:u,min:m,max:x,onClick:p},U1(f1.BACK)))}),o.jsx("div",{className:"flex gap-0.5 sm:gap-1 flex-1",children:v.map((L,N)=>o.jsx(t4,{runnerId:r,runnerName:s,marketId:e,eventId:t,providerId:n,item:L,index:N,color:y2.LAY_COLORS[N],type:f1.LAY,disabled:y,showSize:u,min:m,max:x,onClick:p},U1(f1.LAY)))})]})]}),j&&o.jsx(M,{variant:"caption",color:"black",text:j})]})},t0=({id:e,eventName:t="",inPlay:n=!1,openDate:r="",showBookmakerIcon:s=!1,showFancyIcon:i=!1,showTotalMatched:a=!1,totalMatched:l=0,batb:C=[],batl:c=[],level:u=3,showOddsSize:d=!1,pinned:h=!1,isFreezed:f=!1,isSuspended:m=!1,suspendedMsg:x="Suspended",onClickRedirect:p=()=>{},onOddClick:j=()=>{},onPinClick:y=()=>{}})=>{const{isMobile:w}=A1(),k=Array.from({length:u},(S,v)=>({Back:C[v],Lay:c[v]}));return o.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-2 w-full border-x border-b border-brightgray py-1 px-1 md:px-4",children:[o.jsxs("div",{className:`flex justify-between gap-1 ${n?"md:flex-col":"flex-col"}`,children:[o.jsx("button",{onClick:()=>p(e),type:"button",className:"cursor-pointer text-left",children:o.jsx(M,{variant:w?"captionBold":"body1",text:t,underline:!0,color:"techBlue"})}),o.jsxs("div",{className:"flex gap-1 items-center",children:[o.jsxs("div",{className:"",children:[n&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"hidden md:block",children:o.jsx(M,{variant:"caption",text:_3.IN_PLAY_MSG,color:"success"})}),o.jsx("div",{className:"md:hidden w-4 h-4 bg-success rounded-full"})]}),r&&o.jsx(M,{variant:"caption",text:r,color:"neutralGray"})]}),o.jsxs("div",{className:"flex gap-1 items-center",children:[s&&o.jsx(z,{icon:"letterB",size:16}),i&&o.jsx(z,{icon:"letterF",size:16})]})]})]}),o.jsxs("div",{className:"flex flex-row md:items-center justify-between gap-1",children:[a&&!w&&o.jsx("div",{className:"min-w-10 px-2",children:o.jsx(M,{variant:"caption",color:"slategray",text:`${_3.MATCHED_POINTS} ${X1(l)}`})}),o.jsxs("div",{className:"relative flex gap-1 flex-1",children:[f&&o.jsx("div",{className:"absolute inset-0 z-level-1 rounded bg-freeze-pattern pointer-events-auto cursor-not-allowed"}),m&&o.jsx("div",{className:"absolute inset-0 z-level-1 flex items-center justify-center rounded border-2 border-error backdrop-blur-xs",children:o.jsx(M,{variant:"captionBold",color:"error",text:x})}),k.map(S=>o.jsx("div",{className:"flex gap-1 flex-1",children:[f1.BACK,f1.LAY].map(v=>{const L=S[v],N=v===f1.BACK,E=N?"bg-babyBlue":"bg-peachyPink";return o.jsxs("button",{type:"button",disabled:!(L!=null&&L.odds)||f||m,onClick:()=>!f&&!m&&(j==null?void 0:j(N?f1.BACK:f1.LAY,L==null?void 0:L.odds)),className:`${E} flex-1 min-[420px]:px-1 md:px-2 min-[420px]:py-1 rounded min-w-10 min-[420px]:min-w-12 md:min-w-18 min-h-8 text-center cursor-pointer disabled:cursor-not-allowed`,children:[o.jsx(M,{variant:"smallBold",color:"black",text:L!=null&&L.odds?L.odds:"-"}),d&&o.jsx(M,{variant:"smallMedium",color:"black",text:L!=null&&L.oddsSize?X1(L.oddsSize):"-"})]},U1(v))})},U1("Pair_Odds")))]}),o.jsx("button",{type:"button",onClick:()=>y==null?void 0:y(!h),className:"sm:ml-2",children:o.jsx(z,{icon:h?"pinned":"pin",color:h?"error":"slategray",size:w?20:24})})]})]})},n0=e=>{switch(e.variant){case"fancy":return o.jsx(J7,{...e});case"layered":return o.jsx(e0,{...e});case"pair":return o.jsx(t0,{...e});default:return null}},A5=e=>{const{checked:t,onChange:n,disabled:r=!1,ariaLabel:s="Toggle",onColor:i,offColor:a}=e,l=()=>{r||n==null||n(!t)},C=t?i??"bg-techBlue":a??"bg-primary";return o.jsx("button",{type:"button",role:"switch","aria-checked":t,"aria-label":s,disabled:r,onClick:l,className:`relative w-16 h-8 rounded-full transition-colors duration-200 bg-offwhite border border-neutralGray ${r?"opacity-50 cursor-not-allowed":"cursor-pointer"}`,children:o.jsx("span",{className:`absolute top-[3px] left-1 w-6 h-6 rounded-full transition-all duration-200 ease-in-out ${C} ${t?"translate-x-8":"translate-x-0"}`})})},r0=e=>{const{competition:t,startStatus:n,title:r,time:s,id:i,isLive:a,onClick:l}=e;return o.jsxs("div",{className:"w-full overflow-hidden rounded-xl border border-brightgray bg-white",children:[o.jsxs("div",{className:"flex items-center justify-between bg-primary px-7 py-2",children:[o.jsx(M,{variant:"body1",color:"secondary",text:t}),o.jsx($4,{text:"Live",state:a?"active":"locked",variant:"filled"})]}),o.jsxs("div",{className:"py-6 md:py-4 flex flex-col gap-3 md:gap-4 pr-3 pl-7",children:[o.jsx(M,{variant:"h4",color:"black",text:r}),o.jsxs("div",{className:"flex items-center justify-between ",children:[o.jsxs("div",{className:"flex items-center gap-2 md:gap-3",children:[o.jsx($4,{text:n,state:a?"active":"info",variant:"outlined",iconName:"timer"}),o.jsx(M,{variant:"caption",color:"slategray",text:s})]}),o.jsx("div",{children:o.jsx(n1,{variant:"ghost",text:"View",iconName:"caretRight",textColor:"techBlue",size:"small",onClick:()=>l==null?void 0:l(i)})})]})]})]})},o0={matchOdds:{supportsLimits:!0},bookmaker:{supportsLimits:!0},fancy:{supportsLimits:!1}},s0=e=>{const{eventId:t,eventName:n,eventStartTime:r,betTiming:s,betLimits:i,visible:a,onToggle:l,onEdit:C,onView:c}=e,{isMobile:u}=A1();return o.jsxs("div",{className:"w-full max-w-lg mx-auto bg-white rounded-xl shadow-sm border border-brightgray overflow-hidden",children:[o.jsxs("div",{className:"bg-primary p-2 flex flex-col md:flex-row justify-between items-start sm:items-center gap-1 md:gap-4",children:[o.jsxs("div",{className:"flex w-full justify-between md:flex-col",children:[o.jsx(M,{variant:u?"captionBold":"subtitle1",text:n,color:"white"}),o.jsx(M,{variant:"caption",text:r,color:"white"})]}),o.jsxs("div",{className:"flex flex-row-reverse w-full mt-1 md:w-auto md:flex-row justify-between gap-1 md:gap-4 items-center",children:[o.jsx(A5,{checked:a,onChange:d=>l(t,d),onColor:"bg-success",offColor:"bg-error"}),o.jsx(n1,{text:"Edit",iconName:"edit",variant:"secondary",iconPosition:"right",size:"small",onClick:()=>C(t)})]})]}),o.jsxs("div",{className:"py-1 md:py-2",children:[o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-1 md:gap-6 items-center px-2 py-1",children:[o.jsx(M,{variant:u?"captionBold":"subtitle1",text:"Bet Timer"}),o.jsx("div",{className:"col-span-1 md:col-span-3 grid grid-cols-3 gap-3 md:gap-6",children:s.map(({key:d,label:h,value:f})=>o.jsxs("div",{className:"flex flex-col items-center text-center space-y-1",children:[o.jsx(M,{variant:"caption",text:h,color:"smokyblack"}),o.jsx(M,{variant:u?"captionBold":"subtitle2",text:f,color:"smokyblack"})]},d))})]}),o.jsx("div",{className:"h-px w-full bg-brightgray"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-1 md:gap-6 items-center px-2 py-1",children:[o.jsx(M,{variant:u?"captionBold":"subtitle1",text:"Bet Limits"}),o.jsx("div",{className:"col-span-1 md:col-span-3 grid grid-cols-3 gap-3 md:gap-6",children:Object.keys(o0).map(d=>{const h=i[d];return o.jsx("div",{className:"text-center space-y-1 md:space-y-2 flex justify-end flex-col",children:h?o.jsxs(o.Fragment,{children:[o.jsx(M,{variant:"caption",text:"Min / Max",color:"smokyblack"}),o.jsx(M,{variant:u?"captionBold":"subtitle2",text:`${h.min} / ${X1(h.max)}`,color:"black"})]}):o.jsx(n1,{size:"small",variant:"ghost",text:"View",textColor:"techBlue",iconName:"caretRight",onClick:()=>c(t)})},d)})})]})]})]})};var w1=function(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},i0=["onCopy","onCut","onPaste"],a0=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],l0=["onFocus","onBlur"],C0=["onInput","onInvalid","onReset","onSubmit"],c0=["onLoad","onError"],u0=["onKeyDown","onKeyPress","onKeyUp"],d0=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],f0=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],h0=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],g0=["onSelect"],m0=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],p0=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],x0=["onScroll"],v0=["onWheel"],w0=["onAnimationStart","onAnimationEnd","onAnimationIteration"],y0=["onTransitionEnd"],j0=["onToggle"],M0=["onChange"],b0=w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1(w1([],i0,!0),a0,!0),l0,!0),C0,!0),c0,!0),u0,!0),d0,!0),f0,!0),h0,!0),g0,!0),m0,!0),p0,!0),x0,!0),v0,!0),w0,!0),y0,!0),M0,!0),j0,!0);function L0(e,t){var n={};return b0.forEach(function(r){var s=e[r];s&&(n[r]=s)}),n}function W5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=W5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function I2(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=W5(e))&&(r&&(r+=" "),r+=t);return r}function L1(e){if(e instanceof Date)return e.getHours();if(typeof e=="string"){var t=e.split(":");if(t.length>=2){var n=t[0];if(n){var r=parseInt(n,10);if(!isNaN(r))return r}}}throw new Error("Failed to get hours from date: ".concat(e,"."))}function K1(e){if(e instanceof Date)return e.getMinutes();if(typeof e=="string"){var t=e.split(":");if(t.length>=2){var n=t[1]||"0",r=parseInt(n,10);if(!isNaN(r))return r}}throw new Error("Failed to get minutes from date: ".concat(e,"."))}function d2(e){if(e instanceof Date)return e.getSeconds();if(typeof e=="string"){var t=e.split(":");if(t.length>=2){var n=t[2]||"0",r=parseInt(n,10);if(!isNaN(r))return r}}throw new Error("Failed to get seconds from date: ".concat(e,"."))}function V4(e){if(e instanceof Date)return e.getMilliseconds();if(typeof e=="string"){var t=e.split(":");if(t.length>=2){var n=t[2]||"0",r=n.split(".")[1]||"0",s=parseInt(r,10);if(!isNaN(s))return s}}throw new Error("Failed to get seconds from date: ".concat(e,"."))}function F2(e,t){t===void 0&&(t=2);var n="".concat(e);return n.length>=t?e:"0000".concat(n).slice(-t)}function Y5(e){var t=F2(L1(e)),n=F2(K1(e));return"".concat(t,":").concat(n)}function z5(e){var t=F2(L1(e)),n=F2(K1(e)),r=F2(d2(e));return"".concat(t,":").concat(n,":").concat(r)}function E4(e){var t=e.angle,n=t===void 0?0:t,r=e.name,s=e.length,i=s===void 0?100:s,a=e.oppositeLength,l=a===void 0?10:a,C=e.width,c=C===void 0?1:C;return o.jsx("div",{className:"react-clock__hand react-clock__".concat(r,"-hand"),style:{transform:"rotate(".concat(n,"deg)")},children:o.jsx("div",{className:"react-clock__hand__body react-clock__".concat(r,"-hand__body"),style:{width:"".concat(c,"px"),top:"".concat(50-i/2,"%"),bottom:"".concat(50-l/2,"%")}})})}var F3=g.memo(function(t){var n=t.angle,r=n===void 0?0:n,s=t.length,i=s===void 0?10:s,a=t.name,l=t.width,C=l===void 0?1:l;return o.jsx("div",{className:"react-clock__mark react-clock__".concat(a,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:o.jsx("div",{className:"react-clock__mark__body react-clock__".concat(a,"-mark__body"),style:{width:"".concat(C,"px"),top:0,bottom:"".concat(100-i/2,"%")}})})}),S0=g.memo(function(t){var n=t.angle,r=n===void 0?0:n,s=t.length,i=s===void 0?10:s,a=t.name,l=t.number;return o.jsx("div",{className:"react-clock__mark react-clock__".concat(a,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:o.jsx("div",{className:"react-clock__mark__number",style:{transform:"rotate(-".concat(r,"deg)"),top:"".concat(i/2,"%")},children:l})})}),O4,B3;function k0(){if(B3)return O4;B3=1;const e=(C,c,u,d)=>{if(u==="length"||u==="prototype"||u==="arguments"||u==="caller")return;const h=Object.getOwnPropertyDescriptor(C,u),f=Object.getOwnPropertyDescriptor(c,u);!t(h,f)&&d||Object.defineProperty(C,u,f)},t=function(C,c){return C===void 0||C.configurable||C.writable===c.writable&&C.enumerable===c.enumerable&&C.configurable===c.configurable&&(C.writable||C.value===c.value)},n=(C,c)=>{const u=Object.getPrototypeOf(c);u!==Object.getPrototypeOf(C)&&Object.setPrototypeOf(C,u)},r=(C,c)=>`/* Wrapped ${C}*/
59
59
  ${c}`,s=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),i=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),a=(C,c,u)=>{const d=u===""?"":`with ${u.trim()}() `,h=r.bind(null,d,c.toString());Object.defineProperty(h,"name",i),Object.defineProperty(C,"toString",{...s,value:h})};return O4=(C,c,{ignoreNonConfigurable:u=!1}={})=>{const{name:d}=C;for(const h of Reflect.ownKeys(c))e(C,c,h,u);return n(C,c),a(C,c,d),C},O4}var R2={exports:{}},Z4,T3;function N0(){return T3||(T3=1,Z4=()=>{const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}),Z4}var Q2=R2.exports,$3;function H0(){return $3||($3=1,(function(e,t){var n=Q2&&Q2.__awaiter||function(a,l,C,c){return new(C||(C=Promise))(function(u,d){function h(x){try{m(c.next(x))}catch(p){d(p)}}function f(x){try{m(c.throw(x))}catch(p){d(p)}}function m(x){x.done?u(x.value):new C(function(p){p(x.value)}).then(h,f)}m((c=c.apply(a,l||[])).next())})},r=Q2&&Q2.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const s=r(N0());function i(a,l="maxAge"){let C,c,u;const d=()=>n(this,void 0,void 0,function*(){if(C!==void 0)return;const m=x=>n(this,void 0,void 0,function*(){u=s.default();const p=x[1][l]-Date.now();if(p<=0){a.delete(x[0]),u.resolve();return}return C=x[0],c=setTimeout(()=>{a.delete(x[0]),u&&u.resolve()},p),typeof c.unref=="function"&&c.unref(),u.promise});try{for(const x of a)yield m(x)}catch{}C=void 0}),h=()=>{C=void 0,c!==void 0&&(clearTimeout(c),c=void 0),u!==void 0&&(u.reject(void 0),u=void 0)},f=a.set.bind(a);return a.set=(m,x)=>{a.has(m)&&a.delete(m);const p=f(m,x);return C&&C===m&&h(),d(),p},d(),a}t.default=i,e.exports=i,e.exports.default=i})(R2,R2.exports)),R2.exports}var D4,I3;function V0(){if(I3)return D4;I3=1;const e=k0(),t=H0(),n=new WeakMap,r=new WeakMap,s=(i,{cacheKey:a,cache:l=new Map,maxAge:C}={})=>{typeof C=="number"&&t(l);const c=function(...u){const d=a?a(u):u[0],h=l.get(d);if(h)return h.data;const f=i.apply(this,u);return l.set(d,{data:f,maxAge:C?Date.now()+C:Number.POSITIVE_INFINITY}),f};return e(c,i,{ignoreNonConfigurable:!0}),r.set(c,l),c};return s.decorator=(i={})=>(a,l,C)=>{const c=a[l];if(typeof c!="function")throw new TypeError("The decorated value must be a function");delete C.value,delete C.writable,C.get=function(){if(!n.has(this)){const u=s(c,i);return n.set(this,u),u}return n.get(this)}},s.clear=i=>{const a=r.get(i);if(!a)throw new TypeError("Can't clear a function that was not memoized!");if(typeof a.clear!="function")throw new TypeError("The cache Map can't be cleared!");a.clear()},D4=s,D4}var E0=V0();const G5=e5(E0);function O0(e){return typeof e=="string"}function Z0(e,t,n){return n.indexOf(e)===t}function D0(e){return e.toLowerCase()===e}function A3(e){return e.indexOf(",")===-1?e:e.split(",")}function U4(e){if(!e)return e;if(e==="C"||e==="posix"||e==="POSIX")return"en-US";if(e.indexOf(".")!==-1){var t=e.split(".")[0],n=t===void 0?"":t;return U4(n)}if(e.indexOf("@")!==-1){var r=e.split("@")[0],n=r===void 0?"":r;return U4(n)}if(e.indexOf("-")===-1||!D0(e))return e;var s=e.split("-"),i=s[0],a=s[1],l=a===void 0?"":a;return"".concat(i,"-").concat(l.toUpperCase())}function _0(e){var t=e===void 0?{}:e,n=t.useFallbackLocale,r=n===void 0?!0:n,s=t.fallbackLocale,i=s===void 0?"en-US":s,a=[];if(typeof navigator<"u"){for(var l=navigator.languages||[],C=[],c=0,u=l;c<u.length;c++){var d=u[c];C=C.concat(A3(d))}var h=navigator.language,f=h&&A3(h);a=a.concat(C,f)}return r&&a.push(i),a.filter(O0).map(U4).filter(Z0)}var R0=G5(_0,{cacheKey:JSON.stringify});function P0(e){return R0(e)[0]||null}var d3=G5(P0,{cacheKey:JSON.stringify});function F0(e,t){return t.toLocaleString(e||d3()||void 0)}function B0(e){return e!==null&&e!==!1&&!Number.isNaN(Number(e))}function T0(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Math.max.apply(Math,e.filter(B0))}function $0(e){var t=e.className,n=e.formatHour,r=n===void 0?F0:n,s=e.hourHandLength,i=s===void 0?50:s,a=e.hourHandOppositeLength,l=e.hourHandWidth,C=l===void 0?4:l,c=e.hourMarksLength,u=c===void 0?10:c,d=e.hourMarksWidth,h=d===void 0?3:d,f=e.locale,m=e.minuteHandLength,x=m===void 0?70:m,p=e.minuteHandOppositeLength,j=e.minuteHandWidth,y=j===void 0?2:j,w=e.minuteMarksLength,k=w===void 0?6:w,S=e.minuteMarksWidth,v=S===void 0?1:S,L=e.renderHourMarks,N=L===void 0?!0:L,E=e.renderMinuteHand,H=E===void 0?!0:E,V=e.renderMinuteMarks,D=V===void 0?!0:V,W=e.renderNumbers,U=e.renderSecondHand,X=U===void 0?!0:U,c1=e.secondHandLength,g1=c1===void 0?90:c1,x1=e.secondHandOppositeLength,Q=e.secondHandWidth,o1=Q===void 0?1:Q,b=e.size,_=b===void 0?150:b,A=e.useMillisecondPrecision,F=e.value;function h1(){if(!D)return null;for(var d1=[],s1=1;s1<=60;s1+=1){var W1=N&&!(s1%5);W1||d1.push(o.jsx(F3,{angle:s1*6,length:k,name:"minute",width:v},"minute_".concat(s1)))}return d1}function R(){if(!N)return null;for(var d1=[],s1=1;s1<=12;s1+=1)d1.push(o.jsx(F3,{angle:s1*30,length:u,name:"hour",width:h},"hour_".concat(s1)));return d1}function Z(){if(!W)return null;for(var d1=[],s1=1;s1<=12;s1+=1)d1.push(o.jsx(S0,{angle:s1*30,length:T0(N&&u,D&&k,0),name:"number",number:r(f,s1)},"number_".concat(s1)));return d1}function a1(){return o.jsxs("div",{className:"react-clock__face",children:[h1(),R(),Z()]})}function m1(){var d1=F?L1(F)*30+K1(F)/2+d2(F)/120+(A?V4(F)/12e4:0):0;return o.jsx(E4,{angle:d1,length:i,name:"hour",oppositeLength:a,width:C})}function u1(){if(!H)return null;var d1=F?L1(F)*360+K1(F)*6+d2(F)/10+(A?V4(F)/1e4:0):0;return o.jsx(E4,{angle:d1,length:x,name:"minute",oppositeLength:p,width:y})}function P1(){if(!X)return null;var d1=F?K1(F)*360+d2(F)*6+(A?V4(F)*.006:0):0;return o.jsx(E4,{angle:d1,length:g1,name:"second",oppositeLength:x1,width:o1})}return o.jsxs("time",{className:I2("react-clock",t),dateTime:F instanceof Date?F.toLocaleTimeString("en",{hourCycle:"h23",hour:"2-digit",minute:H?"2-digit":void 0,second:X?"2-digit":void 0}):F||void 0,style:{width:_,height:_},children:[a1(),m1(),u1(),P1()]})}function M1(e){return e.getBoundingClientRect()}function W3(e,t){return{get collidedTop(){return M1(e).top<M1(t).top},get collidedBottom(){return M1(e).bottom>M1(t).bottom},get collidedLeft(){return M1(e).left<M1(t).left},get collidedRight(){return M1(e).right>M1(t).right},get overflowTop(){return M1(t).top-M1(e).top},get overflowBottom(){return M1(e).bottom-M1(t).bottom},get overflowLeft(){return M1(t).left-M1(e).left},get overflowRight(){return M1(e).right-M1(t).right}}}var _4,Y3;function I0(){if(Y3)return _4;Y3=1;var e=process.env.NODE_ENV!=="production",t=function(){};if(e){var n=function(s,i){var a=arguments.length;i=new Array(a>1?a-1:0);for(var l=1;l<a;l++)i[l-1]=arguments[l];var C=0,c="Warning: "+s.replace(/%s/g,function(){return i[C++]});typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}};t=function(r,s,i){var a=arguments.length;i=new Array(a>2?a-2:0);for(var l=2;l<a;l++)i[l-2]=arguments[l];if(s===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");r||n.apply(null,[s].concat(i))}}return _4=t,_4}var A0=I0();const z3=e5(A0);var n2=function(){return n2=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},n2.apply(this,arguments)},W0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n},Y0=typeof document<"u",z0=Y0&&"MutationObserver"in window;function J2(e){return e.charAt(0).toUpperCase()+e.slice(1)}function G0(e){for(var t=e.parentElement;t;){var n=window.getComputedStyle(t).overflow;if(n.split(" ").every(function(r){return r==="auto"||r==="scroll"}))return t;t=t.parentElement}return document.documentElement}function q5(e){var t=e.axis,n=e.container,r=e.element,s=e.invertAxis,i=e.scrollContainer,a=e.secondary,l=e.spacing,C=window.getComputedStyle(r),c=n.parentElement;if(!c)return;var u=W3(c,i),d=W3(c,document.documentElement),h=t==="x",f=h?"left":"top",m=h?"right":"bottom",x=h?"width":"height",p="overflow".concat(J2(f)),j="overflow".concat(J2(m)),y="scroll".concat(J2(f)),w=J2(x),k="offset".concat(w),S="client".concat(w),v="min-".concat(x),L=i[k]-i[S],N=typeof l=="object"?l[f]:l,E=-Math.max(u[p],d[p]+document.documentElement[y])-N,H=typeof l=="object"?l[m]:l,V=-Math.max(u[j],d[j]-document.documentElement[y])-H-L;a&&(E+=c[S],V+=c[S]);var D=r[k];function W(){r.style[f]="auto",r.style[m]=a?"0":"100%"}function U(){r.style[f]=a?"0":"100%",r.style[m]="auto"}function X(o1,b){var _=D<=o1;return _&&b(),_}function c1(){return X(E,W)}function g1(){return X(V,U)}function x1(){var o1=E>V,b=C.getPropertyValue(v),_=b?parseInt(b,10):null;function A(F){z3(!_||F>=_,"<Fit />'s child will not fit anywhere with its current ".concat(v," of ").concat(_,"px."));var h1=Math.max(F,_||0);z3(!1,"<Fit />'s child needed to have its ".concat(x," decreased to ").concat(h1,"px.")),r.style[x]="".concat(h1,"px")}o1?(A(E),W()):(A(V),U())}var Q;s?Q=c1()||g1():Q=g1()||c1(),Q||x1()}function q0(e){q5(e)}function U0(e){q5(n2(n2({},e),{axis:e.axis==="x"?"y":"x",secondary:!0}))}function K0(e){var t=e.invertAxis,n=e.invertSecondaryAxis,r=W0(e,["invertAxis","invertSecondaryAxis"]);q0(n2(n2({},r),{invertAxis:t})),U0(n2(n2({},r),{invertAxis:n}))}function X0(e){var t=e.children,n=e.invertAxis,r=e.invertSecondaryAxis,s=e.mainAxis,i=s===void 0?"y":s,a=e.spacing,l=a===void 0?8:a,C=g.useRef(void 0),c=g.useRef(void 0),u=g.useRef(void 0),d=g.useRef(void 0),h=g.useRef(void 0),f=g.useCallback(function(){if(!(!h.current||!C.current||!c.current)){var p=c.current.clientWidth,j=c.current.clientHeight;if(!(u.current===p&&d.current===j)){u.current=p,d.current=j;var y=C.current.parentElement;if(y){var w=window.getComputedStyle(c.current),k=w.position;k!=="absolute"&&(c.current.style.position="absolute");var S=window.getComputedStyle(y),v=S.position;v!=="relative"&&v!=="absolute"&&(y.style.position="relative"),K0({axis:i,container:C.current,element:c.current,invertAxis:n,invertSecondaryAxis:r,scrollContainer:h.current,spacing:l})}}}},[n,r,i,l]),m=g.Children.only(t);g.useEffect(function(){f();function p(){f()}if(z0&&c.current){var j=new MutationObserver(p);j.observe(c.current,{attributes:!0,attributeFilter:["class","style"]})}},[f]);function x(p){!p||!(p instanceof HTMLElement)||(c.current=p,h.current=G0(p))}return o.jsx("span",{ref:function(p){if(p){C.current=p;var j=p==null?void 0:p.firstElementChild;x(j)}},style:{display:"contents"},children:m})}function Q0(e){var t=e.children;return o.jsx("span",{className:"react-time-picker__inputGroup__divider",children:t})}var J0=["normal","small-caps"];function U5(e){if(!e)return"";var t=window.getComputedStyle(e);if(t.font)return t.font;var n=t.fontFamily!=="";if(!n)return"";var r=J0.includes(t.fontVariant)?t.fontVariant:"normal";return"".concat(t.fontStyle," ").concat(r," ").concat(t.fontWeight," ").concat(t.fontSize," / ").concat(t.lineHeight," ").concat(t.fontFamily)}var G3;function et(e,t){var n=G3||(G3=document.createElement("canvas")),r=n.getContext("2d");if(!r)return null;r.font=t;var s=r.measureText(e).width;return Math.ceil(s)}function n4(e){if(typeof document>"u"||!e)return null;var t=U5(e),n=e.value||e.placeholder,r=et(n,t);return r===null?null:(e.style.width="".concat(r,"px"),r)}var f3=typeof document<"u",tt=f3?g.useLayoutEffect:g.useEffect,nt=f3&&/(MSIE|Trident\/|Edge\/)/.test(navigator.userAgent),rt=f3&&/Firefox/.test(navigator.userAgent);function ot(e){var t=e.target;nt?requestAnimationFrame(function(){return t.select()}):t.select()}function st(e){if(document.readyState==="complete")return;function t(){n4(e)}window.addEventListener("load",t)}function it(e){if(!document.fonts)return;var t=U5(e);if(!t)return;var n=document.fonts.check(t);if(n)return;function r(){n4(e)}document.fonts.addEventListener("loadingdone",r)}function at(e){if(e&&"selectionStart"in e&&e.selectionStart!==null&&"selectionEnd"in e&&e.selectionEnd!==null)return e.value.slice(e.selectionStart,e.selectionEnd);if("getSelection"in window){var t=window.getSelection();return t&&t.toString()}return null}function lt(e){if(e!==null)return function(n){if(!rt){var r=n.key,s=n.target,i=s.value,a=r.length===1&&/\d/.test(r),l=at(s);(!a||!(l||i.length<e))&&n.preventDefault()}}}function a4(e){var t=e.ariaLabel,n=e.autoFocus,r=e.className,s=e.disabled,i=e.inputRef,a=e.max,l=e.min,C=e.name,c=e.nameForClass,u=e.onChange,d=e.onKeyDown,h=e.onKeyUp,f=e.placeholder,m=f===void 0?"--":f,x=e.required,p=e.showLeadingZeros,j=e.step,y=e.value;tt(function(){!i||!i.current||(n4(i.current),st(i.current),it(i.current))},[i,y]);var w=p&&y&&Number(y)<10&&(y==="0"||!y.toString().startsWith("0")),k=a?a.toString().length:null;return o.jsxs(o.Fragment,{children:[w?o.jsx("span",{className:"".concat(r,"__leadingZero"),children:"0"}):null,o.jsx("input",{"aria-label":t,autoComplete:"off",autoFocus:n,className:I2("".concat(r,"__input"),"".concat(r,"__").concat(c||C),w&&"".concat(r,"__input--hasLeadingZero")),"data-input":"true",disabled:s,inputMode:"numeric",max:a,min:l,name:C,onChange:u,onFocus:ot,onKeyDown:d,onKeyPress:lt(k),onKeyUp:function(S){n4(S.target),h&&h(S)},placeholder:m,ref:i,required:x,step:j,type:"number",value:y!==null?y:""})]})}function q3(e,t){var n=Number(e);return t==="am"&&n===12?n=0:t==="pm"&&n<12&&(n+=12),n}function j2(e){var t=Number(e)%12||12;return[t,Number(e)<12?"am":"pm"]}var R4=new Map;function K5(e){return function(n,r){var s=n||d3();R4.has(s)||R4.set(s,new Map);var i=R4.get(s);return i.has(e)||i.set(e,new Intl.DateTimeFormat(s||void 0,e).format),i.get(e)(r)}}var P4=new Map;function Ct(e){return function(t,n){var r=t||d3();P4.has(r)||P4.set(r,new Map);var s=P4.get(r);return s.has(e)||s.set(e,new Intl.NumberFormat(r||void 0,e).format),s.get(e)(n)}}var ct=["9","٩"],U3=new RegExp("[".concat(ct.join(""),"]")),K3=K5({hour:"numeric"});function X5(e){var t=K3(e,new Date(2017,0,1,9)),n=K3(e,new Date(2017,0,1,21)),r=t.split(U3),s=r[0],i=r[1],a=n.split(U3),l=a[0],C=a[1];if(C!==void 0){if(s!==l)return[s,l].map(function(c){return c.trim()});if(i!==C)return[i,C].map(function(c){return c.trim()})}return["AM","PM"]}function Q5(e){return e!==null&&e!==!1&&!Number.isNaN(Number(e))}function l4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Math.min.apply(Math,e.filter(Q5))}function C4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Math.max.apply(Math,e.filter(Q5))}var K4=function(){return K4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},K4.apply(this,arguments)},ut=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};function dt(e){var t=e.amPm,n=e.maxTime,r=e.minTime,s=e.value,i=ut(e,["amPm","maxTime","minTime","value"]),a=l4(12,n&&(function(){var c=j2(L1(n)),u=c[0],d=c[1];return d!==t?null:u})()),l=C4(1,r&&(function(){var c=j2(L1(r)),u=c[0],d=c[1];return d!==t||u===12?null:u})()),C=s?j2(s)[0].toString():"";return o.jsx(a4,K4({max:a,min:l,name:"hour12",nameForClass:"hour",value:C},i))}var X4=function(){return X4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},X4.apply(this,arguments)},ft=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};function ht(e){var t=e.maxTime,n=e.minTime,r=ft(e,["maxTime","minTime"]),s=l4(23,t&&L1(t)),i=C4(0,n&&L1(n));return o.jsx(a4,X4({max:s,min:i,name:"hour24",nameForClass:"hour"},r))}var Q4=function(){return Q4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Q4.apply(this,arguments)},gt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};function mt(e){var t=e.hour,n=e.maxTime,r=e.minTime,s=e.showLeadingZeros,i=s===void 0?!0:s,a=gt(e,["hour","maxTime","minTime","showLeadingZeros"]);function l(u){return t===L1(u).toString()}var C=l4(59,n&&l(n)&&K1(n)),c=C4(0,r&&l(r)&&K1(r));return o.jsx(a4,Q4({max:C,min:c,name:"minute",showLeadingZeros:i},a))}var J4=function(){return J4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},J4.apply(this,arguments)},pt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};function xt(e){var t=e.hour,n=e.maxTime,r=e.minTime,s=e.minute,i=e.showLeadingZeros,a=i===void 0?!0:i,l=pt(e,["hour","maxTime","minTime","minute","showLeadingZeros"]);function C(d){return t===L1(d).toString()&&s===K1(d).toString()}var c=l4(59,n&&C(n)&&d2(n)),u=C4(0,r&&C(r)&&d2(r));return o.jsx(a4,J4({max:c,min:u,name:"second",showLeadingZeros:a},l))}function vt(e){var t=e.ariaLabel,n=e.disabled,r=e.maxTime,s=e.minTime,i=e.name,a=e.onChange,l=e.required,C=e.value,c=e.valueType,u=(function(){switch(c){case"hour":return function(f){return"".concat(L1(f),":00")};case"minute":return Y5;case"second":return z5;default:throw new Error("Invalid valueType")}})(),d=(function(){switch(c){case"hour":return 3600;case"minute":return 60;case"second":return 1;default:throw new Error("Invalid valueType")}})();function h(f){f.stopPropagation()}return o.jsx("input",{"aria-label":t,disabled:n,hidden:!0,max:r?u(r):void 0,min:s?u(s):void 0,name:i,onChange:a,onFocus:h,required:l,step:d,style:{visibility:"hidden",position:"absolute",zIndex:"-999"},type:"time",value:C?u(C):""})}function wt(e){var t=e.ariaLabel,n=e.autoFocus,r=e.className,s=e.disabled,i=e.inputRef,a=e.locale,l=e.maxTime,C=e.minTime,c=e.onChange,u=e.onKeyDown,d=e.required,h=e.value,f=C?j2(L1(C))[1]==="pm":!1,m=l?j2(L1(l))[1]==="am":!1,x="amPm",p=X5(a),j=p[0],y=p[1];return o.jsxs("select",{"aria-label":t,autoFocus:n,className:I2("".concat(r,"__input"),"".concat(r,"__").concat(x)),"data-input":"true","data-select":"true",disabled:s,name:x,onChange:c,onKeyDown:u,ref:i,required:d,value:h!==null?h:"",children:[!h&&o.jsx("option",{value:"",children:"--"}),o.jsx("option",{disabled:f,value:"am",children:j}),o.jsx("option",{disabled:m,value:"pm",children:y})]})}var c2=function(){return c2=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},c2.apply(this,arguments)},X3={},yt=["hour","minute","second"];function jt(e){return e.dataset.input==="true"}function Q3(e,t){var n=e;do n=n[t];while(n&&!jt(n));return n}function F4(e){e&&e.focus()}function Mt(e,t,n){var r=[],s=new RegExp(Object.keys(t).map(function(a){return"".concat(a,"+")}).join("|"),"g"),i=e.match(s);return e.split(s).reduce(function(a,l,C){var c=l&&o.jsx(Q0,{children:l},"separator_".concat(C));a.push(c);var u=i&&i[C];if(u){var d=t[u]||t[Object.keys(t).find(function(h){return u.match(h)})];if(!d)return a;!n&&r.includes(d)?a.push(u):(a.push(d(u,C)),r.push(d))}return a},[])}var e4=Ct({useGrouping:!1});function bt(e){var t=e.amPmAriaLabel,n=e.autoFocus,r=e.className,s=e.disabled,i=e.format,a=e.hourAriaLabel,l=e.hourPlaceholder,C=e.isClockOpen,c=C===void 0?null:C,u=e.locale,d=e.maxDetail,h=d===void 0?"minute":d,f=e.maxTime,m=e.minTime,x=e.minuteAriaLabel,p=e.minutePlaceholder,j=e.name,y=j===void 0?"time":j,w=e.nativeInputAriaLabel,k=e.onChange,S=e.onInvalidChange,v=e.required,L=e.secondAriaLabel,N=e.secondPlaceholder,E=e.value,H=g.useState(null),V=H[0],D=H[1],W=g.useState(null),U=W[0],X=W[1],c1=g.useState(null),g1=c1[0],x1=c1[1],Q=g.useState(null),o1=Q[0],b=Q[1],_=g.useState(null),A=_[0],F=_[1],h1=g.useRef(null),R=g.useRef(null),Z=g.useRef(null),a1=g.useRef(null),m1=g.useRef(null),u1=g.useState(c),P1=u1[0],d1=u1[1],s1=g.useRef(void 0);g.useEffect(function(){d1(c)},[c]),g.useEffect(function(){var O=E;O?(D(j2(L1(O))[1]),X(L1(O).toString()),x1(K1(O).toString()),b(d2(O).toString()),F(O)):(D(null),X(null),x1(null),b(null),F(null))},[E,m,f,h,P1]);var W1=h,O1=(function(){var O=yt.indexOf(h),Y=X3[O]||(function(){var e1={hour:"numeric"};return O>=1&&(e1.minute="numeric"),O>=2&&(e1.second="numeric"),X3[O]=e1,e1})();return K5(Y)})();function b2(O){var Y=(function(){switch(W1){case"hour":case"minute":return Y5;case"second":return z5;default:throw new Error("Invalid valueType")}})();return Y(O)}var o2=i||(function(){var O=21,Y=9,e1=13,i1=14,l2=new Date(2017,0,1,O,e1,i1);return O1(u,l2).replace(e4(u,Y),"h").replace(e4(u,O),"H").replace(e4(u,e1),"mm").replace(e4(u,i1),"ss").replace(new RegExp(X5(u).join("|")),"a")})(),L2=(function(){var O=o2.match(/[^0-9a-z]/i);return O?O[0]:null})();function s2(O){if(O.target===O.currentTarget){var Y=O.target.children[1];F4(Y)}}function S2(O){switch(s1.current=O.key,O.key){case"ArrowLeft":case"ArrowRight":case L2:{O.preventDefault();var Y=O.target,e1=O.key==="ArrowLeft"?"previousElementSibling":"nextElementSibling",i1=Q3(Y,e1);F4(i1);break}}}function g2(O){var Y=O.key,e1=O.target,i1=s1.current===Y;if(i1){var l2=!isNaN(Number(Y));if(l2){var Q1=e1.getAttribute("max");if(Q1){var I=e1.value;if(Number(I)*10>Number(Q1)||I.length>=Q1.length){var q="nextElementSibling",B=Q3(e1,q);F4(B)}}}}}function i2(){if(!k)return;function O(v1){return!!v1}var Y=[h1.current,R.current,Z.current,a1.current,m1.current].filter(O),e1=Y.slice(1),i1={};Y.forEach(function(v1){i1[v1.name]=v1.type==="number"?"valueAsNumber"in v1?v1.valueAsNumber:Number(v1.value):v1.value});var l2=e1.every(function(v1){return!v1.value});if(l2){k(null,!1);return}var Q1=Y.every(function(v1){return v1.value}),I=Y.every(function(v1){return v1.validity.valid});if(Q1&&I){var q=Number(i1.hour24||i1.hour12&&i1.amPm&&q3(i1.hour12,i1.amPm)||0),B=Number(i1.minute||0),K=Number(i1.second||0),y1=function(v1){return"0".concat(v1).slice(-2)},G="".concat(y1(q),":").concat(y1(B),":").concat(y1(K)),u4=b2(G);k(u4,!1);return}S&&S()}function Y1(O){var Y=O.target,e1=Y.name,i1=Y.value;switch(e1){case"amPm":D(i1);break;case"hour12":X(i1?q3(i1,V||"am").toString():"");break;case"hour24":X(i1);break;case"minute":x1(i1);break;case"second":b(i1);break}i2()}function a2(O){var Y=O.target.value;if(k){var e1=Y||null;k(e1,!1)}}var Z1={className:r,disabled:s,maxTime:f,minTime:m,onChange:Y1,onKeyDown:S2,onKeyUp:g2,required:!!(v||P1)};function k2(O,Y){if(O&&O.length>2)throw new Error("Unsupported token: ".concat(O));var e1=O?O.length===2:!1;return o.jsx(dt,c2({},Z1,{amPm:V,ariaLabel:a,autoFocus:Y===0&&n,inputRef:R,placeholder:l,showLeadingZeros:e1,value:U}),"hour12")}function J(O,Y){if(O&&O.length>2)throw new Error("Unsupported token: ".concat(O));var e1=O?O.length===2:!1;return o.jsx(ht,c2({},Z1,{ariaLabel:a,autoFocus:Y===0&&n,inputRef:Z,placeholder:l,showLeadingZeros:e1,value:U}),"hour24")}function l1(O,Y){return/h/.test(O)?k2(O,Y):J(O,Y)}function V1(O,Y){if(O&&O.length>2)throw new Error("Unsupported token: ".concat(O));var e1=O?O.length===2:!1;return o.jsx(mt,c2({},Z1,{ariaLabel:x,autoFocus:Y===0&&n,hour:U,inputRef:a1,placeholder:p,showLeadingZeros:e1,value:g1}),"minute")}function F1(O,Y){if(O&&O.length>2)throw new Error("Unsupported token: ".concat(O));var e1=O?O.length===2:!0;return o.jsx(xt,c2({},Z1,{ariaLabel:L,autoFocus:Y===0&&n,hour:U,inputRef:m1,minute:g1,placeholder:N,showLeadingZeros:e1,value:o1}),"second")}function m2(O,Y){return o.jsx(wt,c2({},Z1,{ariaLabel:t,autoFocus:Y===0&&n,inputRef:h1,locale:u,onChange:Y1,value:V}),"ampm")}function N2(){var O={h:l1,H:l1,m:V1,s:F1,a:m2},Y=typeof i<"u";return Mt(o2,O,Y)}function p2(){return o.jsx(vt,{ariaLabel:w,disabled:s,maxTime:f,minTime:m,name:y,onChange:a2,required:v,value:A,valueType:W1},"time")}return o.jsxs("div",{className:r,onClick:s2,children:[p2(),N2()]})}var f2=function(){return f2=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},f2.apply(this,arguments)},Lt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n},S1="react-time-picker",St=["mousedown","focusin","touchstart"],J5={xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",stroke:"black",strokeWidth:2},kt=o.jsxs("svg",f2({},J5,{className:"".concat(S1,"__clock-button__icon ").concat(S1,"__button__icon"),fill:"none",children:[o.jsx("circle",{cx:"9.5",cy:"9.5",r:"7.5"}),o.jsx("path",{d:"M9.5 4.5 v5 h4"})]})),Nt=o.jsxs("svg",f2({},J5,{className:"".concat(S1,"__clear-button__icon ").concat(S1,"__button__icon"),children:[o.jsx("line",{x1:"4",x2:"15",y1:"4",y2:"15"}),o.jsx("line",{x1:"15",x2:"4",y1:"4",y2:"15"})]}));function Ht(e){var t=e.amPmAriaLabel,n=e.autoFocus,r=e.className,s=e.clearAriaLabel,i=e.clearIcon,a=i===void 0?Nt:i,l=e.clockAriaLabel,C=e.clockIcon,c=C===void 0?kt:C,u=e.closeClock,d=u===void 0?!0:u,h=e["data-testid"],f=e.hourAriaLabel,m=e.hourPlaceholder,x=e.disableClock,p=e.disabled,j=e.format,y=e.id,w=e.isOpen,k=w===void 0?null:w,S=e.locale,v=e.maxTime,L=e.maxDetail,N=L===void 0?"minute":L,E=e.minTime,H=e.minuteAriaLabel,V=e.minutePlaceholder,D=e.name,W=D===void 0?"time":D,U=e.nativeInputAriaLabel,X=e.onClockClose,c1=e.onClockOpen,g1=e.onChange,x1=e.onFocus,Q=e.onInvalidChange,o1=e.openClockOnFocus,b=o1===void 0?!0:o1,_=e.required,A=e.value,F=e.secondAriaLabel,h1=e.secondPlaceholder,R=e.shouldCloseClock,Z=e.shouldOpenClock,a1=Lt(e,["amPmAriaLabel","autoFocus","className","clearAriaLabel","clearIcon","clockAriaLabel","clockIcon","closeClock","data-testid","hourAriaLabel","hourPlaceholder","disableClock","disabled","format","id","isOpen","locale","maxTime","maxDetail","minTime","minuteAriaLabel","minutePlaceholder","name","nativeInputAriaLabel","onClockClose","onClockOpen","onChange","onFocus","onInvalidChange","openClockOnFocus","required","value","secondAriaLabel","secondPlaceholder","shouldCloseClock","shouldOpenClock"]),m1=g.useState(k),u1=m1[0],P1=m1[1],d1=g.useRef(null),s1=g.useRef(null);g.useEffect(function(){P1(k)},[k]);function W1(J){var l1=J.reason;Z&&!Z({reason:l1})||(P1(!0),c1&&c1())}var O1=g.useCallback(function(J){var l1=J.reason;R&&!R({reason:l1})||(P1(!1),X&&X())},[X,R]);function b2(){u1?O1({reason:"buttonClick"}):W1({reason:"buttonClick"})}function o2(J,l1){l1===void 0&&(l1=d),l1&&O1({reason:"select"}),g1&&g1(J)}function L2(J){x1&&x1(J),!(p||u1||!b||J.target.dataset.select==="true")&&W1({reason:"focus"})}var s2=g.useCallback(function(J){J.key==="Escape"&&O1({reason:"escape"})},[O1]);function S2(){o2(null)}function g2(J){J.stopPropagation()}var i2=g.useCallback(function(J){var l1=d1.current,V1=s1.current,F1="composedPath"in J?J.composedPath()[0]:J.target;F1&&l1&&!l1.contains(F1)&&(!V1||!V1.contains(F1))&&O1({reason:"outsideAction"})},[s1,O1,d1]),Y1=g.useCallback(function(J){J===void 0&&(J=u1),St.forEach(function(l1){J?document.addEventListener(l1,i2):document.removeEventListener(l1,i2)}),J?document.addEventListener("keydown",s2):document.removeEventListener("keydown",s2)},[u1,i2,s2]);g.useEffect(function(){return Y1(),function(){Y1(!1)}},[Y1]);function a2(){var J=(Array.isArray(A)?A:[A])[0],l1={amPmAriaLabel:t,hourAriaLabel:f,minuteAriaLabel:H,nativeInputAriaLabel:U,secondAriaLabel:F},V1={hourPlaceholder:m,minutePlaceholder:V,secondPlaceholder:h1};return o.jsxs("div",{className:"".concat(S1,"__wrapper"),children:[o.jsx(bt,f2({},l1,V1,{autoFocus:n,className:"".concat(S1,"__inputGroup"),disabled:p,format:j,isClockOpen:u1,locale:S,maxDetail:N,maxTime:v,minTime:E,name:W,onChange:o2,onInvalidChange:Q,required:_,value:J})),a!==null&&o.jsx("button",{"aria-label":s,className:"".concat(S1,"__clear-button ").concat(S1,"__button"),disabled:p,onClick:S2,onFocus:g2,type:"button",children:typeof a=="function"?g.createElement(a):a}),c!==null&&!x&&o.jsx("button",{"aria-expanded":u1||!1,"aria-label":l,className:"".concat(S1,"__clock-button ").concat(S1,"__button"),disabled:p,onClick:b2,onFocus:g2,type:"button",children:typeof c=="function"?g.createElement(c):c})]})}function Z1(){if(u1===null||x)return null;var J=e.clockProps,l1=e.portalContainer,V1=e.value,F1="".concat(S1,"__clock"),m2=I2(F1,"".concat(F1,"--").concat(u1?"open":"closed")),N2=(Array.isArray(V1)?V1:[V1])[0],p2=o.jsx($0,f2({locale:S,value:N2},J));return l1?J3.createPortal(o.jsx("div",{ref:s1,className:m2,children:p2}),l1):o.jsx(X0,{children:o.jsx("div",{ref:function(O){O&&!u1&&O.removeAttribute("style")},className:m2,children:p2})})}var k2=g.useMemo(function(){return L0(a1)},[a1]);return o.jsxs("div",f2({className:I2(S1,"".concat(S1,"--").concat(u1?"open":"closed"),"".concat(S1,"--").concat(p?"disabled":"enabled"),r),"data-testid":h,id:y},k2,{onFocus:L2,ref:d1,children:[a2(),Z1()]}))}const Vt=e=>{const{title:t="Select Time",selectedTime:n,fullWidth:r,errorMessage:s="Invalid time range. Start time must be earlier than end time."}=e,[i,a]=g.useState(!1),[l,C]=g.useState(null),[c,u]=g.useState(null),[d,h]=g.useState(t),[f,m]=g.useState(!1),x=g.useRef(null);g.useEffect(()=>{const S=v=>{x.current&&!x.current.contains(v.target)&&a(!1)};return document.addEventListener("click",S),()=>document.removeEventListener("click",S)},[]);const p=()=>!l||!c?!0:new Date(`1970-01-01T${c}`).getTime()<new Date(`1970-01-01T${l}`).getTime(),j=S=>{const[v,L,N]=S.split(":").map(Number);let E=v;const H=E>=12?"PM":"AM";return E=E%12,E===0&&(E=12),`${E.toString().padStart(2,"0")}:${L.toString().padStart(2,"0")}:${N.toString().padStart(2,"0")} ${H}`},y=()=>{h(t),C(null),u(null),n({from:null,to:null})},w=()=>{if(!p()&&l&&c){const S=f?{from:l,to:c}:{from:j(l),to:j(c)};n(S),h(f?`${l} - ${c}`:`${j(l)} - ${j(c)}`),a(!1)}},k=(S,v)=>o.jsx(Ht,{onChange:L=>v(L),value:S,format:f?"HH:mm:ss":"hh:mm:ss a",locale:"en-US",maxDetail:"second",clearIcon:null,disableClock:!0,amPmAriaLabel:"Select AM/PM",className:f?"w-30":"min-w-max",hourPlaceholder:"hh",minutePlaceholder:"mm",secondPlaceholder:"ss"});return o.jsxs("div",{ref:x,className:`relative inline-block ${r?"w-full":""}`,children:[o.jsx("div",{className:r?"w-full":"w-auto",children:o.jsx(n1,{type:"button",variant:"outline",onClick:()=>a(S=>!S),text:d,iconName:"timer",fullWidth:r})}),i&&o.jsxs("div",{className:"absolute left-0 top-full z-level-3 mt-3 bg-white border border-brightgray shadow-2xl rounded-lg px-2 py-2 space-y-5 min-w-72 md:min-w-80 overflow-auto no-scrollbar",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx(M,{variant:"body1",text:"Select Time Range"}),o.jsx("button",{type:"button",onClick:()=>m(S=>!S),className:`cursor-pointer text-xs px-3 py-1 rounded-full border transition-all ${f?"bg-black text-white border-black":"bg-white text-gray-600 border-gray-300 hover:bg-gray-100"}`,children:f?"24H":"12H"})]}),o.jsxs("div",{className:`flex flex-row items-center justify-center ${f?"gap-2":"gap-1"}`,children:[o.jsx("div",{className:"flex items-center",children:k(l,C)}),o.jsx("div",{className:"flex items-center",children:o.jsx(M,{variant:"body1",text:"To"})}),o.jsx("div",{className:"flex items-center",children:k(c,u)})]}),l&&c&&p()&&o.jsx(M,{variant:"caption",color:"error",text:s}),o.jsxs("div",{className:"flex justify-between gap-3",children:[o.jsx(n1,{text:"Clear",size:"extraSmall",variant:"ghost",onClick:y}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx(n1,{text:"Cancel",size:"extraSmall",variant:"outline",onClick:()=>a(!1)}),o.jsx(n1,{text:"Apply",size:"extraSmall",variant:"primary",disabled:p(),onClick:w})]})]})]})]})},c4=e=>{const{title:t="",children:n,position:r="top"}=e,[s,i]=g.useState(!1),[a,l]=g.useState(r),[C,c]=g.useState({top:0,left:0}),u=g.useRef(null),d=g.useRef(null),h=g.useCallback(()=>{if(!u.current||!d.current)return;const p=u.current.getBoundingClientRect(),j=document.elementFromPoint(p.left+p.width/2,p.top+p.height/2);if(!u.current.contains(j)){i(!1);return}const y=u.current.parentElement;if(y){const D=y.getBoundingClientRect();if(p.right<D.left||p.left>D.right||p.bottom<D.top||p.top>D.bottom){i(!1);return}}if(p.right<0||p.left>window.innerWidth||p.bottom<0||p.top>window.innerHeight){i(!1);return}const w=d.current.getBoundingClientRect(),k=p.top,S=window.innerHeight-p.bottom,v=p.left,L=window.innerWidth-p.right;let N=r;r==="top"&&k<w.height&&(N="bottom"),r==="bottom"&&S<w.height&&(N="top"),r==="left"&&v<w.width&&(N="right"),r==="right"&&L<w.width&&(N="left"),l(N);let E=0,H=0;N==="top"&&(E=p.top-w.height-8,H=p.left+p.width/2-w.width/2),N==="bottom"&&(E=p.bottom+8,H=p.left+p.width/2-w.width/2),N==="left"&&(E=p.top+p.height/2-w.height/2,H=p.left-w.width-8),N==="right"&&(E=p.top+p.height/2-w.height/2,H=p.right+8);const V=8;H<V&&(H=V),H+w.width>window.innerWidth-V&&(H=window.innerWidth-w.width-V),E<V&&(E=V),E+w.height>window.innerHeight-V&&(E=window.innerHeight-w.height-V),c({top:E,left:H})},[r]);g.useLayoutEffect(()=>{s&&h()},[s,h]),g.useLayoutEffect(()=>{if(!s)return;const p=()=>{h()};return window.addEventListener("resize",p),window.addEventListener("scroll",p,!0),()=>{window.removeEventListener("resize",p),window.removeEventListener("scroll",p,!0)}},[s,h]);const f={top:{arrow:"left-1/2 -bottom-1 translate-x-[-50%]"},bottom:{arrow:"left-1/2 -top-1 translate-x-[-50%]"},left:{arrow:"top-1/2 -right-1 translate-y-[-50%]"},right:{arrow:"top-1/2 -left-1 translate-y-[-50%]"}},m="fixed z-level-2 p-3 w-max max-w-sm break-words rounded-lg bg-white shadow-md",x=`absolute h-3 w-3 bg-white shadow-lg rotate-45 ${f[a].arrow}`;return o.jsxs("div",{className:"relative inline-block",ref:u,children:[o.jsx("div",{onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:n}),s&&o.jsxs("div",{ref:d,className:m,style:{top:C.top,left:C.left},children:[o.jsx("div",{className:x}),o.jsx("div",{className:"wrap-break-word whitespace-normal",children:typeof t=="string"||typeof t=="number"?o.jsx(M,{text:String(t),variant:"caption"}):t})]})]})},Et=e=>{const{title:t,image:n,buttonProps:r,iconProps:s}=e;return o.jsx("div",{className:"w-full h-72 rounded-2xl bg-cover bg-center shadow-lg flex items-end px-5 py-10",style:{backgroundImage:`url(${n})`},children:o.jsxs("div",{className:"flex flex-col w-full items-center gap-2 sm:flex-row sm:justify-between",children:[o.jsxs("div",{className:"flex gap-2",children:[o.jsx(M,{variant:"subtitle2",text:t,color:"white"}),s&&o.jsx(z,{...s})]}),r&&o.jsx(n1,{...r})]})})},Ot=e=>{const{imageUrl:t,title:n,onClick:r}=e,{isMobile:s}=A1();return o.jsxs("div",{onClick:r,onKeyDown:i=>i.key==="Enter"&&(r==null?void 0:r()),className:"w-26 md:w-40 cursor-pointer active:scale-95 transition shadow-md",children:[o.jsx("div",{className:"overflow-hidden h-26 md:h-40",children:o.jsx("img",{src:t,alt:n,className:"w-full object-cover"})}),o.jsx("div",{className:"bg-primary flex items-center justify-center p-0.5 md:p-1",children:o.jsx(M,{variant:s?"smallCaps":"captionBold",text:n,color:"white"})})]})};exports.AdminBetSlip=R7;exports.Avatar=e3;exports.BannerCard=Et;exports.BetSlip=$7;exports.BetSlipModal=X7;exports.Button=n1;exports.Checkbox=$2;exports.Chip=$4;exports.CommonMarketHeader=I5;exports.CommonMarketRow=n0;exports.DatePicker=a8;exports.Dropdown=l8;exports.EventCard=s0;exports.EventDisplayCard=L7;exports.EventInfoCard=r0;exports.FileUploader=U7;exports.FlashNotification=Q7;exports.Icon=z;exports.ImageCard=Ot;exports.InputField=I4;exports.Loader=M7;exports.MaintenancePage=_7;exports.Menu=z7;exports.Modal=g8;exports.MultiSelectDropdown=S7;exports.NotFoundPage=D7;exports.NotificationBanner=F7;exports.NullState=O5;exports.Pagination=w8;exports.PasswordFieldGroup=y8;exports.PhoneNumberInput=W7;exports.ProgressBar=G7;exports.RadioGroup=P7;exports.SearchBar=M8;exports.Skeleton=_2;exports.SnackbarProvider=Z7;exports.StatsList=b8;exports.StatusDisplayCard=j7;exports.Swiper=T7;exports.TabList=w7;exports.Table=x7;exports.TimePicker=Vt;exports.TitleBar=k7;exports.Toggle=A5;exports.Tooltip=b7;exports.TooltipExt=c4;exports.Typography=M;exports.UserBetSlip=B7;exports.WalletInfo=q7;exports.ZIndexPreview=K7;exports.snackbar=H7;