1import{j as o,r as p,a as G}from"./components-5FRlAwVN.js";import{B as I,r as $,f as g,Z as oe,t as Z,F as se,ad as ne}from"./constants-BFwIr2YJ.js";import{S as K,i as J,A as W,a as re,b as te,H as ce}from"./Header-CLeW4wUd.js";import{P as ie}from"./ProductFooter-DP-Xp_wc.js";import{u as Q}from"./ProductPage-Cmf_C2jq.js";import{h as N,H as Y,o as U,q as le,N as T,A as k,g as O,u as ue,R as H,B as X,F as me,e as pe}from"./FormBuilder-iq3ihBX7.js";import{P as ae,a as fe}from"./Livefeed-CneNI7dm.js";import{P as de,a as he,b as ge,c as xe,d as _e,e as ve}from"./Registration-Dya_hOi_.js";import{S as be}from"./play-btn-circle-DTjNq0WI.js";import"./gsap-ByPAgKVh.js";import"./_flatRest-CHuGhrKI.js";import"./PageNotFound-Bga2focV.js";import"./StoreDownload-wjnoi0a0.js";import"./SocialHub-gcCA6ayN.js";import"./number-DacGEbrm.js";import"./SocialShare-ChkrXTnc.js";import"./SelectBase-DF_rq7Lt.js";import"./filter-fYSQWnfc.js";import"./PromotionCard-Dn2v0caa.js";import"./focus-BKoDwziM.js";import"./download-CKibX3DR.js";import"./useConsentScope-CSxjfcJe.js";const q="https://main.assets.gameloft.com/static/assets/arrow-B3D2HTWR.png",je="https://main.assets.gameloft.com/static/assets/card-frame-BuCp49-c.png",Ne=({data:s,onClose:e})=>{var t,l,u,c,d,a;const r=I("tablet-xl"),n={replace:m=>{if(m.type==="tag"&&m.name==="img"){const f=U.attributesToProps(m.attribs);return o.jsx($,{...f,alt:f.alt||"Gameloft"})}if(m.type==="tag"&&m.name==="oembed"){const f=U.attributesToProps(m.attribs);return o.jsx(le,{children:o.jsx(J,{url:f.src,...f,width:"100%",height:"100%"})})}}};return o.jsxs("div",{className:"com-event-popup",children:[o.jsx(K,{className:"com-event-popup__close",onClick:e}),o.jsxs("div",{className:"com-event-popup__wrapper",children:[o.jsx(N,{className:"com-event-popup__background",src:r?(u=s==null?void 0:s.background)==null?void 0:u.url:((t=s==null?void 0:s.backgroundMobile)==null?void 0:t.url)||((l=s==null?void 0:s.background)==null?void 0:l.url),alt:"background",width:1110,height:833}),o.jsx("div",{className:"com-event-popup__image",children:o.jsx(N,{src:r?(c=s==null?void 0:s.image)==null?void 0:c.url:((d=s==null?void 0:s.imageMobile)==null?void 0:d.url)||((a=s==null?void 0:s.image)==null?void 0:a.url),width:400,height:661,alt:""})}),o.jsxs("div",{className:"com-event-popup__detail",children:[o.jsx("h2",{className:"com-event-popup__title seo-holoboard-tracking-popup text-h2",children:s==null?void 0:s.titleLong}),o.jsx("div",{className:"com-event-popup__date text-subtitle",children:s==null?void 0:s.date}),o.jsx("div",{className:"com-event-popup__seperator"}),o.jsx("div",{className:"com-event-popup__content",children:Y((s==null?void 0:s.content)||"",n)})]})]})]})},we=s=>{var E,C,F,L;const e=s.data,[r,n]=p.useState(null),[t,l]=p.useState(null),[u,c]=p.useState(""),[d,a]=p.useState(),[m,f]=p.useState(null),w=I("mobile"),v=p.useRef(0),B=p.useRef(null),P=p.useRef(null),b=p.useRef(0);let y=0;const R={replace:i=>{if(i.type==="tag"&&i.name==="circle"){const h=i.attribs.cx,V=i.attribs.cy,_=e==null?void 0:e.cards[y];return _?(y++,o.jsxs(o.Fragment,{children:[o.jsx("foreignObject",{className:"com-event-board__wrapper",ref:_.disable?void 0:f,x:parseFloat(h)-267/2,y:parseFloat(V)-233,width:267,height:233,children:o.jsx(Ce,{data:_,onClick:()=>{var S;(S=window.dataLayer)==null||S.push({event:"evt_product_page_sniperfury_holoboard_click",dlv_product_page_sniperfury_holoboard_click:`${_.title}`}),a(_)}})}),U.domToReact([i])]})):null}}},D=()=>{r&&(r.offsetWidth+r.scrollLeft>=r.scrollWidth-10?l("start"):r.scrollLeft<=10?l("end"):l(null))},x=i=>{const h=i==="start"?-window.innerWidth:window.innerWidth;P.current&&clearInterval(P.current),r&&Date.now()-v.current<150&&(r.scrollBy({behavior:"smooth",left:h}),B.current&&clearTimeout(B.current))},j=i=>{const h=i==="start"?-1:1;v.current=Date.now(),B.current=setTimeout(()=>{P.current=setInterval(()=>r&&r.scrollBy({behavior:"auto",left:h}),2)},150)},M=i=>{r&&(b.current<i.pageX?r.scrollLeft-=(i.pageX+b.current)/300:b.current>i.pageX&&(r.scrollLeft+=(i.pageX+b.current)/275),b.current=i.pageX)};return p.useEffect(()=>{var i;(i=e==null?void 0:e.board)!=null&&i.url&&fetch(e.board.url).then(h=>h.text()).then(h=>c(h))},[(E=e==null?void 0:e.board)==null?void 0:E.url]),p.useEffect(()=>{m&&r&&r.scrollBy({left:m.getBoundingClientRect().right-window.innerWidth})},[m,r]),!(e!=null&&e.cards)||e.cards.length<1?null:o.jsxs("div",{id:"holoboard",className:"com-event-board",children:[o.jsx(T,{src:w?((C=e==null?void 0:e.backgroundMobile)==null?void 0:C.url)||((F=e==null?void 0:e.background)==null?void 0:F.url):(L=e==null?void 0:e.background)==null?void 0:L.url,load:!0,alt:"background"}),o.jsxs(W,{className:"com-event-board__header",custom:"100",children:[o.jsx("h2",{className:"text-h2",children:e==null?void 0:e.title}),o.jsx("div",{className:"com-event-board__seperator"}),o.jsx(k,{className:"com-event-board__description text-subtitle",content:e==null?void 0:e.description})]}),o.jsx(W,{className:"com-event-board__container",ref:n,onScroll:()=>D(),draggable:!0,onDrag:M,onDragStart:i=>
1i.dataTransfer.setDragImage(new Image,0,0),custom:"100",children:(e==null?void 0:e.cards)&&Y(u,R)}),o.jsxs(W,{className:"com-event-board__pagination",children:[o.jsx(N,{className:g("com-event-board__arrow",{"com-event-board--disable":t==="end"}),src:q,onMouseDown:()=>j("start"),onTouchStart:()=>j("start"),onMouseLeave:()=>x("start"),onMouseUp:()=>x("start"),onTouchEnd:i=>{i.preventDefault(),x("start")},alt:"",width:87,height:37}),o.jsx(N,{className:g("com-event-board__arrow",{"com-event-board--disable":t==="start"}),src:q,onMouseDown:()=>j("end"),onTouchStart:()=>j("end"),onMouseLeave:()=>x("end"),onMouseUp:()=>x("end"),onTouchEnd:i=>{i.preventDefault(),x("end")},alt:"",width:87,height:37})]}),o.jsx(O,{isOpen:!!d,onBackClick:()=>a(void 0),onKeyEcs:()=>a(void 0),children:o.jsx(Ne,{data:d,onClose:()=>a(void 0)})})]})},Ce=({data:s,onClick:e})=>{var l,u;const r=I("desktop"),n=p.useRef(null),{inview:t}=oe(n.current,{rootMargin:`0px -${window.innerWidth/4}px 0px -${window.innerWidth/4}px `});return o.jsxs("div",{className:g("com-event-board__card",{"com-event-board__card--disable":s==null?void 0:s.disable},{"com-event-board__card--hightlight":t&&!(s!=null&&s.disable)&&!r}),ref:n,onClick:e,children:[o.jsx("div",{className:"com-event-board__card-overlay"}),(s==null?void 0:s.title)&&o.jsx("div",{className:"com-event-board__card-title text-subtitle",children:s.title}),o.jsx(N,{className:"com-event-board__card-frame",src:je,width:267,height:233,alt:s.title||"",load:!0}),o.jsx(N,{className:"com-event-board__card-image",src:s!=null&&s.disable?(l=s==null?void 0:s.lockImage)==null?void 0:l.url:(u=s.thumbnail)==null?void 0:u.url,width:267,height:233,alt:s.title||"",load:!0})]})},Se=({class:s,data:e})=>{var y,R,D,x,j,M,E;const[r,n]=p.useState(!1),[t,l]=p.useState(!0),[u,c]=p.useState({open:!1}),[d,a]=p.useState(!1),{search:m}=G(),f=I("mobile"),w=ue(),{handleSubmit:v,reset:B,setError:P}=w,b=async C=>{var F,L,i;if(a(!0),C.captcha=await re.execute("NotiItemDownloadForm"),e!=null&&e.api){const h=await Z.request(Z.post(e==null?void 0:e.api,C));if(h.status===200)n(!1),c({open:!0,success:!0}),B();else if(h.status===422){let V=!1;const _=((L=(F=h.data._error)==null?void 0:F.info)==null?void 0:L.error)||((i=h.data._error)==null?void 0:i.info);for(const S in _){const A=_[S];Object.keys(C).includes(S)?P(S,{type:A.type||"server",message:A.message||"Invalid field"}):V=!0}V&&c({open:!0,success:!1})}else c({open:!0,success:!1})}else c({open:!0,success:!1});a(!1)};return p.useEffect(()=>{m.includes("open-form")&&n(!0)},[m]),o.jsxs("div",{className:g("com-notification-item",s),children:[o.jsx("div",{className:g("com-notification-item__button",{"opa-0":t}),onClick:()=>l(!t),children:o.jsx(ke,{})}),o.jsxs(H,{className:g("com-notification-item__content",{"com-notification-item--open":t}),ratio:`${289/286*100}%`,children:[o.jsx("div",{className:"com-notification-item__close-icon",onClick:()=>l(!1)}),o.jsx(T,{src:(y=e.popupBackground)==null?void 0:y.url,alt:"Notification Background"}),o.jsx(k,{className:"com-notification-item__description text-body2",content:e==null?void 0:e.popupBody}),o.jsx(X,{className:"com-notification-item__popup-button",onClick:()=>n(!0),children:e==null?void 0:e.popupButton})]}),o.jsx(O,{isOpen:r,onBackClick:()=>n(!1),onKeyEcs:()=>n(!1),children:o.jsxs(H,{className:"com-notification-item__form",ratio:f?`${443/340*100}%`:`${598/628*100}%`,children:[o.jsx(T,{src:f?((R=e==null?void 0:e.formBackgroundMobile)==null?void 0:R.url)||((D=e==null?void 0:e.formBackground)==null?void 0:D.url):(x=e==null?void 0:e.formBackground)==null?void 0:x.url,alt:"Notification Form Background"}),o.jsx(K,{className:"com-notification-item__form-close",onClick:()=>n(!1)}),o.jsx(N,{className:"com-notification-item__form-logo",src:(j=e==null?void 0:e.formLogo)==null?void 0:j.url,alt:"Notification Form Logo",width:166,height:73}),o.jsx(k,{className:"com-notification-item__form-description",content:e==null?void 0:e.formDescription}),o.jsx(me,{...w,children:o.jsxs("form",{className:"com-notification-item__form-content",onSubmit:v(b),children:[o.jsx(pe,{config:e==null?void 0:e.fields,disabled:d}),o.jsx(X,{className:"com-notification-item__form-submit",loading:d,variant:"secondary",children:(e==null?void 0:e.formButton)||"Submit"})]})})]})}),o.jsx(O,{isOpen:u.open,onBackClick:()=>c({open:!1}),onKeyEcs:()=>c({open:!1}
1),children:o.jsxs(H,{className:"com-notification-item__message",ratio:`${397/628*100}%`,children:[o.jsx(T,{src:u.success?(M=e.successBackground)==null?void 0:M.url:(E=e.failBackground)==null?void 0:E.url,alt:"Notification Popup Background"}),o.jsx(k,{className:"com-notification-item__message-description",content:u.success?e.successBody:e.failBody}),o.jsx(X,{className:"com-notification-item__message-button",onClick:()=>c({open:!1}),children:e.messageButton||"OK"})]})})]})},ke=()=>o.jsxs("svg",{className:"svg-download",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{className:"svg-download__arrow",d:"M19.1151 29.635C19.2312 29.7514 19.3692 29.8438 19.521 29.9068C19.6729 29.9698 19.8357 30.0022 20.0001 30.0022C20.1645 30.0022 20.3273 29.9698 20.4792 29.9068C20.6311 29.8438 20.769 29.7514 20.8851 29.635L28.3851 22.135C28.6198 21.9003 28.7517 21.5819 28.7517 21.25C28.7517 20.9181 28.6198 20.5997 28.3851 20.365C28.1504 20.1303 27.8321 19.9984 27.5001 19.9984C27.1682 19.9984 26.8498 20.1303 26.6151 20.365L21.2501 25.7325V3.75C21.2501 3.41848 21.1184 3.10054 20.884 2.86612C20.6496 2.6317 20.3316 2.5 20.0001 2.5C19.6686 2.5 19.3507 2.6317 19.1162 2.86612C18.8818 3.10054 18.7501 3.41848 18.7501 3.75V25.7325L13.3851 20.365C13.1504 20.1303 12.8321 19.9984 12.5001 19.9984C12.1682 19.9984 11.8498 20.1303 11.6151 20.365C11.3804 20.5997 11.2485 20.9181 11.2485 21.25C11.2485 21.5819 11.3804 21.9003 11.6151 22.135L19.1151 29.635Z",fill:"currentColor"}),o.jsx("path",{className:"svg-download__bottom",d:"M1.25 24.75C1.58152 24.75 1.89946 24.8817 2.13388 25.1161C2.3683 25.3505 2.5 25.6685 2.5 26V32.25C2.5 32.913 2.76339 33.5489 3.23223 34.0178C3.70107 34.4866 4.33696 34.75 5 34.75H35C35.663 34.75 36.2989 34.4866 36.7678 34.0178C37.2366 33.5489 37.5 32.913 37.5 32.25V26C37.5 25.6685 37.6317 25.350
15 37.8661 25.1161C38.1005 24.8817 38.4185 24.75 38.75 24.75C39.0815 24.75 39.3995 24.8817 39.6339 25.1161C39.8683 25.3505 40 25.6685 40 26V32.25C40 33.5761 39.4732 34.8479 38.5355 35.7855C37.5979 36.7232 36.3261 37.25 35 37.25H5C3.67392 37.25 2.40215 36.7232 1.46447 35.7855C0.526784 34.8479 0 33.5761 0 32.25V26C0 25.6685 0.131696 25.3505 0.366117 25.1161C0.600537 24.8817 0.918479 24.75 1.25 24.75Z",fill:"currentColor"})]}),Be=()=>{const s=Q(),e=s.notificationBar,r=s.sections,n=e==null?void 0:e.items;return((n==null?void 0:n.length)??0)<1?null:o.jsx("div",{className:"com-notification-bar",children:o.jsx("div",{className:"com-notification-bar__container",children:n.map((t,l)=>{const{setting:u,template:c}=t,d=(r==null?void 0:r.find(m=>m.__typename===c))||t,a=c?ye[c]:Pe;return o.jsx(a,{data:{...d,...u},className:g("com-notification-bar__item",t.class)},l)})})})},Pe=({class:s,name:e})=>o.jsx(k,{className:g("com-notification-item",s),content:e}),ye={ComponentCommonNotificationItemForm:Se},Ee=s=>{var t,l,u,c;const e=s.data,n=I("mobile")?((t=e==null?void 0:e.backgroundMobile)==null?void 0:t.url)||((l=e==null?void 0:e.background)==null?void 0:l.url):(u=e==null?void 0:e.background)==null?void 0:u.url;return o.jsxs("div",{className:"com-single-feature",children:[o.jsx(T,{src:n,alt:"feature background"}),o.jsxs("div",{className:g("com-single-feature__content",{"com-single-feature__content-reverse":(e==null?void 0:e.alignCharacter)==="left"}),children:[o.jsx(k,{className:"com-single-feature__text",style:{background:e==null?void 0:e.textBgColor},content:(e==null?void 0:e.featureText)||""}),o.jsx("div",{className:"com-single-feature__character",children:o.jsx($,{src:(c=e==null?void 0:e.character)==null?void 0:c.url,alt:"feature",load:"lazy"})})]})]})},Fe=s=>{var l;const e=s.data,[r,n]=p.useState(!1),t=(e==null?void 0:e.title)||(e==null?void 0:e.description);return e?o.jsxs("div",{className:g("com-product-single-video",{"com-product-single-video--text":t}),children:[o.jsx("div",{className:"section-bg",children:o.jsx($,{src:(l=e==null?void 0:e.background)==null?void 0:l.url,alt:"background"})}),o.jsxs("div",{className:"com-product-single-video__content",children:[(e==null?void 0:e.title)&&o.jsx("div",{className:"com-product-single-video__title text-h2",children:e==null?void 0:e.title}),(e==null?void 0:e.description)&&o.jsx("div",{className:"com-product-single-video__description text-subtitle",children:e==null?void 0:e.description}),o.jsxs("div",{className:g("com-product-single-video__thumbnail"),children:[o.jsx($,{src:e==null?void 0:e.videoThumbnail.url,alt:"thumbnail"}),o.jsx(be,{className:"com-product-single-video__thumbnail-btn-play",onClick:()=>n(!0)})]})]}),o.jsx(O,{isOpen:r,onBackClick:()=>n(!1),onKeyEcs:()=>n(!1),children:o.jsxs("div",{className:"com-product-single-video__popup",children:[o.jsx(K,{className:"com-product-single-video__close",onClick:()=>n(!1)}),o.jsx("div",{className:"com-product-single-video__video-container",children:o.jsx(J,{playing:!0,url:e==null?void 0:e.videoUrl,controls:!0,width:"100%",height:"100%"})})]})})]}):null},eo=s=>{var n;if(!s)return s;const e={},r=[];return(n=s.sections)==null||n.forEach((t,l)=>{var d;t.id=l;const u=t.__typename,c=ee[u];if(c&&!c.component&&(e[c.store]=t),c&&c.component){const a=t.groupId;if(a)if(((d=r[r.length-1])==null?void 0:d.groupId)===a)r[r.length-1].group.push(t);else{const m=r.length;r[m]={group:[],groupId:a},r[m].group=[t]}else r.push(t)}}),s=se(s,e,{renderOrder:r}),s},z=(s,e)=>{var n;const r=(n=ee[s.__typename])==null?void 0:n.component;return r?o.jsx(r,{data:e},`${s.id}`):null},oo=s=>{var c,d,a,m;const e=Q(),r=e.setting,n=e.signupCustom,t=e.stickyCustom,{hash:l,search:u}=G();return p.useEffect(()=>{r!=null&&r.deepLinkRegex&&(r!=null&&r.deeplinkProto)&&ne(r.deepLinkRegex).test(u)&&(window.location.href=`${r.deeplinkProto}${u}`)},[u,r]),p.useEffect(()=>{if(l){const f=setTimeout(()=>te(window,{y:l}),500);return()=>clearTimeout(f)}},[l]),e?o.jsxs("div",{className:"com-product-page",children:[(r==null?void 0:r.css)&&o.jsx("style",{children:r.css}),o.jsx(ce,{signup:{show:(t==null?void 0:t.showNewsletter)!==void 0?t==null?void 0:t.showNewsletter:!1,api:n==null?void 0:n.api,character:(c=n==null?void 0:n.character)==null?void 0:c.url,background:(d=n==null?void 0:n.background)==null?void 0:d.url,success:{title:n==null?void 0:n.successTitle,content:n==null?void 0:n.successText,background:(a=n==null?void 0:n.successBackgroun
1d)==null?void 0:a.url},failed:{title:n==null?void 0:n.failedTitle,content:n==null?void 0:n.failedText,background:(m=n==null?void 0:n.failedBackground)==null?void 0:m.url}},share:{show:(t==null?void 0:t.showShare)!==void 0?t==null?void 0:t.showShare:!0,link:t==null?void 0:t.shareLink},support:{show:(t==null?void 0:t.showSupport)!==void 0?t==null?void 0:t.showSupport:!0,link:t==null?void 0:t.supportLink}}),o.jsx(Be,{data:e.notificationBar}),e==null?void 0:e.renderOrder.map((f,w)=>f.group?o.jsx("div",{className:f.groupId,children:f.group.map(v=>z(v,e.sections[v.id]))},w):z(f,e.sections[f.id]))]}):null},ee={ComponentCommonStores:{component:null,store:"stores"},ComponentCommonFollowUs:{component:null,store:"followUs"},ComponentCommonNotificationBar:{component:null,store:"notificationBar"},ComponentProductSectionsStickyCustom:{component:null,store:"stickyCustom"},ComponentProductSectionsSignupCustom:{component:null,store:"signupCustom"},ComponentProductSectionsBanner:{component:fe},ComponentProductSectionsSingleVideo:{component:Fe},ComponentProductSectionsSingleFeature:{component:Ee},ComponentProductSectionsNews:{component:ve},ComponentProductSectionsRegistration:{component:_e},ComponentProductSectionsLiveFeed:{component:ae},ComponentProductSectionsPromotion:{component:xe},ComponentProductSectionsExclusiveContent:{component:ge},ComponentProductSectionsCreator:{component:he},ComponentProductSectionsLeaderBoard:{component:de},ComponentProductSectionsFooterCopyright:{component:ie},ComponentSniperFuryEventBoard:{component:we}};export{oo as default,eo as productV2ResolveData};
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.