AccountQualityCommerceEntity",[],(function(a,b,c,d,e,f){a=Object.freeze({PRODUCTS:"products",SHOPS:"shops",AUGMENTED_REALITY:"augmented_reality",COMMERCE_UGC:"commerce_ugc"});f["default"]=a}),66);
-----
AccountQualityCommerceDataQuery",["AccountQualityCommerceDataRetrievalCompleteAction","AccountQualityCommerceEntityTypes","AccountQualityHubCommerceAccountAndCatalogUtils","AccountQualityTabTypes"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e,g){var h,i,j={};Object.keys(h=c("AccountQualityTabTypes")).forEach(function(b){b=c("AccountQualityTabTypes")[b];var e=d("AccountQualityHubCommerceAccountAndCatalogUtils").getProductRowsByTab(a,b),f=e[0];e=e[1];j[b]={rows:f,capabilities:e}});var k={};Object.keys(h).forEach(function(a){a=c("AccountQualityTabTypes")[a];var e=d("AccountQualityHubCommerceAccountAndCatalogUtils").getCommerceUGCRowsByTab(b,a),f=e[0];e=e[1];k[a]={rows:f,contentTypes:e}});var l={};Object.keys(h).forEach(function(a){a=c("AccountQualityTabTypes")[a];var b=d("AccountQualityHubCommerceAccountAndCatalogUtils").getShopsRowsByTab(e,a);l[a]={rows:b}});var m={};Object.keys(h).forEach(function(a){a=c("AccountQualityTabTypes")[a];var b=d("AccountQualityHubCommerceAccountAndCatalogUtils").getARDataByTab(g);m[a]={rows:b}});c("AccountQualityCommerceDataRetrievalCompleteAction").dispatch((h={},h[(i=c("AccountQualityCommerceEntityTypes")).PRODUCTS]=j,h[i.COMMERCE_UGC]=k,h[i.SHOPS]=l,h[i.AUGMENTED_REALITY]=m,h),{line:"93",module:"AccountQualityCommerceDataQuery.js",moduleID:f.id})}g.request=a}),98);
-----
AccountQualityAppealDialog.react",["AccountQualityAppealStages","AccountQualityCommerceAppealForm.react","AccountQualityCommerceClearItemsAction","AccountQualityCommerceDataProvider","AccountQualityCommerceEntityTypes","AccountQualityCommerceODS","AccountQualityHSMAppealForm.react","AccountQualityLogger","AccountQualityWhatsAppBMViolationAppealForm.react","AccountQualityWhatsAppBusinessStrings","AccountQualityWhatsAppClearRowsAction","AccountQualityWhatsAppCommerceCheckAppealForm.react","AccountQualityWhatsAppDataProvider","AccountQualityWhatsAppEntityTypes","AccountQualityWhatsAppProcessCommerceCheckAppealResponseAction","AccountQualityWhatsAppProcessHSMAppealResponseAction","AccountQualityWhatsAppProcessViolationAppealResponseAction","AccountQualityWhatsAppViolationAppealForm.react","AdsFluxHooks","AdsReviewStringConstants","CommerceCFAppealMultiStepModal.react","GeoButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","WhatsAppBizxPlatformLoggerEvent.flow","adsCreateStructuredSelector","compactArray","emptyFunction","nullthrows","react","useCommerceMetadataAppealCreation","useProductAppealCreation.react","useWhatsAppBizxPlatformLogger","useWhatsAppCommerceCheckAppealCreation.react","useWhatsAppHSMAppealCreation.react","useWhatsAppViolationAppealCreation.react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useEffect,l=b.useMemo,m=b.useState;e=c("AccountQualityWhatsAppDataProvider").toFluxSelector();b=c("AccountQualityCommerceDataProvider").toFluxSelector();var aa=c("adsCreateStructuredSelector")({whatsAppSelectionData:e,commerceSelectionData:b},f.id+".selector");function a(a){var b=a.appealStage,e=a.businessID,g=a.selectedEntity,h=a.selectedRowIDs,n=a.setAppealStage,o=a.templateMultiAppealGK;a=d("AdsFluxHooks").useAdsSelector(aa);var p=a.whatsAppSelectionData,q=a.commerceSelectionData;k(function(){b!==d("AccountQualityAppealStages").AccountQualityAppealStage.NOT_INITIATED&&d("AccountQualityCommerceODS").bumpKey(d("AccountQualityCommerceODS").AccountQualityCommerceLoggerCategory.COMMERCE_HUB,["appeal",g,String(b)])},[g,b]);var r=0,s="",t="",u=null,v=null,w=null;switch(g){case c("AccountQualityCommerceEntityTypes").PRODUCTS:case c("AccountQualityCommerceEntityTypes").SHOPS:r=q.selectedRows.size;break;case c("AccountQualityWhatsAppEntityTypes").MESSAGE_TEMPLATES:r=p.templateTable.selectedRow.size;s=Array.from(p.templateTable.selectedRow.map(function(a){return a.name}).values())[0];break;case c("AccountQualityWhatsAppEntityTypes").ACTIVITY:r=p.violationTable.selectedRow.size;t=p.whatsAppAccountName;u=Array.from(p.violationTable.selectedRow.map(function(a){return a.violationType}).values())[0];v=Array.from(p.violationTable.selectedRow.map(function(a){return a.violationSubtype}).values())[0];break;case c("AccountQualityWhatsAppEntityTypes").COMMERCE_CHECK:w=p.commerceCheck;break}a=m("");var x=a[0],y=a[1];a=m("");var z=a[0],A=a[1];a=m([]);var B=a[0],C=a[1];a=m("");var D=a[0],E=a[1],F=j(function(){y(""),A(""),E(""),C([])},[y,A,E,C]),G=c("useProductAppealCreation.react")(),H=c("useCommerceMetadataAppealCreation")(),I=c("useWhatsAppHSMAppealCreation.react")(),J=c("useWhatsAppViolationAppealCreation.react")(),K=c("useWhatsAppCommerceCheckAppealCreation.react")();a=function(){switch(b){case d("AccountQualityAppealStages").AccountQualityAppealStage.SUCCESS:switch(g){case c("AccountQualityWhatsAppEntityTypes").ACTIVITY:return d("AccountQualityWhatsAppBusinessStrings").requestReviewModalSuccessHeader();case c("AccountQualityWhatsAppEntityTypes").MESSAGE_TEMPLATES:case c("AccountQualityCommerceEntityTypes").PRODUCTS:case c("AccountQualityCommerceEntityTypes").SHOPS:default:return d("AdsReviewStringConstants").getCommerceRequestSentTitle()}default:switch(g){case c("AccountQualityWhatsAppEntityTypes").ACTIVITY:return d("AccountQualityWhatsAppBusinessStrings").requestReviewModalHeader();case c("AccountQualityWhatsAppEntityTypes").MESSAGE_TEMPLATES:case c("AccountQualityCommerceEntityTypes").PRODUCTS:case c("AccountQualityCommerceEntityTypes").SHOPS:default:return d("AdsReviewStringConstants").getCommerceAppealFormTitle()}}};var L=j(function(a){var b=a.xfb_whats_app_hsm_appeal_create;b&&(c("AccountQualityWhatsAppProcessHSMAppealResponseAction").dispatch({response:a},{line:"193",module:"AccountQualityAppealDialog.react.js",moduleID:f.id}),c("AccountQualityWhatsAppClearRowsAction").dispatch({},{line:"196",module:"AccountQualityAppealDialog.react.js",moduleID:f.id}));F();n(d("AccountQualityAppealStages").AccountQualityAppealStage.SUCCESS)},[F,n]),M=c("useWhatsAppBizxPlatformLogger")(),N=j(function(a){var b=a.xfb_whats_app_violation_appeal_create;b&&(c("AccountQualityWhatsAppProcessViolationAppealResponseAction").dispatch({response:a},{line:"209",module:"AccountQualityAppealDialog.react.js",moduleID:f.id}),c("AccountQualityWhatsAppClearRowsAction").dispatch({},{line:"212",module:"AccountQualityAppealDialog.react.js",moduleID:f.id}));y("");n(d("AccountQualityAppealStages").AccountQualityAppealStage.SUCCESS);M.logEvent(c("WhatsAppBizxPlatformLoggerEvent.flow").WHATSAPP_VIOLATION_APPEAL_CALLBACK_SUCCESS)},[M,n,y]),O=j(function(){M.logEvent(c("WhatsAppBizxPlatformLoggerEvent.flow").WHATSAPP_VIOLATION_APPEAL_CALLBACK_FAILURE)},[M]),P=j(function(a){var b=a.whats_app_commerce_check_appeal_create;b&&c("AccountQualityWhatsAppProcessCommerceCheckAppealResponseAction").dispatch({response:a},{line:"233",module:"AccountQualityAppealDialog.react.js",moduleID:f.id});y("");((b=a.whats_app_commerce_check_appeal_create)==null?void 0:(a=b.commerce_check_appeal_response_payload)==null?void 0:a.success)!==!0?n(d("AccountQualityAppealStages").AccountQualityAppealStage.FAILURE):n(d("AccountQualityAppealStages").AccountQualityAppealStage.SUCCESS)},[n,y]),Q=j(function(){F(),n(d("AccountQualityAppealStages").AccountQualityAppealStage.NOT_INITIATED)},[F,n]),R=j(function(a,b){var c=q.selectedRows.map(function(a){return a.id}).values();G({ids:Array.from(c),comments_for_reviewer:x,callsite:"ACCOUNT_QUALITY",product_capabilities:q.capabilityFilters,type:"PRODUCT"},function(b){return a(b.content_appeal_create!=null)},b)},[x,G,q.capabilityFilters,q.selectedRows]),S=j(function(a,b){var d=q.selectedRows.map(function(a){return a.metadataID!==null?a.metadataID:null}).values();H({entity_ids:c("compactArray")(Array.from(d)),commerce_account_id:(d=q.commerceAccountID)!=null?d:"",appeal_comment:x,callsite:"ACCOUNT_QUALITY"},function(b){return a(b.commerce_metadata_create_appeal!=null)},b)},[x,H,q.commerceAccountID,q.selectedRows]),T=j(function(a){var b=[],e=function(){var a=b.filter(function(a){return a.appealsCreated}).length>0;a&&c("AccountQualityCommerceClearItemsAction").dispatch({},{line:"329",module:"AccountQualityAppealDialog.react.js",moduleID:f.id});a=b.filter(function(a){return!a.success}).length>0;n(a?d("AccountQualityAppealStages").AccountQualityAppealStage.FAILURE:d("AccountQualityAppealStages").AccountQualityAppealStage.SUCCESS)},g=function(c){b.push({success:!0,appealsCreated:c}),b.length===a.length&&e()},i=function(c){d("AccountQualityLogger").logSystem("aq.l3.commerce.appeal_creation_failure",{entity:c.toString()+","+h}),b.push({success:!1,appealsCreated:!1}),b.length===a.length&&e()};a.forEach(function(a){return a(g,i)})},[h,n]),U=j(function(){var a=p.templateTable.selectedRow.map(function(a){return a.id}).values(),b=function(a){d("AccountQualityLogger").logSystem("aq.l3.commerce.appeal_creation_failure",{entity:a.toString()})};I({hsm_ids:c("compactArray")(Array.from(a)),whatsapp_account_id:(a=p.whatsAppAccountID)!=null?a:"",appeal_comment:x,appeal_reason:z,appeal_reason_other:D,multi_appeal_reasons:B,callsite:"ACCOUNT_QUALITY"},L,b)},[x,z,D,B,L,I,p.templateTable.selectedRow,p.whatsAppAccountID]),V=j(function(){var a=p.violationTable.selectedRow.map(function(a){return a.id}).values();J({violation_ids:c("compactArray")(Array.from(a)),entity_id:(a=p.whatsAppAccountID)!=null?a:"",appeal_comment:x,callsite:"ACCOUNT_QUALITY"},N,O)},[p.violationTable.selectedRow,p.whatsAppAccountID,J,x,N,O]),W=j(function(){var a=p.strikeOnWhatsAppBusinessManager;J({violation_ids:[(a=a==null?void 0:a.id)!=null?a:""],entity_id:p.whatsAppBusinessManagerID,appeal_comment:x,callsite:"ACCOUNT_QUALITY"},N,O)},[p,J,x,N,O]),X=j(function(){var a;K({whatsapp_account_id:(a=p.whatsAppAccountID)!=null?a:"",appeal_comment:x,callsite:"ACCOUNT_QUALITY"},P,c("emptyFunction"))},[K,p.whatsAppAccountID,x,P]),Y=j(function(){n(d("AccountQualityAppealStages").AccountQualityAppealStage.SUBMITTED);switch(g){case c("AccountQualityCommerceEntityTypes").PRODUCTS:T([R]);break;case c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY:break;case c("AccountQualityCommerceEntityTypes").SHOPS:T([S]);break;case c("AccountQualityWhatsAppEntityTypes").MESSAGE_TEMPLATES:U();break;case c("AccountQualityWhatsAppEntityTypes").ACTIVITY:V();break;case c("AccountQualityWhatsAppEntityTypes").COMMERCE_CHECK:X();break;case c("AccountQualityWhatsAppEntityTypes").BUSINESS_MANAGER:W();break}},[n,g,T,R,S,U,V,X,W]),ba=b===d("AccountQualityAppealStages").AccountQualityAppealStage.INITIATED?d("AdsReviewStringConstants").getSubmitButtonLabel():d("AdsReviewStringConstants").getOKButtonLabel();Y=b===d("AccountQualityAppealStages").AccountQualityAppealStage.INITIATED?Y:Q;var Z=l(function(){switch(g){case c("AccountQualityCommerceEntityTypes").PRODUCTS:return"product";case c("AccountQualityCommerceEntityTypes").SHOPS:return"metadata";case c("AccountQualityWhatsAppEntityTypes").MESSAGE_TEMPLATES:case c("AccountQualityWhatsAppEntityTypes").ACTIVITY:return"whatsapp_business_account";default:return"product"}},[g]),$=p.strikeOnWhatsAppBusinessManager,ca=l(function(){var a;switch(g){case c("AccountQualityWhatsAppEntityTypes").MESSAGE_TEMPLATES:return i.jsx(c("AccountQualityHSMAppealForm.react"),{appealReason:z,appealReasonOther:D,appealStage:b,messageTemplateName:s,multiAppealReason:B,templateMultiAppealGK:o,onAppealReasonOtherUpdate:E,onAppealReasonUpdate:A,onMultiAppealReasonUpdate:C});case c("AccountQualityWhatsAppEntityTypes").ACTIVITY:return i.jsx(c("AccountQualityWhatsAppViolationAppealForm.react"),{appealComment:x,appealStage:b,violationSubtype:v,violationType:u,wabaName:t,onAppealCommentUpdated:y});case c("AccountQualityWhatsAppEntityTypes").BUSINESS_MANAGER:return i.jsx(c("AccountQualityWhatsAppBMViolationAppealForm.react"),{appealComment:x,appealStage:b,violationType:(a=$==null?void 0:$.violationType)!=null?a:55,whatsAppBusinessManagerName:p.whatsAppBusinessManagerName,onAppealCommentUpdated:y});case c("AccountQualityWhatsAppEntityTypes").COMMERCE_CHECK:return i.jsx(c("AccountQualityWhatsAppCommerceCheckAppealForm.react"),{appealComment:x,appealStage:b,businessID:e,commerceCheck:w,onAppealCommentUpdated:y});case c("AccountQualityCommerceEntityTypes").PRODUCTS:case c("AccountQualityCommerceEntityTypes").SHOPS:default:return i.jsx(c("AccountQualityCommerceAppealForm.react"),{appealComment:x,appealStage:b,count:r,entityType:Z,onAppealCommentUpdated:y})}},[g,z,D,b,s,B,o,x,u,v,t,$==null?void 0:$.violationType,p.whatsAppBusinessManagerName,e,w,r,Z]);function da(a){switch(a){case"RATINGS_AND_REVIEWS":case"RATINGS_AND_REVIEWS_REPLY":return d("CommerceCFAppealMultiStepModal.react").CommerceCFAppealEntityType.AQ_SELLER_REPLY}return d("CommerceCFAppealMultiStepModal.react").CommerceCFAppealEntityType.AQ_SELLER_REPLY}var ea=l(function(){var a,e=Array.from(q.selectedRows.values())[0];a=((a=e==null?void 0:e.policyViolationContents)!=null?a:[]).map(function(a){var b=a.body,d=a.body_bullets,e=a.footer;a=a.title;return{body:b,bodyBullets:d,footer:e,title:c("nullthrows")(a)}});return i.jsx(d("CommerceCFAppealMultiStepModal.react").CommerceCFAppealMultiStepModal,{entityID:e==null?void 0:e.id,entityType:da(e==null?void 0:e.contentType),isShown:b!==d("AccountQualityAppealStages").AccountQualityAppealStage.NOT_INITIATED,policyViolationContents:a,violations:(a=e==null?void 0:e.violations)!=null?a:[],onClose:function(a){n(d("AccountQualityAppealStages").AccountQualityAppealStage.NOT_INITIATED),a===!0&&c("AccountQualityCommerceClearItemsAction").dispatch({},{line:"648",module:"AccountQualityAppealDialog.react.js",moduleID:f.id})}})},[n,b,q.selectedRows]);return g===c("AccountQualityCommerceEntityTypes").COMMERCE_UGC?ea:i.jsx(c("GeoModal.react"),{behaviors:{LayerHideOnBlur:null},footer:i.jsx(c("GeoModalFooter.react"),{primaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:b===d("AccountQualityAppealStages").AccountQualityAppealStage.SUBMITTED,label:ba,variant:"primary",onClick:Y}),secondaryButton:b===d("AccountQualityAppealStages").AccountQualityAppealStage.INITIATED?i.jsx(c("GeoButton.react"),{isDisabled:b===d("AccountQualityAppealStages").AccountQualityAppealStage.SUBMITTED,label:d("AdsReviewStringConstants").getCancelButtonLabel(),layerAction:"cancel",onClick:Q}):null}),header:i.jsx(c("GeoModalHeader.react"),{heading:a()}),isShown:b!==d("AccountQualityAppealStages").AccountQualityAppealStage.NOT_INITIATED,label:a(),onHide:Q,children:i.jsx(c("GeoSection.react"),{children:ca})})}a.displayName=a.name+" [from "+f.id+"]";e=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=e}),98);
-----
AccountQualityCommerceEntityTypes",["AccountQualityCommerceEntity"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=c("AccountQualityCommerceEntity")}),98);
-----
AccountQualityCommerceDataTestUtils",["AccountQualityCommerceEntityTypes","AccountQualityCommerceReviewStatusTypes","AccountQualityTabTypes","immutable"],(function(a,b,c,d,e,f,g){"use strict";b={name:"1",id:"1",metadataID:"2",imageUrl:"",status:c("AccountQualityCommerceReviewStatusTypes").REJECTED,channels:[{capability:"DA",policyIssues:[],lastReviewed:1}],promotion:"FACEBOOK",policyIssues:[{policy_name:"",rejection_reason:"",rejection_message:"",policy_domain:null}],lastReviewed:"",commerceEntityType:c("AccountQualityCommerceEntityTypes").PRODUCTS};d={content:"Test content",contentType:"RATINGS_AND_REVIEWS_REPLY",name:"1",id:"1",metadataID:"2",imageUrl:"",status:c("AccountQualityCommerceReviewStatusTypes").REJECTED,channels:[{capability:"DA",policyIssues:[],lastReviewed:1,contentType:"RATINGS_AND_REVIEWS_REPLY"}],promotion:"FACEBOOK",policyIssues:[{policy_name:"",rejection_reason:"",rejection_message:"",policy_domain:null}],lastReviewed:"",commerceEntityType:c("AccountQualityCommerceEntityTypes").COMMERCE_UGC};e={content_appeal_create:{success:!0,contents_appeal_info:[{content_id:"1",product_capability_to_success:[{capability:"DA",success:!0}]}]}};f={commerce_metadata_create_appeal:{client_mutation_id:"1",results:[{entity_id:"2",success:!0}]}};function h(a){var b={};Object.keys(c("AccountQualityTabTypes")).forEach(function(d){b[c("AccountQualityTabTypes")[d]]={rows:(d=a)!=null?d:new Map(),cursor:null,loadAttempted:!1,count:null}});return b}function a(){var a,b;return{items:(a={},a[(b=c("AccountQualityCommerceEntityTypes")).PRODUCTS]=h(),a[b.COMMERCE_UGC]=h(),a[b.SHOPS]=h(),a[b.SHOPS]=h(),a[b.AUGMENTED_REALITY]=h(),a),selectedRows:c("immutable").Map([]),sortedRows:[],sortDirection:"asc",sortKey:null,selectedTab:c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW,selectedEntity:b.PRODUCTS,capabilityFilters:[],contentTypeFilters:[],commerceAccountID:null,catalogID:null,appealLimitsFetchKey:null}}g.TEST_PRODUCT=b;g.TEST_COMMERCE_UGC=d;g.TEST_APPEAL_RESPONSE=e;g.TEST_METADATA_APPEAL_RESPONSE=f;g.getTabsInitialState=h;g.getInitialState=a}),98);
-----
AccountQualityHubCommerceSidebar.react",["fbt","ix","AccountQualityCommerceChangeEntityAction","AccountQualityCommerceDataProvider","AccountQualityCommerceEntityTypes","AccountQualityLogger","GeoFlexbox.react","GeoSidebarItem.react","GeoSidebarNavigation.react","GeoSidebarSection.react","Image.react","LaminarReactHooks","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useCallback,m={root:{borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",height:"x1jn0hjm",marginEnd:"xq8finb",marginLeft:null,marginRight:null,minWidth:"x15x72sd",$$css:!0}};function a(a){var b,e;a=a.entities;var g=d("LaminarReactHooks").useProvider(c("AccountQualityCommerceDataProvider")),j=l(function(a){c("AccountQualityCommerceChangeEntityAction").dispatch({entity:a},{line:"53",module:"AccountQualityHubCommerceSidebar.react.js",moduleID:f.id}),d("AccountQualityLogger").logMouseEventAction("aq.l3.commerce.entity_change",{page:a,source_page:g.selectedEntity})},[g.selectedEntity]),n=(b={},b[(e=c("AccountQualityCommerceEntityTypes")).PRODUCTS]={value:e.PRODUCTS,title:h._("u5546u54c1"),icon:i("493818"),iconActive:i("500751")},b[e.COMMERCE_UGC]={value:e.COMMERCE_UGC,title:h._("u987eu5ba2u53cdu9988"),icon:i("555017"),iconActive:i("727974")},b[e.SHOPS]={value:e.SHOPS,title:h._("u5e97u94fau7248u5757"),icon:i("1594832"),iconActive:i("1594821")},b[e.AUGMENTED_REALITY]={value:e.AUGMENTED_REALITY,title:h._("Augumented Reality"),icon:i("276688"),iconActive:i("276545")},b);return k.jsx(c("GeoFlexbox.react"),{xstyle:m.root,children:k.jsx(c("GeoSidebarNavigation.react"),{value:g.selectedEntity,onChange:j,children:k.jsx(c("GeoSidebarSection.react"),{isLabelHidden:!0,label:"",children:a.map(function(a,b){a=n[a];return k.jsx(c("GeoSidebarItem.react"),{icon:k.jsx(c("Image.react"),{src:a.icon}),iconActive:k.jsx(c("Image.react"),{src:a.iconActive}),label:a.title,value:a.value},b)})})})})}a.displayName=a.name+" [from "+f.id+"]";b=d("LaminarReactHooks").laminarContainer(a,null,{containerName:f.id});g["default"]=b}),226);
-----
AccountQualityHubCommerceReviewTableUtils",["fbt","AccountQualityCommerceAccountAndCatalogStrings","AccountQualityCommerceActionsCell.react","AccountQualityCommerceChannelCell.react","AccountQualityCommerceContentCell.react","AccountQualityCommerceContentTypeCell.react","AccountQualityCommerceEntityTypes","AccountQualityCommerceLastReviewedCell.react","AccountQualityCommerceNameCell.react","AccountQualityCommercePolicyLinkCell.react","AccountQualityCommerceReviewStatusTypes","AccountQualityCommerceSetSelectedRowsAction","AccountQualityCommerceShopChannelCell.react","AccountQualityCommerceStatusCell.react","AccountQualityTabTypes","immutable","intersectSets","react","unionSets"],(function(a,b,c,d,e,f,g,h){var i,j,k,l=k||d("react"),m=Object.freeze({PRODUCT_NAME:"product_name",SHOP_NAME:"shop_name",PRODUCT_EFFECT_NAME:"product_effect_name",STATUS:"status",POLICY:"policy",PROMOTED:"promoted",CHANNEL:"channel",PRODUCTS:"products",LAST_REVIEWED:"last_reviewed",SHOP_CHANNEL:"shop_channel",VIOLATING_SECTION:"violating_section",CONTENT:"content",ACTIONS:"actions",CONTENT_TYPE:"content_type"});e=(e={},e[m.PRODUCT_NAME]=3,e[m.SHOP_NAME]=3,e[m.PRODUCT_EFFECT_NAME]=3,e[m.STATUS]=1.5,e[m.POLICY]=2,e[m.PROMOTED]=1.5,e[m.CHANNEL]=2,e[m.PRODUCTS]=1,e[m.LAST_REVIEWED]=1.5,e[m.SHOP_CHANNEL]=2,e[m.VIOLATING_SECTION]=2,e[m.CONTENT]=3,e[m.ACTIONS]=1.5,e[m.CONTENT_TYPE]=2,e);i=(i={},i[m.PRODUCT_NAME]=h._("u5546u54c1u540du79f0"),i[m.SHOP_NAME]=h._("u5e97u94fau7248u5757u540du79f0"),i[m.PRODUCT_EFFECT_NAME]=h._("Product Effects"),i[m.STATUS]=h._("u72b6u6001"),i[m.POLICY]=h._("u653fu7b56u95eeu9898"),i[m.PROMOTED]=h._("u5df2u63a8u5e7f"),i[m.CHANNEL]=h._("u6e20u9053"),i[m.PRODUCTS]=h._("u5546u54c1"),i[m.LAST_REVIEWED]=h._("u4e0au6b21u5ba1u6838u65e5u671f"),i[m.SHOP_CHANNEL]=h._("u6e20u9053"),i[m.VIOLATING_SECTION]=h._("u9009u62e9u7248u5757"),i[m.CONTENT]=h._("u5185u5bb9"),i[m.ACTIONS]=h._("u64cdu4f5c"),i[m.CONTENT_TYPE]=h._("u7c7bu578b"),i);h=(j={},j[c("AccountQualityCommerceEntityTypes").PRODUCTS]=h._("Products Table"),j[c("AccountQualityCommerceEntityTypes").COMMERCE_UGC]=h._("u987eu5ba2u53cdu9988"),j[c("AccountQualityCommerceEntityTypes").SHOPS]=h._("Shops Table"),j[c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY]=h._("Product Effects Table"),j);j=function(a,b){var d=[];switch(b){case c("AccountQualityCommerceEntityTypes").PRODUCTS:switch(a){case c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW:d=[m.PRODUCT_NAME,m.STATUS,m.POLICY,m.CHANNEL,m.LAST_REVIEWED];break;case c("AccountQualityTabTypes").IN_REVIEW:d=[m.PRODUCT_NAME,m.STATUS,m.POLICY,m.CHANNEL,m.LAST_REVIEWED];break;case c("AccountQualityTabTypes").REVERSED:d=[m.PRODUCT_NAME,m.STATUS,m.CHANNEL,m.LAST_REVIEWED];break;case c("AccountQualityTabTypes").UNCHANGED:d=[m.PRODUCT_NAME,m.STATUS,m.POLICY,m.CHANNEL,m.LAST_REVIEWED];break}break;case c("AccountQualityCommerceEntityTypes").COMMERCE_UGC:switch(a){case c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW:d=[m.CONTENT,m.STATUS,m.POLICY,m.CONTENT_TYPE,m.LAST_REVIEWED,m.ACTIONS];break;case c("AccountQualityTabTypes").IN_REVIEW:d=[m.CONTENT,m.STATUS,m.POLICY,m.CONTENT_TYPE,m.LAST_REVIEWED,m.ACTIONS];break;case c("AccountQualityTabTypes").REVERSED:d=[m.CONTENT,m.STATUS,m.CONTENT_TYPE,m.LAST_REVIEWED,m.ACTIONS];break;case c("AccountQualityTabTypes").UNCHANGED:d=[m.CONTENT,m.STATUS,m.POLICY,m.CONTENT_TYPE,m.LAST_REVIEWED,m.ACTIONS];break}break;case c("AccountQualityCommerceEntityTypes").SHOPS:switch(a){case c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW:d=[m.SHOP_NAME,m.STATUS,m.POLICY,m.SHOP_CHANNEL];break;case c("AccountQualityTabTypes").IN_REVIEW:d=[m.SHOP_NAME,m.STATUS,m.POLICY,m.SHOP_CHANNEL];break;case c("AccountQualityTabTypes").REVERSED:d=[m.SHOP_NAME,m.STATUS,m.SHOP_CHANNEL];break;case c("AccountQualityTabTypes").UNCHANGED:d=[m.SHOP_NAME,m.STATUS,m.POLICY,m.SHOP_CHANNEL];break}break;case c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY:switch(a){case c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW:d=[m.PRODUCT_EFFECT_NAME,m.STATUS,m.POLICY,m.CHANNEL,m.LAST_REVIEWED];break;case c("AccountQualityTabTypes").IN_REVIEW:d=[m.PRODUCT_EFFECT_NAME,m.STATUS,m.POLICY,m.CHANNEL,m.LAST_REVIEWED];break;case c("AccountQualityTabTypes").REVERSED:d=[m.PRODUCT_EFFECT_NAME,m.STATUS,m.CHANNEL,m.LAST_REVIEWED];break;case c("AccountQualityTabTypes").UNCHANGED:d=[m.PRODUCT_EFFECT_NAME,m.STATUS,m.POLICY,m.CHANNEL,m.LAST_REVIEWED];break}break}return d};var n=function(a,b,c){switch(a){case m.PRODUCT_NAME:case m.SHOP_NAME:case m.PRODUCT_EFFECT_NAME:return o;case m.STATUS:return p;case m.POLICY:return function(a){return q(a,b)};case m.PROMOTED:return r;case m.CHANNEL:return s;case m.PRODUCTS:return t;case m.LAST_REVIEWED:return u;case m.SHOP_CHANNEL:return v;case m.VIOLATING_SECTION:return z;case m.CONTENT:return w;case m.ACTIONS:return function(a){return x(a,c)};case m.CONTENT_TYPE:return y}return o},o=function(a){return l.jsx(c("AccountQualityCommerceNameCell.react"),{item:a.item})},p=function(a){return l.jsx(c("AccountQualityCommerceStatusCell.react"),{item:a.item})},q=function(a,b){return l.jsx(c("AccountQualityCommercePolicyLinkCell.react"),{item:a.item,selectedTab:b})},r=function(a){return l.jsx(l.Fragment,{children:a.item.promotion})},s=function(a){return l.jsx(c("AccountQualityCommerceChannelCell.react"),{item:a.item})},t=function(a){return l.jsx(l.Fragment,{children:a.item.productCount})},u=function(a){return l.jsx(c("AccountQualityCommerceLastReviewedCell.react"),{item:a.item})},v=function(a){return l.jsx(c("AccountQualityCommerceShopChannelCell.react"),{item:a.item})},w=function(a){return l.jsx(c("AccountQualityCommerceContentCell.react"),{item:a.item})},x=function(a,b){return l.jsx(c("AccountQualityCommerceActionsCell.react"),{commerceAccountID:b,item:a.item})},y=function(a){return l.jsx(c("AccountQualityCommerceContentTypeCell.react"),{item:a.item})},z=function(a){return l.jsx(l.Fragment,{children:d("AccountQualityCommerceAccountAndCatalogStrings").getViolatingSectionLabel(a.item.violatingSection,a.item.violatingSectionSource)})},A=function(a,b,c){a=[].concat(a);switch(b){case m.PRODUCTS:a.sort(function(a,b){a=a.productCount!=null?a.productCount:-1;b=b.productCount!=null?b.productCount:-1;return a>b?1:-1});break;case m.STATUS:a.sort(function(a,b){return B(a.status)>B(b.status)?1:-1});break;default:a.sort(function(a,d){var e=null,f=null,g=null,h,i=null,j=null;switch(b){case m.PRODUCT_NAME:case m.SHOP_NAME:case m.PRODUCT_EFFECT_NAME:e=a.name;f=d.name;break;case m.PROMOTED:e=a.promotion;f=d.promotion;break;case m.POLICY:g=a.channels!=null?a.channels.reduce(function(a,b){return a.concat(b.policyIssues)},[]):a.policyIssues||[];h=d.channels!=null?d.channels.reduce(function(a,b){return a.concat(b.policyIssues)},[]):d.policyIssues||[];e=g!=null&&g.length>0?g[0].policy_name:"";f=h!=null&&h.length>0?h[0].policy_name:"";break;case m.SHOP_CHANNEL:e=a.shopChannels!=null&&a.shopChannels.length>0?a.shopChannels[0]:null;f=d.shopChannels!=null&&d.shopChannels.length>0?d.shopChannels[0]:null;break;case m.CHANNEL:e=a.channels!=null&&a.channels.length>0?a.channels[0].capability:null;f=d.channels!=null&&d.channels.length>0?d.channels[0].capability:null;break;case m.LAST_REVIEWED:i=a.channels!=null?a.channels.map(function(a){return a.lastReviewed}):null;j=d.channels!=null?d.channels.map(function(a){return a.lastReviewed}):null;if(i!=null&&j!=null){i.sort(function(a,b){return a>b?1:-1});j.sort(function(a,b){return a>b?1:-1});c==="descending"&&(i.reverse(),j.reverse());return i[0]>j[0]?1:-1}e=a.lastReviewed;f=d.lastReviewed;break;case m.CONTENT:e=a.content;f=d.content;break;case m.CONTENT_TYPE:e=a.contentType;f=d.contentType;break}return e==null||f==null||e===f?0:e.toString().localeCompare(f.toString())});break}c==="descending"&&a.reverse();return a},B=function(a){if(a==null)return 0;switch(a){case c("AccountQualityCommerceReviewStatusTypes").REJECTED:return 3;case c("AccountQualityCommerceReviewStatusTypes").PRODUCT_ISSUES:return 2;case c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW:return 1;case c("AccountQualityCommerceReviewStatusTypes").APPROVED:return 0}return 0},C=function(a,b,d){b=b.flatMap(function(a){return[a].concat(a.collection?[a.collection]:[]).concat((a=a.products)!=null?a:[])}).reduce(function(b,c,e){if(a.has(d(c)))return b.set(e,c);else return b},c("immutable").Map());c("AccountQualityCommerceSetSelectedRowsAction").dispatch({rows:b},{line:"612",module:"AccountQualityHubCommerceReviewTableUtils.js",moduleID:f.id})};function a(a,b){var c=new Set([b(a)]);a.collection!=null&&c.add(b(a.collection));a.products!=null&&a.products.forEach(function(a){return c.add(b(a))});return c}function b(a,b,d,e){e=new Set([e(a)]);if(a.siblingRowIDs==null||a.parentRowID==null)return e;var f=a.siblingRowIDs;a=a.parentRowID;if(b){b=c("unionSets")(d,e);c("intersectSets")(b,f).size===f.size&&e.add(a)}else e.add(a);return e}g.TableColumns=m;g.relativeColumnWeights=e;g.columnHeaderLabels=i;g.tableAccessibilityLabel=h;g.getTableColumnsForView=j;g.getCellRenderer=n;g.sortRows=A;g.onSelectedItems=C;g.getChildrenItemIDs=a;g.getParentItemIDs=b}),226);
-----
AccountQualityHubCommerceReviewTable.react",["fbt","AccountQualityCommerceDataProvider","AccountQualityCommerceEntityTypes","AccountQualityHubCommerceReviewTableUtils","AccountQualityHubFetchCommerceDataContainer.react","AccountQualityLogger","GeoFlexbox.react","GeoTable.react","GeoTableWidth","LaminarReactHooks","OnVisible.react","createGeoTableDataSource","differenceSets","react","unionSets","useBoolean","useGeoTableCustomRowRendering","useGeoTableRowExpansion","useGeoTableRowExpansionDataSource","useGeoTableRowSelection","useGeoTableRowSelectionState","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.Suspense,l=b.useCallback,m=b.useEffect,n=b.useMemo,o=b.useState,p=5,q={table:{width:"xh8yej3",$$css:!0}};function a(a){var b=a.getIDForItem,e=babelHelpers.objectWithoutPropertiesLoose(a,["getIDForItem"]),f=d("LaminarReactHooks").useProvider(c("AccountQualityCommerceDataProvider"));a=c("useBoolean")(!1);var g=a.value,h=a.setTrue;a=a.setFalse;var i=r(e.items,b),l=i[0],m=i[1];i=t(l,b);i=i[0];var o=!f.items[f.selectedEntity][f.selectedTab].loadAttempted,v=n(function(){return e.tableColumns.map(function(a){return{key:a,cell:d("AccountQualityHubCommerceReviewTableUtils").getCellRenderer(a,f.selectedTab,e.commerceAccountID),width:d("GeoTableWidth").proportional(d("AccountQualityHubCommerceReviewTableUtils").relativeColumnWeights[a],{minWidth:120}),header:d("AccountQualityHubCommerceReviewTableUtils").columnHeaderLabels[a],features:{sortable:m.singleKey(a)}}})},[e.tableColumns,m,f.selectedTab,e.commerceAccountID]);u(e.tableColumns,f.selectedTab);var w={};l=s(l,b,e.selectedItemIDs,e.setSelectedItemIDs,e.disabledItemIDs);e.isSelectable&&(w.selection=l);return j.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[j.jsx(c("GeoTable.react"),{columns:v,"data-testid":void 0,dataSource:i,label:d("AccountQualityHubCommerceReviewTableUtils").tableAccessibilityLabel[f.selectedEntity],pagination:{hasNext:!1,isLoadingNext:o,pageSize:o?p:e.items.length,loadNext:null},plugins:w,variant:"dense",xstyle:q.table}),j.jsx(k,{fallback:null,children:j.jsx(c("OnVisible.react"),{onHidden:a,onVisible:h,children:g||o?j.jsx(c("AccountQualityHubFetchCommerceDataContainer.react"),{}):j.jsx("div",{})})})]})}a.displayName=a.name+" [from "+f.id+"]";function r(a,b){var e=c("useGeoTableSortableState")({sortKey:null,direction:"descending"}),f=e[0];e=e[1];e=c("useGeoTableSortableColumn_DEPRECATED")({sort:f,setSort:e});m(function(){f&&f.sortKey?d("AccountQualityLogger").logMouseEventAction("aq.l3.commerce.sort_table",{entity:f.sortKey}):d("AccountQualityLogger").logMouseEventAction("aq.l3.commerce.sort_table")},[f]);var g=n(function(){return f!=null?d("AccountQualityHubCommerceReviewTableUtils").sortRows(a,f.sortKey,f.direction):a},[f,a]),h=n(function(){return c("createGeoTableDataSource")(g,{getStableUniqueID:b})},[g,b]);return[h,e]}function s(a,b,e,f,g){a=c("useGeoTableRowSelectionState")({dataSource:a,getIDForItem:b,selectedItemIDs:e,setSelectedItemIDs:f});var i=a.onSelectAll;a.onSelectItem;a=a.getAllSelected;var j=l(function(a){var g=a.item;a=a.isSelected;var h=d("AccountQualityHubCommerceReviewTableUtils").getParentItemIDs(g,a,e,b);if(g.commerceEntityType===c("AccountQualityCommerceEntityTypes").COMMERCE_UGC)f(a?h:new Set());else{var i=a?c("unionSets"):c("differenceSets");f(function(a){return i(a,h)})}},[b,e,f]),k=l(function(a){a.isAllSelected;return h._("u5168u9009")},[]),m=l(function(a){a.isSelected;a.item;return h._("u9009u62e9u884c")},[]);return c("useGeoTableRowSelection")({"data-select-all-testid":"table-select-all-checkbox",getAllSelected:a,selectedItemIDs:e,onSelectAll:i,onSelectItem:j,getIDForItem:b,getSelectAllLabel:k,getSelectLabel:m,getIsItemEnabled:function(a){return!g.has(b(a))},getIsAllSelectable:function(){return!1}})}function t(a,b){var d=o(new Set()),e=d[0];d=d[1];var f=l(function(a){var c=a.item;a=(c.collection?[c.collection]:[]).concat((a=c.products)!=null?a:[]);var d=new Set(a.map(b));return a.map(function(a){return babelHelpers["extends"]({},a,{siblingRowIDs:d,parentRowID:b(c)})})},[b]),g=l(function(){return!1},[]);a=c("useGeoTableRowExpansionDataSource")({baseDataSource:a,getChildren:f,getIDForItem:b,expandedItemIDs:e});f=l(function(a){a.item;a=a.isExpanded;return a?"Collapse":"Expand"},[]);e=c("useGeoTableRowExpansion")({expandedItemIDs:e,setExpandedItemIDs:d,getLabel:f,getIsItemExpandable:g,getIDForItem:b});return[a,e]}function u(a,b){var e=n(function(){return a.reduce(function(a,c){a[c]=d("AccountQualityHubCommerceReviewTableUtils").getCellRenderer(c,b);return a},{})},[a,b]);return c("useGeoTableCustomRowRendering")({render:l(function(a){a.item;return e},[e])})}e=d("LaminarReactHooks").laminarContainer(a,null,{containerName:f.id});g["default"]=e}),226);
-----
AccountQualityCommerceAccountAndCatalogStrings",["fbt","ix","AccountQualityCommerceAppealRestrictionTypes","AccountQualityCommerceEntityTypes","AccountQualityCommerceReviewStatusTypes","AccountQualityCommerceShopChannelTypes","BIUGCContentType","CatalogItemChannelsToIntegrityInfoType","CatalogUseCaseName$FbtEnum","CatalogUsecases","CommerceIntegrityInfoUtils","DateTime","GeoLink.react","Timezone","UnifiedIntegrityPolicyPageModalUtils","getJSEnumSafe","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");function a(a){if(a.length===2)return h._("u5e7fu544au548cu9500u552e");if(a.length===1)switch(a[0]){case d("CatalogItemChannelsToIntegrityInfoType").ProductChannelEnum.ADS:return h._("u5e7fu544a");case d("CatalogItemChannelsToIntegrityInfoType").ProductChannelEnum.COMMERCE:return h._("u9500u552e")}return null}function b(a){return a>0?h._({"*":"{number}u4e2au6e20u9053","_1":"1 u4e2au6e20u9053"},[h._plural(a,"number")]):null}function e(a){var b=null;switch(a){case"DA":b=d("CatalogUsecases").CatalogUsecases.DYNAMIC_ADS;break;case"MARKETPLACE_SHOPS":case"B2C_MARKETPLACE":b=d("CatalogUsecases").CatalogUsecases.MARKETPLACE_SHOPS;break;case"MARKETPLACE":case"MARKETPLACE_MOTORS":b=d("CatalogUsecases").CatalogUsecases.MARKETPLACE_VERTICALS_MOTORS;break;case"MARKETPLACE_ADS_DEPRECATED":b=d("CatalogUsecases").CatalogUsecases.MARKETPLACE_VERTICALS_MOTORS_ADS;break;case"SHOPS":b=d("CatalogUsecases").CatalogUsecases.PAGE_SHOP;break;case"UNIVERSAL_CHECKOUT":b=d("CatalogUsecases").CatalogUsecases.UNIVERSAL_CHECKOUT;break;default:return""}return h._({"COLLABORATIVE_ADS":"Collaborative ads","COLLECTION_ADS":"Ads to drive traffic","DYNAMIC_ADS":"u52a8u6001u5e7fu544a","IG_TAGGING":"Shops","MARKETPLACE_SHOPS":"Marketplace - deprecated","MARKETPLACE_VERTICALS_MOTORS":"Marketplace vehicles","MARKETPLACE_VERTICALS_MOTORS_ADS":"Click to Marketplace ads","OFFLINE_CONVERSIONS":"Collaborative ads for in-store sales","PAGE_SHOP":"Facebook Page shop","SHOPS_ADS":"Shop ads","UNIVERSAL_CHECKOUT":"Onsite checkout","MARKETPLACE":"Marketplace","WHATSAPP":"WhatsApp"},[h._enum(b,c("CatalogUseCaseName$FbtEnum"))])}e.displayName=e.name+" [from "+f.id+"]";function l(a){if(a==null)return"";switch(a){case c("AccountQualityCommerceReviewStatusTypes").REJECTED:return h._("u5df2u88abu62d2");case c("AccountQualityCommerceReviewStatusTypes").APPROVED:return h._("u5df2u83b7u6279");case c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW:return h._("u5ba1u6838u4e2d");case c("AccountQualityCommerceReviewStatusTypes").PRODUCT_ISSUES:return h._("u5546u54c1u95eeu9898")}return""}function m(a){if(a==null)return"";switch(c("getJSEnumSafe")(c("BIUGCContentType"),a)){case"RATINGS_AND_REVIEWS_REPLY":return h._("u56deu590du70b9u8bc4")}return""}function n(a,b){if(a==null)return"";switch(a){case c("AccountQualityCommerceReviewStatusTypes").REJECTED:return h._({"*":"{number} rejections","_1":"1 rejection"},[h._plural(b,"number")]);case c("AccountQualityCommerceReviewStatusTypes").APPROVED:return h._({"*":"{number} approvals","_1":"1 approval"},[h._plural(b,"number")]);case c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW:return h._("In review");case c("AccountQualityCommerceReviewStatusTypes").PRODUCT_ISSUES:return h._("Product issues")}return""}function o(a){switch(a.commerceEntityType){case c("AccountQualityCommerceEntityTypes").PRODUCTS:if(a.parentRowID==null)return h._("Single product")}return a.id}function p(a){return a.name}function q(a){if(a!=null)switch(a){case c("AccountQualityCommerceReviewStatusTypes").REJECTED:return i("1602157");case c("AccountQualityCommerceReviewStatusTypes").APPROVED:return i("1602156");case c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW:case c("AccountQualityCommerceReviewStatusTypes").PRODUCT_ISSUES:return i("1602158")}return null}function r(a,b){switch(a){case"COLLECTION_FEATURE_TILE":return h._("u4e3bu6253u7cfbu5217u5546u54c1");case"HEADER":return h._("u7cfbu5217u5546u54c1u6807u9898");case"PRODUCT_FEATURE_TILE":return h._("u4e3bu6253u5546u54c1");case"PRODUCT_GRID":switch(b){case"HOME":return h._("u4e3bu6253u7cfbu5217u5546u54c1uff08u7f51u683cuff09");case"COLLECTION":return h._("u5546u54c1");default:return""}default:return""}}function s(a,b){switch(a){case c("AccountQualityCommerceAppealRestrictionTypes").BUSINESS_WEEKLY_APPEAL_LIMIT:return h._("u4f60u5df2u8d85u8fc7u672cu5468u7684u7533u8bc9u4e0au9650u3002");case c("AccountQualityCommerceAppealRestrictionTypes").BULK_APPEAL_LIMIT:return h._("u4f60u4e00u6b21u6700u591au53efu4ee5u7533u8bf7u590du5ba1{bulk appeal limit}u4ef6u5546u54c1u3002",[h._param("bulk appeal limit",b)]);case c("AccountQualityCommerceAppealRestrictionTypes").CAPABILITIES_NOT_SUPPORTED:return h._("u4f60u7684u5546u54c1u4e0du80fdu590du5ba1u3002");default:return""}}function t(a){switch(a){case c("AccountQualityCommerceAppealRestrictionTypes").BUSINESS_WEEKLY_APPEAL_LIMIT:return h._("u590du5ba1u7533u8bf7u6b21u6570u5df2u8fbeu4e0au9650");case c("AccountQualityCommerceAppealRestrictionTypes").BULK_APPEAL_LIMIT:return h._("u5df2u8fbeu5546u54c1u6570u91cfu4e0au9650");case c("AccountQualityCommerceAppealRestrictionTypes").CAPABILITIES_NOT_SUPPORTED:return h._("u65e0u6cd5u590du5ba1u5546u54c1");default:return""}}function u(a,b){if(b==="ONBOARDING_IN_REVIEW")return h._("Weu2019re running a standard review of your account to make sure it complies with our {url to commerce policies}. This typically takes a few business days but can take up to four weeks.",[h._param("url to commerce policies",k.jsx(c("GeoLink.react"),{href:d("UnifiedIntegrityPolicyPageModalUtils").FACEBOOK_COMMERCE_POLICIES_URI,children:h._("u7535u5546u529fu80fdu51c6u5165u8981u6c42")}))]);if(d("CommerceIntegrityInfoUtils").isAppealRejected(a))return h._("After a requested review of this commerce account, we confirmed it didn"t comply with our {url to commerce policies}. This commerce account"s shop will remain rejected.",[h._param("url to commerce policies",k.jsx(c("GeoLink.react"),{href:d("UnifiedIntegrityPolicyPageModalUtils").FACEBOOK_COMMERCE_POLICIES_URI,children:h._("u7535u5546u529fu80fdu51c6u5165u8981u6c42")}))]);if(d("CommerceIntegrityInfoUtils").isAppealOnHold(a))return h._("The documents submitted for your review have issues. You need to upload new documents to complete your review request.");if(d("CommerceIntegrityInfoUtils").isAppealPending(a))return h._("An admin for this commerce account requested a review to determine if this commerce account"s shop should be rejected. We"re reviewing the account and will notify you here.");return d("CommerceIntegrityInfoUtils").isAppealClosed(a)?h._("u6211u4eecu5224u5b9au4f60u63d0u4f9bu7684u4fe1u606fu4e0du7b26u5408u6240u9009u539fu56e0u7684u8981u6c42uff0cu56e0u800cu5173u95edu8fd9u9879u590du5ba1u7533u8bf7u3002u4f60u53efu4ee5u91cdu65b0u63d0u4ea4u590du5ba1u7533u8bf7u3002"):null}function v(a,b){if(b==="ONBOARDING_IN_REVIEW")return h._("Commerce account in review");if(d("CommerceIntegrityInfoUtils").isAppealRejected(a))return h._("Account reviewed");if(d("CommerceIntegrityInfoUtils").isAppealOnHold(a))return h._("Commerce account review on hold");if(d("CommerceIntegrityInfoUtils").isAppealPending(a)){b=c("DateTime").create((b=a==null?void 0:a.createdTime)!=null?b:0,d("Timezone").UTC).format("M d, Y");return h._("Review requested on {appeal date}",[h._param("appeal date",b)])}return d("CommerceIntegrityInfoUtils").isAppealClosed(a)?h._("u672au5b8cu6210u4f60u7684u590du5ba1u7533u8bf7"):null}function w(a){switch(a){case c("AccountQualityCommerceShopChannelTypes").FACEBOOK:return h._("u5e97u94fa");case c("AccountQualityCommerceShopChannelTypes").INSTAGRAM:return h._("Instagram")}return""}function x(a){switch(a){case c("AccountQualityCommerceShopChannelTypes").FACEBOOK:return i("1350441");case c("AccountQualityCommerceShopChannelTypes").INSTAGRAM:return i("1353247")}return null}function y(){return h._("u6ca1u6709u653fu7b56u95eeu9898")}y.displayName=y.name+" [from "+f.id+"]";function z(a){switch(a){case"facebook":return h._("Facebook");case"instagram":return h._("Instagram");case"audience_network":return h._("Audience Network");case"messenger":return h._("Messenger");case"whatsapp":return h._("WhatsApp")}return""}function A(){return k.jsx(c("GeoLink.react"),{href:"https://www.facebook.com/business/help/2347002662267537",target:"_blank",children:h._("u7535u5546u529fu80fdu51c6u5165u8981u6c42")})}A.displayName=A.name+" [from "+f.id+"]";function B(){return k.jsx(c("GeoLink.react"),{href:"https://www.facebook.com/business/help/108127923199330",target:"_blank",children:h._("u4e86u89e3u66f4u591a")})}B.displayName=B.name+" [from "+f.id+"]";function C(a){a=a!=null?c("DateTime").fromISOString(a,d("Timezone").UTC).format("M d, Y"):"";return h._("u81ea{warn_date}u540e 30 u5929u8d77uff0cu8fd9u4e2au7535u5546u5e10u6237u53efu80fdu4f1au88abu9650u5236u4f7fu7528u5546u54c1u9500u552eu529fu80fduff0cu56e0u4e3au5b83u6240u5c5eu7684u4e1au52a1u8d44u4ea7u7ec4u5408u8fddu53cdu4e86u6211u4eecu7684u6761u6b3eu548cu5176u4ed6u5b88u5219uff0cu5305u62ec{commerce_link}u3002u5982u679cu8fd9u4e2au7535u5546u5e10u6237u53d7u9650uff0cu4f60u7684u5e97u94fau5c06u88abu7981u7528u3002{learn_more}",[h._param("warn_date",a),h._param("commerce_link",A()),h._param("learn_more",B())])}C.displayName=C.name+" [from "+f.id+"]";function D(a){a=a!=null?c("DateTime").fromISOString(a,d("Timezone").UTC).format("M d, Y"):"";return h._("u81ea{warn_date}u540e 30 u5929u8d77uff0cu8fd9u4e2au7535u5546u5e10u6237u53efu80fdu4f1au88abu9650u5236u4f7fu7528u5546u54c1u9500u552eu529fu80fduff0cu56e0u4e3au5b83u6240u5c5eu7684u4e1au52a1u8d44u4ea7u7ec4u5408u8fddu53cdu4e86u6211u4eecu7684u6761u6b3eu548cu5176u4ed6u5b88u5219uff0cu5305u62ec{commerce_link}u3002u5982u679cu8fd9u4e2au7535u5546u5e10u6237u53d7u9650uff0cu4f60u7684u5e97u94fau5c06u88abu7981u7528u3002",[h._param("warn_date",a),h._param("commerce_link",A())])}D.displayName=D.name+" [from "+f.id+"]";function E(){return h._("u8fd9u4e2au7535u5546u5e10u6237u7684u5e97u94fau548cu5176u4ed6u4e00u4e9bu8d44u4ea7u5df2u88abu7981u7528uff0cu56e0u4e3au7535u5546u5e10u6237u6240u5c5eu7684u5546u52a1u7ba1u7406u5e73u53f0u5e10u6237u8fddu53cdu4e86u6211u4eecu7684u6761u6b3eu548cu5176u4ed6u5b88u5219uff0cu5305u62ecu6211u4eecu7684{commerce_link}u3002u4f60u4ecdu7136u53efu4ee5u7ba1u7406u73b0u6709u8ba2u5355uff0cu4f46u4e0du53efu5904u7406u65b0u8ba2u5355u3002{learn_more}",[h._param("commerce_link",A()),h._param("learn_more",B())])}E.displayName=E.name+" [from "+f.id+"]";function F(){return h._("u8fd9u4e2au7535u5546u5e10u6237u7684u5e97u94fau548cu5176u4ed6u4e00u4e9bu8d44u4ea7u5df2u88abu7981u7528uff0cu56e0u4e3au7535u5546u5e10u6237u6240u5c5eu7684u5546u52a1u7ba1u7406u5e73u53f0u5e10u6237u8fddu53cdu4e86u6211u4eecu7684u6761u6b3eu548cu5176u4ed6u5b88u5219uff0cu5305u62ecu6211u4eecu7684{commerce_link}u3002u4f60u4ecdu7136u53efu4ee5u7ba1u7406u73b0u6709u8ba2u5355uff0cu4f46u4e0du53efu5904u7406u65b0u8ba2u5355u3002",[h._param("commerce_link",A())])}F.displayName=F.name+" [from "+f.id+"]";g.getChannelLabel=a;g.getNumChannelsLabel=b;g.getCapabilityLabel=e;g.getStatusLabel=l;g.getContentTypeLabel=m;g.getLaunchItemStatusLabel=n;g.getLaunchItemIdLabel=o;g.getLaunchItemDisplayName=p;g.getStatusImage=q;g.getViolatingSectionLabel=r;g.getNotificationContent=s;g.getNotificationHeader=t;g.getAppealBannerBody=u;g.getAppealBannerTitle=v;g.getShopChannelLabel=w;g.getShopChannelImage=x;g.noPolicyIssuesText=y;g.getPublisherPlatformLabel=z;g.getCommerceLink=A;g.getLearnMoreLink=B;g.getNearRestrictionMessage=C;g.getNearRestrictionNoLearnMoreMessage=D;g.getRestrictedMessage=E;g.getRestrictedNoLearnMoreMessage=F}),226);
-----
AccountQualityCommerceUpdateCursorReducerPlugin",["AccountQualityCommerceEntityTypes","AccountQualityTabTypes"],(function(a,b,c,d,e,f,g){"use strict";a={reduce:function(a,b){var d=babelHelpers["extends"]({},a.items);b.entity===c("AccountQualityCommerceEntityTypes").PRODUCTS?d[b.entity][b.tab].cursor=b.cursor:Object.keys(c("AccountQualityTabTypes")).forEach(function(a){a=c("AccountQualityTabTypes")[a];d[b.entity][a].cursor=b.cursor});return babelHelpers["extends"]({},a,{items:d})}};b=a;g["default"]=b}),98);
-----
AccountQualityHubCommerceAccountAndCatalogUtils",["fbt","ix","AccountQualityCommerceAccountAndCatalogStrings","AccountQualityCommerceAppealRestrictionTypes","AccountQualityCommerceEntityTypes","AccountQualityCommerceReviewStatusTypes","AccountQualityCommerceSetAppealLimitsAction","AccountQualityCommerceShopChannelTypes","AccountQualityHubCommerceAccountAndCatalogConstants","AccountQualityHubCommerceAccountAndCatalogUtilsCatalogLimitsQuery.graphql","AccountQualityHubCommerceAccountAndCatalogUtils_argroup.graphql","AccountQualityHubCommerceAccountAndCatalogUtils_commerce_ugc.graphql","AccountQualityHubCommerceAccountAndCatalogUtils_item.graphql","AccountQualityHubCommerceAccountAndCatalogUtils_shop.graphql","AccountQualityTabTypes","CatalogItemCapabilityToDomain","CommerceArrayUtils","CommerceIntegrityInfoUtils","CommerceManagerUtils","DateTime","RelayHooks","SellerState","SellerStateUtils.facebook","Timezone","react"],(function(a,b,c,d,e,f,g,h,i){var j,k,l,m,n,o,p=(o||d("react")).useEffect,q=function(a,b){var c,d;c=t(a==null?void 0:(c=a.shops)==null?void 0:c.nodes);d=(d=a==null?void 0:(d=a.product_catalog)==null?void 0:d.product_count_for_status)!=null?d:0;var e=s(a==null?void 0:a.commerce_ugc),f=Boolean(a==null?void 0:a.is_customer_feedback_feature_enabled),g=d+c;f&&(g+=e);return w(a.name,a.id,g,"COMMERCE_ACCOUNT",x(a),b,a.sellerState,d,0,c,e,f)},r=function(a,b,c,e){var f;b=b;b.push.apply(b,(a==null?void 0:(f=a.commerceAccounts)==null?void 0:f.nodes)||[]);f=(e==null?void 0:e.proxyCommerceAccounts)||[];b.push.apply(b,f);f=d("CommerceArrayUtils").unique([].concat(b),function(a){return(a==null?void 0:a.id)||""}).filter(function(a){return d("CommerceManagerUtils").isAccountEnabled(a)}).filter(Boolean);var g=f.map(function(a){return a==null?void 0:a.product_catalog});e=c=="AdBusiness"?a==null?void 0:(b=a.business_product_catalogs)==null?void 0:b.nodes.filter(function(a){return!g.includes(a)}):e==null?void 0:(c=e.account_user)==null?void 0:(b=c.all_product_catalogs)==null?void 0:b.nodes.filter(function(a){return!g.includes(a)});c=d("CommerceArrayUtils").unique([].concat(e),function(a){return(a==null?void 0:a.id)||""}).filter(Boolean);var h=a==null?void 0:(b=a.business_integrity_account_status)==null?void 0:b.integrity_account_banhammer_status;e=c.map(function(a){return u(a)});var i=[];e.forEach(function(a){i.push("catalog/"+(a.id!=null?a.id:"unknown_id")+"/"+a.statusText.toString())});a=f.map(function(a){return q(a,h)});a.forEach(function(a){i.push("commerce_account/"+(a.id!=null?a.id:"unknown_id")+"/"+a.statusText.toString())});return[[].concat(e,a),i]},s=function(a){a=(a==null?void 0:a.filter(function(a){return a.status!=="APPROVED"}))||[];return a.length},t=function(a){var b=0;a==null?void 0:a.map(function(a){return E(a)}).forEach(function(a){if(a!=null){a=P(a);a.forEach(function(a){a.reviewStatus==="REJECTED"&&b++})}});return b},u=function(a){var b;b=(b=a==null?void 0:a.product_count_for_status)!=null?b:0;return w(a.name,a.id,b,"CATALOG",i("1534226"))},v=function(a){var b=new Map();a==null?void 0:a.forEach(function(a){var d;if(!Object.prototype.hasOwnProperty.call(c("CatalogItemCapabilityToDomain"),a.toLowerCase()))return;var e=c("CatalogItemCapabilityToDomain")[a.toLowerCase()];b.has(e)?(d=b.get(e))==null?void 0:d.push(a):b.set(e,[a])});return b},w=function(a,b,c,d,e,f,g,h,i,j,k,l){var m=y(c,f,g);f=z(c,f,g);return{name:a,id:b,image:e,statusText:m,statusIcon:f,rejectionCount:c,itemType:d,rejectedProductCount:h,rejectedCollectionsCount:i,rejectedShopSectionsCount:j,rejectedCommerceUGCCount:k,showCommerceUGC:l}},x=function(a){var b;b=(b=a==null?void 0:(b=a.shops)==null?void 0:b.nodes.filter(function(a){return a.fbAsset!=null}))!=null?b:[];b=(b==null?void 0:b.length)>0?(b=b[0].fbAsset)==null?void 0:b.page:null;a=(a=a.shops)==null?void 0:(a=a.nodes.filter(function(a){return((a=a.igAsset)==null?void 0:a.igUser)!=null})[0])==null?void 0:(a=a.igAsset)==null?void 0:a.igUser;return(b=b==null?void 0:(b=b.picture)==null?void 0:b.uri)!=null?b:a==null?void 0:(b=a.picture)==null?void 0:b.uri},y=function(a,b,c){var d=h._("u65e0u8d44u4ea7u95eeu9898");A(b)||B(c)?d=h._("u5e10u6237u53d7u9650"):D(b)||C(c)?d=h._("u5e10u6237u5373u5c06u53d7u9650"):a>0&&(d=h._("u90e8u5206u8d44u4ea7u88abu62d2"));return d},z=function(a,b,c){var d=i("1270238");A(b)||B(c)?d=i("1280867"):(D(b)||C(c)||a>0)&&(d=i("1270245"));return d},A=function(a){if(a!=null)switch(a){case"DISABLED_NOTDAY1TO30_APPEAL_ELIGIBLE":case"DISABLED_NOTDAY1TO30_APPEAL_NOTELIGIBLE":case"RESTRICTED_NO_APPEAL":return!0}return!1},B=function(a){switch(d("SellerStateUtils.facebook").toJSEnum(a)){case c("SellerState").ONBOARDING_REJECTED:case c("SellerState").BANNED:case c("SellerState").POOR:case c("SellerState").RESTRICTED:return!0;case c("SellerState").ONBOARDING_IN_REVIEW:case c("SellerState").BANHAMMER_WARNING:case c("SellerState").GOOD:case c("SellerState").POOR_WARNING:default:return!1}},C=function(a){switch(d("SellerStateUtils.facebook").toJSEnum(a)){case c("SellerState").BANHAMMER_WARNING:case c("SellerState").POOR_WARNING:return!0;case c("SellerState").ONBOARDING_IN_REVIEW:case c("SellerState").ONBOARDING_REJECTED:case c("SellerState").POOR:case c("SellerState").BANNED:case c("SellerState").RESTRICTED:case c("SellerState").GOOD:default:return!1}},D=function(a){if(a!=null)switch(a){case"DISABLED_DAY1TO30_APPEAL_ELIGIBLE":case"DISABLED_DAY1TO30_APPEAL_NOTELIGIBLE":case"WARNING_APPEAL_ELIGIBLE":case"WARNING_APPEAL_NOTELIGIBLE":return!0}return!1},E=function(a){return a==null?null:d("RelayHooks").readInlineData(j!==void 0?j:j=b("AccountQualityHubCommerceAccountAndCatalogUtils_shop.graphql"),a)},F=function(a){return a==null?null:d("RelayHooks").readInlineData(k!==void 0?k:k=b("AccountQualityHubCommerceAccountAndCatalogUtils_commerce_ugc.graphql"),a)},G=function(a){return a==null?null:d("RelayHooks").readInlineData(l!==void 0?l:l=b("AccountQualityHubCommerceAccountAndCatalogUtils_argroup.graphql"),a)},H=function(a){return a==null?null:d("RelayHooks").readInlineData(m!==void 0?m:m=b("AccountQualityHubCommerceAccountAndCatalogUtils_item.graphql"),a)},I=function(a,b,c){var d=[];a.forEach(function(a,e){a.reviewStatus===b&&a.appealStatus===c&&d.push({capability:e,policyIssues:a.policyIssues,lastReviewed:a.reviewDate})});return d},J=function(a,b,d,e){if(b.length==0||e!==c("AccountQualityCommerceEntityTypes").PRODUCTS)return[a,d];var f=new Set(b);e=a.map(function(a){return babelHelpers["extends"]({},a,{channels:((a=a.channels)==null?void 0:a.filter(function(a){return f.has(a.capability)}))||[]})}).filter(function(a){return a.channels&&a.channels.length>0});b=new Set(e.map(function(a){return a.id}).filter(function(a){return d.has(a)}));return[e,b]},K=function(a,b,d,e){if(b.length===0||e!==c("AccountQualityCommerceEntityTypes").COMMERCE_UGC)return[a,d];var f=new Set(b);e=a.filter(function(a){return f.has(a.contentType)});b=new Set(e.map(function(a){return a.id}).filter(function(a){return d.has(a)}));return[e,b]},L=function(a){return a==null?void 0:(a=a.content_appeal_create)==null?void 0:(a=a.contents_appeal_info)==null?void 0:a.map(function(a){var b;return{itemID:(b=a.content_id)!=null?b:"",capabilities:a.product_capability_to_success.filter(function(a){return a.success}).map(function(a){return a.capability})}})},M=function(a){var b=0;a.forEach(function(a){a!=null&&a>b&&(b=a)});return N(b)};function N(a){return a<=0?"":c("DateTime").create(a,d("Timezone").getEnvironmentTimezoneID()).format("M d, Y")}function a(a){a=c("DateTime").create(a||0,d("Timezone").getEnvironmentTimezoneID());return a.startOfDay().instant}var O=function(a){a=(a==null?void 0:(a=a.product_promotions)==null?void 0:a.nodes)||[];return a.length>0?a[0].publisher_platforms[0]!=="%future added value"?a[0].publisher_platforms[0]:null:null},P=function(a){var b,c=function(a){return function(b,c,e){e=c.id!=null?c.id:a+e;b.set(e,{id:e,name:c.name||"",metadataID:c.metadata_id||"",reviewStatus:c.integrity_review_decision||"NO_REVIEW",rejectionInfo:c.rejection_info.map(function(a){return{policy_name:a.policy_name||"",rejection_message:a.rejection_message||"",rejection_reason:a.rejection_reason||"",policy_domain:"COMMERCE"}}),sectionType:c.shop_section_render_type||"HEADER",appealInfo:d("CommerceIntegrityInfoUtils").getAppealInfo(c.appeal_info),sectionSource:a});return b}};a=(a=a.storefront_workspace)==null?void 0:(a=a.version_history_revisions)==null?void 0:a.nodes;var e=a==null?void 0:a[0];((b=e)==null?void 0:b.save_type)!=="MAJOR"&&(e=a==null?void 0:a[1]);if(e==null)return[];var f=(((b=e)==null?void 0:(a=b.shop_home_page)==null?void 0:(b=a.shop_sections)==null?void 0:b.nodes)||[]).reduce(c("HOME"),new Map());f=(((a=e)==null?void 0:(b=a.shop_home_page)==null?void 0:(a=b.footer_sections)==null?void 0:a.nodes)||[]).reduce(c("HOME"),f);(b=e)==null?void 0:(a=b.shop_collection_pages)==null?void 0:a.nodes.forEach(function(a){f=(((a=a.shop_sections)==null?void 0:a.nodes)||[]).reduce(c("COLLECTION"),f)});return Array.from(f,function(a){a[0];a=a[1];return a})},Q=function(a,b,e){switch(b){case"REJECTED":return d("CommerceIntegrityInfoUtils").isSectionAppealable(a,!0)?e===c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW:e===c("AccountQualityTabTypes").UNCHANGED;case"PENDING":return d("CommerceIntegrityInfoUtils").isAppealPending(a)&&e===c("AccountQualityTabTypes").IN_REVIEW;case"APPROVED":return e===c("AccountQualityTabTypes").REVERSED&&d("CommerceIntegrityInfoUtils").isAppealApproved(a)}return!1},R=function(a){var b=[];a.ig_user!=null&&b.push(c("AccountQualityCommerceShopChannelTypes").INSTAGRAM);a.page!=null&&b.push(c("AccountQualityCommerceShopChannelTypes").FACEBOOK);return b},S=function(a,b){if(b!==null&&b==="APPEAL_PENDING")return c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW;switch(a){case"APPROVED":return c("AccountQualityCommerceReviewStatusTypes").APPROVED;case"PENDING":return c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW;case"REJECTED":default:return c("AccountQualityCommerceReviewStatusTypes").REJECTED}},T=function(a){switch(a){case c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW:return["REJECTED","APPEAL_NOT_EXIST"];case c("AccountQualityTabTypes").IN_REVIEW:return["REJECTED","APPEAL_PENDING"];case c("AccountQualityTabTypes").REVERSED:return["APPROVED","APPEAL_APPROVED"];case c("AccountQualityTabTypes").UNCHANGED:return["REJECTED","APPEAL_DISAPPROVED"];default:return["NO_REVIEW","APPEAL_NOT_EXIST"]}},U=function(a){var b=new Map();a.item_capability_to_appeal_status.filter(function(a){return a.capability&&d("AccountQualityHubCommerceAccountAndCatalogConstants").CAPABILITIES_SUPPORTED_IN_AQ.contains(a.capability)}).forEach(function(a){var c=a.capability;c!=null&&b.set(c,{appealStatus:a.product_appeal_status||"APPEAL_NOT_EXIST",reviewStatus:"NO_REVIEW",reviewDate:0,policyIssues:[]})});a.item_capability_to_review_status.filter(function(a){return a.capability&&d("AccountQualityHubCommerceAccountAndCatalogConstants").CAPABILITIES_SUPPORTED_IN_AQ.contains(a.capability)}).forEach(function(a){var c=a.capability;if(c!=null){var d=b.get(c);b.set(c,{appealStatus:(d==null?void 0:d.appealStatus)||"APPEAL_NOT_EXIST",reviewStatus:a.product_review_status||"NO_REVIEW",reviewDate:(d==null?void 0:d.reviewDate)||0,policyIssues:JSON.parse(JSON.stringify(a.rejection_info))})}});a.item_capability_to_review_date.filter(function(a){return a.capability&&d("AccountQualityHubCommerceAccountAndCatalogConstants").CAPABILITIES_SUPPORTED_IN_AQ.contains(a.capability)}).forEach(function(a){var c=a.capability;if(c!=null){var d=b.get(c);b.set(c,{appealStatus:(d==null?void 0:d.appealStatus)||"APPEAL_NOT_EXIST",reviewStatus:(d==null?void 0:d.reviewStatus)||"NO_REVIEW",reviewDate:a.product_review_date||0,policyIssues:(d==null?void 0:d.policyIssues)||[]})}});return b},V=function(a,b){var d=[];a=(a||[]).map(function(a){return H(a)}).reduce(function(a,e){if(e!=null){var f=U(e),g=T(b),h=g[0];g=g[1];f=I(f,h,g);if(f.length>0){var i;d=d.concat(f.map(function(a){return a.capability}));a.push({name:e.dynamic_item_name||"",dsaCommerceDetectionAndDecisionString:e.dsa_commerce_detection_and_decision_string,id:e.id||"",imageUrl:((i=e.dynamic_item_main_image)==null?void 0:(i=i.image)==null?void 0:i.uri)||"",status:S(h,g),promotion:O(e),channels:f,commerceEntityType:c("AccountQualityCommerceEntityTypes").PRODUCTS})}}return a},[]);return[a,Array.from(new Set(d))]},W=function(a,b){var d=[];a=(a||[]).map(function(a){return F(a)}).reduce(function(a,e){if((e==null?void 0:e.status)!=null&&X(e.status,b)){var f=aa(e);e.content_type!=null&&(d=d.concat(e.content_type));a.push({content:e.content||"",policyIssues:f,contentType:e.content_type,id:e.content_id||"",imageUrl:"",status:Y(e.status),lastReviewed:N(e.last_reviewed||0),channels:[{capability:"SHOPS",policyIssues:f,lastReviewed:e.last_reviewed||0,contentType:e.content_type}],commerceEntityType:c("AccountQualityCommerceEntityTypes").COMMERCE_UGC,name:"",policyViolationContents:e.policy_violation_contents,violations:e.integrity_violation_strings,parentRowID:(f=e.parent_id)!=null?f:""})}return a},[]);return[a,Array.from(new Set(d))]},X=function(a,b){switch(a){case"AVAILABLE_FOR_REVIEW":return b===c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW;case"IN_REVIEW":return b===c("AccountQualityTabTypes").IN_REVIEW;case"APPROVED":return b===c("AccountQualityTabTypes").REVERSED;case"REJECTED":default:return b===c("AccountQualityTabTypes").UNCHANGED}},Y=function(a){switch(a){case"IN_REVIEW":return c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW;case"APPROVED":return c("AccountQualityCommerceReviewStatusTypes").APPROVED;case"AVAILABLE_FOR_REVIEW":case"REJECTED":default:return c("AccountQualityCommerceReviewStatusTypes").REJECTED}},aa=function(a){var b=a.integrity_violation_strings||[];return(a=a.policy_violation_contents)==null?void 0:a.map(function(a,c){return{policy_name:c=(a==null?void 0:a.bulkAppealLimit)?c("AccountQualityCommerceAppealRestrictionTypes").BULK_APPEAL_LIMIT:c("AccountQualityCommerceAppealRestrictionTypes").NONE},Z=function(a,b){return!a||!b?!0:(b==null?void 0:b.filter(function(b){return a.includes(b)}).length)!==0},ea=function(a){return a.capabilityFilters.length===0?a.items[a.selectedEntity][a.selectedTab].capabilities:a.capabilityFilters},fa=function(a){return a.contentTypeFilters.length===0?a.items[a.selectedEntity][a.selectedTab].contentTypes:a.contentTypeFilters},ga=[c("AccountQualityCommerceEntityTypes").PRODUCTS,c("AccountQualityCommerceEntityTypes").COMMERCE_UGC,c("AccountQualityCommerceEntityTypes").SHOPS];function ha(a){if(a==null||typeof a==="string")return a;else if(a.length===1&&(a[0]==null||typeof a[0]==="string"))return a[0];else return null}function ia(a){var b=ha(a);a=ga;return a.find(function(a){return a===b})}function $(a){return typeof a==="string"?Number.parseInt(a,10):a}function ja(a){if(a==null)return[];else if(typeof a==="string")return[$(a)].filter(function(a){return!Number.isNaN(a)});return a.map($).filter(function(a){return!Number.isNaN(a)})}g.createCommerceAccountAndCatalogItemFromCommerceAccount=q;g.getCommerceAccountAndCatalogItems=r;g.createCommerceAccountAndCatalogItemFromCatalog=u;g.getChannelsToCapabilityMap=v;g.isSellerRestricted=B;g.isSellerNearRestriction=C;g.applyCapabilityFilterToItems=J;g.applyContentTypeFilterToItems=K;g.getItemToAppealedCatabilities=L;g.getLatestReviewDate=M;g.getDateStringFromUnix=N;g.stripToDate=a;g.getStatusesFromTab=T;g.getProductRowsByTab=V;g.getCommerceUGCRowsByTab=W;g.getShopsRowsByTab=ba;g.getARDataByTab=ca;g.useProductCatalogLimits=e;g.getCommerceAppealRestriction=da;g.capabilitiesEligibleForAppeals=Z;g.getSelectedCapabilities=ea;g.getSelectedContentTypes=fa;g.getInitialCommerceEntityType=ia;g.getNumberListValue=ja}),226);
-----
AccountQualityHubCommerceCapabilityFilter.react",["fbt","AccountQualityCommerceDataProvider","AccountQualityCommerceEntityTypes","AccountQualityCommerceSetCapabilityFilterAction","AccountQualityHubCommerceAccountAndCatalogUtils","AccountQualityLogger","CatalogItemCapabilityToDomain","CatalogUnifiedB2CStrings","GeoFlexbox.react","GeoMultiSelector.react","GeoMultiSelectorItem.react","GeoText.react","Image.react","LaminarReactHooks","react"],(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.useEffect,m=b.useMemo,n=b.useState,o={label_text:{width:"xrostsh",marginEnd:"x1emribx",marginLeft:null,marginRight:null,$$css:!0}};function a(){var a=d("LaminarReactHooks").useProvider(c("AccountQualityCommerceDataProvider")),b=n([]),e=b[0],g=b[1];l(function(){var b=new Set();a.capabilityFilters.forEach(function(a){b.add(c("CatalogItemCapabilityToDomain")[a.toLowerCase()])});g(Array.from(b.values()))},[a.capabilityFilters]);var i=a.items[a.selectedEntity][a.selectedTab].capabilities,p=m(function(){return d("AccountQualityHubCommerceAccountAndCatalogUtils").getChannelsToCapabilityMap(i)},[i]),q=k(function(a){c("AccountQualityCommerceSetCapabilityFilterAction").dispatch({capabilities:a},{line:"74",module:"AccountQualityHubCommerceCapabilityFilter.react.js",moduleID:f.id}),d("AccountQualityLogger").logMouseEventAction("aq.l3.commerce.filter_table_event",{entity:a.join(", ")})},[]);b=k(function(b){g(b);var a=[];b.forEach(function(b){return p.has(b)?a.push.apply(a,(b=p.get(b))!=null?b:[]):null});q(a)},[p,q]);if(a.selectedEntity!=c("AccountQualityCommerceEntityTypes").PRODUCTS)return null;if(i==null||i.length==0)return null;var r=h._("u6240u6709u6e20u9053"),s=Array.from(p.keys(),function(a){return j.jsx(c("GeoMultiSelectorItem.react"),{label:d("CatalogUnifiedB2CStrings").getChannelLabel(a),media:j.jsx(c("Image.react"),{src:d("CatalogUnifiedB2CStrings").getChannelIcon(a)}),value:a},a)});return j.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"row",children:[j.jsx(c("GeoText.react"),{textAlign:"end",xstyle:o.label_text,children:h._("u7b5bu9009u6761u4ef6uff1a")}),j.jsx(c("GeoMultiSelector.react"),{isLabelHidden:!0,label:r,placeholder:r,value:e,onChange:b,children:s.filter(function(a){return a!=null})})]})}a.displayName=a.name+" [from "+f.id+"]";e=d("LaminarReactHooks").laminarContainer(a,null,{containerName:f.id});g["default"]=e}),226);
-----
AccountQualityHubCommerceContentTypeFilter.react",["fbt","AccountQualityCommerceDataProvider","AccountQualityCommerceEntityTypes","AccountQualityCommerceSetContentTypeFilterAction","AccountQualityLogger","CatalogUnifiedB2CStrings","GeoFlexbox.react","GeoMultiSelector.react","GeoMultiSelectorItem.react","GeoText.react","LaminarReactHooks","react"],(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.useEffect,m=b.useState;function a(){var a=d("LaminarReactHooks").useProvider(c("AccountQualityCommerceDataProvider")),b=m([]),e=b[0],g=b[1];l(function(){g(Array.from(a.contentTypeFilters))},[a.contentTypeFilters]);b=a.items[a.selectedEntity][a.selectedTab].contentTypes;var i=k(function(a){g(a),c("AccountQualityCommerceSetContentTypeFilterAction").dispatch({contentTypes:Array.from(a)},{line:"54",module:"AccountQualityHubCommerceContentTypeFilter.react.js",moduleID:f.id}),d("AccountQualityLogger").logMouseEventAction("aq.l3.commerce.filter_table_event",{entity:a.join(", ")})},[]);if(a.selectedEntity!==c("AccountQualityCommerceEntityTypes").COMMERCE_UGC)return null;if(b==null||b.length===0)return null;var n=h._("u6240u6709u7c7bu578b");b=Array.from(b,function(a){if(a!=null)return j.jsx(c("GeoMultiSelectorItem.react"),{label:d("CatalogUnifiedB2CStrings").getContentTypeLabel(a),value:a},a)});return j.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"row",children:[j.jsx("div",{className:"x1dmp6jm x1emribx",children:j.jsx(c("GeoText.react"),{textAlign:"end",children:h._("u7b5bu9009u6761u4ef6uff1a")})}),j.jsx(c("GeoMultiSelector.react"),{isLabelHidden:!0,label:n,placeholder:n,value:e,onChange:i,children:b.filter(function(a){return a!=null})})]})}a.displayName=a.name+" [from "+f.id+"]";e=d("LaminarReactHooks").laminarContainer(a,null,{containerName:f.id});g["default"]=e}),226);
-----
AccountQualityHubFetchCommerceDataContainer.react",["AccountQualityCommerceDataProvider","AccountQualityCommerceDataQuery","AccountQualityCommerceEntityTypes","AccountQualityCommerceUpdateCursorAction","AccountQualityHubCommerceAccountAndCatalogConstants","AccountQualityHubCommerceAccountAndCatalogUtils","AccountQualityHubFetchCommerceDataContainerQuery.graphql","LaminarReactHooks","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i;i||(i=d("react"));var j=i.useEffect,k=100;function a(){var a,e=d("LaminarReactHooks").useProvider(c("AccountQualityCommerceDataProvider")),g=e.selectedEntity,i=e.selectedTab,l=e.items!=null&&e.items[e.selectedEntity]!=null?e.items[e.selectedEntity][e.selectedTab].cursor:null;a=g===c("AccountQualityCommerceEntityTypes").PRODUCTS||g===c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY?(a=e.catalogID)!=null?a:"":(a=e.commerceAccountID)!=null?a:"";d("AccountQualityHubCommerceAccountAndCatalogUtils").useProductCatalogLimits(e.appealLimitsFetchKey,e.catalogID);var m=d("AccountQualityHubCommerceAccountAndCatalogUtils").getStatusesFromTab(i);e=h!==void 0?h:h=b("AccountQualityHubFetchCommerceDataContainerQuery.graphql");var n=Array.from(d("AccountQualityHubCommerceAccountAndCatalogConstants").CAPABILITIES_SUPPORTED_IN_AQ).map(function(a){var b;return b={},b["capability_review_status."+a.toLowerCase()]={eq:m[0]},b}),o=d("RelayHooks").useLazyLoadQuery(e,{count:k,id:a,cursor:l,filter:JSON.stringify({or:n})},{fetchPolicy:"network-only"}),p=null;switch(g){case c("AccountQualityCommerceEntityTypes").COMMERCE_UGC:p=null;break;case c("AccountQualityCommerceEntityTypes").PRODUCTS:p=(e=o.catalog)==null?void 0:(a=e.items)==null?void 0:a.pageInfo;break;case c("AccountQualityCommerceEntityTypes").SHOPS:p=(n=o.commerceAccount)==null?void 0:(e=n.shops)==null?void 0:e.pageInfo;break;case c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY:p=o==null?void 0:(a=o.ardata)==null?void 0:(n=a.items)==null?void 0:n.pageInfo;break}var q=g===c("AccountQualityCommerceEntityTypes").PRODUCTS?((e=p)==null?void 0:e.hasNextPage)===!0:((a=p)==null?void 0:a.endCursor)!==null;j(function(){var a;d("AccountQualityCommerceDataQuery").request((a=o.catalog)==null?void 0:(a=a.items)==null?void 0:a.nodes,(a=o.commerceAccount)==null?void 0:a.commerce_ugc,(a=o.commerceAccount)==null?void 0:(a=a.shops)==null?void 0:a.nodes,o==null?void 0:(a=o.ardata)==null?void 0:(a=a.items)==null?void 0:a.nodes);if(q){c("AccountQualityCommerceUpdateCursorAction").dispatch({tab:i,entity:g,cursor:(a=p)==null?void 0:a.endCursor},{line:"153",module:"AccountQualityHubFetchCommerceDataContainer.react.js",moduleID:f.id})}},[o,p,g,i,q,l]);return null}a.displayName=a.name+" [from "+f.id+"]";e=d("LaminarReactHooks").laminarContainer(a,null,{containerName:f.id});g["default"]=e}),98);
-----
AccountQualityHubCommerceAccountAndCatalogView.react",["fbt","AccountQualityAppealWizard.react","AccountQualityAppealWizardUtils","AccountQualityClearCommerceDataAction","AccountQualityCommerceChangeEntityAction","AccountQualityCommerceEntityTypes","AccountQualityCommerceSetEntityIDsAction","AccountQualityDeliverySpeedLink.react","AccountQualityHubActionBuilder","AccountQualityHubActionBullet.react","AccountQualityHubActions.react","AccountQualityHubActorWycdCard.react","AccountQualityHubAepCommerceNotificationContainer.react","AccountQualityHubBusinessEmailVerificationBanner.react","AccountQualityHubBusinessVerificaionActionBullet.react","AccountQualityHubBusinessVerificaionBanner.react","AccountQualityHubBusinessVerificaionUtil","AccountQualityHubCommerceAccountAndCatalogUtils","AccountQualityHubCommerceAccountAndCatalogViewQuery.graphql","AccountQualityHubCommerceAccountAndCatalogView_BusinessDataFragment.graphql","AccountQualityHubCommerceAccountAndCatalogView_CatalogFragment.graphql","AccountQualityHubCommerceAccountAndCatalogView_CommerceAccountFragment.graphql","AccountQualityHubCommerceNotificationContainer.react","AccountQualityHubCommerceSidebar.react","AccountQualityHubDetails.react","AccountQualityHubItemBuilder","AccountQualityHubProductTableContainer.react","AccountQualityInfo.react","AccountQualityViolationReasonListBuilder","BusinessIntegrityBanhammerUtils","CommerceIntegrityInfoUtils","GeoFlexbox.react","RelayHooks","SellerBIOnboardingUtils","SellerStateUtils.facebook","ShopsSellerActionsElementImpressionFalcoEvent","TextWithEntitiesRelay.react","URI","cr:955","first","geoMargin","gkx","react","useBoolean"],(function(a,b,c,d,e,f,g,aa){"use strict";var h,i,j,k,l,m,n=m||(m=d("react"));e=m;var ba=e.useCallback,ca=e.useEffect,da=h!==void 0?h:h=b("AccountQualityHubCommerceAccountAndCatalogView_CommerceAccountFragment.graphql"),ea=i!==void 0?i:i=b("AccountQualityHubCommerceAccountAndCatalogView_CatalogFragment.graphql"),fa=j!==void 0?j:j=b("AccountQualityHubCommerceAccountAndCatalogViewQuery.graphql"),ga=k!==void 0?k:k=b("AccountQualityHubCommerceAccountAndCatalogView_BusinessDataFragment.graphql"),ha={root:{maxWidth:"x17wavz3",$$css:!0},wycdShownContainer:{width:"xh8yej3",$$css:!0},wycdShown:{minWidth:"x1vt72ud",$$css:!0},wycdAction:{marginStart:"x1d52u69",marginLeft:null,marginRight:null,marginBottom:"x1yztbdb",$$css:!0}};function a(a){var e,g,h,i,j,k,m,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F=a.businessData,G=a.catalogInfo,H=a.commerceAccount,ia=a.commerceEntityType,I=a.entityID,ja=a.entityType;a=a.restrictionType;H=d("RelayHooks").useFragment(da,H);G=d("RelayHooks").useFragment(ea,G);e=(e=H==null?void 0:H.id)!=null?e:G==null?void 0:G.id;F=d("RelayHooks").useFragment(ga,F);g=(g=F==null?void 0:(g=F.business_user_email_verification_wrapper)==null?void 0:g.business_email)!=null?g:null;h=(h=F==null?void 0:(h=F.business_user_email_verification_wrapper)==null?void 0:h.business_persona_id)!=null?h:null;i=(i=F==null?void 0:(i=F.business_user_email_verification_wrapper)==null?void 0:i.show_business_email_verification_banner_on_aq)!=null?i:!1;j=(j=F==null?void 0:(j=F.business_user_email_verification_wrapper)==null?void 0:j.business_email_verification_banner_aq_title_text)!=null?j:null;k=(k=F==null?void 0:(k=F.business_user_email_verification_wrapper)==null?void 0:k.business_manager_settings_url)!=null?k:null;m=(m=F==null?void 0:(m=F.business_user_email_verification_wrapper)==null?void 0:m.business_email_verification_banner_aq_cta_text)!=null?m:null;o=(o=F==null?void 0:(o=F.business_user_email_verification_wrapper)==null?void 0:o.business_email_verification_modal_aq_title_text)!=null?o:null;p=(p=F==null?void 0:(p=F.business_user_email_verification_wrapper)==null?void 0:p.business_email_verification_modal_aq_cta_text)!=null?p:null;q=(q=H==null?void 0:H.display_name)!=null?q:G==null?void 0:G.name;r=(r=H==null?void 0:(r=H.product_catalog)==null?void 0:r.id)!=null?r:G==null?void 0:G.id;var J=H==null?void 0:H.id,ka=Boolean(H==null?void 0:H.is_customer_feedback_feature_enabled),la=H==null?void 0:H.commerce_manager_checkout_style;c("AccountQualityClearCommerceDataAction").dispatch({},{line:"285",module:"AccountQualityHubCommerceAccountAndCatalogView.react.js",moduleID:f.id});c("AccountQualityCommerceSetEntityIDsAction").dispatch({commerceAccountID:J,catalogID:r},{line:"286",module:"AccountQualityHubCommerceAccountAndCatalogView.react.js",moduleID:f.id});ca(function(){ia&&c("AccountQualityCommerceChangeEntityAction").dispatch({entity:ia},{line:"292",module:"AccountQualityHubCommerceAccountAndCatalogView.react.js",moduleID:f.id})},[ia]);var K=c("useBoolean")(!1),L=K.value,M=K.setTrue;K=K.setFalse;var N=d("SellerStateUtils.facebook").toJSEnum(H==null?void 0:H.sellerState),O=H==null?void 0:H.cmsi;s=(s=H==null?void 0:(s=H.commerce_features)==null?void 0:s.is_settings_legal_tab_enabled)!=null?s:!1;t=(t=H==null?void 0:(t=H.fed_inform_act_object_wrapper)==null?void 0:t.fed_inform_act_verification_state)!=null?t:null;u=(u=H==null?void 0:(u=H.fed_inform_act_object_wrapper)==null?void 0:u.fed_inform_act_aq_title)!=null?u:null;v=(v=H==null?void 0:(v=H.fed_inform_act_object_wrapper)==null?void 0:v.fed_inform_act_aq_description)!=null?v:null;w=(w=H==null?void 0:(w=H.fed_inform_act_object_wrapper)==null?void 0:w.fed_inform_act_aq_cta_text)!=null?w:null;x=(x=H==null?void 0:(x=H.fed_inform_act_object_wrapper)==null?void 0:x.fed_inform_act_violation_present)!=null?x:!1;y=(y=H==null?void 0:H.isOnboardedToCis)!=null?y:!1;z=(z=H==null?void 0:H.dsaDetectionAndDecisionString)!=null?z:null;A=(A=H==null?void 0:(A=H.fed_inform_act_object_wrapper)==null?void 0:A.fed_inform_act_verification_config)!=null?A:null;var P=O==null?void 0:O.cisi,Q=d("AccountQualityAppealWizardUtils").getBIViolations(P),ma=O==null?void 0:(O=O.onboardingEvaluation.find(function(a){return((a=a.signal)==null?void 0:a.toLowerCase())==="domain"}))==null?void 0:O.state;O=d("RelayHooks").useLazyLoadQuery(fa,{entityID:(O=r)!=null?O:""});var na=ba(function(){var a=new Map(),b=null;J!=null&&(b=d("SellerBIOnboardingUtils").getDomainMessageForAQ(J,ma));b!=null&&a.set("domain_message",n.jsxs(n.Fragment,{children:[" ",b," "]}));(P==null?void 0:P.biViolationInfo)!=null&&(P==null?void 0:P.biViolationInfo.forEach(function(b){var d;b=b==null?void 0:(b=b.violation_description)==null?void 0:b.description;if(b==null)return;if(!a.has((d=b==null?void 0:b.text)!=null?d:"")){a.set((d=b==null?void 0:b.text)!=null?d:"",n.jsx(c("TextWithEntitiesRelay.react"),{textWithEntities:b}))}}));return Array.from(a.values())},[P==null?void 0:P.biViolationInfo,J,ma]),oa=H==null?void 0:(B=H.page)==null?void 0:B.id;ca(function(){if(oa!=null){var a=(l||(l=c("URI"))).getRequestURI().getQueryData().source;c("ShopsSellerActionsElementImpressionFalcoEvent").log(function(){return{referral_code:String(a),referral_surface:"",surface:"account_quality",page_id:oa,ui_component:"account_quality_commerce_view"}})}},[oa]);B=(P==null?void 0:P.isSellerExperiencePlatformEnabled)===!0;var pa=!1,R=F==null?void 0:F.business_integrity_commerce_enforcement_status;if((R==null?void 0:R.is_enabled)===!0){var S,T=R==null?void 0:R.warning_start_date,U=R==null?void 0:R.commerce_banhammer_info;R=R==null?void 0:R.commerce_warning_info;S=d("BusinessIntegrityBanhammerUtils").BusinessIntegrityBanhammerUtils.fetchCardDetailsForAqL3WycdPlatformization((S=e)!=null?S:"",U.length>0,R.length>0,T);pa=!0}else{S=d("BusinessIntegrityBanhammerUtils").BusinessIntegrityBanhammerUtils.fetchCardDetailsForAqL3Wycd((U=e)!=null?U:"",F==null?void 0:(R=F.business_integrity_account_status)==null?void 0:R.integrity_account_banhammer_status,F==null?void 0:(T=F.business_integrity_account_status)==null?void 0:T.warning_start_date_ts,F==null?void 0:(U=F.business_integrity_status_info)==null?void 0:U.decision,F==null?void 0:(R=F.business_integrity_status_info)==null?void 0:R.has_open_appeal_case)}R=(U=(T=S)==null?void 0:T.showContent)!=null?U:!1;T=(U=(T=S)==null?void 0:T.cardContent)!=null?U:"";U=(U=(U=S)==null?void 0:U.buttonText)!=null?U:"";C=(C=(C=S)==null?void 0:C.buttonUrl)!=null?C:"";D=(D=S)==null?void 0:D.accountMessage;E=(E=S)==null?void 0:E.isRestricted;S=(S=S)==null?void 0:S.nearRestriction;var V=d("CommerceIntegrityInfoUtils").getAppealInfo(P==null?void 0:P.bi_multi_appeal_case),W=d("CommerceIntegrityInfoUtils").isAppealOnHold(V);na=na();V=d("CommerceIntegrityInfoUtils").isAppealPending(V);var X=d("SellerBIOnboardingUtils").fetchWYCDInfoForAQL3UsingCIS(c("gkx")("21479"),W);x=x&&y;y=d("SellerBIOnboardingUtils").fetchExtraActionInfo(H);var Y=d("SellerBIOnboardingUtils").hasPageGroupDemonetizationOnly(H);if(J!=null&&(F==null?void 0:F.id)!=null){var Z;Z=(P==null?void 0:(Z=P.enforcementInfo)==null?void 0:Z.start_date)!==""?P==null?void 0:(Z=P.enforcementInfo)==null?void 0:Z.start_date:null;N=d("SellerBIOnboardingUtils").getAccountMessageFromSellerState(N,F.id,Z,z);D=N!==""?N:D;E=d("AccountQualityHubCommerceAccountAndCatalogUtils").isSellerRestricted(H==null?void 0:H.sellerState)?!0:E;S=d("AccountQualityHubCommerceAccountAndCatalogUtils").isSellerNearRestriction(H==null?void 0:H.sellerState)?!0:E?!1:S}Z=null;z=null;N=null;var $=!1;if(X.showCard&&P!=null){R=E||S||R;pa=!0;$=!0;z=Y?null:n.jsx(c("AccountQualityHubActionBullet.react"),{actionDescription:X.topActionContent,asset:d("AccountQualityHubActionBuilder").actionAssets.requestReview(),buttonLabel:(Y=X.buttonText)!=null?Y:"",disabled:V||P.isEligible!==!0&&!W||Q==null||Q.length===0,entityType:"CommerceMerchantSettings",primary:!0,restrictionType:a,onClick:M});N=Q!=null?n.jsx(c("AccountQualityAppealWizard.react"),{biViolations:Q,isMultiAppealCaseOnHold:W,isShown:L,multiAppealableEntityID:P.id,onHide:K}):null}else z=n.jsx(c("AccountQualityHubActionBullet.react"),{actionDescription:T,asset:d("AccountQualityHubActionBuilder").actionAssets.requestReview(),buttonLabel:U,entityType:"CommerceMerchantSettings",inAppUri:"/"+C,primary:!0,restrictionType:a});if(y!=null){M=(V=H==null?void 0:(X=H.shops)==null?void 0:(Y=X.nodes)==null?void 0:Y.map(function(a){return(a=a.page)==null?void 0:(a=a.page_groups)==null?void 0:(a=a.edges)==null?void 0:(a=a[0])==null?void 0:(a=a.node)==null?void 0:a.group_quality_url}))!=null?V:[];Q=c("first")(M.filter(Boolean));if(Q!=null){W=new(l||(l=c("URI")))(Q);L=z==null;Z=n.jsx(c("AccountQualityHubActionBullet.react"),{actionDescription:y.topActionContent,asset:d("AccountQualityHubActionBuilder").actionAssets.badgeModerator(),buttonLabel:(K=y.buttonText)!=null?K:"",entityType:"CommerceMerchantSettings",outOfAppUri:W,primary:L,restrictionType:a})}}T=S===!1&&!$?d("AccountQualityHubItemBuilder").buildRestrictionList("CommerceMerchantSettings"):[];U=S===!1&&!$?d("AccountQualityHubItemBuilder").buildDisabledAssetList("CommerceMerchantSettings"):[];C=(H==null?void 0:H.is_cms_level_survey_lag_available)===!1?n.jsx(c("AccountQualityDeliverySpeedLink.react"),{entityID:I,ownerID:e}):null;X=null;x&&w!=null&&(D=aa._("u4e3au9075u5b88u9002u7528u6cd5u5f8bu548cu6cd5u89c4uff0cu6211u4eecu5df2u9650u5236u4f60u7684u672au9a8cu8bc1u5e10u6237u3002"),X=d("AccountQualityHubBusinessVerificaionUtil").canShowWYCD(t)?n.jsx(c("AccountQualityHubBusinessVerificaionActionBullet.react"),{ctaText:w,fedInformActVerificationConfig:A,fedInformActVerificationState:t,isLegalSettingsTabEnabled:s,orgId:J}):null,X!==null&&z!=null&&(Z=z));M=B?n.jsx(c("AccountQualityHubActorWycdCard.react"),{entityId:I,entityType:"CommerceMerchantSettings",multiAppealableEntity:P,multiAppealableEntityId:(Y=P==null?void 0:P.id)!=null?Y:"",restrictionType:a}):n.jsx(c("AccountQualityHubActions.react"),{actions:[(V=X)!=null?V:z,Z],entityID:I,entityType:"CommerceMerchantSettings",hideOverview:pa,restrictionType:a});W=n.jsx(c("AccountQualityHubDetails.react"),{disabledAssetList:U,entityId:I,entityName:q,entityType:"CommerceMerchantSettings",isRestricted:(Q=E)!=null?Q:!1,isSellerExperiencePlatformEnabled:B,message:(y=D)!=null?y:"",multiAppealableEntity:P,restrictionDate:F==null?void 0:(K=F.business_integrity_account_status)==null?void 0:K.warning_start_date_ts,restrictionList:T,restrictionStatus:S===!0?"WILL_BE_RESTRICTED":"VANILLA_RESTRICTED",restrictionType:null,violationReasonList:d("AccountQualityViolationReasonListBuilder").buildCISViolationReasonList(na)});L=R||x?n.jsxs(c("GeoFlexbox.react"),{alignContent:"stretch",direction:"row",xstyle:ha.wycdShownContainer,children:[n.jsx(c("GeoFlexbox.react"),{alignContent:"stretch",xstyle:ha.wycdShown,children:W}),n.jsx(c("GeoFlexbox.react"),{alignItems:"start",justifyContent:"end",xstyle:ha.wycdAction,children:M})]}):n.jsx(c("AccountQualityInfo.react"),{entityID:I,entityName:q,entityType:ja,noticeComponent:C});$=[];r!=null&&$.push(c("AccountQualityCommerceEntityTypes").PRODUCTS);J!=null&&(ka&&$.push(c("AccountQualityCommerceEntityTypes").COMMERCE_UGC),$.push(c("AccountQualityCommerceEntityTypes").SHOPS));(G==null?void 0:(H=G.capability_features)==null?void 0:H.includes("AUGMENTED_REALITY"))&&c("gkx")("21480")&&$.push(c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY);X=E!==!0||S===!0||S===void 0?n.jsxs(c("GeoFlexbox.react"),{direction:"row",xstyle:c("geoMargin").top16,children:[n.jsx(c("AccountQualityHubCommerceSidebar.react"),{entities:$}),n.jsx(c("AccountQualityHubProductTableContainer.react"),{catalogID:r,commerceAccountID:J,showAdditionalOptions:(Y=(e=O.viewerData)==null?void 0:e.is_alternate_resolution_options_available)!=null?Y:!1})]}):null;V=w!=null&&v!=null&&u!=null;z=i&&g!=null&&k!=null&&h!=null&&o!=null&&p!=null&&m!=null&&j!=null;return n.jsxs(c("GeoFlexbox.react"),{"data-testid":void 0,direction:"column",xstyle:ha.root,children:[b("cr:955")!=null?n.jsx(b("cr:955"),{commerceAccountID:J}):null,n.jsx(c("AccountQualityHubCommerceNotificationContainer.react"),{}),n.jsx(c("AccountQualityHubAepCommerceNotificationContainer.react"),{multiAppealableEntity:P}),z===!0&&p!==null&&o!==null?n.jsx(c("AccountQualityHubBusinessEmailVerificationBanner.react"),{businessManagerSettingsUrl:k,ctaModalText:p,ctaText:m,modalHeaderText:o,pendingBusinessEmail:g,personaId:h,title:j}):null,V===!0?n.jsx(c("AccountQualityHubBusinessVerificaionBanner.react"),{ctaText:w,description:v,fedInformActVerificationConfig:A,fedInformActVerificationState:t,isBVCISEnforcedSeller:x,isLegalSettingsTabEnabled:s,isOnsiteCheckoutSeller:la==="ONSITE",orgId:J,title:u}):null,N,L,X]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
AccountQualityCommerceDataRetrievalCompleteReducerPlugin",["AccountQualityCommerceEntityTypes"],(function(a,b,c,d,e,f,g){"use strict";a={reduce:function(a,b){var d,e={};[(d=c("AccountQualityCommerceEntityTypes")).PRODUCTS,d.COMMERCE_UGC,d.SHOPS,d.AUGMENTED_REALITY].forEach(function(d){var f={};Object.keys(b[d]).forEach(function(e){var g=a.items[d][e].rows;(b[d][e].rows||[]).forEach(function(a){g.set(a.id,a)});f[e]=babelHelpers["extends"]({},f[e],{rows:g,cursor:a.items[d][e].cursor,count:a.items[d][e].count});if(d===c("AccountQualityCommerceEntityTypes").PRODUCTS){var h=a.items[d][e].capabilities||[];h=Array.from(new Set(h.concat(b[d][e].capabilities||[])));f[e]=babelHelpers["extends"]({},f[e],{rows:g,capabilities:h,cursor:a.items[d][e].cursor,count:a.items[d][e].count})}else if(d===c("AccountQualityCommerceEntityTypes").COMMERCE_UGC){h=a.items[d][e].contentTypes||[];h=Array.from(new Set(h.concat(b[d][e].contentTypes||[])));f[e]=babelHelpers["extends"]({},f[e],{rows:g,contentTypes:h,cursor:a.items[d][e].cursor,count:a.items[d][e].count})}else f[e]=babelHelpers["extends"]({},f[e],{rows:g,cursor:a.items[d][e].cursor,count:a.items[d][e].count})});e[d]=f});e[a.selectedEntity][a.selectedTab].loadAttempted=!0;return babelHelpers["extends"]({},a,{items:{products:e[d.PRODUCTS],commerce_ugc:e[d.COMMERCE_UGC],shops:e[d.SHOPS],augmented_reality:e[d.AUGMENTED_REALITY]}})}};b=a;g["default"]=b}),98);
-----
AccountQualityHubCommerceAccountAndCatalogView.react",["fbt","AccountQualityAppealWizard.react","AccountQualityAppealWizardUtils","AccountQualityClearCommerceDataAction","AccountQualityCommerceChangeEntityAction","AccountQualityCommerceEntityTypes","AccountQualityCommerceSetEntityIDsAction","AccountQualityDeliverySpeedLink.react","AccountQualityHubActionBuilder","AccountQualityHubActionBullet.react","AccountQualityHubActionsV2.react","AccountQualityHubActorWycdCard.react","AccountQualityHubAepCommerceNotificationContainer.react","AccountQualityHubBusinessEmailVerificationBanner.react","AccountQualityHubBusinessVerificaionActionBullet.react","AccountQualityHubBusinessVerificaionBanner.react","AccountQualityHubBusinessVerificaionUtil","AccountQualityHubCommerceAccountAndCatalogUtils","AccountQualityHubCommerceAccountAndCatalogViewQuery.graphql","AccountQualityHubCommerceAccountAndCatalogView_BusinessDataFragment.graphql","AccountQualityHubCommerceAccountAndCatalogView_CatalogFragment.graphql","AccountQualityHubCommerceAccountAndCatalogView_CommerceAccountFragment.graphql","AccountQualityHubCommerceNotificationContainer.react","AccountQualityHubCommerceSidebar.react","AccountQualityHubDetailsV2.react","AccountQualityHubItemBuilder","AccountQualityHubProductTableContainer.react","AccountQualityInfo.react","AccountQualityViolationReasonListBuilder","BusinessIntegrityBanhammerUtils","CommerceIntegrityInfoUtils","GeoFlexbox.react","RelayHooks","SellerBIOnboardingUtils","SellerStateUtils.facebook","ShopsSellerActionsElementImpressionFalcoEvent","TextWithEntitiesRelay.react","URI","cr:955","geoMargin","gkx","react","useBoolean"],(function(a,b,c,d,e,f,g,aa){"use strict";var h,i,j,k,l=d("react");e=d("react");var ba=e.useCallback,ca=e.useEffect,da=h!==void 0?h:h=b("AccountQualityHubCommerceAccountAndCatalogView_CommerceAccountFragment.graphql"),ea=i!==void 0?i:i=b("AccountQualityHubCommerceAccountAndCatalogView_CatalogFragment.graphql"),fa=j!==void 0?j:j=b("AccountQualityHubCommerceAccountAndCatalogViewQuery.graphql"),ga=k!==void 0?k:k=b("AccountQualityHubCommerceAccountAndCatalogView_BusinessDataFragment.graphql"),m={root:{maxWidth:"x17wavz3",$$css:!0},wycdShownContainer:{width:"xh8yej3",$$css:!0},wycdShown:{minWidth:"x1vt72ud",$$css:!0},wycdAction:{marginStart:"x1d52u69",marginBottom:"x1yztbdb",$$css:!0}};function a(a){var e,g,h,i,j,k,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F=d("RelayHooks").useFragment(da,a.commerceAccount),G=d("RelayHooks").useFragment(ea,a.catalogInfo);e=(e=F==null?void 0:F.id)!=null?e:G==null?void 0:G.id;var H=d("RelayHooks").useFragment(ga,a.businessData);g=(g=H==null?void 0:(g=H.business_user_email_verification_wrapper)==null?void 0:g.business_email)!=null?g:null;h=(h=H==null?void 0:(h=H.business_user_email_verification_wrapper)==null?void 0:h.business_persona_id)!=null?h:null;i=(i=H==null?void 0:(i=H.business_user_email_verification_wrapper)==null?void 0:i.show_business_email_verification_banner_on_aq)!=null?i:!1;j=(j=H==null?void 0:(j=H.business_user_email_verification_wrapper)==null?void 0:j.business_email_verification_banner_aq_title_text)!=null?j:null;k=(k=H==null?void 0:(k=H.business_user_email_verification_wrapper)==null?void 0:k.business_manager_settings_url)!=null?k:null;n=(n=H==null?void 0:(n=H.business_user_email_verification_wrapper)==null?void 0:n.business_email_verification_banner_aq_cta_text)!=null?n:null;o=(o=H==null?void 0:(o=H.business_user_email_verification_wrapper)==null?void 0:o.business_email_verification_modal_aq_title_text)!=null?o:null;p=(p=H==null?void 0:(p=H.business_user_email_verification_wrapper)==null?void 0:p.business_email_verification_modal_aq_cta_text)!=null?p:null;q=(q=F==null?void 0:F.display_name)!=null?q:G==null?void 0:G.name;r=(r=F==null?void 0:(r=F.product_catalog)==null?void 0:r.id)!=null?r:G==null?void 0:G.id;var I=F==null?void 0:F.id,ha=Boolean(F==null?void 0:F.is_customer_feedback_feature_enabled);c("AccountQualityClearCommerceDataAction").dispatch({},{line:"287",module:"AccountQualityHubCommerceAccountAndCatalogView.react.js",moduleID:f.id});c("AccountQualityCommerceSetEntityIDsAction").dispatch({commerceAccountID:I,catalogID:r},{line:"288",module:"AccountQualityHubCommerceAccountAndCatalogView.react.js",moduleID:f.id});ca(function(){a.commerceEntityType&&c("AccountQualityCommerceChangeEntityAction").dispatch({entity:a.commerceEntityType},{line:"294",module:"AccountQualityHubCommerceAccountAndCatalogView.react.js",moduleID:f.id})},[a.commerceEntityType]);var J=c("useBoolean")(!1),K=J.value,L=J.setTrue;J=J.setFalse;var M=d("SellerStateUtils.facebook").toJSEnum(F==null?void 0:F.sellerState),N=F==null?void 0:F.cmsi;s=(s=F==null?void 0:(s=F.commerce_features)==null?void 0:s.is_settings_legal_tab_enabled)!=null?s:!1;t=(t=F==null?void 0:(t=F.fed_inform_act_object_wrapper)==null?void 0:t.fed_inform_act_verification_state)!=null?t:null;u=(u=F==null?void 0:(u=F.fed_inform_act_object_wrapper)==null?void 0:u.fed_inform_act_aq_title)!=null?u:null;v=(v=F==null?void 0:(v=F.fed_inform_act_object_wrapper)==null?void 0:v.fed_inform_act_aq_description)!=null?v:null;w=(w=F==null?void 0:(w=F.fed_inform_act_object_wrapper)==null?void 0:w.fed_inform_act_aq_cta_text)!=null?w:null;x=(x=F==null?void 0:(x=F.fed_inform_act_object_wrapper)==null?void 0:x.fed_inform_act_violation_present)!=null?x:!1;y=(y=F==null?void 0:F.isOnboardedToCis)!=null?y:!1;z=(z=F==null?void 0:F.dsaDetectionAndDecisionString)!=null?z:null;A=(A=F==null?void 0:(A=F.fed_inform_act_object_wrapper)==null?void 0:A.fed_inform_act_verification_config)!=null?A:null;var O=N==null?void 0:N.cisi,P=d("AccountQualityAppealWizardUtils").getBIViolations(O),ia=N==null?void 0:(N=N.onboardingEvaluation.find(function(a){return((a=a.signal)==null?void 0:a.toLowerCase())==="domain"}))==null?void 0:N.state;N=d("RelayHooks").useLazyLoadQuery(fa,{entityID:(N=r)!=null?N:""});var ja=ba(function(){var a=new Map(),b=null;I!=null&&(b=d("SellerBIOnboardingUtils").getDomainMessageForAQ(I,ia));b!=null&&a.set("domain_message",l.jsxs(l.Fragment,{children:[" ",b," "]}));(O==null?void 0:O.biViolationInfo)!=null&&(O==null?void 0:O.biViolationInfo.forEach(function(b){var d;b=b==null?void 0:(b=b.violation_description)==null?void 0:b.description;if(b==null)return;if(!a.has((d=b==null?void 0:b.text)!=null?d:"")){a.set((d=b==null?void 0:b.text)!=null?d:"",l.jsx(c("TextWithEntitiesRelay.react"),{textWithEntities:b}))}}));return Array.from(a.values())},[O==null?void 0:O.biViolationInfo,I,ia]),ka=F==null?void 0:(B=F.page)==null?void 0:B.id;ca(function(){if(ka!=null){var a=c("URI").getRequestURI().getQueryData().source;c("ShopsSellerActionsElementImpressionFalcoEvent").log(function(){return{referral_code:String(a),referral_surface:"",surface:"account_quality",page_id:ka,ui_component:"account_quality_commerce_view"}})}},[ka]);B=(O==null?void 0:O.isSellerExperiencePlatformEnabled)===!0;var Q=!1,R=H==null?void 0:H.business_integrity_commerce_enforcement_status;if((R==null?void 0:R.is_enabled)===!0){var S,T=R==null?void 0:R.warning_start_date,U=R==null?void 0:R.commerce_banhammer_info;R=R==null?void 0:R.commerce_warning_info;S=d("BusinessIntegrityBanhammerUtils").BusinessIntegrityBanhammerUtils.fetchCardDetailsForAqL3WycdPlatformization((S=e)!=null?S:"",U.length>0,R.length>0,T);Q=!0}else{S=d("BusinessIntegrityBanhammerUtils").BusinessIntegrityBanhammerUtils.fetchCardDetailsForAqL3Wycd((U=e)!=null?U:"",H==null?void 0:(R=H.business_integrity_account_status)==null?void 0:R.integrity_account_banhammer_status,H==null?void 0:(T=H.business_integrity_account_status)==null?void 0:T.warning_start_date_ts,H==null?void 0:(U=H.business_integrity_status_info)==null?void 0:U.decision,H==null?void 0:(R=H.business_integrity_status_info)==null?void 0:R.has_open_appeal_case)}R=(U=(T=S)==null?void 0:T.showContent)!=null?U:!1;T=(U=(T=S)==null?void 0:T.cardContent)!=null?U:"";U=(U=(U=S)==null?void 0:U.buttonText)!=null?U:"";C=(C=(C=S)==null?void 0:C.buttonUrl)!=null?C:"";D=(D=S)==null?void 0:D.accountMessage;E=(E=S)==null?void 0:E.isRestricted;S=(S=S)==null?void 0:S.nearRestriction;var V=d("CommerceIntegrityInfoUtils").getAppealInfo(O==null?void 0:O.bi_multi_appeal_case),W=d("CommerceIntegrityInfoUtils").isAppealOnHold(V);ja=ja();V=d("CommerceIntegrityInfoUtils").isAppealPending(V);var X=d("SellerBIOnboardingUtils").fetchWYCDInfoForAQL3UsingCIS(c("gkx")("2001247")||c("gkx")("4103"),W);x=x&&y;y=d("SellerBIOnboardingUtils").fetchExtraActionInfo(F);var Y=d("SellerBIOnboardingUtils").hasPageGroupDemonetizationOnly(F);if(I!=null){var Z;Z=(O==null?void 0:(Z=O.enforcementInfo)==null?void 0:Z.start_date)!==""?O==null?void 0:(Z=O.enforcementInfo)==null?void 0:Z.start_date:null;M=d("SellerBIOnboardingUtils").getAccountMessageFromSellerState(M,I,Z,z);D=M!==""?M:D;E=d("AccountQualityHubCommerceAccountAndCatalogUtils").isSellerRestricted(F==null?void 0:F.sellerState)?!0:E;S=d("AccountQualityHubCommerceAccountAndCatalogUtils").isSellerNearRestriction(F==null?void 0:F.sellerState)?!0:E?!1:S}Z=null;z=null;M=null;var $=!1;if(X.showCard&&O!=null){R=E||S||R;Q=!0;$=!0;z=Y?null:l.jsx(c("AccountQualityHubActionBullet.react"),{actionDescription:X.topActionContent,asset:d("AccountQualityHubActionBuilder").actionAssets.requestReview(),buttonLabel:(Y=X.buttonText)!=null?Y:"",disabled:V||O.isEligible!==!0&&!W||P==null||P.length===0,entityType:"CommerceMerchantSettings",primary:!0,restrictionType:a.restrictionType,onClick:L});M=P!=null?l.jsx(c("AccountQualityAppealWizard.react"),{biViolations:P,isMultiAppealCaseOnHold:W,isShown:K,multiAppealableEntityID:O.id,onHide:J}):null}else z=l.jsx(c("AccountQualityHubActionBullet.react"),{actionDescription:T,asset:d("AccountQualityHubActionBuilder").actionAssets.requestReview(),buttonLabel:U,entityType:"CommerceMerchantSettings",inAppUri:"/"+C,primary:!0,restrictionType:a.restrictionType});if(y!=null){K=F==null?void 0:(X=F.store)==null?void 0:(Y=X.page)==null?void 0:(V=Y.page_groups)==null?void 0:(L=V.edges)==null?void 0:(P=L[0])==null?void 0:(W=P.node)==null?void 0:W.group_quality_url;if(K!=null){J=new(c("URI"))(K);T=z==null;Z=l.jsx(c("AccountQualityHubActionBullet.react"),{actionDescription:y.topActionContent,asset:d("AccountQualityHubActionBuilder").actionAssets.badgeModerator(),buttonLabel:(U=y.buttonText)!=null?U:"",entityType:"CommerceMerchantSettings",outOfAppUri:J,primary:T,restrictionType:a.restrictionType})}}C=S===!1&&!$?d("AccountQualityHubItemBuilder").buildRestrictionList("CommerceMerchantSettings"):[];X=S===!1&&!$?d("AccountQualityHubItemBuilder").buildDisabledAssetList("CommerceMerchantSettings"):[];Y=(F==null?void 0:F.is_cms_level_survey_lag_available)===!1?l.jsx(c("AccountQualityDeliverySpeedLink.react"),{entityID:a.entityID,ownerID:e}):null;V=null;x&&w!=null&&(D=aa._("To comply with applicable laws and regulations, we have restricted your unverified account."),V=d("AccountQualityHubBusinessVerificaionUtil").canShowWYCD(t)?l.jsx(c("AccountQualityHubBusinessVerificaionActionBullet.react"),{ctaText:w,fedInformActVerificationConfig:A,fedInformActVerificationState:t,isLegalSettingsTabEnabled:s,orgId:I}):null,V!==null&&z!=null&&(Z=z));W=B?l.jsx(c("AccountQualityHubActorWycdCard.react"),{entityId:a.entityID,entityType:"CommerceMerchantSettings",multiAppealableEntity:O,multiAppealableEntityId:(L=O==null?void 0:O.id)!=null?L:"",restrictionType:a.restrictionType}):l.jsx(c("AccountQualityHubActionsV2.react"),{entityID:a.entityID,entityType:"CommerceMerchantSettings",extraAction:Z,hideOverview:Q,restrictionType:a.restrictionType,topAction:(P=V)!=null?P:z});J=l.jsx(c("AccountQualityHubDetailsV2.react"),{disabledAssetList:X,entityId:a.entityID,entityName:q,entityType:"CommerceMerchantSettings",isRestricted:(K=E)!=null?K:!1,isSellerExperiencePlatformEnabled:B,message:(y=D)!=null?y:"",multiAppealableEntity:O,restrictionDate:H==null?void 0:(U=H.business_integrity_account_status)==null?void 0:U.warning_start_date_ts,restrictionList:C,restrictionStatus:S===!0?"WILL_BE_RESTRICTED":"VANILLA_RESTRICTED",restrictionType:null,violationReasonList:d("AccountQualityViolationReasonListBuilder").buildCISViolationReasonList(ja)});T=R||x?l.jsxs(c("GeoFlexbox.react"),{alignContent:"stretch",direction:"row",xstyle:m.wycdShownContainer,children:[l.jsx(c("GeoFlexbox.react"),{alignContent:"stretch",xstyle:m.wycdShown,children:J}),l.jsx(c("GeoFlexbox.react"),{alignItems:"start",justifyContent:"end",xstyle:m.wycdAction,children:W})]}):l.jsx(c("AccountQualityInfo.react"),{entityID:a.entityID,entityName:q,entityType:a.entityType,noticeComponent:Y});$=[];r!=null&&$.push(c("AccountQualityCommerceEntityTypes").PRODUCTS);I!=null&&(ha&&$.push(c("AccountQualityCommerceEntityTypes").COMMERCE_UGC),$.push(c("AccountQualityCommerceEntityTypes").SHOPS));Boolean(F==null?void 0:(e=F.commerce_features)==null?void 0:e.is_drops_tab_enabled)&&($=d("AccountQualityHubCommerceAccountAndCatalogUtils").addDropsFilteredViewEntities($));(G==null?void 0:(L=G.capability_features)==null?void 0:L.includes("AUGMENTED_REALITY"))&&c("gkx")("4003")&&$.push(c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY);V=E!==!0||S===!0||S===void 0?l.jsxs(c("GeoFlexbox.react"),{direction:"row",xstyle:c("geoMargin").top16,children:[l.jsx(c("AccountQualityHubCommerceSidebar.react"),{entities:$}),l.jsx(c("AccountQualityHubProductTableContainer.react"),{catalogID:r,commerceAccountID:I,launchStartDate:a.launchStartDate,showAdditionalOptions:(Q=(Z=N.viewerData)==null?void 0:Z.is_alternate_resolution_options_available)!=null?Q:!1})]}):null;P=w!=null&&v!=null&&u!=null;z=i&&g!=null&&k!=null&&h!=null&&o!=null&&p!=null&&n!=null&&j!=null;return l.jsxs(c("GeoFlexbox.react"),{"data-testid":void 0,direction:"column",xstyle:m.root,children:[b("cr:955")!=null?l.jsx(b("cr:955"),{commerceAccountID:I}):null,l.jsx(c("AccountQualityHubCommerceNotificationContainer.react"),{}),l.jsx(c("AccountQualityHubAepCommerceNotificationContainer.react"),{multiAppealableEntity:O}),z===!0&&p!==null&&o!==null?l.jsx(c("AccountQualityHubBusinessEmailVerificationBanner.react"),{businessManagerSettingsUrl:k,ctaModalText:p,ctaText:n,modalHeaderText:o,pendingBusinessEmail:g,personaId:h,title:j}):null,P===!0?l.jsx(c("AccountQualityHubBusinessVerificaionBanner.react"),{ctaText:w,description:v,fedInformActVerificationConfig:A,fedInformActVerificationState:t,isBVCISEnforcedSeller:x,isLegalSettingsTabEnabled:s,orgId:I,title:u}):null,M,T,V]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AccountQualityCommerceAccountAndCatalogStrings",["fbt","ix","AccountQualityCommerceAppealRestrictionTypes","AccountQualityCommerceEntityTypes","AccountQualityCommerceReviewStatusTypes","AccountQualityCommerceShopChannelTypes","BIUGCContentType","CatalogItemChannelsToIntegrityInfoType","CatalogUseCaseName$FbtEnum","CommerceIntegrityInfoUtils","DateTime","GeoLink.react","Timezone","UnifiedIntegrityPolicyPageModalUtils","getJSEnumSafe","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");function a(a){if(a.length===2)return h._("u5e7fu544au548cu9500u552e");if(a.length===1)switch(a[0]){case d("CatalogItemChannelsToIntegrityInfoType").ProductChannelEnum.ADS:return h._("u5e7fu544a");case d("CatalogItemChannelsToIntegrityInfoType").ProductChannelEnum.COMMERCE:return h._("u9500u552e")}return null}function b(a){return a>0?h._({"*":"{number}u4e2au6e20u9053","_1":"1 u4e2au6e20u9053"},[h._plural(a,"number")]):null}function e(a){var b=null;switch(a){case"DA":b="DYNAMIC_ADS";break;case"IG_PRODUCT_TAGGING":b="IG_TAGGING";break;case"MARKETPLACE_SHOPS":case"B2C_MARKETPLACE":b="MARKETPLACE_SHOPS";break;case"MARKETPLACE":case"MARKETPLACE_MOTORS":b="MARKETPLACE_VERTICALS_MOTORS";break;case"MARKETPLACE_ADS_DEPRECATED":b="MARKETPLACE_VERTICALS_MOTORS_ADS";break;case"SHOPS":b="PAGE_SHOP";break;case"UNIVERSAL_CHECKOUT":b="UNIVERSAL_CHECKOUT";break;default:return""}return h._({"COLLABORATIVE_ADS":"Collaborative ads","COLLECTION_ADS":"Ads to drive traffic","DYNAMIC_ADS":"u52a8u6001u5e7fu544a","IG_TAGGING":"Shops","MARKETPLACE_SHOPS":"Marketplace - deprecated","MARKETPLACE_VERTICALS_MOTORS":"Marketplace vehicles","MARKETPLACE_VERTICALS_MOTORS_ADS":"Click to Marketplace ads","OFFLINE_CONVERSIONS":"Collaborative ads for in-store sales","PAGE_SHOP":"Facebook Page shop","SHOPS_ADS_PLACEHOLDER":"Shop ads","SHOPS_ADS":"Shop ads","UNIVERSAL_CHECKOUT":"Onsite checkout","MARKETPLACE":"Marketplace","WHATSAPP":"WhatsApp"},[h._enum(b,c("CatalogUseCaseName$FbtEnum"))])}e.displayName=e.name+" [from "+f.id+"]";function k(a){if(a==null)return"";switch(a){case c("AccountQualityCommerceReviewStatusTypes").REJECTED:return h._("u5df2u88abu62d2");case c("AccountQualityCommerceReviewStatusTypes").APPROVED:return h._("u5df2u83b7u6279");case c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW:return h._("u5ba1u6838u4e2d");case c("AccountQualityCommerceReviewStatusTypes").PRODUCT_ISSUES:return h._("u5546u54c1u95eeu9898")}return""}function l(a){if(a==null)return"";switch(c("getJSEnumSafe")(c("BIUGCContentType"),a)){case"RATINGS_AND_REVIEWS_REPLY":return h._("u56deu590du70b9u8bc4")}return""}function m(a,b){if(a==null)return"";switch(a){case c("AccountQualityCommerceReviewStatusTypes").REJECTED:return h._({"*":"{number} rejections","_1":"1 rejection"},[h._plural(b,"number")]);case c("AccountQualityCommerceReviewStatusTypes").APPROVED:return h._({"*":"{number} approvals","_1":"1 approval"},[h._plural(b,"number")]);case c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW:return h._("In review");case c("AccountQualityCommerceReviewStatusTypes").PRODUCT_ISSUES:return h._("Product issues")}return""}function n(a){switch(a.commerceEntityType){case c("AccountQualityCommerceEntityTypes").COLLECTIONS:return h._("Image u00b7 Title u00b7 Description");case c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES:return h._("Collection");case c("AccountQualityCommerceEntityTypes").PRODUCTS:if(a.parentRowID==null)return h._("Single product")}return a.id}function o(a){switch(a.commerceEntityType){case c("AccountQualityCommerceEntityTypes").COLLECTIONS:return h._("Collection details")}return a.name}function p(a){if(a!=null)switch(a){case c("AccountQualityCommerceReviewStatusTypes").REJECTED:return i("1602157");case c("AccountQualityCommerceReviewStatusTypes").APPROVED:return i("1602156");case c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW:case c("AccountQualityCommerceReviewStatusTypes").PRODUCT_ISSUES:return i("1602158")}return null}function q(a,b){switch(a){case"COLLECTION_FEATURE_TILE":return h._("u4e3bu6253u7cfbu5217u5546u54c1");case"HEADER":return h._("u7cfbu5217u5546u54c1u6807u9898");case"PRODUCT_FEATURE_TILE":return h._("u4e3bu6253u5546u54c1");case"PRODUCT_GRID":switch(b){case"HOME":return h._("u4e3bu6253u7cfbu5217u5546u54c1uff08u7f51u683cuff09");case"COLLECTION":return h._("u5546u54c1");default:return""}default:return""}}function r(a,b){switch(a){case c("AccountQualityCommerceAppealRestrictionTypes").BUSINESS_WEEKLY_APPEAL_LIMIT:return h._("u4f60u5df2u8d85u8fc7u672cu5468u7684u7533u8bc9u4e0au9650u3002");case c("AccountQualityCommerceAppealRestrictionTypes").BULK_APPEAL_LIMIT:return h._("u4f60u4e00u6b21u6700u591au53efu4ee5u7533u8bf7u590du5ba1{bulk appeal limit}u4ef6u5546u54c1u3002",[h._param("bulk appeal limit",b)]);case c("AccountQualityCommerceAppealRestrictionTypes").CAPABILITIES_NOT_SUPPORTED:return h._("u4f60u7684u5546u54c1u4e0du80fdu590du5ba1u3002");default:return""}}function s(a){switch(a){case c("AccountQualityCommerceAppealRestrictionTypes").BUSINESS_WEEKLY_APPEAL_LIMIT:return h._("u590du5ba1u7533u8bf7u6b21u6570u5df2u8fbeu4e0au9650");case c("AccountQualityCommerceAppealRestrictionTypes").BULK_APPEAL_LIMIT:return h._("u5df2u8fbeu5546u54c1u6570u91cfu4e0au9650");case c("AccountQualityCommerceAppealRestrictionTypes").CAPABILITIES_NOT_SUPPORTED:return h._("u65e0u6cd5u590du5ba1u5546u54c1");default:return""}}function t(a,b){if(b==="ONBOARDING_IN_REVIEW")return h._("Weu2019re running a standard review of your account to make sure it complies with our {url to commerce policies}. This typically takes a few business days but can take up to four weeks.",[h._param("url to commerce policies",j.jsx(c("GeoLink.react"),{href:d("UnifiedIntegrityPolicyPageModalUtils").FACEBOOK_COMMERCE_POLICIES_URI,children:h._("u7535u5546u529fu80fdu51c6u5165u8981u6c42")}))]);if(d("CommerceIntegrityInfoUtils").isAppealRejected(a))return h._("After a requested review of this commerce account, we confirmed it didn"t comply with our {url to commerce policies}. This commerce account"s shop will remain rejected.",[h._param("url to commerce policies",j.jsx(c("GeoLink.react"),{href:d("UnifiedIntegrityPolicyPageModalUtils").FACEBOOK_COMMERCE_POLICIES_URI,children:h._("u7535u5546u529fu80fdu51c6u5165u8981u6c42")}))]);if(d("CommerceIntegrityInfoUtils").isAppealOnHold(a))return h._("The documents submitted for your review have issues. You need to upload new documents to complete your review request.");if(d("CommerceIntegrityInfoUtils").isAppealPending(a))return h._("An admin for this commerce account requested a review to determine if this commerce account"s shop should be rejected. We"re reviewing the account and will notify you here.");return d("CommerceIntegrityInfoUtils").isAppealClosed(a)?h._("u6211u4eecu5224u5b9au4f60u63d0u4f9bu7684u4fe1u606fu4e0du7b26u5408u6240u9009u539fu56e0u7684u8981u6c42uff0cu56e0u800cu5173u95edu8fd9u9879u590du5ba1u7533u8bf7u3002u4f60u53efu4ee5u91cdu65b0u63d0u4ea4u590du5ba1u7533u8bf7u3002"):null}function u(a,b){if(b==="ONBOARDING_IN_REVIEW")return h._("Commerce account in review");if(d("CommerceIntegrityInfoUtils").isAppealRejected(a))return h._("Account reviewed");if(d("CommerceIntegrityInfoUtils").isAppealOnHold(a))return h._("Commerce account review on hold");if(d("CommerceIntegrityInfoUtils").isAppealPending(a)){b=c("DateTime").create((b=a==null?void 0:a.createdTime)!=null?b:0,d("Timezone").UTC).format("M d, Y");return h._("Review requested on {appeal date}",[h._param("appeal date",b)])}return d("CommerceIntegrityInfoUtils").isAppealClosed(a)?h._("u672au5b8cu6210u4f60u7684u590du5ba1u7533u8bf7"):null}function v(a){switch(a){case c("AccountQualityCommerceShopChannelTypes").FACEBOOK:return h._("u5e97u94fa");case c("AccountQualityCommerceShopChannelTypes").INSTAGRAM:return h._("Instagram")}return""}function w(a){switch(a){case c("AccountQualityCommerceShopChannelTypes").FACEBOOK:return i("1350441");case c("AccountQualityCommerceShopChannelTypes").INSTAGRAM:return i("1353247")}return null}function x(){return h._("u6ca1u6709u653fu7b56u95eeu9898")}x.displayName=x.name+" [from "+f.id+"]";function y(a){switch(a){case"facebook":return h._("Facebook");case"instagram":return h._("Instagram");case"audience_network":return h._("Audience Network");case"messenger":return h._("Messenger");case"whatsapp":return h._("WhatsApp")}return""}function z(){return j.jsx(c("GeoLink.react"),{href:"https://www.facebook.com/business/help/2347002662267537",target:"_blank",children:h._("u7535u5546u529fu80fdu51c6u5165u8981u6c42")})}z.displayName=z.name+" [from "+f.id+"]";function A(){return j.jsx(c("GeoLink.react"),{href:"https://www.facebook.com/business/help/108127923199330",target:"_blank",children:h._("u4e86u89e3u66f4u591a")})}A.displayName=A.name+" [from "+f.id+"]";function B(a){a=a!=null?c("DateTime").fromISOString(a,d("Timezone").UTC).format("M d, Y"):"";return h._("u81ea{warn_date}u540e 30 u5929u8d77uff0cu8fd9u4e2au7535u5546u5e10u6237u53efu80fdu4f1au88abu9650u5236u4f7fu7528u9500u552eu529fu80fduff0cu56e0u4e3au5b83u6240u5c5eu7684u5546u52a1u7ba1u7406u5e73u53f0u5e10u6237u8fddu53cdu4e86u6211u4eecu7684u6761u6b3eu548cu5176u4ed6u5b88u5219uff0cu5305u62ecu6211u4eecu7684{commerce_link}u3002u5982u679cu8fd9u4e2au7535u5546u5e10u6237u53d7u9650uff0cu4f60u7684u5e97u94fau5c06u88abu7981u7528u3002{learn_more}",[h._param("warn_date",a),h._param("commerce_link",z()),h._param("learn_more",A())])}B.displayName=B.name+" [from "+f.id+"]";function C(a){a=a!=null?c("DateTime").fromISOString(a,d("Timezone").UTC).format("M d, Y"):"";return h._("u81ea{warn_date}u540e 30 u5929u8d77uff0cu8fd9u4e2au7535u5546u5e10u6237u53efu80fdu4f1au88abu9650u5236u4f7fu7528u9500u552eu529fu80fduff0cu56e0u4e3au5b83u6240u5c5eu7684u5546u52a1u7ba1u7406u5e73u53f0u5e10u6237u8fddu53cdu4e86u6211u4eecu7684u6761u6b3eu548cu5176u4ed6u5b88u5219uff0cu5305u62ecu6211u4eecu7684{commerce_link}u3002u5982u679cu8fd9u4e2au7535u5546u5e10u6237u53d7u9650uff0cu4f60u7684u5e97u94fau5c06u88abu7981u7528u3002",[h._param("warn_date",a),h._param("commerce_link",z())])}C.displayName=C.name+" [from "+f.id+"]";function D(){return h._("u8fd9u4e2au7535u5546u5e10u6237u7684u5e97u94fau548cu5176u4ed6u4e00u4e9bu8d44u4ea7u5df2u88abu7981u7528uff0cu56e0u4e3au7535u5546u5e10u6237u6240u5c5eu7684u5546u52a1u7ba1u7406u5e73u53f0u5e10u6237u8fddu53cdu4e86u6211u4eecu7684u6761u6b3eu548cu5176u4ed6u5b88u5219uff0cu5305u62ecu6211u4eecu7684{commerce_link}u3002u4f60u4ecdu7136u53efu4ee5u7ba1u7406u73b0u6709u8ba2u5355uff0cu4f46u4e0du53efu5904u7406u65b0u8ba2u5355u3002{learn_more}",[h._param("commerce_link",z()),h._param("learn_more",A())])}D.displayName=D.name+" [from "+f.id+"]";function E(){return h._("u8fd9u4e2au7535u5546u5e10u6237u7684u5e97u94fau548cu5176u4ed6u4e00u4e9bu8d44u4ea7u5df2u88abu7981u7528uff0cu56e0u4e3au7535u5546u5e10u6237u6240u5c5eu7684u5546u52a1u7ba1u7406u5e73u53f0u5e10u6237u8fddu53cdu4e86u6211u4eecu7684u6761u6b3eu548cu5176u4ed6u5b88u5219uff0cu5305u62ecu6211u4eecu7684{commerce_link}u3002u4f60u4ecdu7136u53efu4ee5u7ba1u7406u73b0u6709u8ba2u5355uff0cu4f46u4e0du53efu5904u7406u65b0u8ba2u5355u3002",[h._param("commerce_link",z())])}E.displayName=E.name+" [from "+f.id+"]";g.getChannelLabel=a;g.getNumChannelsLabel=b;g.getCapabilityLabel=e;g.getStatusLabel=k;g.getContentTypeLabel=l;g.getLaunchItemStatusLabel=m;g.getLaunchItemIdLabel=n;g.getLaunchItemDisplayName=o;g.getStatusImage=p;g.getViolatingSectionLabel=q;g.getNotificationContent=r;g.getNotificationHeader=s;g.getAppealBannerBody=t;g.getAppealBannerTitle=u;g.getShopChannelLabel=v;g.getShopChannelImage=w;g.noPolicyIssuesText=x;g.getPublisherPlatformLabel=y;g.getCommerceLink=z;g.getLearnMoreLink=A;g.getNearRestrictionMessage=B;g.getNearRestrictionNoLearnMoreMessage=C;g.getRestrictedMessage=D;g.getRestrictedNoLearnMoreMessage=E}),98);
-----
AccountQualityHubCommerceAccountAndCatalogUtils",["fbt","ix","AccountQualityCommerceAccountAndCatalogStrings","AccountQualityCommerceAppealRestrictionTypes","AccountQualityCommerceEntityTypes","AccountQualityCommerceReviewStatusTypes","AccountQualityCommerceSetAppealLimitsAction","AccountQualityCommerceShopChannelTypes","AccountQualityEntityTypes","AccountQualityHubCommerceAccountAndCatalogConstants","AccountQualityHubCommerceAccountAndCatalogUtilsCatalogLimitsQuery.graphql","AccountQualityHubCommerceAccountAndCatalogUtils_argroup.graphql","AccountQualityHubCommerceAccountAndCatalogUtils_collection.graphql","AccountQualityHubCommerceAccountAndCatalogUtils_commerce_ugc.graphql","AccountQualityHubCommerceAccountAndCatalogUtils_dropsCampaign.graphql","AccountQualityHubCommerceAccountAndCatalogUtils_item.graphql","AccountQualityHubCommerceAccountAndCatalogUtils_shop.graphql","AccountQualityTabTypes","CatalogItemCapabilityToDomain","CommerceArrayUtils","CommerceIntegrityInfoUtils","CommerceManagerUtils","DateTime","RelayHooks","SellerState","SellerStateUtils.facebook","Timezone","react"],(function(a,b,c,d,e,f,g,h,i){var j,k,l,m,n,o,p,q=d("react").useEffect,r=function(a,b){var c,d;c=u(a==null?void 0:(c=a.shops)==null?void 0:c.nodes);d=(d=a==null?void 0:(d=a.product_catalog)==null?void 0:d.product_count_for_status)!=null?d:0;var e=t(a==null?void 0:a.commerce_ugc),f=Boolean(a==null?void 0:a.is_customer_feedback_feature_enabled),g=d+c;f&&(g+=e);return x(a.name,a.id,g,"COMMERCE_ACCOUNT",y(a),b,a.sellerState,d,0,c,e,f)},s=function(a,b,e,f){var g;b=b;b.push.apply(b,(a==null?void 0:(g=a.commerceAccounts)==null?void 0:g.nodes)||[]);g=(f==null?void 0:f.proxyCommerceAccounts)||[];b.push.apply(b,g);g=d("CommerceArrayUtils").unique([].concat(b),function(a){return(a==null?void 0:a.id)||""}).filter(function(a){return d("CommerceManagerUtils").isAccountEnabled(a)}).filter(Boolean);var h=g.map(function(a){return a==null?void 0:a.product_catalog});f=e==c("AccountQualityEntityTypes").AD_BUSINESS?a==null?void 0:(b=a.business_product_catalogs)==null?void 0:b.nodes.filter(function(a){return!h.includes(a)}):f==null?void 0:(e=f.account_user)==null?void 0:(b=e.all_product_catalogs)==null?void 0:b.nodes.filter(function(a){return!h.includes(a)});e=d("CommerceArrayUtils").unique([].concat(f),function(a){return(a==null?void 0:a.id)||""}).filter(Boolean);var i=a==null?void 0:(b=a.business_integrity_account_status)==null?void 0:b.integrity_account_banhammer_status;f=e.map(function(a){return v(a)});var j=[];f.forEach(function(a){j.push("catalog/"+(a.id!=null?a.id:"unknown_id")+"/"+a.statusText.toString())});a=g.map(function(a){return r(a,i)});a.forEach(function(a){j.push("commerce_account/"+(a.id!=null?a.id:"unknown_id")+"/"+a.statusText.toString())});return[[].concat(f,a),j]},t=function(a){a=(a==null?void 0:a.filter(function(a){return a.status!=="APPROVED"}))||[];return a.length},u=function(a){var b=0;a==null?void 0:a.map(function(a){return F(a)}).forEach(function(a){if(a!=null){a=T(a);a.forEach(function(a){a.reviewStatus==="REJECTED"&&b++})}});return b},v=function(a){var b;b=(b=a==null?void 0:a.product_count_for_status)!=null?b:0;return x(a.name,a.id,b,"CATALOG",i("1534226"))},w=function(a){var b=new Map();a==null?void 0:a.forEach(function(a){var d;if(!Object.prototype.hasOwnProperty.call(c("CatalogItemCapabilityToDomain"),a.toLowerCase()))return;var e=c("CatalogItemCapabilityToDomain")[a.toLowerCase()];b.has(e)?(d=b.get(e))==null?void 0:d.push(a):b.set(e,[a])});return b},x=function(a,b,c,d,e,f,g,h,i,j,k,l){var m=z(c,f,g);f=A(c,f,g);return{name:a,id:b,image:e,statusText:m,statusIcon:f,rejectionCount:c,itemType:d,rejectedProductCount:h,rejectedCollectionsCount:i,rejectedShopSectionsCount:j,rejectedCommerceUGCCount:k,showCommerceUGC:l}},y=function(a){var b;b=(b=a==null?void 0:(b=a.shops)==null?void 0:b.nodes.filter(function(a){return a.fbAsset!=null}))!=null?b:[];b=(b==null?void 0:b.length)>0?(b=b[0].fbAsset)==null?void 0:b.page:null;a=(a=a.shops)==null?void 0:(a=a.nodes.filter(function(a){return((a=a.igAsset)==null?void 0:a.igUser)!=null})[0])==null?void 0:(a=a.igAsset)==null?void 0:a.igUser;return(b==null?void 0:(b=b.picture)==null?void 0:b.uri)||(a==null?void 0:(b=a.picture)==null?void 0:b.uri)},z=function(a,b,c){var d=h._("u65e0u8d44u4ea7u95eeu9898");B(b)||C(c)?d=h._("u5e10u6237u53d7u9650"):E(b)||D(c)?d=h._("u5e10u6237u5373u5c06u53d7u9650"):a>0&&(d=h._("u90e8u5206u8d44u4ea7u88abu62d2"));return d},A=function(a,b,c){var d=i("1270238");B(b)||C(c)?d=i("1280867"):(E(b)||D(c)||a>0)&&(d=i("1270245"));return d},B=function(a){if(a!=null)switch(a){case"DISABLED_NOTDAY1TO30_APPEAL_ELIGIBLE":case"DISABLED_NOTDAY1TO30_APPEAL_NOTELIGIBLE":case"RESTRICTED_NO_APPEAL":return!0}return!1},C=function(a){switch(d("SellerStateUtils.facebook").toJSEnum(a)){case c("SellerState").ONBOARDING_REJECTED:case c("SellerState").BANNED:case c("SellerState").POOR:case c("SellerState").RESTRICTED:return!0;case c("SellerState").ONBOARDING_IN_REVIEW:case c("SellerState").BANHAMMER_WARNING:case c("SellerState").GOOD:case c("SellerState").POOR_WARNING:default:return!1}},D=function(a){switch(d("SellerStateUtils.facebook").toJSEnum(a)){case c("SellerState").BANHAMMER_WARNING:case c("SellerState").POOR_WARNING:return!0;case c("SellerState").ONBOARDING_IN_REVIEW:case c("SellerState").ONBOARDING_REJECTED:case c("SellerState").POOR:case c("SellerState").BANNED:case c("SellerState").RESTRICTED:case c("SellerState").GOOD:default:return!1}},E=function(a){if(a!=null)switch(a){case"DISABLED_DAY1TO30_APPEAL_ELIGIBLE":case"DISABLED_DAY1TO30_APPEAL_NOTELIGIBLE":case"WARNING_APPEAL_ELIGIBLE":case"WARNING_APPEAL_NOTELIGIBLE":return!0}return!1},F=function(a){return a==null?null:d("RelayHooks").readInlineData(j!==void 0?j:j=b("AccountQualityHubCommerceAccountAndCatalogUtils_shop.graphql"),a)},G=function(a){return a==null?null:d("RelayHooks").readInlineData(k!==void 0?k:k=b("AccountQualityHubCommerceAccountAndCatalogUtils_commerce_ugc.graphql"),a)},H=function(a){return a==null?null:d("RelayHooks").readInlineData(l!==void 0?l:l=b("AccountQualityHubCommerceAccountAndCatalogUtils_collection.graphql"),a)},I=function(a){return a==null?null:d("RelayHooks").readInlineData(m!==void 0?m:m=b("AccountQualityHubCommerceAccountAndCatalogUtils_argroup.graphql"),a)},J=function(a){return a==null?null:d("RelayHooks").readInlineData(n!==void 0?n:n=b("AccountQualityHubCommerceAccountAndCatalogUtils_dropsCampaign.graphql"),a)},K=function(a){return a==null?null:d("RelayHooks").readInlineData(o!==void 0?o:o=b("AccountQualityHubCommerceAccountAndCatalogUtils_item.graphql"),a)},L=function(a,b,c){var d=[];a.forEach(function(a,e){a.reviewStatus===b&&a.appealStatus===c&&d.push({capability:e,policyIssues:a.policyIssues,lastReviewed:a.reviewDate})});return d},M=function(a,b,d,e){if(b.length==0||e!==c("AccountQualityCommerceEntityTypes").PRODUCTS)return[a,d];var f=new Set(b);e=a.map(function(a){return babelHelpers["extends"]({},a,{channels:((a=a.channels)==null?void 0:a.filter(function(a){return f.has(a.capability)}))||[]})}).filter(function(a){return a.channels&&a.channels.length>0});b=new Set(e.map(function(a){return a.id}).filter(function(a){return d.has(a)}));return[e,b]},N=function(a,b,d,e){if(b.length===0||e!==c("AccountQualityCommerceEntityTypes").COMMERCE_UGC)return[a,d];var f=new Set(b);e=a.filter(function(a){return f.has(a.contentType)});b=new Set(e.map(function(a){return a.id}).filter(function(a){return d.has(a)}));return[e,b]};function a(a,b,d,e){if(b.length==0||e!==c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES)return[a,d];var f=new Set(b);e=a.filter(function(a){return a.launchDate!=null&&f.has(R(a.launchDate))});b=new Set(e.map(function(a){return a.id}).filter(function(a){return d.has(a)}));return[e,b]}var O=function(a){return a==null?void 0:(a=a.content_appeal_create)==null?void 0:(a=a.contents_appeal_info)==null?void 0:a.map(function(a){var b;return{itemID:(b=a.content_id)!=null?b:"",capabilities:a.product_capability_to_success.filter(function(a){return a.success}).map(function(a){return a.capability})}})},P=function(a){var b=0;a.forEach(function(a){a!=null&&a>b&&(b=a)});return Q(b)};function Q(a){return a<=0?"":c("DateTime").create(a,d("Timezone").getEnvironmentTimezoneID()).format("M d, Y")}function R(a){a=c("DateTime").create(a||0,d("Timezone").getEnvironmentTimezoneID());return a.startOfDay().instant}var S=function(a){a=(a==null?void 0:(a=a.product_promotions)==null?void 0:a.nodes)||[];return a.length>0?a[0].publisher_platforms[0]!=="%future added value"?a[0].publisher_platforms[0]:null:null},T=function(a){var b,c=function(a){return function(b,c,e){e=c.id!=null?c.id:a+e;b.set(e,{id:e,name:c.name||"",metadataID:c.metadata_id||"",reviewStatus:c.integrity_review_decision||"NO_REVIEW",rejectionInfo:c.rejection_info.map(function(a){return{policy_name:a.policy_name||"",rejection_message:a.rejection_message||"",rejection_reason:a.rejection_reason||"",policy_domain:"COMMERCE"}}),sectionType:c.shop_section_render_type||"HEADER",appealInfo:d("CommerceIntegrityInfoUtils").getAppealInfo(c.appeal_info),sectionSource:a});return b}};a=(a=a.storefront_workspace)==null?void 0:(a=a.version_history_revisions)==null?void 0:a.nodes;var e=a==null?void 0:a[0];((b=e)==null?void 0:b.save_type)!=="MAJOR"&&(e=a==null?void 0:a[1]);if(e==null)return[];var f=(((b=e)==null?void 0:(a=b.shop_home_page)==null?void 0:(b=a.shop_sections)==null?void 0:b.nodes)||[]).reduce(c("HOME"),new Map());f=(((a=e)==null?void 0:(b=a.shop_home_page)==null?void 0:(a=b.footer_sections)==null?void 0:a.nodes)||[]).reduce(c("HOME"),f);(b=e)==null?void 0:(a=b.shop_collection_pages)==null?void 0:a.nodes.forEach(function(a){f=(((a=a.shop_sections)==null?void 0:a.nodes)||[]).reduce(c("COLLECTION"),f)});return Array.from(f,function(a){a[0];a=a[1];return a})},aa=function(a,b){switch(a){case"REJECTED":return b===c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW;case"IN_REVIEW":return b===c("AccountQualityTabTypes").IN_REVIEW;case"APPROVED":return b===c("AccountQualityTabTypes").REVERSED}return!1},ba=function(a,b,e){switch(b){case"REJECTED":return d("CommerceIntegrityInfoUtils").isSectionAppealable(a,!0)?e===c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW:e===c("AccountQualityTabTypes").UNCHANGED;case"PENDING":return d("CommerceIntegrityInfoUtils").isAppealPending(a)&&e===c("AccountQualityTabTypes").IN_REVIEW;case"APPROVED":return e===c("AccountQualityTabTypes").REVERSED&&d("CommerceIntegrityInfoUtils").isAppealApproved(a)}return!1},ca=function(a){var b=[];a.ig_user!=null&&b.push(c("AccountQualityCommerceShopChannelTypes").INSTAGRAM);a.page!=null&&b.push(c("AccountQualityCommerceShopChannelTypes").FACEBOOK);return b},da=function(a,b){if(b!==null&&b==="APPEAL_PENDING")return c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW;switch(a){case"APPROVED":return c("AccountQualityCommerceReviewStatusTypes").APPROVED;case"PENDING":return c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW;case"REJECTED":default:return c("AccountQualityCommerceReviewStatusTypes").REJECTED}},ea=function(a){switch(a){case"APPROVED":return c("AccountQualityCommerceReviewStatusTypes").APPROVED;case"IN_REVIEW":return c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW;case"VIEW_ISSUES":return c("AccountQualityCommerceReviewStatusTypes").PRODUCT_ISSUES;case"REJECTED":default:return c("AccountQualityCommerceReviewStatusTypes").REJECTED}},U=function(a){switch(a){case c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW:return["REJECTED","APPEAL_NOT_EXIST"];case c("AccountQualityTabTypes").IN_REVIEW:return["REJECTED","APPEAL_PENDING"];case c("AccountQualityTabTypes").REVERSED:return["APPROVED","APPEAL_APPROVED"];case c("AccountQualityTabTypes").UNCHANGED:return["REJECTED","APPEAL_DISAPPROVED"];default:return["NO_REVIEW","APPEAL_NOT_EXIST"]}};function fa(a){switch(a){case c("AccountQualityTabTypes").IN_REVIEW:return c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW;case c("AccountQualityTabTypes").REVERSED:return c("AccountQualityCommerceReviewStatusTypes").APPROVED;case c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW:case c("AccountQualityTabTypes").UNCHANGED:default:return c("AccountQualityCommerceReviewStatusTypes").REJECTED}}var ga=function(a){var b=new Map();a.item_capability_to_appeal_status.filter(function(a){return a.capability&&d("AccountQualityHubCommerceAccountAndCatalogConstants").CAPABILITIES_SUPPORTED_IN_AQ.contains(a.capability)}).forEach(function(a){var c=a.capability;c!=null&&b.set(c,{appealStatus:a.product_appeal_status||"APPEAL_NOT_EXIST",reviewStatus:"NO_REVIEW",reviewDate:0,policyIssues:[]})});a.item_capability_to_review_status.filter(function(a){return a.capability&&d("AccountQualityHubCommerceAccountAndCatalogConstants").CAPABILITIES_SUPPORTED_IN_AQ.contains(a.capability)}).forEach(function(a){var c=a.capability;if(c!=null){var d=b.get(c);b.set(c,{appealStatus:(d==null?void 0:d.appealStatus)||"APPEAL_NOT_EXIST",reviewStatus:a.product_review_status||"NO_REVIEW",reviewDate:(d==null?void 0:d.reviewDate)||0,policyIssues:JSON.parse(JSON.stringify(a.rejection_info))})}});a.item_capability_to_review_date.filter(function(a){return a.capability&&d("AccountQualityHubCommerceAccountAndCatalogConstants").CAPABILITIES_SUPPORTED_IN_AQ.contains(a.capability)}).forEach(function(a){var c=a.capability;if(c!=null){var d=b.get(c);b.set(c,{appealStatus:(d==null?void 0:d.appealStatus)||"APPEAL_NOT_EXIST",reviewStatus:(d==null?void 0:d.reviewStatus)||"NO_REVIEW",reviewDate:a.product_review_date||0,policyIssues:(d==null?void 0:d.policyIssues)||[]})}});return b},V=function(a,b,d){var e=[];a=(a||[]).map(function(a){return K(a)}).reduce(function(a,f){if(f!=null){var g=ga(f),h=U(b),i=h[0];h=h[1];g=L(g,i,h);if(g.length>0){var j;e=e.concat(g.map(function(a){return a.capability}));a.push({name:f.dynamic_item_name||"",id:f.id||"",imageUrl:((j=f.dynamic_item_main_image)==null?void 0:(j=j.image)==null?void 0:j.uri)||"",status:da(i,h),promotion:S(f),channels:g,commerceEntityType:c("AccountQualityCommerceEntityTypes").PRODUCTS,dropCampaignID:(j=d)!=null?j:void 0})}}return a},[]);return[a,Array.from(new Set(e))]},ha=function(a,b){var d=[];a=(a||[]).map(function(a){return G(a)}).reduce(function(a,e){if((e==null?void 0:e.status)!=null&&ia(e.status,b)){var f=ka(e);e.content_type!=null&&(d=d.concat(e.content_type));a.push({content:e.content||"",policyIssues:f,contentType:e.content_type,id:e.content_id||"",imageUrl:"",status:ja(e.status),lastReviewed:Q(e.last_reviewed||0),channels:[{capability:"SHOPS",policyIssues:f,lastReviewed:e.last_reviewed||0,contentType:e.content_type}],commerceEntityType:c("AccountQualityCommerceEntityTypes").COMMERCE_UGC,name:"",policyViolationContents:e.policy_violation_contents,violations:e.integrity_violation_strings,parentRowID:(f=e.parent_id)!=null?f:""})}return a},[]);return[a,Array.from(new Set(d))]},ia=function(a,b){switch(a){case"AVAILABLE_FOR_REVIEW":return b===c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW;case"IN_REVIEW":return b===c("AccountQualityTabTypes").IN_REVIEW;case"APPROVED":return b===c("AccountQualityTabTypes").REVERSED;case"REJECTED":default:return b===c("AccountQualityTabTypes").UNCHANGED}},ja=function(a){switch(a){case"IN_REVIEW":return c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW;case"APPROVED":return c("AccountQualityCommerceReviewStatusTypes").APPROVED;case"AVAILABLE_FOR_REVIEW":case"REJECTED":default:return c("AccountQualityCommerceReviewStatusTypes").REJECTED}},ka=function(a){var b=a.integrity_violation_strings||[];return(a=a.policy_violation_contents)==null?void 0:a.map(function(a,c){return{policy_name:c=(a==null?void 0:a.bulkAppealLimit)?c("AccountQualityCommerceAppealRestrictionTypes").BULK_APPEAL_LIMIT:c("AccountQualityCommerceAppealRestrictionTypes").NONE},X=function(a,b){return!a||!b?!0:(b==null?void 0:b.filter(function(b){return a.includes(b)}).length)!==0},qa=function(a){return a.capabilityFilters.length===0?a.items[a.selectedEntity][a.selectedTab].capabilities:a.capabilityFilters},ra=function(a){return a.contentTypeFilters.length===0?a.items[a.selectedEntity][a.selectedTab].contentTypes:a.contentTypeFilters},Y=[c("AccountQualityCommerceEntityTypes").PRODUCTS,c("AccountQualityCommerceEntityTypes").COMMERCE_UGC,c("AccountQualityCommerceEntityTypes").SHOPS],sa=[c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES,c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY];function Z(a){return a.concat(sa)}function ta(a){if(a==null||typeof a==="string")return a;else if(a.length===1&&(a[0]==null||typeof a[0]==="string"))return a[0];else return null}function e(a){var b=ta(a);Y;a=Z(Y);return a.find(function(a){return a===b})}function $(a){return typeof a==="string"?Number.parseInt(a,10):a}function f(a){if(a==null)return[];else if(typeof a==="string")return[$(a)].filter(function(a){return!Number.isNaN(a)});return a.map($).filter(function(a){return!Number.isNaN(a)})}g.createCommerceAccountAndCatalogItemFromCommerceAccount=r;g.getCommerceAccountAndCatalogItems=s;g.createCommerceAccountAndCatalogItemFromCatalog=v;g.getChannelsToCapabilityMap=w;g.isSellerRestricted=C;g.isSellerNearRestriction=D;g.applyCapabilityFilterToItems=M;g.applyContentTypeFilterToItems=N;g.filterItemsByLaunchDate=a;g.getItemToAppealedCatabilities=O;g.getLatestReviewDate=P;g.getDateStringFromUnix=Q;g.stripToDate=R;g.getStatusesFromTab=U;g.getProductRowsByTab=V;g.getCommerceUGCRowsByTab=ha;g.getCollectionRowsByTab=W;g.getShopsRowsByTab=la;g.getDropsCampaignRowsByTab=ma;g.getARDataByTab=na;g.useProductCatalogLimits=oa;g.getCommerceAppealRestriction=pa;g.capabilitiesEligibleForAppeals=X;g.getSelectedCapabilities=qa;g.getSelectedContentTypes=ra;g.addDropsFilteredViewEntities=Z;g.getInitialCommerceEntityType=e;g.getNumberListValue=f}),98);
-----
AccountQualityCommerceEntity",[],(function(a,b,c,d,e,f){a=Object.freeze({PRODUCTS:"products",COLLECTIONS:"collections",SHOPS:"shops",PRODUCT_LAUNCHES:"product_launches",AUGMENTED_REALITY:"augmented_reality",COMMERCE_UGC:"commerce_ugc"});f["default"]=a}),66);
-----
AccountQualityCommerceEntityTypes",["AccountQualityCommerceEntity"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=c("AccountQualityCommerceEntity")}),98);
-----
AccountQualityCommerceDataTestUtils",["AccountQualityCommerceEntityTypes","AccountQualityCommerceReviewStatusTypes","AccountQualityTabTypes","immutable"],(function(a,b,c,d,e,f,g){"use strict";b={name:"1",id:"1",metadataID:"2",imageUrl:"",status:c("AccountQualityCommerceReviewStatusTypes").REJECTED,channels:[{capability:"DA",policyIssues:[],lastReviewed:1}],promotion:"FACEBOOK",policyIssues:[{policy_name:"",rejection_reason:"",rejection_message:"",policy_domain:null}],lastReviewed:"",commerceEntityType:c("AccountQualityCommerceEntityTypes").PRODUCTS};d={content:"Test content",contentType:"RATINGS_AND_REVIEWS_REPLY",name:"1",id:"1",metadataID:"2",imageUrl:"",status:c("AccountQualityCommerceReviewStatusTypes").REJECTED,channels:[{capability:"DA",policyIssues:[],lastReviewed:1,contentType:"RATINGS_AND_REVIEWS_REPLY"}],promotion:"FACEBOOK",policyIssues:[{policy_name:"",rejection_reason:"",rejection_message:"",policy_domain:null}],lastReviewed:"",commerceEntityType:c("AccountQualityCommerceEntityTypes").COMMERCE_UGC};e={content_appeal_create:{success:!0,contents_appeal_info:[{content_id:"1",product_capability_to_success:[{capability:"DA",success:!0}]}]}};f={commerce_metadata_create_appeal:{client_mutation_id:"1",results:[{entity_id:"2",success:!0}]}};function h(a){var b={};Object.keys(c("AccountQualityTabTypes")).forEach(function(d){b[c("AccountQualityTabTypes")[d]]={rows:(d=a)!=null?d:new Map(),cursor:null,loadAttempted:!1,count:null}});return b}function a(){var a;return{items:(a={},a[c("AccountQualityCommerceEntityTypes").PRODUCTS]=h(),a[c("AccountQualityCommerceEntityTypes").COMMERCE_UGC]=h(),a[c("AccountQualityCommerceEntityTypes").SHOPS]=h(),a[c("AccountQualityCommerceEntityTypes").COLLECTIONS]=h(),a[c("AccountQualityCommerceEntityTypes").SHOPS]=h(),a[c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES]=h(),a[c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY]=h(),a),selectedRows:c("immutable").Map([]),sortedRows:[],sortDirection:"asc",sortKey:null,selectedTab:c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW,selectedEntity:c("AccountQualityCommerceEntityTypes").PRODUCTS,capabilityFilters:[],contentTypeFilters:[],commerceAccountID:null,catalogID:null,appealLimitsFetchKey:null}}g.TEST_PRODUCT=b;g.TEST_COMMERCE_UGC=d;g.TEST_APPEAL_RESPONSE=e;g.TEST_METADATA_APPEAL_RESPONSE=f;g.getTabsInitialState=h;g.getInitialState=a}),98);
-----
AccountQualityCommerceDataQuery",["AccountQualityCommerceDataRetrievalCompleteAction","AccountQualityCommerceEntityTypes","AccountQualityHubCommerceAccountAndCatalogUtils","AccountQualityTabTypes"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e,f,g,h){var i,j={};Object.keys(c("AccountQualityTabTypes")).forEach(function(b){b=c("AccountQualityTabTypes")[b];var e=d("AccountQualityHubCommerceAccountAndCatalogUtils").getProductRowsByTab(a,b),f=e[0];e=e[1];j[b]={rows:f,capabilities:e}});var k={};Object.keys(c("AccountQualityTabTypes")).forEach(function(a){a=c("AccountQualityTabTypes")[a];var e=d("AccountQualityHubCommerceAccountAndCatalogUtils").getCommerceUGCRowsByTab(b,a),f=e[0];e=e[1];k[a]={rows:f,contentTypes:e}});var l={};Object.keys(c("AccountQualityTabTypes")).forEach(function(a){a=c("AccountQualityTabTypes")[a];var b=d("AccountQualityHubCommerceAccountAndCatalogUtils").getCollectionRowsByTab(e,a);l[a]={rows:b}});var m={};Object.keys(c("AccountQualityTabTypes")).forEach(function(a){a=c("AccountQualityTabTypes")[a];var b=d("AccountQualityHubCommerceAccountAndCatalogUtils").getShopsRowsByTab(f,a);m[a]={rows:b}});var n={};Object.keys(c("AccountQualityTabTypes")).forEach(function(a){a=c("AccountQualityTabTypes")[a];var b=d("AccountQualityHubCommerceAccountAndCatalogUtils").getDropsCampaignRowsByTab(g,a);n[a]={rows:b}});var o={};Object.keys(c("AccountQualityTabTypes")).forEach(function(a){a=c("AccountQualityTabTypes")[a];var b=d("AccountQualityHubCommerceAccountAndCatalogUtils").getARDataByTab(h);o[a]={rows:b}});c("AccountQualityCommerceDataRetrievalCompleteAction").dispatch((i={},i[c("AccountQualityCommerceEntityTypes").PRODUCTS]=j,i[c("AccountQualityCommerceEntityTypes").COMMERCE_UGC]=k,i[c("AccountQualityCommerceEntityTypes").COLLECTIONS]=l,i[c("AccountQualityCommerceEntityTypes").SHOPS]=m,i[c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES]=n,i[c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY]=o,i),{line:"125",module:"AccountQualityCommerceDataQuery.js"})}g.request=a}),98);
-----
AccountQualityAppealDialog.react",["ARCommerceCreateAppealMutation","AccountQualityAppealStages","AccountQualityCommerceAppealForm.react","AccountQualityCommerceClearItemsAction","AccountQualityCommerceDataProvider","AccountQualityCommerceEntityTypes","AccountQualityCommerceODS","AccountQualityHSMAppealForm.react","AccountQualityLogger","AccountQualityWhatsAppBusinessStrings","AccountQualityWhatsAppClearRowsAction","AccountQualityWhatsAppCommerceCheckAppealForm.react","AccountQualityWhatsAppDataProvider","AccountQualityWhatsAppEntityTypes","AccountQualityWhatsAppProcessCommerceCheckAppealResponseAction","AccountQualityWhatsAppProcessHSMAppealResponseAction","AccountQualityWhatsAppProcessViolationAppealResponseAction","AccountQualityWhatsAppViolationAppealForm.react","AdsFluxHooks","AdsReviewStringConstants","CommerceCFAppealMultiStepModal.react","GeoButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","RelayHooks","adsCreateStructuredSelector","compactArray","emptyFunction","nullthrows","react","useCommerceMetadataAppealCreation","useProductAppealCreation.react","useWhatsAppCommerceCheckAppealCreation.react","useWhatsAppHSMAppealCreation.react","useWhatsAppViolationAppealCreation.react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useEffect,k=b.useMemo,l=b.useState;e=c("AccountQualityWhatsAppDataProvider").toFluxSelector();b=c("AccountQualityCommerceDataProvider").toFluxSelector();var m=c("adsCreateStructuredSelector")({whatsAppSelectionData:e,commerceSelectionData:b},f.id+".selector");function a(a){var b=a.setAppealStage,e=a.appealStage,f=a.selectedRowIDs,g=a.selectedEntity,n=a.businessID;a=d("AdsFluxHooks").useAdsSelector(m);var o=a.whatsAppSelectionData,p=a.commerceSelectionData;j(function(){e!==d("AccountQualityAppealStages").AccountQualityAppealStage.NOT_INITIATED&&d("AccountQualityCommerceODS").bumpKey(d("AccountQualityCommerceODS").AccountQualityCommerceLoggerCategory.COMMERCE_HUB,["appeal",g,String(e)])},[g,e]);var q=d("RelayHooks").useRelayEnvironment(),r=0,s="",t="",u=null,v=null;switch(g){case c("AccountQualityCommerceEntityTypes").PRODUCTS:case c("AccountQualityCommerceEntityTypes").SHOPS:r=p.selectedRows.size;break;case c("AccountQualityWhatsAppEntityTypes").MESSAGE_TEMPLATES:r=o.templateTable.selectedRow.size;s=Array.from(o.templateTable.selectedRow.map(function(a){return a.name}).values())[0];break;case c("AccountQualityWhatsAppEntityTypes").ACTIVITY:r=o.violationTable.selectedRow.size;t=o.whatsAppAccountName;u=Array.from(o.violationTable.selectedRow.map(function(a){return a.violationType}).values())[0];break;case c("AccountQualityWhatsAppEntityTypes").COMMERCE_CHECK:v=o.commerceCheck;break}a=l("");var w=a[0],x=a[1];a=l("");var y=a[0],z=a[1];a=l("");var A=a[0],B=a[1],C=i(function(){x(""),z(""),B("")},[x,z,B]),D=c("useProductAppealCreation.react")(),E=c("useCommerceMetadataAppealCreation")(),F=c("useWhatsAppHSMAppealCreation.react")(),G=c("useWhatsAppViolationAppealCreation.react")(),H=c("useWhatsAppCommerceCheckAppealCreation.react")();a=function(){switch(e){case d("AccountQualityAppealStages").AccountQualityAppealStage.SUCCESS:switch(g){case c("AccountQualityWhatsAppEntityTypes").ACTIVITY:return d("AccountQualityWhatsAppBusinessStrings").requestReviewModalSuccessHeader();case c("AccountQualityWhatsAppEntityTypes").MESSAGE_TEMPLATES:case c("AccountQualityCommerceEntityTypes").PRODUCTS:case c("AccountQualityCommerceEntityTypes").SHOPS:default:return d("AdsReviewStringConstants").getCommerceRequestSentTitle()}default:switch(g){case c("AccountQualityWhatsAppEntityTypes").ACTIVITY:return d("AccountQualityWhatsAppBusinessStrings").requestReviewModalHeader();case c("AccountQualityWhatsAppEntityTypes").MESSAGE_TEMPLATES:case c("AccountQualityCommerceEntityTypes").PRODUCTS:case c("AccountQualityCommerceEntityTypes").SHOPS:default:return d("AdsReviewStringConstants").getCommerceAppealFormTitle()}}};var I=i(function(a){var e=a.xfb_whats_app_hsm_appeal_create;e&&(c("AccountQualityWhatsAppProcessHSMAppealResponseAction").dispatch({response:a},{line:"182",module:"AccountQualityAppealDialog.react.js"}),c("AccountQualityWhatsAppClearRowsAction").dispatch({},{line:"185",module:"AccountQualityAppealDialog.react.js"}));C();b(d("AccountQualityAppealStages").AccountQualityAppealStage.SUCCESS)},[C,b]),J=i(function(a){var e=a.xfb_whats_app_violation_appeal_create;e&&(c("AccountQualityWhatsAppProcessViolationAppealResponseAction").dispatch({response:a},{line:"197",module:"AccountQualityAppealDialog.react.js"}),c("AccountQualityWhatsAppClearRowsAction").dispatch({},{line:"200",module:"AccountQualityAppealDialog.react.js"}));x("");b(d("AccountQualityAppealStages").AccountQualityAppealStage.SUCCESS)},[b,x]),K=i(function(a){var e=a.whats_app_commerce_check_appeal_create;e&&c("AccountQualityWhatsAppProcessCommerceCheckAppealResponseAction").dispatch({response:a},{line:"212",module:"AccountQualityAppealDialog.react.js"});x("");((e=a.whats_app_commerce_check_appeal_create)==null?void 0:(a=e.commerce_check_appeal_response_payload)==null?void 0:a.success)!==!0?b(d("AccountQualityAppealStages").AccountQualityAppealStage.FAILURE):b(d("AccountQualityAppealStages").AccountQualityAppealStage.SUCCESS)},[b,x]),L=i(function(){C(),b(d("AccountQualityAppealStages").AccountQualityAppealStage.NOT_INITIATED)},[C,b]),M=i(function(a,b){var c=p.selectedRows.map(function(a){return a.id}).values();D({ids:Array.from(c),comments_for_reviewer:w,callsite:"ACCOUNT_QUALITY",product_capabilities:p.capabilityFilters,type:"PRODUCT"},function(b){return a(b.content_appeal_create!=null)},b)},[w,D,p.capabilityFilters,p.selectedRows]),N=i(function(a,b){var c=p.selectedRows.map(function(a){return(a=a.arDataID)!=null?a:""}).values();d("ARCommerceCreateAppealMutation").commitARCommerceCreateAppealMutation(q,{appeal_comment:w,entity_ids:Array.from(c),callsite:"ACCOUNT_QUALITY"},a,b)},[w,p.selectedRows,q]),O=i(function(a,b){var d=p.selectedRows.map(function(a){return a.metadataID!==null?a.metadataID:null}).values();E({entity_ids:c("compactArray")(Array.from(d)),commerce_account_id:(d=p.commerceAccountID)!=null?d:"",appeal_comment:w,callsite:"ACCOUNT_QUALITY"},function(b){return a(b.commerce_metadata_create_appeal!=null)},b)},[w,E,p.commerceAccountID,p.selectedRows]),P=i(function(a){var e=[],g=function(){var a=e.filter(function(a){return a.appealsCreated}).length>0;a&&c("AccountQualityCommerceClearItemsAction").dispatch({},{line:"331",module:"AccountQualityAppealDialog.react.js"});a=e.filter(function(a){return!a.success}).length>0;b(a?d("AccountQualityAppealStages").AccountQualityAppealStage.FAILURE:d("AccountQualityAppealStages").AccountQualityAppealStage.SUCCESS)},h=function(b){e.push({success:!0,appealsCreated:b}),e.length===a.length&&g()},i=function(b){d("AccountQualityLogger").logSystem("aq.l3.commerce.appeal_creation_failure",{entity:b.toString()+","+f}),e.push({success:!1,appealsCreated:!1}),e.length===a.length&&g()};a.forEach(function(a){return a(h,i)})},[f,b]),Q=i(function(){var a=o.templateTable.selectedRow.map(function(a){return a.id}).values(),b=function(a){d("AccountQualityLogger").logSystem("aq.l3.commerce.appeal_creation_failure",{entity:a.toString()})};F({hsm_ids:c("compactArray")(Array.from(a)),whatsapp_account_id:(a=o.whatsAppAccountID)!=null?a:"",appeal_comment:w,appeal_reason:y,appeal_reason_other:A,callsite:"ACCOUNT_QUALITY"},I,b)},[w,y,A,I,F,o.templateTable.selectedRow,o.whatsAppAccountID]),R=i(function(){var a=o.violationTable.selectedRow.map(function(a){return a.id}).values();G({violation_ids:c("compactArray")(Array.from(a)),whatsapp_account_id:(a=o.whatsAppAccountID)!=null?a:"",appeal_comment:w,callsite:"ACCOUNT_QUALITY"},J,c("emptyFunction"))},[o.violationTable.selectedRow,o.whatsAppAccountID,G,w,J]),S=i(function(){var a;H({whatsapp_account_id:(a=o.whatsAppAccountID)!=null?a:"",appeal_comment:w,callsite:"ACCOUNT_QUALITY"},K,c("emptyFunction"))},[H,o.whatsAppAccountID,w,K]),T=i(function(){b(d("AccountQualityAppealStages").AccountQualityAppealStage.SUBMITTED);switch(g){case c("AccountQualityCommerceEntityTypes").PRODUCTS:P([M]);break;case c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY:P([N]);break;case c("AccountQualityCommerceEntityTypes").SHOPS:P([O]);break;case c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES:P([M,O]);break;case c("AccountQualityWhatsAppEntityTypes").MESSAGE_TEMPLATES:Q();break;case c("AccountQualityWhatsAppEntityTypes").ACTIVITY:R();break;case c("AccountQualityWhatsAppEntityTypes").COMMERCE_CHECK:S();break}},[b,g,P,M,O,N,Q,R,S]),U=e===d("AccountQualityAppealStages").AccountQualityAppealStage.INITIATED?d("AdsReviewStringConstants").getSubmitButtonLabel():d("AdsReviewStringConstants").getOKButtonLabel();T=e===d("AccountQualityAppealStages").AccountQualityAppealStage.INITIATED?T:L;var V=k(function(){switch(g){case c("AccountQualityCommerceEntityTypes").PRODUCTS:return"product";case c("AccountQualityCommerceEntityTypes").SHOPS:return"metadata";case c("AccountQualityWhatsAppEntityTypes").MESSAGE_TEMPLATES:case c("AccountQualityWhatsAppEntityTypes").ACTIVITY:return"whatsapp_business_account";default:return"product"}},[g]),W=k(function(){switch(g){case c("AccountQualityWhatsAppEntityTypes").MESSAGE_TEMPLATES:return h.jsx(c("AccountQualityHSMAppealForm.react"),{appealReason:y,appealReasonOther:A,appealStage:e,messageTemplateName:s,onAppealReasonOtherUpdate:B,onAppealReasonUpdate:z});case c("AccountQualityWhatsAppEntityTypes").ACTIVITY:return h.jsx(c("AccountQualityWhatsAppViolationAppealForm.react"),{appealComment:w,appealStage:e,violationType:u,wabaName:t,onAppealCommentUpdated:x});case c("AccountQualityWhatsAppEntityTypes").COMMERCE_CHECK:return h.jsx(c("AccountQualityWhatsAppCommerceCheckAppealForm.react"),{appealComment:w,appealStage:e,businessID:n,commerceCheck:v,onAppealCommentUpdated:x});case c("AccountQualityCommerceEntityTypes").PRODUCTS:case c("AccountQualityCommerceEntityTypes").SHOPS:default:return h.jsx(c("AccountQualityCommerceAppealForm.react"),{appealComment:w,appealStage:e,count:r,entityType:V,onAppealCommentUpdated:x})}},[w,V,s,y,A,e,g,r,t,u,v,n]);function X(a){switch(a){case"RATINGS_AND_REVIEWS":case"RATINGS_AND_REVIEWS_REPLY":return d("CommerceCFAppealMultiStepModal.react").CommerceCFAppealEntityType.AQ_SELLER_REPLY}return d("CommerceCFAppealMultiStepModal.react").CommerceCFAppealEntityType.AQ_SELLER_REPLY}var Y=k(function(){var a,f=Array.from(p.selectedRows.values())[0];a=((a=f==null?void 0:f.policyViolationContents)!=null?a:[]).map(function(a){var b=a.body,d=a.body_bullets,e=a.footer;a=a.title;return{body:b,bodyBullets:d,footer:e,title:c("nullthrows")(a)}});return h.jsx(d("CommerceCFAppealMultiStepModal.react").CommerceCFAppealMultiStepModal,{entityID:f==null?void 0:f.id,entityType:X(f==null?void 0:f.contentType),isShown:e!==d("AccountQualityAppealStages").AccountQualityAppealStage.NOT_INITIATED,policyViolationContents:a,violations:(a=f==null?void 0:f.violations)!=null?a:[],onClose:function(a){b(d("AccountQualityAppealStages").AccountQualityAppealStage.NOT_INITIATED),a===!0&&c("AccountQualityCommerceClearItemsAction").dispatch({},{line:"605",module:"AccountQualityAppealDialog.react.js"})}})},[b,e,p.selectedRows]);return g===c("AccountQualityCommerceEntityTypes").COMMERCE_UGC?Y:h.jsx(c("GeoModal.react"),{behaviors:{LayerHideOnBlur:null},footer:h.jsx(c("GeoModalFooter.react"),{primaryButton:h.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:e===d("AccountQualityAppealStages").AccountQualityAppealStage.SUBMITTED,label:U,variant:"primary",onClick:T}),secondaryButton:e===d("AccountQualityAppealStages").AccountQualityAppealStage.INITIATED?h.jsx(c("GeoButton.react"),{isDisabled:e===d("AccountQualityAppealStages").AccountQualityAppealStage.SUBMITTED,label:d("AdsReviewStringConstants").getCancelButtonLabel(),layerAction:"cancel",onClick:L}):null}),header:h.jsx(c("GeoModalHeader.react"),{heading:a()}),isShown:e!==d("AccountQualityAppealStages").AccountQualityAppealStage.NOT_INITIATED,label:a(),onHide:L,children:h.jsx(c("GeoSection.react"),{children:W})})}a.displayName=a.name+" [from "+f.id+"]";e=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=e}),98);
-----
AccountQualityHubCommerceSidebar.react",["fbt","ix","AccountQualityCommerceChangeEntityAction","AccountQualityCommerceDataProvider","AccountQualityCommerceEntityTypes","AccountQualityLogger","GeoFlexbox.react","GeoSidebarItem.react","GeoSidebarNavigation.react","GeoSidebarSection.react","Image.react","LaminarReactHooks","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useCallback,l={root:{borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",height:"x1jn0hjm",marginEnd:"xq8finb",minWidth:"x15x72sd",$$css:!0}};function a(a){var b,e=d("LaminarReactHooks").useProvider(c("AccountQualityCommerceDataProvider")),f=k(function(a){c("AccountQualityCommerceChangeEntityAction").dispatch({entity:a},{line:"53",module:"AccountQualityHubCommerceSidebar.react.js"}),d("AccountQualityLogger").logMouseEventAction("aq.l3.commerce.entity_change",{page:a,source_page:e.selectedEntity})},[e.selectedEntity]),g=(b={},b[c("AccountQualityCommerceEntityTypes").PRODUCTS]={value:c("AccountQualityCommerceEntityTypes").PRODUCTS,title:h._("u5546u54c1"),icon:i("493818"),iconActive:i("500751")},b[c("AccountQualityCommerceEntityTypes").COMMERCE_UGC]={value:c("AccountQualityCommerceEntityTypes").COMMERCE_UGC,title:h._("u987eu5ba2u53cdu9988"),icon:i("555017"),iconActive:i("727974")},b[c("AccountQualityCommerceEntityTypes").COLLECTIONS]={value:c("AccountQualityCommerceEntityTypes").COLLECTIONS,title:h._("u7cfbu5217u5546u54c1"),icon:i("1546590"),iconActive:i("1546575")},b[c("AccountQualityCommerceEntityTypes").SHOPS]={value:c("AccountQualityCommerceEntityTypes").SHOPS,title:h._("u5e97u94fau7248u5757"),icon:i("1594832"),iconActive:i("1594821")},b[c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES]={value:c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES,title:h._("Product launches"),icon:i("653321"),iconActive:i("534734")},b[c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY]={value:c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY,title:h._("Augumented Reality"),icon:i("276688"),iconActive:i("276545")},b);return j.jsx(c("GeoFlexbox.react"),{xstyle:l.root,children:j.jsx(c("GeoSidebarNavigation.react"),{value:e.selectedEntity,onChange:f,children:j.jsx(c("GeoSidebarSection.react"),{isLabelHidden:!0,label:"",children:a.entities.map(function(a,b){a=g[a];return j.jsx(c("GeoSidebarItem.react"),{icon:j.jsx(c("Image.react"),{src:a.icon}),iconActive:j.jsx(c("Image.react"),{src:a.iconActive}),label:a.title,value:a.value},b)})})})})}a.displayName=a.name+" [from "+f.id+"]";b=d("LaminarReactHooks").laminarContainer(a,null,{containerName:f.id});g["default"]=b}),98);
-----
AccountQualityHubCommerceReviewTableUtils",["fbt","AccountQualityCommerceAccountAndCatalogStrings","AccountQualityCommerceActionsCell.react","AccountQualityCommerceChannelCell.react","AccountQualityCommerceContentCell.react","AccountQualityCommerceContentTypeCell.react","AccountQualityCommerceEntityTypes","AccountQualityCommerceLastReviewedCell.react","AccountQualityCommerceLaunchDateCell.react","AccountQualityCommerceLaunchItemNameCell.react","AccountQualityCommerceLaunchItemStatusCell.react","AccountQualityCommerceNameCell.react","AccountQualityCommercePolicyLinkCell.react","AccountQualityCommerceReviewStatusTypes","AccountQualityCommerceSetSelectedRowsAction","AccountQualityCommerceShopChannelCell.react","AccountQualityCommerceStatusCell.react","AccountQualityTabTypes","immutable","intersectSets","react","unionSets"],(function(a,b,c,d,e,f,g,h){var i,j,k=d("react"),l=Object.freeze({COLLECTION_NAME:"collection_name",PRODUCT_NAME:"product_name",SHOP_NAME:"shop_name",LAUNCH_ITEM_NAME:"launch_item_name",PRODUCT_EFFECT_NAME:"product_effect_name",STATUS:"status",LAUNCH_ITEM_STATUS:"launch_item_status",POLICY:"policy",PROMOTED:"promoted",CHANNEL:"channel",PRODUCTS:"products",LAST_REVIEWED:"last_reviewed",SHOP_CHANNEL:"shop_channel",VIOLATING_SECTION:"violating_section",LAUNCH_DATE:"launch_date",CONTENT:"content",ACTIONS:"actions",CONTENT_TYPE:"content_type"});e=(e={},e[l.COLLECTION_NAME]=3,e[l.PRODUCT_NAME]=3,e[l.SHOP_NAME]=3,e[l.LAUNCH_ITEM_NAME]=3,e[l.PRODUCT_EFFECT_NAME]=3,e[l.STATUS]=1.5,e[l.LAUNCH_ITEM_STATUS]=1.5,e[l.POLICY]=2,e[l.PROMOTED]=1.5,e[l.CHANNEL]=2,e[l.PRODUCTS]=1,e[l.LAST_REVIEWED]=1.5,e[l.SHOP_CHANNEL]=2,e[l.VIOLATING_SECTION]=2,e[l.LAUNCH_DATE]=2,e[l.CONTENT]=3,e[l.ACTIONS]=1.5,e[l.CONTENT_TYPE]=2,e);i=(i={},i[l.COLLECTION_NAME]=h._("u7cfbu5217u5546u54c1u540du79f0"),i[l.PRODUCT_NAME]=h._("u5546u54c1u540du79f0"),i[l.SHOP_NAME]=h._("u5e97u94fau7248u5757u540du79f0"),i[l.LAUNCH_ITEM_NAME]=h._("Name"),i[l.PRODUCT_EFFECT_NAME]=h._("Product Effects"),i[l.STATUS]=h._("u72b6u6001"),i[l.LAUNCH_ITEM_STATUS]=h._("u72b6u6001"),i[l.POLICY]=h._("u653fu7b56u95eeu9898"),i[l.PROMOTED]=h._("u5df2u63a8u5e7f"),i[l.CHANNEL]=h._("u6e20u9053"),i[l.PRODUCTS]=h._("u5546u54c1"),i[l.LAST_REVIEWED]=h._("u4e0au6b21u5ba1u6838u65e5u671f"),i[l.SHOP_CHANNEL]=h._("u6e20u9053"),i[l.VIOLATING_SECTION]=h._("u9009u62e9u7248u5757"),i[l.LAUNCH_DATE]=h._("Launch date"),i[l.CONTENT]=h._("u5185u5bb9"),i[l.ACTIONS]=h._("u64cdu4f5c"),i[l.CONTENT_TYPE]=h._("u7c7bu578b"),i);h=(j={},j[c("AccountQualityCommerceEntityTypes").PRODUCTS]=h._("Products Table"),j[c("AccountQualityCommerceEntityTypes").COMMERCE_UGC]=h._("u987eu5ba2u53cdu9988"),j[c("AccountQualityCommerceEntityTypes").SHOPS]=h._("Shops Table"),j[c("AccountQualityCommerceEntityTypes").COLLECTIONS]=h._("Collections Table"),j[c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES]=h._("Product launches table"),j[c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY]=h._("Product Effects Table"),j);j=function(a,b){var d=[];switch(b){case c("AccountQualityCommerceEntityTypes").PRODUCTS:switch(a){case c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW:d=[l.PRODUCT_NAME,l.STATUS,l.POLICY,l.CHANNEL,l.LAST_REVIEWED];break;case c("AccountQualityTabTypes").IN_REVIEW:d=[l.PRODUCT_NAME,l.STATUS,l.POLICY,l.CHANNEL,l.LAST_REVIEWED];break;case c("AccountQualityTabTypes").REVERSED:d=[l.PRODUCT_NAME,l.STATUS,l.CHANNEL,l.LAST_REVIEWED];break;case c("AccountQualityTabTypes").UNCHANGED:d=[l.PRODUCT_NAME,l.STATUS,l.POLICY,l.CHANNEL,l.LAST_REVIEWED];break}break;case c("AccountQualityCommerceEntityTypes").COMMERCE_UGC:switch(a){case c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW:d=[l.CONTENT,l.STATUS,l.POLICY,l.CONTENT_TYPE,l.LAST_REVIEWED,l.ACTIONS];break;case c("AccountQualityTabTypes").IN_REVIEW:d=[l.CONTENT,l.STATUS,l.POLICY,l.CONTENT_TYPE,l.LAST_REVIEWED,l.ACTIONS];break;case c("AccountQualityTabTypes").REVERSED:d=[l.CONTENT,l.STATUS,l.CONTENT_TYPE,l.LAST_REVIEWED,l.ACTIONS];break;case c("AccountQualityTabTypes").UNCHANGED:d=[l.CONTENT,l.STATUS,l.POLICY,l.CONTENT_TYPE,l.LAST_REVIEWED,l.ACTIONS];break}break;case c("AccountQualityCommerceEntityTypes").COLLECTIONS:switch(a){case c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW:d=[l.COLLECTION_NAME,l.STATUS,l.POLICY,l.LAST_REVIEWED];break;case c("AccountQualityTabTypes").IN_REVIEW:d=[l.COLLECTION_NAME,l.STATUS,l.POLICY,l.LAST_REVIEWED];break;case c("AccountQualityTabTypes").REVERSED:d=[l.COLLECTION_NAME,l.STATUS,l.LAST_REVIEWED];break;case c("AccountQualityTabTypes").UNCHANGED:d=[l.COLLECTION_NAME,l.STATUS,l.POLICY,l.LAST_REVIEWED];break}break;case c("AccountQualityCommerceEntityTypes").SHOPS:switch(a){case c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW:d=[l.SHOP_NAME,l.STATUS,l.POLICY,l.SHOP_CHANNEL];break;case c("AccountQualityTabTypes").IN_REVIEW:d=[l.SHOP_NAME,l.STATUS,l.POLICY,l.SHOP_CHANNEL];break;case c("AccountQualityTabTypes").REVERSED:d=[l.SHOP_NAME,l.STATUS,l.SHOP_CHANNEL];break;case c("AccountQualityTabTypes").UNCHANGED:d=[l.SHOP_NAME,l.STATUS,l.POLICY,l.SHOP_CHANNEL];break}break;case c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES:switch(a){case c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW:d=[l.LAUNCH_ITEM_NAME,l.LAUNCH_DATE,l.LAUNCH_ITEM_STATUS,l.POLICY,l.CHANNEL,l.LAST_REVIEWED];break;case c("AccountQualityTabTypes").IN_REVIEW:d=[l.LAUNCH_ITEM_NAME,l.LAUNCH_DATE,l.LAUNCH_ITEM_STATUS,l.POLICY,l.CHANNEL,l.LAST_REVIEWED];break;case c("AccountQualityTabTypes").REVERSED:d=[l.LAUNCH_ITEM_NAME,l.LAUNCH_DATE,l.LAUNCH_ITEM_STATUS,l.CHANNEL,l.LAST_REVIEWED];break;case c("AccountQualityTabTypes").UNCHANGED:d=[l.LAUNCH_ITEM_NAME,l.LAUNCH_DATE,l.LAUNCH_ITEM_STATUS,l.POLICY,l.CHANNEL,l.LAST_REVIEWED];break}break;case c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY:switch(a){case c("AccountQualityTabTypes").AVAILABLE_FOR_ANOTHER_REVIEW:d=[l.PRODUCT_EFFECT_NAME,l.STATUS,l.POLICY,l.CHANNEL,l.LAST_REVIEWED];break;case c("AccountQualityTabTypes").IN_REVIEW:d=[l.PRODUCT_EFFECT_NAME,l.STATUS,l.POLICY,l.CHANNEL,l.LAST_REVIEWED];break;case c("AccountQualityTabTypes").REVERSED:d=[l.PRODUCT_EFFECT_NAME,l.STATUS,l.CHANNEL,l.LAST_REVIEWED];break;case c("AccountQualityTabTypes").UNCHANGED:d=[l.PRODUCT_EFFECT_NAME,l.STATUS,l.POLICY,l.CHANNEL,l.LAST_REVIEWED];break}break}return d};var m=function(a,b,c){switch(a){case l.COLLECTION_NAME:case l.PRODUCT_NAME:case l.SHOP_NAME:case l.PRODUCT_EFFECT_NAME:return n;case l.LAUNCH_ITEM_NAME:return o;case l.STATUS:return p;case l.LAUNCH_ITEM_STATUS:return q;case l.POLICY:return r;case l.PROMOTED:return s;case l.CHANNEL:return t;case l.PRODUCTS:return u;case l.LAST_REVIEWED:return v;case l.SHOP_CHANNEL:return w;case l.VIOLATING_SECTION:return A;case l.LAUNCH_DATE:return function(a){return B(a,b)};case l.CONTENT:return x;case l.ACTIONS:return function(a){return y(a,c)};case l.CONTENT_TYPE:return z}return n},n=function(a){return k.jsx(c("AccountQualityCommerceNameCell.react"),{item:a.item})},o=function(a){return k.jsx(c("AccountQualityCommerceLaunchItemNameCell.react"),{item:a.item})},p=function(a){return k.jsx(c("AccountQualityCommerceStatusCell.react"),{item:a.item})},q=function(a){return k.jsx(c("AccountQualityCommerceLaunchItemStatusCell.react"),{item:a.item})},r=function(a){return k.jsx(c("AccountQualityCommercePolicyLinkCell.react"),{item:a.item})},s=function(a){return k.jsx(k.Fragment,{children:a.item.promotion})},t=function(a){return k.jsx(c("AccountQualityCommerceChannelCell.react"),{item:a.item})},u=function(a){return k.jsx(k.Fragment,{children:a.item.productCount})},v=function(a){return k.jsx(c("AccountQualityCommerceLastReviewedCell.react"),{item:a.item})},w=function(a){return k.jsx(c("AccountQualityCommerceShopChannelCell.react"),{item:a.item})},x=function(a){return k.jsx(c("AccountQualityCommerceContentCell.react"),{item:a.item})},y=function(a,b){return k.jsx(c("AccountQualityCommerceActionsCell.react"),{commerceAccountID:b,item:a.item})},z=function(a){return k.jsx(c("AccountQualityCommerceContentTypeCell.react"),{item:a.item})},A=function(a){return k.jsx(k.Fragment,{children:d("AccountQualityCommerceAccountAndCatalogStrings").getViolatingSectionLabel(a.item.violatingSection,a.item.violatingSectionSource)})};function B(a,b){return k.jsx(c("AccountQualityCommerceLaunchDateCell.react"),{item:a.item,selectedTab:b})}B.displayName=B.name+" [from "+f.id+"]";f=function(a,b,c){a=[].concat(a);switch(b){case l.PRODUCTS:a.sort(function(a,b){a=a.productCount!=null?a.productCount:-1;b=b.productCount!=null?b.productCount:-1;return a>b?1:-1});break;case l.STATUS:case l.LAUNCH_ITEM_STATUS:a.sort(function(a,b){return C(a.status)>C(b.status)?1:-1});break;default:a.sort(function(a,d){var e=null,f=null,g=null,h,i=null,j=null;switch(b){case l.PRODUCT_NAME:case l.COLLECTION_NAME:case l.SHOP_NAME:case l.LAUNCH_ITEM_NAME:case l.PRODUCT_EFFECT_NAME:e=a.name;f=d.name;break;case l.PROMOTED:e=a.promotion;f=d.promotion;break;case l.POLICY:g=a.channels!=null?a.channels.reduce(function(a,b){return a.concat(b.policyIssues)},[]):a.policyIssues||[];h=d.channels!=null?d.channels.reduce(function(a,b){return a.concat(b.policyIssues)},[]):d.policyIssues||[];e=g!=null&&g.length>0?g[0].policy_name:"";f=h!=null&&h.length>0?h[0].policy_name:"";break;case l.SHOP_CHANNEL:e=a.shopChannels!=null&&a.shopChannels.length>0?a.shopChannels[0]:null;f=d.shopChannels!=null&&d.shopChannels.length>0?d.shopChannels[0]:null;break;case l.CHANNEL:e=a.channels!=null&&a.channels.length>0?a.channels[0].capability:null;f=d.channels!=null&&d.channels.length>0?d.channels[0].capability:null;break;case l.LAST_REVIEWED:i=a.channels!=null?a.channels.map(function(a){return a.lastReviewed}):null;j=d.channels!=null?d.channels.map(function(a){return a.lastReviewed}):null;if(i!=null&&j!=null){i.sort(function(a,b){return a>b?1:-1});j.sort(function(a,b){return a>b?1:-1});c==="descending"&&(i.reverse(),j.reverse());return i[0]>j[0]?1:-1}e=a.lastReviewed;f=d.lastReviewed;break;case l.CONTENT:e=a.content;f=d.content;break;case l.CONTENT_TYPE:e=a.contentType;f=d.contentType;break}return e==null||f==null||e===f?0:e.toString().localeCompare(f.toString())});break}c==="descending"&&a.reverse();return a};var C=function(a){if(a==null)return 0;switch(a){case c("AccountQualityCommerceReviewStatusTypes").REJECTED:return 3;case c("AccountQualityCommerceReviewStatusTypes").PRODUCT_ISSUES:return 2;case c("AccountQualityCommerceReviewStatusTypes").IN_REVIEW:return 1;case c("AccountQualityCommerceReviewStatusTypes").APPROVED:return 0}return 0},D=function(a,b,d){b=b.flatMap(function(a){return[a].concat(a.collection?[a.collection]:[]).concat((a=a.products)!=null?a:[])}).reduce(function(b,e,f){if(e.commerceEntityType!==c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES&&a.has(d(e)))return b.set(f,e);else return b},c("immutable").Map());c("AccountQualityCommerceSetSelectedRowsAction").dispatch({rows:b},{line:"769",module:"AccountQualityHubCommerceReviewTableUtils.js"})};function a(a,b){var c=new Set([b(a)]);a.collection!=null&&c.add(b(a.collection));a.products!=null&&a.products.forEach(function(a){return c.add(b(a))});return c}function b(a,b,d,e){e=new Set([e(a)]);if(a.siblingRowIDs==null||a.parentRowID==null)return e;var f=a.siblingRowIDs;a=a.parentRowID;if(b){b=c("unionSets")(d,e);c("intersectSets")(b,f).size===f.size&&e.add(a)}else e.add(a);return e}g.TableColumns=l;g.relativeColumnWeights=e;g.columnHeaderLabels=i;g.tableAccessibilityLabel=h;g.getTableColumnsForView=j;g.getCellRenderer=m;g.sortRows=f;g.onSelectedItems=D;g.getChildrenItemIDs=a;g.getParentItemIDs=b}),98);
-----
AccountQualityCommercePolicyLinkCell.react",["AccountQualityCommerceAccountAndCatalogStrings","AccountQualityCommerceEntityTypes","AccountQualityCommercePolicyLinkToolTip.react","AccountQualityLogger","AccountQualityStrings","CatalogItemChannelsToIntegrityInfoType","GeoBaseText.react","GeoFlexbox.react","GeoPopover.react","UnifiedIntegrityPolicyPageModalWrapper.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useMemo,k=b.useState;function a(a){var b=k(d("CatalogItemChannelsToIntegrityInfoType").ProductChannelEnum.COMMERCE),e=b[0],f=b[1];b=k(null);var g=b[0],m=b[1],n=j(function(){return l(a.item)},[a.item]);b=n.length==1?n[0].policy_name:d("AccountQualityStrings").policyCountText(n.length);var o=i(function(){d("AccountQualityLogger").logLinkClickAction("aq.l3.commerce.policy_modal_open",{displayed_objects:n.map(function(a){return a.policy_name}).join(", ")})},[n]),p=i(function(){d("AccountQualityLogger").logLinkClickAction("aq.l3.commerce.policy_modal_close",{displayed_objects:n.map(function(a){return a.policy_name}).join(", ")})},[n]),q=i(function(){d("AccountQualityLogger").logLinkClickAction("aq.l3.commerce.policy_link_mouse_over",{displayed_objects:n.map(function(a){return a.policy_name}).join(", ")})},[n]),r=i(function(){d("AccountQualityLogger").logLinkClickAction("aq.l3.commerce.policy_link_mouse_leave",{displayed_objects:n.map(function(a){return a.policy_name}).join(", ")})},[n]),s=i(function(a){a?q():r()},[q,r]),t=i(function(){m(null),p()},[p]),u=i(function(b,a){o(),f(a),m(b)},[o]);return n.length>0?h.jsxs(c("GeoFlexbox.react"),{children:[h.jsx(c("GeoBaseText.react"),{color:"value",display:"truncate",size:"value",children:b}),h.jsx(c("GeoPopover.react"),{content:h.jsx(c("AccountQualityCommercePolicyLinkToolTip.react"),{policyIssues:n,onPolicyIssueClick:u}),heading:"",isSticky:!1,position:"below",onToggle:s}),h.jsx(c("UnifiedIntegrityPolicyPageModalWrapper.react"),{disapprovalReasonName:g,domain:e,isShown:g!==null,onHide:t})]}):h.jsx(h.Fragment,{children:d("AccountQualityCommerceAccountAndCatalogStrings").noPolicyIssuesText()})}a.displayName=a.name+" [from "+f.id+"]";function l(a){var b=function(a){return a.channels!=null?a.channels.reduce(function(a,b){return a.concat(b.policyIssues)},[]):[]},d=function(a){return b(a).concat(a.policyIssues||[])},e=function(a){return(a.collection?d(a.collection):[]).concat(((a=a.products)!=null?a:[]).flatMap(d))};e=a.commerceEntityType===c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES?e(a):d(a);var f=new Set();return e.filter(function(a){if(a.policy_name==null||f.has(a.policy_name))return!1;f.add(a.policy_name);return!0})}g["default"]=a}),98);
-----
AccountQualityHubCommerceReviewTable.react",["fbt","AccountQualityCommerceDataProvider","AccountQualityCommerceEntityTypes","AccountQualityHubCommerceReviewTableUtils","AccountQualityHubFetchCommerceDataContainer.react","AccountQualityLogger","GeoFlexbox.react","GeoTable.react","GeoTableWidth","LaminarReactHooks","OnVisible.react","createGeoTableDataSource","differenceSets","react","unionSets","useBoolean","useGeoTableCustomRowRendering","useGeoTableRowExpansion","useGeoTableRowExpansionDataSource","useGeoTableRowSelection","useGeoTableRowSelectionState","useGeoTableSortableColumn_DEPRECATED","useGeoTableSortableState"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.Suspense,k=b.useCallback,l=b.useEffect,m=b.useMemo,n=b.useState,o=5,p={table:{width:"xh8yej3",$$css:!0}};function a(a){var b=a.getIDForItem,e=babelHelpers.objectWithoutPropertiesLoose(a,["getIDForItem"]),f=d("LaminarReactHooks").useProvider(c("AccountQualityCommerceDataProvider"));a=c("useBoolean")(!1);var g=a.value,h=a.setTrue;a=a.setFalse;var k=q(e.items,b),l=k[0],n=k[1];k=s(l,b);var u=k[0];k=k[1];var v=!f.items[f.selectedEntity][f.selectedTab].loadAttempted,w=m(function(){return e.tableColumns.map(function(a){return{key:a,cell:d("AccountQualityHubCommerceReviewTableUtils").getCellRenderer(a,f.selectedTab,e.commerceAccountID),width:d("GeoTableWidth").proportional(d("AccountQualityHubCommerceReviewTableUtils").relativeColumnWeights[a],{minWidth:120}),header:d("AccountQualityHubCommerceReviewTableUtils").columnHeaderLabels[a],features:{sortable:n.singleKey(a)}}})},[e.tableColumns,n,f.selectedTab,e.commerceAccountID]),x=t(e.tableColumns,f.selectedTab),y={};l=r(l,b,e.selectedItemIDs,e.setSelectedItemIDs,e.disabledItemIDs);e.isSelectable&&(y.selection=l);f.selectedEntity===c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES&&(y.expansion=k,y.customRowRendering=x);return i.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[i.jsx(c("GeoTable.react"),{columns:w,"data-testid":void 0,dataSource:u,label:d("AccountQualityHubCommerceReviewTableUtils").tableAccessibilityLabel[f.selectedEntity],pagination:{hasNext:!1,isLoadingNext:v,pageSize:v?o:e.items.length,loadNext:null},plugins:y,variant:"dense",xstyle:p.table}),i.jsx(j,{fallback:null,children:i.jsx(c("OnVisible.react"),{onHidden:a,onVisible:h,children:g||v?i.jsx(c("AccountQualityHubFetchCommerceDataContainer.react"),{}):i.jsx("div",{})})})]})}a.displayName=a.name+" [from "+f.id+"]";function q(a,b){var e=c("useGeoTableSortableState")({sortKey:null,direction:"descending"}),f=e[0];e=e[1];e=c("useGeoTableSortableColumn_DEPRECATED")({sort:f,setSort:e});l(function(){f&&f.sortKey?d("AccountQualityLogger").logMouseEventAction("aq.l3.commerce.sort_table",{entity:f.sortKey}):d("AccountQualityLogger").logMouseEventAction("aq.l3.commerce.sort_table")},[f]);var g=m(function(){return f!=null?d("AccountQualityHubCommerceReviewTableUtils").sortRows(a,f.sortKey,f.direction):a},[f,a]),h=m(function(){return c("createGeoTableDataSource")(g,{getStableUniqueID:b})},[g,b]);return[h,e]}function r(a,b,e,f,g){a=c("useGeoTableRowSelectionState")({dataSource:a,getIDForItem:b,selectedItemIDs:e,setSelectedItemIDs:f});var i=a.onSelectAll;a.onSelectItem;a=a.getAllSelected;var j=k(function(a){var g=a.item;a=a.isSelected;var h=g.commerceEntityType===c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES?d("AccountQualityHubCommerceReviewTableUtils").getChildrenItemIDs(g,b):d("AccountQualityHubCommerceReviewTableUtils").getParentItemIDs(g,a,e,b);if(g.commerceEntityType===c("AccountQualityCommerceEntityTypes").COMMERCE_UGC)f(a?h:new Set());else{var i=a?c("unionSets"):c("differenceSets");f(function(a){return i(a,h)})}},[b,e,f]),l=k(function(a){a.isAllSelected;return h._("u5168u9009")},[]),m=k(function(a){a.isSelected;a.item;return h._("u9009u62e9u884c")},[]);return c("useGeoTableRowSelection")({"data-select-all-testid":"table-select-all-checkbox",getAllSelected:a,selectedItemIDs:e,onSelectAll:i,onSelectItem:j,getIDForItem:b,getSelectAllLabel:l,getSelectLabel:m,getIsItemEnabled:function(a){return!g.has(b(a))},getIsAllSelectable:function(){return!1}})}function s(a,b){var d=n(new Set()),e=d[0];d=d[1];var f=k(function(a){var c=a.item;a=(c.collection?[c.collection]:[]).concat((a=c.products)!=null?a:[]);var d=new Set(a.map(b));return a.map(function(a){return babelHelpers["extends"]({},a,{siblingRowIDs:d,parentRowID:b(c)})})},[b]),g=k(function(a){a=a.item;return a.commerceEntityType===c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES},[]);a=c("useGeoTableRowExpansionDataSource")({baseDataSource:a,getChildren:f,getIDForItem:b,expandedItemIDs:e});f=k(function(a){a.item;a=a.isExpanded;return a?"Collapse":"Expand"},[]);e=c("useGeoTableRowExpansion")({expandedItemIDs:e,setExpandedItemIDs:d,getLabel:f,getIsItemExpandable:g,getIDForItem:b});return[a,e]}function t(a,b){var e=m(function(){return a.reduce(function(a,c){a[c]=d("AccountQualityHubCommerceReviewTableUtils").getCellRenderer(c,b);return a},{})},[a,b]),f=m(function(){return a.reduce(function(a,c){c===d("AccountQualityHubCommerceReviewTableUtils").TableColumns.LAUNCH_ITEM_NAME?a[c]={render:d("AccountQualityHubCommerceReviewTableUtils").getCellRenderer(c,b),allowSpan:!0}:c!==d("AccountQualityHubCommerceReviewTableUtils").TableColumns.LAUNCH_DATE&&(a[c]=d("AccountQualityHubCommerceReviewTableUtils").getCellRenderer(c,b));return a},{})},[a,b]);return c("useGeoTableCustomRowRendering")({render:k(function(a){a=a.item;if(a.commerceEntityType===c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES||a.commerceEntityType===c("AccountQualityCommerceEntityTypes").PRODUCTS&&a.launchDate!=null)return e;else return f},[f,e])})}e=d("LaminarReactHooks").laminarContainer(a,null,{containerName:f.id});g["default"]=e}),98);
-----
AccountQualityHubCommerceCapabilityFilter.react",["fbt","AccountQualityCommerceDataProvider","AccountQualityCommerceEntityTypes","AccountQualityCommerceSetCapabilityFilterAction","AccountQualityHubCommerceAccountAndCatalogUtils","AccountQualityLogger","CatalogItemCapabilityToDomain","CatalogUnifiedB2CStrings","GeoFlexbox.react","GeoMultiSelector.react","GeoMultiSelectorItem.react","GeoText.react","Image.react","LaminarReactHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useCallback,k=b.useEffect,l=b.useMemo,m=b.useState,n={label_text:{width:"xrostsh",marginEnd:"x1emribx",$$css:!0}};function a(){var a=d("LaminarReactHooks").useProvider(c("AccountQualityCommerceDataProvider")),b=m([]),e=b[0],f=b[1];k(function(){var b=new Set();a.capabilityFilters.forEach(function(a){b.add(c("CatalogItemCapabilityToDomain")[a.toLowerCase()])});f(Array.from(b.values()))},[a.capabilityFilters]);var g=a.items[a.selectedEntity][a.selectedTab].capabilities,o=l(function(){return d("AccountQualityHubCommerceAccountAndCatalogUtils").getChannelsToCapabilityMap(g)},[g]),p=j(function(a){c("AccountQualityCommerceSetCapabilityFilterAction").dispatch({capabilities:a},{line:"73",module:"AccountQualityHubCommerceCapabilityFilter.react.js"}),d("AccountQualityLogger").logMouseEventAction("aq.l3.commerce.filter_table_event",{entity:a.join(", ")})},[]);b=j(function(b){f(b);var a=[];b.forEach(function(b){return o.has(b)?a.push.apply(a,(b=o.get(b))!=null?b:[]):null});p(a)},[o,p]);if(a.selectedEntity!=c("AccountQualityCommerceEntityTypes").PRODUCTS)return null;if(g==null||g.length==0)return null;var q=h._("u6240u6709u6e20u9053"),r=Array.from(o.keys(),function(a){return i.jsx(c("GeoMultiSelectorItem.react"),{label:d("CatalogUnifiedB2CStrings").getChannelLabel(a),media:i.jsx(c("Image.react"),{src:d("CatalogUnifiedB2CStrings").getChannelIcon(a)}),value:a},a)});return i.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"row",children:[i.jsx(c("GeoText.react"),{textAlign:"end",xstyle:n.label_text,children:h._("u7b5bu9009u6761u4ef6uff1a")}),i.jsx(c("GeoMultiSelector.react"),{isLabelHidden:!0,label:q,placeholder:q,value:e,onChange:b,children:r.filter(function(a){return a!=null})})]})}a.displayName=a.name+" [from "+f.id+"]";e=d("LaminarReactHooks").laminarContainer(a,null,{containerName:f.id});g["default"]=e}),98);
-----
AccountQualityCommerceLaunchItemStatusCell.react",["AccountQualityCommerceAccountAndCatalogStrings","AccountQualityCommerceEntityTypes","GeoFlexbox.react","GeoText.react","Image.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={statusImage:{marginStart:"x1orzsq4",$$css:!0}};function a(a){a=a.item;return h.jsxs(c("GeoFlexbox.react"),{direction:"row",children:[h.jsx(c("GeoFlexbox.react"),{xstyle:i.statusImage,children:h.jsx(c("Image.react"),{src:d("AccountQualityCommerceAccountAndCatalogStrings").getStatusImage(a.status)})}),h.jsx(c("GeoText.react"),{display:"truncate",children:j(a)})]})}a.displayName=a.name+" [from "+f.id+"]";function j(a){return a.commerceEntityType===c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES?d("AccountQualityCommerceAccountAndCatalogStrings").getLaunchItemStatusLabel(a.status,k(a)):d("AccountQualityCommerceAccountAndCatalogStrings").getStatusLabel(a.status)}function k(a){return(a.collection?[a.collection]:[]).concat((a=a.products)!=null?a:[]).length}g["default"]=a}),98);
-----
AccountQualityHubCommerceContentTypeFilter.react",["fbt","AccountQualityCommerceDataProvider","AccountQualityCommerceEntityTypes","AccountQualityCommerceSetContentTypeFilterAction","AccountQualityLogger","CatalogUnifiedB2CStrings","GeoFlexbox.react","GeoMultiSelector.react","GeoMultiSelectorItem.react","GeoText.react","LaminarReactHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useCallback,k=b.useEffect,l=b.useState;function a(){var a=d("LaminarReactHooks").useProvider(c("AccountQualityCommerceDataProvider")),b=l([]),e=b[0],f=b[1];k(function(){f(Array.from(a.contentTypeFilters))},[a.contentTypeFilters]);b=a.items[a.selectedEntity][a.selectedTab].contentTypes;var g=j(function(a){f(a),c("AccountQualityCommerceSetContentTypeFilterAction").dispatch({contentTypes:Array.from(a)},{line:"54",module:"AccountQualityHubCommerceContentTypeFilter.react.js"}),d("AccountQualityLogger").logMouseEventAction("aq.l3.commerce.filter_table_event",{entity:a.join(", ")})},[]);if(a.selectedEntity!==c("AccountQualityCommerceEntityTypes").COMMERCE_UGC)return null;if(b==null||b.length===0)return null;var m=h._("u6240u6709u7c7bu578b");b=Array.from(b,function(a){if(a!=null)return i.jsx(c("GeoMultiSelectorItem.react"),{label:d("CatalogUnifiedB2CStrings").getContentTypeLabel(a),value:a},a)});return i.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"row",children:[i.jsx("div",{className:"x1dmp6jm x1emribx",children:i.jsx(c("GeoText.react"),{textAlign:"end",children:h._("u7b5bu9009u6761u4ef6uff1a")})}),i.jsx(c("GeoMultiSelector.react"),{isLabelHidden:!0,label:m,placeholder:m,value:e,onChange:g,children:b.filter(function(a){return a!=null})})]})}a.displayName=a.name+" [from "+f.id+"]";e=d("LaminarReactHooks").laminarContainer(a,null,{containerName:f.id});g["default"]=e}),98);
-----
AccountQualityHubFetchCommerceDataContainer.react",["AccountQualityCommerceDataProvider","AccountQualityCommerceDataQuery","AccountQualityCommerceEntityTypes","AccountQualityCommerceUpdateCursorAction","AccountQualityHubCommerceAccountAndCatalogConstants","AccountQualityHubCommerceAccountAndCatalogUtils","AccountQualityHubFetchCommerceDataContainerQuery.graphql","LaminarReactHooks","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h;d("react");var i=d("react").useEffect,j=100;function a(){var a,e=d("LaminarReactHooks").useProvider(c("AccountQualityCommerceDataProvider")),f=e.selectedEntity,g=e.selectedTab,k=e.items!=null&&e.items[e.selectedEntity]!=null?e.items[e.selectedEntity][e.selectedTab].cursor:null;a=f===c("AccountQualityCommerceEntityTypes").PRODUCTS||f===c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY?(a=e.catalogID)!=null?a:"":(a=e.commerceAccountID)!=null?a:"";d("AccountQualityHubCommerceAccountAndCatalogUtils").useProductCatalogLimits(e.appealLimitsFetchKey,e.catalogID);var l=d("AccountQualityHubCommerceAccountAndCatalogUtils").getStatusesFromTab(g);e=h!==void 0?h:h=b("AccountQualityHubFetchCommerceDataContainerQuery.graphql");var m=Array.from(d("AccountQualityHubCommerceAccountAndCatalogConstants").CAPABILITIES_SUPPORTED_IN_AQ).map(function(a){var b;return b={},b["capability_review_status."+a.toLowerCase()]={eq:l[0]},b}),n=d("RelayHooks").useLazyLoadQuery(e,{count:j,id:a,cursor:k,filter:JSON.stringify({or:m})},{fetchPolicy:"network-only"}),o=null;switch(f){case c("AccountQualityCommerceEntityTypes").COLLECTIONS:o=(e=n.commerceAccount)==null?void 0:(a=e.commerce_product_collections)==null?void 0:a.pageInfo;break;case c("AccountQualityCommerceEntityTypes").COMMERCE_UGC:o=null;break;case c("AccountQualityCommerceEntityTypes").PRODUCTS:o=(m=n.catalog)==null?void 0:(e=m.items)==null?void 0:e.pageInfo;break;case c("AccountQualityCommerceEntityTypes").SHOPS:o=(a=n.commerceAccount)==null?void 0:(m=a.shops)==null?void 0:m.pageInfo;break;case c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES:o=(e=n.commerceAccount)==null?void 0:(a=e.drop_campaigns)==null?void 0:a.pageInfo;break;case c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY:o=n==null?void 0:(m=n.ardata)==null?void 0:(e=m.items)==null?void 0:e.pageInfo;break}var p=f===c("AccountQualityCommerceEntityTypes").PRODUCTS?((a=o)==null?void 0:a.hasNextPage)===!0:((m=o)==null?void 0:m.endCursor)!==null;i(function(){var a;d("AccountQualityCommerceDataQuery").request((a=n.catalog)==null?void 0:(a=a.items)==null?void 0:a.nodes,(a=n.commerceAccount)==null?void 0:a.commerce_ugc,(a=n.commerceAccount)==null?void 0:(a=a.commerce_product_collections)==null?void 0:a.nodes,(a=n.commerceAccount)==null?void 0:(a=a.shops)==null?void 0:a.nodes,(a=n.commerceAccount)==null?void 0:(a=a.drop_campaigns)==null?void 0:a.nodes,n==null?void 0:(a=n.ardata)==null?void 0:(a=a.items)==null?void 0:a.nodes);if(p){c("AccountQualityCommerceUpdateCursorAction").dispatch({tab:g,entity:f,cursor:(a=o)==null?void 0:a.endCursor},{line:"184",module:"AccountQualityHubFetchCommerceDataContainer.react.js"})}},[n,o,f,g,p,k]);return null}a.displayName=a.name+" [from "+f.id+"]";e=d("LaminarReactHooks").laminarContainer(a,null,{containerName:f.id});g["default"]=e}),98);
-----
AccountQualityHubCommerceDropsLaunchDateFilter.react",["fbt","AccountQualityCommerceEntityTypes","AccountQualityHubCommerceAccountAndCatalogUtils","GeoFlexbox.react","GeoMultiSelector.react","GeoMultiSelectorItem.react","GeoText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j={label_text:{width:"xrostsh",marginEnd:"x1emribx",$$css:!0}};function a(a){return a.selectedEntity!==c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES?i.jsx(i.Fragment,{}):i.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"row",children:[i.jsx(c("GeoText.react"),{textAlign:"end",xstyle:j.label_text,children:h._("u7b5bu9009u6761u4ef6uff1a")}),i.jsx(c("GeoMultiSelector.react"),{isLabelHidden:!0,label:h._("All launches"),placeholder:h._("All launches"),value:a.launchDateFilter,onChange:a.setLaunchDateFilter,children:a.launchDateValues.map(function(a){return i.jsx(c("GeoMultiSelectorItem.react"),{label:d("AccountQualityHubCommerceAccountAndCatalogUtils").getDateStringFromUnix(a),value:a},a)})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AccountQualityHubCommerceAccountAndCatalogViewV2.react",["fbt","AccountQualityAppealWizard.react","AccountQualityAppealWizardUtils","AccountQualityClearCommerceDataAction","AccountQualityCommerceChangeEntityAction","AccountQualityCommerceEntityTypes","AccountQualityCommerceSetEntityIDsAction","AccountQualityDeliverySpeedLink.react","AccountQualityEntityTypes","AccountQualityHubActionBuilder","AccountQualityHubActionBullet.react","AccountQualityHubActionsV2.react","AccountQualityHubActorWycdCard.react","AccountQualityHubAepCommerceNotificationContainer.react","AccountQualityHubBusinessEmailVerificationBanner.react","AccountQualityHubBusinessVerificaionActionBullet.react","AccountQualityHubBusinessVerificaionBanner.react","AccountQualityHubBusinessVerificaionUtil","AccountQualityHubCommerceAccountAndCatalogUtils","AccountQualityHubCommerceAccountAndCatalogViewV2_BusinessDataFragment.graphql","AccountQualityHubCommerceAccountAndCatalogViewV2_CatalogFragment.graphql","AccountQualityHubCommerceAccountAndCatalogViewV2_CommerceAccountFragment.graphql","AccountQualityHubCommerceNotificationContainer.react","AccountQualityHubCommerceSidebar.react","AccountQualityHubDetailsV2.react","AccountQualityHubItemBuilder","AccountQualityHubProductTableContainer.react","AccountQualityInfo.react","AccountQualityViolationReasonListBuilder","BusinessIntegrityBanhammerUtils","CommerceIntegrityInfoUtils","GeoFlexbox.react","RelayHooks","SellerBIOnboardingUtils","SellerStateUtils.facebook","ShopsSellerActionsElementImpressionFalcoEvent","TextWithEntitiesRelay.react","URI","cr:955","geoMargin","gkx","react","useBoolean"],(function(a,b,c,d,e,f,g,aa){"use strict";var h,i,j,k=d("react");e=d("react");var ba=e.useCallback,l=e.useEffect,ca=h!==void 0?h:h=b("AccountQualityHubCommerceAccountAndCatalogViewV2_CommerceAccountFragment.graphql"),da=i!==void 0?i:i=b("AccountQualityHubCommerceAccountAndCatalogViewV2_CatalogFragment.graphql"),ea=j!==void 0?j:j=b("AccountQualityHubCommerceAccountAndCatalogViewV2_BusinessDataFragment.graphql"),m={root:{maxWidth:"x17wavz3",$$css:!0},wycdShownContainer:{width:"xh8yej3",$$css:!0},wycdShown:{minWidth:"x1vt72ud",$$css:!0},wycdAction:{marginStart:"x1d52u69",marginBottom:"x1yztbdb",$$css:!0}};function a(a){var e,f,g,h,i,j,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B=d("RelayHooks").useFragment(ca,a.commerceAccount),C=d("RelayHooks").useFragment(da,a.catalogInfo),D=(B==null?void 0:B.id)||(C==null?void 0:C.id),E=d("RelayHooks").useFragment(ea,a.businessData);e=(e=E==null?void 0:(e=E.business_user_email_verification_wrapper)==null?void 0:e.business_email)!=null?e:null;f=(f=E==null?void 0:(f=E.business_user_email_verification_wrapper)==null?void 0:f.business_persona_id)!=null?f:null;g=(g=E==null?void 0:(g=E.business_user_email_verification_wrapper)==null?void 0:g.show_business_email_verification_banner_on_aq)!=null?g:!1;h=(h=E==null?void 0:(h=E.business_user_email_verification_wrapper)==null?void 0:h.business_email_verification_banner_aq_title_text)!=null?h:null;i=(i=E==null?void 0:(i=E.business_user_email_verification_wrapper)==null?void 0:i.business_manager_settings_url)!=null?i:null;j=(j=E==null?void 0:(j=E.business_user_email_verification_wrapper)==null?void 0:j.business_email_verification_banner_aq_cta_text)!=null?j:null;n=(n=E==null?void 0:(n=E.business_user_email_verification_wrapper)==null?void 0:n.business_email_verification_modal_aq_title_text)!=null?n:null;o=(o=E==null?void 0:(o=E.business_user_email_verification_wrapper)==null?void 0:o.business_email_verification_modal_aq_cta_text)!=null?o:null;var F=(B==null?void 0:B.display_name)||(C==null?void 0:C.name);p=(B==null?void 0:(p=B.product_catalog)==null?void 0:p.id)||(C==null?void 0:C.id);var G=B==null?void 0:B.id,fa=Boolean(B==null?void 0:B.is_customer_feedback_feature_enabled);c("AccountQualityClearCommerceDataAction").dispatch({},{line:"279",module:"AccountQualityHubCommerceAccountAndCatalogViewV2.react.js"});c("AccountQualityCommerceSetEntityIDsAction").dispatch({commerceAccountID:G,catalogID:p},{line:"280",module:"AccountQualityHubCommerceAccountAndCatalogViewV2.react.js"});l(function(){a.commerceEntityType&&c("AccountQualityCommerceChangeEntityAction").dispatch({entity:a.commerceEntityType},{line:"286",module:"AccountQualityHubCommerceAccountAndCatalogViewV2.react.js"})},[a.commerceEntityType]);var H=c("useBoolean")(!1),I=H.value,J=H.setTrue;H=H.setFalse;var K=d("SellerStateUtils.facebook").toJSEnum(B==null?void 0:B.sellerState),L=B==null?void 0:B.cmsi;q=(q=B==null?void 0:(q=B.fed_inform_act_object_wrapper)==null?void 0:q.fed_inform_act_verification_state)!=null?q:null;r=(r=B==null?void 0:(r=B.fed_inform_act_object_wrapper)==null?void 0:r.fed_inform_act_aq_title)!=null?r:null;s=(s=B==null?void 0:(s=B.fed_inform_act_object_wrapper)==null?void 0:s.fed_inform_act_aq_description)!=null?s:null;t=(t=B==null?void 0:(t=B.fed_inform_act_object_wrapper)==null?void 0:t.fed_inform_act_aq_cta_text)!=null?t:null;u=(u=B==null?void 0:(u=B.fed_inform_act_object_wrapper)==null?void 0:u.fed_inform_act_violation_present)!=null?u:!1;v=(v=B==null?void 0:B.isOnboardedToCis)!=null?v:!1;w=(w=B==null?void 0:(w=B.fed_inform_act_object_wrapper)==null?void 0:w.fed_inform_act_verification_config)!=null?w:null;var M=L==null?void 0:L.cisi,N=d("AccountQualityAppealWizardUtils").getBIViolations(M),O=L==null?void 0:(L=L.onboardingEvaluation.find(function(a){return((a=a.signal)==null?void 0:a.toLowerCase())==="domain"}))==null?void 0:L.state;L=ba(function(){var a=new Map(),b=null;G!=null&&(b=d("SellerBIOnboardingUtils").getDomainMessageForAQ(G,O));b!=null&&a.set("domain_message",k.jsxs(k.Fragment,{children:[" ",b," "]}));(M==null?void 0:M.biViolationInfo)!=null&&(M==null?void 0:M.biViolationInfo.forEach(function(b){var d;b=b==null?void 0:(b=b.violation_description)==null?void 0:b.description;if(b==null)return;if(!a.has((d=b==null?void 0:b.text)!=null?d:"")){a.set((d=b==null?void 0:b.text)!=null?d:"",k.jsx(c("TextWithEntitiesRelay.react"),{textWithEntities:b}))}}));return Array.from(a.values())},[M==null?void 0:M.biViolationInfo,G,O]);var P=B==null?void 0:(x=B.page)==null?void 0:x.id;l(function(){if(P!=null){var a=c("URI").getRequestURI().getQueryData().source;c("ShopsSellerActionsElementImpressionFalcoEvent").log(function(){return{referral_code:String(a),referral_surface:"",surface:"account_quality",page_id:P,ui_component:"account_quality_commerce_view"}})}},[P]);x=(M==null?void 0:M.isSellerExperiencePlatformEnabled)===!0;var Q=!1,R=E==null?void 0:E.business_integrity_commerce_enforcement_status;if((R==null?void 0:R.is_enabled)===!0){var S,T=R==null?void 0:R.warning_start_date,U=R==null?void 0:R.commerce_banhammer_info;R=R==null?void 0:R.commerce_warning_info;S=d("BusinessIntegrityBanhammerUtils").BusinessIntegrityBanhammerUtils.fetchCardDetailsForAqL3WycdPlatformization((S=D)!=null?S:"",U.length>0,R.length>0,T);Q=!0}else{S=d("BusinessIntegrityBanhammerUtils").BusinessIntegrityBanhammerUtils.fetchCardDetailsForAqL3Wycd((U=D)!=null?U:"",E==null?void 0:(R=E.business_integrity_account_status)==null?void 0:R.integrity_account_banhammer_status,E==null?void 0:(T=E.business_integrity_account_status)==null?void 0:T.warning_start_date_ts,E==null?void 0:(U=E.business_integrity_status_info)==null?void 0:U.decision,E==null?void 0:(R=E.business_integrity_status_info)==null?void 0:R.has_open_appeal_case)}R=(U=(T=S)==null?void 0:T.showContent)!=null?U:!1;T=(U=(T=S)==null?void 0:T.cardContent)!=null?U:"";U=(U=(U=S)==null?void 0:U.buttonText)!=null?U:"";y=(y=(y=S)==null?void 0:y.buttonUrl)!=null?y:"";z=(z=S)==null?void 0:z.accountMessage;A=(A=S)==null?void 0:A.isRestricted;S=(S=S)==null?void 0:S.nearRestriction;var V=d("CommerceIntegrityInfoUtils").getAppealInfo(M==null?void 0:M.bi_multi_appeal_case),W=d("CommerceIntegrityInfoUtils").isAppealOnHold(V);L=L();V=d("CommerceIntegrityInfoUtils").isAppealPending(V);var X=d("SellerBIOnboardingUtils").fetchWYCDInfoForAQL3UsingCIS(c("gkx")("2001247")||c("gkx")("4103"),W);u=u&&v;v=d("SellerBIOnboardingUtils").fetchExtraActionInfo(B);var Y=d("SellerBIOnboardingUtils").hasPageGroupDemonetizationOnly(B);if(G!=null){var Z;Z=(M==null?void 0:(Z=M.enforcementInfo)==null?void 0:Z.start_date)!==""?M==null?void 0:(Z=M.enforcementInfo)==null?void 0:Z.start_date:null;K=d("SellerBIOnboardingUtils").getAccountMessageFromSellerState(K,G,Z);z=K!==""?K:z;A=d("AccountQualityHubCommerceAccountAndCatalogUtils").isSellerRestricted(B==null?void 0:B.sellerState)?!0:A;S=d("AccountQualityHubCommerceAccountAndCatalogUtils").isSellerNearRestriction(B==null?void 0:B.sellerState)?!0:A?!1:S}Z=null;K=null;var ga=null,$=!1;if(X.showCard&&M!=null){R=A||S||R;Q=!0;$=!0;K=Y?null:k.jsx(c("AccountQualityHubActionBullet.react"),{actionDescription:X.topActionContent,asset:d("AccountQualityHubActionBuilder").actionAssets.requestReview(),buttonLabel:(Y=X.buttonText)!=null?Y:"",disabled:V||M.isEligible!==!0&&!W||N==null||N.length===0,entityType:c("AccountQualityEntityTypes").COMMERCE_ACCOUNT,primary:!0,restrictionType:a.restrictionType,onClick:J});ga=N!=null?k.jsx(c("AccountQualityAppealWizard.react"),{biViolations:N,isMultiAppealCaseOnHold:W,isShown:I,multiAppealableEntityID:M.id,onHide:H}):null}else K=k.jsx(c("AccountQualityHubActionBullet.react"),{actionDescription:T,asset:d("AccountQualityHubActionBuilder").actionAssets.requestReview(),buttonLabel:U,entityType:c("AccountQualityEntityTypes").COMMERCE_ACCOUNT,inAppUri:"/"+y,primary:!0,restrictionType:a.restrictionType});if(v!=null){I=B==null?void 0:(X=B.store)==null?void 0:(Y=X.page)==null?void 0:(V=Y.page_groups)==null?void 0:(J=V.edges)==null?void 0:(N=J[0])==null?void 0:(W=N.node)==null?void 0:W.group_quality_url;if(I!=null){H=new(c("URI"))(I);T=K==null;Z=k.jsx(c("AccountQualityHubActionBullet.react"),{actionDescription:v.topActionContent,asset:d("AccountQualityHubActionBuilder").actionAssets.badgeModerator(),buttonLabel:(U=v.buttonText)!=null?U:"",entityType:c("AccountQualityEntityTypes").COMMERCE_ACCOUNT,outOfAppUri:H,primary:T,restrictionType:a.restrictionType})}}y=S===!1&&!$?d("AccountQualityHubItemBuilder").buildRestrictionList(c("AccountQualityEntityTypes").COMMERCE_ACCOUNT):[];X=S===!1&&!$?d("AccountQualityHubItemBuilder").buildDisabledAssetList(c("AccountQualityEntityTypes").COMMERCE_ACCOUNT):[];Y=(B==null?void 0:B.is_cms_level_survey_lag_available)===!1?k.jsx(c("AccountQualityDeliverySpeedLink.react"),{entityID:a.entityID,ownerID:D}):null;V=null;u&&t!=null&&(z=aa._("To comply with applicable laws and regulations, we have restricted your unverified account."),V=d("AccountQualityHubBusinessVerificaionUtil").canShowWYCD(q)?k.jsx(c("AccountQualityHubBusinessVerificaionActionBullet.react"),{ctaText:t,fedInformActVerificationConfig:w,fedInformActVerificationState:q,orgId:G}):null,V!==null&&K!=null&&(Z=K));W=x?k.jsx(c("AccountQualityHubActorWycdCard.react"),{entityId:a.entityID,entityType:c("AccountQualityEntityTypes").COMMERCE_ACCOUNT,multiAppealableEntity:M,multiAppealableEntityId:(J=M==null?void 0:M.id)!=null?J:"",restrictionType:a.restrictionType}):k.jsx(c("AccountQualityHubActionsV2.react"),{entityType:c("AccountQualityEntityTypes").COMMERCE_ACCOUNT,extraAction:Z,hideOverview:Q,restrictionType:a.restrictionType,topAction:(N=V)!=null?N:K});H=k.jsx(c("AccountQualityHubDetailsV2.react"),{disabledAssetList:X,entityId:a.entityID,entityName:F,entityType:c("AccountQualityEntityTypes").COMMERCE_ACCOUNT,isRestricted:(I=A)!=null?I:!1,isSellerExperiencePlatformEnabled:x,message:(v=z)!=null?v:"",multiAppealableEntity:M,restrictionDate:E==null?void 0:(U=E.business_integrity_account_status)==null?void 0:U.warning_start_date_ts,restrictionList:y,restrictionStatus:S===!0?"WILL_BE_RESTRICTED":"VANILLA_RESTRICTED",restrictionType:null,violationReasonList:d("AccountQualityViolationReasonListBuilder").buildCISViolationReasonList(L)});T=R||u?k.jsxs(c("GeoFlexbox.react"),{alignContent:"stretch",direction:"row",xstyle:m.wycdShownContainer,children:[k.jsx(c("GeoFlexbox.react"),{alignContent:"stretch",xstyle:m.wycdShown,children:H}),k.jsx(c("GeoFlexbox.react"),{alignItems:"start",justifyContent:"end",xstyle:m.wycdAction,children:W})]}):k.jsx(c("AccountQualityInfo.react"),{entityID:a.entityID,entityName:F,entityType:a.entityType,noticeComponent:Y});$=[];p!=null&&$.push(c("AccountQualityCommerceEntityTypes").PRODUCTS);G!=null&&(fa&&$.push(c("AccountQualityCommerceEntityTypes").COMMERCE_UGC),$.push(c("AccountQualityCommerceEntityTypes").SHOPS));Boolean(B==null?void 0:(D=B.commerce_features)==null?void 0:D.is_drops_tab_enabled)&&($=d("AccountQualityHubCommerceAccountAndCatalogUtils").addDropsFilteredViewEntities($));(C==null?void 0:(J=C.capability_features)==null?void 0:J.includes("AUGMENTED_REALITY"))&&c("gkx")("4003")&&$.push(c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY);Z=A!==!0||S===!0||S===void 0?k.jsxs(c("GeoFlexbox.react"),{direction:"row",xstyle:c("geoMargin").top16,children:[k.jsx(c("AccountQualityHubCommerceSidebar.react"),{entities:$}),k.jsx(c("AccountQualityHubProductTableContainer.react"),{catalogID:p,commerceAccountID:G,launchStartDate:a.launchStartDate})]}):null;Q=t!=null&&s!=null&&r!=null;V=g&&e!=null&&i!=null&&f!=null&&n!=null&&o!=null&&j!=null&&h!=null;return k.jsxs(c("GeoFlexbox.react"),{"data-testid":void 0,direction:"column",xstyle:m.root,children:[b("cr:955")!=null?k.jsx(b("cr:955"),{commerceAccountID:G}):null,k.jsx(c("AccountQualityHubCommerceNotificationContainer.react"),{}),k.jsx(c("AccountQualityHubAepCommerceNotificationContainer.react"),{multiAppealableEntity:M}),V===!0&&o!==null&&n!==null?k.jsx(c("AccountQualityHubBusinessEmailVerificationBanner.react"),{businessManagerSettingsUrl:i,ctaModalText:o,ctaText:j,modalHeaderText:n,pendingBusinessEmail:e,personaId:f,title:h}):null,Q===!0?k.jsx(c("AccountQualityHubBusinessVerificaionBanner.react"),{ctaText:t,description:s,fedInformActVerificationConfig:w,fedInformActVerificationState:q,isBVCISEnforcedSeller:u,orgId:G,title:r}):null,ga,T,Z]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AccountQualityCommerceChannelCell.react",["ix","AccountQualityCommerceAccountAndCatalogStrings","AccountQualityCommerceEntityTypes","AccountQualityHubCommerceAccountAndCatalogUtils","GeoBaseText.react","GeoFlexbox.react","GeoTooltip.react","Image.react","distinctArrayBy","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useMemo,k={imageContainer:{marginStart:"xsgj6o6",marginTop:"x1gslohp",$$css:!0}};function a(a){var b=j(function(){var b=function(a){return(a==null?void 0:a.channels)||[]};if(a.item.commerceEntityType===c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES){var d;return c("distinctArrayBy")(b(a.item.collection).concat(((d=a.item.products)!=null?d:[]).flatMap(b)),function(a){return a.capability})}else return b(a.item)},[a.item]),e=b.map(function(a){return d("AccountQualityCommerceAccountAndCatalogStrings").getCapabilityLabel(a.capability)}).filter(function(a){return a}).join(", "),f=j(function(){return d("AccountQualityHubCommerceAccountAndCatalogUtils").getChannelsToCapabilityMap(b.map(function(a){return a.capability}))},[b]);f=Array.from(f.keys());f=i.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[i.jsxs(c("GeoFlexbox.react"),{direction:"row",children:[i.jsx(c("GeoFlexbox.react"),{children:i.jsx(c("GeoBaseText.react"),{color:"value",display:"block",size:"value",children:d("AccountQualityCommerceAccountAndCatalogStrings").getChannelLabel(f)})}),i.jsx(c("GeoFlexbox.react"),{xstyle:k.imageContainer,children:i.jsx(c("Image.react"),{src:h("485955")})})]}),i.jsx(c("GeoFlexbox.react"),{children:i.jsx(c("GeoBaseText.react"),{color:"value",display:"block",isDisabled:!0,size:"accent",children:d("AccountQualityCommerceAccountAndCatalogStrings").getNumChannelsLabel(b.length)})})]});return b.length===0?i.jsx(i.Fragment,{}):i.jsx(c("GeoTooltip.react"),{content:e,children:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AccountQualityCommerceUpdateCursorReducerPlugin",["AccountQualityCommerceEntityTypes","AccountQualityTabTypes"],(function(a,b,c,d,e,f,g){"use strict";a={reduce:function(a,b){var d=babelHelpers["extends"]({},a.items);b.entity===c("AccountQualityCommerceEntityTypes").PRODUCTS?d[b.entity][b.tab].cursor=b.cursor:Object.keys(c("AccountQualityTabTypes")).forEach(function(a){a=c("AccountQualityTabTypes")[a];d[b.entity][a].cursor=b.cursor});return babelHelpers["extends"]({},a,{items:d})}};b=a;g["default"]=b}),98);
-----
AccountQualityCommerceDataRetrievalCompleteReducerPlugin",["AccountQualityCommerceEntityTypes"],(function(a,b,c,d,e,f,g){"use strict";a={reduce:function(a,b){var d={};[c("AccountQualityCommerceEntityTypes").PRODUCTS,c("AccountQualityCommerceEntityTypes").COMMERCE_UGC,c("AccountQualityCommerceEntityTypes").COLLECTIONS,c("AccountQualityCommerceEntityTypes").SHOPS,c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES,c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY].forEach(function(e){var f={};Object.keys(b[e]).forEach(function(d){var g=a.items[e][d].rows;(b[e][d].rows||[]).forEach(function(a){g.set(a.id,a)});f[d]=babelHelpers["extends"]({},f[d],{rows:g,cursor:a.items[e][d].cursor,count:a.items[e][d].count});if(e===c("AccountQualityCommerceEntityTypes").PRODUCTS){var h=a.items[e][d].capabilities||[];h=Array.from(new Set(h.concat(b[e][d].capabilities||[])));f[d]=babelHelpers["extends"]({},f[d],{rows:g,capabilities:h,cursor:a.items[e][d].cursor,count:a.items[e][d].count})}else if(e===c("AccountQualityCommerceEntityTypes").COMMERCE_UGC){h=a.items[e][d].contentTypes||[];h=Array.from(new Set(h.concat(b[e][d].contentTypes||[])));f[d]=babelHelpers["extends"]({},f[d],{rows:g,contentTypes:h,cursor:a.items[e][d].cursor,count:a.items[e][d].count})}else f[d]=babelHelpers["extends"]({},f[d],{rows:g,cursor:a.items[e][d].cursor,count:a.items[e][d].count})});d[e]=f});d[a.selectedEntity][a.selectedTab].loadAttempted=!0;return babelHelpers["extends"]({},a,{items:{products:d[c("AccountQualityCommerceEntityTypes").PRODUCTS],commerce_ugc:d[c("AccountQualityCommerceEntityTypes").COMMERCE_UGC],collections:d[c("AccountQualityCommerceEntityTypes").COLLECTIONS],shops:d[c("AccountQualityCommerceEntityTypes").SHOPS],product_launches:d[c("AccountQualityCommerceEntityTypes").PRODUCT_LAUNCHES],augmented_reality:d[c("AccountQualityCommerceEntityTypes").AUGMENTED_REALITY]}})}};b=a;g["default"]=b}),98);
-----