PageSourceSearch

https://usedom.de/_next/static/chunks/3365.78ced93f91ac2a40.js

js usedom.de collected 2026-09-24 09:54:40 UTC 8,328 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]="c857406f-2c42-42c0-8e75-3be10a4893d1",e._sentryDebugIdIdentifier="sentry-dbid-c857406f-2c42-42c0-8e75-3be10a4893d1")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3365],{23365:(e,t,s)=>{s.r(t),s.d(t,{ParagraphBusinessDirectory:()=>K,ParagraphBusinessDirectoryDetail:()=>Y});var r=s(20294),a=s(37876),l=s(12348),i=s(15039),n=s.n(i),o=s(18805),d=s(14232),c=s(85786),u=s(67684),f=s(62701),m=s(65699),b=s(18847),p=s.n(b),g=s(89099),h=s(5746),_=s(78436),x=s(98982),y=s(45386),v=s(67516),j=s(54775),N=s(54657),w=s(16927),k=s(4902),E=s(5068),C=s(91892),T=s(33426),S=s(13026),F=function(e){var t=e.state,s=e.filter,r=e.sort,a=e.reset;if(!t||!s)return null;var l=(0,T.t)({name:"node--business_directory_list"}).addFilter("status","1");return l.addPageLimit(t.pageLimit).addPageOffset(void 0!==a&&a?0:t.offset).addSort("field_premium","DESC").addSort(void 0===r?"field_title":r),(0,S.b)(l,s)},L=function(e,t,s,r){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0,n=arguments.length>7?arguments[7]:void 0;return(0,w._)(function(){var o,d,c,m,b,p,g;return(0,k.YH)(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),[4,E.A.get("".concat("https://usedom.de","/api/business-directory-list/list"),{params:(0,f._)((0,u._)({},F({state:r,filter:s,reset:a})),{locale:i,defaultLocale:n}),signal:l})];case 1:return 200===(o=h.sent()).status&&(d=(0,C.iu)(o.data))&&(t({type:v.fJ.LOAD_ITEMS,payload:{reset:a,next:!!o.data.links.next,data:d,total:null==(c=o.data)?void 0:c.meta.count}}),e({type:y.bs.SET_TOTAL,payload:null==(m=o.data)?void 0:m.meta.count})),[3,3];case 2:if(b=h.sent(),E.A.isCancel(b))return[2];return console.log(b),g=E.A.isAxiosError(b)&&(null==(p=b.response)?void 0:p.status)===429,t({type:v.fJ.ERROR,payload:g?"ratelimit":"generic"}),[3,3];case 3:return[2]}})})()},I=s(64693),A=s(22848),D=function(e){var t=e.optionalTabSliderFilter,s=(0,m._)(e,["optionalTabSliderFilter"]),l=(0,g.useRouter)(),i=(0,y.iS)(),c=(0,v.Wv)(),b=(0,v.t3)(),p=(0,y.Nm)(),w=(0,j.s)(),k=(0,r._)((0,d.useState)(!1),2),E=k[0],C=k[1],T=(0,r._)((0,d.useTransition)(),2),S=T[0],F=T[1],D=(0,o.Bd)().t;(0,d.useEffect)(function(){var e=new AbortController;return(0,I.iV)(i)&&(F(function(){L(p,b,i,c,!0,e.signal,l.locale,l.defaultLocale)}),C(!0)),function(){return e.abort()}},[i.isCreated,i.preFilterLoaded,i.filterCategories,i.filterConditions,i.filterPlaces,i.checkedConditionsLoad]),(0,d.useEffect)(function(){var e=new AbortController;return(0,I.iV)(i)&&0!==c.offset&&F(function(){L(p,b,i,c,!1,e.signal,l.locale,l.defaultLocale)}),function(){return e.abort()}},[c.offset]);var O=(0,r._)((0,d.useState)(!1),2),P=O[0],B=O[1],z=(0,d.useRef)(null);return(0,d.useEffect)(function(){if(c.load&&z&&z.current&&c.offset>6){var e=Array.from(z.current.childNodes);e[c.offset]&&e[c.offset].getElementsByTagName("a")[0].focus({preventScroll:!0})}},[c.load,c.offset]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{"data-cy":"business-directory-list",className:n()(s.className),children:[w&&w.length>1&&void 0!==t&&t&&(0,a.jsx)("div",{className:"container-xl mb-6",children:(0,a.jsx)("div",{className:"relative",children:(0,a.jsx)(A.H,{getStateTabSlider:function(e){B(e)},children:w.map(function(e,t){return(0,a.jsx)("li",{children:(0,a.jsx)("button",{onClick:function(t){return(0,N.l)(t,"all"===e.type?null:(0,f._)((0,u._)({},e),{type:y.bs.REMOVE_FILTER_CATEGORIES}),p)},className:n()("text-small text-brandblue-dark100 after:block after:h-[3px] after:w-full after:rounded",i.filterCategories.some(function(t){return t.id===e.id})&&"font-semibold after:bg-brandblue-dark100","all"===e.type&&i.filterCategories.length<=0&&"font-semibold after:bg-brandblue-dark100",P&&"!cursor-grab"),children:e.name})},t)})})})}),c.error&&(0,a.jsx)("div",{className:"container-xl py-8 text-center",children:(0,a.jsx)("p",{className:"text-small text-brandblue-dark75",children:D("businessdirectory.error.".concat(c.error))})}
1),(0,a.jsx)("div",{ref:z,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:c.items.map(function(e){return(0,a.jsx)(x.q,{item:e},e.id)})})]}),c&&c.items&&E&&(0,a.jsxs)("div",{className:"relative grid grid-cols-1 justify-items-center pb-20 lg:pb-28",children:[(0,a.jsxs)("div",{className:"relative z-10 grow-0 pt-4",children:[(0,a.jsx)(R,{className:n()("absolute left-1/2 top-0 w-[25px] -translate-x-1/2 [&>path]:fill-brandblue-light50",S&&"animate-itemFloot")}),(0,a.jsxs)("span",{className:"text-small text-brandblue-dark75",children:[c.items.length," ",D("businessdirectory.of")," ",c.total," ",D("businessdirectory.wouldshow")]})]}),c&&!0===c.hasNext&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(h.$,{clickCallback:function(){b({type:v.fJ.OFFSET})},shadow:!0,className:"z-10 mt-6",design:"secondary",noarrow:!0,children:D("businessdirectory.listshowmore")})}),(0,a.jsx)(_.r,{fillColor:"brandblue-light16",bgType:"wave2",display:"phone",breakpoint:"lg",className:"absolute bottom-[-80px] left-0 z-0 w-[233px]"}),(0,a.jsx)(_.r,{fillColor:"brandblue-light16",bgType:"wave2",display:"desktop",breakpoint:"lg",className:"absolute bottom-0 left-0 z-0 w-[338px]"})]})]})},R=p()(s.e(7422).then(s.bind(s,67422)),{loadableGenerated:{webpack:function(){return[67422]}}}),O=s(79569),P=s(3182),B=s(28697),z=s(96597),J=s(67945),M=s(91136),V=s(88550),G=s(85442),H=s(84590),K=function(e){var t=e.paragraph,s=(0,d.useRef)(null),l=(0,r._)((0,d.useState)(!1),2),i=l[0],n=l[1],o={rootMargin:"-50px"};return(0,d.useEffect)(function(){if(s.current){var e=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting&&(n(!0),e.disconnect())})},o);return e.observe(s.current),function(){return e.disconnect()}}},[s]),(0,a.jsxs)(a.Fragment,{children:[t.field_anchor&&(0,a.jsx)("span",{"target-id":t.field_anchor,className:"mt-14 block"}),(0,a.jsxs)("section",{"data-cy":"business-directory",className:"paragraph",ref:s,children:[(0,a.jsxs)("div",{className:"container-xl",children:[(0,a.jsx)("h2",{className:"mb-8 lg:mb-10",children:t.field_title}),t.field_text&&(0,a.jsx)(G.c,{processed:t.field_text.processed,className:"mb-8 lg:mb-10"})]}),i&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.L,{}),(0,a.jsx)(Y,{paragraph:t})]})]})]})},Y=function(e){var t=e.paragraph,s=(0,B.R9)();return(0,a.jsx)(a.Fragment,{children:s&&s.isLoadedCategories&&s.isLoadedConditions&&s.isLoadedPlaces&&(0,a.jsx)(y.uD,{children:(0,a.jsx)(q,{paragraph:t})})})},q=function(e){var t,s,r,i,c=e.paragraph,u=(0,o.Bd)().t,f=(0,d.useId)(),m=(0,V.l)("google_maps");return(0,J.u)({prefilter:{category:c.field_thema_category,customs:c.field_custom_filter,places:c.field_places_custom,conditions:c.field_conditions_custom}}),(0,z.o)({hasTabs:!0}),(0,a.jsxs)(a.Fragment,{children:[("map"===c.field_business_directory_layout||"map_cta"===c.field_business_directory_layout||"map_list"===c.field_business_directory_layout)&&(0,a.jsxs)(V.w,{hash:f,type:"google_maps",className:"container-xl h-[512px] md:h-[580px]",children:[(0,a.jsx)(P.uL,{children:(0,a.jsx)(O.Y,{center:{lat:53.93283025122537,lng:14.096903205423917},zoom:9,useFilterBtn:!0,cta:{icon:c.field_icon,href:null==(t=c.field_link)?void 0:t.full_url,title:c.field_cta_title}})}),(0,a.jsx)("div",{className:"container-sm grid place-items-end",children:(0,a.jsx)(H.N,{href:null!=(r=null==(s=c.field_link)?void 0:s.full_url)?r:M.K.full_url,className:"group mt-6 max-w-[280px]",children:(0,a.jsxs)("h5",{className:"pr-1",children:[null!=(i=c.field_cta_title)?i:u(M.K.title),(0,a.jsx)(l.P,{icon:"icon-arrow-right-large-bold",className:"ml-2 inline group-hover:animate-swing [&>*]:stroke-brandblue-dark100"})]})})})]}),("list"===c.field_business_directory_layout||"map_list"===c.field_business_directory_layout)&&(0,a.jsx)(v.IX,{children:(0,a.jsx)(D,{optionalTabSliderFilter:"list"===c.field_business_directory_layout||"map_list"===c.field_business_directory_layout&&!m,className:n()("map_list"===c.field_business_directory_layout&&!m&&"mt-6 lg:mt-12")})})]})}}}]);

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.