1import{_ as v}from"./CC6i5mz-.js";import{af as k,k as p,i as N,a1 as y,a3 as S,c as g,a as _,b as w,n as d,o as E}from"./CBZx7rdy.js";import"./BO2MJVnM.js";import"./C6lDHqda.js";import"./DTQ3aOFE.js";import"./DTmifBnS.js";import"./BXrdiHdf.js";import"./B5UFgdjn.js";var c={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getAuthorByName"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"authorName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"authors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAuthorByName"},arguments:[{kind:"Argument",name:{kind:"Name",value:"authorName"},value:{kind:"Variable",name:{kind:"Name",value:"authorName"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isExternal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarPath"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:166}};c.loc.source={body:`query getAuthorByName($authorName: String!) { 2 authors { 3 getAuthorByName(authorName: $authorName) { 4 isExternal 5 fullName 6 avatarPath 7 } 8 } 9} 10`,name:"GraphQL request",locationOffset:{line:1,column:1}};function l(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var a=e.type;a.kind==="NamedType"&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(t){l(t,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(t){l(t,n)}),e.definitions&&e.definitions.forEach(function(t){l(t,n)})}var m={};(function(){c.definitions.forEach(function(n){if(n.name){var a=new Set;l(n,a),m[n.name.value]=a}})})();function f(e,n){for(var a=0;a<e.definitions.length;a++){var t=e.definitions[a];if(t.name&&t.name.value==n)return t}}function b(e,n){var a={kind:e.kind,definitions:[f(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var t=m[n]||new Set,o=new Set,i=new Set;for(t.forEach(function(r){i.add(r)});i.size>0;){var s=i;i=new Set,s.forEach(function(r){if(!o.has(r)){o.add(r);var u=m[r]||new Set;u.forEach(function(h){i.add(h)})}})}return o.forEach(function(r){var u=f(e,r);u&&a.definitions.push(u)}),a}b(c,"getAuthorByName");const D=e=>{const n=k(c,{authorName:e}),{data:a,status:t,error:o}=n,i=p(()=>{var s;return((s=a.value)==null?void 0:s.authors.getAuthorByName)||null});return{status:t,error:o,data:i}},A={class:"w-full"},B={class:"space-y-4"},L=N({__name:"[author]",setup(e){const a=y().params.author,t=D(a);return a&&S({title:()=>`EWN | ${a}`,ogTitle:()=>`EWN | ${a}`,twitterTitle:()=>`EWN | ${a}`}),(o,i)=>{const s=v;return E(),g("div",A,[_("main",B,[w(s,{"author-detail":d(t).data.value,author:d(a),headline:d(a),"with-hero":!0,"pin-breaking-news":!0},null,8,["author-detail","author","headline"])])])}}});export{L 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.