import{j as e,d as A,G as M,r as a,U as L,u as U,b as h,c as k,H as E}from"./index-5EzIKamN.js";import{C as P}from"./counter-CIZzcNzl.js";import T from"./getintouch-C72VConf.js";import{R as u}from"./index-CJMgEPx1.js";import{I as G}from"./index-DwFe2m37.js";const R=()=>e.jsxs("div",{className:"container mx-auto mt-5 py-7 px-4 md:px-20",children:[e.jsx("div",{className:"flex flex-col items-center ",children:e.jsx("h5",{className:"capitalize relative text-black font-semibold text-2xl leading-tight tracking-tight text-center",children:"numerous specialist throughout the nation"})}),e.jsx("div",{className:"flex flex-wrap justify-center mt-7",children:A.countless.map(l=>e.jsx("div",{className:"w-full sm:w-1/3 p-4",children:e.jsx("div",{className:"box featured relative flex flex-col h-full justify-between p-4 rounded-md shadow-md",style:{backgroundColor:"#ffff"},children:e.jsxs("div",{className:"flex flex-col items-center mb-3 text-center",children:[e.jsx("link",{rel:"preload",href:l.image,as:"image",type:"image/webp"}),e.jsx("img",{src:l.image,className:"object-cover",width:50,alt:l.title}),e.jsx("h2",{className:"text-black font-semibold text-lg mt-4",children:l.title}),e.jsx("span",{className:"text-[#494a4d] font-normal text-sm mt-1 leading-tight tracking-tight p-2",children:l.description})]})})},l.id))})]}),o="/assets/girlpic-yWuRwzzP.webp",C=()=>e.jsx("div",{className:"container mx-auto px-4 md:px-24 md:py-8 mt-4 md:mt-2",children:e.jsxs("div",{className:"flex flex-col md:flex-row mb-4 pt-5 pb-5 bg-white",style:{borderRadius:"10px 0px 0px 0px",opacity:.9,background:"rgba(51, 141, 251, 0.25)",boxShadow:"0px 4px 4px 0px rgba(0, 0, 0, 0.25)"},children:[e.jsx("div",{className:"w-full md:w-5/12 pr-0 md:pr-8",children:e.jsx("ul",{className:"flex flex-col gap-4 mt-10 ml-10 font-bold",children:Array.from({length:5}).map((l,d)=>e.jsx("li",{className:"bg-gray-100 h-6 w-3/4 mb-3 rounded"},d))})}),e.jsx("div",{className:"w-full md:w-3/4 mt-5 md:mt-0 mr-10",children:e.jsx("div",{className:"flex flex-wrap justify-center",children:Array.from({length:2}).map((l,d)=>e.jsx("div",{className:"w-full sm:w-1/2 p-2",children:e.jsxs("div",{className:"box featured relative flex flex-col h-full justify-between items-center rounded-md shadow-md",style:{backgroundColor:"#ffff"},children:[e.jsx("div",{className:"w-full bg-gray-100 h-10 mt-6 mb-6 rounded"}),e.jsx("div",{className:"w-full bg-gray-100 h-24 mt-3 mb-3 rounded"}),e.jsx("div",{className:"w-full flex flex-col items-center space-y-4",children:Array.from({length:3}).map((j,i)=>e.jsx("span",{className:"w-full bg-gray-100 h-8 mb-4 rounded"},i))}),e.jsx("div",{className:"w-full bg-gray-100 h-12 mt-6 rounded"})]})},d))})})]})});function p(l){return M({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12h-2.7c0 5.128-4.172 9.3-9.3 9.3-5.128 0-9.3-4.172-9.3-9.3 0-5.128 4.172-9.3 9.3-9.3V0Zm7.4 2.583-7.505 9.371L8.388 9.08l-2.002 2.436 4.741 3.888a1.573 1.573 0 0 0 2.231-.233l8.504-10.617L19.4 2.583Z"},child:[]}]})(l)}const Z=()=>{const{state:{user:l,country:d,isAuthenticated:j}}=a.useContext(L),[i,b]=a.useState(!1),[n,B]=a.useState(null),[g,w]=a.useState(!0),[y,F]=a.useState(null),[x,Y]=a.useState("US"),m=U(),[$,W]=a.useState("");a.useEffect(()=>{W(window.location.href)},[]),a.useEffect(()=>{window.scrollTo(0,0)},[]),a.useEffect(()=>{setTimeout(()=>{fetch("https://api.wishgeeks.com/membership/get-pricing-plans").then(t=>t.json()).then(t=>{B(t),w(!1)}).catch(t=>{F("Failed to load membership data"),w(!1)})},1e3)},[]);const N=t=>{b(t==="Annually")},D={US:"$",India:"₹",Australia:"A$",Bangladesh:"৳",UK:"£",Canada:"C$"},S=t=>{var s,v;const c=D[x];let r;return i?r=(s=t.annualPrice)==null?void 0:s[x.toLocaleLowerCase()]:r=(v=t.price)==null?void 0:v[x.toLocaleLowerCase()],r?`${c}${r}`:"Not available"},I=t=>{if(!j)return m(`/auth?returnUrl=${location.pathname}`);i?m(`/payment?id=${t._id}&plan=yearly`,{state:{plan:t}}):m(`/payment?id=${t._id}&plan=monthly`,{state:{plan:t}})};let f=()=>{var t=document.getElementById("Monthly");t.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{window.scrollBy(0,-100)},500)};return g?e.jsxs("div",{children:[e.jsxs("div",{className:"relative h-[84vh] md:h-[500px]",id:"home",children:[e.jsx("div",{className:"absolute inset-0 bg-cover bg-no-repeat bg-center h-full ",style:{backgroundImage:`url(${h})`},"aria-label":"Banner Image"}),e.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-20"}),e.jsx("div",{className:"absolute inset-0 flex items-end justify-center",children:e.jsxs("div",{className:"max-w-6xl mx-auto grid grid-cols-1 md:grid-cols-2 items-stretch gap-6",children:[e.jsxs("div",{className:"flex flex-col justify-start items-start p-4",children:[e.jsx("p",{className:"text-[23px] md:text-[42px] font-semibold text-white leading-tight",children:"Fulfilling Your Technical Wishes With Wish Geeks"}),e.jsx("p",{className:"font-semibold text-white text-[16px] md:text-[22px] mt-4",children:"You Wish, We Fulfill - Our Promise To You"}),e.jsxs("div",{className:"flex justify-center md:justify-start mt-10 items-center w-full md:w-1/2",children:[e.jsx("button",{className:"p-3 font-bold flex items-center rounded-lg justify-center cursor-pointer bg-white text-[#338DFB] w-full text-[18px] sm:text-[16px]",onClick:()=>{f()},children:"Choose your Membership"}),e.jsx(k,{className:"ml-2 text-white text-xl"})]})]}),e.jsxs("div",{className:"flex items-center justify-center h-full",children:[e.jsx("link",{rel:"preload",href:o,as:"image",type:"image/webp"}),e.jsx("img",{src:o,alt:"Description of Image",className:"object-cover w-full h-full"})]})]})})]}),e.jsx(C,{})]}):y?e.jsxs("div",{children:["Error: ",y]}):e.jsxs(e.Fragment,{children:[e.jsxs(E,{children:[e.jsx("title",{children:"Membership - Wish Geeks"}),e.jsx("meta",{name:"description",content:"Join our exclusive membership for premium benefits, expert insights, and special offers. Sign up today and take your experience to the next level!"}),e.jsx("link",{rel:"canonical",href:$})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"relative h-[84vh] md:h-[500px]",id:"home",children:[e.jsx("link",{rel:"preload",href:h,as:"image",type:"image/webp"}),e.jsx("div",{className:"absolute inset-0 bg-cover bg-no-repeat bg-center h-full ",style:{backgroundImage:`url(${h})`},"aria-label":"Banner Image"}),e.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-20"}),e.jsx("div",{className:"absolute inset-0 flex items-end justify-center",children:e.jsxs("div",{className:"max-w-6xl mx-auto grid grid-cols-1 md:grid-cols-2 items-stretch gap-6",children:[e.jsxs("div",{className:"flex flex-col justify-start items-start p-4",children:[e.jsx("p",{className:"text-[23px] md:text-[42px] font-semibold text-white leading-tight",children:"Fulfilling Your Technical Wishes With Wish Geeks"}),e.jsx("p",{className:"font-semibold text-white text-[16px] md:text-[22px] mt-4",children:"You Wish, We Fulfill - Our Promise To You"}),e.jsxs("div",{className:"flex justify-center md:justify-start mt-10 items-center w-full md:w-1/2",children:[e.jsx("button",{className:"p-3 font-bold flex items-center rounded-lg justify-center cursor-pointer bg-white text-[#338DFB] w-full text-[18px] sm:text-[16px]",onClick:()=>{f()},children:e.jsx("h1",{children:" Choose your Membership"})}),e.jsx(k,{className:"ml-2 text-white text-xl cursor-pointer",onClick:()=>{f()}})]})]}),e.jsxs("div",{className:"flex items-center justify-center h-full",children:[e.jsx("link",{rel:"preload",href:o,as:"image",type:"image/webp"}),e.jsx("img",{src:o,alt:"Description of Image",className:"object-cover w-full h-full"})]})]})})]}),e.jsx("div",{className:"px-4 lg:px-24 md:py-8 mt-4 md:mt-2 mx-auto max-w-[1200px]",id:"Monthly",style:{background:"rgba(51, 141, 251, 0.11)",borderRadius:"10px"},children:e.jsxs("div",{className:"flex flex-col md:flex-row mb-4 pt-5 pb-5",children:[e.jsxs("div",{className:"w-full md:w-5/12 pr-0 md:pr-8 my-auto",children:[e.jsx("div",{className:"flex flex-col md:flex-row items-center ",children:e.jsx("div",{className:"bg-[#338DFB] p-2 rounded-lg",children:e.jsxs("div",{className:"flex justify-center space-x-4 mx-auto",style:{width:"326px",height:"50px",opacity:"0.9"},children:[e.jsx("button",{onClick:()=>N("Monthly"),className:`border border-[#338DFB] rounded-lg p-2 font-semibold flex items-center justify-center w-full cursor-pointer md:w-1/2 ${i?"bg-[#338DFB] text-white":"bg-white text-[#338DFB]"} w-full md:w-1/2`,children:"Monthly"}),e.jsxs("button",{onClick:()=>N("Annually"),className:`border border-[#338DFB] rounded-lg p-2 font-semibold flex items-center justify-center cursor-pointer w-full md:w-1/2 ${i?"bg-white text-[#338DFB]":"bg-[#338DFB] text-white"}`,children:["Annually "," (10 + 2)"]})]})})}),e.jsx("ul",{className:"flex flex-col gap-4 mt-10 md:mt-16 font-bold hidden md:block",style:{width:"100%",maxWidth:"356px",height:window.innerWidth>=768?"346px":"auto",opacity:"0.9",gap:"0px",top:window.innerWidth>=768?"668px":"auto",left:window.innerWidth>=768?"114px":"auto"},children:n.features.map((t,c)=>e.jsx("li",{className:`text-sm font-normal mb-0.5 ${c%2===0?"text-black":"text-[#338DFB]"}`,style:{fontWeight:500,lineHeight:"25.92px",textAlign:"left",fontSize:c%2===0?"15px":"13px"},children:t.description},c))})]}),e.jsxs("div",{className:"w-full md:w-3/4 mt-5 md:mt-0 mr-10 md:mr-0 lg:mr-auto",children:[i&&e.jsxs("div",{className:"flex items-start justify-center",children:[e.jsx(G,{className:"text-blue-500 mr-2 text-[12px] mt-[3.5px]"}),e.jsx("p",{className:"text-blue-500 text-base font-semibold",children:"Pay for 10 months and get 2 months free"})]}),e.jsx("div",{className:"flex flex-wrap justify-center",children:g?e.jsx(C,{}):n.pricingPlans.map((t,c)=>e.jsx("div",{className:"w-full sm:w-1/2 p-2",children:e.jsxs("div",{className:"box featured relative flex flex-col h-full justify-between items-center rounded-md",style:{backgroundColor:"#ffff",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)"},children:[e.jsx("div",{className:"w-full",children:e.jsx("h2",{className:"font-bold text-2xl text-[#3B82F6] text-center py-4",children:t.title})}),e.jsx("div",{className:"w-full",children:e.jsx("div",{className:"flex flex-col items-center text-center bg-[#3B82F6] w-full py-4 mt-1",children:e.jsx("span",{className:"text-[#fff] font-bold text-xl leading-tight tracking-tight",children:S(t)})})}),e.jsx("div",{className:"w-full flex flex-col items-center border-b border-gray-300",children:t.title==="Wish Geeks Lite"?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"block sm:hidden w-full flex flex-col items-center",children:t.features.slice(0,2).map((r,s)=>e.jsxs("div",{className:`w-full flex justify-center py-4 ${s!==t.features.length-1?"border-b border-gray-300":""}`,children:[e.jsx("div",{className:"hidden md:flex items-center justify-center",children:r?e.jsx(p,{className:"object-cover w-[20px] h-[20px] text-green-500 font-extrabold"}):e.jsx("div",{className:"flex items-center justify-center rounded-full",children:e.jsx(u,{className:"object-cover w-[20px] h-[20px] text-red-500 font-extrabold"})})}),e.jsx("div",{className:"flex sm:hidden justify-center w-full ",children:e.jsx("p",{className:`text-sm ${s%2===0?"text-black":"text-blue-500"}`,children:n.features[s].description})})]},s))}),e.jsx("div",{className:"hidden sm:block w-full flex flex-col items-center",children:t.features.map((r,s)=>e.jsxs("div",{className:`w-full flex justify-center py-4 ${s!==t.features.length-1?"border-b border-gray-300":""}`,children:[e.jsx("div",{className:"hidden md:flex items-center justify-center",children:r?e.jsx(p,{className:"object-cover w-[20px] h-[20px] text-green-500 font-extrabold"}):e.jsx("div",{className:"flex items-center justify-center rounded-full",children:e.jsx(u,{className:"object-cover w-[20px] h-[20px] text-red-500 font-extrabold"})})}),e.jsx("div",{className:"flex md:hidden justify-start w-full",children:e.jsx("p",{className:"text-sm",children:n.features[s].description})})]},s))})]}):e.jsx("div",{className:"w-full flex flex-col items-center",children:t.features.map((r,s)=>e.jsxs("div",{className:`w-full flex justify-center py-4 ${s!==t.features.length-1?"border-b border-gray-300":""}`,children:[e.jsx("div",{className:"hidden md:flex items-center justify-center",children:r?e.jsx(p,{className:"object-cover w-[20px] h-[20px] text-green-500 font-extrabold"}):e.jsx("div",{className:"flex items-center justify-center rounded-full",children:e.jsx(u,{className:"object-cover w-[20px] h-[20px] text-red-500 font-extrabold"})})}),e.jsx("div",{className:"flex md:hidden justify-center w-full",children:e.jsx("p",{className:`text-sm ${s%2===0?"text-black":"text-blue-500"}`,children:n.features[s].description})})]},s))})}),e.jsx("button",{onClick:()=>I(t),className:"border border-[#338DFB] rounded-lg p-2 font-semibold flex items-center justify-center cursor-pointer bg-[#338DFB] text-white w-2/4 mt-6 py-2 text-base font-inter mb-5",children:"Buy Now"})]})},c))})]})]})}),e.jsx(P,{}),e.jsx(R,{}),e.jsx(T,{})]})]})};export{Z as default};