PageSourceSearch

https://usedom.de/_next/static/chunks/5044.4379f8939de001e9.js

js usedom.de collected 2026-10-01 12:14:39 UTC 15,539 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="e5d57d5c-efb0-45aa-a4c6-fe9d3a80d1dd",e._sentryDebugIdIdentifier="sentry-dbid-e5d57d5c-efb0-45aa-a4c6-fe9d3a80d1dd")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5044],{30715:(e,r,t)=>{"use strict";t.d(r,{S:()=>S});var l=t(16927),s=t(81110),n=t(40120),a=t(67684),o=t(62701),i=t(20294),c=t(4902),d=t(37876),u=t(25714),b=t(71090),f=t(78028),m=t(15039),h=t.n(m),g=t(18805),x=t(14232),p=t(42723),w=t.n(p),j=t(88992),_=t(13715),v=t(91408);(0,t(31957).U)();var N=(0,v.Ik)({newsletteremail:(0,v.Yj)().email().required().label("newsletter.email.error"),check:(0,v.zM)().isTrue().label("-check-")}),k=t(5746),y=t(85442),I=t(61821),C=t(42827),S=function(e){var r=(0,s._)({},(0,n._)(e)),t=r.btnDesign,m=void 0===t?"cta":t,p=r.position,v=void 0===p?"footer":p,S=r.data,D=r.newsletterClient,z=(0,g.Bd)().t,B=(0,i._)((0,x.useState)("idle"),2),E=B[0],M=B[1],F=(0,i._)((0,x.useState)(0),2),H=F[0],T=F[1],P=(0,i._)((0,x.useState)(""),2),A=P[0],V=P[1],Y=(0,i._)((0,x.useState)(""),2),L=Y[0],U=Y[1],O=(0,i._)((0,x.useState)({one:0,two:0}),2),$=O[0],q=O[1],K=(0,_.ax)(function(e){return e}),X=K.addHeadline,G=K.sendFooter,J=(0,j.mN)({mode:"onTouched",resolver:(0,b.t)(N)});(0,x.useEffect)(function(){$.one<=0&&$.two<=0&&q({one:parseInt((1e4*Math.random()).toFixed(),10),two:parseInt((1e4*Math.random()).toFixed(),10)}),M("idle"),X(""),G(!1)},[]);var R=function(e){return(0,l._)(function(){var r,t;return(0,c.YH)(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),M("pending"),V(""),[4,f.A.post("".concat("https://usedom.de","/api/newsletter/").concat(D),{email:e.newsletteremail})];case 1:return 201===(r=l.sent()).status&&(J.reset(),M("success"),V(z("newsletter.success.201.text")),U(z("newsletter.success.201.headline")),w().dataLayer({dataLayer:{event:"newsletter"}}),"paragraph"===v&&X("newsletter.success.201.headline"),"footer"===v&&G(!0)),202===r.status&&(J.reset(),M("success"),V(z("newsletter.success.202.text")),U(z("newsletter.success.202.headline")),"paragraph"===v&&X("newsletter.success.202.headline"),"footer"===v&&G(!0)),[3,3];case 2:return T((t=l.sent()).response.status),409===t.response.status&&(M("error"),V(z("newsletter.error.409.text")),U(z("newsletter.error.409.headline")),"paragraph"===v&&X("newsletter.error.409.headline"),"footer"===v&&G(!0)),409!==t.response.status&&(M("error"),V(z("newsletter.error.400.text")),U(z("newsletter.error.400.headline")),"paragraph"===v&&X("newsletter.error.400.headline"),"footer"===v&&G(!0)),[3,3];case 3:return[2]}})})()};return(0,d.jsx)(d.Fragment,{children:$.one>0&&$.two>0?(0,d.jsx)(j.Op,(0,o._)((0,a._)({},J),{children:(0,d.jsxs)("div",{children:[("success"===E||"error"===E)&&(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:h()("footer"===v&&"grid grid-cols-[66px_auto]","paragraph"===v&&"grid grid-rows-[24px_auto]"),children:["error"===E&&409!==H&&0!==H&&(0,d.jsx)(u.B,{icon:"icon-alert",className:h()("[&>*]:stroke-white","footer"===v&&"mr-4 justify-self-center")}),"success"===E&&(0,d.jsx)(u.B,{icon:"icon-checkmark",className:h()("[&>*]:stroke-white","footer"===v&&"mr-4 justify-self-center")}),"error"===E&&409===H&&(0,d.jsx)(u.B,{icon:"icon-checkmark",className:h()("[&>*]:stroke-white","footer"===v&&"mr-4 justify-self-center")}),(0,d.jsxs)("div",{children:["footer"===v&&(0,d.jsx)(y.c,{processed:L,className:"font-bold"}),(0,d.jsx)(y.c,{processed:A,className:h()("pt-4")})]})]}),"error"===E&&409!==H&&0!==H&&(0,d.jsx)(k.$,{design:m,className:"w-full lg:w-auto",shadow:!0,clickCallback:function(){M("idle"),T(0),X(""),G(!1)},children:z("newsletter.reset")})]}),("idle"===E||"pending"===E)&&(0,d.jsxs)("form",{onSubmit:J.handleSubmit(R),children:[(0,d.jsx)("div",{className:"mb-6",children:(0,d.jsx)(C.a,{name:"newsletteremail",label:z("newsletter.email"),id:$.one,design:"footer"===v?"dark":"light",icon:"icon-mail",required:!0})}),(0,d.jsx)("div",{className:"mb-10",children:(0,d.jsx)(I.c,{name:"check",label:S&&S.processed?S.processed:"",design:"footer"===v?"dark":"light"})}),(0,d.jsx)(k.$,{design:m,className:"w-full sm:w-auto",shadow:!0,icon:"footer"===v?void 0:"icon-moewe",iconType:"standard",clickCallback:J.handleSubmit(R),children:z("newsletter.now")})]})]})})):null})}},40427:(e,r,t)=>{"use strict";t.d(r,{P:()=>s});
1var l=t(10553),s=function(){var e=(0,l.useSession)(),r=e.data,t=e.status,s=e.update;return{user:r&&r.user||{name:"Usedom",endDate:null,startDate:null,ortsId:"0",forename:null,type:"guest",hash:null},status:t,update:s,mappedStatus:"authenticated"===t}}},52798:(e,r,t)=>{"use strict";t.d(r,{B:()=>a,r:()=>o});var l=t(16927),s=t(4902),n=t(10553),a=function(e){e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"}),o(!0)},o=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,l._)(function(){return(0,s.YH)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,n.signOut)({redirect:!1})];case 1:return r.sent()&&e&&localStorage.clear(),[3,3];case 2:return console.log(r.sent()),[3,3];case 3:return[2]}})})()}},65044:(e,r,t)=>{"use strict";t.r(r),t.d(r,{Footer:()=>A});var l=t(67684),s=t(62701),n=t(65699),a=t(37876),o=t(54587),i=t.n(o),c=t(18805),d=t(58584),u=t(36472),b=t(84590),f=t(88250),m=t(95993),h=t(25714),g=t(66276),x=t(13715),p=t(85442),w=t(71059),j=t(96231),_=t.n(j),v=t(30715),N={input:"".concat(_().fieldItem," ").concat(_()["font-formInput"]," group-hover:border-white"),inputHasValue:"".concat(_()["field--hasValue"]),inputError:"".concat(_()["field--error"]),inputCheckbox:"".concat(_()["fieldItem-checkbox"]),labelCheckbox:"".concat(_()["form-labelCheckbox"]),label:"".concat(_()["form-label"]),labelActive:"".concat(_()["form-label--active"]),labelIcon:"[&>*]:stroke-white",labelIconActive:"!w-4 !h-4 [&>*]:stroke-brandblue-light50",labelIconError:"[&>*]:!stroke-white",labelError:"!text-white",errorCheckboxMessage:"!text-white"},k=function(e){var r=e.item,t=(0,n._)(e,["item"]);return(0,a.jsx)("div",(0,s._)((0,l._)({},t),{children:(0,a.jsx)(v.S,{btnDesign:"cta-white",position:"footer",data:r.field_checkbox_label,styles:N,newsletterClient:"usedom"})}))},y=function(e){var r=e.item,t=e.showNewsletter,o=void 0!==t&&t,i=(0,n._)(e,["item","showNewsletter"]),c=(0,x.ax)(function(e){return e}),d=(0,u.Kr)(function(e){return e}).showItem;return(0,a.jsxs)("div",(0,s._)((0,l._)({className:"footer-container grid grid-cols-[auto_1fr] grid-rows-1 items-center"},i),{children:[(0,a.jsx)("div",{className:"mr-4 flex size-[50px] items-center justify-center rounded-full bg-brandblue-light50 text-brandblue-dark100",children:"icon-whatsapp"!==r.field_icon?(0,a.jsx)(h.B,{icon:r.field_icon}):(0,a.jsx)(g.f,{icon:"icon-whatsapp",size:"small"})}),(0,a.jsx)("h4",{children:r.field_headline}),(0,a.jsx)("div",{className:"col-start-2",children:r.field_link&&(0,a.jsx)("span",{children:""!==r.field_link.full_url?(0,a.jsx)(b.N,{href:r.field_link.full_url,className:"text-link text-brandblue-light50 after:!from-brandblue-light50 after:!to-brandblue-light50",children:r.field_link.title}):(0,a.jsx)("button",{onClick:function(){d()},className:"text-link text-brandblue-light50 after:!from-brandblue-light50 after:!to-brandblue-light50",children:(0,a.jsx)("span",{children:r.field_link.title})})})}),!o&&r.body&&(0,a.jsx)("div",{className:"col-start-2",children:(0,a.jsx)(p.c,{processed:r.body.processed,className:""})}),(o||r.field_form)&&(0,a.jsxs)(a.Fragment,{children:[r.body&&(0,a.jsxs)("div",{className:"col-span-2",children:[c&&!c.footerSend&&(0,a.jsx)(p.c,{processed:r.body.processed,className:"pt-3 text-small lg:pt-6"}),(0,a.jsx)(k,{item:r,className:"pt-6"})]}),r.field_form&&(0,a.jsx)(w.S,{form:r.field_form,submitTitle:"form.submit.message"})]})]}))},I=t(81110),C=t(40120),S=t(16927),D=t(4902),z=t(31898),B=t(10553),E=t(14232),M=t(52798),F=t(40427),H=function(){var e=(0,F.P)(),r=e.user,t=e.status,l=e.update;return(0,E.useEffect)(function(){console.log("Status:",t);var e=setInterval(function(){return(0,S._)(function(){return(0,D.YH)(this,function(e){switch(e.label){case 0:return[4,l().catch(function(e){return console.log(e)})];case 1:return e.sent(),[2]}})})()},36e5);return function(){return clearInterval(e)}},[l]),(0,E.useEffect)(function(){if("unauthenticated"===t&&(0,S._)(function(){return(0,D.YH)(this,function(e){switch(e.label){case 0:return[4,(0,B.signIn)("credentials",{redirect:!1,initialLoad:!0}).catch(function(e){return console.log(e)})];case 1:return e.sent(),[2]}})})(),"authenticated"===t){var e;r&&!r.type&&(0,M.r)(!0).catch(function(e){return console.log(e)}),r&&r.endDate&&(e=new Date(r.endDate),+(0,z.a)(e)<Date.now())&&(0,M.r)(!0).catch(function(e){return console.log(e)})}},[t]),null},T=t(5746),P=function(e){var r=(0,I._)({},(0,C._)(e)).item,t=(0,x.ax)(function(e){return e}),l=(0,F.P)().user,s=(0,c.Bd)().t;return H(),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"w-full lg:pb-20",children:(0,a.jsxs)("div",{className:"grid grid-cols-[auto_1fr] grid-rows-1 items-center",children:[(0,a.jsx)("div",{className:"mr-4 flex size-[50px] items-center justify-center rounded-full bg-brandblue-light50 text-brandblue-dark100",children:(0,a.jsx)(h.B,{icon:r.field_icon})}),(0,a.jsx)("h4",{children:r.field_title}),(0,a.jsx)("div",{className:"col-span-2",children:(0,a.jsx)(p.c,{processed:r.body.processed,className:"pt-3 text-small lg:pt-6"})})]})}
1),(0,a.jsx)("div",{className:"flex w-full self-end border-b border-b-brandblue-dark75 pb-8 lg:mb-0 lg:border-none lg:pb-20",children:(0,a.jsxs)("div",{className:"grid w-full grid-cols-1 grid-rows-[auto_auto] lg:w-auto lg:self-start",children:[(0,a.jsx)(T.$,{as:"link",design:"primary",className:"w-full sm:w-auto sm:justify-self-center",center:!0,shadow:!0,icon:t.icon,href:t.link,showTextOnHover:!1,children:s(l&&"guestcard"===l.type?"guestcard.footer.loggedin":"guestcard.footer.loggedout")}),l&&"guestcard"===l.type&&(0,a.jsx)("div",{className:"justify-self-center pt-6",children:(0,a.jsx)("button",{className:"flex w-full items-center text-brandblue-light50 hover:text-brandblue-light75 sm:w-auto",onClick:M.B,children:s("logout")})})]})})]})},A=function(e){var r=e.blocks,t=(0,n._)(e,["blocks"]),o=(0,d.ch)(function(e){return e}).menus,h=(0,c.Bd)().t;return(0,a.jsxs)("footer",(0,s._)((0,l._)({className:"relative mt-20 bg-brandblue-dark100 text-white xl:mt-[200px]"},t),{children:[(0,a.jsxs)("div",{className:"container-sm relative mx-auto pb-12 pt-20 sm:w-2/3 lg:w-full lg:pb-20 lg:pt-28",children:[(0,a.jsx)(b.N,{role:"button",href:"/usedom-pur",className:"absolute -top-14 right-6 z-10 size-28 rounded-full bg-pur bg-[url('/images/badge_mid.png')] bg-contain sm:-right-16 md:size-32 lg:right-14 lg:hover:bg-[url('/images/badge_mid_hover.png')]",children:(0,a.jsx)("span",{className:"sr-only",children:"Usedom Pur"})}),(0,a.jsxs)("div",{className:"grid grid-cols-1",children:[(0,a.jsxs)("div",{className:"mb-8 border-b border-b-brandblue-dark75 pb-8 lg:mb-20 lg:pb-20",children:[(0,a.jsx)("h2",{className:"mb-4",children:h("footer.utg_hint_headline")}),(0,a.jsx)("p",{children:h("footer.utg_hint_text")})]}),(0,a.jsxs)("div",{className:"mb-8 flex flex-wrap items-center gap-8 border-b-brandblue-dark75 lg:mb-20 lg:flex-nowrap lg:gap-24 lg:border-b xl:gap-32",children:[r.phone&&(0,a.jsx)("div",{className:"w-full border-b border-b-brandblue-dark75 pb-8 lg:border-none lg:pb-20",children:(0,a.jsx)(u.M2,{children:(0,a.jsx)(y,{item:r.phone})})}),r.contact&&(0,a.jsx)("div",{className:"w-full border-b border-b-brandblue-dark75 pb-8 lg:border-none lg:pb-20",children:(0,a.jsx)(u.M2,{children:(0,a.jsx)(y,{item:r.contact})})})]}),(r.opentime||r.whatsapp)&&(0,a.jsxs)("div",{className:"mb-8 flex flex-wrap items-center gap-8 border-b-brandblue-dark75 lg:mb-20 lg:flex-nowrap lg:gap-24 lg:border-b xl:gap-32",children:[r.whatsapp&&(0,a.jsx)("div",{className:"w-full border-b border-b-brandblue-dark75 pb-8 lg:border-none lg:pb-20",children:(0,a.jsx)(u.M2,{children:(0,a.jsx)(y,{item:r.whatsapp})})}),r.opentime&&(0,a.jsx)("div",{className:"w-full border-b border-b-brandblue-dark75 pb-8 lg:border-none lg:pb-20",children:(0,a.jsx)(u.M2,{children:(0,a.jsx)(y,{item:r.opentime})})})]}),(0,a.jsxs)("div",{className:"mb-8 flex flex-wrap items-center gap-8 border-b-brandblue-dark75 lg:mb-20 lg:flex-nowrap lg:gap-24 lg:border-b xl:gap-32",children:[r.newsletter&&(0,a.jsx)("div",{className:"w-full pb-8 lg:mb-0 lg:pb-20",children:(0,a.jsx)(u.M2,{children:(0,a.jsx)(y,{item:r.newsletter,showNewsletter:!0})})}),(null==o?void 0:o.social)&&(0,a.jsx)("div",{className:"flex w-full justify-center border-b border-b-brandblue-dark75 pb-8 sm:justify-start lg:mb-0 lg:border-none lg:pb-20",children:(0,a.jsx)(m.D,{menu:o.social,iconsize:"medium",className:"flex gap-8",linkClass:"[&>*]:stroke-brandblue-light50 group-hover:[&>*]:stroke-brandblue-light75"})})]}),r.guestcard&&(0,a.jsx)("div",{className:"mb-8 flex flex-wrap items-center gap-6 border-b-brandblue-dark75 lg:mb-20 lg:flex-nowrap lg:gap-24 lg:border-b xl:gap-32",children:(0,a.jsx)(P,{item:r.guestcard})}),(0,a.jsxs)("nav",{className:"footer-menus flex flex-wrap items-center gap-8 lg:flex-nowrap lg:items-end lg:gap-24 xl:gap-32","aria-label":h("menus.footer"),children:[(null==o?void 0:o.additional)&&(0,a.jsx)("div",{className:"w-full pb-8 lg:mb-0",children:(0,a.jsx)("ul",{role:"menu",className:"flex flex-wrap gap-4",children:o.additional.map(function(e){var r,t,l,s;return(0,a.jsx)("li",{className:"w-full",role:"menuitem",children:(0,a.jsx)(b.N,{href:e.url,className:"text-small",target:(null==(t=e.options)||null==(r=t.attributes)?void 0:r.target)&&(null==(s=e.options)||null==(l=s.attributes)?void 0:l.target),children:e.title})},e.id)})})}),(null==o?void 0:o.footer)&&(0,a.jsx)("div",{className:"w-full pb-8",children:(0,a.jsx)("ul",{role:"menu",className:"flex flex-wrap gap-4",children:o.footer.map(function(e){var r,t,l,s;return(0,a.jsx)("li",{role:"menuitem",children:"#cookie_consent"!==e.url?(0,a.jsx)(b.N,{href:e.url,className:"text-xsmall",target:(null==(t=e.options)||null==(r=t.attributes)?void 0:r.target)&&(null==(s=e.options)||null==(l=s.attributes)?void 0:l.target),children:e.title}):(0,a.jsx)("button",{className:"text-xsmall",onClick:function(){void 0!==window.mmcm&&window.mmcm.launchDialogue()},children:e.title})},e.id)})})})]})]})]}),(0,a.jsx)("div",{className:"bg-white",children:(0,a.jsxs)("div",{className:"container-sm mx-auto grid grid-cols-2 items-center py-4",children:[(0,a.jsx)(f.A,{className:"w-[171px]"}),(0,a.jsx)("div",{className:"relative mr-14 block h-[60px] w-[100px] items-center justify-self-end lg:mr-0 lg:h-[100px] lg:w-[140px]",children:(0,a.jsx)(i(),{src:"/images/tmv_um_logo.svg",fill:!0,sizes:"(max-width: 768px) 300px, 240px",style:{objectFit:"contain"},alt:h("footer.tmv_logo_alt")})})]})})]}))}},96231:e=>{e.exports={container:"footer--newsletter_container__a1K9m",prose:"footer--newsletter_prose__zpGUS","font-formInput":"footer--newsletter_font-formInput__RpPcc",fieldItem:"footer--newsletter_fieldItem__Llk2P","fieldItem-checkbox":"footer--newsletter_fieldItem-checkbox__dpzn_","field--hasValue":"footer--newsletter_field--hasValue__kgWao","field--error":"footer--newsletter_field--error__XVHZC","form-label":"footer--newsletter_form-label__bPA56","form-label--active":"footer--newsletter_form-label--active__J0Ev_","form-labelCheckbox":"footer--newsletter_form-labelCheckbox__2o5tX"}}}]);

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.