PageSourceSearch

https://usedom.de/_next/static/chunks/3065.6ce9032597cdd3e2.js

js usedom.de collected 2026-09-24 09:54:36 UTC 14,961 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:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4acc6462-64a3-4282-a425-f8a23a415e2a",e._sentryDebugIdIdentifier="sentry-dbid-4acc6462-64a3-4282-a425-f8a23a415e2a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3065],{5323:(e,t,a)=>{var r=a(75448),s=a(94175),l=a(83720),n=a(65930);e.exports=l(function(e,t){if(null==e)return[];var a=t.length;return a>1&&n(e,t[0],t[1])?t=[]:a>2&&n(t[0],t[1],t[2])&&(t=[t[0]]),s(e,r(t,1),[])})},12211:(e,t,a)=>{var r=a(70178),s=a(65048);e.exports=function(e){return r(s(e))}},13065:(e,t,a)=>{"use strict";a.r(t),a.d(t,{ParagraphBusinessDirectoryGuestcard:()=>ex});var r=a(20294),s=a(37876),l=a(14232),n=a(81110),i=a(40120),o=a(67684),d=a(62701),c=a(85786),u=a(45386),f=a(67516),h=a(28697),p=a(96597),g=a(89099),m=a(16927),x=a(4902),b=a(5068),v=a(91892),_=a(33426),j=a(13026),y=function(e){var t=e.state,a=e.filter,r=e.reset;if(!t||!a)return null;var s=(0,_.t)({name:"node--business_directory_list"}).addFilter("status","1");return s.addPageLimit(50),s.addPageOffset(void 0!==r&&r?0:t.offset),(0,j.b)(s,a)},w=function(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0,n=arguments.length>6?arguments[6]:void 0;return(0,m._)(function(){var i,c,u,h,p,g;return(0,x.YH)(this,function(m){switch(m.label){case 0:return m.trys.push([0,2,,3]),e({type:f.fJ.LOAD,payload:!0}),[4,b.A.get("".concat("https://usedom.de","/api/business-directory-list/list"),{params:(0,d._)((0,o._)({},y({state:a,filter:t,reset:r})),{locale:l,defaultLocale:n}),signal:s})];case 1:return 200===(i=m.sent()).status&&(e({type:f.fJ.LOAD_ITEMS,payload:{reset:r,next:!!i.data.links.next,data:(0,v.iu)(i.data),total:null==(c=i.data)?void 0:c.meta.count}}),u=r?0:a.offset,e({type:f.fJ.OFFSET_FULL,payload:i.data.links.next?u+50:u})),[3,3];case 2:if(h=m.sent(),b.A.isCancel(h))return[2];return console.log(h),g=b.A.isAxiosError(h)&&(null==(p=h.response)?void 0:p.status)===429,e({type:f.fJ.ERROR,payload:g?"ratelimit":"generic"}),[3,3];case 3:return[2]}})})()},N=a(64693),k=function(){var e=(0,g.useRouter)(),t=(0,r._)((0,l.useState)(!1),2),a=t[0],s=t[1],n=(0,f.t3)(),i=(0,u.iS)(),o=(0,f.Wv)();return(0,l.useEffect)(function(){o.items.length===o.total&&s(!0)},[o.items]),(0,l.useEffect)(function(){var t=new AbortController;return(0,N.iV)(i)&&o.hasNext&&0!==o.offset&&o.items.length!==o.total&&w(n,i,o,!1,t.signal,e.locale,e.defaultLocale),function(){return t.abort()}},[o.offset]),(0,l.useEffect)(function(){var t=new AbortController;return(0,N.iV)(i)&&0===o.offset&&o.items.length<=0&&w(n,i,o,!0,t.signal,e.locale,e.defaultLocale),function(){return t.abort()}},[i.isCreated,i.preFilterLoaded,i.checkedConditionsLoad]),a},C=a(67945),E=a(65699),T=a(73606),L=a(25714),S=a(15039),F=a.n(S),I=a(18805),R=a(9935),z=a(81562),D=a(85442),A=a(96939),O=a(78436),B=(0,l.memo)(function(e){var t=(0,n._)({},(0,i._)(e)),a=t.paragraph,r=t.showDispatch,l=(0,I.Bd)().t,o=(0,u.iS)();return(0,s.jsxs)("section",{"data-cy":"prefilter-cards",className:"relative overflow-x-clip",children:[(0,s.jsx)(O.r,{bgType:"wave2",display:"phone",breakpoint:"lg",fillColor:"brandblue-light50",className:"absolute left-0 top-10 z-0 w-[233px]"}),(0,s.jsx)(O.r,{bgType:"wave3",display:"phone",breakpoint:"lg",fillColor:"brandblue-light50",className:"absolute bottom-0 right-0 z-0 w-[108px]"}),(0,s.jsx)("div",{className:"container-xl",children:(0,s.jsxs)("div",{className:"relative grid grid-cols-1 grid-rows-[auto_auto] rounded-2xl shadow-standard",children:[(0,s.jsx)(O.r,{bgType:"wave3",display:"desktop",breakpoint:"lg",fillColor:"brandblue-light50",className:"absolute -left-16 -top-8 z-0 w-[335px]"}),(0,s.jsx)(O.r,{bgType:"wave3",display:"desktop",breakpoint:"lg",fillColor:"brandblue-light50",className:"absolute -bottom-12 -right-32 z-0 w-[335px]"}),(0,s.jsxs)("div",{className:"relative z-10 aspect-[15/6] max-h-[130px] w-full rounded-t-2xl md:max-h-[250px] lg:max-h-[400px]",children:[(0,s.jsxs)("figure",{children:[(0,s.jsx)(A.Q,{media:a.field_media,fill:!0,sizes:"100vw",className:"relative z-10 rounded-t-2xl object-cover"}),(0,s.jsx)(z.N,{copyright:a.field_media.field_copyright})]}),(0,s.jsx)(R.E,{color:"blue",className:F()("absolute bottom-2 left-4 z-20","md:bottom-auto md:left-auto md:right-6 md:top-6","md:px-4 md:py-2 md:text-base"),children:l("guestcard.badge.text")})]}),(0,s.jsxs)("div",{className:"relative z-10 grid gap-y-6 rounded-b-2xl bg-white px-4 py-8 md:px-12 md:pb-12 md:pt-6 lg:pt-8",children:[(0,s.jsx)("h3",{children:a.field_title_2}),(0,s.jsx)(D.c,{className:"text-small",processed:a.field_text_2.processed}),o.isCreated&&o.checkedConditionsLoad&&(0,s.jsx)("div",{className:"grid w-full grid-cols-2 gap-3 lg:grid-cols-3",children:o.checkedConditions.map(function(e){return(0,s.jsx)(V,{item:e,showDispatch:r,children:e.name},e.id)})})]})]})})]})}),V=function(e){var t=e.children,a=(0,E._)(e,["children"]),r=a.item,l=a.showDispatch,n=(0,u.Nm)();return(0,s.jsxs)("button",{onClick:function(e){return e&&(l(!0),(0,N.an)(n,u.bs.SET_FILTER_CATEGORIES,"all"===r.type?null:(0,d._)((0,o._)({},r),{type:u.bs.REMOVE_FILTER_CATEGORIES}))),null},className:F()("grid grid-cols-1 place-content-center justify-items-center gap-y-2","rounded-lg bg-brandblue-dark3 px-2 py-4 text-brandblue-dark100","transition-all duration-200 md:hover:bg-brandblue-dark8","min-h-[88px] md:min-
1h-[140px]",r.field_icon?"grid-rows-[auto_auto]":"grid-rows-[auto]"),children:[r.field_icon&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(L.B,{size:"large",icon:r.field_icon,className:F()("[&>*]:stroke-brandblue-light75",r.field_icon in T.p?"md:hidden":"!h-12 !w-12")}),r.field_icon in T.p&&(0,s.jsx)(T.D,{icon:r.field_icon,className:"hidden md:block [&>*]:stroke-brandblue-light75"})]}),(0,s.jsx)("span",{className:"text-small font-semibold md:text-medium",children:t})]})},G=a(12348),M=a(88550),P=a(84590),J=a(85993),H=a(41946),K=a.n(H),U=a(81826),W=a.n(U),X=a(99595),Y=a.n(X),q=a(5323),Q=a.n(q),$=a(46483),Z=a.n($),ee=a(18847),et=a.n(ee),ea=a(5746),er=a(98982),es=a(54775),el=a(54657),en=a(22848),ei=function(e){var t=(0,n._)({},(0,i._)(e)),a=t.optionalTabSliderFilter,c=(0,r._)((0,l.useState)([]),2),h=c[0],p=c[1],g=(0,r._)((0,l.useState)([]),2),m=g[0],x=g[1],b=(0,r._)((0,l.useState)(0),2),v=b[0],_=b[1],j=(0,r._)((0,l.useState)("shuffle"),2),y=j[0],w=j[1],k=(0,r._)((0,l.useState)(0),2),C=k[0],E=k[1],T=(0,r._)((0,l.useState)(!1),2),S=T[0],R=T[1],z=(0,u.iS)(),D=(0,f.Wv)(),A=(0,u.Nm)(),B=(0,I.Bd)().t,V=(0,es.s)();(0,l.useEffect)(function(){(0,N.iV)(z)&&(p([]),_(0))},[z.filterCategories,z.filterConditions,z.filterPlaces,z.checkedConditionsLoad]),(0,l.useEffect)(function(){if(!D.load&&z.isCreated&&z.preFilterLoaded&&z.checkedConditionsLoad)switch(p([]),_(0),y){case"shuffle":default:x(Y()(D.items));break;case"alpha_asc":x(Q()(D.items,["field_title"]));break;case"alpha_desc":x(Q()(D.items,["field_title"]).reverse())}},[D,y]),(0,l.useEffect)(function(){if(!D.load&&z.isCreated&&z.preFilterLoaded&&z.checkedConditionsLoad){var e=(0,N.Hk)(z.filterCategories,m,z.isGuestcardContext);E(e.length);var t=e.slice(v,e.length<=W()("6",10)?e.length:v+W()("6",10));p(Z()(0===v?(0,J._)(t):(0,J._)(h).concat((0,J._)(t)),K()))}},[m,v,z]);var G=(0,l.useRef)(null);return(0,l.useEffect)(function(){if(D.load&&G&&G.current&&D.offset>6){var e=Array.from(G.current.childNodes);e[D.offset]&&e[D.offset].getElementsByTagName("a")[0].focus({preventScroll:!0})}},[D.load,D.offset]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("section",{"data-cy":"business-directory-list",className:F()(t.className),children:[V&&V.length>1&&a&&(0,s.jsx)("div",{className:"container-xl mt-6 lg:mt-12",children:(0,s.jsx)("div",{className:"relative",children:(0,s.jsx)(en.H,{getStateTabSlider:function(e){R(e)},children:V.map(function(e,t){return(0,s.jsx)("li",{children:(0,s.jsx)("button",{onClick:function(t){return(0,el.l)(t,"all"===e.type?null:(0,d._)((0,o._)({},e),{type:u.bs.REMOVE_FILTER_CATEGORIES}),A)},className:F()("text-small text-brandblue-dark100 after:block after:h-[3px] after:w-full after:rounded",z.filterCategories.some(function(t){return t.id===e.id})&&"font-semibold after:bg-brandblue-dark100","all"===e.type&&z.filterCategories.length<=0&&"font-semibold after:bg-brandblue-dark100",S&&"!cursor-grab"),children:e.name})},t)})})})}),h.length>0&&(0,s.jsx)("div",{className:"container-xl mt-6 grid grid-cols-12 lg:mt-12",children:(0,s.jsx)("div",{className:"fieldItem font-formInput relative col-start-1 col-end-13 w-full md:col-end-6 xl:col-end-4","data-type":"select",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 grid-rows-[auto_auto]",children:[(0,s.jsx)("label",{htmlFor:"sort_list",className:"form-label-new",children:B("guestcard.sort.bd.list")}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("select",{id:"sort_list",name:"sort_list",className:"relative text-brandblue-dark75",onChange:function(e){var t,a=null==(t=e.target)?void 0:t.value;a&&a!==y&&w(a)},defaultValue:y,children:[(0,s.jsx)("option",{value:"shuffle",children:B("guestcard.sort.bd.list.shuffle")}),(0,s.jsx)("option",{value:"alpha_asc",children:B("guestcard.sort.bd.list.asc")}),(0,s.jsx)("option",{value:"alpha_desc",children:B("guestcard.sort.bd.list.desc")})]}),(0,s.jsx)(L.B,{icon:"icon-chevron-down",className:"pointer-events-none absolute right-2 top-0 z-20 flex h-full justify-center","aria-hidden":!0})]})]})})}),(0,s.jsx)("div",{ref:G,className:"container-xl mb-14 mt-6 grid grid-cols-1 gap-6 md:grid-cols-2 lg:mb-28 lg:mt-12 lg:gap-8 xl:grid-cols-3 xl-1440:gap-12",children:!D.load&&h.map(function(e){return(0,s.jsx)(er.q,{item:e},e.id)})})]}),D&&D.items&&!D.load&&(0,s.jsxs)("div",{className:"relative grid grid-cols-1 justify-items-center pb-20 lg:pb-28",children:[(0,s.jsxs)("div",{className:"relative z-10 grow-0 pt-4",children:[(0,s.jsx)(eo,{className:F()("absolute left-1/2 top-0 w-[25px] -translate-x-1/2 [&>path]:fill-brandblue-light50",D.load&&"animate-itemFloot")}),(0,s.jsxs)("span",{className:"text-small text-brandblue-dark75",children:[h.length," ",B("businessdirectory.of")," ",C," ",B("businessdirectory.wouldshow")]})]}),D&&h.length<C&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(ea.$,{clickCallback:function(){_(v+W()("6",10))},shadow:!0,className:"z-10 mt-6",noarrow:!0,design:"secondary",children:B("businessdirectory.listshowmore")})}),(0,s.jsx)(O.r,{fillColor:"brandblue-light16",bgType:"wave2",display:"phone",breakpoint:"lg",className:"absolute bottom-[-80px] left-0 z-0 w-[233px]"}),(0,s.jsx)(O.r,{fillColor:"brandblue-light16",bgType:"wave2",display:"desktop",breakpoint:"lg",className:"absolute bottom-0 left-0 z-0 w-[338px]"})]})]})},eo=et()(a.e(7422).then(a.bind(a,67422)),{loadableGenerated:{webpack:function(){return[67422]}}}),ed=a(79569),ec=a(3182),eu=a(91136);let ef=function(e){(0,n._)({},(0,i._)(e)).hashTitle;var t=(0,l.useId)(),a=(0,M.l)("google_maps"),r=(0,I.Bd)().t;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(M.w,{hash:t,type:"google_maps",className:"container-xl h-[512px] md:h-[580px]",children:[(0,s.jsx)(ec.uL,{children:(0,s.jsx)(ed.Y,{center:{lat:53.93283025122537,lng:14.096903205423917},zoom:9})}),(0,s.jsx)("div",{className:"container-sm grid place-items-end",children:(0,s.jsx)(P.N,{href:eu.K.full_url,className:"group mt-6 max-w-[280px]",children:(0,s.jsxs)("h5",{className:"pr-1",children:[r(eu.K.title),(0,s.jsx)(G.P,{icon:"icon-arrow-right-large-bold",className:"ml-2 inline group-hover:animate-swing [&>*]:stroke-brandblue-dark100"})]})})})]}),(0,s.jsx)(ei,{optionalTabSliderFilter:!a})]})};var eh=function(e){var t=(0,n._)({},(0,i._)(e)),a=t.paragraph,o=t.inView,d=t.scrollTop,p=(0,r._)((0,l.useState)(!1),2),g=p[0],m=p[1],x=(0,h.R9)();(0,l.useEffect)(function(){g&&d()},[g]);var b=x&&x.isLoadedCategories&&x.isLoadedConditions&&x.isLoadedPlaces;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.L,{}),b?(0,s.jsx)(u.uD,{children:(0,s.jsxs)(f.IX,{children:[(0,s.jsx)(ep,{paragraph:a}),void 0!==o&&o&&(0,s.jsx)(eg,{}),(0,s.jsx)(em,{paragraph:a,showDispatch:function(e){return m(e)},showState:g})]})}):(0,s.jsx)(s.Fragment,{})]})},ep=function(e){var t=e.paragraph,a=(0,u.iS)(),r=(0,u.Nm)();return(0,l.useEffect)(function(){r({type:u.bs.SET_GUESTCARD_CONTEXT,payload:!0})},[]),(0,C.u)({prefilter:{category:t.field_thema_category,customs:t.field_custom_filter,places:t.field_places_custom,conditions:t.field_conditions_custom},allLinkList:(0,d._)((0,o._)({},a.allLinkList),{name:"guestcard.business.directory.filter.card.all"})}),(0,p.o)({hasTabs:!0}),null},eg=function(){return k(),null},em=function(e){var t=(0,n._)({},(0,i._)(e)),a=t.paragraph,r=t.showDispatch,l=t.showState,o=(0,u.iS)();return(0,s.jsxs)(s.Fragment,{children:[l&&(0,s.jsx)(ef,{hashTitle:a.field_title}),!l&&o.checkedConditionsLoad&&(0,s.jsx)(B,{paragraph:a,showDispatch:function(e){r(e)}})]})},ex=function(e){var t=e.paragraph,a=(0,l.useRef)(null),n=(0,r._)((0,l.useState)(!1),2),i=n[0],o=n[1],d={rootMargin:"-50px"};return(0,l.useEffect)(function(){if(a.current){var e=new IntersectionObserver(function(e){e.map(function(e){return e.isIntersecting&&o(!0)})},d);a.current&&null!==a.current&&e.observe(a.current)}},[a]),(0,s.jsxs)(s.Fragment,{children:[t.field_anchor&&(0,s.jsx)("span",{"target-id":t.field_anchor,className:"mt-14 block"}),(0,s.jsxs)("section",{"data-cy":"business-directory","target-id":"gc-business-directory",className:"paragraph",ref:a,children:[(0,s.jsxs)("div",{className:"container-xl",children:[(0,s.jsx)("h2",{className:"mb-8 lg:mb-10",children:t.field_title}),t.field_text&&(0,s.jsx)(D.c,{processed:t.field_text.processed,className:"mb-8 lg:mb-[72px]"})]}),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(eh,{paragraph:t,inView:i,scrollTop:function(){if(a.current){var e=a.current.getBoundingClientRect().top,t=document.body.getBoundingClientRect().top;window.scrollTo({top:e-t,behavior:"smooth"})}}})})]})]})}},58305:(e,t,a)=>{var r=a(79699),s=a(70178);e.exports=function(e){return s(r(e))}},65048:(e,t,a)=>{var r=a(70368),s=a(69750);e.exports=function(e){return null==e?[]:r(e,s(e))}},65793:e=>{var t=Math.floor,a=Math.random;e.exports=function(e,r){return e+t(a()*(r-e+1))}},65930:(e,t,a)=>{var r=a(79364),s=a(27136),l=a(68373),n=a(98825);e.exports=function(e,t,a){if(!n(a))return!1;var i=typeof t;return("number"==i?!!(s(a)&&l(t,a.length)):"string"==i&&t in a)&&r(a[t],e)}},70178:(e,t,a)=>{var r=a(65793);e.exports=function(e,t){var a=-1,s=e.length,l=s-1;for(t=void 0===t?s:t;++a<t;){var n=r(a,l),i=e[n];e[n]=e[a],e[a]=i}return e.length=t,e}},70368:(e,t,a)=>{var r=a(59930);e.exports=function(e,t){return r(t,function(t){return e[t]})}},79699:e=>{e.exports=function(e,t){var a=-1,r=e.length;for(t||(t=Array(r));++a<r;)t[a]=e[a];return t}},99595:(e,t,a)=>{var r=a(58305),s=a(12211),l=a(93007);e.exports=function(e){return(l(e)?r:s)(e)}}}]);

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.