1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7555],{88728:function(n,e,r){"use strict";r.d(e,{c:function(){return m}});var a=r(85893),t=(r(67294),r(48004)),i=r(34165),o=r(96972),s=r.n(o),l=function(n){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:s().coverContainer,children:(0,a.jsx)(i.$,{className:s().cover,src:n.coverSrc})}),(0,a.jsxs)("div",{className:s().header,children:[(0,a.jsxs)("div",{className:s().alsqContainer,children:[(0,a.jsx)(i.$,{className:s().logo,src:"".concat(t.n.CDN_URL,"/static/logos/[email protected]")}),(0,a.jsx)("span",{className:s().reservation,children:"Reservation confirmation"})]}),(0,a.jsx)(i.$,{className:s().logo,src:n.logoSrc})]})]})},c=r(94558),d=r(165),u=r.n(d),h=function(){return(0,a.jsxs)("div",{className:u().footer,children:[(0,a.jsxs)("div",{className:u().horizontalContainer,children:[(0,a.jsx)(c.v,{name:"Phone",fill:"#37C88B",width:"20px",height:"20px"}),(0,a.jsx)("span",{children:"+352 661 327 777"})]}),(0,a.jsxs)("div",{className:u().horizontalContainer,children:[(0,a.jsx)(c.v,{name:"Mail",fill:"#37C88B",width:"20px",height:"20px"}),(0,a.jsx)("span",{children:"[email protected]"})]}),(0,a.jsxs)("div",{className:u().horizontalContainer,children:[(0,a.jsx)(c.v,{name:"World",fill:"#37C88B",width:"20px",height:"20px"}),(0,a.jsx)("span",{children:"allsquaregolf.com"})]})]})},v=r(45585),f=r.n(v),m=function(n){return(0,a.jsxs)("div",{className:f().container,children:[(0,a.jsxs)("div",{className:f().content,children:[(0,a.jsx)(l,{coverSrc:n.coverUri,logoSrc:n.logoUri}),(0,a.jsx)("div",{className:f().detailsContainer,children:n.children}),(0,a.jsx)("span",{className:f().happyGolfing,children:"HAPPY GOLFING!"})]}),(0,a.jsx)(h,{})]})}},24708:function(n,e,r){"use strict";r.d(e,{F:function(){return s},X:function(){return l}});var a=r(63357);function t(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}function i(){var n=t(["\nfragment GreenfeeFragment on Greenfee {\n id\n createdAt\n lastname\n firstname\n email\n currentStatus\n state\n phoneCountry {\n id\n calling\n }\n phoneNumber\n priceOverride\n comment\n voucherAvailable\n invoice {\n id\n fileUrl\n }\n clubBookings {\n edges {\n node {\n id\n nbPlayers\n date\n golfCart\n rentalClubs\n players {\n edges {\n node {\n id\n name\n handicap\n }\n }\n }\n club {\n id\n name\n zipcode\n street\n city\n phone\n timezone\n country {\n id\n name\n alpha2\n }\n destination {\n id\n name\n }\n cover {\n id\n uris {\n small\n large\n }\n }\n logo {\n id\n uris {\n small\n large\n }\n }\n }\n }\n }\n }\n}\n"]);return i=function(){return n},n}function o(){var n=t(["\nfragment ProxyBookingFragment on ProxyBooking {\n id\n createdAt\n playersCount\n players {\n edges {\n node {\n id\n name: fullname\n handicap\n }\n }\n }\n teetime\n paymentState\n club {\n id\n name\n zipcode\n street\n phone\n timezone\n country {\n id\n name\n alpha2\n }\n destination {\n id\n name\n }\n cover {\n id\n uris {\n small\n large\n }\n }\n logo {\n id\n uris {\n small\n large\n }\n }\n }\n}\n"]);return o=function(){return n},n}var s=(0,a.Ps)(i()),l=(0,a.Ps)(o())},67555:function(n,e,r){"use strict";r.d(e,{M:function(){return x},z:function(){return _}});var a=r(85893),t=(r(67294),r(29934)),i=r(6388),o=r(11163),s=r(56426),l=r(94558),c=r(89810),d=r(88728),u=r(35632),h=r(63357),v=r(24708);function f(){var n,e,r=(n=["\n query getTeeTimeBooking($id: Int!) {\n greenfees(filter: {\n id: { equals: $id }\n voucher_available: { equals: true }\n }) {\n edges {\n node {\n ...GreenfeeFragment\n }\n }\n }\n }\n ","\n"],e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}})));return f=function(){return r},r}var m=(0,h.Ps)(f(),v.F),g=r(27441),p=r.n(g),x=function(n){var e,r,i,o,u,h,v=n.booking.club;
1return(0,a.jsx)(d.c,{coverUri:v.cover.uris.large,logoUri:v.logo.uris.large,children:(0,a.jsxs)("div",{className:p().detailsContainer,children:[(0,a.jsxs)("div",{className:p().clubName,children:[(0,a.jsx)("span",{className:p().s16w600,children:v.name}),(0,a.jsxs)("span",{className:p().reservationId,children:["Reservation ID: ",n.bookingId]})]}),(0,a.jsxs)("div",{className:p().adressContainer,children:[(0,a.jsx)("span",{children:null===v||void 0===v?void 0:v.street}),(0,a.jsxs)("span",{children:[(null===(e=v.destination)||void 0===e?void 0:e.name)&&v.destination.name,(null===(r=v.destination)||void 0===r?void 0:r.name)&&(null===v||void 0===v?void 0:v.zipcode)&&", ",(null===v||void 0===v?void 0:v.zipcode)&&v.zipcode,(null===v||void 0===v?void 0:v.zipcode)&&(null===(i=v.country)||void 0===i?void 0:i.name)&&", ",(null===(o=v.country)||void 0===o?void 0:o.name)&&v.country.name]}),(0,a.jsx)("span",{children:null===v||void 0===v?void 0:v.phone})]}),(0,a.jsx)("span",{className:p().s16w600,children:(null===(u=n.booking)||void 0===u?void 0:u.date)?"".concat((0,t.WU)(n.booking.date,s.xH)," at ").concat((0,t.WU)(n.booking.date,s.wk)):"Date & hour to be determined"}),(null===(h=n.booking.players)||void 0===h?void 0:h.edges.length)>0&&n.booking.nbPlayers<=4?(0,a.jsx)("div",{className:2!==n.booking.nbPlayers?p().playersGrid:p().playersContainer,children:n.booking.players.edges.map((function(n){var e=n.node;return(0,a.jsxs)("div",{children:[e.name," \u2022 HCP ",e.handicap]},e.id)}))}):(0,a.jsxs)("div",{className:p().playersContainer,children:[" ","".concat(n.leadName," group")]}),(0,a.jsxs)("div",{className:p().horizontalContainer,children:[(0,a.jsx)(l.v,{name:"Check",fill:"#37C88B",bold:!0,width:"20px",height:"20px"}),(0,a.jsx)("span",{children:(0,c.Z)(n.booking.nbPlayers," prepaid green fee").default()})]}),n.extras.length>0&&(0,a.jsxs)("div",{className:p().extrasContainer,children:[(0,a.jsx)("span",{className:p().s16w600,children:"Extras:"}),n.extras.map((function(n){return(0,a.jsxs)("div",{className:p().extra,children:[(0,a.jsx)(l.v,{name:"Check",fill:"#37C88B",bold:!0,width:"20px",height:"20px"}),(0,a.jsx)("span",{children:(0,c.Z)(n.quantity,n.label).default()},n.id)]},n.id)}))]})]})})},_=function(){var n=(0,o.useRouter)(),e=(0,u.c)(n.query.token).isLogged,r=(0,i.aM)(m,{variables:{id:n.query.id},skip:!e}),t=r.data,s=r.loading,l=r.error;if(s||l||!t)return null;if(0===t.greenfees.edges.length)return null;var c=function(n){var e=[];return n.golfCart>0&&e.push({id:"golfCart",quantity:n.golfCart,label:"golf cart"}),n.rentalClubs>0&&e.push({id:"rentalClub",quantity:n.rentalClubs,label:"rental club"}),e};return(0,a.jsx)(a.Fragment,{children:t.greenfees.edges[0].node.clubBookings.edges.map((function(n){var e=n.node;return(0,a.jsx)(x,{bookingId:t.greenfees.edges[0].node.id,booking:e,leadName:"".concat(t.greenfees.edges[0].node.firstname," ").concat(t.greenfees.edges[0].node.lastname),extras:c(e)},t.greenfees.edges[0].node.id)}))})}},35632:function(n,e,r){"use strict";r.d(e,{c:function(){return f}});var a=r(34051),t=r.n(a),i=r(67294),o=r(50319),s=r(24487),l=r(61182);function c(){var n,e,r=(n=["\n mutation LogInByFastAuth($token: String!) {\n account {\n logInByFastAuth(token: $token) {\n authToken\n account {\n id\n user {\n email\n }\n }\n }\n }\n }\n"],e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}})));return c=function(){return r},r}var d=(0,r(63357).Ps)(c());function u(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=n[r];return a}function h(n,e,r,a,t,i,o){try{var s=n[i](o),l=s.value}catch(c){return void r(c)}s.done?e(l):Promise.resolve(l).then(a,t)}function v(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var r=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var a,t,i=[],o=!0,s=!1;try{for(r=r.call(n);!(o=(a=r.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(l){s=!0,t=l}finally{try{o||null==r.return||r.return()}finally{if(s)throw t}}return i}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return u(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);"Object"===r&&n.constructor&&(r=n.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(n,e)}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var f=function(n){var e=(0,s.xJ)().isLogged,r=v((0,o.D)(d),1)[0],a=function(){var a,i=(a=t().mark((function a(){var i,o,s,c;return t().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(e){a.next=7;break}return a.next=4,r({variables:{token:n}});case 4:c=a.sent,(0,l.wU)(null===(i=c.data)||void 0===i||null===(o=i.account)||void 0===o||null===(s=o.logInByFastAuth)||void 0===s?void 0:s.authToken),window.location.reload();case 7:case"end":return a.stop()}}),a)})),function(){var n=this,e=arguments;return new Promise((function(r,t){var i=a.apply(n,e);function o(n){h(i,r,t,o,s,"next",n)}function s(n){h(i,r,t,o,s,"throw",n)}o(void 0)}))});return function(){return i.apply(this,arguments)}}();return(0,i.useEffect)((function(){a()}),[]),{isLogged:e}}},165:function(n){n.exports={footer:"voucherFooter_footer__Lbps4",horizontalContainer:"voucherFooter_horizontalContainer__4WuXR","as-animate-gradient":"voucherFooter_as-animate-gradient__TNVqJ"}},96972:function(n){n.exports={coverContainer:"voucherHeader_coverContainer__uoqA3",cover:"voucherHeader_cover__q8M57",header:"voucherHeader_header__dYDim",alsqContainer:"voucherHeader_alsqContainer__B4itL",logo:"voucherHeader_logo__68ZPF","as-animate-gradient":"voucherHeader_as-animate-gradient__Iz4Pu"}},45585:function(n){n.exports={container:"voucherLayout_container__f1wbl",content:"voucherLayout_content__55Hre",detailsContainer:"voucherLayout_detailsContainer__mQvlA",happyGolfing:"voucherLayout_happyGolfing__yNUK2","as-animate-gradient":"voucherLayout_as-animate-gradient__6mh5l"}},27441:function(n){n.exports={clubName:"teeTimesVoucher_clubName__AHl92",reservationId:"teeTimesVoucher_reservationId__7TIyY",adressContainer:"teeTimesVoucher_adressContainer__oqVML",playersContainer:"teeTimesVoucher_playersContainer___Jt4r",playersGrid:"teeTimesVoucher_playersGrid___Sb_p",s16w600:"teeTimesVoucher_s16w600__nWs1M",horizontalContainer:"teeTimesVoucher_horizontalContainer__KQbUk",extrasContainer:"teeTimesVoucher_extrasContainer__3FHiQ",extra:"teeTimesVoucher_extra__5Qy2v","as-animate-gradient":"teeTimesVoucher_as-animate-gradient__ASBi8"}}}]);
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.