AccountQualityHubDataSourceCard.react",["fbt","AccountQualityDataSourceListColumnTypes","AccountQualityHubDataSourceTable.react","AccountQualityHubDataSourceUtils","AccountQualityLogger","GeoBaseText.react","GeoCard.react","GeoDivider.react","GeoDropdownMenu.react","GeoFlexbox.react","GeoLink.react","GeoMenuItem.react","GeoSection.react","geoMargin","react","useGeoTableSortableColumn_DEPRECATED","useGeoTableSortableState"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useMemo,m=b.useState,n={width100:{width:"xh8yej3",$$css:!0}};function a(a){var b=a.assetOwnerId,e=a.assetOwnerType,f=a.dataSources,g=m((a=d("AccountQualityHubDataSourceUtils")).AccountQualityDataSourceStatusTypes.ALL),i=g[0],o=g[1];g=m(!1);var p=g[0],q=g[1];g=c("useGeoTableSortableState")({sortKey:c("AccountQualityDataSourceListColumnTypes").STATUS,direction:"ascending"});var r=g[0];g=g[1];g=c("useGeoTableSortableColumn_DEPRECATED")({sort:r,setSort:g});var s=k(function(){d("AccountQualityLogger").logMouseEventAction("aq.l2.data_sources.open_source_filter",{value:i})},[i]),t=k(function(a){var b=d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.cast(a);b&&o(b);d("AccountQualityLogger").logMouseEventAction("aq.l2.data_sources.select_source_filter",{value:a})},[]),u=k(function(){d("AccountQualityLogger").logLinkClickAction("aq.l2.data_sources.see_more_sources_click"),q(!0)},[]),v=[{value:a.AccountQualityDataSourceStatusTypes.ALL,onClick:k(function(){return t(d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.ALL)},[t]),label:h._("u6240u6709u72b6u6001")},{value:a.AccountQualityDataSourceStatusTypes.SOME_ISSUES,onClick:k(function(){return t(d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.SOME_ISSUES)},[t]),label:h._("u5b58u5728u4e00u4e9bu95eeu9898")},{value:a.AccountQualityDataSourceStatusTypes.NO_ISSUES,onClick:k(function(){return t(d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.NO_ISSUES)},[t]),label:h._("u65e0u6570u636eu6e90u95eeu9898")}];a={value:a.AccountQualityDataSourceStatusTypes.UNAVAILABLE,onClick:k(function(){return t(d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.UNAVAILABLE)},[t]),label:h._("u65e0u6cd5u63d0u4f9b")};f.filter(function(a){return a.isUnavailable}).length>0&&v.push(a);a=j.jsx(c("GeoBaseText.react"),{color:"heading",size:"header2",weight:"bold",xstyle:c("geoMargin").bottom4,children:h._("u6570u636eu6e90 ({number of data sources listed})",[h._param("number of data sources listed",f.length)])});e=e==="AdBusiness"?j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:h._("u8fd9u4e9bu6570u636eu6e90u4e3au5546u52a1u7ba1u7406u5e73u53f0u6240u62e5u6709u6216u5171u4eabu3002")}):null;s=j.jsx(c("GeoDropdownMenu.react"),{buttonVariant:"flat",label:v.filter(function(a){return a.value===i})[0].label,onOpen:s,children:v.map(function(a){return j.jsx(c("GeoMenuItem.react"),{label:a.label,onClick:a.onClick},a.value)})});var w=l(function(){return f.filter(function(a){return d("AccountQualityHubDataSourceUtils").getAccountQualityDataSourceStatus(a)===i||d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.ALL===i})},[i,f]);v=l(function(){var a=[].concat(w);switch(r&&r.sortKey||c("AccountQualityDataSourceListColumnTypes").STATUS){case c("AccountQualityDataSourceListColumnTypes").NAME:a.sort(function(a,b){return a.dataSourceName==null||b.dataSourceName==null||a.dataSourceName===b.dataSourceName?0:a.dataSourceName.localeCompare(b.dataSourceName)});break;case c("AccountQualityDataSourceListColumnTypes").STATUS:a.sort(function(a,b){return d("AccountQualityHubDataSourceUtils").compareAccountQualityDataSourceStatus(a,b)});break}r&&r.direction==="descending"&&a.reverse();return a},[w,r]);u=j.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[j.jsx(c("GeoDivider.react"),{xstyle:[c("geoMargin").top8,c("geoMargin").bottom16]}),j.jsx(c("GeoLink.react"),{onClick:u,children:h._("u67e5u770bu66f4u591a")})]});return j.jsx(c("GeoCard.react"),{"data-testid":void 0,xstyle:c("geoMargin").bottom16,children:j.jsx(c("GeoSection.react"),{children:j.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[j.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",xstyle:n.width100,children:[j.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[a,e]}),s]}),j.jsx(c("AccountQualityHubDataSourceTable.react"),{assetOwnerId:b,dataSources:p?v:v.slice(0,3),sortableColumn:g}),!p&&w.length>3?u:null]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
AccountQualityHubDataSourceTable.react",["fbt","AccountQualityDataSourceListColumnTypes","AccountQualityHubDataSourceItem.react","FlexLayout.react","FlexLayoutItem.react","GeoBaseText.react","GeoDivider.react","GeoFlexbox.react","GeoTable.react","GeoTableWidth","createGeoTableDataSource","geoMargin","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useMemo,l=248,m=393,n={table:{overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0}};function a(a){var b=a.assetOwnerId,e=a.dataSources,f=a.sortableColumn,g=[];e.forEach(function(a,d){d!==0&&g.push(j.jsx(c("FlexLayoutItem.react"),{style:{width:"100%"},children:j.jsx(c("GeoDivider.react"),{xstyle:[c("geoMargin").top8,c("geoMargin").bottom0,c("geoMargin").horiz8]})},d)),g.push(j.jsx(c("AccountQualityHubDataSourceItem.react"),{assetOwnerId:b,columnWidths:[l,m],dataSource:a},"item_"+d))});a=j.jsx(c("FlexLayout.react"),{align:"center",justify:"center",style:{height:68,width:"100%"},children:j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:h._("u6ca1u6709u8fd9u79cdu72b6u6001u7684u6570u636eu6e90u3002")})});var i=k(function(){var a;return[{key:(a=c("AccountQualityDataSourceListColumnTypes")).NAME,header:h._("u540du79f0"),width:d("GeoTableWidth").pixel(l),features:{sortable:f.singleKey(a.NAME)}},{key:a.STATUS,header:h._("u72b6u6001"),width:d("GeoTableWidth").pixel(m),features:{sortable:f.singleKey(a.STATUS)}}]},[f]),o=k(function(){return c("createGeoTableDataSource")([],{getStableUniqueID:function(a){return a.dataSourceId}})},[]);return j.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top8,children:[j.jsx(c("GeoTable.react"),{columns:i,dataSource:o,label:h._("Data Sources"),variant:"dense-striped",xstyle:n.table}),e.length>0?g:a]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
AccountQualityDataSourceListColumnTypes",[],(function(a,b,c,d,e,f){"use strict";a={NAME:"name",STATUS:"status"};b=a;f["default"]=b}),66);
-----
AccountQualityHubDataSourceCard.react",["fbt","AccountQualityDataSourceListColumnTypes","AccountQualityEntityTypes","AccountQualityHubDataSourceTable.react","AccountQualityHubDataSourceUtils","AccountQualityLogger","GeoBaseText.react","GeoCard.react","GeoDivider.react","GeoDropdownMenu.react","GeoFlexbox.react","GeoLink.react","GeoMenuItem.react","GeoSection.react","geoMargin","react","useGeoTableSortableColumn_DEPRECATED","useGeoTableSortableState"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useCallback,k=b.useMemo,l=b.useState,m={width100:{width:"xh8yej3",$$css:!0}};function a(a){var b=l(d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.ALL),e=b[0],f=b[1];b=l(!1);var g=b[0],n=b[1];b=c("useGeoTableSortableState")({sortKey:c("AccountQualityDataSourceListColumnTypes").STATUS,direction:"ascending"});var o=b[0];b=b[1];b=c("useGeoTableSortableColumn_DEPRECATED")({sort:o,setSort:b});var p=j(function(){d("AccountQualityLogger").logMouseEventAction("aq.l2.data_sources.open_source_filter",{value:e})},[e]),q=j(function(a){var b=d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.cast(a);b&&f(b);d("AccountQualityLogger").logMouseEventAction("aq.l2.data_sources.select_source_filter",{value:a})},[]),r=j(function(){d("AccountQualityLogger").logLinkClickAction("aq.l2.data_sources.see_more_sources_click"),n(!0)},[]),s=[{value:d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.ALL,onClick:j(function(){return q(d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.ALL)},[q]),label:h._("u6240u6709u72b6u6001")},{value:d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.SOME_ISSUES,onClick:j(function(){return q(d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.SOME_ISSUES)},[q]),label:h._("u5b58u5728u4e00u4e9bu95eeu9898")},{value:d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.NO_ISSUES,onClick:j(function(){return q(d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.NO_ISSUES)},[q]),label:h._("u65e0u6570u636eu6e90u95eeu9898")}],t={value:d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.UNAVAILABLE,onClick:j(function(){return q(d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.UNAVAILABLE)},[q]),label:h._("u65e0u6cd5u63d0u4f9b")};a.dataSources.filter(function(a){return a.isUnavailable}).length>0&&s.push(t);t=i.jsx(c("GeoBaseText.react"),{color:"heading",size:"header2",weight:"bold",xstyle:c("geoMargin").bottom4,children:h._("u6570u636eu6e90 ({number of data sources listed})",[h._param("number of data sources listed",a.dataSources.length)])});var u=a.assetOwnerType===c("AccountQualityEntityTypes").AD_BUSINESS?i.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:h._("u8fd9u4e9bu6570u636eu6e90u4e3au5546u52a1u7ba1u7406u5e73u53f0u6240u62e5u6709u6216u5171u4eabu3002")}):null;p=i.jsx(c("GeoDropdownMenu.react"),{buttonVariant:"flat",label:s.filter(function(a){return a.value===e})[0].label,onOpen:p,children:s.map(function(a){return i.jsx(c("GeoMenuItem.react"),{label:a.label,onClick:a.onClick},a.value)})});var v=k(function(){return a.dataSources.filter(function(a){return d("AccountQualityHubDataSourceUtils").getAccountQualityDataSourceStatus(a)===e||d("AccountQualityHubDataSourceUtils").AccountQualityDataSourceStatusTypes.ALL===e})},[e,a.dataSources]);s=k(function(){var a=[].concat(v);switch(o&&o.sortKey||c("AccountQualityDataSourceListColumnTypes").STATUS){case c("AccountQualityDataSourceListColumnTypes").NAME:a.sort(function(a,b){return a.dataSourceName==null||b.dataSourceName==null||a.dataSourceName===b.dataSourceName?0:a.dataSourceName.localeCompare(b.dataSourceName)});break;case c("AccountQualityDataSourceListColumnTypes").STATUS:a.sort(function(a,b){return d("AccountQualityHubDataSourceUtils").compareAccountQualityDataSourceStatus(a,b)});break}o&&o.direction==="descending"&&a.reverse();return a},[v,o]);r=i.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[i.jsx(c("GeoDivider.react"),{xstyle:[c("geoMargin").top8,c("geoMargin").bottom16]}),i.jsx(c("GeoLink.react"),{onClick:r,children:h._("u67e5u770bu66f4u591a")})]});return i.jsx(c("GeoCard.react"),{"data-testid":void 0,xstyle:c("geoMargin").bottom16,children:i.jsx(c("GeoSection.react"),{children:i.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[i.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",xstyle:m.width100,children:[i.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[t,u]}),p]}),i.jsx(c("AccountQualityHubDataSourceTable.react"),{assetOwnerId:a.assetOwnerId,dataSources:g?s:s.slice(0,3),sortableColumn:b}),!g&&v.length>3?r:null]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AccountQualityHubDataSourceTable.react",["fbt","AccountQualityDataSourceListColumnTypes","AccountQualityHubDataSourceItem.react","FlexLayout.react","FlexLayoutItem.react","GeoBaseText.react","GeoDivider.react","GeoFlexbox.react","GeoTable.react","GeoTableWidth","createGeoTableDataSource","geoMargin","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useMemo,k=248,l=393,m={table:{overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0}};function a(a){var b=[];a.dataSources.forEach(function(d,e){e!==0&&b.push(i.jsx(c("FlexLayoutItem.react"),{style:{width:"100%"},children:i.jsx(c("GeoDivider.react"),{xstyle:[c("geoMargin").top8,c("geoMargin").bottom0,c("geoMargin").horiz8]})},e)),b.push(i.jsx(c("AccountQualityHubDataSourceItem.react"),{assetOwnerId:a.assetOwnerId,columnWidths:[k,l],dataSource:d},"item_"+e))});var e=i.jsx(c("FlexLayout.react"),{align:"center",justify:"center",style:{height:68,width:"100%"},children:i.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:h._("u6ca1u6709u8fd9u79cdu72b6u6001u7684u6570u636eu6e90u3002")})}),f=j(function(){return[{key:c("AccountQualityDataSourceListColumnTypes").NAME,header:h._("u540du79f0"),width:d("GeoTableWidth").pixel(k),features:{sortable:a.sortableColumn.singleKey(c("AccountQualityDataSourceListColumnTypes").NAME)}},{key:c("AccountQualityDataSourceListColumnTypes").STATUS,header:h._("u72b6u6001"),width:d("GeoTableWidth").pixel(l),features:{sortable:a.sortableColumn.singleKey(c("AccountQualityDataSourceListColumnTypes").STATUS)}}]},[a.sortableColumn]),g=j(function(){return c("createGeoTableDataSource")([],{getStableUniqueID:function(a){return a.dataSourceId}})},[]);return i.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top8,children:[i.jsx(c("GeoTable.react"),{columns:f,dataSource:g,label:h._("Data Sources"),variant:"dense-striped",xstyle:m.table}),a.dataSources.length>0?b:e]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AccountQualityDataSourceListColumnTypes",[],(function(a,b,c,d,e,f){"use strict";a={NAME:"name",STATUS:"status"};b=a;f["default"]=b}),66);
-----