AdsEventsManagerConsolidatedDataSetSettingsTab_dataset.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={alias:null,args:null,kind:"ScalarField",name:"can_edit",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"AdsEventsManagerConsolidatedDataSetSettingsTab_dataset",selections:[{args:null,kind:"FragmentSpread",name:"AdsEventsManagerConsolidatedDataSetSettingsAutoAdvancedMatchingSectionContainer_dataset"},{args:null,kind:"FragmentSpread",name:"AdsEventsManagerConsolidatedDataSetWebsiteSettingsSectionContainer_dataset"},{args:null,kind:"FragmentSpread",name:"AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSectionContainer_dataset"},{args:null,kind:"FragmentSpread",name:"AdsEventsManagerConsolidatedDataSetSettingsEventTrackingSectionContainer_dataset"},{args:null,kind:"FragmentSpread",name:"AdsEventsManagerConsolidatedDataSetSettingsDomainControlSectionContainer_dataset"},{args:null,kind:"FragmentSpread",name:"AdsEventsManagerConsolidatedDataSetSettingsAutoAdvancedMatchingSectionContainerOFFLINEVERSION_dataset"},{args:null,kind:"FragmentSpread",name:"AdsEventsManagerConsolidatedDataSetSettingsCaptureRateSectionContainer_dataset"},{args:null,kind:"FragmentSpread",name:"AdsEventsManagerConsolidatedDataSetSettingsS2SSetupSectionContainer_dataset"},{args:null,kind:"FragmentSpread",name:"AdsEventsManagerDataRestrictionsSettingsContainer_dataSource"},{alias:null,args:null,concreteType:"XFBSdkAutologToggleServerSideValues",kind:"LinkedField",name:"sdk_autolog_toggle_server_side_values",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"default_value",storageKey:null},action:"THROW"},{alias:null,args:null,kind:"ScalarField",name:"override_value",storageKey:null},{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"launch_status",storageKey:null},action:"THROW"}],storageKey:null},{alias:null,args:null,concreteType:"AdBusiness",kind:"LinkedField",name:"owning_business",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"can_viewer_manage_permissions",storageKey:null}],storageKey:null},e,{alias:null,args:null,concreteType:"OfflineConversionDataSet",kind:"LinkedField",name:"offline_conversion_dataset",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBOfflineDatasetPermissions",kind:"LinkedField",name:"permissions",plural:!1,selections:[e],storageKey:null}],storageKey:null}],type:"XFBOffsiteSignalContainerCluster",abstractKey:null}})();a.exports=e}),null);
-----
AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSection.react",["fbt","ix","AdsEventManagerCustomAttribtutionInstructionsModalContainer.react","AdsEventManagerCustomAttribtutionOwnAnalyticsToolUtils","AdsEventManagerCustomAttributionDeleteMutation","AdsEventManagerCustomAttributionOwnAnalyticsToolModalContainer.react","AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSection_XFBAdCustomAttributionSource.graphql","AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSection_XFBAdCustomAttributionSourceList.graphql","AdsEventsManagerCreateCustomAttributionOpenModalAction","AdsEventsManagerDataSetSettingsCustomAttributionSourcesDeleteModal.react","FBClipboardLink.react","GeoBaseText.react","GeoButton.react","GeoDropdownMenu.react","GeoFlexbox.react","GeoHeading.react","GeoIcon.react","GeoLink.react","GeoMediaItem.react","GeoMenuItem.react","GeoPopover.react","GeoText.react","GeoToast.react","RelayHooks","RelayRuntime","SignalsHomeSettingsRow.react","SignalsHomeSettingsSection.react","fbicon","geoMargin","justknobx","react","react-compiler-runtime","stylex","useGeoTheme","useGeoToaster","useToggle"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n=m||(m=d("react"));m.useCallback;var o=j!==void 0?j:j=b("AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSection_XFBAdCustomAttributionSource.graphql"),p=k!==void 0?k:k=b("AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSection_XFBAdCustomAttributionSourceList.graphql"),q={statusDot:{borderStartStartRadius:"x1c9tyrk",borderStartEndRadius:"xeusxvb",borderEndEndRadius:"x1pahc9y",borderEndStartRadius:"x1ertn4p",height:"xdk7pt",width:"x1xc55vz",$$css:!0},statusDotInactive:{borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderTopWidth:"xamhcws",borderInlineEndWidth:"x1alpsbp",borderBottomWidth:"xlxy82",borderInlineStartWidth:"xyumdvf",height:"xqu0tyb",width:"x51ohtg",$$css:!0}};function r(a){var b=d("react-compiler-runtime").c(8);a=a.isActive;var e=c("useGeoTheme")(),f=e.selectStaticBackgroundColor;e=e.selectBorderColor;if(a){b[0]!==f?(a=(l||(l=c("stylex"))).props([q.statusDot,f({surface:"success"})]),b[0]=f,b[1]=a):a=b[1];b[2]!==a?(f=n.jsx("div",babelHelpers["extends"]({},a)),b[2]=a,b[3]=f):f=b[3];return f}b[4]!==e?(a=(l||(l=c("stylex"))).props([q.statusDot,q.statusDotInactive,e({color:"element"})]),b[4]=e,b[5]=a):a=b[5];b[6]!==a?(f=n.jsx("div",babelHelpers["extends"]({},a)),b[6]=a,b[7]=f):f=b[7];return f}var s=h._(/*BTDS*/"Custom attribution sources"),t=h._(/*BTDS*/"Manage or edit setups for your custom attribution sources."),u=h._(/*BTDS*/"Add new"),v=h._(/*BTDS*/"Actions"),w=h._(/*BTDS*/"View instructions"),x=h._(/*BTDS*/"Manage"),y=h._(/*BTDS*/"Delete");function z(a){var b,e,f=d("react-compiler-runtime").c(88),g=a.adAccountID,j=a.businessID,k=a.customAttributionSourceData,l=a.dataSourceID;a=c("useToggle")(!1);var m=a[0],o=a[1];a=c("useToggle")(!1);var p=a[0],q=a[1];f[0]!==q?(a=function(){return q(!0)},f[0]=q,f[1]=a):a=f[1];a=a;var s;f[2]!==q?(s=function(){return q(!1)},f[2]=q,f[3]=s):s=f[3];var t=s;f[4]!==o?(s=function(){return o(!0)},f[4]=o,f[5]=s):s=f[5];s=s;var u;f[6]!==o?(u=function(){return o(!1)},f[6]=o,f[7]=u):u=f[7];u=u;var z=d("RelayHooks").useMutation(d("AdsEventManagerCustomAttributionDeleteMutation").deleteCustomAttributionSourceMutation),B=z[0],C=c("useGeoToaster")();f[8]!==k.name||f[9]!==C?(z=function(){C.add(n.jsx(c("GeoToast.react"),{"data-testid":void 0,description:h._(/*BTDS*/"Custom attribution source {sourceName} was deleted.",[h._param("sourceName",k.name)]),hasIcon:!0,heading:h._(/*BTDS*/"Success"),status:"success"}))},f[8]=k.name,f[9]=C,f[10]=z):z=f[10];var D=z;f[11]!==B||f[12]!==k.id||f[13]!==l||f[14]!==t||f[15]!==D?(z=function(){var a=d("RelayRuntime").ConnectionHandler.getConnectionID(l,"AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSectionContainerQuery_custom_attribution_sources"),b=d("RelayRuntime").ConnectionHandler.getConnectionID(l,"AdsEventsManagerConsolidatedDataSetInspectorTabsHeaderCreateContainerQuery_passback_custom_attribution_sources");B({onCompleted:function(){t(),D()},variables:{connections:[a,b],input:{ad_custom_attribution_source_id:k.id}}});t()},f[11]=B,f[12]=k.id,f[13]=l,f[14]=t,f[15]=D,f[16]=z):z=f[16];z=z;var E=c("useToggle")(!1),F=E[0],G=E[1];f[17]!==G?(E=function(){return G(!0)},f[17]=G,f[18]=E):E=f[18];E=E;var H;f[19]!==G?(H=function(){return G(!1)},f[19]=G,f[20]=H):H=f[20];var I=H;f[21]!==C?(H=function(){C.add(n.jsx(c("GeoToast.react"),{"data-testid":void 0,hasIcon:!0,heading:h._(/*BTDS*/"Changes saved"),status:"success"}))},f[21]=C,f[22]=H):H=f[22];var J=H;f[23]!==I||f[24]!==J?(H=function(){I(),J()},f[23]=I,f[24]=J,f[25]=H):H=f[25];H=H;var K=A;f[26]!==k.attribution_model?(K=K(k.attribution_model),f[26]=k.attribution_model,f[27]=K):K=f[27];b=(b=k.attribution_window)!=null?b:d("AdsEventManagerCustomAttribtutionOwnAnalyticsToolUtils").MAX_ATTRIBUTION_WINDOW;var L;f[28]!==k.id||f[29]!==k.name||f[30]!==l||f[31]!==K||f[32]!==b?(L={attributionModel:K,attributionWindow:b,dataSourceID:l,id:k.id,name:k.name},f[28]=k.id,f[29]=k.name,f[30]=l,f[31]=K,f[32]=b,f[33]=L):L=f[33];K=L;f[34]===Symbol["for"]("react.memo_cache_sentinel")?(b=n.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(i("580901"),24)}),f[34]=b):b=f[34];f[35]===Symbol["for"]("react.memo_cache_sentinel")?(L=n.jsx(c("GeoMediaItem.react"),{fit:"contain",media:b,ratio:"square",size:32,xstyle:[c("geoMargin").end8,c("geoMargin").vert4]}),b={flexGrow:1},f[35]=L,f[36]=b):(L=f[35],b=f[36]);e=(e=k.name)!=null?e:"";var M;f[37]!==e?(M=n.jsx(c("GeoHeading.react"),{level:4,children:e}),f[37]=e,f[38]=M):M=f[38];e=k.active_adsets.length>0;var N;f[39]!==e?(N=n.jsx(r,{isActive:e}),f[39]=e,f[40]=N):N=f[40];f[41]!==k.active_adsets?(e=k.active_adsets.length>0?n.jsxs(c("GeoFlexbox.react"),{alignItems:"center",columnGap:4,children:[n.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._(/*BTDS*/"Currently in use for")}),n.jsx(c("GeoPopover.react"),{align:"middle",content:n.jsx(c("GeoFlexbox.react"),{direction:"column",style:{minWidth:300},children:k.active_adsets.length>0?n.jsxs(n.Fragment,{children:[n.jsxs(c("GeoFlexbox.react"),{style:{borderBottom:"1px solid #e4e6ea",padding:"8px 12px"},children:[n.jsx(c("GeoFlexbox.react"),{style:{flex:3},children:n.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"{=m0}",[h._implicitParam("=m0",n.jsx("strong",{children:h._(/*BTDS*/"Ad set")}))])})}),n.jsx(c("GeoFlexbox.react"),{style:{flex:2,justifyContent:"flex-end"},children:n.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"{=m0}",[h._implicitParam("=m0",n.jsx("strong",{children:h._(/*BTDS*/"Amount spent")}))])})})]}),k.active_adsets.map(function(a,b){return(a==null?void 0:a.id)==null||(a==null?void 0:a.name)==null||(a==null?void 0:a.spend)==null?null:n.jsxs(c("GeoFlexbox.react"),{style:{borderBottom:b-----
AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSectionContainer.react",["AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSection.react","AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSectionContainerQuery.graphql","AdsEventsManagerConsolidationDatasetUserEditPermissionDataProvider","AdsFluxHooks","LoadingMarkerArea.react","RelayHooks","SignalsErrorBoundary.react","SignalsLoggingBoundary.react","adsCreateSelector","adsCreateStructuredSelector","adsEventsManagerAccountIDSelector","adsEventsManagerBusinessIDSelector","adsEventsManagerConsolidationDatasetMetadataSelector","adsEventsManagerDataSourceIDSelectorEnforced","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSectionContainerQuery.graphql");e=c("adsCreateSelector")([c("AdsEventsManagerConsolidationDatasetUserEditPermissionDataProvider").toFluxSelector(),c("adsEventsManagerDataSourceIDSelectorEnforced")],function(a,b){return a.get(b).map(function(a){return a.canEdit})},{name:f.id+".canEditSelector"});var l=c("adsCreateStructuredSelector")({adAccountID:c("adsEventsManagerAccountIDSelector"),businessID:c("adsEventsManagerBusinessIDSelector"),canEditLO:e,datasetLO:c("adsEventsManagerConsolidationDatasetMetadataSelector")},f.id+".selector");function a(a){a=d("react-compiler-runtime").c(10);var b=d("AdsFluxHooks").useAdsSelector(l),e=b.adAccountID,g=b.businessID,h=b.canEditLO;b=b.datasetLO;var i;a[0]!==b?(i=b.getValueEnforcing(),a[0]=b,a[1]=i):i=a[1];b=i;if(a[2]!==h){i=(i=h.getValue())!=null?i:!1;a[2]=h;a[3]=i}else i=a[3];h=i;i=b.id;b=d("RelayHooks").useLazyLoadQuery(k,{datasetID:i});var m;a[4]!==e||a[5]!==g||a[6]!==h||a[7]!==b||a[8]!==i?(m=j.jsx(c("LoadingMarkerArea.react"),{name:f.id,children:j.jsx(c("AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSection.react"),{adAccountID:e,businessID:g,canEdit:h,customAttributionSourceQueryData:b,dataSourceID:i})}),a[4]=e,a[5]=g,a[6]=h,a[7]=b,a[8]=i,a[9]=m):m=a[9];return m}b=c("SignalsErrorBoundary.react").withErrorBoundary(c("SignalsLoggingBoundary.react").loggerConsumingComponent(d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id}),function(a){return a.scope("CUSTOM_ATTRIBUTION_SOURCE")},{disableSessionCreation:!0}));g["default"]=b}),98);
-----
AdsEventManagerCustomAttributionOwnAnalyticsMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"connections"},{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{kind:"Variable",name:"data",variableName:"input"}],c={alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"AdsEventManagerCustomAttributionOwnAnalyticsMutation",selections:[{alias:null,args:b,concreteType:"XFBCreateAdCustomAttributionSourceResponsePayload",kind:"LinkedField",name:"xfb_create_ad_custom_attribution_source",plural:!1,selections:[c,{alias:null,args:null,concreteType:"XFBAdCustomAttributionSource",kind:"LinkedField",name:"ad_custom_attribution_source",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSection_XFBAdCustomAttributionSource"}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"AdsEventManagerCustomAttributionOwnAnalyticsMutation",selections:[{alias:null,args:b,concreteType:"XFBCreateAdCustomAttributionSourceResponsePayload",kind:"LinkedField",name:"xfb_create_ad_custom_attribution_source",plural:!1,selections:[c,{alias:null,args:null,concreteType:"XFBAdCustomAttributionSource",kind:"LinkedField",name:"ad_custom_attribution_source",plural:!1,selections:[d,e,{alias:null,args:null,kind:"ScalarField",name:"attribution_model",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"attribution_window",storageKey:null},{alias:null,args:null,concreteType:"XFBAdCampaignSummary",kind:"LinkedField",name:"active_adsets",plural:!0,selections:[d,e,{alias:null,args:null,kind:"ScalarField",name:"spend",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,filters:null,handle:"appendNode",key:"",kind:"LinkedHandle",name:"ad_custom_attribution_source",handleArgs:[{kind:"Variable",name:"connections",variableName:"connections"},{kind:"Literal",name:"edgeTypeName",value:"OffsiteSignalContainerCustomAttributionSourcesEdge"}]}],storageKey:null}]},params:{id:"25486327907634449",metadata:{},name:"AdsEventManagerCustomAttributionOwnAnalyticsMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
AdsEventManagerCustomAttributionOwnAnalyticsToolModalContainer.react",["fbt","AdsEventManagerCustomAttribtutionOwnAnalyticsToolUtils","AdsEventManagerCustomAttributionOwnAnalyticsMutation","AdsEventManagerCustomAttributionOwnAnalyticsToolConstants","AdsEventManagerCustomAttributionOwnAnalyticsToolModalContainerQuery.graphql","AdsEventManagerCustomAttributionOwnAnalyticsToolSetupContainer.react","AdsEventManagerCustomAttributionOwnAnalyticsUpdateMutation","GeoButton.react","GeoCancelButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","RelayHooks","RelayRuntime","getCustomAttributionModelFromXFB","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState,m=i!==void 0?i:i=b("AdsEventManagerCustomAttributionOwnAnalyticsToolModalContainerQuery.graphql");function a(a){var b,e,f,g,i=d("react-compiler-runtime").c(43),j=a.adAccountID,n=a.businessID,o=a.dataSourceIDs,p=a.existingCustomAttributionData,q=a.isViewMode,r=a.isShown,s=a.onHide,t=a.onBack,u=a.onSuccess;a=q===void 0?!1:q;var v=a?!1:p!=null;q=(q=p==null?void 0:p.attributionModel)!=null?q:null;b=(b=p==null?void 0:p.attributionWindow)!=null?b:null;e=(e=p==null?void 0:p.name)!=null?e:null;f=(f=p==null?void 0:p.dataSourceID)!=null?f:null;var w=(p==null?void 0:p.attributionWindow)===d("AdsEventManagerCustomAttribtutionOwnAnalyticsToolUtils").MAX_ATTRIBUTION_WINDOW,x;i[0]!==q||i[1]!==b||i[2]!==e||i[3]!==f||i[4]!==w?(x={attributionModel:q,attributionWindow:b,customAttributionSourceName:e,dataSourceID:f,lifetimeWindowChecked:w},i[0]=q,i[1]=b,i[2]=e,i[3]=f,i[4]=w,i[5]=x):x=i[5];q=l(x);var y=q[0],z=q[1];b=d("RelayHooks").useMutation(d("AdsEventManagerCustomAttributionOwnAnalyticsMutation").createCustomAttributionSourceMutation);var A=b[0];e=d("RelayHooks").useMutation(d("AdsEventManagerCustomAttributionOwnAnalyticsUpdateMutation").updateCustomAttributionSourceMutation);var B=e[0];f=d("RelayHooks").useLazyLoadQuery(m,{business_id:n},{fetchPolicy:"store-or-network"});var C,D,E;if(i[6]!==(f==null||(g=f.fetch__AdBusiness)==null||(g=g.pixels)==null?void 0:g.nodes)||i[7]!==o){var F;w=Symbol["for"]("react.early_return_sentinel");bb0:{var G;q=(x=f==null||(G=f.fetch__AdBusiness)==null||(G=G.pixels)==null?void 0:G.nodes)!=null?x:[];var H=new Map();q.forEach(function(a){if(a==null)return;(a==null?void 0:a.id)!=null&&(a==null?void 0:a.name)!=null&&H.set(a.id,a.name)});if(o.length===0&&H.size===0){w=void 0;break bb0}i[12]!==o?(b=new Set(o),i[12]=o,i[13]=b):b=i[13];C=b;E=Map;D=Array.from(H.entries())}i[6]=f==null||(F=f.fetch__AdBusiness)==null||(F=F.pixels)==null?void 0:F.nodes;i[7]=o;i[8]=C;i[9]=D;i[10]=E;i[11]=w}else C=i[8],D=i[9],E=i[10],w=i[11];if(w!==Symbol["for"]("react.early_return_sentinel"))return w;i[14]!==C||i[15]!==D?(e=D.filter(function(a){a=a[0];return C.has(a)}),i[14]=C,i[15]=D,i[16]=e):e=i[16];i[17]!==e||i[18]!==E?(x=new E(e),i[17]=e,i[18]=E,i[19]=x):x=i[19];q=x;b=v&&p!=null?y.attributionModel!==p.attributionModel||y.customAttributionSourceName!==p.name||y.attributionWindow!==p.attributionWindow:!0;o=!y.attributionModel||y.customAttributionSourceName===null||((f=y.customAttributionSourceName)==null?void 0:f.length)===0||y.dataSourceID===null||!y.lifetimeWindowChecked&&(y.attributionWindow==null||y.attributionWindow>d("AdsEventManagerCustomAttribtutionOwnAnalyticsToolUtils").MAX_ATTRIBUTION_WINDOW)||v&&!b;i[20]===Symbol["for"]("react.memo_cache_sentinel")?(w=function(a){z(a)},i[20]=w):w=i[20];e=w;i[21]!==j||i[22]!==n||i[23]!==A||i[24]!==B||i[25]!==y||i[26]!==p||i[27]!==v||i[28]!==s||i[29]!==u?(x=function(){var a=y.attributionModel,b=y.attributionWindow,c=y.customAttributionSourceName,e=y.dataSourceID;if(a==null||c==null||b==null||e==null||c.length===0)return;if(v&&p!=null)B({onCompleted:function(a){u()},variables:{input:{ad_custom_attribution_source_id:p.id,attribution_model:d("AdsEventManagerCustomAttributionOwnAnalyticsToolConstants").AttributionModelType(a),attribution_window:b,name:c}}});else{var f=d("RelayRuntime").ConnectionHandler.getConnectionID(e,"AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSectionContainerQuery_custom_attribution_sources"),g=d("RelayRuntime").ConnectionHandler.getConnectionID(e,"AdsEventsManagerConsolidatedDataSetInspectorTabsHeaderCreateContainerQuery_passback_custom_attribution_sources");A({onCompleted:function(a){d("getCustomAttributionModelFromXFB").goDataSourceWindow(e),u()},variables:{connections:[f,g],input:{ad_account:j,attribution_model:d("AdsEventManagerCustomAttributionOwnAnalyticsToolConstants").AttributionModelType(a),attribution_window:b,business:n,dataset:e,name:c,partner:"NONE",passback_dataset:e}}})}s()},i[21]=j,i[22]=n,i[23]=A,i[24]=B,i[25]=y,i[26]=p,i[27]=v,i[28]=s,i[29]=u,i[30]=x):x=i[30];f=x;i[31]!==j||i[32]!==n||i[33]!==p||i[34]!==q||i[35]!==f||i[36]!==o||i[37]!==v||i[38]!==r||i[39]!==a||i[40]!==t||i[41]!==s?(b=r?k.jsx(c("GeoModal.react"),{footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:o||a,label:v?h._(/*BTDS*/"Save changes"):h._(/*BTDS*/"Create"),variant:"primary",onClick:f}),secondaryButton:a?null:k.jsx(c("GeoButton.react"),{"data-testid":void 0,label:h._(/*BTDS*/"Back"),onClick:t}),startContent:k.jsx(c("GeoCancelButton.react"),{"data-testid":void 0,label:h._(/*BTDS*/"Cancel"),onClick:s})}),header:k.jsx(c("GeoModalHeader.react"),{heading:d("AdsEventManagerCustomAttributionOwnAnalyticsToolConstants").CUSTOM_ATTRIBUTION_SOURCE_MODAL_TITLE}),height:670,width:700,onHide:s,children:k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("GeoText.react"),{children:v?d("AdsEventManagerCustomAttributionOwnAnalyticsToolConstants").CUSTOM_OPTIMIZATION_EDIT_INSTRUCTIONS:d("AdsEventManagerCustomAttributionOwnAnalyticsToolConstants").CUSTOM_OPTIMIZATION_SELECTION_INSTRUCTIONS}),k.jsx(c("AdsEventManagerCustomAttributionOwnAnalyticsToolSetupContainer.react"),{adAccountID:j,businessID:n,dataSourceMap:q,existingCustomAttributionData:p,isViewMode:a,onCustomAttributionFormPayloadChange:e})]})}):null,i[31]=j,i[32]=n,i[33]=p,i[34]=q,i[35]=f,i[36]=o,i[37]=v,i[38]=r,i[39]=a,i[40]=t,i[41]=s,i[42]=b):b=i[42];return b}g.AdsEventManagerCustomAttributionOwnAnalyticsToolModalContainer=a}),226);
-----
AdsEventsManagerConsolidatedDataSetCustomAttributionUtils",["AdsEventManagerCustomAttribtutionOwnAnalyticsToolUtils","AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSectionContainerQuery.graphql","AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSection_XFBAdCustomAttributionSource.graphql","AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSection_XFBAdCustomAttributionSourceList.graphql","AdsEventsManagerCustomAttributionHoldoutUtils","RelayHooks","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";function h(a){return a!=null&&typeof a==="string"?d("AdsEventManagerCustomAttribtutionOwnAnalyticsToolUtils").CustomAttributionModelType.cast(a):null}function a(a){var b,e,f=d("react-compiler-runtime").c(8),g=d("AdsEventsManagerCustomAttributionHoldoutUtils").canSeeCustomAttributionOpenBetaUX();g=d("RelayHooks").useLazyLoadQuery(c("AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSectionContainerQuery.graphql"),{datasetID:g?a:""});g=(g=g.node)==null?void 0:g.custom_attribution_sources;g=d("RelayHooks").useFragment(c("AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSection_XFBAdCustomAttributionSourceList.graphql"),g);g=(g=g==null||(b=g.custom_attribution_sources)==null||(b=b.edges)==null||(b=b.map(j))==null?void 0:b.filter(i))!=null?g:[];g=g[0];g=d("RelayHooks").useFragment(c("AdsEventsManagerConsolidatedDataSetSettingsCustomAttributionSourcesSection_XFBAdCustomAttributionSource.graphql"),g);if(g==null)return null;var k;f[0]!==g.attribution_model?(k=h(g.attribution_model),f[0]=g.attribution_model,f[1]=k):k=f[1];e=(e=g.attribution_window)!=null?e:d("AdsEventManagerCustomAttribtutionOwnAnalyticsToolUtils").MAX_ATTRIBUTION_WINDOW;var l;f[2]!==a||f[3]!==g.id||f[4]!==g.name||f[5]!==k||f[6]!==e?(l={attributionModel:k,attributionWindow:e,dataSourceID:a,id:g.id,name:g.name},f[2]=a,f[3]=g.id,f[4]=g.name,f[5]=k,f[6]=e,f[7]=l):l=f[7];return l}function i(a){return a!=null}function j(a){return a.node}g.useCustomAttributionData=a;g.getAttributionModelFromXFB=h}),98);
-----