1import{a as F}from"./chunk-TO2TJJHB.js";import{E as V,G as N}from"./chunk-4ZH7OCQT.js";import"./chunk-TYHNJDIL.js";import"./chunk-FPGJCOAR.js";import{Bb as H,Bc as C,Gc as M,Hb as I,Lb as P,Mb as b,Ob as w,Pa as s,Pb as y,Qa as O,Qb as D,Rb as _,Sb as r,Tb as l,Ua as a,Ub as p,Uc as L,Zb as S,_ as k,ea as v,ec as T,fa as h,gc as d,jb as E,qb as z,tc as u,uc as m,zb as R}from"./chunk-TU7EUU3B.js";import"./chunk-IMPBB4AK.js";var U=()=>[import("./chunk-L6WEBRFO.js").then(n=>n.NgClass)],j=n=>({overflowWrapper:n}),B=n=>({overflow_module:n});function Y(n,e){if(n&1&&(r(0,"span",10),p(1,"span",20),l()),n&2){let t=e.$implicit;a(),u(C("icon star rating_star_color ",t.type))}}function G(n,e){if(n&1){let t=S();r(0,"div",1)(1,"div",3),p(2,"img",4),l(),r(3,"div",5)(4,"div",6)(5,"div",7)(6,"div",8)(7,"div",9),y(8,Y,2,3,"span",10,w),l(),r(10,"div",11)(11,"div",12),m(12,"Our Rating"),l(),p(13,"div",13),r(14,"div",14),m(15,"Out of"),r(16,"span",15),m(17,"5"),l()()()()(),r(18,"div",16)(19,"a",17),T("click",function(){let g;v(t);let c=d(2);return h(c.openLink((g=c.appData())==null?null:g.ratingCtaLink))}),l()()(),p(20,"h1",18)(21,"p",19),l()()}if(n&2){let t,i,g,c,f,x,o=d(2);_("ngClass",M(6,B,((t=o.appData())==null?null:t.margin)==1)),a(2),_("src",o.utilityService.getFixedImagePath((i=o.appData())==null?null:i.ratingImg),O),a(6),D(o.stars),a(5),_("innerHTML",(g=o.appData())==null?null:g.ratingAverageRatingScore,s),a(6),_("innerHTML",(c=o.appData())==null?null:c.ratingCtaText,s),a(),_("innerHTML",(f=o.appData())==null?null:f.ratingGameName,s),a(),_("innerHTML",(x=o.appData())==null?null:x.ratingShortText,s)}}function K(n,e){if(n&1&&(r(0,"span",10),p(1,"span",20),l()),n&2){let t=e.$implicit;a(),u(C("icon star rating_star_color ",t.type))}}function W(n,e){if(n&1){let t=S();r(0,"div",2)(1,"div",21)(2,"div",22),p(3,"img",4),l(),r(4,"div",23)(5,"div",24)(6,"div",25)(7,"div",26),y(8,K,2,3,"span",10,w),l(),r(10,"div",27)(11,"div",28),m(12,"Our Rating"),l(),p(13,"div",29),r(14,"div",30),m(15,"Out of"),r(16,"span",15),m(17,"5"),l()()(),r(18,"div",31)(19,"a",32),T("click",function(){let g;v(t);let c=d(2);return h(c.openLink((g=c.appData())==null?null:g.ratingCtaLink))}),l()()(),r(20,"div",33),p(21,"h1",18),l(),r(22,"div",34),p(23,"p",19),l()()()()()}if(n&2){let t,i,g,c,f,x,o=d(2);_("ngClass",M(6,B,((t=o.appData())==null?null:t.margin)==1)),a(3),_("src",o.utilityService.getFixedImagePath((i=o.appData())==null?null:i.ratingImg),O),a(5),D(o.stars),a(5),_("innerHTML",(g=o.appData())==null?null:g.ratingAverageRatingScore,s),a(6),_("innerHTML",(c=o.appData())==null?null:c.ratingCtaText,s),a(2),_("innerHTML",(f=o.appData())==null?null:f.ratingGameName,s),a(2),_("innerHTML",(x=o.appData())==null?null:x.ratingShortText,s)}}function $(n,e){if(n&1&&(r(0,"div")(1,"div",0),P(2,G,22,8,"div",1),P(3,W,24,8,"div",2),l()()),n&2){let t,i=d();u(C("module_",i.id()," ")),a(),_("ngClass",M(6,j,((t=i.appData())==null?null:t.margin)==1)),a(),b(i.utilityService.getDevice()!==i.DEVICE_TYPE.DESKTOP?2:-1),a(),b(i.utilityService.getDevice()===i.DEVICE_TYPE.DESKTOP?3:-1)}}function q(n,e){n&1&&p(0,"div")}var A=class n{utilityService=k(V);appData=L(null);id=L("0");DEVICE_TYPE=N;stars=[];numberOfStars=5;ngOnInit(){if(this.appData()){let e,t,i;e=Math.abs(Number(this.appData()?.ratingAverageRatingScore)),e>this.numberOfStars&&(e=this.numberOfStars),e<0&&(e=0),t=Math.trunc(e),i=e-t;for(let g=0;g<this.numberOfStars;g++)t>0?(this.stars.push({type:"star"}),t=t-1):i>=.5?(this.stars.push({type:"star_half"}),i=0):this.stars.push({type:"star_border"})}}openLink(e){this.utilityService.manualNavigation(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=E({type:n,selectors:[["rating"]],inputs:{appData:[1,"appData"],id:[1,"id"]},decls:4,vars:0,consts:[[1,"rating_bg_color","module_wrapper",3,"ngClass"],[1,"rating_container_mobile",3,"ngClass"],[1,"rating_container",3,"ngClass"],[1,"rating_container_top_mobile"],["alt","Rating",3,"src"],[1,"rating_container_bottom_mobile"],[1,"rating_stars_container_mobile","rating_area_bg_color"],[1,"rating_stars_content_mobile"],[1,"rating_left_content_mobile"],[1,"rating_icons"],[1,"star-wrapper"],["itemprop","aggregateRating","itemscope","","itemtype","https://schema.org/AggregateRating",1,"rating_values"],[1,"rating_values_row2","our_rating","rating_label_color"],["itemprop","ratingValue",1,"rating_values_row1","rating_star_color",3,"innerHTML"],[1,"rating_values_row2","rating_label_color"],["itemprop","bestRating",1,"rating_label_color"],[1,"rating_button_mobile"],[1,"general_buttontwo","general_button_shadow",3,"click","innerHTML"],[1,"rating_h1",3,"innerHTML"],[1,"intro_text",3,"innerHTML"],["aria-hidden","false"],[1,"rating_inner_content"],[1,"leftBlock","rating_inner_content_left"],[1,"rightBlock","rating_inner_content_right"],[1,"rating_inner_content_rating"],[1,"rating_row1","rating_area_bg_color"],[1,"rating_col1"],["itemprop","aggregateRating","itemscope","","itemtype","https://schema.org/AggregateRating",1,"rating_col2"],[1,"rating_col2_row2","our_rating","rating_label_color"],["itemprop","ratingValue",1,"rating_col2_row1","rating_star_color",3,"innerHTML"],[1,"rating_col2_row2","rating_label_color"],[1,"rating_col3"],[1,"general_button_shadow","general_buttontwo",3,"click","innerHTML"],[1,"rating_row2"],[1,"rating_row3"]],template:function(t,i){t&1&&(z(0,$,4,8)(1,q,1,0),R(2,0,U,null,1),H(),I(0,-1))},dependencies:[F],styles:[`[_ngcontent-%COMP%]:root{--icon-size: 16px;--icon-color: #000}.module_wrapper[_ngcontent-%COMP%]{position:relative}.rating_container_mobile[_ngcontent-%COMP%]{display:inline-block}.rating_container_top_mobile[_ngcontent-%COMP%]{text-align:center}.rating_container_top_mobile[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;max-width:313px;max-height:208px;height:100%}
1.rating_container_bottom_mobile[_ngcontent-%COMP%]{margin-top:-70px}.rating_container_bottom_mobile[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:20px 13px 0 20px}.rating_container_bottom_mobile[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 20px 20px}.rating_stars_container_mobile[_ngcontent-%COMP%]{margin:0 13px;padding-top:55px;border-radius:3px}.rating_stars_content_mobile[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-bottom:8px}.rating_left_content_mobile[_ngcontent-%COMP%]{display:flex;flex-direction:row}.rating_icons[_ngcontent-%COMP%]{display:flex;align-items:center}.rating_icons[_ngcontent-%COMP%] .star-wrapper[_ngcontent-%COMP%]{margin-right:5px}.rating_icons[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]{font-size:35px;width:100%;height:100%}.rating_values[_ngcontent-%COMP%]{flex-direction:column;display:flex;margin-left:10px;text-align:center}.rating_values_row1[_ngcontent-%COMP%]{font-size:35px;font-weight:700;margin:0}.rating_values_row2[_ngcontent-%COMP%]{font-size:18px;margin:0 0 5px}.rating_values_row2[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:4px}.rating_button_mobile[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center}.rating_button_mobile[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:20px!important;text-decoration:none;font-style:normal;width:90%;height:45px;cursor:pointer;text-transform:uppercase;line-height:43px;margin-bottom:15px}.rating_container[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse;overflow-x:visible}.overflow_module[_ngcontent-%COMP%]{height:350px;position:relative}.rating_inner_content_rating[_ngcontent-%COMP%]{max-width:560px;margin-top:130px;margin-left:10px}.rating_row1[_ngcontent-%COMP%]{display:flex;justify-content:space-around;align-items:center;padding-top:11px;padding-bottom:11px}.rating_col3[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:20px!important;text-decoration:none;font-style:normal;width:186px;height:50px;cursor:pointer;justify-content:center;align-items:center;display:flex;text-transform:uppercase}.rating_col2[_ngcontent-%COMP%]{display:flex;flex-direction:column}.rating_col2_row1[_ngcontent-%COMP%]{font-size:41px;font-weight:700;margin:0}.rating_col2_row2[_ngcontent-%COMP%]{font-size:15px;margin:0 0 5px}.our_rating[_ngcontent-%COMP%]{margin:unset}.rating_col2_row2[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:4px}.rating_col1[_ngcontent-%COMP%]{display:flex;align-items:center}.rating_col1[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]{font-size:40px;width:100%;height:100%}.rating_row2[_ngcontent-%COMP%]{text-align:left;margin:7px 0}.rating_row3[_ngcontent-%COMP%]{text-align:left;margin:0}.rating_inner_content[_ngcontent-%COMP%]{margin:0 auto;text-align:center;position:relative;align-items:flex-start;display:flex}.rating_inner_content_left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;max-width:800px;max-height:533px;height:100%}.rating_inner_content_left[_ngcontent-%COMP%]{margin:10px 0;display:inline-block;font-weight:300;position:relative;animation:_ngcontent-%COMP%_fadeInUpLeft 2.5s ease-in-out 0s forwards}.rating_inner_content_right[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadeInUpRight 2.5s ease-in-out 0s forwards;position:relative}.rating_intro_text_line_height[_ngcontent-%COMP%]{font-weight:700}.icon[_ngcontent-%COMP%]{display:inline-block!important;vertical-align:middle;color:inherit;font-family:Arial,sans-serif}.icon[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:var(--icon-size, 16px);height:var(--icon-size, 16px);background-color:var(--icon-color, #000);mask-size:contain;mask-repeat:no-repeat;mask-position:center}.icon.star[_ngcontent-%COMP%]:before{mask-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3e%3c/svg%3e")}.icon.star_border[_ngcontent-%COMP%]:before{mask-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z'/%3e%3c/svg%3e")}.icon.star_half[_ngcontent-%COMP%]:before{mask-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z'/%3e%3c/svg%3e")}.star-wrapper[_ngcontent-%COMP%]{display:inline-block;position:relative}.star[_ngcontent-%COMP%]{display:inline-block!important;vertical-align:middle;margin:0 1px;transition:color .2s ease;position:relative;font-family:Arial,sans-serif}.star.star[_ngcontent-%COMP%]:before{background-color:#f1d91d}.star.star_border[_ngcontent-%COMP%]:before{background-color:#8080804d}.star.star_half[_ngcontent-%COMP%]:before{background-color:#f1d91d}.rating_icons[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]:before{width:35px;height:35px}.rating_col1[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]:before{width:40px;height:40px}@media (min-width: 1024px) and (max-width: 1350px){.rating_inner_content_left[_ngcontent-%COMP%]{margin-right:10px;margin-left:55px;margin-top:20px}.rating_inner_content_right[_ngcontent-%COMP%]{margin-right:35px}.rating_inner_content_rating[_ngcontent-%COMP%]{margin-right:5px;margin-left:10px}.rating_inner_content_left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:650px;max-height:433px}}@media (max-width: 768px){.module_wrapper.overflowWrapper[_ngcontent-%COMP%]{height:360px}.overflow_module[_ngcontent-%COMP%]{bottom:200px;margin-bottom:-200px;position:relative}.star[_ngcontent-%COMP%]{margin:0 .5px}}@keyframes _ngcontent-%COMP%_fadeInUpLeft{0%{opacity:0;transform:translate(-765px)}to{opacity:1;transform:translate(0)}}@keyframes _ngcontent-%COMP%_fadeInUpRight{0%{opacity:0;transform:translate(535px)}to{opacity:1;transform:translate(0)}}@media (max-width: 768px){[_ngcontent-%COMP%]:root{--icon-color: #666}}`],changeDetection:0})};export{A as RatingComponent};
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.