text: (this["webpackJsonpgameloft-forbrands"]=this["webpackJsonpgameloft-forbrands"]||[]).push([[7],{257:function(e,a,t){"use strict";var n=t(18),r=t(278),c=t(0),l=t.n(c),o=function(e,a){var t=Object(c.useState)(),r=Object(n.a)(t,2),l=r[0],o=r[1],i=a||{},s=i.once,u=i.root,m=i.rootMargin,d=i.threshold;return Object(c.useEffect)((function(){var a="string"==typeof e?document.querySelector(e):null===e||void 0===e?void 0:e.current;if(a&&window.IntersectionObserver){var t=new window.IntersectionObserver((function(e){o(e[0]),s&&e[0].isIntersecting&&t.disconnect()}),{root:u,rootMargin:m,threshold:d});return t.observe(a),function(){return t.disconnect()}}}),[e,s,u,m,d]),{inview:!!(null===l||void 0===l?void 0:l.isIntersecting),entry:l}},i=t(386),s=(t(267),l.a.forwardRef((function(e,a){var t=e.className,n=(e.preview,e.src),s=e.loadType,m=e.load,d=e.onLoaded,v=e.onLoadProp,p=e.id,f=Object(r.a)(e,["className","preview","src","loadType","load","onLoaded","onLoadProp","id"]);s=s||"inview";var b=Object(c.useRef)(null),E=o("inview"===s?b:null,{once:!0}).inview,h=!0;"inview"===s?h=E:"manual"===s&&(h=m||!1);var g=u(n,h),w=g.loading,N=g.src;Object(c.useEffect)((function(){w||null===d||void 0===d||d()}),[w,d]);return w&&e.preview?l.a.createElement(i.a,{variant:"rect",className:"lazy-image",animation:"wave"}):l.a.createElement("img",Object.assign({ref:function(e){b.current=e,a&&("function"===typeof a?a(e):a.current=e)},className:"lazy-image ".concat(t||""," lazy-image--").concat(w?"loading":"loaded"),src:N,alt:e.alt,style:{transition:"filter 0.5s linear",filter:"".concat(w?"blur(20px)":""),transform:"".concat(w?"scale(1)":"")},id:p,onLoad:v},f))}))),u=(a.a=s,function(e){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=Object(c.useState)(!0),r=Object(n.a)(t,2),l=r[0],o=r[1],i=Object(c.useRef)(!1);Object(c.useEffect)((function(){o(!0),i.current=!1}),[e]),a=a&&!i.current,Object(c.useEffect)((function(){if(a){o(!0);var t=new Image;return t.onload=function(){i.current=!0,o(!1)},t.src=e,function(){t.onload=null}}}),[e,a]);var s=a||i.current?e:"";return{src:s,loading:l}})},266:function(e,a,t){"use strict";var n=t(257),r=t(0),c=t.n(r),l=t(14),o=t(31),i=t(74),s=(t(268),t(263));a.a=function(e){Object(r.useEffect)((function(){new s.WOW({live:!1}).init()}),[]);var a=t(260),u=Object(o.c)("intro"),m=Object(l.b)();return Object(r.useEffect)((function(){m({type:i.a.SHOW_SPINNER})}),[m]),Object(r.useEffect)((function(){u&&setTimeout((function(){m({type:i.a.HIDE_SPINNER})}),500)}),[m,u]),c.a.createElement("section",Object.assign({className:"com-introduce ",id:"introduce"},e),c.a.createElement("div",{className:"wrapper-video"},(null===u||void 0===u?void 0:u.visual)&&("true"===e.ishomepage?u.visual.mimeType.includes("video")?c.a.createElement("video",{src:u.visual.url,loop:!0,autoPlay:!0,muted:!0}):c.a.createElement("div",{className:"div-bg"},c.a.createElement(n.a,{className:"lazaImg-abs",src:u.visual.url})):u.visual.mimeType.includes("video")?c.a.createElement("video",{src:u.visual.url,loop:!0,autoPlay:!0,muted:!0}):c.a.createElement(n.a,{className:"img-bg",src:u.visual.url,alt:""}))),c.a.createElement("div",{className:"wrapper-content"},"true"===e.ishomepage&&(null===u||void 0===u?void 0:u.logo)&&c.a.createElement(n.a,{src:u.logo.url,alt:"logo"}),c.a.createElement("div",{className:"".concat("true"===e.ishomepage?"":"top"," block-content")},c.a.createElement("div",{className:"first-content "},c.a.createElement("h2",{className:"title wow fadeInUp"},null===u||void 0===u?void 0:u.label.intro),c.a.createElement("div",{className:"content wow fadeInUp","data-wow-delay":"0.2s"},(null===u||void 0===u?void 0:u.label.quote)&&a(u.label.quote))))),"true"===e.scrollable&&c.a.createElement("div",{className:"block-scroll1"},c.a.createElement("div",{className:"hr-scroll"}),c.a.createElement("div",{className:"bounceScroll"},null===u||void 0===u?void 0:u.label.scroll)))}},267:function(e,a,t){},268:function(e,a,t){},284:function(e,a){},285:function(e,a){},373:function(e,a,t){},375:function(e,a,t){},376:function(e,a,t){},377:function(e,a,t){},397:function(e,a,t){"use strict";t.r(a);var n=t(266),r=t(47),c=t.n(r),l=t(12),o=t(65),i=t(82),s=t.n(i),u=t(18),m=(t(373),t(0)),d=t.n(m),v=d.a.forwardRef((function(e,a){var t=Object(m.useState)(""),n=Object(u.a)(t,2),r=n[0],c=n[1];return d.a.createElement("div",{className:"dropdown ".concat(r?"active":"")},d.a.createElement("input",{type:"text",value:r,readOnly:!0}),d.a.createElement("select",{onChange:function(e){return function(e){if(e.currentTarget){var a=e.currentTarget.value;c(a?e.currentTarget.options[e.currentTarget.selectedIndex].text:"")}}(e)},ref:a,name:e.name},e.children),d.a.createElement("span",{className:"placeholder"},e.placeholder))})),p=t(380),f=t(31),b=t(374),E=t.n(b),h=t(33),g=(t(375),t(91)),w="",N={execute:function(){var e=Object(o.a)(c.a.mark((function e(a,t){var n;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.grecaptcha){e.next=6;break}return t||(t=w),e.next=4,window.grecaptcha.execute(t,{action:a});case 4:return n=e.sent,e.abrupt("return",n);case 6:return e.abrupt("return",null);case 7:case"end":return e.stop()}}),e)})));return function(a,t){return e.apply(this,arguments)}}()},y=function(e){return w=e,Object(g.a)(["https://www.google.com/recaptcha/api.js?render="+e],void 0,void 0,{defer:!0,async:!1}),function(){var a=Object(o.a)(c.a.mark((function a(t){var n;return c.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!window.grecaptcha){a.next=5;break}return a.next=3,window.grecaptcha.execute(e,{action:t});case 3:return n=a.sent,a.abrupt("return",n);case 5:return a.abrupt("return",null);case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()},O=(t(376),function(e){var a,n=Object(p.a)({mode:"onBlur"}),r=n.register,i=n.handleSubmit,u=n.errors,b=null===(a=Object(f.c)("intro"))||void 0===a?void 0:a.formContact,g=t(260),w=Object(m.createRef)(),y=function(){var e=Object(o.a)(c.a.mark((function e(a){var t,n;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N.execute(h.b,"ContactForm");case 2:n=e.sent,a=Object(l.a)({},a,{token:n}),null===(t=w.current)||void 0===t||t.reset(),s.a.post("".concat(window.APP_API_URL,"/api/user/contact"),a).then((function(e){setTimeout((function(){E.a.fire(null===b||void 0===b?void 0:b.popupMessages.success.title,null===b||void 0===b?void 0:b.popupMessages.success.body,"success")}),500)})).catch((function(e){setTimeout((function(){E.a.fire(null===b||void 0===b?void 0:b.popupMessages.fail.title,null===b||void 0===b?void 0:b.popupMessages.fail.body,"error")}),500)}));case 6:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}();return d.a.createElement("section",{className:"com-form-contact animated faster visible"},d.a.createElement("h2",{className:"title"},null===b||void 0===b?void 0:b.label.title),d.a.createElement("h4",null,null===b||void 0===b?void 0:b.label.intro),d.a.createElement("form",{ref:w,onSubmit:i(y)},d.a.createElement("div",{className:"item"},d.a.createElement("span",{className:"label"},null===b||void 0===b?void 0:b.label.fullname),u.name&&d.a.createElement("span",{className:"error animated fadeIn faster"},null===b||void 0===b?void 0:b.errorMessage.nameRequired),d.a.createElement("input",{type:"text",name:"name",placeholder:null===b||void 0===b?void 0:b.inputText.fullname.placeholder,ref:r({required:!0})})),d.a.createElement("div",{className:"item"},d.a.createElement("span",{className:"label"},null===b||void 0===b?void 0:b.label.email),u.email&&"required"===u.email.type&&d.a.createElement("span",{className:"error animated fadeIn faster"},null===b||void 0===b?void 0:b.errorMessage.emailRequired),u.email&&"pattern"===u.email.type&&d.a.createElement("span",{className:"error animated fadeIn faster"},null===b||void 0===b?void 0:b.errorMessage.emailInvalid),d.a.createElement("input",{type:"text",name:"email",placeholder:null===b||void 0===b?void 0:b.inputText.email.placeholder,ref:r({required:!0,pattern:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i})})),d.a.createElement("div",{className:"item"},d.a.createElement("span",{className:"label"},null===b||void 0===b?void 0:b.label.company),u.company&&d.a.createElement("span",{className:"error animated fadeIn faster"},null===b||void 0===b?void 0:b.errorMessage.companyRequired),d.a.createElement("input",{type:"text",name:"company",placeholder:null===b||void 0===b?void 0:b.inputText.company.placeholder,ref:r({required:!0})})),d.a.createElement("div",{className:"item"},d.a.createElement("span",{className:"label"},null===b||void 0===b?void 0:b.label.number),d.a.createElement("input",{type:"number",name:"phone",placeholder:null===b||void 0===b?void 0:b.inputText.number.placeholder,ref:r()})),d.a.createElement("div",{className:"item"},d.a.createElement("span",{className:"label"},null===b||void 0===b?void 0:b.label.country),d.a.createElement(v,{placeholder:"France",name:"country",ref:r({required:!0})},h.a.map((function(e,a){return d.a.createElement("option",{key:e.value,value:e.value},g(e.name))})))),d.a.createElement("div",{className:"item mess"},d.a.createElement("span",{className:"label"},null===b||void 0===b?void 0:b.label.message),u.message&&d.a.createElement("span",{className:"error animated fadeIn faster"},null===b||void 0===b?void 0:b.errorMessage.messageRequired),d.a.createElement("textarea",{rows:4,name:"message",placeholder:null===b||void 0===b?void 0:b.textArea.message.placeholder,ref:r({required:!0})})),d.a.createElement("div",{className:"item checkbox"},d.a.createElement("input",{type:"checkbox",id:"checkbox",name:"checkbox",ref:r({required:!0})}),d.a.createElement("label",{htmlFor:"checkbox"},(null===b||void 0===b?void 0:b.label.gameloftTouPp)&&g(b.label.gameloftTouPp)),d.a.createElement("div",{className:"recaptcha mg-top0"},(null===b||void 0===b?void 0:b.label.recaptchaTouPp)&&g(b.label.recaptchaTouPp)),u.checkbox&&d.a.createElement("div",{className:"errCheck animated fadeIn faster"}," ",null===b||void 0===b?void 0:b.errorMessage.confirmGameloftTouPpRequired)),d.a.createElement("button",{className:"btn-submit",disabled:0!==Object.keys(u).length},null===b||void 0===b?void 0:b.button.sendEmail.text)))}),j=(t(377),t(73));a.default=function(){return y(h.b),Object(f.d)("contact","/api/page/en/contact"),Object(m.useEffect)((function(){window.scrollTo(0,0)}),[]),d.a.createElement("section",{className:"com-contact"},d.a.createElement(j.a,null,d.a.createElement("meta",{charSet:"utf-8"}),d.a.createElement("title",null,"Reach Out To Our Team | Gameloft"),d.a.createElement("meta",{name:"description",content:"Reach out to our dedicated team. We're more than happy to assist and answer your questions or concerns."}),d.a.createElement("link",{rel:"canonical",href:"https://www.gameloft.com/forbrands/contact-us"})),d.a.createElement(n.a,{scrollable:"true"}),d.a.createElement(O,null))}}}]);