1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4365],{52457:function(e,t,s){Promise.resolve().then(s.bind(s,28690))},28690:function(e,t,s){"use strict";s.d(t,{default:function(){return f}});var r=s(57437),l=s(2265),i=s(27648),o=s(49924),c=s(18030);let a="w-8 h-8 md:w-9 md:h-9",d=[{type:"scratch_card",iconNode:(0,r.jsx)(function(e){let{className:t}=e;return(0,r.jsxs)("svg",{className:t,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"sc-card",x1:"6",y1:"8",x2:"42",y2:"40",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#FCD34D"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#F59E0B"})]}),(0,r.jsxs)("linearGradient",{id:"sc-shine",x1:"10",y1:"10",x2:"38",y2:"38",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#FEF3C7",stopOpacity:"0.8"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#F59E0B",stopOpacity:"0"})]}),(0,r.jsxs)("linearGradient",{id:"sc-scratch",x1:"12",y1:"22",x2:"36",y2:"22",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#FFFBEB"}),(0,r.jsx)("stop",{offset:"0.5",stopColor:"#FDE68A"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#FFFBEB"})]}),(0,r.jsx)("filter",{id:"sc-shadow",children:(0,r.jsx)("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodColor:"#92400E",floodOpacity:"0.25"})})]}),(0,r.jsx)("rect",{x:"6",y:"8",width:"36",height:"32",rx:"5",fill:"url(#sc-card)",filter:"url(#sc-shadow)"}),(0,r.jsx)("rect",{x:"6",y:"8",width:"36",height:"16",rx:"5",fill:"url(#sc-shine)"}),(0,r.jsx)("rect",{x:"12",y:"18",width:"24",height:"8",rx:"2",fill:"url(#sc-scratch)",opacity:"0.9"}),(0,r.jsx)("path",{d:"M14 22 L20 20 L26 23 L32 19 L34 22",stroke:"#D97706",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.6"}),(0,r.jsx)("circle",{cx:"16",cy:"32",r:"1.5",fill:"#FEF3C7",opacity:"0.8"}),(0,r.jsx)("circle",{cx:"24",cy:"34",r:"1",fill:"#FEF3C7",opacity:"0.6"}),(0,r.jsx)("circle",{cx:"32",cy:"31",r:"1.5",fill:"#FEF3C7",opacity:"0.8"})]})},{className:a}),titleKey:"events.gameType.scratchCard.title",descKey:"events.gameType.scratchCard.desc",href:"/event/create-scratch-card.html",demoHref:"/demo/scratch-card",orderLabel:"01"},{type:"red_package",iconNode:(0,r.jsx)(function(e){let{className:t}=e;return(0,r.jsxs)("svg",{className:t,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"rp-body",x1:"8",y1:"4",x2:"40",y2:"44",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#FCA5A5"}),(0,r.jsx)("stop",{offset:"0.5",stopColor:"#EF4444"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#B91C1C"})]}),(0,r.jsxs)("linearGradient",{id:"rp-flap",x1:"8",y1:"4",x2:"40",y2:"20",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#FCA5A5"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#DC2626"})]}),(0,r.jsxs)("linearGradient",{id:"rp-gold",x1:"18",y1:"16",x2:"30",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#FDE68A"}),(0,r.jsx)("stop",{offset:"0.5",stopColor:"#F59E0B"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#D97706"})]}),(0,r.jsx)("filter",{id:"rp-shadow",children:(0,r.jsx)("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodColor:"#991B1B",floodOpacity:"0.3"})})]}),(0,r.jsx)("rect",{x:"8",y:"12",width:"32",height:"32",rx:"4",fill:"url(#rp-body)",filter:"url(#rp-shadow)"}),(0,r.jsx)("path",{d:"M8 16 C8 13.79 9.79 12 12 12 H36 C38.21 12 40 13.79 40 16 L24 24 Z",fill:"url(#rp-flap)"}),(0,r.jsx)("circle",{cx:"24",cy:"28",r:"8",fill:"url(#rp-gold)"}),(0,r.jsx)("path",{d:"M21 25.5H27M24 25.5V31M21 28H27",stroke:"#92400E",strokeWidth:"1.5",strokeLinecap:"round"}),(0,r.jsx)("circle",{cx:"14",cy:"20",r:"1",fill:"#FDE68A",opacity:"0.7"}),(0,r.jsx)("circle",{cx:"34",cy:"18",r:"1.2",fill:"#FDE68A",opacity:"0.7"}),(0,r.jsx)("circle",{cx:"15",cy:"38",r:"0.8",fill:"#FECACA",opacity:"0.5"})]})},{className:a}),titleKey:"events.gameType.redPackage.title",descKey:"events.gameType.redPackage.desc",href:"/event/create-red-package.html",demoHref:"/demo/red-package",orderLabel:"02"},{type:"lucky_wheel",iconNode:(0,r.jsx)(function(e){let{className:t}=e;return(0,r.jsxs)("svg",{className:t,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"lw-ring",x1:"4",y1:"4",x2:"44",y2:"44",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#FDE68A"}),(0,r.jsx)("stop",{offset:"0.5",stopColor:"#F59E0B"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#D97706"})]}),(0,r.jsxs)("linearGradient",{id:"lw-center",x1:"20",y1:"20",x2:"28",y2:"28",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#FEF3C7"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#F59E0B"})]}),(0,r.jsx)("filter",{id:"lw-shadow",children:(0,r.jsx)("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodColor:"#78350F",floodOpacity:"0.25"})})]}),(0,r.jsx)("circle",{cx:"24",cy:"26",r:"18",fill:"url(#lw-ring)",filter:"url
1(#lw-shadow)"}),(0,r.jsx)("path",{d:"M24 8 L24 26 L38.7 14.3 Z",fill:"#EF4444",opacity:"0.85"}),(0,r.jsx)("path",{d:"M24 8 L24 26 L9.3 14.3 Z",fill:"#3B82F6",opacity:"0.85"}),(0,r.jsx)("path",{d:"M38.7 14.3 L24 26 L42 26 Z",fill:"#10B981",opacity:"0.85"}),(0,r.jsx)("path",{d:"M9.3 14.3 L24 26 L6 26 Z",fill:"#F59E0B",opacity:"0.85"}),(0,r.jsx)("path",{d:"M42 26 L24 26 L38.7 37.7 Z",fill:"#8B5CF6",opacity:"0.85"}),(0,r.jsx)("path",{d:"M6 26 L24 26 L9.3 37.7 Z",fill:"#EC4899",opacity:"0.85"}),(0,r.jsx)("path",{d:"M38.7 37.7 L24 26 L24 44 Z",fill:"#F97316",opacity:"0.85"}),(0,r.jsx)("path",{d:"M9.3 37.7 L24 26 L24 44 Z",fill:"#06B6D4",opacity:"0.85"}),(0,r.jsx)("circle",{cx:"24",cy:"26",r:"5",fill:"url(#lw-center)"}),(0,r.jsx)("circle",{cx:"24",cy:"26",r:"2.5",fill:"#F59E0B"}),(0,r.jsx)("polygon",{points:"24,4 21,10 27,10",fill:"#DC2626",stroke:"#FDE68A",strokeWidth:"1"})]})},{className:a}),titleKey:"events.gameType.luckyWheel.title",descKey:"events.gameType.luckyWheel.desc",href:"/event/create-lucky-wheel.html",demoHref:"/demo/lucky-wheel",orderLabel:"03"},{type:"slot_machine",iconNode:(0,r.jsx)(function(e){let{className:t}=e;return(0,r.jsxs)("svg",{className:t,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"sm-body",x1:"6",y1:"6",x2:"42",y2:"42",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#E9D5FF"}),(0,r.jsx)("stop",{offset:"0.5",stopColor:"#C084FC"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#9333EA"})]}),(0,r.jsxs)("linearGradient",{id:"sm-slot",x1:"12",y1:"16",x2:"36",y2:"34",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#FAFAF9"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#E7E5E4"})]}),(0,r.jsx)("filter",{id:"sm-shadow",children:(0,r.jsx)("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodColor:"#6B21A8",floodOpacity:"0.25"})})]}),(0,r.jsx)("rect",{x:"6",y:"6",width:"36",height:"36",rx:"6",fill:"url(#sm-body)",filter:"url(#sm-shadow)"}),(0,r.jsx)("rect",{x:"6",y:"6",width:"36",height:"14",rx:"6",fill:"#D8B4FE",opacity:"0.5"}),(0,r.jsx)("rect",{x:"11",y:"17",width:"7",height:"14",rx:"2",fill:"url(#sm-slot)"}),(0,r.jsx)("rect",{x:"20.5",y:"17",width:"7",height:"14",rx:"2",fill:"url(#sm-slot)"}),(0,r.jsx)("rect",{x:"30",y:"17",width:"7",height:"14",rx:"2",fill:"url(#sm-slot)"}),(0,r.jsx)("circle",{cx:"14.5",cy:"23",r:"2.5",fill:"#EF4444"}),(0,r.jsx)("circle",{cx:"13.5",cy:"21.5",r:"2",fill:"#EF4444"}),(0,r.jsx)("path",{d:"M13 19 Q14.5 17 16 19",stroke:"#16A34A",strokeWidth:"1.2",fill:"none",strokeLinecap:"round"}),(0,r.jsx)("text",{x:"24",y:"27",textAnchor:"middle",fill:"#9333EA",fontSize:"10",fontWeight:"bold",fontFamily:"sans-serif",children:"7"}),(0,r.jsx)("polygon",{points:"33.5,21 34.5,23.5 37,23.5 35,25.2 35.8,27.5 33.5,26 31.2,27.5 32,25.2 30,23.5 32.5,23.5",fill:"#F59E0B"}),(0,r.jsx)("rect",{x:"39",y:"14",width:"3",height:"12",rx:"1.5",fill:"#A855F7"}),(0,r.jsx)("circle",{cx:"40.5",cy:"13",r:"2.5",fill:"#F59E0B"})]})},{className:a}),titleKey:"events.gameType.slotMachine.title",descKey:"events.gameType.slotMachine.desc",href:"/event/create-slot-machine.html",demoHref:"/demo/slot-machine",orderLabel:"04"},{type:"dice_roll",iconNode:(0,r.jsx)(function(e){let{className:t}=e;return(0,r.jsxs)("svg",{className:t,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"di-face1",x1:"4",y1:"14",x2:"24",y2:"44",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#6EE7B7"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#059669"})]}),(0,r.jsxs)("linearGradient",{id:"di-face2",x1:"24",y1:"14",x2:"44",y2:"44",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#34D399"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#047857"})]}),(0,r.jsxs)("linearGradient",{id:"di-top",x1:"14",y1:"4",x2:"34",y2:"18",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#A7F3D0"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#6EE7B7"})]}),(0,r.jsx)("filter",{id:"di-shadow",children:(0,r.jsx)("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodColor:"#064E3B",floodOpacity:"0.25"})})]}),(0,r.jsx)("path",{d:"M4 16 L24 6 L24 36 L4 46 Z",fill:"url(#di-face1)",filter:"url
1(#di-shadow)"}),(0,r.jsx)("path",{d:"M24 6 L44 16 L44 46 L24 36 Z",fill:"url(#di-face2)"}),(0,r.jsx)("path",{d:"M4 16 L24 6 L44 16 L24 26 Z",fill:"url(#di-top)"}),(0,r.jsx)("circle",{cx:"14",cy:"27",r:"2",fill:"white",opacity:"0.9"}),(0,r.jsx)("circle",{cx:"14",cy:"37",r:"2",fill:"white",opacity:"0.9"}),(0,r.jsx)("circle",{cx:"34",cy:"23",r:"2",fill:"white",opacity:"0.9"}),(0,r.jsx)("circle",{cx:"34",cy:"33",r:"2",fill:"white",opacity:"0.9"}),(0,r.jsx)("circle",{cx:"34",cy:"43",r:"2",fill:"white",opacity:"0.9"}),(0,r.jsx)("ellipse",{cx:"24",cy:"16",rx:"2",ry:"1.2",fill:"white",opacity:"0.8"})]})},{className:a}),titleKey:"events.gameType.diceRoll.title",descKey:"events.gameType.diceRoll.desc",href:"/event/create-dice-roll.html",demoHref:"/demo/dice-roll",orderLabel:"05"},{type:"card_flip",iconNode:(0,r.jsx)(function(e){let{className:t}=e;return(0,r.jsxs)("svg",{className:t,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"cf-back",x1:"4",y1:"6",x2:"28",y2:"42",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#93C5FD"}),(0,r.jsx)("stop",{offset:"0.5",stopColor:"#3B82F6"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#1D4ED8"})]}),(0,r.jsxs)("linearGradient",{id:"cf-front",x1:"20",y1:"8",x2:"44",y2:"40",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#FDE68A"}),(0,r.jsx)("stop",{offset:"0.5",stopColor:"#F59E0B"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#D97706"})]}),(0,r.jsxs)("linearGradient",{id:"cf-pattern",x1:"8",y1:"12",x2:"24",y2:"38",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#DBEAFE",stopOpacity:"0.6"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#3B82F6",stopOpacity:"0"})]}),(0,r.jsx)("filter",{id:"cf-shadow",children:(0,r.jsx)("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodColor:"#1E3A5F",floodOpacity:"0.25"})})]}),(0,r.jsx)("rect",{x:"4",y:"6",width:"24",height:"36",rx:"4",fill:"url(#cf-back)",filter:"url(#cf-shadow)"}),(0,r.jsx)("rect",{x:"4",y:"6",width:"24",height:"18",rx:"4",fill:"url(#cf-pattern)"}),(0,r.jsx)("path",{d:"M16 14 L22 24 L16 34 L10 24 Z",stroke:"white",strokeWidth:"1.2",fill:"none",opacity:"0.5"}),(0,r.jsx)("circle",{cx:"16",cy:"24",r:"3",stroke:"white",strokeWidth:"1",fill:"none",opacity:"0.4"}),(0,r.jsx)("rect",{x:"20",y:"8",width:"24",height:"36",rx:"4",fill:"url(#cf-front)",filter:"url(#cf-shadow)",transform:"skewY(-3)"}),(0,r.jsx)("polygon",{points:"32,20 33.5,24 37.5,24 34.5,26.5 35.5,30.5 32,28 28.5,30.5 29.5,26.5 26.5,24 30.5,24",fill:"white",opacity:"0.9"}),(0,r.jsx)("text",{x:"32",y:"40",textAnchor:"middle",fill:"white",fontSize:"8",fontWeight:"bold",fontFamily:"sans-serif",opacity:"0.8",children:"?"})]})},{className:a}),titleKey:"events.gameType.cardFlip.title",descKey:"events.gameType.cardFlip.desc",href:"/event/create-card-flip.html",demoHref:"/demo/card-flip",orderLabel:"06"},{type:"gacha",iconNode:(0,r.jsx)(function(e){let{className:t}=e;return(0,r.jsxs)("svg",{className:t,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"gc-body",x1:"6",y1:"20",x2:"42",y2:"44",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#FCA5A5"}),(0,r.jsx)("stop",{offset:"0.5",stopColor:"#EF4444"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#991B1B"})]}),(0,r.jsxs)("radialGradient",{id:"gc-knob",cx:"0.35",cy:"0.35",r:"0.7",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:"#FEF3C7"}),(0,r.jsx)("stop",{offset:"55%",stopColor:"#FBBF24"}),(0,r.jsx)("stop",{offset:"100%",stopColor:"#B45309"})]}),(0,r.jsx)("filter",{id:"gc-shadow",children:(0,r.jsx)("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodColor:"#7F1D1D",floodOpacity:"0.3"})})]}),(0,r.jsx)("rect",{x:"8",y:"20",width:"32",height:"22",rx:"3",fill:"url(#gc-body)",filter:"url(#gc-shadow)"}),(0,r.jsx)("rect",{x:"10",y:"18",width:"28",height:"4",rx:"1",fill:"#FFFFFF",stroke:"#B45309",strokeWidth:"0.8"}),(0,r.jsx)("path",{d:"M 11 19 Q 24 4 37 19 Z",fill:"#FFFFFF",opacity:"0.45",stroke:"#FFFFFF",strokeWidth:"1"}),(0,r.jsx)("circle",{cx:"18",cy:"13",r:"2.2",fill:"#FBBF24",stroke:"#FFFFFF",strokeWidth:"0.5"}),(0,r.jsx)("circle",{cx:"24",cy:"9",r:"2.2",fill:"#A855F7",stroke:"#FFFFFF",strokeWidth:"0.5"}),(0,r.jsx)("circle",{cx:"30",cy:"13",r:"2.2",fill:"#22D3EE",stroke:"#FFFFFF",strokeWidth:"0.5"}),(0,r.jsx)("circle",{cx:"21",cy:"16",r:"2",fill:"#10B981",stroke:"#FFFFFF",strokeWidth:"0.5"}),(0,r.jsx)("circle",{cx:"27",cy:"16",r:"2",fill:"#F472B6",stroke:"#FFFFFF",strokeWidth:"0.5"}),(0,r.jsx)("circle",{cx:"24",cy:"32",r:"6",fill:"url(#gc-knob)",stroke:"#B45309",strokeWidth:"1.2"}),(0,r.jsx)("rect",{x:"23",y:"26.5",width:"2",height:"11",rx:"0.6",fill:"#B45309"}),(0,r.jsx)("rect",{x:"18.5",y:"31",width:"11",height:"2",rx:"0.6",fill:"#B45309"}),(0,r.jsx)("circle",{cx:"24",cy:"32",r:"1.5",fill:"#B45309"}),(0,r.jsx)("rect",{x:"14",y:"40",width:"20",height:"3",rx:"1",fill:"#FEF3C7",opacity:"0.85",stroke:"#FFFFFF",strokeWidth:"0.6"})]})},{className:a}),titleKey:"events.gameType.gacha.title",descKey:"events.gameType.gacha.desc",href:"/event/create-gacha.html",demoHref:"/demo/gacha",orderLabel:"07"}],n=[];function x(e){let{game:t,locale:s}=e,{t:l}=(0,c.$)(s);return(0,r.jsxs)("article",{className:"group relative block cursor-pointer overflow-hidden rounded-2xl border border-slate-200 bg-white p-6 shadow-[0_10px_30px_rgba(15,23,42,0.06)] transition-all duration-300 hover:-translate-y-0.5 hover:shadow-[0_16px_42px_rgba(15,23,42,0.1)] md:p-7","data-testid":"game-card-".concat(t.type),children:[(0,r.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-20 bg-gradient-to-b from-slate-50 to-transparent"}),(0,r.jsxs)("div",{className:"relative flex min-h-[300px] flex-col md:min-h-[320px]",children:[(0,r.jsxs)("div",{className:"mb-7 flex items-start justify-between gap-5",children:[(0,r.jsxs)("div",{className:"min-w-0 pt-1",children:[(0,r.jsx)("h3",{className:"text-[1.55rem] font-semibold text-slate-900 md:text-[1.7rem]",children:l(t.titleKey)}),(0,r.jsx)("p",{className:"mt-4 max-w-[30ch] text-sm leading-7 text-slate-600 md:text-[15px]",children:l(t.descKey)})]}),(0,r.jsxs)("div",{className:"flex shrink-0 flex-col items-end gap-3",children:[(0,r.jsx)("div",{className:"rounded-full border border-slate-200 bg-slate-50 px-3 py-1 text-[11px] font-semibold tracking-[0.26em] text-slate-400",children:t.orderLabel}),(0,r.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-2xl border border-slate-200 bg-slate-50 shadow-[inset_0_1px_0_rgba(255,255,255,0.95),0_6px_18px_rgba(148,163,184,0.08)] md:h-16 md:w-16",children:(0,r.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-white md:h-11 md:w-11",
1style:{filter:"saturate(0.78) brightness(0.98)"},children:t.iconNode})})]})]}),(0,r.jsxs)("div",{className:"mt-auto flex flex-wrap items-center justify-end gap-3 border-t border-slate-100 pt-5",children:[(0,r.jsx)(i.default,{href:"/".concat(s).concat(t.demoHref),className:"inline-flex items-center gap-2 rounded-lg border border-slate-200 bg-white px-4 py-2.5 text-sm font-medium text-slate-600 transition-colors hover:border-blue-200 hover:bg-blue-50 hover:text-blue-700","data-testid":"btn-demo-".concat(t.type),children:l("demo.index.tryNow")}),(0,r.jsxs)(i.default,{href:"/".concat(s).concat(t.href),className:"inline-flex items-center gap-2 rounded-lg bg-blue-600 px-4 py-2.5 text-sm font-semibold text-white shadow-[0_10px_24px_rgba(37,99,235,0.18)] transition-all duration-300 group-hover:bg-blue-700 hover:bg-blue-700","data-testid":"btn-create-".concat(t.type),children:[l("events.create.startNow"),(0,r.jsxs)("svg",{className:"h-4 w-4",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M5 10H15",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M10.5 5L15.5 10L10.5 15",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]})]})]})]})]})}function p(e){let{game:t,locale:s}=e,{t:l}=(0,c.$)(s);return(0,r.jsxs)("div",{className:"group relative overflow-hidden rounded-[26px] border border-white/70 bg-white/55 p-6 opacity-80 shadow-[0_18px_45px_rgba(15,23,42,0.05)] backdrop-blur-sm",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-24 bg-gradient-to-br from-white/50 to-transparent"}),(0,r.jsxs)("div",{className:"relative flex items-start justify-between",children:[(0,r.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-[18px] border border-slate-200 bg-slate-50 shadow-[inset_0_1px_0_rgba(255,255,255,0.95),0_6px_18px_rgba(148,163,184,0.08)]",children:(0,r.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-white",style:{filter:"saturate(0.78) brightness(0.98)"},children:t.iconNode})}),(0,r.jsx)("div",{className:"rounded-full border border-slate-200/80 bg-white/70 px-3 py-1 text-[11px] font-semibold tracking-[0.26em] text-slate-300",children:t.orderLabel})]}),(0,r.jsxs)("div",{className:"relative mt-8",children:[(0,r.jsx)("h3",{className:"mb-3 text-[1.4rem] font-semibold tracking-[-0.03em] text-slate-400",children:l(t.titleKey)}),(0,r.jsx)("span",{className:"inline-flex rounded-full border border-slate-200/80 bg-slate-100/90 px-3 py-1 text-xs font-medium text-slate-400",children:l("events.create.comingSoonLabel")})]})]})}function h(){let e=(0,o.b)(),{t}=(0,c.$)(e),[s,i]=(0,l.useState)(null);(0,l.useEffect)(()=>{fetch("/api/public/lottery-games/enabled-types",{cache:"no-store"}).then(e=>e.ok?e.json():null).then(e=>{var t;(null==e?void 0:e.success)&&Array.isArray(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.enabled_types)&&i(e.data.enabled_types)}).catch(()=>{})},[]);let a=(0,l.useMemo)(()=>null===s?d:d.filter(e=>s.includes(e.type)),[s]);return(0,r.jsx)("main",{className:"min-h-screen bg-slate-50 px-4 py-8 md:px-8 md:py-12","data-testid":"create-entry-page",children:(0,r.jsxs)("div",{className:"mx-auto flex max-w-7xl flex-col gap-10",children:[(0,r.jsxs)("section",{className:"space-y-5",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-end md:justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-[1.65rem] font-semibold tracking-[-0.04em] text-slate-900 md:text-[1.85rem]",children:t("events.create.sectionLottery")}),(0,r.jsx)("p",{className:"mt-2 text-sm leading-7 text-slate-600",children:t("events.create.pageDescription")})]}),(0,r.jsx)("div",{className:"inline-flex items-center rounded-full border border-slate-200 bg-white px-4 py-2 text-sm font-medium text-slate-500 shadow-[0_8px_24px_rgba(15,23,42,0.04)]",children:a.length.toString().padStart(2,"0")})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 gap-5 lg:grid-cols-3","data-testid":"game-type-grid",children:a.map(t=>(0,r.jsx)(x,{game:t,locale:e},t.type))})]}),n.length>0&&(0,r.jsxs)("section",{className:"rounded-[30px] border border-white/70 bg-white/58 px-6 py-7 shadow-[0_18px_60px_rgba(15,23,42,0.05)] backdrop-blur-md md:px-8 md:py-8","data-testid":"coming-soon-section",children:[(0,r.jsxs)("div",{className:"mb-6 flex flex-col gap-3 md:flex-row md:items-end md:justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-[1.5rem] font-semibold tracking-[-0.04em] text-slate-500 md:text-[1.7rem]",children:t("events.create.sectionComingSoon")}),(0,r.jsx)("p",{className:"mt-2 text-sm leading-7 text-slate-400",children:t("events.create.pageDescription")})]}),(0,r.jsx)("div",{className:"inline-flex items-center rounded-full border border-slate-200/80 bg-white/75 px-4 py-2 text-sm font-medium text-slate-400",children:t("events.create.comingSoonLabel")})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 gap-5 md:grid-cols-2 xl:grid-cols-3",children:n.map(t=>(0,r.jsx)(p,{game:t,locale:e},t.type))})]})]})})}function f(){return(0,r.jsx)(l.Suspense,{fallback:(0,r.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,r.jsx)("div",{className:"animate-spin h-8 w-8 border-4 border-blue-500 border-t-transparent roun
1ded-full"})}),children:(0,r.jsx)(h,{})})}},33134:function(e,t,s){"use strict";s.d(t,{RF:function(){return r},ZW:function(){return l},he:function(){return i}});let r=["en","zh-TW","zh-CN","ja","ko","es","fr","de","it","vi","id"],l="en",i={en:"English","zh-TW":"䏿æ£é«","zh-CN":"䏿ç®ä½",ja:"æ¥æ¬èª",ko:"íêµì´",es:"Espa\xf1ol",fr:"Fran\xe7ais",de:"Deutsch",it:"Italiano",vi:"Tiếng Viá»t",id:"Bahasa Indonesia"}},49924:function(e,t,s){"use strict";s.d(t,{b:function(){return i}});var r=s(99376),l=s(33134);function i(){let e=(0,r.usePathname)().split("/").filter(Boolean)[0];return e&&l.RF.includes(e)?e:l.ZW}}},function(e){e.O(0,[3448,2442,2971,2117,1744],function(){return e(e.s=52457)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.