1"use strict";(self.webpackChunk_rusi_rusi_gatsby_publisher=self.webpackChunk_rusi_rusi_gatsby_publisher||[]).push([[959],{6022:function(e,l,i){i.r(l),i.d(l,{ArticleTemplate:function(){return S},default:function(){return U}});var t=i(6540),a=i(6942),n=i.n(a),r=i(6011),o=i(329),d=i(2177),s=i(2423),u=i(9331),c=i(9774),m=i(9505),v=i(1189),p=i(7757),h=i(2861),_=i(5976),f=i(14),E=i(5055),g=i(4266);const b=()=>t.createElement("div",{className:"LoadingSpinner-module--spinner--c5392"},t.createElement("div",null),t.createElement("div",null),t.createElement("div",null),t.createElement("div",null));var y=i(4327),A=i(5237),w=i(3014),k=i(1664),N=i(7324),L=i(265),F=i(9349),T="Article-module--mobileOnly--41ad7",$="Article-module--section--bf2d8";const x=({article:e,url:l,breadcrumb:i})=>{var a,x,C,I,O,S,U,P,j,q,D,G,K,M,R,Q,z,B,H,J,Z,V,W,X,Y,ee,le,ie,te,ae,ne,re,oe,de,se,ue,ce,me,ve,pe,he,_e,fe,Ee,ge,be;const{getEncryptionKeyOrReason:ye,decryptArticle:Ae,parseNonEncryptedArticle:we}=(0,s.A)(),[ke,Ne]=t.useState(e.field_premium),[Le,Fe]=t.useState(!e.field_premium&&we(e)),[Te,$e]=t.useState(null);if((0,t.useEffect)(()=>{ke&&(async()=>{const{key:l,reason:i}=await ye(e);if(l){const i=await Ae(l,e);Fe(i)}else $e(i||"error");Ne(!1)})()},[ke]),!e)return null;const{body:xe,pdfUrl:Ce,taylorAndFrancisUrl:Ie,sections:Oe}=Le||{body:!1,pdfUrl:!1,taylorAndFrancisUrl:!1,sections:[]},Se=e.title||"",Ue=e.field_read_time||"",Pe=null==e||null===(a=e.field_abstract)||void 0===a?void 0:a.value,je=null==e||null===(x=e.relationships)||void 0===x||null===(C=x.field_media_image)||void 0===C||null===(I=C.relationships)||void 0===I||null===(O=I.field_media_image)||void 0===O||null===(S=O.childImageKitAsset)||void 0===S?void 0:S.fluid,qe=null!==(U=null==e||null===(P=e.relationships)||void 0===P||null===(j=P.field_media_image)||void 0===j||null===(q=j.relationships)||void 0===q||null===(D=q.field_media_image)||void 0===D||null===(G=D.relationships)||void 0===G||null===(K=G.media__image)||void 0===K||null===(M=K[0])||void 0===M||null===(R=M.field_media_image)||void 0===R?void 0:R.alt)&&void 0!==U?U:"",De=null!==(Q=null==e||null===(z=e.relationships)||void 0===z||null===(B=z.field_media_image)||void 0===B||null===(H=B.relationships)||void 0===H||null===(J=H.field_media_image)||void 0===J||null===(Z=J.relationships)||void 0===Z||null===(V=Z.media__image)||void 0===V||null===(W=V[0])||void 0===W?void 0:W.field_credit)&&void 0!==Q?Q:"",Ge=null!==(X=null==e||null===(Y=e.relationships)||void 0===Y||null===(ee=Y.field_media_image)||void 0===ee||null===(le=ee.relationships)||void 0===le||null===(ie=le.field_media_image)||void 0===ie||null===(te=ie.relationships)||void 0===te||null===(ae=te.media__image)||void 0===ae||null===(ne=ae[0])||void 0===ne?void 0:ne.field_credit_link)&&void 0!==X?X:"",Ke=null==e?void 0:e.created,Me=null===(re=e.relationships)||void 0===re?void 0:re.field_media_enquiry_,Re=null==e?void 0:e.field_outside_author,Qe=null!==(oe=null==e?void 0:e.field_profile_descriptors)&&void 0!==oe?oe:"",ze=null!==(de=null==e||null===(se=e.relationships)||void 0===se?void 0:se.field_author)&&void 0!==de?de:[],Be=null!==(ue=null==e||null===(ce=e.relationships)||void 0===ce?void 0:ce.field_journal_signposts)&&void 0!==ue?ue:[],He=null==e||null===(me=e.relationships)||void 0===me?void 0:me.field_footnotes,Je=(0,E.t)(e.relationships),Ze=e.field_premium,{field_publication_issue:Ve,field_publication_volume:We,created:Xe}=e,Ye=null===(ve=e.relationships)||void 0===ve||null===(pe=ve.field_content_type)||void 0===pe?void 0:pe.name,el=null===(he=e.relationships)||void 0===he||null===(_e=he.field_content_type)||void 0===_e||null===(fe=_e.path)||void 0===fe?void 0:fe.alias,ll=(0,d.A)({regions:null===(Ee=e.relationships)||void 0===Ee?void 0:Ee.field_region,researchGroups:null===(ge=e.relationships)||void 0===ge?void 0:ge.field_research_groups,topics:null===(be=e.relationships)||void 0===be?void 0:be.field_topics});return t.createElement(t.Fragment,null,t.createElement("article",{className:n()("Article-module--component--cb7c8")},t.createElement(F.A,{variant:"article",title:Se,authorText:Re,authors:ze,breadcrumb:i,readTime:Ue,date:Ke,url:l,contentType:Ye,contentTypeUrl:el,volume:We,issue:Ve,restrictedTo:Ze?"members only":""}),Ce&&t.createElement(m.b,{className:n()("Article-module--topDownloadLink--2ca21","hideOnPrint"),pdf:Ce}),je&&t.createElement(h.C,{fluid:je,altText:qe||Se,"aria-labelledby":"main image credit"}),t.createElement("hr",null),De&&t.createElement(t.Fragment,null,t.createElement(y.o,{"aria-label":"main image credit",className:T,text:De,link:Ge}),t.createElement("hr",{className:n()(T,"hideOnPrint")})),t.createElement("div",{className:"Article-module--contentArea--ec83d"},t.createElement("div",null,Pe&&t.createElement(g.J,null,Pe),t.createElement(c.a,{className:"Article-module--mainBody--8e321",html:xe||"",footnotes:He,fadeOut:null!==Te}),ke&&t.createElement("div",{className:"Article-module--decryptingMessageContainer--c5ac5"},t.createElement("h4",null,"Please wait while we verify your account for you to view this content."),t.createElement("div",null,t.createElement(b,null))),t.createElement(A.Z,{reason:Te,className:$}),Oe&&t.createElement(w.c,{className:"Article-module--paragraphs--488a8",data:Oe,paragraphTextFootnotes:He}),Ie&&t.createElement(v.$,{url:(0,u.Bl)(Ie)}),(null==Je?void 0:Je.length)&&t.createElement(t.Fragment,null,t.createElement("hr",{className:"Article-module--shortHr--4c130"}),t.createElement(f.f,{className:$,tagCategories:Je})),Be.length?t.createElement("section",{className:n()(T,$)},t.createElement("h5",null,"Issue details"),Be.map(e=>
1e?t.createElement(_.q,{node:e,key:e.id}):null)):null,ze.length?t.createElement(t.Fragment,null,t.createElement(k.Q,{variant:"main",people:ze,heading:Qe}),t.createElement("hr",null)):null),t.createElement("span",null),t.createElement("div",{className:"Article-module--sidebar--ee1af"},De&&t.createElement("aside",{"aria-label":"main image credit"},t.createElement(y.o,{text:De,link:Ge}),t.createElement("hr",null)),ze.length?t.createElement("aside",{"aria-label":"authors"},Qe&&t.createElement("label",null,Qe),t.createElement(k.Q,{variant:"side",people:ze}),t.createElement("hr",null)):null,Me?t.createElement("aside",null,t.createElement(r.L,{title:"Media Enquiries",node:Me})):null,Ce&&t.createElement(t.Fragment,null,t.createElement(N.z,{pdf:[Ce],citation:Re&&Se&&Ye&&Xe&&l&&`${Re}, '${Se}', ${Ye}, ${Xe}, RUSI ${l}`}),t.createElement("hr",null)),Be.length?t.createElement("aside",null,t.createElement("label",null,"Issue details"),Be.map(e=>e?t.createElement(_.q,{node:e,key:e.id}):null)):null)),t.createElement("div",{className:"Article-module--desktopOnly--4400d"},t.createElement(L.A,{className:"Article-module--socialLinks--14dc9",title:Se,variant:"block",url:l})),Me?t.createElement(r.L,{title:"Media Enquiries",node:Me,className:n()(T)}):null,Ce&&t.createElement(N.z,{className:n()(T,"Article-module--mobileReadingOptions--01696"),pdf:[Ce]}),t.createElement(p.v,{items:He})),t.createElement(o.A,{filterString:ll,currentContentTitle:Se}))};var C=i(9643),I=i(7746),O=i(5e3);const S=({data:e,pageContext:l,location:i})=>{var a,n,r,o,d,s,u,c,m,v,p,h,_,f,E,g,b,y,A,w,k,N,L,F,T,$,S,U,P,j,q;if(null==e||!e.article)return console.log(`No data found for article: ${l.path}`,e),t.createElement("div",null);const D=(null===(a=e.article)||void 0===a?void 0:a.title)||"RUSI",G=null===(n=e.article)||void 0===n||null===(r=n.field_abstract)||void 0===r?void 0:r.value,K=null===(o=l.breadcrumb)||void 0===o?void 0:o.crumbs,M=G&&(0,O.Q)(G),R=(null===(d=e.article)||void 0===d||null===(s=d.relationships)||void 0===s||null===(u=s.field_signpost_image)||void 0===u||null===(c=u.relationships)||void 0===c||null===(m=c.field_media_image)||void 0===m||null===(v=m.childImageKitAsset)||void 0===v||null===(p=v.fixed)||void 0===p||null===(h=p.images)||void 0===h||null===(_=h.fallback)||void 0===_?void 0:_.src)||void 0,Q=(null===(f=e.article)||void 0===f||null===(E=f.relationships)||void 0===E||null===(g=E.field_media_image)||void 0===g||null===(b=g.relationships)||void 0===b||null===(y=b.field_media_image)||void 0===y||null===(A=y.childImageKitAsset)||void 0===A||null===(w=A.fluid)||void 0===w||null===(k=w.images)||void 0===k||null===(N=k.fallback)||void 0===N?void 0:N.src)||void 0,z=(null===(L=e.article.relationships)||void 0===L?void 0:L.field_topics)||[],B=(null===(F=e.article.relationships)||void 0===F?void 0:F.field_interest_areas)||[],H=(null===(T=e.article.relationships)||void 0===T?void 0:T.field_research_groups)||[],J=(null===($=e.article.relationships)||void 0===$?void 0:$.field_networks)||[],Z=(null===(S=e.article.relationships)||void 0===S?void 0:S.field_region)||[],V=(null===(U=e.article.relationships)||void 0===U?void 0:U.field_related_project)||[],W=(null===(P=e.article.relationships)||void 0===P?void 0:P.field_author)||[],X={};return X.topics=z.map(e=>e.name),X.researchGroups=H.map(e=>e.name),X.region=Z.map(e=>e.name),X.networks=J.map(e=>e.name),X.interestAreas=B.map(e=>e.name),X.projects=null==V?void 0:V.map(e=>e.name),X.authors=null==W?void 0:W.map(e=>`${e.field_first_names} ${e.title}`),X.publishedDate=e.article.created,X.event="dataLayerArticlePush",X._clear=!0,(0,t.useEffect)(()=>{"undefined"!=typeof window&&X&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push(X),window._mtm=window._mtm||[],window._mtm.push({event:"dataLayerArticlePushMatomo",pagePath:i.pathname,authors:X.authors,topics:X.topics,region:X.region,researchGroups:X.researchGroups,networks:X.networks,interestAreas:X.interestAreas,projects:X.projects,publishedDate:X.publishedDate}))},[]),t.createElement(C.A,null,e.article&&t.createElement(t.Fragment,null,t.createElement(I.k,{title:D,image:R||Q,description:M,url:null===(j=e.article)||void 0===j||null===(q=j.path)||void 0===q?void 0:q.alias}),t.createElement(x,{article:e.article,url:i.href,breadcrumb:K})))};var U=S}}]); 2//# sourceMappingURL=component---src-templates-article-article-tsx-1ccda9eef9e6c1e28f63.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.