1import{d as e,J as t,a as n,c as a,k as i,e as s,E as r,F as l,r as o}from"./vue-Cbujuoqu.js";import{a as u}from"./apollo.client-CTIoy0fp.js";import"./preload-helper-D9jEkzRM.js";import"./exports-DzJyI3gR.js";const c={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"retractPartialRefund"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"retractPartialRefund"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:124,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:"mutation retractPartialRefund {\n retractPartialRefund {\n __typename\n }\n}\n"}}},d={class:"content"},m={key:0},f={key:0,class:"actions"},g=["disabled"],p={key:1,class:"long_intro"},k=e({__name:"PartialRefundRetraction",setup(e){const k=o(!1),h=o(0);async function v(){switch((await u.mutate({mutation:c})).data.retractPartialRefund.__typename){case"OnlySuccess":h.value=2;break;case"CannotRetract":h.value=1}}return(e,o)=>{const u=t("dyn-img");return n(),a("div",d,[i(u,{src:"/images/articles/12653-gewicht_kundigung_gruen.png","img-params":{w:689,q:85},alt:""}),o[4]||(o[4]=s("h1",null,"Vielen Dank, dass du auf die Teilrückerstattung verzichtest!",-1)),1===h.value?(n(),a("p",m,[o[1]||(o[1]=r("Leider ist ein Problem aufgetreten. ",-1)),s("a",{onClick:o[0]||(o[0]=e=>{window.location.reload()})},"Bitte versuche es nochmal"),o[2]||(o[2]=r(".",-1))])):(n(),a(l,{key:1},[o[3]||(o[3]=s("p",{class:"long_intro"},[r(" Damit hast du für die Restlaufzeit deiner Mitgliedschaft weiterhin vollen Zugriff auf alle unsere Inhalte und unterstützt darüber hinaus ein Online-Magazin, das nach vorne schaut und Hoffnung macht. "),s("strong",null,"Deine Kündigung bleibt hiervon selbstverständlich unberührt.")],-1)),0===h.value?(n(),a("div",f,[s("button",{id:"submit_switch",class:"button primary",disabled:k.value,style:{float:"right"},onClick:v,type:"button"}," Jetzt Teilrückerstattung stornieren ",8,g)])):(n(),a("p",p,"Danke für deine Zustimmung!"))],64))])}}});export{k 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.