@apolitical/component-library 6.6.22 → 6.6.23-ac.0

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.
@@ -0,0 +1,20 @@
1
+ export interface IEvent {
2
+ defaultStartDate: string;
3
+ endDate: string;
4
+ title: string;
5
+ slug: string;
6
+ eventPage?: string;
7
+ startDate?: string;
8
+ description?: string;
9
+ zoomLink?: string;
10
+ }
11
+ export declare const objectToQueryString: (queryParameters: {
12
+ [key: string]: string;
13
+ }) => string;
14
+ export declare function getICS(event: IEvent): string;
15
+ declare function getCalendarDetails(event: IEvent, message: string): {
16
+ name: string;
17
+ icon: string;
18
+ href: string;
19
+ }[];
20
+ export default getCalendarDetails;
@@ -1,5 +1,6 @@
1
1
  export { default as basicReducer } from './basic-reducer';
2
2
  export * from './breakpoints';
3
+ export * from './calendar-details';
3
4
  export * from './cases';
4
5
  export * from './inline-styling';
5
6
  export * from './dates';
package/helpers/intl.d.ts CHANGED
@@ -541,6 +541,7 @@ export declare const checkIntlPathExists: (path: string, language?: {
541
541
  markdown_iframe_video: string;
542
542
  markdown_iframe_padlet: string;
543
543
  markdown_iframe_poll: string;
544
+ general_event_invite_message: string;
544
545
  }) => boolean;
