useProfileCometOffersProfileUpdateMutation",["RelayHooks","WebPixelRatio","useProfileCometOffersProfileUpdateMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useProfileCometOffersProfileUpdateMutation.graphql");function a(){var a=d("RelayHooks").useMutation(i),b=a[0];a=a[1];return[function(a){var c=a.collectionToken,e=a.offerObjects,f=a.onCompleted,g=a.onError,h=a.sectionToken,i=a.sessionID;a=a.shouldShareToFeed;return b({onCompleted:f,onError:g,variables:{collectionToken:c,input:{offer_objects:e.map(function(a){return{fbid:a.fbid,is_deletion:a.shouldDelete,offer_description:a.description,offer_discount_code:a.discount,offer_link:a.link,offer_title:a.title}}),session_id:i,should_share_to_feed:a},scale:d("WebPixelRatio").get(),sectionToken:h}})},a]}g["default"]=a}),98);
-----
ProfileCometOffersProfileFieldEditForm.react",["fbt","CometColumn.react","CometColumnItem.react","CometRelay","CometRow.react","CometRowItem.react","FBNucleusPlusCircleOutline24.svg.react","FDSIcon.react","FDSListCell.react","FDSTextPairing.react","ProfileCometAboutInlineButtonWrapper.react","ProfileCometContext","ProfileCometDirectoryOffersInputRow.react","ProfileCometDirectorySectionShareToFeedSwitch.react","ProfileCometEditForm.react","ProfileCometOfferUtils","ProfileCometOffersProfileFieldEditForm_editRenderer.graphql","ProfileCometSession","react","useCurrentRoute","useProfileCometOffersProfileUpdateMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useContext,n=e.useState,o=d("ProfileCometOfferUtils").createOffer();function a(a){var e,f,g=a.collectionToken,j=a.editRenderer,q=a.onCancel,r=a.sectionToken,s=d("CometRelay").useFragment(i!==void 0?i:i=b("ProfileCometOffersProfileFieldEditForm_editRenderer.graphql"),j);a=s.offers.map(function(a){var b;return d("ProfileCometOfferUtils").createOffer(a.fbid,(b=a.offer_description)!=null?b:"",(b=a.offer_discount_code)!=null?b:"",(b=a.offer_link)!=null?b:"",(b=a.offer_title)!=null?b:"")});var t=c("useCurrentRoute")();j=m(c("ProfileCometContext"));var u=j.profileID;j=n(!1);var v=j[0];j=j[1];var w=a.length===0?[o]:a;w=n(w);var x=w[0],y=w[1];w=c("useProfileCometOffersProfileUpdateMutation")();var z=w[0],A=w[1];w=l(function(){y([].concat(x,[d("ProfileCometOfferUtils").createOffer()]))},[x]);var B=l(function(){z({collectionToken:g,offerObjects:x,onCompleted:q,onError:function(){},sectionToken:r,sessionID:d("ProfileCometSession").get(u,t),shouldShareToFeed:v})},[z,g,x,q,r,u,t,v]);e=h._(/*BTDS*/"",[h._plural((e=s.max_offer_count)!=null?e:10,"number")]);f=(f=s.max_offer_count)!=null?f:10;return k.jsxs(c("ProfileCometEditForm.react"),{cancelDisabled:A,isDirty:d("ProfileCometOfferUtils").isOfferArrayDirty(a,x),onCancelClick:q,onSaveClick:B,saveDisabled:A||!d("ProfileCometOfferUtils").areAllOffersValid(x,(a=s.max_char_count)!=null?a:150),children:[k.jsx(c("ProfileCometDirectorySectionShareToFeedSwitch.react"),{isDisabled:A,onValueChange:j,userRef:s.profile_owner,value:v}),k.jsxs(c("CometColumn.react"),{children:[k.jsx(c("CometColumnItem.react"),{children:k.jsx(c("FDSTextPairing.react"),{body:e,bodyColor:"secondary",level:2})}),x.filter(function(a){return!a.shouldDelete}).map(function(a,b){var e;return k.jsx(c("CometColumnItem.react"),{children:k.jsx(c("ProfileCometDirectoryOffersInputRow.react"),{addDescriptionText:(e=s.add_description_text)!=null?e:"",addDiscountCodeText:(e=s.add_discount_code_text)!=null?e:"",addLinkText:(e=s.add_link_text)!=null?e:"",addPromotionTitleText:(e=s.add_promotion_title_text)!=null?e:"",disabled:A,maxCharCount:(e=s.max_char_count)!=null?e:150,offer:a,onDelete:function(){var b=d("ProfileCometOfferUtils").removeOfferFromArray(a,x);y(b)},onUpdate:function(a){a=d("ProfileCometOfferUtils").updateOfferInArray(a,x);y(a)}})},b)}),x.length-----
useProfileCometOffersProfileUpdateMutation.graphql",["useProfileCometOffersProfileUpdateMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"collectionToken"},c={defaultValue:null,kind:"LocalArgument",name:"input"},d={defaultValue:null,kind:"LocalArgument",name:"scale"},e={defaultValue:null,kind:"LocalArgument",name:"sectionToken"},f={defaultValue:!1,kind:"LocalArgument",name:"useDefaultActor"},g=[{kind:"Variable",name:"data",variableName:"input"}],h=[{kind:"Variable",name:"find",variableName:"sectionToken"}],i={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},k=[{kind:"Literal",name:"site",value:"comet"}],l={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},m=[l];return{fragment:{argumentDefinitions:[a,c,d,e,f],kind:"Fragment",metadata:null,name:"useProfileCometOffersProfileUpdateMutation",selections:[{alias:null,args:g,concreteType:"XFBOffersProfileUpdateResponsePayload",kind:"LinkedField",name:"xfb_offers_profile_update",plural:!1,selections:[{alias:null,args:null,concreteType:"ProfileTileSection",kind:"LinkedField",name:"profile_tile_section",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"ProfileCometTileSection_profileTileSection"}],storageKey:null},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"actor",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:h,concreteType:"TimelineNavAppSectionsConnection",kind:"LinkedField",name:"timeline_nav_app_sections",plural:!1,selections:[{alias:null,args:null,concreteType:"TimelineAppSection",kind:"LinkedField",name:"nodes",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"ProfileCometAboutAppSectionContent_appSection"}],storageKey:null}],storageKey:null}],type:"User",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,e,a,d,f],kind:"Operation",name:"useProfileCometOffersProfileUpdateMutation",selections:[{alias:null,args:g,concreteType:"XFBOffersProfileUpdateResponsePayload",kind:"LinkedField",name:"xfb_offers_profile_update",plural:!1,selections:[{alias:null,args:null,concreteType:"ProfileTileSection",kind:"LinkedField",name:"profile_tile_section",plural:!1,selections:[{alias:null,args:null,concreteType:"ProfileTileViewsConnection",kind:"LinkedField",name:"profile_tile_views",plural:!1,selections:[{alias:null,args:null,concreteType:"ProfileTileView",kind:"LinkedField",name:"nodes",plural:!0,selections:[i,{alias:null,args:[{kind:"Literal",name:"supported",value:"4aqTao"}],concreteType:null,kind:"LinkedField",name:"view_style_renderer",plural:!1,selections:[j,{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileIntroBioView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewIntroBioRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileContextListView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewContextListRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTilePhotoGridView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewPhotoGridRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileDirectoryExperienceListView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewDirectoryExperienceListRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileDirectoryExperienceTimelineListView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewDirectoryExperienceTimelineListRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileDirectoryCustomFieldListView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewDirectoryCustomFieldListRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileDirectoryFreeFormTextView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewDirectoryFreeFormTextRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileDirectoryLookingForListView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewLookingForRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileDirectorySectionListView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewDirectorySectionListRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileDirectorySectionFieldListView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewDirectoryFieldListRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileFriendGridView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewFriendGridRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileFundraisersView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewFundraisersRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileLifeEventsView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewLifeEventsRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileFunFactsView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewFunFactsRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileFeaturedHighlightsView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewFeaturedHighlightsRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileFallbackView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewFallbackRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileShopCardView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewShopCardRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileSameNameListView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewSameNameListRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileCellListView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewCellListRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileEventsListView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewEventsListRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileVideoView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewVideoRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTileVideoListView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewVideoListRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView",fragmentName:"ProfileCometTilePremiumContentView_viewStyleRenderer",fragmentPropName:"viewStyleRenderer",kind:"ModuleImport"}],type:"ProfileTileViewPremiumContentRenderer",abstractKey:null}],storageKey:'view_style_renderer(supported:"4aqTao")'},{alias:null,args:[{kind:"Literal",name:"supported",value:"3Q4C5F"}],concreteType:null,kind:"LinkedField",name:"view_style_edit_renderer",plural:!1,selections:[j,{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView__view_style_edit_renderer",fragmentName:"ProfileCometIntroBioAddButton_viewStyleEditRenderer",fragmentPropName:"viewStyleEditRenderer",kind:"ModuleImport"}],type:"ProfileTileEditIntroBioRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView__view_style_edit_renderer",fragmentName:"ProfileCometIntroDetailsEditButton_viewStyleEditRenderer",fragmentPropName:"viewStyleEditRenderer",kind:"ModuleImport"}],type:"ProfileTileEditAboutContextListRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileView_profileTileView__view_style_edit_renderer",fragmentName:"ProfileCometFeaturedHighlightsEditButton_viewStyleEditRenderer",fragmentPropName:"viewStyleEditRenderer",kind:"ModuleImport"}],type:"ProfileTileEditFeaturedHighlightsRenderer",abstractKey:null}],storageKey:'view_style_edit_renderer(supported:"3Q4C5F")'}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_directory_protile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"profile_tile_section_type",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"action_link",plural:!1,selections:[j,{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:k,kind:"ScalarField",name:"url",storageKey:'url(site:"comet")'}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_pinned_profile_feature",storageKey:null},{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"title",plural:!1,selections:m,storageKey:null},{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"subtitle",plural:!1,selections:m,storageKey:null},{alias:null,args:null,concreteType:"ProfileCardNuxTooltip",kind:"LinkedField",name:"nux_tooltip",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"nux_id",storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"site",value:"www"}],kind:"ScalarField",name:"url",storageKey:'url(site:"www")'},{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"action_menu",plural:!1,selections:[j,{kind:"TypeDiscriminator",abstractKey:"__isProfileTileActionMenu"},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileActionMenu_actionMenu",fragmentName:"ProfileCometTileShopActionMenuPopoverTrigger_actionMenu",fragmentPropName:"actionMenu",kind:"ModuleImport"}],type:"ShopProfileTileActionMenu",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTileActionMenu_actionMenu",fragmentName:"ProfileCometTileAdminedGroupsActionMenuPopoverTrigger_actionMenu",fragmentPropName:"actionMenu",kind:"ModuleImport"}],type:"AdminedGroupsProfileTileActionMenu",abstractKey:null}],storageKey:'action_menu(site:"comet")'}],storageKey:null},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"actor",plural:!1,selections:[j,i,{kind:"InlineFragment",selections:[{alias:null,args:h,concreteType:"TimelineNavAppSectionsConnection",kind:"LinkedField",name:"timeline_nav_app_sections",plural:!1,selections:[{alias:null,args:null,concreteType:"TimelineAppSection",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:"activeCollections",args:[{kind:"Variable",name:"find",variableName:"collectionToken"},{kind:"Literal",name:"first",value:1},{kind:"Literal",name:"has_items",value:!0}],concreteType:"AllTimelineAppCollectionsConnection",kind:"LinkedField",name:"all_collections",plural:!1,selections:[{alias:null,args:null,concreteType:"TimelineAppCollection",kind:"LinkedField",name:"nodes",plural:!0,selections:[i,{alias:null,args:null,kind:"ScalarField",name:"tracking",storageKey:null},{alias:null,args:[{kind:"Literal",name:"supported",value:"2JMRmo"}],concreteType:null,kind:"LinkedField",name:"style_renderer",plural:!1,selections:[j,{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometAboutAppSectionContent_appSection",fragmentName:"ProfileCometAboutAppSectionContactAndBasicInfoRenderer_styleRenderer",fragmentPropName:"styleRenderer",kind:"ModuleImport"}],type:"TimelineAppCollectionAboutContactAndBasicInfoRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometAboutAppSectionContent_appSection",fragmentName:"ProfileCometAboutAppSectionLifeEventsRenderer_styleRenderer",fragmentPropName:"styleRenderer",kind:"ModuleImport"}],type:"TimelineAppCollectionAboutLifeEventsRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometAboutAppSectionContent_appSection",fragmentName:"ProfileCometAboutAppSectionOverviewRenderer_styleRenderer",fragmentPropName:"styleRenderer",kind:"ModuleImport"}],type:"TimelineAppCollectionAboutOverviewRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometAboutAppSectionContent_appSection",fragmentName:"ProfileCometDirectoryAboutProfileFieldSectionsRenderer_styleRenderer",fragmentPropName:"styleRenderer",kind:"ModuleImport"}],type:"XFBTimelineAppCollectionDirectoryAboutProfileFieldSectionsRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometAboutAppSectionContent_appSection",fragmentName:"ProfileCometAboutProfileFieldSectionsRenderer_styleRenderer",fragmentPropName:"styleRenderer",kind:"ModuleImport"}],type:"TimelineAppCollectionAboutProfileFieldSectionsRenderer",abstractKey:null}],storageKey:'style_renderer(supported:"2JMRmo")'}],storageKey:null}],storageKey:null},i],storageKey:null}],storageKey:null}],type:"User",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("useProfileCometOffersProfileUpdateMutation_facebookRelayOperation"),metadata:{},name:"useProfileCometOffersProfileUpdateMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
useProfileCometOffersProfileUpdateMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24860763380191009"}),null);
-----