1"use strict";(self.webpackChunkhit_blog=self.webpackChunkhit_blog||[]).push([[3246],{99425:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var i=n(67294),r=n(63279),a=n(97870),o=n(21190),s=n(83699),c=n(85893);function l(){const[e,t]=(0,i.useState)(!1),[n,l]=(0,i.useState)(3),[d,u]=(0,i.useState)(!1);(0,i.useEffect)((()=>{if("undefined"==typeof window)return;window.posthog&&window.posthog.capture("checkout_cancel_page_viewed");const e=setInterval((()=>{l((t=>t<=1?(clearInterval(e),0):t-1))}),1e3);let n,i=null;const r=setTimeout((()=>{try{let e=!1;const r=()=>{document.hidden&&(e=!0,u(!0),window.posthog&&window.posthog.capture("checkout_cancel_app_opened"))};i=r,document.addEventListener("visibilitychange",r),window.location.href="hitemup://checkout_redirect/cancel",n=setTimeout((()=>{document.removeEventListener("visibilitychange",r),i=null,e||(t(!0),window.posthog&&window.posthog.capture("checkout_cancel_manual_button_shown"))}),2e3)}catch(e){console.error("Error opening app:",e),t(!0)}}),1e3);return()=>{clearInterval(e),clearTimeout(r),clearTimeout(n),i&&document.removeEventListener("visibilitychange",i)}}),[]);return(0,c.jsx)(r.Z,{title:"Payment Cancelled",description:"No worries! You can upgrade anytime from the Hit Em Up app",children:(0,c.jsx)("div",{className:"min-h-[80vh] flex items-center justify-center px-4 py-12 bg-gradient-to-br from-gray-50 via-whiteBg to-gray-100",children:(0,c.jsxs)("div",{className:"max-w-lg w-full",children:[(0,c.jsx)(a.E.div,{initial:{scale:0,rotate:-180},animate:{scale:1,rotate:0},transition:{type:"spring",stiffness:200,damping:20,delay:.1},className:"mb-8 flex justify-center",children:(0,c.jsx)(a.E.div,{animate:{boxShadow:["0 0 0 0 rgba(106, 116, 129, 0.4)","0 0 0 20px rgba(106, 116, 129, 0)","0 0 0 0 rgba(106, 116, 129, 0)"]},transition:{duration:2,repeat:1/0},className:"w-24 h-24 rounded-full bg-gradient-to-br from-gray-400 to-gray-500 flex items-center justify-center",children:(0,c.jsxs)(a.E.svg,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.6,delay:.3},className:"w-14 h-14 text-white",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,c.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,c.jsx)(a.E.line,{x1:"12",y1:"16",x2:"12",y2:"12",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.4,delay:.5}}),(0,c.jsx)(a.E.circle,{cx:"12",cy:"8",r:"0.5",fill:"currentColor",initial:{scale:0},animate:{scale:1},transition:{duration:.3,delay:.7}})]})})}),(0,c.jsxs)(a.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4,duration:.6},className:"text-center",children:[(0,c.jsx)("h1",{className:"text-4xl md:text-5xl font-bold text-blackText mb-4",children:"Payment Cancelled"}),(0,c.jsxs)("p",{className:"text-xl text-darkerGreyText mb-8",children:["No worries! You can upgrade anytime from the app.",!d&&n>0&&(0,c.jsxs)(a.E.span,{initial:{opacity:0},animate:{opacity:1},className:"block mt-2 text-greenBg font-medium",children:["Returning to app in ",n,"..."]}),d&&(0,c.jsx)(a.E.span,{initial:{opacity:0}
1,animate:{opacity:1},className:"block mt-2 text-greenBg font-medium",children:"\u2713 App opened successfully"})]}),(0,c.jsx)(o.M,{children:!e&&!d&&(0,c.jsxs)(a.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"mb-8",children:[(0,c.jsx)("div",{className:"flex justify-center gap-2",children:[0,1,2].map((e=>(0,c.jsx)(a.E.div,{className:"w-3 h-3 bg-gray-400 rounded-full",animate:{scale:[1,1.5,1],opacity:[.3,1,.3]},transition:{duration:1,repeat:1/0,delay:.2*e}},e)))}),(0,c.jsx)("p",{className:"text-sm text-greyText mt-4",children:"Attempting to open Hit Em Up..."})]})}),(0,c.jsx)(o.M,{children:(e||d)&&(0,c.jsxs)(a.E.div,{initial:{opacity:0,y:20,scale:.9},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-20,scale:.9},transition:{type:"spring",stiffness:200,damping:20},className:"space-y-4 mb-8",children:[(0,c.jsx)(a.E.button,{onClick:()=>{window.posthog&&window.posthog.capture("checkout_cancel_manual_button_clicked"),window.location.href="hitemup://checkout_redirect/cancel",setTimeout((()=>{confirm("Couldn't open the Hit Em Up app. Would you like to download it from the App Store?")&&(window.location.href="https://apps.apple.com/us/app/hit-em-up-mass-text-messenger/id1072561422")}),3e3)},whileHover:{scale:1.03,y:-2},whileTap:{scale:.97},className:"w-full max-w-md mx-auto px-8 py-4 bg-gradient-to-r from-gray-600 to-gray-700 text-white rounded-full font-bold text-lg shadow-lg shadow-gray-400/30 hover:shadow-xl hover:shadow-gray-400/40 transition-all hover:from-greenBg hover:to-darkGreenBg",children:(0,c.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,c.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z"})}),"Return to Hit Em Up"]})}),(0,c.jsxs)(a.E.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:.3},children:[(0,c.jsx)("p",{className:"text-sm text-greyText mb-2",children:"Don't have the app yet?"}),(0,c.jsx)("a",{href:"https://apps.apple.com/us/app/hit-em-up-mass-text-messenger/id1072561422",target:"_blank",rel:"noopener noreferrer",className:"text-greenBg hover:text-darkGreenBg underline text-sm font-medium",children:"Download from App Store \u2192"})]})]})}),(0,c.jsxs)(a.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6,duration:.6},className:"bg-white rounded-2xl p-6 shadow-lg border border-gray-100 mb-6",children:[(0,c.jsx)("h2",{className:"text-lg font-semibold text-blackText mb-4",children:"Ready to upgrade? Here's what you'll get:"}),(0,c.jsx)("div",{className:"space-y-3 text-left",children:[{icon:"\ud83d\udcac",text:"Unlimited personalized mass texts"},{icon:"\u2728",text:"SmartWrite AI assistance"},{icon:"\ud83d\udcc5",text:"Advanced scheduling"},{icon:"\u26a1",text:"Priority support"},{icon:"\ud83c\udfaf",text:"All premium features"}].map(((e,t)=>(0,c.jsxs)(a.E.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.7+.1*t},className:"flex items-center gap-3",children:[(0,c.jsx)("span",{className:"text-2xl",children:e.icon}),(0,c.jsx)("span",{className:"text-darkerGreyText",children:e.text})]},t)))}),(0,c.jsx)(a.E.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:1.2},className:"mt-6 pt-4 border-t border-gray-100",children:(0,c.jsxs)(s.Z,{to:"/pricing",className:"text-greenBg hover:text-darkGreenBg font-semibold inline-flex items-center gap-1 transition-colors",children:["View pricing details",(0,c.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})})]}),(0,c.jsxs)(a.E.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:.8},className:"bg-gradient-to-r from-gray-50 to-gray-100 rounded-xl p-4 mb-6",children:[(0,c.jsx)("p",{className:"text-sm text-greyText mb-2",children:"Questions about pricing or features?"}),(0,c.jsxs)(s.Z,{to:"/Contact",className:"text-greenBg hover:text-darkGreenBg font-medium text-sm inline-flex items-center gap-1",children:[(0,c.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),"Contact our support team"]})]}),(0,c.jsx)(a.E.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1},children:(0,c.jsxs)(s.Z,{to:"/",className:"text-greyText hover:text-greenBg text-sm inline-flex items-center gap-1 transition-colors",children:[(0,c.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})}),"Continue to website"]})})]})]})})})}},21190:(e,t,n)=>{n.d(t,{M:()=>f});var i=n(81439),r=n(67294),a=n(54735),o=n(58868);function s(){var e=(0,r.useRef)(!1);return(0,o.L)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var c=n(240),l=n(96681),d=n(76316),u=function(e){var t=e.children,n=e.initial,a=e.isPresent,o=e.onExitComplete,s=e.custom,u=e.presenceAffectsLayout,p=(0,l.h)(m),h=(0,d.M)(),x=(0,r.useMemo)((function(){return{id:h,initial:n,isPresent:a,custom:s,onExitComplete:function(e){var t,n;p.set(e,!0);try{for(var r=(0,i.XA)(p.values()),a=r.next();!a.done;a=r.next()){if(!a.value)return}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return p.set(e,!1),function(){return p.delete(e)}}}}),u?void 0:[a]);return(0,r.useMemo)((function(){p.forEach((function(e,t){return p.set(t,!1)}))}),[a]),r.useEffect((function(){!a&&!p.size&&(null==o||o())}),[a]),r.createElement(c.O.Provider,{value:x},t)};function m(){return new Map}var p=n(25364),h=n(65411),x=function(e){return e.key||""};var f=function(e){var t=e.children,n=e.custom,c=e.initial,l=void 0===c||c,d=e.onExitComplete,m=e.exitBeforeEnter,f=e.presenceAffectsLayout,y=void 0===f||f,g=(0,i.CR)(function(){var e=s(),t=(0,i.CR)((0,r.useState)(0),2),n=t[0],o=t[1],c=(0,r.useCallback)((function(){e.current&&o(n+1)}),[n]);return[(0,r.useCallback)((function(){return a.ZP.postRender(c)}),[c]),n]}(),1),v=g[0],w=(0,r.useContext)(p.p).forceRender;w&&(v=w);var j=s(),k=function(e){var t=[];return r.Children.forEach(e,(function(e){(0,r.isValidElement)(e)&&t.push(e)})),t}(t),b=k,E=new Set,N=(0,r.useRef)(b),C=(0,r.useRef)(new Map).current,L=(0,r.useRef)(!0);if((0,o.L)((function(){L.current=!1,function(e,t){e.forEach((function(e){var n=x(e);t.set(n,e)}))}(k,C),N.current=b})),(0,h.z)((function(){L.current=!0,C.clear(),E.clear()})),L.current)return r.createElement(r.Fragment,null,b.map((function(e){return r.createElement(u,{key:x(e),isPresent:!0,initial:!!l&&void 0,presenceAffectsLayout:y},e)})));b=(0,i.ev)([],(0,i.CR)(b),!1);for(var _=N.current.map(x),B=k.map(x),M=_.length,T=0;T<M;T++){var A=_[T];-1===B.indexOf(A)&&E.add(A)}return m&&E.size&&(b=[]),E.forEach((function(e){if(-1===B.indexOf(e)){var t=C.get(e);if(t){var i=_.indexOf(e);b.splice(i,0,r.createElement(u,{key:x(t),isPresent:!1,onExitComplete:function(){C.delete(e),E.delete(e);var t=N.current.findIndex((function(t){return t.key===e}));if(N.current.splice(t,1),!E.size){if(N.current=k,!1===j.current)return;v(),d&&d()}},custom:n,presenceAffectsLayout:y},t))}}})),b=b.map((function(e){var t=e.key;return E.has(t)?e:r.createElement(u,{key:x(e),isPresent:!0,presenceAffectsLayout:y},e)})),r.createElement(r.Fragment,null,E.size?b:b.map((function(e){return(0,r.cloneElement)(e)})))}}}]);
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.