import{d as R,bO as H,al as N,Q as k,bP as D,u as Z,m as o,b as r,f as d,t as w,w as p,bQ as $,a9 as F,o as a,ab as b,F as f,n as x,bR as K,c as _,bS as Q,bT as j,bU as G,bl as l,aE as O,aj as U}from"./index-BTTFajzp.js";const W={class:"mb-4 font-semibold sm:text-xl lg:text-3xl"},q={key:0,class:"rules-betting-loading flex flex-col gap-4","aria-busy":"true","aria-live":"polite"},z={key:1,class:"rules-betting-empty text-white/70"},A={key:2,class:"rules-betting-content rules-betting-prose flex flex-col gap-4"},J={class:"rules-betting-panel-summary flex items-center gap-3 text-base font-bold"},X={class:"flex flex-col gap-4 pl-9"},Y={class:"rules-betting-trailing flex flex-col gap-4"},ne={auth:!1,crumb:[{textKey:"breadcrumb.home",link:"/"},{textKey:"breadcrumb.rules-betting",link:"/rules-betting"}]},ee=R({__name:"RulesBetting",setup(te){const{content:u,ready:S,pageId:B}=H(),E=N(),h=k(()=>String(E.business.general_site_title||"").trim()||"Cometa Gaming"),P=k(()=>u.value?.panels??[]),v=k(()=>{const n=D(B.value),e=u.value?.titleSuffix??(typeof n?.titleSuffix=="string"?n.titleSuffix:void 0);return e?`${h.value} — ${e}`:h.value}),V="\\*\\*([\\s\\S]+?)\\*\\*|\\[([^\\]]+)\\]\\(([^)]+)\\)|\\{brand\\}|\\n";function i(n){const e=[];let t=0,s;const C=new RegExp(V,"g");for(;(s=C.exec(n))!==null;){s.index>t&&e.push(n.slice(t,s.index));const[c,L,m,g]=s;if(L!=null)e.push(l("strong",i(L)));else if(m!=null&&g!=null)if(g==="#register")e.push(l("button",{type:"button",class:"rules-betting-register-link cursor-pointer underline","data-register-link":"true"},i(m)));else{const M=g.startsWith("http");e.push(l("a",{href:g,class:"underline",...M?{target:"_blank",rel:"noopener noreferrer"}:{}},i(m)))}else c==="{brand}"?e.push(h.value):c===` `&&e.push(l("br"));t=s.index+c.length}return ti(n.text),y=n=>{const e=n.block;if(e.type==="heading"){const t=`h${e.level}`,s=e.level===2?"text-xl font-bold":e.level===3?"text-lg font-bold":"font-bold";return l(t,{class:s},i(e.text))}return e.type==="paragraph"?l("p",i(e.text)):e.type==="list"?l(e.ordered?"ol":"ul",{class:e.ordered?"list-decimal pl-6":"list-disc pl-6"},e.items.map(t=>l("li",i(t)))):l("div",{class:"overflow-x-auto"},[l("table",{class:"rules-betting-table w-full border-collapse"},[e.headers.length>0?l("thead",[l("tr",e.headers.map(t=>l("th",{class:"border px-2 py-1 text-left"},i(t))))]):null,l("tbody",e.rows.map(t=>l("tr",t.map(s=>l("td",{class:"border px-2 py-1 align-top"},i(s))))))])])};function T(n){const e=n.target;e instanceof Element&&e.closest("[data-register-link]")&&(n.preventDefault(),O())}return Z(()=>({title:v.value,meta:[{name:"description",content:u.value?.metaDescription||F("breadcrumb.rules-betting")}]})),(n,e)=>(a(),o("section",{class:"rules-betting-page text-white",onClick:T},[r("h1",W,w(v.value),1),d($,null,{default:p(()=>[b(S)?b(u)?.panels?.length?(a(),o("div",A,[d(K,{multiple:"",class:"rules-betting-panels"},{default:p(()=>[(a(!0),o(f,null,x(P.value,(t,s)=>(a(),_(Q,{key:s,class:"rules-betting-panel",style:{"background-color":"transparent",color:"inherit"}},{default:p(()=>[d(j,{class:"rules-betting-panel-title",style:{"background-color":"transparent",color:"inherit"}},{default:p(()=>[r("div",J,[e[1]||(e[1]=r("svg",{fill:"none",height:"28",viewBox:"0 0 28 28",width:"28",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[r("path",{d:"M17.67 14.23C17.43 14.06 17.24 13.83 17.11 13.56L16.01 11.35L14.92 13.57C14.79 13.83 14.6 14.06 14.37 14.24C14.14 14.41 13.86 14.53 13.57 14.57L11.13 14.93L12.9 16.64C13.11 16.85 13.26 17.1 13.35 17.38C13.44 17.66 13.46 17.95 13.42 18.24L12.99 20.69L15.17 19.54C15.43 19.4 15.72 19.33 16.01 19.33C16.3 19.33 16.59 19.4 16.85 19.54L19.03 20.68L18.61 18.25C18.56 17.96 18.58 17.66 18.67 17.39C18.76 17.11 18.92 16.86 19.13 16.65L20.91 14.91L18.47 14.56C18.18 14.52 17.9 14.4 17.67 14.23Z",fill:"#FFFFFF"}),r("path",{d:"M27.31 4.69C24.31 1.69 20.24 0 16 0C11.76 0 7.69 1.69 4.69 4.69C1.69 7.69 0 11.76 0 16C0 20.24 1.69 24.31 4.69 27.31C7.6 30.22 11.5 31.87 15.6 31.98C15.73 31.98 15.87 32 16 32C16.13 32 16.27 31.98 16.4 31.98C20.5 31.88 24.41 30.22 27.31 27.31C30.31 24.31 32 20.24 32 16C32 11.76 30.31 7.69 27.31 4.69ZM23.09 15.21C23.01 15.54 22.84 15.84 22.6 16.07L20.6 18L21.04 20.7C21.1 21.03 21.07 21.37 20.94 21.69C20.81 22 20.6 22.27 20.33 22.47C20.06 22.67 19.73 22.79 19.39 22.81C19.05 22.83 18.71 22.76 18.41 22.61L16.01 21.33L13.58 22.61C13.32 22.75 13.03 22.82 12.73 22.82C12.35 22.82 11.98 22.7 11.67 22.48C11.4 22.28 11.19 22.01 11.06 21.7C10.93 21.39 10.9 21.05 10.95 20.72L11.41 18L9.41 16.09C9.17 15.85 8.99 15.55 8.91 15.23C8.83 14.9 8.84 14.56 8.95 14.23C9.05 13.91 9.24 13.62 9.5 13.4C9.76 13.18 10.07 13.04 10.41 13L13.14 12.6L14.37 10.14C14.52 9.84 14.75 9.58 15.03 9.41C15.31 9.23 15.64 9.14 15.98 9.14C16.32 9.14 16.65 9.23 16.93 9.41C17.22 9.59 17.45 9.84 17.6 10.14L18.82 12.61L21.55 13C21.89 13.04 22.21 13.18 22.47 13.39C22.73 13.61 22.93 13.89 23.04 14.22C23.15 14.54 23.16 14.88 23.08 15.21H23.09Z",fill:"#FFFFFF"})],-1)),r("span",null,[d(I,{text:t.title},null,8,["text"])])])]),_:2},1024),d(G,{class:"rules-betting-panel-text"},{default:p(()=>[r("article",X,[(a(!0),o(f,null,x(t.blocks,(C,c)=>(a(),_(y,{key:c,block:C},null,8,["block"]))),128))])]),_:2},1024)]),_:2},1024))),128))]),_:1}),r("div",Y,[(a(!0),o(f,null,x(b(u).trailing,(t,s)=>(a(),_(y,{key:s,block:t},null,8,["block"]))),128))])])):(a(),o("div",z,w(b(F)("breadcrumb.rules-betting")),1)):(a(),o("div",q,[e[0]||(e[0]=r("div",{class:"h-10 max-w-md animate-pulse rounded bg-white/10"},null,-1)),(a(),o(f,null,x(4,t=>r("div",{key:t,class:"h-14 animate-pulse rounded bg-white/10"})),64))]))]),_:1})]))}}),se=U(ee,[["__scopeId","data-v-d8ec6acc"]]);export{se as default,ne as page};