545
546
  export declare const getIntlPath: (callback: (args1: {
546
547
  id: string;
package/index.js CHANGED
@@ -28,13 +28,17 @@ Check the render method of \``+I+"`."}return""}}function wh(I){{if(I!==void 0){v
28
28
 
29
29
  Check your code at `+le+":"+fe+"."}return""}}var gu={};function Ch(I){{var le=pu();if(!le){var fe=typeof I=="string"?I:I.displayName||I.name;fe&&(le=`
30
30
 
31
- Check the top-level render call using <`+fe+">.")}return le}}function vu(I,le){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var fe=Ch(le);if(gu[fe])return;gu[fe]=!0;var _e="";I&&I._owner&&I._owner!==wr.current&&(_e=" It was passed a child from "+F(I._owner.type)+"."),qn(I),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',fe,_e),qn(null)}}function bu(I,le){{if(typeof I!="object")return;if(je(I))for(var fe=0;fe<I.length;fe++){var _e=I[fe];Aa(_e)&&vu(_e,le)}else if(Aa(I))I._store&&(I._store.validated=!0);else if(I){var Ie=b(I);if(typeof Ie=="function"&&Ie!==I.entries)for(var He=Ie.call(I),Oe;!(Oe=He.next()).done;)Aa(Oe.value)&&vu(Oe.value,le)}}}function Dh(I){{var le=I.type;if(le==null||typeof le=="string")return;var fe;if(typeof le=="function")fe=le.propTypes;else if(typeof le=="object"&&(le.$$typeof===l||le.$$typeof===m))fe=le.propTypes;else return;if(fe){var _e=F(le);ze(fe,I.props,"prop",_e,I)}else if(le.PropTypes!==void 0&&!Fa){Fa=!0;var Ie=F(le);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ie||"Unknown")}typeof le.getDefaultProps=="function"&&!le.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Eh(I){{for(var le=Object.keys(I.props),fe=0;fe<le.length;fe++){var _e=le[fe];if(_e!=="children"&&_e!=="key"){qn(I),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_e),qn(null);break}}I.ref!==null&&(qn(I),y("Invalid attribute `ref` supplied to `React.Fragment`."),qn(null))}}function yu(I,le,fe,_e,Ie,He){{var Oe=L(I);if(!Oe){var Pe="";(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).length===0)&&(Pe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var mt=wh(Ie);mt?Pe+=mt:Pe+=pu();var Xe;I===null?Xe="null":je(I)?Xe="array":I!==void 0&&I.$$typeof===t?(Xe="<"+(F(I.type)||"Unknown")+" />",Pe=" Did you accidentally export a JSX literal instead of a component?"):Xe=typeof I,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Xe,Pe)}var nt=ka(I,le,fe,Ie,He);if(nt==null)return nt;if(Oe){var Tt=le.children;if(Tt!==void 0)if(_e)if(je(Tt)){for(var Un=0;Un<Tt.length;Un++)bu(Tt[Un],I);Object.freeze&&Object.freeze(Tt)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else bu(Tt,I)}return I===r?Eh(nt):Dh(nt),nt}}function _h(I,le,fe){return yu(I,le,fe,!0)}function kh(I,le,fe){return yu(I,le,fe,!1)}var Fh=kh,Ah=_h;Dr.Fragment=r,Dr.jsx=Fh,Dr.jsxs=Ah}()),Dr}process.env.NODE_ENV==="production"?As.exports=Nh():As.exports=Ih();var c=As.exports;const Rh=50,$h=8,fd=(e,t)=>{if(!e)return!1;const n=x.useRef(null),r=t||n;return x.useEffect(()=>{const i=r.current,a=()=>{if(i){const s=parseInt(i.style.height.replace("px",""))||0,o=i.scrollHeight,l=Math.abs(o-s);o!==s&&l>$h&&(i.style.height=`${o}px`,i.scrollHeight>=Rh?i.classList.contains("single-line")&&i.classList.remove("single-line"):i.classList.contains("single-line")||i.classList.add("single-line"))}};if(i)return a(),i.addEventListener("input",a),()=>i.removeEventListener("input",a)},[]),r},md=()=>{const[e,t]=x.useState(window.location.pathname),n=()=>{const r=window.location.pathname;t(r)};return x.useEffect(()=>(window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}),[]),e},or=(e,t)=>{const n=x.useRef(!1);x.useEffect(()=>{n.current?e():n.current=!0},t)};function Ur(e,t,n){var r=this,i=x.useRef(null),a=x.useRef(0),s=x.useRef(null),o=x.useRef([]),l=x.useRef(),u=x.useRef(),d=x.useRef(e),m=x.useRef(!0);d.current=e;var h=typeof window<"u",p=!t&&t!==0&&h;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var v=!!(n=n||{}).leading,f=!("trailing"in n)||!!n.trailing,b="maxWait"in n,g="debounceOnServer"in n&&!!n.debounceOnServer,y=b?Math.max(+n.maxWait||0,t):null;x.useEffect(function(){return m.current=!0,function(){m.current=!1}},[]);var C=x.useMemo(function(){var A=function(L){var $=o.current,B=l.current;return o.current=l.current=null,a.current=L,u.current=d.current.apply(B,$)},E=function(L,$){p&&cancelAnimationFrame(s.current),s.current=p?requestAnimationFrame(L):setTimeout(L,$)},_=function(L){if(!m.current)return!1;var $=L-i.current;return!i.current||$>=t||$<0||b&&L-a.current>=y},T=function(L){return s.current=null,f&&o.current?A(L):(o.current=l.current=null,u.current)},M=function L(){var $=Date.now();if(_($))return T($);if(m.current){var B=t-($-i.current),F=b?Math.min(B,y-($-a.current)):B;E(L,F)}},O=function(){if(h||g){var L=Date.now(),$=_(L);if(o.current=[].slice.call(arguments),l.current=r,i.current=L,$){if(!s.current&&m.current)return a.current=i.current,E(M,t),v?A(i.current):u.current;if(b)return E(M,t),A(i.current)}return s.current||E(M,t),u.current}};return O.cancel=function(){s.current&&(p?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,o.current=i.current=l.current=s.current=null},O.isPending=function(){return!!s.current},O.flush=function(){return s.current?T(Date.now()):u.current},O},[v,b,t,y,f,p,h,g]);return C}function hd(e,t,n){var r=n===void 0?{}:n,i=r.leading,a=r.trailing;return Ur(e,t,{maxWait:t,leading:i===void 0||i,trailing:a===void 0||a})}let Ba;const xn=(e=!0,t=!1,n="window")=>{if(!e)return;const[r,i]=x.useState(0)||[!1,()=>{}],a=n==="window"?[]:[n];x.useEffect(()=>(o(),window.addEventListener("resize",u),window.addEventListener("hashchange",u),window.addEventListener("hiddenSectionVisible",l),()=>{clearTimeout(Ba),u.flush(),window.removeEventListener("resize",u),window.removeEventListener("hashchange",u),window.removeEventListener("hiddenSectionVisible",l)}),a);const s=()=>{if(n)return n==="window"?window.innerWidth:n.offsetWidth},o=()=>{i(s())},l=({detail:d})=>{const{id:m}=d;n==="window"||!n.closest(`#${m}`)||s()===r||o()},u=hd(()=>{s()!==r&&(t&&(clearTimeout(Ba),document.body.classList.add("is-resizing"),Ba=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),o())},500,{leading:!0});return r},pd=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:n=()=>{},scrollUp:r=()=>{}}})=>{if(!window)return;const[i,a]=x.useState({current:0,past:0})||[!1,()=>{}],[s,o]=x.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];x.useEffect(()=>(l(),window.addEventListener("scroll",u),()=>{u.flush(),window.removeEventListener("scroll",u)}),[]);const l=()=>{const d=window.scrollY,m=i.current,h=d-m,p=h>0?"down":"up";if(a({current:d,past:m}),p==="down"){d>=e+t.down&&!s.scrollDown&&(!s.scrollUp||h>t.up)&&(n(),o({scrollUp:!1,scrollDown:!0}));return}Math.abs(h)>=t.up&&!s.scrollUp&&(r(),o({scrollUp:!0,scrollDown:!1}))},u=hd(()=>{l()},250);return i},lo=(e=[],t=!0)=>{e=Array.isArray(e)?e:[e];const n=x.useRef(!1);or(()=>{if(window&&window.location&&window.location.hash){if(n.current)return;const r=document.getElementById(window.location.hash.replace("#",""));r&&(r.scrollIntoView(t?{behavior:"smooth"}:null),n.current=!0)}},e)},co=(e=!1)=>{if(!e)return{showTooltip:!1,tooltipProps:{}};const[t,n]=x.useState(!1);return{showTooltip:t,tooltipProps:{onClick:()=>n(!0),onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation(),n(!t))},onMouseOver:()=>n(!0),onMouseOut:()=>n(!1),onFocus:()=>n(!0),onBlur:()=>n(!1)}}};const Du={},$n=x.forwardRef(({id:e,styling:t={},isOpen:n=!1,isLoading:r=!1,children:i,className:a="",functions:s={},callbacks:o={},accessibility:l={},...u},d)=>{const m=ie.useIntl(),[h]=x.useState(e||Date.now().toString()),p=x.useRef(null),v=d||p,[f,b]=x.useState(n?"open":"hidden"),{extraPadding:g=!0,hasPointer:y=!1,hasForm:C=!1}=t,{onOpen:A=()=>{},onClose:E=()=>{}}=o,{readToScreenreadersWhenClosed:_=!1,...T}=l,M=Du[h];x.useEffect(()=>{const B=v==null?void 0:v.current;if(B)return B.addEventListener("transitionend",O),()=>{B.removeEventListener("transitionend",O)}},[]),x.useEffect(()=>{if(f!=="open")return;const B=F=>{F.key==="Escape"&&(F.stopPropagation(),F.preventDefault(),b("closed"))};return document.addEventListener("keyup",B),()=>{document.removeEventListener("keyup",B)}},[f]);const O=({propertyName:B})=>{B==="opacity"&&(M!==!1&&clearTimeout(M),b(F=>(F==="open"?A():F==="closed"&&E(),F==="opening"?"open":F==="closing"?"closed":F==="closed"?"hidden":F)))};or(()=>{M!==!1&&clearTimeout(M);let B="open";n?b("opening"):(b("closing"),B="hidden"),Du[h||""]=setTimeout(()=>{b(B)},300)},[n]);const L={"aria-live":"polite",...u,...T};s&&s.onBlur&&(L.onBlur=s.onBlur);const $={className:"content"};return _?$.className=H("content",{hidden:f==="hidden"}):$.hidden=f==="hidden",c.jsx("aside",{ref:v,id:h,className:H("tooltip text-medium",f,a,{loading:r,"extra-padding":g,"has-pointer":y,bottom:y==="bottom","has-form":C}),...L,children:c.jsx("div",{...$,children:r?c.jsx("p",{children:m.formatMessage({id:"tooltip_loading"})}):typeof i=="string"?c.jsx("p",{children:i}):i})})}),ri=(e,t)=>{Array.isArray(t)||(t=[t]);const n=Ot(e);return t.forEach(({type:r,value:i})=>{Bh(n,r,i)}),n},gd=e=>{const t=[];return e.forEach(n=>{const r=parseInt(n);isNaN(r)||t.push(r)}),t.sort((n,r)=>n-r)},vd=(e,t,n)=>{let r=n.mobile;for(const i in t){const a=parseInt(String(t[i]));if(e>=a)r=n[a];else if(e<a)break}return r},bd=e=>e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`),yd=(e="")=>e.replace(/(?:^\w|[A-Z]|\b\w)/g,t=>t.toUpperCase()).replace(/[&\s]+/g,""),xd=(e="")=>e.charAt(0).toUpperCase()+e.slice(1),Lh=(e="")=>e.replace(/(?:^\w|[A-Z]|\b\w)/g,t=>t.toUpperCase()),Gt="https://storage.googleapis.com/apolitical-assets/",Qn={general:"hello@apolitical.co",support:"concierge@apolitical.co","data-protection":{default:"dpo@apolitical.co",eu:"dpo.agl@apolitical.foundation"}},Sr={ARTICLE:"microcourseArticle",DISCUSSION:"microcourseDiscussion",QUIZ:"assessmentQuiz"},Bs="SU:",Wr="DELETED",wd="Invalid token error: Logging user out...",zh="250,000+",qh="160+",Vr=/@{{([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})}}/g,Cd=new RegExp("(?<=^|\\s)@([A-Za-z]+(?:[- ]?[A-Za-z]*)*)$");function Uh(e){return e?{"--icon":`url(${Gt}icons/${e}.svg)`}:{}}const An={milliseconds:{inSecond:1e3,inMinute:6e4,inHour:36e5,inDay:864e5},year:{weeks:52,days:365}},Dd=(e,t="en")=>new Date(e).toLocaleString(t,{day:"numeric",month:"short"}),fo=(e,t="en")=>new Date(e).toLocaleString(t,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),Ts=e=>{let t;const n=Ui(),r=Ui(new Date(e));try{t=n.getTime()-r.getTime()}catch{return""}const i=t/An.milliseconds.inHour,a=Math.floor(t/An.milliseconds.inDay);if(a<1)return i<1?{path:"now"}:{path:"hours",number:Math.floor(i)};if(a<7)return{path:"days",number:a};const s=Math.floor(a/7);return s<=An.year.weeks?{path:"weeks",number:s}:{path:"years",number:Math.floor(a/An.year.days)}},Ui=e=>{const n=(e||new Date).toUTCString();return new Date(n)},Wh=(e,t,n)=>{let r;const i=Ui(),a=Ui(new Date(e));try{r=i.getTime()-a.getTime()}catch{return!1}switch(n){case"seconds":return r/An.milliseconds.inSecond<=t;case"minutes":return r/An.milliseconds.inMinute<=t;case"hours":return r/An.milliseconds.inHour<=t}return!1},Vh=(e,t)=>{const n=new Date(e);return Math.abs(new Date().getTime()-n.getTime())/(1e3*60*60*24)<t},Hh=e=>new Promise(t=>setTimeout(t,e)),Kh=()=>{let e=!1;return typeof window<"u"&&(e=!!(window&&window.location&&window.location.href&&window.location.href.includes("localhost"))),e},pr={apolitical:"Apolitical",dates_now:"now",dates_hours:"{number}h",dates_days:"{number}d",dates_weeks:"{number}w",dates_years:"{number}y",card_carousel_viewAll:"View all",card_label_communityPage:"Community",card_label_event:"Event",card_label_learningHub:"Programme",card_label_listPage:"List",card_label_microcourse:"Course",card_label_qaQuestion:"Q&A",card_label_solutionArticle:"Article",card_bootcamp:"Email boot camp",card_ended:"Ended",card_new:"New",card_registered:"Registered",card_partner:"{partner} and {number} more",card_contributors_event:"Multiple speakers",card_contributors_solutionArticle:"Multiple authors",card_answers:"{number, plural, =0 {0 answers} one {# answer} other {# answers}}",card_time_ago:"{time} ago",card_time_read:"{time} min read",card_watch:"Watch recording",card_member_type_owner:"Admin",card_member_type_member:"Member",card_member_count:"{count} members",card_cta_people:"View profile",card_cta_communityPage:"Join now",card_cta_event:"Register now",card_cta_microcourse:"Enrol now",card_cta_communityPage_loading:"Joining...",card_cta_event_loading:"Registering...",card_cta_microcourse_loading:"Enrolling...",card_cta_communityPage_done:"Joined",card_cta_event_done:"Registered",card_cta_microcourse_done:"Enrolled",carousel_pagination_previous:"previous",carousel_pagination_previousSlide:"Previous slide",carousel_pagination_next:"next",carousel_pagination_nextSlide:"Next slide",carousel_pagination_slide:"Slide {number} of {total}",carousel_pagination_ariaLive:"On {direction} slide: {count, plural, one {1 card} other {# cards}} available",carousel_pagination_ariaLive_slide:"On slide {slide}: {count, plural, one {1 card} other {# cards}} available",activitySection_notFoundError:"Post not found",activitiesFeed_sorting_label:"Choose feed sorting method",activitiesFeed_rankingMethod_recent:"Recent",activitiesFeed_rankingMethod_popular:"Popular",activitiesFeed_rankingMethod_internalTesting:"Testing",activitiesFeed_noActivities_inCategories:"There are no posts of this type yet.",activitiesFeed_noActivities:"Activities will appear here.",activitiesFeed_noActivities_button:"Explore Communities",communityDetails_members:"Members",communityDetails_viewAll:"View all",communityDetails_invite:"Invite colleagues",community_joinToPost:"Join community to create a post.",community_sortSuccess:"Feed ordered by {order}",joinCommunityButton:"Join community",joinCommunityButton_short:"Join",joinCommunityButton_joining:"Joining...",joinCommunityButton_member:"Member",joinCommunityButton_member_aria:"Leave community",joinCommunityButton_leave:"Leave",joinCommunityButton_leaving:"Leaving...",joinCommunityButton_closed_tooltip:"Please contact the admin of this closed community if you would like to join it.",joinCommunityButton_aria_live:"You are {action} this community",member_apolitical:"Apolitical",member_community:"Community post",member_deleted:"Deleted user",member_profile:"Update profile",member_createdAt_community:"{time} ago in <link>{community}</link>",membersList:"Members",membersList_admin:"Admin",membersList_profile:"Update profile",membersList_modal_title:"Update profile",courseStructure_section:"{number, plural, =0 {Start here} other {Section #}}",courseStructure_section_end:"End here",courseStructure_time_left:"left",courseStructure_time_completed:"Completed",courseProgression_done:"<percent>{number}%</percent> done",courseProgression_timeLeft:"left","lessonType_analyse-data":"Analyse data","lessonType_analyse-scenarios":"Analyse scenarios","lessonType_attend-webinar":"Attend webinar","lessonType_brainstorm-ideas":"Brainstorm ideas","lessonType_discuss-with-peers":"Discuss with peers","lessonType_discuss-with-team":"Discuss with team","lessonType_do-activity":"Do activity","lessonType_do-assessment":"Do assessment","lessonType_explore-casebook":"Explore casebook","lessonType_fill-out-workbook":"Fill out workbook","lessonType_fill-out-worksheet":"Fill out worksheet","lessonType_investigate-interview":"Investigate interview","lessonType_listen-to-audio":"Listen to audio","lessonType_listen-to-audiocast":"Listen to audiocast","lessonType_listen-to-podcast":"Listen to podcast","lessonType_read-article":"Read article","lessonType_read-article-by-expert":"Read article by expert","lessonType_read-article-by-public-servant":"Read article by public servant","lessonType_read-conclusion":"Read conclusion","lessonType_read-infographic":"Read infographic","lessonType_read-introduction":"Read introduction","lessonType_read-resource":"Read resource","lessonType_reflect-on-content":"Reflect on content","lessonType_share-experiences":"Share experiences","lessonType_take-quiz":"Take quiz","lessonType_use-toolkit":"Use toolkit","lessonType_watch-video":"Watch video","lessonType_watch-webinar":"Watch webinar",markCompleteButton:"Mark as complete",markCompleteButton_completed:"Lesson complete",discussion_action_answer:"answer",discussion_action_comment:"comment",discussion_action_poll:"poll",discussion_action_post:"post",discussion_action_response:"response",discussion_action_reply:"reply",discussion_action_question:"question",discussion_edited:"Edited",discussion_delete_title:"Delete {action}",discussion_delete_text:"<p>Are you sure you want to delete your {action}?</p><p>This can't be undone.</p>",discussion_delete_cancel:"Cancel",discussion_delete_delete:"Delete",discussion_delete_error:"We are unable to delete your {action} at the moment. Please try again later or contact us if problem persists.",discussion_pinned_post:"Pinned Post",discussion_reply:"Reply",discussion_report_subject:"Report a post on Apolitical",discussion_report_body:`I'd like to report the {contentType} <{contentSlug}> at {contentUrl}.
31
+ Check the top-level render call using <`+fe+">.")}return le}}function vu(I,le){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var fe=Ch(le);if(gu[fe])return;gu[fe]=!0;var _e="";I&&I._owner&&I._owner!==wr.current&&(_e=" It was passed a child from "+F(I._owner.type)+"."),qn(I),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',fe,_e),qn(null)}}function bu(I,le){{if(typeof I!="object")return;if(je(I))for(var fe=0;fe<I.length;fe++){var _e=I[fe];Aa(_e)&&vu(_e,le)}else if(Aa(I))I._store&&(I._store.validated=!0);else if(I){var Ie=b(I);if(typeof Ie=="function"&&Ie!==I.entries)for(var He=Ie.call(I),Oe;!(Oe=He.next()).done;)Aa(Oe.value)&&vu(Oe.value,le)}}}function Dh(I){{var le=I.type;if(le==null||typeof le=="string")return;var fe;if(typeof le=="function")fe=le.propTypes;else if(typeof le=="object"&&(le.$$typeof===l||le.$$typeof===m))fe=le.propTypes;else return;if(fe){var _e=F(le);ze(fe,I.props,"prop",_e,I)}else if(le.PropTypes!==void 0&&!Fa){Fa=!0;var Ie=F(le);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ie||"Unknown")}typeof le.getDefaultProps=="function"&&!le.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Eh(I){{for(var le=Object.keys(I.props),fe=0;fe<le.length;fe++){var _e=le[fe];if(_e!=="children"&&_e!=="key"){qn(I),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_e),qn(null);break}}I.ref!==null&&(qn(I),y("Invalid attribute `ref` supplied to `React.Fragment`."),qn(null))}}function yu(I,le,fe,_e,Ie,He){{var Oe=L(I);if(!Oe){var Pe="";(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).length===0)&&(Pe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var mt=wh(Ie);mt?Pe+=mt:Pe+=pu();var Xe;I===null?Xe="null":je(I)?Xe="array":I!==void 0&&I.$$typeof===t?(Xe="<"+(F(I.type)||"Unknown")+" />",Pe=" Did you accidentally export a JSX literal instead of a component?"):Xe=typeof I,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Xe,Pe)}var nt=ka(I,le,fe,Ie,He);if(nt==null)return nt;if(Oe){var Tt=le.children;if(Tt!==void 0)if(_e)if(je(Tt)){for(var Un=0;Un<Tt.length;Un++)bu(Tt[Un],I);Object.freeze&&Object.freeze(Tt)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else bu(Tt,I)}return I===r?Eh(nt):Dh(nt),nt}}function _h(I,le,fe){return yu(I,le,fe,!0)}function kh(I,le,fe){return yu(I,le,fe,!1)}var Fh=kh,Ah=_h;Dr.Fragment=r,Dr.jsx=Fh,Dr.jsxs=Ah}()),Dr}process.env.NODE_ENV==="production"?As.exports=Nh():As.exports=Ih();var c=As.exports;const Rh=50,$h=8,fd=(e,t)=>{if(!e)return!1;const n=x.useRef(null),r=t||n;return x.useEffect(()=>{const i=r.current,a=()=>{if(i){const s=parseInt(i.style.height.replace("px",""))||0,o=i.scrollHeight,l=Math.abs(o-s);o!==s&&l>$h&&(i.style.height=`${o}px`,i.scrollHeight>=Rh?i.classList.contains("single-line")&&i.classList.remove("single-line"):i.classList.contains("single-line")||i.classList.add("single-line"))}};if(i)return a(),i.addEventListener("input",a),()=>i.removeEventListener("input",a)},[]),r},md=()=>{const[e,t]=x.useState(window.location.pathname),n=()=>{const r=window.location.pathname;t(r)};return x.useEffect(()=>(window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}),[]),e},or=(e,t)=>{const n=x.useRef(!1);x.useEffect(()=>{n.current?e():n.current=!0},t)};function Ur(e,t,n){var r=this,i=x.useRef(null),a=x.useRef(0),s=x.useRef(null),o=x.useRef([]),l=x.useRef(),u=x.useRef(),d=x.useRef(e),m=x.useRef(!0);d.current=e;var h=typeof window<"u",p=!t&&t!==0&&h;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var v=!!(n=n||{}).leading,f=!("trailing"in n)||!!n.trailing,b="maxWait"in n,g="debounceOnServer"in n&&!!n.debounceOnServer,y=b?Math.max(+n.maxWait||0,t):null;x.useEffect(function(){return m.current=!0,function(){m.current=!1}},[]);var C=x.useMemo(function(){var A=function(L){var $=o.current,B=l.current;return o.current=l.current=null,a.current=L,u.current=d.current.apply(B,$)},E=function(L,$){p&&cancelAnimationFrame(s.current),s.current=p?requestAnimationFrame(L):setTimeout(L,$)},_=function(L){if(!m.current)return!1;var $=L-i.current;return!i.current||$>=t||$<0||b&&L-a.current>=y},T=function(L){return s.current=null,f&&o.current?A(L):(o.current=l.current=null,u.current)},M=function L(){var $=Date.now();if(_($))return T($);if(m.current){var B=t-($-i.current),F=b?Math.min(B,y-($-a.current)):B;E(L,F)}},O=function(){if(h||g){var L=Date.now(),$=_(L);if(o.current=[].slice.call(arguments),l.current=r,i.current=L,$){if(!s.current&&m.current)return a.current=i.current,E(M,t),v?A(i.current):u.current;if(b)return E(M,t),A(i.current)}return s.current||E(M,t),u.current}};return O.cancel=function(){s.current&&(p?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,o.current=i.current=l.current=s.current=null},O.isPending=function(){return!!s.current},O.flush=function(){return s.current?T(Date.now()):u.current},O},[v,b,t,y,f,p,h,g]);return C}function hd(e,t,n){var r=n===void 0?{}:n,i=r.leading,a=r.trailing;return Ur(e,t,{maxWait:t,leading:i===void 0||i,trailing:a===void 0||a})}let Ba;const xn=(e=!0,t=!1,n="window")=>{if(!e)return;const[r,i]=x.useState(0)||[!1,()=>{}],a=n==="window"?[]:[n];x.useEffect(()=>(o(),window.addEventListener("resize",u),window.addEventListener("hashchange",u),window.addEventListener("hiddenSectionVisible",l),()=>{clearTimeout(Ba),u.flush(),window.removeEventListener("resize",u),window.removeEventListener("hashchange",u),window.removeEventListener("hiddenSectionVisible",l)}),a);const s=()=>{if(n)return n==="window"?window.innerWidth:n.offsetWidth},o=()=>{i(s())},l=({detail:d})=>{const{id:m}=d;n==="window"||!n.closest(`#${m}`)||s()===r||o()},u=hd(()=>{s()!==r&&(t&&(clearTimeout(Ba),document.body.classList.add("is-resizing"),Ba=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),o())},500,{leading:!0});return r},pd=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:n=()=>{},scrollUp:r=()=>{}}})=>{if(!window)return;const[i,a]=x.useState({current:0,past:0})||[!1,()=>{}],[s,o]=x.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];x.useEffect(()=>(l(),window.addEventListener("scroll",u),()=>{u.flush(),window.removeEventListener("scroll",u)}),[]);const l=()=>{const d=window.scrollY,m=i.current,h=d-m,p=h>0?"down":"up";if(a({current:d,past:m}),p==="down"){d>=e+t.down&&!s.scrollDown&&(!s.scrollUp||h>t.up)&&(n(),o({scrollUp:!1,scrollDown:!0}));return}Math.abs(h)>=t.up&&!s.scrollUp&&(r(),o({scrollUp:!0,scrollDown:!1}))},u=hd(()=>{l()},250);return i},lo=(e=[],t=!0)=>{e=Array.isArray(e)?e:[e];const n=x.useRef(!1);or(()=>{if(window&&window.location&&window.location.hash){if(n.current)return;const r=document.getElementById(window.location.hash.replace("#",""));r&&(r.scrollIntoView(t?{behavior:"smooth"}:null),n.current=!0)}},e)},co=(e=!1)=>{if(!e)return{showTooltip:!1,tooltipProps:{}};const[t,n]=x.useState(!1);return{showTooltip:t,tooltipProps:{onClick:()=>n(!0),onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation(),n(!t))},onMouseOver:()=>n(!0),onMouseOut:()=>n(!1),onFocus:()=>n(!0),onBlur:()=>n(!1)}}};const Du={},$n=x.forwardRef(({id:e,styling:t={},isOpen:n=!1,isLoading:r=!1,children:i,className:a="",functions:s={},callbacks:o={},accessibility:l={},...u},d)=>{const m=ie.useIntl(),[h]=x.useState(e||Date.now().toString()),p=x.useRef(null),v=d||p,[f,b]=x.useState(n?"open":"hidden"),{extraPadding:g=!0,hasPointer:y=!1,hasForm:C=!1}=t,{onOpen:A=()=>{},onClose:E=()=>{}}=o,{readToScreenreadersWhenClosed:_=!1,...T}=l,M=Du[h];x.useEffect(()=>{const B=v==null?void 0:v.current;if(B)return B.addEventListener("transitionend",O),()=>{B.removeEventListener("transitionend",O)}},[]),x.useEffect(()=>{if(f!=="open")return;const B=F=>{F.key==="Escape"&&(F.stopPropagation(),F.preventDefault(),b("closed"))};return document.addEventListener("keyup",B),()=>{document.removeEventListener("keyup",B)}},[f]);const O=({propertyName:B})=>{B==="opacity"&&(M!==!1&&clearTimeout(M),b(F=>(F==="open"?A():F==="closed"&&E(),F==="opening"?"open":F==="closing"?"closed":F==="closed"?"hidden":F)))};or(()=>{M!==!1&&clearTimeout(M);let B="open";n?b("opening"):(b("closing"),B="hidden"),Du[h||""]=setTimeout(()=>{b(B)},300)},[n]);const L={"aria-live":"polite",...u,...T};s&&s.onBlur&&(L.onBlur=s.onBlur);const $={className:"content"};return _?$.className=H("content",{hidden:f==="hidden"}):$.hidden=f==="hidden",c.jsx("aside",{ref:v,id:h,className:H("tooltip text-medium",f,a,{loading:r,"extra-padding":g,"has-pointer":y,bottom:y==="bottom","has-form":C}),...L,children:c.jsx("div",{...$,children:r?c.jsx("p",{children:m.formatMessage({id:"tooltip_loading"})}):typeof i=="string"?c.jsx("p",{children:i}):i})})}),ri=(e,t)=>{Array.isArray(t)||(t=[t]);const n=Ot(e);return t.forEach(({type:r,value:i})=>{Bh(n,r,i)}),n},gd=e=>{const t=[];return e.forEach(n=>{const r=parseInt(n);isNaN(r)||t.push(r)}),t.sort((n,r)=>n-r)},vd=(e,t,n)=>{let r=n.mobile;for(const i in t){const a=parseInt(String(t[i]));if(e>=a)r=n[a];else if(e<a)break}return r},pr={apolitical:"Apolitical",dates_now:"now",dates_hours:"{number}h",dates_days:"{number}d",dates_weeks:"{number}w",dates_years:"{number}y",card_carousel_viewAll:"View all",card_label_communityPage:"Community",card_label_event:"Event",card_label_learningHub:"Programme",card_label_listPage:"List",card_label_microcourse:"Course",card_label_qaQuestion:"Q&A",card_label_solutionArticle:"Article",card_bootcamp:"Email boot camp",card_ended:"Ended",card_new:"New",card_registered:"Registered",card_partner:"{partner} and {number} more",card_contributors_event:"Multiple speakers",card_contributors_solutionArticle:"Multiple authors",card_answers:"{number, plural, =0 {0 answers} one {# answer} other {# answers}}",card_time_ago:"{time} ago",card_time_read:"{time} min read",card_watch:"Watch recording",card_member_type_owner:"Admin",card_member_type_member:"Member",card_member_count:"{count} members",card_cta_people:"View profile",card_cta_communityPage:"Join now",card_cta_event:"Register now",card_cta_microcourse:"Enrol now",card_cta_communityPage_loading:"Joining...",card_cta_event_loading:"Registering...",card_cta_microcourse_loading:"Enrolling...",card_cta_communityPage_done:"Joined",card_cta_event_done:"Registered",card_cta_microcourse_done:"Enrolled",carousel_pagination_previous:"previous",carousel_pagination_previousSlide:"Previous slide",carousel_pagination_next:"next",carousel_pagination_nextSlide:"Next slide",carousel_pagination_slide:"Slide {number} of {total}",carousel_pagination_ariaLive:"On {direction} slide: {count, plural, one {1 card} other {# cards}} available",carousel_pagination_ariaLive_slide:"On slide {slide}: {count, plural, one {1 card} other {# cards}} available",activitySection_notFoundError:"Post not found",activitiesFeed_sorting_label:"Choose feed sorting method",activitiesFeed_rankingMethod_recent:"Recent",activitiesFeed_rankingMethod_popular:"Popular",activitiesFeed_rankingMethod_internalTesting:"Testing",activitiesFeed_noActivities_inCategories:"There are no posts of this type yet.",activitiesFeed_noActivities:"Activities will appear here.",activitiesFeed_noActivities_button:"Explore Communities",communityDetails_members:"Members",communityDetails_viewAll:"View all",communityDetails_invite:"Invite colleagues",community_joinToPost:"Join community to create a post.",community_sortSuccess:"Feed ordered by {order}",joinCommunityButton:"Join community",joinCommunityButton_short:"Join",joinCommunityButton_joining:"Joining...",joinCommunityButton_member:"Member",joinCommunityButton_member_aria:"Leave community",joinCommunityButton_leave:"Leave",joinCommunityButton_leaving:"Leaving...",joinCommunityButton_closed_tooltip:"Please contact the admin of this closed community if you would like to join it.",joinCommunityButton_aria_live:"You are {action} this community",member_apolitical:"Apolitical",member_community:"Community post",member_deleted:"Deleted user",member_profile:"Update profile",member_createdAt_community:"{time} ago in <link>{community}</link>",membersList:"Members",membersList_admin:"Admin",membersList_profile:"Update profile",membersList_modal_title:"Update profile",courseStructure_section:"{number, plural, =0 {Start here} other {Section #}}",courseStructure_section_end:"End here",courseStructure_time_left:"left",courseStructure_time_completed:"Completed",courseProgression_done:"<percent>{number}%</percent> done",courseProgression_timeLeft:"left","lessonType_analyse-data":"Analyse data","lessonType_analyse-scenarios":"Analyse scenarios","lessonType_attend-webinar":"Attend webinar","lessonType_brainstorm-ideas":"Brainstorm ideas","lessonType_discuss-with-peers":"Discuss with peers","lessonType_discuss-with-team":"Discuss with team","lessonType_do-activity":"Do activity","lessonType_do-assessment":"Do assessment","lessonType_explore-casebook":"Explore casebook","lessonType_fill-out-workbook":"Fill out workbook","lessonType_fill-out-worksheet":"Fill out worksheet","lessonType_investigate-interview":"Investigate interview","lessonType_listen-to-audio":"Listen to audio","lessonType_listen-to-audiocast":"Listen to audiocast","lessonType_listen-to-podcast":"Listen to podcast","lessonType_read-article":"Read article","lessonType_read-article-by-expert":"Read article by expert","lessonType_read-article-by-public-servant":"Read article by public servant","lessonType_read-conclusion":"Read conclusion","lessonType_read-infographic":"Read infographic","lessonType_read-introduction":"Read introduction","lessonType_read-resource":"Read resource","lessonType_reflect-on-content":"Reflect on content","lessonType_share-experiences":"Share experiences","lessonType_take-quiz":"Take quiz","lessonType_use-toolkit":"Use toolkit","lessonType_watch-video":"Watch video","lessonType_watch-webinar":"Watch webinar",markCompleteButton:"Mark as complete",markCompleteButton_completed:"Lesson complete",discussion_action_answer:"answer",discussion_action_comment:"comment",discussion_action_poll:"poll",discussion_action_post:"post",discussion_action_response:"response",discussion_action_reply:"reply",discussion_action_question:"question",discussion_edited:"Edited",discussion_delete_title:"Delete {action}",discussion_delete_text:"<p>Are you sure you want to delete your {action}?</p><p>This can't be undone.</p>",discussion_delete_cancel:"Cancel",discussion_delete_delete:"Delete",discussion_delete_error:"We are unable to delete your {action} at the moment. Please try again later or contact us if problem persists.",discussion_pinned_post:"Pinned Post",discussion_reply:"Reply",discussion_report_subject:"Report a post on Apolitical",discussion_report_body:`I'd like to report the {contentType} <{contentSlug}> at {contentUrl}.
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.`,discussionFormCard_placeholder:"Create post",discussionFormCard_placeholder_long:"Write a post or ask a question...",discussionFormCard_overlay_title:"Discard post",discussionFormCard_overlay_text:"Are you sure you want to leave without posting? Changes you have made will not be saved.",discussionFormCard_overlay_cta_discard:"Discard",discussionFormCard_overlay_cta_continue:"Continue editing",discussion_form_postType_label:"Post type","discussion_form__postType_no-category":"Post",discussion_form_title:"Write your {action}",discussion_form_titleField_label:"Title",discussion_form_titleField_placeholder:"Write something...",discussion_form_titleField_error:"Please enter a title or a body for your post.",discussion_form_question_label:"Question",discussion_form_question_placeholder:"Question",discussion_form_option_label:"Options",discussion_form_option_placeholder:"Option {number}",discussion_form_option_cta:"Add option",discussion_form_multiplePollAnswers:"Allow multiple answers",discussion_form_placeholder:"Write a {action}...",discussion_form_label:"Body",discussion_form_label_action:"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:"Create 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:"Share a question, insight, or announcement with the community",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_showAll:"Show all...",discussion_likes_like:"Like this {action}",discussion_likes_unlike:"Unlike {action}",discussion_likes_show:"Show who liked this {action}",discussion_moreMenu_edit:"Edit",discussion_moreMenu_delete:"Delete",discussion_moreMenu_pin:"Pin post",discussion_moreMenu_unpin:"Unpin post",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_comments_loading:"... 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_share_copy_link:"Copy link",discussion_share_copy_link_success:"Link copied to clipboard",discussion_thread_show:"Show {count} {count, select, 1 {reply} other {replies}}",discussion_thread_hide:"Hide replies",discussion_thread_loadMore:"Load more replies",profileModalLauncher_successMessage:"Your post has been created",profileModalLauncher_title:"Your profile is incomplete",profileModalLauncher_text:"A complete profile builds trust and amplifies your voice across the community. Ensure all your details are up to date including a photo and a bio.",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_fieldWrapper_characterLimit_aria_default:"You have {remaining, plural, =0 {no characters} one {1 character} other {# characters}} remaining.",form_fieldWrapper_characterLimit_aria_over:"You are {over, plural, one {1 character} other {# characters}} over the limit. Please shorten your text to {limit} characters.",form_fieldWrapper_characterLimit_info:"You can enter up to {limit} characters",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_error_multipleInputs_same:"Please enter a unique value into each field",form_cancel:"Cancel",form_submit:"Submit",form_submitting:"Submitting form...",form_submitted:"Submitted",form_success:"Thank you for submitting the form!",form_multipleInputs_label:"Input {number}",form_multipleInputs_filledInCount:"{number}/{total}",form_multipleInputs_filledInCount_aria:"{number} out of {total} available inputs have been filled in",form_multipleInputs_remove:"Remove this input",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 email addresses below",inviteForm_message_label:"Add an invitation note",inviteForm_message_placeholder:"Add a personal note to your invitation...",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",profileForm_image:"Upload photo",profileForm_name:"Full name",profileForm_name_placeholder:"What's your name, so people can recognise you?",profileForm_jobTitle:"Job title",profileForm_jobTitle_placeholder:"What's your current job title?",profileForm_organization:"Organisation",profileForm_organization_placeholder:"Where do you work?",profileForm_location:"Location",profileForm_location_placeholder:"Add your city",profileForm_location_error:"Please choose a location from the list.",profileForm_bio:"Bio",profileForm_bio_placeholder:"Tell us more about yourself...",profileForm_cta:"Save",profileForm_cta_submitting:"Saving...",profileForm_cta_submitted:"Saved",profileImageChange_cta_uploading:"Uploading image...",profileImageChange_cta_change:"Change photo",profileImageChange_cta_upload:"+ Add profile photo",profileImageChange_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.",publishArticleForm_title_label:"Title",publishArticleForm_title_placeholder:"Write a snappy title",publishArticleForm_subtitle_label:"Subtitle",publishArticleForm_subtitle_placeholder:"Your topic, in a nutshell",publishArticleForm_body_label:"Body",publishArticleForm_body_placeholder:"Type or paste your article here",publishArticleForm_tags_label:"Tags (select up to three)",publishArticleForm__tags_topic_CitiesAndLocalGovernment:"Cities and local government",publishArticleForm__tags_topic_Climate:"Climate",publishArticleForm__tags_topic_DigitalAndData:"Digital, data and AI",publishArticleForm__tags_topic_Education:"Education",publishArticleForm__tags_topic_EquityJusticeAndInclusion:"Equity, justice and inclusion",publishArticleForm__tags_topic_HealthAndSocialCare:"Health and social care",publishArticleForm__tags_topic_Innovation:"Innovation",publishArticleForm__tags_topic_LeadershipAndSkills:"Leadership and skills",publishArticleForm__tags_topic_LifeInGovernment:"Life in government",publishArticleForm__tags_topic_Policymaking:"Policymaking",publishArticleForm__tags_topic_TransportAndInfrastructure:"Transport and infrastructure",publishArticleForm__tags_topic_WorkAndTheEconomy:"Work and the economy",publishArticleForm_tags_error_over_three:"You must select no more than three options.",publishArticleForm_tags_error_required:"Please select at least one option.",publishArticleForm_disclaimer:"Ready to publish? Before you do, consider the following: Have you thoroughly proofread your writing? Are you confident in your arguments? Have you included hyperlinks to the necessary resources to support your article?",publishArticleForm_cta_submit:"Publish article",publishArticleForm_cta_submitting:"Publishing...",publishArticleForm_cta_submitted:"Published!",publishArticleForm_aria_success:"Your article is being published. You will be redirected to your article in a moment.",publishArticleForm_error:"Sorry, something went wrong.",publishArticleForm_error_underMinLength:"Please add at least {length, plural, one {1 character} other {# characters}}.",publishArticleForm_error_loggedOut:"You need to be logged in to publish an article. Please log in and try again.",publishArticleForm_progressBar:"Your article is being published",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!",richTextEditor_placeholder:"Write something...",richTextEditor_toolbar:"Formatting options",richTextEditor_bold:"Bold",richTextEditor_heading_three:"Heading",richTextEditor_italic:"Italic",richTextEditor_strikeThrough:"Strikethrough",richTextEditor_link:"Link",richTextEditor_link_text:"Text:",richTextEditor_link_text_aria:"Text to be linked:",richTextEditor_link_url:"Link:",richTextEditor_link_placeholder:"Type or paste URL",richTextEditor_link_error_required:"Please enter a URL to link to",richTextEditor_link_open:"Open: {link}",richTextEditor_link_open_text:"Opens in a new window",richTextEditor_link_edit:"Edit",richTextEditor_link_remove:"Remove",richTextEditor_link_button:"Add link",richTextEditor_link_enrichedUrl_aria:"Remove this preview for {title}",richTextEditor_link_enrichedUrl_aria_fallback:"the link",richTextEditor_link_enrichedUrl_aria_live:"The link preview has been removed from your post",richTextEditor_ol_list:"Numbered list",richTextEditor_ul_list:"Bullet-point list",richTextEditor_block_quote:"Quote",richTextEditor_mention_fallback:"Can't find who you're looking for? Invite them to the community",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>",poll_instructions:"Select one{allowMultipleVotes, select, true { or more} other {}}",poll_num_votes:"{number, plural, one {# vote} other {# votes}}",poll_remove_vote_button:"Remove vote{number, plural, =0 {} one {} other {s}}",poll_aria_votes:"You have {number, plural, =0 {not voted on this poll} other {voted for:}}",replies_feed_missing_polls_vote_message:"Please vote above to view all the comments",tableOfContents:"Table of contents",timeToComplete_hours:"{time, plural, =0 {} one {1 hour} other {# hours}}",timeToComplete_hours_short:"{time}h",timeToComplete_minutes:"{time, plural, =0 {} one {1 minute} other {# minutes}}",timeToComplete_minutes_short:"{time}m",timeToComplete_range:"{early} - {late}",timeToComplete_range_aria:"between {early} and {late}",tooltip_loading:"Loading...",return_to_nav_button:"Back to top",progressTracker:"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_platform_communities:"Communities",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_news:"News",footer_company_insights:"Insights",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_ai:"AI principles",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_communities:"Communities",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_explore_communities:"Communities",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, data and AI",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_browserTooSmall:"Sorry, your device is too small to view this content properly. Please change to a different orientation or another device.",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",discussionFormModal_title:"Create a post",discussionFormModal_cta:"Create post",inviteModal_title:"You’re registered",inviteModal_formTitle:"Know someone who might like to join this workshop?",inviteModal_formLabel:"Invite your colleagues by typing or pasting their email addresses below.",inviteModal_cta:"Send",overlay_close:"Close",profileModal_title:"Update your profile",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_links_communities:"Communities",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",editSection_placeholder_description:"Add some details",editSection_placeholder_cta:"add",editSection_edit:"Edit",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",contentTypeLabel_event:"Event",contentTypeLabel_learningHub:"Programme",contentTypeLabel_listPage:"List",contentTypeLabel_microcourse:"Course",contentTypeLabel_qaQuestion:"Q&A",contentTypeLabel_solutionArticle:"Article",contentTypeLabel_communityPage:"Community",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"},Zh={...pr,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>"},Yh={...pr,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"},Gh={...pr,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>"},Qh=Object.freeze(Object.defineProperty({__proto__:null,en:pr,es:Zh,fr:Yh,pt:Gh},Symbol.toStringTag,{value:"Module"})),ca=(e,t=pr)=>e in t,$t=(e,t,n,r,i={})=>{let a="";return ca(`${t}_${n}`)?a=e({id:`${t}_${n}`},i):a=e({id:t},{[r]:n,...i}),a},Jh=(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 i=n.length-1;i>=0;i--){const a=Math.pow(10,(i+1)*3);if(a<=e){e=Math.round(e*t/a)/t,e===1e3&&i<n.length-1&&(e=1,i++),r=`${e}${n[i]}`;break}}return r},ji=(e,t)=>x.Children.map(e,n=>Object.is(n,null)?n:x.cloneElement(n,{...t})),Ed=(e=0)=>{setTimeout(()=>{const t=document.querySelector(".splash-screen");t&&t.remove(),window.prerenderReady=!0},e)},Xh=e=>{var a,s;const n=["name","organization","jobTitle","biography"].every(o=>{const l=e[o];return l!=null&&l!==""}),r=((a=e.image)==null?void 0:a.thumbnail)!==void 0,i=((s=e.location)==null?void 0:s.en)!==void 0;return n&&r&&i},ep=(e,t,n)=>!t.id||!t.name?"":t.error?n.replace(/{{name}}/g,Wr).replace(/{{id}}/g,Wr):n.replace(/{{name}}/g,t.name).replace(/{{id}}/g,t.id),_d=async({text:e,template:t,mentions:n,listMembers:r=()=>Promise.resolve([])})=>{var a;if(!n)return e;const i=e.match(Vr);if(!i)return e;for(const s of i){const o=s.replace(Vr,(d,m)=>m),l=n[o];if(!l)continue;const u={};if(typeof l=="object")u.name=l.error?l.error:((a=l==null?void 0:l.data)==null?void 0:a.name)||"",u.id=l.id||"",u.error=l.error;else{const d=l;if(d.startsWith(Bs))try{const m=d.replace(Bs,"");u.id=m,await r({id:m}).then(h=>{const{name:p,error:v}=h;u.name=v||p||"",u.error=v})}catch{e.replace(s,"@");continue}else continue}e=e.replace(s,u.name?ep(e,u,t):s)}return e},mo=e=>{const t=e.startsWith("http")?e:`https://${e}`,r=new URL(t).hostname;return{full:t,pretty:r}},kd=e=>new URLSearchParams(window.location.search).get(e),Hr=(e="")=>e.replace(/\s+/g,"").length>0,Ss=e=>{const t=e.length>8,n=/[0-9]/.test(e)&&/[`!@#$%^&*()_+\-=[\]{}£;':"\\|,.<>/?~]/.test(e),r=new RegExp("^(?=.*?[A-Z])(?=.*?[a-z])").test(e);return{isValid:t&&n&&r,matchingRules:{isMoreThanEightCharacters:t,includesNumberAndSymbol:n,includesLowerAndUppercase:r}}};const Be=({variant:e="primary",size:t="medium",styling:n={muted:!1,fullWidth:!1},icon:r=!1,href:i=!1,element:a="button",onClick:s=!1,className:o="",disabled:l=!1,tooltip:u="",screenreaderText:d=!1,children:m=!1,...h})=>{const v=xn(typeof t=="object"),{showTooltip:f,tooltipProps:b}=co(!!u);if(typeof t=="object"&&typeof v=="number"){const A=Object.assign({},t),E=gd(Object.keys(A));t=vd(v,E,A)}!l&&u&&(u="");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")));const y={...h,className:H(e,o,g,{"no-text":!m,disabled:l,button:i,muted:n.muted,"full-width":n.fullWidth}),onClick:A=>{(!i||i[0]==="#")&&s&&(A.preventDefault(),A.stopPropagation()),s&&s(A)},disabled:typeof l=="object"&&"isClickable"in l?!l.isClickable:l};i&&(a="a",y.href=i);const C=x.createElement(a,y,m||(d?c.jsx(Me,{showOnFocus:!1,children:d}):null));return l&&u?c.jsxs("span",{className:"button-container",...b,children:[c.jsx($n,{isOpen:f,accessibility:{readToScreenreadersWhenClosed:!0},children:u}),C]}):C},gr=({buttons:e,wrappers:t=[],className:n="",...r})=>{const i=e.length>1?"ul":"p",a=e.map((s,o)=>{var l;return i==="p"?c.jsx(Be,{...s},o):c.jsx("li",{className:((l=t[o])==null?void 0:l.className)||"",children:c.jsx(Be,{...s})},o)});return x.createElement(i,{className:H("button-wrapper",n),...r,children:a})};const qt=({className:e="",maxWidth:t=!1})=>{const n=t?{"--max-width":`${t/16}rem`}:{};return c.jsx("hr",{className:H(e,{"has-max-width":t}),style:n})},Eu={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"},highlightSection:{range:[{height:200,width:674},{height:400,width:1348},{height:1e3,width:1e3},{height:2e3,width:2e3}],sizes:"(max-width: 500px) 674px, (max-width: 1024px) 1348px, (max-width: 1200px) 1000px, 2000px"},thumbnail:{range:[{height:124,width:124},{height:320,width:320},{height:510,width:510}],sizes:"(min-width: 1024px) 453px, 20vw"},fallback:{range:[{height:124,width:375},{height:320,width:687},{height:510,width:990}],sizes:"(min-width: 1024px) 885px, 35vw"}},tp=({aspect:e,range:t,sizes:n})=>{const{range:r,sizes:i}=e?Eu[e]:Eu.fallback;return{range:t&&t.length>0?t:r,sizes:n||i}},np=({format:e,height:t,query:n,width:r})=>{let i=`w=${r}&h=${t}`;return i=e?`${i}&fm=${e}`:i,i=n?`${i}&${n}`:i,i},Ta=({format:e,range:t,url:n,query:r})=>t.map(({height:i,width:a})=>`${n}?${np({format:e,height:i,query:r,width:a})} ${a}w`).join(", ");const Ln=({image:e,className:t,testId:n})=>{const{description:r,height:i,type:a,color:s,query:o,url:l,width:u,loading:d,decoding:m,fetchPriority:h}=e,{range:p,sizes:v}=tp(e),f=Ta({format:"avif",query:o,range:p,url:l}),b=Ta({format:"webp",query:o,range:p,url:l}),g=Ta({format:"",query:o,range:p,url:l});let y={};return s&&(y={"--color":s}),a&&a.includes("svg")?c.jsx("picture",{className:t,style:y,children:c.jsx("img",{src:l,alt:r,loading:d||"lazy",decoding:m||"async",fetchpriority:h||"auto",width:u,height:i,"data-testid":n||"image"})}):c.jsxs("picture",{className:t,style:y,children:[a!=="image/gif"&&c.jsx("source",{type:"image/avif",srcSet:f,sizes:v,"data-testid":"source"}),c.jsx("source",{type:"image/webp",srcSet:b,sizes:v,"data-testid":"source"}),c.jsx("img",{srcSet:g,sizes:v,src:l,alt:r,loading:d||"lazy",decoding:m||"async",fetchpriority:h||"auto",width:u,height:i,"data-testid":n||"image"})]})};const rp=({image:e,className:t="",testId:n})=>c.jsx("div",{className:`image-container ${t}`,"data-testid":n||"image-container",children:e&&c.jsx(Ln,{image:{...e},className:"image"})}),wn=({href:e,children:t,fallbackElement:n,meta:r,className:i="",onClick:a,gtmContext:s,gtmType:o,...l})=>{const{forceOnClick:u=!1}=r||{};if(e){const m={...l};return a&&(m.onClick=a),s&&(m["data-gtm-event-context"]=s),o&&(m["data-gtm-event-type"]=o),c.jsx("a",{href:e,className:H("gtm-trackable",i),...m,children:t})}const d={};return u&&(d.onClick=a),n?x.createElement(n,{children:t,className:i,...l,...d}):c.jsx(c.Fragment,{children:t})};const Fd=x.forwardRef(({className:e="",children:t},n)=>{const r=x.useRef(null),i=n||r;return c.jsx("aside",{ref:i,className:H("popover",e),"aria-live":"polite",children:t})}),vr=({parent:e=document.body,children:t})=>typeof document=="object"?ud.createPortal(t,e):null,ip=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"}));const ap=({currentStep:e=1,steps:t=1})=>c.jsxs(c.Fragment,{children:[c.jsx(Me,{children:c.jsx(ie.FormattedMessage,{id:"progressTracker",values:{current:e,total:t}})}),c.jsx("div",{className:"progress-tracker",children:c.jsx("div",{className:"dots-wrapper",children:new Array(t).fill("").map((n,r)=>{const i=r+1;return c.jsxs("div",{className:"dot-wrapper",children:[c.jsx("div",{className:H("dot",{active:i===e,completed:i<e}),"data-testid":"progress-dot"}),c.jsx("div",{className:H("line",{active:i<e})})]},r)})})})]});const sp=({elementId:e,offset:t=20})=>{const n=ie.useIntl(),r=()=>{const i=document.getElementById(e);if(!i)return;const a=document.getElementById("header");a&&window.scrollTo({top:i.offsetTop-a.clientHeight-t})};return c.jsx(Be,{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"})})};const op=({items:e,className:t="",...n})=>c.jsx("ul",{className:H("buckets",t),...n,children:e.map(({title:r,text:i,link:a,...s},o)=>c.jsx("li",{className:"bucket text-medium",children:c.jsxs("a",{href:a,...s,children:[c.jsx("p",{className:"title",children:r}),c.jsx("p",{children:i})]})},o))}),_u=300,ku="ease-in-out";class up{constructor(t){this.el=t,this.summary=t.querySelector("summary"),this.content=t.querySelector(".content"),this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.summary.addEventListener("click",n=>this.onClick(n))}cleanUp(){this.summary.removeEventListener("click",t=>this.onClick(t))}onClick(t){t.preventDefault(),t.stopPropagation(),this.el.style.overflow="hidden",this.isClosing||!this.el.open?this.open():(this.isExpanding||this.el.open)&&this.shrink()}shrink(){this.isClosing=!0;const t=`${this.el.offsetHeight}px`,n=`${this.summary.offsetHeight}px`;this.animation&&this.animation.cancel(),this.animation=this.el.animate({height:[t,n]},{duration:_u,easing:ku}),this.animation.onfinish=()=>this.onAnimationFinish(!1),this.animation.oncancel=()=>this.isClosing=!1}open(){this.el.style.height=`${this.el.offsetHeight}px`,this.el.open=!0,window.requestAnimationFrame(()=>this.expand())}expand(){this.isExpanding=!0;const t=`${this.el.offsetHeight}px`,n=`${this.summary.offsetHeight+this.content.offsetHeight}px`;this.animation&&this.animation.cancel(),this.animation=this.el.animate({height:[t,n]},{duration:_u,easing:ku}),this.animation.onfinish=()=>this.onAnimationFinish(!0),this.animation.oncancel=()=>this.isExpanding=!1}onAnimationFinish(t){this.el.open=t,this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.el.style.height=this.el.style.overflow=""}}const da=({label:e=!1,className:t="",children:n,shouldAnimate:r=!1})=>{const i=ie.useIntl(),a=x.useRef(null);return x.useEffect(()=>{let s;return r&&(s=new up(a.current)),()=>{r&&s&&s.cleanUp()}},[]),c.jsxs("details",{ref:a,className:H("collapsible-section",t,{"should-animate":r}),children:[c.jsx("summary",{children:e||i.formatMessage({id:"collapsibleSection_summary"})}),c.jsx("div",{className:"content",children:n})]})},Fu={cube:"box",graduationCap:"graduation-cap",person:"user",speech:"speech-bubble_round",star:"star_empty_thin"},lp=e=>{let t=e;return Object.keys(Fu).includes(e)&&(t=Fu[e]),`url(${Gt}icons/${t}.svg)`};const Au={customCard:"custom",microcourse:"course",solutionArticle:"article",qaQuestion:"question",listPage:"list",learningHub:"learning-hub",communityPage:"communityPage"},Ad=({contentType:e,customIcon:t,customLabel:n,className:r=""})=>{const i=ie.useIntl(),a=t?{"--custom-icon":lp(t)}:{},s=ca(`contentTypeLabel_${e}`)?i.formatMessage({id:`contentTypeLabel_${e}`}):!1;return!n&&!s?null:c.jsx("small",{className:H("content-type-label text-small",e in Au?Au[e]:e,r,{"has-custom-icon":t}),style:a,"data-testid":"content-type-label",children:n||s})};const Ft=({variant:e="primary",icon:t,styling:n={},className:r="",children:i,...a})=>{const{showHighlight:s=!1,background:o="default"}=n,l=t?{"--icon":`url(${Gt}icons/${t}.svg)`}:{};return c.jsx("div",{className:H("highlighted-text-box",e,r,{"has-icon":t,"show-highlight":s,[o]:o!=="default"}),style:l,...a,children:i})};const Cn=({variant:e="empty",text:t=!1,button:n=!1,className:r=""})=>{let i=n&&!!Object.keys(n).length;const a=typeof n=="object"&&"breakpoints"in n,s=xn(a);if(a&&typeof n=="object"&&typeof s=="number"){const m=Object.assign({},n.breakpoints),h=gd(Object.keys(m));i=vd(s,h,m)}const{breakpoints:o,text:l="",component:u,...d}=n;return c.jsx(Ft,{variant:"subtle",className:H("empty-state-box",e,r),children:c.jsxs(c.Fragment,{children:[t&&typeof t=="string"?c.jsx(Zt,{options:{forceBlock:!0},children:t}):t,i&&typeof n=="object"&&(u||c.jsx(Be,{...d,variant:n.variant?n.variant:"secondary",children:l}))]})})};const js=({children:e,...t})=>c.jsx("p",{...t,children:e}),Bd={q:js,blockquote:js};for(let e=1;e<=6;e++)Bd[`h${e}`]={component:js,props:{className:"title"}};const Td=({type:e="default",className:t="",heading:n=!1,children:r,...i})=>c.jsxs("div",{...i,className:H("helper-text-box text-small",e,t),children:[n&&c.jsx("p",{className:"title",children:n}),typeof r=="string"?c.jsx(Zt,{options:{wrapper:x.Fragment,forceBlock:!0,overrides:Bd},children:r}):c.jsx("p",{children:r})]});const Sd=({id:e,className:t="",show:n=!1,hide:r=!1,text:i,markdownOptions:a,fadeStyle:s="default",children:o})=>{const l=ie.useIntl(),u=x.useRef(null);e||(e=Date.now().toString());const[d,m]=x.useState(""),[h,p]=x.useState("closed");x.useEffect(()=>{const b=u.current;if(b)return b.addEventListener("transitionend",v),()=>{b.removeEventListener("transitionend",v)}},[]),x.useEffect(()=>{if(!i||typeof i!="string")return;const b=i.split(`
35
+ Thank you for helping to protect the Apolitical community from abusive content.`,discussionFormCard_placeholder:"Create post",discussionFormCard_placeholder_long:"Write a post or ask a question...",discussionFormCard_overlay_title:"Discard post",discussionFormCard_overlay_text:"Are you sure you want to leave without posting? Changes you have made will not be saved.",discussionFormCard_overlay_cta_discard:"Discard",discussionFormCard_overlay_cta_continue:"Continue editing",discussion_form_postType_label:"Post type","discussion_form__postType_no-category":"Post",discussion_form_title:"Write your {action}",discussion_form_titleField_label:"Title",discussion_form_titleField_placeholder:"Write something...",discussion_form_titleField_error:"Please enter a title or a body for your post.",discussion_form_question_label:"Question",discussion_form_question_placeholder:"Question",discussion_form_option_label:"Options",discussion_form_option_placeholder:"Option {number}",discussion_form_option_cta:"Add option",discussion_form_multiplePollAnswers:"Allow multiple answers",discussion_form_placeholder:"Write a {action}...",discussion_form_label:"Body",discussion_form_label_action:"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:"Create 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:"Share a question, insight, or announcement with the community",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_showAll:"Show all...",discussion_likes_like:"Like this {action}",discussion_likes_unlike:"Unlike {action}",discussion_likes_show:"Show who liked this {action}",discussion_moreMenu_edit:"Edit",discussion_moreMenu_delete:"Delete",discussion_moreMenu_pin:"Pin post",discussion_moreMenu_unpin:"Unpin post",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_comments_loading:"... 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_share_copy_link:"Copy link",discussion_share_copy_link_success:"Link copied to clipboard",discussion_thread_show:"Show {count} {count, select, 1 {reply} other {replies}}",discussion_thread_hide:"Hide replies",discussion_thread_loadMore:"Load more replies",profileModalLauncher_successMessage:"Your post has been created",profileModalLauncher_title:"Your profile is incomplete",profileModalLauncher_text:"A complete profile builds trust and amplifies your voice across the community. Ensure all your details are up to date including a photo and a bio.",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_fieldWrapper_characterLimit_aria_default:"You have {remaining, plural, =0 {no characters} one {1 character} other {# characters}} remaining.",form_fieldWrapper_characterLimit_aria_over:"You are {over, plural, one {1 character} other {# characters}} over the limit. Please shorten your text to {limit} characters.",form_fieldWrapper_characterLimit_info:"You can enter up to {limit} characters",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_error_multipleInputs_same:"Please enter a unique value into each field",form_cancel:"Cancel",form_submit:"Submit",form_submitting:"Submitting form...",form_submitted:"Submitted",form_success:"Thank you for submitting the form!",form_multipleInputs_label:"Input {number}",form_multipleInputs_filledInCount:"{number}/{total}",form_multipleInputs_filledInCount_aria:"{number} out of {total} available inputs have been filled in",form_multipleInputs_remove:"Remove this input",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 email addresses below",inviteForm_message_label:"Add an invitation note",inviteForm_message_placeholder:"Add a personal note to your invitation...",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",profileForm_image:"Upload photo",profileForm_name:"Full name",profileForm_name_placeholder:"What's your name, so people can recognise you?",profileForm_jobTitle:"Job title",profileForm_jobTitle_placeholder:"What's your current job title?",profileForm_organization:"Organisation",profileForm_organization_placeholder:"Where do you work?",profileForm_location:"Location",profileForm_location_placeholder:"Add your city",profileForm_location_error:"Please choose a location from the list.",profileForm_bio:"Bio",profileForm_bio_placeholder:"Tell us more about yourself...",profileForm_cta:"Save",profileForm_cta_submitting:"Saving...",profileForm_cta_submitted:"Saved",profileImageChange_cta_uploading:"Uploading image...",profileImageChange_cta_change:"Change photo",profileImageChange_cta_upload:"+ Add profile photo",profileImageChange_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.",publishArticleForm_title_label:"Title",publishArticleForm_title_placeholder:"Write a snappy title",publishArticleForm_subtitle_label:"Subtitle",publishArticleForm_subtitle_placeholder:"Your topic, in a nutshell",publishArticleForm_body_label:"Body",publishArticleForm_body_placeholder:"Type or paste your article here",publishArticleForm_tags_label:"Tags (select up to three)",publishArticleForm__tags_topic_CitiesAndLocalGovernment:"Cities and local government",publishArticleForm__tags_topic_Climate:"Climate",publishArticleForm__tags_topic_DigitalAndData:"Digital, data and AI",publishArticleForm__tags_topic_Education:"Education",publishArticleForm__tags_topic_EquityJusticeAndInclusion:"Equity, justice and inclusion",publishArticleForm__tags_topic_HealthAndSocialCare:"Health and social care",publishArticleForm__tags_topic_Innovation:"Innovation",publishArticleForm__tags_topic_LeadershipAndSkills:"Leadership and skills",publishArticleForm__tags_topic_LifeInGovernment:"Life in government",publishArticleForm__tags_topic_Policymaking:"Policymaking",publishArticleForm__tags_topic_TransportAndInfrastructure:"Transport and infrastructure",publishArticleForm__tags_topic_WorkAndTheEconomy:"Work and the economy",publishArticleForm_tags_error_over_three:"You must select no more than three options.",publishArticleForm_tags_error_required:"Please select at least one option.",publishArticleForm_disclaimer:"Ready to publish? Before you do, consider the following: Have you thoroughly proofread your writing? Are you confident in your arguments? Have you included hyperlinks to the necessary resources to support your article?",publishArticleForm_cta_submit:"Publish article",publishArticleForm_cta_submitting:"Publishing...",publishArticleForm_cta_submitted:"Published!",publishArticleForm_aria_success:"Your article is being published. You will be redirected to your article in a moment.",publishArticleForm_error:"Sorry, something went wrong.",publishArticleForm_error_underMinLength:"Please add at least {length, plural, one {1 character} other {# characters}}.",publishArticleForm_error_loggedOut:"You need to be logged in to publish an article. Please log in and try again.",publishArticleForm_progressBar:"Your article is being published",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!",richTextEditor_placeholder:"Write something...",richTextEditor_toolbar:"Formatting options",richTextEditor_bold:"Bold",richTextEditor_heading_three:"Heading",richTextEditor_italic:"Italic",richTextEditor_strikeThrough:"Strikethrough",richTextEditor_link:"Link",richTextEditor_link_text:"Text:",richTextEditor_link_text_aria:"Text to be linked:",richTextEditor_link_url:"Link:",richTextEditor_link_placeholder:"Type or paste URL",richTextEditor_link_error_required:"Please enter a URL to link to",richTextEditor_link_open:"Open: {link}",richTextEditor_link_open_text:"Opens in a new window",richTextEditor_link_edit:"Edit",richTextEditor_link_remove:"Remove",richTextEditor_link_button:"Add link",richTextEditor_link_enrichedUrl_aria:"Remove this preview for {title}",richTextEditor_link_enrichedUrl_aria_fallback:"the link",richTextEditor_link_enrichedUrl_aria_live:"The link preview has been removed from your post",richTextEditor_ol_list:"Numbered list",richTextEditor_ul_list:"Bullet-point list",richTextEditor_block_quote:"Quote",richTextEditor_mention_fallback:"Can't find who you're looking for? Invite them to the community",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>",poll_instructions:"Select one{allowMultipleVotes, select, true { or more} other {}}",poll_num_votes:"{number, plural, one {# vote} other {# votes}}",poll_remove_vote_button:"Remove vote{number, plural, =0 {} one {} other {s}}",poll_aria_votes:"You have {number, plural, =0 {not voted on this poll} other {voted for:}}",replies_feed_missing_polls_vote_message:"Please vote above to view all the comments",tableOfContents:"Table of contents",timeToComplete_hours:"{time, plural, =0 {} one {1 hour} other {# hours}}",timeToComplete_hours_short:"{time}h",timeToComplete_minutes:"{time, plural, =0 {} one {1 minute} other {# minutes}}",timeToComplete_minutes_short:"{time}m",timeToComplete_range:"{early} - {late}",timeToComplete_range_aria:"between {early} and {late}",tooltip_loading:"Loading...",return_to_nav_button:"Back to top",progressTracker:"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_platform_communities:"Communities",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_news:"News",footer_company_insights:"Insights",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_ai:"AI principles",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_communities:"Communities",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_explore_communities:"Communities",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, data and AI",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_browserTooSmall:"Sorry, your device is too small to view this content properly. Please change to a different orientation or another device.",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",discussionFormModal_title:"Create a post",discussionFormModal_cta:"Create post",inviteModal_title:"You’re registered",inviteModal_formTitle:"Know someone who might like to join this workshop?",inviteModal_formLabel:"Invite your colleagues by typing or pasting their email addresses below.",inviteModal_cta:"Send",overlay_close:"Close",profileModal_title:"Update your profile",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_links_communities:"Communities",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",editSection_placeholder_description:"Add some details",editSection_placeholder_cta:"add",editSection_edit:"Edit",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",contentTypeLabel_event:"Event",contentTypeLabel_learningHub:"Programme",contentTypeLabel_listPage:"List",contentTypeLabel_microcourse:"Course",contentTypeLabel_qaQuestion:"Q&A",contentTypeLabel_solutionArticle:"Article",contentTypeLabel_communityPage:"Community",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",general_event_invite_message:`To join the event, log in to your Apolitical account, go to the <a href = "https://apolitical.co/events/{{EVENT_SLUG}}">event page</a>, and select 'Join event on Zoom'.
36
+
37
+ Please allow a few minutes to log in to avoid problems accessing the dial-in details on the event day.
38
+
39
+ If you can't attend last minute, don't worry! We'll send a recording of the event in the follow-up email.`},bd=e=>e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`),yd=(e="")=>e.replace(/(?:^\w|[A-Z]|\b\w)/g,t=>t.toUpperCase()).replace(/[&\s]+/g,""),xd=(e="")=>e.charAt(0).toUpperCase()+e.slice(1),Lh=(e="")=>e.replace(/(?:^\w|[A-Z]|\b\w)/g,t=>t.toUpperCase()),Gt="https://storage.googleapis.com/apolitical-assets/",Qn={general:"hello@apolitical.co",support:"concierge@apolitical.co","data-protection":{default:"dpo@apolitical.co",eu:"dpo.agl@apolitical.foundation"}},Sr={ARTICLE:"microcourseArticle",DISCUSSION:"microcourseDiscussion",QUIZ:"assessmentQuiz"},Bs="SU:",Wr="DELETED",wd="Invalid token error: Logging user out...",zh="250,000+",qh="160+",Vr=/@{{([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})}}/g,Cd=new RegExp("(?<=^|\\s)@([A-Za-z]+(?:[- ]?[A-Za-z]*)*)$");function Uh(e){return e?{"--icon":`url(${Gt}icons/${e}.svg)`}:{}}const An={milliseconds:{inSecond:1e3,inMinute:6e4,inHour:36e5,inDay:864e5},year:{weeks:52,days:365}},Dd=(e,t="en")=>new Date(e).toLocaleString(t,{day:"numeric",month:"short"}),fo=(e,t="en")=>new Date(e).toLocaleString(t,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),Ts=e=>{let t;const n=Ui(),r=Ui(new Date(e));try{t=n.getTime()-r.getTime()}catch{return""}const i=t/An.milliseconds.inHour,a=Math.floor(t/An.milliseconds.inDay);if(a<1)return i<1?{path:"now"}:{path:"hours",number:Math.floor(i)};if(a<7)return{path:"days",number:a};const s=Math.floor(a/7);return s<=An.year.weeks?{path:"weeks",number:s}:{path:"years",number:Math.floor(a/An.year.days)}},Ui=e=>{const n=(e||new Date).toUTCString();return new Date(n)},Wh=(e,t,n)=>{let r;const i=Ui(),a=Ui(new Date(e));try{r=i.getTime()-a.getTime()}catch{return!1}switch(n){case"seconds":return r/An.milliseconds.inSecond<=t;case"minutes":return r/An.milliseconds.inMinute<=t;case"hours":return r/An.milliseconds.inHour<=t}return!1},Vh=(e,t)=>{const n=new Date(e);return Math.abs(new Date().getTime()-n.getTime())/(1e3*60*60*24)<t},Hh=e=>new Promise(t=>setTimeout(t,e)),Kh=()=>{let e=!1;return typeof window<"u"&&(e=!!(window&&window.location&&window.location.href&&window.location.href.includes("localhost"))),e},Zh={...pr,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>"},Yh={...pr,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"},Gh={...pr,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>"},Qh=Object.freeze(Object.defineProperty({__proto__:null,en:pr,es:Zh,fr:Yh,pt:Gh},Symbol.toStringTag,{value:"Module"})),ca=(e,t=pr)=>e in t,$t=(e,t,n,r,i={})=>{let a="";return ca(`${t}_${n}`)?a=e({id:`${t}_${n}`},i):a=e({id:t},{[r]:n,...i}),a},Jh=(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 i=n.length-1;i>=0;i--){const a=Math.pow(10,(i+1)*3);if(a<=e){e=Math.round(e*t/a)/t,e===1e3&&i<n.length-1&&(e=1,i++),r=`${e}${n[i]}`;break}}return r},ji=(e,t)=>x.Children.map(e,n=>Object.is(n,null)?n:x.cloneElement(n,{...t})),Ed=(e=0)=>{setTimeout(()=>{const t=document.querySelector(".splash-screen");t&&t.remove(),window.prerenderReady=!0},e)},Xh=e=>{var a,s;const n=["name","organization","jobTitle","biography"].every(o=>{const l=e[o];return l!=null&&l!==""}),r=((a=e.image)==null?void 0:a.thumbnail)!==void 0,i=((s=e.location)==null?void 0:s.en)!==void 0;return n&&r&&i},ep=(e,t,n)=>!t.id||!t.name?"":t.error?n.replace(/{{name}}/g,Wr).replace(/{{id}}/g,Wr):n.replace(/{{name}}/g,t.name).replace(/{{id}}/g,t.id),_d=async({text:e,template:t,mentions:n,listMembers:r=()=>Promise.resolve([])})=>{var a;if(!n)return e;const i=e.match(Vr);if(!i)return e;for(const s of i){const o=s.replace(Vr,(d,m)=>m),l=n[o];if(!l)continue;const u={};if(typeof l=="object")u.name=l.error?l.error:((a=l==null?void 0:l.data)==null?void 0:a.name)||"",u.id=l.id||"",u.error=l.error;else{const d=l;if(d.startsWith(Bs))try{const m=d.replace(Bs,"");u.id=m,await r({id:m}).then(h=>{const{name:p,error:v}=h;u.name=v||p||"",u.error=v})}catch{e.replace(s,"@");continue}else continue}e=e.replace(s,u.name?ep(e,u,t):s)}return e},mo=e=>{const t=e.startsWith("http")?e:`https://${e}`,r=new URL(t).hostname;return{full:t,pretty:r}},kd=e=>new URLSearchParams(window.location.search).get(e),Hr=(e="")=>e.replace(/\s+/g,"").length>0,Ss=e=>{const t=e.length>8,n=/[0-9]/.test(e)&&/[`!@#$%^&*()_+\-=[\]{}£;':"\\|,.<>/?~]/.test(e),r=new RegExp("^(?=.*?[A-Z])(?=.*?[a-z])").test(e);return{isValid:t&&n&&r,matchingRules:{isMoreThanEightCharacters:t,includesNumberAndSymbol:n,includesLowerAndUppercase:r}}};const Be=({variant:e="primary",size:t="medium",styling:n={muted:!1,fullWidth:!1},icon:r=!1,href:i=!1,element:a="button",onClick:s=!1,className:o="",disabled:l=!1,tooltip:u="",screenreaderText:d=!1,children:m=!1,...h})=>{const v=xn(typeof t=="object"),{showTooltip:f,tooltipProps:b}=co(!!u);if(typeof t=="object"&&typeof v=="number"){const A=Object.assign({},t),E=gd(Object.keys(A));t=vd(v,E,A)}!l&&u&&(u="");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")));const y={...h,className:H(e,o,g,{"no-text":!m,disabled:l,button:i,muted:n.muted,"full-width":n.fullWidth}),onClick:A=>{(!i||i[0]==="#")&&s&&(A.preventDefault(),A.stopPropagation()),s&&s(A)},disabled:typeof l=="object"&&"isClickable"in l?!l.isClickable:l};i&&(a="a",y.href=i);const C=x.createElement(a,y,m||(d?c.jsx(Me,{showOnFocus:!1,children:d}):null));return l&&u?c.jsxs("span",{className:"button-container",...b,children:[c.jsx($n,{isOpen:f,accessibility:{readToScreenreadersWhenClosed:!0},children:u}),C]}):C},gr=({buttons:e,wrappers:t=[],className:n="",...r})=>{const i=e.length>1?"ul":"p",a=e.map((s,o)=>{var l;return i==="p"?c.jsx(Be,{...s},o):c.jsx("li",{className:((l=t[o])==null?void 0:l.className)||"",children:c.jsx(Be,{...s})},o)});return x.createElement(i,{className:H("button-wrapper",n),...r,children:a})};const qt=({className:e="",maxWidth:t=!1})=>{const n=t?{"--max-width":`${t/16}rem`}:{};return c.jsx("hr",{className:H(e,{"has-max-width":t}),style:n})},Eu={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"},highlightSection:{range:[{height:200,width:674},{height:400,width:1348},{height:1e3,width:1e3},{height:2e3,width:2e3}],sizes:"(max-width: 500px) 674px, (max-width: 1024px) 1348px, (max-width: 1200px) 1000px, 2000px"},thumbnail:{range:[{height:124,width:124},{height:320,width:320},{height:510,width:510}],sizes:"(min-width: 1024px) 453px, 20vw"},fallback:{range:[{height:124,width:375},{height:320,width:687},{height:510,width:990}],sizes:"(min-width: 1024px) 885px, 35vw"}},tp=({aspect:e,range:t,sizes:n})=>{const{range:r,sizes:i}=e?Eu[e]:Eu.fallback;return{range:t&&t.length>0?t:r,sizes:n||i}},np=({format:e,height:t,query:n,width:r})=>{let i=`w=${r}&h=${t}`;return i=e?`${i}&fm=${e}`:i,i=n?`${i}&${n}`:i,i},Ta=({format:e,range:t,url:n,query:r})=>t.map(({height:i,width:a})=>`${n}?${np({format:e,height:i,query:r,width:a})} ${a}w`).join(", ");const Ln=({image:e,className:t,testId:n})=>{const{description:r,height:i,type:a,color:s,query:o,url:l,width:u,loading:d,decoding:m,fetchPriority:h}=e,{range:p,sizes:v}=tp(e),f=Ta({format:"avif",query:o,range:p,url:l}),b=Ta({format:"webp",query:o,range:p,url:l}),g=Ta({format:"",query:o,range:p,url:l});let y={};return s&&(y={"--color":s}),a&&a.includes("svg")?c.jsx("picture",{className:t,style:y,children:c.jsx("img",{src:l,alt:r,loading:d||"lazy",decoding:m||"async",fetchpriority:h||"auto",width:u,height:i,"data-testid":n||"image"})}):c.jsxs("picture",{className:t,style:y,children:[a!=="image/gif"&&c.jsx("source",{type:"image/avif",srcSet:f,sizes:v,"data-testid":"source"}),c.jsx("source",{type:"image/webp",srcSet:b,sizes:v,"data-testid":"source"}),c.jsx("img",{srcSet:g,sizes:v,src:l,alt:r,loading:d||"lazy",decoding:m||"async",fetchpriority:h||"auto",width:u,height:i,"data-testid":n||"image"})]})};const rp=({image:e,className:t="",testId:n})=>c.jsx("div",{className:`image-container ${t}`,"data-testid":n||"image-container",children:e&&c.jsx(Ln,{image:{...e},className:"image"})}),wn=({href:e,children:t,fallbackElement:n,meta:r,className:i="",onClick:a,gtmContext:s,gtmType:o,...l})=>{const{forceOnClick:u=!1}=r||{};if(e){const m={...l};return a&&(m.onClick=a),s&&(m["data-gtm-event-context"]=s),o&&(m["data-gtm-event-type"]=o),c.jsx("a",{href:e,className:H("gtm-trackable",i),...m,children:t})}const d={};return u&&(d.onClick=a),n?x.createElement(n,{children:t,className:i,...l,...d}):c.jsx(c.Fragment,{children:t})};const Fd=x.forwardRef(({className:e="",children:t},n)=>{const r=x.useRef(null),i=n||r;return c.jsx("aside",{ref:i,className:H("popover",e),"aria-live":"polite",children:t})}),vr=({parent:e=document.body,children:t})=>typeof document=="object"?ud.createPortal(t,e):null,ip=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"}));const ap=({currentStep:e=1,steps:t=1})=>c.jsxs(c.Fragment,{children:[c.jsx(Me,{children:c.jsx(ie.FormattedMessage,{id:"progressTracker",values:{current:e,total:t}})}),c.jsx("div",{className:"progress-tracker",children:c.jsx("div",{className:"dots-wrapper",children:new Array(t).fill("").map((n,r)=>{const i=r+1;return c.jsxs("div",{className:"dot-wrapper",children:[c.jsx("div",{className:H("dot",{active:i===e,completed:i<e}),"data-testid":"progress-dot"}),c.jsx("div",{className:H("line",{active:i<e})})]},r)})})})]});const sp=({elementId:e,offset:t=20})=>{const n=ie.useIntl(),r=()=>{const i=document.getElementById(e);if(!i)return;const a=document.getElementById("header");a&&window.scrollTo({top:i.offsetTop-a.clientHeight-t})};return c.jsx(Be,{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"})})};const op=({items:e,className:t="",...n})=>c.jsx("ul",{className:H("buckets",t),...n,children:e.map(({title:r,text:i,link:a,...s},o)=>c.jsx("li",{className:"bucket text-medium",children:c.jsxs("a",{href:a,...s,children:[c.jsx("p",{className:"title",children:r}),c.jsx("p",{children:i})]})},o))}),_u=300,ku="ease-in-out";class up{constructor(t){this.el=t,this.summary=t.querySelector("summary"),this.content=t.querySelector(".content"),this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.summary.addEventListener("click",n=>this.onClick(n))}cleanUp(){this.summary.removeEventListener("click",t=>this.onClick(t))}onClick(t){t.preventDefault(),t.stopPropagation(),this.el.style.overflow="hidden",this.isClosing||!this.el.open?this.open():(this.isExpanding||this.el.open)&&this.shrink()}shrink(){this.isClosing=!0;const t=`${this.el.offsetHeight}px`,n=`${this.summary.offsetHeight}px`;this.animation&&this.animation.cancel(),this.animation=this.el.animate({height:[t,n]},{duration:_u,easing:ku}),this.animation.onfinish=()=>this.onAnimationFinish(!1),this.animation.oncancel=()=>this.isClosing=!1}open(){this.el.style.height=`${this.el.offsetHeight}px`,this.el.open=!0,window.requestAnimationFrame(()=>this.expand())}expand(){this.isExpanding=!0;const t=`${this.el.offsetHeight}px`,n=`${this.summary.offsetHeight+this.content.offsetHeight}px`;this.animation&&this.animation.cancel(),this.animation=this.el.animate({height:[t,n]},{duration:_u,easing:ku}),this.animation.onfinish=()=>this.onAnimationFinish(!0),this.animation.oncancel=()=>this.isExpanding=!1}onAnimationFinish(t){this.el.open=t,this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.el.style.height=this.el.style.overflow=""}}const da=({label:e=!1,className:t="",children:n,shouldAnimate:r=!1})=>{const i=ie.useIntl(),a=x.useRef(null);return x.useEffect(()=>{let s;return r&&(s=new up(a.current)),()=>{r&&s&&s.cleanUp()}},[]),c.jsxs("details",{ref:a,className:H("collapsible-section",t,{"should-animate":r}),children:[c.jsx("summary",{children:e||i.formatMessage({id:"collapsibleSection_summary"})}),c.jsx("div",{className:"content",children:n})]})},Fu={cube:"box",graduationCap:"graduation-cap",person:"user",speech:"speech-bubble_round",star:"star_empty_thin"},lp=e=>{let t=e;return Object.keys(Fu).includes(e)&&(t=Fu[e]),`url(${Gt}icons/${t}.svg)`};const Au={customCard:"custom",microcourse:"course",solutionArticle:"article",qaQuestion:"question",listPage:"list",learningHub:"learning-hub",communityPage:"communityPage"},Ad=({contentType:e,customIcon:t,customLabel:n,className:r=""})=>{const i=ie.useIntl(),a=t?{"--custom-icon":lp(t)}:{},s=ca(`contentTypeLabel_${e}`)?i.formatMessage({id:`contentTypeLabel_${e}`}):!1;return!n&&!s?null:c.jsx("small",{className:H("content-type-label text-small",e in Au?Au[e]:e,r,{"has-custom-icon":t}),style:a,"data-testid":"content-type-label",children:n||s})};const Ft=({variant:e="primary",icon:t,styling:n={},className:r="",children:i,...a})=>{const{showHighlight:s=!1,background:o="default"}=n,l=t?{"--icon":`url(${Gt}icons/${t}.svg)`}:{};return c.jsx("div",{className:H("highlighted-text-box",e,r,{"has-icon":t,"show-highlight":s,[o]:o!=="default"}),style:l,...a,children:i})};const Cn=({variant:e="empty",text:t=!1,button:n=!1,className:r=""})=>{let i=n&&!!Object.keys(n).length;const a=typeof n=="object"&&"breakpoints"in n,s=xn(a);if(a&&typeof n=="object"&&typeof s=="number"){const m=Object.assign({},n.breakpoints),h=gd(Object.keys(m));i=vd(s,h,m)}const{breakpoints:o,text:l="",component:u,...d}=n;return c.jsx(Ft,{variant:"subtle",className:H("empty-state-box",e,r),children:c.jsxs(c.Fragment,{children:[t&&typeof t=="string"?c.jsx(Zt,{options:{forceBlock:!0},children:t}):t,i&&typeof n=="object"&&(u||c.jsx(Be,{...d,variant:n.variant?n.variant:"secondary",children:l}))]})})};const js=({children:e,...t})=>c.jsx("p",{...t,children:e}),Bd={q:js,blockquote:js};for(let e=1;e<=6;e++)Bd[`h${e}`]={component:js,props:{className:"title"}};const Td=({type:e="default",className:t="",heading:n=!1,children:r,...i})=>c.jsxs("div",{...i,className:H("helper-text-box text-small",e,t),children:[n&&c.jsx("p",{className:"title",children:n}),typeof r=="string"?c.jsx(Zt,{options:{wrapper:x.Fragment,forceBlock:!0,overrides:Bd},children:r}):c.jsx("p",{children:r})]});const Sd=({id:e,className:t="",show:n=!1,hide:r=!1,text:i,markdownOptions:a,fadeStyle:s="default",children:o})=>{const l=ie.useIntl(),u=x.useRef(null);e||(e=Date.now().toString());const[d,m]=x.useState(""),[h,p]=x.useState("closed");x.useEffect(()=>{const b=u.current;if(b)return b.addEventListener("transitionend",v),()=>{b.removeEventListener("transitionend",v)}},[]),x.useEffect(()=>{if(!i||typeof i!="string")return;const b=i.split(`
36
40
  `);m(b.length<3?`${i.substring(0,400)}...`:b.slice(0,3).join(`
37
- `))},[i]),x.useEffect(()=>{h==="ready-to-close"&&p("closing")},[h]);const v=({propertyName:b})=>{b==="max-height"&&p(g=>g==="opening"?"open":g==="closing"?"closed":g)},f=["opening","open"].includes(h);return c.jsxs(Ft,{variant:"subtle",className:H("hide-show-text-box",t),children:[c.jsx("div",{ref:u,id:e,className:H("content",h,s),children:i?c.jsxs(c.Fragment,{children:[c.jsx(Zt,{options:{forceBlock:!0,...a},children:h==="closed"?d:i}),h!=="closed"&&o]}):o}),c.jsx("p",{className:"cta",children:c.jsx(Be,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:H({"rotate-180":f}),onClick:()=>{p(f?"ready-to-close":"opening")},"aria-expanded":f,"aria-controls":e,children:f?r||l.formatMessage({id:"hideShowTextBox_hide"}):n||l.formatMessage({id:"hideShowTextBox_show"})})})]})};const cp=({element:e="ul",layout:t="vertical",variant:n="default",items:r=[],styling:i={},className:a=""})=>{const{hasBorder:s=!1,zebraStriping:o=!1}=i;return x.createElement(e,{className:H("icon-bulleted-list text-medium",n,a,{"has-border":s,"has-zebra-stripes":o,[t]:e!=="dl"}),children:r.map((l,u)=>{const d={wrapper:x.Fragment,forceInline:!0},m={"--icon":`url(${Gt}icons/${l.icon}.svg)`};return e==="dl"?c.jsxs(x.Fragment,{children:[c.jsx("dt",{style:m,children:c.jsx(Zt,{options:d,children:l.dt||""})},`dt-${u}`),c.jsx("dd",{children:typeof l.text=="string"?c.jsx(Zt,{options:d,children:l.text}):l.text},`dd-${u}`)]},`dl-${u}`):c.jsx("li",{style:m,children:typeof l.text=="string"?c.jsx(Zt,{options:d,children:l.text}):l.text},u)})})},ut=()=>x.Fragment,dp=({children:e})=>c.jsx(Ft,{variant:"secondary",children:e}),fp=({children:e})=>typeof e=="object"&&Object.keys(e||{}).length===1?c.jsx("p",{className:"center",children:e}):c.jsx("div",{className:"center",children:e}),mp=["span","strong","h1","h2","h3","h4","h5","h6","p"],hp=({children:e})=>{const t=ie.useIntl();if(!e)return null;let n=t.formatMessage({id:"markdown_collapsibleSection_summary"});const r=[];for(const a of x.Children.toArray(e))if(!(!a||typeof a=="string"||typeof a=="number"))if(x.isValidElement(a)&&a.type==="summary"){if(a.props&&a.props.children){for(const s of x.Children.toArray(a.props.children))if(!(!s||typeof s=="string"||typeof s=="number")&&x.isValidElement(s)){const o=s.type;if(mp.includes(o)){for(n=s.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(a);const i=n?n.toString():"";return c.jsx(da,{label:i,className:["Sources","Resources"].includes(i)?"discrete-links":"",children:r.map(a=>a)})},pp=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return c.jsx(Ft,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return c.jsx(Ft,{variant:"primary",children:e});case"pink-textbox":return c.jsx(Ft,{variant:"tertiary",children:e});case"content":return typeof e=="object"&&Object.keys(e||{}).length===1?c.jsx("p",{children:e}):e;default:return c.jsx("div",{...t,children:e})}return c.jsx("div",{...t,children:e})},jt=({children:e})=>c.jsx(c.Fragment,{children:e}),gp=e=>{const t=ie.useIntl(),n=Date.now().toString();let r="default";const i=e.src;i.includes("youtube")||i.includes("vimeo")?r="video":i.includes("riddle")||i.includes("sli.do")?r="poll":i.includes("padlet")&&(r="padlet");const a=`content-after-iframe-${n}`;return c.jsxs(c.Fragment,{children:[c.jsx(Me,{element:"a",href:`#${a}`,onClick:s=>{s.preventDefault(),s.stopPropagation();const o=document.getElementById(a);o==null||o.scrollIntoView({behavior:"smooth"}),o==null||o.focus()},children:t.formatMessage({id:`markdown_skip${r==="default"?"":`_${r}`}`})}),c.jsx("iframe",{...e,title:t.formatMessage({id:`markdown_iframe${r==="default"?"":`_${r}`}`})}),c.jsx("span",{id:a,tabIndex:0})]})},Bu=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},vp=({children:e,...t})=>{const n=ie.useIntl();let r={...t};t.href&&(t.href.includes("http:")||t.href.includes("https:"))&&!t.target&&(r.target="_blank");let i=e,a=!1;for(const o of x.Children.toArray(e))if(!(!o||typeof o=="string"||typeof o=="number")&&x.isValidElement(o)){const l=o.type;if(["button","center","span","strong"].includes(l)&&o.props&&o.props.children&&o.props.children[0])for((l==="button"||Bu(o.props.children[0])==="button")&&(a=!0),i=o.props.children[0];i&&typeof i!="string"&&!(typeof i=="boolean"||typeof i=="number"||!x.isValidElement(i));)if(i.props&&i.props.children&&i.props.children[0])i=i.props.children[0],i&&Bu(i)==="button"&&(a=!0);else break}const s=`@${Wr}`;return i===s||Array.isArray(i)&&i[0]===s?(delete r.href,delete r.target,c.jsxs("span",{...r,className:"mention deleted-user",children:["@",n.formatMessage({id:"member_deleted"})]})):a?(r={...r,className:"button primary medium"},c.jsx("p",{className:"center",children:c.jsx(Be,{variant:"primary",size:"medium",...r,children:i})})):c.jsx("a",{...r,children:i})},Ps=({children:e,...t})=>c.jsx("span",{className:H({url:t==null?void 0:t.href}),children:e});const bp={default:{a:vp,CollapsibleSection:da,TextBox:Ft,CaseStudy:dp,style:ut,details:hp,div:pp,iframe:gp,center:fp,script:ut},"text-only":{h1:ut,h2:ut,h3:ut,h4:ut,h5:ut,h6:ut,style:ut,details:ut,div:ut,TextBox:ut,CollapsibleSection:ut,CaseStudy:ut,blockquote:ut,iframe:ut,button:ut}},Pn=({element:e="div",className:t="",options:n={},children:r,overrideType:i="default",styling:a={}})=>{if(!r)return null;const{highlightTitles:s=!1}=a;r=r.replace(/^<br\/?>/,"");const o={wrapper:x.Fragment,forceBlock:!0};let l=bp[i];return n.overrides&&(l={...l,...n.overrides}),x.createElement(e,{className:H("markdown-text",t,{"highlight-titles":s}),children:c.jsx(Zt,{options:{...o,...n,overrides:l},children:r})})};const jd=({maxWidth:e=!1,title:t,subtitle:n,children:r,className:i="",ctaButton:a})=>{const s=e?{"--max-width":`${e/16}rem`}:{};return c.jsxs("section",{className:H("page-heading",i),children:[c.jsxs("div",{className:H("content",{"has-max-width":e}),style:s,children:[c.jsxs("div",{className:H("content-wrapper",{"has-max-width":e}),children:[t&&t.text&&x.createElement(t.element||"h1",{className:"title"},t.text),n&&n.text&&x.createElement(n.element||"h2",{className:"text-medium"},n.text)]}),a&&c.jsx(Be,{...a,className:H("cta-button","gtm-trackable"),"data-gtm-event-context":"CreateNewArticle","data-gtm-event-type":"create-article-click",children:a.text})]}),r]})};const Yt=({size:e="medium",variant:t="default",className:n="",icon:r,tooltip:i="",children:a,element:s="span",...o})=>{const l={"--icon":`url(${Gt}icons/${r}.svg)`},{showTooltip:u,tooltipProps:d}=co(!!i),m={},h=i?typeof i=="string"?`tooltip-${window.btoa(i)}`:i.id:void 0,p=i?typeof i=="string"?i:i.text:void 0;i&&h&&(m["aria-describedby"]=h);const v=x.createElement(i?"button":s,{className:H("pill",e,t,n,{"has-icon":r}),style:l,children:a,...d,...m,...o});return i?x.createElement(s,{className:"pill-wrapper"},c.jsxs(c.Fragment,{children:[v,c.jsx($n,{id:h,isOpen:u,children:p})]})):v};const ur=({element:e="p",children:t=null,className:n="",...r})=>x.createElement(e,{...r,className:H("status-banner text-small",n),"aria-live":"assertive"},t),ho=x.createContext({badges:[],isLoading:!0});function Pd(){return x.useContext(ho)}const Od=({children:e,badges:t})=>c.jsx(ho.Provider,{value:t,children:e}),Md=({showDevTools:e=!0,children:t})=>{const n=new $e.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:6e4}}});return c.jsxs($e.QueryClientProvider,{client:n,children:[t,e&&c.jsx(Th.ReactQueryDevtools,{initialIsOpen:!1})]})};var yp=x.createContext({client:Si});function xp(e){var t=e.children,n=e.client,r=e.apiKey,i=e.options,a=x.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&&i&&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&&(Si.__loaded&&console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."),Si.init(r,i)),Si)},[n,r]);return x.createElement(yp.Provider,{value:{client:a}},t)}const Nd=({children:e,user:t})=>t.isLoading?null:process.env.REACT_APP_PUBLIC_POSTHOG_KEY?c.jsx(xp,{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}):c.jsx(c.Fragment,{children:e});var Id=(e=>(e.COMMUNITY_RANKING="community-ranking",e))(Id||{});const Rd=({children:e,locale:t,messages:n})=>{const r=t||"en",i={...Qh[r],...n||{}};return c.jsx(ie.IntlProvider,{locale:r,messages:i,children:e})},po=x.createContext({}),Pi={en:"English",es:"Español",fr:"Français",pt:"Português"},st=x.createContext({isLoading:!0});function fa(){return x.useContext(st)}const $d=({children:e,user:t,updateDetails:n})=>c.jsx(st.Provider,{value:{...t,updateDetails:n},children:e}),go=x.createContext({registerOverlay:()=>{},unregisterOverlay:()=>{}}),Ld=()=>x.useContext(go),zd=({children:e})=>{const[t,n]=x.useState([]);x.useEffect(()=>{t.length>0?document.body.classList.add("has-overlay"):document.body.classList.remove("has-overlay")},[t]);const r=x.useCallback(a=>{n(s=>[...s,a])},[]),i=x.useCallback(a=>{n(s=>s.filter(o=>o!==a))},[]);return c.jsx(go.Provider,{value:{registerOverlay:r,unregisterOverlay:i},children:e})},wp=({bootstrap:e,children:t,intl:n,showDevTools:r})=>{const[i,a]=x.useState({isLoading:!0}),[s,o]=x.useState({badges:[],isLoading:!0}),l=(n==null?void 0:n.locale)||localStorage.getItem("language")||"en",[u,d]=x.useState(l),m=h=>{localStorage.setItem("language",h),d(h)};return x.useEffect(()=>{e().then(h=>{Array.isArray(h)?(a({...h[0],isLoading:!1}),o({badges:h[1],isLoading:!1})):a({...h,isLoading:!1}),Ed(5e3)}).catch(h=>{h.message===wd&&window.location.pathname!=="/user-onboarding/logout"&&(window.location.href="/user-onboarding/logout"),a({isLoading:!1}),o({badges:[],isLoading:!1})})},[]),c.jsx(po.Provider,{value:{language:u,updateLanguage:m},children:c.jsx(Rd,{locale:u,messages:n==null?void 0:n.messages,children:c.jsx(uo.CookiesProvider,{children:c.jsx($d,{user:i,updateDetails:a,children:c.jsx(Od,{badges:s,children:c.jsx(zd,{children:c.jsx(Md,{showDevTools:r,children:c.jsx(Nd,{user:i,children:t})})})})})})})})},Cp={globe:"globe",heart:"heart_empty_thick",pencil:"pencil",star:"star_empty","speech-bubble":"speech-bubble_round"};const qd=({slug:e})=>{const{badges:t}=Pd(),n=t==null?void 0:t.find(o=>o.slug===e);if(!n)return null;const{name:r,icon:i,colour:a,description:s}=n;return c.jsx(Yt,{className:H("user-badge",a==null?void 0:a.toLowerCase()),icon:i&&Cp[i],element:"li",tooltip:s,children:r})};var dt=(e=>(e.Communities="communities",e.Platform="platform",e))(dt||{});const Ud=({element:e="ul",userBadges:t,badgeOptions:n})=>{if(Object.keys(t).length!==0)return x.createElement(e,{className:"badges-list",children:(n==null?void 0:n.scopes)&&(n==null?void 0:n.scopes.map(r=>{var i,a;return(a=(i=t==null?void 0:t[r.scope])==null?void 0:i[r.area])==null?void 0:a.map((s,o)=>c.jsx(qd,{slug:s},o))}))})};const Dp=({styling:e={},progress:t=0,text:n=!1,className:r=""})=>{const i=ie.useIntl(),{showText:a=!1,layout:s="bar",size:o="default",color:l="default"}=e,u=t>75?100:t>50?75:t>25?50:t>5?25:0,d={"--progress":`${t}%`};return c.jsx("span",{className:H(`progress-bar section-${u}`,s,r,{[o]:o!=="default",[l!=="default"?l:""]:l!=="default"}),style:d,children:x.createElement(a?"span":Me,{className:a?"text":"",children:n||i.formatMessage({id:"progressBar"},{number:t})})})},vo=x.memo(Dp);const Sa="loadingBlock_",Ep=({progress:e=0,steps:t=!1,className:n=""})=>{const r=ie.useIntl();t||(t={0:{text:r.formatMessage({id:`${Sa}loading`})},75:{text:r.formatMessage({id:`${Sa}almostDone`})},100:{text:r.formatMessage({id:`${Sa}complete`})}});let i=null;const a=Object.keys(t);for(let o=0;o<a.length&&!(e<parseInt(a[o]));o++)i=a[o];const s=i&&t[i].icon?{"--icon":`url(${Gt}icons/${t[i].icon}.svg)`}:{};return c.jsxs(Ft,{className:H("loading-block",n,{"has-icon":i&&t[i].icon}),variant:"subtle",style:s,children:[i&&c.jsx("span",{className:"step",children:t[i].text}),c.jsx(vo,{progress:e})]})},Wd=x.memo(Ep);const It=({element:e="div",className:t="",...n})=>c.jsx(la,{element:e,className:H("loading-placeholder",t),...n});const Os={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"],answers:["text","text","text"],"text-page":["title","text","text","text","text","subtitle","text","text","text","text","subtitle","text","text","text","text"],"form-with-answers":["question","subtitle","form","answers","answers","answers","answers","answers"],"general-website-page":["banner","text-page"],"overview-page":["header","sidebar","title","text","cards-section","cards-section","footer"],member:["profile-picture","text","text"],"course-navigation":["button","button"],"course-lesson-page":["breadcrumb","course-navigation","text-page"],"course-lesson-quiz":["text-page","quiz-box"]},Vd=(e,t)=>e in Os?c.jsx("div",{className:e,children:Os[e].map((n,r)=>Vd(n,r))},t):c.jsx(It,{className:e},t),ma=({layout:e="overview-page",...t})=>c.jsx("div",{className:H("loading-state",e),...t,children:Os[e].map((n,r)=>Vd(n,r))}),Hd=e=>{const t=e&&e.toUpperCase().trim().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):""},ci=["#5AB6A3","#A2D7AF","#806056","#3962B3"],_p=e=>{const t=Math.ceil(26/ci.length),n=Hd(e).toLowerCase();if(n==="")return ci[0];const r=n.charCodeAt(0)-96;for(let i=0;i<ci.length;i++)if(r<=t*(i+1))return ci[i]};const Tu=256,on=({className:e="",src:t="",name:n,alt:r,width:i=Tu,height:a=Tu,showInitials:s=!0,...o})=>{const[l,u]=x.useState(!1),d=x.useRef(null),m=r??n;x.useEffect(()=>{const p=d.current;if(!p)return;const v=p.getContext("2d");if(!v)return;const f=i,b=a;typeof window<"u"&&window.devicePixelRatio&&(p.width=f*window.devicePixelRatio,p.height=b*window.devicePixelRatio,v.scale(window.devicePixelRatio,window.devicePixelRatio)),v.fillStyle=_p(n),v.fillRect(0,0,f,b),v.font=`${f/3}px Arial`,v.textAlign="center",v.fillStyle="white",v.fillText(Hd(n),f/2,b/1.6)},[n]);let h=!1;return t&&t!==""&&!l&&(t.includes("http")||t.includes("//"))&&(h=!0),c.jsx("figure",{className:H("profile-picture",e,{error:l}),...o,children:h?c.jsx("img",{src:t,alt:m,onError:()=>{u(!0)},width:i,height:a}):s?c.jsx("canvas",{ref:d}):c.jsx("span",{className:"fallback"})})};var it=(e=>(e.DISCUSSION_FORM_SUBMITTED="discussionFormSubmitted",e.DISCUSSION_POST_ADDED="discussionPostAdded",e.DISCUSSION_POST_CLICKED="discussionPostClicked",e.MEMBER_CLICKED="memberClicked",e))(it||{});const ha=e=>e==="apolitical"?{image:`${Gt}logos/member_apolitical.svg`}:e==="community"||e==="deleted"||typeof e=="object"&&!e.name?{image:`${Gt}logos/member_community.svg`}:{name:e.name,role:e.jobTitle||"",organisation:e.organization||"",country:e.location&&e.location.en||"",url:`/profiles/${e.id}`,image:e.image&&e.image.thumbnail,badges:e.badges},kp=({role:e="",organisation:t="",country:n="",maximumCharacters:r=80})=>{const i=e!=="",a=t!=="",s=n!=="";if(!i&&!a&&!s)return"";const o=`${e}${i&&a?` — ${t}`:t}`;let l=`${o}${(i||a)&&s?`, ${n}`:n}`;return l.length>r&&(l=o),l.length>r&&(l=sr(l,r)),l};const Fp=x.lazy(()=>Promise.resolve().then(()=>ip)),Ap=x.lazy(()=>Promise.resolve().then(()=>mk));let di=null;const rn=({element:e="div",member:t="community",alt:n="",additionalContent:r=!1,styling:i={},functions:a={},gtmContext:s="member",gtmType:o="member-click",className:l="",badges:u,...d})=>{var S,N,V,W,ae;const m=ie.useIntl(),{profile:h,...p}=a,{size:v="medium",variant:f="inline",isCondensed:b=!0,additionalContentNewLine:g=!1}=i,y=x.useContext(st),C=h&&y&&typeof y.id=="string",[A,E]=x.useState(!1),_=ha(t);_.name||(_.name=m.formatMessage({id:`member_${typeof t=="string"?t:"community"}`}));const{name:T,image:M}=_;let{url:O}=_;typeof t=="object"&&t.link!==void 0&&(t.link===!1?O=void 0:O=t.link);const L=kp(_),$=r&&r.createdAt?Ts(r.createdAt):!1,B=r&&r.createdAt?fo(r.createdAt):"",F=!O&&C;return x.createElement(e,{...d,className:H("member text-medium",v,f,l,{"has-profile-link":C}),...p,children:c.jsxs(c.Fragment,{children:[c.jsxs(wn,{href:O,className:H({"details-wrapper":F}),fallbackElement:F?"div":void 0,gtmType:o,gtmContext:s,meta:{forceOnClick:!0},onClick:te=>{if(te==null||te.preventDefault(),te==null||te.stopPropagation(),!O){F&&E(!0);return}di&&clearTimeout(di),di=setTimeout(()=>{window.location.href=O},150);const D=new CustomEvent(it.MEMBER_CLICKED,{detail:{link:O,timeout:di}});document.dispatchEvent(D)},children:[c.jsx(on,{name:T,src:M,alt:n}),c.jsxs("div",{className:"details",children:[c.jsxs("div",{className:H("name",{"new-line":g}),"data-testid":"member-name",children:[c.jsx("span",{children:T}),(u==null?void 0:u.showBadges)&&(_==null?void 0:_.badges)&&c.jsx(Ud,{userBadges:_.badges,badgeOptions:u}),r&&c.jsxs("span",{className:H("additional-content",{"new-line":g}),children:[r.createdAt&&$&&!((S=r==null?void 0:r.customMessage)!=null&&S.text)&&c.jsx("span",{className:"date",title:B,"aria-label":B,"data-testid":"date",children:m.formatMessage({id:`dates_${$.path}`},{number:$.number})}),r.createdAt&&$&&((N=r==null?void 0:r.customMessage)==null?void 0:N.text)&&c.jsx("span",{children:m.formatMessage({id:(V=r.customMessage)==null?void 0:V.text},{time:m.formatMessage({id:`dates_${$.path}`},{number:$.number}),community:(ae=(W=r.customMessage)==null?void 0:W.link)==null?void 0:ae.text,link:te=>{var D,Q;return c.jsx("a",{href:`${(Q=(D=r.customMessage)==null?void 0:D.link)==null?void 0:Q.url}`,onClick:Y=>Y.stopPropagation(),children:te})}})}),r.didEdit&&c.jsx("em",{children:m.formatMessage({id:"discussion_edited"})})]})]}),L&&!g&&c.jsx("small",{className:H({"text-medium":v==="large"}),"data-testid":"member-details",children:b?L:c.jsxs(c.Fragment,{children:[_.role,_.organisation?` — ${_.organisation}`:c.jsx(c.Fragment,{}),c.jsx("span",{className:"location",children:_.country})]})})]})]}),L&&h&&C?c.jsxs(c.Fragment,{children:[c.jsx(Be,{variant:"tertiary",size:"small",onClick:te=>{te.preventDefault(),te.stopPropagation(),E(!0)},"data-testid":"profile-button",children:m.formatMessage({id:"member_profile"})}),c.jsx(Fp,{children:c.jsx(Ap,{form:h,showModal:A,content:{title:m.formatMessage({id:"member_profile"})},functions:{onClose:()=>{E(!1)}},className:"in-portal"})})]}):c.jsx(c.Fragment,{})]})})},Bp=Object.freeze(Object.defineProperty({__proto__:null,default:rn},Symbol.toStringTag,{value:"Module"}));const Su={small:24,medium:48},bo=({element:e="div",contributors:{total:t,data:n}={total:void 0,data:[]},styling:{showText:r,size:i,showGap:a,showPlaceholders:s}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:o=2,multipleText:l,className:u="",...d})=>{const m=ie.useIntl();return!n||n.length===0?null:x.createElement(e,{...d,className:H("contributors",u,i,{"has-gap":a}),children:c.jsxs(c.Fragment,{children:[c.jsx("ul",{children:n.map((h,p)=>{let v,f="";if(p<o){const{name:b="",image:g=""}=ha(h);if(s)return c.jsx(It,{element:"li",className:"contributor"},p);v=c.jsx(on,{name:b,src:g,width:Su[i||"medium"],height:Su[i||"medium"]})}else if(p===o){const b=(t||n.length)-o;v=c.jsxs("small",{className:H({"large-number":b>99}),children:["+",Jh(b,0)]}),f="number-left"}return v?c.jsx("li",{className:H("contributor",f),children:v},p):null})}),r&&c.jsx("span",{className:"label",children:typeof r=="string"?r:n.length===1?typeof n[0]=="string"?m.formatMessage({id:`member_${n[0]}`}):sr(n[0].name||"",20):l||null})]})})};const yo=({element:e="section",children:t,className:n,...r})=>x.createElement(e,{className:H("modal",n),children:typeof t=="string"?c.jsx("p",{children:t}):t,...r});var Ms={exports:{}},fi={exports:{}},qe={};/** @license React v16.13.1
41
+ `))},[i]),x.useEffect(()=>{h==="ready-to-close"&&p("closing")},[h]);const v=({propertyName:b})=>{b==="max-height"&&p(g=>g==="opening"?"open":g==="closing"?"closed":g)},f=["opening","open"].includes(h);return c.jsxs(Ft,{variant:"subtle",className:H("hide-show-text-box",t),children:[c.jsx("div",{ref:u,id:e,className:H("content",h,s),children:i?c.jsxs(c.Fragment,{children:[c.jsx(Zt,{options:{forceBlock:!0,...a},children:h==="closed"?d:i}),h!=="closed"&&o]}):o}),c.jsx("p",{className:"cta",children:c.jsx(Be,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:H({"rotate-180":f}),onClick:()=>{p(f?"ready-to-close":"opening")},"aria-expanded":f,"aria-controls":e,children:f?r||l.formatMessage({id:"hideShowTextBox_hide"}):n||l.formatMessage({id:"hideShowTextBox_show"})})})]})};const cp=({element:e="ul",layout:t="vertical",variant:n="default",items:r=[],styling:i={},className:a=""})=>{const{hasBorder:s=!1,zebraStriping:o=!1}=i;return x.createElement(e,{className:H("icon-bulleted-list text-medium",n,a,{"has-border":s,"has-zebra-stripes":o,[t]:e!=="dl"}),children:r.map((l,u)=>{const d={wrapper:x.Fragment,forceInline:!0},m={"--icon":`url(${Gt}icons/${l.icon}.svg)`};return e==="dl"?c.jsxs(x.Fragment,{children:[c.jsx("dt",{style:m,children:c.jsx(Zt,{options:d,children:l.dt||""})},`dt-${u}`),c.jsx("dd",{children:typeof l.text=="string"?c.jsx(Zt,{options:d,children:l.text}):l.text},`dd-${u}`)]},`dl-${u}`):c.jsx("li",{style:m,children:typeof l.text=="string"?c.jsx(Zt,{options:d,children:l.text}):l.text},u)})})},ut=()=>x.Fragment,dp=({children:e})=>c.jsx(Ft,{variant:"secondary",children:e}),fp=({children:e})=>typeof e=="object"&&Object.keys(e||{}).length===1?c.jsx("p",{className:"center",children:e}):c.jsx("div",{className:"center",children:e}),mp=["span","strong","h1","h2","h3","h4","h5","h6","p"],hp=({children:e})=>{const t=ie.useIntl();if(!e)return null;let n=t.formatMessage({id:"markdown_collapsibleSection_summary"});const r=[];for(const a of x.Children.toArray(e))if(!(!a||typeof a=="string"||typeof a=="number"))if(x.isValidElement(a)&&a.type==="summary"){if(a.props&&a.props.children){for(const s of x.Children.toArray(a.props.children))if(!(!s||typeof s=="string"||typeof s=="number")&&x.isValidElement(s)){const o=s.type;if(mp.includes(o)){for(n=s.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(a);const i=n?n.toString():"";return c.jsx(da,{label:i,className:["Sources","Resources"].includes(i)?"discrete-links":"",children:r.map(a=>a)})},pp=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return c.jsx(Ft,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return c.jsx(Ft,{variant:"primary",children:e});case"pink-textbox":return c.jsx(Ft,{variant:"tertiary",children:e});case"content":return typeof e=="object"&&Object.keys(e||{}).length===1?c.jsx("p",{children:e}):e;default:return c.jsx("div",{...t,children:e})}return c.jsx("div",{...t,children:e})},jt=({children:e})=>c.jsx(c.Fragment,{children:e}),gp=e=>{const t=ie.useIntl(),n=Date.now().toString();let r="default";const i=e.src;i.includes("youtube")||i.includes("vimeo")?r="video":i.includes("riddle")||i.includes("sli.do")?r="poll":i.includes("padlet")&&(r="padlet");const a=`content-after-iframe-${n}`;return c.jsxs(c.Fragment,{children:[c.jsx(Me,{element:"a",href:`#${a}`,onClick:s=>{s.preventDefault(),s.stopPropagation();const o=document.getElementById(a);o==null||o.scrollIntoView({behavior:"smooth"}),o==null||o.focus()},children:t.formatMessage({id:`markdown_skip${r==="default"?"":`_${r}`}`})}),c.jsx("iframe",{...e,title:t.formatMessage({id:`markdown_iframe${r==="default"?"":`_${r}`}`})}),c.jsx("span",{id:a,tabIndex:0})]})},Bu=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},vp=({children:e,...t})=>{const n=ie.useIntl();let r={...t};t.href&&(t.href.includes("http:")||t.href.includes("https:"))&&!t.target&&(r.target="_blank");let i=e,a=!1;for(const o of x.Children.toArray(e))if(!(!o||typeof o=="string"||typeof o=="number")&&x.isValidElement(o)){const l=o.type;if(["button","center","span","strong"].includes(l)&&o.props&&o.props.children&&o.props.children[0])for((l==="button"||Bu(o.props.children[0])==="button")&&(a=!0),i=o.props.children[0];i&&typeof i!="string"&&!(typeof i=="boolean"||typeof i=="number"||!x.isValidElement(i));)if(i.props&&i.props.children&&i.props.children[0])i=i.props.children[0],i&&Bu(i)==="button"&&(a=!0);else break}const s=`@${Wr}`;return i===s||Array.isArray(i)&&i[0]===s?(delete r.href,delete r.target,c.jsxs("span",{...r,className:"mention deleted-user",children:["@",n.formatMessage({id:"member_deleted"})]})):a?(r={...r,className:"button primary medium"},c.jsx("p",{className:"center",children:c.jsx(Be,{variant:"primary",size:"medium",...r,children:i})})):c.jsx("a",{...r,children:i})},Ps=({children:e,...t})=>c.jsx("span",{className:H({url:t==null?void 0:t.href}),children:e});const bp={default:{a:vp,CollapsibleSection:da,TextBox:Ft,CaseStudy:dp,style:ut,details:hp,div:pp,iframe:gp,center:fp,script:ut},"text-only":{h1:ut,h2:ut,h3:ut,h4:ut,h5:ut,h6:ut,style:ut,details:ut,div:ut,TextBox:ut,CollapsibleSection:ut,CaseStudy:ut,blockquote:ut,iframe:ut,button:ut}},Pn=({element:e="div",className:t="",options:n={},children:r,overrideType:i="default",styling:a={}})=>{if(!r)return null;const{highlightTitles:s=!1}=a;r=r.replace(/^<br\/?>/,"");const o={wrapper:x.Fragment,forceBlock:!0};let l=bp[i];return n.overrides&&(l={...l,...n.overrides}),x.createElement(e,{className:H("markdown-text",t,{"highlight-titles":s}),children:c.jsx(Zt,{options:{...o,...n,overrides:l},children:r})})};const jd=({maxWidth:e=!1,title:t,subtitle:n,children:r,className:i="",ctaButton:a})=>{const s=e?{"--max-width":`${e/16}rem`}:{};return c.jsxs("section",{className:H("page-heading",i),children:[c.jsxs("div",{className:H("content",{"has-max-width":e}),style:s,children:[c.jsxs("div",{className:H("content-wrapper",{"has-max-width":e}),children:[t&&t.text&&x.createElement(t.element||"h1",{className:"title"},t.text),n&&n.text&&x.createElement(n.element||"h2",{className:"text-medium"},n.text)]}),a&&c.jsx(Be,{...a,className:H("cta-button","gtm-trackable"),"data-gtm-event-context":"CreateNewArticle","data-gtm-event-type":"create-article-click",children:a.text})]}),r]})};const Yt=({size:e="medium",variant:t="default",className:n="",icon:r,tooltip:i="",children:a,element:s="span",...o})=>{const l={"--icon":`url(${Gt}icons/${r}.svg)`},{showTooltip:u,tooltipProps:d}=co(!!i),m={},h=i?typeof i=="string"?`tooltip-${window.btoa(i)}`:i.id:void 0,p=i?typeof i=="string"?i:i.text:void 0;i&&h&&(m["aria-describedby"]=h);const v=x.createElement(i?"button":s,{className:H("pill",e,t,n,{"has-icon":r}),style:l,children:a,...d,...m,...o});return i?x.createElement(s,{className:"pill-wrapper"},c.jsxs(c.Fragment,{children:[v,c.jsx($n,{id:h,isOpen:u,children:p})]})):v};const ur=({element:e="p",children:t=null,className:n="",...r})=>x.createElement(e,{...r,className:H("status-banner text-small",n),"aria-live":"assertive"},t),ho=x.createContext({badges:[],isLoading:!0});function Pd(){return x.useContext(ho)}const Od=({children:e,badges:t})=>c.jsx(ho.Provider,{value:t,children:e}),Md=({showDevTools:e=!0,children:t})=>{const n=new $e.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:6e4}}});return c.jsxs($e.QueryClientProvider,{client:n,children:[t,e&&c.jsx(Th.ReactQueryDevtools,{initialIsOpen:!1})]})};var yp=x.createContext({client:Si});function xp(e){var t=e.children,n=e.client,r=e.apiKey,i=e.options,a=x.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&&i&&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&&(Si.__loaded&&console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."),Si.init(r,i)),Si)},[n,r]);return x.createElement(yp.Provider,{value:{client:a}},t)}const Nd=({children:e,user:t})=>t.isLoading?null:process.env.REACT_APP_PUBLIC_POSTHOG_KEY?c.jsx(xp,{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}):c.jsx(c.Fragment,{children:e});var Id=(e=>(e.COMMUNITY_RANKING="community-ranking",e))(Id||{});const Rd=({children:e,locale:t,messages:n})=>{const r=t||"en",i={...Qh[r],...n||{}};return c.jsx(ie.IntlProvider,{locale:r,messages:i,children:e})},po=x.createContext({}),Pi={en:"English",es:"Español",fr:"Français",pt:"Português"},st=x.createContext({isLoading:!0});function fa(){return x.useContext(st)}const $d=({children:e,user:t,updateDetails:n})=>c.jsx(st.Provider,{value:{...t,updateDetails:n},children:e}),go=x.createContext({registerOverlay:()=>{},unregisterOverlay:()=>{}}),Ld=()=>x.useContext(go),zd=({children:e})=>{const[t,n]=x.useState([]);x.useEffect(()=>{t.length>0?document.body.classList.add("has-overlay"):document.body.classList.remove("has-overlay")},[t]);const r=x.useCallback(a=>{n(s=>[...s,a])},[]),i=x.useCallback(a=>{n(s=>s.filter(o=>o!==a))},[]);return c.jsx(go.Provider,{value:{registerOverlay:r,unregisterOverlay:i},children:e})},wp=({bootstrap:e,children:t,intl:n,showDevTools:r})=>{const[i,a]=x.useState({isLoading:!0}),[s,o]=x.useState({badges:[],isLoading:!0}),l=(n==null?void 0:n.locale)||localStorage.getItem("language")||"en",[u,d]=x.useState(l),m=h=>{localStorage.setItem("language",h),d(h)};return x.useEffect(()=>{e().then(h=>{Array.isArray(h)?(a({...h[0],isLoading:!1}),o({badges:h[1],isLoading:!1})):a({...h,isLoading:!1}),Ed(5e3)}).catch(h=>{h.message===wd&&window.location.pathname!=="/user-onboarding/logout"&&(window.location.href="/user-onboarding/logout"),a({isLoading:!1}),o({badges:[],isLoading:!1})})},[]),c.jsx(po.Provider,{value:{language:u,updateLanguage:m},children:c.jsx(Rd,{locale:u,messages:n==null?void 0:n.messages,children:c.jsx(uo.CookiesProvider,{children:c.jsx($d,{user:i,updateDetails:a,children:c.jsx(Od,{badges:s,children:c.jsx(zd,{children:c.jsx(Md,{showDevTools:r,children:c.jsx(Nd,{user:i,children:t})})})})})})})})},Cp={globe:"globe",heart:"heart_empty_thick",pencil:"pencil",star:"star_empty","speech-bubble":"speech-bubble_round"};const qd=({slug:e})=>{const{badges:t}=Pd(),n=t==null?void 0:t.find(o=>o.slug===e);if(!n)return null;const{name:r,icon:i,colour:a,description:s}=n;return c.jsx(Yt,{className:H("user-badge",a==null?void 0:a.toLowerCase()),icon:i&&Cp[i],element:"li",tooltip:s,children:r})};var dt=(e=>(e.Communities="communities",e.Platform="platform",e))(dt||{});const Ud=({element:e="ul",userBadges:t,badgeOptions:n})=>{if(Object.keys(t).length!==0)return x.createElement(e,{className:"badges-list",children:(n==null?void 0:n.scopes)&&(n==null?void 0:n.scopes.map(r=>{var i,a;return(a=(i=t==null?void 0:t[r.scope])==null?void 0:i[r.area])==null?void 0:a.map((s,o)=>c.jsx(qd,{slug:s},o))}))})};const Dp=({styling:e={},progress:t=0,text:n=!1,className:r=""})=>{const i=ie.useIntl(),{showText:a=!1,layout:s="bar",size:o="default",color:l="default"}=e,u=t>75?100:t>50?75:t>25?50:t>5?25:0,d={"--progress":`${t}%`};return c.jsx("span",{className:H(`progress-bar section-${u}`,s,r,{[o]:o!=="default",[l!=="default"?l:""]:l!=="default"}),style:d,children:x.createElement(a?"span":Me,{className:a?"text":"",children:n||i.formatMessage({id:"progressBar"},{number:t})})})},vo=x.memo(Dp);const Sa="loadingBlock_",Ep=({progress:e=0,steps:t=!1,className:n=""})=>{const r=ie.useIntl();t||(t={0:{text:r.formatMessage({id:`${Sa}loading`})},75:{text:r.formatMessage({id:`${Sa}almostDone`})},100:{text:r.formatMessage({id:`${Sa}complete`})}});let i=null;const a=Object.keys(t);for(let o=0;o<a.length&&!(e<parseInt(a[o]));o++)i=a[o];const s=i&&t[i].icon?{"--icon":`url(${Gt}icons/${t[i].icon}.svg)`}:{};return c.jsxs(Ft,{className:H("loading-block",n,{"has-icon":i&&t[i].icon}),variant:"subtle",style:s,children:[i&&c.jsx("span",{className:"step",children:t[i].text}),c.jsx(vo,{progress:e})]})},Wd=x.memo(Ep);const It=({element:e="div",className:t="",...n})=>c.jsx(la,{element:e,className:H("loading-placeholder",t),...n});const Os={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"],answers:["text","text","text"],"text-page":["title","text","text","text","text","subtitle","text","text","text","text","subtitle","text","text","text","text"],"form-with-answers":["question","subtitle","form","answers","answers","answers","answers","answers"],"general-website-page":["banner","text-page"],"overview-page":["header","sidebar","title","text","cards-section","cards-section","footer"],member:["profile-picture","text","text"],"course-navigation":["button","button"],"course-lesson-page":["breadcrumb","course-navigation","text-page"],"course-lesson-quiz":["text-page","quiz-box"]},Vd=(e,t)=>e in Os?c.jsx("div",{className:e,children:Os[e].map((n,r)=>Vd(n,r))},t):c.jsx(It,{className:e},t),ma=({layout:e="overview-page",...t})=>c.jsx("div",{className:H("loading-state",e),...t,children:Os[e].map((n,r)=>Vd(n,r))}),Hd=e=>{const t=e&&e.toUpperCase().trim().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):""},ci=["#5AB6A3","#A2D7AF","#806056","#3962B3"],_p=e=>{const t=Math.ceil(26/ci.length),n=Hd(e).toLowerCase();if(n==="")return ci[0];const r=n.charCodeAt(0)-96;for(let i=0;i<ci.length;i++)if(r<=t*(i+1))return ci[i]};const Tu=256,on=({className:e="",src:t="",name:n,alt:r,width:i=Tu,height:a=Tu,showInitials:s=!0,...o})=>{const[l,u]=x.useState(!1),d=x.useRef(null),m=r??n;x.useEffect(()=>{const p=d.current;if(!p)return;const v=p.getContext("2d");if(!v)return;const f=i,b=a;typeof window<"u"&&window.devicePixelRatio&&(p.width=f*window.devicePixelRatio,p.height=b*window.devicePixelRatio,v.scale(window.devicePixelRatio,window.devicePixelRatio)),v.fillStyle=_p(n),v.fillRect(0,0,f,b),v.font=`${f/3}px Arial`,v.textAlign="center",v.fillStyle="white",v.fillText(Hd(n),f/2,b/1.6)},[n]);let h=!1;return t&&t!==""&&!l&&(t.includes("http")||t.includes("//"))&&(h=!0),c.jsx("figure",{className:H("profile-picture",e,{error:l}),...o,children:h?c.jsx("img",{src:t,alt:m,onError:()=>{u(!0)},width:i,height:a}):s?c.jsx("canvas",{ref:d}):c.jsx("span",{className:"fallback"})})};var it=(e=>(e.DISCUSSION_FORM_SUBMITTED="discussionFormSubmitted",e.DISCUSSION_POST_ADDED="discussionPostAdded",e.DISCUSSION_POST_CLICKED="discussionPostClicked",e.MEMBER_CLICKED="memberClicked",e))(it||{});const ha=e=>e==="apolitical"?{image:`${Gt}logos/member_apolitical.svg`}:e==="community"||e==="deleted"||typeof e=="object"&&!e.name?{image:`${Gt}logos/member_community.svg`}:{name:e.name,role:e.jobTitle||"",organisation:e.organization||"",country:e.location&&e.location.en||"",url:`/profiles/${e.id}`,image:e.image&&e.image.thumbnail,badges:e.badges},kp=({role:e="",organisation:t="",country:n="",maximumCharacters:r=80})=>{const i=e!=="",a=t!=="",s=n!=="";if(!i&&!a&&!s)return"";const o=`${e}${i&&a?` — ${t}`:t}`;let l=`${o}${(i||a)&&s?`, ${n}`:n}`;return l.length>r&&(l=o),l.length>r&&(l=sr(l,r)),l};const Fp=x.lazy(()=>Promise.resolve().then(()=>ip)),Ap=x.lazy(()=>Promise.resolve().then(()=>mk));let di=null;const rn=({element:e="div",member:t="community",alt:n="",additionalContent:r=!1,styling:i={},functions:a={},gtmContext:s="member",gtmType:o="member-click",className:l="",badges:u,...d})=>{var S,N,V,W,ae;const m=ie.useIntl(),{profile:h,...p}=a,{size:v="medium",variant:f="inline",isCondensed:b=!0,additionalContentNewLine:g=!1}=i,y=x.useContext(st),C=h&&y&&typeof y.id=="string",[A,E]=x.useState(!1),_=ha(t);_.name||(_.name=m.formatMessage({id:`member_${typeof t=="string"?t:"community"}`}));const{name:T,image:M}=_;let{url:O}=_;typeof t=="object"&&t.link!==void 0&&(t.link===!1?O=void 0:O=t.link);const L=kp(_),$=r&&r.createdAt?Ts(r.createdAt):!1,B=r&&r.createdAt?fo(r.createdAt):"",F=!O&&C;return x.createElement(e,{...d,className:H("member text-medium",v,f,l,{"has-profile-link":C}),...p,children:c.jsxs(c.Fragment,{children:[c.jsxs(wn,{href:O,className:H({"details-wrapper":F}),fallbackElement:F?"div":void 0,gtmType:o,gtmContext:s,meta:{forceOnClick:!0},onClick:te=>{if(te==null||te.preventDefault(),te==null||te.stopPropagation(),!O){F&&E(!0);return}di&&clearTimeout(di),di=setTimeout(()=>{window.location.href=O},150);const D=new CustomEvent(it.MEMBER_CLICKED,{detail:{link:O,timeout:di}});document.dispatchEvent(D)},children:[c.jsx(on,{name:T,src:M,alt:n}),c.jsxs("div",{className:"details",children:[c.jsxs("div",{className:H("name",{"new-line":g}),"data-testid":"member-name",children:[c.jsx("span",{children:T}),(u==null?void 0:u.showBadges)&&(_==null?void 0:_.badges)&&c.jsx(Ud,{userBadges:_.badges,badgeOptions:u}),r&&c.jsxs("span",{className:H("additional-content",{"new-line":g}),children:[r.createdAt&&$&&!((S=r==null?void 0:r.customMessage)!=null&&S.text)&&c.jsx("span",{className:"date",title:B,"aria-label":B,"data-testid":"date",children:m.formatMessage({id:`dates_${$.path}`},{number:$.number})}),r.createdAt&&$&&((N=r==null?void 0:r.customMessage)==null?void 0:N.text)&&c.jsx("span",{children:m.formatMessage({id:(V=r.customMessage)==null?void 0:V.text},{time:m.formatMessage({id:`dates_${$.path}`},{number:$.number}),community:(ae=(W=r.customMessage)==null?void 0:W.link)==null?void 0:ae.text,link:te=>{var D,Q;return c.jsx("a",{href:`${(Q=(D=r.customMessage)==null?void 0:D.link)==null?void 0:Q.url}`,onClick:Y=>Y.stopPropagation(),children:te})}})}),r.didEdit&&c.jsx("em",{children:m.formatMessage({id:"discussion_edited"})})]})]}),L&&!g&&c.jsx("small",{className:H({"text-medium":v==="large"}),"data-testid":"member-details",children:b?L:c.jsxs(c.Fragment,{children:[_.role,_.organisation?` — ${_.organisation}`:c.jsx(c.Fragment,{}),c.jsx("span",{className:"location",children:_.country})]})})]})]}),L&&h&&C?c.jsxs(c.Fragment,{children:[c.jsx(Be,{variant:"tertiary",size:"small",onClick:te=>{te.preventDefault(),te.stopPropagation(),E(!0)},"data-testid":"profile-button",children:m.formatMessage({id:"member_profile"})}),c.jsx(Fp,{children:c.jsx(Ap,{form:h,showModal:A,content:{title:m.formatMessage({id:"member_profile"})},functions:{onClose:()=>{E(!1)}},className:"in-portal"})})]}):c.jsx(c.Fragment,{})]})})},Bp=Object.freeze(Object.defineProperty({__proto__:null,default:rn},Symbol.toStringTag,{value:"Module"}));const Su={small:24,medium:48},bo=({element:e="div",contributors:{total:t,data:n}={total:void 0,data:[]},styling:{showText:r,size:i,showGap:a,showPlaceholders:s}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:o=2,multipleText:l,className:u="",...d})=>{const m=ie.useIntl();return!n||n.length===0?null:x.createElement(e,{...d,className:H("contributors",u,i,{"has-gap":a}),children:c.jsxs(c.Fragment,{children:[c.jsx("ul",{children:n.map((h,p)=>{let v,f="";if(p<o){const{name:b="",image:g=""}=ha(h);if(s)return c.jsx(It,{element:"li",className:"contributor"},p);v=c.jsx(on,{name:b,src:g,width:Su[i||"medium"],height:Su[i||"medium"]})}else if(p===o){const b=(t||n.length)-o;v=c.jsxs("small",{className:H({"large-number":b>99}),children:["+",Jh(b,0)]}),f="number-left"}return v?c.jsx("li",{className:H("contributor",f),children:v},p):null})}),r&&c.jsx("span",{className:"label",children:typeof r=="string"?r:n.length===1?typeof n[0]=="string"?m.formatMessage({id:`member_${n[0]}`}):sr(n[0].name||"",20):l||null})]})})};const yo=({element:e="section",children:t,className:n,variant:r,additionalContent:i,...a})=>{let s=typeof t=="string"?c.jsx("p",{children:t}):t;return i&&(s=c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"modal-content",children:typeof t=="string"?c.jsx("p",{children:t}):t}),c.jsx("div",{className:"modal-additional-content",children:typeof i=="string"?c.jsx("p",{children:i}):i})]})),x.createElement(e,{className:H("modal",n,{success:r==="success"}),children:s,...a})};var Ms={exports:{}},fi={exports:{}},qe={};/** @license React v16.13.1
38
42
  * react-is.production.min.js
39
43
  *
40
44
  * Copyright (c) Facebook, Inc. and its affiliates.