FollowContactButtonGroup.react",["ix","CometRelay","CometRow.react","CometRowItem.react","FollowContactButtonGroup_EditFollowStatusMutation.graphql","TetraButton.react","TownHallCometClickLogger","TownHallRepContactInfoDialogTrigger.react","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState,m={buttonWidth:{paddingStart:"xkhd6sd",paddingLeft:null,paddingRight:null,paddingEnd:"x4uap5",width:"xrmyp2",$$css:!0}},n=i!==void 0?i:i=b("FollowContactButtonGroup_EditFollowStatusMutation.graphql");function a(a){var b=a.address,e=a.canMessage;e=e===void 0?!1:e;var f=a.contactText,g=a.email,i=a.following,j=a.followingText,o=a.followText,p=a.name,q=a.phoneNumber,r=a.profileId,s=a.repURI,t=a.subtype;a=l(!1);var u=a[0],v=a[1];a=l(i);var w=a[0],x=a[1],y=d("CometRelay").useRelayEnvironment(),z=function(){v(!0),d("CometRelay").commitMutation(y,{mutation:n,onCompleted:function(a){var b;(a==null?void 0:(b=a.toggle_follow_representative)==null?void 0:b.success)===!0&&x(a.toggle_follow_representative.is_following===!0);v(!1)},variables:{input:{is_following:w,profile_id:r}}})};i=e===!0||b.length>0||g!=null||q!=null;return k.jsxs(c("CometRow.react"),{align:"justify",paddingHorizontal:0,spacingHorizontal:0,children:[k.jsx(c("CometRowItem.react"),{xstyle:m.buttonWidth,children:k.jsx(c("TetraButton.react"),{disabled:u,icon:w?d("fbicon")._(h("602176"),16):d("fbicon")._(h("618352"),16),label:w?j:o,onPress:function(){z(),c("TownHallCometClickLogger")(w?"unfollow_representative":"follow_representative",t)},reduceEmphasis:!0,type:"primary"})}),k.jsx(c("CometRowItem.react"),{xstyle:m.buttonWidth,children:i?k.jsx(c("TownHallRepContactInfoDialogTrigger.react"),{address:b,canMessage:e,contactText:f,email:g,name:p,phoneNumber:q,repURI:s,subtype:t}):null})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
TownHallRepresentativesContent.react",["BaseDivider.react","CivicActionProductSubtype","CometColumn.react","CometColumnItem.react","CometLink.react","CometProfilePhoto.react","CometRelay","CometRow.react","CometRowItem.react","FDSTextPairing.react","FollowContactButtonGroup.react","TownHallCometClickLogger","TownHallRepresentativesContent_strategy.graphql","getJSEnumSafe","react","recoverableViolation","useTownHallVPVDLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={buttonPairWidth:{width:"x1t9vceh",$$css:!0},dividerRow:{justifyContent:"x13a6bvl",width:"x1cvmir6",$$css:!0},root:{width:"x1cvmir6",$$css:!0}};function a(a){a=a.strategy;a=d("CometRelay").useFragment(h!==void 0?h:h=b("TownHallRepresentativesContent_strategy.graphql"),a);var e=a==null?void 0:a.content_view_model,f=c("getJSEnumSafe")(c("CivicActionProductSubtype"),e==null?void 0:e.subtype);a={subtype:f};a=c("useTownHallVPVDLogger")(a);var g=a[0];if((e==null?void 0:e.representatives)==null||f==null)return c("recoverableViolation")("Not enough data in TownHallRepresentativesContentRenderingStrategy","civic_action");var i=e==null?void 0:e.representatives;a=i.map(function(a,b){var d;return(a==null?void 0:a.pfp_uri)==null?c("recoverableViolation")("Unexpected null value in town hall representatives","civic_action"):j.jsxs(c("CometColumnItem.react"),{align:"start",ref:g,xstyle:k.root,children:[j.jsxs(c("CometRow.react"),{children:[j.jsx(c("CometRowItem.react"),{children:j.jsx(c("CometProfilePhoto.react"),{shape:"circle",size:60,source:{uri:a.pfp_uri}})}),j.jsx(c("CometRowItem.react"),{children:j.jsxs(c("CometColumn.react"),{children:[j.jsx(c("CometColumnItem.react"),{align:"start",xstyle:k.buttonPairWidth,children:j.jsx(c("FDSTextPairing.react"),{body:(d=a.office_title)!=null?d:null,headline:j.jsx(c("CometLink.react"),{href:(d=a.link_uri)!=null?d:"#",onPressStart:function(){return c("TownHallCometClickLogger")("representative_external_url",f)},target:"_blank",children:a.full_name}),level:4})}),j.jsx(c("CometColumnItem.react"),{align:"stretch",xstyle:k.buttonPairWidth,children:j.jsx(c("FollowContactButtonGroup.react"),{address:a==null?void 0:a.address,canMessage:a==null?void 0:a.can_message,contactText:String(e.contact_button_text),email:a==null?void 0:a.email,followText:String(e.follow_button_text),following:Boolean(a.is_following),followingText:String(e.following_button_text),name:(d=a.full_name)!=null?d:"",phoneNumber:a==null?void 0:a.phone_number,profileId:(d=a.profile_id)!=null?d:"",repURI:a==null?void 0:a.rep_messenger_uri,subtype:f})})]})})]}),b===i.length-1?null:j.jsx(c("CometRow.react"),{xstyle:k.dividerRow,children:j.jsx(c("CometRowItem.react"),{xstyle:k.buttonPairWidth,children:j.jsx(c("BaseDivider.react"),{})})})]},b)});a=a.filter(function(a){return a!=null});return j.jsxs(c("CometColumn.react"),{paddingVertical:16,xstyle:k.root,children:[j.jsx(c("CometColumnItem.react"),{paddingHorizontal:16,paddingTop:0,paddingVertical:4,children:j.jsx(c("FDSTextPairing.react"),{body:e.subtitle,headline:e==null?void 0:e.title,level:2})}),a]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
FollowContactButtonGroup_EditFollowStatusMutation.graphql",["FollowContactButtonGroup_EditFollowStatusMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XFBEditFollowRepResponse",kind:"LinkedField",name:"toggle_follow_representative",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"error_message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_following",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"FollowContactButtonGroup_EditFollowStatusMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"FollowContactButtonGroup_EditFollowStatusMutation",selections:c},params:{id:b("FollowContactButtonGroup_EditFollowStatusMutation_facebookRelayOperation"),metadata:{},name:"FollowContactButtonGroup_EditFollowStatusMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
FollowContactButtonGroup_EditFollowStatusMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5365971970081181"}),null);
-----
FollowContactButtonGroup.react",["ix","CometRelay","CometRow.react","CometRowItem.react","FollowContactButtonGroup_EditFollowStatusMutation.graphql","TetraButton.react","TownHallCometClickLogger","TownHallRepContactInfoDialogTrigger.react","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState,m={buttonWidth:{paddingStart:"xkhd6sd",paddingLeft:null,paddingRight:null,paddingEnd:"x4uap5",width:"xrmyp2",$$css:!0}},n=i!==void 0?i:i=b("FollowContactButtonGroup_EditFollowStatusMutation.graphql");function a(a){var b=a.address,e=a.canMessage;e=e===void 0?!1:e;var f=a.contactText,g=a.email,i=a.following,j=a.followingText,o=a.followText,p=a.name,q=a.phoneNumber,r=a.profileId,s=a.repURI,t=a.subtype;a=l(!1);var u=a[0],v=a[1];a=l(i);var w=a[0],x=a[1],y=d("CometRelay").useRelayEnvironment(),z=function(){v(!0),d("CometRelay").commitMutation(y,{mutation:n,onCompleted:function(a){var b;(a==null?void 0:(b=a.toggle_follow_representative)==null?void 0:b.success)===!0&&x(a.toggle_follow_representative.is_following===!0);v(!1)},variables:{input:{is_following:w,profile_id:r}}})};i=e===!0||b.length>0||g!=null||q!=null;return k.jsxs(c("CometRow.react"),{align:"justify",paddingHorizontal:0,spacingHorizontal:0,children:[k.jsx(c("CometRowItem.react"),{xstyle:m.buttonWidth,children:k.jsx(c("TetraButton.react"),{disabled:u,icon:w?d("fbicon")._(h("602176"),16):d("fbicon")._(h("618352"),16),label:w?j:o,onPress:function(){z(),c("TownHallCometClickLogger")(w?"unfollow_representative":"follow_representative",t)},reduceEmphasis:!0,type:"primary"})}),k.jsx(c("CometRowItem.react"),{xstyle:m.buttonWidth,children:i?k.jsx(c("TownHallRepContactInfoDialogTrigger.react"),{address:b,canMessage:e,contactText:f,email:g,name:p,phoneNumber:q,repURI:s,subtype:t}):null})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
TownHallRepresentativesContent.react",["BaseDivider.react","CivicActionProductSubtype","CometColumn.react","CometColumnItem.react","CometLink.react","CometProfilePhoto.react","CometRelay","CometRow.react","CometRowItem.react","FollowContactButtonGroup.react","TetraTextPairing.react","TownHallCometClickLogger","TownHallRepresentativesContent_strategy.graphql","getJSEnumSafe","react","recoverableViolation","useTownHallVPVDLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={buttonPairWidth:{width:"x1t9vceh",$$css:!0},dividerRow:{justifyContent:"x13a6bvl",width:"x1cvmir6",$$css:!0},root:{width:"x1cvmir6",$$css:!0}};function a(a){a=a.strategy;a=d("CometRelay").useFragment(h!==void 0?h:h=b("TownHallRepresentativesContent_strategy.graphql"),a);var e=a==null?void 0:a.content_view_model,f=c("getJSEnumSafe")(c("CivicActionProductSubtype"),e==null?void 0:e.subtype);a={subtype:f};a=c("useTownHallVPVDLogger")(a);var g=a[0];if((e==null?void 0:e.representatives)==null||f==null)return c("recoverableViolation")("Not enough data in TownHallRepresentativesContentRenderingStrategy","civic_action");var i=e==null?void 0:e.representatives;a=i.map(function(a,b){var d;return(a==null?void 0:a.pfp_uri)==null?c("recoverableViolation")("Unexpected null value in town hall representatives","civic_action"):j.jsxs(c("CometColumnItem.react"),{align:"start",ref:g,xstyle:k.root,children:[j.jsxs(c("CometRow.react"),{children:[j.jsx(c("CometRowItem.react"),{children:j.jsx(c("CometProfilePhoto.react"),{shape:"circle",size:60,source:{uri:a.pfp_uri}})}),j.jsx(c("CometRowItem.react"),{children:j.jsxs(c("CometColumn.react"),{children:[j.jsx(c("CometColumnItem.react"),{align:"start",xstyle:k.buttonPairWidth,children:j.jsx(c("TetraTextPairing.react"),{body:(d=a.office_title)!=null?d:null,headline:j.jsx(c("CometLink.react"),{href:(d=a.link_uri)!=null?d:"#",onPressStart:function(){return c("TownHallCometClickLogger")("representative_external_url",f)},target:"_blank",children:a.full_name}),level:4})}),j.jsx(c("CometColumnItem.react"),{align:"stretch",xstyle:k.buttonPairWidth,children:j.jsx(c("FollowContactButtonGroup.react"),{address:a==null?void 0:a.address,canMessage:a==null?void 0:a.can_message,contactText:String(e.contact_button_text),email:a==null?void 0:a.email,followText:String(e.follow_button_text),following:Boolean(a.is_following),followingText:String(e.following_button_text),name:(d=a.full_name)!=null?d:"",phoneNumber:a==null?void 0:a.phone_number,profileId:(d=a.profile_id)!=null?d:"",repURI:a==null?void 0:a.rep_messenger_uri,subtype:f})})]})})]}),b===i.length-1?null:j.jsx(c("CometRow.react"),{xstyle:k.dividerRow,children:j.jsx(c("CometRowItem.react"),{xstyle:k.buttonPairWidth,children:j.jsx(c("BaseDivider.react"),{})})})]},b)});a=a.filter(function(a){return a!=null});return j.jsxs(c("CometColumn.react"),{paddingVertical:16,xstyle:k.root,children:[j.jsx(c("CometColumnItem.react"),{paddingHorizontal:16,paddingTop:0,paddingVertical:4,children:j.jsx(c("TetraTextPairing.react"),{body:e.subtitle,headline:e==null?void 0:e.title,level:2})}),a]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
FollowContactButtonGroup_EditFollowStatusMutation.graphql",["FollowContactButtonGroup_EditFollowStatusMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XFBEditFollowRepResponse",kind:"LinkedField",name:"toggle_follow_representative",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"error_message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_following",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"FollowContactButtonGroup_EditFollowStatusMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"FollowContactButtonGroup_EditFollowStatusMutation",selections:c},params:{id:b("FollowContactButtonGroup_EditFollowStatusMutation_facebookRelayOperation"),metadata:{},name:"FollowContactButtonGroup_EditFollowStatusMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
FollowContactButtonGroup_EditFollowStatusMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5365971970081181"}),null);
-----