AdAppSettingsTableRow",["AdAppConstraintsMinAgeUtils.facebook","AdAppSettingsTableRow_apps.graphql","RelayHooks","memoizeWithArgsWeak","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useMemo,k=[];e=16;function l(a){var b;return((b=a.name)!=null?b:"")+" ("+((b=a.country_name)!=null?b:"")+")"}function m(a){var b=[];a&&(b.push.apply(b,a.cities.map(l)),b.push.apply(b,a.regions.map(l)),b.sort());return b}var n=c("memoizeWithArgsWeak")(function(a){var b,e,f,g,h,i,j=c("nullthrows")(a.id);b=(b=a.name)!=null?b:"";e=(e=a.profile_picture)==null?void 0:e.uri;f=(f=a.ad_app_constraints)==null?void 0:f.min_age;g=(g=(g=a.ad_app_constraints)==null?void 0:g.last_updated)!=null?g:0;var l=!!a.can_edit;h=((h=(h=a.ad_app_constraints)==null?void 0:(h=h.custom_audience_exclusions_info)==null?void 0:h.custom_audiences)!=null?h:k).map(function(a){var b;return(b=a==null?void 0:a.name)!=null?b:a==null?void 0:a.ca_id}).filter(Boolean);i=m((i=a.ad_app_constraints)==null?void 0:i.included_geo_locations);a=m((a=a.ad_app_constraints)==null?void 0:a.excluded_geo_locations);return{id:j,name:b,profilePictureURI:e,constraintsMinAge:d("AdAppConstraintsMinAgeUtils.facebook").toJSEnum(f),lastUpdate:g,canEdit:l,caExclusion:h,includedLocations:i,excludedLocations:a}});function a(a){var c=d("RelayHooks").useFragment(h!==void 0?h:h=b("AdAppSettingsTableRow_apps.graphql"),a.length===0?k:a);return j(function(){return c.length===0?k:c.map(n)},[c])}g.PAGE_SIZE=e;g.useAdAppSettingsTableRows=a}),98);
-----
AdAppSettingsTable.react",["fbt","AdAppConstraintsConstants","AdAppSettingsBlankView.react","AdAppSettingsDetailsView.react","AdAppSettingsPanelLayout.react","AdAppSettingsTableBusinessQuery.graphql","AdAppSettingsTableContent.react","AdAppSettingsTableRow","AdAppSettingsTable_business.graphql","AdsInterfacesRouter","BMAppConstraintsViewLoadedAugLEvent","BusinessManagerAugmentedLogger","GeoButton.react","GeoSpinner.react","RelayHooks","XBusinessSettingsController","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.Suspense,n=e.useCallback,o=e.useEffect,p=e.useMemo,q=function(a){c("AdsInterfacesRouter").get().updateParams({app_id:a})};function r(a){return c("XBusinessSettingsController").getURIBuilder().setFBID("business_id",a).getURI()}function s(){var a=c("AdsInterfacesRouter").get().getParams().business_id;return l.jsx(c("AdAppSettingsBlankView.react"),{addButton:l.jsx(c("GeoButton.react"),{href:r(a),label:h._("Go to Business Settings")}),description:h._("You may not have access to any of the apps associated with this business. Request access from a Business Account admin."),title:h._("No Apps Found")})}s.displayName=s.name+" [from "+f.id+"]";function a(a){var e=a.activeAppID,f=a.businessID;a=a.userID;f=d("RelayHooks").useLazyLoadQuery(i!==void 0?i:i=b("AdAppSettingsTableBusinessQuery.graphql"),{businessID:f,pageSize:d("AdAppSettingsTableRow").PAGE_SIZE,viewerRoles:d("AdAppConstraintsConstants").AD_APP_CONSTRAINT_VIEWER_ROLES});f=d("RelayHooks").usePaginationFragment(j!==void 0?j:j=b("AdAppSettingsTable_business.graphql"),f.business);var g=f.data;f=babelHelpers.objectWithoutPropertiesLoose(f,["data"]);var k=p(function(){var a;return((a=g==null?void 0:(a=g.apps)==null?void 0:a.edges)!=null?a:[]).map(function(a){a=a.node;return a}).filter(Boolean)},[g]);k=d("AdAppSettingsTableRow").useAdAppSettingsTableRows(k);var r=k.length;o(function(){c("BusinessManagerAugmentedLogger").logDiscreteEvent(c("BMAppConstraintsViewLoadedAugLEvent").create("main_table_load",{initial_apps_count:r}))},[r]);var t=n(function(a){return q((a==null?void 0:a.id)===e?null:a==null?void 0:a.id)},[e]);return r===0?l.jsx(s,{}):l.jsx(c("AdAppSettingsPanelLayout.react"),{detailView:l.jsx(m,{fallback:l.jsx(c("GeoSpinner.react"),{label:h._("Loading resultsu2026")}),children:e!=null?l.jsx(c("AdAppSettingsDetailsView.react"),{appID:e,userID:a,onClose:function(){return q(null)}}):null}),isDetailViewShown:!!e,listView:l.jsx(c("AdAppSettingsTableContent.react"),{activeItemID:e,hasNext:f.hasNext,isLoadingNext:f.isLoadingNext,items:k,loadNext:f.loadNext,pageSize:f.hasNext?d("AdAppSettingsTableRow").PAGE_SIZE:0,onActivateItem:t})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
AdAppSettingsTableRow_apps.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},c=[{alias:null,args:null,kind:"ScalarField",name:"country_name",storageKey:null},b];c=[{alias:null,args:null,concreteType:"AppConstraintsCityGQL",kind:"LinkedField",name:"cities",plural:!0,selections:c,storageKey:null},{alias:null,args:null,concreteType:"AppConstraintsRegionGQL",kind:"LinkedField",name:"regions",plural:!0,selections:c,storageKey:null}];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"businessID"}],kind:"Fragment",metadata:{plural:!0},name:"AdAppSettingsTableRow_apps",selections:[a,b,{alias:"can_edit",args:[{kind:"Variable",name:"business_id",variableName:"businessID"}],kind:"ScalarField",name:"can_edit_ads_app_settings",storageKey:null},{alias:null,args:[{kind:"Literal",name:"height",value:48},{kind:"Literal",name:"width",value:48}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:"profile_picture(height:48,width:48)"},{alias:null,args:null,concreteType:"AdAppConstraints",kind:"LinkedField",name:"ad_app_constraints",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"min_age",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_updated",storageKey:null},{alias:null,args:null,concreteType:"XFBAppConstraintsCustomAudiencesInfo",kind:"LinkedField",name:"custom_audience_exclusions_info",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBAppConstraintsCustomAudienceInfo",kind:"LinkedField",name:"custom_audiences",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"ca_id",storageKey:null},b],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AppConstraintsGeoLocationsGQL",kind:"LinkedField",name:"included_geo_locations",plural:!1,selections:c,storageKey:null},{alias:null,args:null,concreteType:"AppConstraintsGeoLocationsGQL",kind:"LinkedField",name:"excluded_geo_locations",plural:!1,selections:c,storageKey:null}],storageKey:null}],type:"Application",abstractKey:null}}();e.exports=a}),null);
-----
AdAppSettingsTable_business.graphql",["AdAppSettingsPaginationQuery.graphql"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=["apps"];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"after"},{defaultValue:null,kind:"LocalArgument",name:"businessID"},{defaultValue:null,kind:"LocalArgument",name:"first"},{defaultValue:null,kind:"LocalArgument",name:"viewerRoles"}],kind:"Fragment",metadata:{connection:[{count:"first",cursor:"after",direction:"forward",path:a}],refetch:{connection:{forward:{count:"first",cursor:"after"},backward:null,path:a},fragmentPathInResult:["node"],operation:b("AdAppSettingsPaginationQuery.graphql"),identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"AdAppSettingsTable_business",selections:[{alias:"apps",args:[{kind:"Variable",name:"roles",variableName:"viewerRoles"}],concreteType:"AdBusinessViewerAppsWithRolesConnection",kind:"LinkedField",name:"__AdAppSettings_business_apps_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"AdBusinessViewerAppsWithRolesEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"businessID",variableName:"businessID"}],kind:"FragmentSpread",name:"AdAppSettingsTableRow_apps"},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"AdBusiness",abstractKey:null}}();e.exports=a}),null);
-----
AdAppSettingsTableRow",["AdAppConstraintsMinAgeUtils.facebook","AdAppSettingsTableRow_apps.graphql","RelayHooks","memoizeWithArgsWeak","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react").useMemo,j=[];e=16;function k(a){var b;return((b=a.name)!=null?b:"")+" ("+((b=a.country_name)!=null?b:"")+")"}function l(a){var b=[];a&&(b.push.apply(b,a.cities.map(k)),b.push.apply(b,a.regions.map(k)),b.sort());return b}var m=c("memoizeWithArgsWeak")(function(a){var b,e,f,g,h,i,k,m=c("nullthrows")(a.id);b=(b=a.name)!=null?b:"";e=(e=a.profile_picture)==null?void 0:e.uri;f=(f=a.ad_app_constraints)==null?void 0:f.min_age;g=(g=(g=a.ad_app_constraints)==null?void 0:g.last_updated)!=null?g:0;var n=!!a.can_edit;h=((h=(h=a.ad_app_constraints)==null?void 0:(h=h.custom_audience_exclusions_info)==null?void 0:h.custom_audiences)!=null?h:j).map(function(a){var b;return(b=a==null?void 0:a.name)!=null?b:a==null?void 0:a.ca_id}).filter(Boolean);i=l((i=a.ad_app_constraints)==null?void 0:i.included_geo_locations);k=l((k=a.ad_app_constraints)==null?void 0:k.excluded_geo_locations);var o=a.skan_campaign_groups_owned_by_app_owner_business;a=(a=(a=a.app_skan_settings)==null?void 0:a.last_updated)!=null?a:0;g=Math.max(g,a);return{id:m,name:b,profilePictureURI:e,constraintsMinAge:d("AdAppConstraintsMinAgeUtils.facebook").toJSEnum(f),lastUpdate:g,canEdit:n,caExclusion:h,includedLocations:i,excludedLocations:k,campaignGroups:o}});function a(a){var c=d("RelayHooks").useFragment(h!==void 0?h:h=b("AdAppSettingsTableRow_apps.graphql"),a.length===0?j:a);return i(function(){return c.length===0?j:c.map(m)},[c])}g.PAGE_SIZE=e;g.useAdAppSettingsTableRows=a}),98);
-----
AdAppSettingsTable.react",["fbt","AdAppConstraintsConstants","AdAppSettingsBlankView.react","AdAppSettingsDetailsView.react","AdAppSettingsPanelLayout.react","AdAppSettingsTableBusinessQuery.graphql","AdAppSettingsTableContent.react","AdAppSettingsTableRow","AdAppSettingsTable_business.graphql","AdsInterfacesRouter","BMAppConstraintsViewLoadedAugLEvent","BusinessManagerAugmentedLogger","GeoButton.react","GeoSpinner.react","RelayHooks","XBusinessSettingsController","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react");e=d("react");var l=e.Suspense,m=e.useCallback,n=e.useEffect,o=e.useMemo,p=function(a){c("AdsInterfacesRouter").get().updateParams({app_id:a})};function q(a){return c("XBusinessSettingsController").getURIBuilder().setFBID("business_id",a).getURI()}function r(){var a=c("AdsInterfacesRouter").get().getParams().business_id;return k.jsx(c("AdAppSettingsBlankView.react"),{addButton:k.jsx(c("GeoButton.react"),{href:q(a),label:h._("u524du5f80u5546u52a1u7ba1u7406u5e73u53f0u8bbeu7f6e")}),description:h._("u4f60u53efu80fdu65e0u6743u8bbfu95eeu8fd9u4e2au5546u52a1u7ba1u7406u5e73u53f0u5173u8054u7684u5e94u7528u3002u8bf7u5411u4e1au52a1u5e10u6237u7ba1u7406u5458u7533u8bf7u6743u9650u3002"),title:h._("u627eu4e0du5230u5e94u7528")})}r.displayName=r.name+" [from "+f.id+"]";function a(a){var e=a.businessID,f=a.activeAppID;a=a.userID;e=d("RelayHooks").useLazyLoadQuery(i!==void 0?i:i=b("AdAppSettingsTableBusinessQuery.graphql"),{businessID:e,pageSize:d("AdAppSettingsTableRow").PAGE_SIZE,viewerRoles:d("AdAppConstraintsConstants").AD_APP_CONSTRAINT_VIEWER_ROLES});e=d("RelayHooks").usePaginationFragment(j!==void 0?j:j=b("AdAppSettingsTable_business.graphql"),e.business);var g=e.data;e=babelHelpers.objectWithoutPropertiesLoose(e,["data"]);var q=o(function(){var a;return((a=g==null?void 0:(a=g.apps)==null?void 0:a.edges)!=null?a:[]).map(function(a){a=a.node;return a}).filter(Boolean)},[g]);q=d("AdAppSettingsTableRow").useAdAppSettingsTableRows(q);var s=q.length;n(function(){c("BusinessManagerAugmentedLogger").logDiscreteEvent(c("BMAppConstraintsViewLoadedAugLEvent").create("main_table_load",{initial_apps_count:s}))},[s]);var t=m(function(a){return p((a==null?void 0:a.id)===f?null:a==null?void 0:a.id)},[f]);return s===0?k.jsx(r,{}):k.jsx(c("AdAppSettingsPanelLayout.react"),{detailView:k.jsx(l,{fallback:k.jsx(c("GeoSpinner.react"),{label:h._("u6b63u5728u52a0u8f7du7ed3u679cu2026")}),children:f!=null?k.jsx(c("AdAppSettingsDetailsView.react"),{appID:f,userID:a,onClose:function(){return p(null)}}):null}),isDetailViewShown:!!f,listView:k.jsx(c("AdAppSettingsTableContent.react"),{activeItemID:f,hasNext:e.hasNext,isLoadingNext:e.isLoadingNext,items:q,loadNext:e.loadNext,pageSize:e.hasNext?d("AdAppSettingsTableRow").PAGE_SIZE:0,onActivateItem:t})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdAppSettingsTableRow_apps.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"last_updated",storageKey:null},d=[{alias:null,args:null,kind:"ScalarField",name:"country_name",storageKey:null},b];d=[{alias:null,args:null,concreteType:"AppConstraintsCityGQL",kind:"LinkedField",name:"cities",plural:!0,selections:d,storageKey:null},{alias:null,args:null,concreteType:"AppConstraintsRegionGQL",kind:"LinkedField",name:"regions",plural:!0,selections:d,storageKey:null}];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"businessID"}],kind:"Fragment",metadata:{plural:!0},name:"AdAppSettingsTableRow_apps",selections:[a,b,{alias:"can_edit",args:[{kind:"Variable",name:"business_id",variableName:"businessID"}],kind:"ScalarField",name:"can_edit_ads_app_settings",storageKey:null},{alias:null,args:[{kind:"Literal",name:"height",value:48},{kind:"Literal",name:"width",value:48}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:"profile_picture(height:48,width:48)"},{alias:null,args:null,concreteType:"AdAppConstraints",kind:"LinkedField",name:"ad_app_constraints",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"min_age",storageKey:null},c,{alias:null,args:null,concreteType:"XFBAppConstraintsCustomAudiencesInfo",kind:"LinkedField",name:"custom_audience_exclusions_info",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBAppConstraintsCustomAudienceInfo",kind:"LinkedField",name:"custom_audiences",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"ca_id",storageKey:null},b],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AppConstraintsGeoLocationsGQL",kind:"LinkedField",name:"included_geo_locations",plural:!1,selections:d,storageKey:null},{alias:null,args:null,concreteType:"AppConstraintsGeoLocationsGQL",kind:"LinkedField",name:"excluded_geo_locations",plural:!1,selections:d,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AppSKANSetting",kind:"LinkedField",name:"app_skan_settings",plural:!1,selections:[c],storageKey:null},{alias:null,args:null,concreteType:"AdCampaignGroup",kind:"LinkedField",name:"skan_campaign_groups_owned_by_app_owner_business",plural:!0,selections:[a],storageKey:null}],type:"Application",abstractKey:null}}();e.exports=a}),null);
-----
AdAppSettingsTable_business.graphql",["AdAppSettingsPaginationQuery.graphql"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=["apps"];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"after"},{defaultValue:null,kind:"LocalArgument",name:"businessID"},{defaultValue:null,kind:"LocalArgument",name:"first"},{defaultValue:null,kind:"LocalArgument",name:"viewerRoles"}],kind:"Fragment",metadata:{connection:[{count:"first",cursor:"after",direction:"forward",path:a}],refetch:{connection:{forward:{count:"first",cursor:"after"},backward:null,path:a},fragmentPathInResult:["node"],operation:b("AdAppSettingsPaginationQuery.graphql"),identifierField:"id"}},name:"AdAppSettingsTable_business",selections:[{alias:"apps",args:[{kind:"Variable",name:"roles",variableName:"viewerRoles"}],concreteType:"AdBusinessViewerAppsWithRolesConnection",kind:"LinkedField",name:"__AdAppSettings_business_apps_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"AdBusinessViewerAppsWithRolesEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"businessID",variableName:"businessID"}],kind:"FragmentSpread",name:"AdAppSettingsTableRow_apps"},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"AdBusiness",abstractKey:null}}();e.exports=a}),null);
-----
-----
AdAppSettingsTable.react",["fbt","AdAppConstraintsConstants","AdAppSettingsBlankView.react","AdAppSettingsDetailsView.react","AdAppSettingsPanelLayout.react","AdAppSettingsTableBusinessQuery.graphql","AdAppSettingsTableContent.react","AdAppSettingsTableRow","AdAppSettingsTable_business.graphql","AdsInterfacesRouter","BMAppConstraintsViewLoadedAugLEvent","BusinessManagerAugmentedLogger","GeoButton.react","GeoSpinner.react","RelayHooks","XBusinessSettingsController","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.Suspense,n=e.useCallback,o=e.useEffect,p=e.useMemo,q=function(a){c("AdsInterfacesRouter").get().updateParams({app_id:a})};function r(a){return c("XBusinessSettingsController").getURIBuilder().setFBID("business_id",a).getURI()}function s(){var a=c("AdsInterfacesRouter").get().getParams().business_id;return l.jsx(c("AdAppSettingsBlankView.react"),{addButton:l.jsx(c("GeoButton.react"),{href:r(a),label:h._("Go to Business Settings")}),description:h._("You may not have access to any of the apps associated with this business. Request access from a Business Account admin."),title:h._("No Apps Found")})}s.displayName=s.name+" [from "+f.id+"]";function a(a){var e=a.activeAppID,f=a.businessID;a=a.userID;f=d("RelayHooks").useLazyLoadQuery(i!==void 0?i:i=b("AdAppSettingsTableBusinessQuery.graphql"),{businessID:f,pageSize:d("AdAppSettingsTableRow").PAGE_SIZE,viewerRoles:d("AdAppConstraintsConstants").AD_APP_CONSTRAINT_VIEWER_ROLES});f=d("RelayHooks").usePaginationFragment(j!==void 0?j:j=b("AdAppSettingsTable_business.graphql"),f.business);var g=f.data;f=babelHelpers.objectWithoutPropertiesLoose(f,["data"]);var k=p(function(){var a;return((a=g==null?void 0:(a=g.apps)==null?void 0:a.edges)!=null?a:[]).map(function(a){a=a.node;return a}).filter(Boolean)},[g]);k=d("AdAppSettingsTableRow").useAdAppSettingsTableRows(k);var r=k.length;o(function(){c("BusinessManagerAugmentedLogger").logDiscreteEvent(c("BMAppConstraintsViewLoadedAugLEvent").create("main_table_load",{initial_apps_count:r}))},[r]);var t=n(function(a){return q((a==null?void 0:a.id)===e?null:a==null?void 0:a.id)},[e]);return r===0?l.jsx(s,{}):l.jsx(c("AdAppSettingsPanelLayout.react"),{detailView:l.jsx(m,{fallback:l.jsx(c("GeoSpinner.react"),{label:h._("Loading resultsu2026")}),children:e!=null?l.jsx(c("AdAppSettingsDetailsView.react"),{appID:e,userID:a,onClose:function(){return q(null)}}):null}),isDetailViewShown:!!e,listView:l.jsx(c("AdAppSettingsTableContent.react"),{activeItemID:e,hasNext:f.hasNext,isLoadingNext:f.isLoadingNext,items:k,loadNext:f.loadNext,pageSize:f.hasNext?d("AdAppSettingsTableRow").PAGE_SIZE:0,onActivateItem:t})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
AdAppSettingsTableRow_apps.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},c=[{alias:null,args:null,kind:"ScalarField",name:"country_name",storageKey:null},b];c=[{alias:null,args:null,concreteType:"AppConstraintsCityGQL",kind:"LinkedField",name:"cities",plural:!0,selections:c,storageKey:null},{alias:null,args:null,concreteType:"AppConstraintsRegionGQL",kind:"LinkedField",name:"regions",plural:!0,selections:c,storageKey:null}];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"businessID"}],kind:"Fragment",metadata:{plural:!0},name:"AdAppSettingsTableRow_apps",selections:[a,b,{alias:"can_edit",args:[{kind:"Variable",name:"business_id",variableName:"businessID"}],kind:"ScalarField",name:"can_edit_ads_app_settings",storageKey:null},{alias:null,args:[{kind:"Literal",name:"height",value:48},{kind:"Literal",name:"width",value:48}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:"profile_picture(height:48,width:48)"},{alias:null,args:null,concreteType:"AdAppConstraints",kind:"LinkedField",name:"ad_app_constraints",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"min_age",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_updated",storageKey:null},{alias:null,args:null,concreteType:"XFBAppConstraintsCustomAudiencesInfo",kind:"LinkedField",name:"custom_audience_exclusions_info",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBAppConstraintsCustomAudienceInfo",kind:"LinkedField",name:"custom_audiences",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"ca_id",storageKey:null},b],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AppConstraintsGeoLocationsGQL",kind:"LinkedField",name:"included_geo_locations",plural:!1,selections:c,storageKey:null},{alias:null,args:null,concreteType:"AppConstraintsGeoLocationsGQL",kind:"LinkedField",name:"excluded_geo_locations",plural:!1,selections:c,storageKey:null}],storageKey:null}],type:"Application",abstractKey:null}}();e.exports=a}),null);
-----
AdAppSettingsTable_business.graphql",["AdAppSettingsPaginationQuery.graphql"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=["apps"];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"after"},{defaultValue:null,kind:"LocalArgument",name:"businessID"},{defaultValue:null,kind:"LocalArgument",name:"first"},{defaultValue:null,kind:"LocalArgument",name:"viewerRoles"}],kind:"Fragment",metadata:{connection:[{count:"first",cursor:"after",direction:"forward",path:a}],refetch:{connection:{forward:{count:"first",cursor:"after"},backward:null,path:a},fragmentPathInResult:["node"],operation:b("AdAppSettingsPaginationQuery.graphql"),identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"AdAppSettingsTable_business",selections:[{alias:"apps",args:[{kind:"Variable",name:"roles",variableName:"viewerRoles"}],concreteType:"AdBusinessViewerAppsWithRolesConnection",kind:"LinkedField",name:"__AdAppSettings_business_apps_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"AdBusinessViewerAppsWithRolesEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"businessID",variableName:"businessID"}],kind:"FragmentSpread",name:"AdAppSettingsTableRow_apps"},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"AdBusiness",abstractKey:null}}();e.exports=a}),null);
-----
AdAppSettingsTableRow",["AdAppConstraintsMinAgeUtils.facebook","AdAppSettingsTableRow_apps.graphql","RelayHooks","memoizeWithArgsWeak","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react").useMemo,j=[];e=16;function k(a){var b;return((b=a.name)!=null?b:"")+" ("+((b=a.country_name)!=null?b:"")+")"}function l(a){var b=[];a&&(b.push.apply(b,a.cities.map(k)),b.push.apply(b,a.regions.map(k)),b.sort());return b}var m=c("memoizeWithArgsWeak")(function(a){var b,e,f,g,h,i,k,m=c("nullthrows")(a.id);b=(b=a.name)!=null?b:"";e=(e=a.profile_picture)==null?void 0:e.uri;f=(f=a.ad_app_constraints)==null?void 0:f.min_age;g=(g=(g=a.ad_app_constraints)==null?void 0:g.last_updated)!=null?g:0;var n=!!a.can_edit;h=((h=(h=a.ad_app_constraints)==null?void 0:(h=h.custom_audience_exclusions_info)==null?void 0:h.custom_audiences)!=null?h:j).map(function(a){var b;return(b=a==null?void 0:a.name)!=null?b:a==null?void 0:a.ca_id}).filter(Boolean);i=l((i=a.ad_app_constraints)==null?void 0:i.included_geo_locations);k=l((k=a.ad_app_constraints)==null?void 0:k.excluded_geo_locations);var o=a.skan_campaign_groups_owned_by_app_owner_business;a=(a=(a=a.app_skan_settings)==null?void 0:a.last_updated)!=null?a:0;g=Math.max(g,a);return{id:m,name:b,profilePictureURI:e,constraintsMinAge:d("AdAppConstraintsMinAgeUtils.facebook").toJSEnum(f),lastUpdate:g,canEdit:n,caExclusion:h,includedLocations:i,excludedLocations:k,campaignGroups:o}});function a(a){var c=d("RelayHooks").useFragment(h!==void 0?h:h=b("AdAppSettingsTableRow_apps.graphql"),a.length===0?j:a);return i(function(){return c.length===0?j:c.map(m)},[c])}g.PAGE_SIZE=e;g.useAdAppSettingsTableRows=a}),98);
-----
AdAppSettingsTable.react",["fbt","AdAppConstraintsConstants","AdAppSettingsBlankView.react","AdAppSettingsDetailsView.react","AdAppSettingsPanelLayout.react","AdAppSettingsTableBusinessQuery.graphql","AdAppSettingsTableContent.react","AdAppSettingsTableRow","AdAppSettingsTable_business.graphql","AdsInterfacesRouter","BMAppConstraintsViewLoadedAugLEvent","BusinessManagerAugmentedLogger","GeoButton.react","GeoSpinner.react","RelayHooks","XBusinessSettingsController","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react");e=d("react");var l=e.Suspense,m=e.useCallback,n=e.useEffect,o=e.useMemo,p=function(a){c("AdsInterfacesRouter").get().updateParams({app_id:a})};function q(a){return c("XBusinessSettingsController").getURIBuilder().setFBID("business_id",a).getURI()}function r(){var a=c("AdsInterfacesRouter").get().getParams().business_id;return k.jsx(c("AdAppSettingsBlankView.react"),{addButton:k.jsx(c("GeoButton.react"),{href:q(a),label:h._("u524du5f80u5546u52a1u7ba1u7406u5e73u53f0u8bbeu7f6e")}),description:h._("u4f60u53efu80fdu65e0u6743u8bbfu95eeu8fd9u4e2au5546u52a1u7ba1u7406u5e73u53f0u5173u8054u7684u5e94u7528u3002u8bf7u5411u4e1au52a1u5e10u6237u7ba1u7406u5458u7533u8bf7u6743u9650u3002"),title:h._("u627eu4e0du5230u5e94u7528")})}r.displayName=r.name+" [from "+f.id+"]";function a(a){var e=a.businessID,f=a.activeAppID;a=a.userID;e=d("RelayHooks").useLazyLoadQuery(i!==void 0?i:i=b("AdAppSettingsTableBusinessQuery.graphql"),{businessID:e,pageSize:d("AdAppSettingsTableRow").PAGE_SIZE,viewerRoles:d("AdAppConstraintsConstants").AD_APP_CONSTRAINT_VIEWER_ROLES});e=d("RelayHooks").usePaginationFragment(j!==void 0?j:j=b("AdAppSettingsTable_business.graphql"),e.business);var g=e.data;e=babelHelpers.objectWithoutPropertiesLoose(e,["data"]);var q=o(function(){var a;return((a=g==null?void 0:(a=g.apps)==null?void 0:a.edges)!=null?a:[]).map(function(a){a=a.node;return a}).filter(Boolean)},[g]);q=d("AdAppSettingsTableRow").useAdAppSettingsTableRows(q);var s=q.length;n(function(){c("BusinessManagerAugmentedLogger").logDiscreteEvent(c("BMAppConstraintsViewLoadedAugLEvent").create("main_table_load",{initial_apps_count:s}))},[s]);var t=m(function(a){return p((a==null?void 0:a.id)===f?null:a==null?void 0:a.id)},[f]);return s===0?k.jsx(r,{}):k.jsx(c("AdAppSettingsPanelLayout.react"),{detailView:k.jsx(l,{fallback:k.jsx(c("GeoSpinner.react"),{label:h._("u6b63u5728u52a0u8f7du7ed3u679cu2026")}),children:f!=null?k.jsx(c("AdAppSettingsDetailsView.react"),{appID:f,userID:a,onClose:function(){return p(null)}}):null}),isDetailViewShown:!!f,listView:k.jsx(c("AdAppSettingsTableContent.react"),{activeItemID:f,hasNext:e.hasNext,isLoadingNext:e.isLoadingNext,items:q,loadNext:e.loadNext,pageSize:e.hasNext?d("AdAppSettingsTableRow").PAGE_SIZE:0,onActivateItem:t})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdAppSettingsTableRow_apps.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"last_updated",storageKey:null},d=[{alias:null,args:null,kind:"ScalarField",name:"country_name",storageKey:null},b];d=[{alias:null,args:null,concreteType:"AppConstraintsCityGQL",kind:"LinkedField",name:"cities",plural:!0,selections:d,storageKey:null},{alias:null,args:null,concreteType:"AppConstraintsRegionGQL",kind:"LinkedField",name:"regions",plural:!0,selections:d,storageKey:null}];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"businessID"}],kind:"Fragment",metadata:{plural:!0},name:"AdAppSettingsTableRow_apps",selections:[a,b,{alias:"can_edit",args:[{kind:"Variable",name:"business_id",variableName:"businessID"}],kind:"ScalarField",name:"can_edit_ads_app_settings",storageKey:null},{alias:null,args:[{kind:"Literal",name:"height",value:48},{kind:"Literal",name:"width",value:48}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:"profile_picture(height:48,width:48)"},{alias:null,args:null,concreteType:"AdAppConstraints",kind:"LinkedField",name:"ad_app_constraints",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"min_age",storageKey:null},c,{alias:null,args:null,concreteType:"XFBAppConstraintsCustomAudiencesInfo",kind:"LinkedField",name:"custom_audience_exclusions_info",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBAppConstraintsCustomAudienceInfo",kind:"LinkedField",name:"custom_audiences",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"ca_id",storageKey:null},b],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AppConstraintsGeoLocationsGQL",kind:"LinkedField",name:"included_geo_locations",plural:!1,selections:d,storageKey:null},{alias:null,args:null,concreteType:"AppConstraintsGeoLocationsGQL",kind:"LinkedField",name:"excluded_geo_locations",plural:!1,selections:d,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AppSKANSetting",kind:"LinkedField",name:"app_skan_settings",plural:!1,selections:[c],storageKey:null},{alias:null,args:null,concreteType:"AdCampaignGroup",kind:"LinkedField",name:"skan_campaign_groups_owned_by_app_owner_business",plural:!0,selections:[a],storageKey:null}],type:"Application",abstractKey:null}}();e.exports=a}),null);
-----
AdAppSettingsTable_business.graphql",["AdAppSettingsPaginationQuery.graphql"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=["apps"];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"after"},{defaultValue:null,kind:"LocalArgument",name:"businessID"},{defaultValue:null,kind:"LocalArgument",name:"first"},{defaultValue:null,kind:"LocalArgument",name:"viewerRoles"}],kind:"Fragment",metadata:{connection:[{count:"first",cursor:"after",direction:"forward",path:a}],refetch:{connection:{forward:{count:"first",cursor:"after"},backward:null,path:a},fragmentPathInResult:["node"],operation:b("AdAppSettingsPaginationQuery.graphql"),identifierField:"id"}},name:"AdAppSettingsTable_business",selections:[{alias:"apps",args:[{kind:"Variable",name:"roles",variableName:"viewerRoles"}],concreteType:"AdBusinessViewerAppsWithRolesConnection",kind:"LinkedField",name:"__AdAppSettings_business_apps_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"AdBusinessViewerAppsWithRolesEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"businessID",variableName:"businessID"}],kind:"FragmentSpread",name:"AdAppSettingsTableRow_apps"},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"AdBusiness",abstractKey:null}}();e.exports=a}),null);
-----