1"use strict";(globalThis.webpackChunkion_golf_ranking=globalThis.webpackChunkion_golf_ranking||[]).push([[15],{5015(e,t,n){n.r(t),n.d(t,{default:()=>b});var i=n(5840),r=n(9950),o=n(3149),l=n(134),s=n(4279),a=n(8949),d=n(6266),c=n(6673),p=n(3685),x=n(1365),g=n(4414);const u={headingContainer:{padding:"0 10%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}};let h={background:"linear-gradient(45deg, #3F993D, #1B4619)","-webkit-background-clip":"text",backgroundClip:"text",color:"transparent"};const m=e=>{if("string"!==typeof e)return e;if(e.includes("**")){return e.split(/(\*\*.*?\*\*)/g).map((e,t)=>e.startsWith("**")&&e.endsWith("**")?(0,g.jsx)("strong",{children:e.slice(2,-2)},t):e)}return e},f="Ability to enter your Academic Information. (ONLY visible to College Coaches)",y="Save 50% on Vortex rangefinders ($150\u2013$300 savings)";function v(e){let{packages:t=[],loading:n}=e;const{firebaseUser:o}=(0,r.useContext)(a.c),l=(0,c.W6)(),[s,x]=(0,r.useState)(!0),m=e=>{o?l.push(`/pricing/${e._id}`):l.push(`/register?redirect=/pricing/${e._id}`)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(d.A,{children:[(0,g.jsxs)("div",{style:u.headingContainer,children:[(0,g.jsxs)("h1",{style:{textAlign:"center",fontSize:"2.4rem",margin:0,marginTop:50,fontWeight:"600"},children:["Membership That Gives You an ",(0,g.jsx)("span",{style:h,children:"Edge"})," on the Competition"]}),(0,g.jsx)("p",{style:{textAlign:"center",color:"grey",fontSize:"1.2rem",lineHeight:"1.6"},children:"Unlock class rankings and extensive statistics, compare yourself to other players, see what you fit at the next level, and build a tournament game plan with your coaches."})]}),(0,g.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:"2rem",marginBottom:"1rem"},children:(0,g.jsxs)("div",{style:{width:"187px",height:"48px",backgroundColor:"#f6f6f6",border:"1px solid rgba(73,73,73,0.08)",borderRadius:"10px",position:"relative",padding:"5px 7.5px",display:"flex",alignItems:"center",gap:"0"},children:[(0,g.jsx)("div",{style:{position:"absolute",width:"86px",height:"38px",backgroundColor:"#05640b",borderRadius:"6px",left:s?"93.5px":"7.5px",top:"5px",transition:"left 0.3s ease"}}),(0,g.jsx)("button",{onClick:()=>x(!1),style:{width:"86px",height:"38px",backgroundColor:"transparent",border:"none",fontSize:"15px",fontWeight:"400",color:s?"black":"white",cursor:"pointer",position:"relative",zIndex:1,transition:"color 0.3s ease",display:"flex",alignItems:"center",justifyContent:"center"},children:"Free"}),(0,g.jsx)("button",{onClick:()=>x(!0),style:{width:"86px",height:"38px",backgroundColor:"transparent",border:"none",fontSize:"15px",fontWeight:"400",color:s?"white":"black",cursor:"pointer",position:"relative",zIndex:1,transition:"color 0.3s ease",display:"flex",alignItems:"center",justifyContent:"center"},children:"Premium"})]})})]}),(0,g.jsx)(d.A,{maxWidth:1600,children:n?(0,g.jsx)(p.A,{children:(0,g.jsx)(i.w2,{name:"dots"})}):(0,g.jsx)(g.Fragment,{children:s?(0,g.jsx)(i.lO,{style:{padding:0},children:(0,g.jsx)(i.ln,{className:"packages-grid",children:Array.isArray(t)&&t.map((e,t)=>{var n,i;if(0===(null===e||void 0===e||null===(n=e.prices)||void 0===n?void 0:n.length))return null;return(null===e||void 0===e||null===(i=e.prices)||void 0===i?void 0:i.every(e=>0===e.amount))?null:e.enabled?(0,g.jsx)(j,{item:e,handleSelectedPackage:m,firebaseUser:o,index:t},e._id):null})})}):(0,g.jsx)("div",{style:{display:"flex",justifyContent:"center",width:"100%"},children:(0,g.jsx)(i.lO,{style:{padding:0,maxWidth:"400px"},children:(0,g.jsx)(i.ln,{style:{justifyContent:"center"},children:Array.isArray(t)&&t.map((e,t)=>{var n,i;if(0===(null===e||void 0===e||null===(n=e.prices)||void 0===n?void 0:n.length))return null;return(null===e||void 0===e||null===(i=e.prices)||void 0===i?void 0:i.every(e=>0===e.amount))&&e.enabled?(0,g.jsx)(j,{item:e,handleSelectedPackage:m,firebaseUser:o,index:t},e._id):null})})})})})})]})}function j(e){var t,n,r,o;let{item:l,handleSelectedPackage:a,firebaseUser:d,index:p}=e;const u=(0,c.W6)(),h=!0===(null===l||void 0===l?void 0:l.isPromotional),v="One-time"===(null===l||void 0===l||null===(t=l.prices)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.billingPeriod),j=null===l||void 0===l||null===(r=l.prices)||void 0===r?void 0:r.every(e=>0===e.amount);let b=!(Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)>500);
1const{features:S,priceNote:k}=(e=>{var t;if(!x.mj.includes(e._id))return{features:e.features,priceNote:e.priceNote};let n=e.features;return Array.isArray(e.features)&&e.features.length>0&&Array.isArray(null===(t=e.features[0])||void 0===t?void 0:t.items)?n=e.features.map((t,n)=>n===e.features.length-1?{...t,items:[...t.items||[],f,y]}:t):Array.isArray(e.features)&&(n=[...e.features,f,y]),{features:n,priceNote:e.priceNote||"*15% Junior Tour Partner Discount ($170/year or $16/mo) for members of a TUGR partner junior tour. If your tour is a partner, you'll receive a unique discount code from them. If your tour isn't a partner, ask them to contact [email protected]."}})(l),W=x.mj.includes(l._id);return(0,g.jsxs)("div",{style:{minWidth:"296px",maxWidth:j?"400px":"296px",width:"100%",backgroundColor:"white",border:h?"2px solid #16a249":"1px solid #e6e6e6",borderRadius:"8px",padding:"0",position:"relative",cursor:"pointer",height:"auto",display:"flex",flexDirection:"column",overflow:"hidden",alignSelf:"stretch"},className:"package-card",onClick:()=>j?u.push("/"):a(l),children:[h&&(0,g.jsx)("div",{style:{backgroundColor:s.T.green,color:"white",padding:"0.5rem",textAlign:"center",fontSize:"17px",fontWeight:"700",letterSpacing:"0.5px",height:"34px",display:"flex",alignItems:"center",justifyContent:"center"},children:l.promotionalBannerText||"FEATURED OFFER"}),(0,g.jsxs)("div",{style:{padding:"0 25px",flex:1,display:"flex",flexDirection:"column",marginTop:h?"1rem":"0",paddingBottom:"0"},children:[(0,g.jsx)("h2",{style:{fontSize:"22px",fontWeight:"700",textAlign:"center",margin:"0.75rem 0",lineHeight:"28px",color:"#262626",minHeight:h?"56px":"28px"},children:l.name}),(0,g.jsx)("p",{style:{fontSize:"13px",color:"#737373",textAlign:"center",lineHeight:"18px",margin:"0.5rem 0",flex:"0 0 auto"},children:l.description}),(0,g.jsx)("div",{style:{textAlign:"center",margin:"1rem 0"},children:((e,t,n)=>{const i=function(e){if(!e||0===e.length)return{amount:0,interval:"mo"};const t=e.find(e=>"month"===e.interval&&!1!==e.active);if(t){return{amount:Number.isInteger(t.amount)?t.amount:t.amount.toFixed(2),interval:"mo"}}const n=e.find(e=>"year"===e.interval&&!1!==e.active);if(n){return{amount:Number.isInteger(n.amount)?n.amount:n.amount.toFixed(2),interval:"year"}}const i=e[0];return{amount:Number.isInteger(i.amount)?i.amount:i.amount.toFixed(2),interval:"year"===i.interval?"year":"mo"}}(null===l||void 0===l?void 0:l.prices);if(null===l||void 0===l||null===(e=l.prices)||void 0===e?void 0:e.every(e=>0===e.amount))return(0,g.jsx)("span",{style:{fontSize:"26px",fontWeight:"700",color:s.T.green},children:"FREE"});const r=l.priceCallout?(0,g.jsx)("div",{style:{fontSize:"18px",color:s.T.green,fontWeight:"700",marginBottom:"6px",textTransform:"uppercase",letterSpacing:"0.5px",textShadow:"0 0 8px rgba(5, 100, 11, 0.4), 0 0 16px rgba(5, 100, 11, 0.2)"},children:l.priceCallout}):null,o=k?k.replace(/\/month/g,"/mo"):null,a=o?(0,g.jsx)("div",{style:{fontSize:"11px",color:"#737373",fontStyle:"italic",marginTop:"8px",lineHeight:"1.4",textAlign:"left",padding:"0 5px"},children:o}):null;if(l.pricingDisplayText){const e=e=>{const t=e.replace(/\/month/g,"/mo");if(t.includes(" or ")){const[e,n]=t.split(" or "),i=e=>e.split(/(\$[\d.]+|\/year|\/mo|\/month)/g).filter(Boolean).map((e,t)=>{if(e.startsWith("$"))return(0,g.jsx)("span",{style:{fontSize:"26px",fontWeight:"700",color:s.T.green},children:e},t);const n="/month"===e?"/mo":e;return(0,g.jsx)("span",{style:{fontSize:"14px",fontWeight:"400",color:s.T.green},children:n},t)});return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{children:i(e)}),(0,g.jsx)("div",{style:{fontSize:"14px",color:s.T.green,fontWeight:"400"},children:"or"}),(0,g.jsx)("div",{children:i(n)})]})}return t.split(/(\$[\d.]+|\/year|\/mo|\/month)/g).filter(Boolean).map((e,t)=>{if(e.startsWith("$"))return(0,g.jsx)("span",{style:{fontSize:"26px",fontWeight:"700",color:s.T.green},children:e},t);const n="/month"===e?"/mo":e;return(0,g.jsx)("span",{style:{fontSize:"14px",fontWeight:"400",color:s.T.green},children:n},t)})};return(0,g.jsxs)(g.Fragment,{children:[r,(0,g.jsx)("div",{style:{lineHeight:"1.4"},children:e(l.pricingDisplayText)}),a]})}var d,c;if(v)return(0,g.jsxs)(g.Fragment,{children:[r,(0,g.jsxs)("span",{style:{fontSize:"26px",fontWeight:"700",color:s.T.green},children:["$",null===l||void 0===l||null===(d=l.prices)||void 0===d||null===(c=d[0])||void 0===c?void 0:c.amount]}),a]});const p=null===l||void 0===l||null===(t=l.prices)||void 0===t?void 0:t.find(e=>"year"===e.interval&&!1!==e.active),x=null===l||void 0===l||null===(n=l.prices)||void 0===n?void 0:n.find(e=>"month"===e.interval&&!1!==e.active);return p&&x?(0,g.jsxs)(g.Fragment,{children:[r,(0,g.jsxs)("div",{children:[(0,g.jsxs)("span",{style:{fontSize:"26px",fontWeight:"700",color:s.T.green},children:["$",p.amount]}),(0,g.jsx)("span",{style:{fontSize:"14px",color:s.T.green,fontWeight:"400"},children:"/year"})]}),(0,g.jsx)("div",{style:{fontSize:"14px",color:s.T.green,fontWeight:"400"},children:"or"}),(0,g.jsxs)("div",{children:[(0,g.jsxs)("span",{style:{fontSize:"26px",fontWeight:"700",color:s.T.green},children:["$",x.amount]}),(0,g.jsx)("span",{style:{fontSize:"14px",color:s.T.green,fontWeight:"400"},children:"/mo"})]}),a]}):(0,g.jsxs)(g.Fragment,{children:[r,(0,g.jsxs)("span",{style:{fontSize:"26px",fontWeight:"700",color:s.T.green},children:["$",i.amount]}),(0,g.jsxs)("span",{style:{fontSize:"14px",color:s.T.green,fontWeight:"400"},children:["/",i.interval]}),a]})})()}),(0,g.jsxs)("div",{style:{flex:1,overflowY:"visible",marginBottom:"0.75rem"},children:[l.includesFrom&&(0,g.jsxs)("p",{style:{fontWeight:"600",fontSize:"13px",marginBottom:"10px",color:"#262626"},children:[l.includesFrom,", Plus:"]}),Array.isArray(S)&&S.length>0&&Array.isArray(null===(o=S[0])||void 0===o?void 0:o.items)?S.map((e,t)=>{var n;return(0,g.jsxs)("div",{style:{marginBottom:"12px"},children:[e.group&&(0,g.jsx)("p",{style:{fontWeight:"600",fontSize:"13px",marginBottom:"4px",color:"#262626"},children:e.group}),(0,g.jsx)("ul",{style:{listStyle:"none",padding:0,margin:0},children:null===(n=e.items)||void 0===n?void 0:n.map((e,t)=>(0,g.jsxs)("li",{style:{marginBottom:"4px",paddingLeft:"13px",position:"relative",fontSize:"13px",lineHeight:"18px",color:"#262626"},children:[(0,g.jsx)("span",{style:{position:"absolute",left:0,color:s.T.green,fontWeight:"bold",fontSize:"15px"},children:"\u2022"}),m(e)]},t))})]},t)}):(0,g.jsx)("ul",{style:{listStyle:"none",padding:0,margin:0,fontSize:"13px",lineHeight:"18px",color:"#262626"},children:Array.isArray(S)&&S.map((e,t)=>(0,g.jsxs)("li",{style:{marginBottom:"7px",paddingLeft:"13px",position:"relative"},children:[(0,g.jsx)("span",{style:{position:"absolute",left:0,color:s.T.green,fontWeight:"bold",fontSize:"15px"},children:"\u2022"}),m(e)]},t))})]}),W&&(0,g.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:b?3:4,marginBottom:"12px"},children:[(0,g.jsx)("span",{style:{fontFamily:"Montserrat, Avenir, Arial, Helvetica, sans-serif",fontWeight:"500",fontSize:b?10:11,color:"#737373",whiteSpace:"nowrap"},children:"Rangefinder partner"}
1),(0,g.jsx)("img",{src:"/assets/vortex_logo_black.png",alt:"Vortex",style:{height:b?36:44,width:"auto",display:"block"}})]}),(0,g.jsxs)("div",{style:{marginTop:"auto"},children:[(0,g.jsx)("div",{style:{marginBottom:"0.75rem"},children:(0,g.jsx)(i.Jm,{expand:"block",fill:"solid",style:{"--background":"#05640b","--border-radius":"6px",fontSize:"11.5px",height:"44px",textTransform:"uppercase",fontWeight:"700",whiteSpace:"normal",lineHeight:"1.2"},onClick:e=>{e.stopPropagation(),j?u.push("/"):a(l)},children:j?"Stay Free":l.buttonText||(d?"Get Started":`Subscribe to Get ${l.name}`)})}),(0,g.jsx)("p",{style:{textAlign:"center",fontSize:"12.5px",fontStyle:"italic",fontWeight:"600",color:"#000",marginBottom:"0.75rem"},children:"Pro Ranking"===l.name?"Pro Rankings Only":"Junior Golf Rankings Only"})]})]})]})}function b(e){let{openRegisterModal:t}=e;const{userData:n}=(0,r.useContext)(a.c),[c]=(0,l.Ay)("/subscriptionPackage/publicGetList");return(0,g.jsxs)(i.AO,{children:[(0,g.jsx)(o.A,{title:"Subscriptions"}),(0,g.jsx)(i.W9,{children:null!==n&&void 0!==n&&n.isSubscribed?(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(d.A,{children:(0,g.jsxs)("div",{style:{backgroundColor:"white",borderRadius:10,padding:20,display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[(0,g.jsx)("h2",{style:{marginTop:20,color:s.T.black,fontWeight:"600"},children:"Already a Subscriber"}),(0,g.jsxs)("div",{style:{fontSize:14,fontWidth:"600"},children:["For more detail go to your account page"," "]}),(0,g.jsxs)("div",{style:{fontSize:14,fontWidth:"600",marginTop:10},children:["If you want to upgrade to another package please contact us at [email protected]"," "]}),(0,g.jsx)("br",{}),(0,g.jsx)(i.Jm,{routerLink:"/account",routerDirection:"none",children:"My Account"})]})})}):(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(v,{loading:c.loading,packages:null===c||void 0===c?void 0:c.data,openRegisterModal:t})})})]})}}}]);
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.