LeadGenCRMIntegrationGoogleSpreadsheetCapiStepContentDatasetSelector.react",["fbt","CometPlaceholder.react","GeoSelector.react","GeoSelectorItem.react","LeadGenCRMIntegrationGoogleSpreadsheetCapiStepContentDatasetSelectorQuery.graphql","RelayHooks","geoMargin","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useEffect,m=e.useMemo,n="DATASET_SELECTOR_EMPTY",o=i!==void 0?i:i=b("LeadGenCRMIntegrationGoogleSpreadsheetCapiStepContentDatasetSelectorQuery.graphql");function p(a){var b=a.label,e=a.logger,f=a.onChange,g=a.placeholder,i=a.selectedBusinessID;a=a.selectedDatasetID;var j=d("RelayHooks").useLazyLoadQuery(o,{businessId:i!=null?i:""}),p=m(function(){var a,b;a=(a=j==null?void 0:(a=j.business)==null?void 0:(a=a.pixels)==null?void 0:a.nodes)!=null?a:[];b=(b=(b=j.business)==null?void 0:(b=b.shared_pixels)==null?void 0:b.nodes)!=null?b:[];return a.concat(b)},[j==null?void 0:j.business]);l(function(){p.length===0&&e.scope(n).logRender()},[p.length,e]);return k.jsx(c("GeoSelector.react"),{label:b,placeholder:g,value:a,xstyle:c("geoMargin").bottom16,onChange:f,children:p.map(function(a){var b=a.id;a=a.name;var d=h._(/*BTDS*/"ID {Dataset ID}",[h._param("Dataset ID",b)]);return k.jsx(c("GeoSelectorItem.react"),{description:d,label:a!=null?a:b,value:b},b)})})}p.displayName=p.name+" [from "+f.id+"]";function a(a){var b=d("react-compiler-runtime").c(10),e=a.logger,g=a.selectedBusinessID,i=a.selectedDatasetID;a=a.setSelectedDatasetID;var j;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(j=h._(/*BTDS*/"Dataset ID"),b[0]=j):j=b[0];j=j;var l;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(l=h._(/*BTDS*/"Choose your dataset ID"),b[1]=l):l=b[1];l=l;if(g==null){var m;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(m=h._(/*BTDS*/"Select a business first"),b[2]=m):m=b[2];b[3]===Symbol["for"]("react.memo_cache_sentinel")?(m=k.jsx(c("GeoSelector.react"),{isDisabled:!0,label:j,placeholder:l,tooltip:m,value:null,xstyle:c("geoMargin").bottom16,onChange:r,children:k.jsx(c("GeoSelectorItem.react"),{isDisabled:!0,label:h._(/*BTDS*/"Loading..."),value:""})}),b[3]=m):m=b[3];return m}b[4]===Symbol["for"]("react.memo_cache_sentinel")?(m=k.jsx(c("GeoSelector.react"),{isLoading:!0,label:j,placeholder:l,value:null,xstyle:c("geoMargin").bottom16,onChange:q,children:k.jsx(c("GeoSelectorItem.react"),{isDisabled:!0,label:h._(/*BTDS*/"Loading..."),value:""})}),b[4]=m):m=b[4];b[5]!==e||b[6]!==g||b[7]!==i||b[8]!==a?(m=k.jsx(c("CometPlaceholder.react"),{fallback:m,name:f.id,children:k.jsx(p,{label:j,logger:e,placeholder:l,selectedBusinessID:g,selectedDatasetID:i,onChange:a})}),b[5]=e,b[6]=g,b[7]=i,b[8]=a,b[9]=m):m=b[9];return m}function q(){}function r(){}g["default"]=a}),226);
-----
LeadGenCRMIntegrationGoogleSpreadsheetCapiStepContentDatasetSelectorQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"businessId"}],b=[{kind:"Variable",name:"id",variableName:"businessId"}],c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},d=[{alias:null,args:null,concreteType:"AdsPixel",kind:"LinkedField",name:"nodes",plural:!0,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null}],e={alias:null,args:null,concreteType:"AdBusinessPixelsConnection",kind:"LinkedField",name:"pixels",plural:!1,selections:d,storageKey:null};d={alias:null,args:[{kind:"Literal",name:"only_show_pixels_with_upload_permission",value:!0}],concreteType:"AdBusinessSharedPixelsConnection",kind:"LinkedField",name:"shared_pixels",plural:!1,selections:d,storageKey:"shared_pixels(only_show_pixels_with_upload_permission:true)"};var f={alias:null,args:null,kind:"ScalarField",name:"can_create_pixel",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:{throwOnFieldError:!0},name:"LeadGenCRMIntegrationGoogleSpreadsheetCapiStepContentDatasetSelectorQuery",selections:[{alias:null,args:b,concreteType:"AdBusiness",kind:"LinkedField",name:"business",plural:!1,selections:[e,d,f],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"LeadGenCRMIntegrationGoogleSpreadsheetCapiStepContentDatasetSelectorQuery",selections:[{alias:null,args:b,concreteType:"AdBusiness",kind:"LinkedField",name:"business",plural:!1,selections:[e,d,f,c],storageKey:null}]},params:{id:"9693536894107502",metadata:{},name:"LeadGenCRMIntegrationGoogleSpreadsheetCapiStepContentDatasetSelectorQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----