"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2598],{93216:function(o,t,e){e.d(t,{Rq:function(){return s},Ye:function(){return l},Yh:function(){return d},e9:function(){return n}});var n,r=e(67294),a=e(76043),i=function(o,t,e,n){return new(e||(e=Promise))((function(r,a){function i(o){try{s(n.next(o))}catch(o){a(o)}}function c(o){try{s(n.throw(o))}catch(o){a(o)}}function s(o){var t;o.done?r(o.value):(t=o.value,t instanceof e?t:new e((function(o){o(t)}))).then(i,c)}s((n=n.apply(o,t||[])).next())}))};!function(o){o[o.Icons=1]="Icons",o[o.Frames=2]="Frames",o[o.Shapes=3]="Shapes",o[o.Patterns=4]="Patterns"}(n||(n={}));const c=(()=>{let o=0;return t=>({id:o++,label:t,value:t})})(),s=a.P.map((o=>c(o)));function l(){return i(this,void 0,void 0,(function*(){return(yield fetch(`${window.location.origin}/api/logomaker/logos`,{method:"GET",headers:{"Content-Type":"application/json"}})).json()}))}function d(o){const[t,e]=(0,r.useState)([]);return(0,r.useEffect)((()=>{(()=>{i(this,void 0,void 0,(function*(){try{e(yield function(o){return i(this,void 0,void 0,(function*(){const t=yield fetch(`${window.location.origin}/api/logomaker/assets/${o}`,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.ok)return t.json()}))}(o))}catch(o){console.error(o)}}))})()}),[o]),function(o){return o.map(((o,t)=>({value:o,label:`${t}`,id:t})))}(t)}},75746:function(o,t,e){e.d(t,{c:function(){return l},Q:function(){return d}});var n=e(67294);function r(o,t){switch(t.type){case"updateField":if(t.payload.subfield){const e=o.configuration[t.payload.field],n="object"==typeof e?e:{};return Object.assign(Object.assign({},o),{configuration:Object.assign(Object.assign({},o.configuration),{[t.payload.field]:Object.assign(Object.assign({},n),{[t.payload.subfield]:t.payload.value})})})}return Object.assign(Object.assign({},o),{configuration:Object.assign(Object.assign({},o.configuration),{[t.payload.field]:t.payload.value})});case"loadFromStorage":return Object.assign(Object.assign({},o),{configuration:Object.assign({},t.payload),loaded:!0});default:return o}}const a=(o,t,e)=>n=>o({type:"updateField",payload:{field:t,subfield:e,value:n}});function i(o){return(0,n.useMemo)((()=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},function(o){return{onLogoChange:a(o,"logo","logo"),onLogoColorChange:a(o,"logo","color"),onLogoOpacityChange:a(o,"logo","opacity"),onLogoScaleChange:a(o,"logo","scale"),onLogoOutlineChange:a(o,"logo","outline"),onLogoCoordsUpdate:a(o,"logo","coords")}}(o)),function(o){return{onMainTextChange:a(o,"mainText","text"),onMainTextFontFamilyChange:a(o,"mainText","fontFamily"),onMainTextColorChange:a(o,"mainText","color"),onMainTextCurvatureChange:a(o,"mainText","curvature"),onMainTextFontSizeChange:a(o,"mainText","fontSize"),onMainTextOpacityChange:a(o,"mainText","opacity"),onMainTextRotationChange:a(o,"mainText","rotation"),onMainTextShadowChange:a(o,"mainText","shadow"),onMainTextOutlineChange:a(o,"mainText","outline"),onMainTextCoordsUpdate:a(o,"mainText","coords")}}(o)),function(o){return{onSloganTextChange:a(o,"sloganText","text"),onSloganTextFontFamilyChange:a(o,"sloganText","fontFamily"),onSloganTextColorChange:a(o,"sloganText","color"),onSloganTextCurvatureChange:a(o,"sloganText","curvature"),onSloganTextFontSizeChange:a(o,"sloganText","fontSize"),onSloganTextOpacityChange:a(o,"sloganText","opacity"),onSloganTextRotationChange:a(o,"sloganText","rotation"),onSloganTextShadowChange:a(o,"sloganText","shadow"),onSloganTextOutlineChange:a(o,"sloganText","outline"),onSloganTextPositionUpdate:a(o,"sloganText","coords")}}(o)),function(o){return{onShapeImageChange:a(o,"shapeImage","image"),onShapeImageColorChange:a(o,"shapeImage","color"),onShapeImageOpacityChange:a(o,"shapeImage","opacity"),onShapeImageScaleChange:a(o,"shapeImage","scale"),onShapeImageCoordsUpdate:a(o,"shapeImage","coords")}}(o)),function(o){return{onFrameChange:a(o,"frame","image"),onFrameColorChange:a(o,"frame","color"),onFrameOpacityChange:a(o,"frame","alpha"),onFrameScaleChange:a(o,"frame","scale"),onFrameCoordsUpdate:a(o,"frame","coords")}}(o)),function(o){return{onBackgroundColorToggle:a(o,"background","enableColor"),onBackgroundColorChange:a(o,"background","color"),onBackgroundOpacityChange:a(o,"background","colorOpacity"),onPatternChange:a(o,"background","pattern"),onPatternColorChange:a(o,"background","patternColor"),onPatternOpacityChange:a(o,"background","patternOpacity")}}(o))),[o])}const c="_logoMakerState",s=(0,e(54733).P2)((o=>{console.log("UPDATE STATE",o);const t=JSON.stringify(o);window.localStorage.setItem(c,t)}),1e3),l={mainText:{text:"Cyberpunk",coords:{position:{x:278.8720703125,y:313.8720703125},pivot:{x:122.2607421875,y:59.4384765625}},fontFamily:"Acme",color:"#FFFFFF",fontSize:"54"},sloganText:{coords:{position:{x:264.921875,y:378.2763671875},pivot:{x:75.7666015625,y:41.03515625}},text:"Gaming",fontFamily:"Aldrich"},background:{enableColor:!0,color:"#085663"},frame:{image:"https://cdn01.x-plarium.com/browser/content/portal/logomaker/testlogo/frame.png",scale:"50",color:"#FFFFFF"},logo:{logo:"https://cdn01.x-plarium.com/browser/content/portal/logomaker/category/abstract/01.svg",coords:{position:{x:279.1845703125,y:146.8505859375},pivot:{x:278.5693359375,y:206.2841796875}}},shapeImage:{image:"https://cdn01.x-plarium.com/browser/content/portal/logomaker/testlogo/shape.png",color:"#063244"}};function d(){const[o,t]=(0,n.useReducer)(r,{loaded:!1,configuration:{mainText:{},sloganText:{},background:{},frame:{},logo:{},shapeImage:{}}});return function(o){(0,n.useEffect)((()=>{try{const t=window.localStorage.getItem(c);if(t){const e=JSON.parse(t);return void o({type:"loadFromStorage",payload:e})}}catch(o){console.error("Failed to parse logoMakerState")}o({type:"loadFromStorage",payload:{background:{},logo:{logo:"https://cdn01.x-plarium.com/browser/content/portal/logomaker/category/robot/05.svg",opacity:"100",color:"",outline:{enable:!1,color:"",width:"1"},coords:{position:{x:247,y:140},pivot:{x:274,y:140}}},mainText:{text:"Name",fontFamily:"Acme",fontSize:"50",coords:{position:{x:240,y:291},pivot:{x:48,y:36}},color:"#7B64FF"},sloganText:{text:"Slogan",fontFamily:"Aldrich",fontSize:"32",coords:{position:{x:252,y:336},pivot:{x:56,y:25}},color:"#cecece"},frame:{color:"#fff",image:"https://cdn01.x-plarium.com/browser/content/portal/logomaker/testlogo/frame.png",coords:{position:{x:391,y:387},pivot:{x:634,y:628}},scale:"50",alpha:"100"},shapeImage:{image:"https://cdn01.x-plarium.com/browser/content/portal/logomaker/testlogo/shape.png",coords:{position:{x:353,y:132},pivot:{x:346,y:146}}}}})}),[])}(t),function(o){(0,n.useEffect)((()=>{o.loaded&&s(o.configuration)}),[o])}(o),[o,t,i(t)]}},76043:function(o,t,e){e.d(t,{P:function(){return n}});const n=["Acme","Aldrich","Alexandria","Alfa Slab One","Amatic SC","Arbutus","Audiowide","Barlow Semi Condensed","Bebas Neue","Bokor","Boogaloo","Bungee Inline","Bungee Shade","Cabin Sketch","Changa","Chewy","Comfortaa","Covered By Your Grace","Creepster","Dancing Script","Dangrek","Days One","Dhurjati","Exo 2","Fontdiner Swanky","Freckle Face","Galindo","Gloria Hallelujah","Iceberg","Indie Flower","Jolly Lodger","Kaushan Script","Kelly Slab","Kenia","Knewave","Lacquer","Lobster","Nabla","Nerko One","New Rocker","Nosifer","Orbitron","Passero One","Permanent Marker","Pirata One","Play","Press Start 2P","Racing Sans One","Righteous","Rubik Distressed","Rubik Wet Paint","Russo One","Saira Stencil One","Sancreek","Shadows Into Light","Shojumaru","Silkscreen","Syne Mono","Teko","Ubuntu","UnifrakturMaguntia","ZCOOL KuaiLe","Zen Dots"]},87500:function(o,t,e){e.d(t,{d:function(){return c}});var n=e(59244),r=e(57976),a=e(56070),i=e(48859);function c(o,t){let e={},c=()=>({}),s=()=>({});const l=new r.W20,d=new r.W20;let u;o.stage.addChild(l),o.stage.addChild(d);const g=new n.A(16711680);return f(t),{destroy:function(){o.stage.removeChild(l),o.stage.removeChild(d),l.destroy(!0),d.destroy(!0)},update:f};function f(t){const n=(0,i.C)(e,t);console.log("update bg changes:",n),e=t,n.forEach((t=>function(t){switch(t){case"enableColor":return function(){if(!e.enableColor)return p()}();case"color":return function(){const t=e.color;if(!t)return p();const n=new r.TCu;n.beginFill((0,a.O)(t)),n.drawRect(0,0,o.screen.width,o.screen.height),n.endFill(),l.addChild(n),c(),c=()=>{l.removeChild(n),n.destroy(!0)}}();case"colorOpacity":return function(){const o=parseInt(e.colorOpacity||"100");if(!o)throw new Error("Wrong scale value!");l.alpha=o}();case"pattern":return function(){const t=e.pattern;if(!t)return s(),void(s=()=>({}));const n=r.xEZ.from(t);u=r.jyi.from(n),u.width=o.screen.width,u.height=o.screen.height,d.addChild(u),s(),s=()=>{d.removeChild(u),n.destroy(),u.destroy(!0)}}();case"patternColor":return function(){const o=e.patternColor;o?(g.color=(0,a.O)(o),u.filters=[g]):u.filters=[]}();case"patternOpacity":return function(){const o=parseInt(e.patternOpacity||"100");if(!o)throw new Error("Wrong scale value!");u.alpha=o/100}()}}(t)))}function p(){c(),c=()=>({})}}},65295:function(o,t,e){e.d(t,{t:function(){return d}});var n=e(57976),r=e(59244),a=e(56070),i=e(48859),c=e(58749),s=e(10557),l=e(95590);function d(o,t,e){let d={},u=()=>{};const g=new r.A(16711680),f=new n.W20,p=(0,c.W)({app:o,container:f,imageUrl:d.image,onCoordsUpdate:e,anchor:{x:.5,y:.5},size:{width:o.screen.width,height:o.screen.height}});return f.addChild(p),o.stage.addChild(f),h(t),{destroy:function(){o.stage.removeChild(f),f.destroy(!0)},update:h};function h(o){const t=(0,i.C)(d,o||{});console.log("update frame changes:",t),d=o,t.forEach((o=>function(o){switch(o){case"image":return function(){const o=d.image;if(!o)return u(),void(u=()=>{});const t=n.xEZ.from(o);p.texture=t,u(),u=()=>{t.destroy(!0)}}();case"color":return function(){const o=d.color;o?(g.color=(0,a.O)(o),p.filters=[g]):p.filters=[]}();case"scale":return(0,l.i)(d.scale,p);case"alpha":return function(){const o=parseInt(d.alpha||"100");if(!o)throw new Error("Wrong scale value!");p.alpha=o/100}();case"coords":return(0,s.u)(d.coords,f)}}(o)))}}},74006:function(o,t,e){e.d(t,{y:function(){return u}});var n=e(57976),r=e(59244),a=e(1270),i=e(56070),c=e(48859),s=e(58749),l=e(10557),d=e(95590);function u(o,t,e){let u={},g=()=>({});const f=new r.A(16711680),p=new a.r(16711680,1,1),h=new n.W20,m=(0,s.W)({app:o,container:h,onCoordsUpdate:e,imageUrl:u.logo,anchor:{x:.5,y:0},scale:{x:.25,y:.25},position:{x:o.screen.width/2,y:140}});return h.addChild(m),o.stage.addChild(h),b(t),{update:b,destroy:function(){o.stage.removeChild(h),h.destroy(!0)}};function b(o){const t=(0,c.C)(u,o);console.log("update bg changes:",t),u=o,t.forEach((o=>function(o){switch(o){case"logo":return function(){const o=u.logo;if(!o)return g(),void(g=()=>({}));const t=n.xEZ.from(o);m.texture=t,g(),g=()=>{t.destroy(!0)}}();case"color":return function(){const o=u.color;o?(f.color=(0,i.O)(o),y()):y()}();case"opacity":return function(){const o=parseInt(u.opacity||"100");if(!o)throw new Error("Wrong scale value!");m.alpha=o/100}();case"scale":return(0,d.i)(u.scale,m);case"outline":return function(){if(u.outline&&u.outline.enable){const o=(0,i.O)(u.outline.color||"16711680"),t=parseInt(u.outline.width||"1",10);return p.color=o,p.thickness=t,void y()}y()}();case"coords":return(0,l.u)(u.coords,h)}}(o)))}function y(){const o=[];u.color&&o.push(f),u.outline&&u.outline.enable&&u.outline.color&&o.push(p),m.filters=o}}},89572:function(o,t,e){e.d(t,{A:function(){return d}});var n=e(57976),r=e(59244),a=e(56070),i=e(48859),c=e(58749),s=e(10557),l=e(95590);function d(o,t,e){let d={},u=()=>({});const g=new r.A(16711680),f=new n.W20,p=(0,c.W)({app:o,container:f,imageUrl:d.image,anchor:{x:.5,y:.5},scale:{x:.3,y:.3},onCoordsUpdate:e});return f.addChild(p),o.stage.addChild(f),h(t),{update:h,destroy:function(){o.stage.removeChild(f),f.destroy(!0)}};function h(o){const t=(0,i.C)(d,o);console.log("update bg changes:",t),d=o,t.forEach((o=>function(o){switch(o){case"image":return function(){const o=d.image;if(!o)return u(),void(u=()=>({}));const t=n.xEZ.from(o);p.texture=t,u(),u=()=>{t.destroy(!0)}}();case"color":return function(){const o=d.color;o?(g.color=(0,a.O)(o),p.filters=[g]):p.filters=[]}();case"opacity":return function(){const o=parseInt(d.opacity||"100");if(!o)throw new Error("Wrong scale value!");p.alpha=o/100}();case"scale":return(0,l.i)(d.scale,p);case"coords":return(0,s.u)(d.coords,f)}}(o)))}}},99873:function(o,t,e){e.d(t,{T:function(){return s}});var n=e(57976),r=e(48859),a=e(10557);const i="WindSong",c="#fc8d59";function s(o,t,e){let s={};const l=new n.Thl,d=new n.pn8({fontFamily:i,fill:c,fontSize:42,fontWeight:"bold",wordWrap:!1,breakWords:!1,padding:10}),u=new n.xvT("",d),g=[];for(let o=0;o<20;o++)g.push(new n.E9j(17.5*o,50*Math.abs(Math.cos((o-10)/10))));const f=new n.IE8(u.texture,g),p=new n.W20;o.stage.addChild(p),p.addChild(u);let h=()=>{p.removeChild(u)};return function(){function o(){const o=parseInt(s.opacity||"100");if(this.alpha=o/100,this.dragging=!1,!this.data)return;const t=this.data.getLocalPosition(this.parent);e({position:{x:t.x,y:t.y},pivot:{x:this.pivot.x,y:this.pivot.y}}),this.data=null}p.interactive=!0,p.buttonMode=!0,p.on("pointerdown",(function(o){this.data=o.data,this.alpha=.8;const t=this.data.getLocalPosition(this);this.pivot.set(t.x,t.y),this.position.set(this.data.global.x,this.data.global.y),this.dragging=!0})).on("pointerup",o).on("pointerupoutside",o).on("pointermove",(function(){if(this.dragging){const o=this.data.getLocalPosition(this.parent);this.position.set(o.x,o.y)}}))}(),m(t),{destroy:function(){o.stage.removeChild(p),f.destroy(!0),u.destroy(!0),p.destroy(!0)},update:m};function m(o){const t=(0,r.C)(s,o);s=o,t.forEach((o=>function(o){switch(o){case"text":return u.text=s.text||"",u.render(l),f.texture=u.texture,void b();case"fontFamily":return d.fontFamily=s.fontFamily||i,u.render(l),f.texture=u.texture,void b();case"color":return function(){const o=s.color||c;d.fill=o,u.render(l),f.texture=u.texture}();case"fontSize":return d.fontSize=s.fontSize?parseInt(s.fontSize):42,u.render(l),f.texture=u.texture,void b();case"curvature":return function(){if(!parseInt(s.curvature||"0"))return h(),p.addChild(u),void(h=()=>{p.removeChild(u)});h(),f.texture=u.texture,p.addChild(f),b(),h=()=>{p.removeChild(f),p.removeChild(u)}}();case"opacity":return function(){const o=parseInt(s.opacity||"100");if(!o)throw new Error("Wrong scale value!");p.alpha=o/100}();case"rotation":return function(){const o=parseInt(s.rotation||"0");p.rotation=(o=>o*(Math.PI/180))(o),b()}();case"shadow":return void(s.shadow&&(d.dropShadow=s.shadow.enable||!1,d.dropShadowAlpha=parseInt(s.shadow.alpha||"1"),d.dropShadowAngle=parseInt(s.shadow.y||"0"),d.dropShadowBlur=parseInt(s.shadow.blur||"0"),d.dropShadowColor=s.shadow.color||"",d.dropShadowDistance=parseInt(s.shadow.x||"0")));case"outline":return function(){if(!s.outline)return;if(!s.outline.enable)return d.stroke="",d.strokeThickness=0,u.render(l),void(f.texture=u.texture);const o=s.outline.stroke||16777215,t=parseInt(s.outline.strokeThickness||"1");d.stroke=o,d.strokeThickness=t,u.render(l),f.texture=u.texture}();case"coords":return(0,a.u)(s.coords,p)}}(o)))}function b(){var o;const t=parseInt(s.curvature||"0"),e=u.width/20;for(let n=0;n<20;n++)null===(o=g[n])||void 0===o||o.set(n*e,Math.abs(Math.cos((n-10)/10))*(2*t))}}},56070:function(o,t,e){function n(o){const t=o.replace("#","");if(3===t.length){const o=t.split("").map((o=>`${o}${o}`)).join("");return Number(`0x${o}`)}return Number(`0x${t}`)}e.d(t,{O:function(){return n}})},58749:function(o,t,e){e.d(t,{W:function(){return r}});var n=e(57976);function r(o){let{imageUrl:t,container:e,app:r,onCoordsUpdate:a=(()=>null),anchor:i={x:0,y:0},scale:c={x:0,y:0},position:s,size:l}=o;const d=n.xEZ.from(t||"#ffffff"),u=n.jyi.from(d);e.interactive=!0,e.buttonMode=!0,l&&l.width&&(u.width=l.width),l&&l.height&&(u.height=l.height),u.anchor.set(i.x,i.y),u.scale.set(c.x,c.y),console.log("sprite.scale",u.scale);const g=s||{x:r.screen.width/2,y:r.screen.height/2};function f(){if(this.dragging=!1,!this.data)return;const o=this.data.getLocalPosition(this.parent);a({position:{x:o.x,y:o.y},pivot:{x:this.pivot.x,y:this.pivot.y}}),this.data=null}return u.position.set(g.x,g.y),e.on("pointerdown",(function(o){if(this.data=o.data,!this.data)return;const t=this.data.getLocalPosition(this);this.pivot.set(t.x,t.y),this.position.set(this.data.global.x,this.data.global.y),this.dragging=!0})).on("pointerup",f).on("pointerupoutside",f).on("pointermove",(function(){if(this.dragging&&this.data){const o=this.data.getLocalPosition(this.parent);this.position.set(o.x,o.y)}})),u}},48859:function(o,t,e){e.d(t,{C:function(){return n}});const n=(o,t)=>[...new Set([...Object.keys(o),...Object.keys(t)])].reduce(((e,n)=>(o[n]!==t[n]&&e.push(n),e)),[])},10557:function(o,t,e){function n(o,t){if(!o)return;const e={x:o.position?o.position.x:0,y:o.position?o.position.y:0},n={x:o.pivot?o.pivot.x:0,y:o.pivot?o.pivot.y:0};t.position.set(e.x,e.y),t.pivot.set(n.x,n.y)}e.d(t,{u:function(){return n}})},95590:function(o,t,e){function n(o,t){const e=parseInt(o||"25");if(!e)throw new Error("Wrong scale value!");t.scale.set(e/100)}e.d(t,{i:function(){return n}})},2035:function(o,t,e){e.d(t,{i:function(){return a}});var n=e(67294),r=e(76043);function a(){const[o,t]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{new Promise((o=>{window.WebFontConfig={google:{families:r.P},active(){o()}},function(){var o;const t=window.document.createElement("script");t.src=("https:"===window.document.location.protocol?"https":"http")+"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js",t.type="text/javascript",t.async=!0;const e=window.document.getElementsByTagName("script")[0];null===(o=null==e?void 0:e.parentNode)||void 0===o||o.insertBefore(t,e)}()})).then((()=>t(!0)))}),[]),o}},29275:function(o,t,e){e.d(t,{o8:function(){return s},kF:function(){return c},OU:function(){return i}});const n="data-analytics-id",r="data-analytics-payload",a=[n,r];function i(o){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};console.info("[newPlAnalytics] raise",o,t);const e=Object.assign({event:`PP.${o}`},t);window.dataLayer&&window.dataLayer.push(e),window.newDataLayer=[e]}function c(o){return Object.keys(a).filter((t=>Object.prototype.hasOwnProperty.call(o,t))).reduce(((t,e)=>Object.assign(Object.assign({},t),{[e]:o[e]})),{})}function s(o){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{[n]:o,[r]:JSON.stringify(t)}}},8593:function(o,t,e){e.d(t,{A:function(){return s},k:function(){return c}});const n="data-analytics-id",r="data-analytics-position",a=[n,r],i={"menu.dropdown.button.logout.cancel":"profile_logout_cancel","menu.dropdown.button.logout.ok":"profile_logout_ok","header.profile.link":"auth_player_user_profile","header.profile.lastPlayedGame":"header_profile_dropdown_last_player_game","header.dropdown.profile.link":"dropdown_menu_player_user_profile","menu.dropdown.button.logout":"profile_logout",notification:"header_menu_notifications_notification_click","home.games.desktop.download":"home_games_desktop_download","desktop.app.downloadButton":"desktop_page_app_download_link"};function c(o){return a.filter((t=>Object.prototype.hasOwnProperty.call(o,t))).reduce(((t,e)=>Object.assign(Object.assign({},t),{[e]:o[e]})),{})}function s(o){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const e=i[o];if(!e)return{};const a={[n]:e};return t.position&&(a[r]=t.position),a}},59754:function(o,t,e){var n=e(67294),r=e(50308),a=e.n(r),i=e(8593),c=e(87804),s=e(32134),l=e(29275),d=e(22614),u=e(83627),g=e(58092),f=e(65514),p=e(28216);t.Z=(0,n.memo)((o=>{const t=(0,p.useSelector)(u.Bn),e=(0,f.T)(),r=n.useMemo((()=>Object.assign({className:"",isomorphic:!0,children:null,target:"",style:{}},o)),[o]),h=()=>{if(r.target)return r.target;const o=r.href&&(0,d.isExternalLink)(r.href);return t||o?"_blank":r.target};if(!r.href)return console.error(new Error("Error No href")),n.createElement("span",{className:r.className},n.createElement("span",{style:{display:"none"}},"Error No href"),r.children);const m=h(),b={};return m&&(b.target=m,b.rel="noopener noreferrer"),n.createElement("a",Object.assign({className:r.className,href:r.href,onClick:o=>{r.onClick&&r.onClick(o),r.isomorphic&&(o=>{const{href:n}=r;n&&(function(o,t){const e=t&&"_blank"===t,n=!function(o){return 0===o.button}(o);return o.defaultPrevented||function(o){return!!(o.metaKey||o.altKey||o.ctrlKey||o.shiftKey)}(o)||n||e}(o,h())||(o.preventDefault(),t?e((0,s.fy)()).then((()=>(0,g.pushState)(n))):(0,g.pushState)(n)))})(o)},onMouseEnter:r.onMouseEnter||a(),onMouseLeave:r.onMouseLeave||a(),title:r.title||"",rel:r.rel||""},b,{style:r.style},i.k(r),c.y(r),l.kF(r)),r.children)}))},65514:function(o,t,e){e.d(t,{T:function(){return r}});var n=e(28216);function r(){return(0,n.useDispatch)()}},87804:function(o,t,e){e.d(t,{A:function(){return i},y:function(){return a}});const n="data-qa-entity",r="data-qa-payload",a=o=>{if(!o[n])return{};const t={[n]:o[n]};return o[r]&&(t[r]=o[r]),t};function i(o,t){const e={[n]:o};try{t&&(e[r]=JSON.stringify(t))}catch(o){console.error(o)}return e}},96826:function(o,t,e){e.d(t,{Rp:function(){return d},ZP:function(){return l},zx:function(){return s}});var n=e(10586),r=e(94737),a=e(59754),i=e(57139);const c=o=>(0,n.iv)(["position:relative;display:inline-flex;justify-content:center;align-items:center;font-weight:600;line-height:1rem;letter-spacing:normal;color:#ffffff;text-align:center;border:none;border-radius:4px;transition:0.2s;cursor:pointer;box-shadow:0 15px 20px -10px rgba(0,0,0,0.3);&:disabled{cursor:not-allowed;}"," ",";"," "," "," "," "," "," "," "," "," &.game-header-details-button{margin-top:0.25rem;margin-bottom:0.5rem;}"," ",""],o.size===i.Ph.extraSmall&&(0,n.iv)(["min-height:1.5rem;font-size:0.75rem;line-height:1.5rem;font-weight:400;padding:0 1rem;min-width:6.5rem;"]),o.size===i.Ph.small&&(0,n.iv)(["min-width:110px;min-height:35px;padding:0 25px;font-size:16px;line-height:35px;"]),o.size===i.Ph.medium&&(0,n.iv)(["min-width:120px;min-height:40px;padding:0 25px;font-size:18px;line-height:40px;@media ","{min-width:5rem;min-height:35px;line-height:35px;padding:0 10px;font-size:16px;}"],r.Z.mobileOrTablet),o.size===i.Ph.large&&(0,n.iv)(["min-width:140px;min-height:50px;line-height:50px;padding:0 30px;font-size:20px;"]),o.color===i.Tt.default&&(0,n.iv)(["background-color:var(--bg-white);color:#1f7cdf;border-radius:6px;box-shadow:0 8px 10px -10px rgba(0,0,0,0.4);&.log-in-button{min-height:35px;min-width:0;padding:0 17px;font-size:15px;color:#1f7cdf;&:hover,&:active,&:disabled{color:#1f7cdf;}@media ","{padding:0 22px;}}&:hover,&:active,&:disabled{color:#1f7cdf;}&:hover{background-color:var(--button-default-hover);}&:active{background-color:var(--button-default-press);}&:disabled{background-color:var(--button-default-disablet);}"],r.Z.mobileOrTablet),o.color===i.Tt.dark&&(0,n.iv)(["background-color:#635c7c;background:linear-gradient(to bottom,#635c7c,#514b67 97%);&:hover{background-color:#6f6985;background:linear-gradient(to bottom,#6f6985,#635c7c 97%);}&:active{background-color:#635c7c;background:linear-gradient(to bottom,#635c7c,#514b67 97%);}&:disabled{background:#a9a6b5;}"]),o.color===i.Tt.primary&&(0,n.iv)(["background-color:#fa5400;background:linear-gradient(to bottom,#fa5400 -7%,#fa3e00 105%);&:hover{background-color:#ff681b;background:linear-gradient(to bottom,#ff681b -7%,#ff5118 104%);}&:active{background-color:#f04600;background:linear-gradient(to bottom,#f04600 -7%,#dd3700 101%);}&:disabled{background:#ffa582;}"]),o.color===i.Tt.secondary&&(0,n.iv)(["background-color:#5b8fe5;background:linear-gradient(to bottom,#5b8fe5,#4779cb 99%);&:hover{background-color:#619cff;background:linear-gradient(to bottom,#619cff,#558ce6);}&:active{background-color:#578adf;background:linear-gradient(to bottom,#578adf,#406cb5 99%);}&:disabled{background:#7daeff;}"]),o.color===i.Tt.defaultNormal&&(0,n.iv)(["background-color:#f0f0f0;color:#555557;&:hover{background-color:#f4f4f4;color:#555557;}&:active{background-color:#f4f4f4;color:#555557;}&:disabled{background:#d2d2d2;color:#555557;}"]),o.color===i.Tt.purple&&(0,n.iv)(["background-color:#7c4795;background:linear-gradient(to bottom,#7c4795,#5d2a7e 100%);&:hover{background-color:#8f61a4;background:linear-gradient(to bottom,#8f61a4,#744890 100%);}&:active{background-color:#6a3c7f;background:linear-gradient(to bottom,#6a3c7f,#4f246c 100%);}&:disabled{background-color:#bfa5cb;background:linear-gradient(to bottom,#bfa5cb,#ae94be 100%);}"]),o.fluid&&(0,n.iv)(["width:100%;padding:0;"]),o.isIcon&&(0,n.iv)(["padding:0 1.25rem 0 1rem;"]),o.isNoBoxShadow&&(0,n.iv)(["box-shadow:none;"])),s=n.ZP.button.withConfig({displayName:"Buttonstyled__Button",componentId:"sc-1rihoin-0"})([""," ",""],(o=>c(o)),(o=>o.isIcon&&(0,n.iv)(["margin-left:0.5rem;"]))),l=(0,n.ZP)(a.Z).withConfig({displayName:"Buttonstyled__ButtonLink",componentId:"sc-1rihoin-1"})(["",""],(o=>c(o))),d=n.ZP.i.withConfig({displayName:"Buttonstyled__IconContent",componentId:"sc-1rihoin-2"})(["display:flex;align-items:center;justify-content:center;margin-right:0.5rem;width:1rem;height:auto;& svg{width:100%;height:auto;}"])},57139:function(o,t,e){e.d(t,{Ph:function(){return i},Tt:function(){return a}});var n=e(67294),r=e(96826);const a={default:"default",defaultNormal:"defaultNormal",dark:"dark",primary:"primary",secondary:"secondary",purple:"purple"},i={extraSmall:"extraSmall",small:"small",medium:"medium",large:"large"};t.ZP=o=>{var{children:t,onClick:e,color:c=a.primary,size:s=i.medium}=o,l=function(o,t){var e={};for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&t.indexOf(n)<0&&(e[n]=o[n]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(o);r