PageSourceSearch

https://captaincoupon.de/_next/static/chunks/pages/kategorien-ad2556ea2040bde2.js

js captaincoupon.de collected 2026-10-06 15:19:25 UTC 9,344 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3325,7249],{40662:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/kategorien",function(){return a(45386)}])},45386:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return o},default:function(){return u}});var n=a(85893),s=a(9008),r=a.n(s),c=a(37217),i=a(7249),l=a(64447),d=a(77667),o=!0;function u(e){let{allBrands:t,headerData:a}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r(),{children:(0,n.jsx)("title",{children:"CaptainCoupon Kategorien"})}),(0,n.jsxs)(c.Ar,{home:!0,headerData:a,children:[(0,n.jsx)(l.Z,{all:"all",sectionBg:"#f5f5f5",className:"categories-section-kategorien pad-sm-t-5 pad-t-2"}),t&&t.length>0&&(0,n.jsx)(i.default,{brands:t,className:"pad-lg-tb-10 pad-tb-5"}),(0,n.jsx)(d.Z,{})]})]})}},7249:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return o}});var n=a(85893),s=a(67294),r=a(44474),c=a(41664),i=a.n(c),l=a(37217),d=a(11163);function o(e){let{showBtn:t=!0,className:a="",landingPage:c=!1}=e,[o,u]=(0,s.useState)(),[m,h]=(0,s.useState)(!1),[p,f]=(0,s.useState)(!1),b=async e=>{h(!0),u(await r.vp(e)),h(!1)};(0,s.useEffect)(()=>(b({pageSize:-1,sort:[{field:"isPopular",dir:"DESC"}]}),f(!!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i)),()=>{}),[]);let g=(e=>{if(!(null==e?void 0:e.length))return[];let t=p?12:24,a=Math.ceil(e.length/t),n=[];for(let s=0;s<a;s++)n.push(e.slice(s*t,s*t+t));return n})(o),x=(0,d.useRouter)();return(0,n.jsxs)(l.$0,{className:"".concat(a),background:"#fff",customPadding:!0,children:[(0,n.jsx)("div",{className:"col-sm-12",children:(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("h1",{className:"".concat("/"==x.pathname?"text-center":""," col-sm-12 section-header pad-sm-b-1 text-lg-left"),children:"Marken des Monats"})})}),(0,n.jsxs)("div",{className:"col-sm-12",children:[m&&(0,n.jsx)("p",{children:"loading...."}),(null==g?void 0:g.length)?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"row justify-content-center",children:(0,n.jsx)(l.PY,{brandsForSlides:g,showIndicator:!p})})}):(0,n.jsx)("div",{className:"not-found",children:(0,n.jsx)("h1",{children:"Leider haben wir f\xfcr deine Suche keine Ergebnisse gefunden."})})]}),(0,n.jsx)("div",{className:"col-sm-12 d-flex justify-content-center ".concat(c?"pad-t-1 pad-lg-t-4":""),children:t&&(0,n.jsx)(i(),{href:"/marken",className:"btn btn-dark",children:"Alle Marken"})})]})}},64447:function(e,t,a){"use strict";var n=a(85893),s=a(37217),r=a(41664),c=a.n(r),i=a(67294),l=a(59256),d=a(6226),o=a.n(d);t.Z=e=>{let{all:t,sectionBg:a="#fff",className:r=""}=e,{categories:d}=(0,i.useContext)(l.Z),u=t||4,m=[];for(let e=0,t;(t=d[e])&&!(m.length>=u);e++)(t.isPopular||"all"===u)&&(m=[...m,(0,n.jsxs)(s.Zb,{className:"col-6 col-lg-3 ".concat(o().categoryCard),cardClassName:"categories-card",children:[(0,n.jsx)(s.Zb.Image,{url:"rabatte/".concat(t.slug||t.id),src:t.image,alt:t.name}),(0,n.jsx)(s.Zb.Description,{className:o().cardDescription,children:(0,n.jsx)("h3",{className:"font-weight-normal",children:t.name})})]},t.id)]);return(0,n.jsxs)(s.$0,{className:"".concat(r," ").concat(o().categoriesSection),background:a,customPadding:!0,children:[(0,n.jsx)("h2",{className:"col-sm-12 section-header pad-sm-b-1 text-left pl-2 pl-md-3",children:"Kategorien"}),m,"all"!==t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"container",children:(0,n.jsx)("div",{className:"row",children:d&&d.map((e,t)=>(0,n.jsx)(s.tp,{label:e.name,url:"rabatte/".concat(e.slug||e.id),className:"col-lg-3 col-sm-6",children:(0,n.jsx)("img",{src:e.icon,alt:"".concat(e.name," category"),loading:"lazy"})},e.id))})}),(0,n.jsx)("div",{className:"col-sm-12 pad-t-4 d-flex justify-content-center",children:(0,n.jsx)(c(),{href:"kategorien",legacyBehavior:!0,children:(0,n.jsx)("a",{className:"btn btn-dark",children:"Alle Kategorien von A-Z"})})})]})]})}},77667:function(e,t,a){"use strict";a.d(t,{Z:function(){return h}});var n=a(85893),s=a(37217),r=a(87536),c=a(67294),i=a(45007),l=a(31732),d=a(27408);a(78579);var o=a(41664),u=a.n(o);let m=e=>{var t;if(e.startsWith("NewsletterSubscription with email [")&&e.endsWith("] already exists!")){let t=e.match(/\[(.*?)\]/)[1];return"Mit der E-Mail Adresse [".concat(t,"] bist du bereits beim Newsletter registriert.")}return e.includes("Invalid Email")?"Diese Email-Adresse ist leider nicht g\xfcltig - bitte \xfcberpr\xfcfe noch einmal deine Eingabe.":(null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.status)===500?"Leider gab es ein technisches Problem - bitte versuch es sp\xe4ter noch einmal.":e};var h=e=>{let{headerText:t,brandInfo:a=null,brandPageFullWidth:o=!0,brandNewsletterSubtextAsH3:h=!1}=e,{register:p,handleSubmit:f,formState:{errors:b},reset:g}=(0,r.cI)(),[x,j]=(0,c.useState)(),[w,N]=(0,c.useState)(""),[v,y]=(0,c.useState)(!1),{useCustomTheme:_}=(0,i.v9)(e=>e.settings);(0,c.useEffect)(()=>{(0,d.$D)()&&(0,l.S4)().then(e=>{e.data.isNewslettersSubscribed&&y(!0),N(e.data.emails.find(e=>e.primaryEmail).email)}).catch(()=>{y(!1)})},[N,y]);let S=async e=>{try{let t=new URLSearchParams;t.append("EMAIL",e.newsletter_input),t.append("REGISTRATION_URL",window.location.href),t.append("locale","en"),t.append("email_address_check",""),a&&t.append("BRAND",a.public.name);let n=(0,d.$D)();if(t.append("LOGGED_IN",!!n),n){let e=JSON.parse(localStorage.getItem("userAttributes"));t.append("USERNAME","".concat(e.firstName," ").concat(e.surname))}let s=await fetch("https://sibforms.com/serve/MUIFAA38mmvgan7tL-a8FN_ROiU0dw7wR2beR18aPuE-IY2vUy2ydiGy4qEH-A2kKLyasETVm7aTJGEoubz5x_Q4-GOhX4Vj1GJZ3k_wl1W_T30al29_NzQ9UdwpQgilKuSxTSOYUPjkdWIEq2tz80ceM5S8o2Kaz-zzVDt6hDgTKaddUPZXPI-Tp4u63KaLyfyF8Je4ZDL3lVi7?isAjax=1",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t.toString()}),r=await s.json();s.ok&&r.success?(j({type:"success",message:r.message||"Your subscription has been successful."}),g(),r.redirect&&(window.location.href=r.redirect)):(j({type:"danger",message:"Subscription failed. Please try again."}),g())}catch(e){j({type:"danger",message:m(e.request.responseText)})}};if(v||_)return null;let E="newsletter-section";return a&&!o?E+=" brand br-15 mx-0 pad-b-6 newsletter-brand-section mb-35":E+=" pad-lg-tb-6 pad-tb-35",(0,n.jsx)(s.$0,{background:"#e6e6e6",className:E,
1customPadding:!0,rowClass:"justify-content-center",children:(0,n.jsxs)("form",{onSubmit:f(S),children:[t&&!!t.length&&(0,n.jsx)("div",{className:"col-sm-12 ".concat(a?"newsletter-brand-padding":""," d-flex justify-content-center"),children:(0,n.jsx)("h2",{className:"main-header text-center",children:t})}),a&&(0,n.jsxs)("div",{className:"m-auto newsletter-info ".concat(a?"newsletter-brand-padding":"pad-t-2"),children:[o&&(0,n.jsxs)("h4",{className:"text-center brand-newsletter-subtext",children:["Verpasse nie wieder Coupons von ",a.public.name]}),!o&&(h?(0,n.jsxs)("h3",{className:"text-center brand-newsletter-subtext",children:["Werde benachrichtigt, sobald der neue Coupon von ",a.public.name," online ist"]}):(0,n.jsxs)("h2",{className:"text-center brand-newsletter-subtext",children:["Werde benachrichtigt, sobald der neue Coupon von ",a.public.name," online ist"]}))]}),(0,n.jsxs)("div",{className:"".concat(a?"col-lg-10 offset-lg-1":"col-lg-6 offset-lg-3"," col-sm-10 offset-sm-1 pad-t-25"),children:[(0,n.jsxs)("div",{className:"newsletter-input-wrapper",children:[(0,n.jsx)("input",{type:"email",className:"form-control newsletterInput ".concat(a?"brand-newsletterInput":""),placeholder:"E-Mail Adresse","aria-label":"Input","aria-describedby":"basic-addon2",defaultValue:w,...p("newsletter_input",{required:!0})}),(0,n.jsx)("button",{className:"btn newsletter-btn ".concat(a?"brand-btn":""),type:"submit",children:"anmelden"})]}),b.newsletter_input&&(0,n.jsx)("p",{className:"inline-error",children:"please enter valid email"})]}),(0,n.jsxs)("div",{className:"".concat(a?"newsletter-brand-padding col-sm-10 offset-sm-1":"pt-3 col-sm-8 offset-sm-2"," col-xs-12"),children:[(0,n.jsxs)("small",{className:"d-inline-block text-center text-s ".concat(a?"brand-newsletter-info":""),children:['Mit dem Klick auf „anmelden" meldest du dich f\xfcr den CaptainCoupon-Newsletter an und akzeptierst unsere'," ",(0,n.jsx)(u(),{href:"/datenschutz",legacyBehavior:!0,children:(0,n.jsx)("a",{children:"Datenschutzbestimmungen."})})," "]}),x&&(0,n.jsx)("div",{className:"alert alert-".concat(x.type," text-center p-3"),children:x.message})]})]})})}},44474:function(e,t,a){"use strict";a.d(t,{Rb:function(){return c},vp:function(){return r}});var n=a(78579),s=a(87066);let r=async e=>{let{pageSize:t=24,page:a=0,sort:s=[{field:"timeAdded",dir:"DESC"}],search:r="",popular:c=!1}=e,i=[];try{let e=await n.Z.post("/brands/list",{page:a,pageSize:t,sort:s,search:r,popular:c});return e&&e.data&&Array.isArray(e.data.data)&&(i=e.data.data),i}catch(e){return[]}},c=async e=>s.Z.get("".concat("https://wb.captaincoupon.de/api/web","/brands/preview/").concat(e))},6226:function(e){e.exports={categoriesSection:"CategoriesSection_categoriesSection__WjS_I",categoryCard:"CategoriesSection_categoryCard__9p9_n",cardDescription:"CategoriesSection_cardDescription__Dg_R1"}}},function(e){e.O(0,[1228,3320,1778,5445,9304,67,4617,6158,7439,1111,2191,3714,1332,6113,2888,9774,179],function(){return e(e.s=40662)}),_N_E=e.O()}]);

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.