1import{i as P,c,a as o,A as m,B as d,t as p,b as y,n as r,F as L,l as J,a4 as X,H as me,o as t,a5 as g,N as Y,P as ee,Q as ne,w as ie,I as ue,a7 as q,f as ce,K as ve,af as ke,k as B,G as O,a1 as pe,y as G,h as _e}from"./CBZx7rdy.js";import{_ as ge}from"./CI-PKlKp.js";import{a as Q,b as te,c as ae,d as se,e as le,_ as fe,f as de,j as he,g as ye,h as Ne,i as Se,k as be}from"./Go8_NFwl.js";import{_ as re}from"./C6lDHqda.js";import{U as oe}from"./DNPHahWu.js";import{_ as xe}from"./BZzmG6MK.js";import{_ as Ae}from"./DRbktCdo.js";import"./BO2MJVnM.js";import"./DB0RT30T.js";const Fe=ee(ne),Pe={class:"flex px-3"},De={class:"min-w-0 space-y-4 sm:space-y-6 py-4 sm:pt-0 sm:px-4 lg:mx-[10px] text-content-primary max-w-[800px] lg:max-w-[640px] mx-auto"},we={class:"space-y-4 sm:space-y-6"},Te={class:"text-4xl sm:text-6xl tracking-tighter font-extrabold"},Ee={class:"flex items-center gap-4"},Ie={key:1,class:"px-4 py-1.5 rounded bg-surface-05 text-content-primary text-sm"},$e={class:"flex gap-2.5 items-center text-content-secondary text-sm"},Le={class:"flex flex-col text-xs"},Ve={class:"font-bold text-content-primary"},Oe={key:0,class:"font-medium"},Ce={class:"text-semibold ml-auto pl-4"},Ue={key:0,class:"font-bold"},Be={key:2,class:"w-full"},Re={key:0,class:"text-paragraph-xs font-medium text-content-secondary mt-spacing-xs"},qe={class:"mt-6 flex flex-col gap-6 lg:mt-8 lg:gap-8 text-base"},Me=P({__name:"PreviewNewsDetail",props:{result:{}},setup(n){return(e,i)=>{var x,A;const a=fe,v=re,u=X,h=me,s=Q,k=te,_=ae,S=se,b=le,D=de,w=Fe;return t(),c("div",Pe,[i[0]||(i[0]=o("div",{class:"hidden lg:block w-[300px] shrink-0"},null,-1)),o("article",De,[o("header",we,[o("h1",Te,p(e.result.headline),1),o("div",Ee,[e.result.timeline?(t(),m(a,{key:0,class:"pointer-events-none"})):d("",!0),e.result.location?(t(),c("div",Ie,p(e.result.location),1)):d("",!0)]),o("div",$e,[y(v,{"author-details":e.result.authorDetails},null,8,["author-details"]),o("div",Le,[o("p",Ve,p((x=e.result.authorDetails)==null?void 0:x.fullName),1),(A=e.result.publishedAt)!=null&&A.unixSeconds?(t(),c("span",Oe,p(r(oe)(e.result.publishedAt.unixSeconds)),1)):d("",!0)]),o("div",Ce,p(e.result.topic),1)]),e.result.subline?(t(),c("h2",Ue,p(e.result.subline),1)):d("",!0),e.result.tags?(t(),m(u,{key:1,tags:e.result.tags,max:5,class:"pointer-events-none"},null,8,["tags"])):d("",!0),e.result.isHeaderImageVisible?(t(),c("div",Be,[y(h,{src:e.result.headerImage,alt:e.result.headline,class:"w-full aspect-video"},null,8,["src","alt"]),e.result.headerImage.imageDescription?(t(),c("p",Re,p(e.result.headerImage.imageDescription),1)):d("",!0)])):d("",!0)]),e.result.text?(t(),m(s,{key:0,content:e.result.text},null,8,["content"])):d("",!0),o("div",qe,[(t(!0),c(L,null,J(e.result.teaserBlockList,(l,N)=>(t(),c(L,{key:N},[l.__typename===r(g).richText?(t(),m(k,{key:0,content:l.markup},null,8,["content"])):d("",!0),l.__typename===r(g).quote?(t(),m(_,{key:1,quote:l.text},null,8,["quote"])):d("",!0),l.__typename===r(g).image?(t(),m(S,{key:2,"image-url":l.imagePicker.url,description:l.imageDescription},null,8,["image-url","description"])):d("",!0),l.__typename===r(g).embed?(t(),m(b,{key:3,content:l.embedContentItem},null,8,["content"])):d("",!0),l.__typename===r(g).brightcove?(t(),m(D,{key:4,"brightcove-section":l},null,8,["brightcove-section"])):d("",!0),l.__typename===r(g).ad?(t(),m(w,{key:5,"slot-id":l.id,sizes:("AdUnits"in e?e.AdUnits:r(Y)).articleDetail[2].size},null,8,["slot-id","sizes"])):d("",!0)],64))),128))])]),i[1]||(i[1]=o("div",{class:"lg:w-[300px] shrink-0"},null,-1))])}}}),ze=ee(ne),Qe={class:"flex px-3"},He={class:"min-w-0 space-y-4 sm:space-y-6 py-4 sm:pt-0 sm:px-4 lg:mx-[10px] text-content-primary max-w-[800px] lg:max-w-[640px] mx-auto"},Ge={class:"space-y-4 sm:space-y-6"},Ze={class:"text-4xl sm:text-6xl tracking-tighter font-extrabold"},je={class:"flex items-center gap-4"},We={key:0,class:"px-4 py-1.5 rounded bg-surface-05 text-content-primary text-sm"},Ke={class:"flex gap-2.5 items-center text-content-secondary text-sm"},Je={class:"flex flex-col text-xs"},Xe={class:"font-bold text-content-primary"},Ye={key:0,class:"font-medium"},en={class:"text-semibold ml-auto pl-4"},nn={key:0,class:"text-paragraph-md font-bold"},tn={class:"mt-6 flex flex-col gap-6 lg:mt-8 lg:gap-8 text-base"},an=P({__name:"PreviewMediaNewsDetail",props:{result:{}},setup(n){return(e,i)=>{var x,A;const a=re,v=X,u=xe,h=ue,s=Q,k=te,_=ae,S=se,b=le,D=de,w=ze;return t(),c("div",Qe,[i[0]||(i[0]=o("div",{class:"hidden lg:block w-[300px] shrink-0"},null,-1)),o("article",He,[o("header",Ge,[o("h1",Ze,p(e.result.headline),1),o("div",je,[e.result.location?(t(),c("div",We,p(e.result.location),1)):d("",!0)]),o("div",Ke,[y(a,{"author-details":e.result.authorDetails},null,8,["author-details"]),o("div",Je,[o("p",Xe,p((x=e.result.authorDetails)==null?void 0:x.fullName),1),(A=e.result.publishedAt)!=null&&A.unixSeconds?(t(),c("span",Ye,p(r(oe)(e.result.publishedAt.unixSeconds)),1)):d("",!0)]),o("div",en,p(e.result.topic),1)]),e.result.subline?(t(),c("p",nn,p(e.result.subline),1)):d("",!0),e.result.tags?(t(),m(v,{key:1,tags:e.result.tags,max:
15,class:"pointer-events-none"},null,8,["tags"])):d("",!0),y(h,null,{default:ie(()=>{var l,N,V,T,E,I,$;return[y(u,{data:{image:{videoLg:(N=(l=e.result.headerMedia)==null?void 0:l.headerImage)==null?void 0:N.lg,videoMd:(T=(V=e.result.headerMedia)==null?void 0:V.headerImage)==null?void 0:T.md,videoSm:(I=(E=e.result.headerMedia)==null?void 0:E.headerImage)==null?void 0:I.sm},mediaId:($=e.result.headerMedia)==null?void 0:$.mediaId,mediaType:r(q).Video,title:e.result.headline,isLiveStream:!1}},null,8,["data"])]}),_:1})]),e.result.text?(t(),m(s,{key:0,content:e.result.text},null,8,["content"])):d("",!0),o("div",tn,[(t(!0),c(L,null,J(e.result.teaserBlockList,(l,N)=>(t(),c(L,{key:N},[l.__typename===r(g).richText?(t(),m(k,{key:0,content:l.markup},null,8,["content"])):d("",!0),l.__typename===r(g).quote?(t(),m(_,{key:1,quote:l.text},null,8,["quote"])):d("",!0),l.__typename===r(g).image?(t(),m(S,{key:2,"image-url":l.imagePicker.url,description:l.imageDescription},null,8,["image-url","description"])):d("",!0),l.__typename===r(g).embed?(t(),m(b,{key:3,content:l.embedContentItem},null,8,["content"])):d("",!0),l.__typename===r(g).brightcove?(t(),m(D,{key:4,"brightcove-section":l},null,8,["brightcove-section"])):d("",!0),l.__typename===r(g).ad?(t(),m(w,{key:5,"slot-id":l.id,sizes:("AdUnits"in e?e.AdUnits:r(Y)).articleDetail[2].size},null,8,["slot-id","sizes"])):d("",!0)],64))),128))])]),i[1]||(i[1]=o("div",{class:"lg:w-[300px] shrink-0"},null,-1))])}}}),sn={class:"lg:space-y-spacing-l space-y-spacing-m mt-4 px-4"},ln={key:0,class:"break-words text-paragraph-md font-medium transition-all"},dn=P({__name:"PreviewPodcastDetail",props:{result:{}},setup(n){return(e,i)=>{const a=he,v=Ae;return t(),c(L,null,[y(a,{"image-url":e.result.headerImage,headline:e.result.headline,type:e.result.__typename==="AudioPodcastPublishedContent"?r(q).Audio:r(q).Video},null,8,["image-url","headline","type"]),o("section",sn,[y(v,{class:"w-full font-extrabold text-center"},{default:ie(()=>[ce(p(e.result.headline),1)]),_:1}),e.result.text?(t(),c("p",ln,p(e.result.text),1)):d("",!0)])],64)}}}),rn={class:"space-y-4 sm:space-y-6 px-4"},on={class:"space-y-4 sm:space-y-6"},mn={class:"text-4xl sm:text-6xl tracking-tighter font-extrabold"},un=P({__name:"PreviewStaticPageDetail",props:{result:{}},setup(n){return(e,i)=>{const a=Q;return t(),c("article",rn,[o("header",on,[o("h1",mn,p(e.result.headline),1)]),y(a,{content:e.result.content},null,8,["content"])])}}}),cn={key:0,class:"fixed right-10 top-4 z-50"},vn={class:"flex w-full max-w-xs items-center rounded-lg bg-white p-2 text-gray-500 shadow dark:bg-gray-800 dark:text-gray-400 px-2",role:"alert"},kn={class:"ml-3 text-sm font-normal"},pn=P({__name:"PreviewModeToast",props:{show:{type:Boolean,default:!0},text:{default:"Preview mode"}},setup(n){return(e,i)=>e.show?(t(),c("div",cn,[o("div",vn,[i[0]||(i[0]=o("div",{class:"inline-flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg bg-green-100 text-green-500 dark:bg-green-800 dark:text-green-200"},[o("svg",{class:"h-5 w-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[o("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM10 15a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-4a1 1 0 0 1-2 0V6a1 1 0 0 1 2 0v5Z"})]),o("span",{class:"sr-only"},"Preview status icon")],-1)),o("div",kn,p(e.text),1)])])):d("",!0)}});var F={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"newsTeaserDetailPublishedContent"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsTeaserDetailPublishedContent"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"overline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"headline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"topics"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isHeaderImageVisible"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"location"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timeline"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"publishedAt"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unixSeconds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"iso8601"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"headerImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"original"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"sm"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"16x9_small",block:!1}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"md"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"16x9_medium",block:!1}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"lg"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"16x9_large",block:!1}}],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"imageFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"generatedTeaserBlockList"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsTeaserBlock"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BrightcoveContentPublishedElement"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"detail"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BaseDetailPagePublishedContent"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"_id"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BaseMediaDetailPagePublishedContent"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mediaId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"duration"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"headline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"headerImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"audioSm"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"1x1_small",block:!1}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"videoLg"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"16x9_large",block:!1}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"videoMd"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"16x9_medium",block:!1}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"videoSm"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}},{kind:"Argument",name:{kind:"Name",value:"cropAlias"},value:{kind:"StringValue",value:"16x9_small",block:!1}}],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"imageFragment"},directives:[]}]}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EmbedContentPublishedElement"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"embedContentItem"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ImageSectionPublishedElement"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imagePicker"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"url"},name:{kind:"Name",value:"_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"EnumValue",value:"ABSOLUTE"}}],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"imageDescription"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"QuoteSectionPublishedElement"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quoteText"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RichContentPublishedElement"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"markupInput"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ArticleInlineAdPublishedElement"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"id"},name:{kind:"Name",value:"_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:2025}};F.loc.source={body:`#import "./imageFragment.graphql" 2fragment newsTeaserDetailPublishedContent on NewsTeaserDetailPublishedContent { 3 __typename 4 overline 5 headline 6 subline 7 tags 8 topics 9 isHeaderImageVisible 10 location 11 author 12 _id 13 timeline { 14 _id 15 _name 16 __typename 17 } 18 publishedAt { 19 unixSeconds 20 iso8601 21 __typename 22 } 23 headerImage { 24 original: _url(mode: ABSOLUTE) 25 sm: _url(mode: ABSOLUTE, cropAlias: "16x9_small")
26 md: _url(mode: ABSOLUTE, cropAlias: "16x9_medium") 27 lg: _url(mode: ABSOLUTE, cropAlias: "16x9_large") 28 ...imageFragment 29 __typename 30 } 31 generatedTeaserBlockList { 32 ... on NewsTeaserBlock { 33 content { 34 ... on BrightcoveContentPublishedElement { 35 __typename 36 detail { 37 ... on BaseDetailPagePublishedContent { 38 __typename 39 _id 40 ... on BaseMediaDetailPagePublishedContent { 41 mediaId 42 duration 43 } 44 headline 45 headerImage { 46 audioSm: _url(mode: ABSOLUTE, cropAlias: "1x1_small") 47 videoLg: _url(mode: ABSOLUTE, cropAlias: "16x9_large") 48 videoMd: _url(mode: ABSOLUTE, cropAlias: "16x9_medium") 49 videoSm: _url(mode: ABSOLUTE, cropAlias: "16x9_small") 50 ...imageFragment 51 } 52 } 53 } 54 } 55 ... on EmbedContentPublishedElement { 56 __typename 57 title 58 embedContentItem 59 } 60 ... on ImageSectionPublishedElement { 61 __typename 62 imagePicker { 63 url: _url(mode: ABSOLUTE) 64 } 65 imageDescription 66 } 67 ... on QuoteSectionPublishedElement { 68 __typename 69 quoteText 70 } 71 ... on RichContentPublishedElement { 72 __typename 73 markupInput 74 } 75 ... on ArticleInlineAdPublishedElement { 76 __typename 77 id: _id 78 position 79 } 80 } 81 } 82 } 83} 84`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Z={};function _n(n){return n.filter(function(e){if(e.kind!=="FragmentDefinition")return!0;var i=e.name.value;return Z[i]?!1:(Z[i]=!0,!0)})}F.definitions=F.definitions.concat(_n(ve.definitions));function C(n,e){if(n.kind==="FragmentSpread")e.add(n.name.value);else if(n.kind==="VariableDefinition"){var i=n.type;i.kind==="NamedType"&&e.add(i.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(a){C(a,e)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(a){C(a,e)}),n.definitions&&n.definitions.forEach(function(a){C(a,e)})}var M={};(function(){F.definitions.forEach(function(e){if(e.name){var i=new Set;C(e,i),M[e.name.value]=i}})})();function j(n,e){for(var i=0;i<n.definitions.length;i++){var a=n.definitions[i];if(a.name&&a.name.value==e)return a}}function gn(n,e){var i={kind:n.kind,definitions:[j(n,e)]};n.hasOwnProperty("loc")&&(i.loc=n.loc);var a=M[e]||new Set,v=new Set,u=new Set;for(a.forEach(function(s){u.add(s)});u.size>0;){var h=u;u=new Set,h.forEach(function(s){if(!v.has(s)){v.add(s);var k=M[s]||new Set;k.forEach(function(_){u.add(_)})}})}return v.forEach(function(s){var k=j(n,s);k&&i.definitions.push(k)}),i}gn(F,"newsTeaserDetailPublishedContent");var f={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getDetailById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"isPreview"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"umbraco"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"byId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"isPreview"},value:{kind:"Variable",name:{kind:"Name",value:"isPreview"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"staticPageDetail"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"audioPodcastDetailFragment"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"videoPodcastDetailFragment"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"newsTeaserDetailPublishedContent"},directives:[]}]}}]}}]}}]}}],loc:{start:0,end:541}};f.loc.source={body:`#import "../fragments/staticPageFragment.graphql" 85#import "../fragments/audioPodcastDetailFragment.graphql" 86#import "../fragments/videoPodcastDetailFragment.graphql" 87#import "../fragments/newsTeaserDetailPublishedContent.graphql" 88query getDetailById($id: ID!, $isPreview: Boolean) { 89 umbraco { 90 content {
91 byId(id: $id, isPreview: $isPreview) { 92 __typename 93 ...staticPageDetail 94 ...audioPodcastDetailFragment 95 ...videoPodcastDetailFragment 96 ...newsTeaserDetailPublishedContent 97 } 98 } 99 } 100} 101`,name:"GraphQL request",locationOffset:{line:1,column:1}};var W={};function R(n){return n.filter(function(e){if(e.kind!=="FragmentDefinition")return!0;var i=e.name.value;return W[i]?!1:(W[i]=!0,!0)})}f.definitions=f.definitions.concat(R(ye.definitions));f.definitions=f.definitions.concat(R(Ne.definitions));f.definitions=f.definitions.concat(R(Se.definitions));f.definitions=f.definitions.concat(R(F.definitions));function U(n,e){if(n.kind==="FragmentSpread")e.add(n.name.value);else if(n.kind==="VariableDefinition"){var i=n.type;i.kind==="NamedType"&&e.add(i.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(a){U(a,e)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(a){U(a,e)}),n.definitions&&n.definitions.forEach(function(a){U(a,e)})}var z={};(function(){f.definitions.forEach(function(e){if(e.name){var i=new Set;U(e,i),z[e.name.value]=i}})})();function K(n,e){for(var i=0;i<n.definitions.length;i++){var a=n.definitions[i];if(a.name&&a.name.value==e)return a}}function fn(n,e){var i={kind:n.kind,definitions:[K(n,e)]};n.hasOwnProperty("loc")&&(i.loc=n.loc);var a=z[e]||new Set,v=new Set,u=new Set;for(a.forEach(function(s){u.add(s)});u.size>0;){var h=u;u=new Set,h.forEach(function(s){if(!v.has(s)){v.add(s);var k=z[s]||new Set;k.forEach(function(_){u.add(_)})}})}return v.forEach(function(s){var k=K(n,s);k&&i.definitions.push(k)}),i}fn(f,"getDetailById");const hn=n=>{let e=null;switch(n.__typename){case O.AUDIOPODCASTDETAIL:case O.VIDEOPODCASTDETAIL:e=n;break;case O.STATIC:e=n;break;case O.NEWSDETAIL:e=n;break}return e},yn=(n,e)=>{const i=ke(f,{id:n,isPreview:e}),{error:a,status:v}=i,u=B(()=>{var s,k,_;return((_=(k=(s=i.data.value)==null?void 0:s.umbraco)==null?void 0:k.content)==null?void 0:_.byId)&&hn(i.data.value.umbraco.content.byId)}),h=B(()=>v.value==="pending");return{result:u,error:a,loading:h}},Nn={class:"w-full"},Sn={key:2,class:"mx-auto"},bn="newsTeaserDetail",xn="mediaNewsTeaserDetail",Ln=P({__name:"[...path]",async setup(n){let e,i;const a=pe(),v=B(()=>a.params.path[0]??""),u=B(()=>{var S,b;return((b=(S=a.query)==null?void 0:S.contentTypeAlias)==null?void 0:b.toString())??""}),h=u.value===bn||u.value===xn,{result:s,loading:k,error:_}=h?([e,i]=G(()=>be(Number(v.value))),e=await e,i(),e):([e,i]=G(()=>yn(v.value,!0)),e=await e,i(),e);return(S,b)=>{var T,E,I,$,H;const D=_e,w=ge,x=Me,A=an,l=dn,N=un,V=pn;return t(),c("div",Nn,[r(_)&&!r(s)?(t(),m(D,{key:0})):r(k)?(t(),m(w,{key:1})):(t(),c("div",Sn,[((T=r(s))==null?void 0:T.__typename)==="NewsArticle"?(t(),m(x,{key:0,result:r(s)},null,8,["result"])):d("",!0),((E=r(s))==null?void 0:E.__typename)==="NewsMediaArticle"?(t(),m(A,{key:1,result:r(s)},null,8,["result"])):d("",!0),((I=r(s))==null?void 0:I.__typename)==="AudioPodcastPublishedContent"||(($=r(s))==null?void 0:$.__typename)==="VideoPodcastPublishedContent"?(t(),m(l,{key:2,result:r(s)},null,8,["result"])):d("",!0),((H=r(s))==null?void 0:H.__typename)==="StaticPagePublishedContent"?(t(),m(N,{key:3,result:r(s)},null,8,["result"])):d("",!0)])),y(V)])}}});export{Ln as default};
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.