@simple-parlay/components 2.3.3-pre.1 → 2.3.3-pre.2

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.
@@ -78,20 +78,20 @@ return g("div",{style:{position:"relative",width:t,height:t},children:[/* @__PUR
78
78
  /* @__PURE__ */u("rect",{x:"65",y:"30",width:"210",height:"210",rx:"42",fill:n,opacity:"0.55"}),
79
79
  /* @__PURE__ */u("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:n})]}),/* @__PURE__ */u("div",{style:{position:"absolute",left:"10.7%",top:"10.7%",width:"60.7%",height:"60.7%",pointerEvents:"none"},children:/* @__PURE__ */u(Il,{iconUrl:e,width:"100%",height:"100%",iconColor:r,accentColor:i})})]})}function Ol({theme:e,...t}){const{pressed:n,handlers:r}=qn();/* @__PURE__ */
80
80
  return u("button",{type:"button",...t,...r,style:Vn(e,n,t.disabled)})}function Gl(e){const t=e=>(e??"").split(/\r?\n+/).map(e=>e.trim()).filter(Boolean),n=t(e.call_to_action);return n.length?n:t(e.description)}function Yl({pages:e}){const[t,n]=p(0);if(!e.length)return null;const r=Math.min(t,e.length-1);/* @__PURE__ */
81
- return g(h,{children:[/* @__PURE__ */u("span",{className:"gs-tagline",children:e[r]}),e.length>1&&/* @__PURE__ */u("span",{className:"gs-dots",role:"group","aria-label":"Description pages",children:e.map((t,i)=>/* @__PURE__ */u("button",{type:"button",className:"gs-dot","aria-label":`Page ${i+1} of ${e.length}`,"aria-current":i===r,onClick:()=>n(i)},i))})]})}function ql({games:e,theme:t,onPlay:n,maxPayouts:r}){const i=Pl(t),o=Ea(t),[a,l]=p("all"),[s,c]=p(null),d=so(),m=d.comingSoon??[],h=e=>e.toLowerCase().replace(/[^a-z0-9]/g,""),x=e.filter(e=>!e.quick_pick_only&&!m.some(t=>h(t.name)===h(e.game_name))),y=function(e){const t=e=>{const t=kl.indexOf(be(e));return t<0?kl.length:t};return Vr.map(n=>({id:n.id,label:n.shortLabel,games:e.filter(e=>Jr(e)===n.level).sort((e,n)=>t(e)-t(n))})).filter(e=>e.games.length>0)}(function(e,t){return e.flatMap(e=>{const n=mo(e,t);return n.length?n.map(t=>({...e,game_name:t.name})):[e]})}(x,d)),b="all"===a?y:y.filter(e=>e.id===a),v=(b.length?b:y).flatMap(e=>e.games),w="all"===a?m:[],k={...t.colors,primary:i.button,primaryText:i.buttonText,text:i.text,textMuted:i.muted,background:i.surface},N=s&&Bl(s,d.presets),C=s&&ml(s,r?.[s.id]);/* @__PURE__ */
82
- return g("section",{className:"blade-game-shelf","aria-label":"Game shelf",style:{fontFamily:Rn(t),"--gs-body":Rn(t),"--gs-heading":Hn(t),"--gs-primary":o.colors.primary,"--gs-surface":i.surface,"--gs-text":i.text,"--gs-muted":i.muted,"--gs-accent":i.accent,"--gs-cover-text":i.coverText,"--gs-border":t.colors.border,"--gs-ghost":At(i.text,.05)},children:[
83
- /* @__PURE__ */u("style",{children:"\n.blade-game-shelf{container-type:inline-size;display:flex;flex-direction:column;gap:12px;color:var(--gs-text);line-height:1.45;isolation:isolate}\n.blade-game-shelf *{box-sizing:border-box}\n.blade-game-shelf button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}\n.blade-game-shelf .gs-item:focus-visible{outline:3px solid var(--gs-accent);outline-offset:3px}\n.gs-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}\n.gs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px;min-width:0;align-content:start}\n.gs-tile{position:relative;min-width:0}\n.gs-item{display:block;width:100%;min-width:0;border:0;padding:0;background:none;color:inherit;text-align:left}\n.gs-item:disabled{cursor:not-allowed}\n.gs-cover{position:relative;display:block;width:100%;aspect-ratio:1.06;border-radius:12px;overflow:hidden;color:var(--gs-cover-text);min-width:0;container-type:inline-size}\n.gs-cover img{display:block;width:100%;height:100%;object-fit:cover}\n@media(hover:hover){.gs-item:not(:disabled):hover .gs-cover{outline:3px solid var(--gs-primary);outline-offset:-3px}}\n.gs-cover-name{position:absolute;left:12px;right:9px;bottom:10px;font-size:18px;font-weight:850;line-height:1.1;letter-spacing:-.035em;overflow-wrap:anywhere}\n.gs-item[data-unavailable=true] .gs-cover>img,.gs-item[data-unavailable=true] .gs-drawn{opacity:.55}\n.gs-pill{position:absolute;top:8px;left:8px;background:var(--gs-text);color:var(--gs-surface);padding:3px 7px;border-radius:4px;font-size:10px;font-weight:750;letter-spacing:.02em}\n.gs-tagline{display:block;margin:8px 2px 0;font-size:13px;font-weight:400;line-height:1.45;color:var(--gs-muted);overflow-wrap:anywhere}\n.gs-dots{display:flex;margin:0 0 0 -3px}\n.gs-dot{position:relative;width:20px;height:20px;border:0;background:none;padding:0}\n.gs-dot::after{content:'';position:absolute;inset:7px;border-radius:50%;background:var(--gs-muted);opacity:.35}\n.gs-dot[aria-current=true]::after{background:var(--gs-primary);opacity:1}\n.gs-dot:focus-visible{outline:2px solid var(--gs-accent);outline-offset:-2px;border-radius:6px}\n.gs-empty{border:1.5px dashed var(--gs-border);background:var(--gs-ghost)}\n.gs-empty .gs-cover-name{color:var(--gs-muted)}\n.gs-empty svg{position:absolute;left:50%;top:26%;width:30cqw;height:30cqw;transform:translateX(-50%);color:var(--gs-muted);opacity:.55}\n.gs-why{display:contents}\n.gs-help{position:absolute;top:6px;right:6px;width:30px;height:30px;border-radius:50%;background:#ffffffe6;box-shadow:0 1px 3px #0002}\n.gs-soon .gs-cover{border:1.5px dashed var(--gs-border)}\n.gs-soon img,.gs-soon .gs-drawn{opacity:.4}\n@container(min-width:700px){.gs-filters{max-width:460px}.gs-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:26px 14px}.gs-cover-name{font-size:19px}}\n@container(max-width:340px){.gs-grid{gap:18px 9px}.gs-cover-name{font-size:16px;left:10px}.gs-filter{font-size:11px!important}}\n"}),y.length>0&&/* @__PURE__ */u("div",{className:"gs-filters",role:"group","aria-label":"Game tiers",children:[{id:"all",label:"All",games:x},...y].map(e=>/* @__PURE__ */u(xa,{theme:o,className:"gs-filter",selected:a===e.id,sub:`${e.games.length} games`,onClick:()=>l(e.id),style:{minWidth:0,padding:"6px 4px",fontSize:13},children:e.label},e.id))}),
84
- /* @__PURE__ */g("div",{className:"gs-grid",role:"region","aria-label":"Available games",children:[v.map(e=>{const i=Bl(e,d.presets),o=ml(e,r?.[e.id]),a=ul(e,o.legOptions),l=ft(e),s=yt(e)?`Available ${yt(e)}`:"Not open right now",{ground:p,ink:m,art:h,drawn:f}=zl(e,t,d),y=x.find(t=>t.id===e.id)??e;/* @__PURE__ */
81
+ return g(h,{children:[/* @__PURE__ */u("span",{className:"gs-tagline",children:e[r]}),e.length>1&&/* @__PURE__ */u("span",{className:"gs-dots",role:"group","aria-label":"Description pages",children:e.map((t,i)=>/* @__PURE__ */u("button",{type:"button",className:"gs-dot","aria-label":`Page ${i+1} of ${e.length}`,"aria-current":i===r,onClick:()=>n(i)},i))})]})}function ql({games:e,theme:t,onPlay:n,maxPayouts:r}){const i=Pl(t),o=Ea(t),[a,l]=p("all"),[s,c]=p(null),d=so(),m=d.comingSoon??[],x=e=>e.toLowerCase().replace(/[^a-z0-9]/g,""),y=e.filter(e=>!e.quick_pick_only&&!m.some(t=>x(t.name)===x(e.game_name))),b=function(e){const t=e=>{const t=kl.indexOf(be(e));return t<0?kl.length:t};return Vr.map(n=>({id:n.id,label:n.shortLabel,games:e.filter(e=>Jr(e)===n.level).sort((e,n)=>t(e)-t(n))})).filter(e=>e.games.length>0)}(function(e,t){return e.flatMap(e=>{const n=mo(e,t);return n.length?n.map(t=>({...e,game_name:t.name})):[e]})}(y,d)),v="all"===a?b:b.filter(e=>e.id===a),w=(v.length?v:b).flatMap(e=>e.games),k="all"===a?m:[],N={...t.colors,primary:i.button,primaryText:i.buttonText,text:i.text,textMuted:i.muted,background:i.surface},C=e=>{const i=Bl(e,d.presets),o=ml(e,r?.[e.id]),a=ul(e,o.legOptions),l=ft(e),s=yt(e)?`Available ${yt(e)}`:"Not open right now",{ground:p,ink:m,art:h,drawn:f}=zl(e,t,d),x=y.find(t=>t.id===e.id)??e;/* @__PURE__ */
85
82
  return g("div",{className:"gs-tile",children:[
86
- /* @__PURE__ */u(Ol,{theme:t,className:"gs-item","aria-label":l?`Choose ${i}`:`Choose ${i}, available ${yt(e)}`,disabled:!l,"data-unavailable":!l,onClick:()=>n(y,a,uo(y,e.game_name,d)),children:/* @__PURE__ */g("span",{className:"gs-cover",style:{background:p,color:m},children:[h?/* @__PURE__ */u("img",{src:h,alt:"",decoding:"async"}):f&&/* @__PURE__ */u(Na,{drawn:f,className:"gs-drawn",frame:{left:100*f.box.left+"cqw",top:100*f.box.top+"cqw",width:100*f.box.size+"cqw",height:100*f.box.size+"cqw"}}),
83
+ /* @__PURE__ */u(Ol,{theme:t,className:"gs-item","aria-label":l?`Choose ${i}`:`Choose ${i}, available ${yt(e)}`,disabled:!l,"data-unavailable":!l,onClick:()=>n(x,a,uo(x,e.game_name,d)),children:/* @__PURE__ */g("span",{className:"gs-cover",style:{background:p,color:m},children:[h?/* @__PURE__ */u("img",{src:h,alt:"",decoding:"async"}):f&&/* @__PURE__ */u(Na,{drawn:f,className:"gs-drawn",frame:{left:100*f.box.left+"cqw",top:100*f.box.top+"cqw",width:100*f.box.size+"cqw",height:100*f.box.size+"cqw"}}),
87
84
  /* @__PURE__ */u("span",{className:"gs-cover-name",children:i}),!l&&/* @__PURE__ */u("span",{className:"gs-pill",children:"Unavailable"})]})}),l?/* @__PURE__ */u(Yl,{pages:Gl(e)}):/* @__PURE__ */u("span",{className:"gs-why",children:/* @__PURE__ */u(Yl,{pages:[s]})}),
88
- /* @__PURE__ */u("span",{className:"gs-help",children:/* @__PURE__ */u(Kn,{theme:t,size:30,onClick:()=>c(e),"aria-label":`How to play ${i}`,title:`How to play ${i}`,children:/* @__PURE__ */u("span",{style:{fontSize:14,fontWeight:800,lineHeight:1,color:m},children:"?"})})})]},`${e.id}:${e.game_name}`)}),!v.length&&/* @__PURE__ */g("div",{role:"status",className:"gs-tile",children:[/* @__PURE__ */g("div",{className:"gs-cover gs-empty",children:[/* @__PURE__ */g("svg",{viewBox:"0 0 260 260","aria-hidden":"true",children:[
85
+ /* @__PURE__ */u("span",{className:"gs-help",children:/* @__PURE__ */u(Kn,{theme:t,size:30,onClick:()=>c(e),"aria-label":`How to play ${i}`,title:`How to play ${i}`,children:/* @__PURE__ */u("span",{style:{fontSize:14,fontWeight:800,lineHeight:1,color:m},children:"?"})})})]},`${e.id}:${e.game_name}`)},S=s&&Bl(s,d.presets),P=s&&ml(s,r?.[s.id]),M=(e,n)=>/* @__PURE__ */g(h,{children:[e.map(C),!e.length&&/* @__PURE__ */g("div",{role:"status",className:"gs-tile",children:[/* @__PURE__ */g("div",{className:"gs-cover gs-empty",children:[/* @__PURE__ */g("svg",{viewBox:"0 0 260 260","aria-hidden":"true",children:[
89
86
  /* @__PURE__ */u("rect",{x:"0",y:"0",width:"180",height:"180",rx:"36",fill:"currentColor"}),
90
87
  /* @__PURE__ */u("rect",{x:"40",y:"40",width:"180",height:"180",rx:"36",fill:"currentColor",opacity:".55"}),
91
- /* @__PURE__ */u("rect",{x:"80",y:"80",width:"180",height:"180",rx:"36",fill:"currentColor",opacity:".3"})]}),/* @__PURE__ */u("span",{className:"gs-cover-name",children:"No games available"})]}),/* @__PURE__ */u("span",{className:"gs-tagline",children:"Check back soon."})]}),w.map(e=>{const{ground:n,ink:r,art:i,drawn:o}=zl({id:-1,game_name:e.name,rule:""},t,d);/* @__PURE__ */
88
+ /* @__PURE__ */u("rect",{x:"80",y:"80",width:"180",height:"180",rx:"36",fill:"currentColor",opacity:".3"})]}),/* @__PURE__ */u("span",{className:"gs-cover-name",children:"No games available"})]}),/* @__PURE__ */u("span",{className:"gs-tagline",children:"Check back soon."})]}),n.map(e=>{const{ground:n,ink:r,art:i,drawn:o}=zl({id:-1,game_name:e.name,rule:""},t,d);/* @__PURE__ */
92
89
  return g("div",{className:"gs-tile gs-soon",children:[/* @__PURE__ */g("div",{className:"gs-cover",style:{background:n,color:r},children:[i?/* @__PURE__ */u("img",{src:i,alt:"",decoding:"async"}):o&&/* @__PURE__ */u(Na,{drawn:o,className:"gs-drawn",frame:{left:100*o.box.left+"cqw",top:100*o.box.top+"cqw",width:100*o.box.size+"cqw",height:100*o.box.size+"cqw"}}),
93
90
  /* @__PURE__ */u("span",{className:"gs-cover-name",children:e.name}),
94
- /* @__PURE__ */u("span",{className:"gs-pill",children:"Coming soon"})]}),e.hint&&/* @__PURE__ */u("span",{className:"gs-why",children:/* @__PURE__ */u(Yl,{pages:[e.hint]})})]},e.id)})]}),s&&C&&"undefined"!=typeof document&&f(/* @__PURE__ */u(Ya,{open:!0,onClose:()=>c(null),title:N,panel:je(s),content:s.description||s.rule,theme:{...t,colors:k},colors:k,bodyFont:Rn(t),headingFont:Hn(t),extra:/* @__PURE__ */u(Ul,{tiers:C.hasGenericDividends?C.tiers:[],modes:C.modes,pydDividends:C.pydDividends,onPlayCount:C.legOptions.length>1?e=>{if(!s)return;const t=x.find(e=>e.id===s.id)??s;c(null),n(t,e,uo(t,s.game_name,d))}:void 0,minBet:C.minBet,maxBet:C.maxBet,colors:k,bodyFont:Rn(t),headingFont:Hn(t),theme:t})}),document.body)]})}function Xl({iconUrl:e,gameName:t,onPress:n,size:r=120,brandColor:i="#0F4C5C",cardColor:o="#DDD9D2",iconColor:a,accentColor:l,captionColor:s="#14687C",className:c,ariaLabel:d}){const p=(t||"").toUpperCase(),m=r/360,h=a??o,f=Jt(i,l,h),x=n=>/* @__PURE__ */g("div",{style:{position:"relative",width:r,height:r},children:[/* @__PURE__ */g("svg",{viewBox:"0 0 360 360",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%",role:"img","aria-label":d??`Press to play ${t}`,children:[
91
+ /* @__PURE__ */u("span",{className:"gs-pill",children:"Coming soon"})]}),e.hint&&/* @__PURE__ */u("span",{className:"gs-why",children:/* @__PURE__ */u(Yl,{pages:[e.hint]})})]},e.id)})]});/* @__PURE__ */
92
+ return g("section",{className:"blade-game-shelf","aria-label":"Game shelf",style:{fontFamily:Rn(t),"--gs-body":Rn(t),"--gs-heading":Hn(t),"--gs-primary":o.colors.primary,"--gs-surface":i.surface,"--gs-text":i.text,"--gs-muted":i.muted,"--gs-accent":i.accent,"--gs-cover-text":i.coverText,"--gs-border":t.colors.border,"--gs-ghost":At(i.text,.05)},children:[
93
+ /* @__PURE__ */u("style",{children:"\n.blade-game-shelf{container-type:inline-size;display:flex;flex-direction:column;gap:12px;color:var(--gs-text);line-height:1.45;isolation:isolate}\n.blade-game-shelf *{box-sizing:border-box}\n.blade-game-shelf button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}\n.blade-game-shelf .gs-item:focus-visible{outline:3px solid var(--gs-accent);outline-offset:3px}\n.gs-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}\n.gs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px;min-width:0;align-content:start}\n.gs-tile{position:relative;min-width:0}\n.gs-item{display:block;width:100%;min-width:0;border:0;padding:0;background:none;color:inherit;text-align:left}\n.gs-item:disabled{cursor:not-allowed}\n.gs-cover{position:relative;display:block;width:100%;aspect-ratio:1.06;border-radius:12px;overflow:hidden;color:var(--gs-cover-text);min-width:0;container-type:inline-size}\n.gs-cover img{display:block;width:100%;height:100%;object-fit:cover}\n@media(hover:hover){.gs-item:not(:disabled):hover .gs-cover{outline:3px solid var(--gs-primary);outline-offset:-3px}}\n.gs-cover-name{position:absolute;left:12px;right:9px;bottom:10px;font-size:18px;font-weight:850;line-height:1.1;letter-spacing:-.035em;overflow-wrap:anywhere}\n.gs-item[data-unavailable=true] .gs-cover>img,.gs-item[data-unavailable=true] .gs-drawn{opacity:.55}\n.gs-pill{position:absolute;top:8px;left:8px;background:var(--gs-text);color:var(--gs-surface);padding:3px 7px;border-radius:4px;font-size:10px;font-weight:750;letter-spacing:.02em}\n.gs-tagline{display:block;margin:8px 2px 0;font-size:13px;font-weight:400;line-height:1.45;color:var(--gs-muted);overflow-wrap:anywhere}\n.gs-dots{display:flex;margin:0 0 0 -3px}\n.gs-dot{position:relative;width:20px;height:20px;border:0;background:none;padding:0}\n.gs-dot::after{content:'';position:absolute;inset:7px;border-radius:50%;background:var(--gs-muted);opacity:.35}\n.gs-dot[aria-current=true]::after{background:var(--gs-primary);opacity:1}\n.gs-dot:focus-visible{outline:2px solid var(--gs-accent);outline-offset:-2px;border-radius:6px}\n.gs-empty{border:1.5px dashed var(--gs-border);background:var(--gs-ghost)}\n.gs-empty .gs-cover-name{color:var(--gs-muted)}\n.gs-empty svg{position:absolute;left:50%;top:26%;width:30cqw;height:30cqw;transform:translateX(-50%);color:var(--gs-muted);opacity:.55}\n.gs-why{display:contents}\n.gs-help{position:absolute;top:6px;right:6px;width:30px;height:30px;border-radius:50%;background:#ffffffe6;box-shadow:0 1px 3px #0002}\n.gs-soon .gs-cover{border:1.5px dashed var(--gs-border)}\n.gs-soon img,.gs-soon .gs-drawn{opacity:.4}\n/* Two columns on a phone; from 520px as many 160px covers as fit, so a half-width window doesn't get two giant covers a row. */\n@container(min-width:520px){.gs-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}}\n/* A filter shows fewer covers: the All grid sits invisible under it and holds the height, so the page doesn't jump. */\n.gs-stack{display:grid;min-width:0}.gs-stack>*{grid-area:1/1}\n@container(min-width:700px){.gs-filters{max-width:460px}.gs-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:26px 14px}.gs-cover-name{font-size:19px}}\n@container(max-width:340px){.gs-grid{gap:18px 9px}.gs-cover-name{font-size:16px;left:10px}.gs-filter{font-size:11px!important}}\n"}),b.length>0&&/* @__PURE__ */u("div",{className:"gs-filters",role:"group","aria-label":"Game tiers",children:[{id:"all",label:"All",games:y},...b].map(e=>/* @__PURE__ */u(xa,{theme:o,className:"gs-filter",selected:a===e.id,sub:`${e.games.length} games`,onClick:()=>l(e.id),style:{minWidth:0,padding:"6px 4px",fontSize:13},children:e.label},e.id))}),
94
+ /* @__PURE__ */g("div",{className:"gs-stack",children:[/* @__PURE__ */u("div",{className:"gs-grid",role:"region","aria-label":"Available games",children:M(w,k)}),"all"!==a&&/* @__PURE__ */u("div",{className:"gs-grid","aria-hidden":"true",style:{visibility:"hidden"},children:M(b.flatMap(e=>e.games),m)})]}),s&&P&&"undefined"!=typeof document&&f(/* @__PURE__ */u(Ya,{open:!0,onClose:()=>c(null),title:S,panel:je(s),content:s.description||s.rule,theme:{...t,colors:N},colors:N,bodyFont:Rn(t),headingFont:Hn(t),extra:/* @__PURE__ */u(Ul,{tiers:P.hasGenericDividends?P.tiers:[],modes:P.modes,pydDividends:P.pydDividends,onPlayCount:P.legOptions.length>1?e=>{if(!s)return;const t=y.find(e=>e.id===s.id)??s;c(null),n(t,e,uo(t,s.game_name,d))}:void 0,minBet:P.minBet,maxBet:P.maxBet,colors:N,bodyFont:Rn(t),headingFont:Hn(t),theme:t})}),document.body)]})}function Xl({iconUrl:e,gameName:t,onPress:n,size:r=120,brandColor:i="#0F4C5C",cardColor:o="#DDD9D2",iconColor:a,accentColor:l,captionColor:s="#14687C",className:c,ariaLabel:d}){const p=(t||"").toUpperCase(),m=r/360,h=a??o,f=Jt(i,l,h),x=n=>/* @__PURE__ */g("div",{style:{position:"relative",width:r,height:r},children:[/* @__PURE__ */g("svg",{viewBox:"0 0 360 360",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%",role:"img","aria-label":d??`Press to play ${t}`,children:[
95
95
  /* @__PURE__ */u("rect",{x:"2",y:"2",width:"356",height:"356",rx:"78",fill:o,stroke:i,strokeWidth:"4"}),
96
96
  /* @__PURE__ */u("g",{style:{transform:"translate(50px, 50px)"},children:/* @__PURE__ */u("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:i,opacity:"0.30"})}),
97
97
  /* @__PURE__ */u("g",{style:{transform:"translate(25px, 25px)"},children:/* @__PURE__ */u("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:i,opacity:"0.55"})}),
@@ -254,7 +254,7 @@ return g("section",{className:"blade-call-catalogue","data-detail":!!W,"aria-lab
254
254
  /* @__PURE__ */u(Jn,{theme:P,size:"lg",block:!0,disabled:!I||U,"aria-label":`Choose ${W.game_name}`,onClick:()=>n(W,H),children:U?"Loading…":I?`Play ${W.game_name}`:"Unavailable"})]}):/* @__PURE__ */u("div",{className:"blade-call-back",style:{display:"none"}})})]})]})}var Gs=e=>Array.from({length:e},(e,t)=>t);function Ys({c:e,className:t,...n}){/* @__PURE__ */
255
255
  return u(bs,{color:e,className:t,style:{display:"block",flexShrink:0,...n}})}function qs({theme:e,count:t}){const n=e.colors;/* @__PURE__ */
256
256
  return g("div",{"data-testid":"skeleton-games-shelf","aria-hidden":!0,className:"gk-shelf",style:{"--gk-line":n.border},children:[
257
- /* @__PURE__ */u("style",{children:"\n.gk-shelf{container-type:inline-size;display:flex;flex-direction:column;gap:12px}\n.gk-shelf *{box-sizing:border-box}\n.gk-shelf-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}\n.gk-shelf-filter{height:52px;border:1px solid var(--gk-line);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}\n.gk-shelf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}\n.gk-shelf-item{display:flex;flex-direction:column;gap:6px;min-width:0}\n@container(min-width:700px){.gk-shelf-filters{max-width:460px}.gk-shelf-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}}\n@container(max-width:340px){.gk-shelf-grid{gap:9px}}\n"}),
257
+ /* @__PURE__ */u("style",{children:"\n.gk-shelf{container-type:inline-size;display:flex;flex-direction:column;gap:12px}\n.gk-shelf *{box-sizing:border-box}\n.gk-shelf-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}\n.gk-shelf-filter{height:52px;border:1px solid var(--gk-line);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}\n.gk-shelf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}\n.gk-shelf-item{display:flex;flex-direction:column;gap:6px;min-width:0}\n@container(min-width:520px){.gk-shelf-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}}\n@container(min-width:700px){.gk-shelf-filters{max-width:460px}.gk-shelf-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}}\n@container(max-width:340px){.gk-shelf-grid{gap:9px}}\n"}),
258
258
  /* @__PURE__ */u("div",{className:"gk-shelf-filters",children:Gs(4).map(t=>/* @__PURE__ */g("div",{className:"gk-shelf-filter",style:{background:Zt(e)},children:[/* @__PURE__ */u(Ys,{c:n.text,width:26,height:10}),/* @__PURE__ */u(Ys,{c:n.textMuted,width:40,maxWidth:"80%",height:8})]},t))}),
259
259
  /* @__PURE__ */u("div",{className:"gk-shelf-grid",children:Gs(t).map(e=>/* @__PURE__ */u("div",{className:"gk-shelf-item",children:/* @__PURE__ */u(Ys,{c:n.textMuted,width:"100%",aspectRatio:1.06,borderRadius:12})},e))})]})}function Xs({theme:e,count:t}){const n=e.colors,r=n.textMuted;/* @__PURE__ */
260
260
  return g("div",{"data-testid":"skeleton-games-playbook","aria-hidden":!0,className:"gk-pb",children:[