1"use strict";(globalThis.webpackChunkweb||=[]).push([[95840],{41619(e,t,s){s.d(t,{X:()=>a});var n=s(11280);function a(e,t=100){let s;switch(e){case n.Xr.SEARCH_BOT:s=t;break;case n.Xr.PHONE:s=12;break;default:s=24}return Math.min(s,t)}},95840(e,t,s){s.r(t),s.d(t,{default:()=>le});s(88019),s(80863);var n=s(30758);const a="bmpfdsy",i="b45935a",l="b1gpu3nm";s(6909);var r=s(26697),c=s(53401),o=s(3607),h=s(65583),d=s(47934),u=s(97431),m=s(46020),x=s(1861),A=s(32604),b=s(55437),g=s(72894),C=s(31973),f=s(93819),p=(s(75328),s(86070)),E=s(62284),S=s(33153);const T={base:"bq6nzvt",type:{pill:"pqlfn42"},appearance:{success:"sc61rgn",error:"e9o1n2o"},child:"c2ecnsa"};function j({content:e,max:t,type:s,isShowingZero:n=!1,appearance:a}){const{layout:i}=(0,S.W)();let l=e;return"number"==typeof e&&t&&e>t&&(l=`${t}+`),l||n&&0===l?(0,p.jsx)("span",{className:(0,A.cx)(T.base,s&&T.type[s],a&&T.appearance[a],i===E.nW.CHILD&&T.child,o.Z.base,o.Z.info03),"data-testid":"badge-root",children:l}):null}const L=n.memo(j);var k=s(72253),N=s(96802),I=s(49364),y=s(10282);const v="bmf7lx6",D="b16uqod7",R="b1osy5z3",H="b3kngge",_="b1a0b84k",P="b7ulsjt";s(47073);var $=s(37708),B=s(11280),O=s(96123),U=s(92586),w=s(85686);const z="b1sq8cjo",V="bw6q199";s(27148);const F=function(){const e=`${I.A.API_HOST}/widgets/ard/editorials/${I.A.MOST_SEARCHED_WIDGET_ID}?pageSize=40&platform=MEDIA_THEK`,t=(0,g.jH)("search-001",(0,g.dp)(B.cq.TEASER_CLICK));return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("section",{children:[(0,p.jsx)("h2",{className:(0,A.cx)(o.A.base,o.A.heading03,V),children:"Sendungen A-Z"}),(0,p.jsx)("div",{className:(0,A.cx)(l),children:(0,p.jsx)(U.A,{isFixed:!1,buttonsAs:u.N_,href:(0,C.Q2)(B.g$.SHOWS)+"/"})})]}),(0,p.jsxs)("section",{children:[(0,p.jsx)("h2",{className:(0,A.cx)(o.A.base,o.A.heading03,V),children:"Rubriken"}),(0,p.jsx)(O.A,{fetchUrl:e,hasDisabledAnimations:!w.A.index||!h.A.animationEnabled,isLoadingEagerly:!0,onTeaserClick:t})]})]})};s(97700),s(99921),s(1909),s(32145);var G=s(79409),M=s(73311);const K=function({searchParams:e,onChannelFilterChange:t,onBooleanFilterChange:s}){const a=(0,n.useMemo)(()=>{const t=[{value:B.s8.ARD,text:"Alle Sender",isActive:!e.has(m.Le.CHANNEL)}],s=B.BD.filter(e=>!m.zd.includes(e)).map(t=>({value:t,text:m.bW[t],isActive:e.get(m.Le.CHANNEL)===t}));return t.push(...s),t},[e]),i=(0,n.useCallback)(e=>{t(a[e]?.value)},[]),l=(0,n.useCallback)(()=>{s(m.Le.AUDIO_DESCRIPTION)},[]),r=(0,n.useCallback)(()=>{s(m.Le.SUBTITLE)},[]),c=(0,n.useCallback)(()=>{s(m.Le.CHILD_CONTENT)},[]),o=(0,n.useCallback)(()=>{s(m.Le.SIGN_LANGUAGE)},[]),d=(0,n.useMemo)(()=>{const t=[{text:"Untertitel",type:N.l.CHIP,onClick:r,isActive:e.has(m.Le.SUBTITLE),ariaLabel:e.has(m.Le.SUBTITLE)?"Suchergebnisse nicht nach Inhalten mit Untertitel filtern":"Suchergebnisse nach Inhalten mit Untertitel filtern"},{text:"Audiodeskription",type:N.l.CHIP,onClick:l,isActive:e.has(m.Le.AUDIO_DESCRIPTION),ariaLabel:e.has(m.Le.AUDIO_DESCRIPTION)?"Suchergebnisse nicht nach Inhalten mit Hörfassung filtern":"Suchergebnisse nach Inhalten mit Hörfassung filtern"},{text:"Gebärdensprache",type:N.l.CHIP,onClick:o,isActive:e.has(m.Le.SIGN_LANGUAGE),ariaLabel:e.has(m.Le.SIGN_LANGUAGE)?"Suchergebnisse nicht nach Inhalten mit Gebärdensprache filtern":"Suchergebnisse nach Inhalten mit Gebärdensprache filtern"}];return M.Ay.isChild||(t.unshift({text:"Nach Sender filtern",type:N.l.CHIP,isActive:e.has(m.Le.CHANNEL)&&e.get(m.Le.CHANNEL)!==B.s8.ARD,subNav:{hasActiveCheckmarkIcon:!0,items:a,onChange:i,hasDisabledAnimations:!h.A.animationEnabled},ariaLabel:"Filter nach Sender anzeigen"}),t.push({text:"Kinder",type:N.l.CHIP,onClick:c,isActive:e.has(m.Le.CHILD_CONTENT),ariaLabel:e.has(m.Le.CHILD_CONTENT)?"Suchergebnisse nicht nach Inhalten für Kinder filtern":"Suchergebnisse nach Inhalten für Kinder filtern"})),t},[e]);return(0,p.jsx)(G.A,{hasControlledItems:!0,isSwipeable:!0,items:d,label:"Suchfilter",accessibility:"tablist"})};var q=s(62829),W=s(51901);const X=function({children:e,onMount:t,onUnmount:s}){return(0,n.useEffect)(()=>(t&&t(),()=>{s&&s()}),[]),(0,p.jsx)(p.Fragment,{children:e})};
1var Z=s(48977),Q=s(7477);const J=function(){const e=`${I.A.API_HOST}/static/frequently-searched-kinderwelt`,{data:t}=(0,q.st)(e),s=(0,g.jH)("search-001",(0,g.dp)(B.cq.TEASER_CLICK));return t?.teasers?.length?(0,p.jsx)("div",{className:(0,A.cx)(z),children:(0,p.jsx)(O.A,{fetchUrl:e,hasDisabledAnimations:!w.A.index||!h.A.animationEnabled,isLoadingEagerly:!0,onTeaserClick:s})}):null};var Y=s(8009),ee=s(41619),te=s(49052);function se({children:e}){const t=(0,f.yR)(),[s,n]='Deine Suche nach "{searchText}" ergab keine Treffer.'.split("{searchText}");return(0,p.jsxs)("section",{children:[(0,p.jsx)(r.fI,{my:0,children:(0,p.jsxs)(r.VP,{className:(0,A.cx)(v),my:0,p:0,children:[(0,p.jsx)("h2",{className:(0,A.cx)(o.A.base,o.A.heading04),children:"Keine Treffer"}),(0,p.jsxs)("p",{className:(0,A.cx)(o.A.base,o.A.body02),children:[s,(0,p.jsx)("b",{children:e}),n]})]})}),t?(0,p.jsx)(J,{}):(0,p.jsx)(F,{})]})}function ne({fetchUrl:e,searchText:t,id:s,setHasResults:a,searchParams:i}){const{data:l}=(0,q.st)(e),r=(0,g.jH)("search-001",(0,g.dp)(B.cq.TEASER_CLICK)),c=(0,n.useCallback)(e=>{r(e),Y.A.addItem(t,i)},[r,t,i]);return(0,x.A)({robotsNoIndex:!0}),(0,n.useEffect)(()=>{a(!(!l?.teasers?.length||!t))},[t,l,i]),l?.teasers?.length?(0,p.jsx)(y.A,{title:"Sendungen, Themen, Livestreams",fetchUrl:e,onTeaserClick:c,hasVirtualSlides:!0,isLoadingEagerly:!1,hasClickEffect:h.A.animationEnabled,id:s},s):null}function ae({fetchUrl:e,searchText:t,setHasResults:s,pageSize:a,sorting:i,setSorting:l,searchParams:r}){const d=(0,f.zz)(),{data:u}=(0,q.st)((0,f.Kb)(e,"{pageNumber}","0")),m=!d||!(w.A.index&&h.A.animationEnabled),x=(0,g.dp)(B.cq.BOOKMARK_CLICK),b=(0,g.jH)("search-001",(0,g.dp)(B.cq.TEASER_CLICK)),C=(0,n.useCallback)(e=>{b(e),Y.A.addItem(t,r)},[b,t,r]);return(0,n.useEffect)(()=>{s(!(!u?.teasers?.length||!t))},[t,u]),u?.teasers?.length?(0,p.jsxs)("section",{className:(0,A.cx)(H,!m&&_),children:[(0,p.jsx)("div",{className:(0,A.cx)(c.A.base),children:`Es werden ${u?.pagination?.totalElements} Videos zu ihrem Suchbegriff "${t}"\n\t\t\t\t\t\t\tangezeigt.`}),(0,p.jsxs)("h2",{className:(0,A.cx)(o.A.base,o.A.heading03,P),children:["Videos",(0,p.jsx)(L,{max:999,content:u?.pagination?.totalElements,type:"pill"})]}),(0,p.jsx)(k.Ay,{items:[{text:"Relevanz",isActive:i===B._E.SCORE_DESC,onClick:()=>l(B._E.SCORE_DESC)},{text:"Neueste",isActive:i===B._E.DATE_DESC,onClick:()=>l(B._E.DATE_DESC)},{text:"Ãlteste",isActive:i===B._E.DATE_ASC,onClick:()=>l(B._E.DATE_ASC)}],selectButton:{text:"Sortierung ändern",type:N.l.TEXT},isFullwidth:!1,hasArrow:!0,appendTo:document.body}),(0,p.jsx)($.A,{fetchUrl:e,onTeaserClick:C,onWatchlistButtonClick:x,pageSize:a,index:1},`${t}${r}`)]}):null}const ie=function({searchText:e}){const{appState:t}=(0,te.G9)(),s=e?encodeURIComponent(e):"",a=(0,u.Zp)(),[i]=(0,u.ok)(),[l,c]=(0,n.useState)(!1),[o,d]=(0,n.useState)(!1),[x,b]=(0,n.useState)(),[g,C]=(0,n.useState)();let E=i.get(m.Le.CHANNEL)??B.s8.ARD;const S=i.get(m.Le.SORT)??B._E.SCORE_DESC,T=(0,ee.X)(t.config.deviceType);let j="";M.Ay.isChild&&(E=B.s8.ARD,j="&childCont=true");const L=new URL(`${I.A.SEARCH_HOST}/search/vods/${E}?query=${s}&pageNumber={pageNumber}&pageSize=${T}&platform=MEDIA_THEK${j}`),k=new URL(`${I.A.SEARCH_HOST}/search/shows/${E}?query=${s}&pageSize=48&platform=MEDIA_THEK${j}`);L.searchParams.set(m.cX[m.Le.SORT],S),i&&Object.entries(m.mU).forEach(([e,t])=>{(0,Q.r)(i,t)&&(L.searchParams.set(m.cX[t],"true"),k.searchParams.set(m.cX[t],"true"))});const N=!(0,f.zz)()||!(w.A.index&&h.A.animationEnabled),y=(0,n.useCallback)(e=>{i.has(m.Le.CHANNEL)?e===B.s8.ARD?(i.delete(m.Le.CHANNEL),E=B.s8.ARD,a(`${w.A.location.pathname}?${i.toString()}`,f.yx)):e!==E&&(E=e,i.set(m.Le.CHANNEL,e),a(`${w.A.location.pathname}?${i.toString()}`,f.yx)):e!==B.s8.ARD&&(i.set(m.Le.CHANNEL,e),E=e,a(`${w.A.location.pathname}?${i.toString()}`,f.yx))},[]),v=(0,n.useCallback)(e=>{i.has(e)?i.delete(e):i.set(e,""),a(`${w.A.location.pathname}?${i.toString()}`,f.yx)},[]),H=(0,n.useCallback)(e=>{i.set(m.Le.SORT,e),a(`${w.A.location.pathname}?${i.toString()}`,f.yx)},[]);return(0,n.useEffect)(()=>()=>{d(!1),c(!1)},[e]),(0,p.jsxs)("div",{children:[(0,p.jsx)(r.fI,{className:(0,A.cx)(D,!N&&R),justifyContent:"center",children:(0,p.jsx)(r.VP,{all:12,xs:8,l:7,margin:0,p:2,children:(0,p.jsx)(K,{searchParams:i,onBooleanFilterChange:v,onCh
1annelFilterChange:y})})}),(0,p.jsx)(n.Suspense,{fallback:(0,p.jsx)(X,{onMount:()=>b(!0),onUnmount:()=>b(!1),children:(0,p.jsx)(W.A,{hasVisibleTitle:!0})}),children:(0,p.jsx)(ne,{searchText:e,id:`${e}_${i.toString()}`,fetchUrl:k.href,setHasResults:c,searchParams:i})}),(0,p.jsx)(n.Suspense,{fallback:(0,p.jsx)(X,{onMount:()=>C(!0),onUnmount:()=>C(!1),children:(0,p.jsx)(Z.A,{hasVisibleTitle:!0})}),children:(0,p.jsx)(ae,{searchText:e,fetchUrl:L.href,setHasResults:d,pageSize:T,sorting:S,setSorting:H,searchParams:i})}),!(x||g)&&!o&&!l&&(0,p.jsx)(se,{children:e})]})};const le=function(){const{searchText:e=""}=(0,u.g)(),t=(0,u.Zp)(),[s,l]=(0,n.useState)(e),[E]=(0,u.ok)(),S=(0,f.zz)(),T=(0,f.yR)(),j=!S||!h.A.animationEnabled,L="ARD Mediathek Suche: Finde deine Lieblingsinhalte";(0,x.A)({title:L,description:`Durchsuche die ${m.KR} nach Videos, Sendungen und Filmen.`}),(0,g.T5)([E,s]),(0,n.useEffect)(()=>{s!==e&&t((0,C.$m)(s,E.toString()),f.yx)},[s]);const k=Object.values(m.Le).some(e=>E.has(e))||e.length>0;return(0,p.jsxs)("main",{className:(0,A.cx)(r.Ln.base,b.Y.base,a),id:m.Xs,children:[(0,p.jsx)("h1",{className:(0,A.cx)(o.A.base,o.A.heading01,c.A.base),children:L}),(0,p.jsx)(r.fI,{justifyContent:"center",children:(0,p.jsx)(r.VP,{className:(0,A.cx)(!j&&i),all:12,xs:8,l:7,p:2,children:(0,p.jsx)(d.A,{initialSearchText:e,onSearchTextChange:l,urlSearchText:e})})}),k?(0,p.jsx)(ie,{searchText:s}):T?(0,p.jsx)(J,{}):(0,p.jsx)(F,{})]})}},96123(e,t,s){s.d(t,{A:()=>p});s(88019),s(32145);var n=s(26697),a=s(30758),i=s(79070),l=s(62829),r=s(57092),c=s(31973),o=s(93819),h=s(72894),d=s(65583),u=s(1286),m=s(48977),x=s(48702),A=s(86070);function b({teaser:e,onTeaserClick:t,onTeaserVisible:s,index:a}){return(0,A.jsx)(n.VP,{className:"collection-teaser",all:6,xs:6,s:6,m:4,l:3,xl:3,xxl:2.4,p:2,margin:3,mx:0,mt:0,children:(0,A.jsx)(x.A,{...e,onClick:t,onVisible:s,index:a})})}var g=s(49052);const C="bwq6lkn";s(95630);var f=s(32604);const p=(0,u.A)(function({fetchUrl:e,onTeaserClick:t=()=>{},onTeaserVisible:s=()=>{},hasDisabledAnimations:u=!1,isLoadingEagerly:m=!1,index:x=0}){const{data:p,error:E}=(0,l.st)(e),S=function({onTeaserClick:e,onTeaserVisible:t,isLoadingEagerly:s},n){const{appState:l,buildTeaserContextLink:h}=(0,g.G9)();return(0,a.useMemo)(()=>{if(n?.length)return n.map((e,t)=>({...(0,o.GX)(e,l),href:h((0,c.th)(e)),isLoadingEagerly:s,progress:(0,o.Bs)(e.playtime,e.progress),image:e.images.aspect16x9&&{srcset:(0,r.Q2)(e.images.aspect16x9.src,[[i.B.w272,320],[i.B.w448,480],[i.B.w240,600],[i.B.w320,768],[i.B.w384,840],[i.B.w448,960],[i.B.w384,1280],[i.B.w320,1440],[i.B.w320,1600],[i.B.w272,1920],[i.B.w384,2560]]),alt:(0,r.Rp)(e.images.aspect16x9),title:(0,r.Oj)(e.images.aspect16x9)},hasClickEffect:d.A.animationEnabled,index:t})).map((s,n)=>(0,A.jsx)(b,{teaser:s,onTeaserClick:e,onTeaserVisible:t,index:n},s.id))},[n])}({onTeaserClick:(0,h.Fo)(x,p?.id,t),onTeaserVisible:(0,h.Fo)(x,p?.id,s),isLoadingEagerly:m},p?.teasers);return!E&&S?(0,A.jsx)(n.fI,{className:(0,f.cx)(!u&&C),outerSpace:"none",children:S}):null},m.A)},48977(e,t,s){s(30758);var n=s(48848),a=s(3607),i=s(62923),l=s(32604),r=s(86070);const c=function({hasDisabledAnimations:e=!1,textPosition:t="onImage",hasVisibleTitle:s,placeholderCount:c}){return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)("h2",{className:(0,l.cx)(a.A.base,a.A.heading02),children:(0,r.jsx)("span",{className:(0,l.cx)(n.Or.base),style:{width:"150px"}})}),(0,r.jsx)(i.A,{hasDisabledAnimations:e,textPosition:t,placeholderCount:c})]})};s.d(t,["A",0,c])},37708(e,t,s){s.d(t,{A:()=>T});var n=s(30758),a=s(32604),i=s(56244),l=s(3607),r=s(72894),c=s(65583),o=s(93410),h=s(28349),d=s(48702),u=s(8362),m=s(62829),x=s(93819),A=s(62923),b=s(1286),g=(s(88019),s(32145),s(49052)),C=s(31973),f=s(96802);const p={type:"icon",name:"remove"};function E(e,t){if(!e.isExpired)return t((0,C.th)(e))}var S=s(86070);const T=(0,b.A)(function({fetchUrl:e,onTeaserVisible:t=()=>{},onTeaserClick:s=()=>{},onWatchlistButtonClick:A=()=>{},pageSize:b=24,maxPreloadPageSize:C=100,index:T=0,emptyMessage:j="Leider sind momentan keine Inhalte verfügbar."}
1){const[L,k]=(0,n.useState)(e),[N,I]=(0,n.useState)({id:"",title:"",items:[],totalElements:null}),[y,v]=(0,o.JD)("InfiniteScrollingWidget",{itemsCount:0},!0),{data:D}=(0,m.st)(L,{teaserCount:N.items.length?void 0:y.itemsCount||b,maxPreloadPageSize:C,pageSize:b}),[R,H]=(0,n.useTransition)(),_=(0,n.useRef)(0),P=(0,n.useRef)(!1),$=(0,r.Fo)(T,N.id,s),B=(0,r.Fo)(T,N.id,A),O=(0,r.Fo)(T,N.id,t),U=function({hasClickEffect:e=!1,onTeaserVisible:t=()=>{},onTeaserClick:s,onWatchlistButtonClick:a,onRemoveFromPlayHistory:i},l){const{appState:r,buildTeaserContextLink:c}=(0,g.G9)();return(0,n.useMemo)(()=>l?.length?l.map((n,l)=>({...(0,x.GX)(n,r),hasContextMenu:!!i,teaserButtons:i&&[{text:"Aus Liste entfernen",type:f.l.TEXT,itemLeft:p,onClick:()=>i(n)}],hasClickEffect:e,href:E(n,c),onWatchlistButtonClick:a,onVisible:t,onClick:s,index:l,isLoadingEagerly:!0})):[],[l])}({hasClickEffect:c.A.animationEnabled,onTeaserClick:$,onTeaserVisible:O,onWatchlistButtonClick:B},N.items.length?N.items:D?.teasers||[]),w=(0,n.useCallback)(()=>{N.totalElements&&N.items.length<N.totalElements&&(_.current++,P.current=!1,H(()=>{k((0,x.Kb)(e,"{pageNumber}",String(_.current)))}))},[N.items.length,N.totalElements]);return(0,n.useEffect)(()=>{D&&!P.current&&(P.current=!0,I(e=>({id:D.id||e.id,title:D.title||e.title,items:[...e.items,...D.teasers],totalElements:D.pagination.totalElements})),N.items.length||(_.current=Math.ceil(D.teasers.length/b)-1,y.itemsCount&&setTimeout(()=>{(0,h.jI)((0,o.ZV)().y,!0)},100)))},[D]),(0,n.useEffect)(()=>{N.items.length>y.itemsCount&&v({itemsCount:N.items.length})},[N.items.length,y.itemsCount]),(0,S.jsxs)(S.Fragment,{children:[U?.length&&U.length>0&&(0,S.jsxs)("div",{itemScope:!0,itemType:"https://schema.org/ItemList",children:[(0,S.jsx)("meta",{itemProp:"name",content:N.title}),(0,S.jsx)(i.A,{items:U,itemAs:d.A,onEndReached:w,loadingCount:b,initialItemCount:U?.length?Math.min(U.length,b):b},e)]}),0===U?.length&&j&&(0,S.jsx)("p",{className:(0,a.cx)(l.A.base,l.A.body02,u.NW.base),children:j})]})},A.A)},62923(e,t,s){s(88019),s(32145);var n=s(26697),a=s(58313),i=(s(30758),s(8362)),l=s(32604),r=s(86070);const c=function({hasDisabledAnimations:e=!1,textPosition:t="belowImage",placeholderCount:s=24}){return(0,r.jsx)(n.fI,{className:(0,l.cx)(!e&&i.L7.base),outerSpace:"none",children:Array(s).fill({}).map((e,s)=>(0,r.jsx)(n.VP,{all:6,m:4,l:3,xxl:2.4,p:2,margin:3,mx:0,mt:0,children:(0,r.jsx)(a.A,{textPosition:t})},s))})};s.d(t,["A",0,c])},8362(e,t,s){s(97039),s.d(t,["L7",0,{base:"boec1kw"},"NW",0,{base:"b88klmd"},"p_",0,{base:"bdz4500"}])},27148(e,t,s){s.r(t)},47073(e,t,s){s.r(t)},6909(e,t,s){s.r(t)},95630(e,t,s){s.r(t)},97039(e,t,s){s.r(t)},92586(e,t,s){s.d(t,{A:()=>m});s(97700),s(88019),s(32145);var n=s(86070),a=s(30758),i=s(32604),l=s(44593),r=s(96802);const c="bs1lcrs",o="iiyh677",h="b174k48y",d="i1r86hcn";function u({buttonsAs:e,onButtonClick:t,isFixed:s=!0,activeButton:u="",chars:m="ABCDEFGHIJKLMNOPQRSTUVWXYZ#",disabledChars:x="",ariaLabel:A="Sendungen A bis Z",href:b,buttonProps:g}){const[C,f]=(0,a.useState)(u);return(0,a.useEffect)(()=>{f(u)},[u]),(0,n.jsx)("ul",{className:(0,i.cx)(c,s&&o),role:"tablist","aria-label":A,children:m.split("").map(a=>(0,n.jsx)("li",{className:(0,i.cx)(h,s&&d),role:"presentation",children:(0,n.jsx)(l.$,{...g,accessibility:"tab",href:`${b||""}${"#"===a?"0-9":a}`,as:e,onClick:()=>function(e){f(e),t&&t(e)}(a),isActive:a===C,isDisabled:x.includes(a),ariaSelected:a===C,text:a,type:r.l.TEXT})},a))})}const m=a.memo(u)}}]);
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.