PageSourceSearch

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

js thepaypers.com collected 2026-09-24 08:27:54 UTC 177,788 bytes, 832 lines download raw bytes

1import{a9 as tn,g as X,aa as nn,T as Pe,ab as on,S as St,ac as sn,e as D,r as H,j as de,E as x,k as ke,c as a,o,m as v,n as t,a as s,b as l,z as $,I as T,t as w,w as k,d as Y,O as Ne,f as st,P as Tt,h as ln,ad as oe,A as ve,i as nt,l as S,ae as an,p as Qe,F as je,af as qt,M as ae,ag as me,W as rn,X as Ue,_ as cn,$ as Me,a0 as Le,N as J,a1 as ht,U as dn,J as Bt,C as fe,D as Xe,B as Ze,ah as De,ai as Pt,V as ot,aj as un,L as mn,ak as pn,Q as _n,K as fn}from"./Bcs_NwEm.js";import{a as ee,_ as ge,C as Z,p as pe}from"./hvnSl1EJ.js";import{_ as ce,a as Nt,u as gn,b as yn,s as hn}from"./5TdI7TNq.js";import{d as At,f as Rt,o as bn,e as lt,g as $e,c as vn,h as Et,i as Ae,C as Ke,_ as Mt,a as Dt,j as Ot,b as at}from"./BIu38tNJ.js";import{u as K,_ as it,a as xn}from"./BtLVrN7B.js";import{_ as se}from"./B9GYCAbm.js";import{_ as Ce}from"./CntMTLcG.js";import{_ as jt,a as wn}from"./BJlMqvan.js";import{o as We,s as le,b as bt,_ as Lt,a as Ut}from"./Dpdp0QYK.js";import{_ as rt}from"./fZgLquya.js";import{_ as ie}from"./BRLTZyZl.js";import{u as Je}from"./CnOPAmwf.js";import{c as Ie}from"./2ruYUPME.js";import{_ as xe}from"./DlAUqK2U.js";import{R as Ve,_ as kn,u as $n,a as Cn,b as In}from"./n_-0Cuwb.js";import{I as qe,_ as Sn}from"./C3KLnbZF.js";import{_ as Tn}from"./DHZXg0WH.js";function Vt(e){return new URL(window.location.href)}/**
2 * @license @tabler/icons-vue v3.34.1 - MIT
3 *
4 * This source code is licensed under the MIT license.
5 * See the LICENSE file in the root directory of this source tree.
6 */var zt=Ie("outline","at","At",[["path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M16 12v1.5a2.5 2.5 0 0 0 5 0v-1.5a9 9 0 1 0 -5.5 8.28",key:"svg-1"}]]);/**
7 * @license @tabler/icons-vue v3.34.1 - MIT
8 *
9 * This source code is licensed under the MIT license.
10 * See the LICENSE file in the root directory of this source tree.
11 */var ct=Ie("outline","brand-linkedin","BrandLinkedin",[["path",{d:"M8 11v5",key:"svg-0"}],["path",{d:"M8 8v.01",key:"svg-1"}],["path",{d:"M12 16v-5",key:"svg-2"}],["path",{d:"M16 16v-3a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z",key:"svg-4"}]]);/**
12 * @license @tabler/icons-vue v3.34.1 - MIT
13 *
14 * This source code is licensed under the MIT license.
15 * See the LICENSE file in the root directory of this source tree.
16 */var qn=Ie("outline","brand-x","BrandX",[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16z",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]]);/**
17 * @license @tabler/icons-vue v3.34.1 - MIT
18 *
19 * This source code is licensed under the MIT license.
20 * See the LICENSE file in the root directory of this source tree.
21 */var Yt=Ie("outline","external-link","ExternalLink",[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]]);/**
22 * @license @tabler/icons-vue v3.34.1 - MIT
23 *
24 * This source code is licensed under the MIT license.
25 * See the LICENSE file in the root directory of this source tree.
26 */var Bn=Ie("outline","link","Link",[["path",{d:"M9 15l6 -6",key:"svg-0"}],["path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464",key:"svg-1"}],["path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463",key:"svg-2"}]]);/**
27 * @license @tabler/icons-vue v3.34.1 - MIT
28 *
29 * This source code is licensed under the MIT license.
30 * See the LICENSE file in the root directory of this source tree.
31 */var Pn=Ie("outline","rss","Rss",[["path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M4 4a16 16 0 0 1 16 16",key:"svg-1"}],["path",{d:"M4 11a9 9 0 0 1 9 9",key:"svg-2"}]]);/**
32 * @license @tabler/icons-vue v3.34.1 - MIT
33 *
34 * This source code is licensed under the MIT license.
35 * See the LICENSE file in the root directory of this source tree.
36 */var Ft=Ie("outline","share-2","Share2",[["path",{d:"M8 9h-1a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-8a2 2 0 0 0 -2 -2h-1",key:"svg-0"}],["path",{d:"M12 14v-11",key:"svg-1"}],["path",{d:"M9 6l3 -3l3 3",key:"svg-2"}]]);/**
37 * @license @tabler/icons-vue v3.34.1 - MIT
38 *
39 * This source code is licensed under the MIT license.
40 * See the LICENSE file in the root directory of this source tree.
41 */var Nn=Ie("filled","brand-facebook-filled","BrandFacebookFilled",[["path",{d:"M18 2a1 1 0 0 1 .993 .883l.007 .117v4a1 1 0 0 1 -.883 .993l-.117 .007h-3v1h3a1 1 0 0 1 .991 1.131l-.02 .112l-1 4a1 1 0 0 1 -.858 .75l-.113 .007h-2v6a1 1 0 0 1 -.883 .993l-.117 .007h-4a1 1 0 0 1 -.993 -.883l-.007 -.117v-6h-2a1 1 0 0 1 -.993 -.883l-.007 -.117v-4a1 1 0 0 1 .883 -.993l.117 -.007h2v-1a6 6 0 0 1 5.775 -5.996l.225 -.004h3z",key:"svg-0"}]]);const Em=Object.assign({name:"NuxtErrorBoundary",inheritAttrs:!1},{__name:"NuxtErrorBoundary",emits:["error"],setup(e,{expose:n,emit:i}){const r=i,_=tn(null);function d(){_.value=null}{let p=function(...g){const[u,m,h]=g;r("error",u),c.hooks.callHook("vue:error",u,m,h),_.value=u};const c=X();nn((g,u,m)=>(c.isHydrating?sn(()=>p(g,u,m)):p(g,u,m),!1))}return n({error:_,clearError:d}
41),(p,c)=>_.value?Pe(p.$slots,"error",on(St({key:0},{error:_.value,clearError:d}))):Pe(p.$slots,"default",{key:1})}});function Ht(){return K("personalSpaceData",async()=>{const{$directus:e}=X();try{const{personalised_space:n}=await e.query(`
42        query personalised_space {
43          personalised_space {
44            id
45            title
46            subtitle
47            message
48            content_title
49            banner_title
50            modal_title
51            modal_subtitle
52            email_placeholder
53            first_name_placeholder
54            last_name_placeholder
55            company_placeholder
56            job_title_placeholder
57            phone_placeholder
58            contact_text
59            email_checkbox_placeholder
60            phone_checkbox_placeholder
61            consent_checkbox_placeholder
62            button_placeholder
63            banner_message
64            modal_message
65            benefits_title
66            benefits_list
67            onboarding_title
68            onboarding_message
69            my_feed_title
70            my_feed_message
71            my_feed_button_label
72            my_feed_slug
73            my_content_title
74            my_content_message
75            my_content_button_label
76            my_content_slug
77            my_newsletter_title
78            my_newsletter_message
79            my_newsletter_button_label
80            my_newsletters_slug
81            my_profile_title
82            my_profile_message
83            my_profile_button_label
84            my_profile_slug
85          }
86        }
87      `);if(!n)throw new Error("Personal Space Data not found");return n}catch(n){throw console.error("Error fetching personal space data",n),n}})}const An={class:"w-full p-6 text-secondary"},Rn={key:0,class:"space-y-6"},En={class:"flex flex-col gap-y-3"},Mn={class:"space-y-2"},Dn={class:"grid grid-cols-2 gap-4"},On={key:1},jn={class:"container"},Ln={class:"text-xl font-bold pb-2"},Un={class:"text-justify"},Vn={class:"py-6"},zn={class:"grid grid-cols-1 sm:grid-cols-2 gap-5"},Yn={class:"text-[32px] font-bold font-or-lemmen"},Fn={class:"pt-4 pb-6"},Hn=D({__name:"OnboardingBlock",async setup(e){let n,i;const r=H(!0),_=H(),{data:d,status:p}=([n,i]=de(()=>Ht()),n=await n,i(),n),c=x(()=>{const u=[],m=d.value,h={title:m.my_feed_title,message:m.my_feed_message,buttonLabel:m.my_feed_button_label,slug:m.my_feed_slug},f={title:m.my_content_title,message:m.my_content_message,buttonLabel:m.my_content_button_label,slug:m.my_content_slug},y={title:m.my_newsletter_title,message:m.my_newsletter_message,buttonLabel:m.my_newsletter_button_label,slug:m.my_newsletters_slug},b={title:m.my_profile_title,message:m.my_profile_message,buttonLabel:m.my_profile_button_label,slug:m.my_profile_slug};return u.push(h,f,y,b),u});ke(p,u=>{r.value=u==="pending"||u==="idle"}),p.value==="success"&&(_.value=d.value,r.value=!1);const g=u=>{alert(`${u} Button is clicked!`)};return(u,m)=>{const h=ee,f=ce,y=At;return o(),a("div",An,[t(r)?(o(),a("div",Rn,[s("div",En,[l(h,{class:"h-8 w-2/6"}),s("div",Mn,[l(h,{class:"h-5 w-3/6"}),l(h,{class:"h-5 w-4/6"}),l(h,{class:"h-5 w-3/5"})])]),s("div",Dn,[(o(),a($,null,T(4,b=>l(h,{key:b,class:"h-52 w-full"})),64))])])):v("",!0),t(r)?v("",!0):(o(),a("div",On,[s("div",jn,[s("h3",Ln,w(t(_).onboarding_title),1),s("p",Un,w(t(_).onboarding_message),1)]),s("div",Vn,[s("div",zn,[(o(!0),a($,null,T(t(c),(b,I)=>(o(),a("div",{key:`personal-space-${I}`},[l(y,{ui:{rounded:"rounded-md",background:"bg-white",ring:"ring-0",shadow:"shadow-none",base:"text-secondary w-full"}},{default:k(()=>[s("h3",Yn,w(b.title),1),s("p",Fn,w(b.message),1),l(f,{class:"uppercase px-6 text-sm tracking-wider font-medium w-full lg:w-1/2 xl:w-1/3 place-content-center",ui:{rounded:"rounded-full",variant:{solid:"text-secondary"}},variant:"solid",size:"lg",color:"primary",onClick:O=>g(b.slug)},{default:k(()=>[Y(w(b.buttonLabel),1)]),_:2},1032,["onClick"])]),_:2},1024)]))),128))])])]))])}}}),Wn=Object.assign(Hn,{__name:"OnboardingBlock"}),Gn={key:0,class:"w-full"},Qn={key:0,class:"font-or-lemmen text-secondary text-3xl"},Kn={key:1,class:"text-base text-secondary font-sans mt-2 mb-6"}
87,Jn=D({__name:"PersonalisedRegistrationBlock",props:{title:{type:String,required:!1,default:null},subtitle:{type:String,required:!1,default:null},bannerRedirect:{type:String,required:!1,default:"/register"}},setup(e){const n=Ne();return(i,r)=>{const _=ge,d=se;return t(n)?v("",!0):(o(),a("div",Gn,[e.title?(o(),a("h2",Qn,w(e.title),1)):v("",!0),e.subtitle?(o(),a("h3",Kn,w(e.subtitle),1)):v("",!0),l(d,{to:e.bannerRedirect},{default:k(()=>[l(_,{class:"w-full",alt:"sign up banner",src:"/banners/signup-banner-new.svg"})]),_:1},8,["to"])]))}}}),Wt=Object.assign(Jn,{__name:"PersonalisedRegistrationBlock"}),Xn=e=>e?/^[^@]*[a-zA-Z]{3}[^@]*@/.test(e.trim().toLowerCase()):!1,Zn={key:0,id:"register-block",class:"flex flex-col gap-y-6"},eo={class:"flex flex-col gap-4 bg-accent rounded p-6"},to={key:0,class:"text-secondary"},no={key:0,class:"grid grid-cols-1 md:grid-cols-2 gap-4"},oo={key:1},so={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},lo={key:0,class:"block truncate"},ao={key:1,class:"text-secondary/50"},io={key:0,class:"block truncate"},ro={key:1,class:"text-secondary/50"},co={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},uo={key:3,class:"grid grid-cols-1 md:grid-cols-2 gap-4"},mo={class:"flex flex-row flex-wrap gap-2"},po=D({__name:"RegisterBlock",props:{freeTitle:{type:String,required:!1,default:null},leadTitle:{type:String,required:!1,default:null},registerTitle:{type:String,required:!1,default:null},freeSubtitle:{type:String,required:!1,default:null},leadSubtitle:{type:String,required:!1,default:null},registerSubtitle:{type:String,required:!1,default:null},freeButton:{type:String,required:!1,default:"unlock your personal space"},leadButton:{type:String,required:!1,default:"unlock your personal space"},registerButton:{type:String,required:!1,default:"unlock your personal space"},consent:{type:String,required:!0,default:"By checking this box, you consent to The Paypers privacy policy."},shareConsent:{type:String,required:!1,default:null},footer:{type:String,required:!1,default:null}},async setup(e){let n,i;const r=e,{$directus:_}=X(),d=st(),p=Ne(),c=Tt(),{login:g}=ln(),u=oe("article"),m=ve("register:article",{maxAge:60*60,secure:!0,sameSite:"strict"}),h=We({email:le().email("A valid email address is required")}),f=We({email:le().email("A valid email address is required"),password:le().trim().min(1,"Password is required")}),y={email:"",first_name:"",last_name:"",country:{id:"",name:""},job_title:"",company:"",company_type:{id:"",name:""},password:"",password_confirmation:void 0,tos_consent:!1,share_consent:!1},b=nt({...y}),I=x(()=>q.value&&!j.value),O=x(()=>q.value&&j.value),C=x(()=>B.value&&!q.value),N=x(()=>!B.value&&_t.value),V=H(null),B=H(!1),q=H(!1),j=H(!1),A=nt({email:!1,submission:!1,login:!1,countries:!1,claim:!1}),U=H([]),P=x(()=>ne.value?.questionnaire_id),R=x(()=>d.path==="/register"),G=x(()=>{switch((u?.value.availability??ne.value?.availability)?.toLowerCase()){case"registration":return!0;case"lead":return!1;default:return d.path==="/register"}}),Q=x(()=>{if(C.value)return f;const M={};return B.value||(M.first_name=le().trim().min(1,"A first name is required"),M.last_name=le().trim().min(1,"A last name is required"),M.tos_consent=bt().refine(E=>E,"You must agree to the terms and conditions to continue"),r.shareConsent!=null&&r.shareConsent.trim().length>0&&(M.share_consent=bt().refine(E=>E,"You must agree to the terms and conditions to continue"))),R.value&&(M.country=We({id:le({required_error:"Country selection is required"}).trim().min(1,"Please select your country"),name:le({required_error:"Country name is required"}).trim().min(3,"Country name must be at least 3 characters")},{required_error:"Please select your country"}),M.job_title=le({required_error:"Job title is required"}).trim().min(3,"Job title must be at least 3 characters"),M.company=le({required_error:"Company name is required"}).trim().min(3,"Company name must be at least 3 characters"),M.company_type=We({id:le({required_error:"Company Type selection is required"}).trim().min(1,"Please select your company type"),name:le({required_error:"Company type name is required"}).trim().min(3,"Company type name must be at least 3 characters")},{required_error:"Please select your company type"}),M.password=le().trim().min(8,"Password must be at least 8 characters long"),M.password_confirmation=le().trim().min(8,"Password must be at least 8 characters long")),U.value?.forEach(E=>{M[E.id]=le().trim().min(1,`${E.text} is required.`)}),h.extend(M).refine(E=>E.password==E.password_confirmation,{message:"Passwords do not match. Please check and try again.",path:["password_confirmation"]})}),te=x(()=>r.shareConsent!=null&&r.shareConsent.trim().length>0),L=x(()=>{switch(u?.value.availability?.toLowerCase()){case"free":return r.freeTitle;
87case"lead":return r.leadTitle;case"registration":return r.registerTitle;default:return r.registerTitle}}),z=x(()=>{switch(u?.value.availability?.toLowerCase()){case"free":return r.freeSubtitle;case"lead":return r.leadSubtitle;case"registration":return r.registerSubtitle;default:return r.registerSubtitle}}),F=x(()=>{switch(u?.value.availability?.toLowerCase()){case"free":return r.freeButton;case"lead":return r.leadButton;case"registration":return r.registerButton;default:return r.registerButton}}),{data:ne}=K(`register-product-${m.value}`,async()=>{let M=m.value;if(u?.value.__typename==="content_items"&&(M=u.value.id),!M?.length)return null;const E=await _.query(`
88        query RegisterBlock_GetProductArticle($id: ID!) {
89          content_items_by_id(id: $id) {
90            __typename
91            id
92            title
93            abstract
94            image
95            published_at
96            content_type {
97              name
98            }
99            domain {
100              name
101              slug
102            }
103            questionnaire_id {
104              id
105              questions {
106                id
107                text
108              }
109            }
110          }
111        }
112      `,{id:M});return R.value&&(U.value=E?.content_items_by_id?.questionnaire_id?.questions??[]),E?.content_items_by_id},{watch:[m]}),{data:ue}=([n,i]=de(async()=>K("register-company-types",async()=>{const{$directus:M}=X();try{return(await M.query(`
113      query RegisterCompanyTypes {
114        company_types {
115          id
116          name
117        }
118      }
119    `)).company_types}catch(E){return console.error("failed to fetch company types:",E),{company_types:[]}}})),n=await n,i(),n),ye=qt(async M=>{if(M?.trim().length)try{A.email=!0;const E=await $fetch("/api/users",{method:"GET",params:{email:M,article:ne.value?.id}});return j.value=!1,B.value=E.data?.is_registered??!1,q.value=E.data?.is_unclaimed??!1,U.value=P.value?.questions.filter(we=>!E.data?.answers.includes(we.id))??[],B.value||Object.assign(b,{...y,email:b.email,first_name:b.first_name,last_name:b.last_name,tos_consent:b.tos_consent,share_consent:b.share_consent}),E.data}finally{A.email=!1}},500),Ye=async M=>{if(!M.trim().length)return[];try{A.countries=!0;const{countries:E}=await _.query(`
120        query RegisterBlock_GetCountries($search: String!) {
121          countries(filter: { name: { _icontains: $search } }, sort: ["name"], limit: 10) {
122            id
123            name
124          }
125        }
126      `,{search:M.trim()});return E}finally{A.countries=!1}},Fe=async()=>{if(C.value)return He();try{if(A.submission=!0,V.value=null,Xn(b.email)==!1){V.value="Invalid email. Please use a valid email address.";return}const M=await Je().execute("recaptcha_register"),{userId:E}=await $fetch("/api/users/register",{method:"POST",body:{recaptchaToken:M,content_item_id:ne.value?.id,domainSlug:ne.value?.domain.slug,email:b.email,first_name:b.first_name,last_name:b.last_name,country:b.country,job_title:b.job_title,company:b.company,company_type:b.company_type,password:b.password,questionnaire:P.value?{id:P.value.id,content_item_id:m.value,questions:U.value?.reduce((we,Ee)=>{const Se=b?.[Ee.id];return Se&&we.push({questionnaire_question_id:Ee.id,question_text:Ee.text,answer:Se}),we},[])}:void 0}});if(an(E,""),R.value&&b.password?.length>0){m.value=ne.value?.id,await g({email:b.email.trim().toLowerCase(),password:b.password}),await Qe("/welcome");return}u?.value?.content_type?.id==Z.REPORT&&bn(u.value),Object.assign(b,y)}catch(M){M instanceof je&&M.status===403?(console.error("failed to verify reCAPTCHA token for registration",M),V.value=M.data?.message??"Verification failed. Please refresh the page and try again later."):V.value=M instanceof je?M?.data?.message:"An unexpected error occurred. Please try again."}finally{A.submission=!1}},He=async()=>{try{A.login=!0,V.value=null,await g({email:b.email.trim().toLowerCase(),password:b.password}),await c.fetch(!0),ne.value&&!c.isBookmarked(ne.value?.id)&&await c.toggle(ne.value.__typename,ne.value.id),await Qe("/my-space")}catch(M){console.error(M),V.value="Invalid email or password. Please try again."}finally{A.login=!1}},Re=async()=>{try{A.claim=!0,V.value=null;const M=await Je().execute("recaptcha_claim");await $fetch("/api/users/claim",{method:"POST",body:{recaptchaToken:M,email:b.email,content:u?.value?.id,domainSlug:ne.value?.domain?.slug}}),j.value=!0}
126catch(M){if(M instanceof je&&M.status===403){console.error("failed to verify reCAPTCHA token for claim",M),V.value=M.data?.message??"Verification failed. Please refresh the page and try again later.";return}else M instanceof je&&M.status===409&&(j.value=!0);console.error(M)}finally{A.claim=!1}},_t=H(null);return ke(()=>b.email,async M=>{h.safeParse({email:M}).success&&(await ye(M)||(_t.value=!0))}),(M,E)=>{const we=Ce,Ee=lt,Se=jt,he=it,re=Lt,ft=rt,tt=ie,gt=Rt,yt=ce,Zt=Ut;return!t(p)&&t(u)?.availability?.toLowerCase()!="free"?(o(),a("div",Zn,[t(L)?(o(),S(we,{key:0,title:t(L)},null,8,["title"])):v("",!0),s("div",eo,[t(z)?(o(),a("p",to,w(t(z)),1)):v("",!0),t(m)&&t(d).path=="/register"?(o(),S(Ee,{key:1,article:t(m)},null,8,["article"])):v("",!0),t(V)?(o(),S(Se,{key:2,color:"red",variant:"subtle",description:t(V)},null,8,["description"])):v("",!0),t(C)?(o(),S(Se,{key:3,color:"amber",variant:"subtle",description:"Log in to your account to claim the resource and add it to your personal space."})):v("",!0),t(I)?(o(),S(Se,{key:4,actions:[{variant:"solid",color:"primary",label:"Claim Now?",click:Re,loading:t(A).claim}],color:"amber",variant:"subtle",description:"You've already claimed a free resource, claim your personal space to unlock more."},null,8,["actions"])):v("",!0),t(O)?(o(),S(Se,{key:5,color:"green",variant:"subtle",description:"We've sent you an email with instructions on how to claim your account and access the resource. Please check your inbox to proceed."})):v("",!0),l(Zt,{schema:t(Q),state:t(b),class:"flex flex-col gap-4",onSubmit:Fe},{default:k(()=>[l(re,{name:"email"},{default:k(()=>[l(he,{modelValue:t(b).email,"onUpdate:modelValue":E[0]||(E[0]=W=>
126t(b).email=W),placeholder:"E-mail address",type:"email",size:"lg",autocomplete:!1,loading:t(A).email},null,8,["modelValue","loading"])]),_:1}),t(N)?(o(),a("div",no,[l(re,{name:"first_name"},{default:k(()=>[l(he,{modelValue:t(b).first_name,"onUpdate:modelValue":E[1]||(E[1]=W=>t(b).first_name=W),placeholder:"First name",size:"lg"},null,8,["modelValue"])]),_:1}),l(re,{name:"last_name"},{default:k(()=>[l(he,{modelValue:t(b).last_name,"onUpdate:modelValue":E[2]||(E[2]=W=>t(b).last_name=W),placeholder:"Last name",size:"lg"},null,8,["modelValue"])]),_:1})])):v("",!0),t(C)?(o(),a("div",oo,[l(re,{name:"password"},{default:k(()=>[l(he,{modelValue:t(b).password,"onUpdate:modelValue":E[3]||(E[3]=W=>t(b).password=W),placeholder:"Password",type:"password",size:"lg"},null,8,["modelValue"])]),_:1})])):v("",!0),(t(R)||t(G))&&t(N)?(o(),a($,{key:2},[s("div",so,[l(re,{name:"country"},{default:k(()=>[l(ft,{modelValue:t(b).country,"onUpdate:modelValue":E[4]||(E[4]=W=>t(b).country=W),loading:t(A).countries,searchable:Ye,placeholder:"Country","option-attribute":"name",trailing:"",size:"lg"},{label:k(()=>[t(b).country.name.length>0?(o(),a("span",lo,w(t(b).country.name),1)):(o(),a("span",ao,"Country"))]),_:1},8,["modelValue","loading"])]),_:1}),l(re,{name:"job_title"},{default:k(()=>[l(he,{modelValue:t(b).job_title,"onUpdate:modelValue":E[5]||(E[5]=W=>t(b).job_title=W),placeholder:"Job Title",type:"text",size:"lg"},null,8,["modelValue"])]),_:1}),l(re,{name:"company"},{default:k(()=>[l(he,{modelValue:t(b).company,"onUpdate:modelValue":E[6]||(E[6]=W=>t(b).company=W),placeholder:"Company",type:"text",size:"lg"},null,8,["modelValue"])]),_:1}),l(re,{name:"company_type"},{default:k(()=>[l(ft,{modelValue:t(b).company_type,"onUpdate:modelValue":E[7]||(E[7]=W=>t(b).company_type=W),options:t(ue),placeholder:"Company Type","option-attribute":"name",trailing:"",size:"lg"},{label:k(()=>[t(b).company_type.name.length>0?(o(),a("span",io,w(t(b).company_type.name),1)):(o(),a("span",ro,"Company Type"))]),_:1},8,["modelValue","options"])]),_:1})]),s("div",co,[l(re,{name:"password"},{default:k(()=>[l(he,{modelValue:t(b).password,"onUpdate:modelValue":E[8]||(E[8]=W=>t(b).password=W),placeholder:"Set password",type:"password",size:"lg"},null,8,["modelValue"])]),_:1}),l(re,{name:"password_confirmation"},{default:k(()=>[l(he,{modelValue:t(b).password_confirmation,"onUpdate:modelValue":E[9]||(E[9]=W=>t(b).password_confirmation=W),placeholder:"Repeat password",type:"password",size:"lg"},null,8,["modelValue"])]),_:1})])],64)):v("",!0),t(U).length&&t(N)?(o(),a("div",uo,[(o(!0),a($,null,T(t(U),W=>(o(),a($,{key:W?.id},[W?.id?(o(),S(re,{key:0,name:W?.id},{default:k(()=>[l(he,{modelValue:t(b)[W.id],"onUpdate:modelValue":en=>t(b)[W.id]=en,variant:"outline",size:"lg",class:"w-full",placeholder:W.text},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["name"])):v("",!0)],64))),128))])):v("",!0),t(B)?v("",!0):(o(),S(re,{key:4,name:"tos_consent"},{default:k(()=>[l(gt,{modelValue:t(b).tos_consent,"onUpdate:modelValue":E[10]||(E[10]=W=>t(b).tos_consent=W)},{label:k(()=>[l(tt,{content:e.consent},null,8,["content"])]),_:1},8,["modelValue"])]),_:1})),!t(B)&&t(te)?(o(),S(re,{key:5,name:"share_consent"},{default:k(()=>[l(gt,{modelValue:t(b).share_consent,"onUpdate:modelValue":E[11]||(E[11]=W=>t(b).share_consent=W)},{label:k(()=>[l(tt,{content:e.shareConsent},null,8,["content"])]),_:1},8,["modelValue"])]),_:1})):v("",!0),s("div",mo,[t(C)?(o(),S(yt,{key:0,type:"submit",loading:t(A).login,class:"bg-main text-secondary px-8 py-2 rounded-full font-medium tracking-wider uppercase"},{default:k(()=>E[12]||(E[12]=[Y(" login to your account ",-1)])),_:1,__:[12]},8,["loading"])):v("",!0),t(B)?v("",!0):(o(),S(yt,{key:1,type:"submit",loading:t(A).submission,class:"bg-main text-secondary px-8 py-2 rounded-full font-medium tracking-wider uppercase"},{default:k(()=>[Y(w(t(F)),1)]),_:1},8,["loading"]))])]),_:1},8,["schema","state"]),e.footer?(o(),S(tt,{key:6,content:e.footer},null,8,["content"])):v("",!0)])])):v("",!0)}}}),_o=Object.assign(po,{__name:"RegisterBlock"}),fo={class:"text-secondary text-base font-semibold line-clamp-2"},go={class:"text-[10px] tracking-widest uppercase mt-auto"},yo={key:0},ho={key:1},bo={key:2},vo={key:3},xo={key:4},wo={key:5},ko={key:6},$o={key:7},Co=D({__name:"ContentTitleBlock",props:{contentItem:{type:Object,required:!0},showDate:{type:Boolean,required:!1,default:!0},showReadTime:{type:Boolean,required:!1,default:!0},showContentType:{type:Boolean,required:!1,default:!0},showDomain:{type:Boolean,required:!1,default:!0},dateFormat:{type:String,required:!1,default:"DD MMM YYYY"},dateLinePreText:{type:String,required:!1,default:null},useEventForDate:{type:Boolean,required:!1,default:!1},overrideUrl:{type:String,required:!1,default:""}},setup(e){const n=e,i=x(()=>n.overrideUrl?.trim().length?n.overrideUrl?.trim():pe(n.contentItem)),r=x(()=>n.useEventForDate&&(n.contentItem.event_at??n.contentItem.webinar_at)?ae.tz(n.contentItem.event_at??n.contentItem.webinar_at,"Europe/Bucharest").local().format(n.dateFormat):ae(n.contentItem.published_at).format(n.dateFormat));return(_,d)=>{const p=se;return o(),S(p,{class:"flex flex-col gap-y-2",href:t(i)},{default:k(()=>
126[s("p",fo,w(e.contentItem.title),1),s("div",go,[e.dateLinePreText?(o(),a("span",yo,w(e.dateLinePreText),1)):v("",!0),e.showDate?(o(),a("span",ho,w(t(r)),1)):v("",!0),e.showDate&&(e.showReadTime||e.showContentType||e.showDomain)?(o(),a("span",bo," / ")):v("",!0),e.showReadTime?(o(),a("span",vo,w(e.contentItem.read_time)+" min read",1)):v("",!0),e.showReadTime&&(e.showContentType||e.showDomain)?(o(),a("span",xo," / ")):v("",!0),e.showContentType&&e.contentItem.content_type?(o(),a("span",wo,w(e.contentItem.content_type.name),1)):v("",!0),e.showContentType&&e.showDomain&&e.contentItem.domain?(o(),a("span",ko," / ")):v("",!0),e.showDomain&&e.contentItem.domain?(o(),a("span",$o,w(e.contentItem.domain.name),1)):v("",!0)])]),_:1},8,["href"])}}}),et=Object.assign(Co,{__name:"ContentTitleBlock"}),Io={class:"text-secondary w-full"},So=D({__name:"ContentTitleStack",props:{contentItems:{type:Array,required:!0},title:{type:String,required:!1,default:null},showContentType:{type:Boolean,required:!1,default:!1},showDomain:{type:Boolean,required:!1,default:!0},numberOfArticles:{type:Number,required:!1,default:5}},setup(e){const n=e,i=x(()=>n.contentItems.filter((r,_)=>_<n.numberOfArticles));return(r,_)=>{const d=Ce,p=et;return o(),a("div",Io,[e.title?(o(),S(d,{key:0,title:e.title},null,8,["title"])):v("",!0),(o(!0),a($,null,T(t(i),c=>(o(),a("div",{key:c.id,class:"border-b border-secondary/20 last:border-transparent py-6"},[l(p,{"content-item":c,"show-read-time":!0,"show-domain":e.showDomain,"show-content-type":e.showContentType},null,8,["content-item","show-domain","show-content-type"])]))),128))])}}}),ze=Object.assign(So,{__name:"ContentTitleStack"}),To=(e,n)=>n?K(`use-company-content-${n}-${e.contentTypeId1}-${e.contentTypeId2}-${e.contentTypeId3}`,async()=>{const{$directus:i}=X();return i.query(`
127          query company_content(
128            $filterFirst: content_items_filter
129            $filterSecond: content_items_filter
130            $filterThird: content_items_filter
131            $limit: Int
132            $sort: [String]
133          ) {
134            first: content_items(filter: $filterFirst, limit: $limit, sort: $sort) {
135              ...CompanyContentItem
136            }
137            second: content_items(filter: $filterSecond, limit: $limit, sort: $sort) {
138              ...CompanyContentItem
139            }
140            third: content_items(filter: $filterThird, limit: $limit, sort: $sort) {
141              ...CompanyContentItem
142            }
143          }
144          fragment CompanyContentItem on content_items {
145            id
146            title
147            slug
148            published_at
149            read_time
150            domain {
151              id
152              name
153              slug
154            }
155            content_type {
156              id
157              name
158              slug
159            }
160          }
161        `,{filterFirst:{_and:[{content_type:{id:{_eq:e.contentTypeId1}}},{company:{companies_id:{id:{_eq:n}}}}]},filterSecond:{_and:[{content_type:{id:{_eq:e.contentTypeId2}}},{company:{companies_id:{id:{_eq:n}}}}]},filterThird:{_and:[{content_type:{id:{_eq:e.contentTypeId3}}},{company:{companies_id:{id:{_eq:n}}}}]},limit:5,sort:["-published_at"]})}):{data:H(null),status:H("idle")},qo={key:0},Bo={class:"flex space-x-4"},Po={class:"space-y-2 w-2/3"},No={class:"space-y-2 w-2/3"},Ao={class:"space-y-2 w-2/3"},Ro={key:1,class:"text-secondary border-b"},Eo=D({__name:"CompanyContentBlock",props:{contentTypeId1:{type:String,required:!1,default:Z.NEWS},contentTypeId2:{type:String,required:!1,default:Z.REPORT},contentTypeId3:{type:String,required:!1,default:Z.NEWS},title1:{type:String,required:!1,default:"News on"},title2:{type:String,required:!1,default:"Reports from"},title3:{type:String,required:!1,default:"News on"}},setup(e){const n=H(oe("article")),i=x(()=>{if(n.value?.company&&n.value?.company?.length>0)return n.value?.company[0]?.companies_id}),r=x(()=>i.value?.id),_=x(()=>i.value?.name),d=e,{data:p,status:c}=To({contentTypeId1:d.contentTypeId1,contentTypeId2:d.contentTypeId2,contentTypeId3:d.contentTypeId3},r.value),g=x(()=>{const m=[];return p.value?.first&&m.push({title:d.title1,data:p.value?.first}),p.value?.second&&m.push({title:d.title2,data:p.value?.second}),p.value?.third&&m.push({title:d.title3,data:p.value?.third}),m}),u=x(()=>!(p.value?.first.length>0||p.value?.second.length>0||p.value?.third.length>0));return(m,h)=>{const f=ee,y=ze,b=$e;return o(),a("div",null,[t(c)==="pending"?(o(),a("div",qo,[s("div",Bo,[s("div",Po,[l(f,{class:"h-8 w-full"}),l(f,{class:"h-80 w-full"})]),s("div",No,[l(f,{class:"h-8 w-full"}),l(f,{class:"h-80 w-full"})]),s("div",Ao,[l(f,{class:"h-8 w-full"}),l(f,{class:"h-80 w-full"})])])])):!t(u)&&t(_)?(o(),a("div",Ro,[l(b,{items:t(g),ui:{item:"w-[90%] min-[641px]:max-[768px]:w-[47%] min-[769px]:w-1/3 h-auto snap-start first:pl-0 last:pr-0 px-4"}},{default:k(({item:I})=>[l(y,{title:`${I.title} ${t(_)}`,"content-items":I.data,"show-content-type":!0,"show-domain":!0,class:"item sm:block"},null,8,["title","content-items"])]),_:1},8,["items"])])):v("",!0)])}}}),Mo=Object.assign(Eo,{__name:"CompanyContentBlock"}),Do={class:"flex flex-col divide-y divide-secondary/20 px-2"},Oo=["onClick"],jo={class:"flex items-center justify-center bg-foreground text-primary rounded-full size-6"},Lo={class:"text-xs uppercase"},Uo={class:"flex items-center justify-center bg-foreground text-primary rounded-full size-6"},Vo={class:"text-xs uppercase"},zo={class:"flex items-center justify-center bg-foreground text-primary rounded-full size-6"},Yo={class:"text-xs uppercase"},Fo={class:"flex items-center justify-center bg-foreground text-primary rounded-full size-6"},Ho={class:"text-xs uppercase"},Wo={class:"flex items-center justify-center bg-foreground text-primary rounded-full size-6"},Go={class:"text-xs uppercase"},Qo=D({__name:"SharePopover",props:{link:{type:String,default:"Copy Link"},linkedin:{type:String,default:"Share on LinkedIn"},twitter:{type:String,default:"Share on X"},facebook:{type:String,default:"Share on Facebook"},email:{type:String,default:"Share via Email"}},emits:["copy-link"],setup(e,{emit:n}){const i=Vt(),r=e,_=n,d=x(()=>({linkedin:`https://www.linkedin.com/sharing/share-offsite/?url=${i.href}`,twitter:`https://x.com/intent/tweet?url=${i.href}`,facebook:`https://www.facebook.com/sharer/sharer.php?u=${i.href}`,email:`mailto:?subject=${encodeURIComponent("Check out this page from The Paypers")}&body=${encodeURIComponent(`I found this page on The Paypers and thought you might like it: ${i.href}`)}`})),p=()=>{navigator.clipboard.writeText(i.href).then(()=>{_("copy-link")}
161).catch(c=>console.error("Failed to copy URL: ",c))};return(c,g)=>{const u=se,m=vn;return o(),S(m,{popper:{arrow:!0},ui:{wrapper:"flex",background:"bg-primary",ring:"ring-1 ring-primary",arrow:{background:"before:bg-primary",ring:"before:ring-1 before:ring-primary"}}},{panel:k(({close:h})=>[s("div",Do,[s("button",{type:"button",class:"flex flex-row items-center gap-x-2 py-2",onClick:me(()=>{p(),h()},["prevent"])},[s("span",jo,[l(t(Bn),{"stroke-width":"1.5",size:"14"})]),s("span",Lo,w(r.link),1)],8,Oo),l(u,{class:"flex flex-row items-center gap-x-2 py-2",to:t(d).linkedin,target:"_blank"},{default:k(()=>[s("span",Uo,[l(t(ct),{"stroke-width":"1.5",size:"14"})]),s("p",Vo,w(r.linkedin),1)]),_:1},8,["to"]),l(u,{class:"flex flex-row items-center gap-x-2 py-2",to:t(d).twitter,target:"_blank"},{default:k(()=>[s("span",zo,[l(t(qn),{"stroke-width":"1.5",size:"14"})]),s("p",Yo,w(r.twitter),1)]),_:1},8,["to"]),l(u,{class:"flex flex-row items-center gap-x-2 py-2",to:t(d).facebook,target:"_blank"},{default:k(()=>[s("span",Fo,[l(t(Nn),{"stroke-width":"1.5",size:"14"})]),s("p",Ho,w(r.facebook),1)]),_:1},8,["to"]),l(u,{class:"flex flex-row items-center gap-x-2 py-2",to:t(d).email},{default:k(()=>[s("span",Wo,[l(t(zt),{"stroke-width":"1.5",size:"14"})]),s("p",Go,w(r.email),1)]),_:1},8,["to"])])]),default:k(()=>[Pe(c.$slots,"default")]),_:3})}}}),Gt=Object.assign(Qo,{__name:"SharePopover"}),Ko=["width","height"],Jo=D({__name:"ApprovedTick",props:{size:{type:Number,default:16,required:!1}},setup(e){return(n,i)=>(o(),a("svg",{width:e.size,height:e.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i[0]||(i[0]=[s("path",{d:"M8 0C9.15 0 10.15 0.646875 10.6531 1.59687C11.6812 1.28125 12.8438 1.53125 13.6562 2.34375C14.4688 3.15625 14.7188 4.32188 14.4031 5.34688C15.3531 5.85 16 6.85 16 8C16 9.15 15.3531 10.15 14.4031 10.6531C14.7188 11.6812 14.4688 12.8438 13.6562 13.6562C12.8438 14.4688 11.6781 14.7188 10.6531 14.4031C10.15 15.3531 9.15 16 8 16C6.85 16 5.85 15.3531 5.34688 14.4031C4.31875 14.7188 3.15625 14.4688 2.34375 13.6562C1.53125 12.8438 1.28125 11.6781 1.59687 10.6531C0.646875 10.15 0 9.15 0 8C0 6.85 0.646875 5.85 1.59687 5.34688C1.28125 4.31875 1.53125 3.15625 2.34375 2.34375C3.15625 1.53125 4.32188 1.28125 5.34688 1.59687C5.85 0.646875 6.85 0 8 0Z",fill:"#E3BB61"},null,-1),s("path",{d:"M12.0594 5.99883L11.5281 6.53008L7.53125 10.5301L7 11.0613L6.46875 10.5301L4.46875 8.53008L3.9375 7.99883L4.99688 6.93945L5.52813 7.4707L6.99688 8.93945L10.4656 5.4707L10.9969 4.93945L12.0594 5.99883Z",fill:"#333333"},null,-1)]),8,Ko))}}),dt=Object.assign(Jo,{__name:"ApprovedTick"}),Xo={key:0,class:"flex flex-col gap-8"},Zo={class:"flex flex-col gap-8 md:flex-row mx-auto overflow-hidden"},es={class:"w-full md:w-96 bg-white rounded-lg p-4"},ts={class:"flex flex-col gap-4 divide-y"},ns={key:0,class:"flex items-center space-x-2"},os={class:"flex flex-col pt-4"},ss={class:"text-sm text-secondary"},ls={class:"text-sm text-secondary mt-1"},as={class:"flex flex-col gap-2 pt-4"},is={class:"flex items-center gap-2 w-full font-semibold text-xs tracking-wider text-secondary"},rs={class:"w-full bg-ink rounded-lg p-6"},cs={class:"space-y-6"},ds={class:"flex items-center gap-2"},us={class:"text-3xl font-or-lemmen font-bold text-secondary"},ms={key:0,class:"text-xl font-medium text-secondary"},ps={key:0},_s={class:"font-or-lemmen text-4xl text-secondary mb-4"},fs={class:"flex flex-wrap gap-2 mb-6 overflow-x-auto"},gs={key:1,class:"flex flex-col gap-y-4 py-8 border-y"},ys={key:0,class:"flex flex-row items-center gap-4"},hs={class:"flex flex-wrap gap-2"},bs={key:1,class:"flex flex-row items-center gap-4"},vs={class:"flex flex-wrap gap-2"},xs=D({__name:"CompanyItemBlock",setup(e){const n=oe("article"),i=ve("search:query"),r=x(()=>n?.value?.company_id),_=H(null),d=x(()=>r?.value?.image?.[0]?.cdn),p=x(()=>r?.value?.solutions??[]),c=x(()=>r?.value?.countries??[]),g=u=>{i.value==null&&(i.value={}),i.value.countries=u.id};return ke(()=>r.value,u=>{_.value==null&&u?.companies_about&&u?.companies_about?.length>0&&(_.value=u.companies_about[0])},{immediate:!0}),(u,m)=>{const h=ge,f=se,y=Et,b=Gt,I=dt,O=ie,C=ce;return t(r)?(o(),a("div",Xo,[s("div",Zo,[s("div",es,[s("div",ts,[t(d)?(o(),a("div",ns,[l(h,{src:t(d),alt:t(r).name??void 0},null,8,["src","alt"])])):v("",!0),s("div",os,[s("p",ss,"HQ: "+w(t(r).country_of_origin?.name),1),s("p",ls,"Year founded: "+w(t(r).year_founded),1)]),s("div",as,[t(r).website?(o(),S(f,{key:0,class:"flex items-center gap-2 w-full font-semibold text-xs tracking-wider text-secondary",to:t(r).website,target:"_blank",external:""},{default:k(()=>[l(t(Yt),{class:"stroke-main","stroke-width":"1.5"}),m[0]||(m[0]=s("span",null,"VISIT WEBSITE",-1))]),_:1,__:[0]},8,["to"])):v("",!0),t(n)?(o(),S(y,{key:1,class:"flex items-center gap-2 w-full font-semibold text-xs tracking-wider text-secondary",collection:t(n).__typename,"article-id":t(n).id},{default:k(()=>m[1]||(m[1]=[s("span",null,"SAVE COMPANY",-1)])),_:1,__:[1]},8,["collection","article-id"])):v("",!0),l(b,null,{default:k(()=>[s("button",is,[l(t(Ft),{class:"stroke-main","stroke-width":"1.5"}),m[2]||(m[2]=s("span",null,"SHARE COMPANY",-1))])]),_:1})])])]),s("div",rs,[s("div",cs,[s("div",ds,[s("p",us,w(t(r).name),1),t(r).is_verified?(o(),S(I,{key:0,size:32})):v("",!0)]),t(r).short_description?(o(),a("p",ms,w(t(r).short_description),1)):v("",!0),t(r).abstract?(o(),S(O,{key:1,content:t(r).abstract},null,8,["content"])):v("",!0)])])]),t(r).companies_about&&t(r).companies_about?.length>0?(o(),a("div",ps,[s("p",_s,"About "+w(t(r).name),1),s("div",fs,[(o(!0),a($,null,T(t(r).companies_about,N=>(o(),S(C,{key:N?.companies_id?.id,variant:t(_)===N?"solid":"outline",ui:{rounded:"rounded-full",color:{gray:{solid:"bg-black/50 ring-0 !text-muted hover:bg-black/50"}},variant:{outline:"ring-1 hover:bg-black/50 hover:!text-muted hover:ring-0"}},class:"uppercase text-xs px-3 sm:px-4 tracking-widest",color:"gray",onClick:V=>_.value=N},{default:k(()=>[Y(w(N.title),1)]),_:2},1032,["variant","onClick"]))),128))]),t(_)?(o(),S(O,{key:0,content:t(_).text},null,8,["content"])):v("",!0)])):v("",!0),t(p).length||t(c).length?(o(),a("div",gs,[t(p).length?(o(),a("div",ys,[m[3]||(m[3]=s("span",{class:"text-secondary/75 uppercase text-sm font-medium tracking-wider min-w-24"},"Solutions:",-1)),s("div",hs,[(o(!0),a($,null,T(t(p),N=>
161(o(),a("div",{key:N?.solutions_id?.id,class:"bg-gray-50 text-secondary px-4 py-2 rounded-full text-xs font-medium tracking-wider uppercase"},w(N?.solutions_id?.name),1))),128))])])):v("",!0),t(c).length?(o(),a("div",bs,[m[4]||(m[4]=s("span",{class:"text-secondary/75 uppercase text-sm font-medium tracking-wider min-w-24"},"Countries:",-1)),s("div",vs,[(o(!0),a($,null,T(t(c),N=>(o(),S(f,{key:N?.countries_id?.id,class:"bg-gray-50 text-secondary px-4 py-2 rounded-full text-xs font-medium tracking-wider uppercase",to:"/search-on",onClick:V=>g(N.countries_id)},{default:k(()=>[Y(w(N?.countries_id?.name),1)]),_:2},1032,["onClick"]))),128))])])):v("",!0)])):v("",!0)])):v("",!0)}}}),ws=Object.assign(xs,{__name:"CompanyItemBlock"}),_e=rn(Le.ui.strategy,Le.ui.select,hn),ks=D({components:{UIcon:Nt},inheritAttrs:!1,props:{modelValue:{type:[String,Number,Object],default:""},id:{type:String,default:null},name:{type:String,default:null},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>_e.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:()=>_e.default.trailingIcon},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},size:{type:String,default:null,validator(e){return Object.keys(_e.size).includes(e)}},color:{type:String,default:()=>_e.default.color,validator(e){return[...Le.ui.colors,...Object.keys(_e.color)].includes(e)}},variant:{type:String,default:()=>_e.default.variant,validator(e){return[...Object.keys(_e.variant),...Object.values(_e.color).flatMap(n=>Object.keys(n))].includes(e)}},optionAttribute:{type:String,default:"label"},valueAttribute:{type:String,default:"value"},selectClass:{type:String,default:null},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["update:modelValue","change"],setup(e,{emit:n,slots:i}){const{ui:r,attrs:_}=gn("select",Ue(e,"ui"),_e,Ue(e,"class")),{size:d,rounded:p}=yn({ui:r,props:e}),{emitFormChange:c,inputId:g,color:u,size:m,name:h}=xn(e,_e),f=x(()=>d.value??m.value),y=L=>{n("update:modelValue",L.target.value)},b=L=>{n("change",L.target.value),c()},I=L=>ht(L,e.valueAttribute,""),O=L=>ht(L,e.optionAttribute,""),C=L=>["string","number","boolean"].includes(typeof L)?{[e.valueAttribute]:L,[e.optionAttribute]:L}:{...L,[e.valueAttribute]:I(L),[e.optionAttribute]:O(L)},N=x(()=>e.options.map(L=>
161C(L))),V=x(()=>e.placeholder?[{[e.valueAttribute]:"",[e.optionAttribute]:e.placeholder,disabled:!0},...N.value]:N.value),B=x(()=>{const L=C(e.modelValue),z=V.value.find(F=>F[e.valueAttribute]===L[e.valueAttribute]);return z?z[e.valueAttribute]:""}),q=x(()=>{const L=r.value.color?.[u.value]?.[e.variant]||r.value.variant[e.variant];return cn(Me(r.value.base,r.value.form,p.value,r.value.size[f.value],e.padded?r.value.padding[f.value]:"p-0",L?.replaceAll("{color}",u.value),(j.value||i.leading)&&r.value.leading.padding[f.value],(A.value||i.trailing)&&r.value.trailing.padding[f.value]),e.placeholder&&!e.modelValue&&r.value.placeholder,e.selectClass)}),j=x(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),A=x(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),U=x(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),P=x(()=>e.loading&&!j.value?e.loadingIcon:e.trailingIcon||e.icon),R=x(()=>Me(r.value.icon.leading.wrapper,r.value.icon.leading.pointer,r.value.icon.leading.padding[f.value])),G=x(()=>Me(r.value.icon.base,u.value&&Le.ui.colors.includes(u.value)&&r.value.icon.color.replaceAll("{color}",u.value),r.value.icon.size[f.value],e.loading&&r.value.icon.loading)),Q=x(()=>Me(r.value.icon.trailing.wrapper,r.value.icon.trailing.pointer,r.value.icon.trailing.padding[f.value])),te=x(()=>Me(r.value.icon.base,u.value&&Le.ui.colors.includes(u.value)&&r.value.icon.color.replaceAll("{color}",u.value),r.value.icon.size[f.value],e.loading&&!j.value&&r.value.icon.loading));return{ui:r,attrs:_,name:h,inputId:g,normalizedOptionsWithPlaceholder:V,normalizedValue:B,isLeading:j,isTrailing:A,selectClass:q,leadingIconName:U,leadingIconClass:G,leadingWrapperIconClass:R,trailingIconName:P,trailingIconClass:te,trailingWrapperIconClass:Q,onInput:y,onChange:b}}}),$s=["id","name","value","required","disabled"],Cs=["value","label"],Is=["value","selected","disabled","textContent"],Ss=["value","selected","disabled","textContent"];function Ts(e,n,i,r,_,d){const p=Nt;return o(),a("div",{class:J(e.ui.wrapper)},[s("select",St({id:e.inputId,name:e.name,value:e.modelValue,required:e.required,disabled:e.disabled,class:e.selectClass},e.attrs,{onInput:n[0]||(n[0]=(...c)=>e.onInput&&e.onInput(...c)),onChange:n[1]||(n[1]=(...c)=>e.onChange&&e.onChange(...c))}),[(o(!0),a($,null,T(e.normalizedOptionsWithPlaceholder,(c,g)=>(o(),a($,null,[c.children?(o(),a("optgroup",{key:`${c[e.valueAttribute]}-optgroup-${g}`,value:c[e.valueAttribute],label:c[e.optionAttribute]},[(o(!0),a($,null,T(c.children,(u,m)=>(o(),a("option",{key:`${u[e.valueAttribute]}-${g}-${m}`,value:u[e.valueAttribute],selected:u[e.valueAttribute]===e.normalizedValue,disabled:u.disabled,textContent:w(u[e.optionAttribute])},null,8,Is))),128))],8,Cs)):(o(),a("option",{key:`${c[e.valueAttribute]}-${g}`,value:c[e.valueAttribute],selected:c[e.valueAttribute]===e.normalizedValue,disabled:c.disabled,textContent:w(c[e.optionAttribute])},null,8,Ss))],64))),256))],16,$s),e.isLeading&&e.leadingIconName||e.$slots.leading?(o(),a("span",{key:0,class:J(e.leadingWrapperIconClass)},[Pe(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[l(p,{name:e.leadingIconName,class:J(e.leadingIconClass)},null,8,["name","class"])],!0)],2)):v("",!0),e.isTrailing&&e.trailingIconName||e.$slots.trailing?(o(),a("span",{key:1,class:J(e.trailingWrapperIconClass)},[Pe(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[l(p,{name:e.trailingIconName,class:J(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])],!0)],2)):v("",!0)],2)}const qs=Object.assign(xe(ks,[["render",Ts],["__scopeId","data-v-da5ea0d6"]]),{__name:"USelect"}),Bs={key:0,class:"content"},Ps=D({__name:"CollapsibleDiv",props:{isCollapsed:{type:Boolean,required:!1,default:!0}},setup(e){const n=c=>{const g=c;g.style.height="0"},i=c=>{const g=c;g.style.height=c.scrollHeight+"px"},r=c=>{const g=c;g.style.height=""},_=c=>{const g=c;g.style.height=c.scrollHeight+"px"},d=c=>{const g=c;g.offsetHeight,g.style.height="0"},p=c=>{const g=c;g.style.height=""};return(c,g)=>(o(),a("div",null,[l(dn,{onBeforeEnter:n,onEnter:i,onAfterEnter:r,onBeforeLeave:_,onLeave:d,onAfterLeave:p},{default:k(()=>[e.isCollapsed?v("",!0):(o(),a("div",Bs,[Pe(c.$slots,"default",{},void 0,!0)]))]),_:3})]))}}),Ns=Object.assign(xe(Ps,[["__scopeId","data-v-74c25841"]]),{__name:"CollapsibleDiv"}),As={key:0,class:"p-3 border-b"},Rs={class:"p-3 select-none text-secondary flex flex-col flex-grow"},Es={class:"title pb-1 flex-none flex flex-row"},Ms={key:0,class:"date uppercase pb-1 flex-none"},Ds={key:0},Os={key:2},js={key:3,class:"badges pt-3 mt-auto flex-none"},Ls={key:4,class:"badges pt-3 mt-auto flex-none"},Us=D({__name:"CompanyCard",props:{company:{type:Object,required:!0},imageClasses:{type:String,required:!1},navigateToPath:{type:String,required:!1},title:{type:String,required:!1},subtitle:{type:String,required:!1},modalMessage:{type:String,required:!1},emailPlaceholder:{type:String,required:!1},firstNamePlaceholder:{type:String,required:!1},lastNamePlaceholder:{type:String,required:!1},companyPlaceholder:{type:String,required:!1},jobTitlePlaceholder:{type:String,required:!1},phonePlaceholder:{type:String,required:!1},contactTitlePlaceholder:{type:String,required:!1},byEmailPlaceholder:{type:String,required:!1},byPhonePlaceholder:{type:String,required:!1},consentPlaceholder:{type:String,required:!1},submitButtonText:{type:String,required:!1}},setup(e){const n=H(!1),i=e,r=ve("search:query"),_=x(()=>
161{if(i.navigateToPath?.trim()?.length)return i.navigateToPath;const u=i.company.content_item?.[0];return u==null?"/search-on":pe(u)}),d=x(()=>i.navigateToPath||i.company.is_verified&&_),p=x(()=>d.value?se:"div"),c=()=>{n.value=!0},g=()=>{r.value==null&&(r.value={}),r.value.companies=i.company.id};return(u,m)=>{const h=ge,f=dt,y=ie,b=Ae,I=Mt;return o(),a($,null,[(o(),S(Bt(t(p)),{class:J(["bg-white flex flex-col h-full rounded",{"cursor-pointer":t(d)}]),to:t(d)?t(_):void 0,onClick:g},{default:k(()=>[e.company.image?.[0]?.cdn?(o(),a("div",As,[l(h,{format:"webp",class:J(["flex-none",e.imageClasses]),src:e.company.image[0].cdn,fit:"cover",loading:"lazy",height:"400",width:"560"},null,8,["class","src"])])):v("",!0),s("div",Rs,[s("div",Es,[Y(w(e.company.name)+" ",1),e.company.is_verified?(o(),S(f,{key:0,class:"ml-2 mt-1"})):v("",!0)]),e.company.regions&&e.company.regions.length>0&&e.company.is_verified?(o(),a("div",Ms,[m[1]||(m[1]=Y(" Region: ",-1)),(o(!0),a($,null,T(e.company.regions,(O,C)=>(o(),a("span",{key:C},[Y(w(O?.regions_id?.name)+" ",1),C!==e.company.regions.length-1?(o(),a("span",Ds," / ")):v("",!0)]))),128))])):v("",!0),e.company.is_verified&&e.company.short_description?(o(),S(y,{key:1,class:"line-clamp-3",content:e.company.short_description},null,8,["content"])):v("",!0),e.company.is_verified?v("",!0):(o(),a("div",Os,"Register your company and unlock exclusive benefits and opportunities!")),e.company.domains&&e.company.domains.length>0&&e.company.is_verified?(o(),a("div",js,[(o(!0),a($,null,T(e.company.domains,(O,C)=>(o(),S(b,{key:C,class:"bg-ink ml-3 text-black"},{default:k(()=>[Y(w(O?.domains_id?.name),1)]),_:2},1024))),128))])):v("",!0),e.company.is_verified?v("",!0):(o(),a("div",Ls,[l(b,{class:"badge cursor-pointer text-secondary",onClick:c},{default:k(()=>[Y(w(t(Ke).GET_IN_TOUCH),1)]),_:1})]))])]),_:1},8,["class","to"])),l(I,{modelValue:t(n),"onUpdate:modelValue":m[0]||(m[0]=O=>fe(n)?n.value=O:null),title:i.title,subtitle:i.subtitle,"modal-message":i.modalMessage,"email-placeholder":i.emailPlaceholder,"first-name-placeholder":i.firstNamePlaceholder,"last-name-placeholder":i.lastNamePlaceholder,"company-placeholder":i.companyPlaceholder,"job-title-placeholder":i.jobTitlePlaceholder,"phone-placeholder":i.phonePlaceholder,"contact-title-placeholder":i.contactTitlePlaceholder,"by-email-placeholder":i.byEmailPlaceholder,"by-phone-placeholder":i.byPhonePlaceholder,"consent-placeholder":i.consentPlaceholder,"submit-button-text":i.submitButtonText,"modal-type":t(Ke).GET_IN_TOUCH}
161,null,8,["modelValue","title","subtitle","modal-message","email-placeholder","first-name-placeholder","last-name-placeholder","company-placeholder","job-title-placeholder","phone-placeholder","contact-title-placeholder","by-email-placeholder","by-phone-placeholder","consent-placeholder","submit-button-text","modal-type"])],64)}}}),ut=Object.assign(xe(Us,[["__scopeId","data-v-8ea38395"]]),{__name:"CompanyCard"}),Vs={class:"flex flex-col justify-center gap-y-6 bg-peach h-full rounded items-center p-8"},zs=D({__name:"TriggerCard",props:{title:{},subtitle:{},modalMessage:{},emailPlaceholder:{},firstNamePlaceholder:{},lastNamePlaceholder:{},companyPlaceholder:{},jobTitlePlaceholder:{},phonePlaceholder:{},contactTitlePlaceholder:{},byEmailPlaceholder:{},byPhonePlaceholder:{},consentPlaceholder:{},submitButtonText:{}},setup(e){const n=H(!1),i=e,r=()=>{n.value=!0};return(_,d)=>{const p=Ae,c=Mt;return o(),a($,null,[s("div",Vs,[d[1]||(d[1]=s("p",{class:"text-2xl font-semibold font-or-lemmen text-center"},"Your company here?",-1)),d[2]||(d[2]=s("p",{class:"text-sm font-normal text-center"}," Join industry leaders by registering your company and unlock exclusive benefits and opportunities! ",-1)),l(p,{class:"justify-center bg-white cursor-pointer font-medium text-secondary uppercase py-2 px-4 w-fit tracking-wider",onClick:r},{default:k(()=>[Y(w(t(Ke).GET_STARTED),1)]),_:1})]),l(c,{modelValue:t(n),"onUpdate:modelValue":d[0]||(d[0]=g=>fe(n)?n.value=g:null),title:i.title,subtitle:i.subtitle,"modal-message":i.modalMessage,"email-placeholder":i.emailPlaceholder,"first-name-placeholder":i.firstNamePlaceholder,"last-name-placeholder":i.lastNamePlaceholder,"company-placeholder":i.companyPlaceholder,"job-title-placeholder":i.jobTitlePlaceholder,"phone-placeholder":i.phonePlaceholder,"contact-title-placeholder":i.contactTitlePlaceholder,"by-email-placeholder":i.byEmailPlaceholder,"by-phone-placeholder":i.byPhonePlaceholder,"consent-placeholder":i.consentPlaceholder,"submit-button-text":i.submitButtonText,"modal-type":t(Ke).GET_STARTED}
161,null,8,["modelValue","title","subtitle","modal-message","email-placeholder","first-name-placeholder","last-name-placeholder","company-placeholder","job-title-placeholder","phone-placeholder","contact-title-placeholder","by-email-placeholder","by-phone-placeholder","consent-placeholder","submit-button-text","modal-type"])],64)}}}),Ys=Object.assign(zs,{__name:"TriggerCard"}),Fs={class:"text-center"},Hs=D({__name:"Pagination",props:{itemsPerPage:{type:Number,required:!1,default:12},totalItems:{type:Number,required:!1,default:0},perPageText:{type:String,required:!1,default:"Per page"},pageNumber:{type:Number,required:!1,default:1},perPageItems:{type:Array,required:!1,default:["12","24","36","48","60"]}},emits:["update:pageNumber","update:itemsPerPage","refresh"],setup(e,{emit:n}){const i=e,r=H(i.itemsPerPage.toString()),_=n,d=x(()=>i.pageNumber===1),p=x(()=>i.pageNumber*i.itemsPerPage>=i.totalItems),c=x(()=>Math.ceil(i.totalItems/i.itemsPerPage)),g=()=>{const m=i.pageNumber-1;m>=1&&(_("update:pageNumber",m),_("refresh"))},u=()=>{const m=i.pageNumber+1;m<=c.value&&(_("update:pageNumber",m),_("refresh"))};return ke(r,()=>{_("update:itemsPerPage",parseInt(r.value)),_("update:pageNumber",1),_("refresh")}),(m,h)=>{const f=rt,y=ce;return o(),a("div",Fs,[Y(w(e.perPageText)+" ",1),l(f,{modelValue:t(r),"onUpdate:modelValue":h[0]||(h[0]=b=>fe(r)?r.value=b:null),variant:"none",class:"ml-2 mr-6 inline-block",ui:{rounded:"rounded-full",padding:{sm:"py-3.5 px-5"},variant:{none:"bg-white"}},options:i.perPageItems},null,8,["modelValue","options"]),Y(" "+w((e.pageNumber-1)*i.itemsPerPage+1)+" to "+w(Math.min(e.pageNumber*i.itemsPerPage,e.totalItems))+" of "+w(e.totalItems)+" ",1),l(y,{icon:"i-heroicons-chevron-left-20-solid",variant:"link",class:"align-middle mb-1 button pr-0",disabled:t(d),onClick:g},null,8,["disabled"]),l(y,{class:"align-middle mb-1 button pl-0",variant:"link",icon:"i-heroicons-chevron-right-20-solid",disabled:t(p),onClick:u},null,8,["disabled"])])}}}),Qt=Object.assign(xe(Hs,[["__scopeId","data-v-5effeb53"]]),{__name:"Pagination"}),Ws=async(e,n)=>{const r=Xe().public.directus.url,_=new URLSearchParams;_.append("limit",n.limit.toString()),_.append("offset",n.offset.toString()),e.searchText?.trim()&&_.append("search_text",e.searchText.trim()),e.domain&&_.append("domain_id",e.domain),e.solution&&_.append("solution_id",e.solution),e.region&&_.append("region_id",e.region),e.targetMarket&&_.append("target_market_id",e.targetMarket),e.isVerified!==void 0&&e.isVerified!==""&&_.append("is_verified",e.isVerified);try{const d=await $fetch(`${r}/companies/overview?${_.toString()}`);return{companies:d.result?.map(c=>({id:c.company_id,name:c.company_name,is_verified:c.company_is_verified,abstract:c.company_abstract,short_description:c.company_short_description,image:c.company_image,domains:c.domains,regions:c.regions,importance:c.company_importance,content_item:c.content_item_slug?[{slug:c.content_item_slug,domain:{slug:c.content_item_domain_slug},content_type:{slug:c.content_item_content_type_slug}}]:[]}))||[],total:parseInt(d?.total??0,10)}}catch(d){throw console.error("Error fetching company data:",d),d}},Gs={class:"text-gray-600"},Qs={class:"flex items-center mb-6"},Ks={class:"text-2xl font-bold grow"},Js={class:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4"},Xs={key:0,class:"text-center my-6 text-red-600"},Zs={key:1},el={class:"grid-wrapper pb-3 overflow-x-hidden"},tl={class:"grid max-md:grid-cols-2 md:max-xl:grid-cols-3 xl:grid-cols-4 gap-3 gap-y-6 relative"},nl={class:"h-full rounded-sm overflow-hidden"},ol={class:"p-6 space-y-4"},sl={key:2},ll={class:"grid-wrapper overflow-hidden pb-3"},al={class:"relative grid grid-cols-1 sm:grid-cols-2 md:max-xl:grid-cols-3 xl:grid-cols-4 gap-3 gap-y-6"},il={key:0,class:"my-14"},rl={key:3,class:"text-center my-6"},cl=D({__name:"CompanyOverviewBlock",props:{title:{type:String,required:!1,default:"Company overview"},bannerStartRowIndex:{type:Number,required:!1,default:3},bannerRepeatRowIndex:{type:Number,required:!1,default:3},triggerBannerRepeatAfterRows:{type:Number,required:!1,default:0},itemsPerPage:{type:Number,required:!1,default:24},bannerBlockId:{type:String,required:!1,default:""}},async setup(e){let n,i;const r=e;
161class _{company;isTrigger;constructor(B){this.company=B,this.isTrigger=B==null}}const d=nt({companies:[],pagination:{pageNumber:1,numOfItems:r.itemsPerPage,itemsTotal:0},filters:{searchText:void 0,domain:void 0,solution:void 0,region:void 0,targetMarket:void 0,isVerified:void 0},ui:{isFilterCollapsed:!1,loadingStatus:"idle"}}),{data:p}=([n,i]=de(async()=>K("company-filter-options",async()=>{const{$directus:V}=X();try{const B=await V.query(`
162      query CompanyOverviewBlockFilters {
163        domains {
164          id
165          name
166        }
167        solutions {
168          id
169          name
170        }
171        target_markets {
172          id
173          name
174        }
175        regions {
176          id
177          name
178        }
179      }
180    `);return{domains:B.domains||[],solutions:B.solutions||[],targetMarkets:B.target_markets||[],regions:B.regions||[]}}catch(B){return console.error("Failed to fetch filter options:",B),{domains:[],solutions:[],targetMarkets:[],regions:[]}}})),n=await n,i(),n),c=x(()=>p.value?.domains||[]),g=x(()=>p.value?.solutions||[]),u=x(()=>p.value?.targetMarkets||[]),m=x(()=>p.value?.regions||[]),h=["Yes","No"],{data:f}=([n,i]=de(()=>Ht()),n=await n,i(),n),y=x(()=>d.companies.map(B=>new _(B))),b=x(()=>{const{bannerStartRowIndex:B,bannerRepeatRowIndex:q}=r;if(B<=0||q<=0)return[{companies:y.value,showBanner:!1}];const j=[],A=B*4;if(y.value.length<=A)return[{companies:y.value,showBanner:!1}];j.push({companies:y.value.slice(0,A),showBanner:!0});let U=y.value.slice(A);const P=q*4;for(;U.length>0;){const R=Math.min(U.length,P);j.push({companies:U.slice(0,R),showBanner:U.length>P}),U=U.slice(R)}return j}),I=async()=>{try{d.ui.loadingStatus="pending";const V=await Ws(d.filters,{limit:d.pagination.numOfItems,offset:(d.pagination.pageNumber-1)*d.pagination.numOfItems});d.companies=V.companies,d.pagination.itemsTotal=V.total,d.ui.loadingStatus="success"}catch(V){console.error("Error fetching companies:",V),d.ui.loadingStatus="error",d.companies=[]}},O=()=>{d.ui.isFilterCollapsed=!d.ui.isFilterCollapsed},C=()=>{d.pagination.pageNumber=1,I()},N=V=>{d.filters[V]=void 0,C()};return ke(()=>d.pagination.pageNumber,I),ke(()=>d.pagination.numOfItems,()=>{d.pagination.pageNumber=1,I()}),Ze(I),(V,B)=>{const q=ce,j=it,A=Lt,U=qs,P=Ut,R=Ns,G=ee,Q=ut,te=Ys,L=Ve,z=Qt;return o(),a("div",Gs,[s("div",Qs,[s("h3",Ks,w(e.title),1),l(q,{color:"gray",variant:"link",icon:"i-fluent:filter-16-regular",padded:!1,onClick:O})]),l(R,{"is-collapsed":t(d).ui.isFilterCollapsed},{default:k(()=>[l(P,{state:t(d).filters,class:"space-y-4 bg-accent rounded p-4 mb-4"},{default:k(()=>[l(A,{name:"searchText"},{default:k(()=>[l(j,{modelValue:t(d).filters.searchText,"onUpdate:modelValue":B[0]||(B[0]=F=>t(d).filters.searchText=F),placeholder:"Keywords search",class:"rounded-full shadow-none",onChange:C},null,8,["modelValue"])]),_:1}),s("div",Js,[l(A,{name:"domain"},{default:k(()=>[l(U,{modelValue:t(d).filters.domain,"onUpdate:modelValue":B[2]||(B[2]=F=>t(d).filters.domain=F),class:"rounded-full shadow-none","value-attribute":"id","option-attribute":"name",options:t(c),placeholder:"Category",trailing:"",onChange:C},De({_:2},[t(d).filters.domain?{name:"trailing",fn:k(()=>[s("button",{type:"button",class:"!pointer-events-auto",onClick:B[1]||(B[1]=me(()=>N("domain"),["prevent"]))},[l(t(qe),{"stroke-width":"1",size:"20"})])]),key:"0"}:void 0]),1032,["modelValue","options"])]),_:1}),l(A,{name:"solution"},{default:k(()=>[l(U,{modelValue:t(d).filters.solution,"onUpdate:modelValue":B[4]||(B[4]=F=>t(d).filters.solution=F),class:"rounded-full shadow-none","value-attribute":"id","option-attribute":"name",options:t(g),placeholder:"Type of solution",trailing:"",onChange:C},De({_:2},[t(d).filters.solution?{name:"trailing",fn:k(()=>[s("button",{type:"button",class:"!pointer-events-auto",onClick:B[3]||(B[3]=me(()=>N("solution"),["prevent"]))},[l(t(qe),{"stroke-width":"1",size:"20"})])]),key:"0"}:void 0]),1032,["modelValue","options"])]),_:1}),l(A,{name:"region"},{default:k(()=>[l(U,{modelValue:t(d).filters.region,"onUpdate:modelValue":B[6]||(B[6]=F=>t(d).filters.region=F),class:"rounded-full shadow-none","value-attribute":"id","option-attribute":"name",options:t(m),placeholder:"Regional presence",trailing:"",onChange:C},De({_:2},[t(d).filters.region?{name:"trailing",fn:k(()=>[s("button",{type:"button",class:"!pointer-events-auto",onClick:B[5]||(B[5]=me(()=>N("region"),["prevent"]))},[l(t(qe),{"stroke-width":"1",size:"20"})])]),key:"0"}:void 0]),1032,["modelValue","options"])]),_:1}),l(A,{name:"targetMarket"},{default:k(()=>[l(U,{modelValue:t(d).filters.targetMarket,"onUpdate:modelValue":B[8]||(B[8]=F=>t(d).filters.targetMarket=F),class:"rounded-full shadow-none","value-attribute":"id","option-attribute":"name",options:t(u),placeholder:"Target market",trailing:"",onChange:C},De({_:2},[t(d).filters.targetMarket?{name:"trailing",fn:k(()=>[s("button",{type:"button",class:"!pointer-events-auto",onClick:B[7]||(B[7]=me
180(()=>N("targetMarket"),["prevent"]))},[l(t(qe),{"stroke-width":"1",size:"20"})])]),key:"0"}:void 0]),1032,["modelValue","options"])]),_:1}),l(A,{name:"isVerified"},{default:k(()=>[l(U,{modelValue:t(d).filters.isVerified,"onUpdate:modelValue":B[10]||(B[10]=F=>t(d).filters.isVerified=F),class:"rounded-full shadow-none",options:h,placeholder:"Verified companies",trailing:"",onChange:C},De({_:2},[t(d).filters.isVerified?{name:"trailing",fn:k(()=>[s("button",{type:"button",class:"!pointer-events-auto",onClick:B[9]||(B[9]=me(()=>N("isVerified"),["prevent"]))},[l(t(qe),{"stroke-width":"1",size:"20"})])]),key:"0"}:void 0]),1032,["modelValue"])]),_:1})])]),_:1},8,["state"])]),_:1},8,["is-collapsed"]),t(d).ui.loadingStatus==="error"?(o(),a("div",Xs," Failed to load companies. Please try again. ")):t(d).ui.loadingStatus==="idle"||t(d).ui.loadingStatus==="pending"?(o(),a("div",Zs,[s("div",el,[s("div",tl,[(o(),a($,null,T(8,F=>s("div",{key:F,class:"item border-l pl-3"},[s("div",nl,[s("div",ol,[l(G,{class:"h-24 w-full"}),l(G,{class:"h-4 w-3/4"}),l(G,{class:"h-4 w-2/3"}),l(G,{class:"h-8 w-32 mt-4"})])])])),64))])])])):t(d).ui.loadingStatus==="success"?(o(),a("div",sl,[(o(!0),a($,null,T(t(b),(F,ne)=>(o(),a("div",{key:ne},[s("div",ll,[s("div",al,[(o(!0),a($,null,T(F.companies,(ue,ye)=>(o(),a("div",{key:`group-${ne}-item-${ye}-${ue.company?.id||"trigger"}`,class:"item border-l pl-3"},[ue.company?(o(),S(Q,{key:0,company:ue.company,title:t(f)?.modal_title,subtitle:t(f)?.modal_subtitle,"modal-message":t(f)?.modal_message,"email-placeholder":t(f)?.email_placeholder,"first-name-placeholder":t(f)?.first_name_placeholder,"last-name-placeholder":t(f)?.last_name_placeholder,"company-placeholder":t(f)?.company_placeholder,"job-title-placeholder":t(f)?.job_title_placeholder,"phone-placeholder":t(f)?.phone_placeholder,"contact-title-placeholder":t(f)?.contact_text,"by-email-placeholder":t(f)?.email_checkbox_placeholder,"by-phone-placeholder":t(f)?.phone_checkbox_placeholder,"consent-placeholder":t(f)?.consent_checkbox_placeholder,"submit-button-text":t(f)?.button_placeholder}
180,null,8,["company","title","subtitle","modal-message","email-placeholder","first-name-placeholder","last-name-placeholder","company-placeholder","job-title-placeholder","phone-placeholder","contact-title-placeholder","by-email-placeholder","by-phone-placeholder","consent-placeholder","submit-button-text"])):(o(),S(te,{key:1,title:t(f)?.modal_title,subtitle:t(f)?.modal_subtitle,"modal-message":t(f)?.modal_message,"email-placeholder":t(f)?.email_placeholder,"first-name-placeholder":t(f)?.first_name_placeholder,"last-name-placeholder":t(f)?.last_name_placeholder,"company-placeholder":t(f)?.company_placeholder,"job-title-placeholder":t(f)?.job_title_placeholder,"phone-placeholder":t(f)?.phone_placeholder,"contact-title-placeholder":t(f)?.contact_text,"by-email-placeholder":t(f)?.email_checkbox_placeholder,"by-phone-placeholder":t(f)?.phone_checkbox_placeholder,"consent-placeholder":t(f)?.consent_checkbox_placeholder,"submit-button-text":t(f)?.button_placeholder},null,8,["title","subtitle","modal-message","email-placeholder","first-name-placeholder","last-name-placeholder","company-placeholder","job-title-placeholder","phone-placeholder","contact-title-placeholder","by-email-placeholder","by-phone-placeholder","consent-placeholder","submit-button-text"]))]))),128))])]),F.showBanner?(o(),a("div",il,[l(L,{"banner-block-id":r.bannerBlockId},null,8,["banner-block-id"])])):v("",!0)]))),128)),l(z,{"page-number":t(d).pagination.pageNumber,"onUpdate:pageNumber":B[11]||(B[11]=F=>t(d).pagination.pageNumber=F),"items-per-page":t(d).pagination.numOfItems,"onUpdate:itemsPerPage":B[12]||(B[12]=F=>t(d).pagination.numOfItems=F),class:"mt-3","total-items":t(d).pagination.itemsTotal,"per-page-text":"Companies per page",onRefresh:I},null,8,["page-number","items-per-page","total-items"])])):(o(),a("div",rl,"There are no companies to show. Please adjust the filter settings."))])}}}),dl=Object.assign(xe(cl,[["__scopeId","data-v-426c3c32"]]),{__name:"CompanyOverviewBlock"}),ul={class:"flex flex-col flex-grow md:flex-row items-center gap-4"},ml={class:"w-full md:w-2/5 lg:w-1/3"},pl={class:"flex flex-col gap-6 w-full md:w-3/5 lg:w-2/3"},_l={class:"flex flex-col gap-2"},fl={class:"flex flex-row items-center gap-2"},gl={class:"text-2xl font-bold text-secondary"},yl={key:0,class:"uppercase text-xs font-medium text-secondary"},hl={class:"flex space-x-3"},bl=D({__name:"FeaturedCompany",props:{company:{type:Object,required:!0}},setup(e){const n=e,i=ve("search:query"),r=x(()=>n.company?.image?.[0]?.cdn),_=()=>{i.value==null&&(i.value={}),i.value.companies=n.company.id},d=x(()=>{const p=n.company.content_item?.[0];return p==null?"/search-on":pe(p)});return(p,c)=>{const g=ge,u=dt,m=ie,h=ce,f=se;return o(),S(f,{class:"flex flex-col gap-4 bg-ink rounded-lg p-4 overflow-hidden",to:t(d),onClick:_},{default:k(()=>[c[4]||(c[4]=s("p",{class:"text-3xl text-secondary font-or-lemmen"},"Featured company",-1)),s("div",ul,[s("div",ml,[t(r)?(o(),S(g,{key:0,src:t(r),alt:`${e.company.name} Logo`,class:"object-cover w-full h-auto max-h-64"},null,8,["src","alt"])):v("",!0)]),s("div",pl,[s("div",_l,[s("div",fl,[s("p",gl,w(e.company.name),1),l(u,{size:24})]),e.company.country_of_origin?(o(),a("div",yl,[s("p",null,"Country: "+w(e.company.country_of_origin?.name),1)])):v("",!0)]),e.company.short_description?(o(),S(m,{key:0,content:e.company.short_description},null,8,["content"])):v("",!0),s("div",hl,[e.company.website?(o(),S(h,{key:0,to:e.company.website,target:"_blank",variant:"outline",color:"gray",class:"px-6 rounded-full text-xs uppercase",onClick:c[0]||(c[0]=me(()=>{},["stop"]))},{default:k(()=>c[2]||(c[2]=[Y(" Website ",-1)])),_:1,__:[2]},8,["to"])):v("",!0),e.company.email?(o(),S(h,{key:1,variant:"outline",color:"gray",class:"px-6 rounded-full text-xs uppercase",to:`mailto:${e.company.email}`,onClick:c[1]||(c[1]=me(()=>{},["stop"]))},{default:k(()=>c[3]||(c[3]=[Y(" Email ",-1)])),_:1,__:[3]},8,["to"])):v("",!0)])])])]),_:1,__:[4]},8,["to"])}}}),vl=Object.assign(bl,{__name:"FeaturedCompany"}),xl={class:"flex flex-col gap-4"},wl={class:"grid grid-cols-2 md:grid-cols-2 gap-4"},kl={class:"flex items-center justify-center bg-white h-32"},$l=D({__name:"LatestAddedCompanies",props:{companies:{type:Array,required:!0},limit:{type:Number,default:4}},setup(e){const n=e,i=ve("search:query"),r=x(()=>n.companies.filter(p=>p.image?.[0]?.cdn)),_=p=>{const c=p.content_item?.[0];return c==null?"/search-on":pe(c)},d=p=>{i.value==null&&(i.value={}),i.value.companies=p.id};return(p,c)=>{const g=Ce,u=ge,m=se;return o(),a("div",xl,[l(g,{title:"Latest added companies"}),s("div",wl,[(o(!0),a($,null,T(t(r),h=>(o(),S(m,{key:h.id,to:_(h),class:"company-card",onClick:f=>d(h)},{default:k(()=>
180[s("div",kl,[l(u,{src:h?.image?.[0]?.cdn,alt:`${h.name} Logo`,class:"size-full object-contain"},null,8,["src","alt"])])]),_:2},1032,["to","onClick"]))),128))])])}}}),Cl=Object.assign($l,{__name:"LatestAddedCompanies"}),Il=e=>K(`top-companies-${e.importance}`,async()=>{const{$directus:n}=X();return await n.query(`
181          query companies($filter: companies_filter, $filterLatest: companies_filter) {
182            top_companies: companies(filter: $filter, limit: 1, sort: ["-importance", "-date_updated"]) {
183              id
184              name
185              image
186              short_description
187              email
188              website
189              is_verified
190              country_of_origin {
191                name
192              }
193              content_item {
194                slug
195                domain {
196                  slug
197                }
198                content_type {
199                  slug
200                }
201              }
202            }
203            latest_companies: companies(filter: $filterLatest, limit: 4, sort: ["is_verified", "-date_created"]) {
204              id
205              name
206              image
207              content_item {
208                slug
209                domain {
210                  slug
211                }
212                content_type {
213                  slug
214                }
215              }
216            }
217          }
218        `,{filter:{_and:[{importance:{_gte:e.importance}},{is_verified:{_eq:!0}}]},filterLatest:{_and:[{image:{_null:!1}}]}})},{watch:[()=>e.importance],immediate:!0,server:!0}),Sl={class:"grid-wrapper overflow-x-hidden"},Tl={key:0,class:"mt-6"},ql={class:"flex flex-row gap-x-4"},Bl={class:"basis-2/6 space-y-4"},Pl={class:"grid grid-cols-2 gap-4 pl-3"},Nl={key:1,class:"flex flex-col md:flex-row items-center gap-6"},Al={class:"w-full md:w-3/5 lg:w-2/3"},Rl={class:"w-full md:w-2/5 lg:w-1/3"},El=D({__name:"TopCompanyBlock",props:{importance:{type:Number,required:!1,default:3}},setup(e){const n=e,{data:i,status:r}=Il(n),_=x(()=>i.value?.latest_companies),d=x(()=>i.value?.top_companies?.[0]??null);return(p,c)=>{const g=ee,u=vl,m=Cl;return o(),a("div",Sl,[t(r)=="pending"?(o(),a("div",Tl,[s("div",ql,[l(g,{class:"basis-4/6 h-80 w-full"}),s("div",Bl,[l(g,{class:"h-10 w-full"}),s("div",Pl,[(o(),a($,null,T(4,h=>l(g,{key:h,class:"basis-1/2 h-[124px]"})),64))])])])])):t(d)&&t(_).length>=1?(o(),a("div",Nl,[s("div",Al,[l(u,{class:"lg:col-span-2 max-lg:border-b",company:t(d)},null,8,["company"])]),s("div",Rl,[l(m,{companies:t(_)},null,8,["companies"])])])):v("",!0)])}}}),Ml=Object.assign(xe(El,[["__scopeId","data-v-b4acf872"]]),{__name:"TopCompanyBlock"}),Dl=e=>K("related-companies-block",async()=>{const{$directus:n}=X();try{return await n.query(`
219          query Companies($filter: companies_filter, $sort: [String], $limit: Int) {
220            companies(filter: $filter, sort: $sort, limit: $limit) {
221              id
222              name
223              image
224              abstract
225              is_verified
226              short_description
227              regions {
228                id
229                regions_id {
230                  name
231                }
232              }
233              domains {
234                id
235                domains_id {
236                  name
237                }
238              }
239            }
240          }
241        `,{...e})}catch(i){throw console.error("Error fetching related companies data",i),i}}),Kt=(e,n)=>e?.type==="topic"||e?.content_type?.name==="Topics"?"topics":e?.content_type?.name==="Company Information"?"company_information":n==="key_themes_pages"?"key_themes":n==="overview_pages"?"overview_pages":e?.type==="domain"?"domains":"content_item",Ol={key:0,class:"py-3 space-y-8"},jl={class:"grid grid-cols-4 gap-x-5"},Ll={class:"space-y-3"},Ul={class:"flex flex-row gap-x-2 place-items-center"},Vl={class:"space-y-2"},zl=D({__name:"RelatedCompaniesBlock",props:{title:{type:String,required:!1,default:"Related companies"}},setup(e){const n=e,i=Ue(oe("article")),r=x(()=>{const c={is_verified:{_eq:!0}};if(!i.value)return{sort:["-date_created"],filter:c,limit:20};const g=Kt(i.value,i.value.collectionName);switch(g){case"topics":c[g]={topics_id:{id:{_eq:i.value?.topic?.id}}};break;case"key_themes":c[g]={key_themes_id:{id:{_eq:i.value?.key_theme?.id}}};break;case"domains":{const u=i.value?.context;c[g]={domains_id:{id:{_eq:u?.key}}};break}}return{sort:["-date_created"],filter:c,limit:20}}),{data:_,status:d}=Dl(r.value),p=x(()=>_.value?.companies??[]);return(c,g)=>{const u=ee,m=ut,h=Dt;return t(d)=="pending"?(o(),a("div",Ol,[l(u,{class:"h-8 w-1/4",ui:{rounded:"rounded-md"}}),s("div",jl,[(o(),a($,null,T(4,f=>s("div",{key:f,class:"bg-white h-[500px] p-3"},[s("div",Ll,[l(u,{class:"h-44 w-full",ui:{rounded:"rounded-md"}}),s("div",Ul,[l(u,{class:"h-8 w-1/2",ui:{rounded:"rounded-md"}}),l(u,{class:"h-6 w-6",ui:{rounded:"rounded-full"}})]),s("div",Vl,[(o(),a($,null,T(3,y=>l(u,{key:y,class:"h-4 w-full",ui:{rounded:"rounded-md"}})),64)),l(u,{class:"h-4 w-1/4",ui:{rounded:"rounded-md"}})])])])),64))])])):t(p).length>0?(o(),S(h,{key:1,title:n.title,items:t(p)},{item:k(({item:f})=>[l(m,{company:f},null,8,["company"])]),_:1},8,["title","items"])):v("",!0)}}}),Yl=Object.assign(zl,{__name:"RelatedCompaniesBlock"}),Fl={key:0,class:"space-y-3"},Hl={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-4"},Wl={class:"flex flex-row gap-x-3 place-items-center"},Gl={key:1},Ql={key:2,class:"py-4"},Kl=D({__name:"SimilarCompanies",async setup(e){let n,i;const _=Xe().public.directus.url,d=H(oe("article")),{data:p,status:c}=([n,i]=de(async()=>K("similar-companies",async()=>{const g=d.value?.company_id?.id;if(!g)return[];try{return(await $fetch(`${_}/companies/${g}/similar`,{method:"GET"})).result??[]}catch(u){return console.error(u),[]}})),n=await n,i(),n);return(g,u)=>{const m=ee,h=ut,f=Dt;return o(),a("div",null,[t(c)==="pending"?(o(),a("div",Fl,[l(m,{class:"h-10 w-1/4",ui:{rounded:"rounded-md"}}),s("div",Hl,[(o(),a($,null,T(4,y=>s("div",{key:`skeleton-${y}`,class:"bg-white h-96 p-3 space-y-2"},[l(m,{class:"h-4/6 w-full",ui:{rounded:"rounded-md"}}),s("div",Wl,[l(m,{class:"h-10 w-1/2",ui:{rounded:"rounded-md"}}),l(m,{class:"h-8 w-8",ui:{rounded:"rounded-full"}})]),(o(),a($,null,T(2,b=>l(m,{key:`skeleton-line-${b}`,class:"h-4 w-full",ui:{rounded:"rounded-md"}})),64)),l(m,{class:"h-4 w-3/4",ui:{rounded:"rounded-md"}})])),64))])])):t(c)==="success"&&t(p)?.length?(o(),a("div",Gl,[l(f,{title:"Similar Companies",items:t(p)??[]},{item:k(({item:y}
241)=>[l(h,{company:y},null,8,["company"])]),_:1},8,["items"])])):t(c)!=="idle"?(o(),a("p",Ql,"No similar companies found.")):v("",!0)])}}}),Jl=Object.assign(Kl,{__name:"SimilarCompanies"}),Xl={class:"flex flex-col flex-grow"},Zl={class:"date uppercase"},ea={key:0},ta={key:1},na={key:2},oa={key:1,class:"badges flex flex-row flex-wrap items-center gap-2 mt-auto"},sa=D({__name:"NewsItemCard",props:{contentItem:{type:Object,required:!0},imageClasses:{type:String,required:!1,default:null},showCategories:{type:Boolean,required:!1,default:!0},showContentType:{type:Boolean,required:!1,default:!0},showKeyThemes:{type:Boolean,required:!1,default:!1},showDomainInByline:{type:Boolean,required:!1,default:!1},showImage:{type:Boolean,required:!1,default:!0},isFullHeight:{type:Boolean,required:!1,default:!0},layout:{type:Number,required:!1,default:0},positionImage:{type:Number,required:!1,default:1},useHorizontalDefaultSize:{type:Boolean,required:!1,default:!0},useDefaultImageDimension:{type:Boolean,required:!1,default:!1},dateLinePreText:{type:String,required:!1,default:null},useEventForDate:{type:Boolean,required:!1,default:!1},showReadTime:{type:Boolean,required:!1,default:!0},isEntireCardLink:{type:Boolean,required:!1,default:!0},showSaveYourSpot:{type:Boolean,required:!1,default:!1},overrideDefaultLink:{type:Boolean,required:!1},navigateToPath:{type:String,required:!1,default:null},isLemmenTitle:{type:Boolean,required:!1,default:!1},dark:{type:Boolean,required:!1,default:!1}},setup(e){const n=e,i=async(d,p=!1)=>{const c=n.overrideDefaultLink?n.navigateToPath:d;c&&await Qe(c,{external:p})},r=x(()=>pe(n.contentItem)),_=x(()=>n.useEventForDate&&(n.contentItem.event_at??n.contentItem.webinar_at)?ae.tz(n.contentItem.event_at??n.contentItem.webinar_at,"Europe/Bucharest").local().format("DD MMM YYYY"):ae(n.contentItem.published_at).format("DD MMM YYYY"));return(d,p)=>{const c=ge,g=ie,u=Ae,m=Ot;return o(),S(Bt(e.isEntireCardLink?t(se):"div"),{class:J((e.isFullHeight?"h-full":"")+" "+(e.isEntireCardLink?"cursor-pointer":"")),to:t(r)},{default:k(()=>[s("div",{class:J(["flex gap-6 h-full",e.layout===3?`flex-col h-full md:${e.positionImage===0?"flex-row":"flex-row-reverse"} lg:flex-col`:e.layout===2?`flex-col h-full ${e.positionImage===0?"flex-row":"md:flex-row-reverse"}`:e.layout===0?"flex-col h-full":e.positionImage===0?"flex-col md:flex-row":"flex-col md:flex-row md:flex-row-reverse"])},[e.showImage&&e.contentItem.image&&e.contentItem.image.length>0?(o(),S(c,{key:0,class:J(["object-contain",e.imageClasses+(e.layout===3?" md:max-lg:mb-0 md:max-lg:horizontal":"")+(e.layout===1?` md:mb-0 ${e.positionImage===0?"":"md:ml-3"}`:"")+(e.layout===2?" md:mb-0 md:ml-3":"")+(e.layout===3&&e.positionImage===0?" md:max-lg:mr-3":"")+(e.layout===3&&e.positionImage===1?" md:max-lg:ml-3":"")+(e.positionImage===0?" left":" right")+(e.isEntireCardLink?"":" cursor-pointer")]),src:e.contentItem.image[0].cdn,alt:e.contentItem?.title,fit:"cover",loading:"lazy",onClick:p[0]||(p[0]=h=>e.isEntireCardLink?null:i(t(r)))},null,8,["class","src","alt"])):v("",!0),s("div",Xl,[s("p",{class:J(["text-secondary",e.isLemmenTitle?"font-or-lemmen text-4xl":"text-lg font-semibold"+(e.isEntireCardLink?"":" cursor-pointer")]),onClick:p[1]||(p[1]=h=>e.isEntireCardLink?null:i(t(r)))},w(e.contentItem.title),3),s("div",Zl,[e.dateLinePreText?(o(),a("span",ea,w(e.dateLinePreText),1)):v("",!0),s("span",null,w(t(_)),1),e.showReadTime?(o(),a("span",ta," / "+w(e.contentItem.read_time)+" min read",1)):v("",!0),e.showDomainInByline?(o(),a("span",na," / "+w(e.contentItem.domain?.name),1)):v("",!0)]),e.contentItem.abstract?(o(),S(g,{key:0,content:e.contentItem.abstract,class:"text-base my-3 line-clamp-3"},null,8,["content"])):v("",!0),e.showCategories?(o(),a("div",oa,[e.showKeyThemes&&e.contentItem.key_themes&&e.contentItem.key_themes.length>0?(o(),S(u,{key:0,class:"bg-white text-secondary"},{default:k(()=>[Y(w(e.contentItem.key_themes[0]?.key_themes_id?.name),1)]),_:1})):v("",!0),e.showContentType?(o(),S(u,{key:1,class:"bg-gray-50 text-secondary"},{default:k(()=>[Y(w(e.contentItem.content_type?.name),1)]),_:1})):v("",!0),l(u,{class:"bg-ink text-secondary"},{default:k(()=>[Y(w(e.contentItem.domain?.name),1)]),_:1}),l(m,{class:"ml-auto",article:e.contentItem,dark:e.dark,"override-url":n.overrideDefaultLink?n.navigateToPath:t(r)}
241,null,8,["article","dark","override-url"])])):v("",!0)])],2)]),_:1},8,["class","to"])}}}),Te=Object.assign(xe(sa,[["__scopeId","data-v-b0126a93"]]),{__name:"NewsItemCard"}),la=e=>K("news-reel",async()=>{const{$directus:n}=X(),i=[];e.domainId&&i.push({domain:{id:{_eq:e.domainId}}}),e.contentTypeId&&i.push({content_type:{id:{_eq:e.contentTypeId}}});const r=i.length>0?{_and:i}:{};try{return await n.query(`
242          query news_reel($filter: content_items_filter, $limit: Int, $sort: [String]) {
243            content_items(filter: $filter, limit: $limit, sort: $sort) {
244              id
245              title
246              slug
247              published_at
248              event_at
249              webinar_at
250              read_time
251              domain {
252                id
253                name
254                slug
255              }
256              content_type {
257                id
258                name
259                slug
260              }
261            }
262          }
263        `,{filter:r,limit:10,sort:["-published_at"]})}catch(_){throw console.error("Error fetching news reel data",_),_}}),aa=window.setInterval,ia={key:0,class:"flex space-x-4 py-3 border-b"},ra={class:"select-none text-secondary border-y py-3 overflow-hidden"},ca=D({__name:"NewsReelBlock",props:{autoplayDelay:{type:Number,required:!1,default:3e3},maxToShow:{type:Number,required:!1,default:5},contentItems:{type:Array,required:!1,default:null},contentTypeId:{type:String,required:!1,default:Z.NEWS},domainId:{type:String,required:!1,default:null},dateFormat:{type:String,required:!1,default:"DD MMM YYYY"},dateLinePreText:{type:String,required:!1,default:null},showContentType:{type:Boolean,required:!1,default:!0},useEventForDate:{type:Boolean,required:!1,default:!1},showReadTime:{type:Boolean,required:!1,default:!1},autoPlay:{type:Boolean,required:!1,default:!0}},setup(e){const n=e,i=H(),r=x(()=>({domainId:n.domainId,contentTypeId:n.contentTypeId})),{data:_,status:d}=la(r.value),p=x(()=>n.contentItems??_.value?.content_items??[]);let c;return Ze(()=>{if(n.autoPlay){const g=n.autoplayDelay;c=aa(()=>{if(i.value){if(i.value.page===i.value.pages)return i.value.select(0);i.value.next()}},g)}}),Pt(()=>{c&&clearInterval(c)}),(g,u)=>{const m=ee,h=et,f=$e;return t(d)=="pending"?(o(),a("div",ia,[(o(),a($,null,T(3,y=>s("div",{key:y,class:"space-y-2 w-2/3 border-r pr-4 last:border-r-0 last:pr-0"},[l(m,{class:"h-6 w-2/3"}),l(m,{class:"h-6 w-1/2"})])),64))])):t(p).length>0?(o(),a("div",{key:1,style:ot({"--max-to-show":n.maxToShow})},[s("div",ra,[l(f,{ref_key:"carousel",ref:i,class:"-mx-2",items:t(p),ui:{item:"snap-start w-full md:w-1/2 lg:w-1/3 xl:w-1/3 w-dynamic border-l px-3"}},{default:k(({item:y})=>[l(h,{"content-item":y,"show-read-time":e.showReadTime,"show-content-type":e.showContentType,"date-format":e.dateFormat,"date-line-pre-text":e.dateLinePreText,"use-event-for-date":e.useEventForDate},null,8,["content-item","show-read-time","show-content-type","date-format","date-line-pre-text","use-event-for-date"])]),_:1},8,["items"])])],4)):v("",!0)}}}),mt=Object.assign(ca,{__name:"NewsReelBlock"}),pt=Object.freeze({PUBLICATION_DATE:"PUBLICATION_DATE",ACTIVITY_DATE:"ACTIVITY_DATE"}),da=e=>{const{$directus:n}=X(),i=x(()=>`content-overview-${e.domain_id}-${e.content_type_id}-${e.sort}`),r=x(()=>ua(e)),_=x(()=>ma(e)),d=x(()=>({limit:e.limit??20,offset:t(e.offset)??0}));return K(i.value,()=>n.query(`
264          query content_overview(
265            $filter: content_items_filter
266            $sort: [String]
267            $limit: Int
268            $offset: Int
269            $has_domain: Boolean!
270            $domain_id: ID!
271            $has_content_type: Boolean!
272            $content_type_id: ID!
273          ) {
274            content_items(filter: $filter, limit: $limit, offset: $offset, sort: $sort) {
275              id
276              title
277              slug
278              availability
279              published_at
280              read_time
281              abstract
282              image
283              event_at
284              event_url
285              webinar_at
286              webinar_url
287              report_file
288              domain {
289                id
290                name
291                slug
292              }
293              content_type {
294                id
295                name
296                slug
297              }
298            }
299            domains_by_id(id: $domain_id) @include(if: $has_domain) {
300              id
301              name
302              slug
303            }
304            content_types_by_id(id: $content_type_id) @include(if: $has_content_type) {
305              id
306              name
307              slug
308            }
309          }
310        `,{filter:r.value,sort:_.value,limit:d.value.limit,offset:d.value.offset,has_domain:!!e.domain_id?.trim()?.length,domain_id:e.domain_id??"",has_content_type:!!e.content_type_id?.trim()?.length,content_type_id:e.content_type_id??""}),{watch:[d]})},ua=e=>{const n=[];e.domain_id&&n.push({domain:{id:{_eq:e.domain_id}}}),e.content_type_id&&n.push({content_type:{id:{_eq:e.content_type_id}}});const i=n.length>0?{_and:n}:{};if(e.sort===pt.ACTIVITY_DATE){const r=new Date;e.content_type_id===Z.EVENT?n.length>0?i._and?.push({event_at:{_gt:r}}):i.event_at={_gt:r}:e.content_type_id===Z.WEBINAR&&(n.length>0?i._and?.push({webinar_at:{_gt:r}}
310):i.webinar_at={_gt:r})}return i},ma=e=>{if(e.sort===pt.ACTIVITY_DATE){if(e.content_type_id===Z.EVENT)return["event_at"];if(e.content_type_id===Z.WEBINAR)return["webinar_at"]}return["-published_at"]},pa={class:"text-secondary"},_a={key:0},fa={class:"flex flex-col gap-y-4"},ga={class:"flex flex-row gap-x-4"},ya={class:"basis-[34%] space-y-8"},ha={class:"grid grid-cols-4 gap-x-4"},ba={class:"flex flex-row gap-x-2"},va={key:1,class:"flex flex-col gap-4"},xa={class:"font-or-lemmen text-3xl"},wa={key:0},ka={class:"flex flex-col flex-grow"},$a={class:"py-6 text-right"},Ca=4,Ia=D({__name:"ContentOverviewBlock",props:{contentTypeId:{type:String,required:!1,default:null},domainId:{type:String,required:!1,default:null},layout:{type:Number,required:!1,default:0},description:{type:String,required:!1,default:""},wideColumnIndex:{type:Number,required:!1,default:2},itemsPerColumn:{type:Number,required:!1,default:3},positionImage:{type:Number,required:!1,default:1},imagePositionColumn1:{type:Number,required:!0,default:0},imagePositionColumn2:{type:Number,required:!0,default:-1},imagePositionColumn3:{type:Number,required:!0,default:1},imagePositionColumn4:{type:Number,required:!0,default:1},showNewsReel:{type:Boolean,required:!1,default:!0},autoPlay:{type:Boolean,required:!1,default:!1},sort:{type:String,required:!1,default:"PUBLICATION_DATE"}},setup(e){const n=e,i=[n.imagePositionColumn1,n.imagePositionColumn2,n.imagePositionColumn3,n.imagePositionColumn4],r=oe("article"),_=n.layout===0,d=H([]),p=H([]),c=H(!0),g=H(!1),u=x(()=>{const q=i.filter(U=>U!==-1).length,j=i.filter(U=>U===-1).length;return{grid:q*(n.itemsPerColumn-1)+j*n.itemsPerColumn,list:2,newsReel:10}}),m=_?u.value.grid:u.value.list,h=H(0),{data:f,status:y}=da({domain_id:n.domainId,content_type_id:n.contentTypeId,sort:n.sort,limit:m+(n.showNewsReel?u.value.newsReel:0),offset:h}),b=x(()=>f.value?.domains_by_id),I=x(()=>f.value?.content_types_by_id),O=x(()=>{if(!b.value&&!I.value)return"More content";if(!b.value)return`More ${I.value?.name}`;if(!I.value)return`More ${b.value?.name}`;const q=I.value.name;return`${q?.endsWith("s")?q:`${q}s`} on ${b.value.name?.toLowerCase()}`}),C=x(()=>{const q=O.value.trim();return q.toLowerCase().startsWith("more ")?q:`More ${q}`}),N=x(()=>{if(!_)return[];const q=A=>{const U=Array.from({length:Ca},()=>[]),P=i.map(R=>R!==-1?n.itemsPerColumn-1:n.itemsPerColumn);return A.forEach(R=>{let G=0,Q=0;for(let te=0;te<U.length;te++){const L=P[te]??0,z=U[te]?.length??0,F=L-z;F>Q&&(Q=F,G=te)}Q>0&&U[G]&&U[G]?.push(R)}),U},j=[];for(let A=0;A<d.value.length;A+=m){const U=d.value.slice(A,A+m),P=q(U);j.push(P)}return j}),V=(q,j)=>{const A=i[q];return A===-1?!1:A===j%(n.itemsPerColumn-1)},B=async()=>{!c.value||g.value||(g.value=!0,h.value=d.value.length,await un(),g.value=!1)};return ke(()=>f.value?.content_items,q=>{if(!q?.length){c.value=!1;return}const j=q.filter(U=>U.id!==r?.value?.id);if(d.value.length===0)d.value=j.slice(0,m),n.showNewsReel&&(p.value=j.slice(m,m+u.value.newsReel));else{const U=new Set([...d.value.map(Q=>Q.id),...p.value.map(Q=>Q.id)]),P=j.filter(Q=>!U.has(Q.id)),R=[...d.value,...p.value,...P],G=d.value.length+m;d.value=R.slice(0,G),n.showNewsReel&&(p.value=R.slice(G,G+u.value.newsReel))}c.value=j.length>=m+(n.showNewsReel?u.value.newsReel:0)},{immediate:!0}),(q,j)=>{const A=ee,U=at,P=ie,R=Te,G=$e,Q=mt,te=ce;return o(),a("div",pa,[t(y)==="pending"&&t(d).length===0?(o(),a("div",_a,[s("div",fa,[l(A,{class:"h-8 w-1/4"}),l(A,{class:"h-4 w-3/5"}),s("div",ga,[s("div",ya,[l(A,{class:"h-72 w-full"}),(o(),a($,null,T(2,L=>s("div",{key:L,class:"space-y-2"},[l(A,{class:"h-8 w-3/4 mb-4"}),l(A,{class:"h-4 w-1/2"}),l(A,{class:"h-4 w-4/5"}),l(A,{class:"h-4 w-4/6"})])),64))]),(o(),a($,null,T(3,L=>s("div",{key:L,class:"basis-[22%] space-y-8"},[(o(!0),a($,null,T(L>1?3:4,z=>(o(),a("div",{key:z,class:"space-y-2"},[l(A,{class:J(["w-full mb-4",L===2&&z===3||L===3&&z===1?"h-52":"h-8"])},null,8,["class"]),l(A,{class:"h-4 w-1/2"}),l(A,{class:"h-4 w-4/5"}),L>1&&z===3?v("",!0):(o(),S(A,{key:0,class:"h-4 w-4/6"}))]))),128))])),64))]),l(U),s("div",ha,[(o(),a($,null,T(4,L=>s("div",{key:L,class:"space-y-2"},[l(A,{class:"h-8 w-full"}),s("div",ba,[(o(),a($,null,T(3,z=>l(A,{key:z,class:J(["h-4 w-full",z===1?"basis-2/4":"basis-1/4"])},null,8,["class"])),64))])])),64))]),l(U)])])):t(d).length>0?(o(),a("div",va,[s("div",null,[s("h2",xa,w(t(O)),1),e.description?(o(),S(P,{key:0,content:e.description}
310,null,8,["content"])):v("",!0)]),_?(o(),a("div",wa,[(o(!0),a($,null,T(t(N),(L,z)=>(o(),a("div",{key:z,class:J(["overflow-x-hidden pb-3",[e.showNewsReel?"":"border-b"]])},[l(G,{items:L,ui:{item:`pl-3 first:pl-0 pr-3 last:pr-0 border-l first:border-l-0 h-auto snap-start flex-1 min-w-full sm:min-w-0
311              ${n.wideColumnIndex===0?"first:flex-[1.5]":n.wideColumnIndex===1?"carousel-column-2":n.wideColumnIndex===2?"carousel-column-1 md:carousel-column-2":n.wideColumnIndex===3?"last:flex-[1.5]":""}`,container:"flex flex-nowrap right-10px"},options:{navigation:!0,scrollbar:!1}},{default:k(({item:F,index:ne})=>[s("div",ka,[(o(!0),a($,null,T(F,(ue,ye)=>(o(),S(R,{key:ue.id,"content-item":ue,"show-categories":!1,layout:0,"position-image":e.positionImage,"show-domain-in-byline":!0,"show-image":V(ne,ye),"is-full-height":!1,class:J([[ye===F.length-1?z===t(N).length-1?"grow last:border-b-0 last:mb-0":"grow":""],"border-b pb-6 mb-6"])},null,8,["content-item","position-image","show-image","class"]))),128))])]),_:2},1032,["items","ui"])],2))),128))])):(o(),a("div",{key:1,class:J(["overflow-x-hidden",[e.showNewsReel?"":"border-b"]])},[(o(!0),a($,null,T(t(d),L=>(o(),a("div",{key:L.id,class:"py-4 border-b last:border-b-0"},[l(R,{"content-item":L,"show-categories":!0,layout:1,"position-image":e.positionImage,"show-domain-in-byline":!0,"show-image":!0,"is-full-height":!1,"image-classes":"w-full mb-2 md:w-[336px]"},null,8,["content-item","position-image"])]))),128))],2)),e.showNewsReel&&t(p).length>0?(o(),S(Q,{key:2,"content-items":t(p),"domain-id":e.domainId,"content-type-id":e.contentTypeId,"show-content-type":!1,"show-read-time":!0,"auto-play":e.autoPlay,"use-event-for-date":!0,"date-format":"DD MMMM YYYY"},null,8,["content-items","domain-id","content-type-id","auto-play"])):v("",!0),s("div",$a,[l(te,{class:"bg-primary rounded-full text-sm text-secondary tracking-wide uppercase px-4 py-2",disabled:!t(c),loading:t(g),onClick:B},{default:k(()=>[Y(w(t(C)),1)]),_:1},8,["disabled","loading"])])])):v("",!0)])}}}),Sa=Object.assign(Ia,{__name:"ContentOverviewBlock"}),Ta=({filter:e,limit:n})=>{const{$directus:i}=X();return K("topics",async()=>i.query(`
312        query GetTopicsBlockQuery($filter: key_themes_pages_filter, $limit: Int) {
313          key_themes_pages(filter: $filter, limit: $limit, sort: ["-published_at"]) {
314            id
315            slug
316            title
317            image
318            abstract
319            type
320          }
321        }
322      `,{filter:e,limit:n}))},qa={class:"w-full"},Ba={key:0,class:"flex flex-col gap-y-4 py-6"},Pa={key:1},Na={class:"font-or-lemmen text-3xl text-secondary mb-6"},Aa={class:"grid grid-cols-1 gap-5 sm:grid-cols-2 md:grid-cols-3"},Ra={class:"h-52 w-full overflow-hidden"},Ea={key:1,class:"bg-parchment w-full h-full"},Ma={class:"flex flex-col gap-4"},Da={class:"text-secondary text-base font-semibold"},Oa={class:"mt-auto"},ja=D({__name:"TopicsBlock",props:{title:{type:String,required:!1,default:"Relevant Topics"},total:{type:Number,required:!1,default:9}},setup(e){const n=e,{data:i,status:r}=Ta({limit:n.total}),_=x(()=>i.value?.key_themes_pages??[]);return(d,p)=>{const c=ee,g=ge,u=ie,m=Ae,h=se;return o(),a("div",qa,[t(r)=="pending"?(o(),a("div",Ba,[l(c,{class:"h-10 w-80",ui:{rounded:"rounded-full"}}),(o(),a($,null,T(3,f=>s("div",{key:f,class:"flex flex-row gap-x-6"},[(o(),a($,null,T(3,y=>l(c,{key:y,class:"basis-1/3 w-full h-80 p-5"})),64))])),64))])):(o(),a("div",Pa,[s("p",Na,w(n.title),1),s("div",Aa,[(o(!0),a($,null,T(t(_),f=>(o(),S(h,{key:f.id,class:"flex flex-col gap-4 bg-white p-4",to:`/${f.slug}`},{default:k(()=>[s("div",Ra,[f.image?.[0]?.cdn?(o(),S(g,{key:0,src:f.image?.[0]?.cdn,alt:f.title,class:"object-contain w-full h-full",loading:"lazy"},null,8,["src","alt"])):(o(),a("div",Ea))]),s("div",Ma,[s("p",Da,w(f.title),1),f.abstract?(o(),S(u,{key:0,content:f.abstract,class:"line-clamp-3"},null,8,["content"])):v("",!0)]),s("div",Oa,[l(m,{class:"px-4 py-2 text-xs font-medium tracking-wider text-secondary bg-grey uppercase"},{default:k(()=>[Y(w(f?.type?.replace(/_/g," ")),1)]),_:2},1024)])]),_:2},1032,["to"]))),128))])]))])}}}),La=Object.assign(ja,{__name:"TopicsBlock"}),Ua=e=>{const{$directus:n}=X();return K("featured-content-items",()=>n.query(`
323        query Content_items(
324          $filterContentTypeId1: content_types_filter
325          $filter1: content_items_filter
326          $filterContentTypeId2: content_types_filter
327          $filter2: content_items_filter
328          $filterContentTypeId3: content_types_filter
329          $filter3: content_items_filter
330          $sort1: [String]
331          $sort2: [String]
332          $sort3: [String]
333        ) {
334          leftColumn: content_types(filter: $filterContentTypeId1) {
335            id
336            name
337            slug
338          }
339          left: content_items(filter: $filter1, sort: $sort1, limit: 4) {
340            id
341            title
342            slug
343            image
344            read_time
345            published_at
346            abstract
347            event_at
348            event_organizer_name
349            webinar_at
350            domain {
351              id
352              name
353              slug
354            }
355            content_type {
356              id
357              name
358              slug
359            }
360            location {
361              id
362              name
363            }
364          }
365          middleColumn: content_types(filter: $filterContentTypeId2) {
366            id
367            name
368            slug
369          }
370          middle: content_items(filter: $filter2, sort: $sort2, limit: 4) {
371            id
372            title
373            slug
374            image
375            read_time
376            published_at
377            abstract
378            event_at
379            event_organizer_name
380            webinar_at
381            domain {
382              id
383              name
384              slug
385            }
386            content_type {
387              id
388              name
389              slug
390            }
391            location {
392              id
393              name
394            }
395          }
396          rightColumn: content_types(filter: $filterContentTypeId3) {
397            id
398            name
399            slug
400          }
401          right: content_items(filter: $filter3, sort: $sort3, limit: 4) {
402            id
403            title
404            slug
405            image
406            read_time
407            published_at
408            abstract
409            event_at
410            event_organizer_name
411            webinar_at
412            domain {
413              id
414              name
415              slug
416            }
417            content_type {
418              id
419              name
420              slug
421            }
422            location {
423              id
424              name
425            }
426          }
427        }
428      `,{...e}))},Va={key:0,class:"py-4"},za={class:"mt-10 grid grid-cols-1 md:grid-cols-3 gap-6"},Ya={class:"flex gap-x-2"},Fa={class:"pt-4 space-y-2"},Ha={class:"pt-4 space-y-4"},Wa={class:"flex gap-x-2"},Ga={key:1,class:"flex-grow"},Qa={class:"h-full w-full flex flex-col gap-8"},Ka={class:"pb-5"},Ja={key:1,class:"text-right mt-5"},Xa=D({__name:"FeaturedBlock",props:{column1ContentTypeId:{},column1DomainId:{},column2ContentTypeId:{},column2DomainId:{},column3ContentTypeId:{},column3DomainId:{}},async setup(e){let n,i;const r=e,_=(y,b)=>{const I={_and:[]},O=["-published_at"];let C={};return y&&I._and?.push({content_type:{id:{_eq:y}}}),b&&I._and?.push({domain:{id:{_eq:b}}}),C={id:{_eq:y}},y===Z.EVENT?O[0]="-event_at":y===Z.WEBINAR&&(O[0]="-webinar_at"),{filter:I,sort:O,filterContentTypeId:C}},p=(()=>{const y=_(r.column1ContentTypeId,r.column1DomainId),b=_(r.column2ContentTypeId,r.column2DomainId),I=_(r.column3ContentTypeId,r.column3DomainId);return{filter1:y.filter,sort:y.sort,filterContentTypeId1:y.filterContentTypeId,filter2:b.filter,sort2:b.sort,filterContentTypeId2:b.filterContentTypeId,filter3:I.filter,sort3:I.sort,filterContentTypeId3:I.filterContentTypeId}})(),{data:c,status:g}=([n,i]=de(()=>Ua(p)),n=await n,i(),n),u=x(()=>{const y=c.value?.leftColumn?.[0]||{name:"",slug:""};return{config:{title:y.name,to:y.slug||""},articles:c.value?.left||[]}}),m=x(()=>{const y=c.value?.middleColumn?.[0]||{name:"",slug:""};return{config:{title:y.name,to:y.slug||""},articles:c.value?.middle||[]}}),h=x(()=>{const y=c.value?.rightColumn?.[0]||{name:"",slug:""};return{config:{title:y.name,to:y.slug||""},articles:c.value?.right||[]}}),f=x(()=>[{type:"left",data:u.value},{type:"middle",data:m.value},{type:"right",data:h.value}]);return(y,b)=>{const I=ee,O=Ce,C=Te,N=et,V=ce,B=$e;return o(),a("div",null,[t(g)=="pending"?(o(),a("div",Va,[l(I,{class:"h-10 w-52",ui:{rounded:"rounded-md"}}),s("div",za,[(o(),a($,null,T(3,q=>s("div",{key:q,class:"space-y-3"},[l(I,{class:"h-8 w-64"}
428),l(I,{class:"h-72 w-full"}),l(I,{class:"h-8 w-64"}),s("div",Ya,[(o(),a($,null,T(2,j=>l(I,{key:j,class:"h-4 w-1/4"})),64))]),s("div",Fa,[(o(),a($,null,T(3,j=>l(I,{key:j,class:J(["h-4",j===3?"w-1/4":"w-full"])},null,8,["class"])),64))]),s("div",Ha,[(o(),a($,null,T(3,j=>s("div",{key:j,class:"space-y-2"},[l(I,{class:"h-6 w-full"}),s("div",Wa,[l(I,{class:"h-4 w-20"}),l(I,{class:"h-4 w-20"}),l(I,{class:"h-4 w-20"}),l(I,{class:"h-4 w-20"})])])),64))])])),64))])])):(o(),a("div",Ga,[b[0]||(b[0]=s("p",{class:"text-3xl font-or-lemmen text-secondary mb-6"},"Featured",-1)),l(B,{ui:{container:"w-full",wrapper:"w-full",track:"flex flex-nowrap",item:"pl-3 first:pl-0 last:pr-0 h-auto snap-start w-full flex-shrink-0 md:w-1/2 lg:w-1/3",previous:"hidden md:flex",next:"hidden md:flex"},options:{navigation:!0,scrollbar:!1},items:t(f)},{default:k(({item:q,index:j})=>[s("div",Qa,[l(O,{title:q.data.config.title},null,8,["title"]),q.data.articles.length>0?(o(),a("div",{key:0,class:J(["flex flex-grow flex-col divide-y divide-secondary/25",{"md:pr-3 md:border-r md:border-secondary/25":j===0||j===1}])},[s("div",Ka,[l(C,{"content-item":q.data.articles[0],"image-classes":"w-full h-64 mb-2","is-full-height":!1},null,8,["content-item"])]),(o(!0),a($,null,T(q.data.articles.slice(1),(A,U)=>(o(),a("div",{key:`${q.type}-item-${U}`,class:"py-5"},[l(N,{"content-item":A},null,8,["content-item"])]))),128))],2)):v("",!0),q.data.articles.length>0?(o(),a("div",Ja,[l(V,{type:"button",class:"bg-primary rounded-full text-xs text-secondary tracking-wide uppercase px-4 py-2",to:q.data.config.to},{default:k(()=>[Y(" More on "+w(q.data.config.title),1)]),_:2},1032,["to"])])):v("",!0)])]),_:1},8,["items"])]))])}}}),Za=Object.assign(Xa,{__name:"FeaturedBlock"}),ei=()=>{const{$directus:e}=X();return K("personalised_section_cols",async()=>await e.query(`
429      query Get_user_saved_articles {
430        content_items_col_1: content_items(filter: { content_type: { name: { _eq: "News" } } }, limit: 3) {
431          id
432          title
433          domain {
434            id
435            name
436            slug
437          }
438          content_type {
439            id
440            name
441            slug
442          }
443          slug
444        }
445        content_items_col_2: content_items(filter: { content_type: { name: { _eq: "Reports" } } }, limit: 3) {
446          id
447          title
448          domain {
449            id
450            name
451            slug
452          }
453          content_type {
454            id
455            name
456            slug
457          }
458          slug
459        }
460        content_items_col_3: content_items(filter: { content_type: { name: { _eq: "Webinars" } } }, limit: 3) {
461          id
462          title
463          domain {
464            id
465            name
466            slug
467          }
468          content_type {
469            id
470            name
471            slug
472          }
473          slug
474        }
475      }
476    `))},ti={key:0,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6"},ni={class:"relative mb-6"},oi={class:"flex items-center text-sm mb-1"},si={class:"font-or-lemmen text-secondary text-3xl mb-6"},li={class:"border-b border-gray-200 pb-6"},ai={class:"flex flex-col flex-grow gap-8"},ii={key:0,class:"text-base"},ri={class:"text-right mt-4"},ci=D({__name:"PersonalSection",props:{title:{type:String,required:!1,default:"Your personal section"}},setup(e){K(()=>i.fetch(!0),"$kogoHDW2Lq");const n=Ne(),i=Tt(),{data:r,status:_}=ei(),d=x(()=>[{title:"Latest News",articles:r.value?.content_items_col_1??[]},{title:"Latest Reports",articles:r.value?.content_items_col_2??[]},{title:"Latest Webinars",articles:r.value?.content_items_col_3??[]},{title:"Your saved articles",articles:Object.values(i.bookmarks).map(p=>p.article)}]);return(p,c)=>{const g=ee,u=Ce,m=et,h=$e,f=ce;return t(_)=="pending"?(o(),a("div",ti,[(o(),a($,null,T(4,y=>s("div",{key:`column-${y}`,class:"flex flex-col"},[s("div",ni,[l(g,{class:"h-8 w-2/3 mb-2"})]),(o(),a($,null,T(3,b=>s("div",{key:`column-item-${y}-${b}`,class:"mb-8 border-b border-secondary/25 pb-4"},[l(g,{class:"h-6 w-full mb-2"}),s("div",oi,[l(g,{class:"h-4 w-24 mr-2"}),l(g,{class:"h-4 w-20 mr-2"}),l(g,{class:"h-4 w-24"})])])),64))])),64))])):(o(),a($,{key:1}
476,[s("p",si,w(e.title),1),s("div",li,[l(h,{items:t(d),ui:{container:"w-full",wrapper:"w-full",track:"flex flex-nowrap",item:"pl-3 first:pl-0 last:pr-0 h-auto snap-start w-full flex-shrink-0 md:w-1/2 lg:w-1/4",previous:"hidden md:flex",next:"hidden md:flex"}},{default:k(({item:y,index:b})=>[s("div",ai,[l(u,{title:y.title},null,8,["title"]),s("div",{class:J(["flex flex-col flex-grow divide-y divide-secondary/25",{"md:pr-3 md:border-r md:border-secondary/25":b!=t(d).length-1}])},[y.articles?.length?v("",!0):(o(),a("p",ii,"No articles found.")),(o(!0),a($,null,T(y.articles,I=>(o(),a("div",{key:I.id,class:"py-5"},[l(m,{"content-item":I},null,8,["content-item"])]))),128))],2)])]),_:1},8,["items"])]),s("div",ri,[l(f,{class:"bg-primary rounded-full text-xs text-secondary tracking-wide uppercase px-4 py-2",to:t(n)?.id?"/my-space":"/login"},{default:k(()=>c[0]||(c[0]=[Y(" Profile settings ",-1)])),_:1,__:[0]},8,["to"])])],64))}}}),di=Object.assign(ci,{__name:"PersonalSection"}),ui=D({__name:"PersonalisedNewsBlock",props:{personalSectionHeader:{type:String,default:"Your personal section",required:!1},registrationSectionHeader:{type:String,default:"Your personalized news could be here",required:!1},registrationSectionSubtitle:{type:String,default:"Stay informed with personalized news. Sign up for free to see content tailored just for you!",required:!1},registrationSectionRedirectOnSubmit:{type:String,default:"register",required:!0}},setup(e){const n=Ne();return(i,r)=>{const _=Wt,d=di;return o(),a("div",null,[t(n)?(o(),S(d,{key:1,title:e.personalSectionHeader},null,8,["title"])):(o(),S(_,{key:0,title:e.registrationSectionHeader,subtitle:e.registrationSectionSubtitle,"banner-redirect":e.registrationSectionRedirectOnSubmit},null,8,["title","subtitle","banner-redirect"]))])}}}),mi=Object.assign(ui,{__name:"PersonalisedNewsBlock"}),pi=e=>{const{$directus:n}=X(),i=()=>{const p=[{importance:{_eq:4}}],c=[],g=[];if(e.domain_id!==void 0){const u={domain:{id:{_eq:e.domain_id}}};p.push(u),c.push(u),g.push(u)}if(e.content_type_id!==void 0){const u={content_type:{id:{_eq:e.content_type_id}}};p.push(u),c.push(u),g.push(u)}if(e.published_after!==void 0){const u={published_at:{_gt:e.published_after}};c.push(u)}return{where_content_items:{_and:p},where_most_read:c.length>0?{_and:c}:{},where_latest_content_items:g.length>0?{_and:g}:{}}},{where_content_items:r,where_most_read:_,where_latest_content_items:d}=i();return K(`top-stories-${e.domain_id}-${e.content_type_id}`,async()=>await n.query(`
477          query top_stories(
478            $where_content_items: content_items_filter
479            $where_most_read: content_items_filter
480            $where_latest_content_items: content_items_filter
481          ) {
482            content_items(filter: $where_content_items, limit: 3, sort: ["-published_at"]) {
483              ...TopStoriesFragment
484            }
485            most_read: content_items(
486              filter: $where_most_read
487              limit: 5
488              sort: ["-read_count_adjusted", "-read_count"]
489            ) {
490              ...TopStoriesFragment
491            }
492            latest: content_items(filter: $where_latest_content_items, limit: 5, sort: ["-published_at"]) {
493              ...TopStoriesFragment
494            }
495          }
496          fragment TopStoriesFragment on content_items {
497            id
498            title
499            slug
500            published_at
501            read_time
502            abstract
503            image
504            domain {
505              id
506              name
507              slug
508            }
509            content_type {
510              id
511              name
512              slug
513            }
514          }
515        `,{where_content_items:r,where_most_read:_,where_latest_content_items:d}))},Ge=Object.freeze({HOME:"home",DOMAIN:"domain",CONTENT_TYPE:"content_type"}),_i={key:0,class:"space-y-4 pt-6 lg:pb-5 pb-5"},fi={class:"px-3 grid grid-cols-4 gap-x-4"},gi={class:"flex flex-row gap-x-3"},yi={class:"space-y-2 pt-2"},hi={class:"w-full space-y-6"},bi={class:"flex flex-row gap-x-3"},vi={key:1,class:"text-secondary lg:pb-5 pb-5 border-b"},xi={class:"font-or-lemmen text-3xl text-secondary mb-6"},wi={class:"grid grid-cols-1 lg:grid-cols-3 xl:grid-cols-4 items-stretch"},ki={class:"bg-white h-full p-3"},vt=4,$i=7,Ci=D({__name:"TopStoriesBlock",props:{relatedContent:{type:String,required:!0},contentTypeId:{type:String,required:!0},domainId:{type:String,required:!0}},async setup(e){let n,i;const r=oe("article"),_=e,d=()=>{const f=new Date;return f.setDate(f.getDate()-$i),f.toISOString()},{data:p,status:c}=([n,i]=de(()=>pi({domain_id:_.domainId,content_type_id:_.contentTypeId,published_after:d()})),n=await n,i(),n),g=x(()=>{const f="Top Stories";return r?.value.type===Ge.CONTENT_TYPE?`Top ${r.value.title}`:r?.value.type===Ge.DOMAIN?`${f} on ${r.value.title}`:f}),u=x(()=>p.value?.content_items||[]),m=x(()=>u.value.find(y=>y.image!=null)?p.value?.most_read:p.value?.most_read.slice(0,3)??[]),h=x(()=>u.value.find(y=>y.image!=null)?p.value?.latest:p.value?.latest.slice(0,3)??[]);return(f,y)=>{const b=ee,I=at,O=Te,C=ze;return t(c)=="pending"?(o(),a("div",_i,[l(b,{class:"h-10 w-60",ui:{rounded:"rounded-md"}}),s("div",fi,[(o(),a($,null,T(3,N=>s("div",{key:N,class:"bg-white w-full h-[440px] p-3 space-y-3"},[l(b,{class:"h-3/6 w-full"}),l(b,{class:"h-8 w-52"}),s("div",gi,[(o(),a($,null,T(2,V=>l(b,{key:V,class:"h-4 w-20"})),64))]),s("div",yi,[(o(),a($,null,T(4,V=>l(b,{key:V,class:"h-4 w-full"})),64)),l(b,{class:"h-4 w-1/4"})])])),64)),s("div",hi,[l(b,{class:"h-10 w-60",ui:{rounded:"rounded-md"}}),(o(),a($,null,T(4,N=>s("div",{key:N,class:"space-y-3"},[l(b,{class:"h-6 w-full",ui:{rounded:"rounded-md"}}),s("div",bi,[(o(),a($,null,T(3,V=>l(b,{key:V,class:"h-4 w-20",ui:{rounded:"rounded-md"}})),64))]),l(I)])),64))])])])):t(u).length>2?(o(),a("div",vi,[s("h2",xi,w(t(g)),1),s("div",wi,[(o(!0),a($,null,T(t(u),N=>(o(),a("div",{key:N.id,class:"item mx-3 lg:mx-0 lg:px-3 lg:border-l pr-0 lg:pr-3 pt-3 lg:pt-0 mt-3 lg:mt-0 border-t lg:border-t-0"},[s("div",ki,[l(O,{"content-item":N,"position-image":0,layout:3},null,8,["content-item"])])]))),128)),e.relatedContent==="most_read"&&t(m)?.length?(o(),S(C,{key:0,title:"Most read "+(t(r).type===t(Ge).CONTENT_TYPE?`${t(m)?.[0]?.content_type?.name}`:`${t(m)?.[0]?.content_type?.name} on ${t(m)?.[0]?.domain?.name}`),"content-items":t(m),"show-content-type":!0,"show-domain":!1,"number-of-articles":vt,class:"item ml-3 lg:ml-0 lg:pl-3 mt-5 lg:mt-0 border-t lg:border-t-0 pt-5 lg:pt-0 lg:border-l col-span-1"},null,8,["title","content-items"])):["latest","selected_for_you"].includes(e.relatedContent)&&t(h)?.length?(o(),S(C,{key:1,title:"The latest "+(t(r).type===t(Ge).CONTENT_TYPE?`${t(h)?.[0]?.content_type?.name}`:`${t(h)?.[0]?.content_type?.name} in ${t(h)?.[0]?.domain?.name}`),"content-items":t(h),"show-content-type":!0,"show-domain":!1,"number-of-articles":vt,class:"item ml-3 lg:ml-0 lg:pl-3 mt-5 lg:mt-0 border-t lg:border-t-0 pt-5 lg:pt-0 lg:border-l col-span-1"},null,8,["title","content-items"])):v("",!0)])])):v("",!0)}}}),Ii=Object.assign(xe(Ci,[["__scopeId","data-v-7668293a"]]),{__name:"TopStoriesBlock"}),Si=e=>{const{$directus:n}=X(),i=()=>{const g={domain:{id:{_eq:e.domain_id1}}},u={content_type:{id:{_eq:e.content_type_id1}}},m={domain:{id:{_eq:e.domain_id2}}},h={content_type:{id:{_eq:e.content_type_id2}}},f={domain:{id:{_eq:e.domain_id3}}},y={content_type:{id:{_eq:e.content_type_id3}}},b=[{importance:{_eq:4}}];b.push(g),b.push(u);const I=[{importance:{_eq:4}}];I.push(m),I.push(h);const O=[{importance:{_eq:4}}];O.push(f),O.push(y);const C=[];C.push({_and:[g,u]}
515),C.push({_and:[m,h]}),C.push({_and:[f,y]});const N=[];return N.push({_and:[g,u]}),N.push({_and:[m,h]}),N.push({_and:[f,y]}),e.published_after!==void 0&&C.push({published_at:{_gt:e.published_after}}),{where_item_1:{_and:b},where_item_2:{_and:I},where_item_3:{_and:O},where_most_read:C.length>0?{_or:C}:{},where_latest_content_items:N.length>0?{_or:N}:{}}},{where_item_1:r,where_item_2:_,where_item_3:d,where_most_read:p,where_latest_content_items:c}=i();return K(`top-highlights-${e.domain_id1}-${e.domain_id2}-${e.domain_id3}-${e.content_type_id1}-${e.content_type_id2}-${e.content_type_id3}`,async()=>{const g=await n.query(`
516          query top_highlights(
517            $where_item_1: content_items_filter
518            $where_item_2: content_items_filter
519            $where_item_3: content_items_filter
520            $where_most_read: content_items_filter
521            $where_latest_content_items: content_items_filter
522          ) {
523            item_1: content_items(filter: $where_item_1, limit: 1, sort: ["-published_at"]) {
524              ...TopHighlightsFragment
525            }
526            item_2: content_items(filter: $where_item_2, limit: 1, sort: ["-published_at"]) {
527              ...TopHighlightsFragment
528            }
529            item_3: content_items(filter: $where_item_3, limit: 1, sort: ["-published_at"]) {
530              ...TopHighlightsFragment
531            }
532            most_read: content_items(
533              filter: $where_most_read
534              limit: 5
535              sort: ["-read_count_adjusted", "-read_count"]
536            ) {
537              ...TopHighlightsFragment
538            }
539            latest: content_items(filter: $where_latest_content_items, limit: 5, sort: ["-published_at"]) {
540              ...TopHighlightsFragment
541            }
542          }
543          fragment TopHighlightsFragment on content_items {
544            id
545            title
546            slug
547            published_at
548            read_time
549            abstract
550            image
551            domain {
552              id
553              name
554              slug
555            }
556            content_type {
557              id
558              name
559              slug
560            }
561          }
562        `,{where_item_1:r,where_item_2:_,where_item_3:d,where_most_read:p,where_latest_content_items:c});return{content_items:[...g.item_1??[],...g.item_2??[],...g.item_3??[]],most_read:g.most_read,latest:g.latest}})},Ti={key:0,class:"space-y-4 pt-6 lg:pb-5 pb-5"},qi={class:"px-3 grid grid-cols-4 gap-x-4"},Bi={class:"flex flex-row gap-x-3"},Pi={class:"space-y-2 pt-2"},Ni={class:"w-full space-y-6"},Ai={class:"flex flex-row gap-x-3"},Ri={key:1,class:"text-secondary lg:pb-5 pb-5 border-b"},Ei={class:"font-or-lemmen text-3xl text-secondary mb-6"},Mi={class:"grid grid-cols-1 lg:grid-cols-3 xl:grid-cols-4 items-stretch"},Di={class:"bg-white h-full p-3"},xt=4,Oi=7,ji=D({__name:"TopHighlightsBlock",props:{relatedContent:{type:String,required:!0},contentTypeId1:{type:String,required:!0},domainId1:{type:String,required:!0},contentTypeId2:{type:String,required:!0},domainId2:{type:String,required:!0},contentTypeId3:{type:String,required:!0},domainId3:{type:String,required:!0}},async setup(e){let n,i;oe("article");const r=e,_=()=>{const h=new Date;return h.setDate(h.getDate()-Oi),h.toISOString()},{data:d,status:p}=([n,i]=de(()=>Si({domain_id1:r.domainId1,content_type_id1:r.contentTypeId1,domain_id2:r.domainId2,content_type_id2:r.contentTypeId2,domain_id3:r.domainId3,content_type_id3:r.contentTypeId3,published_after:_()})),n=await n,i(),n),c=x(()=>"Top Highlights"),g=x(()=>d.value?.content_items||[]),u=x(()=>g.value.some(f=>f.image!=null)?d.value?.most_read??[]:d.value?.most_read.slice(0,3)??[]),m=x(()=>g.value.some(f=>f.image!=null)?d.value?.latest??[]:d.value?.latest.slice(0,3)??[]);return(h,f)=>{const y=ee,b=at,I=Te,O=ze;return t(p)=="pending"?(o(),a("div",Ti,[l(y,{class:"h-10 w-60",ui:{rounded:"rounded-md"}}),s("div",qi,[(o(),a($,null,T(3,C=>s("div",{key:C,class:"bg-white w-full h-[440px] p-3 space-y-3"},[l(y,{class:"h-3/6 w-full"}),l(y,{class:"h-8 w-52"}),s("div",Bi,[(o(),a($,null,T(2,N=>l(y,{key:N,class:"h-4 w-20"})),64))]),s("div",Pi,[(o(),a($,null,T(4,N=>l(y,{key:N,class:"h-4 w-full"})),64)),l(y,{class:"h-4 w-1/4"})])])),64)),s("div",Ni,[l(y,{class:"h-10 w-60",ui:{rounded:"rounded-md"}}),(o(),a($,null,T(4,C=>s("div",{key:C,class:"space-y-3"},[l(y,{class:"h-6 w-full",ui:{rounded:"rounded-md"}}),s("div",Ai,[(o(),a($,null,T(3,N=>l(y,{key:N,class:"h-4 w-20",ui:{rounded:"rounded-md"}})),64))]),l(b)])),64))])])])):t(g).length>2?(o(),a("div",Ri,[s("h2",Ei,w(t(c)),1),s("div",Mi,[(o(!0),a($,null,T(t(g),C=>(o(),a("div",{key:C.id,class:"item mx-3 lg:mx-0 lg:px-3 lg:border-l pr-0 lg:pr-3 pt-3 lg:pt-0 mt-3 lg:mt-0 border-t lg:border-t-0"},[s("div",Di,[l(I,{"content-item":C,"position-image":0,layout:3},null,8,["content-item"])])]))),128)),e.relatedContent==="most_read"&&t(u)?.length?(o(),S(O,{key:0,title:"Most read highlights","content-items":t(u),"show-content-type":!0,"show-domain":!1,"number-of-articles":xt,class:"item ml-3 lg:ml-0 lg:pl-3 mt-5 lg:mt-0 border-t lg:border-t-0 pt-5 lg:pt-0 lg:border-l col-span-1"},null,8,["content-items"])):["latest","selected_for_you"].includes(e.relatedContent)&&t(m)?.length?(o(),S(O,{key:1,title:"The latest highlights","content-items":t(m),"show-content-type":!0,"show-domain":!1,"number-of-articles":xt,class:"item ml-3 lg:ml-0 lg:pl-3 mt-5 lg:mt-0 border-t lg:border-t-0 pt-5 lg:pt-0 lg:border-l col-span-1"},null,8,["content-items"])):v("",!0)])])):v("",!0)}}}),Li=Object.assign(xe(ji,[["__scopeId","data-v-dfd1d52d"]]),{__name:"TopHighlightsBlock"}),Ui={key:0,class:"flex flex-col gap-y-4 py-5 text-secondary sm:px-10 md:px-20 xl:px-32 2xl:px-64"},Vi={key:1,class:"text-secondary"},zi={class:"mt-3 rounded bg-peach p-5"},Yi={class:"font-bold"}
562,Fi={key:2,class:"py-5 text-secondary sm:px-10 md:px-20 xl:px-32 2xl:px-64"},Hi={class:"mt-3 rounded bg-peach p-5"},Wi={class:"font-bold"},Gi={class:"font-bold"},Qi=D({__name:"ContentItemAboutSubBlock",setup(e){const n=oe("article"),i=H(!0),r=x(()=>(n?.value?.company?.length??0)>0),_=x(()=>(n?.value?.person?.length??0)>0);return ke(()=>n?.value,d=>{d&&(i.value=!1)},{immediate:!0}),(d,p)=>{const c=ee,g=Ce;return o(),a($,null,[t(i)?(o(),a("div",Ui,[l(c,{class:"h-10 w-80",ui:{rounded:"rounded-md"}}),(o(),a($,null,T(3,u=>s("div",{key:u,class:J(["space-y-2",{"mt-8":u>1}])},[l(c,{class:"h-6 w-52"}),l(c,{class:"h-4 w-3/5"}),l(c,{class:"h-4 w-1/2"})],2)),64))])):v("",!0),!t(i)&&t(n)?.content_type?.id==t(Z).NEWS&&t(r)?(o(),a("div",Vi,[l(g,{title:`About the ${t(n)?.company?.length===1?"company":"companies"}`},null,8,["title"]),s("div",zi,[(o(!0),a($,null,T(t(n)?.company,u=>(o(),a("div",{key:u?.companies_id?.id,class:"mb-6 last:mb-0"},[s("h6",Yi,w(u?.companies_id?.name),1),s("p",null,w(u?.companies_id?.short_description),1)]))),128))])])):!t(i)&&t(n)?.content_type?.id!=t(Z).NEWS&&(t(r)||t(_))?(o(),a("div",Fi,[l(g,{title:"About"}),s("div",Hi,[t(_)?(o(!0),a($,{key:0},T(t(n)?.person,u=>(o(),a("div",{key:u?.people_id?.id,class:"mb-6 last:mb-0"},[s("h6",Wi,w(u?.people_id?.first_name)+" "+w(u?.people_id?.last_name),1),s("p",null,w(u?.people_id?.short_description),1)]))),128)):v("",!0),t(r)?(o(!0),a($,{key:1},T(t(n)?.company,u=>(o(),a("div",{key:u?.companies_id?.id,class:"mb-6 last:mb-0"},[s("h6",Gi,w(u?.companies_id?.name),1),s("p",null,w(u?.companies_id?.short_description),1)]))),128)):v("",!0)])])):v("",!0)],64)}}}),Ki=Object.assign(Qi,{__name:"ContentItemAboutSubBlock"}),be=Object.freeze({AUTHOR:"author",PRESENTER:"presenter",EMPTY:"empty"}),Ji={class:"text-secondary"},Xi={key:0,class:"flex flex-row items-center gap-4"},Zi={class:"flex flex-col justify-between"},er={class:"text-base font-semibold"},tr={class:"text-xs uppercase tracking-wider"},nr=["title"],or={class:"flex flex-row items-center gap-4"},sr={type:"button",title:"share article"},lr=D({__name:"ContentItemAuthorSubBlock",props:{location:{type:String,default:"header"},presenter:{type:Object,default:null},copyLinkLabel:{type:String,default:"Copy Link"},linkedInLabel:{type:String,default:"Share on LinkedIn"},xTwitterLabel:{type:String,default:"Share on X"},facebookLabel:{type:String,default:"Share on Facebook"},emailLabel:{type:String,default:"Share Via Email"},type:{type:String,default:"author"},shareConsent:{type:String,default:void 0},displayRssCopyButton:{type:Boolean,default:!1}},setup(e){const n=e,i=oe("article"),r=H(!1),_=()=>n.type===be.PRESENTER&&n.presenter?.person?n.presenter.person:i?.value.author,d=x(()=>{const f=_();return`${f?.first_name??""} ${f?.last_name??""}`.trim()}),p=x(()=>_()?.image?.[0]?.cdn??null),c=x(()=>{if(n.type===be.PRESENTER)return`${n.presenter?.role}`;const f=i?.value?.published_at?ae(i?.value?.published_at).format("DD MMM YYYY"):"";return n.location==="header"?`${f} / ${i?.value?.read_time} Min Read`:"More from the Editor"}),g=f=>{r.value=f},u=()=>{const y=`${Vt().origin}/rss/${i?.value?.domain?.slug}`;navigator.clipboard.writeText(y).then(()=>{g(!0)}).catch(b=>console.error("Failed to copy RSS URL: ",b))},m=x(()=>n.type===be.AUTHOR||n.type===be.EMPTY),h=x(()=>n.type===be.PRESENTER);return(f,y)=>{const b=wn,I=Ot,O=Gt,C=Et,N=se,V=Tn;return o(),a("div",Ji,[s("div",{id:"div-wrapper",class:J(["flex flex-col md:flex-row justify-between gap-4 py-3",n.type!=t(be).PRESENTER?"border-y":"border-b"])},[n.type!==t(be).EMPTY?(o(),a("div",Xi,[l(b,{src:t(p),alt:t(d)||"author",ui:{rounded:"rounded object-cover"},size:"xl"},null,8,["src","alt"]),s("div",Zi,[s("p",er,w(t(d)),1),s("p",tr,w(t(c)),1)])])):v("",!0),t(i)?(o(),a("div",{key:1,class:J(["flex flex-row gap-x-4 items-center justify-between md:justify-normal",{"basis-full justify-between":n.type===t(be).EMPTY}])},[t(m)?(o(),S(I,{key:0,article:t(i),"share-consent":n.shareConsent},null,8,["article","share-consent"])):v("",!0),n.displayRssCopyButton?(o(),a("button",{key:1,type:"button",title:`RSS Feed for ${t(i).domain?.name}`,onClick:me(u,["prevent"])}
562,[l(t(Pn),{class:"stroke-main","stroke-width":"1.5"})],8,nr)):v("",!0),s("div",or,[l(O,{link:e.copyLinkLabel,linkedin:e.linkedInLabel,twitter:e.xTwitterLabel,facebook:e.facebookLabel,email:e.emailLabel,onCopyLink:y[0]||(y[0]=B=>g(!0))},{default:k(()=>[s("button",sr,[l(t(Ft),{class:"stroke-main","stroke-width":"1.5"})])]),_:1},8,["link","linkedin","twitter","facebook","email"]),t(i)&&t(m)?(o(),S(C,{key:0,collection:t(i).__typename,"article-id":t(i).id},null,8,["collection","article-id"])):v("",!0),t(h)?(o(),a($,{key:1},[e.presenter?.person?.website?(o(),S(N,{key:0,to:e.presenter.person.website,class:"text-primary",target:"_blank",external:""},{default:k(()=>[l(t(Yt),{"stroke-width":"1.5"})]),_:1},8,["to"])):v("",!0),e.presenter?.person?.linkedin?(o(),S(N,{key:1,to:e.presenter.person.linkedin,class:"text-primary",target:"_blank",external:""},{default:k(()=>[l(t(ct),{"stroke-width":"1.5"})]),_:1},8,["to"])):v("",!0)],64)):v("",!0)])],2)):v("",!0)],2),l(V,{title:"Copied","main-text":"The link has been copied to your clipboard.",show:t(r),onVisible:g},null,8,["show"])])}}}),Jt=Object.assign(lr,{__name:"ContentItemAuthorSubBlock"}),ar={key:0,class:"flex flex-col gap-y-4"},ir={class:"bg-peach text-secondary rounded p-6"},rr={class:"flex"},cr={key:0},dr={class:"flex"},ur={class:"flex"},mr={class:"flex"},pr=D({__name:"ContentItemReportSpecSubBlock",setup(e){const n=Ue(oe("article")),i=x(()=>n?.value?.report_published_at||n?.value?.report_total_pages||n?.value?.report_file_type||n?.value?.report_size),r=x(()=>ae.tz(n?.value?.report_published_at,"Europe/Bucharest").local().format("D MMMM YYYY"));return(_,d)=>{const p=Ce;return t(i)?(o(),a("div",ar,[l(p,{title:"Specifications"}),s("dl",ir,[s("div",rr,[d[0]||(d[0]=s("dt",{class:"w-32"},"Published",-1)),t(n)?.report_published_at?(o(),a("dd",cr,w(t(r)),1)):v("",!0)]),s("div",dr,[d[1]||(d[1]=s("dt",{class:"w-32"},"Pages",-1)),s("dd",null,w(t(n)?.report_total_pages),1)]),s("div",ur,[d[2]||(d[2]=s("dt",{class:"w-32"},"File type",-1)),s("dd",null,w(t(n)?.report_file_type),1)]),s("div",mr,[d[3]||(d[3]=s("dt",{class:"w-32"},"Size",-1)),s("dd",null,w(t(n)?.report_size),1)])])])):v("",!0)}}}),_r=Object.assign(pr,{__name:"ContentItemReportSpecSubBlock"}),fr={class:"flex flex-col gap-y-4"},gr={key:0,class:"flex flex-row items-center gap-4"},yr={class:"flex flex-wrap gap-2"},hr={key:1,class:"flex flex-row items-center gap-4"},br={class:"flex flex-wrap gap-2"},vr={key:2,class:"flex flex-row items-center gap-4"},xr={class:"flex flex-wrap gap-2"},wr=D({__name:"ContentItemTagsSubBlock",setup(e){const n=oe("article"),i=ve("search:query"),r=x(()=>n?.value.keywords??[]),_=x(()=>n?.value.company??[]),d=x(()=>n?.value.country??[]),p=g=>{i.value==null&&(i.value={}),i.value.countries=g.id},c=g=>{i.value==null&&(i.value={}),i.value.companies=g.id};return(g,u)=>{const m=se;return o(),a("div",fr,[t(r).length?(o(),a("div",gr,[u[0]||(u[0]=s("span",{class:"text-secondary/75 uppercase text-sm font-medium tracking-wider min-w-24"},"Keywords:",-1)),s("div",yr,[(o(!0),a($,null,T(t(r),h=>(o(),S(m,{key:h,to:`/search-on/${encodeURIComponent(h)}`,class:"bg-gray-50 text-secondary px-4 py-2 rounded-full text-xs font-medium tracking-wider uppercase"},{default:k(()=>[Y(w(h),1)]),_:2},1032,["to"]))),128))])])):v("",!0),t(_).length?(o(),a("div",hr,[u[1]||(u[1]=s("span",{class:"text-secondary/75 uppercase text-sm font-medium tracking-wider min-w-24"},"Companies:",-1)),s("div",br,[(o(!0),a($,null,T(t(_),h=>(o(),S(m,{key:h?.companies_id?.id,class:"bg-gray-50 text-secondary px-4 py-2 rounded-full text-xs font-medium tracking-wider uppercase",to:"/search-on",onClick:f=>c(h.companies_id)},{default:k(()=>[Y(w(h?.companies_id?.name),1)]),_:2},1032,["onClick"]))),128))])])):v("",!0),t(d).length?(o(),a("div",vr,[u[2]||(u[2]=s("span",{class:"text-secondary/75 uppercase text-sm font-medium tracking-wider min-w-24"},"Countries:",-1)),s("div",xr,[(o(!0),a($,null,T(t(d),h=>(o(),S(m,{key:h?.countries_id?.id,class:"bg-gray-50 text-secondary px-4 py-2 rounded-full text-xs font-medium tracking-wider uppercase",to:"/search-on",onClick:f=>p(h.countries_id)},{default:k(()=>[Y(w(h?.countries_id?.name),1)]),_:2},1032,["onClick"]))),128))])])):v("",!0)])}}}),kr=Object.assign(wr,{__name:"ContentItemTagsSubBlock"}),$r={class:"flex flex-row gap-x-2 pb-6"},Cr={class:"flex flex-row"},Ir={class:"font-or-lemmen text-secondary font-semibold leading-tight text-3xl md:text-5xl"},Sr={key:0,class:"text-sm font-bold text-secondary/75 mt-4"},Tr=D({__name:"ContentItemTitleSubBlock",setup(e){const n=oe("article"),i=x(()=>n?.value?.content_type?.id),r=x(()=>i.value===Z.REPORT||i.value===Z.WEBINAR),_=x(()=>
562{if(!n?.value)return null;if(i.value===Z.REPORT&&n.value.published_at)return`Published: ${ae(n.value.published_at).format("MMMM DD, YYYY")}`;if(i.value===Z.WEBINAR&&n.value.webinar_at){const d=ae.tz(n.value.webinar_at,"Europe/Bucharest"),p=d.tz("America/Los_Angeles"),c=d.tz("America/New_York"),g=d.tz("Europe/Amsterdam"),u=p.format("YYYY-MM-DD"),m=c.format("YYYY-MM-DD"),h=g.format("YYYY-MM-DD"),f=p.format("hh:mm A")+" PDT",y=c.format("hh:mm A")+" EDT",b=g.format("hh:mm A")+" CET";if(u===m&&m===h)return`${d.local().isAfter()?"Takes place":"Organized"} on ${g.format("DD MMM YYYY")} ${f} / ${y} / ${b}`;if(u===m)return`${d.local().isAfter()?"Takes place":"Organized"} on ${p.format("DD MMM YYYY")} ${f} / ${y} | ${g.format("DD MMM YYYY")} ${b}`;if(m===h)return`${d.local().isAfter()?"Takes place":"Organized"} on ${p.format("DD MMM YYYY")} ${f} | ${g.format("DD MMM YYYY")} ${y} / ${b}`}return""});return(d,p)=>{const c=Ae,g=se;return o(),a("div",null,[s("div",$r,[t(n)?.collectionName==="key_themes_pages"?(o(),S(c,{key:0,variant:"solid",class:"px-4 py-2 text-xs font-medium tracking-wider text-secondary bg-grey uppercase"},{default:k(()=>[Y(w(t(n)?.type?.replace(/_/g," ")),1)]),_:1})):v("",!0),t(n)?.collectionName==="content_items"?(o(),S(g,{key:1,to:`/${t(n)?.content_type?.slug}`},{default:k(()=>[l(c,{variant:"solid",class:"px-4 py-2 text-xs font-medium tracking-wider text-secondary bg-grey uppercase"},{default:k(()=>[Y(w(t(n)?.content_type?.name),1)]),_:1})]),_:1},8,["to"])):v("",!0),t(n)?.collectionName==="content_items"?(o(),S(g,{key:2,to:`/${t(n)?.domain?.slug}`},{default:k(()=>[l(c,{variant:"solid",class:"px-4 py-2 text-xs font-medium tracking-wider text-secondary bg-ink uppercase"},{default:k(()=>[Y(w(t(n)?.domain?.name),1)]),_:1})]),_:1},8,["to"])):v("",!0)]),s("div",Cr,[s("h1",Ir,w(t(n)?.title),1)]),t(r)&&t(_)?(o(),a("h3",Sr,w(t(_)),1)):v("",!0)])}}}),qr=Object.assign(Tr,{__name:"ContentItemTitleSubBlock"}),Br={class:"flex flex-col gap-8"},Pr={key:0,class:"flex flex-col gap-4"},Nr={class:"bg-peach rounded p-5"},Ar={key:1,class:"flex flex-col"},Rr=D({__name:"ContentItemWebinarAgendaSubBlock",setup(e){const n=oe("article");return(i,r)=>{const _=Ce,d=ie,p=Jt;return o(),a("div",Br,[t(n)?.webinar_agenda?(o(),a("div",Pr,[l(_,{title:"Agenda"}),s("div",Nr,[l(d,{content:t(n).webinar_agenda},null,8,["content"])])])):v("",!0),t(n)?.presenters?.length?(o(),a("div",Ar,[l(_,{title:"Presenters",class:"mb-1"}),(o(!0),a($,null,T(t(n).presenters,(c,g)=>(o(),a("div",{key:c?.person?.id??g,class:"flex flex-row"},[c?(o(),S(p,{key:0,type:t(be).PRESENTER,presenter:c,class:"w-full"},null,8,["type","presenter"])):v("",!0)]))),128))])):v("",!0)])}}}),Er=Object.assign(Rr,{__name:"ContentItemWebinarAgendaSubBlock"}),Mr={key:0,class:"h-45 w-full md:w-96 flex-shrink-0 self-center"},Dr={class:"flex flex-col justify-between flex-grow gap-4"},Or={class:"flex flex-col gap-2"},jr={class:"text-xl font-bold leading-none"},Lr={class:"uppercase text-xs font-medium tracking-widest"},Ur={key:1,class:"flex flex-col gap-1"},Vr={class:"text-secondary"},zr={class:"text-secondary"},Yr={class:"flex flex-wrap gap-2 mt-auto"},Fr=`
563  fragment ArticleListItemFragment on content_items {
564    __typename
565    id
566    slug
567    title
568    image
569    abstract
570    read_time
571    published_at
572    event_at
573    event_organizer_name
574    webinar_at
575    webinar_url
576    report_file
577    location {
578      name
579    }
580    content_type {
581      id
582      name
583      slug
584    }
585    domain {
586      id
587      name
588      slug
589    }
590  }
591`,Hr=D({__name:"ArticleListItem",props:{article:{type:Object,required:!0}},setup(e){const n=e,i=x(()=>pe(n.article)),r=x(()=>n.article.image?.[0]?.cdn),_=x(()=>{switch(n.article.content_type?.id){case Z.WEBINAR:return`takes place on ${ae.tz(n.article.webinar_at,"Europe/Bucharest").local().format("DD MMM YYYY")} / ${n.article.domain?.name}`;case Z.EVENT:return`organized on ${ae.tz(n.article.event_at,"Europe/Bucharest").local().format("DD MMM YYYY")} / ${n.article.domain?.name}`;default:return`${ae(n.article.published_at).format("DD MMM YYYY")} / ${n.article.read_time} min read / ${n.article.domain?.name}`}});return(d,p)=>{const c=ge,g=ie,u=Ae,m=se;return o(),S(m,{class:"flex flex-col gap-y-3 md:flex-row md:gap-x-6",to:t(i)},{default:k(()=>[t(r)?(o(),a("div",Mr,[l(c,{src:t(r),class:"object-contain w-full",alt:n.article.title??"article image",loading:"lazy"},null,8,["src","alt"])])):v("",!0),s("div",Dr,[s("div",Or,[s("div",null,[s("p",jr,w(n.article.title),
5911),s("small",Lr,w(t(_)),1)]),n.article.abstract?(o(),S(g,{key:0,content:n.article.abstract,class:"font-normal block"},null,8,["content"])):v("",!0),e.article.content_type?.id==t(Z).EVENT?(o(),a("div",Ur,[s("div",null,[p[0]||(p[0]=s("span",{class:"text-secondary font-medium inline-block w-24"},"Organizer",-1)),s("span",Vr,w(e.article.event_organizer_name),1)]),s("div",null,[p[1]||(p[1]=s("span",{class:"text-secondary font-medium inline-block w-24"},"Location",-1)),s("span",zr,w(e.article.location?.name),1)])])):v("",!0)]),s("div",Yr,[n.article.content_type?(o(),S(u,{key:0,class:"bg-grey text-secondary font-medium tracking-widest uppercase rounded-full text-[10px] py-2 px-4"},{default:k(()=>[Y(w(n.article.content_type.name),1)]),_:1})):v("",!0),n.article.domain?(o(),S(u,{key:1,class:"bg-ink text-secondary font-medium tracking-widest uppercase rounded-full text-[10px] py-2 px-4"},{default:k(()=>[Y(w(n.article.domain.name),1)]),_:1})):v("",!0)])])]),_:1},8,["to"])}}}),Xt=Object.assign(Hr,{__name:"ArticleListItem"}),Wr=e=>{const n=`more-on-filters-${e}`;return K(n,async()=>{const{$directus:i}=X();if(e!=="content_types"&&e!=="domains")throw new Error("Invalid collection type");return await i.query(`
592        query GetFilters {
593        filters: ${e} {
594        name
595        }
596        }
597      `)},{transform:i=>i})},Gr=(e,n)=>{const i=`more-on-contents-${n.value}`;return K(i,async()=>{const{$directus:r}=X();return n.value?await r.query(`
598          query GetMoreOnContent($filter: content_items_filter) {
599            content_items(filter: $filter, sort: ["-published_at"], limit: 6) {
600              ...ArticleListItemFragment
601            }
602          }
603          ${Fr}
604        `,{filter:e.value}):{content_items:[]}},{watch:[e,n]})},Qr={key:0,class:"w-full text-secondary"},Kr={class:"font-or-lemmen text-3xl mb-5"},Jr={class:"flex flex-wrap gap-2 mb-6"},Xr={key:0,class:"py-6 border-b"},Zr={class:"flex flex-col justify-between h-full"},ec={class:"font-bold mb-3"},tc={class:"date uppercase text-[10px] font-medium tracking-widest mt-auto"},nc={key:1,class:"w-full"},oc={class:"flex flex-col md:flex-row gap-4"},sc={class:"w-full md:w-1/4 lg:w-1/5"},lc={class:"w-full md:w-3/4 lg:w-4/5"},ac={class:"flex gap-2 mt-4"},ic={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 lg:gap-6"},rc=D({__name:"MoreOnBlock",setup(e){const n={HOME:"home",DOMAIN:"domain"},i=oe("article"),r=H(null),_=x(()=>c.value?.filters?.map(b=>b.name)||[]),d=x(()=>i?.value?.type?[n.HOME,n.DOMAIN].includes(i.value.type)?"content_types":"domains":"content_types"),p=x(()=>{const b={_and:[]};if(!i?.value?.type||!r.value)return b._and.push({content_type:{name:{_eq:r.value}}}),i?.value.domain?.id&&b._and.push({domain:{id:{_eq:i.value.domain.id}}}),b;if(i.value.type===n.HOME)b._and.push({content_type:{name:{_eq:r.value}}});else{const I=[n.HOME,n.DOMAIN].includes(i.value.type)?"content_type":"domain";b._and.push({[I]:{name:{_eq:r.value}}})}return b}),{data:c}=Wr(d.value),{data:g,status:u}=Gr(p,r),m=x(()=>g.value?.content_items??[]),h=x(()=>m.value.slice(0,2)),f=x(()=>m.value.slice(2,6)),y=x(()=>i?.value?.domain?.name?`on ${i.value.domain?.name}`:i?.value.type==="home"?"":i?.value.type==="domain"?`on ${i.value.title}`:i?.value.type==="content_type"?i.value.title:"");return mn(()=>{r.value==null&&_.value?.[0]&&(r.value=_.value[0])}),(b,I)=>{const O=ce,C=Xt,N=se,V=$e,B=ee;return t(i)?(o(),a("div",Qr,[s("h2",Kr,"More "+w(t(y)),1),s("div",Jr,[(o(!0),a($,null,T(t(_),q=>(o(),S(O,{key:q,variant:t(r)===q?"solid":"outline",ui:{rounded:"rounded-full",color:{gray:{solid:"bg-black/50 ring-0 !text-muted hover:bg-black/50"}},variant:{outline:"ring-1 hover:bg-black/50 hover:!text-muted hover:ring-0"}},class:"uppercase text-xs px-3 sm:px-4 tracking-widest",color:"gray",onClick:j=>r.value=q},{default:k(()=>[Y(w(q),1)]),_:2},1032,["variant","onClick"]))),128))]),t(u)==="success"?(o(),a($,{key:0},[(o(!0),a($,null,T(t(h),q=>(o(),a("div",{key:q.id,class:"border-b py-6"},[l(C,{article:q},null,8,["article"])]))),128)),t(f).length>0?(o(),a("div",Xr,[l(V,{items:t(f),ui:{item:"first:border-l-0 border-l w-80 sm:w-72 md:w-56 lg:w-80 xl:w-96 2xl:w-1/4 snap-start"}},{default:k(({item:q})=>[l(N,{class:"px-4",to:("prepareContentItemSlug"in b?b.prepareContentItemSlug:t(pe))(q)},{default:k(()=>[s("div",Zr,[s("p",ec,w(q.title),1),s("span",tc," Organized on "+w(t(ae)(q.published_at).format("DD MMM YYYY"))+" / "+w(q.domain?.name),1)])]),_:2},1032,["to"])]),_:1},8,["items"])])):v("",!0)],64)):t(u)==="pending"?(o(),a("div",nc,[(o(),a($,null,T(2,q=>s("div",{key:q,class:"border-b py-6 mb-6"},[s("div",oc,[s("div",sc,[l(B,{class:"h-44 w-full"})]),s("div",lc,[l(B,{class:"h-7 w-3/4 mb-2"}),l(B,{class:"h-4 w-1/3 mb-3"}),l(B,{class:"h-4 w-full mb-2"}),l(B,{class:"h-4 w-5/6 mb-4"}),s("div",ac,[l(B,{class:"h-6 w-16 rounded-full"}),l(B,{class:"h-6 w-16 rounded-full"})])])])])),64)),s("div",ic,[(o(),a($,null,T(4,q=>s("div",{key:q,class:"border-r-0 lg:border-r pr-0 lg:pr-4"},[l(B,{class:"h-5 w-11/12 mb-2"}),l(B,{class:"h-3 w-2/3 mb-4"})])),64))])])):v("",!0)])):v("",!0)}}}),cc=Object.assign(rc,{__name:"MoreOnBlock"}),dc=e=>{const{$directus:n}=X();return K(`related-content-item-${e.contentItem1}-${e.contentItem2}-${e.contentItem3}`,()=>n.query(`
605        query GetRelatedContent($content_items: [ID!], $banner: ID, $include_banner: Boolean!) {
606          content_items(filter: { id: { _in: $content_items } }) {
607            id
608            slug
609            title
610            image
611            abstract
612            read_time
613            published_at
614            event_at
615            webinar_at
616            webinar_url
617            report_file
618            content_type {
619              id
620              name
621              slug
622            }
623            domain {
624              id
625              name
626              slug
627            }
628            key_themes {
629              key_themes_id {
630                name
631              }
632            }
633          }
634          banner_block(filter: { id: { _eq: $banner } }) @include(if: $include_banner) {
635            banner1_position
636            banner2_position
637            banner3_position
638          }
639        }
640      `,{content_items:[e.contentItem1,e.contentItem2,e.contentItem3].filter(
640Boolean),banner:e.banner,include_banner:e.banner!=null}))},uc={class:"bg-foreground/5 rounded p-4"},mc={key:0,class:"flex gap-6"},pc={class:"w-1/3 shrink-0"},_c={class:"flex-1"},fc={class:"flex items-center gap-2 mb-2"},gc={key:0,class:"flex flex-col xl:flex-row gap-x-8"},yc=D({__name:"RelatedContentSmallContentItem",props:{contentItem1:{type:String,required:!0},contentItem2:{type:String,required:!1,default:void 0},contentItem3:{type:String,required:!1,default:void 0},banner:{type:String,required:!1,default:void 0}},setup(e){const n=e,{data:i,status:r}=dc({contentItem1:n.contentItem1,contentItem2:n.contentItem2,contentItem3:n.contentItem3,banner:n.banner}),_=x(()=>i.value?.content_items??[]);return(d,p)=>{const c=ee,g=ze,u=kn,m=Te;return o(),a("div",uc,[t(r)=="pending"?(o(),a("div",mc,[s("div",pc,[l(c,{class:"w-full aspect-[4/3]"})]),s("div",_c,[s("div",fc,[l(c,{class:"h-4 w-24"}),l(c,{class:"h-1 w-1 rounded-full"}),l(c,{class:"h-4 w-20"}),l(c,{class:"h-1 w-1 rounded-full"}),l(c,{class:"h-4 w-24"})]),l(c,{class:"h-6 w-full mb-2"}),l(c,{class:"h-6 w-2/3"})])])):v("",!0),t(r)=="success"?(o(),a($,{key:1},[p[0]||(p[0]=s("p",{class:"text-2xl text-secondary font-or-lemmen mb-4"},"Related content",-1)),t(_).length>1?(o(),a("div",gc,[l(g,{"content-items":t(_),"show-content-type":!1,"show-domain":!0,class:"flex flex-col justify-around"},null,8,["content-items"]),t(i)?.banner_block.length?(o(),S(u,{key:0,class:"xl:flex-row justify-center","banner1-position-id":t(i).banner_block?.[0]?.banner1_position?.key,"banner2-position-id":t(i).banner_block?.[0]?.banner2_position?.key,"banner3-position-id":t(i).banner_block?.[0]?.banner3_position?.key},null,8,["banner1-position-id","banner2-position-id","banner3-position-id"])):v("",!0)])):t(_).length==1?(o(),S(m,{key:1,"content-item":t(_)[0],"show-categories":!0,layout:1,"position-image":0,"show-domain-in-byline":!1,"show-image":!0,"show-content-type":!0,"show-key-themes":!0,"is-full-height":!0,"show-read-time":!0,"is-entire-card-link":!0,"image-classes":"min-[769px]:w-[336px]"},null,8,["content-item"])):v("",!0)],64)):v("",!0)])}}}),hc=Object.assign(yc,{__name:"RelatedContentSmallContentItem"}),bc=Object.freeze({CRITICAL_IMPORTANCE:5,SIGNIFICANT_IMPORTANCE:4,MODERATE_IMPORTANCE:3}),vc=Object.freeze({most_read:{text:"Most Read",value:"most_read"},latest:{text:"The Latest",value:"latest"},selected_for_you:{text:"Selected For You",value:"selected_for_you"}}),xc=Object.freeze({most_read:"most_read",latest:"latest",selected_for_you:"selected_for_you"}),wc=e=>{const{$directus:n}=X(),i={importance:{_eq:bc.SIGNIFICANT_IMPORTANCE}};$t(e.column1.contentTypeId,i),kt(e.column1.domainId,i),Ct(e.keyThemeId,i),It(e.topicId,i);const r={};$t(e.column2?.contentTypeId,r),kt(e.column2?.domainId,r),Ct(e.keyThemeId,r),It(e.topicId,r);const _=wt(e.column1),d=wt(e.column2),p=`get_related_content_${e.column1.contentTypeId}_${e.column1.domainId}_${e.column2?.contentTypeId}_${e.column2?.domainId}_${e.keyThemeId}_${e.topicId}`;return K(p,()=>n.query(`
641        query Get_content_items(
642          $filter: content_items_filter
643          $filter2: content_items_filter
644          $sort: [String]
645          $sort2: [String]
646          $include_query: Boolean!
647        ) {
648          column1_content_items: content_items(filter: $filter, limit: 5, sort: $sort) {
649            id
650            title
651            slug
652            published_at
653            read_time
654            abstract
655            image
656            domain {
657              id
658              name
659              slug
660            }
661            content_type {
662              id
663              name
664              slug
665            }
666            key_themes {
667              id
668              key_themes_id {
669                id
670              }
671            }
672            topics {
673              id
674              topics_id {
675                id
676              }
677            }
678          }
679          column2_content_items: content_items(filter: $filter2, limit: 5, sort: $sort2) @include(if: $include_query) {
680            id
681            title
682            slug
683            published_at
684            read_time
685            read_count_adjusted
686            domain {
687              id
688              name
689              slug
690            }
691            content_type {
692              id
693              name
694              slug
695            }
696            key_themes {
697              id
698              key_themes_id {
699                id
700              }
701            }
702            topics {
703              id
704              topics_id {
705                id
706              }
707            }
708          }
709        }
710      `,{filter:i,filter2:r,sort:_,sort2:d,include_query:e.column2!=null}),"$hRytr9vEB3")};function wt(e){return e?.relatedContent===xc.most_read?["-read_count_adjusted","-read_count"]:["-published_at"]}const kt=(e,n)=>{e&&e.trim().length>0&&(n.domain={id:{_eq:e}})},$t=(e,n)=>{e&&e.trim().length>0&&(n.content_type={id:{_eq:e}})},Ct=(e,n)=>{e&&e.trim().length>0&&(n.key_themes={_some:{key_themes_id:{id:{_eq:e}}}})},It=(e,n)=>{e&&e.trim().length>0&&(n.topics={_some:{topics_id:{id:{_eq:e}}}})},kc={class:"border-b border-secondary/20"},$c={class:"w-full lg:odd:pr-3 lg:even:pl-3"},Cc=D({__name:"RelatedContentWideBlock",props:{column1DomainId:{type:String,required:!1,default:null},column1ContentTypeId:{type:String,required:!1,default:null},column1RelatedContent:{type:String,required:!1,default:null},column2DomainId:{type:String,required:!1,default:null},column2ContentTypeId:{type:String,required:!1,default:null},column2RelatedContent:{type:String,required:!1,default:null}},async setup(e){let n,i;const r=e,_=m=>{if(!m)return"";const h=vc[m];return h?h.text:""},d=Ue(oe("article")),p=Kt(d.value,d.value.collectionName),{data:c}=([n,i]=de(()=>wc({column1:{contentTypeId:r.column1ContentTypeId,domainId:r.column1DomainId},column2:r.column2DomainId&&r.column2DomainId.trim().length>0?{contentTypeId:r.column2ContentTypeId,domainId:r.column2DomainId}:void 0,keyThemeId:p=="key_themes"?d.value?.key_theme?.id:void 0,topicId:p=="topics"?d.value?.topic?.id:void 0})),n=await n,i(),n),g=(m,h)=>{const f=_(m.relatedContent);let y="";return!m.domainId&&!m.contentTypeId?y=f:m.domainId&&m.contentTypeId?y=`${f} ${h.content_type?.name} on ${h.domain?.name}`:m.domainId?m.contentTypeId||(y=`${f} ${h?.domain?.name}`):y=`${f} ${h?.content_type?.name}`,y},u=x(()=>{const m=[],h=c.value?.column1_content_items;if(h?.length){const y=g({domainId:r.column1DomainId,contentTypeId:r.column1ContentTypeId,relatedContent:r.column1RelatedContent},h[0]);m.push({title:y,data:h})}const f=c?.value?.column2_content_items;if(f?.length){const y=g({domainId:r.column2DomainId,contentTypeId:r.column2ContentTypeId,relatedContent:r.column2RelatedContent},f[0]);m.push({title:y,data:f})}return m});return(m,h)=>{const f=ze,y=$e;return o(),a("div",kc,[l(y,{items:t(u),ui:{container:"w-full",wrapper:"w-full",track:"flex",item:"w-full lg:w-1/2 flex-shrink-0 px-2",previous:"hidden lg:flex",next:"hidden lg:flex"}},{default:k(({item:b})=>[s("div",$c,[l(f,{title:b.title,"content-items":b.data,"show-content-type":!1,"show-domain":!0,class:"flex flex-col justify-around w-full"},null,8,["title","content-items"])])]),_:1},8,["items"])])}}}),Ic=Object.assign(Cc,{__name:"RelatedContentWideBlock"}),Sc={"aria-label":"Breadcrumb"},Tc={class:"list-none"},qc={key:1,class:"text-sm text-secondary leading-none tracking-wide uppercase cursor-default","aria-current":"page"},Bc={key:2,class:"text-sm mx-2 text-secondary"},Pc=D({__name:"BreadcrumbBlock",props:{filters:{type:Array,required:!1,default:[]}},setup(e){const n=st();Xe().public.appBase;const r=oe("article"),_=x(()=>{const d=[{label:"Home",to:"/",isClickable:!0}];if(n.path==="/"||!r?.value)return d;const{collectionName:p,title:c,slug:g}=r.value,u=c??"Untitled",m=g??"";switch(p){case"content_items":{const{domain:h,content_type:f}=r.value;h?.name&&h?.slug&&f?.name&&f?.slug&&d.push({label:h.name,to:`/${h.slug}`,isClickable:!0},{label:f.name,to:`/${f.slug}`,isClickable:!0},{label:u,to:m,isClickable:!1});break}case"overview_pages":case"key_themes_pages":case"pages":{d.push({label:u,to:m,isClickable:!1});break}}return d});return $n(!1,_.value),(d,p)=>{const c=se;return o(),a("nav",Sc,[s("ol",Tc,[(o(!0),a($,null,T(t(_),(g,u)=>(o(),a("li",{key:u,class:"inline"},[g.isClickable?(o(),S(c,{key:0,to:g.to,class:"text-sm text-secondary leading-none tracking-wide uppercase underline-offset-8 hover:underline hover:text-primary"},{default:k(()=>[Y(w(g.label),1)]),_:2},1032,["to"])):(o(),a("span",qc,w(g.label),1)),u!==t(_).length-1?(o(),a("span",Bc,"/")):v("",!0)]))),128))])])}}}),Nc=Object.assign(Pc,{__name:"BreadcrumbBlock"}),Ac={class:"absolute bottom-0 left-0 right-0 p-12"},Rc={class:"flex flex-col gap-4 w-full lg:w-1/2"},Ec={class:"text-4xl font-bold font-or-lemmen text-white"},Mc={key:0,class:"flex flex-row flex-wrap gap-4"},Dc=D({__name:"HeroBlock",props:{image:{type:Object,required:!1,default:null},title:{type:String,required:!1,default:""},description:{type:String,required:!1,default:""},primaryButtonText:{type:String,required:!1,default:""},primaryButtonLink:{type:String,required:!1,default:"/"},secondaryButtonText:{type:String,required:!1,default:""},secondaryButtonLink:{type:String,required:!1,default:"/"},secondaryButtonColor:{type:String,required:!1,default:"#e3bb61"}},setup(e){return(n,i)=>{const r=ie,_=ce;return o(),a("div",{class:"relative bg-cover bg-center h-[500px] w-full rounded-md",style:ot(`background-image: url('${e.image[0].cdn}')`)},[i[0]||(i[0]=s("div",{class:"absolute inset-0 bg-black bg-opacity-50 rounded-md"}
710,null,-1)),s("div",Ac,[s("div",Rc,[s("p",Ec,w(e.title),1),l(r,{content:e.description,font:"font-sans",class:"text-base hidden md:block text-white"},null,8,["content"]),e.primaryButtonLink&&e.primaryButtonText||e.secondaryButtonLink&&e.secondaryButtonText?(o(),a("div",Mc,[e.primaryButtonLink&&e.primaryButtonText?(o(),S(_,{key:0,class:"uppercase px-6 text-sm tracking-wider font-medium",ui:{rounded:"rounded-full",variant:{solid:"text-secondary"}},variant:"solid",size:"lg",color:"primary",to:e.primaryButtonLink},{default:k(()=>[Y(w(e.primaryButtonText),1)]),_:1},8,["to"])):v("",!0),e.secondaryButtonLink&&e.secondaryButtonText?(o(),S(_,{key:1,class:"uppercase px-6 text-sm tracking-wider font-medium",ui:{rounded:"rounded-full",variant:{solid:"text-secondary"}},variant:"solid",size:"lg",style:ot({backgroundColor:e.secondaryButtonColor}),to:e.secondaryButtonLink},{default:k(()=>[Y(w(e.secondaryButtonText),1)]),_:1},8,["style","to"])):v("",!0)])):v("",!0)])])],4)}}}),Oc=Object.assign(Dc,{__name:"HeroBlock"}),jc=e=>{const{$directus:n}=X(),i=`main-content-block-${e.content1}-${e.content1}`;return K(i,()=>n.query(`
711        query Content_items($left: ID!, $right: ID!) {
712          left: content_items_by_id(id: $left) {
713            ...MainContentBlockContentItem
714          }
715          right: content_items_by_id(id: $right) {
716            ...MainContentBlockContentItem
717          }
718        }
719        fragment MainContentBlockContentItem on content_items {
720          id
721          slug
722          title
723          image
724          abstract
725          read_time
726          report_file
727          event_at
728          event_url
729          webinar_at
730          webinar_url
731          published_at
732          availability
733          content_type {
734            id
735            name
736            slug
737          }
738          domain {
739            id
740            name
741            slug
742          }
743          questionnaire_id {
744            id
745            questions {
746              id
747              text
748            }
749          }
750        }
751      `,{left:e.content1,right:e.content2}),"$rNKGfGYSdb")},Lc={key:0,class:"space-y-3"},Uc={class:"flex flex-row gap-3"},Vc={class:"basis-4/6 bg-white rounded-md"},zc={class:"flex flex-row p-3 gap-x-3"},Yc={class:"w-2/6"},Fc={class:"flex flex-col h-96 justify-between"},Hc={class:"space-y-3"},Wc={class:"flex flex-row gap-x-2"},Gc={class:"pt-5 space-y-2"},Qc={class:"flex flex-row gap-x-2"},Kc={class:"basis-2/6 bg-white rounded-md content-center justify-items-center"},Jc={class:"flex flex-row gap-3"},Xc={class:"basis-2/6 bg-white rounded-md content-center justify-items-center"},Zc={class:"basis-4/6 bg-white rounded-md"},ed={class:"flex flex-row p-3 gap-x-3"},td={class:"w-2/6"},nd={class:"flex flex-col h-96 justify-between"},od={class:"space-y-3"},sd={class:"flex flex-row gap-x-2"},ld={class:"pt-5 space-y-2"},ad={class:"flex flex-row gap-x-2"},id={key:1,class:"space-y-3"},rd={class:"space-y-3 2xl:space-y-0 2xl:flex 2xl:flex-row 2xl:gap-x-3"},cd={class:"2xl:hidden"},dd={class:"hidden 2xl:block h-full"},ud={key:0,class:"2xl:w-2/6 flex items-center justify-center bg-parchment"},md={key:0,class:"space-y-3 2xl:space-y-0 2xl:flex 2xl:flex-row-reverse 2xl:gap-x-3"},pd={class:"2xl:hidden"},_d={class:"hidden 2xl:block h-full"},fd={key:0,class:"2xl:w-2/6 flex items-center justify-center bg-parchment"},gd=D({__name:"MainContentBlock",props:{content1:{type:String,required:!0},banner1:{type:String,required:!0},content2:{type:String,required:!1,default:null},banner2:{type:String,required:!1,default:null}},async setup(e){let n,i;const r=e,{data:_,status:d}=([n,i]=de(()=>jc({content1:r.content1,content2:r.content2==null?r.content1:r.content2})),n=await n,i(),n),p=x(()=>_.value?.left),c=x(()=>_.value?.right.id===_.value?.left.id?null:_.value?.right);return(g,u)=>{const m=ee,h=Te,f=Ve;return o(),a("div",null,[t(d)==="pending"?(o(),a("div",Lc,[s("div",Uc,[s("div",Vc,[s("div",zc,[l(m,{class:"h-96 w-4/6",ui:{rounded:"rounded-md"}}),s("div",Yc,[s("div",Fc,[s("div",Hc,[l(m,{class:"h-10 w-full",ui:{rounded:"rounded-md"}}),s("div",Wc,[(o(),a($,null,T(2,y=>l(m,{key:y,class:"h-4 w-1/4",ui:{rounded:"rounded-md"}})),64))]),s("div",Gc,[(o(),a($,null,T(4,y=>l(m,{key:y,class:"h-4 w-full",ui:{rounded:"rounded-md"}})),64)),l(m,{class:"h-4 w-1/4",ui:{rounded:"rounded-md"}})])]),s("div",Qc,[(o(),a($,null,T(2,y=>l(m,{key:y,class:"h-7 w-1/3",ui:{rounded:"rounded-full"}})),64))])])])])]),s("div",Kc,[l(m,{class:"h-[280px] w-[336px]",ui:{rounded:"rounded-md"}})])]),s("div",Jc,[s("div",Xc,[l(m,{class:"h-[280px] w-[336px]",ui:{rounded:"rounded-md"}})]),s("div",Zc,[s("div",ed,[l(m,{class:"h-96 w-4/6",ui:{rounded:"rounded-md"}}),s("div",td,[s("div",nd,[s("div",od,[l(m,{class:"h-10 w-full",ui:{rounded:"rounded-md"}}),s("div",sd,[(o(),a($,null,T(2,y=>l(m,{key:y,class:"h-4 w-1/4",ui:{rounded:"rounded-md"}})),64))]),s("div",ld,[(o(),a($,null,T(4,y=>l(m,{key:y,class:"h-4 w-full",ui:{rounded:"rounded-md"}})),64)),l(m,{class:"h-4 w-1/4",ui:{rounded:"rounded-md"}})])]),s("div",ad,[(o(),a($,null,T(2,y=>l(m,{key:y,class:"h-7 w-1/3",ui:{rounded:"rounded-full"}})),64))])])])])])])])):t(p)?(o(),a("div",id,[s("div",rd,[s("div",{class:J(["bg-main rounded p-3",e.banner1?"2xl:w-4/6":""])}
751,[s("div",cd,[l(h,{"override-default-link":"","image-classes":"max-h-96","navigate-to-path":("prepareContentItemSlug"in g?g.prepareContentItemSlug:t(pe))(t(p)),"content-item":t(p),"use-horizontal-default-size":!1,"use-default-image-dimension":!1,"is-lemmen-title":!0,dark:!0},null,8,["navigate-to-path","content-item"])]),s("div",dd,[l(h,{"override-default-link":"","image-classes":"w-2/5 max-h-96","navigate-to-path":("prepareContentItemSlug"in g?g.prepareContentItemSlug:t(pe))(t(p)),"content-item":t(p),"is-full-height":!0,"use-horizontal-default-size":!1,"use-default-image-dimension":!0,layout:1,"position-image":0,"is-lemmen-title":!0,dark:!0},null,8,["navigate-to-path","content-item"])])],2),e.banner1?(o(),a("div",ud,[l(f,{"banner-block-id":e.banner1},null,8,["banner-block-id"])])):v("",!0)]),t(c)?(o(),a("div",md,[s("div",{class:J(["bg-main p-3",e.banner2?"2xl:w-4/6":""])},[s("div",pd,[l(h,{"override-default-link":"","navigate-to-path":("prepareContentItemSlug"in g?g.prepareContentItemSlug:t(pe))(t(c)),"is-full-height":!1,"content-item":t(c),"use-horizontal-default-size":!1,"use-default-image-dimension":!1,"is-lemmen-title":!0,dark:!0},null,8,["navigate-to-path","content-item"])]),s("div",_d,[l(h,{"override-default-link":"","image-classes":"w-2/5 max-h-96","navigate-to-path":("prepareContentItemSlug"in g?g.prepareContentItemSlug:t(pe))(t(c)),"content-item":t(c),"is-full-height":!1,"use-horizontal-default-size":!1,"use-default-image-dimension":!0,layout:1,"position-image":0,"is-lemmen-title":!0,dark:!0},null,8,["navigate-to-path","content-item"])])],2),e.banner2?(o(),a("div",fd,[l(f,{"banner-block-id":e.banner2},null,8,["banner-block-id"])])):v("",!0)])):v("",!0)])):v("",!0)])}}}),yd=Object.assign(gd,{__name:"MainContentBlock"}),hd={class:"flex flex-col gap-y-4"},bd={class:"flex flex-row items-center gap-x-4"},vd={class:"basis-full lg:basis-2/3"},xd={class:"flex flex-col gap-4 w-full"},wd={class:"text-4xl font-or-lemmen font-bold text-secondary"},kd={class:"text-xl text-secondary font-bold"},$d={key:0,class:"hidden lg:flex lg:items-center lg:basis-1/3"},Cd=D({__name:"SeoBlock",props:{title:{type:String,required:!1,default:null},subtitle:{type:String,required:!1,default:null},description:{type:String,required:!1,default:null},image:{type:Object,required:!0}},setup(e){const n=pn("firstVisit"),i=()=>{n.value=!n.value};return(r,_)=>{const d=ie,p=ge;return o(),a("div",hd,[s("div",bd,[s("div",vd,[s("div",xd,[s("h1",wd,w(e.title),1),s("p",kd,w(e.subtitle),1),t(n)?(o(),S(d,{key:0,content:e.description,class:"text-secondary"},null,8,["content"])):v("",!0)])]),t(n)?(o(),a("div",$d,[l(p,{src:e.image[0].cdn,class:"object-contain max-h-96 ml-auto"},null,8,["src"])])):v("",!0)]),s("button",{class:"text-xs text-secondary uppercase tracking-widest ml-auto",type:"button",onClick:me(i,["prevent"])},w(t(n)?"show less":"read more"),1)])}}}),Id=Object.assign(Cd,{__name:"SeoBlock"}),Sd=D({__name:"LeaderboardBlock",props:{bannerBlockId:{type:String,required:!0,default:null},isBillboard:{type:Boolean,required:!0,default:!1},billboardBlockId:{type:String,required:!1,default:null}},setup(e){return(n,i)=>{const r=Ve;return o(),S(r,{class:"w-full bg-parchmen overflow-hidden","banner-block-id":e.bannerBlockId,"is-billboard":e.isBillboard,"billboard-block-id":e.billboardBlockId},null,8,["banner-block-id","is-billboard","billboard-block-id"])}}}),Td=Object.assign(Sd,{__name:"LeaderboardBlock"}),qd={class:"flex flex-col gap-5 bg-accent text-secondary p-4"},Bd={class:"font-bold text-xl"},Pd={class:"flex flex-col min-w-[300px]"},Nd=["src","alt"],Ad={class:"py-2 font-bold text-base sm:text-sm md:text-base"},Rd={key:1,class:"bg-grey rounded-b"},Ed={class:"px-5 sm:px-3 md:px-5 py-2"},Md={class:"flex flex-row"},Dd=D({__name:"NewsletterBlock",props:{title:{type:String,required:!0,default:"Stay informed with tailored financial news"},newsletterTypeId1:{type:Number,required:!1,default:null},newsletterTypeId2:{type:Number,required:!1,default:null},newsletterTypeId3:{type:Number,required:!1,default:null},newsletterTypeId4:{type:Number,required:!1,default:null}},async setup(e){let n,i;const r=e,_=Ne(),{token:d}=_n(),p=H(),{data:c}=([n,i]=de(async()=>K("newsletters",async()=>{const h=[r.newsletterTypeId1,r.newsletterTypeId2,r.newsletterTypeId3,r.newsletterTypeId4].filter(y=>y!=null);return(await $fetch("/api/newsletter-types",{method:"GET",headers:{authorization:`Bearer ${d.value}`}})).filter(y=>h.includes(y.id??0)).sort((y,b)=>h.indexOf(y.id??0)-h.indexOf(b.id??0))},{deep:!0})),n=await n,i(),n),g=async h=>{if(!_.value?.id)return;const f=await Je().execute("recaptcha_newsletter_subscribe");
751await $fetch("/api/newsletter-types/subscribe",{method:"POST",headers:{authorization:`Bearer ${d.value}`},body:{recaptchaToken:f,id:h.id}})},u=async h=>{if(!_.value?.id)return;const f=await Je().execute("recaptcha_newsletter_unsubscribe");await $fetch("/api/newsletter-types/unsubscribe",{method:"POST",headers:{authorization:`Bearer ${d.value}`},body:{recaptchaToken:f,id:h.id}})},m=async h=>{p.value=void 0;try{h.subscribed?await g(h):await u(h)}catch(f){f instanceof je&&f.status===403?(console.error("failed to verify reCAPTCHA token for newsletter subscription change",f),p.value=f.data?.message??"Verification failed. Please refresh the page and try again later."):console.error(f)}finally{h.subscribed=!h.subscribed}};return(h,f)=>{const y=At,b=jt,I=Rt,O=$e;return o(),a("div",qd,[s("p",Bd,w(r.title),1),l(O,{items:t(c)??[],ui:{container:"flex flex-row gap-5"}},{default:k(({item:C})=>[s("div",Pd,[l(y,{ui:{rounded:"",ring:"ring-0",shadow:"shadow-none",base:"text-secondary w-full h-auto",body:{padding:"px-5 pt-5 sm:px-3 sm:pt-3 sm:pb-0 md:px-5 md:pt-5 md:pb-0"}},class:"rounded-t sm:min-h-40 lg:min-h-56"},{default:k(()=>[C.thumbnail?.trim()?.length?(o(),a("img",{key:0,src:C.thumbnail,alt:C.name,class:"w-full object-contain"},null,8,Nd)):v("",!0),s("h6",Ad,w(C.name),1)]),_:2},1024),t(p)?(o(),S(b,{key:0,color:"red",variant:"subtle",description:t(p)},null,8,["description"])):v("",!0),t(_)?(o(),a("div",Rd,[s("div",Ed,[s("div",Md,[l(I,{modelValue:C.subscribed,"onUpdate:modelValue":N=>C.subscribed=N,name:"subscribe",label:C.subscribed?"Unsubscribe":"Subscribe",ui:{base:"cursor-pointer",label:"cursor-pointer uppercase tracking-widest text-sm sm:text-[12px] md:text-sm font-medium"},onChange:N=>m(C)},null,8,["modelValue","onUpdate:modelValue","label","onChange"])])])])):v("",!0)])]),_:1},8,["items"])])}}}),Od=Object.assign(Dd,{__name:"NewsletterBlock"}),jd={class:"min-h-screen"},Ld={class:"text-2xl md:text-3xl font-bold text-secondary font-or-lemmen"},Ud={class:"flex flex-col gap-12"},Vd={class:"grid md:grid-cols-2 gap-6 items-start"},zd={class:"space-y-4"},Yd={class:"space-y-4"},Fd={class:"grid md:grid-cols-2 gap-6"},Hd={class:"flex flex-col gap-4 bg-white rounded-lg p-6"},Wd={class:"flex flex-col gap-4 bg-white rounded-lg p-6"},Gd={class:"grid md:grid-cols-2 gap-6"},Qd={class:"flex flex-col gap-4 bg-white rounded-lg p-6"},Kd={class:"flex flex-col gap-4 bg-white rounded-lg p-6"},Jd=D({__name:"WelcomeBlock",props:{title:{type:String,required:!1,default:"Hi there, welcome to your personal space"},description:{type:String,required:!1,default:null},benefits:{type:String,required:!1,default:null},feedDescription:{type:String,required:!1,default:null},contentDescription:{type:String,required:!1,default:null},newsletterDescription:{type:String,required:!1,default:null},profileDescription:{type:String,required:!1,default:null}},setup(e){const n=e,i=Ne(),r=ve("register:article"),_=x(()=>n.title.replace("[name]",`${i.value?.first_name} ${i.value?.last_name}`));return(d,p)=>{const c=ie,g=lt,u=ce;return o(),a("div",jd,[s("h1",Ld,w(t(_)),1),s("main",Ud,[s("section",null,[s("div",Vd,[s("div",zd,[l(c,{content:e.description},null,8,["content"])]),s("div",Yd,[l(c,{content:e.benefits},null,8,["content"])])])]),t(r)?(o(),S(g,{key:0,article:t(r)},null,8,["article"])):v("",!0),s("section",Fd,[s("div",Hd,[p[1]||(p[1]=s("p",{class:"text-xl font-or-lemmen font-bold text-secondary"},"My Feed",-1)),l(c,{content:e.feedDescription},null,8,["content"]),l(u,{class:"bg-primary rounded-full w-fit text-xs text-secondary tracking-wide uppercase px-4 py-2",to:"/my-space"},{default:k(()=>p[0]||(p[0]=[Y(" View Feed ",-1)])),_:1,__:[0]})]),s("div",Wd,[p[3]||(p[3]=s("p",{class:"text-xl font-or-lemmen font-bold text-secondary"},"My Content",-1)),l(c,{content:e.contentDescription},null,8,["content"]),l(u,{class:"bg-primary rounded-full w-fit text-xs text-secondary tracking-wide uppercase px-4 py-2",to:"/my-space/my-content"},{default:k(()=>p[2]||(p[2]=[Y(" View Content ",-1)])),_:1,__:[2]})])]),s("section",Gd,[s("div",Qd,[p[5]||(p[5]=s("p",{class:"text-xl font-or-lemmen font-bold text-secondary"},"My Newsletters",-1)),l(c,{content:e.newsletterDescription},null,8,["content"]),l(u,{class:"bg-primary rounded-full w-fit text-xs text-secondary tracking-wide uppercase px-4 py-2",to:"/my-space/my-newsletters"},{default:k(()=>p[4]||(p[4]=[Y(" View Newsleters ",-1)])),_:1,__:[4]})]),s("div",Kd,[p[7]||(p[7]=s("p",{class:"text-xl font-or-lemmen font-bold text-secondary"},"My Profile",-1)),l(c,{content:e.profileDescription},null,8,["content"]),l(u,{class:"bg-primary rounded-full w-fit text-xs text-secondary tracking-wide uppercase px-4 py-2",to:"/my-space/my-profile"},{default:k(()=>p[6]||(p[6]=[Y(" View Profile ",-1)])),_:1,__:[6]})])])])])}}}),Xd=Object.assign(Jd,{__name:"WelcomeBlock"});function Zd(){const{$directus:e}=X();return K("search-on-filter-data",()=>e.query(`
752      query filters {
753        domains(sort: ["name"], limit: 250) {
754          id
755          name
756          slug
757        }
758        key_themes(sort: ["name"], limit: 250) {
759          id
760          name
761        }
762        topics(sort: ["name"], limit: 250) {
763          id
764          name
765        }
766        content_types(sort: ["name"], limit: 250) {
767          id
768          name
769          slug
770        }
771        types_of_news(sort: ["name"], limit: 250) {
772          id
773          name
774        }
775        companies(sort: ["name"], limit: 500) {
776          id
777          name
778        }
779        people(sort: ["first_name", "last_name"], limit: 250) {
780          id
781          first_name
782          last_name
783        }
784        countries(sort: ["name"], limit: 500) {
785          id
786          name
787        }
788        regions(sort: ["name"], limit: 500) {
789          id
790          name
791        }
792      }
793    `))}function eu(e,n){return K(`search-result-${crypto.randomUUID()}`,async()=>{const i=ve("search:query"),{q:r,domains:_,key_themes:d,topics:p,content_types:c,t
793ypes_of_news:g,companies:u,people:m,countries:h,regions:f,period:y,sort:b,start:I,end:O}=i.value,C=[];if(c&&C.push(`content_type_id=${c}`),_&&C.push(`domain_id=${_}`),r&&C.push(`search_text=${r}`),d&&C.push(`key_theme_id=${d}`),p&&C.push(`topic_id=${p}`),g&&C.push(`type_of_news_id=${g}`),u&&C.push(`company_id=${u}`),m&&C.push(`person_id=${m}`),h&&C.push(`country_id=${h}`),f&&C.push(`region_id=${f}`),y&&y!="default"){const P=ae(new Date).format("YYYY-MM-DDTHH:mm:ss"),R=ae(new Date).subtract(parseInt(y),"months").format("YYYY-MM-DDTHH:mm:ss");C.push(`search_from=${R}`),C.push(`search_to=${P}`)}if(I){const P=`${I}T00:00:00`;C.push(`search_from=${P}`)}if(O){const P=`${O}T23:59:59`;C.push(`search_to=${P}`)}b&&C.push(`sort=${b}`);const N=C.join("&"),B=Xe().public.directus.url,q=(e.value-1)*n.value,j=await $fetch(`${B}/search?${N}&limit=${n.value}&offset=${q}`),A=j.result.map(P=>({__typename:"",id:P.id,slug:P.slug,title:P.title,image:P.image,abstract:P.abstract,read_time:P.read_time,published_at:P.published_at,event_at:P.event_at,event_organizer_name:P.event_organizer_name,webinar_at:P.webinar_at,webinar_url:P.webinar_url,report_file:P.report_file,location:{name:P.location_name},content_type:{id:P.content_type,name:P.content_type_name,slug:P.content_type_slug},domain:{id:P.domain,name:P.domain_name,slug:P.domain_slug}}));let U=0;return j.result?.[0]?.total_count&&(U=parseInt(j.result[0].total_count.toString())),{result:A,total_count:U,q:r}})}const tu=Object.freeze({DATE_DESCENDING:{id:0,label:"Date descending"},DATE_ASCENDING:{id:3,label:"Date ascending"},IMPORTANCE_DESCENDING:{id:1,label:"Importance descending"}}),Oe=new Map,Be={on(e,n){Oe.has(e)||Oe.set(e,new Set),Oe.get(e).add(n),Pt(()=>{Oe.get(e)?.delete(n)})},emit(e){Oe.get(e)?.forEach(n=>n())}},nu={class:"flex flex-col gap-2"},ou={key:0,class:"flex flex-col gap-4"},su={key:1,class:"p-4 bg-red-50 text-red-600 rounded"},lu={key:2,class:"flex flex-col gap-8"},au={key:0,class:"font-or-lemmen text-secondary text-3xl"},iu={class:"flex flex-col gap-3 p-5 text-sm text-secondary"},ru={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3"},cu={class:"col-span-full"},du={class:"flex flex-col gap-1"},uu=["for"],mu={key:0,class:"flex flex-col gap-1"},pu={key:1,class:"flex flex-col gap-1"},_u={key:0,class:"grid grid-cols-1 lg:grid-cols-3 xl:grid-cols-4 gap-3"},fu={class:"flex flex-col gap-1"},gu={class:"flex flex-col gap-1"},yu={class:"flex gap-2 justify-end"},hu=D({__name:"SearchFilterBlock",props:{filters:{type:Array,required:!1,default:()=>[]}},setup(e){const n=e,i={maxAge:365*24*60*60,secure:!0,sameSite:"lax"},r=Object.values(tu),_=[{id:"1",label:"1 month"},{id:"3",label:"3 months"},{id:"6",label:"6 months"},{id:"12",label:"12 months"},{id:"24",label:"24 months"}],d=fn(),p=st(),c=H({q:void 0,domains:void 0,key_themes:void 0,topics:void 0,content_types:void 0,types_of_news:void 0,companies:void 0,people:void 0,countries:void 0,regions:void 0}),g=H(void 0),u=H(void 0),m=H(),h=H(),f=ve("search:query",i),{data:y,status:b,error:I}=Zd(),O=x(()=>["pending","idle"].includes(b.value)),C=x(()=>p.name==="slug"?(Array.isArray(p.params.slug)?p.params.slug[0]:p.params.slug)==="search-on":p.name==="path"?(Array.isArray(p.params.path)?p.params.path[0]:p.params.path)==="search-on":p.name==="search-on-slug"),N=x(()=>{if(!y.value)return[];const P=[];for(const R in y.value){if(!q(R))continue;const G={key:R,label:B(R),options:y.value[R]||[]};R==="people"&&Array.isArray(G.options)&&(G.options=G.options.map(Q=>({id:Q.id,name:`${Q.first_name} ${Q.last_name}`}))),P.push(G)}return P}),V=x(()=>{if(c.value.q)return!0;for(const P in c.value)if(P!=="q"&&c.value?.[P]&&q(P))return!0;return!!(q("time_period")&&g.value||q("sort")&&u.value||q("date_range")&&(m.value||h.value))}),B=P=>{switch(P){case"key_themes":return"Key Themes";default:return P.split("_").map(R=>R.charAt(0).toUpperCase()+R.slice(1)).join(" ")}},q=P=>C.value||n.filters?.includes(P),j=()=>{const P={q:c.value.q,domains:c.value.domains,key_themes:c.value.key_themes,topics:c.value.topics,content_types:c.value.content_types,types_of_news:c.value.types_of_news,companies:c.value.companies,people:c.value.people,countries:c.value.countries,regions:c.value.regions,period:q("time_period")?g.value?.id:void 0,sort:q("sort")?u.value?.id?.toString():void 0,start:q("date_range")?m.value:void 0,end:q("date_range")?h.value:void 0};Object.keys(P).forEach(R=>{P?.[R]===void 0&&delete P?.[R]}),Object.keys(P).length>0&&(f.value=P)},A=async()=>{try{j(),Be.emit("search-tab"),await Qe({path:`/search-on${c.value.q?`/${c.value.q}`:""}`})}catch(P){console.error("Search error:",P)}},U=async()=>{c.value={q:void 0,domains:void 0,key_themes:void 0,topics:void 0,content_types:void 0,types_of_news:void 0,companies:void 0,people:void 0,countries:void 0,regions:void 0},g.value=void 0,u.value=void 0,m.value=void 0,h.value=void 0,f.value=null,Be.emit("search-tab"),p.path==="/search-on"?await d.replace({path:"/search-on"}):await d.push("/search-on")};return Ze(()=>{if(!f.value)return;const{q:P,domains:R,key_themes:G,topics:Q,content_types:te,types_of_news:L,companies:z,people:F,countries:ne,regions:ue,period:ye,sort:Ye,start:Fe,end:He}=f.value;P&&(c.value.q=P.toString()),R&&(c.value.domains=R.toString()),G&&(c.value.key_themes=G.toString()),Q&&(c.value.topics=Q.toString()),te&&(c.value.content_types=te.toString()),L&&(c.value.types_of_news=L.toString()),z&&(c.value.companies=z.toString()),F&&(c.value.people=F.toString()),ne&&(c.value.countries=ne.toString()),ue&&(c.value.regions=ue.toString()),ye&&(g.value=_.find(Re=>Re.id===ye)||void 0),Ye&&(u.value=r.find(Re=>Re.id.toString()===Ye)||void 0),Fe&&(m.value=Fe.toString()),He&&(h.value=He.toString()),Be.emit("search-tab"),Be.on("update-filter",j)}),(P,R)=>{const G=ee,Q=it,te=rt,L=ce;return o(),a("div",nu,[t(O)?(o(),a("div",ou,[l(G,{class:"h-96 w-full"})])):t(I)?(o(),a("div",su,R[5]||(R[5]=[s("p",null,"Unable to load search f
793ilters. Please try again later.",-1)]))):(o(),a("div",lu,[t(C)&&t(c)?.q?(o(),a("p",au,' You searched on "'+w(t(c).q)+'" ',1)):v("",!0),s("form",{class:"flex flex-col bg-accent rounded",onSubmit:me(A,["prevent"])},[s("div",iu,[s("div",ru,[s("div",cu,[s("div",du,[R[6]||(R[6]=s("label",{for:"keywords",class:"text-[10px] ml-3 uppercase font-medium tracking-wide"},"Keywords",-1)),l(Q,{id:"keywords",modelValue:t(c).q,"onUpdate:modelValue":R[0]||(R[0]=z=>t(c).q=z),name:"keywords",variant:"outline",placeholder:"Enter search keywords",size:"lg",class:"w-full"},null,8,["modelValue"])])]),(o(!0),a($,null,T(t(N),z=>(o(),a("div",{key:z.key,class:"flex flex-col gap-1"},[s("label",{for:z.key,class:"text-[10px] ml-3 uppercase font-medium tracking-wide"},w(z.label),9,uu),l(te,{id:z.key,modelValue:t(c)[z.key],"onUpdate:modelValue":F=>t(c)[z.key]=F,name:z.key,options:z.options,placeholder:z.label,searchable:"","value-attribute":"id","option-attribute":"name",size:"lg",color:"white",variant:"outline"},null,8,["id","modelValue","onUpdate:modelValue","name","options","placeholder"])]))),128)),q("time_period")?(o(),a("div",mu,[R[7]||(R[7]=s("label",{for:"timePeriodSelection",class:"text-[10px] ml-3 uppercase font-medium tracking-wide"}," Time Period ",-1)),l(te,{id:"timePeriodSelection",modelValue:t(g),"onUpdate:modelValue":R[1]||(R[1]=z=>fe(g)?g.value=z:null),name:"timePeriodSelection",options:_,placeholder:"Time Period","option-attribute":"label",size:"lg",color:"white",variant:"outline"},null,8,["modelValue"])])):v("",!0),q("sort")?(o(),a("div",pu,[R[8]||(R[8]=s("label",{for:"sortSelection",class:"text-[10px] ml-3 uppercase font-medium tracking-wide"},"Sort",-1)),l(te,{id:"sortSelection",modelValue:t(u),"onUpdate:modelValue":R[2]||(R[2]=z=>fe(u)?u.value=z:null),name:"sortSelection",options:t(r),placeholder:"Sort Order","option-attribute":"label",size:"lg",color:"white",variant:"outline"},null,8,["modelValue","options"])])):v("",!0)]),q("date_range")?(o(),a("div",_u,[s("div",fu,[R[9]||(R[9]=s("label",{for:"dateStart",class:"text-[10px] ml-3 uppercase font-medium tracking-wide"},"Date Range",-1)),l(Q,{id:"dateStart",modelValue:t(m),"onUpdate:modelValue":R[3]||(R[3]=z=>fe(m)?m.value=z:null),name:"dateStart",type:"date",placeholder:"Start date",size:"lg"},null,8,["modelValue"])]),s("div",gu,[R[10]||(R[10]=s("label",{for:"dateEnd",class:"text-[10px] ml-3 uppercase font-medium tracking-wide"},"To",-1)),l(Q,{id:"dateEnd",modelValue:t(h),"onUpdate:modelValue":R[4]||(R[4]=z=>fe(h)?h.value=z:null),name:"dateEnd",type:"date",placeholder:"End date",size:"lg"},null,8,["modelValue"])])])):v("",!0),s("div",yu,[l(L,{color:"primary",label:"Reset",type:"button",class:"ring-0 px-6 uppercase bg-secondary hover:bg-secondary/75 !text-primary tracking-wider",size:"lg",onClick:U}),l(L,{color:"primary",label:"Search",type:"submit",class:J(["ring-0 px-6 uppercase tracking-wider",{"opacity-50 cursor-not-allowed":!t(V)}]),size:"lg",disabled:!t(V)},null,8,["disabled","class"])])])],32)]))])}}}),bu=Object.assign(hu,{__name:"SearchFilterBlock"}),vu={class:"text-secondary"},xu={class:"font-or-lemmen text-3xl"},wu={key:0,class:"flex flex-col gap-1 mb-6"},ku={key:1,class:"mb-6"},$u={class:"flex flex-col md:flex-row gap-6"},Cu={key:0,class:"w-full md:w-1/4"},Iu={class:"flex-1"},Su={class:"flex items-center gap-3 mb-1"},Tu={class:"space-y-2 mb-4"},qu={class:"pt-5 flex justify-between items-center"},Bu={key:3,class:"space-y-6"},Pu={class:"border-b py-6"},Nu={key:0,class:"py-8 text-center"},Au=D({__name:"SearchResultBlock",props:{title:{type:String,required:!1,default:"Search results"},bannerBlockId:{type:String,required:!0},bannerPlacementRepetition:{type:Number,required:!1,default:5}},setup(e){const n=H(1),i=H(10),r=e,{data:_,status:d,refresh:p}=eu(n,i),c=async()=>{Be.emit("update-filter"),await g()},g=qt(async()=>{await p()},1);Ze(()=>{Be.on("search-tab",async()=>{n.value=1,await g()})});const u=x(()=>["pending","idle"].includes(d.value)),m=h=>{if(!_.value?.result.length||_.value.result.length<r.bannerPlacementRepetition)return!1;const f=h+1;return f==_.value.result.length?!1:f%r.bannerPlacementRepetition==0};
793return(h,f)=>{const y=ee,b=Xt,I=Ve,O=Qt;return o(),a("div",vu,[s("h2",xu,w(e.title),1),t(u)?(o(),a("div",wu,[l(y,{class:"h-5 w-64"})])):(o(),a("p",ku," Found "+w(Number(t(_)?.total_count||0).toLocaleString())+" results "+w(t(_)?.q?`on "${t(_)?.q}"`:""),1)),t(u)?(o(),a($,{key:2},[(o(),a($,null,T(10,(C,N)=>s("div",{key:`skeleton-${N}`,class:"border-b py-6"},[s("div",$u,[N%3===0?(o(),a("div",Cu,[l(y,{class:"h-32 w-full rounded"})])):v("",!0),s("div",Iu,[s("div",Su,[l(y,{class:"h-4 w-24"}),l(y,{class:"h-4 w-16"})]),l(y,{class:"h-7 w-full max-w-2xl mb-3"}),s("div",Tu,[l(y,{class:"h-4 w-full"}),l(y,{class:"h-4 w-full"}),l(y,{class:"h-4 w-3/4"})]),l(y,{class:"h-8 w-24"})])])])),64)),s("div",qu,[l(y,{class:"h-8 w-32"}),l(y,{class:"h-8 w-64"})])],64)):(o(),a("div",Bu,[(o(!0),a($,null,T(t(_)?.result||[],(C,N)=>(o(),a($,{key:C.id},[s("div",Pu,[l(b,{article:C},null,8,["article"])]),m(N)?(o(),S(I,{key:0,"banner-block-id":e.bannerBlockId},null,8,["banner-block-id"])):v("",!0)],64))),128)),!t(u)&&(!t(_)?.result||t(_).result.length===0)?(o(),a("div",Nu,f[3]||(f[3]=[s("p",{class:"text-lg font-medium"},"No results found",-1),s("p",{class:"text-secondary/70"},"Try adjusting your search criteria",-1)]))):v("",!0),l(O,{"page-number":t(n),"onUpdate:pageNumber":f[0]||(f[0]=C=>fe(n)?n.value=C:null),"items-per-page":t(i),"onUpdate:itemsPerPage":[f[1]||(f[1]=C=>fe(i)?i.value=C:null),f[2]||(f[2]=C=>n.value=1)],class:"pt-5","total-items":t(_)?.total_count??0,"per-page-items":["10","20","30","40","50"],onRefresh:c},null,8,["page-number","items-per-page","total-items"])]))])}}}),Ru=Object.assign(Au,{__name:"SearchResultBlock"});function Eu(){return K("teamData",async()=>{const{$directus:e}=X();try{const{team_members:n}=await e.query(`
794        query Team_members {
795          team_members {
796            id
797            last_name
798            first_name
799            middle_name
800            suffix
801            function
802            email
803            linked_in
804            biography
805            photograph
806          }
807        }
808      `);if(!n)throw new Error("Team Data not found");return n}catch(n){throw console.error("Error fetching personal space data",n),n}})}const Mu={class:"w-full text-secondary"},Du={key:0,class:"space-y-8"},Ou={class:"grid grid-cols-1 gap-5 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4"},ju={key:1},Lu={class:"grid grid-cols-1 gap-5 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4"},Uu=["onClick"],Vu={class:"h-64 w-full overflow-hidden"},zu={class:"flex flex-col items-center gap-2 text-secondary text-center"},Yu={class:"text-lg font-semibold"},Fu={class:"text-xs uppercase tracking-widest"},Hu={key:0,class:"p-14"},Wu={class:"flex flex-col gap-4"},Gu={class:"h-[600px] w-full overflow-hidden"},Qu={class:"text-center text-secondary"},Ku={class:"text-2xl font-bold"},Ju={class:"text-sm uppercase tracking-widest"},Xu={key:0,class:"text-center text-secondary"},Zu={class:"text-sm leading-relaxed"},em={class:"flex justify-center space-x-3"},tm=["href"],nm=["href"],om=D({__name:"TeamBlock",async setup(e){let n,i;const r=H(!1),_=H(null),{data:d,status:p}=([n,i]=de(()=>Eu()),n=await n,i(),n),c=x(()=>d.value?d.value.map(m=>{const h=m.photograph&&m.photograph.length>0?m.photograph[0].cdn:"",f=m.middle_name?`${m.middle_name} `:"",y=m.suffix?` ${m.suffix}`:"";return{...m,image_url:h,full_name:`${m.first_name} ${f}${m.last_name}${y}`.trim()}}):[]),g=m=>{_.value=m,r.value=!0},u=()=>{r.value=!1,_.value=null};return(m,h)=>{const f=ee,y=ge,b=Sn;return o(),a($,null,[s("div",Mu,[t(p)==="pending"?(o(),a("div",Du,[s("div",Ou,[(o(),a($,null,T(8,I=>l(f,{key:I,class:"h-72 w-full"})),64))])])):(o(),a("div",ju,[s("div",Lu,[(o(!0),a($,null,T(t(c),I=>(o(),a("div",{key:I.id,class:"flex flex-col gap-4 bg-white cursor-pointer p-4",onClick:O=>g(I)},[s("div",Vu,[l(y,{src:I.image_url,alt:I.full_name,class:"object-cover w-full h-full",loading:"lazy"},null,8,["src","alt"])]),s("div",zu,[s("p",Yu,w(I.full_name),1),s("p",Fu,w(I.function),1)])],8,Uu))),128))])]))]),l(b,{modelValue:t(r),"onUpdate:modelValue":h[0]||(h[0]=I=>fe(r)?r.value=I:null),ui:{background:"bg-muted text-secondary",width:"w-[700px] sm:max-w-screen"},"aria-labelledby":"member-modal-title",onClose:u},{default:k(()=>[t(_)?(o(),a("div",Hu,[s("button",{type:"button",class:"absolute top-4 right-4",onClick:u},[l(t(qe),{class:"text-foreground","stroke-width":"1"})]),s("div",Wu,[s("div",Gu,[l(y,{src:t(_).image_url,alt:t(_).full_name,class:"object-cover w-full h-full",loading:"lazy"},null,8,["src","alt"])]),s("div",Qu,[s("p",Ku,w(t(_).full_name),1),s("p",Ju,w(t(_).function),1)]),t(_).biography?.trim()?.length?(o(),a("div",Xu,[s("p",Zu,w(t(_).biography),1)])):v("",!0),s("div",em,[t(_).linked_in?(o(),a("a",{key:0,href:t(_).linked_in,target:"_blank",class:"size-10 rounded-full bg-foreground flex items-center justify-center text-primary"},[l(t(ct),{"stroke-width":"1.5"})],8,tm)):v("",!0),t(_).email?(o(),a("a",{key:1,href:`mailto:${t(_).email}`,target:"_blank",class:"size-10 rounded-full bg-foreground flex items-center justify-center text-primary"},[l(t(zt),{"stroke-width":"1.5"})],8,nm)):v("",!0)])])])):v("",!0)]),_:1},8,["modelValue"])],64)}}}),sm=Object.assign(om,{__name:"TeamBlock"}),lm={key:0,class:"space-y-8"},am={class:"flex-1"},im={class:"flex gap-x-2 items-center text-sm mb-3"},rm={class:"flex gap-2 mt-2"},cm={class:"md:w-1/3 lg:w-1/4"},dm={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},um={class:"flex gap-x-2 items-center text-xs"},mm={key:1,class:"flex flex-col gap-4"},pm={class:"font-or-lemmen text-secondary text-3xl"},_m={class:"overflow-x-hidden"},fm={class:"overflow-x-hidden"},gm=D({__name:"WebinarBlock",props:{title:{type:String,required:!0},description:{type:String,required:!0},sort:{type:String,required:!1,default:"PUBLICATION_DATE"}},setup(e){const n=e,{$directus:i}=X(),{data:r,status:_}=K("webinars",async()=>{const c=["-published_at"],g={_and:[{content_type:{id:{_eq:Z.WEBINAR}}}]};return n.sort===pt.ACTIVITY_DATE&&(g._and.push({webinar_at:{_gt:new Date}}),c[0]="webinar_at"),await i.query(`
809      query GetWebinarBlockWebinars($filter: content_items_filter, $sort: [String]) {
810        content_items(filter: $filter, limit: 12, sort: $sort) {
811          id
812          title
813          slug
814          published_at
815          webinar_at
816          read_time
817          abstract
818          webinar_url
819          image
820          domain {
821            id
822            name
823            slug
824          }
825          content_type {
826            id
827            name
828            slug
829          }
830        }
831      }
832    `,{filter:g,sort:c})}),d=x(()=>r.value?.content_items.slice(0,4)??[]),p=x(()=>r.value?.content_items.slice(4,r.value.length)??[]);return(c,g)=>{const u=ee,m=ie,h=Te,f=mt;return t(_)=="pending"?(o(),a("div",lm,[(o(),a($,null,T(2,y=>s("div",{key:y,class:"flex flex-col md:flex-row gap-6"},[s("div",am,[l(u,{class:"h-8 w-3/4 mb-2"}),s("div",im,[l(u,{class:"h-4 w-24"}),l(u,{class:"h-4 w-20"}),l(u,{class:"h-4 w-16"})]),l(u,{class:"h-16 w-full mb-4"}),s("div",rm,[l(u,{class:"h-8 w-28 rounded-full"}),l(u,{class:"h-8 w-28 rounded-full"}),g[0]||(g[0]=s("div",{class:"flex-grow"},null,-1)),l(u,{class:"h-9 w-32 rounded-md"})])]),s("div",cm,[l(u,{class:"h-40 w-full rounded-md"})])])),64)),s("div",dm,[(o(),a($,null,T(3,y=>s("div",{key:y},[l(u,{class:"h-6 w-full mb-2"}),l(u,{class:"h-6 w-3/4 mb-3"}),s("div",um,[l(u,{class:"h-4 w-24"}),l(u,{class:"h-4 w-16"}),l(u,{class:"h-4 w-16"})])])),64))])])):t(d).length>
8320?(o(),a("div",mm,[s("h2",pm,w(e.title),1),e.description?(o(),S(m,{key:0,content:e.description},null,8,["content"])):v("",!0),s("div",_m,[(o(!0),a($,null,T(t(d).slice(0,2),y=>(o(),a("div",{key:y.id,class:"py-4 border-b last:border-b-0"},[l(h,{"content-item":y,"show-categories":!0,layout:1,"position-image":1,"show-domain-in-byline":!0,"show-image":!0,"is-full-height":!1,"image-classes":"w-full mb-2 md:w-[336px]"},null,8,["content-item"])]))),128))]),l(f,{"content-items":t(p),"content-type-id":t(Z).WEBINAR,"show-content-type":!1,"show-read-time":!0,"auto-play":!0,"use-event-for-date":!0,"date-format":"DD MMMM YYYY"},null,8,["content-items","content-type-id"]),s("div",fm,[(o(!0),a($,null,T(t(d).slice(2,4),y=>(o(),a("div",{key:y.id,class:"py-4 border-b"},[l(h,{"content-item":y,"show-categories":!0,layout:1,"position-image":0,"show-domain-in-byline":!0,"show-image":!0,"is-full-height":!1,"image-classes":"w-full mb-2 md:w-[336px]"},null,8,["content-item"])]))),128))])])):v("",!0)}}}),ym=Object.assign(gm,{__name:"WebinarBlock"}),Mm={BreadcrumbBlock:Nc,CompanyContentBlock:Mo,CompanyItemBlock:ws,CompanyOverviewBlock:dl,ContentItemAboutSubBlock:Ki,ContentItemAuthorSubBlock:Jt,ContentItemReportSpecSubBlock:_r,ContentItemTagsSubBlock:kr,ContentItemTitleSubBlock:qr,ContentItemWebinarAgendaSubBlock:Er,ContentOverviewBlock:Sa,FeaturedBlock:Za,FooterBlock:In,HeroBlock:Oc,LeaderboardBlock:Td,MainContentBlock:yd,MainNavigationBlock:Cn,MoreOnBlock:cc,NewsletterBlock:Od,NewsReelBlock:mt,OnboardingBlock:Wn,PersonalisedNewsBlock:mi,PersonalisedRegistrationBlock:Wt,ProductSpecificBlock:lt,RegisterBlock:_o,RelatedCompaniesBlock:Yl,RelatedContentSmallContentItem:hc,RelatedContentWideBlock:Ic,RelatedSponsoredContentBlock:Ve,RichTextBlock:ie,SearchFilterBlock:bu,SearchResultBlock:Ru,SeoBlock:Id,SimilarCompanies:Jl,TeamBlock:sm,TopicsBlock:La,TopCompanyBlock:Ml,TopStoriesBlock:Ii,TopHighlightsBlock:Li,WebinarBlock:ym,WelcomeBlock:Xd};export{Mm as F,Em as _};

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.