import{f as C,aI as j,d as q,aJ as E,c as b,n as H,aq as $,a6 as D,a as m,az as B,b as M,t as v,u as I,o as w,e as R}from"./index-CIgo32aP.js";var h={exports:{}},k={exports:{}},S;function L(){return S||(S=1,(function(n){var i={};const l=typeof process<"u"&&i.TERM_PROGRAM==="Hyper",g=typeof process<"u"&&process.platform==="win32",c=typeof process<"u"&&process.platform==="linux",r={ballotDisabled:"☒",ballotOff:"☐",ballotOn:"☑",bullet:"•",bulletWhite:"◦",fullBlock:"█",heart:"❤",identicalTo:"≡",line:"─",mark:"※",middot:"·",minus:"-",multiplication:"×",obelus:"÷",pencilDownRight:"✎",pencilRight:"✏",pencilUpRight:"✐",percent:"%",pilcrow2:"❡",pilcrow:"¶",plusMinus:"±",question:"?",section:"§",starsOff:"☆",starsOn:"★",upDownArrow:"↕"},f=Object.assign({},r,{check:"√",cross:"×",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"»",radioOff:"( )",radioOn:"(*)",warning:"‼"}),p=Object.assign({},r,{ballotCross:"✘",check:"✔",cross:"✖",ellipsisLarge:"⋯",ellipsis:"…",info:"ℹ",questionFull:"?",questionSmall:"﹖",pointer:c?"▸":"❯",pointerSmall:c?"‣":"›",radioOff:"◯",radioOn:"◉",warning:"⚠"});n.exports=g&&!l?f:p,Reflect.defineProperty(n.exports,"common",{enumerable:!1,value:r}),Reflect.defineProperty(n.exports,"windows",{enumerable:!1,value:f}),Reflect.defineProperty(n.exports,"other",{enumerable:!1,value:p})})(k)),k.exports}var _;function T(){if(_)return h.exports;_=1;var n={};const i=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),l=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,g=()=>typeof process<"u"?n.FORCE_COLOR!=="0":!1,c=()=>{const r={enabled:g(),visible:!0,styles:{},keys:{}},f=t=>{let o=t.open=`\x1B[${t.codes[0]}m`,s=t.close=`\x1B[${t.codes[1]}m`,u=t.regex=new RegExp(`\\u001b\\[${t.codes[1]}m`,"g");return t.wrap=(a,y)=>{a.includes(s)&&(a=a.replace(u,s+o));let x=o+a+s;return y?x.replace(/\r*\n/g,`${s}$&${o}`):x},t},p=(t,o,s)=>typeof t=="function"?t(o):t.wrap(o,s),d=(t,o)=>{if(t===""||t==null)return"";if(r.enabled===!1)return t;if(r.visible===!1)return"";let s=""+t,u=s.includes(` `),a=o.length;for(a>0&&o.includes("unstyle")&&(o=[...new Set(["unstyle",...o])].reverse());a-- >0;)s=p(r.styles[o[a]],s,u);return s},e=(t,o,s)=>{r.styles[t]=f({name:t,codes:o}),(r.keys[s]||(r.keys[s]=[])).push(t),Reflect.defineProperty(r,t,{configurable:!0,enumerable:!0,set(a){r.alias(t,a)},get(){let a=y=>d(y,a.stack);return Reflect.setPrototypeOf(a,r),a.stack=this.stack?this.stack.concat(t):[t],a}})};return e("reset",[0,0],"modifier"),e("bold",[1,22],"modifier"),e("dim",[2,22],"modifier"),e("italic",[3,23],"modifier"),e("underline",[4,24],"modifier"),e("inverse",[7,27],"modifier"),e("hidden",[8,28],"modifier"),e("strikethrough",[9,29],"modifier"),e("black",[30,39],"color"),e("red",[31,39],"color"),e("green",[32,39],"color"),e("yellow",[33,39],"color"),e("blue",[34,39],"color"),e("magenta",[35,39],"color"),e("cyan",[36,39],"color"),e("white",[37,39],"color"),e("gray",[90,39],"color"),e("grey",[90,39],"color"),e("bgBlack",[40,49],"bg"),e("bgRed",[41,49],"bg"),e("bgGreen",[42,49],"bg"),e("bgYellow",[43,49],"bg"),e("bgBlue",[44,49],"bg"),e("bgMagenta",[45,49],"bg"),e("bgCyan",[46,49],"bg"),e("bgWhite",[47,49],"bg"),e("blackBright",[90,39],"bright"),e("redBright",[91,39],"bright"),e("greenBright",[92,39],"bright"),e("yellowBright",[93,39],"bright"),e("blueBright",[94,39],"bright"),e("magentaBright",[95,39],"bright"),e("cyanBright",[96,39],"bright"),e("whiteBright",[97,39],"bright"),e("bgBlackBright",[100,49],"bgBright"),e("bgRedBright",[101,49],"bgBright"),e("bgGreenBright",[102,49],"bgBright"),e("bgYellowBright",[103,49],"bgBright"),e("bgBlueBright",[104,49],"bgBright"),e("bgMagentaBright",[105,49],"bgBright"),e("bgCyanBright",[106,49],"bgBright"),e("bgWhiteBright",[107,49],"bgBright"),r.ansiRegex=l,r.hasColor=r.hasAnsi=t=>(r.ansiRegex.lastIndex=0,typeof t=="string"&&t!==""&&r.ansiRegex.test(t)),r.alias=(t,o)=>{let s=typeof o=="string"?r[o]:o;if(typeof s!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");s.stack||(Reflect.defineProperty(s,"name",{value:t}),r.styles[t]=s,s.stack=[t]),Reflect.defineProperty(r,t,{configurable:!0,enumerable:!0,set(u){r.alias(t,u)},get(){let u=a=>d(a,u.stack);return Reflect.setPrototypeOf(u,r),u.stack=this.stack?this.stack.concat(s.stack):s.stack,u}})},r.theme=t=>{if(!i(t))throw new TypeError("Expected theme to be an object");for(let o of Object.keys(t))r.alias(o,t[o]);return r},r.alias("unstyle",t=>typeof t=="string"&&t!==""?(r.ansiRegex.lastIndex=0,t.replace(r.ansiRegex,"")):""),r.alias("noop",t=>t),r.none=r.clear=r.noop,r.stripColor=r.unstyle,r.symbols=L(),r.define=e,r};return h.exports=c(),h.exports.create=c,h.exports}T();const W="regulation";function A(){return{slug:null,data:null,source:"fallback",fetchedAt:null}}function F(n,i,l="remote"){const g=i&&typeof i=="object"&&!Array.isArray(i)?i:null;return{slug:n,data:g,source:l,fetchedAt:new Date().toISOString()}}function G(n){return{slug:n,data:null,source:"fallback",fetchedAt:new Date().toISOString()}}function O(n,i){if(!n)return"";const l=n[i];return typeof l=="string"?l:""}function P(n,i){{const l=O(n,i);if(l)return l}for(const l of["content","body","html","text"]){const g=O(n,l);if(g)return g}return""}const z=["about","affiliates","aml","betting-terms","cookies-policy","faq","funds","funds-and-transactions-policy","pld-ft-policy","privacy-policy","responsible-gaming","rules","suport","terms-and-conditions"],N=new Set(z),V=C("regulation",{state:()=>({...A()}),actions:{setProjection(n){this.slug=n.slug,this.data=n.data,this.source=n.source,this.fetchedAt=n.fetchedAt},clearProjection(){Object.assign(this,A())},async fetchBySlug(n){const i=typeof n=="string"?n.trim():"";if(!i||!N.has(i)){this.clearProjection();return}if(!(this.slug===i&&this.data))try{const{data:l}=await j.get("/api/regulation",{params:{[W]:i}});this.setProjection(F(i,l,"remote"))}catch{this.setProjection(G(i))}}}}),K={key:0,class:"text-end"},U={class:"text-sm"},Y=["innerHTML"],Q={auth:!1,crumb:[{textKey:"breadcrumb.home",link:"/"}],crumbSlugSegment:!0,restrictedSlug:{allowed:["about","affiliates","aml","betting-terms","cookies-policy","faq","funds","funds-and-transactions-policy","pld-ft-policy","privacy-policy","responsible-gaming","rules","suport","terms-and-conditions"]}},X=q({__name:"[Regulations]",setup(n){const i=H(),l=V(),g=E(),c=b(()=>{const e=i.params.regulations,t=Array.isArray(e)?e[0]:e;return typeof t=="string"?t:""}),r=b(()=>{const e=l.data,t=c.value;if(!e||!t)return null;const o=e[t];return o&&typeof o=="object"&&!Array.isArray(o)?o:e}),f=b(()=>P(r.value,"text")),p=b(()=>g.business.sport_sportbook_type==="altenar"?"2.0":"1.0");function d(e){return e.replace(/-/g," ").replace(/\b\w/g,t=>t.toUpperCase())}return $(()=>{const e=R(`breadcrumb.${c.value}`),o=P(r.value,"text").replace(/<[^>]*>/g,"").trim(),s=o?`${o.slice(0,160)}…`:"";return{title:e,meta:[{name:"description",content:s||d(c.value)},{name:"robots",content:"index, follow"}]}}),D(c,e=>{e&&l.fetchBySlug(e)},{immediate:!0}),(e,t)=>(w(),m("section",null,[c.value==="rules"?(w(),m("p",K,[M("code",U,v(I(R)("regulation.sports-book-version"))+" "+v(p.value),1)])):B("",!0),f.value?(w(),m("div",{key:1,class:"py-5",innerHTML:f.value},null,8,Y)):B("",!0)]))}});export{X as default,Q as page};