@apolitical/component-library 3.0.2-ac.2 → 3.0.2-ac.3
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 +1 -1
- package/index.mjs +67 -57
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -32,7 +32,7 @@ Check the top-level render call using <`+B+">.")}return R}}function pr(h,R){{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",dropdown_menu_multiselect_all:"All",dropdown_menu_multiselect_none:"None",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_cancel:"Cancel",form_submit:"Submit",form_submitting:"Submitting form...",form_submitted:"Submitted",form_success:"Thank you for submitting the form!",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",inputAutocomplete_placeholder:"Start typing...",passwordRules_unmatched_text:"Passwords do not match",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",passwordRules_currentPassword_label:"Current password",passwordRules_newPassword_label:"New password",passwordRules_confirmPassword_label:"Confirm new password",profile_image_change_uploading_text:"Uploading image...",profile_image_change_cta_with_picture:"Change photo",profile_image_change_cta_without_picture:"+ Add profile photo",profile_image_change_error:"There was an error uploading the image. Please try a different file format or reduce the file size to less than 5MB. Contact us if problem persists.",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...",return_to_nav_button:"Back to top",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",edit_section_placeholder_description:"Add some details",edit_section_placeholder_cta:"add",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"},Ys={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>"},Ks={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"},Gs={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>"},Qs=Object.freeze(Object.defineProperty({__proto__:null,en:Un,es:Ys,fr:Ks,pt:Gs},Symbol.toStringTag,{value:"Module"})),da=t=>t in Un,je=(t,e,n,r,s={})=>{let i="";return da(`${e}_${n}`)?i=t({id:`${e}_${n}`},s):i=t({id:e},{[r]:n,...s}),i},Js=(t,e,n)=>{if(!t||t===0)return"0";e||(e=0),n||(n=["k","m","b","t"]);let r=t.toString();e=Math.pow(10,e);for(let s=n.length-1;s>=0;s--){const i=Math.pow(10,(s+1)*3);if(i<=t){t=Math.round(t*e/i)/e,t===1e3&&s<n.length-1&&(t=1,s++),r=`${t}${n[s]}`;break}}return r},Dt=(t,e)=>g.Children.map(t,n=>Object.is(n,null)?n:g.cloneElement(n,{...e})),fa=(t=0)=>{setTimeout(()=>{const e=document.querySelector(".splash-screen");e&&e.remove(),window.prerenderReady=!0},t)},Xs=t=>t.replace(/\s+/g,"").length>0,Dn=t=>{const e=t.length>8,n=/[0-9]/.test(t)&&/[`!@#$%^&*()_+\-=[\]{}£;':"\\|,.<>/?~]/.test(t),r=new RegExp("^(?=.*?[A-Z])(?=.*?[a-z])").test(t);return{isValid:e&&n&&r,matchingRules:{isMoreThanEightCharacters:e,includesNumberAndSymbol:n,includesLowerAndUppercase:r}}},re=({variant:t="primary",size:e="medium",styling:n={muted:!1,fullWidth:!1},icon:r=!1,href:s=!1,element:i="button",onClick:o=!1,className:c="",disabled:f=!1,screenreaderText:l=!1,children:u=!1,...d})=>{const p=Xe(typeof e=="object");if(typeof e=="object"&&typeof p=="number"){const x=Object.assign({},e),b=oa(Object.keys(x));e=ca(p,b,x)}const v=[];typeof e=="string"&&v.push(e),r&&(v.push("icon"),typeof r=="object"?(v.push(r.icon),r.position?v.push(r.position):v.push("left"),r.hover&&v.push(`hover_${r.hover}`),r.animate&&(v.push("animate"),typeof r.animate=="string"&&v.push(r.animate))):(v.push(r),!r.includes("right")&&!r.includes("left")&&v.push("left"))),n.muted&&v.push("muted"),n.fullWidth&&v.push("full-width");const _={...d,className:C(t,c,v,{"no-text":!u,disabled:f,button:s}),onClick:x=>{(!s||s[0]==="#")&&o&&(x.preventDefault(),x.stopPropagation()),o&&o(x)},disabled:typeof f=="object"&&"isClickable"in f?!f.isClickable:f};return s&&(i="a",_.href=s),g.createElement(i,_,u||(l?a.jsx(he,{showOnFocus:!1,children:l}):null))},et=({buttons:t,className:e="",...n})=>{const r=t.length>1?"ul":"p",s=t.map((i,o)=>r==="p"?a.jsx(re,{...i},o):a.jsx("li",{children:a.jsx(re,{...i})},o));return g.createElement(r,{className:C("button-wrapper",e),...n,children:s})};const Te=({className:t="",maxWidth:e=!1})=>{const n=e?{"--max-width":`${e/16}rem`}:{};return a.jsx("hr",{className:C(t,{"has-max-width":e}),style:n})},_r={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"}},ei=({aspect:t,range:e,sizes:n})=>{const{range:r,sizes:s}=t?_r[t]:_r.fallback;return{range:e&&e.length>0?e:r,sizes:n||s}},ti=({format:t,height:e,query:n,width:r})=>{let s=`w=${r}&h=${e}`;return s=t?`${s}&fm=${t}`:s,s=n?`${s}&${n}`:s,s},un=({format:t,range:e,url:n,query:r})=>e.map(({height:s,width:i})=>`${n}?${ti({format:t,height:s,query:r,width:i})} ${i}w`).join(", ");const tt=({image:t,className:e,testId:n})=>{const{description:r,height:s,type:i,query:o,url:c,width:f,loading:l,decoding:u,fetchPriority:d}=t,{range:m,sizes:p}=ei(t),v=un({format:"avif",query:o,range:m,url:c}),_=un({format:"webp",query:o,range:m,url:c}),x=un({format:"",query:o,range:m,url:c});return a.jsxs("picture",{className:e,children:[i!=="image/gif"&&a.jsx("source",{type:"image/avif",srcSet:v,sizes:p,"data-testid":"source"}),a.jsx("source",{type:"image/webp",srcSet:_,sizes:p,"data-testid":"source"}),a.jsx("img",{srcSet:x,sizes:p,src:c,alt:r,loading:l||"lazy",decoding:u||"async",fetchpriority:d||"auto",width:f,height:s,"data-testid":n||"image"})]})};const ni=({image:t,className:e,testId:n})=>a.jsx("div",{className:`image-container ${e}`,"data-testid":n||"image-container",children:t&&a.jsx(tt,{image:{...t},className:"image"})}),nt=({href:t,children:e,fallbackElement:n,className:r="",onClick:s,gtmContext:i,gtmType:o,...c})=>{if(t){const f={...c};return s&&(f.onClick=s),i&&(f["data-gtm-event-context"]=i),o&&(f["data-gtm-event-type"]=o),a.jsx("a",{href:t,className:C("gtm-trackable",r),...f,children:e})}return n?g.createElement(n,{children:e,className:r,...c}):e};const ri=({currentStep:t=1,steps:e=1})=>a.jsx(he,{children:a.jsx("div",{className:"wrapper",children:a.jsx("div",{className:"dots-wrapper",children:new Array(e).fill("").map((n,r)=>{const s=r+1;return a.jsxs("div",{className:"dot-wrapper",children:[a.jsx("div",{className:C("dot",{active:s===t,completed:s<t}),"data-testid":"progress-dot"}),a.jsx("div",{className:C("line",{active:s<t})})]},r)})})})});const ai=({elementId:t,offset:e=20})=>{const n=q.useIntl(),r=()=>{const s=document.getElementById(t);if(!s)return;const i=document.getElementById("header");i&&window.scrollTo({top:s.offsetTop-i.clientHeight-e})};return a.jsx(re,{variant:"secondary",className:"return-to-nav",onClick:r,"data-gtm-event-context":"ListPageMobile","data-gtm-event-type":"back-to-nav-button-click",screenreaderText:n.formatMessage({id:"return_to_nav_button"})})};let it=!1;const ma=({isOpen:t=!1,isLoading:e=!1,children:n})=>{const r=q.useIntl(),s=g.useRef(null),[i,o]=g.useState("hidden");g.useEffect(()=>{const f=s.current;if(f)return f.addEventListener("transitionend",c),()=>{f.removeEventListener("transitionend",c)}},[]);const c=({propertyName:f})=>{f==="opacity"&&(it!==!1&&clearTimeout(it),o(l=>l==="opening"?"open":l==="closing"?"closed":l==="closed"?"hidden":l))};return Ke(()=>{it!==!1&&clearTimeout(it);let f="open";t?o("opening"):(o("closing"),f="hidden"),it=setTimeout(()=>{o(f)},300)},[t]),a.jsx("aside",{ref:s,className:C("tooltip text-medium",i,{loading:e}),hidden:i==="hidden",children:e?a.jsx("p",{children:r.formatMessage({id:"tooltip_loading"})}):typeof n=="string"?a.jsx("p",{children:n}):n})};const si=({className:t="",image:e,...n})=>e?(typeof e=="string"&&(e={width:1080,height:200,type:"image/png",url:e}),e.range=[{height:124,width:425},{height:200,width:768},{height:200,width:1368}],e.query="fit=thumb&f=center",a.jsx(tt,{...n,className:C("banner",t),image:{...e,aspect:"banner"}})):null;const qe=({children:t,className:e="",styling:n={},...r})=>{const{background:s="default"}=n;return a.jsx("section",{className:C("full-width-section",e,{[s]:s!=="default"}),...r,children:t})};const ii=({text:t,buttons:e,className:n=""})=>{const r=[];return e.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(qe,{className:C("download-section",n),children:a.jsxs(a.Fragment,{children:[g.createElement(typeof t=="string"?"h2":t.element,{className:"text"},typeof t=="string"?t:t.text),a.jsx(et,{buttons:r})]})})};function pa({href:t,setShowModal:e}){typeof t!="string"&&e(!0)}const oi=({icon:t,description:e,ctaMessage:n,href:r,showEditButton:s,setShowModal:i})=>{const{formatMessage:o}=q.useIntl();return a.jsxs("div",{className:C("edit-section-placeholder",{"has-icon":!!t}),style:la(t),children:[a.jsx("p",{children:e||o({id:"edit_section_placeholder_description"})}),s&&a.jsx(re,{href:r,variant:"secondary",size:"small",onClick:()=>pa({href:r,setShowModal:i}),children:n||o({id:"edit_section_placeholder_cta"})})]})},ci=({children:t,className:e="",formProps:n,href:r,title:s,modalTitle:i,placeholder:o,showDivider:c=!0})=>{const[f,l]=g.useState(!1),u=typeof r=="string"||!!n,d=()=>l(!1);return a.jsxs("section",{className:C("edit-section",e),children:[n&&a.jsx(yt,{title:i||`Edit ${s}`,isOpen:f,showDivider:!1,showIcon:!1,functions:{onClose:d},className:C("edit-section-modal"),children:a.jsx(_t,{...n,fields:n.fields,meta:{...n==null?void 0:n.meta,shouldShowCancelButton:!0,shouldReset:!1,showSuccessMessage:!0},functions:{...n==null?void 0:n.functions,onSuccess:async m=>{var p,v;(p=n==null?void 0:n.functions)!=null&&p.onSuccess&&await((v=n==null?void 0:n.functions)==null?void 0:v.onSuccess(m)),l(!1)},onCancel:d}})}),a.jsxs("div",{className:"edit-section-header",children:[a.jsx("h2",{className:"edit-section-header-title",children:s}),u&&a.jsx(re,{href:r,variant:"tertiary",size:"small",icon:"pencil",onClick:()=>pa({href:r,setShowModal:l}),children:"Edit"})]}),t||a.jsx(oi,{...o,href:r,setShowModal:l,showEditButton:u}),c&&a.jsx(Te,{})]})};const li=({title:t=!1,logos:e=[],className:n=""})=>{const r=e.length;if(r===0)return null;const s={element:typeof t=="object"?t.element:"h2",text:typeof t=="string"?t:typeof t=="object"?t.text:""};return a.jsxs("div",{className:C("logos",n),children:[t&&g.createElement(s.element,{className:"title"},s.text),a.jsx("ul",{className:C({"two-col":r===2||r===4,"three-col":r===5||r<=10&&r%3===0}),children:e.map(({logo:i,nameOfBusiness:o,link:c=!1,description:f=!1},l)=>{if(!i||!i.url)return null;const u=a.jsx("img",{src:i.url,width:i.width||"auto",height:i.height||"auto",alt:o});return a.jsxs("li",{children:[a.jsx("p",{className:"img-wrapper",children:c?a.jsx("a",{href:c,target:"_blank",rel:"nofollow noreferrer noopener",children:u}):u}),f&&a.jsx("small",{children:f})]},window.btoa(`${i.url}_${l}`))})})]})};const ui=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],di=({className:t="",content:e,image:n,variant:r="default",spacing:s="normal",hideElements:i={eyebrow:!1,title:!1,text:!1},cta:o,children:c})=>{const f=["eyebrow","title","text"],l={eyebrow:"small",title:"h1",text:"p"},u={};return f.forEach(d=>{if(!e[d]){u[d]=!1;return}if(!i[d]){if(typeof e[d]=="object"){u[d]=e[d];const{text:m,element:p}=e[d];if(p&&ui.includes(p.toLowerCase()))return;u[d]={text:m,element:l[d]};return}u[d]={text:e[d],element:l[d]}}}),o&&o.link&&o.link[0]==="#"&&(o.props||(o.props={}),o.props.onClick=d=>{d.preventDefault(),d.stopPropagation();const m=document.getElementById(o.link.substring(1));m&&m.scrollIntoView({behavior:"smooth"})}),a.jsx(qe,{className:C("banner-section",r,s,t,{"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(d=>{if(u[d]&&typeof u[d]=="object"){const{text:m,element:p=""}=u[d];return d==="text"?a.jsx(ht,{overrideType:"text-only",className:"text",children:m},d):g.createElement(p,{key:d,className:d},m)}return null}),c,o&&o.text&&o.link&&a.jsx(re,{variant:n||r==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:o.link,...o.props,children:o.text})]}),n&&a.jsx(tt,{image:{...n,aspect:"banner"}})]})})},fi=g.memo(di);const mi=({alignImage:t="left",className:e,content:n,image:r})=>{const s=()=>typeof n=="string"?a.jsx(Je,{children:n}):n;return a.jsxs(qe,{className:C("highlight-section",e),children:[r&&a.jsx("div",{className:C("highlight-container highlight-image",{[`highlight-image-${t}`]:t==="right"}),children:a.jsx(tt,{image:r})}),a.jsx("div",{className:C("highlight-container highlight-content-wrapper",{"no-image":!r}),children:a.jsx("div",{className:C("highlight-content",{"highlight-content-right":t==="left"}),children:s()})})]})},pi=g.memo(mi);const hi=({variant:t="primary",button:e=null,title:n,text:r,gtmContext:s})=>!n&&!r?null:a.jsxs("aside",{className:C("marketing-block",t),children:[n&&a.jsx("p",{className:"title",children:n}),r&&a.jsx("p",{children:r}),e&&a.jsx(re,{variant:"secondary",size:"medium",href:e.link,className:"gtm-trackable","data-gtm-event-context":s,"data-gtm-event-type":"learn-more-click",children:e.text})]}),ha=({showDevTools:t=!0,children:e})=>{const n=new me.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:6e4}}});return a.jsxs(me.QueryClientProvider,{client:n,children:[e,t&&a.jsx(Rs.ReactQueryDevtools,{initialIsOpen:!1})]})};var gi=g.createContext({client:Ot});function vi(t){var e=t.children,n=t.client,r=t.apiKey,s=t.options,i=g.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&&(Ot.__loaded&&console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."),Ot.init(r,s)),Ot)},[n,r]);return g.createElement(gi.Provider,{value:{client:i}},e)}const ga=({children:t,user:e})=>e.isLoading?null:process.env.REACT_APP_PUBLIC_POSTHOG_KEY?a.jsx(vi,{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:e.id||"00000000-0000-0000-0000-000000000000",isIdentifiedID:!!e.id}},children:t}):t,va=({children:t,locale:e,messages:n})=>{const r=e||"en",s={...Qs[r],...n||{}};return a.jsx(q.IntlProvider,{locale:r,messages:s,children:t})},Ee=g.createContext({isLoading:!0});function Jt(){return g.useContext(Ee)}const ba=({children:t,user:e})=>a.jsx(Ee.Provider,{value:e,children:t}),bi=({bootstrap:t,children:e,intl:n,showDevTools:r})=>{const[s,i]=g.useState({isLoading:!0});return g.useEffect(()=>{t().then(o=>{i({...o,isLoading:!1}),fa(5e3)}).catch(()=>i({isLoading:!1}))},[]),a.jsx(va,{locale:n==null?void 0:n.locale,messages:n==null?void 0:n.messages,children:a.jsx(Wn.CookiesProvider,{children:a.jsx(ba,{user:s,children:a.jsx(ha,{showDevTools:r,children:a.jsx(ga,{user:s,children:e})})})})})};const zn=({label:t=!1,className:e="",children:n})=>{const r=q.useIntl();return a.jsxs("details",{className:C("collapsible-section",e),children:[a.jsx("summary",{children:t||r.formatMessage({id:"collapsibleSection_summary"})}),a.jsx("div",{className:"content",children:n})]})};const Me=({variant:t="primary",icon:e,className:n="",children:r,...s})=>{const i=e?{"--icon":`url(${Le}icons/${e}.svg)`}:{};return a.jsx("div",{className:C("highlighted-text-box",t,n,{"has-icon":e}),style:i,...s,children:r})};const Fe=({variant:t="empty",text:e=!1,button:n=!1,className:r=""})=>{let s=n&&!!Object.keys(n).length;const i=typeof n=="object"&&"breakpoints"in n,o=Xe(i);if(i&&typeof n=="object"&&typeof o=="number"){const d=Object.assign({},n.breakpoints),m=oa(Object.keys(d));s=ca(o,m,d)}const{breakpoints:c,text:f="",component:l,...u}=n;return a.jsx(Me,{variant:"subtle",className:C("empty-state-box",t,r),children:a.jsxs(a.Fragment,{children:[e&&typeof e=="string"?a.jsx(Je,{options:{forceBlock:!0},children:e}):e,s&&typeof n=="object"&&(l||a.jsx(re,{...u,variant:n.variant?n.variant:"secondary",children:f}))]})})};const An=({children:t,...e})=>a.jsx("p",{...e,children:t}),ya={q:An,blockquote:An};for(let t=1;t<=6;t++)ya[`h${t}`]={component:An,props:{className:"title"}};const _a=({type:t="default",className:e="",heading:n=!1,children:r})=>a.jsxs("div",{className:C("helper-text-box text-small",t,e),children:[n&&a.jsx("p",{className:"title",children:n}),typeof r=="string"?a.jsx(Je,{options:{wrapper:g.Fragment,forceBlock:!0,overrides:ya},children:r}):a.jsx("p",{children:r})]});const yi=({className:t="",show:e=!1,hide:n=!1,text:r,children:s})=>{const i=q.useIntl(),o=g.useRef(null),[c,f]=g.useState(""),[l,u]=g.useState("closed");g.useEffect(()=>{const p=o.current;if(p)return p.addEventListener("transitionend",d),()=>{p.removeEventListener("transitionend",d)}},[]),g.useEffect(()=>{if(!r||typeof r!="string")return;const p=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",dropdown_menu_multiselect_all:"All",dropdown_menu_multiselect_none:"None",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_cancel:"Cancel",form_submit:"Submit",form_submitting:"Submitting form...",form_submitted:"Submitted",form_success:"Thank you for submitting the form!",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",inputAutocomplete_placeholder:"Start typing...",passwordRules_unmatched_text:"Passwords do not match",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",passwordRules_currentPassword_label:"Current password",passwordRules_newPassword_label:"New password",passwordRules_confirmPassword_label:"Confirm new password",profile_image_change_uploading_text:"Uploading image...",profile_image_change_cta_with_picture:"Change photo",profile_image_change_cta_without_picture:"+ Add profile photo",profile_image_change_error:"There was an error uploading the image. Please try a different file format or reduce the file size to less than 5MB. Contact us if problem persists.",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...",return_to_nav_button:"Back to top",progress_tracker_steps:"Step {current} of {total}",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",edit_section_placeholder_description:"Add some details",edit_section_placeholder_cta:"add",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"},Ys={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>"},Ks={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"},Gs={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>"},Qs=Object.freeze(Object.defineProperty({__proto__:null,en:Un,es:Ys,fr:Ks,pt:Gs},Symbol.toStringTag,{value:"Module"})),da=t=>t in Un,je=(t,e,n,r,s={})=>{let i="";return da(`${e}_${n}`)?i=t({id:`${e}_${n}`},s):i=t({id:e},{[r]:n,...s}),i},Js=(t,e,n)=>{if(!t||t===0)return"0";e||(e=0),n||(n=["k","m","b","t"]);let r=t.toString();e=Math.pow(10,e);for(let s=n.length-1;s>=0;s--){const i=Math.pow(10,(s+1)*3);if(i<=t){t=Math.round(t*e/i)/e,t===1e3&&s<n.length-1&&(t=1,s++),r=`${t}${n[s]}`;break}}return r},Dt=(t,e)=>g.Children.map(t,n=>Object.is(n,null)?n:g.cloneElement(n,{...e})),fa=(t=0)=>{setTimeout(()=>{const e=document.querySelector(".splash-screen");e&&e.remove(),window.prerenderReady=!0},t)},Xs=t=>t.replace(/\s+/g,"").length>0,Dn=t=>{const e=t.length>8,n=/[0-9]/.test(t)&&/[`!@#$%^&*()_+\-=[\]{}£;':"\\|,.<>/?~]/.test(t),r=new RegExp("^(?=.*?[A-Z])(?=.*?[a-z])").test(t);return{isValid:e&&n&&r,matchingRules:{isMoreThanEightCharacters:e,includesNumberAndSymbol:n,includesLowerAndUppercase:r}}},re=({variant:t="primary",size:e="medium",styling:n={muted:!1,fullWidth:!1},icon:r=!1,href:s=!1,element:i="button",onClick:o=!1,className:c="",disabled:f=!1,screenreaderText:l=!1,children:u=!1,...d})=>{const p=Xe(typeof e=="object");if(typeof e=="object"&&typeof p=="number"){const x=Object.assign({},e),b=oa(Object.keys(x));e=ca(p,b,x)}const v=[];typeof e=="string"&&v.push(e),r&&(v.push("icon"),typeof r=="object"?(v.push(r.icon),r.position?v.push(r.position):v.push("left"),r.hover&&v.push(`hover_${r.hover}`),r.animate&&(v.push("animate"),typeof r.animate=="string"&&v.push(r.animate))):(v.push(r),!r.includes("right")&&!r.includes("left")&&v.push("left"))),n.muted&&v.push("muted"),n.fullWidth&&v.push("full-width");const _={...d,className:C(t,c,v,{"no-text":!u,disabled:f,button:s}),onClick:x=>{(!s||s[0]==="#")&&o&&(x.preventDefault(),x.stopPropagation()),o&&o(x)},disabled:typeof f=="object"&&"isClickable"in f?!f.isClickable:f};return s&&(i="a",_.href=s),g.createElement(i,_,u||(l?a.jsx(he,{showOnFocus:!1,children:l}):null))},et=({buttons:t,className:e="",...n})=>{const r=t.length>1?"ul":"p",s=t.map((i,o)=>r==="p"?a.jsx(re,{...i},o):a.jsx("li",{children:a.jsx(re,{...i})},o));return g.createElement(r,{className:C("button-wrapper",e),...n,children:s})};const Te=({className:t="",maxWidth:e=!1})=>{const n=e?{"--max-width":`${e/16}rem`}:{};return a.jsx("hr",{className:C(t,{"has-max-width":e}),style:n})},_r={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"}},ei=({aspect:t,range:e,sizes:n})=>{const{range:r,sizes:s}=t?_r[t]:_r.fallback;return{range:e&&e.length>0?e:r,sizes:n||s}},ti=({format:t,height:e,query:n,width:r})=>{let s=`w=${r}&h=${e}`;return s=t?`${s}&fm=${t}`:s,s=n?`${s}&${n}`:s,s},un=({format:t,range:e,url:n,query:r})=>e.map(({height:s,width:i})=>`${n}?${ti({format:t,height:s,query:r,width:i})} ${i}w`).join(", ");const tt=({image:t,className:e,testId:n})=>{const{description:r,height:s,type:i,query:o,url:c,width:f,loading:l,decoding:u,fetchPriority:d}=t,{range:m,sizes:p}=ei(t),v=un({format:"avif",query:o,range:m,url:c}),_=un({format:"webp",query:o,range:m,url:c}),x=un({format:"",query:o,range:m,url:c});return a.jsxs("picture",{className:e,children:[i!=="image/gif"&&a.jsx("source",{type:"image/avif",srcSet:v,sizes:p,"data-testid":"source"}),a.jsx("source",{type:"image/webp",srcSet:_,sizes:p,"data-testid":"source"}),a.jsx("img",{srcSet:x,sizes:p,src:c,alt:r,loading:l||"lazy",decoding:u||"async",fetchpriority:d||"auto",width:f,height:s,"data-testid":n||"image"})]})};const ni=({image:t,className:e,testId:n})=>a.jsx("div",{className:`image-container ${e}`,"data-testid":n||"image-container",children:t&&a.jsx(tt,{image:{...t},className:"image"})}),nt=({href:t,children:e,fallbackElement:n,className:r="",onClick:s,gtmContext:i,gtmType:o,...c})=>{if(t){const f={...c};return s&&(f.onClick=s),i&&(f["data-gtm-event-context"]=i),o&&(f["data-gtm-event-type"]=o),a.jsx("a",{href:t,className:C("gtm-trackable",r),...f,children:e})}return n?g.createElement(n,{children:e,className:r,...c}):e};const ri=({currentStep:t=1,steps:e=1})=>a.jsxs(a.Fragment,{children:[a.jsx(he,{children:a.jsx(q.FormattedMessage,{id:"progress_tracker_steps",values:{currentStep:t,total:e}})}),a.jsx("div",{className:"wrapper",children:a.jsx("div",{className:"dots-wrapper",children:new Array(e).fill("").map((n,r)=>{const s=r+1;return a.jsxs("div",{className:"dot-wrapper",children:[a.jsx("div",{className:C("dot",{active:s===t,completed:s<t}),"data-testid":"progress-dot"}),a.jsx("div",{className:C("line",{active:s<t})})]},r)})})})]});const ai=({elementId:t,offset:e=20})=>{const n=q.useIntl(),r=()=>{const s=document.getElementById(t);if(!s)return;const i=document.getElementById("header");i&&window.scrollTo({top:s.offsetTop-i.clientHeight-e})};return a.jsx(re,{variant:"secondary",className:"return-to-nav",onClick:r,"data-gtm-event-context":"ListPageMobile","data-gtm-event-type":"back-to-nav-button-click",screenreaderText:n.formatMessage({id:"return_to_nav_button"})})};let it=!1;const ma=({isOpen:t=!1,isLoading:e=!1,children:n})=>{const r=q.useIntl(),s=g.useRef(null),[i,o]=g.useState("hidden");g.useEffect(()=>{const f=s.current;if(f)return f.addEventListener("transitionend",c),()=>{f.removeEventListener("transitionend",c)}},[]);const c=({propertyName:f})=>{f==="opacity"&&(it!==!1&&clearTimeout(it),o(l=>l==="opening"?"open":l==="closing"?"closed":l==="closed"?"hidden":l))};return Ke(()=>{it!==!1&&clearTimeout(it);let f="open";t?o("opening"):(o("closing"),f="hidden"),it=setTimeout(()=>{o(f)},300)},[t]),a.jsx("aside",{ref:s,className:C("tooltip text-medium",i,{loading:e}),hidden:i==="hidden",children:e?a.jsx("p",{children:r.formatMessage({id:"tooltip_loading"})}):typeof n=="string"?a.jsx("p",{children:n}):n})};const si=({className:t="",image:e,...n})=>e?(typeof e=="string"&&(e={width:1080,height:200,type:"image/png",url:e}),e.range=[{height:124,width:425},{height:200,width:768},{height:200,width:1368}],e.query="fit=thumb&f=center",a.jsx(tt,{...n,className:C("banner",t),image:{...e,aspect:"banner"}})):null;const qe=({children:t,className:e="",styling:n={},...r})=>{const{background:s="default"}=n;return a.jsx("section",{className:C("full-width-section",e,{[s]:s!=="default"}),...r,children:t})};const ii=({text:t,buttons:e,className:n=""})=>{const r=[];return e.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(qe,{className:C("download-section",n),children:a.jsxs(a.Fragment,{children:[g.createElement(typeof t=="string"?"h2":t.element,{className:"text"},typeof t=="string"?t:t.text),a.jsx(et,{buttons:r})]})})};function pa({href:t,setShowModal:e}){typeof t!="string"&&e(!0)}const oi=({icon:t,description:e,ctaMessage:n,href:r,showEditButton:s,setShowModal:i})=>{const{formatMessage:o}=q.useIntl();return a.jsxs("div",{className:C("edit-section-placeholder",{"has-icon":!!t}),style:la(t),children:[a.jsx("p",{children:e||o({id:"edit_section_placeholder_description"})}),s&&a.jsx(re,{href:r,variant:"secondary",size:"small",onClick:()=>pa({href:r,setShowModal:i}),children:n||o({id:"edit_section_placeholder_cta"})})]})},ci=({children:t,className:e="",formProps:n,href:r,title:s,modalTitle:i,placeholder:o,showDivider:c=!0})=>{const[f,l]=g.useState(!1),u=typeof r=="string"||!!n,d=()=>l(!1);return a.jsxs("section",{className:C("edit-section",e),children:[n&&a.jsx(yt,{title:i||`Edit ${s}`,isOpen:f,showDivider:!1,showIcon:!1,functions:{onClose:d},className:C("edit-section-modal"),children:a.jsx(_t,{...n,fields:n.fields,meta:{...n==null?void 0:n.meta,shouldShowCancelButton:!0,shouldReset:!1,showSuccessMessage:!0},functions:{...n==null?void 0:n.functions,onSuccess:async m=>{var p,v;(p=n==null?void 0:n.functions)!=null&&p.onSuccess&&await((v=n==null?void 0:n.functions)==null?void 0:v.onSuccess(m)),l(!1)},onCancel:d}})}),a.jsxs("div",{className:"edit-section-header",children:[a.jsx("h2",{className:"edit-section-header-title",children:s}),u&&a.jsx(re,{href:r,variant:"tertiary",size:"small",icon:"pencil",onClick:()=>pa({href:r,setShowModal:l}),children:"Edit"})]}),t||a.jsx(oi,{...o,href:r,setShowModal:l,showEditButton:u}),c&&a.jsx(Te,{})]})};const li=({title:t=!1,logos:e=[],className:n=""})=>{const r=e.length;if(r===0)return null;const s={element:typeof t=="object"?t.element:"h2",text:typeof t=="string"?t:typeof t=="object"?t.text:""};return a.jsxs("div",{className:C("logos",n),children:[t&&g.createElement(s.element,{className:"title"},s.text),a.jsx("ul",{className:C({"two-col":r===2||r===4,"three-col":r===5||r<=10&&r%3===0}),children:e.map(({logo:i,nameOfBusiness:o,link:c=!1,description:f=!1},l)=>{if(!i||!i.url)return null;const u=a.jsx("img",{src:i.url,width:i.width||"auto",height:i.height||"auto",alt:o});return a.jsxs("li",{children:[a.jsx("p",{className:"img-wrapper",children:c?a.jsx("a",{href:c,target:"_blank",rel:"nofollow noreferrer noopener",children:u}):u}),f&&a.jsx("small",{children:f})]},window.btoa(`${i.url}_${l}`))})})]})};const ui=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],di=({className:t="",content:e,image:n,variant:r="default",spacing:s="normal",hideElements:i={eyebrow:!1,title:!1,text:!1},cta:o,children:c})=>{const f=["eyebrow","title","text"],l={eyebrow:"small",title:"h1",text:"p"},u={};return f.forEach(d=>{if(!e[d]){u[d]=!1;return}if(!i[d]){if(typeof e[d]=="object"){u[d]=e[d];const{text:m,element:p}=e[d];if(p&&ui.includes(p.toLowerCase()))return;u[d]={text:m,element:l[d]};return}u[d]={text:e[d],element:l[d]}}}),o&&o.link&&o.link[0]==="#"&&(o.props||(o.props={}),o.props.onClick=d=>{d.preventDefault(),d.stopPropagation();const m=document.getElementById(o.link.substring(1));m&&m.scrollIntoView({behavior:"smooth"})}),a.jsx(qe,{className:C("banner-section",r,s,t,{"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(d=>{if(u[d]&&typeof u[d]=="object"){const{text:m,element:p=""}=u[d];return d==="text"?a.jsx(ht,{overrideType:"text-only",className:"text",children:m},d):g.createElement(p,{key:d,className:d},m)}return null}),c,o&&o.text&&o.link&&a.jsx(re,{variant:n||r==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:o.link,...o.props,children:o.text})]}),n&&a.jsx(tt,{image:{...n,aspect:"banner"}})]})})},fi=g.memo(di);const mi=({alignImage:t="left",className:e,content:n,image:r})=>{const s=()=>typeof n=="string"?a.jsx(Je,{children:n}):n;return a.jsxs(qe,{className:C("highlight-section",e),children:[r&&a.jsx("div",{className:C("highlight-container highlight-image",{[`highlight-image-${t}`]:t==="right"}),children:a.jsx(tt,{image:r})}),a.jsx("div",{className:C("highlight-container highlight-content-wrapper",{"no-image":!r}),children:a.jsx("div",{className:C("highlight-content",{"highlight-content-right":t==="left"}),children:s()})})]})},pi=g.memo(mi);const hi=({variant:t="primary",button:e=null,title:n,text:r,gtmContext:s})=>!n&&!r?null:a.jsxs("aside",{className:C("marketing-block",t),children:[n&&a.jsx("p",{className:"title",children:n}),r&&a.jsx("p",{children:r}),e&&a.jsx(re,{variant:"secondary",size:"medium",href:e.link,className:"gtm-trackable","data-gtm-event-context":s,"data-gtm-event-type":"learn-more-click",children:e.text})]}),ha=({showDevTools:t=!0,children:e})=>{const n=new me.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:6e4}}});return a.jsxs(me.QueryClientProvider,{client:n,children:[e,t&&a.jsx(Rs.ReactQueryDevtools,{initialIsOpen:!1})]})};var gi=g.createContext({client:Ot});function vi(t){var e=t.children,n=t.client,r=t.apiKey,s=t.options,i=g.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&&(Ot.__loaded&&console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."),Ot.init(r,s)),Ot)},[n,r]);return g.createElement(gi.Provider,{value:{client:i}},e)}const ga=({children:t,user:e})=>e.isLoading?null:process.env.REACT_APP_PUBLIC_POSTHOG_KEY?a.jsx(vi,{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:e.id||"00000000-0000-0000-0000-000000000000",isIdentifiedID:!!e.id}},children:t}):t,va=({children:t,locale:e,messages:n})=>{const r=e||"en",s={...Qs[r],...n||{}};return a.jsx(q.IntlProvider,{locale:r,messages:s,children:t})},Ee=g.createContext({isLoading:!0});function Jt(){return g.useContext(Ee)}const ba=({children:t,user:e})=>a.jsx(Ee.Provider,{value:e,children:t}),bi=({bootstrap:t,children:e,intl:n,showDevTools:r})=>{const[s,i]=g.useState({isLoading:!0});return g.useEffect(()=>{t().then(o=>{i({...o,isLoading:!1}),fa(5e3)}).catch(()=>i({isLoading:!1}))},[]),a.jsx(va,{locale:n==null?void 0:n.locale,messages:n==null?void 0:n.messages,children:a.jsx(Wn.CookiesProvider,{children:a.jsx(ba,{user:s,children:a.jsx(ha,{showDevTools:r,children:a.jsx(ga,{user:s,children:e})})})})})};const zn=({label:t=!1,className:e="",children:n})=>{const r=q.useIntl();return a.jsxs("details",{className:C("collapsible-section",e),children:[a.jsx("summary",{children:t||r.formatMessage({id:"collapsibleSection_summary"})}),a.jsx("div",{className:"content",children:n})]})};const Me=({variant:t="primary",icon:e,className:n="",children:r,...s})=>{const i=e?{"--icon":`url(${Le}icons/${e}.svg)`}:{};return a.jsx("div",{className:C("highlighted-text-box",t,n,{"has-icon":e}),style:i,...s,children:r})};const Fe=({variant:t="empty",text:e=!1,button:n=!1,className:r=""})=>{let s=n&&!!Object.keys(n).length;const i=typeof n=="object"&&"breakpoints"in n,o=Xe(i);if(i&&typeof n=="object"&&typeof o=="number"){const d=Object.assign({},n.breakpoints),m=oa(Object.keys(d));s=ca(o,m,d)}const{breakpoints:c,text:f="",component:l,...u}=n;return a.jsx(Me,{variant:"subtle",className:C("empty-state-box",t,r),children:a.jsxs(a.Fragment,{children:[e&&typeof e=="string"?a.jsx(Je,{options:{forceBlock:!0},children:e}):e,s&&typeof n=="object"&&(l||a.jsx(re,{...u,variant:n.variant?n.variant:"secondary",children:f}))]})})};const An=({children:t,...e})=>a.jsx("p",{...e,children:t}),ya={q:An,blockquote:An};for(let t=1;t<=6;t++)ya[`h${t}`]={component:An,props:{className:"title"}};const _a=({type:t="default",className:e="",heading:n=!1,children:r})=>a.jsxs("div",{className:C("helper-text-box text-small",t,e),children:[n&&a.jsx("p",{className:"title",children:n}),typeof r=="string"?a.jsx(Je,{options:{wrapper:g.Fragment,forceBlock:!0,overrides:ya},children:r}):a.jsx("p",{children:r})]});const yi=({className:t="",show:e=!1,hide:n=!1,text:r,children:s})=>{const i=q.useIntl(),o=g.useRef(null),[c,f]=g.useState(""),[l,u]=g.useState("closed");g.useEffect(()=>{const p=o.current;if(p)return p.addEventListener("transitionend",d),()=>{p.removeEventListener("transitionend",d)}},[]),g.useEffect(()=>{if(!r||typeof r!="string")return;const p=r.split(`
|
|
36
36
|
`);f(p.length<3?`${r.substring(0,400)}...`:p.slice(0,3).join(`
|
|
37
37
|
`))},[r]),g.useEffect(()=>{l==="ready-to-close"&&u("closing")},[l]);const d=({propertyName:p})=>{p==="max-height"&&u(v=>v==="opening"?"open":v==="closing"?"closed":v)};if(!r)return null;const m=["opening","open"].includes(l);return a.jsxs(Me,{variant:"subtle",className:C("hide-show-text-box",t),children:[a.jsxs("div",{ref:o,className:C("content",l),children:[a.jsx(Je,{options:{forceBlock:!0},children:l==="closed"?c:r}),l!=="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:C({"rotate-180":m}),onClick:()=>{u(m?"ready-to-close":"opening")},children:m?n||i.formatMessage({id:"hideShowTextBox_hide"}):e||i.formatMessage({id:"hideShowTextBox_show"})})})]})},ve=()=>g.Fragment,_i=({children:t})=>a.jsx(Me,{variant:"secondary",children:t}),xi=["span","strong","h1","h2","h3","h4","h5","h6","p"],wi=({children:t})=>{const e=q.useIntl();if(!t)return null;let n=e.formatMessage({id:"markdown_collapsibleSection_summary"});const r=[];for(const i of g.Children.toArray(t))if(!(!i||typeof i=="string"||typeof i=="number"))if(g.isValidElement(i)&&i.type==="summary"){if(i.props&&i.props.children){for(const o of g.Children.toArray(i.props.children))if(!(!o||typeof o=="string"||typeof o=="number")&&g.isValidElement(o)){const c=o.type;if(xi.includes(c)){for(n=o.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(zn,{label:s,className:["Sources","Resources"].includes(s)?"discrete-links":"",children:r.map(i=>i)})},ki=({children:t,...e})=>{if(e.class)switch(e.class){case"casestudy":return a.jsx(Me,{variant:"secondary",children:t});case"general-textbox":case"highlight-box":return a.jsx(Me,{variant:"primary",children:t});case"pink-textbox":return a.jsx(Me,{variant:"tertiary",children:t});default:return a.jsx("div",{...e,children:t})}return a.jsx("div",{...e,children:t})},ji=t=>{const e=q.useIntl(),n=Date.now().toString();let r="default";const s=t.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:e.formatMessage({id:`markdown_skip${r==="default"?"":`_${r}`}`})})}),a.jsx("iframe",{...t,title:e.formatMessage({id:`markdown_iframe${r==="default"?"":`_${r}`}`})}),a.jsx("span",{id:`content-after-iframe-${n}`,tabIndex:-1})]})},xr=t=>{let e="";return t&&typeof t!="string"&&typeof t!="number"&&typeof t!="boolean"&&"type"in t&&(e=t.type),e},Ti=({children:t,...e})=>{let n={...e};e.href&&(e.href.includes("http:")||e.href.includes("https:"))&&!e.target&&(n.target="_blank");let r=t,s=!1;for(const i of g.Children.toArray(t))if(!(!i||typeof i=="string"||typeof i=="number")&&g.isValidElement(i)){const o=i.type;if(["button","center","span","strong"].includes(o)&&i.props&&i.props.children&&i.props.children[0])for((o==="button"||xr(i.props.children[0])==="button")&&(s=!0),r=i.props.children[0];r&&typeof r!="string"&&!(typeof r=="boolean"||typeof r=="number"||!g.isValidElement(r));)if(r.props&&r.props.children&&r.props.children[0])r=r.props.children[0],r&&xr(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})},xa=({children:t})=>a.jsx("span",{children:t});const Ei={default:{a:Ti,CollapsibleSection:zn,TextBox:Me,CaseStudy:_i,style:ve,details:wi,div:ki,iframe:ji},"text-only":{h1:ve,h2:ve,h3:ve,h4:ve,h5:ve,h6:ve,style:ve,details:ve,div:ve,TextBox:ve,CollapsibleSection:ve,CaseStudy:ve,blockquote:ve,iframe:ve,button:ve}},ht=({className:t="",options:e={},children:n,overrideType:r="default"})=>{n=n.replace(/^<br\/?>/,"");const s={wrapper:g.Fragment,forceBlock:!0,overrides:Ei[r]};return a.jsx("div",{className:C("markdown-text",t),children:a.jsx(Je,{options:{...s,...e},children:n})})};const wa=({maxWidth:t=!1,title:e,subtitle:n,children:r,className:s=""})=>{const i=t?{"--max-width":`${t/16}rem`}:{};return a.jsxs("section",{className:C("page-heading",s),children:[a.jsxs("div",{className:C("content",{"has-max-width":t}),style:i,children:[e&&e.text&&g.createElement(e.element||"h1",{className:"title"},e.text),n&&n.text&&g.createElement(n.element||"h2",{className:"text-medium"},n.text)]}),r]})};const gt=({size:t="medium",variant:e="default",className:n="",children:r,...s})=>a.jsx("span",{className:C("pill",t,e,n),...s,children:r});const vt=({element:t="p",children:e=null,className:n="",...r})=>g.createElement(t,{...r,className:C("status-banner text-small",n),"aria-live":"assertive"},e);const Si=({author:t,authorCite:e,content:n})=>a.jsxs("blockquote",{className:"testimonial-block",children:[a.jsx(Je,{className:"testimonial",children:n}),t&&a.jsx("p",{className:"author text-small",children:t}),e&&a.jsx("p",{className:"author-cite text-small",children:a.jsx("cite",{children:e})})]}),Ci=g.memo(Si);const Pi=({progress:t=0,text:e=!1,className:n=""})=>{const r=q.useIntl(),s=t>75?100:t>50?75:t>25?50:t>5?25:0,i={"--progress":`${t}%`};return a.jsx("span",{className:C(`progress-bar section-${s}`,n),style:i,children:a.jsx(he,{children:e?`${t} ${e}`:r.formatMessage({id:"progressBar"},{number:t})})})},ka=g.memo(Pi);const dn="loadingBlock_",Ni=({progress:t=0,steps:e=!1,className:n=""})=>{const r=q.useIntl();e||(e={0:{text:r.formatMessage({id:`${dn}loading`})},75:{text:r.formatMessage({id:`${dn}almostDone`})},100:{text:r.formatMessage({id:`${dn}complete`})}});let s=null;const i=Object.keys(e);for(let c=0;c<i.length&&!(t<parseInt(i[c]));c++)s=i[c];const o=s&&e[s].icon?{"--icon":`url(${Le}icons/${e[s].icon}.svg)`}:{};return a.jsxs(Me,{className:C("loading-block",n,{"has-icon":s&&e[s].icon}),variant:"subtle",style:o,children:[s&&a.jsx("span",{className:"step",children:e[s].text}),a.jsx(ka,{progress:t})]})},Mi=g.memo(Ni);const we=({element:t="div",className:e="",...n})=>a.jsx(Qt,{element:t,className:C("loading-placeholder",e),...n});const In={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"],"general-website-page":["banner","title","text","text","text","text","subtitle","text","text","text","text","subtitle","text","text","text","text"],"overview-page":["header","sidebar","title","text","cards-section","cards-section","footer"]},ja=(t,e)=>t in In?a.jsx("div",{className:t,children:In[t].map((n,r)=>ja(n,r))},e):a.jsx(we,{className:t},e),Zn=({layout:t="overview-page",...e})=>a.jsx("div",{className:C("loading-state",t),...e,children:In[t].map((n,r)=>ja(n,r))}),Ta=t=>{const e=t&&t.toUpperCase().split(" ");return Array.isArray(e)&&e.length>1&&e[0]!==""?e[1]===""?e[0][0]:e[0][0]+e[e.length-1][0]:t?t.substr(0,1):""},jt=["#5AB6A3","#A2D7AF","#806056","#3962B3"],Ri=t=>{const e=Math.ceil(26/jt.length),n=Ta(t).toLowerCase();if(n==="")return jt[0];const r=n.charCodeAt(0)-96;for(let s=0;s<jt.length;s++)if(r<=e*(s+1))return jt[s]};const wr=256,Oe=({className:t="",src:e="",name:n,alt:r,width:s=wr,height:i=wr,...o})=>{const[c,f]=g.useState(!1),l=g.useRef(null);g.useEffect(()=>{const d=l.current;if(!d)return;const m=d.getContext("2d");if(!m)return;const p=s,v=i;typeof window<"u"&&window.devicePixelRatio&&(d.width=p*window.devicePixelRatio,d.height=v*window.devicePixelRatio,m.scale(window.devicePixelRatio,window.devicePixelRatio)),m.fillStyle=Ri(n),m.fillRect(0,0,p,v),m.font=`${p/3}px Arial`,m.textAlign="center",m.fillStyle="white",m.fillText(Ta(n),p/2,v/1.6)},[n]);let u=!1;return e&&e!==""&&!c&&(e.includes("http")||e.includes("//"))&&(u=!0),a.jsx("figure",{className:C("profile-picture",t,{error:c}),...o,children:u?a.jsx("img",{src:e,alt:r||n,onError:()=>{f(!0)},width:s,height:i}):a.jsx("canvas",{ref:l})})},Hn=t=>t==="apolitical"?{image:`${Le}logos/member_apolitical.svg`}:t==="community"||typeof t=="object"&&!t.name?{image:`${Le}logos/member_community.svg`}:{name:t.name,role:t.jobTitle||"",organisation:t.organization||"",country:t.location&&t.location.country||"",url:`/profiles/${t.id}`,image:t.image&&t.image.thumbnail},$i=({role:t="",organisation:e="",country:n="",maximumCharacters:r=80})=>{const s=t!=="",i=e!=="",o=n!=="";if(!s&&!i&&!o)return"";const c=`${t}${s&&i?` — ${e}`:e}`;let f=`${c}${(s||i)&&o?`, ${n}`:n}`;return f.length>r&&(f=c),f.length>r&&(f=Ye(f,r)),f};const Xt=({element:t="div",member:e="community",additionalContent:n=!1,gtmContext:r="member",gtmType:s="member-click",className:i=""})=>{const o=q.useIntl(),c=Hn(e);c.name||(c.name=o.formatMessage({id:`member_${typeof e=="string"?e:"community"}`}));const{name:f,url:l,image:u}=c,d=$i(c),m=n&&n.createdAt?On(n.createdAt):!1,p=n&&n.createdAt?ua(n.createdAt):"";return g.createElement(t,{className:C("member text-medium",i),children:a.jsxs(nt,{href:l,gtmType:s,gtmContext:r,onClick:v=>{v==null||v.stopPropagation()},children:[a.jsx(Oe,{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:p,"aria-label":p,children:o.formatMessage({id:`dates_${m.path}`},{number:m.number})}),n.didEdit&&a.jsx("em",{children:o.formatMessage({id:"discussion_edited"})})]}),d&&a.jsx("small",{children:d})]})]})})};const kr={small:24,medium:48},Vn=({element:t="div",contributors:{total:e,data:n}={total:void 0,data:[]},styling:{showText:r,size:s,showGap:i,showPlaceholders:o}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:c=2,className:f="",...l})=>{const u=q.useIntl();return!n||n.length===0?null:g.createElement(t,{...l,className:C("contributors",f,s,{"has-gap":i}),children:a.jsxs(a.Fragment,{children:[a.jsx("ul",{children:n.map((d,m)=>{let p,v="";if(m<c){const{name:_="",image:x=""}=Hn(d);if(o)return a.jsx(we,{element:"li",className:"contributor"},m);p=a.jsx(Oe,{name:_,src:x,width:kr[s||"medium"],height:kr[s||"medium"]})}else if(m===c){const _=(e||n.length)-c;p=a.jsxs("small",{className:C({"large-number":_>99}),children:["+",Js(_,0)]}),v="number-left"}return p?a.jsx("li",{className:C("contributor",v),children:p},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]}`}):Ye(n[0].name||"",20):null})]})})};var Ln={exports:{}},Tt={exports:{}},ce={};/** @license React v16.13.1
|
|
38
38
|
* react-is.production.min.js
|
package/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import K, { memo as Oe, useState as ee, useEffect as ae, useRef as pe, useMemo as bt, createContext as Zn, useContext as Ne, Children as An, useCallback as Jr, useReducer as Hn, Fragment as gt, Suspense as pi } from "react";
|
|
2
2
|
import ft from "lodash.clonedeep";
|
|
3
3
|
import hi from "lodash.set";
|
|
4
|
-
import {
|
|
4
|
+
import { FormattedMessage as ye, useIntl as G, IntlProvider as gi, createIntl as vi } from "react-intl";
|
|
5
5
|
import Qe from "truncate";
|
|
6
6
|
import { QueryClient as bi, QueryClientProvider as yi, useMutation as ke, useQueryClient as Vn, useInfiniteQuery as Xr, useQuery as _i } from "@tanstack/react-query";
|
|
7
7
|
import { ReactQueryDevtools as xi } from "@tanstack/react-query-devtools";
|
|
@@ -1162,6 +1162,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1162
1162
|
/* General */
|
|
1163
1163
|
tooltip_loading: "Loading...",
|
|
1164
1164
|
return_to_nav_button: "Back to top",
|
|
1165
|
+
progress_tracker_steps: "Step {current} of {total}",
|
|
1165
1166
|
/* Layout */
|
|
1166
1167
|
cookieBanner_title: "Cookies and your privacy",
|
|
1167
1168
|
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.",
|
|
@@ -1593,29 +1594,38 @@ const vl = ({ image: t, className: e, testId: n }) => /* @__PURE__ */ a.jsx(
|
|
|
1593
1594
|
}
|
|
1594
1595
|
return n ? K.createElement(n, { children: e, className: r, ...c }) : e;
|
|
1595
1596
|
};
|
|
1596
|
-
const bl = ({ currentStep: t = 1, steps: e = 1 }) => /* @__PURE__ */ a.
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
"
|
|
1601
|
-
{
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1597
|
+
const bl = ({ currentStep: t = 1, steps: e = 1 }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1598
|
+
/* @__PURE__ */ a.jsx(be, { children: /* @__PURE__ */ a.jsx(
|
|
1599
|
+
ye,
|
|
1600
|
+
{
|
|
1601
|
+
id: "progress_tracker_steps",
|
|
1602
|
+
values: { currentStep: t, total: e }
|
|
1603
|
+
}
|
|
1604
|
+
) }),
|
|
1605
|
+
/* @__PURE__ */ a.jsx("div", { className: "wrapper", children: /* @__PURE__ */ a.jsx("div", { className: "dots-wrapper", children: new Array(e).fill("").map((n, r) => {
|
|
1606
|
+
const i = r + 1;
|
|
1607
|
+
return /* @__PURE__ */ a.jsxs("div", { className: "dot-wrapper", children: [
|
|
1608
|
+
/* @__PURE__ */ a.jsx(
|
|
1609
|
+
"div",
|
|
1610
|
+
{
|
|
1611
|
+
className: S("dot", {
|
|
1612
|
+
active: i === t,
|
|
1613
|
+
completed: i < t
|
|
1614
|
+
}),
|
|
1615
|
+
"data-testid": "progress-dot"
|
|
1616
|
+
}
|
|
1617
|
+
),
|
|
1618
|
+
/* @__PURE__ */ a.jsx(
|
|
1619
|
+
"div",
|
|
1620
|
+
{
|
|
1621
|
+
className: S("line", {
|
|
1622
|
+
active: i < t
|
|
1623
|
+
})
|
|
1624
|
+
}
|
|
1625
|
+
)
|
|
1626
|
+
] }, r);
|
|
1627
|
+
}) }) })
|
|
1628
|
+
] });
|
|
1619
1629
|
const yl = ({ elementId: t, offset: e = 20 }) => {
|
|
1620
1630
|
const n = G(), r = () => {
|
|
1621
1631
|
const i = document.getElementById(t);
|
|
@@ -2169,7 +2179,7 @@ const Cl = ({
|
|
|
2169
2179
|
]
|
|
2170
2180
|
}
|
|
2171
2181
|
);
|
|
2172
|
-
},
|
|
2182
|
+
}, _e = () => K.Fragment, cs = ({ children: t }) => /* @__PURE__ */ a.jsx(Ie, { variant: "secondary", children: t }), ls = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], ds = ({ children: t }) => {
|
|
2173
2183
|
const e = G();
|
|
2174
2184
|
if (!t)
|
|
2175
2185
|
return null;
|
|
@@ -2270,27 +2280,27 @@ const hs = {
|
|
|
2270
2280
|
CaseStudy: cs,
|
|
2271
2281
|
// Override embedded HTML
|
|
2272
2282
|
// Our content team previously used real HTML, which we need to tear out and replace with React components
|
|
2273
|
-
style:
|
|
2283
|
+
style: _e,
|
|
2274
2284
|
details: ds,
|
|
2275
2285
|
div: us,
|
|
2276
2286
|
iframe: fs
|
|
2277
2287
|
},
|
|
2278
2288
|
"text-only": {
|
|
2279
|
-
h1:
|
|
2280
|
-
h2:
|
|
2281
|
-
h3:
|
|
2282
|
-
h4:
|
|
2283
|
-
h5:
|
|
2284
|
-
h6:
|
|
2285
|
-
style:
|
|
2286
|
-
details:
|
|
2287
|
-
div:
|
|
2288
|
-
TextBox:
|
|
2289
|
-
CollapsibleSection:
|
|
2290
|
-
CaseStudy:
|
|
2291
|
-
blockquote:
|
|
2292
|
-
iframe:
|
|
2293
|
-
button:
|
|
2289
|
+
h1: _e,
|
|
2290
|
+
h2: _e,
|
|
2291
|
+
h3: _e,
|
|
2292
|
+
h4: _e,
|
|
2293
|
+
h5: _e,
|
|
2294
|
+
h6: _e,
|
|
2295
|
+
style: _e,
|
|
2296
|
+
details: _e,
|
|
2297
|
+
div: _e,
|
|
2298
|
+
TextBox: _e,
|
|
2299
|
+
CollapsibleSection: _e,
|
|
2300
|
+
CaseStudy: _e,
|
|
2301
|
+
blockquote: _e,
|
|
2302
|
+
iframe: _e,
|
|
2303
|
+
button: _e
|
|
2294
2304
|
}
|
|
2295
2305
|
}, Lt = ({
|
|
2296
2306
|
className: t = "",
|
|
@@ -5489,7 +5499,7 @@ function Ml({ className: t = "", userId: e, userName: n, src: r, setUserImage: i
|
|
|
5489
5499
|
};
|
|
5490
5500
|
return /* @__PURE__ */ a.jsxs("div", { className: S("profile-image-change-figure", t), children: [
|
|
5491
5501
|
/* @__PURE__ */ a.jsx(Ze, { className: "profile-image-change-picture", name: n, src: r, "data-testid": "profile-picture" }),
|
|
5492
|
-
f && /* @__PURE__ */ a.jsx("p", { className: "error text-small", children: /* @__PURE__ */ a.jsx(
|
|
5502
|
+
f && /* @__PURE__ */ a.jsx("p", { className: "error text-small", children: /* @__PURE__ */ a.jsx(ye, { id: "profile_image_change_error" }) }),
|
|
5493
5503
|
/* @__PURE__ */ a.jsx(
|
|
5494
5504
|
"input",
|
|
5495
5505
|
{
|
|
@@ -5511,7 +5521,7 @@ function Ml({ className: t = "", userId: e, userName: n, src: r, setUserImage: i
|
|
|
5511
5521
|
"data-gtm-event-type": `${r ? "change-photo" : "add-photo"}-click`,
|
|
5512
5522
|
className: "gtm-trackable",
|
|
5513
5523
|
disabled: o,
|
|
5514
|
-
children: /* @__PURE__ */ a.jsx(
|
|
5524
|
+
children: /* @__PURE__ */ a.jsx(ye, { id: o ? "profile_image_change_uploading_text" : r ? "profile_image_change_cta_with_picture" : "profile_image_change_cta_without_picture" })
|
|
5515
5525
|
}
|
|
5516
5526
|
)
|
|
5517
5527
|
] });
|
|
@@ -6032,9 +6042,9 @@ const Bo = ({ className: t = "" }) => /* @__PURE__ */ a.jsxs(
|
|
|
6032
6042
|
className: S("success-message", t),
|
|
6033
6043
|
"data-testid": "success-message",
|
|
6034
6044
|
children: [
|
|
6035
|
-
/* @__PURE__ */ a.jsx("p", { className: "success-title", children: /* @__PURE__ */ a.jsx(
|
|
6045
|
+
/* @__PURE__ */ a.jsx("p", { className: "success-title", children: /* @__PURE__ */ a.jsx(ye, { id: "signup_success_title" }) }),
|
|
6036
6046
|
/* @__PURE__ */ a.jsx(
|
|
6037
|
-
|
|
6047
|
+
ye,
|
|
6038
6048
|
{
|
|
6039
6049
|
id: "signup_success_text",
|
|
6040
6050
|
values: {
|
|
@@ -6124,7 +6134,7 @@ const qo = {
|
|
|
6124
6134
|
className: S("signup-form-fieldset", t),
|
|
6125
6135
|
"data-testid": "signup-form",
|
|
6126
6136
|
children: [
|
|
6127
|
-
n.title && /* @__PURE__ */ a.jsx("p", { className: "signup-title", children: /* @__PURE__ */ a.jsx(
|
|
6137
|
+
n.title && /* @__PURE__ */ a.jsx("p", { className: "signup-title", children: /* @__PURE__ */ a.jsx(ye, { id: "signup_title" }) }),
|
|
6128
6138
|
p && /* @__PURE__ */ a.jsx(
|
|
6129
6139
|
ze,
|
|
6130
6140
|
{
|
|
@@ -7062,7 +7072,7 @@ const Aa = ({
|
|
|
7062
7072
|
href: "/home/",
|
|
7063
7073
|
className: S("logo", t, e, n),
|
|
7064
7074
|
...r,
|
|
7065
|
-
children: /* @__PURE__ */ a.jsx(be, { children: /* @__PURE__ */ a.jsx(
|
|
7075
|
+
children: /* @__PURE__ */ a.jsx(be, { children: /* @__PURE__ */ a.jsx(ye, { id: "apolitical" }) })
|
|
7066
7076
|
}
|
|
7067
7077
|
) });
|
|
7068
7078
|
let Rt = !1;
|
|
@@ -7352,7 +7362,7 @@ const Cn = "contactFooter_", Zl = ({ onSuccess: t = async () => {
|
|
|
7352
7362
|
return ae(() => (c(), window.addEventListener("resize", f), () => {
|
|
7353
7363
|
clearTimeout(Sn), window.removeEventListener("resize", f);
|
|
7354
7364
|
}), []), /* @__PURE__ */ a.jsx(nt, { id: "contactForm", className: "contact-footer", children: /* @__PURE__ */ a.jsxs("div", { className: "inner-wrapper", children: [
|
|
7355
|
-
/* @__PURE__ */ a.jsx("h2", { children: /* @__PURE__ */ a.jsx(
|
|
7365
|
+
/* @__PURE__ */ a.jsx("h2", { children: /* @__PURE__ */ a.jsx(ye, { id: `${Cn}title` }) }),
|
|
7356
7366
|
/* @__PURE__ */ a.jsxs(
|
|
7357
7367
|
"div",
|
|
7358
7368
|
{
|
|
@@ -7362,8 +7372,8 @@ const Cn = "contactFooter_", Zl = ({ onSuccess: t = async () => {
|
|
|
7362
7372
|
style: s ? {} : { minHeight: r },
|
|
7363
7373
|
children: [
|
|
7364
7374
|
/* @__PURE__ */ a.jsxs("aside", { children: [
|
|
7365
|
-
/* @__PURE__ */ a.jsx("p", { children: /* @__PURE__ */ a.jsx(
|
|
7366
|
-
/* @__PURE__ */ a.jsx(wt, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ a.jsx(
|
|
7375
|
+
/* @__PURE__ */ a.jsx("p", { children: /* @__PURE__ */ a.jsx(ye, { id: `${Cn}text` }) }),
|
|
7376
|
+
/* @__PURE__ */ a.jsx(wt, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ a.jsx(ye, { id: `${Cn}email` }) })
|
|
7367
7377
|
] }),
|
|
7368
7378
|
/* @__PURE__ */ a.jsx(
|
|
7369
7379
|
Fo,
|
|
@@ -7529,7 +7539,7 @@ const Ge = "footer_", Yt = "SiteFooter", Wr = ({ group: t }) => {
|
|
|
7529
7539
|
const e = Me[t].order || [];
|
|
7530
7540
|
let n = !1;
|
|
7531
7541
|
return "text" in Me[t] && (n = Me[t].text), /* @__PURE__ */ a.jsxs(gt, { children: [
|
|
7532
|
-
/* @__PURE__ */ a.jsx("p", { className: "pre-title", children: /* @__PURE__ */ a.jsx(
|
|
7542
|
+
/* @__PURE__ */ a.jsx("p", { className: "pre-title", children: /* @__PURE__ */ a.jsx(ye, { id: `${Ge}${t}` }) }),
|
|
7533
7543
|
Array.isArray(e) && e.length > 0 && /* @__PURE__ */ a.jsx("ul", { className: "text-medium", children: e.map((r) => {
|
|
7534
7544
|
if (["order", "child", "text"].includes(r))
|
|
7535
7545
|
return null;
|
|
@@ -7542,15 +7552,15 @@ const Ge = "footer_", Yt = "SiteFooter", Wr = ({ group: t }) => {
|
|
|
7542
7552
|
"data-gtm-event-context": Yt,
|
|
7543
7553
|
"data-gtm-event-type": s,
|
|
7544
7554
|
...o,
|
|
7545
|
-
children: /* @__PURE__ */ a.jsx(
|
|
7555
|
+
children: /* @__PURE__ */ a.jsx(ye, { id: `${Ge}${t}_${r}` })
|
|
7546
7556
|
}
|
|
7547
7557
|
) }, `${t}_${r}`);
|
|
7548
7558
|
}) }),
|
|
7549
7559
|
typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ a.jsx("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ a.jsxs(gt, { children: [
|
|
7550
|
-
/* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsx(
|
|
7560
|
+
/* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsx(ye, { id: `${Ge}${t}_${r}` }) }),
|
|
7551
7561
|
/* @__PURE__ */ a.jsxs("dd", { children: [
|
|
7552
7562
|
typeof n != "boolean" && n[r].address && /* @__PURE__ */ a.jsx("address", { children: /* @__PURE__ */ a.jsx(
|
|
7553
|
-
|
|
7563
|
+
ye,
|
|
7554
7564
|
{
|
|
7555
7565
|
id: `${Ge}${t}_${r}_address`,
|
|
7556
7566
|
values: { br: /* @__PURE__ */ a.jsx("br", {}) }
|
|
@@ -7598,12 +7608,12 @@ const Ge = "footer_", Yt = "SiteFooter", Wr = ({ group: t }) => {
|
|
|
7598
7608
|
className: "gtm-trackable",
|
|
7599
7609
|
"data-gtm-event-context": Yt,
|
|
7600
7610
|
"data-gtm-event-type": "social-click",
|
|
7601
|
-
children: /* @__PURE__ */ a.jsx("span", { className: "hidden", children: /* @__PURE__ */ a.jsx(
|
|
7611
|
+
children: /* @__PURE__ */ a.jsx("span", { className: "hidden", children: /* @__PURE__ */ a.jsx(ye, { id: `${Ge}social_${t}` }) })
|
|
7602
7612
|
}
|
|
7603
7613
|
) }, t);
|
|
7604
7614
|
}) }),
|
|
7605
7615
|
/* @__PURE__ */ a.jsx("small", { children: /* @__PURE__ */ a.jsx(
|
|
7606
|
-
|
|
7616
|
+
ye,
|
|
7607
7617
|
{
|
|
7608
7618
|
id: `${Ge}copyright`,
|
|
7609
7619
|
values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() }
|
|
@@ -8968,7 +8978,7 @@ const Re = "discussion_", hc = 280, an = ({
|
|
|
8968
8978
|
],
|
|
8969
8979
|
gtmContext: `${e.type.charAt(0).toUpperCase()}${e.type.slice(1)}:${e.slug}`,
|
|
8970
8980
|
children: /* @__PURE__ */ a.jsx(
|
|
8971
|
-
|
|
8981
|
+
ye,
|
|
8972
8982
|
{
|
|
8973
8983
|
id: "discussion_delete_text",
|
|
8974
8984
|
values: {
|