1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78259,e=>{"use strict";var t=e.i(18050),a=e.i(71645),l=e.i(46932),i=e.i(86069),r=e.i(90344),s=e.i(56075),c=e.i(69530),o=e.i(66913),n=e.i(79851);e.s(["default",0,function({gameId:e,gameTitle:d,coverUrl:u,currentPrice:h,histMin:m=null,platform:_=null,compact:p=!1,className:f=""}){let v=(0,o.usePageLocale)(),{isActive:x,isPending:g,activateQuick:j,openModal:b,loggedIn:y}=(0,i.usePriceRadar)(),[k,N]=(0,a.useState)(!1),w=x(e,_),L=g(e,_),C=(0,a.useMemo)(()=>(0,n.buildPresets)(h,m),[h,m]),S=(0,a.useMemo)(()=>(0,n.presetById)(C,(0,n.recommendedPresetId)(C,h,m)),[C,h,m]);async function P(t){if(t.preventDefault(),t.stopPropagation(),!w&&!L&&!k&&!(h<=0)){N(!0);try{y?await j({gameId:e,gameTitle:d,coverUrl:u,targetPrice:S.targetPrice,platform:_,currentPrice:h,histMin:m,atlOnly:S.atlOnly??"atl"===S.id}):b({gameId:e,gameTitle:d,coverUrl:u??null,currentPrice:h,histMin:m,platform:_})}finally{N(!1)}}}return(0,t.jsxs)(l.motion.button,{type:"button",className:`pr-bell ${w?"active":""} ${L?"pending":""} ${p?"compact":""} ${f}`.trim(),onClick:P,disabled:k||h<=0||w,"aria-pressed":w,"aria-label":w?(0,c.t)("common_radar_active",v):L?(0,c.t)("common_radar_confirm_email_aria",v):(0,c.t)("common_radar_activate",v),whileTap:{scale:.94},title:w?(0,c.t)("common_radar_active",v):L?(0,c.t)("common_radar_check_email_title",v):S.atlOnly||"atl"===S.id?(0,c.t)("common_radar_atl_alert",v):(0,c.tf)("common_radar_target_price",v,{price:((e,t=r.DEFAULT_LOCALE)=>t===r.DEFAULT_LOCALE?"â¬"+e.toFixed(2).replace(".",","):(0,s.formatMoney)(e,t))(S.targetPrice,v)}),children:[(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:L?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,t.jsx)("path",{d:"M12 7v5l3 3"})]}):w?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M10.27 21a2 2 0 0 0 3.46 0"}),(0,t.jsx)("path",{d:"M3.26 15.33A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.67C19.41 13.96 18 12.5 18 8A6 6 0 0 0 6 8c0 4.5-1.41 5.96-2.74 7.33Z"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M10.27 21a2 2 0 0 0 3.46 0"}),(0,t.jsx)("path",{d:"M17 17H4a1 1 0 0 1-.74-1.67C4.59 13.96 6 12.5 6 8a6 6 0 0 1 .3-1.87"}),(0,t.jsx)("path",{d:"M8.7 3.7A6 6 0 0 1 18 8c0 2.02.28 3.54.7 4.71"}),(0,t.jsx)("path",{d:"m2 2 20 20"})]})}),!p&&(0,t.jsx)("span",{children:w?(0,c.t)("common_radar_active",v):L?(0,c.t)("common_radar_awaiting_email",v):"PriceRadar"})]})}])},69350,e=>{"use strict";var t=e.i(18050),a=e.i(71645),l=e.i(22016),i=e.i(92989),r=e.i(1028),s=e.i(90344),c=e.i(56075),o=e.i(69530),n=e.i(75588),d=e.i(66913);e.s(["default",0,function(){let e,u=(0,d.usePageLocale)(),h=(0,i.useRouter)(),[m,_]=(0,a.useState)(!1),[p,f]=(0,a.useState)(""),v=(0,r.useGameSearch)(),x=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=e=>{x.current?.contains(e.target)||_(!1)};return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[]);let g=e=>{f(e),v.cerca(e),_(!0)};return(0,t.jsxs)("div",{className:"cat-find",ref:x,children:[(0,t.jsx)("label",{htmlFor:"catalog-query",children:(0,o.t)("common_search_which_game",u)}),(0,t.jsxs)("div",{className:"cat-find__field",children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"m21 21-4.34-4.34"}),(0,t.jsx)("circle",{cx:"11",cy:"11",r:"8"})]}),(0,t.jsx)("input",{id:"catalog-query",type:"search",placeholder:(0,o.t)("common_search_placeholder",u),autoComplete:"off",value:p,onChange:e=>g(e.target.value),onFocus:()=>_(!0),onKeyDown:e=>{"Enter"===e.key&&(0,r.queryUtile)(p)&&h.push((0,s.buildLocalizedPath)(`/catalogo?q=${encodeURIComponent(p.trim())}`,u)),"ArrowDown"===e.key&&(e.preventDefault(),v.muoviEvidenziato("giu")),"ArrowUp"===e.key&&(e.preventDefault(),v.muoviEvidenziato("su")),"Escape"===e.key&&_(!1)}}),p&&(0,t.jsx)("button",{type:"button",className:"cat-find__clear","aria-label":(0,o.t)("common_clear_search",u),onClick:()=>{g(""),_(!1)},children:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M18 6 6 18"}),(0,t.jsx)("path",{d:"m6 6 12 12"})]})})]}),(0,t.jsx)("p",{children:(0,n.tNode)("common_search_hint",u,{ctrl:(0,t.jsx)("kbd",{children:"Ctrl"}),k:(0,t.jsx)("kbd",{children:"K"})})}),m&&(0,r.queryUtile)(p)&&(0,t.jsx)("div",{className:"cat-find__results",role:"listbox",children:v.loading&&0===v.results.length?(0,t.jsx)("p",{className:"cat-find__empty",children:(0,o.t)("common_searching",u)}):0===v.results.length?(0,t.jsx)("p",{className:"cat-find__empty",children:(0,o.tf)("common_no_games_found_for",u,{query:p})}):(0,t.jsxs)(t.Fragment,{children:[v.results.map((e,a)=>{let i=(0,r.minPrice)(e.best);return(0,t.jsxs)(l.default,{href:(0,s.buildLocalizedPath)((0,r.hrefGioco)(e.id),u),className:"cat-find__row","data-hi":a===v.highlight,children:[e.cover_url&&(0,t.jsx)("img",{src:e.cover_url,alt:"",loading:"lazy"}),(0,t.jsxs)("span",{className:"cat-find__row-tx",children:[(0,t.jsx)("span",{className:"cat-find__row-t",children:e.title}),(0,t.jsx)("span",{className:"cat-find__row-m",children:null!=i?0===i?(0,o.t)("free",u):(0,o.tf)("common_from_price_val",u,{price:u===s.DEFAULT_LOCALE?`â¬${i.toFixed(2).replace(".",",")}`:(0,c.formatMoney)(i,u)}):(0,o.t)("common_price_not_available",u)})]})]},e.id)}),(e=(0,s.buildLocalizedPath)(`/catalogo?q=${encodeURIComponent(p.trim())}`,u),(0,t.jsx)(l.default,{href:e,className:"cat-find__more",children:(0,o.tf)("common_see_all_results_for",u,{query:p})}))]})})]})}])},98790,e=>{"use strict";var t=e.i(18050),a=e.i(71645),l=e.i(92989),i=e.i(22016),r=e.i(79396),s=e.i(69350),c=e.i(90344),o=e.i(69530);function n({pagina:e,pagine:a,hrefPagina:l,locale:r=c.DEFAULT_LOCALE}){return a<=1?null:(0,t.jsxs)("nav",{"aria-label":(0,o.t)("common_pagination_catalog",r),className:"cat-shell cat-pages",children:[e>1&&(0,t.jsx)(i.default,{href:l(e-1),rel:"prev",children:(0,o.t)("common_pagination_prev",r)}),(function(e,t){let a=new Set([1,t]);for(let l=e-2;l<=e+2;l++)l>=1&&l<=t&&a.add(l);let l=[...a].sort((e,t)=>
1e-t),i=[],r=0;for(let e of l)e-r>1&&i.push("gap"),i.push(e),r=e;return i})(e,a).map((a,r)=>"gap"===a?(0,t.jsx)("span",{children:"â¦"},`gap-${r}`):(0,t.jsx)(i.default,{href:l(a),"aria-current":a===e?"page":void 0,children:a},a)),e<a&&(0,t.jsx)(i.default,{href:l(e+1),rel:"next",className:"cat-pages__next",children:(0,o.t)("common_pagination_next",r)})]})}var d=e.i(40595);let u=[{value:"Action",etichetta:"Azione"},{value:"Fantasy",etichetta:"Fantasy"},{value:"Science fiction",etichetta:"Fantascienza"},{value:"Horror",etichetta:"Horror"},{value:"Thriller",etichetta:"Thriller"},{value:"Survival",etichetta:"Sopravvivenza"},{value:"Historical",etichetta:"Storico"},{value:"Stealth",etichetta:"Stealth"},{value:"Comedy",etichetta:"Commedia"},{value:"Drama",etichetta:"Drammatico"},{value:"Mystery",etichetta:"Mistero"},{value:"Romance",etichetta:"Romantico"},{value:"Warfare",etichetta:"Guerra"},{value:"Open world",etichetta:"Open world"},{value:"Sandbox",etichetta:"Sandbox"},{value:"Kids",etichetta:"Bambini"},{value:"Party",etichetta:"Party"},{value:"Educational",etichetta:"Educativo"},{value:"Business",etichetta:"Business"},{value:"Non-fiction",etichetta:"Non-fiction"}],h={Action:"theme_action",Fantasy:"theme_fantasy","Science fiction":"theme_science_fiction",Horror:"theme_horror",Thriller:"theme_thriller",Survival:"theme_survival",Historical:"theme_historical",Stealth:"theme_stealth",Comedy:"theme_comedy",Drama:"theme_drama",Mystery:"theme_mystery",Romance:"theme_romance",Warfare:"theme_warfare","Open world":"theme_open_world",Sandbox:"theme_sandbox",Kids:"theme_kids",Party:"theme_party",Educational:"theme_educational",Business:"theme_business","Non-fiction":"theme_non_fiction"};function m(e,t){if(t===c.DEFAULT_LOCALE)return u.find(t=>t.value===e)?.etichetta??e;let a=h[e];return a?(0,o.t)(a,t):e}let _=[{value:"pc",label:"PC"},{value:"ps5",label:"PS5"},{value:"ps4",label:"PS4"},{value:"xbox",label:"Xbox"},{value:"switch",label:"Switch"},{value:"switch2",label:"Switch 2"}],p=[{value:"sotto-5",label:"Sotto â¬5",max:4.99},{value:"5-10",label:"â¬5 â â¬10",min:5,max:9.99},{value:"10-20",label:"â¬10 â â¬20",min:10,max:19.99},{value:"20-40",label:"â¬20 â â¬40",min:20,max:39.99},{value:"oltre-40",label:"Oltre â¬40",min:40}];function f(e,t){switch(e){case"sotto-5":return(0,o.t)("cat_price_under_5",t);case"5-10":return(0,o.t)("cat_price_5_10",t);case"10-20":return(0,o.t)("cat_price_10_20",t);case"20-40":return(0,o.t)("cat_price_20_40",t);case"oltre-40":return(0,o.t)("cat_price_over_40",t);default:return e}}let v=[{value:"popular",label:"Più popolari"},{value:"discount",label:"Sconto maggiore"},{value:"price_asc",label:"Prezzo più basso"},{value:"price_desc",label:"Prezzo più alto"},{value:"title",label:"Titolo AâZ"}],x=[{value:"official",label:"Store ufficiale"},{value:"key",label:"Key shop"}];function g(e,t){return"official"===e?(0,o.t)("cat_store_official",t):(0,o.t)("cat_store_key",t)}function j(e,t=c.DEFAULT_LOCALE){let a=new URLSearchParams;e.q&&a.set("q",e.q),e.platforms.length&&a.set("platform",e.platforms.join(",")),e.genres.length&&a.set("genre",e.genres.join("|")),e.themes.length&&a.set("theme",e.themes.join("|")),e.prezzo&&a.set("prezzo",e.prezzo),e.store&&a.set("store",e.store),e.sconto&&a.set("sconto","1"),"popular"!==e.sort&&a.set("sort",e.sort),e.page>1&&a.set("page",String(e.page));let l=a.toString();return(0,c.buildLocalizedPath)(l?`/catalogo?${l}`:"/catalogo",t)}var b=e.i(66913),y=e.i(75588);let k=(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h10M18 7h2M4 17h4M12 17h8"}),(0,t.jsx)("circle",{cx:"16",cy:"7",r:"2"}),(0,t.jsx)("circle",{cx:"10",cy:"17",r:"2"})]}),N=(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})}),w=(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m5 12 5 5L20 7"})});function L({titolo:e,attivi:a,aperto:l=!0,children:i}){return(0,t.jsxs)("details",{className:"c2-group",open:l||a>0,children:[(0,t.jsxs)("summary",{children:[e,(0,t.jsx)("small",{children:a>0?a:""})]}),i]})}function C({tipo:e,nome:l,voci:i,scelti:r,onCambia:s,primeVisibili:c,locale:n}){let[d,u]=(0,a.useState)(!1),h=null!=c&&!d;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("ul",{className:"c2-opts",children:i.map((a,i)=>{let o=r.includes(a.value);return h&&i>=c&&!o?null:(0,t.jsx)("li",{children:(0,t.jsxs)("label",{className:"c2-opt",children:[(0,t.jsx)("input",{type:e,name:l,value:a.value,checked:o,onChange:e=>s(a.value,e.target.checked)}),(0,t.jsx)("span",{children:a.label})]})},a.value||"tutte")})}),null!=c&&i.length>c&&(0,t.jsx)("button",{type:"button",className:"c2-more-opts","aria-expanded":d,onClick:()=>u(!d),children:d?(0,o.t)("cat_show_less",n):(0,o.tf)("cat_show_all",n,{count:i.length})})]})}e.s(["default",0,function({games:e,totale:h,pagina:S,pagine:P,stato:z,heroTitle:E,heroLede
1:M}){let A=(0,b.usePageLocale)(),$=(0,l.useRouter)(),[O,F]=(0,a.useTransition)(),[U,T]=(0,a.useState)(z),R=j(z,A);(0,a.useEffect)(()=>{T(z)},[R]);let[B,D]=(0,a.useState)([]),[I,q]=(0,a.useState)(S),[W,G]=(0,a.useState)(!1),[H,K]=(0,a.useState)(!1);(0,a.useEffect)(()=>{D([]),q(S),K(!1)},[R,S]);let[X,V]=(0,a.useState)(!0),[Z,J]=(0,a.useState)(!1),Q=(0,a.useRef)(null),Y=(0,a.useRef)(null),ee=e=>{let t={...e,page:1};T(t),F(()=>$.push(j(t,A),{scroll:!1}))},et=(e,t,a)=>a?[...e,t]:e.filter(e=>e!==t);(0,a.useEffect)(()=>{let e=document.querySelector("header.rynko-nav");if(!e)return;let t=()=>document.documentElement.style.setProperty("--nav-h",`${e.offsetHeight}px`);t();let a=new ResizeObserver(t);return a.observe(e),()=>a.disconnect()},[]),(0,a.useEffect)(()=>{if(!Z)return;Q.current?.focus(),document.documentElement.style.overflow="hidden";let e=e=>{"Escape"===e.key&&J(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),document.documentElement.style.overflow="",Y.current?.focus()}},[Z]);let ea=async()=>{G(!0),K(!1);try{let e=j({...z,page:I+1},A).replace((0,c.buildLocalizedPath)("/catalogo",A),"/catalogo/altri"),t=await fetch(e.includes("?")?e:`${e}?page=${I+1}`);if(!t.ok)throw Error(String(t.status));let a=await t.json();D(e=>[...e,...a.items]),q(e=>e+1)}catch{K(!0)}finally{G(!1)}},el=[...e,...B],ei=(S-1)*48+el.length,er=U.platforms.length+U.genres.length+U.themes.length+ +!!U.prezzo+ +!!U.store+ +!!U.sconto,es=[...U.platforms.map(e=>({label:_.find(t=>t.value===e)?.label??e,togli:{...U,platforms:U.platforms.filter(t=>t!==e)}})),...U.prezzo?[{label:f(U.prezzo,A),togli:{...U,prezzo:void 0}}]:[],...U.sconto?[{label:(0,o.t)("cat_on_sale",A),togli:{...U,sconto:!1}}]:[],...U.store?[{label:g(U.store,A),togli:{...U,store:void 0}}]:[],...U.genres.map(e=>({label:(0,d.etichettaGenereIn)(e,A)||e,togli:{...U,genres:U.genres.filter(t=>t!==e)}})),...U.themes.map(e=>({label:m(e,A)||e,togli:{...U,themes:U.themes.filter(t=>t!==e)}}))],ec=()=>ee({...U,platforms:[],genres:[],themes:[],prezzo:void 0,store:void 0,sconto:!1});return(0,t.jsxs)("div",{className:"c2",children:[(0,t.jsxs)("section",{className:"cat-shell c2-head","aria-labelledby":"catalog-title",children:[(0,t.jsxs)("ol",{className:"c2-crumbs",children:[(0,t.jsx)("li",{children:(0,t.jsx)(i.default,{href:(0,c.buildLocalizedPath)("/",A),children:(0,o.t)("cat_breadcrumb_home",A)})}),(0,t.jsx)("li",{"aria-current":"page",children:(0,o.t)("cat_breadcrumb_catalog",A)})]}),(0,t.jsxs)("div",{className:"c2-head__row",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{id:"catalog-title",children:E}),(0,t.jsx)("p",{className:"c2-lede",children:M})]}),(0,t.jsx)(s.default,{})]}),(0,t.jsxs)("ul",{className:"c2-trust","aria-label":(0,o.t)("cat_how_it_works",A),children:[(0,t.jsxs)("li",{children:[w,(0,o.t)("cat_trust_shop",A)]}),(0,t.jsxs)("li",{children:[w,(0,o.t)("cat_trust_compare",A)]}),(0,t.jsxs)("li",{children:[w,(0,o.t)("cat_trust_radar",A)]})]})]}),(0,t.jsx)("div",{className:"c2-bar",children:(0,t.jsxs)("div",{className:"cat-shell c2-bar__in",children:[(0,t.jsxs)("button",{type:"button",className:"c2-toggle","aria-expanded":X,"aria-controls":"c2-side",onClick:()=>V(!X),children:[k,(0,t.jsx)("span",{children:X?(0,o.t)("cat_filter_hide",A):(0,o.t)("cat_filter_show",A)})]}),(0,t.jsxs)("button",{ref:Y,type:"button",className:"c2-mfilter","aria-expanded":Z,"aria-controls":"c2-side",onClick:()=>J(!0),children:[k,(0,o.t)("cat_filter_title",A),er>0&&(0,t.jsx)("b",{children:er})]}),(0,t.jsxs)("div",{className:"c2-status","aria-live":"polite",children:[(0,t.jsxs)("p",{className:"c2-count",children:[(0,t.jsx)("b",{children:h.toLocaleString(A)})," ",(0,o.t)("cat_count_games",A).replace("{count}","").trim()]}),es.map(e=>(0,t.jsxs)("button",{type:"button",className:"c2-chip","aria-label":(0,o.tf)("cat_filter_remove",A,{label:e.label}),onClick:()=>ee(e.togli),children:[(0,t.jsx)("span",{children:e.label}),N]},`${e.label}`)),es.length>0&&(0,t.jsx)("button",{type:"button",className:"c2-clear",onClick:ec,children:(0,o.t)("cat_filter_clear_all",A)})]}),(0,t.jsxs)("label",{className:"c2-sort",children:[(0,t.jsx)("span",{children:(0,o.t)("cat_sort_by",A)}),(0,t.jsx)("select",{"aria-label":(0,o.t)("cat_sort_by",A),value:U.sort,onChange:e=>ee({...U,sort:e.target.value}),children:v.map(e=>(0,t.jsx)("option",{value:e.value,children:function(e,t){switch(e){case"popular":return(0,o.t)("cat_sort_popular",t);case"discount":return(0,o.t)("cat_sort_discount",t);case"price_asc":return(0,o.t)("cat_sort_price_asc",t);case"price_desc":return(0,o.t)("cat_sort_price_desc",t);case"title":return(0,o.t)("cat_sort_title",t);default:return e}}(e.value,A)},e.value))})]})]})}),(0,t.jsxs)("div",{className:"cat-shell c2-body","data-side":X?"open":"closed",children:[(0,t.jsxs)("aside",{className:"c2-side",id:"c2-side","aria-label":(0,o.t)("cat_filter_title",A),"data-open":Z?"":void 0,role:Z?"dialog":void 0,"aria-modal":!!Z||void 0,children:[(0,t.jsxs)("div",{className:"c2-side__head",children:[(0,t.jsx)("h2",{children:(0,o.t)("cat_filter_title",A)}),(0,t.jsx)("button",{ref:Q,type:"button",className:"c2-side__close","aria-label":(0,o.t)("cat_filter_close",A),onClick:()=>J(!1),children:N})]}),(0,t.jsx)(L,{titolo:(0,o.t)("cat_filter_platform",A),attivi:U.platforms.length,children:(0,t.jsx)(C,{tipo:"checkbox",nome:"platform",voci:_,scelti:U.platforms,locale:A,onCambia:(e,t)=>ee({...U,platforms:et(U.platforms,e,t)})})}),(0,t.jsx)(L,{titolo:(0,o.t)("cat_filter_price",A),attivi:+!!U.prezzo,children:(0,t.jsx)(C,{tipo:"radio",nome:"prezzo",voci:[{value:"",label:(0,o.t)("cat_price_any",A)},...p.map(e=>({value:e.value,label:f(e.value,A)}))],scelti:[U.prezzo??""],locale:A,onCambia:e=>ee({...U,prezzo:e||void 0})})}),(0,t.jsx)(L,{titolo:(0,o.t)("cat_filter_deals",A),attivi:+!!U.sconto,children:(0,t.jsxs)("label",{className:"c2-switch",children:[(0,t.jsx)("span",{children:(0,o.t)("cat_filter_only_on_sale",A)}),(0,t.jsx)("input",{type:"checkbox",checked:U.sconto,onChange:e=>ee({...U,sconto:e.target.checked})})]})}),(0,t.jsx)(L,{titolo:(0,o.t)("cat_filter_store_type",A),attivi:+!!U.store,children:(0,t.jsx)(C,{tipo:"radio",nome:"store",voci:[{value:"",label:(0,o.t)("cat_store_all",A)},...x.map(e=>({value:e.value,label:g(e.value,A)}))],scelti:[U.store??""],locale:A,onCambia:e=>ee({...U,store:e||void 0})})}),(0,t.jsx)(L,{titolo:(0,o.t)("cat_filter_genre",A),attivi:U.genres.length,children:(0,t.jsx)(C,{tipo:"checkbox",nome:"genre",primeVisibili:6,voci:d.GENERI.map(e=>({value:e.value,label:(0,d.etichettaGenereIn)(e.value,A)||e.etichetta})),scelti:U.genres,locale:A,onCambia:(e,t)=>ee({...U,genres:et(U.genres,e,t)})})}),(0,t.jsx)(L,{titolo:(0,o.t)("cat_filter_theme",A),attivi:U.themes.length,aperto:!1,children:(0,t.jsx)(C,{tipo:"checkbox",nome:"theme",primeVisibili:6,voci:u.map(e=>({value:e.value,label:m(e.value,A)||e.etichetta})),scelti:U.themes,locale:A,onCambia:(e,t)=>ee({...U,themes:et(U.themes,e,t)})})}),(0,t.jsxs)("div",{className:"c2-side__foot",children:[(0,t.jsx)("button",{type:"button",className:"c2-clear",onClick:ec,children:(0,o.t)("cat_filter_clear",A)}),(0,t.jsx)("button",{type:"button",className:"c2-more__btn",onClick:()=>J(!1),children:O?(0,o.t)("cat_filter_updating",A):(0,o.tf)("cat_filter_show_count",A,{count:h.toLocaleStr
1ing(A)})})]})]}),(0,t.jsxs)("section",{className:"c2-results","aria-label":(0,o.t)("cat_results_label",A),"aria-busy":O,children:[el.length>0?(0,t.jsx)("ol",{className:"c2-grid","data-busy":O?"":void 0,children:el.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{game:e,cambiaPiattaforma:!0})},e.id))}):(0,t.jsxs)("div",{className:"c2-empty",children:[(0,t.jsx)("h2",{children:(0,o.t)("cat_empty_title",A)}),(0,t.jsx)("p",{children:(0,o.t)("cat_empty_desc",A)}),er>0&&(0,t.jsx)("button",{type:"button",className:"c2-more__btn",onClick:ec,children:(0,o.t)("cat_filter_clear_filters",A)})]}),el.length>0&&(0,t.jsxs)("div",{className:"c2-more",children:[(0,t.jsx)("p",{children:(0,y.tNode)("cat_progress_seen",A,{seen:Math.min(ei,h).toLocaleString(A),total:h.toLocaleString(A)})}),(0,t.jsx)("div",{className:"c2-progress","aria-hidden":"true",children:(0,t.jsx)("i",{style:{width:`${Math.max(1,Math.min(100,ei/Math.max(1,h)*100))}%`}})}),I<P&&(0,t.jsx)("button",{type:"button",className:"c2-more__btn",onClick:ea,disabled:W,children:W?(0,o.t)("cat_more_loading",A):(0,o.t)("cat_more_btn",A)}),H&&(0,t.jsx)("p",{role:"alert",children:(0,o.t)("cat_more_err",A)}),(0,t.jsx)(n,{pagina:S,pagine:P,hrefPagina:e=>j({...z,page:e},A),locale:A})]})]})]})]})}],98790)},79396,91805,e=>{"use strict";var t=e.i(18050),a=e.i(71645),l=e.i(22016),i=e.i(27235),r=e.i(48511),s=e.i(78259),c=e.i(69530),o=e.i(90344),n=e.i(66913),d=o,u=e.i(56075);function h(e){let t=Object.values(e);return t.length?Math.min(...t.map(e=>e.price)):null}function m(e){let t=Object.values(e);return t.length?Math.max(...t.map(e=>e.discount_pct??0)):0}let _=(e,t=d.DEFAULT_LOCALE)=>t===d.DEFAULT_LOCALE?"⬠"+e.toFixed(2).replace(".",","):(0,u.formatMoney)(e,t),p={pc:"PC",ps5:"PS5",ps4:"PS4",xbox:"XBX",switch:"NS",switch2:"NS2"},f=e=>p[e]??e.toUpperCase();e.s(["MAX_PRICE_OPTIONS",0,[5,10,20,30,60],"applica",0,function(e,t,a,l,i){let r=e.filter(e=>{let i=Object.values(e.best);return!(0===i.length||"official"===t&&!i.some(e=>"official"===e.sale_type)||"key"===t&&!i.some(e=>"key"===e.sale_type)||a&&!i.some(e=>(e.discount_pct??0)>0)||l>0&&Math.min(...i.map(e=>e.price))>l)&&!0});return"discount"===i&&(r=[...r].sort((e,t)=>m(t.best)-m(e.best))),"price_asc"===i&&(r=[...r].sort((e,t)=>(h(e.best)??999)-(h(t.best)??999))),"price_desc"===i&&(r=[...r].sort((e,t)=>(h(t.best)??0)-(h(e.best)??0))),"title"===i&&(r=[...r].sort((e,t)=>e.title.localeCompare(t.title,"it"))),r},"etichettaPiattaforma",0,f,"eur",0,_,"offertaMigliore",0,function(e){return Object.values(e).sort((e,t)=>e.price-t.price)[0]??null},"scontoMassimo",0,m],91805);var v=e.i(89664),x=e.i(57657),g=e.i(79885),j=e.i(58236);e.s(["default",0,function({game:e,activePlatform:d,cambiaPiattaforma:u=!1,nota:h}){let m=(0,n.usePageLocale)(),[p,b]=(0,a.useState)(null),y=(0,j.cardBadge)((0,g.useGameIndex)(),e.id),k=Object.entries(e.best);if(0===k.length)return null;let[N]=k.reduce((e,t)=>t[1].price<=e[1].price?t:e),w=u&&p&&e.best[p]?p:N,L=e.best[w],C=(L.discount_pct??0)>=10,S=u?w:d&&e.platforms.includes(d)?d:e.platforms[0]??w,P=u?k.slice().sort((e,t)=>e[1].price-t[1].price).map(([e])=>e).slice(0,4):e.platforms.slice(0,4);return(0,t.jsxs)("article",{className:"gc gc--light","data-morph":"game","data-title":e.title,"data-cover":e.cover_url??void 0,children:[(0,t.jsxs)("div",{className:"gc__cover",children:[(0,t.jsx)(l.default,{href:(0,o.buildLocalizedPath)(`/game/${e.id}`,m),"aria-label":(0,c.tf)("common_open_game_aria",m,{title:e.title}),children:(0,t.jsx)(i.default,{title:e.title,coverUrl:e.cover_url,platform:S,gameId:e.id,size:"card"})}),(0,t.jsx)("div",{className:"gc__save",children:(0,t.jsx)(r.default,{gameId:e.id,compact:!0})}),L.price>0&&(0,t.jsx)("div",{className:"gc__radar",children:(0,t.jsx)(s.default,{compact:!0,gameId:e.id,gameTitle:e.title,coverUrl:e.cover_url,currentPrice:L.price,platform:w})}),y&&(0,t.jsxs)("span",{className:`gc__mine gc__mine--${y.kind}`,children:["owned"===y.kind?(0,t.jsx)(v.Check,{"aria-hidden":"true"}):(0,t.jsx)(x.Ticket,{"aria-hidden":"true"}),"owned"===y.kind?(0,c.t)("card_badge_owned",m):(0,c.tf)("card_badge_in_your_sub",m,{service:j.SERVICE_LABEL[y.service]})]})]}),(0,t.jsxs)("div",{className:"gc__panel",children:[(0,t.jsx)("h3",{className:"gc__title",title:e.title,children:(0,t.jsx)(l.default,{href:(0,o.buildLocalizedPath)(`/game/${e.id}`,m),children:e.title})}),(0,t.jsx)("div",{className:"gc__plats",children:P.map(a=>{let l=e.best[a],i=l&&(l.discount_pct??0)>=1?`â${l.discount_pct}%`:void 0;return u?(0,t.jsx)("button",{type:"button",className:`gc__plat${a===w?" is-active":""}`,"aria-pressed":a===w,"aria-label":(0,c.tf)("common_price_for_platform",m,{platform:f(a)}),onClick:()=>b(a),"data-platform-key":a,children:f(a)},a):(0,t.jsx)("span",{className:`gc__plat${a===w?" is-active":""}`,"data-platform-key":a,"data-now":l?0===l.price?(0,c.t)("common_free_badge",m):_(l.price,m):void 0,"data-was":l&&null!=l.msrp&&l.msrp>l.price?_(l.msrp,m):void 0,"data-off":i,"data-store":l?.store,"data-kind":l?"official"===l.sale_type?(0,c.t)("common_official_store",m):"key"===l.sale_type?(0,c.t)("common_key_shop",m):void 0:void 0,children:f(a)},a)})}),(0,t.jsxs)("div",{className:"gc__foot",children:[(0,t.jsxs)("div",{className:"gc__price",children:[(0,t.jsx)("span",{className:"gc__now",children:0===L.price?(0,c.t)("common_free_badge",m):_(L.price,m)}),null!=L.msrp&&L.msrp>
1L.price&&(0,t.jsx)("span",{className:"gc__was",children:_(L.msrp,m)}),C&&(0,t.jsxs)("span",{className:"gc__off",children:["â",L.discount_pct,"%"]})]}),(0,t.jsxs)("div",{className:"gc__seal",children:[(0,t.jsx)("span",{className:"gc__store",children:L.store.toUpperCase()}),(0,t.jsx)("span",{className:"gc__for",children:(0,c.tf)("common_for_platform",m,{label:f(w)})})]})]}),h&&(0,t.jsx)("p",{className:"gc__nota",children:h}),(0,t.jsxs)(l.default,{className:"gc__cta",href:(0,o.buildLocalizedPath)(`/game/${e.id}?platform=${encodeURIComponent(w)}`,m),"aria-label":(0,c.tf)("common_see_deal_aria",m,{title:e.title,price:0===L.price?(0,c.t)("free",m).toLowerCase():_(L.price,m),platform:f(w)}),children:[(0,c.t)("common_see_deal",m),(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M5 12h14"}),(0,t.jsx)("path",{d:"m12 5 7 7-7 7"})]})]})]})]})}],79396)},48511,e=>{"use strict";var t=e.i(18050),a=e.i(96445),l=e.i(69530),i=e.i(66913);e.s(["default",0,function({gameId:e,className:r="",compact:s=!1}){let c=(0,i.usePageLocale)(),{isWatched:o,toggle:n}=(0,a.useWishlist)(),d=o(e),u=s?14:16;return(0,t.jsx)("button",{type:"button",className:`wishlist-heart ${d?"active":""} ${r}`.trim(),"aria-label":d?(0,l.t)("common_wishlist_remove",c):(0,l.t)("common_wishlist_add",c),onClick:t=>{t.preventDefault(),t.stopPropagation(),n(e).catch(()=>{})},children:(0,t.jsx)("svg",{viewBox:"0 0 16 16",width:u,height:u,fill:d?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.4",children:(0,t.jsx)("path",{d:"M8 13.5S2.5 10.2 2.5 6.4A3.4 3.4 0 0 1 8 4a3.4 3.4 0 0 1 5.5 2.4c0 3.8-5.5 7.1-5.5 7.1Z",strokeLinejoin:"round"})})})}])},75588,e=>{"use strict";var t=e.i(71645),a=e.i(69530);let l=/<(b|strong|em|i)>([\s\S]*?)<\/\1>/g;function i(e,a,l){return e.split(/\{(\w+)\}/).map((e,i)=>i%2==1?(0,t.createElement)(t.Fragment,{key:`${l}-${i}`},e in a?a[e]:`{${e}}`):e)}e.s(["tNode",0,function(e,r,s={}){let c=(0,a.t)(e,r),o=[],n=0,d=0;for(let e of c.matchAll(l)){let a=e.index??0;a>n&&o.push(...i(c.slice(n,a),s,`t${d++}`)),o.push((0,t.createElement)(e[1],{key:`e${d++}`},...i(e[2],s,`t${d++}`))),n=a+e[0].length}return n<c.length&&o.push(...i(c.slice(n),s,`t${d++}`)),o}])}]);
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.