PageSourceSearch

https://thepaypers.com/_nuxt/B5mAtAXT.js

js thepaypers.com collected 2026-09-24 08:28:18 UTC 5,723 bytes, 279 lines download raw bytes

1import{f as y,K as g,v as f,L as h,g as c,M as b}from"./Bcs_NwEm.js";import{u as l}from"./BtLVrN7B.js";const w=`
2  query RouteCollectionLookups($filter: route_collection_lookups_filter) {
3    route_collection_lookups(filter: $filter) {
4      id
5      url
6      legacy_url
7      collection_name
8      reference_id
9    }
10  }
11`,k=`
12  query Overview_pages_by_id($id: ID!) {
13    overview_pages_by_id(id: $id) {
14      __typename
15      id
16      region {
17        id
18        regions_id {
19          id
20        }
21      }
22      slug
23      title
24      context
25      type
26      content
27      main_template {
28        content
29      }
30      seo_page_title
31      meta_description
32    }
33  }
34`,d=`
35  query Content_items_by_id($id: ID!) {
36    content_items_by_id(id: $id) {
37      __typename
38      abstract
39      availability
40      content_type {
41        id
42        name
43        template
44        slug
45      }
46      domain {
47        id
48        name
49        slug
50      }
51      id
52      image
53      importance
54      main_text
55      newsletter_importance
56      published_at
57      event_at
58      event_url
59      event_title
60      event_organizer_name
61      webinar_at
62      webinar_agenda
63      webinar_title
64      webinar_url
65      presenters {
66        id
67        role
68        person {
69          first_name
70          last_name
71          image
72          linkedin
73          website
74        }
75      }
76      location {
77        name
78      }
79      read_time
80      slug
81      sponsored
82      title
83      keywords
84      content
85      seo_page_title
86      meta_description
87      domains {
88        domains_id {
89          id
90          name
91        }
92      }
93      key_themes {
94        key_themes_id {
95          id
96          name
97        }
98      }
99      country {
100        countries_id {
101          id
102          name
103          region {
104            id
105          }
106        }
107      }
108      company {
109        companies_id {
110          id
111          name
112          short_description
113        }
114      }
115      topic {
116        id
117        name
118      }
119      topics {
120        topics_id {
121          id
122          name
123        }
124      }
125      types_of_news {
126        types_of_news_id {
127          id
128          name
129        }
130      }
131      person {
132        people_id {
133          id
134          first_name
135          last_name
136          short_description
137        }
138      }
139      author {
140        first_name
141        last_name
142        image
143      }
144      main_template {
145        content
146      }
147      company_id {
148        id
149        name
150        image
151        website
152        year_founded
153        short_description
154        abstract
155        is_verified
156        country_of_origin {
157          name
158        }
159        companies_about {
160          id
161          title
162          text
163        }
164        solutions {
165          solutions_id {
166            id
167            name
168          }
169        }
170        countries {
171          countries_id {
172            id
173            name
174          }
175        }
176      }
177      report_file
178      report_published_at
179      report_size
180      report_file_type
181      report_total_pages
182      questionnaire_id {
183        id
184        questions {
185          id
186          text
187        }
188      }
189    }
190  }
191`,v=`
192  query Key_themes_pages_by_id($id: ID!) {
193    key_themes_pages_by_id(id: $id) {
194      __typename
195      id
196      title
197      slug
198      type
199      content
200      keywords
201      seo_page_title
202      meta_description
203      read_time
204      published_at
205      key_theme {
206        id
207      }
208      topic {
209        id
210      }
211      main_template {
212        content
213      }
214      domains {
215        domains_id {
216          id
217          name
218        }
219      }
220      key_themes {
221        key_themes_id {
222          id
223          name
224        }
225      }
226      country {
227        countries_id {
228          id
229          name
230        }
231      }
232      topics {
233        topics_id {
234          id
235          name
236        }
237      }
238      person {
239        people_id {
240          id
241          first_name
242          last_name
243          short_description
244        }
245      }
246      company {
247        companies_id {
248          id
249          name
250          short_description
251        }
252      }
253      author {
254        first_name
255        last_name
256        image
257      }
258    }
259  }
260`,$=`
261  query Pages_by_id($id: ID!) {
262    pages_by_id(id: $id) {
263      __typename
264      id
265      title
266      slug
267      abstract
268      seo_page_title
269      meta_description
270      content
271      publication_status
272      publication
273      published_at
274      main_template {
275        content
276      }
277    }
278  }
279`,q={content_items:d,overview_pages:k,key_themes_pages:v,pages:$},A=async(a,n)=>{const i=n.collection_name,o=`${i}_by_id`,{[o]:e}=await a.query(q[i],{id:n.reference_id});return e==null||e?.published_at&&b.utc(e?.published_at).isAfter()?null:{...e,collectionName:i}},D=()=>{const a=y(),n=g(),{userId:i,trackingId:o}=f(),e=a.path,u=`use-article${e?.replaceAll("/","-")}`,r=l(u,async()=>{const{$directus:s}=c(),{route_collection_lookups:m}=await s.query(w,{filter:{_or:[{url:{_eq:e}},{_and:[{legacy_url:{_eq:e}},{url:{_neq:e}}]}]}}),t=m[0];if(!t)return null;if(t.legacy_url===e&&t.url!==e)return{shouldRedirect:!0,url:t.url};const _=await A(s,t);if(!_)return null;if(t.collection_name==="content_items")try{$fetch("/api/article/read",{method:"POST",body:{articleId:t.reference_id,userId:i?.value,sessionId:o?.value}})}catch(p){console.warn("Non-fatal: failed to track article read",p)}return{shouldRedirect:!1,results:{..._,collectionName:t.collection_name}}},"$lumvwqtfUN");return h(async()=>{!r.pending.value&&r.data.value===null&&await n.push("/")}),r},R=async a=>l("article",async()=>{const{$directus:n}=c();try{return await n.query(d,{id:a})}catch(i){console.error("Fatal Error Fetching Article:",i)}});export{R as D,D as 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.