PageSourceSearch

https://perspective-daily.de/static/assets/MemberCampaign2024Switch-D2iigbI1.js

js perspective-daily.de collected 2026-09-24 20:49:02 UTC 3,717 bytes, 1 lines download raw bytes

1import{d as e,O as a,o as s,Y as l,w as t,a as i,c as r,F as n,q as u,e as o,t as c,E as d,p as v,k as p,l as f,g as m,T as h,r as b,h as g}from"./vue-BLbPMQBZ.js";import{d as k}from"./dayjs.min-BPP53oEz.js";import{P as y}from"./overlayscrollbars-vue-ChBpUdo8.js";import{m as M,c as j,p as w}from"./filters-338SgnES.js";import{c as J,_ as S}from"./MemberWithMembershipQuery-B55evyy9.js";import"./preload-helper-D9jEkzRM.js";import"./exports-DzJyI3gR.js";import"./apollo.client-CTIoy0fp.js";import"./_commonjsHelpers-DFKeeuxH.js";import"./dayjs.min-DyvqyfD3.js";const _={key:0,class:"offers"},B={class:"card"},C={class:"card-content"},D={class:"price"},E={class:"tagline"},Y=["onClick","disabled"],O={key:1,class:"offers"},x={class:"card"},z={class:"card-content"},U={class:"price"},A={class:"tagline"},F=["href"],L={key:0,class:"process-wrapper"},R={key:0,class:"process"},W={class:"fluff"},q={class:"tagline"},H=e({__name:"MemberCampaign2024Switch",setup(e){const H=b(!1),I=b(void 0),{result:N,refetch:Q}=a(S),T=g(()=>{var e,a;return null!=(a=null==(e=N.value)?void 0:e.member)?a:void 0}),G=g(()=>{var e,a;return null!=(a=null==(e=T.value.nextOffer)?void 0:e.productSlug)?a:void 0}),K=g(()=>{var e,a;return null!=(a=null==(e=T.value)?void 0:e.availableOffers.filter(e=>e.supporter).sort((e,a)=>e.price-a.price))?a:[]}),P=g(()=>{var e;return"NORMAL"===(null==(e=T.value)?void 0:e.paidWith)});const V=g(()=>K.value.find(e=>e.id===I.value));s(()=>{document.addEventListener("keyup",e=>{const a=e.key;"Esc"!==a&&"Escape"!==a||(I.value=void 0)},!1)});const X=l(document.body);return t(I,e=>{X.value=void 0!==e}),(e,a)=>(i(),r(n,null,[P.value?(i(),r("div",_,[(i(!0),r(n,null,u(K.value,e=>(i(),r("div",B,[o("div",C,[o("h4",null,c(e.title),1),o("div",D,[d(c(v(M)(v(j)(v(w)(e.price,e.durationUnit,e.duration),-1)))+" € ",1),a[2]||(a[2]=o("div",{class:"time"},"/ Monat",-1))]),o("span",E," Jährliche Buchung ("+c(v(M)(e.price))+" €/Jahr) ",1),o("button",{"aria-label":"Mitglied werden",onClick:a=>I.value=e.id,disabled:G.value===e.productSlug,type:"button"},[H.value&&G.value===e.productSlug?(i(),r(n,{key:0},[d(" Aktiviert ")],64)):G.value===e.productSlug?(i(),r(n,{key:1},[d(" Bereits aktiv ")],64)):(i(),r(n,{key:2},[d(" Jetzt wechseln ")],64))],8,Y)])]))),256))])):(i(),r("div",O,[(i(!0),r(n,null,u(K.value,e=>(i(),r("div",x,[o("div",z,[o("h4",null,c(e.title),1),o("div",U,[d(c(v(M)(v(j)(v(w)(e.price,e.durationUnit,e.duration),-1)))+" € ",1),a[3]||(a[3]=o("div",{class:"time"},"/ Monat",-1))]),o("span",A," Jährliche Buchung ("+c(v(M)(e.price))+" €/Jahr) ",1),o("a",{href:"/enrol/renew/".concat(e.productSlug),target:"_blank",class:"nofb"},[...a[4]||(a[4]=[o("button",{"aria-label":"Mitglied werden",type:"button"},"Jetzt Mitglied werden",-1)])],8,F)])]))),256))])),p(h,{name:"fade"},{default:f(()=>[I.value?(i(),r("div",L,[p(v(y),{defer:""},{default:f(()=>{return[V.value?(i(),r("div",R,[o("i",{class:"icon icon-close",onClick:a[0]||(a[0]=e=>I.value=void 0)}),a[7]||(a[7]=o("h3",null,"Bitte bestätige deinen neuen Mitgliedsbeitrag!",-1)),o("span",W,[a[5]||(a[5]=d("Danke, dass du deinen Mitgliedsbeitrag auf ",-1)),o("b",null,c(v(M)(V.value.price))+" Euro pro Jahr",1),a[6]||(a[6]=d(" erhöhst. ",-1))]),a[8]||(a[8]=o("i",{class:"icon icon-wave"},null,-1)),o("span",q," Der neue Beitrag wird erst abgebucht, wenn sich deine Mitgliedschaft das nächste Mal automatisch verlängert. Dies ist am "+c((e=T.value.paidUntil,k(e).format("DD.MM.YYYY")))+" der Fall. ",1),o("button",{onClick:a[1]||(a[1]=e=>async function(e){(await J({offerId:e})).success&&(Q(),H.value=!0,I.value=void 0)}(V.value.id)),type:"button"},"Jetzt bestätigen")])):m("",!0)];var e}),_:1})])):m("",!0)]),_:1})],64))}});export{H 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.