1"use strict";(globalThis.webpackChunkgolfnow_web||=[]).push([[3312,37289],{28010(e,t,l){l.d(t,{P:()=>o});var a=l(59889);class i{constructor(e){if(Object.defineProperty(this,"reservationID",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"earnedRewards",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.reservationID=void 0!==e.reservationID?e.reservationID:null,this.earnedRewards=void 0!==e.earnedRewards?e.earnedRewards:null)}static fromJS(e){e="object"==typeof e?e:{};let t=new i;return t.init(e),t}}class r{constructor(e){if(Object.defineProperty(this,"rewardID",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rewardName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rewardCode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"wasUsed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"expirationDate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"issueDate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"icon",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.rewardID=void 0!==e.rewardID?e.rewardID:null,this.rewardName=void 0!==e.rewardName?e.rewardName:null,this.rewardCode=void 0!==e.rewardCode?e.rewardCode:null,this.value=void 0!==e.value?e.value:null,this.wasUsed=void 0!==e.wasUsed?e.wasUsed:null,this.expirationDate=void 0!==e.expirationDate?e.expirationDate:null,this.issueDate=void 0!==e.issueDate?e.issueDate:null,this.icon=void 0!==e.icon?e.icon:null)}static fromJS(e){e="object"==typeof e?e:{};let t=new r;return t.init(e),t}}class o{constructor(e){if(Object.defineProperty(this,"waivedFeesExpirationDate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rewardsPoints",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"earnedRewardsHistory",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rewardItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"eligibleCouponCode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lifetimePoints",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"roundsBooked",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rewardsAvailable",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showRedirectFromTrialModal",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.waivedFeesExpirationDate=void 0!==e.waivedFeesExpirationDate?e.waivedFeesExpirationDate:null,this.rewardsPoints=void 0!==e.rewardsPoints?e.rewardsPoints:null,Array.isArray(e.earnedRewardsHistory))for(let t of(this.earnedRewardsHistory=[],e.earnedRewardsHistory))this.earnedRewardsHistory.push(i.fromJS(t));else this.earnedRewardsHistory=null;if(Array.isArray(e.rewardItems))for(let t of(this.rewardItems=[],e.rewardItems))this.rewardItems.push(r.fromJS(t));else this.rewardItems=null;if(Array.isArray(e.eligibleCouponCode))for(let t of(this.eligibleCouponCode=[],e.eligibleCouponCode))this.eligibleCouponCode.push(a.q.fromJS(t));else this.eligibleCouponCode=null;this.lifetimePoints=void 0!==e.lifetimePoints?e.lifetimePoints:null,this.roundsBooked=void 0!==e.roundsBooked?e.roundsBooked:null,this.rewardsAvailable=void 0!==e.rewardsAvailable?e.rewardsAvailable:null,this.showRedirectFromTrialModal=void 0!==e.showRedirectFromTrialModal?e.showRedirectFromTrialModal:null}}static fromJS(e){e="object"==typeof e?e:{};let t=new o;return t.init(e),t}}}
1,93446(e,t,l){let a=(0,l(10810).nY)("productConfigStore",{state:()=>({productConfigData:{}})});l.d(t,["o",0,a])},46330(e,t,l){l.r(t),l.d(t,{default:()=>m});var a=l(6934),i=l(20829),r=l(73078),o=l(93446),n=l(18575),d=l(27529),s=l(99301),u=l(88398),c=l(84430),v=l(79162),f=l(48966),b=l(10810);let m=(0,a.defineComponent)({__name:"InterstitialManager",props:{adUnitPath:{},inactiveDays:{default:7},channelId:{default:331}},emits:["closed"],setup(e,{emit:t}){let l=(0,a.ref)(null),m=(0,a.ref)("idle"),p=(0,a.ref)(null),g=(0,a.ref)(!1),h=null,w=!1,y=null,k=null,I=null,P=(0,a.computed)(()=>"fallback"===m.value),D=(0,o.o)(),S=(0,n.u)(),C=(0,d.J)(),{benefits:E}=(0,b.bP)(C);function G(){let e=uid||"guest";return`GN.Interstitial.v2.LastShown_${e}`}function _(){let t=u.b.HOURS_24*e.inactiveDays;(0,s.ay)(G(),Date.now(),!0,t)}function x(t){C.hideInterstitial("close"),m.value="fallback",p.value=t,f.GoogleAnalytics.TrackGoogleEvent("gam_interstitial_failure","GAM Interstitial",t,e.adUnitPath,3e3*("timeout"===t)),f.GoogleAnalytics.TrackGoogleEvent("gam_interstitial_fallback_shown","GAM Interstitial","fallback_shown",t,void 0),f.GoogleAnalytics.TrackGoogleEvent("gam_sidecart_fallback","GAM Sidecart",t,"fallback",void 0)}function T(){h&&(clearTimeout(h),h=null)}function A(){"loading"===m.value&&(g.value||C.showInterstitial(void 0))}function R(e){(0,v.wN)("Parent Page Interstitial opened",null==e?void 0:e.productId,E.value),l.value=null!=e?e:{}}function j(e){(0,v.wN)("Parent Page Interstitial closed",null==e?void 0:e.productId,E.value),l.value=null!=e?e:{},_(),m.value="idle",t("closed","gam-dismissed")}function O(e){"fallback"===m.value&&f.GoogleAnalytics.TrackGoogleEvent("gam_interstitial_fallback_action","GAM Interstitial",e,void 0,void 0),_(),m.value="idle",t("closed",e)}return(0,a.onMounted)(async()=>{var t,a,i,r,o,n,d,v,b,p,k,I,P,_,R,j,O,N;let M,B,V;if(!0!==(M=D.productConfigData).displayInterstitial||!0===(null==(a=null==(t=M.customerSidecartSettings)?void 0:t.productConfigPromotion)?void 0:a.isInterstitialDisabled)||!0!==M.allowVipSubs||!0===(null==(r=null==(i=S.model)?void 0:i.teeTimeInvoice)?void 0:r.hasMemberPricing)||!e.adUnitPath){C.setGamSidecartData({source:"backend",isReady:!0}),f.GoogleAnalytics.TrackGoogleEvent("gam_sidecart_fallback","GAM Sidecart","no_fill","backend",void 0);return}g.value=function(){try{let t=(0,s.IR)(G());if(null==t)return!1;let l=e.inactiveDays*u.b.HOURS_24;return Date.now()-t<l}catch{return!1}}(),m.value="loading";try{await C.loadGpt()}catch{x("error"),C.setGamSidecartData({source:"fallback",isReady:!0}),f.GoogleAnalytics.TrackGoogleEvent("gam_sidecart_fallback","GAM Sidecart","gpt_load_error","fallback",void 0);return}y=t=>{var a,i,r,o,n,d;"loading"===m.value&&(T(),(null==t?void 0:t.isEmpty)===!1?(C.setGamSidecartData({productId:null!=(i=null==(a=l.value)?void 0:a.productId)?i:null,productPriceId:null!=(o=null==(r=l.value)?void 0:r.productPriceId)?o:null,productTypeId:null!=(d=null==(n=l.value)?void 0:n.productTypeId)?d:null,benefits:E.value,source:"gam",isReady:!0}),g.value?(m.value="idle",f.GoogleAnalytics.TrackGoogleEvent("gam_sidecart_capped","GAM Sidecart","cap_suppressed",e.adUnitPath,void 0)):m.value="success"):(x("no_fill"),C.setGamSidecartData({source:"fallback",isReady:!0})))},(0,c.jb)("slotDefined",A),(0,c.jb)("slotRenderEnded",y),w=!0,C.adUnitPath=e.adUnitPath,C.setTargetingValues((B=D.productConfigData,V=null==(o=S.model)?void 0:o.teeTimeInvoice,{DisplayInterstitial:String(null!=(n=B.displayInterstitial)&&n),AllowVipSubs:String(null!=(d=B.allowVipSubs)&&d),HasMemberPricing:String(null!=(v=null==V?void 0:V.hasMemberPricing)&&v),IsHotDeal:String(null!=(b=null==V?void 0:V.isHotDeal)&&b),ChannelId:String(e.channelId),IsGuest:String("guest"===utype||""===utype),IsTrade:String(null!=(p=null==V?void 0:V.isHotDeal)&&p),Golfers:String(null!=(k=null==V?void 0:V.playerCount)?k:""),GreensFees:String(null!=(_=null==(P=null==(I=null==V?void 0:V.pricing)?void 0:I.greensFees)?void 0:P.value)?_:""),TransactionFees:String(null!=(O=null==(j=null==(R=null==V?void 0:V.pricing)?void 0:R.transactionFeesTotal)?void 0:j.value)?O:""),IsRestricted:String(null!=(N=null==V?void 0:V.isReservationRestricted)&&N),Character_Profile:"None"})),C.setupInterstitial("dfp-interstitial-ad-container"),h=setTimeout(()=>{"loading"===m.value&&(x("timeout"),C.setGamSidecartData({source:"fallback",isReady:!0})),h=null},3e3)}),(0,a.onBeforeUnmount)(()=>
1{if(T(),null==k||k(),null==I||I(),w)try{(0,c.E$)("slotDefined",A),y&&(0,c.E$)("slotRenderEnded",y)}catch{}}),k=(0,a.watch)(l,e=>{var t,l,a;let i="success"===m.value||g.value&&"idle"===m.value;e&&i&&"gam"===C.gamSidecartData.source&&C.setGamSidecartData({productId:null!=(t=e.productId)?t:null,productPriceId:null!=(l=e.productPriceId)?l:null,productTypeId:null!=(a=e.productTypeId)?a:null})}),I=(0,a.watch)(E,e=>{("success"===m.value||g.value&&"idle"===m.value)&&"gam"===C.gamSidecartData.source&&C.setGamSidecartData({benefits:e})}),(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,["loading"===m.value||"success"===m.value?((0,a.openBlock)(),(0,a.createBlock)(r.default,{key:0,"skip-auto-setup":!0,onOpened:R,onClosed:j})):(0,a.createCommentVNode)("v-if",!0),P.value?((0,a.openBlock)(),(0,a.createBlock)(i.default,{key:1,visible:P.value,onClosed:O},null,8,["visible"])):(0,a.createCommentVNode)("v-if",!0)],64))}})},20829(e,t,l){l.r(t),l.d(t,{default:()=>r});var a=l(6934);let i={id:"fallback-cta-heading",class:"text-xl font-bold text-gray-900 mb-3"},r=(0,a.defineComponent)({__name:"InterstitialFallbackCta",props:{visible:{type:Boolean},productName:{default:"GolfPass"}},emits:["closed"],setup(e,{emit:t}){let l=(0,a.ref)(null),r=(0,a.ref)(null);function o(){let e=document.querySelector("#AddVIP");e&&(e.checked=!0,e.dispatchEvent(new Event("change",{bubbles:!0}))),t("closed","add-to-cart")}function n(){t("closed","dismiss")}function d(e){"Escape"===e.key?n():"Tab"===e.key&&function(e){if(!l.value)return;let t=l.value.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(0===t.length)return;let a=t[0],i=t[t.length-1];e.shiftKey&&document.activeElement===a?(e.preventDefault(),i.focus()):e.shiftKey||document.activeElement!==i||(e.preventDefault(),a.focus())}(e)}return(0,a.onMounted)(()=>{var t;e.visible&&(r.value=document.activeElement,document.body.style.overflow="hidden",null==(t=l.value)||t.focus())}),(0,a.onBeforeUnmount)(()=>{document.body.style.overflow="",r.value instanceof HTMLElement&&r.value.focus()}),(0,a.watch)(()=>e.visible,async e=>{var t;e?(r.value=document.activeElement,document.body.style.overflow="hidden",await (0,a.nextTick)(),null==(t=l.value)||t.focus()):(document.body.style.overflow="",r.value instanceof HTMLElement&&r.value.focus())}),(t,r)=>e.visible?((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:0,class:"pointer-events-auto fixed inset-0 z-[9999] flex items-center justify-center bg-black/60",onClick:(0,a.withModifiers)(n,["self"]),onKeydown:d},[(0,a.createElementVNode)("div",{ref_key:"dialogRef",ref:l,role:"dialog","aria-modal":"true","aria-labelledby":"fallback-cta-heading",tabindex:"-1",class:"relative w-full max-w-md mx-4 p-6 bg-white rounded-lg shadow-xl"},[(0,a.createElementVNode)("button",{"data-testid":"fallback-close-btn",type:"button",class:"absolute top-3 right-3 p-1 text-gray-500 hover:text-gray-800","aria-label":"Close",onClick:n},[...r[0]||(r[0]=[(0,a.createElementVNode)("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[(0,a.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])]),(0,a.createElementVNode)("h2",i,"Try "+(0,a.toDisplayString)(e.productName),1),r[1]||(r[1]=(0,a.createElementVNode)("p",{class:"text-gray-600 mb-6"},"Save on every round you book. Exclusive member pricing & instant savings at checkout.",-1)),(0,a.createElementVNode)("button",{"data-testid":"fallback-cta-btn",type:"button",class:"w-full py-3 px-4 bg-green-600 hover:bg-green-700 text-white font-semibold rounded-md transition-colors",onClick:o}," Add "+(0,a.toDisplayString)(e.productName)+" to Cart ",1),(0,a.createElementVNode)("button",{"data-testid":"fallback-dismiss-link",type:"button",class:"w-full mt-3 py-2 text-sm text-gray-500 hover:text-gray-700 underline",onClick:n}," No thanks ")],512)],32)):(0,a.createCommentVNode)("v-if",!0)}})}}]);
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.