PageSourceSearch

https://www.postpone.app/_nuxt/iYAPl6eA.js

js postpone.app collected 2026-09-24 22:20:19 UTC 6,711 bytes, 24 lines download raw bytes

1import{_ as w,e as C,a as A,p as S}from"./bkBFTh2e.js";import{h as D}from"./DlMBofn7.js";import{K as y,O as g,W as b,a4 as l,a7 as r,S as u,Q as d,Y as P,f as I}from"./zy72lt9b.js";import{a3 as x}from"./DTMGC8iU.js";import"./BzDDHjDY.js";import"./Dj48v9FO.js";import"./3iLyiP0y.js";import"./DSBJqnqI.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"fe05495fc0b2a196613b31984dce0ddcac482801"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="03980c1f-8745-48a6-92c8-bc06fb3b4482",t._sentryDebugIdIdentifier="sentry-dbid-03980c1f-8745-48a6-92c8-bc06fb3b4482")}catch{}})();var p={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deleteAccount"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteAccount"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:72}};p.loc.source={body:`mutation deleteAccount {
2  deleteAccount {
3    success
4    errors
5  }
6}
7`,name:"GraphQL request",locationOffset:{line:1,column:1}};function f(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(o){f(o,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(o){f(o,e)}),t.definitions&&t.definitions.forEach(function(o){f(o,e)})}var m={};(function(){p.definitions.forEach(function(e){if(e.name){var n=new Set;f(e,n),m[e.name.value]=n}})})();function v(t,e){for(var n=0;n<t.definitions.length;n++){var o=t.definitions[n];if(o.name&&o.name.value==e)return o}}function E(t,e){var n={kind:t.kind,definitions:[v(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var o=m[e]||new Set,i=new Set,s=new Set;for(o.forEach(function(a){s.add(a)});s.size>0;){var h=s;s=new Set,h.forEach(function(a){if(!i.has(a)){i.add(a);var c=m[a]||new Set;c.forEach(function(k){s.add(k)})}})}return i.forEach(function(a){var c=v(t,a);c&&n.definitions.push(c)}),n}E(p,"deleteAccount");const R={name:"ProfileDangerZone",setup(){const{openChat:t,openChatWithMessage:e}=S();return x(()=>{const n=I();let o=[];return n.public.churnkeyAppId&&(!window.churnkey||!window.churnkey.created)?(window.churnkey={created:!0},o.push({src:`https://assets.churnkey.co/js/app.js?appId=${n.public.churnkeyAppId}`,defer:!0})):console.log("Not loading Churnkey because churnkeyAppId is empty"),{title:"Danger Zone",script:o}}),{openChat:t,openChatWithMessage:e}},data(){return{profile:null}},apollo:{profile:C},methods:{onDeleteAccountClick(){this.$buefy.dialog.confirm({title:"Delete Account",message:`Your Postpone account will be deleted immediately. All
8                  scheduled posts, Content Library media, and analytics data will be deleted. You will be unable
9                  to recover this data.<br /><br />
10                  Are you sure you'd like to delete your Postpone account?`,confirmText:"Delete Account",type:"is-danger",hasIcon:!0,onConfirm:()=>{this.deleteAccount()}})},deleteAccount(){this.$apollo.mutate({mutation:p}).then(async t=>{t.data.deleteAccount.success?(await this.$store.logout(),window.location.href="/"):D(t.data.deleteAccount.errors)})},launchChurnkey(){window.churnkey.init("show",{customerId:this.profile.account.stripeCustomerId,authHash:this.profile.account.churnkeyHash,appId:this.$config.public.churnkeyAppId,mode:this.$config.public.dev?"test":"live",record:!0,onPause:this.onPause,onCancel:this.onCancel,onDiscount:this.onDiscount,onGoToAccount:this.onGoToAccount,handleSupportRequest:this.handleSupportRequest})},onPause(t,{pauseDuration:e}){return new Promise(async(n,o)=>{try{n({message:`Account has been paused for ${e} month${e===1?"":"s"}`})}catch(i){console.log(i),o({message:"Failed to pause account. Please reach out to us through our live chat."})}})},onCancel(t,e,n){return new Promise(async(o,i)=>{try{o({message:"Your account has been canceled. You will not be billed again"})}catch(s){console.log(s),i({message:"Failed to cancel account. Please reach out to us through our live chat."})}})},onDiscount(t,e){return new Promise(async(n,o)=>{try{n({message:"Done! Thanks for sticking with us and enjoy the discount."})}catch(i){console.log(i),o({message:"Failed to cancel account. Please reach out to us through our live chat."})}})},onGoToAccount(){this.$router.push({path:"/profile"})}
10,handleSupportRequest(t){this.openChatWithMessage("Need help ASAP: "),window.churnkey.hide()},startChatWithSupport(){this.openChatWithMessage("Hey Postpone! I was about to cancel my subscription but wanted to chat first: ")}}},_={key:0},$={class:"columns is-vcentered"},T={class:"column"},F={class:"u-mt2"};function N(t,e,n,o,i,s){const h=y("b-loading"),a=A,c=y("b-message");return g(),b("div",null,[l(h,{"is-full-page":!0,modelValue:t.$apollo.queries.profile.loading},null,8,["modelValue"]),e[13]||(e[13]=r()),i.profile?(g(),b("div",_,[e[7]||(e[7]=u("header",{class:"is-flex is-align-items-center is-flex-gap-small u-mb1"},[u("h2",{class:"subtitle has-text-fraunces is-3 u-mb0 has-text-danger"},`
11          Danger Zone
12        `)],-1)),e[8]||(e[8]=r()),e[9]||(e[9]=u("p",{class:"u-mb2"},`
13        Cancel your subscription or delete your Postpone account.
14      `,-1)),e[10]||(e[10]=r()),l(c,{class:"u-mb3"},{default:d(()=>[u("div",$,[u("div",T,[e[1]||(e[1]=u("h3",{class:"title is-5 u-mb1"},"Having issues with Postpone?",-1)),e[2]||(e[2]=r()),e[3]||(e[3]=u("p",{class:"u-mb2"},`
15              Before you go, let's chat! We'd love to help resolve any issues
16              you're experiencing and make sure you're getting the most out of
17              our platform.
18            `,-1)),e[4]||(e[4]=r()),l(a,{"icon-left":"comment",type:"is-primary",onClick:s.startChatWithSupport},{default:d(()=>[...e[0]||(e[0]=[r(`
19              Chat with Support
20            `,-1)])]),_:1},8,["onClick"])])])]),_:1}),e[11]||(e[11]=r()),u("div",null,[l(a,{type:"is-text",onClick:s.launchChurnkey},{default:d(()=>[...e[5]||(e[5]=[r(`
21          Cancel My Subscription
22        `,-1)])]),_:1},8,["onClick"])]),e[12]||(e[12]=r()),u("div",F,[l(a,{type:"is-text",class:"has-text-danger",onClick:s.onDeleteAccountClick},{default:d(()=>[...e[6]||(e[6]=[r(`
23          Delete My Account
24        `,-1)])]),_:1},8,["onClick"])])])):P("",!0)])}const G=w(R,[["render",N],["__scopeId","data-v-219ffbd0"]]);export{G as default};

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.