1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3396],{51568:(e,n,t)=>{t.d(n,{a:()=>r});var s=t(6029),a=t(79002),l=t.n(a);t(55729);var i=t(54297);let r=e=>{let{children:n,className:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.A,{pill:!0,variant:"light",className:"eq-pills ".concat(null!=t?t:""),children:n}),(0,s.jsx)(l(),{id:"8de0be40eac220dc",children:".eq-pills{background:#cdcdcd;font-weight:400}.eq-pills a{color:#000}"})]})}},81694:(e,n,t)=>{t.d(n,{I:()=>d});var s=t(6029),a=t(79002),l=t.n(a),i=t(4375),r=t(55729),c=t(54348),o=t(85616);let d=e=>{let{html:n,id:t="post-content",className:a=""}=e,d=(0,o.k)(),m=(0,r.useContext)(i.Nu),u=(0,r.useContext)(i.Sx),{isExternalLink:p}=(0,c.k)();return(0,r.useEffect)(()=>{m.load(),((e,n)=>{var t;let s=null==(t=document.getElementById(e))?void 0:t.getElementsByTagName("a");if(null==s)return;let a=RegExp(location.host.replace("www.",""),"i");for(let e=0;e<s.length;e++){if(s[e].href.match(/^mailto\:/)||s[e].href.match(/^javascript\:/)||s[e].href.match(/^$/))continue;let t=s[e].host;if(!a.test(t)){if(!n(s[e].href))return;s[e].setAttribute("target","_blank"),s[e].setAttribute("rel","noopener noreferrer")}}})(t,p)},[]),(0,s.jsxs)("div",{id:t,className:l().dynamic([["9f4b3b7260f326e6",[u.colors.defaultLink]]])+" "+"post-content ".concat(a),children:[(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:d(n)},className:l().dynamic([["9f4b3b7260f326e6",[u.colors.defaultLink]]])}),(0,s.jsx)(l(),{id:"9f4b3b7260f326e6",dynamic:[u.colors.defaultLink],children:".post-content.__jsx-style-dynamic-selector img{max-width:100%}.post-content.__jsx-style-dynamic-selector{line-height:1.7}.post-content.__jsx-style-dynamic-selector a{color:".concat(u.colors.defaultLink,"}")})]})}},84237:(e,n,t)=>{t.d(n,{H:()=>W});var s=t(6029),a=t(79002),l=t.n(a),i=t(4375),r=t(81278),c=t(55729),o=t(80826),d=t(94760),m=t(56965),u=t(64437),p=t(63970),x=t.n(p),b=t(13070),h=t(54348),y=t(88043),j=t(86821),f=t(46799);let g=e=>{let{size:n=16}=e;return(0,s.jsx)("svg",{width:n,height:n,viewBox:"0 0 66 45",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:(0,s.jsx)("g",{transform:"translate(-156.000000, -244.000000)",children:(0,s.jsx)("g",{transform:"translate(0.000000, 110.000000)",children:(0,s.jsx)("g",{transform:"translate(158.000000, 135.412230)",children:(0,s.jsxs)("g",{transform:"translate(0.338341, 0.000000)",children:[(0,s.jsx)("circle",{cx:"21.5",cy:"20.5",r:"3.5"}),(0,s.jsx)("circle",{cx:"30.3749295",cy:"20.5",r:"3.5"}),(0,s.jsx)("circle",{cx:"39.2498591",cy:"20.5",r:"3.5"}
1),(0,s.jsx)("path",{fill:"none",d:"M30.5032984,0.961590406 C13.8141588,0.961590406 0.235914673,9.60769469 0.235914673,20.2346214 C0.235914673,24.7517064 2.71445312,29.0980425 7.2295397,32.5541895 L7.11621917,40.0367716 C7.06155938,40.1373312 7.03988395,40.1724258 7.02480539,40.2088703 C6.98899381,40.3344011 6.9786273,40.3681459 6.97485766,40.4025657 C6.97485766,40.5334957 6.97391525,40.5665656 6.9786273,40.5996356 C7.01538129,40.7312405 7.01726611,40.7548619 7.02763262,40.7784833 C7.07569553,40.8817425 7.13695219,40.9681293 7.21234499,41.0491169 C7.33768553,41.1705984 7.42815689,41.238763 7.53464923,41.2961292 C7.63548711,41.3440469 7.68920448,41.3723925 7.75140354,41.3939892 C7.91444048,41.4371826 7.94930966,41.4466312 7.98700606,41.45473 C8.11800106,41.4817258 8.24899605,41.4999481 8.38093346,41.4999481 C8.51946774,41.4985983 8.64952033,41.4844254 8.77486086,41.4581044 C8.77737396,41.4576545 12.265939,40.3458743 19.2405559,38.1227639 C22.8235989,39.0379241 26.6073753,39.5069775 30.502356,39.5069775 C47.1886685,39.5069775 60.7640853,30.8608732 60.7640853,20.2339465 C60.7650277,9.60769469 47.1896109,0.961590406 30.5032984,0.9
161590406 Z",strokeWidth:"4",fillRule:"nonzero",transform:"translate(30.500000, 21.230769) rotate(-360.000000) translate(-30.500000, -21.230769) "})]})})})})})})};var k=t(28509),v=t(79682),N=t(22869),_=t(34134);let w=e=>{let{avatar:n}=e,t=(0,c.useContext)(i.Sx);return(0,s.jsxs)("div",{className:l().dynamic([["cb7f727251ff6a22",[t.breakpoints.md]]])+" comment-avatar",children:[(0,i.C$)(n)?(0,s.jsx)("img",{src:n,className:l().dynamic([["cb7f727251ff6a22",[t.breakpoints.md]]])+" rounded-circle w-100"}):(0,s.jsx)("div",{className:l().dynamic([["cb7f727251ff6a22",[t.breakpoints.md]]])+" bg-white rounded rounded-circle d-inline-block p-md-1 text-secondary",children:(0,s.jsx)(_.aSe,{size:"30"})}),(0,s.jsx)(l(),{id:"cb7f727251ff6a22",dynamic:[t.breakpoints.md],children:".comment-avatar.__jsx-style-dynamic-selector{width:30px}@media screen and (min-width:".concat(t.breakpoints.md,"px){.comment-avatar.__jsx-style-dynamic-selector{width:40px}}")})]})};var C=t(48969),E=t(1909),T=t(90131);let A=e=>{let{contentType:n,contentUuid:t,client:s}=e;switch(n){case j.c.NewsPost:s.query({query:b.vBS,variables:{uuid:t},fetchPolicy:"network-only"}).catch(e=>{console.error(e)});break;case j.c.EventPost:s.query({query:b.D4g,variables:{uuid:t},fetchPolicy:"network-only"}).catch(e=>{console.error(e)})}},S=e=>{var n;let{contentUuid:t,contentType:a,parentUuid:l,cancelable:r=!1,className:o="",bodyRef:d,onAddComment:m=()=>void 0,onCancel:u=()=>void 0}=e,{t:p}=(0,i.Bd)(),x=(0,c.useContext)(i.jM),h=(0,c.useContext)(i._z),y=(0,i.$X)(),{register:j,handleSubmit:f,formState:{errors:g},reset:k}=(0,E.mN)({mode:"onSubmit"}),v=(0,T.y)(a),[N,{loading:_,client:S}]=(0,b.z2D)(),I=async e=>{let{body:n}=e;try{var s,i;let e=await N({variables:{contentUuid:t,contentType:v,parentUuid:l,body:n}});(null==(i=e.data)||null==(s=i.addComment)?void 0:s.comment)!=null?(k(),await m({comment:e.data.addComment.comment,contentUuid:t,contentType:a,parentUuid:l}),null!=S&&A({contentType:a,contentUuid:t,client:S})):y(p("common.somethingWrongTryAgainLater"))}catch(e){y(e)}},P=j("body",{required:p("main.required")});return(0,s.jsxs)(C.A,{className:"comment-form ".concat(o," d-flex pb-4"),onSubmit:f(I),children:[(0,s.jsx)("div",{className:"pr-2 pr-md-3",children:(0,s.jsx)(w,{avatar:null==x||null==(n=x.profile)?void 0:n.avatar})}),(0,s.jsxs)("div",{className:"w-100",children:[(0,s.jsxs)(C.A.Group,{children:[(0,s.jsx)(C.A.Control,{...P,as:"textarea",name:"body",className:"pt-2",placeholder:p("main.yourComment"),rows:3,ref:e=>{P.ref(e),null!=d&&(d.current=e)},isInvalid:null!=g.body}),null!=g.body?(0,s.jsx)(C.A.Control.Feedback,{type:"invalid",children:g.body.message}):null]}),(0,s.jsxs)(i.$n,{variant:"solid",disabled:_,children:[_?(0,s.jsx)(i.a3,{size:"sm",color:h.primaryContrastColour,className:"mr-1"}):null,p("common.send")]}),r?(0,s.jsx)(i.$n,{variant:"link",type:"button",onClick:u,children:p("common.cancel")}):null]})]})},I=e=>{var n,t,a,r,o;let{comment:d,contentUuid:m,contentType:p,parent:h,onDelete:y=async()=>void 0}=e,{t:j,i18n:f}=(0,i.Bd)(),{timezone:g}=(0,c.useContext)(i._z),_=(0,c.useContext)(i.jM),C=(0,c.useContext)(i.Nu),E=(0,i.$X)(),[T,P]=(0,c.useState)(!1),[z,R]=(0,c.useState)(!1),B=N.c.fromMillis(d.created,{zone:g}),[U,{loading:F,client:M}]=(0,b.HIk)(),D=(0,c.useRef)(),O=()=>{null!=D.current&&x()(D.current,{time:200},()=>{var e;null==(e=D.current)||e.focus()})},q=async e=>{e.preventDefault(),P(!0),O()},L=async e=>{e.preventDefault(),R(!0)},$=async()=>{try{await U({variables:{uuid:d.uuid}}),null!=M&&A({contentType:p,contentUuid:m,client:M}),await y({comment:d})}catch(e){E(e)}};(0,c.useEffect)(()=>{T&&O()},[T]);let J=null!=(o=d.comments)?o:[],V=(null==_||null==(n=_.profile)?void 0:n.uuid)===(null==(t=d.author)?void 0:t.uuid),H=0,W=(0,k.i)(d.body).replace(/(https?:\/\/[^\s]+)/g,e=>(H++,'<a data-iframely-url href="'.concat(e,'">').concat(e,"</a>")));return(0,c.useEffect)(()=>{H>0&&C.load()}),(0,s.jsxs)("div",{className:"jsx-43093d7de5b10120 "+"comment my-4 ".concat(F?"deleting":""),children:[(0,s.jsxs)("div",{className:"jsx-43093d7de5b10120 d-flex",children:[(0,s.jsx)("div",{className:"jsx-43093d7de5b10120 pr-2 pr-md-3",children:(0,s.jsx)(w,{avatar:null==(a=d.author)?void 0:a.avatar})}),(0,s.jsxs)("div",{className:"jsx-43093d7de5b10120 w-100",children:[(0,s.jsxs)("div",{className:"jsx-43093d7de5b10120 bg-white p-2 p-md-3 rounded",children:[(0,s.jsxs)("div",{className:"jsx-43093d7de5b10120 mb-2",children:[(0,s.jsx)("address",{className:"jsx-43093d7de5b10120 d-inline-block m-0 mr-2",children:(0,s.jsx)("span",{className:"jsx-43093d7de5b10120 font-weight-bold",children:null==(r=d.author)?void 0:r.displayName})}),(0,s.jsx)("time",{title:"".concat(i._J.dateshort(d.created,f.language,{timezone:g})," ").concat(i._J.timeshort(d.created,f.language,{timezone:g})),dateTime:B.toISO(),className:"jsx-43093d7de5b10120 d-inline-block text-muted",children:i._J.dateshort(d.created,f.language,{timezone:g})})]}),(0,s.jsx)(i.uP,{className:"body",html:W})]}),(0,s.jsxs)("div",{className:"jsx-43093d7de5b10120 actions mt-2 mb-1 pl-2 pl-md-3 font-weight-bold",children:[null==h?(0,s.jsxs)("a",{href:"#",onClick:q,className:"jsx-43093d7de5b10120 mr-2",children:[(0,s.jsx)(u.Xm3,{size:"14"})," ",j("common.reply")]}):null,V?(0,s.jsx)("a",{href:"#",onClick:L,className:"jsx-43093d7de5b10120 mr-2",children:j("common.delete")}):null,F?(0,s.jsx)(i.a3,{size:"sm"}):null]}),J.length>0||T?(0,s.jsxs)("div",{className:"jsx-43093d7de5b10120 replies",children:[J.length>0?J.map(e=>(0,s.jsx)(I,{contentType:p,contentUuid:m,parent:d,onDelete:y,comment:e},e.uuid)):null,T?(0,s.jsx)(S,{contentType:p,contentUuid:m,parentUuid:d.uuid,cancelable:!0,bodyRef:D,className:"my-4",onAddComment:async()=>{P(!1)},onCancel:async()=>{P(!1)}}):null]}):null]})]}),(0,s.jsxs)(v.A,{show:z,keyboard:!0,centered:!0,onHide:()=>{R(!1)},children:[(0,s.jsx)(v.A.Header,{children:(0,s.jsx)(v.A.Title,{children:j("main.deleteComment")})}),(0,s.jsx)(v.A.Body,{children:(0,s.jsx)("p",{className:"jsx-43093d7de5b10120",children:j("main.confirmationDeleteComment")})}),(0,s.jsxs)(v.A.Footer,{children:[(0,s.jsx)(i.$n,{variant:"outline",onClick:()=>{R(!1)},children:j("common.cancel")}),(0,s.jsx)(i.$n,{variant:"solid",onClick:async()=>{R(!1),await $()},children:j("common.delete")})]})]}
1),(0,s.jsx)(l(),{id:"43093d7de5b10120",children:".comment.jsx-43093d7de5b10120{font-size:.875rem}.comment.jsx-43093d7de5b10120 address.jsx-43093d7de5b10120,.comment.jsx-43093d7de5b10120 time.jsx-43093d7de5b10120{font-size:.75rem}.body.jsx-43093d7de5b10120{white-space:pre-wrap}.deleting.jsx-43093d7de5b10120{opacity:.3;pointer-events:none}.comment.jsx-43093d7de5b10120 .iframely-embed{max-width:600px}"})]})},P=e=>{var n,t,a,r,o;let{contentUuid:d,contentType:m,inputRef:u,selectComment:p}=e,{t:x}=(0,i.Bd)(),h=(0,c.useContext)(i._z),y=(0,c.useContext)(i.jM),j=(0,i.$X)(),[k,v]=(0,c.useState)(!1),{data:N,loading:_,fetchMore:w,updateQuery:C,variables:E,refetch:T}=(0,b.Sjo)({variables:{contentUuid:d,siteUuid:h.uuid,first:10},fetchPolicy:"network-only",nextFetchPolicy:"cache-first",notifyOnNetworkStatusChange:!0}),A=null!=(r=null==N||null==(n=N.commentsForContent)?void 0:n.edges.map(e=>null==e?void 0:e.node).filter(i.se))?r:[];(0,c.useEffect)(()=>{null!=p&&T(E).catch(j)},[p]);let P=Math.ceil(A.length/10),z=null!=(o=null==N||null==(t=N.commentsForContent)?void 0:t.pageInfo.hasNextPage)&&o,R=(0,c.useCallback)(()=>{var e;return w({variables:{after:null==N||null==(e=N.commentsForContent)?void 0:e.pageInfo.endCursor}})},[null==N||null==(a=N.commentsForContent)?void 0:a.pageInfo.endCursor]),B=e=>{C(n=>({...n,commentsForContent:{...n.commentsForContent,edges:e}}))},U=async e=>{var n,t;let{comment:s}=e;v(!0),B([{node:{...s,comments:[]}},...null!=(t=null==N||null==(n=N.commentsForContent)?void 0:n.edges)?t:[]]),await T(E),v(!1)},F=async e=>{var n,t;let{comment:s}=e;B((null!=(t=null==N||null==(n=N.commentsForContent)?void 0:n.edges)?t:[]).filter(i.se).filter(e=>{let{node:n}=e;return null!=n&&n.uuid!==s.uuid}).map(e=>({...e,node:{...e.node,comments:e.node.comments.filter(e=>e.uuid!==s.uuid)}})))};return(0,s.jsxs)("div",{className:"jsx-62a782094976378b root",children:[(null==y?void 0:y.permissions.writeComments)===!0?(0,s.jsx)(S,{contentUuid:d,contentType:m,onAddComment:U,bodyRef:u,className:"mb-3"}):null,(null==y?void 0:y.permissions.readComments)===!0?(0,s.jsxs)(f.A,{next:R,dataLength:A.length,hasMore:z&&P%3!=0,loader:(0,s.jsx)("span",{className:"jsx-62a782094976378b"},0),style:{marginTop:"-15px"},children:[A.length>0?A.map(e=>(0,s.jsx)(I,{contentType:m,contentUuid:d,onDelete:F,comment:e},e.uuid)):_?null:(0,s.jsxs)("div",{className:"jsx-62a782094976378b none text-center text-muted my-5",children:[(0,s.jsx)("p",{style:{fontSize:"4rem",opacity:.3},className:"jsx-62a782094976378b",children:(0,s.jsx)(g,{size:66})}),(0,s.jsx)("p",{className:"jsx-62a782094976378b",children:x("main.noCommentsAddYoursAbove")})]}),k?null:(0,s.jsx)("div",{className:"jsx-62a782094976378b text-center py-3",children:_?(0,s.jsx)(i.a3,{size:"lg"}):z?(0,s.jsx)(i.$n,{variant:"outline",onClick:R,children:x("main.loadMore")}):null})]}):null,(0,s.jsx)(l(),{id:"62a782094976378b",children:".root.jsx-62a782094976378b .infinite-scroll-component{overflow:visible!important}"})]})};var z=t(39549),R=t.n(z);let B=e=>{let{contentUuid:n,contentType:t,contentTitle:a,categories:l}=e,[r,o]=(0,c.useState)(0),d=(0,c.useContext)(i._z),m=(0,c.useContext)(i.jM),[u]=(0,b.zIF)();return(0,c.useEffect)(()=>{var e;if(1!==r)return;let s=null!=(e=null==l?void 0:l.map(e=>e.replace(",","")).join(","))?e:null;u({variables:{input:{ME:"content_end",AI:"web",PI:d.uuid,DT:b.peX.Count,TS:new Date().getTime(),VL:1,TR:n,TT:t.toLowerCase(),TD:a,TC:s,UI:null==m?void 0:m.uuid,V:9}}}).catch(()=>{console.log("content end metric send failed")})},[r]),(0,s.jsx)(R(),{delayedCall:!0,onChange:e=>{e&&o(r+1)},children:(0,s.jsx)("div",{className:"content-end-marker",style:{height:"1px",width:"1px"}})})},U=e=>{let{uuid:n,entityType:t}=e,a=(0,c.useContext)(i.Nn),[l]=(0,b.sd1)(),[r]=(0,b.vEA)(),[o]=(0,b.J3E)();return(0,c.useEffect)(()=>{let e;if("client"===a.side){switch(t){case j.c.BuildingInfoPost:e=o;break;case j.c.NewsPost:e=l;break;case j.c.EventPost:e=r;break;default:return}e({variables:{entityViewInput:{contentUuid:n,timestamp:new Date().getTime()}}}).catch(e=>{console.log("entity view metric send failed",e)})}},[]),(0,s.jsx)(s.Fragment,{})};var F=t(46896),M=t(26438),D=t(45320),O=t(66598);D.A.use([O.Vx,O.dK]);let q=e=>{let{images:n,className:t=""}=e,a=(0,c.useContext)(i._z),[r,o]=(0,c.useState)(),[d,m]=(0,c.useState)(0);if(0===n.length)return null;let u=(0,c.createRef)(),p=(0,c.createRef)(),x=(0,c.createRef)();return(0,c.useEffect)(()=>()=>{null!=r&&r.destroy(!0,!0)},[]),(0,c.useEffect)(()=>{(()=>{var e,n;let t=null!=r?r:new D.A(u.current,{simulateTouch:!1,watchSlidesProgress:!0,effect:"fade",navigation:{nextEl:null!=(e=x.current)?e:void 0,prevEl:null!=(n=p.current)?n:void 0},on:{slideChange:()=>{m(t.activeIndex)}}});
1return null!=r?t.update():o(t)})()},[n]),(0,s.jsxs)("div",{className:l().dynamic([["e640ab501a24d8a0",[a.primaryColour]]])+" "+"text-dark image-swiper ".concat(t),children:[(0,s.jsx)("div",{ref:u,className:l().dynamic([["e640ab501a24d8a0",[a.primaryColour]]])+" swiper",children:(0,s.jsx)("div",{className:l().dynamic([["e640ab501a24d8a0",[a.primaryColour]]])+" swiper-wrapper",children:n.map((e,n)=>(0,s.jsx)("div",{className:l().dynamic([["e640ab501a24d8a0",[a.primaryColour]]])+" swiper-slide",children:(0,s.jsx)("img",{src:e,className:l().dynamic([["e640ab501a24d8a0",[a.primaryColour]]])+" rounded"})},n))})}),(0,s.jsx)("a",{ref:p,className:l().dynamic([["e640ab501a24d8a0",[a.primaryColour]]])+" prev rounded rounded-circle",children:(0,s.jsx)(M.B13,{style:{verticalAlign:"top",marginBottom:0}})}),(0,s.jsx)("a",{ref:x,className:l().dynamic([["e640ab501a24d8a0",[a.primaryColour]]])+" next rounded rounded-circle",children:(0,s.jsx)(M.YZI,{style:{verticalAlign:"top",marginBottom:0}})}),n.length<2?null:(0,s.jsx)("div",{className:l().dynamic([["e640ab501a24d8a0",[a.primaryColour]]])+" pagination mt-2 d-flex justify-content-center",children:n.map((e,n)=>(0,s.jsx)("a",{onClick:()=>null==r?void 0:r.slideTo(n),className:l().dynamic([["e640ab501a24d8a0",[a.primaryColour]]])+" px-1",children:(0,s.jsx)("span",{className:l().dynamic([["e640ab501a24d8a0",[a.primaryColour]]])+" "+"page rounded rounded-circle ".concat(n===d?"active":""),children:" "})},n))}),(0,s.jsx)(l(),{id:"e640ab501a24d8a0",dynamic:[a.primaryColour],children:".image-swiper.__jsx-style-dynamic-selector{position:relative}img.__jsx-style-dynamic-selector{width:100%}.pagination.__jsx-style-dynamic-selector a.__jsx-style-dynamic-selector{cursor:pointer;display:inline-block}.pagination.__jsx-style-dynamic-selector .page.__jsx-style-dynamic-selector{display:inline-block;width:.875rem;height:.875rem;background:".concat(a.primaryColour,";opacity:.5}.pagination.__jsx-style-dynamic-selector .page.active.__jsx-style-dynamic-selector{opacity:1}.prev.__jsx-style-dynamic-selector,.next.__jsx-style-dynamic-selector{color:white;font-size:2rem;position:absolute;top:50%;margin-top:-1rem;width:2rem;height:2rem;z-index:1;background:rgba(0,0,0,.1)}.prev.__jsx-style-dynamic-selector:hover,.prev.__jsx-style-dynamic-selector:focus,.next.__jsx-style-dynamic-selector:hover,.next.__jsx-style-dynamic-selector:focus{outline:none;box-shadow:0 4px 15px rgba(0,0,0,.6);color:white}.swiper-button-disabled.__jsx-style-dynamic-selector,.swiper-button-disabled.__jsx-style-dynamic-selector:hover,.swiper-button-disabled.__jsx-style-dynamic-selector:focus{display:none}.prev.__jsx-style-dynamic-selector{left:.3rem}.next.__jsx-style-dynamic-selector{right:.3rem}")})]})};var L=t(51568),$=t(99922),J=t(35561),V=t(8148);let H=e=>{let{excludeUuid:n}=e,{t}=(0,i.Bd)(),{loading:a,data:l}=(0,$.G)(4);if(a)return(0,s.jsx)("div",{className:"text-center py-3",children:(0,s.jsx)(i.a3,{size:"lg"})});if(null==l)return null;let r=l.trendingContentFeed.edges.flatMap(e=>{if("NewsEdge"!==e.__typename&&"EventOccurrenceEdge"!==e.__typename||null==e.node||e.node.uuid===n)return[];switch(e.node.__typename){case"NewsPost":return[(0,s.jsx)(d.A,{md:"4",children:(0,s.jsx)(V.C,{newsPost:e.node})},e.node.uuid)];case"Occurrence":return[(0,s.jsx)(d.A,{md:"4",children:(0,s.jsx)(J.n,{occurrence:e.node})},e.node.uuid)];default:return[]}}).slice(0,3);return 0===r.length?null:(0,s.jsxs)("div",{className:"trending-yo pt-3 pb-5",children:[(0,s.jsx)("h3",{className:"h5 text-center",children:t("main.hereIsWhatIsTrending")}),(0,s.jsx)(m.A,{className:"pt-3",children:(0,s.jsx)(o.A,{children:r})})]})},W=e=>{let n,{uuid:t,contentType:a,author:p,publishDate:f,title:g,images:k,headerRight:v,children:N,actions:_,commentsEnabled:w,enableEntityViewMetric:C=!0,pageMetricName:E,categories:T,commentRef:A,relatedInformation:S,downloads:I}=e,{t:z,i18n:R}=(0,i.Bd)(),{timezone:M}=(0,c.useContext)(i._z),D=(0,c.useRef)(null),O=(0,c.useContext)(i.jM),$=null!=A?A:(0,c.useRef)(void 0),[J,V]=(0,c.useState)(!1),[W,X]=(0,c.useState)(0),G=(0,c.useContext)(i.Sx),Y=(0,r.useRouter)(),Z=(0,y.o)(S)||(0,y.o)(I),{isExternalLink:K}
1=(0,h.k)(),Q="string"==typeof Y.query.comment?Y.query.comment:void 0;switch(a){case j.c.BuildingInfoPost:n=b.iUl.Info;break;case j.c.EventPost:n=b.iUl.Event;break;case j.c.NewsPost:n=b.iUl.News}return(0,c.useEffect)(()=>{var e,n,t;X(null!=(t=null==(n=D.current)||null==(e=n.getBoundingClientRect())?void 0:e.top)?t:120+document.documentElement.scrollTop),V(!0)},[]),(0,c.useEffect)(()=>{null!=Q&&null!=$.current&&x()($.current)},[Q]),(0,s.jsxs)("div",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" content-page d-flex flex-column",children:[(0,s.jsx)(i.sT,{children:g}),(0,s.jsxs)(m.A,{fluid:"lg",as:"article",className:"py-4 px-3",children:[(0,s.jsxs)("header",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]]),children:[(0,s.jsx)("h1",{style:{fontSize:"1.75rem"},className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" pt-2 font-weight-bold",children:g}),(0,s.jsxs)("div",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" d-flex flex-wrap pt-2 pb-4",children:[(0,s.jsxs)("div",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]]),children:[(null==p?void 0:p.avatar)!=null?(0,s.jsx)("img",{src:p.avatar,style:{width:"40px"},className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" rounded-circle mr-2 mr-lg-3"}):null,(0,s.jsxs)("small",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" text-muted",children:[(null==p?void 0:p.name)!=null?(0,s.jsxs)("span",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" d-inline mr-1",children:[p.name,","]}):null,null!=f?(0,s.jsx)("time",{title:"".concat(i._J.dateshort(f.valueOf(),R.language,{timezone:M})," ").concat(i._J.timeshort(f.valueOf(),R.language,{timezone:M})),dateTime:f.toISO(),className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]]),children:i._J.dateshort(f.valueOf(),R.language,{timezone:M})}):null]})]}),null!=v?(0,s.jsx)("div",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" ml-auto d-flex align-items-center",children:v}):null]}),null!=T&&T.length>0?(0,s.jsx)("div",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" pb-4",children:T.map(e=>(0,s.jsx)(L.a,{className:"mr-1 mb-1",children:e},e))}):null,(0,s.jsx)(q,{images:k})]}),(0,s.jsx)("section",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]]),children:N}),Z?(0,s.jsxs)(o.A,{children:[(0,y.o)(S)?(0,s.jsxs)(d.A,{md:"6",className:"related-info-section d-flex pt-3 pb-4",children:[(0,s.jsx)("div",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" text-muted",children:(0,s.jsx)(u.RhI,{size:"22"})}),(0,s.jsxs)("div",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" pl-1",children:[(0,s.jsx)("div",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" pb-2 font-weight-bold",children:z("main.relatedInfo")}),S.map((e,n)=>(0,s.jsx)("div",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" pb-2",children:(0,s.jsx)("a",{href:e.url,target:K(e.url)?"_blank":void 0,rel:"noopener noreferrer",className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]]),children:e.title})},n))]})]}):null,(0,y.o)(I)?(0,s.jsxs)(d.A,{md:"6",className:"downloads-section d-flex pt-3 pb-4",children:[(0,s.jsx)("div",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" text-muted",children:(0,s.jsx)(u.U01,{size:"18",className:"mt-n1"})}),(0,s.jsxs)("div",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" pl-2",children:[(0,s.jsx)("div",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" pb-2 font-weight-bold",children:z("main.downloads")}),I.map((e,n)=>(0,s.jsx)("div",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" pb-2",children:(0,s.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]]),children:(0,i.C$)(e.description)?e.de
1scription:z("main.file")})},n))]})]}):null]}):null,null!=_?(0,s.jsx)("aside",{ref:D,className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" actions-container",children:(0,s.jsx)("div",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" actions",children:_})}):null,J?(0,s.jsx)(B,{contentUuid:t,contentType:n,contentTitle:g,categories:T}):null]}),C?(0,s.jsx)(U,{entityType:a,uuid:t}):null,(0,s.jsx)(F.m,{pageViewType:n,pageTitle:g,categories:T,metric:E,crossReference:t}),w?(0,s.jsxs)("div",{style:{flexGrow:1},className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" comments-bg p-3",children:[(null==O?void 0:O.permissions.readComments)===!0?(0,s.jsxs)("div",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" pb-3",children:[(0,s.jsx)("h3",{className:l().dynamic([["354121c6748e5d2c",[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl]]])+" h5 text-center",children:z("main.comments")}),(0,s.jsx)(m.A,{fluid:"lg",className:"comments p-0 pt-3",children:(0,s.jsx)(P,{contentUuid:t,contentType:a,inputRef:$,selectComment:Q})})]}):null,(0,s.jsx)(H,{excludeUuid:t})]}):null,(0,s.jsx)(l(),{id:"354121c6748e5d2c",dynamic:[G.breakpoints.md,128,64,64,W,G.breakpoints.lg,G.breakpoints.md-64+30,G.breakpoints.xl],children:".content-page.__jsx-style-dynamic-selector article{position:relative}.actions-container.__jsx-style-dynamic-selector{position:sticky;bottom:0;z-index:1}.actions.__jsx-style-dynamic-selector{display:flex;align-items:center;justify-content:flex-end;padding:1rem}.comments-bg.__jsx-style-dynamic-selector{background-color:#f9f9f9}@media screen and (min-width:".concat(G.breakpoints.md,"px){.content-page.__jsx-style-dynamic-selector article,.content-page.__jsx-style-dynamic-selector .comments{max-width:calc(100% - ").concat(128,"px);margin:0 auto}.actions-container.__jsx-style-dynamic-selector{position:absolute;bottom:auto;top:0;left:0;height:100%;width:").concat(64,"px;margin-left:-").concat(64,"px}.actions.__jsx-style-dynamic-selector{flex-direction:column;position:sticky;top:").concat(W,"px;padding-top:2rem}}@media screen and (min-width:").concat(G.breakpoints.lg,"px){.content-page.__jsx-style-dynamic-selector article,.content-page.__jsx-style-dynamic-selector .comments{max-width:").concat(G.breakpoints.md-64+30,"px;margin:0 auto}}@media screen and (min-width:").concat(G.breakpoints.xl,"px){.actions-container.__jsx-style-dynamic-selector{margin-left:-6rem}}")})]})}},86821:(e,n,t)=>{t.d(n,{c:()=>s});var s=function(e){return e.NewsPost="NEWS_POST",e.EventPost="EVENT_POST",e.BuildingInfoPost="BUILDING_INFO_POST",e}({})},88043:(e,n,t)=>{t.d(n,{o:()=>s});let s=e=>null!=e&&e.length>0},90131:(e,n,t)=>{t.d(n,{y:()=>l});var s=t(13070),a=t(86821);let l=e=>{switch(e){case a.c.EventPost:return s.cME.EventPost;case a.c.NewsPost:return s.cME.NewsPost;default:throw Error("Unknown content type")}}}}]); 2//# sourceMappingURL=3396-bda80ca7dcc4ac56.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.