PageSourceSearch

https://www.casino.us/_nuxt/CXzCb6_3.js

js casino.us collected 2026-10-03 23:35:02 UTC 9,879 bytes, 1 lines download raw bytes

1import y from"./Dsvhbr3X.js";import{_ as z,c as s,a as r,b as d,n as o,t as i,e as g,d as m,F as u,x as f,l as v,o as l}from"./C_dDoqqV.js";const k=["single","multiple","multiple-reverse","clickable","circle","circle-brand","square","square-brand","progress","giant","giant-square","game-review","game-review-full"],C=["default","success","warning","error","empty"],R=["sm","md"],b=["inline","stacked"],w={name:"Rating",components:{iconStar:y},props:{variant:{type:String,validator:a=>k.includes(a),default:"single"},rating:{required:!0,type:[Number,String],default:0},scale:{type:Number,default:5},showScale:{type:Boolean,default:!1},color:{type:String,validator:a=>C.includes(a),default:"default"},size:{type:String,validator:a=>R.includes(a),default:"sm"},textSize:{type:String,default:"leading-md lg:leading-sm text-md md:text-lg lg:text-xl"},type:{type:String,validator:a=>b.includes(a),default:"inline"},text:{type:Boolean,default:!1},convertRating:{type:Boolean,default:!0},starEmptyColor:{type:String,default:"text-foreground-empty"},externalRatingTextClass:{type:String,default:""},textColor:{type:String,default:"text-foreground-2"}},emits:["rate"],data(){return{badLabel:this.$t("rating.bad"),lowLabel:this.$t("rating.low"),greatLabel:this.$t("rating.great"),goodLabel:this.$t("rating.good"),excellentLabel:this.$t("rating.excellent"),hoveringStar:null}},computed:{cssColor(){switch(this.color){case"success":return"text-foreground-success";case"error":return"text-foreground-error";case"warning":return"text-foreground-warning";case"empty":return"empty";default:return"text-foreground-star-rating"}},cssBgColor(){let a=typeof this.formattedRating=="string"?parseFloat(this.formattedRating):this.formattedRating;return a>5&&(a=(a/2).toFixed(1)),a<=2.49?"background-error-600":a>=2.5&&a<4.5?"background-warning-500":a>=4.5?"background-success-600 shadow-success":""},textRating(){return this.convertedRating<=1.9?this.badLabel:this.convertedRating>=2&&this.convertedRating<=2.9?this.lowLabel:this.convertedRating>=3&&this.convertedRating<=3.5?this.goodLabel:this.convertedRating>=3.6&&this.convertedRating<=4.4?this.greatLabel:this.convertedRating>=4.5?this.excellentLabel:""},convertedRating(){return this.rating>5&&this.convertRating?(this.rating/2).toFixed(1):this.rating},convertedScale(){return 5},formattedRating(){if(this.rating>5&&this.convertRating){const a=this.rating/10*this.convertedScale;return Math.floor(a*10)/10}return this.rating},progressBarWidth(){return`${this.convertedRating/this.convertedScale*100}%`},partialStarWidth(){return`${this.numericConvertedRating%1*100}%`},numericConvertedRating(){return Number(this.convertedRating)}},methods:{isPartialStar(a){const x=this.numericConvertedRating;return a===Math.ceil(x)&&x%1!==0},clickableColor(a){return this.hoveringStar!==null?a<=this.hoveringStar?this.cssColor:this.starEmptyColor:a<=this.rating?this.cssColor:this.starEmptyColor},rateGame(a){this.$emit("rate",a)}}},S={class:"flex gap-2xs items-center text-foreground-2"},B={class:"flex"},E={class:"flex gap-2xs items-center text-foreground-2"},L={class:"flex gap-2xs items-center"},M={key:0,class:"w-full relative z-10"},N={key:2,class:"relative z-10"},P={key:2,class:"flex flex-row gap-xs items-center text-foreground-2"},W={class:"w-full rounded-full h-xs background-elevation-4"},q={key:0,class:"flex items-center ml-2"},F={class:"flex gap-2xs items-center"},O=["onMouseover","onClick"],V={key:4,class:"flex text-foreground-1 flex-row gap-xs lg:gap-md items-center"},j={class:"flex gap-xs lg:gap-md items-center text-foreground-1"},T={class:"flex flex-col text-left gap-2xs"},A={class:"flex gap-2xs items-center"},G={key:0,class:"w-full relative z-10"},D={key:2,class:"relative z-10"},I={key:5,class:"flex flex-col text-foreground-1 gap-xs lg:md items-center background-elevation-4 rounded-ui-md p-md"},H={class:"font-bold text-foreground-1 leading-sm span-size"},J={class:"flex flex-col items-center w-full"},K={class:"flex gap-2xs items-center"},Q={key:0,class:"w-full relative z-10"},U={key:2,class:"relative z-10"},X={key:6,class:"flex text-foreground-2"},Y={class:"font-bold text-foreground-on-light md:leading-sm text-lg md:text-2xl"},Z={key:0,class:"text-foreground-on-light font-regular text-sm"},p={key:7,class:"flex text-foreground-2"},$={class:"font-bold text-foreground-on-light text-5xl leading-sm"},ee={key:0,class:"text-foreground-on-light font-regular text-sm"};function te(a,x,e,se,h,t){const c=y;return e.variant==="single"?(l(),s("div",{key:0,class:o(["flex text-foreground-2",{"flex-row gap-2xs items-center":e.type==="inline","flex-col":e.type==="stacked"}])},[r("div",S,[d(c,{color:t.cssColor,size:e.size},null,8,["color","size"]),r("div",B,[r("span",{class:o(["font-bold leading-md",[{"text-xs":e.size==="sm","text-sm":e.size==="md"},e.externalRatingTextClass,e.textColor]])},i(t.formattedRating)+"/"+i(e.scale),3)])]),e.text?(l(),s("span",{key:0,class:o(["font-regular leading-md",[{"text-2xs md:text-xs":e.size==="sm","text-xs md:text-sm":e.size==="md"},e.textColor]])},i(t.textRating),3)):g("",!0)],2)):e.variant==="multiple"||e.variant==="multiple-reverse"?(l(),s("div",{key:1,class:o(["flex",[{"flex-row gap-2xs items-center":e.type==="inline","flex-col":e.type==="stacked"},e.textColor]])},[r("div",{class:o(["flex gap-2xs items-center",{"flex-row-reverse justify-end":e.variant==="multiple-reverse"}])},[r("div",E,[r("span",{class:o(["font-bold leading-md",[{"text-sm":e.size==="sm","text-md":e.size==="md"},e.textColor]])},[m(i(t.formattedRating),1),e.showScale?(l(),s(u,{key:0},[m("/"+i(e.scale),1)],64)):g("",!0)],2)]),r("div",L,[(l(!0),s(u,null,f(e.scale,n=>(l(),s("div",{key:n,class:"flex items-center relative"},[d(c,{color:e.starEmptyColor,size:e.size,class:"absolute inset-0"},null,8,["color","size"]),n<=Math.floor(t.convertedRating)?(l(),s("div",M,[d(c,{color:t.cssColor,size:e.size},null,8,["color","size"])])):t.isPartialStar(n)?(l(),s("div",{key:1,class:"relative overflow-hidden z-10",style:v({width:t.partialStarWidth}
1)},[d(c,{color:t.cssColor,size:e.size},null,8,["color","size"])],4)):(l(),s("div",N,[d(c,{color:e.starEmptyColor,size:e.size},null,8,["color","size"])]))]))),128))]),e.text?(l(),s("span",{key:0,class:o(["font-regular leading-md",[{"text-2xs md:text-sm":e.size==="sm","text-xs md:text-sm":e.size==="md"},e.textColor]])},i(t.textRating),3)):g("",!0)],2)],2)):e.variant==="progress"?(l(),s("div",P,[r("div",W,[r("div",{class:"background-foreground-star-rating h-xs rounded-full",style:v({width:t.progressBarWidth})},null,4)]),e.showScale?(l(),s("div",q,[r("span",{class:o(["font-bold leading-md text-2xs lg:text-xs",e.textColor])},i(t.convertedRating)+"/"+i(t.convertedScale),3)])):g("",!0),e.text?(l(),s("span",{key:1,class:o(["text-2xs font-regular leading-md ml-2xs",[{"text-2xs md:text-xs":e.size==="sm","text-xs md:text-sm":e.size==="md"},e.textColor]])},i(t.textRating),3)):g("",!0)])):e.variant==="clickable"?(l(),s("div",{key:3,class:o(["flex",[{"flex-row gap-2xs items-center":e.type==="inline","flex-col":e.type==="stacked"},e.textColor]])},[r("div",F,[(l(!0),s(u,null,f(e.scale,n=>(l(),s("div",{key:n,class:"flex items-center cursor-pointer",onMouseover:_=>h.hoveringStar=n,onMouseleave:x[0]||(x[0]=_=>h.hoveringStar=null),onClick:_=>t.rateGame(n)},[d(c,{color:t.clickableColor(n),size:e.size},null,8,["color","size"])],40,O))),128))])],2)):e.variant==="giant"?(l(),s("div",V,[r("div",j,[r("span",{class:o(["font-bold text-foreground-1",[e.textSize]])},[m(i(t.formattedRating),1),e.showScale?(l(),s(u,{key:0},[m("/"+i(e.scale),1)],64)):g("",!0)],2)]),r("div",T,[r("div",A,[(l(!0),s(u,null,f(e.scale,n=>(l(),s("div",{key:n,class:"flex items-center relative"},[d(c,{color:e.starEmptyColor,size:e.size,class:"absolute inset-0"},null,8,["color","size"]),n<=Math.floor(t.convertedRating)?(l(),s("div",G,[d(c,{color:t.cssColor,size:e.size},null,8,["color","size"])])):t.isPartialStar(n)?(l(),s("div",{key:1,class:"relative overflow-hidden z-10",style:v({width:t.partialStarWidth})},[d(c,{color:t.cssColor,size:e.size},null,8,["color","size"])],4)):(l(),s("div",D,[d(c,{color:e.starEmptyColor,size:e.size},null,8,["color","size"])]))]))),128))]),e.text?(l(),s("span",{key:0,class:o(["text-xs md:text-sm font-regular leading-md",e.textColor])},i(t.textRating),3)):g("",!0)])])):e.variant==="giant-square"?(l(),s("div",I,[r("span",H,i(t.formattedRating)+"/5 ",1),r("div",J,[r("div",K,[(l(!0),s(u,null,f(e.scale,n=>(l(),s("div",{key:n,class:"flex items-center relative"},[d(c,{color:n<=Math.round(t.convertedRating)?t.cssColor:e.starEmptyColor,size:e.size,class:"absolute inset-0"},null,8,["color","size"]),n<=Math.floor(t.convertedRating)?(l(),s("div",Q,[d(c,{color:t.cssColor,size:e.size},null,8,["color","size"])])):t.isPartialStar(n)?(l(),s("div",{key:1,class:"relative overflow-hidden z-10",style:v({width:t.partialStarWidth})},[d(c,{color:t.cssColor,size:e.size},null,8,["color","size"])],4)):(l(),s("div",U,[d(c,{color:e.starEmptyColor,size:e.size},null,8,["color","size"])]))]))),128))]),e.text?(l(),s("span",{key:0,class:o(["text-xs md:text-sm font-regular leading-md",e.textColor])},i(t.textRating),3)):g("",!0)])])):e.variant==="game-review"?(l(),s("div",X,[r("div",{class:o(["flex gap-xs md:gap-sm items-center py-2xs px-xs md:p-xs rounded-md",t.cssBgColor])},[r("span",Y,i(t.formattedRating),1),e.text?(l(),s("span",Z,i(t.textRating),1)):g("",!0)],2)])):e.variant==="game-review-full"?(l(),s("div",p,[r("div",{class:o(["flex flex-col gap-sm items-center p-sm rounded-ui-md w-full justify-center",t.cssBgColor])},[x[1]||(x[1]=r("div",{class:"py-3xs px-xs background-glass font-bold rounded-sm text-foreground-1 text-xs"}," Expert rating ",-1)),r("span",$,i(t.formattedRating),1),e.text?(l(),s("span",ee,i(t.textRating),1)):g("",!0)],2)])):g("",!0)}const re=Object.assign(z(w,[["render",te],["__scopeId","data-v-f9541029"]]),{__name:"Rating"});export{re as default};

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.