1"use strict";(self.webpackChunkmc_frontend=self.webpackChunkmc_frontend||[]).push([[7079,3039],{37079:(t,s,e)=>{e.r(s),e.d(s,{default:()=>y});var o=e(9950),i=e(11546),a=(e(30373),e(16755)),r=e(2873),n=e(78020),l=e(62244),p=e(16579),c=e(55757),h=e(28321),d=e(93047),m=e(3854),u=e(18216),x=e(13803),g=e(74715),v=e(60899),A=e(2235),j=e(19808),w=e(44414);class _ extends o.Component{constructor(t){super(t),this.props.setPageDetails("BBMPWardHB",!0,!0,!1),this.props.setReturnURL(window.location.pathname),this.clickedCTA=this.clickedCTA.bind(this),this.renderMap=this.renderMap.bind(this),this.renderButtons=this.renderButtons.bind(this)}componentDidMount(){window.scrollTo(0,0);var t=this.props.singleArticle.articleDetails;(void 0==t||t.id!=this.props.startArticleID)&&this.props.getAnArticle(this.props.startArticleID,null,null,this.props.count)}componentDidUpdate(t){this.props.userState.isLoggedIn!==t.userState.isLoggedIn&&this.props.getAnArticle(this.props.startArticleID,null,null,this.props.count)}clickedCTA(t,s){this.props.updateUserActivities(window.location.href,"Clicked on "+s+" on a page from article"),this.props.history.push(t)}showTopics(){this.setState({showTopics:!0})}renderButtons(t){const{t:s}=this.props,{classes:e}=this.props;t.shift();var o=4,i="unset";return t.length<=4&&(o=6,i=320),(0,w.jsx)(v.Ay,{container:!0,className:e.root,style:{maxWidth:i},spacing:2,children:t.map(((t,i)=>(0,w.jsx)(v.Ay,{item:!0,xs:6,sm:o,children:(0,w.jsxs)(A.A,{elevation:0,className:e.paper+" hover"+t.color,onClick:s=>this.clickedCTA(t.link,"IconButton "+t.label,s),children:[(0,w.jsx)("img",{src:t.icon}),(0,w.jsx)("p",{className:"inlinelink"+t.color,children:s(t.label)})]})},i)))})}renderMap(t,s){return t?(0,w.jsxs)("div",{children:[(0,w.jsx)(m.default,{center:{lat:this.props.userState.mapping.localityLat,lng:this.props.userState.mapping.localityLng},params:this.props.userState.mapping,jsonOverlay:this.props.userState.userDetails.ward.bounds,dontShowMarker:!0,markerDraggable:!1}),(0,w.jsx)(c.A,{})]}):null==this.props.userState.territoryTree.wardID||s?void 0:(0,w.jsx)("div",{className:"location-details__teaser",children:(0,w.jsx)("div",{className:"button--center",children:(0,w.jsx)(d.N_,{to:"/signin",children:(0,w.jsx)(u.A,{color:"primary",className:this.props.classes.button2,children:this.props.t("Signin to see an interactive ward map here")})})})})}render(){const{classes:t}=this.props,{t:s}=this.props;var e=!1;void 0!=localStorage.getItem("token")&&null!=localStorage.getItem("token")&&(e=!0);var o=this.props.singleArticle.articleDetails,i=this.props.singleArticle;if(void 0==o)return(0,w.jsx)(l.A,{});if(o.id!=this.props.startArticleID)return(0,w.jsx)(l.A,{});{var r=void 0;o.article_featured_img&&(r=o.article_featured_img);var h=null;null!=this.props.singleArticle.articleDetails.json_field&&""!=this.props.singleArticle.articleDetails.json_field&&(h=JSON.parse(this.props.singleArticle.articleDetails.json_field));var d=null;null==this.props.userState.territoryTree.acID?d="You have not set your territory. Please do so first!":233!=this.props.userState.territoryTree.distID?d="Your city is not set to Bangalore. This handbook is primarily meant for Bangalore residents.":null==this.props.userState.territoryTree.wardID&&(d="Your city is set to Bangalore, but your ward is not set. Please do so first!");var m=!1;void 0!=this.props.userState.userDetails&&void 0!=this.props.userState.userDetails.ward&&void 0!=this.props.userState.userDetails.ward.bounds&&(m=!0);let t="anypage_sm";return this.props.siteState.envParams.layoutCols>1&&(t="anypage_md"),r&&(t="anypage_md_image"),(0,w.jsxs)(j.A,{maxWidth:"md",disableGutters:!0,children:[this.props.siteState.envParams.layoutCols>1&&(0,w.jsx)("div",{className:"marginTop8"}),r&&(0,w.jsx)("div",{className:"article_wide_featured",children:(0,w.jsx)("img",{alt:o.article_title,className:"article_wide_featured__image",src:r,onClick:t=>this.setState({isLightboxOpen:!0})})}),(0,w.jsxs)("div",{className:t,children:[(0,w.jsx)(n.A,{title:o.article_title,description:o.article_description,imageURL:r,imageWidth:800,imageHeight:420}),(0,w.jsx)("h1",{className:"article__title1",children:o.article_title}),(0,w.jsx)("h4",{className:"article__subtitle1",children:o.article_description}),(0,w.jsx)("div",{className:"article__body",children:(0,w.jsx)(a.VK,{content:o.article_body})}),null!=h&&""!=h&&"icon-links"==h[0].embedType&&this.renderButtons(h),(0,w.jsx)(c.A,{}),(0,w.jsx)("div",{className:"article__body",children:(0,w.jsx)("h2",{children:"Your ward details"})}),null!=d&&(0,w.jsx)("div",{className:"notice-warning",children:d}),this.renderMap(m,e)]}),(0,w.jsx)("div",{className:"content-actions__border",children:(0,w.jsx)(p.default,{originID:8,originType:"campaign",id:o.id,transactions:i.transactions,contentType:"articles",pathname:window.location.pathname,thisIsMyPost:!0,embedControl:{show:!1}})}),(0,w.jsx)(c.A,{}),null!=o.linked_org&&void 0!=this.props.politicalParties.embedPoliticalParty&&(0,w.jsx)(g.A,{data:this.props.politicalParties.embedPoliticalParty,showCardActions:!0}),(0,w.jsx)(c.A,{count:2})]})}}}const y=(0,h.CI)()((0,i.Ng)((t=>({singleArticle:t.singleArticle,userState:t.userState,siteState:t.siteState,politicalParties:t.politicalParties})),{setPageDetails:r.urn,setReturnURL:r.qHp,getAnArticle:r.GNv,updateUserActivities:r.axV})((0,x.A)((t=>({root:{padding:16,flexGrow:1,width:"100%",margin:"auto"},paper:{padding:t.spacing(2),textAlign:"center",color:t.palette.text.secondary,cursor:"pointer",backgroundColor:"unset"},button:{margin:0,marginBottom:"32px"},button2:{margin:t.spacing(1)},input:{display:"none"}})))(_)))},74715:(t,s,e)=>{e.d(s,{A:()=>d});e(9950);
1var o=e(93047),i=e(11546),a=e(28321),r=e(2873),n=e(10540),l=e(63371),p=e(48886),c=e(2405),h=e(44414);const d=(0,i.Ng)((t=>({siteState:t.siteState,networkNode:t.networkNode})),{})((function(t){var s,e;const{t:i}=(0,a.Bd)(),d=t.data;let m=d.access_level,u="RES"===m,x="PRO"===m,g="PRI"===m,v=(t.prefix?t.prefix:"")+d.title;var A=d.image||d.party_img||"/img/nn_org.svg",j="X";t.sentimentShort?j=t.sentimentShort:(null===(s=t.data.sentiments)||void 0===s?void 0:s.sentiment_count)>0&&(j=t.data.sentiments.sentiment);var w=0;if(null!=d.number_of_seats_held)w=d.number_of_seats_held;var _=0;if(null!=d.total_number_of_seats)_=d.total_number_of_seats;if(0===d.rating)var y=null;else y=d.rating;var b=t.siteState.envParams.validExtEmbed,S=d.slug||d.org_slug,C=(0,r.eqe)("organizations",d.id,d.type_of_org,S,g);if(d.type_of_org>2)var f="Rating";else f="PeopleScore";var N=C+"#feed",D=t.networkNode.siteURL+C,k=C;t.proDashConfig&&(k=t.proDashConfig.ctaURL);let L="channel_card__card ";b&&(L="channel_card__card2 ");let M=!0;return(t.hideCardActions||b||t.showChannelActions)&&(M=!1),(0,h.jsx)("div",{className:"channel_card__container",children:(0,h.jsxs)("div",{className:L,children:[(0,h.jsxs)(o.N_,{"aria-label":"Open org channel",className:"",to:b?{pathname:D}:k,target:b?"_blank":"",children:[(0,h.jsx)(c.A,{showExpanding:t.showChannelActions,isSyndicated:t.isSyndicated,isRestricted:u,isProtected:x,isPrivate:g}),t.showChannelActions&&(0,h.jsxs)("div",{className:"widget__title channel_card__about",children:[i("About this channel")," "]}),(0,h.jsx)("div",{className:"box",children:(0,h.jsxs)("div",{className:"flex",children:[(0,h.jsx)("img",{alt:v,className:"channel_card__image",src:A,onError:t=>{t.target.src="/img/nn_org.svg"}}),(0,h.jsxs)("div",{children:[(0,h.jsx)("p",{className:"channel_card__title",children:v}),(0,h.jsx)("p",{className:"org_info__designation",children:d.org_type}),(0,h.jsx)("p",{className:"org_info__territory",children:null===(e=d.location)||void 0===e?void 0:e.location_name})]})]})}),(0,h.jsxs)("div",{className:"channel_card__count-container",children:[(0,h.jsx)(n.A,{className:"PublicPersonaListCardComponent__score",value:y}),(0,h.jsx)("span",{className:"PublicPersonaListCardComponent__rating",children:i(f)}),1===d.type_of_org&&(0,h.jsxs)("div",{children:[(0,h.jsxs)("span",{className:"PublicPersonaListCardComponent__seats",children:[" ",w," / ",_," "]}),(0,h.jsx)("span",{className:"PublicPersonaListCardComponent__rating",children:i("Seats")})]}),(0,h.jsx)("span",{className:"channel_card__senty "+j})]})]}),M&&(0,h.jsx)(l.A,{showCreateButton:!0,pathname:C,contentURL:C,commentURL:N,commentCount:0,ctaText:i("Open channel"),proDashConfig:t.proDashConfig}),t.showChannelActions&&(0,h.jsx)(p.A,{originType:"organizations",originDetails:d,id:d.id,showOpenChannel:!0,originURL:C,postType:t.postType})]})})}))},3854:(t,s,e)=>{e.r(s),e.d(s,{default:()=>h});var o=e(9950),i=e(2527),a=e.n(i),r=e(16673),n=e(28321),l=e(71646),p=e(44414);class c extends o.Component{constructor(t){super(t),this.setMarkerLocation=this.setMarkerLocation.bind(this),this.showOverlay=this.showOverlay.bind(this),this.state={marker:{lat:-1,lng:-1},isPrompt1Displayed:!1,jsonOverlay:null,mmi:!1}}componentDidMount(){"MMI"==this.props.params.generalMapTileProvider?window.MapmyIndia?this.createMapElements():(0,l.A)("mmiscript","https://apis.mapmyindia.com/advancedmaps/v1/5rmd8w1oylmxprgav3lz775ulfdzpedu/map_load?v=1.3",(()=>{window.MapmyIndia?this.createMapElements():console.error("Window does not have MapmyIndia")})):this.createMapElements()}componentDidUpdate(t){this.props.jsonOverlay!==t.jsonOverlay&&(this.map.setView(this.props.center),this.showOverlay(this.props.jsonOverlay)),this.props.mapUpdateCount!==t.mapUpdateCount&&(this.props.resetZoom?this.map.setView(this.props.center,this.props.params.startLocalityZoom):this.map.setView(this.props.center),this.marker.setLatLng(this.props.center))}setMarkerLocation(){this.props.setMarkerLocation(this.marker.getLatLng())}showOverlay(t){null!=this.state.jsonOverlay&&this.state.jsonOverlay.remove(),this.geoJSON=a().geoJSON(t,{style:{weight:5,color:"#F77E71",fillColor:"#F77E71",fillOpacity:.5}}).addTo(this.map);try{this.map.fitBounds(this.geoJSON.getBounds())}catch{console.log("MMI screwed up again."),console.log(this.geoJSON.getBounds())}this.setState({jsonOverlay:this.geoJSON})}createMapElements(){try{const s=[this.props.center.lat,this.props.center.lng],e=[this.props.center.lat,this.props.center.lng];if("MMI"==this.props.params.generalMapTileProvider)this.map=new window.MapmyIndia.Map("map",{center:s,zoomControl:!0,hybrid:!0,search:!1,location:!1});else if("MB"==this.props.params.generalMapTileProvider){this.map=a().map("map",{center:s,zoom:this.props.params.startLocalityZoom,minZoom:this.props.params.minLocalityMapZoom,maxZoom:this.props.params.maxLocalityMapZoom,layers:[a().tileLayer(this.props.params.generalMapTileServer,{attribution:"\xa9 <a href='https://www.mapbox.com/about/maps/'>Mapbox</a> \xa9 <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> <strong><a href='https://www.mapbox.com/map-feedback/' target='_blank'>Improve this map</a></strong>",maxZoom:this.props.params.maxLocalityMapZoom,maxNativeZoom:18,tileSize:512,zoomOffset:-1})]});var t=a().control({position:"bottomleft"});t.onAdd=function(t){var s=a().DomUtil.create("div","myclass");return s.innerHTML="<img src='/img/mapbox_logo.svg'/>",s},t.addTo(this.map)}else this.map=a().map("map",{center:s,zoom:this.props.params.startLocalityZoom,minZoom:this.props.params.minLocalityMapZoom,maxZoom:this.props.params.maxLocalityMapZoom,layers:[a().tileLayer(this.props.params.generalMapTileServer,{attribution:'© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'})]});this.props.dontShowMarker||(this.marker=a().marker(e,{draggable:this.props.markerDraggable}).addTo(this.map),this.marker.on("dragend",this.setMarkerLocation)),void 0!=this.props.jsonOverlay&&this.showOverlay(this.props.jsonOverlay)}catch(s){console.log(s)}}render(){const{t:t}=this.props;return void 0!=localStorage.getItem("token")&&null!=localStorage.getItem("token")&&!0,(0,p.jsx)("div",{children:(0,p.jsx)("div",{id:"map",className:"visualization leaflet-map"})})}}
1const h=(0,n.CI)()((0,r.y)(c))},48886:(t,s,e)=>{e.d(s,{A:()=>O});var o=e(9950),i=e(93047),a=e(11546),r=e(22076),n=e(18216),l=e(28321),p=e(53588),c=e(99127),h=e(84142),d=e(68367),m=e(74557),u=e(50709),x=e(69372),g=e(67786),v=e(49952),A=e(65767),j=e(13720),w=e(9493),_=e(37375),y=e(76271),b=e(59075),S=e(53777),C=e(34598),f=e(19223),N=e(44414);const D=t=>(0,N.jsx)(c.A,{...t,loader:"ContributeWidget",loading:"NONE"}),k=t=>(0,N.jsx)(c.A,{...t,loader:"ChatWidget",loading:"MINI"}),L={textTransform:"unset",marginRight:1},M={Default:x.A,Home:g.A,Feed:v.A,Chat:A.A,Shop:j.A,Event:w.A,Music:_.A,Video:y.A,Personas:b.A,About:S.A,Contact:C.A,Search:f.A};class P extends o.Component{constructor(t){super(t),this.closeAlert=this.closeAlert.bind(this),this.state={follow:null,unauthorized:!1,tabSelected:this.props.pathname}}closeAlert(){this.setState({unauthorized:!1})}componentDidMount(){null!==this.props.following&&this.setState({follow:this.props.following})}componentDidUpdate(t){this.props.following!==t.following&&null!==this.props.following&&this.setState({follow:this.props.following}),this.props.pathname!==t.pathname&&this.setState({tabSelected:this.props.pathname})}createButton(t,s,e){const{t:o}=this.props;let a="primary";return this.props.pathname===s&&(a="secondary"),(0,N.jsx)(i.N_,{"aria-label":t,to:s,children:(0,N.jsx)(n.A,{size:"large",color:a,sx:L,startIcon:e,children:o(t)})})}createTab(t,s,e,o,a,r){const{t:n}=this.props;let l={minWidth:"unset",minHeight:"unset",textTransform:"unset",padding:1,color:"primary.main"};return r&&(l={minWidth:"unset",minHeight:"unset",padding:1,color:"primary.main"}),(0,N.jsx)(h.A,{value:e,icon:o,iconPosition:"start",label:n(s),sx:l,to:e,component:i.N_,disabled:a},t)}render(){const{t:t}=this.props;const s={showToUser:!1,default:!1,disableChange:!0};return this.props.showScrollTabs?(0,N.jsxs)(N.Fragment,{children:[this.props.showContribute&&(0,N.jsx)(D,{variant2:"channel",source:"CHANNEL",showContribute:!0,originType:this.props.originType,originDetails:this.props.originDetails,widgetControl:this.props.widgetControl,proChannelUnlockURL:this.props.proChannelUnlockURL}),(0,N.jsxs)("div",{className:"channel__actions2",children:[(0,N.jsx)("div",{className:"row",style:{width:"calc(100% - 44px)"},children:(0,N.jsxs)(d.A,{value:this.state.tabSelected,onChange:(t,s)=>this.setState({tabSelected:s}),indicatorColor:"secondary",textColor:"secondary",variant:"scrollable",scrollButtons:"auto",allowScrollButtonsMobile:!0,sx:{minHeight:"unset"},children:[this.props.showSubscribe&&this.createTab("Subscribe","Subscribe",this.props.subscribeURL,(0,N.jsx)(u.A,{}),!1,!0),this.props.channelMenu.map(((t,s)=>{var e=M[t.icon];return e||(e=M.Default),this.createTab(s,t.text,t.url,(0,N.jsx)(e,{}))}))]})}),this.props.showOverflow&&(0,N.jsx)(p.A,{id:this.props.id,contentType:this.props.contentType,pathname:this.props.pathname,embedControl:{show:this.props.showEmbed,noActions:s},showReportPost:!0}),this.state.unauthorized&&(0,N.jsx)(r.A,{close:this.closeAlert})]})]}):(0,N.jsxs)("div",{className:"channel__actions",children:[this.props.showOpenChannel?this.props.showOverflow?(0,N.jsx)(i.N_,{"aria-label":"Open channel",to:this.props.originURL,children:(0,N.jsx)(n.A,{size:"small",color:"primary",sx:{p:1},endIcon:(0,N.jsx)(m.A,{}),children:t("Open channel")})}):(0,N.jsx)(i.N_,{"aria-label":"Open channel",to:this.props.originURL,style:{marginLeft:"auto"},children:(0,N.jsx)(n.A,{size:"small",color:"primary",sx:{p:1},endIcon:(0,N.jsx)(m.A,{}),children:t("Open channel")})}):"",this.props.showDM&&(0,N.jsx)(k,{chatType:"dm",withUser:this.props.showDM}),this.props.showHomeButton&&this.createButton("Home",this.props.originURL,(0,N.jsx)(g.A,{})),this.props.detailedURL&&this.createButton("About",this.props.detailedURL,(0,N.jsx)(S.A,{})),this.props.showOverflow&&(0,N.jsx)(p.A,{id:this.props.id,contentType:this.props.contentType,pathname:this.props.pathname,embedControl:{show:this.props.showEmbed,noActions:s},showReportPost:!0})]})}}const O=(0,l.CI)()((0,a.Ng)((t=>({userState:t.userState,networkNode:t.networkNode})),{})(P))},2405:(t,s,e)=>{e.d(s,{A:()=>u});var o=e(9950),i=e(92643),a=e(16589),r=e(71508),n=e(18527),l=e(9032),p=e(94947),c=e(71370),h=e(8981),d=e(44414);const m={float:"right",margin:.25,color:"rgba(0, 0, 0, 0.44)"};function u(t){const s=(0,o.useContext)(h.d);let e=s.resChannel||t.isRestricted,u=s.protectedChannel||t.isProtected,x=s.privateChannel||t.isPrivate,g=s.moderatedChannel||t.isModerated;return t.showExpanding?(0,d.jsx)("div",{className:"pill_expand__container",children:(0,d.jsxs)("div",{className:"pill_expand",children:[e&&(0,d.jsx)(i.A,{icon:"Restricted",text:"Restricted channel"}),u&&(0,d.jsx)(i.A,{icon:"Protected",text:"Protected channel"}),x&&(0,d.jsx)(i.A,{icon:"Private",text:"Private channel"}),g&&(0,d.jsx)(i.A,{icon:"Moderated",text:"Moderated channel"}),t.isSyndicated?(0,d.jsx)(i.A,{icon:"Syndicated",text:"Syndicated channel"}):t.syndicatedChannel&&(0,d.jsx)(i.A,{link:"https://"+t.syndicatedChannel,icon:"Syndicated",text:"Syndicated from "+t.syndicatedChannel}),t.isSupport&&(0,d.jsx)(i.A,{icon:"Support",text:"Support channel"})]})}):(0,d.jsx)("div",{className:"pill_expand__container",children:(0,d.jsxs)("div",{className:"pill_expand",children:[e&&(0,d.jsx)(a.A,{sx:m}),u&&(0,d.jsx)(n.A,{sx:m}),x&&(0,d.jsx)(r.A,{sx:m}),g&&(0,d.jsx)(l.A,{sx:m}),t.isSyndicated&&(0,d.jsx)(p.A,{sx:m}),t.isSupport&&(0,d.jsx)(c.A,{sx:m})]})})}},10540:(t,s,e)=>{e.d(s,{A:()=>r});var o=e(9950),i=e(44414);class a extends o.Component{constructor(t){super(t)}render(){var t=this.props.value,s=this.props.className;if(null==t||0==t)var e={backgroundColor:"#e0e0e0"},o=(t="?","?");else if(t<=7)e={backgroundColor:"#f77e71"},t=this.props.value,o=Math.round(t)+"/10";else t=this.props.value,e={backgroundColor:"#26a69a"},o=Math.round(t)+"/10";return(0,i.jsx)("span",{className:s,style:e,children:o})}}const r=a},16579:(t,s,e)=>{e.r(s),e.d(s,{default:()=>I});var o=e(9950),i=e(11546),a=e(2873),r=e(22076),n=e(84362),l=e(57073),p=e(28321),c=e(18216),h=e(3616),d=e(7021),m=e(36828),u=e(32530),x=e(32721),g=e(31511),v=e(29687),A=e(67891
1),j=e(53515),w=e(46058),_=e(72374),y=e(62244),b=e(19489),S=e(44414);const C={marginRight:1,color:"rgba(0, 0, 0, 0.26)",margin:1},f={margin:1};class N extends o.Component{constructor(t){var s,e;super(t),this.handleLetterClose=()=>{this.setState({anchorEl:null})},this.sendLetterNow=this.sendLetterNow.bind(this),this.startLetterCreation=this.startLetterCreation.bind(this),this.downvoteHandler=this.downvoteHandler.bind(this),this.upvoteHandler=this.upvoteHandler.bind(this),this.starVoteHandler=this.starVoteHandler.bind(this),this.closeAlert=this.closeAlert.bind(this),this.props.transactions&&(s=this.props.transactions.upvote_downvote),this.props.transactions&&(e=this.props.transactions.star),this.state={upOrDownVote:s,starVote:e,downVotePressed:!1,upVotePressed:!1,starVotePressed:!1,Unauthorized:!1,anchorEl:null}}componentDidUpdate(t){this.props.transactions!==t.transactions&&this.setState({upOrDownVote:this.props.transactions.upvote_downvote,starVote:this.props.transactions.star})}sendLetterNow(){localStorage.getItem("token")?(this.upvoteHandler(),this.props.sendLetterNow()):this.setState({Unauthorized:!0})}startLetterCreation(){localStorage.getItem("token")?(this.upvoteHandler(),this.props.startLetterCreation()):this.setState({Unauthorized:!0})}closeAlert(){this.setState({Unauthorized:!1})}starVoteHandler(){if(localStorage.getItem("token")){var t=!this.state.starVote,s=this.state.upOrDownVote;t&&(s=!0),this.props.updateUpDownVote(this.props.id,this.props.contentType,s,this.props.channelType,this.props.channelID,void 0,t,!1,this.props.hashID),null==this.state.starVote?this.setState({starVote:!0,upOrDownVote:s,starVotePressed:!0}):this.setState({starVote:t,upOrDownVote:s})}else this.setState({Unauthorized:!0})}upvoteHandler(){localStorage.getItem("token")?(this.props.updateUpDownVote(this.props.id,this.props.contentType,!0,this.props.channelType,this.props.channelID,!1,this.state.starVote,!1,this.props.hashID),this.setState({upOrDownVote:!0,upVotePressed:null==this.state.upOrDownVote}),(this.props.petition||this.props.secretBallot||this.props.openLetter)&&this.props.showModal()):this.setState({Unauthorized:!0})}downvoteHandler(){localStorage.getItem("token")?(this.props.updateUpDownVote(this.props.id,this.props.contentType,!1,this.props.channelType,this.props.channelID,!1,this.state.starVote,!1,this.props.hashID),this.setState({upOrDownVote:!1,downVotePressed:null==this.state.upOrDownVote}),(this.props.petition||this.props.secretBallot||this.props.openLetter)&&this.props.showModal()):this.setState({Unauthorized:!0})}render(){const{t:t}=this.props,{anchorEl:s}=this.state;return void 0===this.state.upOrDownVote?null:this.props.openLetter?(0,S.jsxs)("div",{className:"button--center",children:[1==this.state.upOrDownVote||this.props.thisIsMyPost?(0,S.jsxs)(c.A,{size:"small",variant:"contained",color:"primary",sx:{padding:"4px 8px"},disabled:!0,endIcon:(0,S.jsx)(d.A,{}),children:[this.props.transactions.upvotes," have endorsed"]}):(0,S.jsx)(S.Fragment,{children:(0,S.jsx)(c.A,{size:"small",variant:"contained",color:"primary",sx:f,onClick:this.sendLetterNow,endIcon:(0,S.jsx)(h.A,{}),children:t("Sign letter")})}),this.state.Unauthorized?(0,S.jsx)(r.A,{closeAlert:this.closeAlert}):""]}):this.props.secretBallot?(0,S.jsxs)("span",{children:[1==this.state.upOrDownVote||0==this.state.upOrDownVote?(0,S.jsxs)("div",{className:"button--center",children:[(0,S.jsxs)(c.A,{size:"small",variant:"contained",sx:f,disabled:!0,children:[this.props.transactions.upvotes," have agreed",1==this.state.upOrDownVote?(0,S.jsx)(d.A,{sx:{marginLeft:1}}):""]}),(0,S.jsxs)(c.A,{size:"small",variant:"contained",sx:f,disabled:!0,children:[this.props.transactions.downvotes," have disagreed",0==this.state.upOrDownVote?(0,S.jsx)(d.A,{sx:{marginLeft:1}}):""]})]}):"STARTED"==this.props.misc.networkState?(0,S.jsx)("div",{className:"button--center",children:(0,S.jsx)(y.A,{variant:"mini"})}):(0,S.jsxs)("div",{className:"button--center",children:[(0,S.jsxs)(c.A,{size:"small",variant:"contained",color:"primary",sx:f,onClick:this.upvoteHandler,children:["Yes, I support",(0,S.jsx)(m.A,{sx:{marginLeft:1}})]}),(0,S.jsxs)(c.A,{size:"small",variant:"contained",color:"secondary",sx:f,onClick:this.downvoteHandler,children:["No, I dont support",(0,S.jsx)(x.A,{sx:{marginLeft:1}})]})]}),this.state.Unauthorized?(0,S.jsx)(r.A,{closeAlert:this.closeAlert}):""]}):this.props.petition?(0,S.jsxs)("div",{className:"button--center",children:[1==this.state.upOrDownVote?(0,S.jsxs)(c.A,{size:"small",variant:"contained",color:"primary",sx:{padding:"4px 8px"},disabled:!0,children:[this.props.transactions.upvotes," have signed",(0,S.jsx)(d.A,{sx:{marginLeft:1}})]}):(0,S.jsxs)(c.A,{size:"small",variant:"contained",color:"primary",sx:f,onClick:this.upvoteHandler,children:["Add your signature",(0,S.jsx)(h.A,{sx:{marginLeft:1}})]}),this.state.Unauthorized?(0,S.jsx)(r.A,{closeAlert:this.closeAlert}):""]}):this.props.graphicCard?(0,S.jsxs)("div",{className:"button--vertstrip",children:[1==this.state.upOrDownVote?(0,S.jsx)(l.A,{color:"primary","aria-label":"Upvote content",children:(0,S.jsx)(u.A,{})}):(0,S.jsx)(l.A,{"aria-label":"Upvote content",onClick:this.upvoteHandler,children:(0,S.jsx)(m.A,{})}),1==this.state.starVote?(0,S.jsx)(b.A,{in:!0,children:(0,S.jsx)(l.A,{sx:{padding:.25,color:"#DAA520"},"aria-label":"Unstar content",onClick:this.starVoteHandler,children:(0,S.jsx)(A.A,{className:"",fontSize:"large"})})}):(0,S.jsx)(l.A,{sx:{padding:1},"aria-label":"Star content",onClick:this.starVoteHandler,children:(0,S.jsx)(v.A,{})}),0==this.state.upOrDownVote?(0,S.jsx)(l.A,{"aria-label":"Downvote content",children:(0,S.jsx)(g.A,{})}):(0,S.jsx)(l.A,{"aria-label":"Down vote content",onClick:this.downvoteHandler,children:(0,S.jsx)(x.A,{})}),this.state.Unauthorized?(0,S.jsx)(r.A,{closeAlert:this.closeAlert}):""]}):this.props.helpPage?(0,S.jsxs)("div",{className:"updown__container",children:[(0,S.jsxs)("div",{className:"vote__container",children:[(0,S.jsx)("span",{className:"updown__text",children:"Article is helpful?"}),1==this.state.upOrDownVote?(0,S.jsxs)(c.A,{style:{color:"green"},children:[(0,S.jsx)(j.A,{sx:{marginRight:1}}),"Yes (",(0,a.$tq)(this.props.transactions.upvotes),")"]}):(0,S.jsxs)(c.A,{onClick:this.upvoteHandler,style:{color:"rgba(0, 0, 0, 0.44)"},children:[(0,S.jsx)(w.A,{sx:{marginRight:1}}),"Yes (",(0,a.$tq)(this.props.transactions.upvotes),")"]}),0==this.state.upOrDownVote?(0,S.jsxs)(c.A,{color:"primary",style:{color:"red"},children:[(0,S.jsx)(_.A,{sx:{marginRight:1}}),"No (",(0,a.$tq)(this.props.transactions.downvotes),")"]}):(0,S.jsxs)(c.A,{onClick:this.downvoteHandler,style:{color:"rgba(0, 0, 0, 0.44)"},children:[(0,S.jsx)(_.A,{sx:{marginRight:1}}),"No (",(0,a.$tq)(this.props.transactions.downvotes),")"]})]}),this.state.Unauthorized?(0,S.jsx)(r.A,{closeAlert:this.closeAlert}):""]}):this.props.hideUpDown?null:(0,S.jsxs)(S.Fragment,{children:[this.state.Unauthorized?(0,S.jsx)(r.A,{closeAlert:this.closeAlert}):"",(0,S.jsxs)("div",{className:"vote__container",children:[this.state.starVotePressed?(0,S.jsx)(n.A,{points:10}):null,this.props.thisIsMyPost?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(v.A,{sx:C}),(0,S.jsx)("span",{className:"updown__text",children:(0,a.$tq)(this.props.transactions.starvotes)})]}):1==this.state.starVote?(0,S.jsx)(b.A,{in:!0,children:(0,S.jsx)(l.A,{sx:{padding:.25,color:"#DAA520"},"aria-label":"Unstar content",onClick:this.starVoteHandler,children:(0,S.jsx)(A.A,{className:"",fontSize:"large"})})}):(0,S.jsxs)(c.A,{size:"small",sx:{color:"rgba(0, 0, 0, 0.54)",textTransform:"unset",fontWeight:"unset"},onClick:this.starVoteHandler,children:[(0,S.jsx)(v.A,{sx:{marginRight:1}}),t("Star!")]})]}),(0,S.jsxs)(S.Fragment,{children:[this.state.upVotePressed?(0,S.jsx)(n.A,{points:10}):null,this.props.thisIsMyPost?(0,S.jsxs)("div",{className:"vote__container",children:[(0,S.jsx)(m.A,{sx:C}),(0,S.jsx)("span",{className:"updown__text",children:(0,a.$tq)(this.props.transactions.upvotes)})]}):1==this.state.upOrDownVote?(0,S.jsx)(l.A,{color:"primary","aria-label":"Upvote content",children:(0,S.jsx)(u.A,{})}):(0,S.jsxs)(c.A,{size:"small",sx:{color:"rgba(0, 0, 0, 0.54)",textTransform:"unset",fontWeight:"unset"},onClick:this.upvoteHandler,children:[(0,S.jsx)(m.A,{sx:{marginRight:1}}),t("Upvote")]})]}),(0,S.jsxs)("div",{className:"vote__container",children:[this.state.downVotePressed?(0,S.jsx)(n.A,{points:10}):null,this.props.thisIsMyPost?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(x.A,{sx:C}),(0,S.jsx)("span",{className:"updown__text",children:(0,a.$tq)(this.props.transactions.downvotes)})]}):0==this.state.upOrDownVote?(0,S.jsx)(l.A,{"aria-label":"Downvote content",children:(0,S.jsx)(g.A,{})}):(0,S.jsx)(l.A,{"aria-label":"Down vote content",onClick:this.downvoteHandler,children:(0,S.jsx)(x.A,{})})]})]})}}const D=(0,i.Ng)((t=>({misc:t.misc})),{updateUpDownVote:a.$PL})((0,p.CI)()(N));var k=e(64272),L=e(53588),M=e(31588),P=e(68519),O=e(86611),V=e(73902);const I=(0,i.Ng)((t=>({userState:t.userState})),{sagaAction:a.Fx5})((function(t){const[s,e]=(0,o.useState)(!1),[i,n]=(0,o.useState)(0),[p,c]=(0,o.useState)("Saved to your bookmarks");0!=t.commentCount&&t.commentCount;var h=t.bookmarkControl&&t.bookmarkControl.show;return s?(0,S.jsx)(r.A,{closeAlert:t=>e(!1)}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(V.A,{message:p,openCount:i,duration:4e3,variant:"info"}),(0,S.jsxs)("div",{className:t.inline?"":"content-actions",children:[t.showComment&&(0,S.jsx)(O.Vq,{"aria-label":"Add your comment",smooth:!0,to:t.commentURL,children:(0,S.jsx)(l.A,{"aria-label":"Add your comment",children:(0,S.jsx)(M.A,{})})}),(0,S.jsx)(D,{hashID:t.hashID,channelID:t.originID,channelType:(0,a.NW5)(t.originType,!0),id:t.id,transactions:t.transactions,contentType:t.contentType,petition:t.petition,secretBallot:t.secretBallot,openLetter:t.openLetter,showModal:t.showModal,thisIsMyPost:t.thisIsMyPost,startLetterCreation:t.startLetterCreation,sendLetterNow:t.sendLetterNow,hideUpDown:t.hideUpDown,graphicCard:t.graphicCard,helpPage:t.helpPage}),!t.inline&&t.viewCount?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(l.A,{"aria-label":"View count",disabled:!0,children:(0,S.jsx)(k.A,{})}),(0,S.jsx)("span",{className:"updown__text",children:(0,a.$tq)(t.viewCount.views)})]}):h&&(0,S.jsx)(l.A,{onClick:function(){t.userState.isLoggedIn?(t.sagaAction("SAVE_CONTENT_BOOKMARK",t.bookmarkControl),n(i+1)):e(!0)},"aria-label":"Bookmark this content",children:(0,S.jsx)(P.A,{})}),!t.hideOverflowMenu&&(0,S.jsx)(L.A,{id:t.id,contentType:t.contentType,pathname:t.pathname,embedControl:t.embedControl,showReportPost:!0,bookmarkControl:t.bookmarkControl})]})]})}))},92643:(t,s,e)=>{e.d(s,{A:()=>m});var o=e(9950),i=e(94947),a=e(16589),r=e(71508),n=e(18527),l=e(9032),p=e(67991),c=e(71370),h=e(44414);const d={Syndicated:i.A,Restricted:a.A,Protected:n.A,Private:r.A,Moderated:l.A,Info:p.A,Support:c.A};function m(t){const[s,e]=o.useState(!1),i=d[t.icon];return(0,h.jsxs)("div",{className:"pill_expand_icon",children:[(0,h.jsx)(i,{fontSize:"small"}),t.link?(0,h.jsx)("a",{className:"pill_expand_text",href:t.link,target:"_blank",rel:"noopener noreferrer",children:(0,h.jsxs)("span",{children:[" \xa0 ",t.text," \xa0 "]})}):(0,h.jsxs)("span",{className:"pill_expand_text",children:[" \xa0 ",t.text," \xa0 "]})]})}},84362:(t,s,e)=>{e.d(s,{A:()=>r});var o=e(9950),i=e(44414);class a extends o.Component{constructor(t){super(t),this.state={runAnimation:!1}}componentDidMount(){var t=2e3;void 0!=this.props.duration&&(t=this.props.duration),this.setState({runAnimation:!this.state.runAnimation}),setTimeout(function(){this.setState({runAnimation:!this.state.runAnimation})}.bind(this),t),this.setState({downvoteValue:this.state.downvoteValue+1})}
1render(){if(2==this.props.type)var t="got_points2";else t="got_points";return(0,i.jsx)("div",{children:this.state.runAnimation?(0,i.jsxs)("span",{className:t,children:["+"+this.props.points+" points"," "]}):""})}}const r=a}}]);
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.