@apolitical/component-library 2.0.3-ac.1 → 2.0.3-ac.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -32,7 +32,7 @@ Check the top-level render call using <`+R+">.")}return E}}function rr(p,E){{if(
32
32
 
33
33
  Please explain why you're reporting this post. Reasons could include: inappropriate language, harassment, spam, hate speech, false information, among others. Include as much detail as you feel comfortable.
34
34
 
35
- Thank you for helping to protect the Apolitical community from abusive content.`,discussion_form_title:"Write your {action}",discussion_form_placeholder:"Write a {action}...",discussion_form_label:"Your {action}",discussion_form_explainer:"Try to make your {action} specific and practical. Be respectful and kind. See our <a>community guidelines</a>",discussion_form_success:"Your {action} has been submitted.",discussion_form_post:"Post",discussion_form_posting:"Posting...",discussion_form_save:"Save",discussion_form_saving:"Saving...",discussion_form_cancel:"Cancel",discussion_form_submitting:"Submitting...",discussion_form_placeholder_post:"Write something...",discussion_form_error:"We are unable to process your {action} right now. Please try again later or contact us if the problem persists",discussion_form_error_tooLong:"Please keep your content to {maxLength, plural, one {1 character} other {# characters}}.",discussion_form_error_tooMany:"You have posted too many times in a row. Please wait and try again.",discussion_form_error_loggedOut:"Please log in to submit your {action}.",discussion_form_error_noPermission:"You do not have permission to {action}.",discussion_form_error_alreadyExists:"This {action} already exists.",discussion_form_title_question:"Start a conversation",discussion_form_placeholder_question:"Ask your question here",discussion_form_explainer_question:"Unsure what you can post? See our <a>community guidelines</a>.",discussion_likes:"{number, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_likes_short:"{number}",discussion_likes_more:"and {number} more...",discussion_likes_like:"Like this {action}",discussion_likes_unlike:"Unlike {action}",discussion_moreMenu_edit:"Edit",discussion_moreMenu_delete:"Delete",discussion_moreMenu_report:"Report",discussion_comments_screenReader:"See {count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_comments:"{count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_responses_answer:"Answers",discussion_responses_comment:"Comments",discussion_responses_title:"{action} ({count})",discussion_responses_empty:"Be the first to respond",discussion_responses_empty_answer:"Be the first to answer this question",discussion_responses_placeholder:"Write a comment...",discussion_thread_show:"Show {count} {count, select, 1 {reply} other {replies}}",discussion_thread_hide:"Hide replies",discussion_thread_loadMore:"Load more replies",contactFooter_title:"Contact us",contactFooter_text:"We're always open to new ideas, so please reach out to see how we can collaborate.",contactFooter_phone:"+44 203 608 2241",contactFooter_email:"hello@apolitical.co",contactForm_name:"Name",contactForm_email:"Email address",contactForm_organisation:"Government department or organisation",contactForm_interests:"I'm interested in",contactForm_interests_publishingCourse:"Publishing or creating a course",contactForm_interests_buyingCourse:"Buying courses for my team",contactForm_interests_learningExperience:"Customised learning experiences",contactForm_interests_somethingElse:"Something else",contactForm_message:"Message",emailHelperTextBox_fallback_title:"Who can join",emailHelperTextBox_fallback_text:"Apolitical is a private community for public servants and policymakers.",emailHelperTextBox_default_title:"Who can join",emailHelperTextBox_default_text:"Apolitical is a private community for public servants and policymakers. <link>Learn more</link>.",emailHelperTextBox_autoApproved_title:"Email check",emailHelperTextBox_autoApproved_text:"Great! Looks like you are using a **government email domain we recognise.** You will be **auto-approved** once you sign up.",emailHelperTextBox_unrecognisedEmail_title:"Not a recognised government email",emailHelperTextBox_unrecognisedEmail_text:"To confirm you work in government or policy, please add more details below. <link>Learn more</link>.",emailHelperTextBox_pendingApproval_title:"Email is pending approval",emailHelperTextBox_pendingApproval_text:"Looks like this email has been used to sign up to Apolitical before, but <strong>we have not yet approved it.</strong> If you cannot wait to join, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_emailUnverified_title:"Hello again!",emailHelperTextBox_emailUnverified_text:"It looks like you're already an Apolitical member. To access your account, please verify your email address. <link>Click here to get a verification code sent to your email</link>.",emailHelperTextBox_emailAlreadyExists_title:"Email is already registered",emailHelperTextBox_emailAlreadyExists_text:"Looks like this email has been used to sign up to Apolitical before, try <link>logging in</link> instead. If you're still having issues, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_error_verificationFailedToSend_title:"Verification code failed to send",emailHelperTextBox_error_verificationFailedToSend_text:"Error details: <em>{error}</em>{br}<link>Click here to try again</link>.{br}If you continue to have problems, contact us at <mail>concierge@apolitical.co</mail>",emailHelperTextBox_error_noFunction:"Cannot resend verification code.",form_fieldWrapper_required:"required",form_fieldWrapper_characterLimit:"Character limit:",form_error_generalError:"Sorry, something has gone. Please refresh the page and try again.",form_error_required:"Please fill in this required field",form_error_numbers:"Numbers are not allowed in this text field",form_error_email:"Please enter a valid email address",form_error_url:"Please enter a valid URL",form_submit:"Submit",form_submitting:"Submitting form...",form_submitted:"Submitted",inviteForm_email_placeholder:"Add email addresses...",inviteForm_title:"Know someone who might like to join this workshop?",inviteForm_label:"Invite your colleagues by typing or pasting their emails below",inviteForm_ctaMessage:"Send",inviteForm_success:"Invitation Sent!",inviteForm_error:"Something went wrong!",inviteForm_ctaTryAgain:"Try again!",inviteForm_ctaSendMoreInvites:"Send more invites",inviteForm_ctaDone:"Done",passwordRules_intro:"We advise you not to use your name or email in your password.",passwordRules_rule_label:"Password",passwordRules_rule_8Characters:"must be longer than 8 characters",passwordRules_rule_numberSymbol:"must include a number and a symbol",passwordRules_rule_lowercaseUppercase:"must include both lower and upper case characters",passwordRules_notMet:"Your password does not meet this requirement",ratings_text:"Rate answer",ratings_stars:"{number} out of {total}",ratings_low:"this is incorrect or confusing",ratings_high:"this is a fantastic answer",ratings_success:"Thank you!",search_label:"Search for:",search_placeholder:"Ask Apolitical",search_clear:"Clear search",search_cta:"Search",showpassword_show:"Show",showpassword_hide:"Hide",showpassword_aria_show:"Your password is hidden. Click to show.",showpassword_aria_hide:"Your password is visible. Click to hide.",signup_title:"Sign up",signup_full_name:"Full name",signup_full_name_placeholder:"Lionel Messi",signup_email_address:"Work email",signup_email_address_placeholder:"lionel.messi@argentina.gov",signup_job_title:"Job title",signup_job_title_placeholder:"e.g. Senior Policy Advisor",signup_organization:"Organisation",signup_organization_placeholder:"e.g. Department of Justice",signup_url:"Link to official government bio / LinkedIn <small>(optional)</small>",signup_url_placeholder:"https://organisation.com/bio",signup_expectation:"What do you want to know<small>Optional, but we will use your response to build the session!</small>",signup_expectation_placeholder:"What do you want to know?",signup_terms:"I accept Apolitical's <terms>Terms of Service</terms>, <privacy>Privacy Policy</privacy> and that I'll get essential emails for my use of Apolitical",signup_error:"We're really sorry, but we've had a problem trying to sign you up. This could be an issue with our system, so we suggest you try again later.",signup_button_join:"Join for free",signup_button_login:"Log in",signup_submitting:"Submitting form...",signup_success_title:"Thank you for applying to join Apolitical!",signup_success_text:"<p>Once we've vetted your application, you'll get a secure login link to help you get started.</p><p>Please note that trust is everything to our community, so you can't login until your identity has been verified.</p>",tooltip_loading:"Loading...",cookieBanner_title:"Cookies and your privacy",cookieBanner_text:"We take your trust and privacy very seriously. Apolitical uses safe cookies (small files on your device) to run the site. You can reject non-essential cookies, but some site features may not work without them.",cookieBanner_buttons_settings:"Change my settings",cookieBanner_buttons_reject:"Reject all",cookieBanner_buttons_accept:"Accept all",footer_platform:"Platform",footer_platform_events:"Events",footer_platform_courses:"Courses",footer_platform_qanda:"Q&A",footer_platform_articles:"Articles",footer_community:"Community",footer_community_support:"Support FAQ",footer_community_post:"Post on Apolitical",footer_community_join:"Who can join",footer_community_guidelines:"Guidelines & values",footer_company:"Company",footer_company_story:"Our story",footer_company_team:"Meet our team",footer_company_careers:"Careers",footer_company_partner:"Partner with us",footer_company_contact:"Get in touch",footer_legal:"Legal",footer_legal_privacy:"Privacy policy",footer_legal_terms:"Terms & conditions",footer_legal_cookie:"Cookie policy",footer_legal_accessibility:"Accessibility statement",footer_legal_dataProtection:"Data protection officer",footer_legal_euDataProtection:"EU data protection officer",footer_contact:"Contact",footer_contact_correspondence:"Correspondence address",footer_contact_correspondence_address:"251 Southwark Bridge Road{br}London, SE1 6FL{br}United Kingdom",footer_contact_registered:"Registered address",footer_contact_registered_address:"20–22 Wenlock Road{br}London, N1 7GU{br}United Kingdom",footer_contact_berlin:"Berlin address",footer_contact_berlin_address:"Torstraße 220{br}10115 Berlin{br}Germany",footer_contact_support:"For platform support",footer_contact_business:"For business inquiries",footer_social_linkedin:"LinkedIn",footer_social_twitter:"Twitter",footer_social_facebook:"Facebook",footer_copyright:"Copyright © {currentYear} Apolitical Group Limited",header_skip:"Skip to main content",header_search_show:"Show search bar",header_search_hide:"Close search bar",header_menu_show:"Show navigation",header_menu_hide:"Close navigation",header_home_loggedOut:"Home",header_home_loggedIn:"My Home",header_topics:"Topics",header_topics_explore:"Explore",header_topics_explore_events:"Events",header_topics_explore_courses:"Courses","header_topics_explore_q-and-a":"Q&A",header_topics_explore_articles:"Articles",header_topics_topics:"Topics",header_topics_topics_climate:"Climate","header_topics_topics_cities-and-local-government":"Cities and local government","header_topics_topics_digital-and-data":"Digital and data",header_topics_topics_education:"Education","header_topics_topics_equity-justice-and-inclusion":"Equity, justice and inclusion","header_topics_topics_health-and-social-care":"Health and social care",header_topics_topics_innovation:"Innovation","header_topics_topics_leadership-and-skills":"Leadership and skills","header_topics_topics_life-in-government":"Life in government",header_topics_topics_policymaking:"Policymaking","header_topics_topics_transport-and-infrastructure":"Transport and infrastructure","header_topics_topics_work-and-the-economy":"Work and the economy",header_partners:"For partners",header_account:"My account",header_account_show:"Show account menu",header_account_hide:"Close account menu",header_account_profile:"My profile",header_account_settings:"Settings & privacy","header_account_log-out":"Log out",header_buttons_login:"Log in",header_buttons_signup:"Sign up",pageLayout_error:"An error occurred while rendering this page. Please refresh the page or try again later.",loadingBlock_loading:"Loading...",loadingBlock_almostDone:"Almost done...",loadingBlock_complete:"Complete!",progressBar:"{number}% loaded",inviteModal_title:"You’re registered",overlay_close:"Close",breadcrumbs_label:"Go back to:",breadcrumbs_currentPage:"Current page:",filters_all:"Show all",filters_disabled:"{name} - no results",languageSwitcher_label:"I would like to read this article in...",languageSwitcher_translation_original:"original language",languageSwitcher_translation_human:"translated by person",languageSwitcher_translation_machine:"translated by machine",languageSwitcher_selected:"{language} - currently selected",languageSwitcher_disclaimer:"This content is machine translated and will occasionally get gendered language or other direct translations wrong. We’re trying to resolve this but in the meantime, if you notice something very wrong, let us know at <link>{email}</link>",loadMore_button:"Load more",loadMore_endOfFeed:"You're all caught up",loadMore_error:"We're having trouble loading more content. Please refresh the page or try again later.",moreMenu:"See more options",navigationMenu_links_homepage:"Home",navigationMenu_links_events:"Events",navigationMenu_links_microcourses:"Courses","navigationMenu_links_q-and-a":"Q&A",navigationMenu_links_articles:"Articles",navigationMenu_profile:"My profile",shareLinks_label:"Share",shareLinks_link_linkedin:"Share on LinkedIn",shareLinks_link_twitter:"Share on Twitter",shareLinks_link_facebook:"Share on Facebook",shareLinks_link_email:"Share by email","shareLinks_link_clipboard-copy":"Copy the link",tags_community:"From the community",notFoundError_title:"We can't find that page",notFoundError_text:"Sorry about that. We all mess up sometimes - read some ‘fail’ stories below.",notFoundError_post_1:"Why public servants must learn to fail — and 3 tips for how to do it",notFoundError_post_2:"What failure has taught me",notFoundError_post_3:"How to learn from failure without causing a scandal",notFoundError_cta:"View more articles",collapsibleSection_summary:"Find out more",hideShowTextBox_hide:"View less",hideShowTextBox_show:"View more",markdown_collapsibleSection_summary:"Resources",markdown_skip_video:"Skip past video",markdown_skip_padlet:"Skip past interactive board",markdown_skip_poll:"Skip past poll",markdown_skip:"Skip to next section",markdown_iframe_title:"Course information",markdown_iframe_video:"Video",markdown_iframe_padlet:"Interactive board",markdown_iframe_poll:"Poll"},ks={languageSwitcher_label:"Me gustaría leer este artículo en...",languageSwitcher_translation_original:"idioma original",languageSwitcher_translation_human:"traducido por un humano",languageSwitcher_translation_machine:"traducido por máquina",languageSwitcher_disclaimer:"Este contenido fue traducido automáticamente y ocasionalmente tendrá errores de género u otras traducciones directas. Estamos intentando resolver este problema, pero mientras tanto, si notas algún error grave, escríbenos a <link>{email}</link>"},Ts={languageSwitcher_label:"Je voudrais lire cet article dans...",languageSwitcher_translation_original:"langue originale",languageSwitcher_translation_human:"traduit par un humain",languageSwitcher_translation_machine:"traduit par machine",languageSwitcher_disclaimer:"Ce contenu est traduit automatiquement et contiendra d’évantuelles erreurs de genre ou d’autres traductions directes. Nous essayons de résoudre ce problème, mais en attendant, si vous remarquez une erreur importante, faites-le nous savoir à <link>{email}</link>",collapsibleSection_summary:"En savoir plus"},Es={languageSwitcher_label:"Eu gostaria de ler este artigo em...",languageSwitcher_translation_original:"linguagem original",languageSwitcher_translation_human:"traduzido por um humano",languageSwitcher_translation_machine:"traduzido por máquina",languageSwitcher_disclaimer:"Este conteúdo foi traduzido automaticamente e, ocasionalmente, poderão ocorrer erros de linguagem de gênero ou outras traduções diretas. Estamos tentando resolver isso, porém se perceber algo errado por favor nos avise em <link>{email}</link>"},Ss=Object.freeze(Object.defineProperty({__proto__:null,en:Sn,es:ks,fr:Ts,pt:Es},Symbol.toStringTag,{value:"Module"})),Kr=e=>e in Sn,je=(e,t,n,r,s={})=>{let i="";return Kr(`${t}_${n}`)?i=e({id:`${t}_${n}`},s):i=e({id:t},{[r]:n,...s}),i},Cs=(e,t,n)=>{if(!e||e===0)return"0";t||(t=0),n||(n=["k","m","b","t"]);let r=e.toString();t=Math.pow(10,t);for(let s=n.length-1;s>=0;s--){const i=Math.pow(10,(s+1)*3);if(i<=e){e=Math.round(e*t/i)/t,e===1e3&&s<n.length-1&&(e=1,s++),r=`${e}${n[s]}`;break}}return r},vt=(e,t)=>_.Children.map(e,n=>Object.is(n,null)?n:_.cloneElement(n,{...t})),Qr=(e=0)=>{setTimeout(()=>{const t=document.querySelector(".splash-screen");t&&t.remove(),window.prerenderReady=!0},e)},$s=e=>e.replace(/\s+/g,"").length>0,re=({variant:e="primary",size:t="medium",styling:n={muted:!1,fullWidth:!1},icon:r=!1,href:s=!1,element:i="button",onClick:c=!1,className:o="",disabled:f=!1,screenreaderText:d=!1,children:u=!1,...l})=>{const h=Ze(typeof t=="object");if(typeof t=="object"&&typeof h=="number"){const v=Object.assign({},t),y=Vr(Object.keys(v));t=Yr(h,y,v)}const g=[];typeof t=="string"&&g.push(t),r&&(g.push("icon"),typeof r=="object"?(g.push(r.icon),r.position?g.push(r.position):g.push("left"),r.hover&&g.push(`hover_${r.hover}`),r.animate&&(g.push("animate"),typeof r.animate=="string"&&g.push(r.animate))):(g.push(r),!r.includes("right")&&!r.includes("left")&&g.push("left"))),n.muted&&g.push("muted"),n.fullWidth&&g.push("full-width");const b={...l,className:S(e,o,g,{"no-text":!u,disabled:f,button:s}),onClick:v=>{(!s||s[0]==="#")&&c&&(v.preventDefault(),v.stopPropagation()),c&&c(v)},disabled:typeof f=="object"&&"isClickable"in f?!f.isClickable:f};return s&&(i="a",b.href=s),_.createElement(i,b,u||(d?a.jsx(he,{showOnFocus:!1,children:d}):null))},at=({buttons:e,className:t="",...n})=>{const r=e.length>1?"ul":"p",s=e.map((i,c)=>r==="p"?a.jsx(re,{...i},c):a.jsx("li",{children:a.jsx(re,{...i})},c));return _.createElement(r,{className:S("button-wrapper",t),...n,children:s})};const Me=({className:e="",maxWidth:t=!1})=>{const n=t?{"--max-width":`${t/16}rem`}:{};return a.jsx("hr",{className:S(e,{"has-max-width":t}),style:n})},We=({href:e,children:t,fallbackElement:n,className:r="",onClick:s,gtmContext:i,gtmType:c,...o})=>{if(e){const f={...o};return s&&(f.onClick=s),i&&(f["data-gtm-event-context"]=i),c&&(f["data-gtm-event-type"]=c),a.jsx("a",{href:e,className:S("gtm-trackable",r),...f,children:t})}return n?_.createElement(n,{children:t,className:r,...o}):t},dr={card:{range:[{height:320,width:320},{height:425,width:687},{height:510,width:768}],sizes:"(min-width: 1024px) 720px, 30vw"},responsiveCard:{range:[{height:125,width:200},{height:188,width:300},{height:313,width:500}],sizes:"(min-width: 1024px) 720px, 30vw"},banner:{range:[{height:124,width:425},{height:320,width:768},{height:510,width:1368}],sizes:"(min-width: 1024px) 975px, 50vw"},feed:{range:[{height:270,width:124},{height:320,width:425},{height:425,width:687}],sizes:"(min-width: 1024px) 510px, 20vw"},fallback:{range:[{height:124,width:375},{height:320,width:687},{height:510,width:990}],sizes:"(min-width: 1024px) 885px, 35vw"},thumbnail:{range:[{height:124,width:124},{height:320,width:320},{height:510,width:510}],sizes:"(min-width: 1024px) 453px, 20vw"}},Ms=({aspect:e,range:t,sizes:n})=>{const{range:r,sizes:s}=e?dr[e]:dr.fallback;return{range:t&&t.length>0?t:r,sizes:n||s}},Ps=({format:e,height:t,query:n,width:r})=>{let s=`w=${r}&h=${t}`;return s=e?`${s}&fm=${e}`:s,s=n?`${s}&${n}`:s,s},Ht=({format:e,range:t,url:n,query:r})=>t.map(({height:s,width:i})=>`${n}?${Ps({format:e,height:s,query:r,width:i})} ${i}w`).join(", ");const Cn=({image:e,className:t,testId:n})=>{const{description:r,height:s,type:i,query:c,url:o,width:f,loading:d,decoding:u,fetchPriority:l}=e,{range:m,sizes:h}=Ms(e),g=Ht({format:"avif",query:c,range:m,url:o}),b=Ht({format:"webp",query:c,range:m,url:o}),v=Ht({format:"",query:c,range:m,url:o});return a.jsxs("picture",{className:t,children:[i!=="image/gif"&&a.jsx("source",{type:"image/avif",srcSet:g,sizes:h,"data-testid":"source"}),a.jsx("source",{type:"image/webp",srcSet:b,sizes:h,"data-testid":"source"}),a.jsx("img",{srcSet:v,sizes:h,src:o,alt:r,loading:d||"lazy",decoding:u||"async",fetchpriority:l||"auto",width:f,height:s,"data-testid":n||"image"})]})};let Je=!1;const Jr=({isOpen:e=!1,isLoading:t=!1,children:n})=>{const r=O.useIntl(),s=_.useRef(null),[i,c]=_.useState("hidden");_.useEffect(()=>{const f=s.current;if(f)return f.addEventListener("transitionend",o),()=>{f.removeEventListener("transitionend",o)}},[]);const o=({propertyName:f})=>{f==="opacity"&&(Je!==!1&&clearTimeout(Je),c(d=>d==="opening"?"open":d==="closing"?"closed":d==="closed"?"hidden":d))};return Ue(()=>{Je!==!1&&clearTimeout(Je);let f="open";e?c("opening"):(c("closing"),f="hidden"),Je=setTimeout(()=>{c(f)},300)},[e]),a.jsx("aside",{ref:s,className:S("tooltip text-medium",i,{loading:t}),hidden:i==="hidden",children:t?a.jsx("p",{children:r.formatMessage({id:"tooltip_loading"})}):typeof n=="string"?a.jsx("p",{children:n}):n})};const Ve=({children:e,className:t="",...n})=>a.jsx("section",{className:S("full-width-section",t),...n,children:e});const Rs=({text:e,buttons:t,className:n=""})=>{const r=[];return t.forEach(s=>{r.push({href:s.link,variant:"secondary",size:{mobile:"medium",1024:"large"},className:"gtm-trackable","data-gtm-event-type":"download-click","data-gtm-event-context":s.eventContext||"Download",target:"_blank",children:s.text})}),a.jsx(Ve,{className:S("download-section",n),children:a.jsxs(a.Fragment,{children:[_.createElement(typeof e=="string"?"h2":e.element,{className:"text"},typeof e=="string"?e:e.text),a.jsx(at,{buttons:r})]})})};const Ns=({title:e=!1,logos:t=[],className:n=""})=>{const r=t.length;if(r===0)return null;const s={element:typeof e=="object"?e.element:"h2",text:typeof e=="string"?e:typeof e=="object"?e.text:""};return a.jsxs("div",{className:S("logos",n),children:[e&&_.createElement(s.element,{className:"title"},s.text),a.jsx("ul",{className:S({"two-col":r===2||r===4,"three-col":r===5||r<=10&&r%3===0}),children:t.map(({logo:i,nameOfBusiness:c,link:o=!1,description:f=!1},d)=>{if(!i||!i.url)return null;const u=a.jsx("img",{src:i.url,width:i.width||"auto",height:i.height||"auto",alt:c});return a.jsxs("li",{children:[a.jsx("p",{className:"img-wrapper",children:o?a.jsx("a",{href:o,target:"_blank",rel:"nofollow noreferrer noopener",children:u}):u}),f&&a.jsx("small",{children:f})]},window.btoa(`${i.url}_${d}`))})})]})};const As=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],Fs=({className:e="",content:t,image:n,variant:r="default",spacing:s="normal",hideElements:i={eyebrow:!1,title:!1,text:!1},cta:c,children:o})=>{const f=["eyebrow","title","text"],d={eyebrow:"small",title:"h1",text:"p"},u={};return f.forEach(l=>{if(!t[l]){u[l]=!1;return}if(!i[l]){if(typeof t[l]=="object"){u[l]=t[l];const{text:m,element:h}=t[l];if(h&&As.includes(h.toLowerCase()))return;u[l]={text:m,element:d[l]};return}u[l]={text:t[l],element:d[l]}}}),c&&c.link&&c.link[0]==="#"&&(c.props||(c.props={}),c.props.onClick=l=>{l.preventDefault(),l.stopPropagation();const m=document.getElementById(c.link.substring(1));m&&m.scrollIntoView({behavior:"smooth"})}),a.jsx(Ve,{className:S("banner-section",r,s,e,{"has-image":n,"has-extra-spacing":s==="normal"&&u.eyebrow&&u.title}),children:a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"content-wrapper",children:[f.map(l=>{if(u[l]&&typeof u[l]=="object"){const{text:m,element:h=""}=u[l];return l==="text"?a.jsx(xt,{overrideType:"text-only",children:m}):_.createElement(h,{key:l,className:l},m)}return null}),o,c&&c.text&&c.link&&a.jsx(re,{variant:n||r==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:c.link,...c.props,children:c.text})]}),n&&a.jsx(Cn,{image:{...n,aspect:"banner"}})]})})},Os=_.memo(Fs);const Is=({variant:e="primary",button:t=null,title:n,text:r,gtmContext:s})=>!n&&!r?null:a.jsxs("aside",{className:S("marketing-block",e),children:[n&&a.jsx("p",{className:"title",children:n}),r&&a.jsx("p",{children:r}),t&&a.jsx(re,{variant:"secondary",size:"medium",href:t.link,className:"gtm-trackable","data-gtm-event-context":s,"data-gtm-event-type":"learn-more-click",children:t.text})]}),Xr=({showDevTools:e=!0,children:t})=>{const n=new fe.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:6e4}}});return a.jsxs(fe.QueryClientProvider,{client:n,children:[t,e&&a.jsx(cs.ReactQueryDevtools,{initialIsOpen:!1})]})};var Ls=_.createContext({client:_t});function Ds(e){var t=e.children,n=e.client,r=e.apiKey,s=e.options,i=_.useMemo(function(){return n&&r&&console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."),n&&s&&console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."),n||(r&&(_t.__loaded&&console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."),_t.init(r,s)),_t)},[n,r]);return _.createElement(Ls.Provider,{value:{client:i}},t)}const ea=({children:e,user:t})=>t.isLoading?null:process.env.REACT_APP_PUBLIC_POSTHOG_KEY?a.jsx(Ds,{apiKey:atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),options:{api_host:"/ph",autocapture:!1,disable_session_recording:!0,persistence_name:"flags",secure_cookie:!0,ui_host:"eu.posthog.com",bootstrap:{distinctID:t.id||"00000000-0000-0000-0000-000000000000",isIdentifiedID:!!t.id}},children:e}):e,ta=({children:e,locale:t,messages:n})=>{const r=t||"en",s={...Ss[r],...n||{}};return a.jsx(O.IntlProvider,{locale:r,messages:s,children:e})},Te=_.createContext({isLoading:!0});function Pt(){return _.useContext(Te)}const na=({children:e,user:t})=>a.jsx(Te.Provider,{value:t,children:e}),Bs=({bootstrap:e,children:t,intl:n})=>{const[r,s]=_.useState({isLoading:!0});return _.useEffect(()=>{e().then(i=>{s({...i,isLoading:!1}),Qr(5e3)}).catch(()=>s({isLoading:!1}))},[]),a.jsx(ta,{locale:n==null?void 0:n.locale,messages:n==null?void 0:n.messages,children:a.jsx(Tn.CookiesProvider,{children:a.jsx(na,{user:r,children:a.jsx(Xr,{children:a.jsx(ea,{user:r,children:t})})})})})},He="https://storage.googleapis.com/apolitical-assets/",De={general:"hello@apolitical.co",support:"concierge@apolitical.co","data-protection":{default:"dpo@apolitical.co",eu:"dpo.agl@apolitical.foundation"}},qs="200,000+";const $n=({label:e=!1,className:t="",children:n})=>{const r=O.useIntl();return a.jsxs("details",{className:S("collapsible-section",t),children:[a.jsx("summary",{children:e||r.formatMessage({id:"collapsibleSection_summary"})}),a.jsx("div",{className:"content",children:n})]})};const ke=({variant:e="primary",icon:t,className:n="",children:r,...s})=>{const i=t?{"--icon":`url(${He}icons/${t}.svg)`}:{};return a.jsx("div",{className:S("highlighted-text-box",e,n,{"has-icon":t}),style:i,...s,children:r})};const Fe=({variant:e="empty",text:t=!1,button:n=!1,className:r=""})=>{let s=n&&!!Object.keys(n).length;const i=typeof n=="object"&&"breakpoints"in n,c=Ze(i);if(i&&typeof n=="object"&&typeof c=="number"){const l=Object.assign({},n.breakpoints),m=Vr(Object.keys(l));s=Yr(c,m,l)}const{breakpoints:o,text:f="",component:d,...u}=n;return a.jsx(ke,{variant:"subtle",className:S("empty-state-box",e,r),children:a.jsxs(a.Fragment,{children:[t&&a.jsx($t,{options:{forceBlock:!0},children:t}),s&&typeof n=="object"&&(d||a.jsx(re,{...u,variant:n.variant?n.variant:"secondary",children:f}))]})})};const gn=({children:e,...t})=>a.jsx("p",{...t,children:e}),ra={q:gn,blockquote:gn};for(let e=1;e<=6;e++)ra[`h${e}`]={component:gn,props:{className:"title"}};const aa=({type:e="default",className:t="",heading:n=!1,children:r})=>a.jsxs("div",{className:S("helper-text-box text-small",e,t),children:[n&&a.jsx("p",{className:"title",children:n}),typeof r=="string"?a.jsx($t,{options:{wrapper:_.Fragment,forceBlock:!0,overrides:ra},children:r}):a.jsx("p",{children:r})]});const Us=({className:e="",show:t=!1,hide:n=!1,text:r,children:s})=>{const i=O.useIntl(),c=_.useRef(null),[o,f]=_.useState(""),[d,u]=_.useState("closed");_.useEffect(()=>{const h=c.current;if(h)return h.addEventListener("transitionend",l),()=>{h.removeEventListener("transitionend",l)}},[]),_.useEffect(()=>{if(!r||typeof r!="string")return;const h=r.split(`
35
+ Thank you for helping to protect the Apolitical community from abusive content.`,discussion_form_title:"Write your {action}",discussion_form_placeholder:"Write a {action}...",discussion_form_label:"Your {action}",discussion_form_explainer:"Try to make your {action} specific and practical. Be respectful and kind. See our <a>community guidelines</a>",discussion_form_success:"Your {action} has been submitted.",discussion_form_post:"Post",discussion_form_posting:"Posting...",discussion_form_save:"Save",discussion_form_saving:"Saving...",discussion_form_cancel:"Cancel",discussion_form_submitting:"Submitting...",discussion_form_placeholder_post:"Write something...",discussion_form_error:"We are unable to process your {action} right now. Please try again later or contact us if the problem persists",discussion_form_error_tooLong:"Please keep your content to {maxLength, plural, one {1 character} other {# characters}}.",discussion_form_error_tooMany:"You have posted too many times in a row. Please wait and try again.",discussion_form_error_loggedOut:"Please log in to submit your {action}.",discussion_form_error_noPermission:"You do not have permission to {action}.",discussion_form_error_alreadyExists:"This {action} already exists.",discussion_form_title_question:"Start a conversation",discussion_form_placeholder_question:"Ask your question here",discussion_form_explainer_question:"Unsure what you can post? See our <a>community guidelines</a>.",discussion_likes:"{number, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_likes_short:"{number}",discussion_likes_more:"and {number} more...",discussion_likes_like:"Like this {action}",discussion_likes_unlike:"Unlike {action}",discussion_moreMenu_edit:"Edit",discussion_moreMenu_delete:"Delete",discussion_moreMenu_report:"Report",discussion_comments_screenReader:"See {count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_comments:"{count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_responses_answer:"Answers",discussion_responses_comment:"Comments",discussion_responses_title:"{action} ({count})",discussion_responses_empty:"Be the first to respond",discussion_responses_empty_answer:"Be the first to answer this question",discussion_responses_placeholder:"Write a comment...",discussion_thread_show:"Show {count} {count, select, 1 {reply} other {replies}}",discussion_thread_hide:"Hide replies",discussion_thread_loadMore:"Load more replies",contactFooter_title:"Contact us",contactFooter_text:"We're always open to new ideas, so please reach out to see how we can collaborate.",contactFooter_phone:"+44 203 608 2241",contactFooter_email:"hello@apolitical.co",contactForm_name:"Name",contactForm_email:"Email address",contactForm_organisation:"Government department or organisation",contactForm_interests:"I'm interested in",contactForm_interests_publishingCourse:"Publishing or creating a course",contactForm_interests_buyingCourse:"Buying courses for my team",contactForm_interests_learningExperience:"Customised learning experiences",contactForm_interests_somethingElse:"Something else",contactForm_message:"Message",emailHelperTextBox_fallback_title:"Who can join",emailHelperTextBox_fallback_text:"Apolitical is a private community for public servants and policymakers.",emailHelperTextBox_default_title:"Who can join",emailHelperTextBox_default_text:"Apolitical is a private community for public servants and policymakers. <link>Learn more</link>.",emailHelperTextBox_autoApproved_title:"Email check",emailHelperTextBox_autoApproved_text:"Great! Looks like you are using a **government email domain we recognise.** You will be **auto-approved** once you sign up.",emailHelperTextBox_unrecognisedEmail_title:"Not a recognised government email",emailHelperTextBox_unrecognisedEmail_text:"To confirm you work in government or policy, please add more details below. <link>Learn more</link>.",emailHelperTextBox_pendingApproval_title:"Email is pending approval",emailHelperTextBox_pendingApproval_text:"Looks like this email has been used to sign up to Apolitical before, but <strong>we have not yet approved it.</strong> If you cannot wait to join, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_emailUnverified_title:"Hello again!",emailHelperTextBox_emailUnverified_text:"It looks like you're already an Apolitical member. To access your account, please verify your email address. <link>Click here to get a verification code sent to your email</link>.",emailHelperTextBox_emailAlreadyExists_title:"Email is already registered",emailHelperTextBox_emailAlreadyExists_text:"Looks like this email has been used to sign up to Apolitical before, try <link>logging in</link> instead. If you're still having issues, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_error_verificationFailedToSend_title:"Verification code failed to send",emailHelperTextBox_error_verificationFailedToSend_text:"Error details: <em>{error}</em>{br}<link>Click here to try again</link>.{br}If you continue to have problems, contact us at <mail>concierge@apolitical.co</mail>",emailHelperTextBox_error_noFunction:"Cannot resend verification code.",form_fieldWrapper_required:"required",form_fieldWrapper_characterLimit:"Character limit:",form_error_generalError:"Sorry, something has gone. Please refresh the page and try again.",form_error_required:"Please fill in this required field",form_error_numbers:"Numbers are not allowed in this text field",form_error_email:"Please enter a valid email address",form_error_url:"Please enter a valid URL",form_submit:"Submit",form_submitting:"Submitting form...",form_submitted:"Submitted",inviteForm_email_placeholder:"Add email addresses...",inviteForm_title:"Know someone who might like to join this workshop?",inviteForm_label:"Invite your colleagues by typing or pasting their emails below",inviteForm_ctaMessage:"Send",inviteForm_success:"Invitation Sent!",inviteForm_error:"Something went wrong!",inviteForm_ctaTryAgain:"Try again!",inviteForm_ctaSendMoreInvites:"Send more invites",inviteForm_ctaDone:"Done",passwordRules_intro:"We advise you not to use your name or email in your password.",passwordRules_rule_label:"Password",passwordRules_rule_8Characters:"must be longer than 8 characters",passwordRules_rule_numberSymbol:"must include a number and a symbol",passwordRules_rule_lowercaseUppercase:"must include both lower and upper case characters",passwordRules_notMet:"Your password does not meet this requirement",ratings_text:"Rate answer",ratings_stars:"{number} out of {total}",ratings_low:"this is incorrect or confusing",ratings_high:"this is a fantastic answer",ratings_success:"Thank you!",search_label:"Search for:",search_placeholder:"Ask Apolitical",search_clear:"Clear search",search_cta:"Search",showpassword_show:"Show",showpassword_hide:"Hide",showpassword_aria_show:"Your password is hidden. Click to show.",showpassword_aria_hide:"Your password is visible. Click to hide.",signup_title:"Sign up",signup_full_name:"Full name",signup_full_name_placeholder:"Lionel Messi",signup_email_address:"Work email",signup_email_address_placeholder:"lionel.messi@argentina.gov",signup_job_title:"Job title",signup_job_title_placeholder:"e.g. Senior Policy Advisor",signup_organization:"Organisation",signup_organization_placeholder:"e.g. Department of Justice",signup_url:"Link to official government bio / LinkedIn <small>(optional)</small>",signup_url_placeholder:"https://organisation.com/bio",signup_expectation:"What do you want to know<small>Optional, but we will use your response to build the session!</small>",signup_expectation_placeholder:"What do you want to know?",signup_terms:"I accept Apolitical's <terms>Terms of Service</terms>, <privacy>Privacy Policy</privacy> and that I'll get essential emails for my use of Apolitical",signup_error:"We're really sorry, but we've had a problem trying to sign you up. This could be an issue with our system, so we suggest you try again later.",signup_button_join:"Join for free",signup_button_login:"Log in",signup_submitting:"Submitting form...",signup_success_title:"Thank you for applying to join Apolitical!",signup_success_text:"<p>Once we've vetted your application, you'll get a secure login link to help you get started.</p><p>Please note that trust is everything to our community, so you can't login until your identity has been verified.</p>",tooltip_loading:"Loading...",cookieBanner_title:"Cookies and your privacy",cookieBanner_text:"We take your trust and privacy very seriously. Apolitical uses safe cookies (small files on your device) to run the site. You can reject non-essential cookies, but some site features may not work without them.",cookieBanner_buttons_settings:"Change my settings",cookieBanner_buttons_reject:"Reject all",cookieBanner_buttons_accept:"Accept all",footer_platform:"Platform",footer_platform_events:"Events",footer_platform_courses:"Courses",footer_platform_qanda:"Q&A",footer_platform_articles:"Articles",footer_community:"Community",footer_community_support:"Support FAQ",footer_community_post:"Post on Apolitical",footer_community_join:"Who can join",footer_community_guidelines:"Guidelines & values",footer_company:"Company",footer_company_story:"Our story",footer_company_team:"Meet our team",footer_company_careers:"Careers",footer_company_partner:"Partner with us",footer_company_contact:"Get in touch",footer_legal:"Legal",footer_legal_privacy:"Privacy policy",footer_legal_terms:"Terms & conditions",footer_legal_cookie:"Cookie policy",footer_legal_accessibility:"Accessibility statement",footer_legal_dataProtection:"Data protection officer",footer_legal_euDataProtection:"EU data protection officer",footer_contact:"Contact",footer_contact_correspondence:"Correspondence address",footer_contact_correspondence_address:"251 Southwark Bridge Road{br}London, SE1 6FL{br}United Kingdom",footer_contact_registered:"Registered address",footer_contact_registered_address:"20–22 Wenlock Road{br}London, N1 7GU{br}United Kingdom",footer_contact_berlin:"Berlin address",footer_contact_berlin_address:"Torstraße 220{br}10115 Berlin{br}Germany",footer_contact_support:"For platform support",footer_contact_business:"For business inquiries",footer_social_linkedin:"LinkedIn",footer_social_twitter:"Twitter",footer_social_facebook:"Facebook",footer_copyright:"Copyright © {currentYear} Apolitical Group Limited",header_skip:"Skip to main content",header_search_show:"Show search bar",header_search_hide:"Close search bar",header_menu_show:"Show navigation",header_menu_hide:"Close navigation",header_home_loggedOut:"Home",header_home_loggedIn:"My Home",header_topics:"Topics",header_topics_explore:"Explore",header_topics_explore_events:"Events",header_topics_explore_courses:"Courses","header_topics_explore_q-and-a":"Q&A",header_topics_explore_articles:"Articles",header_topics_topics:"Topics",header_topics_topics_climate:"Climate","header_topics_topics_cities-and-local-government":"Cities and local government","header_topics_topics_digital-and-data":"Digital and data",header_topics_topics_education:"Education","header_topics_topics_equity-justice-and-inclusion":"Equity, justice and inclusion","header_topics_topics_health-and-social-care":"Health and social care",header_topics_topics_innovation:"Innovation","header_topics_topics_leadership-and-skills":"Leadership and skills","header_topics_topics_life-in-government":"Life in government",header_topics_topics_policymaking:"Policymaking","header_topics_topics_transport-and-infrastructure":"Transport and infrastructure","header_topics_topics_work-and-the-economy":"Work and the economy",header_partners:"For partners",header_account:"My account",header_account_show:"Show account menu",header_account_hide:"Close account menu",header_account_profile:"My profile",header_account_settings:"Settings & privacy","header_account_log-out":"Log out",header_buttons_login:"Log in",header_buttons_signup:"Sign up",pageLayout_error:"An error occurred while rendering this page. Please refresh the page or try again later.",loadingBlock_loading:"Loading...",loadingBlock_almostDone:"Almost done...",loadingBlock_complete:"Complete!",progressBar:"{number}% loaded",inviteModal_title:"You’re registered",overlay_close:"Close",breadcrumbs_label:"Go back to:",breadcrumbs_currentPage:"Current page:",filters_all:"Show all",filters_disabled:"{name} - no results",languageSwitcher_label:"I would like to read this article in...",languageSwitcher_translation_original:"original language",languageSwitcher_translation_human:"translated by person",languageSwitcher_translation_machine:"translated by machine",languageSwitcher_selected:"{language} - currently selected",languageSwitcher_disclaimer:"This content is machine translated and will occasionally get gendered language or other direct translations wrong. We’re trying to resolve this but in the meantime, if you notice something very wrong, let us know at <link>{email}</link>",loadMore_button:"Load more",loadMore_endOfFeed:"You're all caught up",loadMore_error:"We're having trouble loading more content. Please refresh the page or try again later.",moreMenu:"See more options",navigationMenu_links_homepage:"Home",navigationMenu_links_events:"Events",navigationMenu_links_microcourses:"Courses","navigationMenu_links_q-and-a":"Q&A",navigationMenu_links_articles:"Articles",navigationMenu_profile:"My profile",shareLinks_label:"Share",shareLinks_link_linkedin:"Share on LinkedIn",shareLinks_link_twitter:"Share on Twitter",shareLinks_link_facebook:"Share on Facebook",shareLinks_link_email:"Share by email","shareLinks_link_clipboard-copy":"Copy the link",tags_community:"From the community",notFoundError_title:"We can't find that page",notFoundError_text:"Sorry about that. We all mess up sometimes - read some ‘fail’ stories below.",notFoundError_post_1:"Why public servants must learn to fail — and 3 tips for how to do it",notFoundError_post_2:"What failure has taught me",notFoundError_post_3:"How to learn from failure without causing a scandal",notFoundError_cta:"View more articles",collapsibleSection_summary:"Find out more",hideShowTextBox_hide:"View less",hideShowTextBox_show:"View more",markdown_collapsibleSection_summary:"Resources",markdown_skip_video:"Skip past video",markdown_skip_padlet:"Skip past interactive board",markdown_skip_poll:"Skip past poll",markdown_skip:"Skip to next section",markdown_iframe_title:"Course information",markdown_iframe_video:"Video",markdown_iframe_padlet:"Interactive board",markdown_iframe_poll:"Poll"},ks={languageSwitcher_label:"Me gustaría leer este artículo en...",languageSwitcher_translation_original:"idioma original",languageSwitcher_translation_human:"traducido por un humano",languageSwitcher_translation_machine:"traducido por máquina",languageSwitcher_disclaimer:"Este contenido fue traducido automáticamente y ocasionalmente tendrá errores de género u otras traducciones directas. Estamos intentando resolver este problema, pero mientras tanto, si notas algún error grave, escríbenos a <link>{email}</link>"},Ts={languageSwitcher_label:"Je voudrais lire cet article dans...",languageSwitcher_translation_original:"langue originale",languageSwitcher_translation_human:"traduit par un humain",languageSwitcher_translation_machine:"traduit par machine",languageSwitcher_disclaimer:"Ce contenu est traduit automatiquement et contiendra d’évantuelles erreurs de genre ou d’autres traductions directes. Nous essayons de résoudre ce problème, mais en attendant, si vous remarquez une erreur importante, faites-le nous savoir à <link>{email}</link>",collapsibleSection_summary:"En savoir plus"},Es={languageSwitcher_label:"Eu gostaria de ler este artigo em...",languageSwitcher_translation_original:"linguagem original",languageSwitcher_translation_human:"traduzido por um humano",languageSwitcher_translation_machine:"traduzido por máquina",languageSwitcher_disclaimer:"Este conteúdo foi traduzido automaticamente e, ocasionalmente, poderão ocorrer erros de linguagem de gênero ou outras traduções diretas. Estamos tentando resolver isso, porém se perceber algo errado por favor nos avise em <link>{email}</link>"},Ss=Object.freeze(Object.defineProperty({__proto__:null,en:Sn,es:ks,fr:Ts,pt:Es},Symbol.toStringTag,{value:"Module"})),Kr=e=>e in Sn,je=(e,t,n,r,s={})=>{let i="";return Kr(`${t}_${n}`)?i=e({id:`${t}_${n}`},s):i=e({id:t},{[r]:n,...s}),i},Cs=(e,t,n)=>{if(!e||e===0)return"0";t||(t=0),n||(n=["k","m","b","t"]);let r=e.toString();t=Math.pow(10,t);for(let s=n.length-1;s>=0;s--){const i=Math.pow(10,(s+1)*3);if(i<=e){e=Math.round(e*t/i)/t,e===1e3&&s<n.length-1&&(e=1,s++),r=`${e}${n[s]}`;break}}return r},vt=(e,t)=>_.Children.map(e,n=>Object.is(n,null)?n:_.cloneElement(n,{...t})),Qr=(e=0)=>{setTimeout(()=>{const t=document.querySelector(".splash-screen");t&&t.remove(),window.prerenderReady=!0},e)},$s=e=>e.replace(/\s+/g,"").length>0,re=({variant:e="primary",size:t="medium",styling:n={muted:!1,fullWidth:!1},icon:r=!1,href:s=!1,element:i="button",onClick:c=!1,className:o="",disabled:f=!1,screenreaderText:d=!1,children:u=!1,...l})=>{const h=Ze(typeof t=="object");if(typeof t=="object"&&typeof h=="number"){const v=Object.assign({},t),y=Vr(Object.keys(v));t=Yr(h,y,v)}const g=[];typeof t=="string"&&g.push(t),r&&(g.push("icon"),typeof r=="object"?(g.push(r.icon),r.position?g.push(r.position):g.push("left"),r.hover&&g.push(`hover_${r.hover}`),r.animate&&(g.push("animate"),typeof r.animate=="string"&&g.push(r.animate))):(g.push(r),!r.includes("right")&&!r.includes("left")&&g.push("left"))),n.muted&&g.push("muted"),n.fullWidth&&g.push("full-width");const b={...l,className:S(e,o,g,{"no-text":!u,disabled:f,button:s}),onClick:v=>{(!s||s[0]==="#")&&c&&(v.preventDefault(),v.stopPropagation()),c&&c(v)},disabled:typeof f=="object"&&"isClickable"in f?!f.isClickable:f};return s&&(i="a",b.href=s),_.createElement(i,b,u||(d?a.jsx(he,{showOnFocus:!1,children:d}):null))},at=({buttons:e,className:t="",...n})=>{const r=e.length>1?"ul":"p",s=e.map((i,c)=>r==="p"?a.jsx(re,{...i},c):a.jsx("li",{children:a.jsx(re,{...i})},c));return _.createElement(r,{className:S("button-wrapper",t),...n,children:s})};const Me=({className:e="",maxWidth:t=!1})=>{const n=t?{"--max-width":`${t/16}rem`}:{};return a.jsx("hr",{className:S(e,{"has-max-width":t}),style:n})},We=({href:e,children:t,fallbackElement:n,className:r="",onClick:s,gtmContext:i,gtmType:c,...o})=>{if(e){const f={...o};return s&&(f.onClick=s),i&&(f["data-gtm-event-context"]=i),c&&(f["data-gtm-event-type"]=c),a.jsx("a",{href:e,className:S("gtm-trackable",r),...f,children:t})}return n?_.createElement(n,{children:t,className:r,...o}):t},dr={card:{range:[{height:320,width:320},{height:425,width:687},{height:510,width:768}],sizes:"(min-width: 1024px) 720px, 30vw"},responsiveCard:{range:[{height:125,width:200},{height:188,width:300},{height:313,width:500}],sizes:"(min-width: 1024px) 720px, 30vw"},banner:{range:[{height:124,width:425},{height:320,width:768},{height:510,width:1368}],sizes:"(min-width: 1024px) 975px, 50vw"},feed:{range:[{height:270,width:124},{height:320,width:425},{height:425,width:687}],sizes:"(min-width: 1024px) 510px, 20vw"},fallback:{range:[{height:124,width:375},{height:320,width:687},{height:510,width:990}],sizes:"(min-width: 1024px) 885px, 35vw"},thumbnail:{range:[{height:124,width:124},{height:320,width:320},{height:510,width:510}],sizes:"(min-width: 1024px) 453px, 20vw"}},Ms=({aspect:e,range:t,sizes:n})=>{const{range:r,sizes:s}=e?dr[e]:dr.fallback;return{range:t&&t.length>0?t:r,sizes:n||s}},Ps=({format:e,height:t,query:n,width:r})=>{let s=`w=${r}&h=${t}`;return s=e?`${s}&fm=${e}`:s,s=n?`${s}&${n}`:s,s},Ht=({format:e,range:t,url:n,query:r})=>t.map(({height:s,width:i})=>`${n}?${Ps({format:e,height:s,query:r,width:i})} ${i}w`).join(", ");const Cn=({image:e,className:t,testId:n})=>{const{description:r,height:s,type:i,query:c,url:o,width:f,loading:d,decoding:u,fetchPriority:l}=e,{range:m,sizes:h}=Ms(e),g=Ht({format:"avif",query:c,range:m,url:o}),b=Ht({format:"webp",query:c,range:m,url:o}),v=Ht({format:"",query:c,range:m,url:o});return a.jsxs("picture",{className:t,children:[i!=="image/gif"&&a.jsx("source",{type:"image/avif",srcSet:g,sizes:h,"data-testid":"source"}),a.jsx("source",{type:"image/webp",srcSet:b,sizes:h,"data-testid":"source"}),a.jsx("img",{srcSet:v,sizes:h,src:o,alt:r,loading:d||"lazy",decoding:u||"async",fetchpriority:l||"auto",width:f,height:s,"data-testid":n||"image"})]})};let Je=!1;const Jr=({isOpen:e=!1,isLoading:t=!1,children:n})=>{const r=O.useIntl(),s=_.useRef(null),[i,c]=_.useState("hidden");_.useEffect(()=>{const f=s.current;if(f)return f.addEventListener("transitionend",o),()=>{f.removeEventListener("transitionend",o)}},[]);const o=({propertyName:f})=>{f==="opacity"&&(Je!==!1&&clearTimeout(Je),c(d=>d==="opening"?"open":d==="closing"?"closed":d==="closed"?"hidden":d))};return Ue(()=>{Je!==!1&&clearTimeout(Je);let f="open";e?c("opening"):(c("closing"),f="hidden"),Je=setTimeout(()=>{c(f)},300)},[e]),a.jsx("aside",{ref:s,className:S("tooltip text-medium",i,{loading:t}),hidden:i==="hidden",children:t?a.jsx("p",{children:r.formatMessage({id:"tooltip_loading"})}):typeof n=="string"?a.jsx("p",{children:n}):n})};const Ve=({children:e,className:t="",...n})=>a.jsx("section",{className:S("full-width-section",t),...n,children:e});const Rs=({text:e,buttons:t,className:n=""})=>{const r=[];return t.forEach(s=>{r.push({href:s.link,variant:"secondary",size:{mobile:"medium",1024:"large"},className:"gtm-trackable","data-gtm-event-type":"download-click","data-gtm-event-context":s.eventContext||"Download",target:"_blank",children:s.text})}),a.jsx(Ve,{className:S("download-section",n),children:a.jsxs(a.Fragment,{children:[_.createElement(typeof e=="string"?"h2":e.element,{className:"text"},typeof e=="string"?e:e.text),a.jsx(at,{buttons:r})]})})};const Ns=({title:e=!1,logos:t=[],className:n=""})=>{const r=t.length;if(r===0)return null;const s={element:typeof e=="object"?e.element:"h2",text:typeof e=="string"?e:typeof e=="object"?e.text:""};return a.jsxs("div",{className:S("logos",n),children:[e&&_.createElement(s.element,{className:"title"},s.text),a.jsx("ul",{className:S({"two-col":r===2||r===4,"three-col":r===5||r<=10&&r%3===0}),children:t.map(({logo:i,nameOfBusiness:c,link:o=!1,description:f=!1},d)=>{if(!i||!i.url)return null;const u=a.jsx("img",{src:i.url,width:i.width||"auto",height:i.height||"auto",alt:c});return a.jsxs("li",{children:[a.jsx("p",{className:"img-wrapper",children:o?a.jsx("a",{href:o,target:"_blank",rel:"nofollow noreferrer noopener",children:u}):u}),f&&a.jsx("small",{children:f})]},window.btoa(`${i.url}_${d}`))})})]})};const As=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],Fs=({className:e="",content:t,image:n,variant:r="default",spacing:s="normal",hideElements:i={eyebrow:!1,title:!1,text:!1},cta:c,children:o})=>{const f=["eyebrow","title","text"],d={eyebrow:"small",title:"h1",text:"p"},u={};return f.forEach(l=>{if(!t[l]){u[l]=!1;return}if(!i[l]){if(typeof t[l]=="object"){u[l]=t[l];const{text:m,element:h}=t[l];if(h&&As.includes(h.toLowerCase()))return;u[l]={text:m,element:d[l]};return}u[l]={text:t[l],element:d[l]}}}),c&&c.link&&c.link[0]==="#"&&(c.props||(c.props={}),c.props.onClick=l=>{l.preventDefault(),l.stopPropagation();const m=document.getElementById(c.link.substring(1));m&&m.scrollIntoView({behavior:"smooth"})}),a.jsx(Ve,{className:S("banner-section",r,s,e,{"has-image":n,"has-extra-spacing":s==="normal"&&u.eyebrow&&u.title}),children:a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"content-wrapper",children:[f.map(l=>{if(u[l]&&typeof u[l]=="object"){const{text:m,element:h=""}=u[l];return l==="text"?a.jsx(xt,{overrideType:"text-only",className:"text",children:m},l):_.createElement(h,{key:l,className:l},m)}return null}),o,c&&c.text&&c.link&&a.jsx(re,{variant:n||r==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:c.link,...c.props,children:c.text})]}),n&&a.jsx(Cn,{image:{...n,aspect:"banner"}})]})})},Os=_.memo(Fs);const Is=({variant:e="primary",button:t=null,title:n,text:r,gtmContext:s})=>!n&&!r?null:a.jsxs("aside",{className:S("marketing-block",e),children:[n&&a.jsx("p",{className:"title",children:n}),r&&a.jsx("p",{children:r}),t&&a.jsx(re,{variant:"secondary",size:"medium",href:t.link,className:"gtm-trackable","data-gtm-event-context":s,"data-gtm-event-type":"learn-more-click",children:t.text})]}),Xr=({showDevTools:e=!0,children:t})=>{const n=new fe.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:6e4}}});return a.jsxs(fe.QueryClientProvider,{client:n,children:[t,e&&a.jsx(cs.ReactQueryDevtools,{initialIsOpen:!1})]})};var Ls=_.createContext({client:_t});function Ds(e){var t=e.children,n=e.client,r=e.apiKey,s=e.options,i=_.useMemo(function(){return n&&r&&console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."),n&&s&&console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."),n||(r&&(_t.__loaded&&console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."),_t.init(r,s)),_t)},[n,r]);return _.createElement(Ls.Provider,{value:{client:i}},t)}const ea=({children:e,user:t})=>t.isLoading?null:process.env.REACT_APP_PUBLIC_POSTHOG_KEY?a.jsx(Ds,{apiKey:atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),options:{api_host:"/ph",autocapture:!1,disable_session_recording:!0,persistence_name:"flags",secure_cookie:!0,ui_host:"eu.posthog.com",bootstrap:{distinctID:t.id||"00000000-0000-0000-0000-000000000000",isIdentifiedID:!!t.id}},children:e}):e,ta=({children:e,locale:t,messages:n})=>{const r=t||"en",s={...Ss[r],...n||{}};return a.jsx(O.IntlProvider,{locale:r,messages:s,children:e})},Te=_.createContext({isLoading:!0});function Pt(){return _.useContext(Te)}const na=({children:e,user:t})=>a.jsx(Te.Provider,{value:t,children:e}),Bs=({bootstrap:e,children:t,intl:n})=>{const[r,s]=_.useState({isLoading:!0});return _.useEffect(()=>{e().then(i=>{s({...i,isLoading:!1}),Qr(5e3)}).catch(()=>s({isLoading:!1}))},[]),a.jsx(ta,{locale:n==null?void 0:n.locale,messages:n==null?void 0:n.messages,children:a.jsx(Tn.CookiesProvider,{children:a.jsx(na,{user:r,children:a.jsx(Xr,{children:a.jsx(ea,{user:r,children:t})})})})})},He="https://storage.googleapis.com/apolitical-assets/",De={general:"hello@apolitical.co",support:"concierge@apolitical.co","data-protection":{default:"dpo@apolitical.co",eu:"dpo.agl@apolitical.foundation"}},qs="200,000+";const $n=({label:e=!1,className:t="",children:n})=>{const r=O.useIntl();return a.jsxs("details",{className:S("collapsible-section",t),children:[a.jsx("summary",{children:e||r.formatMessage({id:"collapsibleSection_summary"})}),a.jsx("div",{className:"content",children:n})]})};const ke=({variant:e="primary",icon:t,className:n="",children:r,...s})=>{const i=t?{"--icon":`url(${He}icons/${t}.svg)`}:{};return a.jsx("div",{className:S("highlighted-text-box",e,n,{"has-icon":t}),style:i,...s,children:r})};const Fe=({variant:e="empty",text:t=!1,button:n=!1,className:r=""})=>{let s=n&&!!Object.keys(n).length;const i=typeof n=="object"&&"breakpoints"in n,c=Ze(i);if(i&&typeof n=="object"&&typeof c=="number"){const l=Object.assign({},n.breakpoints),m=Vr(Object.keys(l));s=Yr(c,m,l)}const{breakpoints:o,text:f="",component:d,...u}=n;return a.jsx(ke,{variant:"subtle",className:S("empty-state-box",e,r),children:a.jsxs(a.Fragment,{children:[t&&a.jsx($t,{options:{forceBlock:!0},children:t}),s&&typeof n=="object"&&(d||a.jsx(re,{...u,variant:n.variant?n.variant:"secondary",children:f}))]})})};const gn=({children:e,...t})=>a.jsx("p",{...t,children:e}),ra={q:gn,blockquote:gn};for(let e=1;e<=6;e++)ra[`h${e}`]={component:gn,props:{className:"title"}};const aa=({type:e="default",className:t="",heading:n=!1,children:r})=>a.jsxs("div",{className:S("helper-text-box text-small",e,t),children:[n&&a.jsx("p",{className:"title",children:n}),typeof r=="string"?a.jsx($t,{options:{wrapper:_.Fragment,forceBlock:!0,overrides:ra},children:r}):a.jsx("p",{children:r})]});const Us=({className:e="",show:t=!1,hide:n=!1,text:r,children:s})=>{const i=O.useIntl(),c=_.useRef(null),[o,f]=_.useState(""),[d,u]=_.useState("closed");_.useEffect(()=>{const h=c.current;if(h)return h.addEventListener("transitionend",l),()=>{h.removeEventListener("transitionend",l)}},[]),_.useEffect(()=>{if(!r||typeof r!="string")return;const h=r.split(`
36
36
  `);f(h.length<3?`${r.substring(0,400)}...`:h.slice(0,3).join(`
37
37
  `))},[r]),_.useEffect(()=>{d==="ready-to-close"&&u("closing")},[d]);const l=({propertyName:h})=>{h==="max-height"&&u(g=>g==="opening"?"open":g==="closing"?"closed":g)};if(!r)return null;const m=["opening","open"].includes(d);return a.jsxs(ke,{variant:"subtle",className:S("hide-show-text-box",e),children:[a.jsxs("div",{ref:c,className:S("content",d),children:[a.jsx($t,{options:{forceBlock:!0},children:d==="closed"?o:r}),d!=="closed"&&s]}),a.jsx("p",{className:"cta",children:a.jsx(re,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:S({"rotate-180":m}),onClick:()=>{u(m?"ready-to-close":"opening")},children:m?n||i.formatMessage({id:"hideShowTextBox_hide"}):t||i.formatMessage({id:"hideShowTextBox_show"})})})]})},Ne=()=>_.Fragment,Hs=({children:e})=>a.jsx(ke,{variant:"secondary",children:e}),zs=["span","strong","h1","h2","h3","h4","h5","h6","p"],ur=({children:e})=>{const t=O.useIntl();if(!e)return null;let n=t.formatMessage({id:"markdown_collapsibleSection_summary"});const r=[];for(const i of _.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number"))if(_.isValidElement(i)&&i.type==="summary"){if(i.props&&i.props.children){for(const c of _.Children.toArray(i.props.children))if(!(!c||typeof c=="string"||typeof c=="number")&&_.isValidElement(c)){const o=c.type;if(zs.includes(o)){for(n=c.props.children;typeof n!="string"&&(Array.isArray(n)&&n[0].props&&n[0].props.children&&n[0].props.children[0]);)n=n[0].props.children[0];break}}}}else r.push(i);const s=n?n.toString():"";return a.jsx($n,{label:s,className:["Sources","Resources"].includes(s)?"discrete-links":"",children:r.map(i=>i)})},fr=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return a.jsx(ke,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return a.jsx(ke,{variant:"primary",children:e});case"pink-textbox":return a.jsx(ke,{variant:"tertiary",children:e});default:return a.jsx("div",{...t,children:e})}return a.jsx("div",{...t,children:e})},Zs=e=>{const t=O.useIntl(),n=Date.now().toString();let r="default";const s=e.src;return s.includes("youtube")||s.includes("vimeo")?r="video":s.includes("riddle")||s.includes("sli.do")?r="poll":s.includes("padlet")&&(r="padlet"),a.jsxs(a.Fragment,{children:[a.jsx(he,{children:a.jsx("a",{href:`#content-after-iframe-${n}`,children:t.formatMessage({id:`markdown_skip${r==="default"?"":`_${r}`}`})})}),a.jsx("iframe",{...e,title:t.formatMessage({id:`markdown_iframe${r==="default"?"":`_${r}`}`})}),a.jsx("span",{id:`content-after-iframe-${n}`,tabIndex:-1})]})},mr=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},pr=({children:e,...t})=>{let n={...t};t.href&&(t.href.includes("http:")||t.href.includes("https:"))&&!t.target&&(n.target="_blank");let r=e,s=!1;for(const i of _.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number")&&_.isValidElement(i)){const c=i.type;if(["button","center","span","strong"].includes(c)&&i.props&&i.props.children&&i.props.children[0])for((c==="button"||mr(i.props.children[0])==="button")&&(s=!0),r=i.props.children[0];r&&typeof r!="string"&&!(typeof r=="boolean"||typeof r=="number"||!_.isValidElement(r));)if(r.props&&r.props.children&&r.props.children[0])r=r.props.children[0],r&&mr(r)==="button"&&(s=!0);else break}return s?(n={...n,className:"button primary medium"},a.jsx("p",{className:"center",children:a.jsx(re,{variant:"primary",size:"medium",...n,children:r})})):a.jsx("a",{...n,children:r})},sa=({children:e})=>a.jsx("span",{children:e});const Ws={default:{a:pr,CollapsibleSection:$n,TextBox:ke,CaseStudy:Hs,style:Ne,details:ur,div:fr,iframe:Zs},"text-only":{a:pr,details:ur,div:fr,TextBox:ke,style:Ne,CollapsibleSection:Ne,CaseStudy:Ne,blockquote:Ne,iframe:Ne,button:Ne}},xt=({className:e="",options:t={},children:n,overrideType:r="default"})=>{n=n.replace(/^<br\/?>/,"");const s={wrapper:_.Fragment,forceBlock:!0,overrides:Ws[r]};return a.jsx("div",{className:S("markdown-text",e),children:a.jsx($t,{options:{...s,...t},children:n})})};const ia=({maxWidth:e=!1,title:t,subtitle:n,children:r,className:s=""})=>{const i=e?{"--max-width":`${e/16}rem`}:{};return a.jsxs("section",{className:S("page-heading",s),children:[a.jsxs("div",{className:S("content",{"has-max-width":e}),style:i,children:[t&&t.text&&_.createElement(t.element||"h1",{className:"title"},t.text),n&&n.text&&_.createElement(n.element||"h2",{className:"text-medium"},n.text)]}),r]})};const nt=({size:e="medium",variant:t="default",className:n="",children:r,...s})=>a.jsx("span",{className:S("pill",e,t,n),...s,children:r});const wt=({element:e="p",children:t=null,className:n="",...r})=>_.createElement(e,{...r,className:S("status-banner text-small",n),"aria-live":"assertive"},t);const Vs=({progress:e=0,text:t=!1,className:n=""})=>{const r=O.useIntl(),s=e>75?100:e>50?75:e>25?50:e>5?25:0,i={"--progress":`${e}%`};return a.jsx("span",{className:S(`progress-bar section-${s}`,n),style:i,children:a.jsx(he,{children:t?`${e} ${t}`:r.formatMessage({id:"progressBar"},{number:e})})})},oa=_.memo(Vs);const zt="loadingBlock_",Ys=({progress:e=0,steps:t=!1,className:n=""})=>{const r=O.useIntl();t||(t={0:{text:r.formatMessage({id:`${zt}loading`})},75:{text:r.formatMessage({id:`${zt}almostDone`})},100:{text:r.formatMessage({id:`${zt}complete`})}});let s=null;const i=Object.keys(t);for(let o=0;o<i.length&&!(e<parseInt(i[o]));o++)s=i[o];const c=s&&t[s].icon?{"--icon":`url(${He}icons/${t[s].icon}.svg)`}:{};return a.jsxs(ke,{className:S("loading-block",n,{"has-icon":s&&t[s].icon}),variant:"subtle",style:c,children:[s&&a.jsx("span",{className:"step",children:t[s].text}),a.jsx(oa,{progress:e})]})},Gs=_.memo(Ys);const ye=({element:e="div",className:t="",...n})=>a.jsx(Mt,{element:e,className:S("loading-placeholder",t),...n});const _n={header:["logo","link","link","search"],sidebar:["text","text","text","text","text"],"cards-section":["subtitle","cards"],heading:["title"],cards:["card","card","card","card"],carousel:["cards","controls"],"carousel-with-title":["title","cards","controls"],"overview-page":["header","sidebar","title","text","cards-section","cards-section","footer"]},ca=(e,t)=>e in _n?a.jsx("div",{className:e,children:_n[e].map((n,r)=>ca(n,r))},t):a.jsx(ye,{className:e},t),Mn=({layout:e="overview-page",...t})=>a.jsx("div",{className:S("loading-state",e),...t,children:_n[e].map((n,r)=>ca(n,r))}),la=e=>{const t=e&&e.toUpperCase().split(" ");return Array.isArray(t)&&t.length>1&&t[0]!==""?t[1]===""?t[0][0]:t[0][0]+t[t.length-1][0]:e?e.substr(0,1):""},ct=["#5AB6A3","#A2D7AF","#806056","#3962B3"],Ks=e=>{const t=Math.ceil(26/ct.length),n=la(e).toLowerCase();if(n==="")return ct[0];const r=n.charCodeAt(0)-96;for(let s=0;s<ct.length;s++)if(r<=t*(s+1))return ct[s]};const hr=256,Ye=({className:e="",src:t="",name:n,alt:r,width:s=hr,height:i=hr,...c})=>{const[o,f]=_.useState(!1),d=_.useRef(null);_.useEffect(()=>{const l=d.current;if(!l)return;const m=l.getContext("2d");if(!m)return;const h=s,g=i;typeof window<"u"&&window.devicePixelRatio&&(l.width=h*window.devicePixelRatio,l.height=g*window.devicePixelRatio,m.scale(window.devicePixelRatio,window.devicePixelRatio)),m.fillStyle=Ks(n),m.fillRect(0,0,h,g),m.font=`${h/3}px Arial`,m.textAlign="center",m.fillStyle="white",m.fillText(la(n),h/2,g/1.6)},[n]);let u=!1;return t&&t!==""&&!o&&(t.includes("http")||t.includes("//"))&&(u=!0),a.jsx("figure",{className:S("profile-picture",e,{error:o}),...c,children:u?a.jsx("img",{src:t,alt:r||n,onError:()=>{f(!0)},width:s,height:i}):a.jsx("canvas",{ref:d})})},Pn=e=>e==="apolitical"?{image:`${He}logos/member_apolitical.svg`}:e==="community"||typeof e=="object"&&!e.name?{image:`${He}logos/member_community.svg`}:{name:e.name,role:e.jobTitle||"",organisation:e.organization||"",country:e.location&&e.location.country||"",url:`/profiles/${e.id}`,image:e.image&&e.image.thumbnail},Qs=({role:e="",organisation:t="",country:n="",maximumCharacters:r=80})=>{const s=e!=="",i=t!=="",c=n!=="";if(!s&&!i&&!c)return"";const o=`${e}${s&&i?` — ${t}`:t}`;let f=`${o}${(s||i)&&c?`, ${n}`:n}`;return f.length>r&&(f=o),f.length>r&&(f=qe(f,r)),f};const Rt=({element:e="div",member:t="community",additionalContent:n=!1,gtmContext:r="member",gtmType:s="member-click",className:i=""})=>{const c=O.useIntl(),o=Pn(t);o.name||(o.name=c.formatMessage({id:`member_${typeof t=="string"?t:"community"}`}));const{name:f,url:d,image:u}=o,l=Qs(o),m=n&&n.createdAt?hn(n.createdAt):!1,h=n&&n.createdAt?Gr(n.createdAt):"";return _.createElement(e,{className:S("member text-medium",i),children:a.jsxs(We,{href:d,gtmType:s,gtmContext:r,onClick:g=>{g==null||g.stopPropagation()},children:[a.jsx(Ye,{name:f,src:u}),a.jsxs("p",{className:"details",children:[a.jsx("strong",{children:f}),n&&a.jsxs("span",{className:"additional-content",children:[n.createdAt&&m&&a.jsx("span",{className:"date",title:h,"aria-label":h,children:c.formatMessage({id:`dates_${m.path}`},{number:m.number})}),n.didEdit&&a.jsx("em",{children:c.formatMessage({id:"discussion_edited"})})]}),l&&a.jsx("small",{children:l})]})]})})};const gr={small:24,medium:48},Rn=({element:e="div",contributors:{total:t,data:n}={total:void 0,data:[]},styling:{showText:r,size:s,showGap:i,showPlaceholders:c}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:o=2,className:f="",...d})=>{const u=O.useIntl();return!n||n.length===0?null:_.createElement(e,{...d,className:S("contributors",f,s,{"has-gap":i}),children:a.jsxs(a.Fragment,{children:[a.jsx("ul",{children:n.map((l,m)=>{let h,g="";if(m<o){const{name:b="",image:v=""}=Pn(l);if(c)return a.jsx(ye,{element:"li",className:"contributor"},m);h=a.jsx(Ye,{name:b,src:v,width:gr[s||"medium"],height:gr[s||"medium"]})}else if(m===o){const b=(t||n.length)-o;h=a.jsxs("small",{className:S({"large-number":b>99}),children:["+",Cs(b,0)]}),g="number-left"}return h?a.jsx("li",{className:S("contributor",g),children:h},m):null})}),r&&a.jsx("span",{className:"label",children:typeof r=="string"?r:n.length===1?typeof n[0]=="string"?u.formatMessage({id:`member_${n[0]}`}):qe(n[0].name||"",20):null})]})})},Js=({type:e,data:t})=>{const n=O.useIntl(),{answers:r,createdAt:s,dateHasPassed:i,isOngoingEvent:c,pill:o,readingTime:f,publishedDate:d,startDate:u}=t;if(e==="question"){const l=s&&hn(s);return a.jsxs("p",{className:"details answers","data-testid":"question-answers",children:[n.formatMessage({id:"card_answers"},{number:r}),s&&a.jsxs("span",{"data-testid":"question-created-at",children:[" ","·"," ",n.formatMessage({id:"card_time_ago"},{time:l?n.formatMessage({id:`dates_${l.path}`},{number:l.number}):0})]})]})}if(u&&!i||c)return a.jsx("p",{className:"details",children:c?n.formatMessage({id:"card_bootcamp"}):Gr(u)});if(o)return a.jsx(nt,{variant:o==="free"?"subtle":"highlighted",className:o,"data-testid":"course-type",children:o});if(f||d){const l=d&&hn(d);return a.jsxs("ul",{className:"details",children:[f&&a.jsx("li",{"data-testid":"reading-time",children:n.formatMessage({id:"card_time_read"},{time:f})}),d&&a.jsx("li",{"data-testid":"published-date",children:n.formatMessage({id:"card_time_ago"},{time:l?n.formatMessage({id:`dates_${l.path}`},{number:l.number}):0})})]})}return null},jt={customCard:{className:"custom",gtmEvent:"custom",length:{text:335,secondaryText:150}},event:{basePath:"/events/",className:"event",gtmEvent:"event"},microcourse:{basePath:"/microcourses/en/",className:"course",gtmEvent:"microcourse-overview"},solutionArticle:{basePath:"/solution-articles/en/",className:"article",length:{title:60},gtmEvent:"article"},qaQuestion:{basePath:"/questions-answers/",className:"question",length:{title:190},gtmEvent:"q-and-a-question"},listPage:{basePath:"/list/en/",className:"list",gtmEvent:"list"},people:{basePath:"/profiles/",className:"people",length:{people:1e3},gtmEvent:"person"},learningHub:{basePath:"/learning-hub/",className:"learning-hub",length:{title:190},gtmEvent:"learning-hub"}},Xs=({data:e,cta:t,link:n,gtmContext:r})=>{var g;const s=O.useIntl(),[i,c]=_.useState({loading:!1,registered:e.registered||!1});_.useEffect(()=>{e.registered&&c(b=>({...b,registered:!0}))},[e.registered]);const{startDate:o,dateHasPassed:f,pill:d,slug:u}=e,l=e.contentType;let m="";if((g=jt[l])!=null&&g.gtmEvent&&(m=jt[l].gtmEvent),o&&f)return a.jsx("a",{href:n,className:"details additional-link gtm-trackable","data-gtm-event-context":`${r}-CarouselCard`,"data-gtm-event-type":`${m}-click`,children:s.formatMessage({id:"card_watch"})});if(l==="people")return a.jsx(re,{variant:"tertiary",size:"small",href:n,className:"gtm-trackable","data-gtm-event-context":`${r}-Card-Button`,"data-gtm-event-type":`${m}-click`,children:s.formatMessage({id:"card_cta_people"})});const h=["microcourse","event"];if(t&&t.onClick&&h.includes(l)&&d!=="premium"){const b=i.loading||i.registered,v=async y=>{if(y.preventDefault(),y.stopPropagation(),!(b||!t||!t.onClick)){c(x=>({...x,loading:!0}));try{const x=await t.onClick(e);c(x==="success"?()=>({registered:!0,loading:!1}):k=>({...k,loading:!1}))}catch{c(k=>({...k,loading:!1}))}}};return a.jsx(re,{onClick:v,className:"gtm-trackable",size:"small",styling:{fullWidth:!0},disabled:b,"data-gtm-event-context":`${r}Page-${l}: ${u}`,"data-gtm-event-type":`${r}-${l}-register-click`,"data-testid":"in-card-button",children:s.formatMessage({id:`card_cta_${l}${b?`_${i.loading?"loading":"done"}`:""}`})})}return null},_r={cube:"box",graduationCap:"graduation-cap",person:"user",speech:"speech-bubble_round",star:"star_empty_thin"},ei=e=>{let t=e;return Object.keys(_r).includes(e)&&(t=_r[e]),`url(${He}icons/${t}.svg)`};const ti={title:66,text:3e3,secondaryText:1e3,partner:25},Nn=({id:e="",card:t,buildCardData:n,cta:r,gtmContext:s="Carousel",className:i=""})=>{const c=O.useIntl(),o=_.useContext(Te),f=o&&typeof o.id=="string",[d,u]=_.useState({data:null,isLoading:!0}),{data:l,isLoading:m}=d,h=_.useCallback(()=>{n(t,f).then(V=>{u(()=>({data:V,isLoading:!1}))}).catch(()=>u(V=>({...V,isLoading:!1})))},[e]);if(_.useEffect(()=>{h()},[]),m||!l)return a.jsx(ye,{element:"li",className:"card-wrapper","data-testid":"card-placeholder"});const{contentType:g}=l;if(!g||!jt[g])return a.jsx(ye,{element:"li",className:"card-wrapper"});const{basePath:b="",className:v,length:y,gtmEvent:x}=jt[g],k=Kr(`card_label_${g}`)?c.formatMessage({id:`card_label_${g}`}):!1,j=l.slug?`${b}${l.slug}`:!1,w={...ti,...y};let N={className:"card"};j&&(N={href:j,className:"card gtm-trackable","data-gtm-event-context":`${s}-CarouselCard`,"data-gtm-event-type":`${x}-click`,"data-testid":"link"},l.openInNewTab&&(N.target="_blank"));const L=l.customIcon?{"--custom-icon":ei(l.customIcon)}:{};return a.jsx("li",{className:S("card-wrapper text-medium",v,i,{"has-link":j,"no-link":!j,"has-custom-icon":l.customIcon,"has-image":l.banner}),style:L,"data-testid":`${g}-card`,children:_.createElement(j?"a":"div",N,a.jsxs(a.Fragment,{children:[(l.customLabel||k)&&a.jsx("small",{className:S("card-label text-small",v),children:l.customLabel||k}),l.startDate&&!l.isOngoingEvent&&a.jsx(nt,{size:"small",variant:l.dateHasPassed?"default":"information","data-testid":"date",children:l.dateHasPassed?c.formatMessage({id:"card_ended"}):xs(l.startDate)}),l.banner?a.jsxs("p",{className:"img",children:[l.registered&&a.jsx(nt,{size:"small",variant:"registered",children:c.formatMessage({id:"card_registered"})}),a.jsx(Cn,{image:l.banner})]}):v==="people"?a.jsx(Ye,{name:l.title||"",src:l.profile,"data-testid":"people-profile-picture"}):null,l.contributors&&a.jsx(Rn,{contributors:{data:l.contributors},styling:{size:"small",showGap:v!=="question",showText:!0},"data-testid":"contributors"}),l.partner&&a.jsx("p",{className:"partners","data-testid":"partners",children:qe(l.partner.title,w.partner)}),["title","text","secondaryText"].map(V=>{const A=l[V];if(!A)return null;const I=ys(V);return a.jsx("p",{className:I,"data-testid":I,children:qe(A,w[V])},V)}),a.jsx(Js,{type:v||"",data:l}),a.jsx(Xs,{data:l,cta:r,link:j||"",gtmContext:s})]}))})};const da=({cards:e,cardTypes:t,className:n="",...r})=>a.jsx("ul",{className:S("card-block",n),children:e.map((s,i)=>{const c=s.slug?`${s.slug}-${t[i]}`:`${t[i]}-${i}`;return a.jsx(Nn,{id:c,card:{...s,contentType:t[i]},...r},c)})}),ni=(e,t,n,r)=>{const s=t*n<=e,i=e<t*(n+1),c=r.includes(Math.floor(e/t));return s&&i||c},ri=({id:e,title:t})=>{const n=O.useIntl();if(!t||!t.text)return null;const{text:r,element:s="h2",variant:i="default",size:c="medium",link:o}=t;return _.createElement(s,{className:S("title",i,c,{"highlighted-title":i==="highlighted"}),children:a.jsxs(a.Fragment,{children:[r,o&&a.jsx("a",{href:o,className:"text-medium gtm-trackable","data-gtm-event-context":"CarouselViewAll","data-gtm-event-type":`${e||window.btoa(r)}-view-all-click`,children:n.formatMessage({id:"card_carousel_viewAll"})})]})})};const Zt={fourCards:1024,threeCards:769,twoCards:480};let lt=null;const ai=({id:e,cards:t,cardTypes:n,buildCardData:r,title:s,className:i,gtmContext:c})=>{var V;const o=O.useIntl(),[f,d]=_.useState({cardsPerPage:4,isLoading:!0}),{cardsPerPage:u,isLoading:l}=f,[m,h]=_.useState({currentPage:0,loadedPages:[0]}),{currentPage:g,loadedPages:b}=m,v=t.length,y=Math.ceil(v/u),x=_.useRef(null),k=Ze(!0,!0,x==null?void 0:x.current);_.useEffect(()=>{let A=1;k&&(k>=Zt.fourCards?A=4:k>=Zt.threeCards?A=3:k>=Zt.twoCards&&(A=2),A>v&&(A=v)),d(I=>({...I,cardsPerPage:A,isLoading:!1}))},[k,v]);const j=(A="next")=>{let I=g;if(typeof A=="string")if(A==="next")if(g<y-1)I=g+1;else return;else if(g>0)I=g-1;else return;else I=A;h(P=>({...P,currentPage:I,loadedPages:[...new Set([...b,I])]}))},w=A=>{lt=A.touches[0].clientX},N=A=>{if(lt===null)return;const I=A.touches[0].clientX,P=lt-I;P>5?j("next"):P<-5&&j("previous"),lt=null},L={"--width":`${((V=x==null?void 0:x.current)==null?void 0:V.offsetWidth)||0}px`,"--total-cards":v,"--cards-per-page":u,"--page":g};return l?a.jsx(Mn,{layout:`carousel${s?"-with-title":""}`}):a.jsxs("section",{ref:x,className:S("carousel-wrapper",i),"data-testid":"carousel",children:[a.jsx(ri,{id:e,title:s}),a.jsx("ul",{className:"carousel",onTouchStart:w,onTouchMove:N,style:L,"data-testid":"carousel-list",children:t.map((A,I)=>{let P=A&&A.sys&&A.sys.id?`${e}-card-${A.sys.id}`:null;return P&&ni(I,u,g,b)?a.jsx(Nn,{id:P,card:{...A,contentType:n[I]},buildCardData:r,gtmContext:c},P):(P=P||`${e}-card-${I}`,a.jsx(ye,{element:"li",className:"card-wrapper","data-testid":"card-placeholder"},P))})}),y<=1?null:a.jsxs("ul",{className:"controls","data-testid":"carousel-controls",children:[a.jsx("li",{className:"arrow previous",children:a.jsx(re,{variant:"secondary",size:"large",icon:{icon:"chevron_left"},onClick:A=>{A.preventDefault(),A.stopPropagation(),j("previous")},screenreaderText:o.formatMessage({id:"carousel_pagination_previous"}),disabled:g<=0})}),[...Array(y)].map((A,I)=>a.jsx("li",{"data-testid":"carousel-controls-button",children:a.jsx("button",{className:S("page-indicator",{selected:I===g}),onClick:P=>{P.preventDefault(),P.stopPropagation(),j(I)},children:a.jsx(he,{showOnFocus:!1,children:o.formatMessage({id:"carousel_pagination_page"},{number:I+1,total:y})})})},`page-indicator-${I}`)),a.jsx("li",{className:"arrow next",children:a.jsx(re,{variant:"secondary",size:"large",icon:{icon:"chevron_right"},onClick:A=>{A.preventDefault(),A.stopPropagation(),j("next")},screenreaderText:o.formatMessage({id:"carousel_pagination_next"}),disabled:g>=y-1})})]})]})},si=({carousels:e=[],isLoading:t,title:n,className:r="",...s})=>!e||!e.length?null:e.map(({title:i,viewAllUrl:c,cards:o,cardsTypes:f},d)=>{const u=i?window.btoa(i):`carousel-${d}`,l=d===e.length-1;return t?a.jsxs(_.Fragment,{children:[a.jsx(Mn,{layout:`carousel${i?"-with-title":""}`,"data-testid":"carousel-placeholder"}),l?null:a.jsx(Me,{})]},`placeholder-${u}`):a.jsxs(_.Fragment,{children:[a.jsx(ai,{cards:o,cardTypes:f,title:{...n,text:i,link:c},...s}),l?null:a.jsx(Me,{})]},`carousel-${u}`)});const Wt="joinCommunityButton",An=({isMember:e=!1,isShort:t=!1,functions:{join:n,leave:r}={join:()=>{},leave:()=>{}}})=>{const s=O.useIntl(),i=_.useContext(Te),c=i&&typeof i.id=="string",[o,f]=_.useState(e),[d,u]=_.useState(e?"joined":"notJoined");_.useEffect(()=>{d==="joining"?u("joined"):d==="leaving"&&u("notJoined")},[o]);const l={},m={};return o&&d!=="leaving"&&(l["data-hover-text"]=s.formatMessage({id:`${Wt}_leave`}),l["aria-label"]=s.formatMessage({id:`${Wt}_member_aria`}),m["aria-hidden"]="true"),a.jsx(re,{variant:o?"secondary":"primary",size:"medium",styling:{fullWidth:!0},icon:o&&d!=="leaving"?{icon:"tick",position:"left"}:!1,onClick:async h=>{c&&(h.currentTarget.blur(),o?(u("leaving"),typeof r=="function"&&await r()):(u("joining"),typeof n=="function"&&await n()),f(!o))},className:S("join-community-button",d,{active:d==="joining"}),disabled:!c,...l,children:a.jsx("span",{className:"text",...m,children:s.formatMessage({id:`${Wt}${["joining","leaving"].includes(d)?`_${d}`:o?"_member":t?"_short":""}`})})})};const Vt="communityDetails_",ii=({className:e="",isMember:t=!1,slug:n,members:{number:r=0,data:s=[]}={number:0,data:[]},functions:{invite:i,...c}})=>{const o=O.useIntl(),f=5,d=r||s.length,u=s.length?s:Array(f).fill({}),l=`/communities/${n}/members`===window.location.pathname;return a.jsxs("div",{className:S("community-details",e),children:[a.jsx(Me,{}),a.jsxs("div",{className:"member-details",children:[a.jsxs("div",{className:"top",children:[a.jsxs("h4",{children:[o.formatMessage({id:`${Vt}members`}),a.jsx("span",{className:"count",children:d})]}),!l&&a.jsx("p",{className:"text-small",children:a.jsx("a",{href:`/communities/${n}/members`,children:o.formatMessage({id:`${Vt}viewAll`})})})]}),a.jsx(Rn,{contributors:{total:r,data:u},styling:{size:"medium",showGap:!0,showPlaceholders:d===0},cutoff:f})]}),a.jsx(An,{isMember:t,functions:{...c}}),t&&a.jsx(re,{variant:"primary",onClick:i,icon:{icon:"plus"},styling:{fullWidth:!0},children:o.formatMessage({id:`${Vt}invite`})})]})};const oi=({breadcrumbs:e,cutoff:t=20,className:n=""})=>{const r=O.useIntl();return a.jsxs(a.Fragment,{children:[a.jsx(he,{element:"p",children:r.formatMessage({id:"breadcrumbs_label"})}),a.jsx("ul",{className:S("breadcrumbs text-small",n),children:e.map(({text:s,href:i,current:c=!1},o)=>a.jsxs("li",{children:[c&&a.jsx(he,{element:"span",children:r.formatMessage({id:"breadcrumbs_currentPage"})}),a.jsx(We,{href:c?void 0:i,children:qe(s,t)})]},`${window.btoa(s)}_${o}`))})]})};const ci=({options:e,allOption:t=!1,allowMultiple:n=!0,onChange:r=()=>{},className:s=""})=>{const i=O.useIntl(),c=t?[{id:"all",text:typeof t!="boolean"&&t.text||i.formatMessage({id:"filters_all"})},...e]:e,[o,f]=_.useState(t?["all"]:[]),d=(u,l)=>{let m=[];o.includes(u)?m=o.filter(h=>h!==u):u==="all"?m=["all"]:n?m=[...o.filter(h=>h!=="all"),u]:m=[u],f(h=>(r&&typeof r=="function"&&r({current:m,previous:h}),m)),l&&typeof l=="function"&&l()};return a.jsx("ul",{className:S("filters",s),children:c.map(({id:u,text:l,disabled:m=!1,callback:h=()=>{}})=>{let g={};return m&&(g={disabled:!0,"aria-label":i.formatMessage({id:"filters_disabled"},{name:l})}),a.jsx("li",{children:a.jsx("button",{className:S(u,{selected:o.includes(u)}),onClick:b=>{b.preventDefault(),b.stopPropagation(),d(u,h)},...g,children:l})},u)})})},li=(e,t)=>{const n=String(e);if(!t||!t.length)return`/${n}`;let r="";return t.forEach(({url:s,position:i})=>{i==="before-lang"?r+=`/${s}`:(r.includes(`/${n}/`)||(r+=`/${n}`),r+=`/${s}`)}),r.includes(`/${n}/`)||(r+=`/${n}`),r};const Yt={en:"English",es:"Español",fr:"Français",pt:"Português"},dt="languageSwitcher_",di=({currentLanguage:e,isOriginalLanguage:t=!1,isHumanTranslation:n=!1,translations:r,onChange:s=()=>{},urlParts:i,variant:c="default",label:o,className:f=""})=>{const d=O.useIntl(),[u,l]=_.useState(e);if(_.useEffect(()=>{e!==u&&l(e)},[e]),!r||!Object.values(r).some(b=>b&&b.post_name))return null;const h=Object.keys(r),g=u!==e;return a.jsxs("div",{className:S("language-switcher text-small",c,f),children:[a.jsxs("nav",{children:[c!=="short"&&a.jsx("p",{children:o||d.formatMessage({id:`${dt}label`})}),a.jsx("ul",{children:h.map(b=>{if(!Yt[b])return null;let v={className:b};return u===b?v["aria-label"]=d.formatMessage({id:`${dt}selected`},{language:Yt[b]}):v={...v,href:li(b,i),onClick:y=>{y.preventDefault(),y.stopPropagation(),l(b),s(b)}},a.jsx("li",{children:a.jsx(We,{...v,fallbackElement:"span",children:Yt[b]})},b)})}),c!=="short"&&!g&&a.jsx("p",{children:d.formatMessage({id:`${dt}translation_${t?"original":n?"human":"machine"}`})})]}),c!=="short"&&!g&&!t&&!n&&a.jsx("small",{children:d.formatMessage({id:`${dt}disclaimer`},{email:De.support,link:b=>{const v=`mailto:${b}`;return a.jsx("a",{href:v,children:b})}})})]})};const Gt=O.createIntl({locale:"en",messages:Sn}),st=({hasNextPage:e=!0,loadNextPage:t=()=>{},variant:n="secondary",size:r="medium",styling:s={muted:!1,fullWidth:!1},icon:i=!1,messages:c={button:Gt.formatMessage({id:"loadMore_button"}),endOfFeed:Gt.formatMessage({id:"loadMore_endOfFeed"}),error:Gt.formatMessage({id:"loadMore_error"})},className:o="",gtmContext:f="LoadMore"})=>{const[d,u]=_.useState(""),l=async m=>{try{await t(m)}catch(h){h instanceof Error?u(h.message):u("Unknown error")}};return!d&&!e&&!c.endOfFeed?null:a.jsx("footer",{className:S("load-more",o),children:!d&&e?a.jsx(re,{variant:n,size:r,styling:s,icon:i,onClick:l,"data-gtm-event-context":f,"data-gtm-event-type":"load-more-click",className:"gtm-trackable","data-testid":"load-more-button",children:c.button}):c.endOfFeed&&(!d||d!=null&&d.includes("Cannot read items"))?a.jsx("p",{children:c.endOfFeed}):d&&a.jsx("p",{className:"error",children:c.error})})};const Fn=({variant:e="default",version:t="default",className:n="",...r})=>a.jsx("p",{className:"logo-wrapper",children:a.jsx("a",{href:"/home/",className:S("logo",e,t,n),...r,children:a.jsx(he,{children:a.jsx(O.FormattedMessage,{id:"apolitical"})})})});let ut=!1;const ua=({element:e="div",id:t="more-menu",options:n,className:r=""})=>{const s=O.useIntl(),i=_.useRef(null),[c,o]=_.useState(!1),f=d=>{i.current&&d.target instanceof HTMLElement&&!i.current.contains(d.target)&&o(!1)};return _.useEffect(()=>(document.addEventListener("click",f,!0),()=>{document.removeEventListener("click",f,!0)})),_.createElement(e,{ref:i,className:S("more-menu text-medium",r),children:a.jsxs(a.Fragment,{children:[a.jsx(re,{variant:"tertiary",size:"medium",icon:{icon:"ellipsis"},onClick:()=>o(!c),"aria-haspopup":"true","aria-expanded":c,"aria-controls":t,screenreaderText:s.formatMessage({id:"moreMenu"})}),a.jsx("ul",{id:t,hidden:!c,children:n.map(({href:d,onClick:u,text:l,icon:m,...h},g)=>{const b={...h,onClick:v=>{o(!1),typeof u=="function"&&u(v)},onFocus:()=>{ut&&(clearTimeout(ut),ut=!1)},onBlur:()=>{ut=setTimeout(()=>{o(!1)},100)}};return d&&(b.href=d),a.jsx("li",{children:a.jsx(re,{variant:"tertiary",size:"medium",icon:m?{icon:m,position:"left"}:!1,...b,children:l})},`${window.btoa(l)}_${g}`)})})]})})},ui=(e,t=!1)=>t?e.replaceAll("/","")===t:typeof window<"u"&&window.location&&window.location.pathname===e;const fi=[{key:"homepage",href:"/home/"},{key:"events",href:"/events/"},{key:"microcourses",href:"/microcourses/"},{key:"articles",href:"/solution-articles/"}],fa=({activeLink:e})=>{const t=O.useIntl(),n=_.useContext(Te),r=n&&typeof n.id=="string";return a.jsxs("ul",{id:"navigation-menu",className:"text-medium",children:[fi.map(({key:s,href:i})=>a.jsx("li",{className:S(s,{active:ui(i,e)}),children:a.jsx("a",{href:i,"data-gtm-event-type":`${s}-click`,"data-gtm-event-context":"NavigationMenu",className:"gtm-trackable",children:t.formatMessage({id:`navigationMenu_links_${s}`})})},s)),r&&a.jsx("li",{className:"profile","data-testid":"profile-link",children:a.jsxs("a",{href:"/profiles/me","data-gtm-event-type":"profile-click","data-gtm-event-context":"NavigationMenu",className:"gtm-trackable",children:[a.jsx(Ye,{name:(n==null?void 0:n.name)||"",src:n!=null&&n.image?n.image.thumbnail:""}),a.jsx("span",{children:t.formatMessage({id:"navigationMenu_profile"})})]})})]})},Xe=(e,t,n)=>`${e}?share=${t}${n?`&uuid=${n}`:""}`,mi=({title:e,link:t,referrer:n})=>[{key:"linkedin",icon:"social_linkedin",url:`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(`${Xe(t,"linkedin",n)}&src=linkedin`)}&title=${encodeURIComponent(e)}&source=Apolitical`},{key:"twitter",icon:"social_twitter",url:`https://twitter.com/share?ref_src=twsrc%5Etfw&url=${encodeURIComponent(`${Xe(t,"twitter",n)}&src=twitter`)}&text=${encodeURIComponent(e)}&via=${encodeURIComponent("apoliticalco")}`},{key:"facebook",icon:"social_facebook",url:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(`${Xe(t,"facebook",n)}`)}&t=${e}`},{key:"email",icon:"share_email",url:`mailto:?subject=${encodeURIComponent(e)}&body=${encodeURIComponent(`${e}
38
38
 
package/index.mjs CHANGED
@@ -1683,7 +1683,7 @@ const Ms = [
1683
1683
  f.map((l) => {
1684
1684
  if (u[l] && typeof u[l] == "object") {
1685
1685
  const { text: m, element: h = "" } = u[l];
1686
- return l === "text" ? /* @__PURE__ */ a.jsx(bn, { overrideType: "text-only", children: m }) : z.createElement(h, { key: l, className: l }, m);
1686
+ return l === "text" ? /* @__PURE__ */ a.jsx(bn, { overrideType: "text-only", className: "text", children: m }, l) : z.createElement(h, { key: l, className: l }, m);
1687
1687
  }
1688
1688
  return null;
1689
1689
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "2.0.3-ac.1",
3
+ "version": "2.0.3-ac.2",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {