1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[259],{5917:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},5937:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]])},17181:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},17620:(e,t,s)=>{s.d(t,{L4:()=>h,c:()=>p,iI:()=>d,nb:()=>x,qU:()=>m,rj:()=>y});var a=s(75469),i=s(13203),r=s(22454),n=s(99776),o=s(80549),l=s(12115),c=s(18720);let d=["journey-items"],u=[];function h(){let[e,t]=(0,l.useState)({token:null,ready:!1});return(0,l.useEffect)(()=>t({token:(0,i.gf)(),ready:!0}),[]),e}let m=()=>{var e;let{token:t,ready:s}=h(),i=(0,r.I)({queryKey:d,queryFn:async()=>{var e;return t&&(null==(e=(await (0,a.A)(t).get("/api/journey/items")).data)?void 0:e.data)||[]},enabled:!!t});return{data:null!=(e=i.data)?e:u,isLoading:i.isLoading,isError:i.isError,error:i.error,isPaused:"paused"===i.fetchStatus,isSuccess:i.isSuccess,isRefetching:i.isRefetching,refetch:i.refetch,hasToken:!!t,tokenReady:s}},p=()=>{let{token:e}=h(),t=(0,n.jE)();return(0,o.n)({mutationFn:async t=>{if(!e)throw Error("Not signed in");return(await (0,a.A)(e).post("/api/journey/items",{offeringId:t})).data},onSuccess:e=>{if(null==e?void 0:e.duplicate)return void(0,c.oR)("Already on your path");t.invalidateQueries({queryKey:d}),c.oR.success("Charted on your journey")},onError:()=>c.oR.error("Could not chart this session. Try again.")})},x=()=>{let{token:e}=h(),t=(0,n.jE)();return(0,o.n)({mutationFn:async t=>{if(!e)throw Error("Not signed in");return(await (0,a.A)(e).put("/api/journey/items/reorder",{orderedIds:t})).data},onSuccess:()=>t.invalidateQueries({queryKey:d}),onError:()=>{c.oR.error("Could not save the new order."),t.invalidateQueries({queryKey:d})}})},y=()=>{let{token:e}=h(),t=(0,n.jE)();return(0,o.n)({mutationFn:async t=>{let{id:s,action:i}=t;if(!e)throw Error("Not signed in");return(await (0,a.A)(e).put("/api/journey/items/".concat(s),{action:i})).data},onSuccess:e=>{t.invalidateQueries({queryKey:d}),(null==e?void 0:e.message)&&c.oR.success(e.message)},onError:()=>c.oR.error("Could not update that session. Try again.")})}},18464:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(95155),i=s(95740),r=s(17620);function n(e){let{offeringId:t,className:s="",size:n="md"}=e,{token:o}=(0,r.L4)(),{data:l}=(0,r.qU)(),c=(0,r.c)();if(!o)return null;let d=l.some(e=>{var s;return(null==(s=e.offeringId)?void 0:s._id)===t&&"dismissed"!==e.status});return(0,a.jsx)("button",{type:"button","aria-label":d?"On your constellation":"Chart this session",title:d?"On your constellation":"Chart this session",disabled:c.isPending,onClick:e=>{e.preventDefault(),e.stopPropagation(),c.mutate(t)},className:"".concat("sm"===n?"h-7 w-7":"h-9 w-9"," inline-flex items-center justify-center rounded-full border transition-colors disabled:opacity-50 ").concat(d?"border-purple-300 bg-purple-100 text-purple-600":"border-gray-200 bg-white/90 text-gray-400 hover:border-purple-200 hover:text-purple-500"," ").concat(s),children:(0,a.jsx)(i.A,{className:"sm"===n?"h-3.5 w-3.5":"h-4 w-4",fill:d?"currentColor":"none"})})}},20064:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])},26983:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},36570:(e,t,s)=>{s.d(t,{A:()=>M});var a=s(95155),i=s(12115),r=s(90368),n=s(60709),o=s(65229),l=s(18720),c=s(5937),d=s(69141),u=s(60890);let h={paid_chat:(0,a.jsx)(c.A,{size:18,className:"text-blue-500"}),audio_call:(0,a.jsx)(d.A,{size:18,className:"text-green-500"}),video_call:(0,a.jsx)(u.A,{size:18,className:"text-purple-500"}),session:(0,a.jsx)(u.A,{size:18,className:"text-purple-500"})};function m(e){let{services:t,onSelect:s}=e;return(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:"Choose a service to gift:"}),t.map((e,t)=>(0,a.jsxs)("button",{onClick:()=>s(e),className:"w-full flex items-center gap-3 p-4 rounded-xl border border-gray-200 hover:border-pink-300 hover:bg-pink-50/50 transition text-left",children:[(0,a.jsx)("div",{className:"w-10 h-10 rounded-full bg-gray-100 flex items-center justify-center flex-shrink-0",children:h[e.type]||(0,a.jsx)(c.A,{size:18,className:"text-gray-400"})}),(0,a.jsx)("div",{className:"flex-1 min-w-0",children:(0,a.jsx)("p",{className:"text-sm font-medium text-gray-900 truncate",children:e.name})}),(0,a.jsxs)("span",{className:"text-sm font-bold text-[#C71585]",children:["$",e.price]})]},t))]})}var p=s(35299),x=s(5917),y=s(15239);function f(e){let{value:t,onChange:s,onContinue:r}=e,[n,o]=(0,i.useState)(null),[l,c]=(0,i.useState)(!1),d=(e,a)=>{s({...t,[e]:a})},u=(0,i.useCallback)(async e=>{if(!e||e.length<2)return void o(null);c(!0);try{var t;let s=await fetch("/api/public-profile/".concat(e),{signal:AbortSignal.timeout(5e3)}),a=await s.json();a.success&&(null==(t=a.data)?void 0:t.expert)?o({found:!0,name:a.data.expert.full_name,pic:a.data.expert.profile_pic}):o({found:!1})}catch(e){o({found:!1})}c(!1)},[]);(0,i.useEffect)(()=>{let e=setTimeout(()=>{t.username&&u(t.username)},500);return()=>clearTimeout(e)},[t.username,u]);let h=t.name.trim()&&(t.username&&(null==n?void 0:n.found)||t.phone.trim());return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Recipient's Name"}),(0,a.jsx)("input",{type:"text",value:t.name,onChange:e=>d("name",e.target.value),placeholder:"Their name",className:"w-full px-4 py-3 rounded-xl border border-gray-200 text-sm focus:border-pink-300 focus:ring-1 focus:ring-pink-200 outline-none transition"})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:["Their iAscend
1Username ",(0,a.jsx)("span",{className:"text-gray-400 font-normal",children:"(if they have one)"})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("span",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-gray-400 text-sm",children:"@"}),(0,a.jsx)("input",{type:"text",value:t.username,onChange:e=>d("username",e.target.value.replace(/^@/,"")),placeholder:"username",className:"w-full pl-8 pr-10 py-3 rounded-xl border border-gray-200 text-sm focus:border-pink-300 focus:ring-1 focus:ring-pink-200 outline-none transition"}),l&&(0,a.jsx)(p.A,{size:16,className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 animate-spin"})]}),(null==n?void 0:n.found)&&(0,a.jsxs)("div",{className:"flex items-center gap-2 mt-2 px-3 py-2 bg-green-50 rounded-lg",children:[n.pic&&(0,a.jsx)(y.default,{src:n.pic,alt:"",width:24,height:24,className:"w-6 h-6 rounded-full object-cover",unoptimized:!0}),(0,a.jsx)(x.A,{size:14,className:"text-green-600"}),(0,a.jsxs)("span",{className:"text-sm text-green-700",children:["Found: ",n.name]})]}),n&&!n.found&&t.username.length>=2&&(0,a.jsx)("p",{className:"text-xs text-gray-400 mt-1",children:"User not found â you can enter their phone below instead"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"flex-1 border-t border-gray-200"}),(0,a.jsx)("span",{className:"text-xs text-gray-400",children:"or"}),(0,a.jsx)("div",{className:"flex-1 border-t border-gray-200"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Their Phone Number"}),(0,a.jsx)("input",{type:"tel",value:t.phone,onChange:e=>d("phone",e.target.value),placeholder:"(555) 123-4567",className:"w-full px-4 py-3 rounded-xl border border-gray-200 text-sm focus:border-pink-300 focus:ring-1 focus:ring-pink-200 outline-none transition"})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:["Their Email ",(0,a.jsx)("span",{className:"text-gray-400 font-normal",children:"(optional)"})]}),(0,a.jsx)("input",{type:"email",value:t.email,onChange:e=>d("email",e.target.value),placeholder:"[email protected]",className:"w-full px-4 py-3 rounded-xl border border-gray-200 text-sm focus:border-pink-300 focus:ring-1 focus:ring-pink-200 outline-none transition"})]}),(0,a.jsx)("button",{onClick:r,disabled:!h,className:"w-full bg-gradient-to-r from-[#D42066] to-[#D12498] text-white rounded-xl py-3 text-sm font-semibold hover:from-[#C01D5C] hover:to-[#BC2090] transition disabled:opacity-50 disabled:cursor-not-allowed mt-2",children:"Continue"})]})}let g=[{label:"30 days",value:30},{label:"60 days",value:60},{label:"90 days",value:90},{label:"6 months",value:180},{label:"1 year",value:365}];function v(e){let{message:t,expirationDays:s,onMessageChange:i,onExpirationChange:r,onContinue:n}=e;return(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Message ",(0,a.jsx)("span",{className:"text-gray-400 font-normal",children:"(optional)"})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("textarea",{value:t,onChange:e=>{e.target.value.length<=300&&i(e.target.value)},placeholder:"This session changed my life. I want you to experience it too.",rows:4,className:"w-full px-4 py-3 rounded-xl border border-gray-200 text-sm focus:border-pink-300 focus:ring-1 focus:ring-pink-200 outline-none transition resize-none"}),(0,a.jsxs)("span",{className:"absolute bottom-3 right-3 text-xs text-gray-400",children:[t.length,"/300"]})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Gift expires in:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:g.map(e=>(0,a.jsx)("button",{onClick:()=>r(e.value),className:"px-4 py-2 rounded-full text-sm font-medium transition ".concat(s===e.value?"bg-[#C71585] text-white":"bg-gray-100 text-gray-600 hover:bg-gray-200"),children:e.label},e.value))})]}),(0,a.jsx)("button",{onClick:n,className:"w-full bg-gradient-to-r from-[#D42066] to-[#D12498] text-white rounded-xl py-3 text-sm font-semibold hover:from-[#C01D5C] hover:to-[#BC2090] transition mt-2",children:"Continue to Payment"})]})}var b=s(78519);function j(e){let{expertName:t,expertPic:s,serviceName:i,servicePrice:r,recipientName:n,recipientPhone:o,expirationDays:l,loading:c,onPay:d}
1=e,u=new Date;u.setDate(u.getDate()+l);let h=u.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"});return(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsxs)("div",{className:"bg-gradient-to-br from-pink-50 to-purple-50 border border-pink-100 rounded-2xl p-5",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,a.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden flex-shrink-0",children:(0,a.jsx)(y.default,{src:s||"/assets/profile.png",alt:t,fill:!0,className:"object-cover",unoptimized:!0})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-gray-900 truncate",children:i}),(0,a.jsxs)("p",{className:"text-xs text-gray-500",children:["with ",t]})]})]}),(0,a.jsxs)("div",{className:"space-y-1.5 text-sm text-gray-600",children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{children:"For:"}),(0,a.jsxs)("span",{className:"font-medium text-gray-900",children:[n,o?" (".concat(o,")"):""]})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{children:"Expires:"}),(0,a.jsx)("span",{className:"font-medium text-gray-900",children:h})]})]})]}),(0,a.jsxs)("div",{className:"flex justify-between items-center py-3 border-t border-b border-gray-100",children:[(0,a.jsx)("span",{className:"text-base font-semibold text-gray-900",children:"Total"}),(0,a.jsxs)("span",{className:"text-xl font-bold text-[#C71585]",children:["$",r.toFixed(2)]})]}),(0,a.jsxs)("button",{onClick:d,disabled:c,className:"w-full bg-gradient-to-r from-[#D42066] to-[#D12498] text-white rounded-xl py-3.5 text-sm font-semibold hover:from-[#C01D5C] hover:to-[#BC2090] transition flex items-center justify-center gap-2 disabled:opacity-70",children:[c?(0,a.jsx)(p.A,{size:18,className:"animate-spin"}):(0,a.jsx)(b.A,{size:18}),c?"Processing...":"Pay with Card"]}),(0,a.jsx)("p",{className:"text-xs text-gray-400 text-center",children:"Your gift will be sent immediately after payment."})]})}var k=s(75426),w=s(17181);function N(e){let{recipientName:t,expertName:s,redemptionCode:r,redemptionLink:o,onDone:l}=e,[c,d]=(0,i.useState)(!1),[u,h]=(0,i.useState)(!1),m=async(e,t)=>{try{await navigator.clipboard.writeText(e),"code"===t?(d(!0),setTimeout(()=>d(!1),2e3)):(h(!0),setTimeout(()=>h(!1),2e3))}catch(e){}},p=async()=>{if(navigator.share)try{await navigator.share({title:"iAscend Gift",text:"I gifted you a session with ".concat(s," on iAscend! Redeem it here:"),url:o})}catch(e){m(o,"link")}else m(o,"link")};return(0,a.jsxs)("div",{className:"text-center space-y-5",children:[(0,a.jsx)("div",{className:"flex items-center justify-center gap-2 text-4xl py-2",children:(0,a.jsx)(n.A,{className:"text-[#C71585]",size:40})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-bold text-gray-900",children:"Your gift is on its way!"}),(0,a.jsxs)("p",{className:"text-sm text-gray-500 mt-2",children:[t," will receive a text message with a link to redeem their session with ",s,"."]})]}),(0,a.jsxs)("div",{className:"bg-gray-50 rounded-xl p-4",children:[(0,a.jsx)("p",{className:"text-xs text-gray-500 mb-1",children:"Redemption Code"}),(0,a.jsx)("p",{className:"text-lg font-mono font-bold text-gray-900 tracking-wider",children:r})]}),(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsxs)("button",{onClick:()=>m(r,"code"),className:"flex-1 flex items-center justify-center gap-2 py-2.5 rounded-xl border border-gray-200 text-sm font-medium text-gray-700 hover:bg-gray-50 transition",children:[c?(0,a.jsx)(x.A,{size:14,className:"text-green-600"}):(0,a.jsx)(k.A,{size:14}),c?"Copied!":"Copy Code"]}),(0,a.jsxs)("button",{onClick:()=>m(o,"link"),className:"flex-1 flex items-center justify-center gap-2 py-2.5 rounded-xl border border-gray-200 text-sm font-medium text-gray-700 hover:bg-gray-50 transition",children:[u?(0,a.jsx)(x.A,{size:14,className:"text-green-600"}):(0,a.jsx)(k.A,{size:14}),u?"Copied!":"Copy Link"]})]}),(0,a.jsx)("p",{className:"text-xs text-gray-400",children:"You'll be notified when they redeem it."}),(0,a.jsxs)("button",{onClick:p,className:"w-full bg-gradient-to-r from-[#D42066] to-[#D12498] text-white rounded-xl py-3 text-sm font-semibold hover:from-[#C01D5C] hover:to-[#BC2090] transition flex items-center justify-center gap-2",children:[(0,a.jsx)(w.A,{size:16}),"Share Gift Link"]}),(0,a.jsx)("button",{onClick:l,className:"w-full text-gray-500 text-sm font-medium py-2 hover:text-gray-700 transition",children:"Done"})]})}var A=s(13203),C=s(20063);function M(e){let{isOpen:t,onClose:s,expert:c,preSelectedService:d,services:u=[]}=e,[h,p]=(0,i.useState)(d?"recipient":"service"),[x,y]=(0,i.useState)(d||null),g=(0,C.useRouter)(),[b,k]=(0,i.useState)({name:"",username:"",phone:"",email:""}),[w,M]=(0,i.useState)(""),[S,P]=(0,i.useState)(90),[z,R]=(0,i.useState)(!1),[E,O]=(0,i.useState)(null);if(!t)return null;let D=async()=>
1{if(x){R(!0);try{let e=(0,A.gf)();if(!e){let e=window.location.pathname+window.location.search;l.oR.message("Sign in to send this gift â we'll bring you right back."),R(!1),g.push("/login".concat(e?"?redirect=".concat(encodeURIComponent(e)):""));return}let t=await fetch("/api/gift/create",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)},body:JSON.stringify({expertId:c.id,serviceType:x.type,serviceName:x.name,servicePrice:x.price,personalMessage:w||void 0,recipientName:b.name,recipientPhone:b.phone||void 0,recipientEmail:b.email||void 0,recipientUsername:b.username||void 0,expirationDays:S})}),s=await t.json();if(s.success&&s.checkoutUrl)window.location.href=s.checkoutUrl;else{let e=s.message||s.error||"",t=e.includes("No such destination")||e.includes("acct_")?"This specialist hasn't completed their payment setup yet. Please try again later.":e||"Something went wrong. Please try again.";l.oR.error(t),R(!1)}}catch(e){l.oR.error("Something went wrong. Please try again."),R(!1)}}},T={service:"Gift a Session with ".concat(c.name),recipient:"Who is this gift for?",message:"Add a personal touch",confirm:"Confirm Your Gift",success:""};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-black/40 z-50",onClick:"success"===h?void 0:s}),(0,a.jsx)("div",{className:"fixed inset-x-0 bottom-0 z-50 md:inset-0 md:flex md:items-center md:justify-center",children:(0,a.jsxs)("div",{className:"bg-white rounded-t-3xl md:rounded-2xl w-full md:max-w-md md:mx-4 max-h-[85vh] flex flex-col overflow-hidden shadow-2xl",style:{animation:"gift-slide-up 300ms cubic-bezier(0.32, 0.72, 0, 1)"},onClick:e=>e.stopPropagation(),children:["success"!==h&&(0,a.jsxs)("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-gray-100 flex-shrink-0",children:["service"!==h&&(0,a.jsx)("button",{onClick:()=>{"recipient"===h?d?s():p("service"):"message"===h?p("recipient"):"confirm"===h&&p("message")},className:"p-1 -ml-1 text-gray-400 hover:text-gray-600 transition",children:(0,a.jsx)(r.A,{size:20})}),(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[(0,a.jsx)(n.A,{size:18,className:"text-[#C71585] flex-shrink-0"}),(0,a.jsx)("h2",{className:"text-base font-semibold text-gray-900 truncate",children:T[h]})]}),(0,a.jsx)("button",{onClick:s,className:"p-1 -mr-1 text-gray-400 hover:text-gray-600 transition",children:(0,a.jsx)(o.A,{size:20})})]}),(0,a.jsxs)("div",{className:"flex-1 overflow-y-auto px-5 py-5",children:["service"===h&&(0,a.jsx)(m,{services:u,onSelect:e=>{y(e),p("recipient")}}),"recipient"===h&&(0,a.jsx)(f,{value:b,onChange:k,onContinue:()=>p("message")}),"message"===h&&(0,a.jsx)(v,{message:w,expirationDays:S,onMessageChange:M,onExpirationChange:P,onContinue:()=>p("confirm")}),"confirm"===h&&x&&(0,a.jsx)(j,{expertName:c.name,expertPic:c.profilePic,serviceName:x.name,servicePrice:x.price,recipientName:b.name,recipientPhone:b.phone,expirationDays:S,loading:z,onPay:D}),"success"===h&&E&&(0,a.jsx)(N,{recipientName:b.name,expertName:c.name,redemptionCode:E.redemptionCode,redemptionLink:E.redemptionLink,onDone:()=>{p(d?"recipient":"service"),y(d||null),k({name:"",username:"",phone:"",email:""}),M(""),P(90),O(null),s()}})]})]})}),(0,a.jsx)("style",{children:"\n @keyframes gift-slide-up {\n from { transform: translateY(100%); }\n to { transform: translateY(0); }\n }\n @media (min-width: 768px) {\n @keyframes gift-slide-up {\n from { transform: scale(0.95); opacity: 0; }\n to { transform: scale(1); opacity: 1; }\n }\n }\n "})]})}},38104:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("calendar-check",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]])},38559:(e,t,s)=>{s.d(t,{$:()=>o,s:()=>n});var a=s(74268),i=s(69781),r=s(93049),n=class extends i.k{#e;#t;#s;#a;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#s=e.mutationCache,this.#t=[],this.state=e.state||o(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:"continue"})},s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=(0,r.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>
1this.#s.canRun(this)});let a="pending"===this.state.status,i=!this.#a.canStart();try{if(a)t();else{this.#i({type:"pending",variables:e,isPaused:i}),this.#s.config.onMutate&&await this.#s.config.onMutate(e,this,s);let t=await this.options.onMutate?.(e,s);t!==this.state.context&&this.#i({type:"pending",context:t,variables:e,isPaused:i})}let r=await this.#a.start();return await this.#s.config.onSuccess?.(r,e,this.state.context,this,s),await this.options.onSuccess?.(r,e,this.state.context,s),await this.#s.config.onSettled?.(r,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(r,null,e,this.state.context,s),this.#i({type:"success",data:r}),r}catch(t){try{await this.#s.config.onError?.(t,e,this.state.context,this,s)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,s)}catch(e){Promise.reject(e)}try{await this.#s.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,s)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,s)}catch(e){Promise.reject(e)}throw this.#i({type:"error",error:t}),t}finally{this.#s.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),a.jG.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},39068:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},43586:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]])},50859:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},52472:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]])},56154:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},60709:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]])},60890:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]])},64269:(e,t,s)=>{s.d(t,{cn:()=>r});var a=s(2821),i=s(75889);function r(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,i.QP)((0,a.$)(t))}},67161:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]])},67333:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]])},69141:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2
10 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]])},73155:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]])},75426:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},78519:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},80549:(e,t,s)=>{s.d(t,{n:()=>d});var a=s(12115),i=s(38559),r=s(74268),n=s(38445),o=s(34049),l=class extends n.Q{#e;#r=void 0;#n;#o;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#l()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,o.f8)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.EN)(t.mutationKey)!==(0,o.EN)(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#l(),this.#c(e)}getCurrentResult(){return this.#r}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#l(),this.#c()}mutate(e,t){return this.#o=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#l(){let e=this.#n?.state??(0,i.$)();this.#r={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#c(e){r.jG.batch(()=>{if(this.#o&&this.hasListeners()){let t=this.#r.variables,s=this.#r.context,a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#o.onSuccess?.(e.data,t,s,a)}catch(e){Promise.reject(e)}try{this.#o.onSettled?.(e.data,null,t,s,a)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#o.onError?.(e.error,t,s,a)}catch(e){Promise.reject(e)}try{this.#o.onSettled?.(void 0,e.error,t,s,a)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#r)})})}},c=s(99776);function d(e,t){let s=(0,c.jE)(t),[i]=a.useState(()=>new l(s,e));a.useEffect(()=>{i.setOptions(e)},[i,e]);let n=a.useSyncExternalStore(a.useCallback(e=>i.subscribe(r.jG.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),d=a.useCallback((e,t)=>{i.mutate(e,t).catch(o.lQ)},[i]);if(n.error&&(0,o.GU)(i.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:d,mutateAsync:n.mutate}}},83457:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]])},90368:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},91169:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},93499:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},94037:(e,t,s)=>{s.d(t,{AscensionModeProvider:()=>d,k:()=>l,T:()=>c});var a=s(95155),i=s(12115),r=s(13203);let n=(0,i.createContext)(null),o="iascend-ascension-mode";function l(){let e=(0,i.useContext)(n);if(!e)throw Error("useAscensionMode must be used within AscensionModeProvider");return e}function c(){return(0,i.useContext)(n)}function d(e){let{children:t}=e,[s,l]=(0,i.useState)(!1),[c,d]=(0,i.useState)(!1);(0,i.useEffect)(()=>{localStorage.removeItem(o),d(!0)},[]);let u=(0,i.useCallback)(()=>{l(e=>{let t=!e;localStorage.setItem(o,String(t));var s={on:t};try{let e=(0,r.gf)();fetch("/api/track",{method:"POST",headers:{"Content-Type":"application/json",...e?{Authorization:"Bearer ".concat(e)}:{}},body:JSON.stringify({name:"ascension_toggled",props:null!=s?s:{}}),keepalive:!0}
1).catch(()=>{})}catch(e){}return t})},[]),h=(0,i.useCallback)(e=>{l(e),localStorage.setItem(o,String(e))},[]);return(0,a.jsx)(n.Provider,{value:{ascensionMode:s,ascensionReady:c,toggleAscensionMode:u,setAscensionMode:h},children:t})}},94684:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]])},95740:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},97378:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]])}}]);
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.