@apolitical/component-library 3.0.0-4126.1 → 3.0.0-4126.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/index.mjs +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -28,7 +28,7 @@ Check the render method of \``+h+"`."}return""}}function Ai(h){{if(h!==void 0){v
|
|
|
28
28
|
|
|
29
29
|
Check your code at `+$+":"+U+"."}return""}}var wr={};function Di(h){{var $=xr();if(!$){var U=typeof h=="string"?h:h.displayName||h.name;U&&($=`
|
|
30
30
|
|
|
31
|
-
Check the top-level render call using <`+U+">.")}return $}}function jr(h,$){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var U=Di($);if(wr[U])return;wr[U]=!0;var te="";h&&h._owner&&h._owner!==cn.current&&(te=" It was passed a child from "+w(h._owner.type)+"."),ze(h),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,te),ze(null)}}function kr(h,$){{if(typeof h!="object")return;if(sn(h))for(var U=0;U<h.length;U++){var te=h[U];un(te)&&jr(te,$)}else if(un(h))h._store&&(h._store.validated=!0);else if(h){var oe=y(h);if(typeof oe=="function"&&oe!==h.entries)for(var de=oe.call(h),se;!(se=de.next()).done;)un(se.value)&&jr(se.value,$)}}}function Ii(h){{var $=h.type;if($==null||typeof $=="string")return;var U;if(typeof $=="function")U=$.propTypes;else if(typeof $=="object"&&($.$$typeof===d||$.$$typeof===u))U=$.propTypes;else return;if(U){var te=w($);ki(U,h.props,"prop",te,h)}else if($.PropTypes!==void 0&&!ln){ln=!0;var oe=w($);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof $.getDefaultProps=="function"&&!$.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Li(h){{for(var $=Object.keys(h.props),U=0;U<$.length;U++){var te=$[U];if(te!=="children"&&te!=="key"){ze(h),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",te),ze(null);break}}h.ref!==null&&(ze(h),x("Invalid attribute `ref` supplied to `React.Fragment`."),ze(null))}}function Tr(h,$,U,te,oe,de){{var se=L(h);if(!se){var ae="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(ae+=" 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 be=Ai(oe);be?ae+=be:ae+=xr();var fe;h===null?fe="null":sn(h)?fe="array":h!==void 0&&h.$$typeof===e?(fe="<"+(w(h.type)||"Unknown")+" />",ae=" Did you accidentally export a JSX literal instead of a component?"):fe=typeof h,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",fe,ae)}var pe=Oi(h,$,U,oe,de);if(pe==null)return pe;if(se){var xe=$.children;if(xe!==void 0)if(te)if(sn(xe)){for(var He=0;He<xe.length;He++)kr(xe[He],h);Object.freeze&&Object.freeze(xe)}else x("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 kr(xe,h)}return h===r?Li(pe):Ii(pe),pe}}function Bi(h,$,U){return Tr(h,$,U,!0)}function qi(h,$,U){return Tr(h,$,U,!1)}var Ui=qi,zi=Bi;at.Fragment=r,at.jsx=Ui,at.jsxs=zi}()),at}process.env.NODE_ENV==="production"?An.exports=es():An.exports=ts();var i=An.exports;const pa=()=>{const[t,e]=v.useState(window.location.pathname),n=()=>{const r=window.location.pathname;e(r)};return v.useEffect(()=>(window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}),[]),t},Ke=(t,e)=>{const n=v.useRef(!1);v.useEffect(()=>{n.current?t():n.current=!0},e)};function ns(t,e,n){var r=this,a=v.useRef(null),s=v.useRef(0),o=v.useRef(null),c=v.useRef([]),d=v.useRef(),l=v.useRef(),f=v.useRef(t),u=v.useRef(!0);f.current=t;var m=typeof window<"u",p=!e&&e!==0&&m;if(typeof t!="function")throw new TypeError("Expected a function");e=+e||0;var g=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,y="maxWait"in n,_="debounceOnServer"in n&&!!n.debounceOnServer,x=y?Math.max(+n.maxWait||0,e):null;v.useEffect(function(){return u.current=!0,function(){u.current=!1}},[]);var S=v.useMemo(function(){var T=function(L){var F=c.current,E=d.current;return c.current=d.current=null,s.current=L,l.current=f.current.apply(E,F)},j=function(L,F){p&&cancelAnimationFrame(o.current),o.current=p?requestAnimationFrame(L):setTimeout(L,F)},z=function(L){if(!u.current)return!1;var F=L-a.current;return!a.current||F>=e||F<0||y&&L-s.current>=x},M=function(L){return o.current=null,b&&c.current?T(L):(c.current=d.current=null,l.current)},P=function L(){var F=Date.now();if(z(F))return M(F);if(u.current){var E=e-(F-a.current),w=y?Math.min(E,x-(F-s.current)):E;j(L,w)}},q=function(){if(m||_){var L=Date.now(),F=z(L);if(c.current=[].slice.call(arguments),d.current=r,a.current=L,F){if(!o.current&&u.current)return s.current=a.current,j(P,e),g?T(a.current):l.current;if(y)return j(P,e),T(a.current)}return o.current||j(P,e),l.current}};return q.cancel=function(){o.current&&(p?cancelAnimationFrame(o.current):clearTimeout(o.current)),s.current=0,c.current=a.current=d.current=o.current=null},q.isPending=function(){return!!o.current},q.flush=function(){return o.current?M(Date.now()):l.current},q},[g,y,e,x,b,p,m,_]);return S}function ha(t,e,n){var r=n===void 0?{}:n,a=r.leading,s=r.trailing;return ns(t,e,{maxWait:e,leading:a===void 0||a,trailing:s===void 0||s})}let dn;const Xe=(t=!0,e=!1,n="window")=>{if(!t)return;const[r,a]=v.useState(0)||[!1,()=>{}],s=n==="window"?[]:[n];v.useEffect(()=>(c(),window.addEventListener("resize",l),window.addEventListener("hiddenSectionVisible",d),()=>{clearTimeout(dn),l.flush(),window.removeEventListener("resize",l),window.removeEventListener("hiddenSectionVisible",d)}),s);const o=()=>{if(n)return n==="window"?window.innerWidth:n.offsetWidth},c=()=>{a(o())},d=({detail:f})=>{const{id:u}=f;n==="window"||!n.closest(`#${u}`)||o()===r||c()},l=ha(()=>{o()!==r&&(e&&(clearTimeout(dn),document.body.classList.add("is-resizing"),dn=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),c())},500,{leading:!0});return r},ga=({scrollPosition:t=0,offset:e={down:0,up:10},callbacks:{scrollDown:n=()=>{},scrollUp:r=()=>{}}})=>{if(!window)return;const[a,s]=v.useState({current:0,past:0})||[!1,()=>{}],[o,c]=v.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];v.useEffect(()=>(d(),window.addEventListener("scroll",l),()=>{l.flush(),window.removeEventListener("scroll",l)}),[]);const d=()=>{const f=window.scrollY,u=a.current,m=f-u,p=m>0?"down":"up";if(s({current:f,past:u}),p==="down"){f>=t+e.down&&!o.scrollDown&&(!o.scrollUp||m>e.up)&&(n(),c({scrollUp:!1,scrollDown:!0}));return}Math.abs(m)>=e.up&&!o.scrollUp&&(r(),c({scrollUp:!0,scrollDown:!1}))},l=ha(()=>{d()},250);return a},va=(t=[],e=!0)=>{t=Array.isArray(t)?t:[t];const n=v.useRef(!1);Ke(()=>{if(window&&window.location&&window.location.hash){if(n.current)return;const r=document.getElementById(window.location.hash.replace("#",""));r&&(r.scrollIntoView(e?{behavior:"smooth"}:null),n.current=!0)}},t)},ba=(t,e)=>{Array.isArray(e)||(e=[e]);const n=ut(t);return e.forEach(({type:r,value:a})=>{Hi(n,r,a)}),n},ya=t=>{const e=[];return t.forEach(n=>{const r=parseInt(n);isNaN(r)||e.push(r)}),e.sort((n,r)=>n-r)},_a=(t,e,n)=>{let r=n.mobile;for(const a in e){const s=parseInt(String(e[a]));if(t>=s)r=n[s];else if(t<s)break}return r},rs=t=>t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),Ie="https://storage.googleapis.com/apolitical-assets/",Ze={general:"hello@apolitical.co",support:"concierge@apolitical.co","data-protection":{default:"dpo@apolitical.co",eu:"dpo.agl@apolitical.foundation"}},as="200,000+";function is(t){return t?{"--icon":`url(${Ie}icons/${t}.svg)`}:{}}const De={milliseconds:{inSecond:1e3,inMinute:6e4,inHour:36e5,inDay:864e5},year:{weeks:52,days:365}},ss=(t,e="en")=>new Date(t).toLocaleString(e,{day:"numeric",month:"short"}),xa=(t,e="en")=>new Date(t).toLocaleString(e,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),Dn=t=>{let e;const n=It(),r=It(new Date(t));try{e=n.getTime()-r.getTime()}catch{return""}const a=e/De.milliseconds.inHour,s=Math.floor(e/De.milliseconds.inDay);if(s<1)return a<1?{path:"now"}:{path:"hours",number:Math.floor(a)};if(s<7)return{path:"days",number:s};const o=Math.floor(s/7);return o<=De.year.weeks?{path:"weeks",number:o}:{path:"years",number:Math.floor(s/De.year.days)}},It=t=>{const n=(t||new Date).toUTCString();return new Date(n)},os=(t,e,n)=>{let r;const a=It(),s=It(new Date(t));try{r=a.getTime()-s.getTime()}catch{return!1}switch(n){case"seconds":return r/De.milliseconds.inSecond<=e;case"minutes":return r/De.milliseconds.inMinute<=e;case"hours":return r/De.milliseconds.inHour<=e}return!1},cs=t=>new Promise(e=>setTimeout(e,t)),Kn={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_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_registered:"Registered",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_cta_people:"View profile",card_cta_event:"Register now",card_cta_microcourse:"Enrol now",card_cta_event_loading:"Registering...",card_cta_microcourse_loading:"Enrolling...",card_cta_event_done:"Registered",card_cta_microcourse_done:"Enrolled",carousel_pagination_previous:"Previous",carousel_pagination_next:"Next",carousel_pagination_page:"Page {number} of {total}",activitySection_notFoundError:"Post not found",communityDetails_members:"Members",communityDetails_viewAll:"View all",communityDetails_invite:"Invite colleagues",community_joinToPost:"Join community to create a post.",joinCommunityButton:"Join community",joinCommunityButton_short:"Join",joinCommunityButton_joining:"Joining...",joinCommunityButton_member:"Member",joinCommunityButton_member_aria:"Leave community",joinCommunityButton_leave:"Leave",joinCommunityButton_leaving:"Leaving...",member_apolitical:"Apolitical",member_community:"Community post",membersList:"Members",membersList_admin:"Admin",discussion_action_answer:"answer",discussion_action_comment:"comment",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_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 <`+U+">.")}return $}}function jr(h,$){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var U=Di($);if(wr[U])return;wr[U]=!0;var te="";h&&h._owner&&h._owner!==cn.current&&(te=" It was passed a child from "+w(h._owner.type)+"."),ze(h),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,te),ze(null)}}function kr(h,$){{if(typeof h!="object")return;if(sn(h))for(var U=0;U<h.length;U++){var te=h[U];un(te)&&jr(te,$)}else if(un(h))h._store&&(h._store.validated=!0);else if(h){var oe=y(h);if(typeof oe=="function"&&oe!==h.entries)for(var de=oe.call(h),se;!(se=de.next()).done;)un(se.value)&&jr(se.value,$)}}}function Ii(h){{var $=h.type;if($==null||typeof $=="string")return;var U;if(typeof $=="function")U=$.propTypes;else if(typeof $=="object"&&($.$$typeof===d||$.$$typeof===u))U=$.propTypes;else return;if(U){var te=w($);ki(U,h.props,"prop",te,h)}else if($.PropTypes!==void 0&&!ln){ln=!0;var oe=w($);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof $.getDefaultProps=="function"&&!$.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Li(h){{for(var $=Object.keys(h.props),U=0;U<$.length;U++){var te=$[U];if(te!=="children"&&te!=="key"){ze(h),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",te),ze(null);break}}h.ref!==null&&(ze(h),x("Invalid attribute `ref` supplied to `React.Fragment`."),ze(null))}}function Tr(h,$,U,te,oe,de){{var se=L(h);if(!se){var ae="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(ae+=" 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 be=Ai(oe);be?ae+=be:ae+=xr();var fe;h===null?fe="null":sn(h)?fe="array":h!==void 0&&h.$$typeof===e?(fe="<"+(w(h.type)||"Unknown")+" />",ae=" Did you accidentally export a JSX literal instead of a component?"):fe=typeof h,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",fe,ae)}var pe=Oi(h,$,U,oe,de);if(pe==null)return pe;if(se){var xe=$.children;if(xe!==void 0)if(te)if(sn(xe)){for(var He=0;He<xe.length;He++)kr(xe[He],h);Object.freeze&&Object.freeze(xe)}else x("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 kr(xe,h)}return h===r?Li(pe):Ii(pe),pe}}function Bi(h,$,U){return Tr(h,$,U,!0)}function qi(h,$,U){return Tr(h,$,U,!1)}var Ui=qi,zi=Bi;at.Fragment=r,at.jsx=Ui,at.jsxs=zi}()),at}process.env.NODE_ENV==="production"?An.exports=es():An.exports=ts();var i=An.exports;const pa=()=>{const[t,e]=v.useState(window.location.pathname),n=()=>{const r=window.location.pathname;e(r)};return v.useEffect(()=>(window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}),[]),t},Ke=(t,e)=>{const n=v.useRef(!1);v.useEffect(()=>{n.current?t():n.current=!0},e)};function ns(t,e,n){var r=this,a=v.useRef(null),s=v.useRef(0),o=v.useRef(null),c=v.useRef([]),d=v.useRef(),l=v.useRef(),f=v.useRef(t),u=v.useRef(!0);f.current=t;var m=typeof window<"u",p=!e&&e!==0&&m;if(typeof t!="function")throw new TypeError("Expected a function");e=+e||0;var g=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,y="maxWait"in n,_="debounceOnServer"in n&&!!n.debounceOnServer,x=y?Math.max(+n.maxWait||0,e):null;v.useEffect(function(){return u.current=!0,function(){u.current=!1}},[]);var S=v.useMemo(function(){var T=function(L){var F=c.current,E=d.current;return c.current=d.current=null,s.current=L,l.current=f.current.apply(E,F)},j=function(L,F){p&&cancelAnimationFrame(o.current),o.current=p?requestAnimationFrame(L):setTimeout(L,F)},z=function(L){if(!u.current)return!1;var F=L-a.current;return!a.current||F>=e||F<0||y&&L-s.current>=x},M=function(L){return o.current=null,b&&c.current?T(L):(c.current=d.current=null,l.current)},P=function L(){var F=Date.now();if(z(F))return M(F);if(u.current){var E=e-(F-a.current),w=y?Math.min(E,x-(F-s.current)):E;j(L,w)}},q=function(){if(m||_){var L=Date.now(),F=z(L);if(c.current=[].slice.call(arguments),d.current=r,a.current=L,F){if(!o.current&&u.current)return s.current=a.current,j(P,e),g?T(a.current):l.current;if(y)return j(P,e),T(a.current)}return o.current||j(P,e),l.current}};return q.cancel=function(){o.current&&(p?cancelAnimationFrame(o.current):clearTimeout(o.current)),s.current=0,c.current=a.current=d.current=o.current=null},q.isPending=function(){return!!o.current},q.flush=function(){return o.current?M(Date.now()):l.current},q},[g,y,e,x,b,p,m,_]);return S}function ha(t,e,n){var r=n===void 0?{}:n,a=r.leading,s=r.trailing;return ns(t,e,{maxWait:e,leading:a===void 0||a,trailing:s===void 0||s})}let dn;const Xe=(t=!0,e=!1,n="window")=>{if(!t)return;const[r,a]=v.useState(0)||[!1,()=>{}],s=n==="window"?[]:[n];v.useEffect(()=>(c(),window.addEventListener("resize",l),window.addEventListener("hashchange",l),window.addEventListener("hiddenSectionVisible",d),()=>{clearTimeout(dn),l.flush(),window.removeEventListener("resize",l),window.removeEventListener("hashchange",l),window.removeEventListener("hiddenSectionVisible",d)}),s);const o=()=>{if(n)return n==="window"?window.innerWidth:n.offsetWidth},c=()=>{a(o())},d=({detail:f})=>{const{id:u}=f;n==="window"||!n.closest(`#${u}`)||o()===r||c()},l=ha(()=>{o()!==r&&(e&&(clearTimeout(dn),document.body.classList.add("is-resizing"),dn=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),c())},500,{leading:!0});return r},ga=({scrollPosition:t=0,offset:e={down:0,up:10},callbacks:{scrollDown:n=()=>{},scrollUp:r=()=>{}}})=>{if(!window)return;const[a,s]=v.useState({current:0,past:0})||[!1,()=>{}],[o,c]=v.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];v.useEffect(()=>(d(),window.addEventListener("scroll",l),()=>{l.flush(),window.removeEventListener("scroll",l)}),[]);const d=()=>{const f=window.scrollY,u=a.current,m=f-u,p=m>0?"down":"up";if(s({current:f,past:u}),p==="down"){f>=t+e.down&&!o.scrollDown&&(!o.scrollUp||m>e.up)&&(n(),c({scrollUp:!1,scrollDown:!0}));return}Math.abs(m)>=e.up&&!o.scrollUp&&(r(),c({scrollUp:!0,scrollDown:!1}))},l=ha(()=>{d()},250);return a},va=(t=[],e=!0)=>{t=Array.isArray(t)?t:[t];const n=v.useRef(!1);Ke(()=>{if(window&&window.location&&window.location.hash){if(n.current)return;const r=document.getElementById(window.location.hash.replace("#",""));r&&(r.scrollIntoView(e?{behavior:"smooth"}:null),n.current=!0)}},t)},ba=(t,e)=>{Array.isArray(e)||(e=[e]);const n=ut(t);return e.forEach(({type:r,value:a})=>{Hi(n,r,a)}),n},ya=t=>{const e=[];return t.forEach(n=>{const r=parseInt(n);isNaN(r)||e.push(r)}),e.sort((n,r)=>n-r)},_a=(t,e,n)=>{let r=n.mobile;for(const a in e){const s=parseInt(String(e[a]));if(t>=s)r=n[s];else if(t<s)break}return r},rs=t=>t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),Ie="https://storage.googleapis.com/apolitical-assets/",Ze={general:"hello@apolitical.co",support:"concierge@apolitical.co","data-protection":{default:"dpo@apolitical.co",eu:"dpo.agl@apolitical.foundation"}},as="200,000+";function is(t){return t?{"--icon":`url(${Ie}icons/${t}.svg)`}:{}}const De={milliseconds:{inSecond:1e3,inMinute:6e4,inHour:36e5,inDay:864e5},year:{weeks:52,days:365}},ss=(t,e="en")=>new Date(t).toLocaleString(e,{day:"numeric",month:"short"}),xa=(t,e="en")=>new Date(t).toLocaleString(e,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),Dn=t=>{let e;const n=It(),r=It(new Date(t));try{e=n.getTime()-r.getTime()}catch{return""}const a=e/De.milliseconds.inHour,s=Math.floor(e/De.milliseconds.inDay);if(s<1)return a<1?{path:"now"}:{path:"hours",number:Math.floor(a)};if(s<7)return{path:"days",number:s};const o=Math.floor(s/7);return o<=De.year.weeks?{path:"weeks",number:o}:{path:"years",number:Math.floor(s/De.year.days)}},It=t=>{const n=(t||new Date).toUTCString();return new Date(n)},os=(t,e,n)=>{let r;const a=It(),s=It(new Date(t));try{r=a.getTime()-s.getTime()}catch{return!1}switch(n){case"seconds":return r/De.milliseconds.inSecond<=e;case"minutes":return r/De.milliseconds.inMinute<=e;case"hours":return r/De.milliseconds.inHour<=e}return!1},cs=t=>new Promise(e=>setTimeout(e,t)),Kn={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_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_registered:"Registered",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_cta_people:"View profile",card_cta_event:"Register now",card_cta_microcourse:"Enrol now",card_cta_event_loading:"Registering...",card_cta_microcourse_loading:"Enrolling...",card_cta_event_done:"Registered",card_cta_microcourse_done:"Enrolled",carousel_pagination_previous:"Previous",carousel_pagination_next:"Next",carousel_pagination_page:"Page {number} of {total}",activitySection_notFoundError:"Post not found",communityDetails_members:"Members",communityDetails_viewAll:"View all",communityDetails_invite:"Invite colleagues",community_joinToPost:"Join community to create a post.",joinCommunityButton:"Join community",joinCommunityButton_short:"Join",joinCommunityButton_joining:"Joining...",joinCommunityButton_member:"Member",joinCommunityButton_member_aria:"Leave community",joinCommunityButton_leave:"Leave",joinCommunityButton_leaving:"Leaving...",member_apolitical:"Apolitical",member_community:"Community post",membersList:"Members",membersList_admin:"Admin",discussion_action_answer:"answer",discussion_action_comment:"comment",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_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
|
|
package/index.mjs
CHANGED
|
@@ -796,8 +796,8 @@ const yt = (t = !0, e = !1, n = "window") => {
|
|
|
796
796
|
return;
|
|
797
797
|
const [r, a] = K.useState(0) || [!1, () => {
|
|
798
798
|
}];
|
|
799
|
-
se(() => (c(), window.addEventListener("resize", l), window.addEventListener("hiddenSectionVisible", u), () => {
|
|
800
|
-
clearTimeout(mn), l.flush(), window.removeEventListener("resize", l), window.removeEventListener("hiddenSectionVisible", u);
|
|
799
|
+
se(() => (c(), window.addEventListener("resize", l), window.addEventListener("hashchange", l), window.addEventListener("hiddenSectionVisible", u), () => {
|
|
800
|
+
clearTimeout(mn), l.flush(), window.removeEventListener("resize", l), window.removeEventListener("hashchange", l), window.removeEventListener("hiddenSectionVisible", u);
|
|
801
801
|
}), n === "window" ? [] : [n]);
|
|
802
802
|
const o = () => {
|
|
803
803
|
if (n)
|