PageSourceSearch

https://gemeinschaftswerk-nachhaltigkeit.de/_nuxt/D5r74gjd.js

js gemeinschaftswerk-nachhaltigkeit.de collected 2026-10-02 11:38:55 UTC 2,405 bytes, 1 lines download raw bytes

1import{_ as F}from"./DjUdTu6Y.js";import{u as I,e as N,D as B,l as w,f as D,g as E,p as T,c as a,a as e,j as d,h as r,F as u,t as n,b as x,z as A,o as i}from"./B3ruoN_0.js";import{u as O,a as C}from"./CqAY1EjP.js";import{u as H}from"./C98WjlZ2.js";import"./DaLXwYUN.js";const L={id:"newsletter-page"},M=["innerHTML"],h="Newsletter",J={__name:"newsletter",async setup(R){let c,b;const{t:v}=I(),{$i18n:p}=N(),{getItems:$,getSingletonItem:k}=O(),l=B(),s=w(l.query),g=w(!0),q=D(()=>`newsletter-${p.locale.value}`),{data:y,pending:V,error:j,refresh:z}=([c,b]=E(async()=>C(q,async()=>{const t=p.locales.value.find(o=>o.code===p.locale.value);let f=[],m={};try{m=await k({collection:"landingpage"}),f=await $({collection:"landingpage_translations",params:{filter:{languages_id:t.iso},fields:["form_content_newsletter","form_img_newsletter"]}})}catch(o){console.log("DIRECTUS Fetch Error",o)}return{...m,...f[0]}},"$vnTERpuU40")),c=await c,b(),c);function S(){if(!l.query||Object.keys(l.query).length===0)return!1;if(["emailFormat","emailExists","emailBlocked","requiredFields"].indexOf(l.query.error)>-1)return!0;const t=["confirm","complete"];return t.indexOf(l.query.subscribe)>-1||t.indexOf(l.query.unsubscribe)>-1}return T(()=>{g.value=!1}),H({title:h,meta:[{hid:"og-title",property:"og:title",content:h+" - "+v("page.title")}]}),(t,f)=>{var o,_;const m=F;return i(),a("div",L,[e("section",{class:"form-section bg-img-section bg-img-parallax",id:"newsletter",style:A(t.$getBgImgSectionStyle((o=r(y))==null?void 0:o.form_img_newsletter))},[!r(g)&&S()?(i(),a(u,{key:0},[r(s).error?(i(),a(u,{key:0},[e("div",null,[e("h2",null,n(t.$t("newsletter.error.title")),1)]),e("div",null,[e("p",null,n(t.$t("newsletter.error."+r(s).error)),1),e("p",null,n(t.$t("newsletter.error.tryAgain")),1)])],64)):d("",!0),r(s).subscribe?(i(),a(u,{key:1},[e("div",null,[e("h2",null,n(t.$t("newsletter.subscribe."+r(s).subscribe+".title")),1)]),e("div",null,[e("p",null,n(t.$t("newsletter.subscribe."+r(s).subscribe+".msg")),1)])],64)):d("",!0),r(s).unsubscribe?(i(),a(u,{key:2},[e("div",null,[e("h2",null,n(t.$t("newsletter.unsubscribe."+r(s).unsubscribe+".title")),1)]),e("div",null,[e("p",null,n(t.$t("newsletter.unsubscribe."+r(s).unsubscribe+".msg")),1)])],64)):d("",!0)],64)):r(g)?d("",!0):(i(),a(u,{key:1},[e("div",{innerHTML:(_=r(y))==null?void 0:_.form_content_newsletter},null,8,M),x(m)],64))],4)])}}};export{J 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.