1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var a in i)i.hasOwnProperty(a)&&(e[a]=i[a])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:corgi-sentry":!0});var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dc77f552-7305-4895-8228-2e5d8084fcd6",e._sentryDebugIdIdentifier="sentry-dbid-dc77f552-7305-4895-8228-2e5d8084fcd6")}catch(e){}}(),(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3575],{31455(e,n,i){"use strict";i.r(n),i.d(n,{DecisionMakerProfile:()=>ni});var a=i(77624),t=i(71210),s=i(95340),l=i(32198),r=i(93864),o=i(39825),d=i(54018),c=i(48253),m=i(12493),u=i(27540);async function v(e,n){let{gql:{fetch:i}}=e,{data:t}=await i({query:u.DecisionMakerData,variables:{slug:n},rejectOnError:!0});if(!t.decisionMaker||!t.decisionMaker.publiclyVisible)throw new m.m_;return(0,c._)((0,a._)({},t.decisionMaker),{description:t.decisionMaker.description||"",title:t.decisionMaker.title||"",featureConfigs:t.featureConfigs})}let{Context:p,Provider:k,useContext:g,useAsyncData:f,prefetchAsyncData:h}=(0,d.$h)({name:"DecisionMakerProfilePageDataContext",dataProperty:"pageData",getData:v,getUniqueId:e=>e,errorHandler:(0,d.QN)()});var x=i(51481);async function N(e){let{utilityContext:n,slug:i,cursor:a,numResponsesToFetch:t}=e,{gql:{fetch:s}}=n,{data:l}=await s({query:x.DecisionMakerResponses,variables:{cursor:null!=a?a:null,slug:i,numResponsesToFetch:t||10},rejectOnError:!0});if(!l.decisionMaker)throw new m.m_;return{items:l.decisionMaker.responsesConnection.nodes,cursor:l.decisionMaker.responsesConnection.pageInfo.endCursor,hasNextPage:l.decisionMaker.responsesConnection.pageInfo.hasNextPage,totalCount:l.decisionMaker.responsesConnection.totalCount,totalCountLocalized:l.decisionMaker.responsesConnection.totalCountLocalized}}async function b(e,n){return N({utilityContext:e,slug:n,numResponsesToFetch:3})}async function y(e,n,i){return N({utilityContext:e,slug:i,cursor:n})}let{Context:j,Provider:_,useContext:S,useAsyncData:C,prefetchAsyncData:w}=(0,d.E1)({name:"DMProfilePagePaginatedResponsesDataContext",dataProperty:"responsesPaginatedData",getFirstPageData:b,getNextPageData:y,getUniqueId:e=>e,errorHandler:(0,d.QN)()});var F=i(56277);let DecisionMakerPageDataError=class DecisionMakerPageDataError extends m.Ar{};(0,F.Y)(DecisionMakerPageDataError,"DecisionMakerPageDataError");var D=i(95298);async function P(e){let{utilityContext:n,slug:i,cursor:a,numPetitionsToFetch:t}=e,{gql:{fetch:s}}=n,{data:l}=await s({query:D.DecisionMakerTargetedPetitions,variables:{cursor:null!=a?a:null,slug:i,numPetitionsToFetch:t||10},rejectOnError:!0});if(!l.decisionMaker)throw new m.m_;return{items:l.decisionMaker.targetedPetitionsConnection.nodes,cursor:l.decisionMaker.targetedPetitionsConnection.pageInfo.endCursor,hasNextPage:l.decisionMaker.targetedPetitionsConnection.pageInfo.hasNextPage,totalCount:l.decisionMaker.targetedPetitionsConnection.totalCount}}async function E(e,n){return P({utilityContext:e,slug:n,numPetitionsToFetch:4})}async function M(e,n,i){return P({utilityContext:e,slug:i,cursor:n})}let{Context:I,Provider:L,useContext:T,useAsyncData:z,prefetchAsyncData:O}=(0,d.E1)({name:"DMProfilePagePaginatedTargetedPetitionsDataContext",dataProperty:"targetedPetitionsPaginatedData",getFirstPageData:E,getNextPageData:M,getUniqueId:e=>e,errorHandler:(0,d.QN)()});async function A(e,n){let[i,a,t]=await Promise.all([h(n,e),w(n,e),O(n,e)]);return{pageData:i,responsesPaginatedData:a,targetedPetitionsPaginatedData:t}}var R=i(49637),U=i(49758),V=i(47198);let q=e=>{let{children:n,slug:i,prefetchedData:a,errorHandler:s,loadingFallback:l}=e,r=(0,o.U)(f(null==a?void 0:a.pageData,i),C(null==a?void 0:a.responsesPaginatedData,i),z(null==a?void 0:a.targetedPetitionsPaginatedData,i));if((0,V.bJ)(r)){let{status:e}=r,n=(0,R._)(r,["status"]);return(0,t.jsx)(s,{context:n})}if(!(0,V.s1)(r))return l;let{pageData:d,responsesPaginatedData:c,targetedPetitionsPaginatedData:m}=r;return(0,t.jsx)(k,{pageData:d,children:(0,t.jsx)(_,{responsesPaginatedData:c,children:(0,t.jsx)(L,{targetedPetitionsPaginatedData:m,children:(0,t.jsx)(U.fu,{properties:{decision_maker_id:d.data.id},children:n})})})})};var G=i(128),H=i(53410),$=i(14219),B=i(44505),W=i(14082),Q=i(42594),Y=i(13120);let J=()=>{let{data:{enrichedData:e}}=g(),n=(0,Q.useMemo)(()=>{var n;return null!=(n=null==e?void 0:e.campaignPhotoUrl)?n:null},[e]);return n?(0,t.jsx)("div",{className:"w-full md:h-[300px] md:pr-6",children:(0,t.jsx)(Y._,{src:n,alt:"decision maker campaign ph
1oto",className:"h-full w-full object-cover","data-qa":"campaign-photo"})}):null};var K=i(4761);let Z=e=>e?"Yes":"No",X=()=>{let{data:{dmId:e,slug:n,slugCopyable:i,type:a,publiclyVisible:s,verified:l,location:r,urls:o,responsiveness:d,enrichedData:c}}=function(){var e,n;let i,{data:{id:a,slug:t,type:s,publiclyVisible:l,verifiedAt:r,country:o,state:d,district:c,responsivenessData:m,enrichedData:u}}=g(),v=(0,Q.useMemo)(()=>{let e=encodeURIComponent(t||a);return{dmAdmin:"/admin/decision-makers/".concat(e),edit:"/admin/decision-makers/".concat(e,"/edit"),adminAccounts:"/admin/decision-makers/".concat(e,"/admin_accounts")}},[a,t]),p=null!==m.responsivenessScore,k=null!==m.respondedToPetitions&&null!==m.totalRelevantPetitions;return{data:{dmId:a,slug:null!=t?t:"â",slugCopyable:!!t,type:s,publiclyVisible:Z(l),verified:Z(!!r),location:(i=[],o&&i.push(o.countryCode),d&&i.push(d.displayName),c&&i.push(/\d/.test(c)?"District ".concat(c):c),i.length>0?i.join(", "):"â"),urls:v,responsiveness:p?{score:String(m.responsivenessScore),respondedRelevant:k?"".concat(m.respondedToPetitions," / ").concat(m.totalRelevantPetitions):void 0,visible:Z(m.isVisible)}:void 0,enrichedData:{present:Z(!!u),endorsementCount:u?String((null!=(e=u.endorsements)?e:[]).length):void 0,voterGuidePickCount:u?String((null!=(n=u.voterGuidePicks)?n:[]).length):void 0}}}}();return(0,t.jsxs)(K.UD,{children:[(0,t.jsxs)(K.JH,{title:"Decision maker",children:[(0,t.jsx)(K.GC,{label:"DM ID",value:e,copyable:!0}),(0,t.jsx)(K.GC,{label:"Slug",value:n,copyable:i}),(0,t.jsx)(K.GC,{label:"Type",value:a}),(0,t.jsx)(K.GC,{label:"Publicly visible",value:s}),(0,t.jsx)(K.GC,{label:"Verified",value:l}),(0,t.jsx)(K.GC,{label:"Location",value:r}),(0,t.jsx)(K.yM,{href:o.dmAdmin,children:"DM admin"}),(0,t.jsx)(K.yM,{href:o.edit,children:"Edit"}),(0,t.jsx)(K.yM,{href:o.adminAccounts,children:"Admin accounts"})]}),d&&(0,t.jsxs)(K.JH,{title:"Responsiveness",children:[(0,t.jsx)(K.GC,{label:"Score",value:d.score}),void 0!==d.respondedRelevant&&(0,t.jsx)(K.GC,{label:"Responded / relevant petitions",value:d.respondedRelevant}),(0,t.jsx)(K.GC,{label:"Score visible",value:d.visible})]}),(0,t.jsxs)(K.JH,{title:"Enriched data",children:[(0,t.jsx)(K.GC,{label:"Present",value:c.present}),void 0!==c.endorsementCount&&(0,t.jsx)(K.GC,{label:"Endorsement count",value:c.endorsementCount}),void 0!==c.voterGuidePickCount&&(0,t.jsx)(K.GC,{label:"Voter-guide pick count",value:c.voterGuidePickCount})]})]})};var ee=i(74366),en=i(93214);let ei={COMMUNITY_LEADER:{name:"Community Leader",color:"hsl(32, 90%, 55%)"},BUSINESS:{name:"Business",color:"hsl(265, 9%, 37%)"},ISSUE_ADVOCACY:{name:"Issue Advocacy",color:"hsl(260, 14%, 75%)"},LABOR_UNIONS:{name:"Labor Unions",color:"hsl(226, 100%, 64%)"},NEWS_OUTLETS:{name:"News Outlets",color:"hsl(279, 100%, 64%)"},PARTY_LEADERS:{name:"Party Leaders",color:"hsl(145, 96%, 36%)"},UNKNOWN:{name:"Unknown",color:"hsl(264, 29%, 93%)"}},ea=()=>{let{data:{totalEndorsers:e,categories:n,ariaLabelText:i}}=function(){var e;let{data:{enrichedData:n}}=g(),i=(null==n||null==(e=n.endorsementsOverview)?void 0:e.endorsers)||[],a={};for(let e of i){let n=e.endorserCategory;a[n]?a[n]+=1:a[n]=1}let t=Object.keys(a).map(e=>({category:ei[e].name,count:a[e],color:ei[e].color})).sort((e,n)=>n.count-e.count),s="Community backing composition by category: ".concat(t.map(e=>"".concat(e.count," ").concat(e.category)).join(", "));return{data:{totalEndorsers:i.length,categories:t,ariaLabelText:s}}}(),a=n.map(e=>"".concat(e.count,"fr")).join(" ");return 0===e?null:(0,t.jsxs)("div",{className:"my-6 md:my-8",children:[(0,t.jsxs)("div",{className:"mb-4 flex justify-between","data-testid":"recommender-count-wrapper",children:[(0,t.jsx)(ee.E,{as:"h3",className:"text-sm font-bold md:text-base",children:"Strong community backing"}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(en.E,{className:"px-2",variant:"neutral",label:e}),(0,t.jsx)(ee.E,{as:"span",className:"text-sm md:text-base",children:"Recommenders"})]})]}),(0,t.jsx)("div",{className:"grid overflow-hidden rounded-full",style:{gridTemplateColumns:a},"data-testid":"composition-bar",role:"img","aria-label":i,children:n.map(e=>(0,t.jsx)("div",{className:"h-2.5",style:{background:e.color},role:"presentation"},"bar-".concat(e.category)))}),(0,t.jsx)("ul",{className:"mt-2.5 flex flex-wrap gap-2.5 gap-y-1 md:flex-row","data-testid":"legend","aria-hidden":"true",children:n.map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-1",children:[(0,t.jsx)("div",{className:"h-2.5 w-2.5 rounded-full",style:{background:e.color},"aria-hidden":"true"}),(0,t.jsx)("p",{className:"text-typography-weak text-xs",children:e.category})]},"list-".concat(e.category)))})]})};var et=i(67940),es=i(11082);let el=e=>{let{avatarUrl:n}=e;return(0,t.jsx)("div",{className:"w-6",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(et.e,{src:n||"",alt:"",className:"border-stroke-weaker w-6 border"}),(0,t.jsx)(en.E,{iconOnly:!0,leadingIcon:(0,t.jsx)(es.S,{className:"h-2 w-3"}),className:"bg-fill-success-strong absolute right-[-4px] bottom-[-2px] z-10 h-3 w-3 min-w-[unset]"})]})})},er=e=>{let{endorsement:{message:n,author:i}}=e;return(0,t.jsxs)("div",{className:"bg-fill-information-weaker flex w-[274px] shrink-0 flex-col justify-between rounded-lg pt-6 pr-5 pb-5 pl-6 md:w-auto",children:[(0,t.jsxs)(ee.E,{className:"mb-10 font-serif text-sm italic",children:["â",n,"â"]}
1),(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(el,{avatarUrl:i.profilePhotoUrl||""}),(0,t.jsx)(ee.E,{className:"mt-0.5 text-sm font-bold",children:i.displayName})]})]})},eo=()=>{let{data:{endorsements:e}}=function(){var e;let{data:{enrichedData:n}}=g();return{data:{endorsements:(null==n||null==(e=n.endorsements)?void 0:e.filter(e=>!!e.rationale).map(e=>{var n,i,a,t;return{author:e.person?{displayName:e.person.displayName,profilePhotoUrl:null==(n=e.person.profilePhoto)?void 0:n.photoUrl}:{displayName:null==(i=e.organization)?void 0:i.name,profilePhotoUrl:null==(t=e.organization)||null==(a=t.profilePhoto)?void 0:a.photoUrl},message:e.rationale}}))||[]}}}();return 0===e.length?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"data-testid":"endorsements-section",className:"snap-x snap-mandatory overflow-x-scroll md:hidden [&::-webkit-scrollbar]:hidden",role:"region","aria-label":"Quotes from endorsers",children:(0,t.jsx)("ul",{role:"list",className:"flex gap-5",children:e.map(e=>(0,t.jsx)("li",{"aria-roledescription":"slide",className:"snap-start",children:(0,t.jsx)(er,{endorsement:e})},"".concat(e.author.displayName,"_").concat(e.message)))})}),(0,t.jsx)("div",{className:"hidden md:block",children:(0,t.jsx)("ul",{role:"list",className:"columns-2 lg:columns-3",children:e.map(e=>(0,t.jsx)("li",{className:"mb-4 break-inside-avoid",children:(0,t.jsx)(er,{endorsement:e})},"".concat(e.author.displayName,"_").concat(e.message)))})})]})},ed=()=>{var e;let{data:{displayName:n,lastName:i,enrichedData:a}}=g(),s=null==a||null==(e=a.endorsementsOverview)?void 0:e.summary;return s?(0,t.jsxs)("div",{"data-qa":"dm-endorsements-overview",className:"flex flex-col gap-2",children:[(0,t.jsx)(ee.E,{as:"h2",variant:"heading",size:"small",className:"mb-2",children:"Who's supporting ".concat(null!=i?i:n,"?")}),(0,t.jsx)(ee.E,{variant:"body",children:s})]}):null};var ec=i(62737);let em=e=>{var n,i,a,s,l,r;let o,d,{endorsement:c,type:m}=e;if("endorsement"===m){let{person:e,organization:t}=c;o=null!=(n=null!=(i=null==e?void 0:e.displayName)?i:null==t?void 0:t.name)?n:"Endorser",d=null!=(a=null==e||null==(s=e.profilePhoto)?void 0:s.photoUrl)?a:null==t||null==(l=t.profilePhoto)?void 0:l.photoUrl}else{let{voterGuide:e}=c;o=e.author.displayName,d=null==(r=e.author.profilePhoto)?void 0:r.photoUrl}return(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,t.jsx)(el,{avatarUrl:d||""}),(0,t.jsx)(ee.E,{variant:"body",size:"small",className:"text-typography-strong",children:o})]})},eu=()=>{let{data:{voterGuidePicks:e,endorsements:n,totalRecommendations:i,headingText:a}}=(()=>{let{data:{enrichedData:e}}=g(),n=(0,Q.useMemo)(()=>(null==e?void 0:e.endorsements)&&0!==e.endorsements.length?e.endorsements.map(e=>{var n,i;return{id:e.id,person:null!=(n=e.person)?n:null,organization:null!=(i=e.organization)?i:null}}):[],[e]),i=(0,Q.useMemo)(()=>(null==e?void 0:e.voterGuidePicks)&&0!==e.voterGuidePicks.length?e.voterGuidePicks.map(e=>({id:e.id,voterGuide:e.voterGuide})):[],[e]),a=(0,Q.useMemo)(()=>i.length+n.length,[i,n]);return{data:{voterGuidePicks:i,endorsements:n,totalRecommendations:a,headingText:"".concat(a," Recommendation").concat(1!==a?"s":"")}}})();return 0===i?null:(0,t.jsxs)("div",{"data-testid":"dm-endorsements-section-list-container",children:[(0,t.jsx)("div",{className:"mt-14 mb-5",children:(0,t.jsx)(ee.E,{as:"h3",variant:"body",size:"small",className:"text-typography-strong",fontWeight:"bold",children:a})}),(0,t.jsxs)("div",{className:(0,ec.cn)("grid grid-cols-1 gap-4",!(i<=6)&&"md:grid-cols-2"),children:[null==e?void 0:e.map(e=>(0,t.jsx)(em,{endorsement:e,type:"voterGuidePick"},"PickEndorsementName_".concat(e.id))),null==n?void 0:n.map(e=>(0,t.jsx)(em,{endorsement:e,type:"endorsement"},"EndorsementName_".concat(e.id)))]})]})},ev=()=>{let{data:{showEndorsements:e}}=function(){let{data:{enrichedData:e}}=g();if(!e)return{data:{showEndorsements:!1}};let{endorsements:n,endorsementsOverview:i,voterGuidePicks:a}=e,t=i&&i.endorsers.length>0,s=null==n?void 0:n.some(e=>!!e.rationale),l=n&&n.length>0,r=a&&a.length>0;return{data:{showEndorsements:!!t||!!(l||r)||!!s}}}();
1return e?(0,t.jsxs)("div",{"data-testid":"endorsements-section",children:[(0,t.jsx)(H.w,{orientation:"horizontal",className:"my-14"}),(0,t.jsx)(ed,{}),(0,t.jsx)(ea,{}),(0,t.jsx)(eo,{}),(0,t.jsx)(eu,{})]}):null};function ep(){let{data:{responsivenessData:e}}=g();return e.isVisible}var ek=i(79524),eg=i(52922),ef=i(54250),eh=i(39351);function ex(){var e;let n,i=(0,eg.v)(),a=(0,eh.GN)("showDmrl"),{data:{description:t,descriptionAi:s,displayName:l,district:r,id:o,photo:d,state:c,title:m,verifiedAt:u,type:v,enrichedData:p,featureConfigs:{dmReputationLayer:k}}}=g(),{data:{totalCount:f}}=S(),{data:{totalCount:h}}=T(),x=k.enabled||"true"===a,N=!(p&&x),b=(0,ef.EE)(null==d?void 0:d.userLarge),y=(e=null==p?void 0:p.summaryLong,t||s||(x&&e?[e.header,e.body].filter(Boolean).join(" "):null)),j=(n=[],r&&/\d/.test(r)?n.push("District ".concat(r)):r&&n.push(r),c&&n.push(c.displayName),n.join(", ")),_=Number(null==y?void 0:y.length)>120,C=Number(null==y?void 0:y.length)>290,[w,F]=(0,Q.useState)(_||C),D=(0,Q.useCallback)(()=>{F(e=>!e)},[]);return{data:{id:o,displayName:l,title:m,type:v,districtStateText:j,photoUrl:b||i("/profile-img/default-user-profile.svg"),verified:!!u,descriptionText:y,descriptionClamped:w,isDescriptionClampable:{mobile:_,desktop:C},responsesCount:f,petitionsCount:h,displayAbuseLink:N,isAiGeneratedDescription:!t&&!!s},actions:{handleShowFullTextClick:D}}}let eN=()=>{let{data:{photoUrl:e,displayName:n,type:i}}=ex();return(0,t.jsx)("div",{className:"pt-6",children:(0,t.jsxs)("div",{className:"relative flex justify-center",children:[(0,t.jsx)(et.e,{"data-qa":"dm-image",src:e,alt:"".concat(n," profile picture"),className:"size-[100px] lg:size-[160px]"}),"POLITICIAN"===i&&(0,t.jsx)(en.E,{"data-testid":"politician-badge",iconOnly:!0,leadingIcon:(0,t.jsx)(ek.Q,{size:"x-large"}),size:"large",variant:"information",emphasis:"weaker",className:"absolute bottom-[-24px] z-10 flex size-14 justify-center rounded-full border-4 border-white"})]})})};var eb=i(22617),ey=i(37932),ej=i(19771);let e_=()=>{let{data:{descriptionText:e,descriptionClamped:n,isDescriptionClampable:i,displayAbuseLink:a,isAiGeneratedDescription:s},actions:{handleShowFullTextClick:l}}=ex();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ee.E,{as:"p","data-qa":"dm-description",variant:"body",className:(0,ec.cn)({"lg:line-clamp-3":i.desktop&&n,"line-clamp-3":i.mobile&&n},"text-typography-strong mt-8"),children:e}),(0,t.jsx)(eb.N,{onClick:l,variant:"secondary","data-qa":"dm-description-toggle",className:(0,ec.cn)("mt-1 hidden",{"sm:inline-block":i.mobile,"md:hidden":i.mobile&&!i.desktop,"lg:inline-block":i.desktop}),children:n?(0,t.jsx)(ej.HT,{value:"corgi.decision_maker_profile.profile_section.description.show_full_text"}):(0,t.jsx)(ej.HT,{value:"corgi.decision_maker_profile.profile_section.description.show_less"})}),e&&(a||s)&&(0,t.jsxs)("div",{className:"mt-4 flex items-start gap-6","data-qa":"dm-description-report-ai-issue",children:[a&&(0,t.jsx)(W.E,{pageUrl:(0,$.B)()?void 0:(0,B.zk)().location.href,type:"generic"}),s&&(0,t.jsxs)("div",{className:"flex items-center","data-qa":"dm-description-ai-summary-badge",children:[(0,t.jsx)(ey.u,{size:16,className:"text-icon-weak mr-1"}),(0,t.jsx)(ee.E,{as:"span",size:"x-small",className:"text-typography-weak",children:(0,t.jsx)(ej.HT,{value:"corgi.decision_maker_profile.profile_section.description.ai_summary_badge_label"})})]})]})]})},eS=()=>{let{data:{petitionsCount:e,displayName:n,responsesCount:i}}=ex(),a=e>1&&i>0;return 0===i?null:(0,t.jsxs)("div",{"data-testid":"dm-stats",className:"text-typography-strong grid grid-cols-1 gap-6 md:grid-cols-4",children:[e>1&&(0,t.jsxs)("div",{className:"col-span-1","data-testid":"dm-profile-petitions-count",children:[(0,t.jsx)(ee.E,{as:"h2",variant:"heading",children:e}),(0,t.jsx)(ee.E,{as:"p",variant:"body",children:(0,t.jsx)(ej.$C,{value:"corgi.decision_maker_profile.profile_section.stats.petition_stat",count:e,replacements:{count:e,displayName:n}})})]}),(0,t.jsxs)("div",{className:(0,ec.cn)("col-span-1",{"border-stroke-weaker md:border-l md:pl-8":a}),"data-testid":"dm-profile-responses-count",children:[(0,t.jsx)(ee.E,{as:"h2",variant:"heading",children:i}),(0,t.jsx)(ee.E,{as:"p",variant:"body",children:(0,t.jsx)(ej.$C,{value:"corgi.decision_maker_profile.profile_section.stats.response_stat",count:i,replacements:{count:i,displayName:n}})})]})]})};var eC=i(69515);let ew=()=>{let{data:{displayName:e,title:n,districtStateText:i,verified:a}}=ex();return(0,t.jsxs)("div",{className:"flex flex-col items-center lg:items-start",children:[(0,t.jsx)(ee.E,{as:"p",variant:"body",
1size:"large",className:"text-typography-weak hidden lg:block",children:(0,t.jsx)(ej.HT,{value:"corgi.decision_maker_profile.profile_section.label"})}),(0,t.jsxs)("div",{className:"my-2 flex items-start",children:[(0,t.jsx)(ee.E,{as:"h1",variant:"heading",className:"my-0 mb-2 text-4xl xl:text-5xl","data-qa":"dm-name",children:e}),a&&(0,t.jsx)(eC.h,{size:"small","data-testid":"verified-badge",className:"text-icon-information ml-2"})]}),(0,t.jsx)(ee.E,{as:"p",variant:"body",className:"text-center lg:text-left","data-qa":"dm-title",children:n}),i&&(0,t.jsx)(ee.E,{as:"p","data-testid":"dm-profile-location",variant:"body",children:i})]})};var eF=i(75666);function eD(){var e,n;let{data:{responsivenessData:i,featureConfigs:{dmProfileResponsivenessScoreConfig:t}}}=g(),s=(t.tags||[]).map(e=>(0,c._)((0,a._)({},e),{rangeText:0===e.min?"0%":"".concat(e.min,"-").concat(e.max,"%")})),l=i.responsivenessScore,r="number"==typeof l?Math.round(l):null,o=function(e,n){if(null===n)return;let i=e.find(e=>n>=e.min&&n<=e.max);return i?{label:i.label,labelColor:/^#[a-f0-9]+$/i.test(i.labelColor)?i.labelColor:"",textColor:/^#[a-f0-9]+$/i.test(i.textColor)?i.textColor:""}:void 0}(s,r),d=null!=(e=i.totalRelevantPetitions)?e:null,m=null!=(n=i.respondedToPetitions)?n:null;return{data:{responsivenessScore:r,totalRelevantPetitions:d,respondedToPetitions:m,hasCountValues:null!==d&&null!==m,scoreTag:o,tags:s}}}let eP=()=>{let{data:{isTagExpanded:e,responsivenessRef:n,expandButtonAriaLabel:i,contactDetails:s,tags:l,scoreTag:r,respondedToPetitions:o,totalRelevantPetitions:d,hasCountValues:m},actions:{toggleTagExpansion:u,trackEmailLinkClick:v}}=function(){let e,n,[i,t]=(0,Q.useState)(!1),s=(0,Q.useRef)(null),{data:l}=eD(),{data:r}=function(){let{data:{featureConfigs:{dmProfileResponsivenessScoreConfig:e}}}=g(),n="mailto:".concat(e.contact.email);return{data:{email:e.contact.email,phone:e.contact.phone,emailHref:n}}}(),{actions:{trackTagExpansion:o,trackEmailLinkClick:d}}=(e=(0,U.z1)(),n=(0,Q.useCallback)((n,i)=>{e(n,(0,a._)({},i))},[e]),{actions:{trackEmailLinkClick:e=>n("dm_profile_responsiveness_score_email_click",e),trackTagExpansion:e=>n("dm_profile_how_to_calculate_responsiveness_score_click",e)}});(0,Q.useEffect)(()=>{let e=e=>{s.current&&!s.current.contains(e.target)&&t(!1)};return document.addEventListener("click",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("click",e),document.removeEventListener("focusin",e)}},[]);let m=(0,Q.useCallback)(()=>{t(!i),o({action_type:i?"close":"open"})},[i,o]),u="How do we calculate this?",v=i?"".concat(u," Click to collapse"):"".concat(u," Click to expand");return{data:(0,c._)((0,a._)({responsivenessRef:s,isTagExpanded:i,expandButtonAriaLabel:v},l),{contactDetails:r}),actions:{toggleTagExpansion:m,trackEmailLinkClick:d}}}();return(0,t.jsxs)("div",{className:"flex flex-col items-center",ref:n,children:[(0,t.jsxs)("button",{type:"button",onClick:u,"data-qa":"calculating-responsiveness",className:"focus-visible:outline-stroke-focus flex items-center text-sm focus:rounded-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2","aria-label":i,children:[(0,t.jsx)("span",{children:"How do we calculate this? "}),(0,t.jsx)(eF.m,{className:(0,ec.cn)("transition-transform",{"rotate-180":e})})]}),e&&(0,t.jsxs)("div",{className:"mt-8","data-testid":"how-to-calculate-responsiveness-content",children:[(0,t.jsx)(ee.E,{as:"p",className:"pb-4",children:"Change.org calculates a responsiveness score based on how many times a public official responds to petitions with over 100 signatures from their district. Only petitions started in 2025 are included in the score."}),(0,t.jsx)("div",{className:"mb-4 flex flex-col items-center",children:l.map(e=>(0,t.jsxs)("div",{className:"my-1 inline-block rounded-full px-3 py-1",style:{backgroundColor:e.labelColor,color:e.textColor},children:[(0,t.jsx)("span",{className:"mr-2",children:e.rangeText}),(0,t.jsx)("span",{className:"mr-2 font-bold",children:e.label})]},e.label))}),m&&(0,t.jsxs)(ee.E,{as:"p",className:"pb-4",children:["Since this elected official has responded to ",(0,t.jsx)("span",{className:"font-bold",children:o})," out of ",(0,t.jsx)("span",{className:"font-bold",children:d})," petitions, they have been rated"," ",(0,t.jsx)("span",{className:"font-bold",children:null==r?void 0:r.label}),"."]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"pb-4",children:"Are you this elected official? To learn more about your Responsiveness Score and how to improve it, get in touch with us at:"}),(0,t.jsxs)("ul",{children:[(0,t.jsxs)("li",{children:[" ⢠",s.phone," "]}),(0,t.jsxs)("li",{children:["⢠or email"," ",(0,t.jsx)(eb.N,{href:s.emailHref,"data-qa":"dm_profile_change.org_email",target:"_blank",onClick:()=>v(),className:"no-underline",children:(0,t.jsx)("span",{className:"text-typography-strong font-bold",children:s.email})})]})]})]})]})]})},eE=()=>{let{data:{scoreTag:e,responsivenessScore:n}}=eD();return null!==n&&e?(0,t.jsx)("div",{className:"w-full lg:relative lg:mt-8 lg:w-[343px] xl:w-[496px]","data-testid":"dm-responsiveness-score",children:(0,t.jsxs)("div",{className:(0,ec.cn)("bg-background-raised text-typography-strong flex w-full flex-col items-center rounded-md p-4","lg:absolute lg:top-0 lg:right-0 lg:z-20","shadow-[0px_10px_20px_#18191F20]"),style:{border:"2px s
1olid ".concat(e.labelColor)},children:[(0,t.jsxs)(ee.E,{role:"heading","aria-level":2,children:["Petition response rate: ",n,"%"]}),(0,t.jsx)("div",{className:"my-2 rounded-full px-4 py-2 text-lg font-semibold",style:{backgroundColor:e.labelColor,color:e.textColor},children:e.label}),(0,t.jsx)(eP,{})]})}):null};var eM=i(69804);let eI=()=>{(0,eM.su)("dm_profile_profile_card_view");let{data:{featureConfigs:{dmReputationLayer:e}}}=g(),n=!e.enabled,i=ep();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-8 mb-14 px-4 md:px-0",children:[(0,t.jsxs)("div",{className:"mb-6 flex flex-col items-center justify-between gap-6 lg:flex-row lg:items-start","data-qa":"dm-header",children:[(0,t.jsx)("div",{className:"absolute top-14 h-[105px] w-full lg:hidden",children:(0,t.jsxs)("div",{className:"relative h-full w-full",children:[(0,t.jsx)("div",{className:"bg-background-raised h-full w-full"}),(0,t.jsx)("div",{className:"bg-background-base absolute bottom-[-50px] h-[100px] w-full rounded-tl-[100%] rounded-tr-[100%]"})]})}),(0,t.jsxs)("div",{className:"items-center gap-6 lg:flex",children:[(0,t.jsx)(eN,{}),(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsx)(ew,{})})]}),i&&(0,t.jsx)(eE,{})]}),(0,t.jsx)(e_,{})]}),n&&(0,t.jsx)(eS,{})]})};var eL=i(21545),eT=i(47568),ez=i(78979),eO=i(98286);let eA=e=>{let{ref:n,responseId:i,message:a,petitionHref:s,petitionAsk:l,petitionId:r}=e,{data:{displayName:o,responseText:d,avatarUrl:c,showReadMoreLink:m},actions:{onClickPetitionLink:u,onClickReadMoreLink:v}}=function(e,n,i){let a=(0,eg.v)(),{data:{displayName:t,photo:s}}=g(),[l,r]=(0,Q.useState)(!1),[o,d]=(0,Q.useState)(i.length>250),c=(0,U.z1)(),m=(0,Q.useMemo)(()=>l||i.length<=250?i:"".concat(i.slice(0,250),"..."),[i,l]);return{data:{displayName:t,avatarUrl:(null==s?void 0:s.userSmall.url)||a("/profile-img/default-user-profile.svg"),responseText:m,showReadMoreLink:o},actions:{onClickReadMoreLink:n=>{c("dm_profile_response_click",{response_id:e}),r(!l),d(!o),n.current&&n.current.focus()},onClickPetitionLink:()=>{c("dm_profile_response_petition_click",{petition_id:n,response_id:e})}}}}(i,r,a),p=(0,Q.useRef)(null);return(0,t.jsxs)(ez.Zp,{"data-qa":"dm-responses-card",ref:n,className:"flex h-full flex-col",children:[(0,t.jsxs)(ez.bw,{children:[(0,t.jsxs)("div",{className:"mb-4 flex items-center gap-2",children:[(0,t.jsx)(et.e,{alt:"".concat(o," avatar"),size:80,src:c}),(0,t.jsx)(ee.E,{variant:"body",children:(0,t.jsx)(ej.MV,{value:"corgi.decision_maker_profile.response_card.header",replacements:{displayName:o,petitionLink:(0,t.jsx)(eb.N,{href:s,className:"inline",onClick:()=>u(),"data-qa":"dm-response-card-petition-link",children:l})}})})]}),(0,t.jsx)("div",{className:"border-stroke-weak max-h-[250px] flex-1 overflow-y-auto border-l-2 pl-4",children:(0,t.jsxs)(ee.E,{as:"p",variant:"body",tabIndex:0,ref:p,children:["â",(0,eO.Z)(d),"â"]})})]}),(0,t.jsx)(ez.wL,{children:m&&(0,t.jsx)(eb.N,{as:"button",variant:"secondary",onClick:()=>v(p),"data-qa":"dm-response-read-more",children:(0,t.jsx)(ej.HT,{value:"corgi.decision_maker_profile.response_card.link"})})})]})};eA.displayName="ResponseListCard";let eR=()=>{let{data:{displayName:e,responses:n,hasNextPage:i,nextPageLoading:a,showDmrlSeparator:l},actions:{loadMore:r}}=function(){let{data:{displayName:e,enrichedData:n,featureConfigs:{dmReputationLayer:i}}}=g(),a=(0,eh.GN)("showDmrl"),t=i.enabled||"true"===a,{data:{items:s,hasNextPage:l,nextPageLoading:r},actions:{loadMore:o}}=S(),d=(0,eM.gU)();return(0,Q.useEffect)(()=>{s.length>0&&d("dm_profile_response_list_view")},[s.length,d]),{data:{displayName:e,responses:s,hasNextPage:l,nextPageLoading:r,showDmrlSeparator:t&&null!==n},actions:{loadMore:o}}}(),{data:{totalCount:o,totalCountLocalized:d}}=S(),{data:{featureConfigs:{dmReputationLayer:c}}}=g(),m=(0,eh.GN)("showDmrl"),u=c.enabled||"true"===m,{containerRef:v,loadMoreRef:p,loadingRef:k,getListItemRef:f,recordListEvent:h,lastEvent:x}=(0,eT.DL)(),{translate:N}=(0,ej.s9)();return n.length?(0,t.jsxs)("div",{"data-qa":"dm-responses-content",ref:v,className:"mb-10 md:mb-14",children:[l&&(0,t.jsx)(H.w,{orientation:"horizontal",className:"mb-14"}),(0,t.jsx)(ee.E,{as:"h2",variant:"heading",size:"small",className:"mb-5 md:mb-10",children:u?(0,t.jsx)(ej.$C,{value:"corgi.decision_maker_profile.responses_list.header_with_count",count:o,replacements:{displayName:e,count:d}}):(0,t.jsx)(ej.HT,{value:"corgi.decision_maker_profile.responses_list.header",replacements:{displayName:e}})}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:n.map((e,i)=>e.petition?(0,t.jsxs)("div",{children:["loadMore"===x.type&&i===x.firstNewItemIndex&&(0,t.jsx)("div",{className:"sr-only",role:"alert",children:(0,t.jsx)(ej.$C,{value:"corgi.decision_maker_profile.responses_list.fetched_more",count:n.length-x.previousItemsCount,replacements:{count:n.length-x.previousItemsCount}})}),(0,t.jsx)(eA,{responseId:e.id,message:e.message,petitionHref:"/p/".concat(encodeURIComponent(e.petition.slug)),petitionAsk:e.petition.ask,petitionId:e.petition.id,ref:f(i)})]},e.id):null)}),a&&(0,t.jsxs)("div",{className:"mt-16",children:[(0,t.jsx)("div",{className:"sr-only",role:"alert",children:(0,t.jsx)(ej.HT,{value:"corgi.decision_maker_profile.responses_list.fetching_more"})}),(0,t.jsx)(s.y,{className:"mx-auto",ref:k,"data-testid":"load-more-btn"})]}
1),i&&!a&&(0,t.jsx)(eL.$,{className:"mt-5 mb-6 basis-full md:mt-10 md:basis-1/3",size:"small",onClick:()=>{h({type:"loadMore",itemsCount:n.length}),r()},"data-qa":"dm-responses-load-more",ref:p,children:N("corgi.decision_maker_profile.load_more")})]}):null},eU=()=>{let{data:{displayName:e,id:n},actions:{trackSapClick:i}}=function(){let{data:{displayName:e,id:n}}=g(),i=(0,U.z1)(),a=(0,Q.useCallback)(()=>{i("dm_profile_sap_click",{source_location:"sap_container"})},[i]);return(0,eM.su)("dm_profile_sap_view"),{data:{displayName:e,id:n},actions:{trackSapClick:a}}}();return(0,t.jsxs)("div",{className:"border-stroke-disabled space-y-6 rounded-lg border p-6 text-left",children:[(0,t.jsx)(ee.E,{as:"h2",variant:"heading",className:"text-size-heading-xs md:text-size-heading-small",children:(0,t.jsx)(ej.HT,{value:"corgi.decision_maker_profile.sap_to_dm.heading",replacements:{displayName:e}})}),(0,t.jsx)("div",{className:"flex justify-start",children:(0,t.jsx)(eL.$,{href:"/start-a-petition/intro?source_location=dm_profile_page&decision_maker_id=".concat(n),as:"a",variant:"primary",className:"whitespace-normal md:w-fit [&_*]:!text-[16px]","data-qa":"dm-sap-cta-button",onClick:i,children:(0,t.jsx)(ej.HT,{value:"corgi.decision_maker_profile.sap_to_dm.cta_button"})})})]})},eV=()=>{let e=(0,U.z1)(),n=(0,Q.useCallback)(()=>{e("dm_profile_summary_by_ai_learn_more_click")},[e]);return(0,t.jsx)("div",{"data-testid":"dm-summary-by-ai-disclosure",className:"text-typography-weak mt-10 mb-5 md:mt-14 md:mb-9",children:(0,t.jsxs)("p",{className:"text-size-body-xs",children:["Info sourced from public filings, verified media, and official campaign materials and summarized by AI."," ",(0,t.jsx)(l.N_,{to:"https://help.change.vote/sources",target:"_blank","data-qa":"dm-summary-by-ai-learn-more-link",onClick:n,className:"text-typography-interactive block no-underline md:inline",children:"Learn more â"})]})})};var eq=i(54825),eG=i(82998);let eH=()=>{let{data:{petitions:e,hasNextPage:n,nextPageLoading:i,sectionHeader:a,showDmrlSeparator:l},actions:{onClickPetitionLink:r,loadMore:o}}=function(){let{data:{items:e,hasNextPage:n,nextPageLoading:i,totalCount:a},actions:{loadMore:t}}=T(),{data:{totalCount:s}}=S(),{data:{displayName:l,enrichedData:r,featureConfigs:{dmReputationLayer:o}}}=g(),d=(0,eh.GN)("showDmrl"),c=o.enabled||"true"===d,m=(0,U.z1)(),{translate:u,translatePlural:v}=(0,ej.s9)(),p=c||!s&&a?v("corgi.decision_maker_profile.petitions_list.header_with_count",a,{count:a,displayName:l}):u("corgi.decision_maker_profile.petitions_list.header",{displayName:l}),k=(0,Q.useMemo)(()=>(0,eG.A)(e,"id"),[e]),f=(0,eM.gU)();return(0,Q.useEffect)(()=>{k.length>0&&f("dm_profile_petition_list_view")},[k.length,f]),{data:{petitions:k,hasNextPage:n,nextPageLoading:i,sectionHeader:p,showDmrlSeparator:c&&null!==r},actions:{onClickPetitionLink:e=>{m("dm_profile_petition_click",{petition_id:e})},loadMore:t}}}(),{containerRef:d,loadMoreRef:c,loadingRef:m,getListItemRef:u,recordListEvent:v,lastEvent:p}=(0,eT.DL)(),{translate:k,translatePlural:f}=(0,ej.s9)();return e.length?(0,t.jsxs)("div",{"data-qa":"dm-petitions-content",ref:d,className:"mb-10 md:mb-14",children:[l&&(0,t.jsx)(H.w,{orientation:"horizontal",className:"mb-14","data-testid":"dmrl-separator"}),(0,t.jsx)(ee.E,{as:"h2",variant:"heading",size:"small",className:"mb-5 md:mb-10",children:a}),(0,t.jsx)("div",{className:"flex justify-start",children:(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:e.map((n,i)=>{var a;return(0,t.jsxs)("div",{children:["loadMore"===p.type&&i===p.firstNewItemIndex&&(0,t.jsx)("div",{className:"sr-only",role:"alert",children:(0,t.jsx)(ej.$C,{value:"corgi.decision_maker_profile.petitions_list.fetched_more",count:e.length-p.previousItemsCount,replacements:{count:e.length-p.previousItemsCount}})}),(0,t.jsx)(eq.Z,{className:"h-full",imageUrl:null==(a=n.photo)?void 0:a.petitionMedium.url,location:n.relevantLocationLocalizedName||"",petitionId:n.id,petitionLinkOnClick:()=>r(n.id),petitionLinkUrl:"/p/".concat(encodeURIComponent(n.slug)),signaturesLabel:f("corgi.components.petition_card.signatures",n.signatureState.signatureCount.displayed,{countLocalized:n.signatureState.signatureCount.displayedLocalized}),mediaMentionsLabel:n.mediaHitsConnection.totalCount>0?f("corgi.components.petition_card.media_mentions",n.mediaHitsConnection.totalCount,{mediaMentionsCount:n.mediaHitsConnection.totalCountLocalized}):void 0,title:n.ask,ref:u(i)})]},n.id)})})}),i&&(0,t.jsxs)("div",{className:"mt-16",children:[(0,t.jsx)("div",{className:"sr-only",role:"alert",children:(0,t.jsx)(ej.HT,{value:"corgi.decision_maker_profile.petitions_list.fetching_more"})}),(0,t.jsx)(s.y,{className:"mx-auto",ref:m,"data-testid":"load-more-btn"})]}),n&&!i&&(0,t.jsx)(eL.$,{className:"mt-5 basis-full md:mt-10 md:basis-1/3",size:"small",onClick:()=>{v({type:"loadMore",itemsCount:e.length}),o()},"data-qa":"dm-petitions-load-more",ref:c,children:k("corgi.decision_maker_profile.load_more")})]}):null};function e$(){let{data:{displayName:e,lastName:n,enrichedData:i}}=g(),a=(0,Q.useMemo)(()=>{var e;return null!=(e=null==i?void 0:i.issues.map(e=>({graphic:e.graphic,issueId:e.issueId,stances:e.stances,title:e.title})))?e:[]},[i]);return{data:{headingText:"Where ".concat(null!=n?n:e," stands on these issues"),issues:a}}}let eB=()=>{let{data:{issues:e}}=e$();return 0===e.length?null:(0,t.jsx)(eW,{})},eW=()=>{let{data:{headingText:e,issues:n}}=e$();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(H.w,{orientation:"horizontal",className:"mb-14"}),(0,t.jsxs)("div",{className:"flex flex-col gap-5 pb-8 md:gap-8","data-testid":"dm-top-issues-container",children:[(0,t.jsx)(ee.E,{as:"h2",variant:"heading",size:"small",children:e}),(0,t.jsx)("ul",{className:"flex flex-col gap-5 md:gap-6",children:n.map(e=>(0,t.jsxs)("li",{className:"flex flex-col gap-2",children:[(0,t.jsxs)(ee.E,{fontWeight:"bold",children:[e.graphic," ",e.title]}),(0,t.jsx)("ul",{className:"ml-5.5 flex list-outside list-disc flex-col",children:e.stances.map(n=>(0,t.jsx)("li",{className:"text-typography-strong",children:(0,t.jsx)(ee.E,{size:"small",className:"text-typography-strong",children:n})},"Issue_".concat(e.issueId,"_Stance_").concat(n)))})]},"Issue_".concat(e.issueId)))})]})]})};var eQ=i(91480),eY=i(55298),eJ=i(68633),eK=i(76054),eZ=i(50182),eX=i(23483),e0=i(20580),e1=i(18492),e2=i(53498);
1let e5=["facebook","x","instagram","reddit","youtube","tiktok","linkedin","mailto"],e4={facebook:{icon:eY.e,variant:"facebook",domains:["facebook.com","fb.com"]},x:{icon:eJ.F,variant:"twitter",domains:["x.com","twitter.com"]},instagram:{icon:eK.o,variant:"instagram",domains:["instagram.com"]},reddit:{icon:eZ.G,variant:"reddit",domains:["reddit.com"]},youtube:{icon:eX.p,variant:"default",domains:["youtube.com","youtu.be"]},tiktok:{icon:e0.c,variant:"default",domains:["tiktok.com"]},linkedin:{icon:e1.k,variant:"default",domains:["linkedin.com"]},mailto:{icon:e2.a,variant:"default",domains:["mailto"]}};function e6(e){try{if(e.startsWith("mailto:"))return"mailto";let n=e.startsWith("@")?e.slice(1):e,i=n.startsWith("http")?n:"https://".concat(n),{hostname:a}=new URL(i);return a.replace(/^www\./,"")}catch(e){return""}}function e8(e,n){if("mailto"===n)return e.startsWith("mailto:");let i=e6(e);if(!i)return!1;let{domains:a}=e4[n];return a.some(e=>i===e||i.endsWith(".".concat(e)))}function e9(){let{data:{displayName:e,lastName:n,enrichedData:i}}=g(),t=(0,U.z1)(),s=(0,Q.useMemo)(()=>{var e,n;return null!=(e=null==i||null==(n=i.websites)?void 0:n.map(e=>({label:e.label,url:e.url})))?e:[]},[i]),l=(0,Q.useMemo)(()=>{var e,n,i;let a=s.filter(e=>e.url&&!e5.some(n=>{var i;return e8(null!=(i=e.url)?i:"",n)})),t=["substack.com","tumblr.com","bsky.app","bluesky.social"],l=a.filter(e=>{var n;return!t.includes(e6(null!=(n=e.url)?n:""))}),r=null==(n=l.find(e=>{var n;return null==(n=e.url)?void 0:n.includes(".gov")}))?void 0:n.url;return null!=(e=null!=r?r:null==(i=l.find(e=>e.url))?void 0:i.url)?e:null},[s]),r=(0,Q.useMemo)(()=>e5.flatMap(e=>{var n;let i=null==(n=s.find(n=>n.url&&e8(n.url,e)))?void 0:n.url;return i?[(0,a._)({platform:e,url:i},e4[e])]:[]}),[s]);return{data:{headingText:"Connect with ".concat(null!=n?n:e),personalWebsite:l,socialLinks:r},actions:{trackView:(0,Q.useCallback)(()=>{t("dm_profile_websites_view")},[t]),handleTrackLinkClick:(0,Q.useCallback)(e=>{let{platform:n,url:i}=e;t("dm_profile_website_click",{media_source:n,url:i})},[t])}}}let e3=()=>{let{data:{personalWebsite:e,socialLinks:n}}=e9();return e||0!==n.length?(0,t.jsx)(e7,{}):null},e7=()=>{let{data:{headingText:e,personalWebsite:n,socialLinks:i},actions:{trackView:a,handleTrackLinkClick:s}}=e9();return(0,Q.useEffect)(()=>{a()},[a]),(0,t.jsxs)("div",{className:"flex flex-col","data-testid":"dm-websites-container",children:[(0,t.jsx)(ee.E,{as:"h2",variant:"heading",size:"small",className:"mb-5",children:e}),n&&(0,t.jsx)("div",{className:"mb-5",children:(0,t.jsx)(eb.N,{href:n,target:"_blank",className:"block overflow-hidden","data-qa":"dm-personal-website-link",onClick:()=>s({platform:"personal_website",url:n}),children:(0,t.jsx)(ee.E,{size:"large",className:"text-typography-strong block truncate",children:n})})}),(0,t.jsx)(eQ.dg,{className:"flex justify-start gap-2.5",children:i.map(e=>{let{platform:n,url:i,icon:a,variant:l}=e;return(0,t.jsx)(eb.N,{href:i,target:"_blank","data-qa":"dm-social-link_".concat(n),onClick:()=>s({platform:n,url:i}),children:(0,t.jsx)(eQ.b6,{icon:(0,t.jsx)(a,{}),"aria-label":n,size:"large",variant:l,role:void 0,"data-qa":n,className:"h-[44px] w-[44px]"})},"Share_".concat(n))})})]})},ne=()=>{let{data:{dmReputationLayer:{isDmrlEnabled:e,hasCampaignPhotoOrWebsites:n,hasDmrlData:i}}}=function(){var e;let[n,i]=(0,eh.TQ)(["source_location","showDmrl"]),{data:{id:a,type:t,verifiedAt:s,enrichedData:l,featureConfigs:{dmReputationLayer:r}}}=g(),{data:{totalCount:o}}=T(),d=ep(),c=r.enabled||"true"===i;(0,eM.su)("dm_show_view",{dm_id:"dm_".concat(a),dm_verified:!!s,dm_type:t,dm_petitions_num:o,source_location:n,dm_responsiveness_score_enabled:d},[]),function(e){let{isDmrlEnabled:n,decisionMakerId:i}=e,a=(0,eM.gU)();(0,Q.useEffect)(()=>{n&&a("dmrl_page_view",{decision_maker_id:i})},[])}({isDmrlEnabled:c,decisionMakerId:a});let m=!!(null==l?void 0:l.campaignPhotoUrl),u=(null!=(e=null==l?void 0:l.websites)?e:[]).length>0;return{data:{dmReputationLayer:{isDmrlEnabled:c,hasCampaignPhotoOrWebsites:m||u,hasEndorsements:!!(null==l?void 0:l.endorsementsOverview),hasDmrlData:null!==l}}}}();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"container pb-14",children:[(0,t.jsx)(eI,{}),(0,t.jsxs)("div",{className:"overflow-x-hidden px-4 md:px-0",children:[(0,t.jsx)(eH,{}),(0,t.jsx)(eR,{}),e&&(0,t.jsx)(eB,{}),(0,t.jsx)(eU,{}),e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ev,{}),n&&(0,t.jsx)(H.w,{orientation:"horizontal",className:"my-14"}),(0,t.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,t.jsx)("div",{className:"order-2 md:order-1",children:(0,t.jsx)(J,{})}),(0,t.jsx)("div",{className:"order-1 mb-5 md:order-2",children:(0,t.jsx)(e3,{})})]}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eV,{}),(0,t.jsx)("div",{className:"mb-5 md:mb-6"}),(0,t.jsx)(W.E,{"data-qa":"dm-profile-report-ai-issue-link",pageUrl:(0,$.B)()?void 0:(0,B.zk)().location.href,type:"generic"})]})]})]})]}),(0,t.jsx)(X,{})]})},nn=e=>{let{context:{error:n}}=e;throw Error("Failed to retrieve data for DecisionMakerProfile page (error: ".concat(n,")"))},ni=(0,r.fG)(function(e){let{prefetchedData:n}=e,{slug:i}=(0,l.op)();return(0,t.jsx)(q,{slug:i,prefetchedData:n,errorHandler:nn,loadingFallback:(0,t.jsx)(s.y,{className:"mx-auto my-64"}),children:(0,t.jsx)(ne,{})})},{prefetchName:"25eb003bdc3e4df2164d175439a908c3",prefetchData:async e=>A(e.params.slug,e),pageTitle:e=>{let{prefetchedData:n,i18n:i,fromTemplate:a}=e;if(!(0,V.s1)(n.pageData))return;let{title:t}=n.pageData.pageData;return a("".concat(i.translate("corgi.decision_maker_profile.meta.page_title",{display_name:n.pageData.pageData.displayName})).concat(t?" - ".concat(t):""))},pageCanonical:e=>{let{prefetchedData:n}=e;if(!(0,V.s1)(n.pageData))return;let{slug:i,id:a}=n.pageData.pageData;return"/decision-makers/".concat(i||a)},pageMetadata:e=>{var n;let{prefetchedData:i,pageTitle:a,i18n:t,getStaticAssetUrl:s}=e;if(!(0,V.s1)(i.pageData))return;let{description:l,photo:r,displayName:o,title:d}=i.pageData.pageData,c=l?l.slice(0,150):void 0,m=[t.translate("corgi.decision_maker_profile.meta.description.name_label",{display_name:o}),d?t.translate("corgi.decision_maker_profile.meta.description.title_label",{dm_title:d}):"",t.translate("corgi.decision_maker_profile.meta.description.page_summary")].filter(
1Boolean).join(". "),u=(0,G.$)(null!=(n=null==r?void 0:r.userLarge.url)?n:s("/images/default-petition.gif"));return{description:m,ogDescription:c,ogImage:u,ogTitle:o,ogType:"website",twitterImage:u,twitterImageAlt:a}},pageSchemaOrg:e=>{let{prefetchedData:n,definePerson:i,defineAddress:t}=e;if(!(0,V.s1)(n.pageData))return;let{description:s,displayName:l,id:r,photo:o,title:d,slug:c,state:m,country:u}=n.pageData.pageData,v=(null==o?void 0:o.userLarge.url)?(0,G.$)(o.userLarge.url):null;return i((0,a._)({name:l,url:"/decision-makers/".concat(c||r),description:s?s.slice(0,150):void 0},v&&{image:v},d&&{jobTitle:d},m&&u&&{address:t({addressRegion:m.stateCode,addressCountry:u.countryCode})}))}})},27540(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DecisionMakerData"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"decisionMaker"},name:{kind:"Name",value:"decisionMakerBySlugOrId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slugOrId"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"descriptionAi"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"district"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"photo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userLarge"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"processing"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"userSmall"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"processing"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"publiclyVisible"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stateCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifiedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"responsivenessData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalRelevantPetitions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"respondedToPetitions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"responsivenessScore"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isVisible"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"enrichedData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"websites"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"campaignPhotoUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"summaryLong"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"header"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"body"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"issues"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphic"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"issueId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stances"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"endorsementsOverview"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"summary"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endorsers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endorserCategory"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endorserRecommendation"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"endorsements"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"person"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profilePhoto"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"photoUrl"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"organization"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profilePhoto"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"photoUrl"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"rationale"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"voterGuidePicks"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"voterGuide"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profilePhoto"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"photoUrl"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"featureConfigs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dmProfileResponsivenessScoreConfig"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dmReputationLayer"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1245}};n.loc.source={body:"query DecisionMakerData($slug: String!) {\n decisionMaker: decisionMakerBySlugOrId(slugOrId: $slug) {\n description\n descriptionAi\n displayName\n lastName\n district\n id\n photo {\n id\n userLarge {\n url\n processing\n }\n userSmall {\n url\n processing\n }\n }\n publiclyVisible\n slug\n state {\n stateCode\n displayName\n }\n country {\n countryCode\n }\n title\n type\n verifiedAt\n responsivenessData {\n totalRelevantPetitions\n respondedToPetitions\n responsivenessScore\n isVisible\n }\n enrichedData {\n websites {\n label\n url\n }\n campaignPhotoUrl\n summaryLong {\n header\n body\n }\n issues {\n graphic\n issueId\n stances\n title\n }\n endorsementsOverview {\n summary\n endorsers {\n endorserCategory\n endorserRecommendation\n }\n }\n endorsements {\n id\n person {\n id\n displayName\n profilePhoto {\n photoUrl\n }\n }\n organization {\n name\n profilePhoto {\n photoUrl\n }\n }\n rationale\n }\n voterGuidePicks {\n id\n voterGuide {\n author {\n displayName\n profilePhoto {\n p
1hotoUrl\n }\n }\n }\n }\n }\n }\n featureConfigs {\n dmProfileResponsivenessScoreConfig\n dmReputationLayer\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;!function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var a=n.type;"NamedType"===a.kind&&i.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})}(e,n),i[e.name.value]=n}}),e.exports=n,e.exports.DecisionMakerData=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,l=new Set,r=new Set;for(s.forEach(function(e){r.add(e)});r.size>0;){var o=r;r=new Set,o.forEach(function(e){l.has(e)||(l.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return l.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"DecisionMakerData")},51481(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DecisionMakerResponses"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"cursor"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"numResponsesToFetch"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"decisionMaker"},name:{kind:"Name",value:"decisionMakerBySlugOrId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slugOrId"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"responsesConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"cursor"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"numResponsesToFetch"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalCountLocalized"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"petition"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:399}};n.loc.source={body:"query DecisionMakerResponses($slug: String!, $cursor: ID, $numResponsesToFetch: Int!) {\n decisionMaker: decisionMakerBySlugOrId(slugOrId: $slug) {\n id\n responsesConnection(after: $cursor, first: $numResponsesToFetch) {\n totalCount\n totalCountLocalized\n nodes {\n id\n message\n petition {\n ask\n id\n slug\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;!function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);
1else if("VariableDefinition"===n.kind){var a=n.type;"NamedType"===a.kind&&i.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})}(e,n),i[e.name.value]=n}}),e.exports=n,e.exports.DecisionMakerResponses=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,l=new Set,r=new Set;for(s.forEach(function(e){r.add(e)});r.size>0;){var o=r;r=new Set,o.forEach(function(e){l.has(e)||(l.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return l.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"DecisionMakerResponses")},95298(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DecisionMakerTargetedPetitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"cursor"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"numPetitionsToFetch"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"decisionMaker"},name:{kind:"Name",value:"decisionMakerBySlugOrId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slugOrId"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetedPetitionsConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"cursor"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"numPetitionsToFetch"}}},{kind:"Argument",name:{kind:"Name",value:"minSignatures"},value:{kind:"IntValue",value:"5"}},{kind:"Argument",name:{kind:"Name",value:"sortBy"},value:{kind:"StringValue",value:"total_signature_count",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isVerifiedVictory"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"relevantLocationLocalizedName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dmResponsesConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"1"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"decisionMaker"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"mediaHitsConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"1"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalCountLocalized"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"photo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"petitionMedium"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"processing"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"signatureState"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"signatureCount"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"displayed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayedLocalized"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"photo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userMedium"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:1008}};n.loc.source={body:'query DecisionMakerTargetedPetitions($slug: String!, $cursor: ID, $numPetitionsToFetch: Int!) {\n decisionMaker: decisionMakerBySlugOrId(slugOrId: $slug) {\n id\n targetedPetitionsConnection(\n after: $cursor\n first: $
1numPetitionsToFetch\n minSignatures: 5\n sortBy: "total_signature_count"\n ) {\n totalCount\n nodes {\n ask\n description\n id\n isVerifiedVictory\n slug\n relevantLocationLocalizedName\n\n dmResponsesConnection(first: 1) {\n totalCount\n nodes {\n id\n decisionMaker {\n displayName\n id\n }\n }\n }\n mediaHitsConnection(first: 1) {\n totalCount\n totalCountLocalized\n }\n\n photo {\n id\n petitionMedium {\n processing\n url\n }\n }\n\n signatureState {\n signatureCount {\n displayed\n displayedLocalized\n }\n }\n\n user {\n id\n displayName\n photo {\n id\n userMedium {\n url\n }\n }\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;!function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var a=n.type;"NamedType"===a.kind&&i.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})}(e,n),i[e.name.value]=n}}),e.exports=n,e.exports.DecisionMakerTargetedPetitions=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,l=new Set,r=new Set;for(s.forEach(function(e){r.add(e)});r.size>0;){var o=r;r=new Set,o.forEach(function(e){l.has(e)||(l.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return l.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"DecisionMakerTargetedPetitions")}}]); 2//# sourceMappingURL=decisionMaker-profile.3df2299c98359e6b.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.