WDCTOSModal.react",["fbt","CometRelay","WDCFlexbox.react","WDCTOSModalQuery.graphql","WearablesConstants","XMDSControlledUserBlockingDialog.react","XMDSDialogFooter.react","XMDSDialogHeader.react","XMDSText.react","emptyFunction","react","useLogImpressionEvent","useWDCAcceptTOSMutation"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u.useMemo;function m(e){var t=e.devProfileID,n=r("useWDCAcceptTOSMutation")(t),a=n[0],i=n[1];r("useLogImpressionEvent")("tos_modal_viewed");var l=d(function(){return c.jsx(r("XMDSDialogHeader.react"),{title:s._(/*BTDS*/"Terms and policy")})},[]),u=d(function(){return c.jsx(r("XMDSDialogFooter.react"),{primary:{label:s._(/*BTDS*/"Accept"),loading:i,onPress:a,testid:"wdc-accept-terms-button",type:"primary"}})},[a,i]);return c.jsx(r("XMDSControlledUserBlockingDialog.react"),{"aria-label":s._(/*BTDS*/"Terms and policy"),footer:u,header:l,onClose:r("emptyFunction"),size:"medium",testid:void 0,children:c.jsx("div",{className:"xx6bls6 x5tiur9 x1s7jvk7",children:c.jsx(r("WDCFlexbox.react"),{direction:"column",rowGap:"16",children:c.jsx(r("XMDSText.react"),{children:s._(/*BTDS*/"By using {siteName}, you agree to the {=m4} and acknowledge you have read the {=m8}.",[s._param("siteName",o("WearablesConstants").SITE_NAME),s._implicitParam("=m4",c.jsx("a",{href:"https://wearables.developer.meta.com/terms/",rel:"noopener noreferrer",target:"_blank",className:"x5e5rjt x1bvjpef",children:s._(/*BTDS*/"Wearables Developer Terms")})),s._implicitParam("=m8",c.jsx("a",{href:o("WearablesConstants").WEARABLES_ACCEPTABLE_USE_POLICY_LINK,rel:"noopener noreferrer",target:"_blank",className:"x5e5rjt x1bvjpef",children:s._(/*BTDS*/"Acceptable Use Policy")}))])})})})})}m.displayName=m.name+" [from "+i.id+"]";function p(t){var r,a,i,l=t.displayQueryReference,s=o("CometRelay").usePreloadedQuery(e!==void 0?e:e=n("WDCTOSModalQuery.graphql"),l),u=(r=(a=s.viewer)==null||(a=a.dev_profile)==null?void 0:a.has_accepted_terms)!=null?r:!1,d=(i=s.viewer)==null||(i=i.dev_profile)==null?void 0:i.id;return u||d==null?null:c.jsx(m,{devProfileID:d})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226);
-----
WDCTOSModalQuery.graphql",["relay-runtime"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"XARDevProfile",kind:"LinkedField",name:"dev_profile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_accepted_terms",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"WDCTOSModalQuery",selections:e,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"WDCTOSModalQuery",selections:e},params:{id:"26688270044094399",metadata:{},name:"WDCTOSModalQuery",operationKind:"query",text:null}}})();n("relay-runtime").PreloadableQueryRegistry.set(e.params.id,e),a.exports=e}),null);
-----
WDCTOSModalQuery$Parameters",[],(function(t,n,r,o,a,i){"use strict";var e={kind:"PreloadableConcreteRequest",params:{id:"26688270044094399",metadata:{},name:"WDCTOSModalQuery",operationKind:"query",text:null}};a.exports=e}),null);
-----
BizKitContextCardTOSModalContainer.react",["BizKitContextCardConstants","BizKitContextCardTOSModal.react","BizKitContextCardTosLoggingUtils","GeoToast.react","react","react-compiler-runtime","useGeoToaster"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react"));function u(e){var t=o("react-compiler-runtime").c(24),n=e.bpnID,a=e.contactIdentity,i=e.isAdmin,l=e.isShown,u=e.onHide,c=e.pageContactID,d=e.pageID,m=e.surface,p=r("useGeoToaster")(),_=p.add,f;t[0]!==_?(f=function(t){var e=null;t==="error"?e=r("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_ERROR_TEXT:t==="success"&&(e=r("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_SUCCESS_TEXT),e!==null&&_(s.jsx(r("GeoToast.react"),{heading:e,status:t}),{duration:"standard"})},t[0]=_,t[1]=f):f=t[1];var g=f,h;t[2]!==u||t[3]!==c||t[4]!==d||t[5]!==m?(h=function(){o("BizKitContextCardTosLoggingUtils").logTosModalCancelFlow(d,c,m),u()},t[2]=u,t[3]=c,t[4]=d,t[5]=m,t[6]=h):h=t[6];var y=h,C;t[7]!==u||t[8]!==g?(C=function(){u(),g("success")},t[7]=u,t[8]=g,t[9]=C):C=t[9];var b=C,v;t[10]!==u||t[11]!==g?(v=function(){u(),g("error")},t[10]=u,t[11]=g,t[12]=v):v=t[12];var S=v,R;return t[13]!==n||t[14]!==a||t[15]!==S||t[16]!==b||t[17]!==y||t[18]!==i||t[19]!==l||t[20]!==c||t[21]!==d||t[22]!==m?(R=s.jsx(r("BizKitContextCardTOSModal.react"),{bpnID:n,contactIdentity:a,isAdmin:i,isShown:l,onAcceptFailure:S,onAcceptSuccess:b,onHide:y,pageContactID:c,pageID:d,surface:m}),t[13]=n,t[14]=a,t[15]=S,t[16]=b,t[17]=y,t[18]=i,t[19]=l,t[20]=c,t[21]=d,t[22]=m,t[23]=R):R=t[23],R}l.default=u}),98);
-----
BizWebCometOmniAiSMBPhotosModalContainer.react",["BizWebCometOmniAIA1OnboardingUtils","BizWebCometOmniAISMBPhotosUtils","BizWebCometOmniAiSMBPhotosModal.react","CometRelayErrorHandling","MessagingAIOnboardingFlowLoggingUtils","filterNulls","nullthrows","react","useBizAIFileUploader"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=r("react"));function u(e){var t=e.extraBottomContent,n=e.onAddProduct,a=e.overrideModalDescription,i=e.overrideModalTitle,l=e.pageID,u=e.photosState,c=e.shouldShowProductsRevamp,d=u.commitExtractImage,m=u.entrypointSource,p=u.products,_=u.selectedProductID,f=u.setProducts,g=u.setSelectedProductID,h=r("useBizAIFileUploader")(l,"photo_dump"),y=h.uploadImage,C={entrypoint_source:m};function b(e,t){f(function(t){return o("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(t,{id:e,status:"extracting"})}),d({onCompleted:function(n){var t;o("MessagingAIOnboardingFlowLoggingUtils").logSMBEvents("photos_ui_extraction_success",l,null,null,null,C);var a=n.xfb_biz_ai_photos_product_group_extraction.product,i={complexPrice:(t=o("BizWebCometOmniAISMBPhotosUtils")).formatExtractionString(a.complex_price),currency:t.formatExtractionString(a.currency,"USD"),description:t.formatExtractionString(a.description),name:t.formatExtractionString(a.name),price:a!=null&&a.price?r("nullthrows")(a.price)/100:a==null?void 0:a.price};f(function(t){return o("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(t,{data:i,extractedData:i,id:e,status:"extracted"})})},onError:function(n){o("MessagingAIOnboardingFlowLoggingUtils").logSMBExceptions("photos_ui_extraction_failed",l,null,null,null,n,C),o("BizWebCometOmniAIA1OnboardingUtils").shouldSilenceError(n)&&o("CometRelayErrorHandling").markErrorAsHandled(n),f(function(t){return o("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(t,{id:e,status:"extraction-failed"})})},variables:{input:{files:r("filterNulls")(t.map(function(e){return e.handle})),page_id:l,request_id:e}}})}async function v(e,t,n){if(o("MessagingAIOnboardingFlowLoggingUtils").logSMBEvents("photos_ui_files_selected",l,null,null,null,babelHelpers.extends({},C,{files:String(e.length)})),e.length!==0){var r=e.map(o("BizWebCometOmniAISMBPhotosUtils").createImage),a=!!n&&!c;if(t==null){var i=o("BizWebCometOmniAISMBPhotosUtils").createProduct(r);f(function(e){return[].concat(e,[i])}),g(i.id);var s=await Promise.all(r.map(function(e){return o("BizWebCometOmniAISMBPhotosUtils").uploadBizAIFile(e,y)}));f(function(e){return o("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(e,babelHelpers.extends({},i,{images:s,status:"uploaded"}))});var u=i.id;a&&await b(u,s)}else{var d=[].concat(t.images,r),m=t.id;f(function(e){return o("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(e,{id:m,images:d,status:a?"uploading":"uploaded"})});var p=await Promise.all(r.map(function(e){return o("BizWebCometOmniAISMBPhotosUtils").uploadBizAIFile(e,y)})),_=d.map(function(e){var t=p.find(function(t){return t.id===e.id});return t!=null?t:e});f(function(e){return o("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(e,{id:m,images:_})}),a&&await b(m,p)}}}var S=p.find(function(e){return e.id===_});if(S==null)return null;async function R(){if(S!=null){var e=S.images.filter(function(e){return e.handle!=null});e.length>0&&await b(S.id,e)}}return s.jsx(r("BizWebCometOmniAiSMBPhotosModal.react"),{entrypointSource:m,extraBottomContent:t,onAutoSave:n,onCreateNew:function(){var e=o("BizWebCometOmniAISMBPhotosUtils").createProduct([],"new");f(function(t){return[].concat(t,[e])}),g(e.id)},onHide:function(){g(null)},onRemove:function(){f(p.filter(function(e){return e.id!==S.id}))},onSelectFiles:v,onTriggerExtraction:R,onUpdate:function(t){f(function(e){return o("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(e,t)})},overrideModalDescription:a,overrideModalTitle:i,pageID:l,product:S,shouldShowProductsRevamp:c},""+S.id+String(o("BizWebCometOmniAISMBPhotosUtils").isProductStatus(S,"extracted")))}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98);
-----
BizGenAIProductCreateModal.react",["BizWebCometOmniAISMBPhotosUtils","BizWebCometOmniAiSMBPhotosModalContainer.react","react","react-compiler-runtime","useBizAIPhotosIngestion.react","useBizAIPhotosState.react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=e.useEffect;function c(e){var t,n,a,i,l,c,d,m,p=o("react-compiler-runtime").c(15),_=(t=e.extraProps)==null?void 0:t.pageID,f=(n=e.extraProps)==null?void 0:n.shouldShowProductsRevamp,g=(a=(i=e.extraProps)==null?void 0:i.photosStateEntrypoint)!=null?a:"knowledge-list",h=(l=e.extraProps)==null?void 0:l.overrideModalTitle,y=(c=e.extraProps)==null?void 0:c.overrideModalDescription,C=(d=e.extraProps)==null?void 0:d.extraBottomContent,b=(m=e.extraProps)==null?void 0:m.onSuccess,v=r("useBizAIPhotosState.react")(g),S;p[0]!==b?(S={onDone:function(){b==null||b()}},p[0]=b,p[1]=S):S=p[1];var R=r("useBizAIPhotosIngestion.react")(_!=null?_:"0",S),L=R.onAddProduct,E,k;if(p[2]!==v?(E=function(){var e=v.products,t=v.setProducts,n=v.setSelectedProductID;if(e.length===0){var r=o("BizWebCometOmniAISMBPhotosUtils").createProduct([],"new");t([r]),n(r.id)}},k=[v],p[2]=v,p[3]=E,p[4]=k):(E=p[3],k=p[4]),u(E,k),_==null)return null;var I;p[5]!==L?(I=function(t){L(t)},p[5]=L,p[6]=I):I=p[6];var T;return p[7]!==C||p[8]!==y||p[9]!==h||p[10]!==_||p[11]!==v||p[12]!==f||p[13]!==I?(T=s.jsx(r("BizWebCometOmniAiSMBPhotosModalContainer.react"),{extraBottomContent:C,onAddProduct:I,overrideModalDescription:y,overrideModalTitle:h,pageID:_,photosState:v,shouldShowProductsRevamp:f}),p[7]=C,p[8]=y,p[9]=h,p[10]=_,p[11]=v,p[12]=f,p[13]=I,p[14]=T):T=p[14],T}l.default=c}),98);
-----
WhatsAppBusinessTechProviderOnboardingResourcesCard.react",["fbt","BizMsgPlatformImpressionWrapper.react","GeoDivider.react","GeoFlexbox.react","GeoHeading.react","GeoPageItem.react","WhatsAppBizxPlatformLoggerEvent.flow","WhatsAppBusinessAccessPartnerToolsCard.react","WhatsAppBusinessQuickStartTestIntegrationTileCore.react","WhatsAppBusinessTechProviderESIntegrationHelperCard.react","WhatsAppBusinessTechProviderHostedESLandingCard.react","WhatsAppDirectSignupQuickstartCapiPartnerOnboardingTile.react","WhatsAppDirectSignupQuickstartMMLitePartnerOnboardingTile.react","WhatsAppDirectSignupQuickstartMapiPartnerOnboardingTile.react","XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook","geoWidth","gkx","react","useBizMsgPlatformLogger","useWhatsAppBusiness3PDOnboardingSharedState"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=s._(/*BTDS*/"Onboard customers"),d=s._(/*BTDS*/"Previously completed"),m=s._(/*BTDS*/"Offer more to your customers");function p(e){var t,n,a,i=e.appID,l=e.businessID,s=e.configs,p=r("useBizMsgPlatformLogger")(),_=r("useWhatsAppBusiness3PDOnboardingSharedState")(),f=_.state,g=f.onboardingProgress,h=f.isMMLiteAllowlisted,y=f.isMMLiteTosAccepted,C=f.isCapiTosModalSeen,b=f.isMapiTosModalSeen,v=f.xfb_get_app_review_status_for_all_unified_onboarding_products,S=f.navRef,R=_.dispatch,L=g==null?void 0:g.percentCompletedForProviderOnboarding,E=L===100,k=h===!0,I=o("XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook").toJSEnum(v==null||(t=v.app_review_submission_statuses)==null||(t=t.find(function(e){return e.product_type==="MMLITE"}))==null?void 0:t.app_review_submission_status),T=o("XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook").toJSEnum(v==null||(n=v.app_review_submission_statuses)==null||(n=n.find(function(e){return e.product_type==="MAPI"}))==null?void 0:n.app_review_submission_status),D=o("XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook").toJSEnum(v==null||(a=v.app_review_submission_statuses)==null||(a=a.find(function(e){return e.product_type==="CAPI"}))==null?void 0:a.app_review_submission_status),x=!1,$=!0,P=function(t){R({type:"UPDATE_IS_MM_LITE_TOS_ACCEPTED",value:t})},N=function(t){R({type:"UPDATE_IS_CAPI_TOS_MODAL_SEEN",value:t})},M=function(t){R({type:"UPDATE_IS_MAPI_TOS_MODAL_SEEN",value:t})};return E?u.jsx(r("BizMsgPlatformImpressionWrapper.react"),{onImpression:function(){p.logEvent(r("WhatsAppBizxPlatformLoggerEvent.flow").WA_TECH_PROVIDER_ONBOARDING_RESOURCES_UI,{},601)},children:function(t){return u.jsx(r("GeoPageItem.react"),{containerRef:t,columns:12,children:u.jsxs(r("GeoFlexbox.react"),{direction:"column",gap:16,children:[r("gkx")("14461")?u.jsx(r("WhatsAppBusinessAccessPartnerToolsCard.react"),{appID:i,businessID:l}):u.jsxs(u.Fragment,{children:[u.jsxs(r("GeoFlexbox.react"),{direction:"column",gap:16,children:[u.jsx(r("GeoHeading.react"),{level:1,xstyle:r("geoWidth").fullWidth,children:c}),u.jsxs(r("GeoFlexbox.react"),{gap:16,children:[(r("gkx")("8077")||r("gkx")("8075"))&&u.jsx(r("WhatsAppBusinessTechProviderHostedESLandingCard.react"),{appID:i,configs:s}),u.jsx(r("WhatsAppBusinessTechProviderESIntegrationHelperCard.react"),{appID:i,businessID:l})]})]}),u.jsx(r("WhatsAppBusinessQuickStartTestIntegrationTileCore.react"),{appID:i,businessID:l})]}),u.jsxs(r("GeoFlexbox.react"),{direction:"column",gap:16,children:[u.jsx(r("GeoHeading.react"),{level:1,xstyle:r("geoWidth").fullWidth,children:m}),k&&u.jsx(r("WhatsAppDirectSignupQuickstartMMLitePartnerOnboardingTile.react"),{appID:i,businessID:l,isMMLiteTosAccepted:y,navRef:S,isBspBusiness:x,appMMLiteReviewStatus:I,isTechProviderBusiness:$,updateIsMMLiteTosAccepted:P}),u.jsxs(u.Fragment,{children:[u.jsx(r("WhatsAppDirectSignupQuickstartCapiPartnerOnboardingTile.react"),{appID:i,appCapiReviewStatus:D,businessID:l,isCapiTosModalSeen:C,updateIsCapiTosModalSeen:N}),u.jsx(r("WhatsAppDirectSignupQuickstartMapiPartnerOnboardingTile.react"),{appID:i,businessID:l,isMapiTosModalSeen:b,isBspBusiness:x,appMapiReviewStatus:T,isTechProviderBusiness:$,updateIsMapiTosModalSeen:M})]})]}),u.jsx(r("GeoDivider.react"),{}),u.jsx(r("GeoHeading.react"),{level:1,xstyle:r("geoWidth").fullWidth,children:d})]})})}}):null}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226);
-----
WearablesTOSModal.react",["fbt","ix","CometRelay","GeoBlockingDialog.react","GeoButton.react","GeoHeading.react","GeoLink.react","GeoModalFooter.react","GeoSection.react","GeoText.react","GeoVStack.react","Image.react","WearablesConstants","WearablesTOSModalQuery.graphql","emptyFunction","react","react-compiler-runtime","useBoolean","useWearablesAcceptTOSMutation"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react");function m(a){var b=d("react-compiler-runtime").c(13);a=a.devProfileID;a=c("useWearablesAcceptTOSMutation")(a);var e=a[0];a=a[1];var f=c("useBoolean")(!0),g=f.setFalse;f=f.value;var j;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(j=h._(/*BTDS*/"Accept"),b[0]=j):j=b[0];var k;b[1]!==e||b[2]!==g?(k=function(){e(),g()},b[1]=e,b[2]=g,b[3]=k):k=b[3];b[4]!==a||b[5]!==k?(j=l.jsx(c("GeoModalFooter.react"),{primaryButton:l.jsx(c("GeoButton.react"),{"data-testid":void 0,isLoading:a,label:j,onClick:k,variant:"primary"})}),b[4]=a,b[5]=k,b[6]=j):j=b[6];b[7]===Symbol["for"]("react.memo_cache_sentinel")?(a=l.jsx(c("Image.react"),{src:i("842798")}),b[7]=a):a=b[7];b[8]===Symbol["for"]("react.memo_cache_sentinel")?(k=l.jsx(c("GeoHeading.react"),{level:3,children:h._(/*BTDS*/"Terms and policy")}),b[8]=k):k=b[8];b[9]===Symbol["for"]("react.memo_cache_sentinel")?(k=l.jsx(c("GeoSection.react"),{children:l.jsxs(c("GeoVStack.react"),{children:[k,l.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"By using {siteName}, you agree to the {=m4} and acknowledge you have read the {=m8}.",[h._param("siteName",d("WearablesConstants").SITE_NAME),h._implicitParam("=m4",l.jsx(c("GeoLink.react"),{href:"https://wearables.developer.meta.com/terms/",target:"_blank",children:h._(/*BTDS*/"Wearables Developer Terms")})),h._implicitParam("=m8",l.jsx(c("GeoLink.react"),{href:d("WearablesConstants").WEARABLES_ACCEPTABLE_USE_POLICY_LINK,target:"_blank",children:h._(/*BTDS*/"Acceptable Use Policy")}))])})]})}),b[9]=k):k=b[9];b[10]!==f||b[11]!==j?(a=l.jsx(c("GeoBlockingDialog.react"),{footer:j,heading:"",image:a,isShown:f,onHide:c("emptyFunction"),children:k}),b[10]=f,b[11]=j,b[12]=a):a=b[12];return a}function a(a){var c,e=d("react-compiler-runtime").c(2);a=a.displayQueryReference;a=d("CometRelay").usePreloadedQuery(j!==void 0?j:j=b("WearablesTOSModalQuery.graphql"),a);c=(c=(c=a.viewer)==null||(c=c.dev_profile)==null?void 0:c.has_accepted_terms)!=null?c:!1;a=(a=a.viewer)==null||(a=a.dev_profile)==null?void 0:a.id;if(c||a==null)return null;e[0]!==a?(c=l.jsx(m,{devProfileID:a}),e[0]=a,e[1]=c):c=e[1];return c}g["default"]=a}),226);
-----
WearablesTOSModalQuery.graphql",["relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"XARDevProfile",kind:"LinkedField",name:"dev_profile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_accepted_terms",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"WearablesTOSModalQuery",selections:a,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"WearablesTOSModalQuery",selections:a},params:{id:"31428112256804256",metadata:{},name:"WearablesTOSModalQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
WearablesDevCenterBuildRouterRoot",["CometRelayEnvironmentFactory","CurrentUser","MetaAuthCometCookieConsent.react","WearablesDevCenterCometApp.react","WearablesTOSModalQuery$Parameters","buildCometRootComponent","buildWearablesCometRouterStateProvider","cr:21356","createCometRelayBaseEntryPointEnvironmentProvider","deferredLoadComponent","loadCometAppshellEntrypoint","qpl","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=c("deferredLoadComponent")(c("requireDeferred")("WearablesDevCenterErrorRoot.react").__setRef("WearablesDevCenterBuildRouterRoot"));function a(a,e){var f=c("CurrentUser").getARID();a=c("buildWearablesCometRouterStateProvider")(babelHelpers["extends"]({},a,{initialLoadTraceId:e,navigationQPLEvent:c("qpl")._(328403328,"885"),relayEnvironmentFactory:d("CometRelayEnvironmentFactory").CometRelayEnvironmentFactory}));var g={getDeferredQueries:function(){return{}},getDisplayQueries:function(){return{tosQueryReference:{parameters:c("WearablesTOSModalQuery$Parameters"),variables:{}}}}};g=c("loadCometAppshellEntrypoint")(c("WearablesDevCenterCometApp.react"),g,c("createCometRelayBaseEntryPointEnvironmentProvider")(d("CometRelayEnvironmentFactory").CometRelayEnvironmentFactory,f));return d("buildCometRootComponent").buildCometRootComponent(g,{initialLoadTraceId:e,relayEnvironmentFactory:d("CometRelayEnvironmentFactory").CometRelayEnvironmentFactory},{CometRouterStateProvider:a,OtherRootComponents:{CookieConsentDialog:c("MetaAuthCometCookieConsent.react"),KeyCommandNub:null,Redblock:b("cr:21356"),UncaughtErrorFallback:h},UIStateProviders:{}})}g.buildWearablesDevCenterRouterRootComponent=a}),98);
-----
WearablesTOSModalQuery$Parameters",[],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:"31428112256804256",metadata:{},name:"WearablesTOSModalQuery",operationKind:"query",text:null}};e.exports=a}),null);
-----
CatalogCreationBasicsCardContent.react",["fbt","CUIErrorCard.react","CatalogBusinessEventsLoggerHelper","CatalogCreationAutomaticPermissionSwitch.react","CatalogCreationBasicsCardContentPartnershipQuery.graphql","CatalogCreationBillingInput.react","CatalogCreationBusinessSelector.react","CatalogCreationCountrySelector.react","CatalogCreationErrorMessage.react","CatalogCreationMarketplacePartnerSellerTOSModal.react","CatalogCreationNameInput","CatalogCreationPageSelectorContainer.react","CatalogCreationPartnerNameInput.react","CatalogCreationPartnerSelection.react","CatalogCreationProfilePictureSelectorContainer.react","CatalogCreationTestCatalogCheckbox.react","CatalogCreationVerticalSelector.react","CatalogTermOfService.react","CatalogVerticalsConfig","CommerceManagerHooks","CommerceManagerOnboardingPartnerPlatformUtils","CommerceManagerSuspense.react","GeoBaseText.react","GeoFlexbox.react","GeoInputGroup.react","GeoSection.react","GeoSpinner.react","GeoTextInput.react","MarketplaceCatalogTermsOfService.react","SFLUtilityMethods","SellerFunnelLoggingHooks","ShopifyOptimizedOnboardingDomainContext.react","getApplicableDisabledState","getNoAccessForBusinessActionTooltip","gkx","justknobx","react","react-compiler-runtime","useAcceptMarketplacePartnershipTOS","useCommerceManagerRouteParams","useCommerceManagerRouter","vulture"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u,m=d.useCallback,p=d.useEffect,_={suffixInput:{width:"x14atkfc",$$css:!0}},f=e!==void 0?e:e=n("CatalogCreationBasicsCardContentPartnershipQuery.graphql");function g(){return r("gkx")("1451")}function h(e){var t,n,a,l,u,d=o("react-compiler-runtime").c(107),m=e.isPartnerPlatformEnabled,b=e.setCreationState,v=e.state,S=e.togglePartnerPlatformSelection,R=r("useCommerceManagerRouter")(),L=o("SellerFunnelLoggingHooks").useEventLogging(),E;d[0]!==b?(E=function(t){b(function(e){return babelHelpers.extends({},e,{partnerPlatform:t})})},d[0]=b,d[1]=E):E=d[1];var k;d[2]===Symbol.for("react.memo_cache_sentinel")?(k={action:"create_catalog_select_partner"},d[2]=k):k=d[2];var I=o("SFLUtilityMethods").useSflAwareLambda(E,k,h),T;d[3]===Symbol.for("react.memo_cache_sentinel")?(T=o("CatalogCreationPartnerSelection.react").partnerPlatforms.find(C),d[3]=T):T=d[3];var D=T,x=r("useCommerceManagerRouteParams")(),$;d[4]!==m||d[5]!==(x==null?void 0:x.ad_account_id)||d[6]!==I||d[7]!==v.businessID||d[8]!==v.partnerPlatform?($=function(){g()&&m&&v.partnerPlatform==null&&(r("CatalogBusinessEventsLoggerHelper").getCatalogCreateFlowLogger().setEvent("catalog_create_new_onboarding_woocommerce_defaulted").setAdAccountID(x==null?void 0:x.ad_account_id).setActionData({business_id:v.businessID}).log(),D!=null&&I(D))},d[4]=m,d[5]=x==null?void 0:x.ad_account_id,d[6]=I,d[7]=v.businessID,d[8]=v.partnerPlatform,d[9]=$):$=d[9];var P=x==null?void 0:x.ad_account_id,N;d[10]!==m||d[11]!==I||d[12]!==v.businessID||d[13]!==v.partnerPlatform||d[14]!==P?(N=[v.businessID,v.partnerPlatform,D,I,P,m],d[10]=m,d[11]=I,d[12]=v.businessID,d[13]=v.partnerPlatform,d[14]=P,d[15]=N):N=d[15],p($,N);var M;d[16]!==b?(M=function(t){r("vulture")("yGbykDywoA5T0FOf7iqkGxStHBc="),b(function(e){return babelHelpers.extends({},e,{billingTimezone:t})})},d[16]=b,d[17]=M):M=d[17];var w=M,A;d[18]!==b?(A=function(t){r("vulture")("rpxpkrADL7MFllIoaFkeW5eMhB4="),b(function(e){return babelHelpers.extends({},e,{billingCurrencyCode:t})})},d[18]=b,d[19]=A):A=d[19];var F=A,O;d[20]!==b?(O=function(t){b(function(e){return babelHelpers.extends({},e,{catalogName:t})})},d[20]=b,d[21]=O):O=d[21];var B=O,W;d[22]!==R||d[23]!==b?(W=function(t){b(function(e){return babelHelpers.extends({},e,{businessID:t,pageID:null,selectedCountry:null})}),r("justknobx")._("2309")&&R.replace({params:{business_id:t}})},d[22]=R,d[23]=b,d[24]=W):W=d[24];var q;d[25]===Symbol.for("react.memo_cache_sentinel")?(q={action:"create_catalog_select_business"},d[25]=q):q=d[25];var U=o("SFLUtilityMethods").useSflAwareLambda(W,q,h),V;d[26]!==b?(V=function(t){b(function(e){return babelHelpers.extends({},e,{brandName:t})})},d[26]=b,d[27]=V):V=d[27];var H=V,G;d[28]!==b?(G=function(t){b(function(e){return babelHelpers.extends({},e,{pageID:t})})},d[28]=b,d[29]=G):G=d[29];var z=G,j;d[30]!==b?(j=function(t){b(function(e){return babelHelpers.extends({},e,{selectedCountry:t})})},d[30]=b,d[31]=j):j=d[31];var K=j,Q;d[32]!==b?(Q=function(t){b(function(e){return babelHelpers.extends({},e,{isTestCatalog:t,selectedCountry:null})})},d[32]=b,d[33]=Q):Q=d[33];var X=Q,Y;d[34]!==b?(Y=function(t){r("vulture")("Ba35RCh7jft01eF5grkN1THNCHg="),b(function(e){return babelHelpers.extends({},e,{catalogProfilePicture:t})})},d[34]=b,d[35]=Y):Y=d[35];var J=Y,Z;d[36]!==b?(Z=function(t){b(function(e){return babelHelpers.extends({},e,{shopifyState:babelHelpers.extends({},e.shopifyState,{shopifyDomain:t})})})},d[36]=b,d[37]=Z):Z=d[37];var ee=Z,te;d[38]!==b?(te=function(t){b(function(e){return babelHelpers.extends({},e,{automaticPermission:t})})},d[38]=b,d[39]=te):te=d[39];var ne=te,re;d[40]!==b?(re=function(t){r("vulture")("Xly9f3_G0irL9taCINYIbDWF7mc="),b(function(e){return babelHelpers.extends({},e,{showMarketplacePartnerSellerTOSModal:t})})},d[40]=b,d[41]=re):re=d[41];var oe=re,ae=o("useAcceptMarketplacePartnershipTOS").useAcceptMarketplacePartnershipTOS(),ie;if(d[42]!==v.catalogName){var le;ie=(le=v.catalogName)==null?void 0:le.trim(),d[42]=v.catalogName,d[43]=ie}else ie=d[43];var se=ie,ue=m===!0&&((t=v.partnerPlatform)==null?void 0:t.key)===o("CommerceManagerOnboardingPartnerPlatformUtils").PartnerPlatformsType.SHOPIFY,ce=v.vertical===o("CatalogVerticalsConfig").CatalogCreationVertical.Commerce&&(m!==!0||ue),de=v.vertical===o("CatalogVerticalsConfig").CatalogCreationVertical.MarketplacePartnership,me;d[44]===Symbol.for("react.memo_cache_sentinel")?(me=s._(/*BTDS*/"Shopify website"),d[44]=me):me=d[44];var pe=me,_e;if(d[45]!==b||d[46]!==((n=v.shopifyState)==null?void 0:n.shopifyDomain)){var fe;_e=function(){b(function(e){var t;return babelHelpers.extends({},e,{validationErrors:babelHelpers.extends({},e.validationErrors,{shopifyDomain:!o("ShopifyOptimizedOnboardingDomainContext.react").isShopifyDomainPrefixValid((t=v.shopifyState)==null?void 0:t.shopifyDomain)})})})},d[45]=b,d[46]=(fe=v.shopifyState)==null?void 0:fe.shopifyDomain,d[47]=_e}else _e=d[47];var ge=_e,he=(a=v.businessID)!=null?a:"",ye=v.businessID!==null,Ce;d[48]!==he||d[49]!==ye?(Ce={bizID:he,hasBusinessID:ye},d[48]=he,d[49]=ye,d[50]=Ce):Ce=d[50];var be=o("CommerceManagerHooks").useCommerceManagerLazyQuery(f,Ce),ve=((l=be.business)==null?void 0:l.if_viewer_can_connect_to_apartner_platform)!==null,Se=!ve,Re;d[51]!==v.catalogID||d[52]!==Se?(Re=r("getApplicableDisabledState")([Se,r("getNoAccessForBusinessActionTooltip")()],[v.catalogID!=null,""]),d[51]=v.catalogID,d[52]=Se,d[53]=Re):Re=d[53];var Le=Re,Ee=v.catalogID!=null,ke;d[54]!==b||d[55]!==v.businessID||d[56]!==v.showMarketplacePartnership||d[57]!==v.vertical||d[58]!==Ee?(ke=c.jsx(r("CatalogCreationVerticalSelector.react"),{businessID:v.businessID,isDisabled:Ee,setCreationState:b,showMarketplacePartnership:v.showMarketplacePartnership,vertical:v.vertical}),d[54]=b,d[55]=v.businessID,d[56]=v.showMarketplacePartnership,d[57]=v.vertical,d[58]=Ee,d[59]=ke):ke=d[59];var Ie;d[60]!==Le||d[61]!==m||d[62]!==I||d[63]!==v.partnerPlatform||d[64]!==v.vertical||d[65]!==S?(Ie=v.vertical===o("CatalogVerticalsConfig").CatalogCreationVertical.Commerce&&c.jsx(o("CatalogCreationPartnerSelection.react").CatalogCreationPartnerSelection,{disabledMessage:Le.disabledMessage,isDisabled:Le.isDisabled,isPartnerPlatformEnabled:m,selectedPartnerPlatform:v.partnerPlatform,setPartnerPlatform:I,togglePartnerPlatformSelection:S}),d[60]=Le,d[61]=m,d[62]=I,d[63]=v.partnerPlatform,d[64]=v.vertical,d[65]=S,d[66]=Ie):Ie=d[66];var Te;if(d[67]!==m||d[68]!==ue||d[69]!==se||d[70]!==ne||d[71]!==U||d[72]!==B||d[73]!==ee||d[74]!==ce||d[75]!==v.automaticPermission||d[76]!==v.automaticPermissionFeatureEnabled||d[77]!==v.businessID||d[78]!==v.catalogID||d[79]!==v.catalogName||d[80]!==((u=v.shopifyState)==null?void 0:u.shopifyDomain)||d[81]!==v.validationErrors||d[82]!==ge){var De,xe,$e,Pe,Ne;Te=ce&&c.jsxs(c.Fragment,{children:[c.jsx(r("CommerceManagerSuspense.react"),{errorComponent:r("CUIErrorCard.react"),loadingComponent:c.jsx(r("GeoSpinner.react"),{center:!0,loggingName:i.id}),oncall:"catalog_interfaces",children:c.jsx(r("CatalogCreationBusinessSelector.react"),{description:s._(/*BTDS*/"Only catalogs added to a business portfolio can be used to run ads."),isDisabled:v.catalogID!=null,label:s._(/*BTDS*/"Business portfolio"),selectedBusinessID:v.businessID,onBusinessSelected:U})}),ue&&c.jsxs(r("GeoInputGroup.react"),{label:pe,children:[c.jsx(r("GeoTextInput.react"),{errorMessage:v.validationErrors.shopifyDomain?s._(/*BTDS*/"Enter a valid website name."):null,isLabelHidden:!0,label:pe,value:(De=(xe=v.shopifyState)==null?void 0:xe.shopifyDomain)!=null?De:"",onBlur:ge,onChange:ee}),c.jsx(r("GeoTextInput.react"),{isDisabled:!0,isLabelHidden:!0,label:pe,value:".myshopify.com",xstyle:_.suffixInput,onChange:y})]}),v.automaticPermissionFeatureEnabled?c.jsx(r("CatalogCreationAutomaticPermissionSwitch.react"),{isDisabled:v.catalogID!=null,value:v.automaticPermission,onChange:ne}):null,m!==!0&&c.jsx(r("CatalogCreationNameInput"),{catalogName:($e=v.catalogName)!=null?$e:"",errorMessage:v.validationErrors.catalogName===!0&&se===""?s._(/*BTDS*/"Enter a catalog name."):v.validationErrors.catalogName===!0&&((Pe=se==null?void 0:se.length)!=null?Pe:0)>150?s._(/*BTDS*/"Catalog name cannot exceed 150 characters."):null,label:s._(/*BTDS*/"Name"),onCatalogNameChange:B})]}),d[67]=m,d[68]=ue,d[69]=se,d[70]=ne,d[71]=U,d[72]=B,d[73]=ee,d[74]=ce,d[75]=v.automaticPermission,d[76]=v.automaticPermissionFeatureEnabled,d[77]=v.businessID,d[78]=v.catalogID,d[79]=v.catalogName,d[80]=(Ne=v.shopifyState)==null?void 0:Ne.shopifyDomain,d[81]=v.validationErrors,d[82]=ge,d[83]=Te}else Te=d[83];var Me;if(d[84]!==ae||d[85]!==de||d[86]!==H||d[87]!==U||d[88]!==J||d[89]!==K||d[90]!==b||d[91]!==F||d[92]!==X||d[93]!==z||d[94]!==oe||d[95]!==w||d[96]!==L||d[97]!==v){var we,Ae,Fe,Oe;Me=de&&c.jsxs(c.Fragment,{children:[c.jsx(r("CatalogCreationErrorMessage.react"),{state:v}),c.jsx(r("CommerceManagerSuspense.react"),{errorComponent:r("CUIErrorCard.react"),loadingComponent:c.jsx(r("GeoSpinner.react"),{center:!0,loggingName:i.id}),oncall:"mp_partnerships",children:c.jsx(r("CatalogCreationBusinessSelector.react"),{description:"",isDisabled:v.catalogID!=null,label:s._(/*BTDS*/"Business portfolio"),selectedBusinessID:v.businessID,onBusinessSelected:U})}),c.jsx(r("CatalogCreationPartnerNameInput.react"),{brandName:(we=v.brandName)!=null?we:"",errorMessage:"",onBrandNameChange:H}),c.jsx(r("CatalogCreationProfilePictureSelectorContainer.react"),{setCatalogProfilePicture:J}),v.businessID!=null&&c.jsxs(r("CommerceManagerSuspense.react"),{errorComponent:r("CUIErrorCard.react"),loadingComponent:c.jsx(r("GeoSpinner.react"),{center:!0,loggingName:i.id}),oncall:"mp_partnerships",children:[c.jsx(r("CatalogCreationTestCatalogCheckbox.react"),{isTestCatalog:v.isTestCatalog,onIsTestCatalogChange:X}),c.jsx(r("CatalogCreationCountrySelector.react"),{businessID:v.businessID,isTestCatalog:v.isTestCatalog,selectedCountry:v.selectedCountry,onCountrySelected:K})]}),c.jsx(r("CommerceManagerSuspense.react"),{errorComponent:r("CUIErrorCard.react"),loadingComponent:c.jsx(r("GeoSpinner.react"),{center:!0,loggingName:i.id}),oncall:"mp_partnerships",children:c.jsx(r("CatalogCreationBillingInput.react"),{businessID:(Ae=v.businessID)!=null?Ae:"",currency:(Fe=v.billingCurrencyCode)!=null?Fe:"",timezone:(Oe=v.billingTimezone)!=null?Oe:"",onCurrencyChange:F,onTimezoneChange:w})}),c.jsx(r("CatalogCreationPageSelectorContainer.react"),{businessID:v.businessID,selectedPageID:v.pageID,onPageSelected:z}),c.jsx(r("CatalogCreationMarketplacePartnerSellerTOSModal.react"),{isShown:v.showMarketplacePartnerSellerTOSModal,mutationInFlight:v.marketplacePartnerSellerTOSAcceptRequest.inProgress,onAccept:function(){L({event_status:"success",event_type:"click",react_component_name:"CatalogCreationMarketplacePartnerSellerTOSModal"}),ae({setCreationState:b,state:v})},onHide:function(){r("vulture")("331t8nbIClfLPJV5gcyjgBKSHMw="),oe(!1)}})]}),d[84]=ae,d[85]=de,d[86]=H,d[87]=U,d[88]=J,d[89]=K,d[90]=b,d[91]=F,d[92]=X,d[93]=z,d[94]=oe,d[95]=w,d[96]=L,d[97]=v,d[98]=Me}else Me=d[98];var Be;d[99]!==de?(Be=c.jsx(r("GeoBaseText.react"),{color:"placeholder",size:"valueDescription",children:de?c.jsx(r("MarketplaceCatalogTermsOfService.react"),{}):c.jsx(r("CatalogTermOfService.react"),{})}),d[99]=de,d[100]=Be):Be=d[100];var We;return d[101]!==ke||d[102]!==Ie||d[103]!==Te||d[104]!==Me||d[105]!==Be?(We=c.jsx(r("GeoSection.react"),{children:c.jsxs(r("GeoFlexbox.react"),{direction:"column",gap:16,children:[ke,Ie,Te,Me,Be]})}),d[101]=ke,d[102]=Ie,d[103]=Te,d[104]=Me,d[105]=Be,d[106]=We):We=d[106],We}function y(){}function C(e){return(e==null?void 0:e.key)===o("CommerceManagerOnboardingPartnerPlatformUtils").PartnerPlatformsType.WOOCOMMERCE}l.default=h}),226);
-----
ToSModal.react",["fbt","GeoBaseText.react","GeoButton.react","GeoDivider.react","GeoGenericModalHeader.react","GeoModal.react","GeoModalFooter.react","GeoTextPairing.react","MixedPermissionsBackwardFixStrings","MixedPermissionsEventsFalcoEvent","RelayHooks","ToSBusinessInfo.react","ToSModal_businessQuery.graphql","ToSModal_pageQuery.graphql","ToSUserInfo.react","geoMargin","react","stylex","useGeoConfirmationModal","useGeoTheme"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react")),n=l.useCallback,o=i!==void 0?i:i=b("ToSModal_businessQuery.graphql"),p=j!==void 0?j:j=b("ToSModal_pageQuery.graphql");function a(a){var b;a.extraProps;a.props.onHide;a=a.queries;var e=a.businessQueryRef;a=a.pageQueryRef;var f=d("RelayHooks").usePreloadedQuery(o,e);f=f.business;a=d("RelayHooks").usePreloadedQuery(p,a);var g=(b=f==null?void 0:f.name)!=null?b:"",i=(a=(b=a.node)==null?void 0:b.name)!=null?a:"";b=c("useGeoTheme")();a=b.selectSpacing;b=a({bounds:"internal",context:"container",relation:"component"});var j=c("useGeoConfirmationModal")();a=n(function(){c("MixedPermissionsEventsFalcoEvent").log(function(){return{business_id:e.variables.businessID,event_data:{event_location:"bizweb",event_name:"accept_clicked",event_type:"ui"},user_id:null}})},[e.variables.businessID]);var l=n(function(){j({body:d("MixedPermissionsBackwardFixStrings").TOS_DECLINE_CONFIRMATION_WARNING_MIXED_PERMISSIONS(g,i),cancel:h._(/*BTDS*/"Cancel"),confirm:h._(/*BTDS*/"Decline"),onConfirm:function(){c("MixedPermissionsEventsFalcoEvent").log(function(){return{business_id:e.variables.businessID,event_data:{event_location:"bizweb",event_name:"decline_clicked",event_type:"ui"},user_id:null}})},title:d("MixedPermissionsBackwardFixStrings").TOS_DECLINE_CONFIRMATION_TITLE_MIXED_PERMISSIONS})},[j,g,i,e.variables.businessID]);return m.jsxs(c("GeoModal.react"),{footer:m.jsx(c("GeoModalFooter.react"),{primaryButton:m.jsx(c("GeoButton.react"),{label:d("MixedPermissionsBackwardFixStrings").ACCEPT_BUTTON_LABEL,onClick:a,variant:"primary"}),secondaryButton:m.jsx(c("GeoButton.react"),{label:d("MixedPermissionsBackwardFixStrings").DECLINE_BUTTON_LABEL,onClick:l,variant:"default"})}),header:m.jsx(c("GeoGenericModalHeader.react"),{children:m.jsx("div",{className:"x2b8uid",children:m.jsx(c("GeoTextPairing.react"),{description:d("MixedPermissionsBackwardFixStrings").TOS_MODAL_DESCRIPTION_MIXED_PERMISSIONS,heading:d("MixedPermissionsBackwardFixStrings").TOS_MODAL_HEADING_MIXED_PERMISSIONS(g),size:"header2",textAlign:"center"})})}),onHide:function(){},width:600,children:[m.jsx(c("GeoDivider.react"),{xstyle:[c("geoMargin").vert8,c("geoMargin").horiz16]}),f&&m.jsx("div",babelHelpers["extends"]({},(k||(k=c("stylex"))).props(b),{children:m.jsx(c("ToSBusinessInfo.react"),{businessRef:f})})),m.jsx(c("GeoDivider.react"),{xstyle:[c("geoMargin").vert8,c("geoMargin").horiz16]}),f&&m.jsx("div",babelHelpers["extends"]({},(k||(k=c("stylex"))).props(b),{children:m.jsx(c("ToSUserInfo.react"),{businessName:(a=f.name)!=null?a:"",businessRef:f})})),m.jsx(c("GeoDivider.react"),{xstyle:[c("geoMargin").vert8,c("geoMargin").horiz16]}),m.jsx("div",babelHelpers["extends"]({},(k||(k=c("stylex"))).props(b),{children:m.jsx(c("GeoBaseText.react"),{color:"valueDescription",size:"valueDescription",children:d("MixedPermissionsBackwardFixStrings").TOS_MODAL_ACTION_TEXT_MIXED_PERMISSIONS(g,i)})}))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
ToSModal_pageQuery.graphql",["ToSModal_pageQuery_facebookRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"pageID"}],c=[{kind:"Variable",name:"id",variableName:"pageID"}],d={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],type:"Page",abstractKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"ToSModal_pageQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[d],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"ToSModal_pageQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("ToSModal_pageQuery_facebookRelayOperation"),metadata:{},name:"ToSModal_pageQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
ToSModal_businessQuery.graphql",["ToSModal_businessQuery_facebookRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"businessID"}],c=[{kind:"Variable",name:"id",variableName:"businessID"}],d={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"ToSModal_businessQuery",selections:[{alias:null,args:c,concreteType:"AdBusiness",kind:"LinkedField",name:"business",plural:!1,selections:[d,{args:null,kind:"FragmentSpread",name:"ToSBusinessInfo_business"},{args:null,kind:"FragmentSpread",name:"ToSUserInfo_business"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"ToSModal_businessQuery",selections:[{alias:null,args:c,concreteType:"AdBusiness",kind:"LinkedField",name:"business",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"creation_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"business_verification_status",storageKey:null},{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBBusinessProfile",kind:"LinkedField",name:"business_profile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"legal_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"country",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"website_url",storageKey:null},e],storageKey:null},{alias:null,args:null,concreteType:"BusinessUser",kind:"LinkedField",name:"business_user_for_viewer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null},d,e],storageKey:null},e],storageKey:null}]},params:{id:b("ToSModal_businessQuery_facebookRelayOperation"),metadata:{},name:"ToSModal_businessQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
ToSModal.entrypoint",["JSResourceForInteraction","ToSModal_businessQuery$Parameters","ToSModal_pageQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var b=a.businessID;a=a.pageID;return{extraProps:{businessID:b,pageID:a},queries:{businessQueryRef:{parameters:c("ToSModal_businessQuery$Parameters"),variables:{businessID:b}},pageQueryRef:{parameters:c("ToSModal_pageQuery$Parameters"),variables:{pageID:a}}}}},root:c("JSResourceForInteraction")("ToSModal.react").__setRef("ToSModal.entrypoint")};g["default"]=a}),98);
-----
ToSModal_pageQuery$Parameters",["ToSModal_pageQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("ToSModal_pageQuery_facebookRelayOperation"),metadata:{},name:"ToSModal_pageQuery",operationKind:"query",text:null}};e.exports=a}),null);
-----
ToSModal_businessQuery$Parameters",["ToSModal_businessQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("ToSModal_businessQuery_facebookRelayOperation"),metadata:{},name:"ToSModal_businessQuery",operationKind:"query",text:null}};e.exports=a}),null);
-----
ToSModal_pageQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="25057622003829981"}),null);
-----
ToSModal_businessQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="25045112858414233"}),null);
-----
CatalogCreationMarketplacePartnerSellerTOSModalQuery.graphql",["CatalogCreationMarketplacePartnerSellerTOSModalQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"cmsID"}],c=[{kind:"Variable",name:"object_id",variableName:"cmsID"},{kind:"Literal",name:"requester_uri",value:""}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CatalogCreationMarketplacePartnerSellerTOSModalQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"galaxy_cms_object",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBGalaxyCMSReactBlockContent",kind:"LinkedField",name:"cms_content",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"GalaxyCMSReactBlock_content"}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CatalogCreationMarketplacePartnerSellerTOSModalQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"galaxy_cms_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"XFBGalaxyCMSReactBlockContent",kind:"LinkedField",name:"cms_content",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"json_cms_content",storageKey:null},{alias:null,args:null,concreteType:"GalaxyCMSJSDependency",kind:"LinkedField",name:"js_dependencies",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"dependency",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("CatalogCreationMarketplacePartnerSellerTOSModalQuery_facebookRelayOperation"),metadata:{},name:"CatalogCreationMarketplacePartnerSellerTOSModalQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
CatalogCreationMarketplacePartnerSellerTOSModalQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24730220736580208"}),null);
-----
BizWebCometOmniAiSMBPhotos.react",["BizWebCometOmniAIA1OnboardingUtils","BizWebCometOmniAISMBPhotosUtils","BizWebCometOmniAiSMBPhotosConsts","BizWebCometOmniAiSMBPhotosModal.react","BizWebCometOmniAiSMBPhotosTable.react","BizWebCometOmniAiSMBPricelistConsts","CometRelayErrorHandling","GeoFileSelector.react","GeoVStack.react","MessagingAIOnboardingFlowLoggingUtils","filterNulls","nullthrows","react","useBizAIFileUploader"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||c("react"),j=["image/jpg","image/jpeg","image/png"];function a(a){var b=a.pageID;a=a.photosState;var e=a.commitExtractImage,f=a.products,g=a.selectedProductID,h=a.setProducts,k=a.setSelectedProductID;a=c("useBizAIFileUploader")();var l=a.uploadImage;function m(a){var b=c("nullthrows")(a.file,"Expected file in image state"),d=a.id;return l({file:b,onFailure:function(b){return babelHelpers.extends({},a,{src:b,status:"failed"})},onSuccess:function(b,c){return babelHelpers.extends({},a,{handle:c,src:b,status:"uploaded"})},sessionKey:d})}function n(a,f){h(function(b){return d("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(b,{id:a,status:"extracting"})}),e({onCompleted:function(e){d("MessagingAIOnboardingFlowLoggingUtils").logSMBEvents("photos_ui_extraction_success",b,null,null,null);var f=e.xfb_biz_ai_photos_product_group_extraction.product;h(function(b){var e;return(e=d("BizWebCometOmniAISMBPhotosUtils")).maybeUpdateProduct(b,{data:{currency:e.formatExtractionString(f.currency,"USD"),description:e.formatExtractionString(f.description),name:e.formatExtractionString(f.name),price:Boolean(f==null?void 0:f.price)?c("nullthrows")(f.price)/100:f==null?void 0:f.price},id:a,status:"extracted"})})},onError:function(c){d("MessagingAIOnboardingFlowLoggingUtils").logSMBExceptions("photos_ui_extraction_failed",b,null,null,null,c),d("BizWebCometOmniAIA1OnboardingUtils").shouldSilenceError(c)&&d("CometRelayErrorHandling").markErrorAsHandled(c),h(function(b){return d("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(b,{id:a,status:"extraction-failed"})})},variables:{input:{files:c("filterNulls")(f.map(function(a){return a.handle})),page_id:b,request_id:a}}})}async function o(a,c,e){d("MessagingAIOnboardingFlowLoggingUtils").logSMBEvents("photos_ui_files_selected",b,null,null,null,{files:String(a.length)});if(a.length===0)return;a=a.map(d("BizWebCometOmniAISMBPhotosUtils").createImage);if(c==null){var f=d("BizWebCometOmniAISMBPhotosUtils").createProduct(a);h(function(a){return[].concat(a,[f])});k(f.id);var g=await Promise.all(a.map(m));h(function(a){return d("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(a,babelHelpers.extends({},f,{images:g,status:"uploaded"}))});var i=f.id;await n(i,g)}else{var j=[].concat(c.images,a),l=c.id;h(function(a){return d("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(a,{id:l,images:j,status:Boolean(e)?"uploading":"uploaded"})});var o=await Promise.all(a.map(m)),p=j.map(function(a){var b=o.find(function(b){return b.id===a.id});return b!=null?b:a});h(function(a){return d("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(a,{id:l,images:p})});Boolean(e)&&await n(l,o)}}function p(a,b){return b.length>d("BizWebCometOmniAiSMBPhotosConsts").MAX_FILE_COUNT?d("BizWebCometOmniAiSMBPricelistConsts").getExceedCountFbt(d("BizWebCometOmniAiSMBPhotosConsts").MAX_FILE_COUNT):null}var q=f.find(function(a){return a.id===g});return i.jsxs(c("GeoVStack.react"),{context:"container",relation:"section",children:[i.jsx(c("GeoVStack.react"),{children:i.jsx(c("GeoFileSelector.react"),{allowMultiple:!0,customValidators:[p],description:null,fileTypes:j,label:f.length===0?d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_FILE_SELECTOR_FIRST_LABEL:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_FILE_SELECTOR_ANOTHER_LABEL,onChange:o,value:[]})}),f.length>0&&i.jsx(c("BizWebCometOmniAiSMBPhotosTable.react"),{onRowClick:function(a){return k(a.id)},products:f}),q!=null&&i.jsx(c("BizWebCometOmniAiSMBPhotosModal.react"),{onCreateNew:function(){var a=d("BizWebCometOmniAISMBPhotosUtils").createProduct([],"uploaded");h(function(b){return[].concat(b,[a])});k(a.id)},onHide:function(){return k(null)},onRemove:function(){h(f.filter(function(a){return a.id!==q.id}))},onSelectFiles:o,onUpdate:function(a){h(function(b){return d("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(b,a)})},pageID:b,product:q},""+q.id+String(d("BizWebCometOmniAISMBPhotosUtils").isProductStatus(q,"extracted")))]})}a.displayName=a.name+" [from "+f.id+"]";g.default=a}),98);
-----
BizWebCometOmniAiSMBPhotosModal.react",["ix","BizMsgPlatformCurrencySelector.react","BizWebCometOmniAISMBPhotosUtils","BizWebCometOmniAiSMBImageMedia.react","BizWebCometOmniAiSMBPhotosConsts","BizWebCometOmniAiSMBPricelistConsts","GeoButton.react","GeoButtonLoadingState.react","GeoCurrencyInput.react","GeoFileSelector.react","GeoGrid.react","GeoGridItem.react","GeoGridTypes","GeoInputGroup.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoSpinner.react","GeoTextArea.react","GeoTextInput.react","GeoTextPairing.react","GeoVStack.react","Image.react","MessagingAIOnboardingFlowLoggingUtils","fbicon","geoMargin","isEmpty","isStringNullOrWhitespaceOnly","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||c("react"),m=(i||(i=d("react"))).useState,n=96;function o(){return{}}function a(a){var b,e,f=a.onCreateNew,g=a.onHide,i=a.onRemove,k=a.onSelectFiles,q=a.onUpdate,r=a.pageID,s=a.product;a=m((a=(a=s.data)==null?void 0:a.name)!=null?a:"");var t=a[0];a=a[1];b=m((b=(b=s.data)==null?void 0:b.description)!=null?b:"");var u=b[0];b=b[1];e=m((e=s.data)==null?void 0:e.price);var v=e[0];e=e[1];var w=m(o()),x=w[0],y=w[1];w=(w=(w=s.data)==null?void 0:w.currency)!=null?w:"USD";var z=s.images.some(function(a){return d("BizWebCometOmniAISMBPhotosUtils").isImageStatus(a,"uploading")});function A(){var a={};c("isStringNullOrWhitespaceOnly")(t)&&(a.name=d("BizWebCometOmniAiSMBPhotosConsts").REQUIRED_FIELD_VALIDATION);s.images.length===0&&(a.images=d("BizWebCometOmniAiSMBPhotosConsts").REQUIRED_FIELD_VALIDATION);return a}var B=d("BizWebCometOmniAISMBPhotosUtils").isProductStatus(s,["extracting","uploading"]),C=!B;function D(a,b){return b.length+s.images.length>d("BizWebCometOmniAiSMBPhotosConsts").MAX_FILE_COUNT?s.images.length===0?d("BizWebCometOmniAiSMBPricelistConsts").getExceedCountFbt(d("BizWebCometOmniAiSMBPhotosConsts").MAX_FILE_COUNT):"":null}async function E(a,b){s.images.length===0&&y(o()),await k(a,s,b)}return l.jsx(c("GeoModal.react"),{footer:l.jsx(c("GeoModalFooter.react"),{primaryButton:B?l.jsx(c("GeoButtonLoadingState.react"),{}):l.jsx(c("GeoButton.react"),{label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_MODAL_PRIMARY_BUTTON,onClick:function(){if(C){var a=A();if(!(j||(j=c("isEmpty")))(a)){y(a);return}d("MessagingAIOnboardingFlowLoggingUtils").logSMBEvents("photos_ui_add_product_clicked",r,null,null,null);y(o());q(d("BizWebCometOmniAISMBPhotosUtils").updateProductData(s,{description:u,name:t,price:v}))}g("transition")},variant:"primary"}),secondaryButton:C?l.jsx(c("GeoButton.react"),{label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_MODAL_SECONDARY_BUTTON,onClick:function(){var a=A();if(!(j||(j=c("isEmpty")))(a)){y(a);return}d("MessagingAIOnboardingFlowLoggingUtils").logSMBEvents("photos_ui_add_another_product_clicked",r,null,null,null);f();y(o())}}):void 0,startContent:C&&l.jsx(c("GeoButton.react"),{icon:d("fbicon")._(h("483828"),16),label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_MODAL_REMOVE_BUTTON,onClick:function(){i(),g("transition")},variant:"default"})}),header:l.jsx(c("GeoModalHeader.react"),{description:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_MODAL_DESCRIPTION,heading:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_MODAL_TITLE}),isShown:!0,onHide:g,children:l.jsx(c("GeoSection.react"),{children:B?l.jsxs(c("GeoVStack.react"),{alignItems:"center",justifyContent:"center",style:{minHeight:300},children:[l.jsx(c("GeoSpinner.react"),{}),l.jsx(c("GeoTextPairing.react"),{description:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_EXTRACTION_DESCRIPTION,heading:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_EXTRACTION_LABEL,size:"header4",textAlign:"center"})]}):l.jsxs(c("GeoVStack.react"),{children:[s.images.length>0?l.jsxs(c("GeoGrid.react"),{rowGap:16,templateColumns:d("GeoGridTypes").GridRepeat.track(5,d("GeoGridTypes").GridSize.len(n+16,"px")),xstyle:c("geoMargin").top8,children:[s.images.map(function(a){var b;return l.jsx(c("GeoGridItem.react"),{children:l.jsx(c("BizWebCometOmniAiSMBImageMedia.react"),{fileName:(b=a.file)==null?void 0:b.name,fit:"cover",isLoading:d("BizWebCometOmniAISMBPhotosUtils").isImageStatus(a,"uploading"),media:a.src!=null?l.jsx(c("Image.react"),{src:a.src}):null,onClose:function(){q(babelHelpers.extends({},s,{images:s.images.filter(function(b){b=b.id;return b!==a.id})}))},showCloseButton:!z,size:n,status:d("BizWebCometOmniAISMBPhotosUtils").isImageStatus(a,"failed")?"error":void 0})},a.id)}),l.jsx(c("GeoGridItem.react"),{alignSelf:"center",style:{width:n},children:l.jsx(c("GeoFileSelector.react"),{allowMultiple:!0,customValidators:[D],description:null,errorMessage:x.images,fileTypes:["image/jpg","image/jpeg","image/png"],isLabelHidden:!0,label:d("BizWebCometOmniAiSMBPricelistConsts").PRICELIST_FILE_SELECTOR_LABEL,onChange:function(a){return E(a,!1)},value:[],variant:"drop"})})]}):l.jsx(c("GeoFileSelector.react"),{allowMultiple:!0,customValidators:[D],description:null,errorMessage:x.images,fileTypes:["image/jpg","image/jpeg","image/png"],isLabelHidden:!0,label:d("BizWebCometOmniAiSMBPricelistConsts").PRICELIST_FILE_SELECTOR_LABEL,onChange:function(a){return E(a,!0)},value:[]}),l.jsx(c("GeoTextInput.react"),{errorMessage:x.name,label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_NAME_LABEL,maxLength:200,onChange:a,placeholder:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_NAME_PLACEHOLDER,value:t}),l.jsxs(c("GeoInputGroup.react"),{label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_PRICE_LABEL,children:[l.jsx(c("BizMsgPlatformCurrencySelector.react"),{currencyCode:w,label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_CURRENCY_LABEL,onChange:function(a){q(d("BizWebCometOmniAISMBPhotosUtils").updateProductData(s,{currency:a}))},xstyle:p.small}),l.jsx(c("GeoCurrencyInput.react"),{currency:w,isOptional:!0,label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_PRICE_LABEL,onChange:e,placeholder:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_PRICE_PLACEHOLDER,showSymbol:!0,value:v})]}),l.jsx(c("GeoTextArea.react"),{isOptional:!0,isResizable:!1,label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_DESCRIPTION_LABEL,maxLength:2e3,onChange:b,placeholder:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_DESCRIPTION_PLACEHOLDER,shouldAutoGrow:!0,value:u})]})})})}a.displayName=a.name+" [from "+f.id+"]";var p={small:{maxWidth:"xflt7ov",$$css:!0}};g.default=a}),98);
-----
CatalogCreationMarketplacePartnerSellerTOSModal.react",["fbt","GeoButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","react","useVPVDImpression"],(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.useState;function a(a){var b=a.isShown,d=a.mutationInFlight,e=a.onAccept;a=a.onHide;var f=l(!0),g=f[0],i=f[1];f=k(function(){i(!1)},[]);f=c("useVPVDImpression")({onVPVDEnd:function(){},onVPVDStart:(f=f)!=null?f:function(){}});f=f[0];return j.jsx(c("GeoModal.react"),{footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{isDisabled:d||g,isLoading:d,label:h._(/*BTDS*/"Accept Terms of Service"),variant:"primary",onClick:e}),startContent:j.jsx(c("GeoText.react"),{textAlign:"start",children:h._(/*BTDS*/"{Link}",[h._param("Link",j.jsx(c("GeoLink.react"),{href:"https://www.facebook.com/legal/marketplacepartnerprogram",rel:"noopener noreferrer",target:"_blank",children:"Facebook Marketplace integration Terms"}))])})}),header:j.jsx(c("GeoModalHeader.react"),{heading:h._(/*BTDS*/"Review Terms of Service")}),isShown:b,onHide:a,children:j.jsxs(c("GeoSection.react"),{children:[j.jsx("h2",{children:j.jsx("u",{children:"Facebook Marketplace Integration Terms of Service for the European Economic Area"})}),j.jsxs("p",{children:["These Facebook (",j.jsx("b",{children:FB}),") Marketplace Integration Terms of Service for the European Economic Area (these u201c",j.jsx("b",{children:"Marketplace Integration Terms"}),"u201d) are entered into by and between"," ",j.jsx("b",{children:"Meta Platforms, Inc."})," and ",j.jsx("b",{children:"Meta Platforms Ireland Limited"})," ","(collectively, u201c",j.jsx("b",{children:"Meta"}),"u201d) and the person or entity accepting these Marketplace Integration Terms (u201c",j.jsx("b",{children:"you"}),"u201d), and are effective as of the date you indicate your assent to these Marketplace Integration Terms by clicking u201cagreeu201d or u201cacceptu201d (the u201c",j.jsx("b",{children:"Effective Date"}),"u201d). If you are accepting on behalf of a legal entity, you represent and warrant that you are an authorized representative of such entity with the authority to bind it to these Marketplace Integration Terms. As used herein, you and Meta are each referred to as a u201c",j.jsx("b",{children:"Party"}),"u201d or, collectively, as the u201c",j.jsx("b",{children:"Parties"}),"u201d. Capitalized terms that are not defined in the body of these Marketplace Integration Terms will have the meanings set forth in ",j.jsx("u",{children:"Exhibit A"})," (",j.jsx("u",{children:"Definitions"}),") or the Meta Online Terms (as defined below), as applicable."]}),j.jsx("p",{children:"You and Meta agree as follows:"}),"1. Your Integration.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Generally"}),". These Marketplace Integration Terms shall govern the integration (using the FBM Technology) of your online classifieds marketplace with FB Marketplace in order to allow certain of your Listings to be surfaced within FB Marketplace within the European Economic Area (u201cEEAu201d), as described herein (such integration, your u201c",j.jsx("b",{children:"Integration"}),"u201d). In order to have an Integration under these Marketplace Integration Terms, you must meet the"," ",j.jsx("a",{href:"https://www.facebook.com/business/help/646509171194744",children:j.jsx("u",{children:"partner eligibility requirements"})})," ","(all such eligible partners collectively, u201cOCAS Partnersu201d)."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Specifications"}),". Your Integration must comply with the Specifications, which may be updated, modified, or replaced by Meta from time to time with prior written notice to you of any material changes, in the same manner and form that Meta uses to provide notice to similarly-situated partners. If at any time your Integration fails to comply with the Specifications, Meta may suspend or deactivate your Integration. If updates to the Specifications or FBM Technology are made available, then you will apply those updates to your Integration as soon as practicable in accordance with your general development and release schedule; provided that if Meta notifies you that an update is necessary to comply with applicable law or an order, agreement, understanding, settlement or recommendation by a government agency or regulatory authority, then you must apply those updates within the time period specified by Meta. Without limitation, your Integration must enable at a minimum:"]})}),j.jsxs("ol",{type:"i",children:[j.jsx("p",{children:j.jsxs("li",{children:["Meta to view a feed of all Eligible Listings (defined below), including Listing Content (defined below) for each Eligible Listing (u201c",j.jsx("b",{children:"Listing Catalog"}),"u201d);"]})}),j.jsx("p",{children:j.jsxs("li",{children:["Meta to specifically authorize certain Eligible Listings in the Listing Catalog for display on FB Marketplace (such authorized Eligible Listings, u201c",j.jsx("b",{children:"Approved Listings"}),"u201d);"]})}),j.jsx("p",{children:j.jsx("li",{children:"Buyers to purchase Goods offered for sale by an Approved Listing on your online classifieds marketplace; and"})}),j.jsx("p",{children:j.jsxs("li",{children:["you to provide Meta with the categories of data categorized as u201cSeller Datau201d in the Specifications (such data along with any other data you may provide Meta via the Integration, u201c",j.jsx("b",{children:"Seller Data"}),"u201d), and Meta to provide you with the data categorized as u201cMeta Click Identifier Datau201d in the Specifications (such data along with any other data Meta may provide you via the Integration other than Performance Data, u201c",j.jsx("b",{children:"Meta Click Identifier Data"}),"u201d). In addition, Meta will provide you with the performance and analytics data categorized as u201cPerformance Datau201d in the Specifications (u201c",j.jsx("b",{children:"Performance Data"}),"u201d), and such Performance Data will be deemed Metau2019s Confidential Information. Seller Data, Meta Click Identifier Data and Performance Data are to be transmitted via the methods indicated by Meta, including by using the FBM Technology (e.g., through the APIs designated by Meta), and in accordance with any applicable Specifications, including the transmission frequencies set forth in the Specifications."," "]})})]}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Service Levels"}),". Your Integration must meet the inventory refresh standards and other requirements set forth in Metau2019s"," ",j.jsx("a",{href:"https://www.facebook.com/business/help/1780602339444274",children:j.jsx("u",{children:"Service Level documentation"})})," ","(the u201c",j.jsx("b",{children:"Service Level Requirements"}),"u201d). If your Integration does not comply with the Service Level Requirements as determined by Metau2019s systems and records, Meta may (i) suspend or deactivate your Integration, or (ii) in the case of a failure to meet the Freshness Standard specified in the Service Level Requirements, take the corresponding actions specified therein."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Control"}),". Notwithstanding anything to the contrary, Meta retains the sole ownership, decision-making authority, and control over FB Marketplace, including: (i) whether to suspend or discontinue the availability of your Integration if Meta determines that you are in violation of these Marketplace Integration Terms; (ii) Metau2019s ranking methodology and the conditions under which Listings are displayed on FB Marketplace; (iii) the countries and regions within the EEA where Listings may be viewed on FB Marketplace; and (iv) how Approved Listings are displayed (subject to Section 2(c)) on FB Marketplace via your Integration. Subject to the foregoing, each Party will have sole ownership, decision-making authority, and control over its and its Affiliatesu2019 products and services. Except as otherwise contemplated by these Marketplace Integration Terms, including the Specifications, you retain sole ownership, decision-making authority, and control over the content displayed on your online classifieds marketplace (including within the browser window that a Buyer is taken to after clicking on a call-to-action button within the FB Marketplace PDP), and Meta will not alter any disclosures, links or other content included therein."]})})]}),"2. Listings.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Eligible Listings"}),". In order for a Listing to be eligible to appear on FB Marketplace via your Integration (an u201c",j.jsx("b",{children:"Eligible Listing"}),"u201d), it must (i) comply with the Facebook Community Standards (currently available at"," ",j.jsx("a",{href:"https://transparency.fb.com/policies/community-standards/",target:"_blank",children:"https://transparency.fb.com/policies/community-standards/"}),"), the Commerce Policies (currently available at"," ",j.jsx("a",{href:"https://www.facebook.com/policies_center/commerce/",target:"_blank",children:"https://www.facebook.com/policies_center/commerce/"}),"), and the FB Marketplace listing requirements (currently available at"," ",j.jsx("a",{href:"https://www.facebook.com/help/153832041692242",target:"_blank",children:"https://www.facebook.com/help/153832041692242"}),") (collectively, the u201c",j.jsx("b",{children:"FB Marketplace Policies"}),"u201d), and (ii) meet the"," ",j.jsx("a",{href:"https://www.facebook.com/business/help/1995010967686934",children:j.jsx("u",{children:"Additional Eligibility Requirements"})}),", which Meta may update from time to time (together with the FB Marketplace Policies, the u201c",j.jsx("b",{children:"Eligibility Requirements"}),"u201d). If your Listings repeatedly fail to meet the Eligibility Requirements as determined by Metau2019s systems and records, Meta may remove such Listings, remove (or require you to remove) the offending Seller(s), or suspend or deactivate your Integration. If Meta has further concerns regarding the failure of your Listings to meet the FB Marketplace Policies, Meta will, prior to taking any enforcement action aside from those listed in the previous sentence, refer the matter to an escalation process between the parties."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Sellers"}),". Without limiting the Eligibility Requirements, you will use commercially reasonable efforts to ensure each Seller associated with a Listing sent via the Integration is a consumer, as opposed to a business, trader or professional account. Meta reserves the right to (i) remove any Seller or any Listings associated with a Seller that Meta determines is not a consumer, based on Metau2019s systems and records and/or other information available to Meta, and/or (ii) limit the number and/or types of Listings displayed on FB Marketplace from a given Seller within a specific time period."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Presentation"}),". Meta may display Eligible Listings, and present such Listings to Buyers, on FB Marketplace in a manner and form that is generally consistent with the display and presentation of other listings on FB Marketplace, which will be determined by Meta, and subject to any changes made to safeguard the user experience. To the extent Meta displays an Eligible Listing on FB Marketplace, such Eligible Listing may include any content, materials, data or other information provided by you via your Integration in connection with such Eligible Listing (u201c",j.jsx("b",{children:"Listing Content"}),"u201d), including price, description, images, condition, Seller information, shipping cost and estimated delivery time, provided that (i) the Eligible Listing as displayed on FB Marketplace will include the u201cCore Fieldsu201d listed in the Specifications, and (ii) Meta may modify such Listing Content as necessary to display them on FB Marketplace (e.g., for truncation of text or images to fit the FB Marketplace look and feel, character or image limit, or other listing policies, and to compensate for any caching or update times), provided that Meta will provide the Buyer with the ability to view the full Listing Content by clicking on a link (e.g., a u201csee moreu201d link). Meta may also update a Listing to include new or updated Listing Content that is provided by you via your Integration. Subject to the foregoing, Meta may not change the Listing Content."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Required Content"}),". Each Listing in the Listing Catalog must include (i) all of the Seller ID Data set forth in the Specifications, and (ii) the following Listing Content at a minimum: (1) a description of and the price for the applicable Good, which should include any taxes and fees due to be paid, to the extent applicable; (2) shipping and/or local pickup information for the applicable Good; (3) required legal disclosures, to the extent applicable; and (4) any other Listing Content required by the Specifications or reasonably requested by Meta. In order to maintain the accuracy of Listings, you will promptly notify Meta in the manner contemplated by the Specifications of any changes to such information."]})})]}),"3. Takedowns and Opt-Outs.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"By Meta"}),". Meta may remove any Listings displayed on FB Marketplace via your Integration (i) if Meta determines that the Listing is not an Eligible Listing, or (ii) in accordance with Metau2019s standard course of operation consistent with the treatment of other listings on FB Marketplace. Meta may make available to you, within Commerce Manager or through other means, information regarding takedowns or policy violations associated with your Listings."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"By You"}),". You will promptly remove any Listing displayed on FB Marketplace via your Integration promptly after becoming aware of any facts or circumstances that reasonably indicate such Listing is not an Eligible Listing."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Seller Requests"}),". A Seller may request that its Seller Data (in whole or in any part) be deleted from, or ceased to be displayed on, FB Marketplace via your Integration (or Meta may notify you that it has received such a request from a Seller) (each, a u201c",j.jsx("b",{children:"Seller Removal Reques"}),"tu201d), and following any such Seller Removal Request, you shall: (1) promptly delete such Seller Data from your Listing Catalog within thirty (30) days of receipt of a Seller Removal Request; and (2) cease sending any other Seller Data associated with such Seller via your Integration. You will maintain a support mechanism to facilitate the making, receipt, and execution of any Seller Removal Requests (such support mechanism, the u201c",j.jsx("b",{children:"Seller Removal Support Mechanism"}),"u201d). Meta may maintain a Facebook Help Center article concerning your Integration and directing Sellers wishing to make a Seller Removal Request to the Seller Removal Support Mechanism. You will promptly notify Meta in writing of any changes to the Seller Removal Support Mechanism that may require Meta to update such Facebook Help Center article."]})})]}),"4. Data and Content.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Meta Click Identifier Data"}),". For clarity, all Meta Click Identifier Data is subject to and governed under the Platform Terms, including without limitation Sections 3 and 6 of the Platform Terms. Without limiting the foregoing, you may use Meta Click Identifier Data only to attribute a particular engagement back to FB Marketplace (which, for clarity, includes optimizing inventory to be sent to Meta via the Integration). You may not use Meta Click Identifier Data for any purpose other than as expressly set forth in these Marketplace Integration Terms."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Seller Data"}),". For clarity, all Seller Data is subject to and governed under the Meta Online Terms. With respect to Seller Data, Meta will comply with Metau2019s Data Security Terms (currently accessible online at"," ",j.jsx("a",{href:"https://m.facebook.com/legal/terms/data_security_terms",target:"_blank",children:"https://m.facebook.com/legal/terms/data_security_terms"}),") (u201c",j.jsx("b",{children:"DST"}),"u201d), and for purposes of these Marketplace Integration Terms references to Covered Data in the DST will be construed as references to Seller Data. Meta will not use non-public data that OCAS Partners provide, or that is generated by OCAS Partnersu2019 listings, in the context of OCAS Partnersu2019 integration into FB Marketplace in the EEA, in competition with OCAS Partners, i.e., to improve any elements of FB Marketplace in the EEA that OCAS Partners do not have access to or do not benefit from. Meta has systems and controls designed to prevent such use. Notwithstanding the above, to the extent permissible under applicable law, Meta will not be held liable to the extent (i) unintentional data use occurs due to a technical glitch or malfunction of its systems (u201cUnintended Useu201d); or (ii) data use occurs only in an immaterial way under the circumstances (u201cImmaterial Useu201d). Upon discovery of any Unintended Use or Immaterial Use, Meta will use good faith efforts to remedy such Unintended Use or Immaterial Use promptly."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"GDPR"}),". To the extent the following categories of data include personal information under the General Data Protection Regulation (Regulation (EU) 2016/679) (the u201c",j.jsx("b",{children:"GDPR"}),"u201d):"]})}),j.jsxs("ol",{type:"i",children:[j.jsx("p",{children:j.jsxs("li",{children:["Meta will act as data controller for (i) personal information collected when a user interacts with Metau2019s platform via FB Marketplace, and (ii) personal information within the Seller Data for purposes of ranking and recommendations, to ensure the safety, security, and integrity of Metau2019s services, and to comply with applicable law. In addition, Meta will act as data controller, and you as data processor, for all personal information within the Meta Click Identifier Data (including Click ID) that Meta provides to you in connection with the Integration. The relevant provisions of the Data Protection Addendum available at"," ",j.jsx("a",{href:"https://www.facebook.com/legal/terms/Privacy",target:"_blank",children:"https://www.facebook.com/legal/terms/Privacy"})," ","(or successive location) shall apply when Meta acts as the data controller."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:["Meta will act as data processor or sub-processor, as applicable, for personal information within the Seller Data for all other purposes not listed above. The Meta Global Processor Terms available at"," ",j.jsx("a",{href:"https://www.facebook.com/legal/terms/Meta-Global-Processor-Terms",target:"_blank",children:"https://www.facebook.com/legal/terms/Meta-Global-Processor-Terms"})," ","(or successive location) shall apply when Meta acts as the data processor."]})})]})]}),"5. Dealings with Buyers and Sellers.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Support"}),". You acknowledge and agree that you will be solely responsible for, and Meta will have no obligation in connection with, resolving any issues communicated to you by a Buyer or Seller in so far as they relate to: (i) any Listings, or Goods offered for sale in Listings, displayed on FB Marketplace via your Integration; and (ii) customer support to a Buyer after it has purchased a Good via your Integration, including (to the extent applicable) transaction confirmation emails, delivery notices, customer service, and returns. Meta acknowledges and agrees that it will be solely responsible for, and you will have no obligation in connection with, providing any Buyer with customer support with respect to their access and use of FB Marketplace. The parties will work together to resolve any bugs, technical, performance and capacity issues that may arise in relation to your Integration."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Ensuring Compliance"}),". You will not, and you will ensure that Sellers do not, use FB Marketplace via your Integration in a manner, or for purposes, that violates applicable law or these Marketplace Integration Terms or that otherwise result in a breach or violation of the Meta Online Terms. Unless prohibited by applicable law, you will notify Meta promptly, and in writing, upon becoming aware of any actual or suspected violation by you or any Seller of applicable law in connection with the Integration."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Communications"}),". You will not engage in any communications with Buyers or Sellers that purport to: (i) be on behalf of Meta or its Affiliates; or (ii) limit Metau2019s or its Affiliatesu2019 rights or to subject or otherwise bind Meta or its Affiliates to any obligations, including any obligation to provide Buyers or Sellers with any refunds or other payments, or any obligation to take any other action with respect to Buyers or Sellers, or the sales made through FB Marketplace via your Integration."," "]})})]}),"6. Fees; Payment; Taxes.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Fees"}),". In consideration of Meta providing you with the ability to enable and offer your Integration, you will pay to Meta a fee calculated on a cost-per-click basis as applied to each call-to-action button that takes a user to your online classifieds marketplace, as determined and communicated to you by Meta (the u201c",j.jsx("b",{children:"Integration Fees"}),"u201d). Metau2019s data and records will be used to calculate all Integration Fees. Notwithstanding the foregoing, Meta may communicate to you in writing an offer for a free use period or discount on the Integration Fees, in which case the Integration Fees will be adjusted to reflect such offer."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Payment"}),". Meta will extend a line of credit to you and will issue you invoices on a monthly basis. You will pay all Integration Fees due under these Marketplace Integration Terms, in full and cleared funds, via the electronic payment method(s) directed or authorized by Meta and in a currency supported by Meta. All Integration Fees are due within thirty (30) days following the invoice date. If the credit limit is exceeded earlier than thirty (30) days following the invoice date, earlier payment may be required in order to avoid loss of service."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Taxes"}),". You will be responsible for all sales, use, excise, and value added taxes, and any other similar taxes, duties, and charges of any kind imposed by any federal, state, or local Governmental Authority on any amounts payable by you hereunder (which, for clarity, includes the Integration Fees, but excludes any taxes that are based upon Metau2019s net or gross income or gross receipts), and shall pay all such amounts hereunder free and clear of all deductions and withholdings whatsoever, unless the deduction or withholding is required by applicable law. If any deduction or withholding is required by applicable law, you shall pay to Meta such sum as well, after the deduction or withholding has been made, leaving Meta with the same amount as it would have been entitled to receive without any such requirement to make a deduction or withholding."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Surcharges and Additional Fees"}),". You will not charge Sellers any unique surcharges or additional fees to specifically display their Listings on FB Marketplace via your Integration. Neither you nor Meta will charge Buyers any unique surcharges, higher prices, or additional fees specifically for the purchase of Goods via your Integration."]})})]}),"7. Confidentiality.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Generally"}),". A Party (each, a u201c",j.jsx("b",{children:"Disclosing Party"}),"u201d) may disclose information, directly or indirectly, to the other Party (each, a u201c",j.jsx("b",{children:"Receiving Party"}),"u201d), and such information will be deemed to be u201c",j.jsx("b",{children:"Confidential Information"}),"u201d if, when it is disclosed, regardless of the form or medium (whether in writing, verbally, electronically, or otherwise): (i) it is designated as confidential by the Disclosing Party; or (ii) it should reasonably be understood by the Receiving Party, given the nature of the information or the circumstances surrounding its disclosure, to be confidential. Confidential Information may include information such as product designs, product plans, data, software and technology, financial information, marketing plans, business opportunities, proposed terms, pricing information, discounts, inventions, and knowu2010how. The Confidential Information of a Party includes Confidential Information disclosed by its Representatives and Affiliates in connection with these Marketplace Integration Terms. Metau2019s Confidential Information includes the FBM Technology. Notwithstanding anything to the contrary, (i) your Listing Content will not be deemed to be Confidential Information and may be used, disclosed, and retained as expressly set forth in these Marketplace Integration Terms, and (ii) Meta Click Identifier Data will not be deemed to be Confidential Information and will instead be governed by the terms set forth elsewhere in this Agreement, including Section 4(a) and the Platform Terms."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Exclusions"}),". The obligations under these Marketplace Integration Terms with respect to Confidential Information, including the restrictions on disclosure and use, do not apply to information that: (i) was in the Receiving Partyu2019s possession prior to receipt from the Disclosing Party; (ii) is or becomes publicly known through no wrongful act or omission of the Receiving Party; (iii) becomes rightfully known by the Receiving Party from an Entity other than the Disclosing Party; or (iv) is independently developed by the Receiving Party without use of or reference to the Disclosing Partyu2019s Confidential Information, as can be shown by documentary evidence."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Use and Disclosure of Confidential Information"}),". A Receiving Party will only use the Confidential Information of a Disclosing Party as required to perform its obligations and exercise its rights under these Marketplace Integration Terms. A Receiving Party will hold the Confidential Information it receives in strict confidence and take appropriate precautions to protect such Confidential Information. A Receiving Party will not disclose the other Partyu2019s Confidential Information to anyone other than to its Affiliates and its and their Representatives, subject to the following conditions: any individual who receives Confidential Information in accordance with the foregoing must: (i) have a u201cneed to knowu201d such Confidential Information for the purposes of the Receiving Party exercising its rights or performing its obligations under these Marketplace Integration Terms; and (ii) be subject to confidentiality obligations covering such Confidential Information."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Permitted Disclosures"}),"."]})}),j.jsxs("ol",{type:"i",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Generally"}),". If a Receiving Party is required to disclose the Confidential Information of a Disclosing Party (except as set forth in ",j.jsx("u",{children:"Section 9(d)(ii)"})," (",j.jsx("u",{children:"Governmental Authorities"}),") below) in response to a subpoena, court order, or other lawful process of a Governmental Authority that validly compels disclosure, the Receiving Party will: (1) notify the Disclosing Party as soon as practicable after learning of the existence or likely existence of such requirement (unless prohibited by applicable law); (2) use reasonable efforts to limit the scope of such disclosure, disclose only the Confidential Information reasonably required to comply with the requirement, and use reasonable efforts to obtain confidential treatment of any Confidential Information; and (3) permit, subject to applicable law, the Disclosing Party to seek a protective order or to otherwise challenge or limit the disclosure of the Confidential Information prior to its disclosure."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Governmental Authorities"}),". Notwithstanding anything to the contrary: (1) a Party may disclose a copy of these Marketplace Integration Terms and any Meta Online Terms, or share their contents with, any Governmental Authority with competent jurisdiction over such Party, if requested, directly or indirectly, by the Governmental Authority; and (2) the Receiving Party may disclose Confidential Information to a Governmental Authority to comply with any bona fide request of such Governmental Authority in connection with a proper exercise of its regulatory power as conferred by applicable law, and in each case of (1) and (2), subject to the Disclosing Party using reasonable efforts to obtain confidential treatment and limiting the scope of disclosure (and for clarity, in the case of (1) and (2), without complying with the foregoing Section 9(d)(i)."]})})]}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Publicity"}),". Neither Party will (and will cause its Affiliates not to) issue any press release regarding these Marketplace Integration Terms, without such other Partyu2019s prior written consent. You agree to cooperate with Meta, in a commercially reasonable manner, in responding to any press inquiries that either Party may receive."]})})]}),"8. Term; Termination; Survival.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Term"}),". These Marketplace Integration Terms will commence on the Effective Date and will remain in effect until terminated in accordance with this Section 8."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Termination"}),". These Marketplace Integration Terms may be terminated by either Party with or without cause immediately upon written notice to the other Party; provided, however, that if you provide written notice of termination, such termination will be deemed effective only after you cease to use the Integration (including disabling all distribution of Listings) and any associated FBM Technology. If Meta provides written notice of termination, you will immediately cease to use the Integration and any associated FBM Technology, and will promptly delete any Meta Click Identifier Data that you possess. Upon you executing a u201cdeleteu201d call on the relevant API(s), Meta will promptly cease to display any Listings (and delete all Listing Content) displayed on FB Marketplace. These Marketplace Integration Terms will immediately terminate if the Platform Terms have been terminated in accordance with Section 7(e) of the Platform Terms."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Survival"}),". The following Sections will survive any termination or expiration of these Marketplace Integration Terms: 4, 5, 6(b), 6(c), 7, 8(b), 8(c) and 10, Exhibit A, and any other terms and provisions of these Marketplace Integration Terms or the Meta Online Terms which are expressly set forth as surviving or which by their nature would be reasonably expected to survive."," "]})})]}),"9. Representations and Warranties. You represent, warrant, and covenant that:",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsx("li",{children:"these Marketplace Integration Terms, and your performance of these Marketplace Integration Terms, will not conflict with any agreement, instrument, or understanding, oral or written, to which you are party or by which you may be bound, including your agreements with Sellers;"})}),j.jsx("p",{children:j.jsx("li",{children:"you will not, and your Integration will not, cause any viruses, worms, time bombs, Trojan horses or other harmful, malicious or destructive code to be installed on or introduced into FB Marketplace or any other Meta Product;"})}),j.jsx("p",{children:j.jsxs("li",{children:["you will honor (and/or require the applicable Seller to honor) any representations, warranties, covenants, commitments and guarantees included in any Listing Content displayed on FB Marketplace via your Integration or that you have otherwise communicated to Buyers or Sellers (e.g., u201cMoney Back Guaranteeu201d) (the u201c",j.jsx("b",{children:"Guarantees"}),"u201d);"," "]})}),j.jsx("p",{children:j.jsx("li",{children:"without limiting Section 2(c)(ii) in the Platform Terms, you have obtained and possess, and will maintain at all times, all authorizations, permissions, consents, rights, licenses, agreements, permits, approvals, registrations, orders, declarations, filings, lawful bases and the like, that are required under applicable law or by a Governmental Authority to provide Meta with the Seller Data, Listings, Listing Catalog and Listing Content and for the Listings and the Listing Content to be displayed on FB Marketplace via your Integration and used as contemplated under these Marketplace Integration Terms, including in connection with the display of feedback scores for Sellers and information about Goods;"})}),j.jsx("p",{children:j.jsx("li",{children:"you will accurately transmit the Seller Data, Listings, Listing Catalog, and Listing Content via your Integration, as provided to you by each relevant Seller; and"})}),j.jsx("p",{children:j.jsx("li",{children:"all Seller Data generated by you and provided to Meta via your Integration or otherwise in connection with these Marketplace Integration Terms is and will be true, accurate, complete, and not misleading."})})]}),"10. Miscellaneous.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:["The Platform Terms (currently available at"," ",j.jsx("a",{href:"https://developers.facebook.com/terms",target:"_blank",children:"https://developers.facebook.com/terms"}),"), Commercial Terms (currently available at"," ",j.jsx("a",{href:"https://www.facebook.com/legal/commercial_terms",target:"_blank",children:"https://www.facebook.com/legal/commercial_terms"}),"), and the Terms of Service (currently available at"," ",j.jsx("a",{href:"https://www.facebook.com/terms",target:"_blank",children:"https://www.facebook.com/terms"}),") (each, together with any other applicable terms and policies referenced in the foregoing, collectively the u201c",j.jsx("b",{children:"Meta Online Terms"}),"u201d) are hereby incorporated into these Marketplace Integration Terms by reference. The FBM Technology and FB Marketplace are part of the u201cPlatformu201d and the u201cMeta Productu201d, in each case, as used in the Meta Online Terms. (i) Your Integration is an u201cApp,u201d (ii) Listing Content, Seller Data, and the Listing Catalog are u201cYour Content,u201d and (iii) Meta Click Identifier Data is u201cPlatform Data,u201d as used in the Platform Terms. Your Integration and your associated interactions with the FBM Technology and FB Marketplace are deemed to be u201caccess or use of the Meta Products for business or commercial purposesu201d as used in the Commercial Terms. You acknowledge and agree that your Integration, your use of the FBM Technology, the display of Listings on FB Marketplace, and the sale of Goods, in each case, via your Integration are subject to and must be in accordance with the Meta Online Terms, as modified and supplemented by these Marketplace Integration Terms. You acknowledge and agree that Meta may update, modify, or replace these Marketplace Integration Terms and the Meta Online Terms at any time. Nothing in these Marketplace Integration Terms will be construed as limiting Metau2019s or any of its Affiliatesu2019 rights, or your obligations, under the Meta Online Terms. Metau2019s rights and obligations under these Marketplace Integration Terms and the Meta Online Terms may be exercised or performed by Meta or any of its Affiliates (as determined by Meta). In the event of any conflict between these Marketplace Integration Terms and the Meta Online Terms, these Marketplace Integration Terms will control, solely to the extent of the conflict."]})}),j.jsx("p",{children:j.jsxs("li",{children:["These Marketplace Integration Terms (which, for clarity, include the Meta Online Terms) represent the entire agreement between the parties with respect to the subject matter hereof and supersede any previous or contemporaneous oral or written representations and agreements regarding the same. The Parties acknowledge and agree that these Marketplace Integration Terms, and the relationship between the Parties, do not impose any obligations of exclusivity on either Party. Meta and its Affiliates are under no obligation to guarantee a minimum number of sales of Goods, impressions/views of Listings, fees, or revenues in connection with your Integration. Meta does not guarantee that any minimum volumes, categories, or types of Listings will be displayed on FB Marketplace via your Integration. The Parties are independent contractors, and these Marketplace Integration Terms do not create or imply a partnership or joint venture between them. Neither Party, by virtue of these Marketplace Integration Terms, will have any right, power, or authority to act or create an obligation, expressed or implied, on behalf of the other Party. If any provision of these Marketplace Integration Terms is found unenforceable, that provision will be severed, and the balance of these Marketplace Integration Terms will remain in full force and effect. References to any websites in these Marketplace Integration Terms include any successor websites and successor URLs."," "]})})]}),j.jsx("br",{}),j.jsx("br",{}),j.jsx("br",{}),j.jsx("h2",{style:{textAlign:"center"},children:j.jsx("u",{children:"Exhibit A (Definitions)"})}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Affiliate"}),"u201d means, with respect to an Entity, a different Entity which, directly or indirectly, owns or controls, is owned or is controlled by, or is under common ownership or control with such first Entity. As used in this definition, u201ccontrolu201d means the power to direct the management or affairs of an Entity, and u201cownershipu201d means the beneficial ownership of 50% or more of the voting equity securities or other equivalent voting interests of the Entity. Metau2019s Affiliates include the Meta Companies (as set forth at"," ",j.jsx("a",{href:"https://www.facebook.com/help/111814505650678",target:"_blank",children:"https://www.facebook.com/help/111814505650678"}),"), in addition to other Affiliates. For clarity, Sellers are not your Affiliates."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Buyers"}),"u201d means end-users of FB Marketplace, except to the extent such end-users are Sellers."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Entity"}),"u201d means an individual, corporation, firm, limited liability company, partnership, joint venture, trust, unincorporated organization, estate, association, Governmental Authority, or other entity or organization, whether or not a legal entity."," "]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Facebook App"}),"u201d means the Facebook mobile application, available via the iOS and Android mobile operating systems."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"FB Marketplace"}),"u201d means the version of Metau2019s online marketplace called u201cFacebook Marketplaceu201d accessible via the Facebook App or the Facebook website."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"FBM Technology"}),"u201d means the set of APIs, SDKs, tools, plugins, code, technology, content, and services made available or provided by Meta or its Affiliates in connection with your Integration or these Marketplace Integration Terms."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Good"}),"u201d means any new or used physical good."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Governmental Authority"}),"u201d means any duly authorized federal, national, supranational, state, provincial, local, or other government, governmental, regulatory, or administrative authority, agency, or commission, or any court, tribunal, or judicial or arbitral body, of competent jurisdiction."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Listing"}),"u201d means an offer to sell a Good by a Seller on your online marketplace, including any Listing Content."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Representative"}),"u201d means, with respect to an Entity, any of its directors, officers, employees, agents, consultants, contractors, subcontractors, service providers, advisors, accountants, auditors, attorneys, and other representatives."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Sellers"}),"u201d means end-user sellers of your online classifieds marketplace."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Specifications"}),"u201d means specifications, guidelines, operational or technical requirements or other documentation provided or made available to you by Meta, including those in our"," ",j.jsx("a",{href:"https://facebook.com/business/help/1345557483542951",children:j.jsx("u",{children:"technical documentation"})}),", and which may be updated, modified, or replaced by Meta from time to time."," "]}),j.jsx("div",{ref:f,children:j.jsx("br",{})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useAcceptMarketplacePartnershipTOS",["RelayHooks","nullthrows","react","useAcceptMarketplacePartnershipTOSMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useCallback;function a(){var a=h!==void 0?h:h=b("useAcceptMarketplacePartnershipTOSMutation.graphql");a=d("RelayHooks").useMutation(a);var e=a[0];return j(function(a){var b=a.setCreationState;a=a.state;e({variables:{input:{business_id:c("nullthrows")(a.businessID),tos_version:"V1"}},onCompleted:function(a){a=a==null?void 0:(a=a.xfb_accept_marketplace_partner_seller_terms_of_service)==null?void 0:(a=a.marketplace_partner_seller_terms_of_service)==null?void 0:a.id;a!==null?b(function(a){return babelHelpers["extends"]({},a,{showMarketplacePartnerSellerTOSModal:!1,marketplacePartnerSellerTOSAccepted:!0,marketplacePartnerSellerTOSAcceptRequest:{inProgress:!1}})}):b(function(a){return babelHelpers["extends"]({},a,{showMarketplacePartnerSellerTOSModal:!0,marketplacePartnerSellerTOSAccepted:!1,marketplacePartnerSellerTOSAcceptRequest:{inProgress:!1}})})},onError:function(a){b(function(a){return babelHelpers["extends"]({},a,{marketplacePartnerSellerTOSAcceptRequest:{inProgress:!1}})})}});return!0},[e])}g.useAcceptMarketplacePartnershipTOS=a}),98);
-----
DEVHorizonOculusStartApplyForm_termsOfService.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DEVHorizonOculusStartApplyForm_termsOfService",selections:[{args:null,kind:"FragmentSpread",name:"DEVHorizonTOSModal_termsOfService"}],type:"TermsOfService",abstractKey:null};e.exports=a}),null);
-----
DEVHorizonTOSModalMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XOCTosAcceptResponsePayload",kind:"LinkedField",name:"xoc_tos_accept",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"DEVHorizonTOSModalMutation",selections:b,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"DEVHorizonTOSModalMutation",selections:b},params:{id:"29537279192537720",metadata:{},name:"DEVHorizonTOSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MMLWICampaignListTOSWrapper.react",["MMLWICampaignListTOSWrapperMutation.graphql","MMLWICampaignListTOSWrapper_businessInfo.graphql","MMLWITOSOmniContent","MarketingMessagesLWITOSGeoModal.react","RelayHooks","isTruthy","nullthrows","react","uniqueID"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useState,m=h!==void 0?h:h=b("MMLWICampaignListTOSWrapperMutation.graphql"),n=i!==void 0?i:i=b("MMLWICampaignListTOSWrapper_businessInfo.graphql");function a(a){a=a.data;a=d("RelayHooks").useFragment(n,a);a=(a=a.xfb_marketing_message_lwi_business_info)!=null?a:{};var b=a.business;a=a.has_signed_tos;var e=b==null?void 0:b.id;b=(b=b==null?void 0:(b=b.business_ad_accounts)==null?void 0:b.edges)!=null?b:[];var f=(b=(b=b.filter(function(a){a=a.node;return(a==null?void 0:(a=a.viewer_permissions)==null?void 0:a.write)===!0})[0].node)==null?void 0:b.legacy_account_id)!=null?b:"";b=l(!a);var g=b[0],h=b[1];b=l(a);a=b[0];var i=b[1];b=l(!1);var j=b[0],o=b[1];b=d("RelayHooks").useMutation(m);var p=b[0];if(c("isTruthy")(a))return;var q="MBS_BIZ_INBOX";b={content:d("MMLWITOSOmniContent").getTOSDialogContent("BIZ_INBOX"),displayError:j,isTosModalShown:g,onAcceptTos:function(){p({onCompleted:function(a){((a=a.xfb_mig_marketing_messages_in_am_tos)==null?void 0:a.success)===!0?i(!0):o(!0)},onError:function(){o(!0)},variables:{input:{ad_account_id:c("nullthrows")(f),business_id:c("nullthrows")(e),client_mutation_id:c("uniqueID")(),log_session_id:c("uniqueID")(),mig_product_tos_cms_list:["MARKETING_MESSAGING_TERMS"],surface:q}}});return},onDismiss:function(){h(!1);return}};return k.jsx(c("MarketingMessagesLWITOSGeoModal.react"),{TOSConfig:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
WhatsAppDirectSignupStateReducer",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){switch(b.type){case"UPDATE_STATE":return babelHelpers["extends"]({},b.value);case"UPDATE_BUSINESS":return babelHelpers["extends"]({},a,{business:b.value,unableToViewBusinessAssets:!1,hasDirectSignupWaba:!0,shouldEnableTos:!1,isBusinessAdmin:!0});case"UPDATE_IS_MM_LITE_TOS_ACCEPTED":return babelHelpers["extends"]({},a,{isMMLiteTosAccepted:b.value});case"UPDATE_IS_CAPI_TOS_MODAL_SEEN":return babelHelpers["extends"]({},a,{isCapiTosModalSeen:b.value});case"UPDATE_IS_MAPI_TOS_MODAL_SEEN":return babelHelpers["extends"]({},a,{isMapiTosModalSeen:b.value});case"UPDATE_ACCESS_TOKEN":return babelHelpers["extends"]({},a,{accessToken:b.value});case"UPDATE_PARTNER_ONBOARDING_DATA":return babelHelpers["extends"]({},a,{partnerOnboardingData:b.value})}}f.reducer=a}),66);
-----
useWhatsAppDirectSignupSharedState",["useBizMsgPlatformSharedState"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=c("useBizMsgPlatformSharedState")(),b=a.dispatch;a=a.state;return{dispatch:b,state:a,updateState:function(a){return b({type:"UPDATE_STATE",value:a})},updateBusiness:function(a){return b({type:"UPDATE_BUSINESS",value:a})},updateIsMMLiteTosAccepted:function(a){return b({type:"UPDATE_IS_MM_LITE_TOS_ACCEPTED",value:a})},updateIsCapiTosModalSeen:function(a){return b({type:"UPDATE_IS_CAPI_TOS_MODAL_SEEN",value:a})},updateIsMapiTosModalSeen:function(a){return b({type:"UPDATE_IS_MAPI_TOS_MODAL_SEEN",value:a})},updateAccessToken:function(a){return b({type:"UPDATE_ACCESS_TOKEN",value:a})},updatePartnerOnboardingData:function(a){return b({type:"UPDATE_PARTNER_ONBOARDING_DATA",value:a})}}}g["default"]=a}),98);
-----
WhatsAppCapiPartnerOnboardingTosModal.react",["fbt","ix","GeoButton.react","GeoCancelButton.react","GeoDivider.react","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoModalFooter.react","GeoSection.react","GeoText.react","Image.react","WhatsAppBizxIllustrationGeoModal.react","WhatsAppBizxPlatformLoggerEvent.flow","WhatsAppOnboardingDirectSignupUtils","fbicon","geoMargin","react","useBizMsgPlatformLogger","useWhatsAppDirectSignupSharedState"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=h._(/*BTDS*/"Get actionable insights from Conversions API");function a(a){var b=a.isShown,e=a.onHide,f=c("useBizMsgPlatformLogger")();a=c("useWhatsAppDirectSignupSharedState")();var g=a.updateIsCapiTosModalSeen;a=function(){f.logEvent(c("WhatsAppBizxPlatformLoggerEvent.flow").DIRECT_SIGNUP_CAPI_PARTNER_ONBOARDING_TOS_ACCEPTANCE,{},2),g(!0),e()};return k.jsx(d("WhatsAppBizxIllustrationGeoModal.react").WhatsAppBizxIllustrationGeoModal,{"data-testid":void 0,image:k.jsx(c("Image.react"),{width:"100%",src:i("854494")}),width:600,footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{variant:"primary",icon:d("fbicon")._(i("509932"),16),href:d("WhatsAppOnboardingDirectSignupUtils").getCapiOnboardingGuideLink(),target:"_blank",label:h._(/*BTDS*/"Continue to integration guide"),onClick:a}),secondaryButton:k.jsx(c("GeoCancelButton.react"),{label:h._(/*BTDS*/"Close")})}),heading:l,isShown:b,onHide:e,children:k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("GeoHeading.react"),{level:2,children:l}),k.jsx(c("GeoText.react"),{xstyle:c("geoMargin").top16,children:h._(/*BTDS*/"With the ability to pull insights from your website, app, store, or messages, Conversions API empowers you to make informed decisions about how and where you want to reach your audience.")}),k.jsx(c("GeoDivider.react"),{}),k.jsx(c("GeoFlexbox.react"),{children:k.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"By continuing, you agree to the {link}.",[h._param("link",k.jsx(c("GeoLink.react"),{href:"https://www.facebook.com/legal/technology_terms",target:"_blank",children:"Meta Business Tools Terms"}))])})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
WhatsAppMapiPartnerOnboardingTosModal.react",["fbt","ix","GeoButton.react","GeoCancelButton.react","GeoDivider.react","GeoFlexbox.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoHeading.react","GeoLink.react","GeoModalFooter.react","GeoSection.react","GeoText.react","Image.react","URI","WhatsAppBizxIllustrationGeoModal.react","WhatsAppBizxPlatformLoggerEvent.flow","WhatsAppDirectSignupAppReviewUtils","WhatsAppOnboardingDirectSignupUtils","XDeveloperAppControllerRouteBuilder","asyncToGeneratorRuntime","fbicon","geoMargin","react","useAddAppReviewPermissionsForUnifiedPartnerOnboarding","useBizMsgPlatformLogger","useWhatsAppDirectSignupSharedState"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m=h._(/*BTDS*/"Drive discovery and demand with Marketing API"),n=h._(/*BTDS*/"MAPI"),o=["ADS_READ","ADS_MANAGEMENT","PAGES_MANAGE_ADS","PAGES_READ_ENGAGEMENT","PAGES_SHOW_LIST"];function a(a){var e=a.appMapiReviewStatus,f=a.isShown,g=a.onHide,k=c("useBizMsgPlatformLogger")();a=c("useWhatsAppDirectSignupSharedState")();var p=a.state.appID,q=a.updateIsMapiTosModalSeen;a=function(){k.logEvent(c("WhatsAppBizxPlatformLoggerEvent.flow").DIRECT_SIGNUP_MAPI_PARTNER_ONBOARDING_TOS_ACCEPTANCE,{},2),q(!0),g()};var r=c("useAddAppReviewPermissionsForUnifiedPartnerOnboarding")(),s=r[0],t=r[1],u=c("XDeveloperAppControllerRouteBuilder").buildUri({app_id:p,page:"app-review",tab:"submissions"});r=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(t)return;e==="UNSUBMITTED"?yield s({app_id:p,product_type:"MAPI"}).then(function(){(j||(j=c("URI"))).goURIOnNewWindow(u)}):(j||(j=c("URI"))).goURIOnNewWindow(u)});return function(){return a.apply(this,arguments)}}();return l.jsx(d("WhatsAppBizxIllustrationGeoModal.react").WhatsAppBizxIllustrationGeoModal,{"data-testid":void 0,image:l.jsx(c("Image.react"),{width:"100%",src:i("854492")}),width:600,footer:l.jsx(c("GeoModalFooter.react"),{primaryButton:l.jsx(c("GeoButton.react"),{variant:"primary",icon:d("fbicon")._(i("509932"),16),href:d("WhatsAppOnboardingDirectSignupUtils").getMapiOnboardingGuideLink(),target:"_blank",label:h._(/*BTDS*/"Continue to integration guide"),onClick:a}),secondaryButton:l.jsx(c("GeoCancelButton.react"),{label:h._(/*BTDS*/"Close")})}),heading:m,isShown:f,onHide:g,children:l.jsxs(c("GeoSection.react"),{children:[l.jsx(c("GeoHeading.react"),{level:2,children:m}),l.jsx(c("GeoText.react"),{xstyle:c("geoMargin").vert16,children:h._(/*BTDS*/"Ads that click to WhatsApp send people that click on your ads directly into conversations with your business in WhatsApp. Use these ads to reach people at scale and deliver standout, individualized service.")}),l.jsx(c("GeoGuidanceCard.react"),{xstyle:c("geoMargin").top12,header:l.jsx(c("GeoGuidanceCardHeader.react"),{heading:d("WhatsAppDirectSignupAppReviewUtils").getAppReviewStatusFbt((a=e)!=null?a:"UNSUBMITTED")}),status:d("WhatsAppDirectSignupAppReviewUtils").getAppReviewStatus((f=e)!=null?f:"UNSUBMITTED"),children:l.jsxs(c("GeoGuidanceCardContent.react"),{children:[l.jsx(c("GeoText.react"),{children:d("WhatsAppDirectSignupAppReviewUtils").getAppReviewDescriptionFbt(n,o)}),l.jsx(c("GeoLink.react"),{onClick:r,children:d("WhatsAppDirectSignupAppReviewUtils").getAppReviewProductLinkFbt((a=e)!=null?a:"UNSUBMITTED",o.length)})]})}),l.jsx(c("GeoDivider.react"),{}),l.jsx(c("GeoFlexbox.react"),{children:l.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"By continuing, you agree to the {link}.",[h._param("link",l.jsx(c("GeoLink.react"),{href:"https://www.facebook.com/legal/self_service_ads_terms",target:"_blank",children:"Self-Serve Ad Terms"}))])})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
WhatsAppDirectSignupQuickstartCapiPartnerOnboardingTile.react",["fbt","ix","GeoButton.react","GeoCard.react","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoPageItem.react","GeoSection.react","GeoText.react","WhatsAppCapiPartnerOnboardingTosModal.react","WhatsAppIconHelper","WhatsAppOnboardingDirectSignupUtils","react","useBoolean","useWhatsAppDirectSignupSharedState"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=h._(/*BTDS*/"Get actionable insights from Conversions API"),m=h._(/*BTDS*/"With the ability to pull insights from your website, app, store, or messages, Conversions API empowers you to make informed decisions about how and where you want to reach your audience. {Learn more about Conversions API Link}.",[h._param("Learn more about Conversions API Link",k.jsx(c("GeoLink.react"),{href:d("WhatsAppOnboardingDirectSignupUtils").getCapiLearnMoreLink(),target:"_blank",children:h._(/*BTDS*/"Learn more")}))]),n=h._(/*BTDS*/"Get started"),o=h._(/*BTDS*/"View integration guide");function a(){var a=c("useWhatsAppDirectSignupSharedState")();a=a.state.isCapiTosModalSeen;var b=c("useBoolean")(!1),e=b.value,f=b.setTrue;b=b.setFalse;return k.jsx(c("GeoPageItem.react"),{columns:12,children:k.jsx(c("GeoCard.react"),{"data-testid":void 0,children:k.jsxs(c("GeoSection.react"),{children:[k.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",direction:"row",gap:8,children:[k.jsxs(c("GeoFlexbox.react"),{gap:8,children:[d("WhatsAppIconHelper").getTileIcon(i("1348365")),k.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:8,children:[k.jsx(c("GeoHeading.react"),{level:3,children:l}),k.jsx(c("GeoText.react"),{children:m})]})]}),a===!0?k.jsx(c("GeoButton.react"),{target:"_blank",href:d("WhatsAppOnboardingDirectSignupUtils").getCapiOnboardingGuideLink(),label:o,"data-testid":void 0}):k.jsx(c("GeoButton.react"),{label:n,"data-testid":void 0,onClick:f})]}),k.jsx(c("WhatsAppCapiPartnerOnboardingTosModal.react"),{isShown:e,onHide:b})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
WhatsAppDirectSignupQuickstartMapiPartnerOnboardingTile.react",["fbt","ix","GeoButton.react","GeoCard.react","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoPageItem.react","GeoPill.react","GeoSection.react","GeoText.react","WhatsAppDirectSignupAppReviewUtils","WhatsAppIconHelper","WhatsAppMapiPartnerOnboardingTosModal.react","WhatsAppOnboardingDirectSignupUtils","XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook","react","useBoolean","useWhatsAppDirectSignupSharedState"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=h._(/*BTDS*/"Drive discovery and demand with Marketing API"),m=h._(/*BTDS*/"Ads that click to WhatsApp send people that click on your ads directly into conversations with your business in WhatsApp. Create these ads to reach people at scale and deliver standout, individualized service. {Learn more link}.",[h._param("Learn more link",k.jsx(c("GeoLink.react"),{href:d("WhatsAppOnboardingDirectSignupUtils").getMapiLearnMoreLink(),target:"_blank",children:h._(/*BTDS*/"Learn more")}))]),n=h._(/*BTDS*/"Get started"),o=h._(/*BTDS*/"View integration guide"),p=h._(/*BTDS*/"App Review required");function a(){var a,b=c("useWhatsAppDirectSignupSharedState")();b=b.state;var e=b.isMapiTosModalSeen,f=b.isBspBusiness,g=b.isTechProviderBusiness;b=b.partnerOnboardingData;var h=c("useBoolean")(!1),j=h.value,q=h.setTrue;h=h.setFalse;b=d("XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook").toJSEnum(b==null?void 0:(b=b.xfb_get_app_review_status_for_all_unified_onboarding_products)==null?void 0:(b=b.app_review_submission_statuses)==null?void 0:(b=b.find(function(a){return a.product_type==="MAPI"}))==null?void 0:b.app_review_submission_status);return k.jsx(c("GeoPageItem.react"),{columns:12,children:k.jsx(c("GeoCard.react"),{"data-testid":void 0,children:k.jsxs(c("GeoSection.react"),{children:[k.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",direction:"row",gap:8,children:[k.jsxs(c("GeoFlexbox.react"),{gap:8,children:[d("WhatsAppIconHelper").getTileIcon(i("1374736")),k.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:8,children:[k.jsxs(c("GeoFlexbox.react"),{gap:12,alignItems:"center",children:[k.jsx(c("GeoHeading.react"),{level:3,children:l}),k.jsx(c("GeoPill.react"),{label:p,status:d("WhatsAppDirectSignupAppReviewUtils").getAppReviewPillStatus((a=b)!=null?a:"UNSUBMITTED"),value:p})]}),k.jsx(c("GeoText.react"),{children:m})]})]}),e!==!0||(f||g)&&b!=="APPROVED"?k.jsx(c("GeoButton.react"),{label:n,"data-testid":void 0,onClick:q}):k.jsx(c("GeoButton.react"),{target:"_blank",href:d("WhatsAppOnboardingDirectSignupUtils").getMapiOnboardingGuideLink(),label:o,"data-testid":void 0})]}),k.jsx(c("WhatsAppMapiPartnerOnboardingTosModal.react"),{isShown:j,onHide:h,appMapiReviewStatus:b})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
WhatsAppDirectSignupQuickstartMMLitePartnerOnboardingTile.react",["fbt","ix","GeoButton.react","GeoCard.react","GeoFlexbox.react","GeoHeading.react","GeoPageItem.react","GeoPill.react","GeoSection.react","GeoText.react","WhatsAppDirectSignupAppReviewUtils","WhatsAppIconHelper","WhatsAppMMLitePartnerOnboardingTosModal.react","WhatsAppOnboardingDirectSignupUtils","XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook","react","useBoolean","useWhatsAppDirectSignupSharedState"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=h._(/*BTDS*/"Improve ROI with Marketing Messages Lite API"),m=h._(/*BTDS*/"Sending marketing messages through the Marketing Messages Lite API enables you to leverage Meta AI to improve quality for users and drive performance for businesses."),n=h._(/*BTDS*/"Get started"),o=h._(/*BTDS*/"View integration guide"),p=h._(/*BTDS*/"App Review required");function a(a){var b;a=a.businessID;var e=c("useWhatsAppDirectSignupSharedState")();e=e.state;var f=e.isMMLiteTosAccepted,g=e.isBspBusiness,h=e.isTechProviderBusiness;e=e.partnerOnboardingData;var j=c("useBoolean")(!1),q=j.value,r=j.setTrue;j=j.setFalse;e=d("XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook").toJSEnum(e==null?void 0:(e=e.xfb_get_app_review_status_for_all_unified_onboarding_products)==null?void 0:(e=e.app_review_submission_statuses)==null?void 0:(e=e.find(function(a){return a.product_type==="MMLITE"}))==null?void 0:e.app_review_submission_status);return k.jsx(c("GeoPageItem.react"),{columns:12,children:k.jsx(c("GeoCard.react"),{"data-testid":void 0,children:k.jsxs(c("GeoSection.react"),{children:[k.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",direction:"row",gap:8,children:[k.jsxs(c("GeoFlexbox.react"),{gap:8,children:[d("WhatsAppIconHelper").getTileIcon(i("1530501")),k.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:8,children:[k.jsxs(c("GeoFlexbox.react"),{gap:12,alignItems:"center",children:[k.jsx(c("GeoHeading.react"),{level:3,children:l}),(g===!0||h===!0)&&k.jsx(c("GeoPill.react"),{label:p,status:d("WhatsAppDirectSignupAppReviewUtils").getAppReviewPillStatus((b=e)!=null?b:"UNSUBMITTED"),value:p})]}),k.jsx(c("GeoText.react"),{children:m})]})]}),f!==!0||(g||h)&&e!=="APPROVED"?k.jsx(c("GeoButton.react"),{label:n,"data-testid":void 0,onClick:r}):k.jsx(c("GeoButton.react"),{target:"_blank",href:d("WhatsAppOnboardingDirectSignupUtils").getMMLiteOnboardingGuideLink(),label:o,"data-testid":void 0})]}),k.jsx(c("WhatsAppMMLitePartnerOnboardingTosModal.react"),{businessID:a,isShown:q,onHide:j,appMMLiteReviewStatus:e})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
WhatsAppOnboardingDirectSignupMMLitePartnerOnboardingCard.react",["fbt","GeoFlexbox.react","GeoGuidanceCard.react","GeoGuidanceCardFooter.react","GeoGuidanceCardHeader.react","GeoLink.react","WhatsAppMMLitePartnerOnboardingTosModal.react","WhatsAppOnboardingDirectSignupUtils","XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook","react","useBoolean","useWhatsAppDirectSignupSharedState"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=h._(/*BTDS*/"Improve ROI with Marketing Messages Lite API"),l=h._(/*BTDS*/"Sending marketing messages through the Marketing Messages Lite API enables you to leverage Meta AI to improve quality for users and drive performance for businesses."),m=h._(/*BTDS*/"View integration guide"),n=h._(/*BTDS*/"Configure the API"),o=h._(/*BTDS*/"Not now");function a(a){a=a.businessID;var b=c("useWhatsAppDirectSignupSharedState")();b=b.state;var e=b.isMMLiteTosAccepted,f=b.isBspBusiness,g=b.isTechProviderBusiness;b=b.partnerOnboardingData;var h=c("useBoolean")(!0),i=h.value;h=h.setFalse;var p=c("useBoolean")(!1),q=p.value,r=p.setTrue;p=p.setFalse;b=d("XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook").toJSEnum(b==null?void 0:(b=b.xfb_get_app_review_status_for_all_unified_onboarding_products)==null?void 0:(b=b.app_review_submission_statuses)==null?void 0:(b=b.find(function(a){return a.product_type==="MMLITE"}))==null?void 0:b.app_review_submission_status);return j.jsxs(j.Fragment,{children:[i&&j.jsx(c("GeoGuidanceCard.react"),{footer:j.jsx(c("GeoGuidanceCardFooter.react"),{children:j.jsxs(c("GeoFlexbox.react"),{gap:24,children:[e!==!0||(f||g)&&b!=="APPROVED"?j.jsx(c("GeoLink.react"),{onClick:r,children:n}):j.jsx(c("GeoLink.react"),{target:"_blank",href:d("WhatsAppOnboardingDirectSignupUtils").getMMLiteOnboardingGuideLink(),children:m}),j.jsx(c("GeoLink.react"),{onClick:h,children:o})]})}),header:j.jsx(c("GeoGuidanceCardHeader.react"),{heading:k,description:l}),status:"new-products-and-features"}),j.jsx(c("WhatsAppMMLitePartnerOnboardingTosModal.react"),{businessID:a,isShown:q,onHide:p,appMMLiteReviewStatus:b})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BusinessCometInboxOutcomesSection3DWrapper.react",["BizKitContextCardOutcomesSectionContainer.react","BusinessCometContextCardNewActivitySection.react","BusinessCometDetectedOutcomesNuxSection.react","BusinessCometInboxContactCardDataSharingSection.react","BusinessCometInboxOutcomesSection3DWrapper_outcomes.graphql","BusinessCometSectionContentPlaceholder.react","CometPlaceholder.react","CometRelay","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||c("react"),k=h!==void 0?h:h=b("BusinessCometInboxOutcomesSection3DWrapper_outcomes.graphql");function a(a){var b=a.businessAssets,e=a.className,f=a.contactID,g=a.contactIdentity,h=a.isInKBankRollout,i=a.onShowContactCardTosModal,l=a.pageContactID,m=a.pageID,n=a.section_3d,o=a.shouldShowContactCardTos;a=a.surface;n=d("CometRelay").useFragment(k,n);return j.jsxs(c("BizKitContextCardOutcomesSectionContainer.react"),{className:e,children:[j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("BusinessCometSectionContentPlaceholder.react"),{}),children:j.jsx(c("BusinessCometInboxContactCardDataSharingSection.react"),{contactID:f,contactIdentity:g,isRedesign:!0,pageID:m,profileData:n==null?void 0:n.biz_crm_contact,surface:a})}),j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("BusinessCometSectionContentPlaceholder.react"),{}),children:j.jsx(c("BusinessCometContextCardNewActivitySection.react"),{businessAssets:b,consumerID:g.contact_id,contactID:l,contactIdentity:g,fragmentRef:n==null?void 0:n.biz_crm_contact,isInKBankRollout:h,onShowContactCardTosModal:i,pageID:m,shouldShowContactCardTos:o,surface:a})}),j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("BusinessCometSectionContentPlaceholder.react"),{}),children:j.jsx(c("BusinessCometDetectedOutcomesNuxSection.react"),{contactID:l,fragmentRef:n==null?void 0:n.biz_crm_contact,identity:g,pageID:m,surface:a})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometContextCardNewActivitySection.react",["BizKitContextCardNewActivitySectionShared.react","BusinessCometContextCardNewActivitySection_section.graphql","CometRelay","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BusinessCometContextCardNewActivitySection_section.graphql");function a(a){var b=a.businessAssets,e=a.consumerID,f=a.contactID,g=a.contactIdentity,h=a.fragmentRef,i=a.isInKBankRollout,l=a.onShowContactCardTosModal,m=a.pageID,n=a.shouldShowContactCardTos,o=a.surface;a=d("CometRelay").useRefetchableFragment(k,h);var p=a[0],q=a[1];function r(){}function s(){var a=p==null?void 0:p.id;if(a==null)return;var c="MESSENGER";(o==="INBOX_MESSAGING_IG"||o==="INBOX_POST_COMMENT_IG"||o==="INTERACTIONS_IG_COMMENT"||o==="POST_COMMENT_IG")&&(c="IG");q({assetType:c,businessAssets:b,consumerID:e,id:a,pageID:m},{fetchPolicy:"network-only"})}function t(a,b){}return j.jsx(c("BizKitContextCardNewActivitySectionShared.react"),{businessAssets:b,className:"xkh9tda x13fuv20 x178xt8z xyamay9 xn6708d x1l90r2v x1ye3gou",contactID:f,contactIdentity:g,crmContactFragmentRef:p,isInKBankRollout:i,leadCenterFragmentRef:p==null?void 0:p.leads_center,leadStageFragmentRef:p==null?void 0:p.biz_inbox_lead_stage_query,onActivityListUpdated:t,onShowContactCardTosModal:l,pageFragmentRef:p==null?void 0:p.page,pageID:m,refetchLeadOpportunity:r,refresh:s,shouldShowContactCardTos:n,surface:o})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometInboxNewActivitySection3DWrapper.react",["BusinessCometContextCardNewActivitySection.react","BusinessCometInboxNewActivitySection3DWrapper_section.graphql","BusinessCometSectionContentPlaceholder.react","CometPlaceholder.react","CometRelay","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||c("react"),k=h!==void 0?h:h=b("BusinessCometInboxNewActivitySection3DWrapper_section.graphql");function a(a){var b=a.businessAssets,e=a.contactIdentity,f=a.isInKBankRollout,g=a.onShowContactCardTosModal,h=a.pageContactID,i=a.pageID,l=a.section_3d,m=a.shouldShowContactCardTos;a=a.surface;l=d("CometRelay").useFragment(k,l);return j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("BusinessCometSectionContentPlaceholder.react"),{}),children:j.jsx(c("BusinessCometContextCardNewActivitySection.react"),{businessAssets:b,consumerID:e.contact_id,contactID:h,contactIdentity:e,fragmentRef:l==null?void 0:l.biz_crm_contact,isInKBankRollout:f,onShowContactCardTosModal:g,pageID:i,shouldShowContactCardTos:m,surface:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
DEVHorizonTOSModal.react",["fbt","CometRelay","DEVHorizonTOSModalMutation.graphql","DEVHorizonTOSModal_organization.graphql","DEVHorizonTOSModal_termsOfService.graphql","MCDSButton.react","MCDSCheckbox.react","MCDSContainer.react","MCDSDialog.react","MCDSFlexbox.react","MCDSHorizontalDivider.react","MCDSText.react","OCDevUIDraftJSRenderer.react","mcdsMargin","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react")),n=l.useState;function a(a){a=a.props;var e=a.modalProps,f=e.organizationKey;e=e.termsOfServiceKey;var g=a.onClose,l=d("CometRelay").useFragment(i!==void 0?i:i=b("DEVHorizonTOSModal_organization.graphql"),f),o=d("CometRelay").useFragment(j!==void 0?j:j=b("DEVHorizonTOSModal_termsOfService.graphql"),e);a=n(!1);f=a[0];e=a[1];a=d("CometRelay").useMutation(k!==void 0?k:k=b("DEVHorizonTOSModalMutation.graphql"));var p=a[0];a=a[1];return m.jsx(c("MCDSDialog.react"),{ariaLabel:h._("Developer Hardware Loan Agreement"),footer:m.jsxs(c("MCDSFlexbox.react"),{alignItems:"center",justifyContent:"space-between",children:[m.jsx(c("MCDSCheckbox.react"),{label:h._("I Agree"),value:f,onChange:e}),m.jsx(c("MCDSButton.react"),{isDisabled:!f,isLoading:a,label:h._("Submit"),type:"primary",onClick:function(){var a;p({variables:{input:{organization_id:(a=l==null?void 0:l.id)!=null?a:"",tos_type:c("nullthrows")(o.tos_type)}}});g()}})]}),isTitleSticky:!0,title:h._("Developer Hardware Loan Agreement"),onClose:g,children:m.jsx(c("MCDSContainer.react"),{children:m.jsxs("div",{className:"xuyqlj2",children:[m.jsx(c("OCDevUIDraftJSRenderer.react"),{draftJSString:(e=o.content_draft_js)!=null?e:""}),m.jsx(c("MCDSHorizontalDivider.react"),{xstyle:c("mcdsMargin").vert16}),m.jsx(c("MCDSText.react"),{children:h._("I have read and agree to Oculusu2019s Privacy Policy, Terms of Service, and the terms of this program as stated above. If you do not agree to any of the terms of this program and Use Terms or do not have authority to bind the identified Organization, then {underlined_do_not} click "I Agree" and {underlined_do_not} submit any program application to Oculus.",[h._param("underlined_do_not",m.jsx("u",{children:"do not"}))])})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
DEVHorizonTOSModal_organization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DEVHorizonTOSModal_organization",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"Organization",abstractKey:null};e.exports=a}),null);
-----
DEVHorizonTOSModal_termsOfService.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DEVHorizonTOSModal_termsOfService",selections:[{alias:null,args:null,kind:"ScalarField",name:"content_draft_js",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tos_type",storageKey:null}],type:"TermsOfService",abstractKey:null};e.exports=a}),null);
-----
DEVHorizonTOSModal.entrypoint",["JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{}},root:c("JSResourceForInteraction")("DEVHorizonTOSModal.react").__setRef("DEVHorizonTOSModal.entrypoint")};b=a;g["default"]=b}),98);
-----
DEVHorizonOculusStartApplyFormView.react",["fbt","ix","DEVHorizonOculusStartApplyForm.react","DEVHorizonOculusStartApplyFormView_application.graphql","DEVHorizonOculusStartApplyFormView_hardwareRequestFormConfigs.graphql","DEVHorizonOculusStartApplyFormView_termsOfService.graphql","DEVHorizonOculusStartApplyFormView_user.graphql","DEVHorizonTOSModal.entrypoint","MCDSButton.react","MCDSDefaultLoadingDialog.react","MCDSEntryPointModalTrigger.react","OCDevManageEmptyState.react","RelayHooks","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n,o=n||d("react");function a(a){var e,f=a.application,g=a.hardwareRequestFormConfigs,n=a.termsOfService;a=a.user;f=d("RelayHooks").useFragment(j!==void 0?j:j=b("DEVHorizonOculusStartApplyFormView_application.graphql"),f);g=d("RelayHooks").useFragment(k!==void 0?k:k=b("DEVHorizonOculusStartApplyFormView_hardwareRequestFormConfigs.graphql"),g);n=d("RelayHooks").useFragment(l!==void 0?l:l=b("DEVHorizonOculusStartApplyFormView_termsOfService.graphql"),n);a=d("RelayHooks").useFragment(m!==void 0?m:m=b("DEVHorizonOculusStartApplyFormView_user.graphql"),a);e=((e=f.organization)==null?void 0:(e=e.signed_legal_agreements)==null?void 0:e.count_up_to)===1;n=o.jsx(c("MCDSEntryPointModalTrigger.react"),{entryPoint:c("DEVHorizonTOSModal.entrypoint"),options:{fallback:c("MCDSDefaultLoadingDialog.react")},otherProps:{organizationKey:f.organization,termsOfServiceKey:n},preloadParams:{},children:function(a){a=a.onTrigger;return o.jsx(c("MCDSButton.react"),{label:h._("__JHASH__ABIW54WfhQ-__JHASH__"),type:"primary",onClick:a})}},"CTA to sign HLA");return o.jsx(o.Fragment,{children:e?o.jsx(c("DEVHorizonOculusStartApplyForm.react"),{application:f,hardwareRequestFormConfigs:g,user:a}):o.jsx(c("OCDevManageEmptyState.react"),{action:n,heading:h._("__JHASH__HEYln9dwUz___JHASH__"),icon:d("fbicon")._(i("728259"),24)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
DEVHorizonOculusStartApplyFormView_termsOfService.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DEVHorizonOculusStartApplyFormView_termsOfService",selections:[{args:null,kind:"FragmentSpread",name:"DEVHorizonTOSModal_termsOfService"}],type:"TermsOfService",abstractKey:null};e.exports=a}),null);
-----
BizKitContextCardNewActivitySectionShared.react",["fbt","BizInboxCreateLeadMutation","BizInboxFbtUtils","BizInboxGating","BizInboxStateContext","BizKitContextCardActivityListSection.react","BizKitContextCardActivityNuxForAutoDetected.react","BizKitContextCardNewActivitySectionEventLogger","BizKitContextCardNewActivitySectionShared_crmContact.graphql","BizKitContextCardNewActivitySectionShared_leadCenter.graphql","BizKitContextCardNewActivitySectionShared_leadStage.graphql","BizKitContextCardNewActivitySectionShared_page.graphql","GeoBaseText.react","GeoButton.react","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoPill.react","GeoToast.react","LeadOpportunityStageUpdateMutation","LeadsManagerConstants","LeadsManagerStageSelector.react","LeftRight.react","PageAdsEligibleEventSource","PageConsentForAdsEventsActions","RelayHooks","ThreadOrderStatusDropdownSection.react","XBizSuiteControllerRouteBuilder","XFBMBSAdsEventSharingEntryPointUtils.facebook","bizInboxStateHideContactCardReducer","geoMargin","getBizInboxOrganizeInboxTourSteps","react","stylex","useAdsDataSharingNUX","useBizInboxStateReducers","useBizWebGetRouteParams","useBizWebRouteDispatcher","useGeoToaster","useShouldUseContactCardCTAFix"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n,o=n||(n=d("react"));e=n;var p=e.useContext,q=e.useEffect,r=e.useRef,s=e.useState,t=i!==void 0?i:i=b("BizKitContextCardNewActivitySectionShared_leadCenter.graphql"),u=j!==void 0?j:j=b("BizKitContextCardNewActivitySectionShared_leadStage.graphql"),v=k!==void 0?k:k=b("BizKitContextCardNewActivitySectionShared_page.graphql"),aa=l!==void 0?l:l=b("BizKitContextCardNewActivitySectionShared_crmContact.graphql");function a(a){var b,e=a.surface,f=a.pageID,g=a.contactID,i=a.businessAssets,j=a.contactIdentity,k=a.onActivityListUpdated,l=a.isInKBankRollout,n=a.onShowContactCardTosModal,w=a.shouldShowContactCardTos,x=a.refetchLeadOpportunity,y=a.pageFragmentRef,z=a.leadCenterFragmentRef,A=a.leadStageFragmentRef,B=a.refresh,C=p(c("BizInboxStateContext")),D=C.hasPageSignedLcTos,E=C.selectedIgAssetId,F=C.pBUPIGAccountID,ba=C.shouldShowLeadStageUpdateAdsConsent;C=s(null);var G=C[0];C[1];C=s(null);C[0];var ca=C[1];C=function(a,b){ca(a),k(a,b)};var H=c("useShouldUseContactCardCTAFix")(),I="MESSENGER",J="MSGR_INBOX_ORGANIC";switch(e){case"INBOX_MESSAGING_IG":case"INBOX_POST_COMMENT_IG":case"INTERACTIONS_IG_COMMENT":case"POST_COMMENT_IG":I="IG";J="IG_INBOX_ORGANIC";break;default:}var K=c("useBizWebRouteDispatcher")(),L=c("useBizWebGetRouteParams")(),M=L.asset_id,N=c("XBizSuiteControllerRouteBuilder").buildURL({rest:"leads_center"});L=function(){var a={asset_id:M};K(N,a);d("BizKitContextCardNewActivitySectionEventLogger").logGoToLeadsCenterCTAClick(f,O,I)};var O=j.contact_id,P=(b=d("RelayHooks")).useFragment(t,z),Q=b.useFragment(v,y);z=b.useFragment(u,A);y=b.useFragment(aa,a.crmContactFragmentRef);A=(P==null?void 0:P.should_enable_cold_start_improvements)===!0;var R=z==null?void 0:(b=z.lead_stage)==null?void 0:b.id;b=d("BizInboxGating").getAllowPBIAFrontendChanges()&&E===F;var da=(P==null?void 0:P.should_show_mbs_ads_event_sharing_setting_modal_in_contact_card)===!0;E=b?!1:Q==null?void 0:Q.has_leads_center_access;b=y==null?void 0:(F=y.page)==null?void 0:F.settings_uri_in_business_view;F=s(R);var S=F[0],T=F[1],U=r(null);q(function(){U.current=S,T(R)},[R]);var ea=c("useBizInboxStateReducers")([c("bizInboxStateHideContactCardReducer")]);F=c("useGeoToaster")();var V=F.add,W=d("RelayHooks").useRelayEnvironment();F=z==null?void 0:z.lead_opportunity;var X=F==null?void 0:F.id,fa=function(){if(X==null)return;var a={asset_id:M,lead_id:X};K(N,a)},Y=function(a,b){var e;b=b!=null?b>0:a==="mark_as_lead_inbox_contact_card";e=(e=P==null?void 0:P.list_mbs_ads_event_sharing_setting_modal_entrypoints.includes(d("XFBMBSAdsEventSharingEntryPointUtils.facebook").fromJSEnum(a)))!=null?e:!1;if(!ba||!b||!e||!da)return;d("PageConsentForAdsEventsActions").showConsentModalIfNeeded(function(){return!0},function(){return!0},function(){},c("PageAdsEligibleEventSource").LEAD_STAGE_UPDATE,null,a)};F=function(){d("BizKitContextCardNewActivitySectionEventLogger").logMarkAsLeadCTAClick(f,O,I),Y("mark_as_lead_inbox_contact_card"),d("BizInboxCreateLeadMutation").commit(W,f,g,J,I,{onSuccess:function(){ea({type:"has_organic_lead.update"}),B(),V(o.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getAddLeadSuccessToast(),status:"success"}))},onFailure:function(){V(o.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getAddLeadFailureToast(),status:"error"}))}},i)};var Z=function(a){var b;if(a==null||X==null)return;d("BizKitContextCardNewActivitySectionEventLogger").logLeadStageDropdownOptionClick(f,O,a,I);T(a);b=Q==null?void 0:(b=Q.page_opportunity_stages)==null?void 0:(b=b.find(function(b){return b.id===a}))==null?void 0:b.stage_key;Y("lead_stage_update_inbox_contact_card",b);d("LeadOpportunityStageUpdateMutation").commit(W,{lead_opportunity_id:X,stage:a,event_location:"business_inbox"},{onSuccess:function(){B(),ga(),V(o.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getMoveLeadStageSuccessToast(),status:"success"})),d("BizKitContextCardNewActivitySectionEventLogger").logLeadStageDropdownOptionSave(f,O,a,I)},onFailure:function(b){V(o.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getMoveLeadStageFailureToast(),status:"error"})),T(U.current),d("BizKitContextCardNewActivitySectionEventLogger").logLeadStageDropdownOptionError(f,O,a,b,I)}})};L=o.jsx(c("GeoButton.react"),{label:d("BizInboxFbtUtils").getGoToLeadsCenterLabel(),tooltip:H?d("BizInboxFbtUtils").getGoToLeadsCenterSubtitle():null,onClick:L,variant:H?void 0:"primary"});var $=o.jsx(c("GeoBaseText.react"),{color:"value",display:"block",isDisabled:!0,size:"accent",children:d("BizInboxFbtUtils").getGoToLeadsCenterSubtitle()});L=o.jsxs(o.Fragment,{children:[L,!H&&o.jsx("div",{className:(m||(m=c("stylex")))(c("geoMargin").top4),children:$})]});H=o.jsx(c("GeoButton.react"),{"data-testid":void 0,label:A?d("BizInboxFbtUtils").getContactCardMarkAsLeadLabel():d("BizInboxFbtUtils").getContactCardAddLeadLabel(),onClick:F,variant:"default"});F=z==null?void 0:($=z.lead_opportunity)==null?void 0:$.mbs_ads_event_sharing_lead_opt_in_status;$=F==="OPTED_IN"?y==null?void 0:y.adsDataSharingLeadStageUpdateNUX:[];var ga=d("useAdsDataSharingNUX").useAdsEventSharingNux($,b,f);F=o.jsx(c("LeadsManagerStageSelector.react"),{dataTestId:"contact-card-leads-stage-selector-button",allowNoSelection:!1,isDisabled:!1,stages:Q==null?void 0:Q.page_opportunity_stages,selectedValue:S,width:160,onChange:Z,consumerID:O,pageID:f,assetType:I,shouldShowBulkAction:!1,shouldShowBulkEditImprovement:!1});$=o.jsx(c("GeoLink.react"),{"data-testid":void 0,onClick:function(){fa(),d("BizKitContextCardNewActivitySectionEventLogger").logViewInLeadsCenterTextClick(f,O,I)},children:d("LeadsManagerConstants").VIEW_IN_LEADS_CENTER_TEXT});Z=E===!0?o.jsxs("div",{className:"xyamay9 x4uap5 x18d9i69 xkhd6sd",children:[o.jsxs(c("LeftRight.react"),{children:[o.jsx(c("GeoHeading.react"),{level:4,children:d("LeadsManagerConstants").LEAD_STAGE_LABEL}),D&&(z==null?void 0:z.lead_stage)!==null?$:null]}),o.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top8,children:D?(z==null?void 0:z.lead_stage)===null?H:F:L})]}):null;E=y==null?void 0:y.adsDataSharingActivityNUX;$=d("useAdsDataSharingNUX").useAdsEventSharingNux(E,b,f);z=(D=Q==null?void 0:Q.thread_action_system_should_use_optimistic_update)!=null?D:!1;H=I!=="MESSENGER"?null:z?o.jsx(d("ThreadOrderStatusDropdownSection.react").ThreadOrderStatusDropdownSection,{pageID:f,consumerID:O,query:Q,environment:W,refresh:B,showAdEventSharingLegalNux:$,onShowContactCardTosModal:n,shouldShowContactCardTos:w}):o.jsx(d("ThreadOrderStatusDropdownSection.react").ThreadOrderStatusDropdownSectionDeprecated,{pageID:f,consumerID:O,query:Q,environment:W,refresh:B,showAdEventSharingLegalNux:$,onShowContactCardTosModal:n,shouldShowContactCardTos:w});F=I!=="MESSENGER"?null:o.jsx("div",{className:(m||(m=c("stylex")))(c("geoMargin").top8),children:o.jsx(c("BizKitContextCardActivityListSection.react"),{activity:y,page:G==null?void 0:G.page.listItemRef,mbsBusinessAssets:G==null?void 0:G.xfb_mbs_business_assets.listItemRef,pageID:f,userID:O,surface:e,pageContactID:g,onActivityListUpdated:C,isInKBankRollout:l,onShowContactCardTosModal:n,shouldShowContactCardTos:w,contactIdentity:j,refetchLeadOpportunity:x})});return o.jsxs(o.Fragment,{children:[o.jsx(c("BizKitContextCardActivityNuxForAutoDetected.react"),{contact:y,shouldShowNux:(y==null?void 0:y.should_show_automated_activity_redesigned_nux)!==!0&&(y==null?void 0:y.should_show_automated_activity_nux)===!0,pageID:f,nuxType:"AUTOMATED_ACTIVITY_CREATION",identity:j,refetchLeadOpportunity:x}),o.jsx("div",{ref:d("getBizInboxOrganizeInboxTourSteps").contactCardActivitySectionRef,className:a.className,"data-testid":void 0,children:o.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top4,children:[o.jsxs(c("GeoFlexbox.react"),{gap:8,alignItems:"center",children:[o.jsx(c("GeoHeading.react"),{level:3,children:h._("Activity")}),A?o.jsx(c("GeoPill.react"),{label:d("LeadsManagerConstants").RECOMMENDED_PILL_CONTENT,status:"info",value:d("LeadsManagerConstants").RECOMMENDED_PILL_CONTENT}):null]}),Z,H,F]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BusinessCometInboxContextCard.react",["BizCRMContactCardPermission","BizCRMContactCardSection","BizInboxStateContext","BizKitContextCardConstants","BizKitContextCardErrorBoundary.react","BizKitContextCardTOSModal.react","BizKitContextCardTosLoggingUtils","BusinessCometInboxContextCardSection3DWrapper.react","BusinessCometInboxContextCard_config.graphql","BusinessCometInboxContextCard_detail.graphql","CometPlaceholder.react","GeoToast.react","JSResourceForInteraction","RelayHooks","getJSEnumSafe","justknobx","lazyLoadComponent","react","useGeoToaster","usePageGating"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useContext,m=e.useState,n=c("lazyLoadComponent")(c("JSResourceForInteraction")("BizKitContactCardCoexEditInfoModal.react").__setRef("BusinessCometInboxContextCard.react"));function a(a){var e,f=d("RelayHooks").useFragment(h!==void 0?h:h=b("BusinessCometInboxContextCard_detail.graphql"),a.contactDetails),g=d("RelayHooks").useFragment(i!==void 0?i:i=b("BusinessCometInboxContextCard_config.graphql"),a.contactConfig),j=a.businessAssets,o=a.contactID,p=a.contactIdentity,q=a.externalPaymentAccountData,r=a.isBlockedInIG,s=a.isDependencyOfRemovePageDependencyEnabledTool;s=s===void 0?!1:s;var t=a.isGcashEnabled,u=a.onActivityListUpdated,v=a.onBanUser,w=a.onSelectLabel,x=a.pageID,y=a.surface,z=(g==null?void 0:g.permission)?c("getJSEnumSafe")(c("BizCRMContactCardPermission"),g==null?void 0:g.permission)!=="READ_WRITE":!1,A=l(c("BizInboxStateContext"));A=A.onboardPageID;var B=(e=f==null?void 0:(e=f.shared_attributes)==null?void 0:e.is_guest_chat)!=null?e:!1,C=(e=f==null?void 0:(e=f.shared_attributes)==null?void 0:e.page_contact_id)!=null?e:"";e=(e=f==null?void 0:f.has_consented_to_contact_card_tos)!=null?e:!1;var D=["CRM_DESTINATION","INBOX_CONTACT_LIST","INBOX_LEAD_EMAIL"].includes(y),E=c("usePageGating")("gk");E=A!=null&&A!==""&&E.getBool(A,"wa_inbox_deprecate_bpl",{fallback:{enabled:c("justknobx")._("3190"),getBool:!1},silent:!1});E=((A=E)!=null?A:!1)&&p.type==="WA_USER";var F=!D&&!E&&!e;A=s?f==null?void 0:f.mbs_business_assets:f==null?void 0:f.page;s=s?(f==null?void 0:(D=f.mbs_business_assets)==null?void 0:D.page_if_viewer_can_manage_permissions)!=null:(f==null?void 0:(E=f.page)==null?void 0:E.if_viewer_can_manage_permissions)!=null;var G=!1,H=A==null?void 0:(D=A.business_presence_node)==null?void 0:D.id,I=(A==null?void 0:(E=A.is_in_kbank_rollout)==null?void 0:E.passes)===!0,J=(f==null?void 0:(D=f.page)==null?void 0:(A=D.show_payment_onboarding_context_card)==null?void 0:A.passes_gk)===!0;E=m(!1);D=E[0];var K=E[1];A=c("useGeoToaster")();var L=A.add,M=function(a){var b=null;a==="error"?b=c("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_ERROR_TEXT:a==="success"&&(b=c("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_SUCCESS_TEXT);b!==null&&L(k.jsx(c("GeoToast.react"),{heading:b,status:a}),{duration:"standard"})};E=m(!1);A=E[0];var N=E[1],O=function(){N(!0)};E=A&&k.jsx(c("CometPlaceholder.react"),{fallback:null,children:k.jsx(n,{isShown:A,onHide:function(){N(!1)}})});var P=function(){K(!0),d("BizKitContextCardTosLoggingUtils").logTosModalEnterFlow(x,C,y)};g=g==null?void 0:(A=g.sections_renderers)==null?void 0:A.map(function(b){return k.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:x,section:c("getJSEnumSafe")(c("BizCRMContactCardSection"),b.section_enum),children:k.jsx(c("BusinessCometInboxContextCardSection3DWrapper.react"),{bpnID:H,businessAssets:j,contactID:o,contactIdentity:p,data:f,externalPaymentAccountData:q,isBlockedInIG:r,isGcashEnabled:t,isInKBankRollout:I,isPageEnabledForWAM:G,onActivityListUpdated:u,onBanUser:v,onClose:a.onClose,onSelectLabel:w,onShowCoexEditInfo:O,onShowContactCardTosModal:P,pageContactID:C,pageID:x,readOnly:z,rendererRef:b,sectionName:b.section_enum,shouldDisableBizInput:B,shouldShowCloseButton:a.shouldShowCloseButton,shouldShowContactCardTos:F,shouldShowPaymentOnboardingContextCard:J,surface:y})},b.section_enum)});return k.jsxs("div",{className:"xdpxx8g","data-testid":void 0,children:[g,E,!e&&H!=null?k.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:x,children:k.jsx(c("BizKitContextCardTOSModal.react"),{bpnID:H,contactIdentity:p,isAdmin:s,isShown:D,onAcceptFailure:function(){K(!1),M("error")},onAcceptSuccess:function(){K(!1),M("success")},onHide:function(){K(!1),d("BizKitContextCardTosLoggingUtils").logTosModalCancelFlow(x,C,y)},pageContactID:C,pageID:x,surface:y})}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MarketingMessagesLWIBizInboxTOSModalWrapper.react",["BizInboxMarketingMessageEntrypointContext","MarketingMessagesLWITOSGeoModal.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext;function a(a){a=a.TOSConfig;var b=j(d("BizInboxMarketingMessageEntrypointContext").BizInboxMarketingMessageEntrypointStateContext);b=b.isSideSheetShown;a=babelHelpers["extends"]({},a,{isTosModalShown:a.isTosModalShown||b});return i.jsx(c("MarketingMessagesLWITOSGeoModal.react"),{TOSConfig:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerOverviewPageRoot.react",["CommerceManagerContextProviders.react","CommerceManagerHomePage.atomic","CommerceManagerLayersContainerWithSuspense.react","CommerceManagerOverviewPageRootQuery.graphql","RelayHooks","nullthrows","react","useCommerceManagerRouteParams","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("CommerceManagerOverviewPageRootQuery.graphql");function a(a){var b;c("vulture")("aUs0g4NqBBi");var e=d("RelayHooks").usePreloadedQuery(k,a.queries.CommerceManagerOverviewPageRootQueryReference),f=c("useCommerceManagerRouteParams")(),g=f.load_idv_flow,h=f.load_obbo_flow,i=f.load_fed_inform_wizard,l=f.load_fed_inform_wizard_individual_flow,m=f.shop_complete,n=f.show_on_load_modal,o=f.show_tos_modal;f=f.toast_message;return j.jsxs(c("CommerceManagerContextProviders.react"),{activeTab:"home",catalogOrCmsID:c("nullthrows")((b=(b=a.extraProps)==null?void 0:b.cmsID)!=null?b:(b=a.extraProps)==null?void 0:b.catalogID),commerceManagerRoutingImpl:"Comet",configuration:e.configuration,isBizSuiteUser:!1,loadFedInformWizard:i,loadFedInformWizardIndividualFlow:l,loadIDVFlow:g,loadOBBOFlow:h,routeGivenName:"catalog_home",showOnLoadModal:n,showShopCompleteDialog:m,showTOSModal:o,toastMessage:f,children:[j.jsx(c("CommerceManagerLayersContainerWithSuspense.react"),{}),j.jsx(c("CommerceManagerHomePage.atomic"),{})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AudienceManagerChrome.react",["cx","fbt","invariant","AdsAEExperimentUtils","AdsAMAccountAcceptedTosAddAction","AdsAMAmStartInitAction","AdsAMAudienceDeleteStartAction","AdsAMAudienceGraphAPI","AdsAMAudienceStore","AdsAMAudienceUtils","AdsAMCreateAudienceServerActions","AdsAMSharingAgreementAcceptedAction","AdsAMViewActions","AdsAMViewClearErrorsAction","AdsAMViewCloseMoveAdAccoutToBusinessDialogAction","AdsAMViewCloseRegularEditDialogAction","AdsAMViewCloseShareAudienceDialogAction","AdsAMViewCloseUserTOSDialogAction","AdsAMViewShowCreateCaDialogAction","AdsAMViewShowLookalikeDialogAction","AdsAMViewShowSavedAudienceCreateDialogAction","AdsAMViewShowSavedTargetSpecDialogAction","AdsAMViewStore","AdsAMViewToggleSpecialAdAudienceDialogAction","AdsAMViewUpdateFilterSetAction","AdsAdvantageAudienceSavedAudienceGKUtils","AdsAudienceDataSourceUtils","AdsAudienceDetailActions","AdsAudienceDetailStore","AdsAudienceManagerGlobalNavigation.react","AdsAudienceManagerUnloadAction","AdsAudienceOverlapActions","AdsAudienceRuleBuilderSpecUtil","AdsAudienceSharingStore","AdsCollapseSideNavAction","AdsCommonAdvertisablePagesVideosStore","AdsCreateSpecialAdAudienceBlockingDialog.react","AdsDataSourceTables","AdsErrorBoundary.react","AdsExpandSideNavAction","AdsFluxContainer","AdsGenericFilterSetUtil","AdsGeodesicAdoption","AdsInterfacesLogger","AdsManagerIGLoginUtils","AdsMoveAdAccountToBusinessViewStage","AdsNewIDs","AdsOsmipExperimentUtils","AdsPixelDialogStore","AdsPixelDialogTypes","AdsPixelTableSettingProvider","AdsSavedAudienceActions","AdsSavedAudienceLoggingEvents","AdsSideNavUIStateDataProvider","AdsStaticGuidanceCard.react","AdsTargetingAccountControlInfoSelector","AdsTargetingAudienceEditorGKSelectors","AdsTargetingAudienceShowCreateLalAudienceDialogDataAction","AdsTargetingBootloadDialog.react","AdsTargetingFallbackErrorNotice.react","AdsTargetingIosSignalLossSelectors","AdsTargetingOffsiteSignalsConsolidationUtils","AssetLibrarySearchStore.brands","AudienceDetailsPaneGeodesicContainer.react","AudienceManagerAudienceTable.react","AudienceManagerBulkDeleteDialog.react","AudienceManagerBulkDeleteSTSDialog.react","AudienceManagerCreateAudienceFlatDialogContainer.react","AudienceManagerDeleteDialog.react","AudienceManagerErrorTypes","AudienceManagerErrorView.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerHeader.react","AudienceManagerLoggingEvents","AudienceManagerLoggingUtils","AudienceManagerLookalikeDialogGKSelectors","AudienceManagerOptOutDialog.react","AudienceManagerPlacement","AudienceManagerStages","AudienceManagerToolsBar.react","AudienceManagerTransactionDialog.react","AudienceManagerUIConstants","AudienceManagerUnsubscribeStepperModal.react","AudienceSharingHideAgreementDataAction","BUICard.react","BUISection.react","BUIText.react","BootloadedComponent.react","BrandingUtils","CometPlaceholder.react","CustomAudienceTosUtils","CustomAudienceUtils","FlexLayout.react","GeoAppShell.react","GeoCard.react","GeoFlexbox.react","GeoNextAMUtils","GeoSection.react","GeoSpinner.react","GeoToast.react","JSResource","MarketingMessagesAudienceEditSubscriberListUpdateFalcoEvent","PartnerIntegrationDialogLoggingScopesAction","SUIBusinessThemeContainer.react","ShareAudienceConstants","URI","UnifiedAudiencesManagerAudienceDetailPaneAction","XAdsAccountQualityControllerRouteBuilder","adsCreateSelector","adsMessageMarketingWABASelector","adsSignalSourceContainersSelector","cr:9922","geoMargin","immutable","isSubscriberListAudience","joinClasses","lazyLoadComponent","performanceNow","react","stylex","useGeoTheme","vulture"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l,m,n,o=n||(n=d("react"));a=n.PureComponent;var p=d("GeoNextAMUtils").isGeoNextEnabled(),q=c("AdsPixelTableSettingProvider").toFluxStore(),r=c("lazyLoadComponent")(c("JSResource")("AdsOsmipProactivePromptWithAnchor.react").__setRef("AudienceManagerChrome.react")),s=(e=b("cr:9922"))!=null?e:c("adsCreateSelector")([],function(){return null},{name:f.id}),t=42,u=720,v=112,w=c("AdsSideNavUIStateDataProvider").toFluxStore();h=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var g=arguments.length,h=new Array(g),i=0;i0?a=o.jsx("div",{className:"xyamay9 x1pi30zi x1l90r2v x1swvt13",children:o.jsx(c("AudienceManagerErrorView.react"),{message:b[0].message,shown:!0})}):a=o.jsxs("div",{className:"x1ey2m1c xxk0z11 x17qophe xr1yuqi xkrivgy x4ii5y1 x1gryazu x10l6tqk xds687c x2b8uid x13vifvy xzjbwwf",children:[o.jsx(c("GeoSpinner.react"),{}),o.jsxs("div",{children:[o.jsx(c("BUIText.react"),{display:"block",margin:"_3-8n",size:"meta1",textAlign:"center",weight:"bold",children:i._("u6b63u5728u52a0u8f7du53d7u4f17")}),o.jsx(c("BUIText.react"),{display:"block",size:"meta1",textAlign:"center",children:i._("u8bf7u7a0du7b49u2026")})]})]});return o.jsxs("div",{className:"xh8yej3",children:[this.$5(),a]})};e.$7=function(){var a=this,b=this.$8();b=o.jsx(c("SUIBusinessThemeContainer.react"),{children:b?this.$9():this.$10()});b=p?o.jsx(c("GeoCard.react"),{xstyle:c("geoMargin").all12,children:o.jsx(c("GeoSection.react"),{children:b})}):o.jsx(c("BUICard.react"),{margin:"_3-8j",children:o.jsx(c("BUISection.react"),{children:b})});return o.jsxs("div",{"data-testid":void 0,children:[o.jsx("div",{ref:this.$2,onClick:function(){return window.setTimeout(function(){return a.forceUpdate()})},children:o.jsx(c("AudienceManagerHeader.react"),{accountID:this.props.accountID,handleFilterSetChanged:this.$11,shouldUseLookalikeContainer:this.state.shouldUseLookalikeContainer})}),o.jsx("div",{className:"xeq5yr9",children:p?o.jsxs(c("GeoFlexbox.react"),{children:[b,this.$12()]}):o.jsxs(c("FlexLayout.react"),{children:[b,this.$12()]})}),this.$13(),this.$14(),this.$15(),this.$16(),this.$17(),this.$18(),this.$19(),this.$20(),this.$21(),this.$22(),this.$23(),this.$24(),this.$25(),this.$26()]})};e.$26=function(){return this.props.accountID!=null&&d("AdsOsmipExperimentUtils").getIsOsmipScalingV2()?o.jsx(c("CometPlaceholder.react"),{fallback:null,children:o.jsx(r,{accountID:this.props.accountID,surface:"audience_manager"})}):null};e.$12=function(){return this.state.clickedAudienceID!=null?o.jsx(c("AudienceDetailsPaneGeodesicContainer.react"),{accountID:this.props.accountID,audienceID:this.state.clickedAudienceID,businessID:this.props.businessID,offsiteConsolidatedContainers:this.state.offsiteConsolidatedContainers,tableHeight:this.$27()}):null};e.$23=function(){return this.state.showSharingAgreementID!==null?o.jsx(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("AudienceSharingAgreementRecipientModal.react").__setRef("AudienceManagerChrome.react"),bootloadPlaceholder:o.jsx(c("GeoSpinner.react"),{}),initiatorBusinessName:this.state.showSharingAgreementBusinessName,isShown:!0,responseSuccess:this.state.agreementResponseSuccess,onAccept:this.$28,onHide:this.$29}):null};e.$34=function(){return d("CustomAudienceUtils").isDisabledAdAccount(c("AdsAMAudienceStore").getAccount())};e.$8=function(){var a=c("AdsAMAudienceStore").getAllAudiences().length||this.$6();return!!a};e.$6=function(){var a=c("AdsAMViewStore").hasFilterContent()||c("AssetLibrarySearchStore.brands").getConstructedFilterSet();return!!a};e.$10=function(){return o.jsx("div",{className:"xexx8yu x1pi30zi x18d9i69 x1swvt13",children:o.jsx(c("AdsTargetingBootloadDialog.react"),{accountControlInfo:this.state.accountControlInfo,accountId:this.props.accountID,accountInfo:c("AdsAMAudienceStore").getAccount(),aymtGlobalBanner:this.state.aymtGlobalBanner,bootloadLoader:c("JSResource")("AudienceManagerBlankState.react").__setRef("AudienceManagerChrome.react"),businessID:this.props.businessID,canWrite:this.props.canWrite,dao:this.props.primedDao,tosAccepted:this.$35(),tosRequirementsForAccount:this.$36(),onAudienceAdded:this.$37,onSavedAudienceCreated:this.$38})})};e.$9=function(){return o.jsxs("div",{children:[this.$39(),this.$40(),this.$41(),this.$42(),this.$43(),this.$44(),this.$45(),this.$46(),this.$47(),this.$48(),this.$49(),this.$50(),this.$51()]})};e.$13=function(){var a=c("AdsAMAudienceStore").getErrorsByType(d("AudienceManagerErrorTypes").ErrorTypes.NON_INIT_ERRORS);return a.length>0?o.jsx(c("AudienceManagerTransactionDialog.react"),{error:a[0],stage:d("AudienceManagerStages").ERROR,onCancelError:this.$52}):null};e.$39=function(){return o.jsx(c("AudienceManagerToolsBar.react"),{accountID:this.props.accountID,businessID:this.props.businessID,canWrite:this.props.canWrite,controller:this.props.controller,handleAudienceOverlapButtonClicked:this.$53,handleOptOutUserButtonClicked:this.$54,hasContent:this.$8(),isDisabledAdAccount:this.$34(),placement:this.props.placement,selectedAudienceIDs:this.state.selectedAudienceIDs,onAdCreate:this.props.onAdCreate,onCreateAudienceClicked:this.$55,onManageSubscribersClick:this.$56})};e.$50=function(){return this.state.showAudienceOverlapDialog?o.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,bootloadLoader:c("JSResource")("AudienceManagerAudienceOverlapDialogContainer.react").__setRef("AudienceManagerChrome.react"),initialAudienceIDsToCompare:this.state.selectedAudienceIDs,onCancel:this.$57}):null};e.$21=function(){return this.state.audienceClicked&&d("AdsAMAudienceUtils").isSavedAudience(this.state.audienceClicked)&&this.state.dialogStates.showSavedAudienceEditDialog?o.jsx(d("AdsGeodesicAdoption").AdsGeodesicAdoptionEnabledProvider,{children:o.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audienceID:this.state.audienceClicked.id,bootloadLoader:c("JSResource")("AdsEditSavedAudienceDialogContainer.react").__setRef("AudienceManagerChrome.react"),isShown:this.state.dialogStates.showSavedAudienceEditDialog,shouldEnableAppSignalLossAudienceManagerChanges:this.state.shouldEnableAppSignalLossAudienceManagerChanges,shouldEnableIos14AppInstallSignalLossChanges:!1,shouldEnableNonAppInstallSignalLossChanges:!1,onClose:this.$59,onSavedAudienceChange:function(){},onSavedAudienceUpdated:this.$60})}):null};e.$22=function(){return this.state.dialogStates.showSavedAudienceCreateDialog?o.jsx(d("AdsGeodesicAdoption").AdsGeodesicAdoptionEnabledProvider,{children:o.jsx(c("AdsTargetingBootloadDialog.react"),{accountControlInfo:this.state.accountControlInfo,accountID:this.props.accountID,accountInfo:c("AdsAMAudienceStore").getAccount(),bootloadLoader:c("JSResource")("AdsCreateSavedAudienceTargetingDialogContainerWrapper.react").__setRef("AudienceManagerChrome.react"),isShown:!0,shouldEnableAppSignalLossAudienceManagerChanges:this.state.shouldEnableAppSignalLossAudienceManagerChanges,shouldEnableIos14AppInstallSignalLossChanges:!1,shouldEnableNonAppInstallSignalLossChanges:!1,tempID:this.state.tempID,onCancel:this.$61,onCreate:this.$38})}):null};e.$25=function(){if(this.state.showUnsubscribeModal){var a=c("AdsAMAudienceStore").getAccount().account_id;return o.jsx(c("AudienceManagerUnsubscribeStepperModal.react"),{adAccountID:a,businessID:this.props.businessID,showSubscriberDeletionContent:d("AdsTargetingAudienceEditorGKSelectors").subscriberDeletionAMGKSelector(),wabaList:this.state.wabaList,onClose:this.$62})}return null};e.$14=function(){var a=this.props.primedDao;if((this.state.dialogStates.showCreateCustomAudienceDialog||this.state.dialogStates.showDFCACreationDialog)&&a!=null){var b=this.props.placement!==c("AudienceManagerPlacement").POWER_EDITOR,e=void 0;this.state.customAudienceCreationAutoLaunch&&(e=this.state.customAudienceCreationAutoLaunch);return o.jsx(c("CometPlaceholder.react"),{fallback:o.jsx(c("GeoSpinner.react"),{size:"small"}),name:f.id,children:o.jsx(c("AudienceManagerCreateAudienceFlatDialogContainer.react"),{accountID:this.props.accountID,accountInfo:c("AdsAMAudienceStore").getAccount(),allowNextStep:b,autoLaunch:e,businessID:this.props.businessID,dao:a,disabledAudienceTypes:c("immutable").Set(),openedFromAudienceManager:!0,showDFCACreationDialog:this.state.dialogStates.showDFCACreationDialog,showEngagementAudienceNUX:this.state.showEngagementAudienceNUX,tosAccepted:this.$35(),tosRequirementsForAccount:this.$36(),onAudienceAdded:this.$37,onCancel:d("AdsAMViewActions").closeCreateCustomAudienceDialog})})}return null};e.$40=function(){if(this.state.dialogStates.showBulkDeleteDialog){this.state.selectedAudienceIDs&&this.state.selectedAudienceIDs.length>0||j(0,3598);var a=this.state.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)}),b=d("AdsAMAudienceUtils").isSavedTargetSpec(a[0]);if(b){b=this.state.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)});return o.jsx(c("AudienceManagerBulkDeleteSTSDialog.react"),{canPauseCampaign:this.state.canPauseCampaign,selectedAudiences:b,onBulkDelete:this.$63,onClose:d("AdsAMViewActions").closeBulkDeleteDialog})}else return o.jsx(c("AudienceManagerBulkDeleteDialog.react"),{accountID:this.props.accountID,canPauseCampaign:this.state.canPauseCampaign,controller:this.props.controller,selectedAudiences:a,onBulkDelete:this.$64,onBulkUnshare:this.$65,onClose:d("AdsAMViewActions").closeBulkDeleteDialog})}return null};e.$48=function(){var a=this;return this.state.dialogStates.showOptOutDialog&&this.state.audienceClicked!=null?o.jsx(c("AudienceManagerOptOutDialog.react"),{audience:this.state.audienceClicked,onClose:d("AdsAMViewActions").closeOptOutDialog,onConfirmClick:function(b,c){a.props.controller.changeAudienceWithCallback(b,c,d("AdsAMViewActions").closeOptOutDialog)}}):null};e.$41=function(){if(this.state.dialogType===c("AdsPixelDialogTypes").EMAIL_INSTRUCTIONS){var a=this.$66();if(a)return o.jsx(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("AdsPixelDialogContainer.react").__setRef("AudienceManagerChrome.react"),bootloadPlaceholder:o.jsx("div",{}),pixelID:a})}return null};e.$42=function(){return this.state.dialogType===c("AdsPixelDialogTypes").EMAIL_CODE_SUCCESS?o.jsx(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("AdsPixelDialogContainer.react").__setRef("AudienceManagerChrome.react"),bootloadPlaceholder:o.jsx("div",{})}):null};e.$43=function(){if(this.state.dialogType===c("AdsPixelDialogTypes").INTEGRATIONS_CMS){var a=this.$66();if(a)return o.jsx(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("AdsPixelDialogContainer.react").__setRef("AudienceManagerChrome.react"),bootloadPlaceholder:o.jsx("div",{}),pixelID:a})}return null};e.$46=function(){var a=this.state.audienceClicked!=null?this.state.audienceClicked.id:null;if(this.state.dialogStates.showShareDialog&&(this.state.selectedAudienceIDs.length>0||a!=null)){a=this.state.selectedAudienceIDs.length>0?this.state.selectedAudienceIDs:[a];return o.jsx(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ShareAudienceDialogContainer.react").__setRef("AudienceManagerChrome.react"),bootloadPlaceholder:o.jsx("div",{}),ownerAccountID:this.props.accountID,selectedAudienceIDs:a,onUpdateAudienceCapabilities:this.props.controller.bulkUpdateAudienceCapabilities})}return null};e.$24=function(){return this.state.shareSuccess&&this.state.responseSuccess===!0?o.jsx("div",{className:"x10l6tqk xjnlgov x11dcrmo",children:o.jsx(c("GeoToast.react"),{"data-testid":void 0,description:d("ShareAudienceConstants").ShareAudienceConstants.SHARE_AUDIENCE_CONFIRMATION_BODY,heading:d("ShareAudienceConstants").ShareAudienceConstants.SHARE_AUDIENCE_CONFIRMATION_HEADER,onHide:function(){c("AdsAMViewCloseShareAudienceDialogAction").dispatch({},{line:"1248",module:"AudienceManagerChrome.react.js",moduleID:f.id})}})}):null};e.$19=function(){if(!this.state.dialogStates.showMoveAdAccountToBusinessDialog)return null;var a=c("AdsAMAudienceStore").getAccount();return o.jsx(c("AdsTargetingBootloadDialog.react"),{adAccountName:a.name,bootloadLoader:c("JSResource")("BusinessManagerUpsellContainer.brands").__setRef("AudienceManagerChrome.react"),initialViewStage:c("AdsMoveAdAccountToBusinessViewStage").BUSINESS_SELECTOR,ownerAccountID:a.account_id,shouldHideBackButton:!0,onCancel:this.$69})};e.$44=function(){var a=this.state,b=a.audienceClicked;a=a.dialogStates;if(a.showRegularEditDialog&&b){if(d("AdsAMAudienceUtils").isAudienceCreatedFromFile(b))return o.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audience:this.state.audienceClicked,bootloadLoader:c("JSResource")("AudienceManagerEditMultiKeyAudienceOptionsDialogContainer.react").__setRef("AudienceManagerChrome.react"),businessID:this.props.businessID,dao:this.props.primedDao,shouldRedirectToAddPeopleStep:this.state.shouldRedirectToAddPeopleStep,tosAccepted:this.$35(),tosRequirementsForAccount:this.$36(),onAudienceAdded:this.$37,onAudienceChanged:this.$67,onAudienceUpdated:this.$70,onClose:this.$68,onNextOptionCreateAd:this.$32,onNextOptionCreateLAL:this.$33});if(d("AdsAMAudienceUtils").isSubscriberSegmentAudience(b==null?void 0:b.subtype)&&b.rule)return o.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audience:b,bootloadLoader:c("JSResource")("AudienceManagerEditSubscriberSegmentDialogContainer.react").__setRef("AudienceManagerChrome.react"),onAudienceUpdated:this.$70,onCloseEditModal:this.$68});if(b.rule_v2){a=c("AdsAudienceDataSourceUtils").getPlatformAudienceSubType(JSON.parse(b.rule_v2));return o.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audience:b,bootloadLoader:c("JSResource")("AdsCreatePlatformAudienceDialogContainer.react").__setRef("AudienceManagerChrome.react"),dao:this.props.primedDao,isWcaTosAccepted:c("CustomAudienceTosUtils").isWcaTosAccepted(this.$35()),signalSourceType:a,onAudienceAdded:this.$70,onBack:d("AdsAMViewActions").closeRegularEditDialog,onCancel:d("AdsAMViewActions").closeRegularEditDialog,onCreateAudience:this.$71})}return o.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audience:this.state.audienceClicked,bootloadLoader:c("JSResource")("AudienceManagerEditAudienceDialog.react").__setRef("AudienceManagerChrome.react"),isIGLogin:this.state.isIGLogin,tosAccepted:this.$35(),tosRequirementsForAccount:this.$36(),onAudienceChanged:this.$67,onClose:d("AdsAMViewActions").closeRegularEditDialog})}return null};e.$20=function(){return this.state.dialogStates.showWCADialog?o.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audience:this.state.audienceClicked,bootloadLoader:c("JSResource")("WebsiteCustomAudience.react").__setRef("AudienceManagerChrome.react"),dao:this.props.primedDao,isTosAccepted:c("CustomAudienceTosUtils").isWcaTosAccepted(this.$35()),onAudienceAdded:this.$37,onAudienceUpdated:this.$70}):null};e.$45=function(){var a=this.state.audienceClicked;return this.state.dialogStates.showDeleteDialog&&a!=null?d("AdsAMAudienceUtils").isSavedTargetSpec(a)?o.jsx(c("AudienceManagerBulkDeleteSTSDialog.react"),{canPauseCampaign:this.state.canPauseCampaign,selectedAudiences:[a],onBulkDelete:this.$72,onClose:d("AdsAMViewActions").closeDeleteAudienceDialog}):o.jsx(c("AudienceManagerDeleteDialog.react"),{accountID:this.props.accountID,audience:a,canPauseCampaign:this.state.canPauseCampaign,dao:this.props.primedDao,isMessageCampaign:d("AdsAMAudienceUtils").isMarketingMessageAudience(a.subtype),onAudienceDeleted:this.$73,onAudienceUnshared:this.$74}):null};e.$15=function(){return this.state.dialogStates.showUserTosDialog||this.state.dialogStates.showValueBasedUserTosDialog?o.jsx(c("AdsTargetingBootloadDialog.react"),{adAccountID:this.props.accountID,bootloadLoader:c("JSResource")("DataFileCustomAudienceUserLevelTOSModal.react").__setRef("AudienceManagerChrome.react"),businessName:c("CustomAudienceTosUtils").getBusinessNameToAcceptTOSFor(c("AdsAMAudienceStore").getAccount()),isShown:!0,isValueBased:this.state.dialogStates.showValueBasedUserTosDialog,onAccept:this.$75,onHide:this.$76}):null};e.$16=function(){if(this.state.dialogStates.showLookalikeDialog){var a=c("AdsAMAudienceStore").getLookalikeSeedAudience();return o.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audience:a,bootloadLoader:c("JSResource")("AudienceManagerTieredLookalikeDialog.react").__setRef("AudienceManagerChrome.react"),canUseLookalikeContainerInQE:this.state.shouldUseLookalikeContainer,dao:this.props.primedDao,onAudienceAdded:this.$37,onClose:d("AdsAMViewActions").closeLookalikeDialog})}return null};e.$17=function(){return this.state.dialogStates.showSpecialAdAudienceDialog?o.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audience:this.state.audienceClicked,bootloadLoader:c("JSResource")("AudienceManagerTieredLookalikeDialog.react").__setRef("AudienceManagerChrome.react"),canUseLookalikeContainerInQE:this.state.shouldUseLookalikeContainer,dao:this.props.primedDao,selectedRegulatedCategory:!0,onAudienceAdded:this.$37,onClose:d("AdsAMViewActions").closeSpecialAdAudienceDialog}):null};e.$18=function(){return this.state.dialogStates.showSpecialAdAudienceBlockingDialog?o.jsx(c("AdsCreateSpecialAdAudienceBlockingDialog.react"),{isVisible:!0,onCancel:d("AdsAMViewActions").closeSpecialAdAudienceDialog,onConfirm:d("AdsAMViewActions").closeSpecialAdAudienceBlockingDialog}):null};e.$49=function(){if(this.state.showOptOutUserDialog){var a=c("AdsAMAudienceStore").getAccount();return o.jsx(c("AdsTargetingBootloadDialog.react"),{adAccount:a,bootloadLoader:c("JSResource")("AudienceManagerOptOutUserDialog.react").__setRef("AudienceManagerChrome.react"),tosAccepted:this.$35(),tosRequirementsForAccount:this.$36(),onClose:this.$77})}return null};e.$51=function(){var a=new(m||(m=c("URI")))(window.location.href).getQueryData();a=a.replace_dfca==="true";return o.jsx(c("AudienceManagerAudienceTable.react"),{accountID:this.props.accountID,businessID:this.props.businessID,canWrite:this.props.canWrite,clickedAudienceID:this.state.clickedAudienceID,constructFilter:this.$58,controller:this.props.controller,getTableHeight:this.$27,handleFilterSetChanged:this.$11,height:this.props.height,isDisabledAdAccount:this.$34(),leftNavUIState:this.state.leftNavUIState,offsiteConsolidatedContainers:this.state.offsiteConsolidatedContainers,placement:this.props.placement,primedDao:this.props.primedDao,replaceDfca:a,selectedAudienceIDs:this.state.selectedAudienceIDs,width:this.props.width,onCreateAudienceClicked:this.$55})};e.$47=function(){return this.state.dialogStates.showUnshareDialog&&this.state.audienceClicked?o.jsx(c("AdsTargetingBootloadDialog.react"),{audience:this.state.audienceClicked,bootloadLoader:c("JSResource")("AudienceManagerUnshareContainer.react").__setRef("AudienceManagerChrome.react"),width:u,onUpdateAudiencePermissions:this.$78}):null};e.$66=function(){if(this.state.viewPixelCodeSelectedID)return this.state.viewPixelCodeSelectedID;else if(this.state.audienceClicked){if(this.state.audienceClicked.external_event_source)return this.state.audienceClicked.external_event_source.id;var a=JSON.parse(this.state.audienceClicked.rule_v2);a=c("immutable").fromJS(a.inclusions.rules[0]);return d("AdsAudienceRuleBuilderSpecUtil").getFirstEventSourceID(a)}return null};e.$36=function(){return c("CustomAudienceTosUtils").getTosRequirements()};e.$35=function(){return c("AdsAMAudienceStore").getAccount().tos_accepted||{}};return b}(a);h.displayName="AudienceManagerChrome";h.defaultProps={placement:c("AudienceManagerPlacement").STAND_ALONE};var x={root:{height:"x5yr21d",$$css:!0}};function y(a){a=a.children;c("vulture")("cKvcm9HhEz");return p?o.jsx(c("GeoAppShell.react"),{isNextThemeEnabled:!0,children:a}):a}y.displayName=y.name+" [from "+f.id+"]";function z(a){a=a.children;c("vulture")("6opkt1fECsD");var b=c("useGeoTheme")();b=b.selectStaticBackgroundColor;return p?o.jsx("div",{className:(l||(l=c("stylex")))(b({surface:"page"}),x.root),children:a}):a}z.displayName=z.name+" [from "+f.id+"]";b=c("AdsFluxContainer").create(h,{withProps:!0,name:f.id});g["default"]=b}),226);
-----
BusinessCometMarketingMessageComposerRoot.react",["BizMarketingMessageComposerFullPage.react","BusinessCometMarketingMessageComposerRootQuery.graphql","BusinessCometMarketingMessagesTOSModal.react","RelayHooks","isTruthy","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var e;a=d("RelayHooks").usePreloadedQuery(h!==void 0?h:h=b("BusinessCometMarketingMessageComposerRootQuery.graphql"),a.queries.queryReference);e=!c("isTruthy")((e=a.page)==null?void 0:e.has_signed_all_mm_tos);return j.jsxs(j.Fragment,{children:[e&&j.jsx(c("BusinessCometMarketingMessagesTOSModal.react"),{}),j.jsx(c("BizMarketingMessageComposerFullPage.react"),{campaign:a.campaign,flow:a.flow,page:c("nullthrows")(a.page),rootNodes:a,segment:a.segment})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometSubscriberGrowthViewContainer.react",["BizMarketingMessageOnboardingComposerContext","BizMarketingMessagingReleaseUtils","BizMarketingMessagingSgLoggingUtils","BusinessCometMarketingMessagesTOSModal.react","BusinessCometSubscriberGrowthViewContainerQuery.graphql","BusinessCometSubscriberGrowthViewContainer_fragment.graphql","BusinessCometSubscriberGrowthViewContainer_messageConsent.graphql","BusinessCometSubscriberGrowthViewContainer_onboardingFragment.graphql","CometRelay","RelayHooks","deferredLoadComponent","isTruthy","nullthrows","react","requireDeferredForDisplay","useBizMarketingMessageOnboardingComposerContext","useBoolean"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=l||(l=d("react")),n=l.useEffect,o=c("deferredLoadComponent")(c("requireDeferredForDisplay")("BusinessCometSubscriberGrowthView.react").__setRef("BusinessCometSubscriberGrowthViewContainer.react")),p=h!==void 0?h:h=b("BusinessCometSubscriberGrowthViewContainerQuery.graphql");function a(a){var e,f,g,h,l,q,r;a=d("RelayHooks").usePreloadedQuery(p,a.queries.businessCometSubscriberGrowthViewContainerQueryReference);e=(a==null?void 0:(e=a.page)==null?void 0:e.signed_page_contact_term)===!0&&(a==null?void 0:(e=a.page)==null?void 0:e.signed_mm_additional_terms)===!0;f=e&&!c("isTruthy")(a==null?void 0:(f=a.page)==null?void 0:f.signed_meta_ai_tos);g=c("nullthrows")((g=a.page)==null?void 0:g.business_presence_node);var s=i!==void 0?i:i=b("BusinessCometSubscriberGrowthViewContainer_fragment.graphql");s=d("CometRelay").useFragment(s,a);h=(h=a.page)==null?void 0:(h=h.business_presence_node)==null?void 0:h.biz_marketing_consent_message;var t=j!==void 0?j:j=b("BusinessCometSubscriberGrowthViewContainer_messageConsent.graphql");l=(l=a.lwi)==null?void 0:l.eligible_product_data;var u=k!==void 0?k:k=b("BusinessCometSubscriberGrowthViewContainer_onboardingFragment.graphql");t=d("CometRelay").useFragment(t,(t=a.page)==null?void 0:(t=t.business_presence_node)==null?void 0:t.biz_marketing_consent_message);u=d("RelayHooks").useRefetchableFragment(u,a==null?void 0:a.page);var v=u[0];u[1];u=v==null?void 0:(u=v.business_presence_node)==null?void 0:u.biz_marketing_consent_message;q=v==null?void 0:(q=v.business_presence_node)==null?void 0:(q=q.biz_crm_config)==null?void 0:q.biz_marketing_messaging_config;v=c("useBizMarketingMessageOnboardingComposerContext")(v,u,q);u=v[0];q=v[1];v=(v=a==null?void 0:(v=a.marketing_messages_mbs_onboarding_v3_optimize_gk)==null?void 0:(v=v.gk_check)==null?void 0:v.passes_gk)!=null?v:!1;r=(r=a==null?void 0:(r=a.marketing_messages_mbs_onboarding_v4_gk)==null?void 0:(r=r.gk_check)==null?void 0:r.passes_gk)!=null?r:!1;v={gks:{passes_marketing_messages_mbs_gk:!0,passes_marketing_messages_mbs_onboarding_v3_gk:!0,passes_marketing_messages_mbs_onboarding_v3_optimize_gk:v,passes_marketing_messages_mbs_onboarding_v4_gk:r}};r=d("BizMarketingMessagingReleaseUtils").getOnboardingFlowVersion(v);var w=u.pageInfo.pageID;v=c("useBoolean")(!1);var x=v.setTrue,y=v.value;n(function(){y||(x(),d("BizMarketingMessagingSgLoggingUtils").logGysImpressionEvent(w))},[x,y,w]);return m.jsx(d("BizMarketingMessageOnboardingComposerContext").BizMarketingMessageOnboardingComposerStateContext.Provider,{value:u,children:m.jsxs(d("BizMarketingMessageOnboardingComposerContext").BizMarketingMessageOnboardingComposerDispatchContext.Provider,{value:q,children:[f&&m.jsx(c("BusinessCometMarketingMessagesTOSModal.react"),{}),m.jsx(o,{allCampaignsCount:a==null?void 0:a.allCampaignsCount,businessMessageConsent:t,businessPresenceNodeKey:g,consentMessage:h,eligibleProductData:l,gkConfig:a==null?void 0:a.page,hasSignedToS:e,lwiData:s,mDotMe:a==null?void 0:a.page,onboardingFlowVersion:r})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometMarketingMessagesOverviewView.react",["BizKitPageHeader.react","BizKitScrollablePage.react","BizMarketingMessageNoticeView.react","BizMarketingMessageNoticeViewPhase2.react","BizMarketingMessageNoticeViewPhase3.react","BizMarketingMessageSubscriberGrowthUtil","BizMarketingMessagesGetStartedFbtUtils","BizMarketingMessagesOverviewCTSBannerCard.react","BizMarketingMessagesOverviewCongratsSetupModal.react","BizMarketingMessagesOverviewLearnMoreCard.react","BizMarketingMessagesOverviewPerformanceCard.react","BizMarketingMessagesOverviewQuickStartGuideCard.react","BizMarketingMessagesOverviewRecentCampaignsCard.react","BizMarketingMessagesOverviewUpsellCampaignCreationModal.react","BizMarketingMessagingOverviewTBLLoggingUtils","BizMessageMarketingHeader.react","BizMessageMarketingOverviewFbtUtils","BusinessCometMarketingMessagesOverviewNullState.react","BusinessCometMarketingMessagesOverviewView_campaignsActive.graphql","BusinessCometMarketingMessagesOverviewView_campaignsSent.graphql","BusinessCometMarketingMessagesOverviewView_draftWelcomeCampaigns.graphql","BusinessCometMarketingMessagesOverviewView_eligibleProductData.graphql","BusinessCometMarketingMessagesOverviewView_recentCampaigns.graphql","BusinessCometMarketingMessagesTOSModal.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoHeading.react","GeoPageCard.react","GeoPageItem.react","GeoPageSection.react","RelayHooks","XBizSuiteControllerRouteBuilder","geoMargin","isTruthy","nullthrows","react","useBizKitPageNullable","useBizMarketingMountOnce","useBizWebGetRouteParams","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m,n=m||(m=d("react")),o=m.useState;function a(a){var e,f=a.allCampaignsCount,g=a.allFinishedOnboardingSteps,m=a.campaignsActive,p=a.campaignsDraft,q=a.campaignsSent,r=a.createAdImageURL,s=a.eligibleProductData,t=a.hasConsentMessage,u=a.hasScheduledCampaignsAfterMigrationDate,v=a.hasSignedToS,w=a.isEligibleForFreeToPaidNotice,x=a.isEligibleForFreeToPaidNoticePhase2,y=a.isPassHolidayUpsell1212GeoGating,z=a.isPassR9GK,A=a.messengerOptIns,B=a.needsReTos,C=a.newSubscribersCountAfterLastMM,D=a.reachSubscriberCountThreshold;a=a.recentCampaigns;q=d("RelayHooks").useFragment(h!==void 0?h:h=b("BusinessCometMarketingMessagesOverviewView_campaignsSent.graphql"),q);m=d("RelayHooks").useFragment(i!==void 0?i:i=b("BusinessCometMarketingMessagesOverviewView_campaignsActive.graphql"),m);p=d("RelayHooks").useFragment(j!==void 0?j:j=b("BusinessCometMarketingMessagesOverviewView_draftWelcomeCampaigns.graphql"),p);a=d("RelayHooks").useFragment(k!==void 0?k:k=b("BusinessCometMarketingMessagesOverviewView_recentCampaigns.graphql"),a);var E=o(!1),F=E[0];E=E[1];v=!v||F;F=((F=(F=q.sentCampaigns)==null?void 0:F.count)!=null?F:0)+((F=m.activeCampaigns)==null?void 0:F.length)>=2;var G=t||g.includes("FINISH_WELCOME_CAMPAIGN");t=g.includes("TUNR_ON_MAXIMIZED_SUBSCRIBERS");var H=!(t&&F&&G),I=g.includes("FINISH_WELCOME_CAMPAIGN"),J=g.includes("FINISH_INVITE_TO_SUBSCRIBE");g=null;var K=c("XBizSuiteControllerRouteBuilder").buildUri({nav_ref:"internal_nav",rest:"marketing_message_composer"}),L=c("nullthrows")(c("useBizKitPageNullable")(),"pageID is null");e=(e=c("XBizSuiteControllerRouteBuilder").buildUri({nav_ref:"internal_nav",rest:"marketing_messages/onboarding"}))==null?void 0:e.addQueryParam("asset_id",L);var M=K==null?void 0:K.addQueryParam("asset_id",L);g=p.draftWelcomeCampaigns.length>0?K==null?void 0:K.addQueryParam("campaign_id",p.draftWelcomeCampaigns[0].flow_id):e;K=d("RelayHooks").useFragment(l!==void 0?l:l=b("BusinessCometMarketingMessagesOverviewView_eligibleProductData.graphql"),s);var N=(p={},p.ads_lwi_goal="GET_SUBSCRIBERS",p.page_welcome_message=JSON.stringify({image_url:r}),p);s=K==null?void 0:(e=K.product_data)==null?void 0:e.find(function(a){return(a==null?void 0:a.objective)==="MESSAGES"});var O=(r=s==null?void 0:s.target_id)!=null?r:"";p=d("BizMarketingMessageSubscriberGrowthUtil").getMMMBSCTSRedirectionUrl(L,N,O,"bizweb_mbs_marketing_message_overview_tab");e=(K=c("useBizWebGetRouteParams")())!=null?K:{};var P=e.is_nux,Q=e.nav_ref;s=e.session_id;var R=String(s!=null?s:c("uuidv4")());c("useBizMarketingMountOnce")(function(){d("BizMarketingMessagingOverviewTBLLoggingUtils").logImpressionEvent(Q,L,R,"overview")});r=function(){if(B)return n.jsx(c("BusinessCometMarketingMessagesTOSModal.react"),{});else if(c("isTruthy")(P)){var a=d("BizMarketingMessageSubscriberGrowthUtil").getMMMBSCTSRedirectionUrl(L,N,O,"bizweb_mbs_marketing_message_onboarding_flow");return n.jsx(c("BizMarketingMessagesOverviewCongratsSetupModal.react"),{createAdURL:a,finishInviteToSubscribe:J,finishWelcomeCampaign:I})}else{a=D!=null&&G;if(a){return n.jsx(c("BizMarketingMessagesOverviewUpsellCampaignCreationModal.react"),{subscriberCountThreshold:(a=D)!=null?a:0})}}};K=n.jsx(c("GeoGuidanceCard.react"),{header:n.jsx(c("GeoGuidanceCardHeader.react"),{heading:d("BizMarketingMessagesGetStartedFbtUtils").GETSTARTED_PAGE_PRICING_GUIDANCE_CARD_TITLE}),status:"active-feedback",children:n.jsx(c("GeoGuidanceCardContent.react"),{children:d("BizMarketingMessagesGetStartedFbtUtils").GETSTARTED_PAGE_PRICING_DESCRIPTION})});e=n.jsxs(c("GeoPageSection.react"),{children:[n.jsx(c("GeoPageCard.react"),{columns:12,children:K}),n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BusinessCometMarketingMessagesOverviewNullState.react"),{setHasStartedOnboarding:E})})]});if(v)return n.jsx(c("BizKitScrollablePage.react"),{header:n.jsx(c("BizKitPageHeader.react"),{description:d("BizMarketingMessagesGetStartedFbtUtils").GETSTARTED_PAGE_HEADER_DESCRIPTION,heading:d("BizMarketingMessagesGetStartedFbtUtils").GETSTARTED_PAGE_HEADER_TITLE}),isFullwidth:!0,children:e});E=n.jsxs(c("GeoPageSection.react"),{children:[x?u?n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessageNoticeViewPhase3.react"),{})}):n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessageNoticeViewPhase2.react"),{})}):w?n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessageNoticeView.react"),{})}):null,H?n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessagesOverviewQuickStartGuideCard.react"),{completeMaximizeSubscribers:t,completeTwoMarketingMessages:F,completeWelcomeMessage:G,composerURL:M,welcomeCampaignURL:g})}):null,n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("GeoHeading.react"),{level:2,xstyle:c("geoMargin").top8,children:d("BizMessageMarketingOverviewFbtUtils").PERFORMANCE_OVERVIEW_SECTION_TITLE})}),n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessagesOverviewPerformanceCard.react"),{campaignsActiveCount:(s=m.activeCampaigns)==null?void 0:s.length,campaignsSentCount:(K=q.sentCampaigns)==null?void 0:K.count,createAdURL:p,isPassHolidayUpsell1212GeoGating:y,isPassR9GK:z,mostRecentCampaign:a,newSubscribersCountAfterLastMM:C,shouldShowSmartRecommendation:!H,totalSubscribers:A})}),H?n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessagesOverviewCTSBannerCard.react"),{CTSURL:p})}):null,n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessagesOverviewRecentCampaignsCard.react"),{allCampaignsCount:f,recentCampaigns:a})}),n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("GeoHeading.react"),{level:2,xstyle:c("geoMargin").top8,children:d("BizMessageMarketingOverviewFbtUtils").LEARN_MORE_SECTION_TITLE})}),n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessagesOverviewLearnMoreCard.react"),{})})]});return n.jsxs(n.Fragment,{children:[r(),n.jsx(c("BizKitScrollablePage.react"),{header:n.jsx(c("BizMessageMarketingHeader.react"),{pageSource:"OVER_VIEW",passesOnboardingV4GK:!0,subCategory:"fb_business_marketing_messages_overview"}),isFullwidth:!0,children:E})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometMarketingMessagesTOSModal.react",["BizMarketingMessagesOnboardingFbtUtils","BizMarketingMessagesOnboardingUtils","BizMarketingMessagingPageOnboardingMutation","BizMessageMarketingOnboardingConst","BizMessageMarketingOnboardingFbtUtils","BusinessCometMarketingMessagesOnboardingModalValuePropItem.react","GeoBaseText.react","GeoBlockingDialog.react","GeoButton.react","GeoFlexbox.react","GeoModalFooter.react","GeoScrollableArea.react","GeoToast.react","IPB4BImage.react","XBizSuiteControllerRouteBuilder","geoMargin","nullthrows","react","useBizKitPageNullable","useBizMarketingMessagesOnboardingLogging","useBizMarketingMountOnce","useBizWebGetRouteParams","useBizWebRouteDispatcher","useBoolean","useGeoToaster"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={root:{height:"x5yr21d",$$css:!0}},k="re_tos_modal",l="sign_tos";function a(){var a=c("useBizWebRouteDispatcher")(),b=c("useBizWebGetRouteParams")(),e=c("nullthrows")(c("useBizKitPageNullable")(),"pageID is null"),f=c("XBizSuiteControllerRouteBuilder").buildURL({nav_ref:"internal_nav",rest:"home"}),g=c("useBoolean")(!1),h=g.setFalse,m=g.setTrue;g=g.value;var n=c("useBoolean")(!1),o=n.setFalse,p=n.setTrue;n=n.value;var q=d("BizMarketingMessagingPageOnboardingMutation").useBizMarketingMessagingPageOnboardingMutation(),r=q[0];q=q[1];var s=c("useBizMarketingMessagesOnboardingLogging")({pageID:c("nullthrows")(e)}),t=s.logClick,u=s.logFailure,v=s.logImpression,w=s.logSubmit,x=s.logSuccess;s=d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalValueProps(!1);s=s.map(function(a,b){return i.jsx(c("BusinessCometMarketingMessagesOnboardingModalValuePropItem.react"),babelHelpers["extends"]({},a),b)});var y=i.jsx(c("IPB4BImage.react"),{src:d("BizMessageMarketingOnboardingConst").ONBOARDING_MODAL_IMAGE_SRC,width:d("BizMessageMarketingOnboardingConst").ONBOARDING_MODAL_IMAGE_WIDTH}),z=c("useGeoToaster")(),A=z.add,B=function(){a(f,b)};z=function(){t(k,"accept"),w(k,l),r({onCompleted:function(a){x(k,l)},onError:function(a){u(k,l,a==null?void 0:a.message,a==null?void 0:a.stack),A(i.jsx(c("GeoToast.react"),{heading:d("BizMarketingMessagesOnboardingFbtUtils").ONBOARDING_GENERAL_MUTATION_ERROR,status:"error"}))},variables:{input:{onboarding_step:"SIGN_TOS",page_id:e}}})};var C=function(){t(k,"cancel"),B()},D=function(){t(k,"full_terms"),p(),h()},E=function(){t(k,"previous"),o()};c("useBizMarketingMountOnce")(function(){v(k)});return i.jsx(c("GeoBlockingDialog.react"),{"data-testid":void 0,footer:i.jsx(c("GeoModalFooter.react"),{primaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:q||!g,isLoading:q,label:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalAgreeButtonLabel(),onClick:z,variant:"primary"}),secondaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:q,label:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalNotNowButtonLabel(),onClick:C,variant:"default"}),startContent:n?i.jsx(c("GeoButton.react"),{"data-testid":void 0,icon:d("BizMarketingMessagesOnboardingUtils").getFBIconByName("chevron-left"),isDisabled:q,label:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalPreviousButtonLabel(),onClick:E,variant:"default"}):null}),heading:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalHeader(n),image:y,isShown:!0,onHide:B,orientation:"vertical",children:i.jsx(c("GeoScrollableArea.react"),{direction:"vertical",onScrollBottom:m,xstyle:j.root,children:n?i.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").horiz16,children:i.jsx(c("GeoBaseText.react"),{color:"value","data-testid":void 0,size:"accent",children:d("BizMessageMarketingOnboardingFbtUtils").getTOSLegalContentV2()})}):i.jsxs(c("GeoFlexbox.react"),{direction:"column",justifyContent:"space-between",xstyle:j.root,children:[i.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").horiz16,children:[i.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",children:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalDescription(D)}),s]}),i.jsx(c("GeoFlexbox.react"),{xstyle:c("geoMargin").horiz16,children:i.jsx(c("GeoBaseText.react"),{color:"value","data-testid":void 0,size:"accent",children:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalLegalContent()})})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerTOSModal.react",["fbt","ix","CommerceManagerContext","CommerceManagerTOSModalMutation.graphql","CommerceManagerTOSModalQuery.graphql","CommerceManagerTOSStringUtils","GeoButton.react","GeoHeading.react","GeoIllustrationModal.react","GeoModalFooter.react","GeoSection.react","GeoText.react","GeoToast.react","Image.react","RelayHooks","nullthrows","react","useGeoToaster"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react")),n=l.useContext,o={body:{marginTop:"xw7yly9",marginBottom:"x1yztbdb",$$css:!0}},p=j!==void 0?j:j=b("CommerceManagerTOSModalMutation.graphql"),q=k!==void 0?k:k=b("CommerceManagerTOSModalQuery.graphql");function a(a){var b=a.isShown,e=a.onHide;a=n(c("CommerceManagerContext"));a=a.cmsID;var f=c("nullthrows")(a);a=d("RelayHooks").useLazyLoadQuery(q,{cmsID:f},{fetchPolicy:"store-or-network"});var g=d("RelayHooks").useMutation(p),j=g[0];g=g[1];var k=c("useGeoToaster")(),l=k.add;k=function(){j({variables:{input:{commerce_account_id:f}},onCompleted:function(a){l(m.jsx(c("GeoToast.react"),{heading:d("CommerceManagerTOSStringUtils").getTermsAcceptedMessage(),status:"success"})),e()},onError:function(a){l(m.jsx(c("GeoToast.react"),{heading:(a=a.description)!=null?a:"",status:"error"}));e()}})};a=(a=a.cms)==null?void 0:(a=a.missing_tos_info)==null?void 0:a.deadline_in_seconds;var r=d("CommerceManagerTOSStringUtils").getTOSAcceptanceDescription(a);a=d("CommerceManagerTOSStringUtils").getTOSAcceptanceTitle(a);return m.jsx(c("GeoIllustrationModal.react"),{footer:m.jsx(c("GeoModalFooter.react"),{primaryButton:m.jsx(c("GeoButton.react"),{isDisabled:g,label:h._("u662fuff0cu6211u540cu610f"),variant:"primary",onClick:k})}),heading:a,image:m.jsx(c("Image.react"),{src:i("278532"),width:440}),isShown:b,onHide:e,children:m.jsxs(c("GeoSection.react"),{children:[m.jsx(c("GeoHeading.react"),{level:2,children:a}),m.jsx(c("GeoText.react"),{xstyle:o.body,children:r})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
CommerceManagerTOSModalQuery.graphql",["CommerceManagerTOSModalQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"cmsID"}],c=[{kind:"Variable",name:"id",variableName:"cmsID"}],d={alias:null,args:null,concreteType:"CMSMissingTermsAndConditions",kind:"LinkedField",name:"missing_tos_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"deadline_in_seconds",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CommerceManagerTOSModalQuery",selections:[{alias:"cms",args:c,concreteType:"CommerceMerchantSettings",kind:"LinkedField",name:"fetch__CommerceMerchantSettings",plural:!1,selections:[d],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CommerceManagerTOSModalQuery",selections:[{alias:"cms",args:c,concreteType:"CommerceMerchantSettings",kind:"LinkedField",name:"fetch__CommerceMerchantSettings",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("CommerceManagerTOSModalQuery_facebookRelayOperation"),metadata:{},name:"CommerceManagerTOSModalQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
CommerceManagerTOSModalMutation.graphql",["CommerceManagerTOSModalMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"CommerceAccountAcceptTOSMutationResponse",kind:"LinkedField",name:"commerce_accept_seller_tos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"commerce_account_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CommerceManagerTOSModalMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CommerceManagerTOSModalMutation",selections:c},params:{id:b("CommerceManagerTOSModalMutation_facebookRelayOperation"),metadata:{},name:"CommerceManagerTOSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
CommerceManagerTOSModalQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5661577503911571"}),null);
-----
CommerceManagerTOSModalMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8140372942702165"}),null);
-----
BusinessCometCreatorMarketplaceOnboardingModalView.react",["$InternalEnum","BusinessCometCreatorMarketplaceOnboardingEPDModalView.react","BusinessCometCreatorMarketplaceOnboardingGetStartedModalView.react","BusinessCometCreatorMarketplaceOnboardingToSModalView.react","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));e=h;var j=e.useCallback,k=e.useState,l=b("$InternalEnum")({ToS:0,EPD:1,FinishOnboarding:2});function a(a){var b=a.bcpBrandProfileID,d=a.isShown,e=a.onCancel,f=a.onSuccess;a=a.skipTOS;var g=c("gkx")("22639");a=k(a?l.FinishOnboarding:l.ToS);var h=a[0],m=a[1];a=j(function(){e(),m(l.ToS)},[m,e]);var n=j(function(){g?m(l.EPD):m(l.FinishOnboarding)},[m,g]),o=j(function(){m(l.FinishOnboarding)},[m]),p=j(function(){f(),m(l.ToS)},[f]);return i.jsxs(i.Fragment,{children:[h===l.ToS&&i.jsx(c("BusinessCometCreatorMarketplaceOnboardingToSModalView.react"),{bcpBrandProfileID:b,isShown:d,onClose:a,onSuccess:n}),h===l.EPD&&i.jsx(c("BusinessCometCreatorMarketplaceOnboardingEPDModalView.react"),{bcpBrandProfileID:b,isShown:d,onClose:a,onSuccess:o}),h===l.FinishOnboarding&&i.jsx(c("BusinessCometCreatorMarketplaceOnboardingGetStartedModalView.react"),{bcpBrandProfileID:b,isShown:d,onClose:a,onSuccess:p})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometCreatorMarketplaceOnboardingToSModalView.react",["fbt","BCPBrandTOSSitevarConfig","BusinessCometCreatorMarketplaceOnboardingLogger","BusinessCometCreatorMarketplaceOnboardingSomethingWentWrongModalView.react","BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation.graphql","CometRelay","CreatorMarketplaceMBSTOSContainer.react","GeoButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useEffect,n=e.useState,o=i!==void 0?i:i=b("BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation.graphql");function a(a){var b=a.bcpBrandProfileID,e=a.isShown,f=a.onClose,g=a.onSuccess;a=n(!1);var h=a[0],i=a[1];a=n(!1);var j=a[0],m=a[1],q=c("BCPBrandTOSSitevarConfig").actual_version;a=d("CometRelay").useMutation(o);var r=a[0],s=d("BusinessCometCreatorMarketplaceOnboardingLogger").usePaidPartnershipsOnboardingLogger();a=l(function(){s.acceptTOSButtonClicked(),i(!0),r({onCompleted:function(a){i(!1),m(!1),g()},onError:function(a){i(!1),m(!0)},variables:{bcp_brand_id:b,version:q}})},[b,i,r,g,m,s,q]);var t=l(function(){f(),m(!1),i(!1),s.cancelTOSButtonClicked()},[f,m,i,s]);return k.jsxs(k.Fragment,{children:[!j&&k.jsx(p,{isLoading:h,isShown:e,onAccept:a,onHide:t}),j&&k.jsx(c("BusinessCometCreatorMarketplaceOnboardingSomethingWentWrongModalView.react"),{isLoading:h,isShown:e,onHide:t,onRetry:a})]})}a.displayName=a.name+" [from "+f.id+"]";function p(a){var b=a.isLoading,e=a.isShown,f=a.onAccept;a=a.onHide;var g=d("BusinessCometCreatorMarketplaceOnboardingLogger").usePaidPartnershipsOnboardingLogger(),i=c("BCPBrandTOSSitevarConfig").actual_version;i=c("BCPBrandTOSSitevarConfig").version_to_cms_id_mapping[i];m(function(){e&&g.acceptTOSModalDisplayed()},[e,g]);return k.jsx(c("GeoModal.react"),{footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:b,isLoading:b,label:h._("u63a5u53d7"),onClick:f,variant:"primary"}),secondaryButton:k.jsx(c("GeoButton.react"),{isDisabled:b,label:h._("u53d6u6d88"),onClick:a,variant:"default"})}),header:k.jsx(c("GeoModalHeader.react"),{heading:h._("u67e5u770bu5e76u63a5u53d7u6211u4eecu7684u300au670du52a1u6761u6b3eu300bu5373u53efu5f00u59cb")}),isShown:e,onHide:a,width:740,children:k.jsx(c("GeoSection.react"),{children:k.jsx(c("CreatorMarketplaceMBSTOSContainer.react"),{cmsID:i.toString(),onLoad:function(){}})})})}p.displayName=p.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation.graphql",["BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"bcp_brand_id"},{defaultValue:null,kind:"LocalArgument",name:"version"}],c=[{alias:null,args:[{fields:[{kind:"Variable",name:"bcp_brand_id",variableName:"bcp_brand_id"},{kind:"Variable",name:"version",variableName:"version"}],kind:"ObjectValue",name:"data"}],concreteType:"PAYBrandProfileResponsePayload",kind:"LinkedField",name:"bcp_brand_accept_tos_on_mbs",plural:!1,selections:[{alias:null,args:null,concreteType:"PAYBCPBrandProfile",kind:"LinkedField",name:"bcp_brand_profile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation",selections:c},params:{id:b("BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation_facebookRelayOperation"),metadata:{},name:"BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6370416056368902"}),null);
-----
BusinessCometCreatorMarketplaceOnboardingLogger",["BusinessCometCreatorMarketplaceLoggingHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useMemo,j=function(){function a(a){this.log=a}var b=a.prototype;b.onboardingLandingPageVisited=function(){this.log({event:"onboarding_landing_page_visited",event_type:"impression"})};b.landingPageGetStartedButtonClicked=function(a,b){this.log({event:"landing_page_get_started_button_clicked",event_type:"click",extra_fields:JSON.stringify({component:b,variant:a})})};b.ineligibleForOnboardingPageRendered=function(){this.log({event:"ineligible_for_onboarding",event_type:"impression"})};b.ineligibleForUsingPlatformPageRendered=function(){this.log({event:"ineligible_for_using_platform",event_type:"impression"})};b.undefinedAccessRestrictionsPageRendered=function(){this.log({event:"undefined_access_restrictions",event_type:"impression"})};b.noAccessPageRendered=function(){this.log({event:"unknown_error_while_onboarding",event_type:"impression"})};b.accountSelectionPageRendered=function(){this.log({event:"account_selection_page",event_type:"impression"})};b.singleAccountRegistrationPageRendered=function(){this.log({event:"single_account_registration_page",event_type:"impression"})};b.noEligibleAccountsPageRendered=function(){this.log({event:"no_eligible_account_page",event_type:"impression"})};b.ineligiblePageSwitchAccountButtonClicked=function(a,b){this.log({event:"ineligible_page_switch_account_button_clicked",event_type:"click",extra_fields:JSON.stringify({component:b,variant:a})})};b.ineligiblePageRegisterInterestButtonClicked=function(a,b){this.log({event:"ineligible_page_register_interest_button_clicked",event_type:"click",extra_fields:JSON.stringify({component:b,variant:a})})};b.acceptTOSModalDisplayed=function(){this.log({event:"tos_displayed",event_type:"impression"})};b.acceptTOSButtonClicked=function(){this.log({event:"tos_accept_button_clicked",event_type:"click"})};b.cancelTOSButtonClicked=function(){this.log({event:"tos_cancel_button_clicked",event_type:"click"})};b.getStartedModalDisplayed=function(){this.log({event:"tos_success_message_displayed",event_type:"impression"})};b.getStartedButtonClicked=function(){this.log({event:"tos_success_message_get_started_button_clicked",event_type:"click"})};b.epdConsentPageDisplayed=function(){this.log({event:"epd_consent_page_displayed",event_type:"click"})};b.epdConsentModalDisplayed=function(){this.log({event:"epd_consent_modal_displayed",event_type:"click"})};b.epdConsentButtonClicked=function(){this.log({event:"epd_consent_button_clicked",event_type:"click"})};return a}();function a(){var a=d("BusinessCometCreatorMarketplaceLoggingHooks").useFBSEventLogging();return i(function(){return new j(a)},[a])}g.usePaidPartnershipsOnboardingLogger=a}),98);
-----
MessageMarketingMBSInboxToSModal",["fbt","AdsPERouterHelper","GeoButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoNotice.react","GeoSection.react","GeoText.react","MessageMarketingLandingPageConsts","MessageMarketingMBSInboxToSModalMutation.graphql","RelayHooks","WhatsAppAdsManagerOnboardingWelcomeStepMessages","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState,m=i!==void 0?i:i=b("MessageMarketingMBSInboxToSModalMutation.graphql");function a(a){var b=a.businessID,e=a.isModalShown,f=a.setToSModalShown,g=a.setToSSuccessModalShown;a=l(!1);var i=a[0],j=a[1];a=l(!1);var n=a[0],o=a[1],p=function(){f(!1),c("AdsPERouterHelper").getRouter().updateParams({show_inbox_re_tos:null})};a=d("RelayHooks").useMutation(m);var q=a[0];a=function(){j(!0),o(!1),q({variables:{input:{business_id:b}},onCompleted:function(){j(!1),p(),g(!0)},onError:function(){j(!1),o(!0)}})};return k.jsx(c("GeoModal.react"),{footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{isLoading:i,label:h._("u63a5u53d7"),variant:"primary",onClick:a}),secondaryButton:k.jsx(c("GeoButton.react"),{label:h._("u53d6u6d88"),variant:"default",onClick:p})}),header:k.jsx(c("GeoModalHeader.react"),{heading:h._("u5173u4e8e Meta Business Suite u6536u4ef6u7bb1u5185u7f6e WhatsApp u7684u6761u6b3e")}),isShown:e,onHide:p,children:k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("GeoText.react"),{children:h._("u9009u62e9{=m1}uff0cu5373u8868u793au4f60u540cu610f{=m3}uff0cu4e5fu540cu610fu6839u636eu8fd9u4e9bu6761u6b3eu548c{=m5}u4f7fu7528u6536u4ef6u7bb1u5185u7f6e WhatsAppu3002",[h._implicitParam("=m1",k.jsx("strong",{children:h._("u63a5u53d7")})),h._implicitParam("=m3",k.jsx(c("GeoLink.react"),{href:d("MessageMarketingLandingPageConsts").MBS_INBOX_TERMS_URL,children:h._("u5173u4e8e Meta Business Suite u6536u4ef6u7bb1u5185u7f6e WhatsApp u7684u6761u6b3e")})),h._implicitParam("=m5",k.jsx(c("GeoLink.react"),{href:d("MessageMarketingLandingPageConsts").ADS_MANAGER_MARKETING_MESSAGES_TERMS_URL,children:h._("u5e7fu544au7ba1u7406u5de5u5177u7684u8425u9500u6d88u606f Beta u6d4bu8bd5u6761u6b3e")}))])}),n&&k.jsx(c("GeoNotice.react"),{status:"error",children:d("WhatsAppAdsManagerOnboardingWelcomeStepMessages").TOS_ERROR})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MessageMarketingMBSInboxToSModalContainer.react",["AdsAccountStore","AdsFluxHooks","MessageMarketingInboxPermissionSetUpModals.react","MessageMarketingMBSInboxToSModal","MessageMarketingMBSInboxToSModalAction","MessageMarketingMBSInboxToSModalProvider","MessageMarketingMBSInboxToSSignedSuccessModal","ReloadPage","WhatsAppBizxPlatformLoggerFactory","WhatsAppBizxPlatformSharedProviders.react","adsCreateStructuredSelector","emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useState,k=c("adsCreateStructuredSelector")({isModalShown:c("MessageMarketingMBSInboxToSModalProvider").toFluxSelector(),businessID:c("AdsAccountStore").getSelectedBusinessID},f.id+".containerSelector");function a(){var a=d("AdsFluxHooks").useAdsSelector(k),b=a.isModalShown;a=a.businessID;b=j(b.isModalShown);var e=b[0];b=b[1];var g=j(!1),h=g[0];g=g[1];var l=j(!1),m=l[0],n=l[1];l=function(){n(!1),c("MessageMarketingMBSInboxToSModalAction").dispatch({isModalShown:!1},{line:"55",module:"MessageMarketingMBSInboxToSModalContainer.react.js",moduleID:f.id}),d("ReloadPage").now()};var o=c("WhatsAppBizxPlatformLoggerFactory").getInstance();if(a==null)return null;if(e)return i.jsx(c("MessageMarketingMBSInboxToSModal"),{businessID:a,isModalShown:e,setToSModalShown:b,setToSSuccessModalShown:g});if(h)return i.jsx(c("MessageMarketingMBSInboxToSSignedSuccessModal"),{isModalShown:h,setPermissionModalShown:n,setToSSuccessModalShown:g});return m?i.jsx(c("WhatsAppBizxPlatformSharedProviders.react"),{logger:o,children:i.jsx(c("MessageMarketingInboxPermissionSetUpModals.react"),{onClose:c("emptyFunction"),onCloseFromReToS:l})}):i.jsx(i.Fragment,{})}a.displayName=a.name+" [from "+f.id+"]";b=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=b}),98);
-----
MessageMarketingMBSInboxToSModalMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{alias:null,args:[{kind:"Variable",name:"request",variableName:"input"}],concreteType:"XFBWhatsAppMarketingMessagesMBSInboxReToSResponse",kind:"LinkedField",name:"xfb_whatsapp_mm_mbs_inbox_re_tos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MessageMarketingMBSInboxToSModalMutation",selections:b,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MessageMarketingMBSInboxToSModalMutation",selections:b},params:{id:"8021837341163768",metadata:{},name:"MessageMarketingMBSInboxToSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MessageMarketingBetaToSDialog",["fbt","GeoButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoNotice.react","GeoSection.react","GeoText.react","MessageMarketingBetaToSDialogFbts","MessageMarketingBetaToSDialogMutation.graphql","MessageMarketingBetaToSModalAction","RelayHooks","ReloadPage","WhatsAppAdsManagerOnboardingWelcomeStepMessages","WhatsAppBizxPlatformWWWLoggerUtils","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState,m=i!==void 0?i:i=b("MessageMarketingBetaToSDialogMutation.graphql");function a(a){var b=a.businessID;a=a.isDialogShown;var e=l(!1),g=e[0],i=e[1];e=l(!1);var j=e[0],n=e[1];e=d("RelayHooks").useMutation(m);var o=e[0],p=d("WhatsAppBizxPlatformWWWLoggerUtils").getSessionLoggingID("MessageMarketingToS"),q=c("gkx")("2313"),r=function(){c("MessageMarketingBetaToSModalAction").dispatch({isModalShown:!1},{line:"59",module:"MessageMarketingBetaToSDialog.js",moduleID:f.id})};e=function(){i(!0),n(!1),o({variables:{input:{log_session_id:p,business_id:b,version:q?"BETA_2024_GEN_AI_AND_AGENCY":null}},onCompleted:function(a){i(!1),r(),d("ReloadPage").now()},onError:function(){i(!1),n(!0)}})};return k.jsx(c("GeoModal.react"),{"data-testid":void 0,footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{"data-testid":void 0,isLoading:g,label:h._("u540cu610f"),variant:"primary",onClick:e}),secondaryButton:k.jsx(c("GeoButton.react"),{isDisabled:g,label:h._("u53d6u6d88"),onClick:r})}),header:k.jsx(c("GeoModalHeader.react"),{heading:q?d("MessageMarketingBetaToSDialogFbts").AGENCY_TERMS_HEADING_FBT:d("MessageMarketingBetaToSDialogFbts").UPDATED_TERMS_HEADING_FBT}),isShown:a,onHide:r,children:k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("GeoText.react"),{children:q?d("MessageMarketingBetaToSDialogFbts").getAgencyTermsOfServiceText():d("MessageMarketingBetaToSDialogFbts").getUpdatedTermsOfServiceText()}),j?k.jsx(c("GeoNotice.react"),{status:"error",children:d("WhatsAppAdsManagerOnboardingWelcomeStepMessages").TOS_ERROR}):null]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MessageMarketingBetaToSDialogContainer.react",["AdsAccountStore","AdsFluxHooks","MessageMarketingBetaToSDialog","MessageMarketingBetaToSModalProvider","adsCreateStructuredSelector","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("adsCreateStructuredSelector")({isModalShown:c("MessageMarketingBetaToSModalProvider").toFluxSelector(),businessID:c("AdsAccountStore").getSelectedBusinessID},f.id+".containerSelector");function a(){var a=d("AdsFluxHooks").useAdsSelector(j),b=a.isModalShown;a=a.businessID;return a==null?null:i.jsx(c("MessageMarketingBetaToSDialog"),{businessID:a,isDialogShown:b.isModalShown})}a.displayName=a.name+" [from "+f.id+"]";b=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=b}),98);
-----
OCDevCenterTOSModal.react",["fbt","GeoCheckboxInput.react","GeoDivider.react","GeoModalCard.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","OCDevCenterTOSModalMutation.graphql","OCDevCenterTOSModal_organization.graphql","OCDevCenterTOSModal_termsOfService.graphql","OCDevManagePermissionFormSubmitButton.react","OCDevUIDraftJSRenderer.react","OCDevUIForm.react","OCOrganizationPermissionEnum","RelayHooks","asyncToGeneratorRuntime","nullthrows","react","useOCDevUICommitMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react")),n=l.useState;function a(a){var e=a.agreeText,f=a.heading,g=a.organization;a=a.termsOfService;var l=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevCenterTOSModal_organization.graphql"),g),o=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevCenterTOSModal_termsOfService.graphql"),a);g=n(!1);a=g[0];g=g[1];var p=c("useOCDevUICommitMutation")(k!==void 0?k:k=b("OCDevCenterTOSModalMutation.graphql"));function q(){return r.apply(this,arguments)}function r(){r=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;yield p({input:{organization_id:(a=l==null?void 0:l.id)!=null?a:"",tos_type:c("nullthrows")(o.tos_type)}},{closeModalOnSuccess:!0})});return r.apply(this,arguments)}return m.jsx(c("OCDevUIForm.react"),{onSubmit:q,children:m.jsx(c("GeoModalCard.react"),{footer:m.jsx(c("GeoModalFooter.react"),{primaryButton:m.jsx(c("OCDevManagePermissionFormSubmitButton.react"),{forceDisabled:!a,organization:l,permissions:[c("OCOrganizationPermissionEnum").SIGN_ORGANIZATION_AGREEMENT]}),startContent:m.jsx(c("GeoCheckboxInput.react"),{label:h._("I Agree"),value:a,onChange:g})}),header:m.jsx(c("GeoModalHeader.react"),{heading:f}),children:m.jsx(c("GeoSection.react"),{children:m.jsxs("div",{className:"xuyqlj2",children:[m.jsx(c("OCDevUIDraftJSRenderer.react"),{draftJSString:(q=o.content_draft_js)!=null?q:""}),m.jsx(c("GeoDivider.react"),{}),m.jsx(c("GeoText.react"),{children:e})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevCenterTOSModalMutation.graphql",["OCDevCenterTOSModalMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCDevCenterTOSModalMutation",selections:[{alias:null,args:c,concreteType:"XOCTosAcceptResponsePayload",kind:"LinkedField",name:"xoc_tos_accept",plural:!1,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{alias:null,args:null,concreteType:"OrganizationToApplicationsConnection",kind:"LinkedField",name:"applications",plural:!1,selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"nodes",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"OCDevCenterOculusStartApplyFormView_application"}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCDevCenterTOSModalMutation",selections:[{alias:null,args:c,concreteType:"XOCTosAcceptResponsePayload",kind:"LinkedField",name:"xoc_tos_accept",plural:!1,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{alias:null,args:null,concreteType:"OrganizationToApplicationsConnection",kind:"LinkedField",name:"applications",plural:!1,selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"latest_only",value:!0},{kind:"Literal",name:"types",value:["DEVELOPER_HLA"]}],concreteType:"OrganizationSignedLegalAgreementsConnection",kind:"LinkedField",name:"signed_legal_agreements",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"max",value:1}],kind:"ScalarField",name:"count_up_to",storageKey:"count_up_to(max:1)"}],storageKey:"signed_legal_agreements(latest_only:true,types:["DEVELOPER_HLA"])"},d,{alias:null,args:null,kind:"ScalarField",name:"viewer_permissions",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},d,{alias:null,args:[{kind:"Literal",name:"first",value:1}],concreteType:"ApplicationViewerDeveloperStartSubmissionsConnection",kind:"LinkedField",name:"viewer_developer_start_submissions",plural:!1,selections:[{alias:null,args:null,concreteType:"DeveloperStartSubmission",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"business_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"business_website",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"email_address",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"funding_explanation",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"funding_or_revenue_amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_received_outside_funding",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"phone_number",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"preferred_engine",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"project_description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"project_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"prototype_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_city",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_country_code",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_street",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_street_two",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_zip",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shirt_size",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"target_launch_date",storageKey:null},d],storageKey:null}],storageKey:"viewer_developer_start_submissions(first:1)"}],storageKey:null}],storageKey:null},d],storageKey:null}],storageKey:null}]},params:{id:b("OCDevCenterTOSModalMutation_oculusRelayOperation"),metadata:{},name:"OCDevCenterTOSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCDevCenterTOSModal_organization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterTOSModal_organization",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{args:null,kind:"FragmentSpread",name:"OCDevManagePermissionFormSubmitButton_organization"}],type:"Organization",abstractKey:null};e.exports=a}),null);
-----
OCDevCenterOculusStartApplyFormView.react",["fbt","ix","GeoButton.react","GeoHeading.react","OCDevCenterNarrowInnerLayout.react","OCDevCenterOculusStartApplyForm.react","OCDevCenterOculusStartApplyFormView_application.graphql","OCDevCenterOculusStartApplyFormView_hardwareRequestFormConfigs.graphql","OCDevCenterOculusStartApplyFormView_termsOfService.graphql","OCDevCenterOculusStartApplyFormView_user.graphql","OCDevCenterPage.react","OCDevCenterTOSModal.react","OCDevManageEmptyState.react","OCDevUISpacedLayout.react","RelayHooks","fbicon","react","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n,o=n||(n=d("react"));e=n;var p=e.useCallback,q=e.useEffect;function a(a){var e=a.application,f=a.hardwareRequestFormConfigs,g=a.termsOfService;a=a.user;var n=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevCenterOculusStartApplyFormView_application.graphql"),e);e=d("RelayHooks").useFragment(k!==void 0?k:k=b("OCDevCenterOculusStartApplyFormView_hardwareRequestFormConfigs.graphql"),f);var r=d("RelayHooks").useFragment(l!==void 0?l:l=b("OCDevCenterOculusStartApplyFormView_termsOfService.graphql"),g);f=d("RelayHooks").useFragment(m!==void 0?m:m=b("OCDevCenterOculusStartApplyFormView_user.graphql"),a);g=c("useOCDevUIModal")();var s=g.openModal,t=p(function(){s(o.jsx(c("OCDevCenterTOSModal.react"),{agreeText:h._("I have read and agree to Oculusu2019s Privacy Policy, Terms of Service, and the terms of this program as stated above. If you do not agree to any of the terms of this program and Use Terms or do not have authority to bind the identified Organization, then {underlined_do_not} click "I Agree" and {underlined_do_not} submit any program application to Oculus.",[h._param("underlined_do_not",o.jsx("u",{children:"do not"}))]),heading:h._("Developer Hardware Loan Agreement"),organization:n.organization,termsOfService:r}))},[n.organization,s,r]),u=((a=n.organization)==null?void 0:(g=a.signed_legal_agreements)==null?void 0:g.count_up_to)===1;q(function(){u||t()},[u,t]);a=h._("Oculus Start Application");return o.jsx(c("OCDevCenterPage.react"),{pageTitle:a,children:o.jsx(c("OCDevCenterNarrowInnerLayout.react"),{children:o.jsxs(c("OCDevUISpacedLayout.react"),{children:[o.jsx(c("GeoHeading.react"),{level:1,children:a}),u?o.jsx(c("OCDevCenterOculusStartApplyForm.react"),{application:n,hardwareRequestFormConfigs:e,user:f}):o.jsx(c("OCDevManageEmptyState.react"),{action:o.jsx(c("GeoButton.react"),{label:h._("View Agreement"),variant:"primary",onClick:t}),heading:h._("Developer Hardware Loan Agreement Required"),icon:d("fbicon")._(i("728259"),24)})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevCenterTOSModal_termsOfService.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterTOSModal_termsOfService",selections:[{alias:null,args:null,kind:"ScalarField",name:"content_draft_js",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tos_type",storageKey:null}],type:"TermsOfService",abstractKey:null};e.exports=a}),null);
-----
OCDevCenterTOSModalMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7387460447943801"}),null);
-----
OCDevCenterOculusStartApplyFormView_application.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterOculusStartApplyFormView_application",selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"latest_only",value:!0},{kind:"Literal",name:"types",value:["DEVELOPER_HLA"]}],concreteType:"OrganizationSignedLegalAgreementsConnection",kind:"LinkedField",name:"signed_legal_agreements",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"max",value:1}],kind:"ScalarField",name:"count_up_to",storageKey:"count_up_to(max:1)"}],storageKey:"signed_legal_agreements(latest_only:true,types:["DEVELOPER_HLA"])"},{args:null,kind:"FragmentSpread",name:"OCDevCenterTOSModal_organization"}],storageKey:null},{args:null,kind:"FragmentSpread",name:"OCDevCenterOculusStartApplyForm_application"}],type:"Application",abstractKey:null};e.exports=a}),null);
-----
OCDevCenterOculusStartApplyFormView_termsOfService.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterOculusStartApplyFormView_termsOfService",selections:[{args:null,kind:"FragmentSpread",name:"OCDevCenterTOSModal_termsOfService"}],type:"TermsOfService",abstractKey:null};e.exports=a}),null);
-----
BizKitCustomerTOSModal.react",["fbt","CRMConsentToTOSDialog.react","CrmDestinationTosFlowEnterFlowFalcoEvent","CrmDestinationTosFlowReceiveResponseFailureFalcoEvent","CrmDestinationTosFlowReceiveResponseSuccessFalcoEvent","CrmDestinationTosFlowSubmitFlowFalcoEvent","GeoButton.react","GeoCancelButton.react","GeoCheckboxInput.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","LeadsManagerAcceptToSMutation","RelayHooks","nullthrows","react","useBizKitPageNullable","useBoolean"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useState;function a(a){var b=a.bpnID,e=a.eventLocation,f=a.isShown,g=a.onAcceptFailure,i=a.onAcceptSuccess,n=a.onHide,o=a.tosSurface,p=d("RelayHooks").useRelayEnvironment(),q=c("nullthrows")(c("useBizKitPageNullable")(),"pageID is null");a=l(!1);var r=a[0],s=a[1];a=l(!1);var t=a[0],u=a[1];a=c("useBoolean")(!1);var v=a.value;a=a.set;var w=function(){c("CrmDestinationTosFlowReceiveResponseSuccessFalcoEvent").log(function(){return{event_location:e,page_id:q,business_presence_node_id:b,event_data:{}}}),i()},x=function(){c("CrmDestinationTosFlowReceiveResponseFailureFalcoEvent").log(function(){return{event_location:e,page_id:q,business_presence_node_id:b,event_data:{}}}),g()};k(function(){f&&c("CrmDestinationTosFlowEnterFlowFalcoEvent").log(function(){return{event_location:e,page_id:q,business_presence_node_id:b,event_data:{}}})},[b,f,q,e]);return j.jsxs("span",{children:[j.jsx(c("GeoModal.react"),{footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:!v,label:h._("__JHASH__bWmGOgwi1Be__JHASH__"),onClick:function(){u(!0),c("CrmDestinationTosFlowSubmitFlowFalcoEvent").log(function(){return{event_location:e,page_id:q,business_presence_node_id:b,event_data:{tos_submit_referrer:"summary"}}}),m(p,q,o,w,x,u)},isLoading:t,variant:"primary"}),secondaryButton:j.jsx(c("GeoCancelButton.react"),{"data-testid":void 0}),startContent:j.jsx(c("GeoCheckboxInput.react"),{label:h._("__JHASH__Y7zIu3sACOb__JHASH__",[h._implicitParam("=m2",j.jsx(c("GeoLink.react"),{onClick:function(){s(!0),n()},children:h._("__JHASH__TPGPkHWRiKN__JHASH__")}))]),onChange:a,value:v})}),header:j.jsx(c("GeoModalHeader.react"),{heading:h._("__JHASH__9TXjVNfIevd__JHASH__")}),isShown:f,onHide:n,children:j.jsx(c("GeoSection.react"),{children:j.jsxs("div",{children:[j.jsx("div",{children:j.jsx(c("GeoText.react"),{children:h._("__JHASH__92nH8Fa6Vb9__JHASH__")})}),j.jsxs("div",{className:"x1yztbdb x1sy10c2",children:[j.jsx("div",{className:"xtcx8v3 x12nagc xv90nub x1gslohp",children:j.jsx(c("GeoText.react"),{children:h._("__JHASH__Wcx3Vd-rboT__JHASH__")})}),j.jsx("div",{className:"xtcx8v3 x12nagc xv90nub x1gslohp",children:j.jsx(c("GeoText.react"),{children:h._("__JHASH__tMoHrhs0fmt__JHASH__")})}),j.jsx("div",{className:"xtcx8v3 x12nagc xv90nub x1gslohp",children:j.jsx(c("GeoText.react"),{children:h._("__JHASH__namqpXUiNdt__JHASH__")})})]})]})})}),j.jsx(c("CRMConsentToTOSDialog.react"),{isShown:r,onConfirm:function(){u(!0),c("CrmDestinationTosFlowSubmitFlowFalcoEvent").log(function(){return{event_location:e,page_id:q,business_presence_node_id:b,event_data:{tos_submit_referrer:"detail"}}}),m(p,q,o,w,x,u)},onHide:function(){s(!1)},isLoading:t})]})}a.displayName=a.name+" [from "+f.id+"]";function m(a,b,c,e,f,g){d("LeadsManagerAcceptToSMutation").commit(a,{actor_id:b,signature_surface:c},{onSuccess:function(a){a=(a=a.lead_gen_tos_consent)==null?void 0:a.success;a===!0?e():(f(),g(!1))},onFailure:function(){f(),g(!1)}})}g["default"]=a}),226);
-----
BizKitCustomerEmptyStateWithValuePropsView.react",["fbt","BizKitCuReSharedNullStateView.react","BizKitCustomerOnboardingConstants","BizKitCustomerTOSModal.react","BizKitDefaultPage.react","BizKitRequirePageAdminPermissionNotice.react","CRMDestinationContext","CrmDestinationTosFlowImpressionFalcoEvent","GeoCard.react","GeoToast.react","nullthrows","react","useBizKitPageNullable","useGeoToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useEffect,m=b.useState;function a(a){var b=a.canSignToS,e=a.refresh,f=c("useBizKitPageNullable")();a=m(!1);var g=a[0],i=a[1];a=m(null);var n=a[0],o=a[1];a=c("useGeoToaster")();var p=a.add;a=k(c("CRMDestinationContext"));var q=a.bpnID;l(function(){if(n!=null){var a=null;n==="error"?a=h._("__JHASH__B6-1BpcbAY4__JHASH__"):n==="success"&&(a=h._("__JHASH__HewKfxAA0FI__JHASH__"));a!==null&&p(j.jsx(c("GeoToast.react"),{heading:a,status:n}),{duration:"sticky"})}},[p,n]);l(function(){c("CrmDestinationTosFlowImpressionFalcoEvent").log(function(){return{event_location:"bizweb_crm_destination",page_id:f,business_presence_node_id:q,event_data:{}}})},[f,q]);return j.jsx(c("BizKitDefaultPage.react"),{initShowLocalNav:!1,children:j.jsxs(c("GeoCard.react"),{children:[j.jsx(d("BizKitCuReSharedNullStateView.react").BizKitCuReSharedNullStateView,{nullStateConfig:b?c("BizKitCustomerOnboardingConstants").TOS_NULL_STATE_CONFIG:c("BizKitCustomerOnboardingConstants").TOS_NO_PERMISSION_NULL_STATE_CONFIG,onPrimaryButtonClick:function(){i(!0)},customSection:b?null:j.jsx(c("BizKitRequirePageAdminPermissionNotice.react"),{notice:c("BizKitCustomerOnboardingConstants").CONTACTS_CONTAC_ADMIN_TO_SETUP_WARNING})}),b&&j.jsx(c("BizKitCustomerTOSModal.react"),{bpnID:c("nullthrows")(q),isShown:g,onHide:function(){i(!1)},onAcceptSuccess:function(){i(!1),e(),o("success")},onAcceptFailure:function(){i(!1),o("error")},eventLocation:"bizweb_crm_destination",tosSurface:"BIZWEB_CONTACTS_TAB"})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
StreamerHomeLevelUpOnboardingTOSModal.react",["fbt","AsyncRequest","CometRelay","DevsiteAudienceNetworkTrackingPixels","GeoButton.react","GeoCancelButton.react","GeoFlexbox.react","GeoHeading.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoNotice.react","GeoSection.react","GeoSpinner.react","GeoText.react","Image.react","StreamerHomeContext","StreamerHomeLevelUpOnboardingTOSModalMutation.graphql","XAffiliateOnboardingPolicyController","react","useBizKitStreamerDashboardLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useContext,m=e.useLayoutEffect,n=e.useRef,o=e.useState,p=i!==void 0?i:i=b("StreamerHomeLevelUpOnboardingTOSModalMutation.graphql");function a(a){var b=a.isShown,e=a.onHide,f=n();a=o("INITIAL");var g=a[0],i=a[1],j=d("useBizKitStreamerDashboardLogger").useBizKitStreamerDashboardLogger();a=d("CometRelay").useMutation(p);var q=a[0];a=a[1];var r=l(c("StreamerHomeContext")),s=r.pageID;r=function(){j.setActionTarget("accept_level_up_terms").setEvent("button_clicked").log(),s!=null&&q({onCompleted:function(a){d("DevsiteAudienceNetworkTrackingPixels").track("GCLevelUpApplicationApproved");((a=a.accept_level_up_terms_fan_support_page_settings)==null?void 0:(a=a.fan_support_page_settings)==null?void 0:a.level_up_terms_accepted)===!0&&(j.setActionTarget("level_up_terms_accepted").setEvent("level_up_terms_accepted").log(),i("SUCCESS"))},onError:function(a){j.setActionTarget("accept_level_up_terms_failed").logError(a),i("ERROR")},variables:{input:{page:s}}})};var t=function(){b&&(j.setEvent("level_up_terms_dismissed").log(),i("INITIAL"),e())};m(function(){if(b){var a=c("XAffiliateOnboardingPolicyController").getURIBuilder().getURI(),d=new(c("AsyncRequest"))().setAllowCrossPageTransition(!0).setRelativeTo(f.current).setURI(a).setHandler(function(){i("TOS")}).setErrorHandler(function(){i("ERROR")});d.send();return function(){return d.abort()}}},[b]);var u=k.jsxs(k.Fragment,{children:[k.jsx(c("GeoFlexbox.react"),{direction:"column",style:{backgroundColor:"#162643",height:250},children:k.jsx(c("Image.react"),{height:230,src:"/images/games/streamer_dashboard/Congratulations.png",width:506})}),k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("GeoHeading.react"),{level:2,children:h._("__JHASH__-fyFTwgt6Mq__JHASH__")}),k.jsx(c("GeoText.react"),{children:h._("__JHASH__DTHp2RyvEyb__JHASH__")})]})]});a=g==="SUCCESS"?k.jsx(c("GeoButton.react"),{autoFocus:!0,label:h._("__JHASH__LgwB_1gx03c__JHASH__"),onClick:e,variant:"primary"}):k.jsx(c("GeoButton.react"),{autoFocus:!0,isDisabled:g!=="TOS",isLoading:a,label:h._("__JHASH__-2pTfqpE9rm__JHASH__"),onClick:r,variant:"primary"});return k.jsx(c("GeoModal.react"),{footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:a,secondaryButton:g==="SUCCESS"?void 0:k.jsx(c("GeoCancelButton.react"),{"data-testid":void 0,onClick:t})}),header:k.jsx(c("GeoModalHeader.react"),{heading:h._("__JHASH__cstf2AszGBC__JHASH__")}),isShown:b,label:"Level Up TOS Modal",onHide:t,children:k.jsxs(c("GeoSection.react"),{children:[(g==="INITIAL"||g==="TOS")&&k.jsx("div",{ref:f},"terms"),g==="INITIAL"&&k.jsx(c("GeoSpinner.react"),{}),g==="ERROR"&&k.jsx(c("GeoNotice.react"),{status:"error",children:h._("__JHASH__Z3nk6W4jiOa__JHASH__")}),g==="SUCCESS"&&u]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
StreamerHomeLevelUpOnboardingTOSModalMutation.graphql",["StreamerHomeLevelUpOnboardingTOSModalMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"AcceptLevelUpTermsFanSupportPageSettingsResponsePayload",kind:"LinkedField",name:"accept_level_up_terms_fan_support_page_settings",plural:!1,selections:[{alias:null,args:null,concreteType:"FanSupportPageSettings",kind:"LinkedField",name:"fan_support_page_settings",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"level_up_terms_accepted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"incentive_terms_accepted",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"StreamerHomeLevelUpOnboardingTOSModalMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"StreamerHomeLevelUpOnboardingTOSModalMutation",selections:c},params:{id:b("StreamerHomeLevelUpOnboardingTOSModalMutation_facebookRelayOperation"),metadata:{},name:"StreamerHomeLevelUpOnboardingTOSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
StreamerHomeLevelUpOnboardingTOSModalMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7790119204357102"}),null);
-----
StreamerHomeLevelUpModule.react",["fbt","ix","GeoButton.react","GeoFlexbox.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoHeading.react","GeoLink.react","GeoList.react","GeoListMediaItem.react","GeoSection.react","GeoText.react","Image.react","JSResourceForInteraction","RelayHooks","StreamerHomeLevelUpEligibilityUtils","StreamerHomeLevelUpModule_streamerHomeModule.graphql","lazyLoadComponent","react","useBizKitStreamerDashboardLogger","useLevelUpLiveTrackRequirements"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useEffect,n=e.useState,o=c("lazyLoadComponent")(c("JSResourceForInteraction")("StreamerHomeLevelUpOnboardingTOSModal.react").__setRef("StreamerHomeLevelUpModule.react")),p=function(a){return a.filter(function(a){return a.meets}).length},q=function(a){return p(a)/a.length};function a(a){a=a.streamerHomeModule;var e=n(!1),f=e[0],g=e[1];e=d("RelayHooks").useFragment(j!==void 0?j:j=b("StreamerHomeLevelUpModule_streamerHomeModule.graphql"),a);var k=e.page,r=d("useBizKitStreamerDashboardLogger").useBizKitStreamerDashboardLogger();m(function(){k!=null&&r.setEvent("module_load_success").log()},[r,k]);var s=function(a){return r.setEvent("button_clicked").setActionTarget(a).log()};a=function(){r.setEvent("level_up_apply_clicked").log(),g(!0)};e=c("useLevelUpLiveTrackRequirements")(k);var t=e.isEligible;e=e.requirements;var u=i("1352373"),v=i("1208638"),w=d("StreamerHomeLevelUpEligibilityUtils").getLevelUpModuleDescription(s),x=p(e),y=q(e);return l.jsxs("div",{children:[l.jsx("div",{className:"xod5an3 x14atkfc",children:l.jsx(c("Image.react"),{className:"xt7dq6l x193iq5w",src:"/images/games/streamer_dashboard/BizKitStreamerHomeLevelUpArt_4x.png"})}),l.jsxs(c("GeoSection.react"),{children:[l.jsx(c("GeoHeading.react"),{level:2,children:h._("__JHASH__N2jtr_roFxe__JHASH__")}),l.jsx(c("GeoText.react"),{children:w})]}),l.jsxs(c("GeoSection.react"),{children:[l.jsxs("div",{children:[l.jsx(c("GeoHeading.react"),{level:3,children:h._("__JHASH__SmUBJt6buUI__JHASH__")}),l.jsx("div",{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":y*100,className:"x78zum5 xdt5ytf x12nagc x14vqqas x6c5l4p",children:l.jsx(c("GeoFlexbox.react"),{alignItems:"center",children:l.jsx("div",{className:"x1wpzbip xhk9q7s x1otrzb0 x1i1ezom x1o6z2jb xdk7pt x6ikm8r x10wlt62 xh8yej3",children:l.jsx("div",{className:"x11goek xdk7pt x19w6rv x1mbqufl x11xpdln x1fwqrf6",style:{transform:"scaleX("+y+")"}})})})}),l.jsx(c("GeoText.react"),{children:h._("__JHASH__RhqCvePEW6w__JHASH__",[h._param("completed criteria",x),h._param("total criteria",e.length)])}),l.jsx(c("GeoList.react"),{children:e.map(function(a,b){return l.jsx(c("GeoListMediaItem.react"),{imageHeight:16,imageURI:a.meets===!0?v:u,imageWidth:16,label:a.text},b)})})]}),l.jsx("div",{className:"xw7yly9",children:l.jsx(c("GeoGuidanceCard.react"),{header:l.jsx(c("GeoGuidanceCardHeader.react"),{heading:h._("__JHASH__4Srh0yzuSmV__JHASH__")}),status:"recommendation",children:l.jsx(c("GeoGuidanceCardContent.react"),{children:l.jsx(c("GeoText.react"),{children:h._("__JHASH__3n3hJqgnUqG__JHASH__",[h._implicitParam("=m0",l.jsx(c("GeoLink.react"),{href:"/fbgaminghome/creators/bootcamp",onClick:function(){s("creator_best_practices")},target:"_blank",children:h._("__JHASH__z3ykT5i1SHO__JHASH__")}))])})})})}),l.jsxs("div",{className:"xw7yly9",children:[l.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:!t||((w=k.fan_support_settings)==null?void 0:w.level_up_terms_accepted)===!0,label:h._("__JHASH__M8579GesDmy__JHASH__"),onClick:a,variant:"primary",width:"100%"}),f&&l.jsx(o,{isShown:f,onHide:function(){g(!1)}})]})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardOrdersSection.react",["fbt","BizKitContextCardActivityListItem.react","BizKitContextCardMoreSection.react","BizKitContextCardOrdersSection_orders.graphql","GeoBaseText.react","GeoHeading.react","GeoSpinner.react","LeftRight.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.Suspense,m=e.useState,n=i!==void 0?i:i=b("BizKitContextCardOrdersSection_orders.graphql"),o=5;function a(a){var b=a.className,e=a.pageID,f=a.orders,g=a.onShowContactCardTosModal,i=a.shouldShowContactCardTos,j=a.surface;a=m(!1);var p=a[0],q=a[1];a=d("RelayHooks").usePaginationFragment(n,f);var r=a.hasNext,s=a.loadNext,t=a.data,u=function(){if(!r||p)return;q(!0);s(o,{onComplete:function(){return q(!1)}})};f=function(){if(!r)return null;return p?k.jsx("div",{className:"x178xt8z x13fuv20 xkh9tda x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",children:k.jsx(c("GeoSpinner.react"),{})}):k.jsx(c("BizKitContextCardMoreSection.react"),{className:"x178xt8z x13fuv20 xkh9tda x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",onClick:u})};a=function(){var a,b;a=t==null?void 0:(a=t.business_actions)==null?void 0:(a=a.actions)==null?void 0:a.edges;var d=t==null?void 0:(b=t.shared_attributes)==null?void 0:b.page_contact_id;if(a==null||a.length===0)return k.jsx("div",{className:"x17ddzgb x14vqqas",children:k.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",isDisabled:!0,display:"block",children:h._("__JHASH__caLWduh8b_0__JHASH__")})});b=a.map(function(a,b){var f;return((f=a.node)==null?void 0:f.wrapper)!=null&&k.jsx(c("BizKitContextCardActivityListItem.react"),{data:a.node.wrapper,pageID:e,surface:j,pageContactID:d,onShowContactCardTosModal:g,shouldShowContactCardTos:i,shouldRemovePageVCDependency:!0,userID:t==null?void 0:(f=t.fb_attributes)==null?void 0:f.user_id},"order_"+b)});return k.jsx("div",{className:"x14vqqas",children:b})};return k.jsxs("div",{className:b,children:[k.jsx(c("LeftRight.react"),{children:k.jsx(c("GeoHeading.react"),{level:3,children:h._("__JHASH__OXqW9qieXL5__JHASH__")})}),k.jsxs(l,{fallback:k.jsx(c("GeoSpinner.react"),{center:!0}),children:[a(),f()]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextLabels3DWrapper.react",["BizKitContextCardLabelsDataFragment.react","BizKitContextLabels3DWrapper_contactLabels.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BizKitContextLabels3DWrapper_contactLabels.graphql");function a(a){var b=a.className,e=a.contactID,f=a.contactIdentity,g=a.pageID,h=a.onSelectLabel,i=a.surface,l=a.readOnly,m=a.onShowContactCardTosModal,n=a.shouldShowContactCardTos,o=a.shouldDisableBizInput,p=a.pageRef,q=a.mbsBusinessAssetsRef,r=a.section_3d;a=a.businessAssets;r=d("RelayHooks").useFragment(k,r);return j.jsx(c("BizKitContextCardLabelsDataFragment.react"),{className:b,contactID:e,contactIdentity:f,pageID:g,contactLabels:r==null?void 0:r.biz_crm_contact,onSelectLabel:h,surface:i,readOnly:l,onShowContactCardTosModal:m,shouldShowContactCardTos:n,shouldDisableBizInput:o,pageRef:p,businessAssets:a,mbsBusinessAssetsRef:q})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardAboutDetailSection3DWrapper.react",["BizKitContextCardAboutDetailSection.react","BizKitContextCardAboutDetailSection3DWrapper_about.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BizKitContextCardAboutDetailSection3DWrapper_about.graphql");function a(a){var b=a.section_3d,e=a.className,f=a.contactIdentity,g=a.pageID,h=a.bpnID,i=a.surface,l=a.readOnly,m=a.onShowContactCardTosModal,n=a.shouldShowContactCardTos,o=a.shouldDisableBizInput;a=a.isPageEnabledForWAM;b=d("RelayHooks").useFragment(k,b);return j.jsx(c("BizKitContextCardAboutDetailSection.react"),{about:b==null?void 0:b.biz_crm_contact,className:e,contactIdentity:f,isPageEnabledForWAM:a,pageID:g,bpnID:h,surface:i,readOnly:l,onShowContactCardTosModal:m,shouldShowContactCardTos:n,shouldDisableBizInput:o})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardOrdersSection3DWrapper.react",["BizKitContextCardOrdersSection.react","BizKitContextCardOrdersSection3DWrapper_orders.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BizKitContextCardOrdersSection3DWrapper_orders.graphql");function a(a){var b=a.className,e=a.pageID,f=a.section_3d,g=a.onShowContactCardTosModal,h=a.shouldShowContactCardTos,i=a.surface;a=a.readOnly;f=d("RelayHooks").useFragment(k,f);return j.jsx(c("BizKitContextCardOrdersSection.react"),{className:b,pageID:e,orders:f==null?void 0:f.biz_crm_contact,readOnly:a,surface:i,onShowContactCardTosModal:g,shouldShowContactCardTos:h})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LeadsManagerToSDialog.react",["cx","fbt","CRMConsentToTOSDialog.react","GeoButton.react","GeoCancelButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoSpinner.react","GeoText.react","LeadsCenterTosDismissFalcoEvent","LeadsCenterTosImpressionFalcoEvent","LeadsCenterTosSubmitFlowFalcoEvent","LeadsManagerAcceptToSMutation","LeadsManagerConstants","LeadsManagerContext","LeadsManagerViewContext","RelayHooks","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));b=j;var l=b.useContext,m=b.useState;function a(a){var b=l(c("LeadsManagerViewContext")),e=b.stateForView,f=b.dispatchForView;b=l(c("LeadsManagerContext"));var g=b.state,h=b.dispatch;b=m(!1);var j=b[0],o=b[1];b=m(!1);var p=b[0],q=b[1];b=e.isShowingToS;var r=d("RelayHooks").useRelayEnvironment(),s=g.isInBizKit?"BIZWEB_LEAD_CENTER":"PAGE_LEAD_CENTER";if(!a||j)return k.jsx(c("GeoSpinner.react"),{});b&&c("LeadsCenterTosImpressionFalcoEvent").log(function(){return{page_id:a.pageID,event_location:"leads_center",event_data:{}}});return k.jsxs("span",{children:[k.jsxs(c("GeoModal.react"),{footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{"data-testid":void 0,label:d("LeadsManagerConstants").LEADS_MANAGER_TOS_DIALOG_BUTTON,onClick:function(){f({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!1}),h({shouldShowPipelineTour:!0,type:"SHOW_PIPELINE_ONBOARDING_TOUR"}),h({isFromPreToSAcceptView:!0,type:"IS_FROM_PRE_TOS_ACCEPT_VIEW"}),n(a.pageID,s,o,r,h)},variant:"primary"}),secondaryButton:k.jsx(c("GeoCancelButton.react"),{})}),header:k.jsx(c("GeoModalHeader.react"),{heading:d("LeadsManagerConstants").LEADS_MANAGER_TOS_DIALOG_TITLE}),isShown:b,label:i._("__JHASH__z6I6WRptLND__JHASH__"),onHide:function(){c("LeadsCenterTosDismissFalcoEvent").log(function(){return{page_id:a.pageID,event_location:"leads_center",event_data:{}}}),f({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!1})},width:560,children:[k.jsx(c("GeoSection.react"),{children:k.jsx("div",{children:k.jsxs("div",{className:"_96mo",children:[k.jsx("div",{children:k.jsx(c("GeoText.react"),{children:i._("__JHASH__ByvSW45N-gb__JHASH__")})}),k.jsx("div",{className:"_96mp",children:k.jsx(c("GeoText.react"),{children:i._("__JHASH__1wKr4kg59me__JHASH__")})}),k.jsx("div",{className:"_96mp",children:k.jsx(c("GeoText.react"),{children:i._("__JHASH__PsopSE_o4de__JHASH__")})}),k.jsx("div",{className:"_96mp",children:k.jsx(c("GeoText.react"),{children:i._("__JHASH__RbKRL6jvVw1__JHASH__")})}),k.jsx("div",{className:"_96mp",children:k.jsx(c("GeoText.react"),{children:i._("__JHASH__Kzp_b7ZTiOK__JHASH__")})}),k.jsxs("div",{className:"_96mp",children:[k.jsx(c("GeoText.react"),{children:i._("__JHASH__0rt0tLpTirU__JHASH__")})," ",k.jsx(c("GeoLink.react"),{onClick:function(){q(!0)},children:i._("__JHASH__zUV_6yJrV7n__JHASH__")}),"."]})]})})}),a.leadCount>0&&k.jsx(c("GeoSection.react"),{children:k.jsx("div",{children:k.jsx("div",{className:"_96mo",children:k.jsx(c("GeoText.react"),{children:(e=i._plural(a.leadCount,"number"),i._("__JHASH__UiEH6vgtKdv__JHASH__",[e,i._implicitParam("=m4",k.jsx(c("GeoLink.react"),{onClick:function(){q(!0)},children:i._("__JHASH__16zrzBGFvqc__JHASH__",[e])})),i._implicitParam("=m8",k.jsx(c("GeoLink.react"),{href:"../publishing_tools/?section=LEAD_ADS_FORMS",children:i._("__JHASH__s322NBn9w_C__JHASH__",[e])}))]))})})})})]}),k.jsx(c("CRMConsentToTOSDialog.react"),{isShown:p,onConfirm:function(){q(!1)},onHide:function(){q(!1)}})]})}a.displayName=a.name+" [from "+f.id+"]";function n(a,b,e,f,g){c("LeadsCenterTosSubmitFlowFalcoEvent").log(function(){return{page_id:a,event_location:"leads_center",event_data:{}}}),e(!0),d("LeadsManagerAcceptToSMutation").commit(f,{actor_id:a,signature_surface:b},{onSuccess:function(a){var b;b=(b=a.lead_gen_tos_consent)==null?void 0:b.success;if(b===!0){g({type:"LEADS_MANAGER_ACCEPT_TOS_ACTION",isBackFillJobsRunning:((b=a.lead_gen_tos_consent)==null?void 0:(a=b.page)==null?void 0:a.has_leads_center_back_fill_job_running)||!1});g({type:"LEADS_MANAGER_SELECT_STAGE",stageID:null})}else e(!1)},onFailure:function(){e(!1)}})}g["default"]=a}),226);
-----
LeadsManagerTablePreToSAcceptState.react",["fbt","ix","GeoBaseText.react","GeoButton.react","GeoCard.react","GeoLink.react","GeoSpinner.react","GeoText.react","Image.react","LeadsCenterPreTosAcceptanceViewClickContinueButtonFalcoEvent","LeadsCenterPreTosAcceptanceViewClickHyperlinkFalcoEvent","LeadsCenterPreTosAcceptanceViewImpressionFalcoEvent","LeadsManagerAcceptToSMutation","LeadsManagerConstants","LeadsManagerContext","LeadsManagerViewContext","RelayHooks","geoMargin","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));b=j;var l=b.useContext,m=b.useEffect,n=b.useState;function a(a){var b=a.pageID;a=l(c("LeadsManagerContext"));var e=a.dispatch;a=a.state;var f=a.canSeeLeadOwnerInvitation,g=n(!1),i=g[0],j=g[1],q=d("RelayHooks").useRelayEnvironment();g=a.shouldShowColdStartImprovements;a=l(c("LeadsManagerViewContext"));var r=a.dispatchForView;m(function(){i||c("LeadsCenterPreTosAcceptanceViewImpressionFalcoEvent").log(function(){return{page_id:b,event_location:"leads_center",event_data:{}}})});if(i)return k.jsx(c("GeoSpinner.react"),{});a=k.jsxs("div",{children:[k.jsx(c("GeoText.react"),{children:h._("__JHASH__Cmk_WW5HFkZ__JHASH__")})," ",k.jsx(c("GeoLink.react"),{onClick:function(){c("LeadsCenterPreTosAcceptanceViewClickHyperlinkFalcoEvent").log(function(){return{page_id:b,event_location:"leads_center",event_data:{}}}),r({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})},children:h._("__JHASH__I2hczrBMQPG__JHASH__")}),"."]});var s=k.jsx("div",{children:k.jsx(c("GeoText.react"),{children:h._("__JHASH__ZlvqQhsvO--__JHASH__",[h._param("terms of service",k.jsx("b",{children:"Leads Center Terms of Service"}))])})}),t=h._("__JHASH__GAcJOrrk8tc__JHASH__",[h._implicitParam("=m1",k.jsx("b",{children:h._("__JHASH__CUNA6ZvaW-O__JHASH__")}))]),u=o();return k.jsx(c("GeoCard.react"),{children:k.jsxs("div",{className:"x78zum5 x1q0g3np",children:[k.jsx("div",{className:"x6s0dn4 x78zum5 xt7dq6l xl56j7k x3hqpx7",children:k.jsxs("div",{className:"xc26acl x7a106z x78zum5 xdt5ytf x65xoit x1dgoarg",children:[k.jsx(c("GeoBaseText.react"),{color:"heading",size:"header2",xstyle:c("geoMargin").top12,children:d("LeadsManagerConstants").PRE_TOS_ACCEPT_VIEW_HEADER}),g?k.jsx(c("GeoBaseText.react"),{color:"value",size:"value",xstyle:c("geoMargin").top24,children:d("LeadsManagerConstants").PRE_TOS_ACCEPT_IMPORT_LEADS_CONTENT}):null,u.map(function(a){return k.jsx("div",{className:"x1i64zmx x1xmf6yo",children:k.jsxs("div",{className:"x7a106z x78zum5 x14vqqas",children:[k.jsx("div",{className:"xq8finb xr9ek0c",children:k.jsx(c("Image.react"),{src:a.icon})}),k.jsx("div",{children:k.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:a.contentBody})})]})},a.contentBody)}),f?k.jsx(c("GeoBaseText.react"),{color:"value",size:"value",xstyle:c("geoMargin").top24,children:a}):k.jsx(c("GeoBaseText.react"),{color:"value",size:"value",xstyle:c("geoMargin").top24,children:s}),f&&k.jsx(c("GeoBaseText.react"),{color:"value",size:"value",xstyle:c("geoMargin").top24,children:t}),k.jsx("div",{className:"x1lliihq x1fg7cb5",children:k.jsx(c("GeoButton.react"),{variant:"primary",isDisabled:!f,label:h._("__JHASH__DIrRqxkYK1z__JHASH__"),xstyle:c("geoMargin").vert24,"data-testid":void 0,onClick:function(){e({shouldShowPipelineTour:!0,type:"SHOW_PIPELINE_ONBOARDING_TOUR"}),e({isFromPreToSAcceptView:!0,type:"IS_FROM_PRE_TOS_ACCEPT_VIEW"}),c("LeadsCenterPreTosAcceptanceViewClickContinueButtonFalcoEvent").log(function(){return{page_id:b,event_location:"leads_center",event_data:{}}}),p(b,"BIZWEB_LEAD_CENTER",j,q,e)}})})]})}),k.jsx("div",{className:"x78zum5 xt7dq6l x3hqpx7",children:k.jsx(c("Image.react"),{className:"xt7dq6l xh8yej3",src:"/images/leads_center/leads_center_pre_tos_accept_view/MBS-Leads-ToS-New-User-b4b4x.png"})})]})})}a.displayName=a.name+" [from "+f.id+"]";function o(){return[{contentBody:d("LeadsManagerConstants").PRE_TOS_ACCEPT_STOPWATCH_ICON_CONTENT,contentHeader:"",icon:i("500256")},{contentBody:d("LeadsManagerConstants").PRE_TOS_ACCEPT_FUNNEL_ICON_CONTENT,contentHeader:"",icon:i("560117")},{contentBody:d("LeadsManagerConstants").PRE_TOS_ACCEPT_THUNDER_ICON_CONTENT,contentHeader:"",icon:i("1020800")}]}function p(a,b,c,e,f){c(!0),d("LeadsManagerAcceptToSMutation").commit(e,{actor_id:a,signature_surface:b},{onSuccess:function(a){var b;b=(b=a.lead_gen_tos_consent)==null?void 0:b.success;if(b===!0){f({type:"LEADS_MANAGER_ACCEPT_TOS_ACTION",isBackFillJobsRunning:((b=a.lead_gen_tos_consent)==null?void 0:(a=b.page)==null?void 0:a.has_leads_center_back_fill_job_running)||!1})}else c(!1)},onFailure:function(){c(!1)}})}g["default"]=a}),226);
-----
BizKitContextCardActivitySection3DWrapper.react",["BizKitContextCardActivitySection.react","BizKitContextCardActivitySection3DWrapper_activities.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");h!==void 0?h:h=b("BizKitContextCardActivitySection3DWrapper_activities.graphql");function a(a){var b=a.className,d=a.pageID,e=a.isInKBankRollout,f=a.contactID,g=a.contactIdentity,h=a.onActivityListUpdated,i=a.activitiesQueryReference,k=a.readOnly,l=a.surface,m=a.onShowContactCardTosModal,n=a.shouldShowContactCardTos;a=a.shouldDisableBizInput;return j.jsx(c("BizKitContextCardActivitySection.react"),{className:b,contactID:f,contactIdentity:g,pageID:d,isInKBankRollout:e,onActivityListUpdated:h,activitiesQueryReference:i,readOnly:k,surface:l,onShowContactCardTosModal:m,shouldShowContactCardTos:n,shouldDisableBizInput:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardNotesSection3DWrapper.react",["BizKitContextCardNotesSection.react","BizKitContextCardNotesSection3DWrapper_notes.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BizKitContextCardNotesSection3DWrapper_notes.graphql");function a(a){var b=a.className,e=a.pageID,f=a.section_3d,g=a.contactID,h=a.contactIdentity,i=a.surface,l=a.readOnly,m=a.onShowContactCardTosModal;a=a.shouldShowContactCardTos;f=d("RelayHooks").useFragment(k,f);return j.jsx(c("BizKitContextCardNotesSection.react"),{className:b,contactID:g,contactIdentity:h,pageID:e,notes:f==null?void 0:f.biz_crm_contact,surface:i,readOnly:l,onShowContactCardTosModal:m,shouldShowContactCardTos:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerHomePageModals.react",["CatalogContext","CommerceBrandCompleteQueryParameterUtils","CommerceManagerAppContext","CommerceManagerContext","CommerceManagerHomePageModalsQuery.graphql","CommerceManagerHomeShopCompleteModal.react","CommerceManagerHooks","CommerceManagerImpressionLoggingContainer.react","CommerceManagerIntegrityEnforcementFBT","CommerceManagerShopsDisabledModalV2.react","CommerceManagerSuspense.react","CommerceOneCatalogMigrationModalSelector.atomic","CurrentBusinessUser","GeoPageSpinner.react","JSResource","SellerState","isEmpty","justknobx","keyMirror","lazyLoadComponent","nullthrows","react","useCommerceManagerModalParams"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.Suspense,m=e.useCallback,n=e.useContext,o=e.useState,p=c("lazyLoadComponent")(c("JSResource")("CommerceManagerTOSModal.react").__setRef("CommerceManagerHomePageModals.react")),q=c("lazyLoadComponent")(c("JSResource")("CommerceManagerOnboardingPayoutsModal.react").__setRef("CommerceManagerHomePageModals.react")),r=c("lazyLoadComponent")(c("JSResource")("CommerceManagerKYCModal.react").__setRef("CommerceManagerHomePageModals.react")),s=c("lazyLoadComponent")(c("JSResource")("CommerceManagerOBBOModal.react").__setRef("CommerceManagerHomePageModals.react")),t=c("lazyLoadComponent")(c("JSResource")("CommerceManagerDeferredPayoutOnboardingModalProxy.atomic").__setRef("CommerceManagerHomePageModals.react")),u=c("lazyLoadComponent")(c("JSResource")("CGPGuidanceEnableFederalInformActVerificationModal.react").__setRef("CommerceManagerHomePageModals.react")),v=c("lazyLoadComponent")(c("JSResource")("CGPGuidanceEnableBusinessAssetsModal.react").__setRef("CommerceManagerHomePageModals.react")),w=c("lazyLoadComponent")(c("JSResource")("CommerceBrandCompleteModal.atomic").__setRef("CommerceManagerHomePageModals.react")),x=c("lazyLoadComponent")(c("JSResource")("AdsAutocatOnboardingModalContainer.react").__setRef("CommerceManagerHomePageModals.react")),y=c("keyMirror")(c("SellerState")),z=h!==void 0?h:h=b("CommerceManagerHomePageModalsQuery.graphql"),A="CommerceManagerHomePageModals";function B(a){var b,e,f,g=c("nullthrows")(n(c("CommerceManagerAppContext")),"Failed to retrieve Catalog/CMS ID from CM App Context");g=g.catalogOrCmsID;var h=d("CommerceManagerHooks").useCommerceManagerQuery(z,{catalogOrCmsID:g},{fetchPolicy:"network-only"}),j=c("useCommerceManagerModalParams")(),A=j.removeQueryParam,B=j.showKYCModal,C=j.shouldShowCompletePayoutsModal,D=j.showDeferredPayoutOnboardingModal,E=j.shouldShowOneCatalogMigrationModal;j=j.showMultiShopConnectBusinessAssetsModal;var F=n(c("CatalogContext")),G=n(c("CommerceManagerContext")),H=G.loadFedInformWizard,I=G.setBrandCompleteOptOutSuccessfulMigrationType;G=(G=c("CurrentBusinessUser").business_id)!=null?G:F==null?void 0:F.ownerBusinessID;F=(F=h.configuration)==null?void 0:F.commerceAccount;b=(b=h.configuration)==null?void 0:b.catalogAccount;var J=!(i||(i=c("isEmpty")))(F==null?void 0:F.commerceMerchantStateInfo);e=F==null?void 0:(e=F.commerceMerchantStateInfo)==null?void 0:e.sellerState;f=(f=b==null?void 0:(f=b.catalogItems)==null?void 0:f.count)!=null?f:0;f=f>0;J=a.showShopCompleteDialog&&J;var K=(b==null?void 0:b.original_creation_source)==="AUTOCAT";b=(b==null?void 0:(b=b.website_onboarding_settings)==null?void 0:b.state)==="READY";K=K&&b;b=o(String(e)===y.BANNED);e=b[0];var L=b[1];b=o(a.showShopCompleteDialog&&!J);J=b[0];var M=b[1];b=o(a.showTOSModal);var N=b[0],O=b[1];b=o(a.showOBBOModal);var P=b[0],Q=b[1];b=o(H===!0);H=b[0];b=b[1];var R=F==null?void 0:F.id,S=d("CommerceBrandCompleteQueryParameterUtils").useBrandCompleteQueryParameters(),T=S.shouldShowMergeShopsOptOutModal;S=S.shouldShowLinkedAssetOptOutModal;var U=S===!0?"BRAND_COMPLETE_ADD_LINKED_ASSET":T===!0?"BRAND_COMPLETE_MERGE_SHOPS":null;S=m(function(){I&&I(U)},[I,U]);T=(T=h.configuration)==null?void 0:T.one_catalog_migration;if(K)return k.jsx(c("CommerceManagerSuspense.react"),{oncall:"catalog_quality_tools",children:k.jsx(x,{})});if(R==null)return null;if(E)return k.jsx(c("CommerceOneCatalogMigrationModalSelector.atomic"),{oneCatalogMigrationState:T,onHide:function(){return A("should_show_one_catalog_migration_modal")}});if(a.showBrandCompleteModal)return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R,migrationType:U},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"brand_complete_migration_opt_out_modal_view",oncall:"seller_account_foundation",children:k.jsx(c("CommerceManagerSuspense.react"),{oncall:"seller_account_foundation",children:k.jsx(w,{cmsID:R,flowName:"COMMERCE_MANAGER_HOME_TAB",sellerFunnelFlow:a.flowName,onLinkedAssetOptOutSuccess:S,onMergeShopsOptOutSuccess:S,onMigrationFailure:function(){d("CommerceBrandCompleteQueryParameterUtils").setBrandCompleteOptOutQueryParameters(!0)},onMigrationSuccess:function(){I&&I(null)}})})});if(N)return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"accept_tos_modal_view",oncall:"commerce_platform_onboarding_experiences",children:k.jsx(c("CommerceManagerSuspense.react"),{oncall:"commerce_platform_seller_onboarding",children:k.jsx(p,{isShown:N,onHide:function(){return O(!1)}})})});if(C)return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"onboarding_payouts_modal_view",oncall:"commerce_platform_onboarding_experiences",children:k.jsx(q,{commerceAccountID:R,hasOnsiteIntent:!0,isShown:C,source:"COMMERCE_MANAGER_HOME_COMPLETE_PAYOUTS_MODAL",onHide:function(){A("should_show_complete_payouts_modal")}})});if(B)return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"kyc_modal_view",oncall:"commerce_platform_onboarding_experiences",children:k.jsx(r,{isDialogShown:!0,onHide:function(){return A("load_kyc_flow")}})});if(P&&c("justknobx")._("1915"))return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"obbo_modal_view",oncall:"commerce_platform_onboarding_experiences",children:k.jsx(s,{isDialogShown:P,setIsDialogShown:Q,setShowNotifications:Q,onHide:function(){return Q(!1)}})});if(H&&c("justknobx")._("2205"))return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"fi_wizard_modal_view",oncall:"seller_onsite_retention",children:k.jsx(u,{cmsID:R,showModal:H,onModalVisibilityChange:b})});if(D){return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"deferred_payout_onboarding_modal_view",oncall:"commerce_platform_onboarding_experiences",children:k.jsx(t,{cms:(K=h.configuration)==null?void 0:K.commerceAccount,cmsID:R})})}if(j)return k.jsx(v,{cmsID:R,showModal:j,onHide:function(){return A("show_multi_shop_business_asset_connect_modal")}});if(J)return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R},flowName:"ONBOARDING_COMPLETE_MODAL",flowStep:"onboarding_complete_modal_view",oncall:"commerce_platform_onboarding_experiences",children:k.jsx(l,{fallback:k.jsx(c("GeoPageSpinner.react"),{variant:"overlay"}),children:k.jsx(c("CommerceManagerHomeShopCompleteModal.react"),{businessID:G,catalogHasInventory:f,catalogOrCmsID:g,onHide:function(){return M(!1)}})})});return e?k.jsx(c("CommerceManagerShopsDisabledModalV2.react"),{body:d("CommerceManagerIntegrityEnforcementFBT").EnforcementOverlayCardBodyShop(F==null?void 0:F.displayName),businessID:G,onHide:function(){return L(!1)}}):null}B.displayName=B.name+" [from "+f.id+"]";function a(a){var b,e;a=a.flowName;var f=n(c("CommerceManagerContext"));b=(b=f.showShopCompleteDialog)!=null?b:!1;e=(e=f.showTOSModal)!=null?e:!1;f=(f=f.loadOBBOFlow)!=null?f:!1;var g=d("CommerceBrandCompleteQueryParameterUtils").useBrandCompleteQueryParameters(),h=g.shouldShowLinkedAssetOptOutModal,i=g.shouldShowMergeShopsOptOutModal,j=g.shouldMergeShops;g=g.shouldUpdateLinkedAsset;return k.jsx(c("CommerceManagerSuspense.react"),{flowStep:A,oncall:"cxp_interfaces",children:k.jsx(B,{flowName:a,showBrandCompleteModal:h||i||j||g,showOBBOModal:f,showShopCompleteDialog:b,showTOSModal:e})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsPEManageAdsPaneContainer.react",["cx","errorCode","AdFLEXCampaignEditControlConfig","AdFLEXConfig","AdFLEXInboxNuxConfig","AdFLEXWhatsappMmInboxReTosConfig","AdsALSurface","AdsALSurfaceTablePlugin","AdsAMTableProvider","AdsAccountCreationUtils","AdsAccountStore","AdsAutoflowEducationModalAction","AdsAutoflowEducationModalProvider","AdsDeferRenderingForPerfContainer.react","AdsErrorBoundary.react","AdsExperimentsRunWinnerModalProvider","AdsFluxContainer","AdsHardRefreshDataProvider","AdsLazyContainer","AdsManagerRelayEnvironment","AdsMgmt2024H1ExperimentUtils","AdsMgmtArchivedCustomMetricsDialogProvider","AdsMgmtCampaignTableSidePanel.react","AdsMgmtDimensionSelectors","AdsMgmtNavigationTabsContainer.react","AdsMgmtSearchAndFilterGeoCard.react","AdsMgmtUseFilterIntentionProvider","AdsMidFlightRecommendationResolutionFlowProvider","AdsMidflightResolutionFlowVisibilitySelectors","AdsPEDcpSidePanelProvider","AdsPEFilterUIStateSelectors","AdsPELayoutSetAdLimitsRecommendationResolutionCardSizeAction","AdsPELayoutSetMidFlightResolutionCardSizeAction","AdsPELayoutSetPreFlightResolutionCardSizeAction","AdsPETableRouteContainer.react","AdsPEToolbarRouteContainer.react","AdsReportBuilderCustomMetricsDialogProvider","AdsRevertFragmentationProvider","AdsSelectionLevelSelectors","AdsSpinnerGroup.react","AdsTALRerunTestModalDataProvider","AdsTALSurfaceToastDataProvider","CometPlaceholder.react","DOMEventListener","DateTime","InteractionAreas","JSResource","LoadingMarkerArea.react","MessageMarketingAddMessagesDeliveredColumnNUXContainerLazy.react","QPLSharing","RelayHooks","ResponsiveBlock.react","ShopsAdsMetricsOnboardingTourContainerLazy.react","ShopsAdsOnboardingModalContainerLazy.react","adsBulkEditDialogSelector","adsColumnFlexingModalSelector","adsExperimentsCreateTestModalSelector","adsIsCBOBulkEditDialogType","adsManagerSourceOfTruthNuxSelector","adsManagerTableOpportunityScoreNUXSelector","adsMgmtAdgroupSelectionSelector","adsMgmtCampaignGroupSelectionSelector","adsMgmtCampaignSelectionSelector","adsMgmtDataFetchingStatusSelector","adsMgmtPrimaryViewWidthStyleSelector","adsPEManageAdsSectionSelector","adsPermissionRequestGetUserRole","adsPreFlightRecommendationResolutionFlowVisibilitySelector","adsStatusChangeDialogSelector","adsUEditorAdgroupAllDraftsAndEditorTrayOpenSelector","adsUEditorHasAcceptedGenAIAlphaTermsSelector","emptyFunction","gkx","lazyLoadComponent","no-swipe","react","withAdsHeroTracing"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=c("lazyLoadComponent")(c("JSResource")("AdsAddPaymentMethodMessagingFloatingTipWrapperDeferred.react").__setRef("AdsPEManageAdsPaneContainer.react")),m=c("lazyLoadComponent")(c("JSResource")("AdsLoadingRecommendationResolutionFlow.react").__setRef("AdsPEManageAdsPaneContainer.react")),n=c("lazyLoadComponent")(c("JSResource")("AdsMidFlightRecommendationResolutionFlowContainer.react").__setRef("AdsPEManageAdsPaneContainer.react")),o=c("lazyLoadComponent")(c("JSResource")("AdsPreFlightRecommendationResolutionFlowContainer.react").__setRef("AdsPEManageAdsPaneContainer.react")),p=c("lazyLoadComponent")(c("JSResource")("AdLimitsRecommendationResolutionCardContainer.react").__setRef("AdsPEManageAdsPaneContainer.react")),q=c("lazyLoadComponent")(c("JSResource")("AdsAutomaticFlowLiteEducationModal.react").__setRef("AdsPEManageAdsPaneContainer.react")),r=c("lazyLoadComponent")(c("JSResource")("AdsManagerQualitySurvey.react").__setRef("AdsPEManageAdsPaneContainer.react")),s=c("lazyLoadComponent")(c("JSResource")("CreatorAdsRootContainer.react").__setRef("AdsPEManageAdsPaneContainer.react")),t=c("lazyLoadComponent")(c("JSResource")("AdsPermissionRequestDeferred.react").__setRef("AdsPEManageAdsPaneContainer.react")),u=c("lazyLoadComponent")(c("JSResource")("AdsMessagingResultsUpsellModalContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"));a=c("AdsAMTableProvider").toFluxStore();var v=d("AdsLazyContainer").create({loader:c("JSResource")("AdsAMTableResolutionFlowContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:[a],shouldShow:function(){return!0},placeholderComponent:null}),w=function(a){a.deliberateSync=!0;return c("no-swipe")(a)},x=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsManagerHardRefreshModal.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:[c("AdsHardRefreshDataProvider").toFluxStore()],shouldShow:function(){return c("AdsHardRefreshDataProvider")().isShown}}),y=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsReportBuilderCustomMetricDialogContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:[c("AdsReportBuilderCustomMetricsDialogProvider").toFluxStore()].filter(Boolean),shouldShow:function(){return c("AdsReportBuilderCustomMetricsDialogProvider")().isOpen}}),z=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsBulkEditDialogContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:c("adsBulkEditDialogSelector").getStores(),shouldShow:function(){var a=c("adsBulkEditDialogSelector")();a=a.dialogType;return a!=null&&!c("adsIsCBOBulkEditDialogType")(a)}}),A=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsCBOBulkEditDialogContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:c("adsBulkEditDialogSelector").getStores(),shouldShow:function(){var a=c("adsBulkEditDialogSelector")();a=a.dialogType;return a!=null&&c("adsIsCBOBulkEditDialogType")(a)}}),B=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsStatusChangeDialogContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:c("adsStatusChangeDialogSelector").getStores(),shouldShow:function(){return c("adsStatusChangeDialogSelector")().isShown}}),C=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsMgmtArchivedCustomMetricsListContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:[c("AdsMgmtArchivedCustomMetricsDialogProvider").toFluxStore()],shouldShow:function(){return c("AdsMgmtArchivedCustomMetricsDialogProvider")().isShown}}),D=d("AdsLazyContainer").create({loader:c("JSResource")("AdsExperimentsRunWinnerModalContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),placeholderComponent:null,stores:[c("AdsExperimentsRunWinnerModalProvider").toFluxStore()],shouldShow:function(){return c("AdsExperimentsRunWinnerModalProvider")().showRunWinnerModal}}),E=d("AdsLazyContainer").create({loader:c("JSResource")("AdsTALRerunTestModalContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),placeholderComponent:null,stores:[c("AdsTALRerunTestModalDataProvider").toFluxStore()],shouldShow:function(){return c("AdsTALRerunTestModalDataProvider")().modalIsVisible}}),F=d("AdsLazyContainer").create({loader:c("JSResource")("AdsTALSurfaceToastContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),placeholderComponent:null,stores:[c("AdsTALSurfaceToastDataProvider").toFluxStore()],shouldShow:function(){return c("AdsTALSurfaceToastDataProvider")().toastProps!=null}}),G=d("AdsLazyContainer").create({loader:c("JSResource")("AdsRevertRecommendationFlowContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),placeholderComponent:null,stores:[c("AdsRevertFragmentationProvider").toFluxStore()],shouldShow:function(){return c("AdsRevertFragmentationProvider")().showModal}}),H=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsColumnFlexingModalContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:c("adsColumnFlexingModalSelector").getStores(),shouldShow:function(){return c("adsColumnFlexingModalSelector")().shouldShowModal===!0}}),I=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsGenAIAlphaTestModalContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:c("adsUEditorHasAcceptedGenAIAlphaTermsSelector").getStores(),shouldShow:function(){return c("adsUEditorHasAcceptedGenAIAlphaTermsSelector")()!==1&&c("adsUEditorHasAcceptedGenAIAlphaTermsSelector")()!==2}}),J=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsManagerTableOpportunityScoreNUXTourContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:c("adsManagerTableOpportunityScoreNUXSelector").getStores(),shouldShow:function(){return c("adsManagerTableOpportunityScoreNUXSelector")().shouldShowModal===!0}}),K=d("AdsLazyContainer").create({loader:c("JSResource")("AdsPEToolbarCreateTestModal.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:d("adsExperimentsCreateTestModalSelector").adsExperimentsCreateTestModalSelector.getStores(),placeholderComponent:null,shouldShow:function(){return d("adsExperimentsCreateTestModalSelector").adsExperimentsCreateTestModalSelector().toolbarState.isModalVisible===!0}}),L=d("AdsLazyContainer").create({loader:c("JSResource")("AdsManagerSourceOfTruthNuxContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:c("adsManagerSourceOfTruthNuxSelector").getStores(),placeholderComponent:null,shouldShow:function(){return c("adsManagerSourceOfTruthNuxSelector")().shouldShowModal===!0}});c("InteractionAreas").addArea("_2utx","mgmt_filterbar","am_management_other");c("InteractionAreas").addArea("_2ut_","mgmt_table","am_management_table");c("InteractionAreas").addAreaByID("peTabs","mgmt_tabs","am_management_navigation");var M=c("withAdsHeroTracing").root("am.table.toolbar");function N(){var a=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsPEToolbarRouteContainer",children:k.jsx(c("AdsPEToolbarRouteContainer.react"),{})});return c("gkx")("1157")?k.jsx(M,{children:a}):a}N.displayName=N.name+" [from "+f.id+"]";var O=k.createRef();b=function(a){babelHelpers.inheritsLoose(b,a);b.getStores=function(){return[].concat(c("AdsAccountStore").getSelectedAccount.getStores(),d("AdsMgmtDimensionSelectors").hasFiltersSelector.getStores(),c("adsPEManageAdsSectionSelector").getStores(),c("adsMgmtPrimaryViewWidthStyleSelector").getStores(),d("AdsSelectionLevelSelectors").adsSelectionLevelSelector.getStores(),d("AdsMidflightResolutionFlowVisibilitySelectors").adsMidflightIsValidResolutionFlowLoadObjectSelector.getStores(),d("adsPreFlightRecommendationResolutionFlowVisibilitySelector").adsPreFlightRecommendationResolutionFlowVisibilitySelector.getStores(),d("AdsPEFilterUIStateSelectors").hasFilters.getStores(),[c("AdsMgmtUseFilterIntentionProvider").toFluxStore(),c("AdsAutoflowEducationModalProvider").toFluxStore(),c("AdsMidFlightRecommendationResolutionFlowProvider").toFluxStore()],c("adsUEditorAdgroupAllDraftsAndEditorTrayOpenSelector").getStores(),[c("AdsPEDcpSidePanelProvider").toFluxStore()],c("adsMgmtCampaignGroupSelectionSelector").getStores(),c("adsMgmtCampaignSelectionSelector").getStores(),c("adsMgmtAdgroupSelectionSelector").getStores()).filter(Boolean)};b.calculateState=function(a){var b,e=c("adsPEManageAdsSectionSelector")(),f=d("AdsSelectionLevelSelectors").adsSelectionLevelSelector(e),g=["ad","ad_set","campaign"].includes(f),h=c("AdsMidFlightRecommendationResolutionFlowProvider")(),i=d("AdsMidflightResolutionFlowVisibilitySelectors").adsMidflightIsValidResolutionFlowLoadObjectSelector().getValue()===!0,j=g&&i,k=g&&d("adsPreFlightRecommendationResolutionFlowVisibilitySelector").adsPreFlightRecommendationResolutionFlowVisibilitySelector(),l=e==="L1"||e==="L2"||e==="L3"||e==="CREATIVES";l=!l||(a==null?void 0:a.shouldLoadRealFilterContainer)===!0||d("AdsPEFilterUIStateSelectors").hasFilters()||c("AdsMgmtUseFilterIntentionProvider")().isIntentionShown;a=c("AdsAccountStore").getSelectedAccount().getValue();b=c("AdFLEXConfig")==null?void 0:(b=c("AdFLEXConfig").get())==null?void 0:b.getRedirectRoute==null?void 0:b.getRedirectRoute(a);b!=null&&b.navigate();b=c("adsUEditorAdgroupAllDraftsAndEditorTrayOpenSelector")();var m=c("AdsPEDcpSidePanelProvider")().isSidePanelOpen,n=c("AdsPEDcpSidePanelProvider")().selectedVizType,o=null,p=0;if(c("gkx")("4651"))switch(f){case"campaign":c("adsMgmtCampaignGroupSelectionSelector")!=null&&(p=c("adsMgmtCampaignGroupSelectionSelector")().size);break;case"ad_set":c("adsMgmtCampaignSelectionSelector")!=null&&(p=c("adsMgmtCampaignSelectionSelector")().size);break;case"ad":c("adsMgmtAdgroupSelectionSelector")!=null&&(p=c("adsMgmtAdgroupSelectionSelector")().size)}else{o=[];switch(f){case"campaign":c("adsMgmtCampaignGroupSelectionSelector")!=null&&(o=c("adsMgmtCampaignGroupSelectionSelector")().toArray());break;case"ad_set":c("adsMgmtCampaignSelectionSelector")!=null&&(o=c("adsMgmtCampaignSelectionSelector")().toArray());break;case"ad":c("adsMgmtAdgroupSelectionSelector")!=null&&(o=c("adsMgmtAdgroupSelectionSelector")().toArray())}p=o.length}return{account:a,areAllAdGroupsNew:b,hasBulkEditDialog:g,showFilter:d("AdsMgmtDimensionSelectors").hasFiltersSelector(),hasAdLimitsRecommendationResolution:g,shouldLoadRealFilterContainer:l,primaryViewWidth:c("adsMgmtPrimaryViewWidthStyleSelector")(),section:e,isValidMidflightResolutionFlow:i,isVisibleMidflightRecommendationResolutionFlow:j,isVisiblePreFlightRecommendationResolutionFlow:k,isAutoflowEducationModalShown:c("AdsAutoflowEducationModalProvider")().isAutoflowEducationModalShown,midFlightRecommendationData:h,isDcpSidePanelOpen:m,selectedAdObjectIDs:o,selectedAdObjectIDsCount:p,selectedAdObjectLevel:f,sidePanelVizType:n}};function b(b){b=a.call(this,b)||this;b.$2=function(a,b){c("AdsPELayoutSetMidFlightResolutionCardSizeAction").dispatch({height:b},{line:"970",module:"AdsPEManageAdsPaneContainer.react.js",moduleID:f.id}),c("AdsPELayoutSetPreFlightResolutionCardSizeAction").dispatch({height:b},{line:"973",module:"AdsPEManageAdsPaneContainer.react.js",moduleID:f.id})};b.$3=function(a,b){c("AdsPELayoutSetAdLimitsRecommendationResolutionCardSizeAction").dispatch({height:b},{line:"982",module:"AdsPEManageAdsPaneContainer.react.js",moduleID:f.id})};b.$4=function(){var a=O.current;a&&d("DOMEventListener").add(a,"wheel",w,{passive:!1})};b.$1=function(){var a=O.current;a&&d("DOMEventListener").remove(a,"wheel",w,{passive:!1})};c("QPLSharing").emitPoint("LOAD_TABLE","MANAGE_ADS_PANE_CONTAINER_MOUNT_START");return b}var e=b.prototype;e.componentDidMount=function(){c("QPLSharing").emitPoint("LOAD_TABLE","MANAGE_ADS_PANE_CONTAINER_MOUNT_END")};e.componentWillUnmount=function(){this.$1()};e.render=function(){var a,b,e=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsPETableRouteContainer",children:k.jsx(c("AdsPETableRouteContainer.react"),{})}),g=this.state.hasBulkEditDialog?k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsBulkEditDialogContainer",children:k.jsx(z,{})}):null,h=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsABTestingDialogContainer",children:k.jsx(K,{})}),i=x!==null?x&&k.jsx(x,{}):null,j=y&&k.jsx(y,{}),l=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsCBOBulkEditDialogContainer",children:k.jsx(A,{})}),t=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsStatusChangeDialogContainer",children:k.jsx(B,{})}),w=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsMgmtArchivedCustomMetricsListLazyContainer",children:k.jsx(C,{isShown:!0})}),M=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsExperimentsRunWinnerModalContainer",children:k.jsx(D,{})}),Q=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsTALSurfaceToast",children:k.jsx(F,{})}),R=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"ShopsAdsOnboardingModalContainerLazy",children:k.jsx(c("ShopsAdsOnboardingModalContainerLazy.react"),{})}),S=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsColumnFlexingModalContainer",children:k.jsx(H,{})}),T=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsGenAIAlphaTestModalContainer",children:k.jsx(I,{})});a=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsTALRerunTestModalContainer",children:k.jsx(E,{adAccountTimeZoneId:(a=(a=this.state.account)==null?void 0:a.timezone_id)!=null?a:c("DateTime").localNow().getTimezoneID()})});var U=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsMessagingResultsUpsellModalContainer",children:k.jsx(c("CometPlaceholder.react"),{fallback:null,children:k.jsx(u,{})})}),V=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"ShopsAdsMetricsOnboardingTourContainerLazy",children:k.jsx(c("ShopsAdsMetricsOnboardingTourContainerLazy.react"),{})}),W=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsManagerTableOpportunityScoreNUXTourContainer",children:k.jsx(J,{accountOpportunityScore:c("adsManagerTableOpportunityScoreNUXSelector")().accountOpportunityScore})}),X=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"MessageMarketingAddMessagesDeliveredColumnNUXContainer",children:k.jsx(c("MessageMarketingAddMessagesDeliveredColumnNUXContainerLazy.react"),{})}),aa=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AMTableResolutionFlowContainer",children:k.jsx(v,{})}),ba=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsManagerSourceOfTruthNuxContainer",children:k.jsx(L,{})});c("AdFLEXWhatsappMmInboxReTosConfig")==null?void 0:(b=c("AdFLEXWhatsappMmInboxReTosConfig").get())==null?void 0:b.getWhatsAppInboxReTosModal==null?void 0:b.getWhatsAppInboxReTosModal();b=this.state;var ca=b.account,da=b.hasAdLimitsRecommendationResolution,ea=b.shouldLoadRealFilterContainer,fa=b.isValidMidflightResolutionFlow,Y=b.isVisibleMidflightRecommendationResolutionFlow,Z=b.isVisiblePreFlightRecommendationResolutionFlow,ga=b.primaryViewWidth,$=b.section,ha=b.isAutoflowEducationModalShown,ia=b.midFlightRecommendationData,ja=b.selectedAdObjectIDsCount;b=b.selectedAdObjectLevel;T=k.jsxs(k.Fragment,{children:[c("gkx")("1291")?T:null,l,t,j,w,M,a,Q,R,S,V,i,U,X,!Y&&!Z&&W,aa,d("AdsMgmt2024H1ExperimentUtils").getIsAccountInSourceOfTruthTestGroupWithoutExposure()&&ba]});t=k.jsx(c("AdsDeferRenderingForPerfContainer.react"),{placeholder:null,selector:c("adsMgmtDataFetchingStatusSelector"),children:k.jsx(N,{})});e=k.jsxs(P,{style:{display:"flex",flexDirection:"column"},children:[t,g,k.jsx(P,{style:{display:"flex"},children:k.jsx("div",{className:"_2ut_",style:{display:"flex"},children:e})})]});j=k.jsxs(P,{style:{display:"flex",flexDirection:"column"},children:[t,g,l,h,k.jsx(P,{style:{display:"flex"},children:k.jsx("div",{className:"_2ut_",style:{display:"flex"},children:e})})]});if(this.state.section==="PACKAGE_AD_CREATION")return j;if(this.state.section==="CREATOR_ADS"){return k.jsx(s,{adAccountID:(w=this.state.account)==null?void 0:w.account_id})}e=k.jsx(c("AdsSpinnerGroup.react"),{children:e});M=k.jsx("div",{className:"_1hv5",style:{height:"98%"},children:k.jsx(c("LoadingMarkerArea.react"),{name:"AdsPEManageAdsPaneContainer",owner:"ads_management",children:e})});a=this.state.showFilter?k.jsx(c("AdsMgmtSearchAndFilterGeoCard.react"),{isValidMidflightResolutionFlow:fa,shouldLoadRealFilterContainer:ea}):null;Q=$==="ACCOUNT"||$==="ADVERTISING_SETTINGS"||$==="AD_ACCOUNT_SETTINGS"||$==="CREATIVES";R=Y?k.jsx(c("CometPlaceholder.react"),{fallback:null,name:f.id,children:k.jsx(c("CometPlaceholder.react"),{fallback:k.jsx(m,{midFlightRecommendationData:ia}),name:f.id,children:k.jsx(c("ResponsiveBlock.react"),{onResize:this.$2,children:k.jsx(n,{})})})}):null;S=Z?k.jsx(c("CometPlaceholder.react"),{fallback:null,name:f.id,children:k.jsx(c("ResponsiveBlock.react"),{onResize:this.$2,children:k.jsx(o,{})})}):null;V=k.jsx(c("CometPlaceholder.react"),{fallback:null,name:f.id,children:k.jsx(c("ResponsiveBlock.react"),{onResize:this.$2,children:k.jsx(G,{})})});i=da?k.jsx(c("CometPlaceholder.react"),{fallback:null,name:f.id,children:k.jsx(c("ResponsiveBlock.react"),{onResize:this.$3,children:k.jsx(p,{})})}):null;U=ha?k.jsx(q,{isAutomaticFlow:!0,logSeeNewEducationModalPage:c("emptyFunction"),onChangeToAutomaticFlow:c("emptyFunction"),onCloseEducationModal:function(){return c("AdsAutoflowEducationModalAction").dispatch({isAutoflowEducationModalShown:!1},{line:"825",module:"AdsPEManageAdsPaneContainer.react.js",moduleID:f.id})}}):null;X=k.jsx(c("CometPlaceholder.react"),{fallback:null,name:f.id,children:k.jsx(r,{})});return c("AdsALSurface")({surface:c("AdsALSurfaceTablePlugin")})(k.jsxs("div",{className:"_2utw",ref:O,style:{height:"100%",display:"flex",flexDirection:"column"},onMouseEnter:this.$4,onMouseLeave:this.$1,children:[k.jsxs(c("AdsErrorBoundary.react"),{moduleName:f.id,children:[T,R,U,S,V,i]}),a,Q?null:this.$5(),k.jsx(P,{className:"_3-9a",style:{width:ga,display:"flex",flexDirection:"column",overflow:"auto"},children:this.state.isDcpSidePanelOpen&&d("AdsMgmt2024H1ExperimentUtils").getIsAccountInDcpPhaseOneQETestGroup()?k.jsxs("div",{style:{display:"flex",flexDirection:"row",height:"100%",overflow:"hidden"},children:[k.jsx(P,{className:"_2utz",style:{width:"70%",marginRight:8},children:M}),k.jsx("div",{className:"_1hv5",style:{width:"30%",height:"98%"},children:k.jsx(c("AdsMgmtCampaignTableSidePanel.react"),{selectedAdObjectIDsCount:ja,selectedAdObjectLevel:b,selectedVizType:this.state.sidePanelVizType})})]}):k.jsx(P,{className:"_2utz",children:M})}),k.jsxs(c("AdsErrorBoundary.react"),{moduleName:f.id,children:[X,this.$6(ca)]})]}))};e.$6=function(a){if(a!=null){var b;b=c("AdFLEXCampaignEditControlConfig")==null?void 0:(b=c("AdFLEXCampaignEditControlConfig").get())==null?void 0:b.getAPIXHideComponentWrapper;b=b!=null?k.jsx(b,{account:a,children:k.jsx(l,{account:a})}):k.jsx(l,{account:a});return b!=null?k.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:c("AdsManagerRelayEnvironment"),children:k.jsx(c("CometPlaceholder.react"),{fallback:null,name:f.id,children:b})}):null}return this.state.areAllAdGroupsNew&&a!=null&&!d("AdsAccountCreationUtils").accountHasPermissionToCreateAds(a)&&a.business!=null?k.jsx(c("CometPlaceholder.react"),{fallback:null,children:k.jsx(t,{adAccount:a,adLevel:"ad",businessUserType:c("adsPermissionRequestGetUserRole")(),errorCode:1487194})}):(b=c("AdFLEXInboxNuxConfig")==null?void 0:(b=c("AdFLEXInboxNuxConfig").get())==null?void 0:b.getMessageCampaignsGoToInboxNux==null?void 0:b.getMessageCampaignsGoToInboxNux(a))!=null?b:null};e.$5=function(){return k.jsx("div",{className:"_3-8r",id:"peTabs",children:k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsMgmtNavigationTabsContainer",children:k.jsx(c("AdsMgmtNavigationTabsContainer.react"),{})})})};return b}(k.Component);function P(a){var b=a.children,c=a.style;a=babelHelpers.objectWithoutPropertiesLoose(a,["children","style"]);return k.jsx("div",babelHelpers["extends"]({},a,{style:babelHelpers["extends"]({height:"100%"},c),children:b}))}P.displayName=P.name+" [from "+f.id+"]";e=c("AdsFluxContainer").create(b,{name:f.id});g["default"]=e}),98);
-----
MessageMarketingBetaToSDialogOpen",["MessageMarketingBetaToSModalAction"],(function(a,b,c,d,e,f,g){"use strict";function a(){c("MessageMarketingBetaToSModalAction").dispatch({isModalShown:!0},{line:"16",module:"MessageMarketingBetaToSDialogOpen.js",moduleID:f.id})}g["default"]=a}),98);
-----
MessageMarketingBetaToSModalAction",["Laminar","MessageMarketingBetaToSModalProvider","MessageMarketingBetaToSModalReducerPlugin"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("MessageMarketingBetaToSModalReducerPlugin"),b("MessageMarketingBetaToSModalProvider"),{},"")]},function(){return[]},"MessageMarketingBetaToSModalActionPlugin");e.exports=a}),null);
-----
MessageMarketingBetaToSModalReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return{isModalShown:b.isModalShown}}};b=a;f["default"]=b}),66);
-----
MessageMarketingMBSInboxToSModalAction",["Laminar","MessageMarketingMBSInboxToSModalProvider","MessageMarketingMBSInboxToSModalReducerPlugin"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("MessageMarketingMBSInboxToSModalReducerPlugin"),b("MessageMarketingMBSInboxToSModalProvider"),{},"")]},function(){return[]},"MessageMarketingMBSInboxToSModalActionPlugin");e.exports=a}),null);
-----
MessageMarketingMBSInboxToSModalReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return{isModalShown:b.isModalShown}}};b=a;f["default"]=b}),66);
-----
AdFLEXWhatsappMmInboxReTosMessageMarketingConfigPlugin",["AdsPERouterHelper","MessageMarketingMBSInboxToSModalAction"],(function(a,b,c,d,e,f,g){"use strict";a={type:"flexWhatsappMmInboxReTosConfig",key:"marketingMessages",tool:"MANAGE_MESSAGES",getWhatsAppInboxReTosModal:function(){var a=c("AdsPERouterHelper").getRouter().getQueryParams();a=(a=a.show_inbox_re_tos)!=null?a:!1;a&&c("MessageMarketingMBSInboxToSModalAction").dispatch({isModalShown:!0},{line:"29",module:"AdFLEXWhatsappMmInboxReTosMessageMarketingConfigPlugin.js",moduleID:f.id});return null}};b=a;g["default"]=b}),98);
-----
AdsManagerLazyLoadModals.react",["AAAMediaPickerVisibilityProvider","AdAccountDSAInfoChangeVerificationModalProvider","AdProposalFlowProvider","AdsAIActionabilityViewChangesModalDataProvider","AdsAILoggingUtils","AdsAIUtils","AdsBrowserExtensionErrorDataProvider","AdsCampaignGroupBudgetBulkAdoptionDialogProvider","AdsCampaignStructureCreationLoadingUIDataProvider","AdsCatalogCreationShopifyOptimizedOnboardingModalContainerLazy.react","AdsCertificationLearnMoreDataProvider","AdsCertificationUserHasCertified","AdsClipboardDataProvider","AdsConvergenceStoreTrafficL3PageSelectorConfirmationDialogUIDataProvider","AdsDuplicationUpgradeChangesSummaryModalProvider","AdsExperimentsLightweightTestConfirmationDialogProvider","AdsExternalCreationConfirmationDialogPlaceholder.react","AdsGuidanceAccountSpendLimitDialogDataProvider","AdsLWIGraduationSuccessfulCompletionDataProvider","AdsLazyContainer","AdsLazyContainerPreloaderProvider","AdsLoginAs","AdsMgmt2024H1ExperimentUtils","AdsMgmtDeleteDraftDialogShownProvider","AdsOfflineEventSetOptimizationSurveyDialogContainerLazy.react","AdsPEAudienceSplittingUIDataProvider","AdsPECreationUIProvider","AdsPECrepeCampaignStructureCreationLoadingUIDataProvider","AdsPEDigitalCircularAdAccountSelectionDialogContainer.react","AdsPEImportStore","AdsPELazyDialogDataProvider","AdsPEModalStatusContainer.react","AdsPENavigationProvider","AdsPEPublishDialogPlaceholder.react","AdsPEPurgeArchiveProvider","AdsPEQuickCreateDialogContainer.react","AdsPEReachFrequencyStatusTransitionDialogBootloadContainer.react","AdsPETableViewSelectors","AdsPreflightRecommendationHubProvider","AdsProgressiveDisclosureNUXModalProvider","AdsRecoverPostProgressModalContainerLazy.react","AdsReportBuilderCompareAttributionWindowUtils","AdsRuleDialogBootloadContainer.react","AdsSAFRCategoryInfoModalProvider","AdsSAFREducationModalProvider","AdsSessionExpiredDialogDataProvider","AdsSplitTestChangeBlockedDialogBootloadContainer.react","AdsToggleZeroConversionWarningDialogDataProvider","AdsUnificationCampaignNUXModalProvider","AdvertiserIntegrityPhoneVerificationWizardProvider","CometPlaceholder.react","JSResource","MessageMarketingBetaToSModalProvider","MessageMarketingMBSInboxToSModalProvider","PostPublishMobileUpsellProvider","ShopsAdsShopifyOptimizedOnboardingModalContainerLazy.react","SpecialAdCategoryErrorGuidanceCardTuneProvider","URIInitDataUtil","adsCreationIsDialogShownSelector","adsIsInCampaignGroupLevelSelector","isEmpty","lazyLoadComponent","react","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a,b){return function(){var c=a();c&&b();return c}}var k=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsUEditorPreflightRecommendationHubBulkResolutionModal.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("AdsPreflightRecommendationHubProvider")().shouldShowBulkResolutionModal},function(){return c("vulture")("7dyEhmAuULr")}),stores:[c("AdsPreflightRecommendationHubProvider").toFluxStore()]}),l=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsAccountSpendLimitPostPublishModalContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return c("AdsGuidanceAccountSpendLimitDialogDataProvider")().showPostPublishAccountSpendLimitDialog},stores:[c("AdsGuidanceAccountSpendLimitDialogDataProvider").toFluxStore()]}),m=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsAccountSpendLimitManagerModalContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("AdsGuidanceAccountSpendLimitDialogDataProvider")().showAccountSpendLimitManageDialog},function(){return c("vulture")("8Trz97XOWS")}),stores:[c("AdsGuidanceAccountSpendLimitDialogDataProvider").toFluxStore()]}),n=c("AdsPELazyDialogDataProvider").toFluxStore(),o=c("AdsPEPurgeArchiveProvider").toFluxStore(),p=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEDiscardConfirmDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return n.getState().discardConfirmDialogShown.dialogShown},stores:[n]}),q=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEEndStudyConfirmDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return n.getState().endStudyConfirmDialogShown.dialogShown},function(){}),stores:[n]}),r=d("AdsLazyContainer").create({loader:c("JSResource")("AdsPEUploadPreviewDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:c("AdsPEPublishDialogPlaceholder.react"),shouldShow:function(){return n.getState().uploadPreviewDialogShown},stores:[n]}),s=c("AdsToggleZeroConversionWarningDialogDataProvider").toFluxStore(),t=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPrePublishZeroConversionWarningDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return s.getState().isVisible},stores:[s]}),u=d("AdsLazyContainer").create({loader:c("JSResource")("AdvertiserIntegrityPhoneVerificationWizardLauncher.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:function(){return c("AdvertiserIntegrityPhoneVerificationWizardProvider")().isVisible},stores:[c("AdvertiserIntegrityPhoneVerificationWizardProvider").toFluxStore()]}),v=d("AdsLazyContainer").create({loader:c("JSResource")("AdsSpecialAdCategoryErrorGuidanceCardTuneDialogLauncher.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:a(function(){return c("SpecialAdCategoryErrorGuidanceCardTuneProvider")().isVisible},function(){}),stores:[c("SpecialAdCategoryErrorGuidanceCardTuneProvider").toFluxStore()]}),w=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsExperimentsLightweightTestConfirmationDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("AdsExperimentsLightweightTestConfirmationDialogProvider")().isVisible},function(){return c("vulture")("6KH2o2GS8Os")}),stores:[c("AdsExperimentsLightweightTestConfirmationDialogProvider").toFluxStore()]}),x=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEOverAdLimitConfirmPublishDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return n.getState().overAdLimitPublishConfirmDialogShown.dialogShown},function(){}),stores:[n]}),y=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPELowReachRecommendationDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return n.getState().lowReachRecommendationDialogState.dialogShown},function(){}),stores:[n]}),z=c("AdsPECreationUIProvider").toFluxStore(),A=d("AdsLazyContainer").create({loader:c("JSResource")("AdsPEConvergencePrefillContentContainer.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:c("AdsExternalCreationConfirmationDialogPlaceholder.react"),shouldShow:function(){return z.getState().isCreationOpen},stores:[z]}),B=d("AdsLazyContainer").create({loader:c("JSResource")("AdsPEPublishReceiptDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:c("AdsPEPublishDialogPlaceholder.react"),shouldShow:function(){return n.getState().publishReceiptDialogShown},stores:[n]}),C=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPELeadDownloadDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return n.getState().leadDownloadDialogShown},stores:[n]}),D=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsDuplicationDialogUpgradeCombinedSwitchContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return c("adsCreationIsDialogShownSelector")()},stores:c("adsCreationIsDialogShownSelector").getStores()}),E=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEPublishConfirmDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return n.getState().publishConfirmDialogShown.dialogShown},stores:[n]}),F=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEDeleteConfirmDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return n.getState().deleteConfirmDialogShown},stores:[n]}),G=c("AdsPECrepeCampaignStructureCreationLoadingUIDataProvider").toFluxStore(),H=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPECrepeCampaignStructureCreateContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return G.getState().isCreating},function(){}),stores:[G]}),I=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsCampaignGroupBudgetMidflightEducationDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return n.getState().campaignMidflightEducationDialogState.dialogShown},stores:[n]}),J=c("AdsCampaignStructureCreationLoadingUIDataProvider").toFluxStore(),K=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsCampaignStructureCreateContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return J.getState().isCreating},stores:[J]});e=c("AdsConvergenceStoreTrafficL3PageSelectorConfirmationDialogUIDataProvider").toFluxStore();var L=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEConvergenceStoreTrafficPageSelectorConfirmationDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("AdsConvergenceStoreTrafficL3PageSelectorConfirmationDialogUIDataProvider")().showDialog},function(){return c("vulture")("8LyLJDUuEkg")}),stores:[e]}),M=c("AdsPEAudienceSplittingUIDataProvider").toFluxStore(),N=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEAudienceSplittingDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return M.getState()},function(){}),stores:[M]}),O=c("AdsBrowserExtensionErrorDataProvider").toFluxStore(),aa=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsBrowserExtensionErrorDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return!!O.getState().extensionURL},stores:[O]}),P=c("AdsSessionExpiredDialogDataProvider").toFluxStore(),ba=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsSessionExpiredDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return P.getState().isShown},stores:[P]}),ca=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEServerBulkImportDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return c("AdsPEImportStore").getState().dialogOpen},stores:[c("AdsPEImportStore")]}),da=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("MessageMarketingBetaToSDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("MessageMarketingBetaToSModalProvider")().isModalShown},function(){return c("vulture")("LhgShNiutj")}),stores:[c("MessageMarketingBetaToSModalProvider").toFluxStore()]}),ea=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("MessageMarketingMBSInboxToSModalContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("MessageMarketingMBSInboxToSModalProvider")().isModalShown},function(){}),stores:[c("MessageMarketingMBSInboxToSModalProvider").toFluxStore()]}),fa=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEPurgeArchiveDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return o.getState().isDialogShown},stores:[o]}),Q=c("AdsClipboardDataProvider").toFluxStore();e=c("AdsLazyContainerPreloaderProvider").toFluxStore();var ga=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsClipboardDialogVisibilityContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldPreload:function(){return c("AdsLazyContainerPreloaderProvider")().get("clipboardDialog")},shouldShow:a(function(){return Q.getState().showClipboard},function(){}),stores:[Q,e]}),ha=d("AdsLazyContainer").create({loader:c("JSResource")("AdsPEBusinessIntegrityTwoFacAuthStartupDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:a(function(){return d("URIInitDataUtil").shouldShowAdsBITwoFacDialogOnStartup()},function(){return c("vulture")("6SqY7e5cJyR")}),stores:[]}),R=c("AdsMgmtDeleteDraftDialogShownProvider").toFluxSelector(),ia=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEDeleteDraftDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return R().isShown},stores:R.getStores()}),S=c("AdsCertificationLearnMoreDataProvider").toFluxSelector(),ja=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsRegulatedCategorySelectorLearnMoreContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return S().showLearnMoreDialog},function(){return c("vulture")("9E4XF4Pfeb6")}),stores:S.getStores()}),T=c("AdsSAFREducationModalProvider").toFluxSelector(),ka=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsRegulatedCategorySeeDetailModalPopupWindowContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return T().showEducationModal},function(){}),stores:T.getStores()}),U=c("AdsSAFRCategoryInfoModalProvider").toFluxSelector(),la=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsRegulatedCategoryCategoryInfoModalPopupWindowContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return U().showInfoModal},function(){}),stores:U.getStores()}),ma=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdProposalFlowContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("AdProposalFlowProvider")().flow!=null},function(){}),stores:[c("AdProposalFlowProvider").toFluxStore()]}),na=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsUEditorCampaignGroupBudgetBulkAdoptionWrapper.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("AdsCampaignGroupBudgetBulkAdoptionDialogProvider")().shown},function(){}),stores:[c("AdsCampaignGroupBudgetBulkAdoptionDialogProvider").toFluxStore()]}),oa=c("lazyLoadComponent")(c("JSResource")("AdsPEEmployeeSelectDraftContainer.react").__setRef("AdsManagerLazyLoadModals.react")),pa=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsCreatePageDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return n.getState().createPageDialogState.dialogShown},function(){}),stores:[n]}),V=c("AdsDuplicationUpgradeChangesSummaryModalProvider").toFluxStore(),qa=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsDuplicationUpgradeChangesSummaryModalContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return V.getState().shouldShow},function(){}),stores:[V]}),W=c("AdsProgressiveDisclosureNUXModalProvider").toFluxStore(),ra=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsProgressiveDisclosureNUXModalContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return W.getState().modalScenario!=null},stores:[W]}),X=c("AdsUnificationCampaignNUXModalProvider").toFluxStore(),sa=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsUnificationCampaignNUXModalContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return X.getState().modalScenario!=null},function(){}),stores:[X]}),Y=c("AAAMediaPickerVisibilityProvider").toFluxStore(),ta=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsSmartAppPromotionAssetLiquidityMediaPickerContextContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return Y.getState().shouldShow},function(){}),stores:[Y]}),ua=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsSBGMEEngagementDetailsContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return n.getState().sbgMEEngagementDetailsDialogState.dialogShown},function(){}),stores:[n]});e=c("AdsPETableViewSelectors").tableViewSpecSelector.getStores();var Z=c("AdsPENavigationProvider").toFluxStore(),va=d("AdsLazyContainer").create({loader:c("JSResource")("AdsNoConversionColumnToastContainer.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:a(function(){return Ba()},function(){}),stores:[].concat(e,[Z])}),$=c("PostPublishMobileUpsellProvider").toFluxStore(),wa=d("AdsLazyContainer").create({loader:c("JSResource")("PostPublishMobileUpsell.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:function(){return $.getState().modalEnabled},stores:[$]}),xa=d("AdsLazyContainer").create({loader:c("JSResource")("AdAccountDSAInfoChangeVerificationModalLauncher.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:a(function(){return c("AdAccountDSAInfoChangeVerificationModalProvider")().isVisible},function(){}),stores:[c("AdAccountDSAInfoChangeVerificationModalProvider").toFluxStore()]}),ya=d("AdsLazyContainer").create({loader:c("JSResource")("LWIGraduationSuccessfulCompletionModalWrapper.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:a(function(){var a=c("adsIsInCampaignGroupLevelSelector")(),b=c("AdsLWIGraduationSuccessfulCompletionDataProvider")().shouldShowSuccessfulCompletionDialog;return a&&b},function(){}),stores:[].concat(c("adsIsInCampaignGroupLevelSelector").getStores(),[c("AdsLWIGraduationSuccessfulCompletionDataProvider").toFluxStore()])}),za=d("AdsLazyContainer").create({loader:c("JSResource")("AdsAIActionabilityViewChangesModal.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:a(function(){var a=c("AdsAIActionabilityViewChangesModalDataProvider")().shouldShowViewChangesModal;a=a&&d("AdsAIUtils").getIsAdsAIBetaM2ActionabilityEnabledOnCurrentSurface();a&&d("AdsAILoggingUtils").logImpressionAdsAIViewChanges();return a},function(){}),stores:[c("AdsAIActionabilityViewChangesModalDataProvider").toFluxStore()]}),Aa=d("AdsLazyContainer").create({loader:c("JSResource")("AdsCertificationDialogNux.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:function(){return!c("AdsCertificationUserHasCertified").HAS_USER_CERTIFIED},stores:[]});function Ba(){var a=["AdPane","CampPane","CampaignGroupPane"].includes(Z.getState().currentPane),b=c("AdsPETableViewSelectors").tableViewSpecSelector(),e=b.attributionWindows,f=b.sourceOfTruthSources,g=b.viewHasAttributionSupportingColumn;b=b.viewHasSourceOfTruthSupportingColumn;e=a&&d("AdsReportBuilderCompareAttributionWindowUtils").hasNonDefaultAttributionWindows(e)&&!g;g=a&&!(h||(h=c("isEmpty")))(f)&&b!==!0&&d("AdsMgmt2024H1ExperimentUtils").getIsAccountInSourceOfTruthTestGroupWithoutExposure();return e||g}function b(){return j.jsxs(j.Fragment,{children:[j.jsx(ba,{}),j.jsx(r,{}),j.jsx(B,{}),j.jsx(ca,{}),j.jsx(H,{}),j.jsx(N,{}),j.jsx(c("AdsRuleDialogBootloadContainer.react"),{}),j.jsx(K,{}),j.jsx(c("AdsPEQuickCreateDialogContainer.react"),{}),j.jsx(F,{}),j.jsx(I,{}),j.jsx(ia,{}),j.jsx(p,{}),j.jsx(q,{}),j.jsx(c("AdsPEReachFrequencyStatusTransitionDialogBootloadContainer.react"),{}),j.jsx(w,{}),j.jsx(c("AdsSplitTestChangeBlockedDialogBootloadContainer.react"),{}),j.jsx(D,{}),j.jsx(fa,{}),j.jsx(c("AdsPEModalStatusContainer.react"),{}),j.jsx(aa,{}),j.jsx(C,{}),d("AdsLoginAs").isUsingLoginAs()?j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx("span",{}),name:f.id,children:j.jsx(oa,{})}):null,j.jsx(ja,{}),j.jsx(ka,{}),j.jsx(la,{}),j.jsx(E,{}),j.jsx(c("AdsOfflineEventSetOptimizationSurveyDialogContainerLazy.react"),{}),j.jsx(A,{}),j.jsx(L,{}),j.jsx(ga,{}),j.jsx(na,{}),j.jsx(ma,{}),j.jsx(x,{}),j.jsx(y,{}),j.jsx(t,{}),j.jsx(u,{}),j.jsx(v,{}),j.jsx(pa,{}),j.jsx(qa,{}),j.jsx(ra,{}),j.jsx(sa,{}),j.jsx(ta,{}),j.jsx(da,{}),j.jsx(ea,{}),j.jsx(c("AdsPEDigitalCircularAdAccountSelectionDialogContainer.react"),{}),j.jsx(ua,{}),j.jsx(ha,{}),j.jsx(va,{}),j.jsx(l,{}),j.jsx(k,{}),j.jsx(m,{}),j.jsx(wa,{}),j.jsx(c("ShopsAdsShopifyOptimizedOnboardingModalContainerLazy.react"),{}),j.jsx(xa,{}),j.jsx(ya,{}),j.jsx(c("AdsCatalogCreationShopifyOptimizedOnboardingModalContainerLazy.react"),{}),j.jsx(za,{}),j.jsx(Aa,{}),j.jsx(c("AdsRecoverPostProgressModalContainerLazy.react"),{})]})}b.displayName=b.name+" [from "+f.id+"]";g["default"]=b}),98);
-----
MessageMarketingBetaToSModalProvider",["Laminar","MessageMarketingBetaToSModalProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("MessageMarketingBetaToSModalProviderPlugin"),"MessageMarketingBetaToSModalProviderPlugin")}),null);
-----
MessageMarketingMBSInboxToSModalProvider",["Laminar","MessageMarketingMBSInboxToSModalProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("MessageMarketingMBSInboxToSModalProviderPlugin"),"MessageMarketingMBSInboxToSModalProviderPlugin")}),null);
-----
MessageMarketingBetaToSModalProviderPlugin",[],(function(a,b,c,d,e,f){"use strict";a={initialState:{isModalShown:!1}};b=a;f["default"]=b}),66);
-----
MessageMarketingMBSInboxToSModalProviderPlugin",[],(function(a,b,c,d,e,f){"use strict";a={initialState:{isModalShown:!1}};b=a;f["default"]=b}),66);
-----
SYDLazyDialogContainer.react",["AdsAddDiscountForCommerceProvider","AdsAddDiscountForCommerceRegistry","AdsAddDiscountForCommerceUtil","AdsAutoflowSYDEducationModalProvider","AdsLazyContainer","AdsPreCreateRecommendationResolutionFlowProvider","AdsSYDLazyDialogProvider","JSResource","MessageMarketingBetaToSModalProvider","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");b("AdsAddDiscountForCommerceRegistry");var j=c("AdsSYDLazyDialogProvider").toFluxStore(),k=c("AdsAddDiscountForCommerceProvider").toFluxStore(),l=c("AdsPreCreateRecommendationResolutionFlowProvider").toFluxStore(),m=d("AdsLazyContainer").create({loader:c("JSResource")("SYDAlertsResolutionFlowContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().sydAlertsResolutionFlowState.resolutionFlowType!==null},placeholderComponent:null}),n=d("AdsLazyContainer").create({loader:c("JSResource")("AdsAddDiscountForCommerceContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[k],shouldShow:function(){return k.getState().ctaActionState!==d("AdsAddDiscountForCommerceUtil").CTAActionState.BEFORE_CLICK},placeholderComponent:null}),o=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPersonalSettingsContactFormDialogSYDContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().adsPersonalSettingsContactFormDialogState.dialogShown}}),p=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("SYDMobileUpsellDialogContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().sydMobileUpsellDialogState.dialogShown}}),q=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("SYDAYMTProactiveChatOptInDialogContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().sydAymtProactiveChatOptInDialogState.dialogShown}}),r=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("SYDAYMTAdRewardsMPIneligibleOptInDialogContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().sydAymtAdRewardsMPIneligibleOptInState.dialogShown}}),s=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("SYDAYMTMMAwarenessSignUpDialogContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().sydAymtMMAwarenessSignUpDialogState.isDialogShown}}),t=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("MessageMarketingBetaToSDialogContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[c("MessageMarketingBetaToSModalProvider").toFluxStore()],shouldShow:function(){return c("MessageMarketingBetaToSModalProvider")().isModalShown}}),u=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("ShareCommerceManagerMarketingTagsSectionLinkDialogContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().shareCommerceManagerMarketingTagsSectionLinkDialogState.dialogShown}}),v=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("SYDAYMTCatalogQualitySignalsOptInDialogContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().sydAymtCatalogQualitySignalsOptInDialogState.dialogShown}}),w=c("AdsAutoflowSYDEducationModalProvider").toFluxStore(),x=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("SYDGuidanceHubAutoFlowEducationModalContainer.react").__setRef("SYDLazyDialogContainer.react"),shouldShow:function(){return w.getState().isAutoflowSYDEducationModalShown},stores:[w]}),y=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("SYDGuidanceHubDialogResolutionFlowContainer.react").__setRef("SYDLazyDialogContainer.react"),shouldShow:function(){var a=l.getState();return a.recommendationType!=null},stores:[l]});function a(){return i.jsxs(i.Fragment,{children:[i.jsx(m,{}),i.jsx(o,{}),i.jsx(p,{}),i.jsx(q,{}),i.jsx(s,{}),i.jsx(t,{}),i.jsx(u,{}),i.jsx(v,{}),i.jsx(n,{}),i.jsx(r,{}),i.jsx(x,{}),i.jsx(y,{})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MarketingMessagesLWITOSGeoModal.react",["BizInboxMarketingMessageEntrypointContext","GeoBaseModal.react","GeoBaseSpacingLayout.react","GeoBaseText.react","GeoButton.react","GeoFlexbox.react","GeoIcon.react","GeoIllustrationCard.react","GeoModalFooter.react","GeoNotice.react","GeoSection.react","GeoTextPairing.react","Image.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext;function a(a){a=a.TOSConfig;var b=a.content,e=a.displayError,f=a.isTosModalShown,g=a.onAcceptTos;a=a.onDismiss;var h=b.buttonLabel,k=b.description,l=b.disclaimer,m=b.error,n=b.title;b=b.upsellItems;var o=j(d("BizInboxMarketingMessageEntrypointContext").BizInboxMarketingMessageEntrypointStateContext);o=o.isSideSheetShown;e=i.jsx(i.Fragment,{children:e&&i.jsx(c("GeoNotice.react"),{status:"warning",children:m})});return i.jsx(c("GeoBaseModal.react"),{isShown:f||o,onHide:a,width:440,children:i.jsx(c("GeoIllustrationCard.react"),{"data-testid":void 0,footer:i.jsx(c("GeoModalFooter.react"),{primaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,label:h,onClick:g,variant:"primary"})}),heading:"Heading",image:i.jsx(c("Image.react"),{src:"/images/tofu/nux/mbs-education-hub-create-ads-b4b_4x.png",width:"100%"}),isDismissable:!0,children:i.jsxs(c("GeoSection.react"),{children:[i.jsx(c("GeoTextPairing.react"),{description:k,heading:n,size:"header3"}),b.map(function(a,b){return i.jsx(c("GeoFlexbox.react"),{style:{marginTop:10},children:i.jsxs(c("GeoBaseSpacingLayout.react"),{children:[i.jsx(c("GeoIcon.react"),{icon:a.icon}),i.jsx(c("GeoTextPairing.react"),{description:a.description,heading:a.title,size:"header4"})]})},b)}),i.jsx(c("GeoFlexbox.react"),{style:{marginTop:26},children:i.jsx(c("GeoBaseText.react"),{color:"value",size:"valueDescription",children:l})}),e]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CometMarketingMessageLwiComposerContext",["LiveProducerMMLWIConsts","MMLWIFbtUtils","emptyFunction","isEmpty","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i;a=(i||d("react")).createContext;b={businessInfo:{adAccounts:[{currency:"",id:"",legacyAccountID:"",name:"",paymentMethod:{description:null,label:null}}],businessID:"",hasSignedMmTos:!1},campaignInfo:{bidAmount:null,duration:null,endDate:null,lifetimeBudget:null,startDateTime:null},composerSurface:"BIZ_INBOX",creativeInfo:{buttons:[{buttonText:null,buttonURL:null}],campaignBody:null,campaignHeadline:null,media:{imageHash:null,imageUrl:null,mediaType:null,playableUrl:null,videoID:null}},defaultPaymentMethod:{description:null,label:null},isCampaignReadyForPublish:!1,isMbsConfirmationModalShown:!1,isTosModalShown:!0,liveSellingCurrentStep:d("LiveProducerMMLWIConsts").LiveProducerMMLWICurrentStep.CREATION,liveSellingInfo:{isLiveSellingOptinOn:!0,videoID:""},pageInfo:{pageID:"",pageName:"",pageProfilePicURI:"",subscriberCount:null},publishButtonDisabledMessage:d("MMLWIFbtUtils").getMMLWIInvalidCampaignErrorMessage(),selectedAdAccountCurrency:"USD",selectedAdAccountID:null,selectedLegacyAdAccountID:null};e=function(a,b){var c;switch(b.type){case"SET_IS_TOS_MODAL_SHOWN":return babelHelpers["extends"]({},a,{isTosModalShown:b.isTosModalShown});case"SET_IS_MBS_CONFIRMATION_MODAL_SHOWN":return babelHelpers["extends"]({},a,{isMbsConfirmationModalShown:b.isMbsConfirmationModalShown});case"SET_SELECTED_LEGACY_AD_ACCOUNT_ID":return babelHelpers["extends"]({},a,{defaultPaymentMethod:l(b.selectedLegacyAdAccountID,(c=a.businessInfo)==null?void 0:c.adAccounts),selectedAdAccountCurrency:j(b.selectedLegacyAdAccountID,(c=a.businessInfo)==null?void 0:c.adAccounts),selectedAdAccountID:k(b.selectedLegacyAdAccountID,(c=a.businessInfo)==null?void 0:c.adAccounts),selectedLegacyAdAccountID:b.selectedLegacyAdAccountID});case"SET_CAMPAIGN_BODY_TEXT":c=babelHelpers["extends"]({},a,{creativeInfo:babelHelpers["extends"]({},a.creativeInfo,{campaignBody:b.campaignBody})});var d=m(c),e=d.disabledMessage;d=d.isValid;return babelHelpers["extends"]({},c,{isCampaignReadyForPublish:d,publishButtonDisabledMessage:e});case"SET_CAMPAIGN_BUTTON_TEXT":d=babelHelpers["extends"]({},a,{creativeInfo:babelHelpers["extends"]({},a.creativeInfo,{buttons:[babelHelpers["extends"]({},(c=a.creativeInfo)==null?void 0:c.buttons[0],{buttonText:b.campaignButtonText})]})});e=m(d);c=e.disabledMessage;e=e.isValid;return babelHelpers["extends"]({},d,{isCampaignReadyForPublish:e,publishButtonDisabledMessage:c});case"SET_CAMPAIGN_BUTTON_URL":e=babelHelpers["extends"]({},a,{creativeInfo:babelHelpers["extends"]({},a.creativeInfo,{buttons:[babelHelpers["extends"]({},(d=a.creativeInfo)==null?void 0:d.buttons[0],{buttonURL:b.campaignButtonUrl})]})});c=m(e);d=c.disabledMessage;c=c.isValid;return babelHelpers["extends"]({},e,{isCampaignReadyForPublish:c,publishButtonDisabledMessage:d});case"SET_LIVE_SELLING_CURRENT_STEP":return babelHelpers["extends"]({},a,{liveSellingCurrentStep:b.liveSellingCurrentStep});case"SET_HAS_SIGNED_MM_TOS":return babelHelpers["extends"]({},a,{businessInfo:babelHelpers["extends"]({},a.businessInfo,{hasSignedMmTos:b.hasSignedMmTos}),isTosModalShown:!b.hasSignedMmTos});case"SET_LIFETIME_BUDGET":e=babelHelpers["extends"]({},a,{campaignInfo:babelHelpers["extends"]({},a.campaignInfo,{lifetimeBudget:b.lifetimeBudget})});c=m(e);d=c.disabledMessage;c=c.isValid;return babelHelpers["extends"]({},e,{isCampaignReadyForPublish:c,publishButtonDisabledMessage:d});case"SET_BID_AMOUNT":e=babelHelpers["extends"]({},a,{campaignInfo:babelHelpers["extends"]({},a.campaignInfo,{bidAmount:b.bidAmount})});c=m(e);d=c.disabledMessage;c=c.isValid;return babelHelpers["extends"]({},e,{isCampaignReadyForPublish:c,publishButtonDisabledMessage:d});case"SET_START_DATE_TIME":d=(c=(e=b.startDateTime)==null?void 0:e.getUnixTimestamp())!=null?c:0;e=(c=(e=a.campaignInfo.endDate)==null?void 0:e.getTime())!=null?c:0;c=e-d;e=0;c>0&&(e=Math.round(c/864e5));d=babelHelpers["extends"]({},a,{campaignInfo:babelHelpers["extends"]({},a.campaignInfo,{duration:e,startDateTime:b.startDateTime})});c=m(d);e=c.disabledMessage;c=c.isValid;return babelHelpers["extends"]({},d,{isCampaignReadyForPublish:c,publishButtonDisabledMessage:e});case"SET_END_DATE":e=(c=(d=a.campaignInfo.startDateTime)==null?void 0:d.getUnixTimestamp())!=null?c:0;d=(c=(d=b.endDate)==null?void 0:d.getTime())!=null?c:0;c=d-e;d=0;c>0&&(d=Math.round(c/864e5));e=babelHelpers["extends"]({},a,{campaignInfo:babelHelpers["extends"]({},a.campaignInfo,{duration:d,endDate:b.endDate})});c=m(e);d=c.disabledMessage;c=c.isValid;return babelHelpers["extends"]({},e,{isCampaignReadyForPublish:c,publishButtonDisabledMessage:d});case"SET_LIVE_SELLING_OPTIN":return babelHelpers["extends"]({},a,{liveSellingInfo:babelHelpers["extends"]({},a.liveSellingInfo,{isLiveSellingOptinOn:b.isLiveSellingOptinOn})});case"SET_LIVE_SELLING_VIDEO_ID":return babelHelpers["extends"]({},a,{liveSellingInfo:babelHelpers["extends"]({},a.liveSellingInfo,{videoID:b.videoID})});case"SET_SELECTED_MEDIA":e="";var f,g,h,i;c=b.selectedMedia;if(c!==null)for(d in c)e=String(c[d].imageUrl),f=c[d].mediaType,f==="image"?(g=c[d].imageHash,e=String(c[d].imageUrl)):f==="video"&&(e=String(c[d].imageUrl),h=String(c[d].playableUrl),i=String(c[d].videoID));return babelHelpers["extends"]({},a,{creativeInfo:babelHelpers["extends"]({},a.creativeInfo,{media:{imageHash:g,imageUrl:e,mediaType:f,playableUrl:h,videoID:i}})});case"SET_DURATION":e=(c=(d=a.campaignInfo.startDateTime)==null?void 0:d.getUnixTimestamp())!=null?c:0;c=(d=b.duration)!=null?d:0;d=null;if(c>0&&e>0){e=e+c*864e5;d=new Date(e)}c=babelHelpers["extends"]({},a,{campaignInfo:babelHelpers["extends"]({},a.campaignInfo,{duration:b.duration,endDate:d})});e=m(c);a=e.disabledMessage;b=e.isValid;return babelHelpers["extends"]({},c,{isCampaignReadyForPublish:b,publishButtonDisabledMessage:a})}};function j(a,b){b=b.find(function(b){b=b.legacyAccountID;return b===a});return b?b.currency:null}function k(a,b){b=b.find(function(b){b=b.legacyAccountID;return b===a});return b?b.id:null}function l(a,b){var c;b=b.find(function(b){b=b.legacyAccountID;return b===a});return{description:(c=b==null?void 0:(c=b.paymentMethod)==null?void 0:c.description)!=null?c:null,label:(b=b==null?void 0:(c=b.paymentMethod)==null?void 0:c.label)!=null?b:null}}function m(a){var b=a.campaignInfo,e=a.creativeInfo,f=a.defaultPaymentMethod;a=a.selectedLegacyAdAccountID;var g=b.bidAmount,i=b.duration,j=b.lifetimeBudget;b=b.startDateTime;b=b!=null&&b.getUnixTimestamp()>Date.now();i=i!=null&&i>0;j=j!=null&&j>0;g=g!=null&&g>0;b=b&&i&&j&&g;i=e.buttons;j=e.campaignBody;g=i!=null&&i.length>0&&!(h||(h=c("isEmpty")))((g=i[0].buttonText)==null?void 0:g.trim())&&!(h||(h=c("isEmpty")))((e=i[0].buttonURL)==null?void 0:e.trim());i=!(h||(h=c("isEmpty")))(j==null?void 0:j.trim());e=i&&g;j=a!=null;i=f.label;g=i!=null;a=b&&e&&j&&g;f=null;a||(f=d("MMLWIFbtUtils").getMMLWIInvalidCampaignErrorMessage());return{disabledMessage:f,isValid:a}}f=a(b);a=a(c("emptyFunction"));g.CometMarketingMessageLwiComposerInitialState=b;g.CometMarketingMessageLwiComposerReducer=e;g.CometMarketingMessageLwiComposerStateContext=f;g.CometMarketingMessageLwiComposerDispatchContext=a}),98);
-----
MarketingMessagesLWITOSLiveSelling.react",["ix","CometContextualMessage.react","CometRow.react","CometRowItem.react","FDSDialog.react","FDSDialogBackgroundImageHeader.react","FDSDialogFooter.react","FDSIcon.react","ImageIconSource","LWIOmniTextPairing.react","react","useMMLWILiveSellingLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useEffect;function a(a){a=a.TOSConfig;var b=h("1334173"),d=a.content,e=a.displayError,f=a.isTosModalShown,g=a.onAcceptTos;a=a.onDismiss;var i=d.buttonLabel,l=d.disclaimer,m=d.error,n=d.title;d=d.upsellItems;var o=c("useMMLWILiveSellingLogger")(),p=o.logCampaignCreationClick;k(function(){p()});o=j.jsx(j.Fragment,{children:e&&j.jsx(c("CometContextualMessage.react"),{body:m,headline:"TOS signature failed",icon:j.jsx(c("FDSIcon.react"),{icon:new(c("ImageIconSource"))(b,24,24)})})});return j.jsx(j.Fragment,{children:f&&j.jsx(c("FDSDialog.react"),{disablePageScroll:!0,footer:j.jsx(c("FDSDialogFooter.react"),{primary:{label:i,onPress:g}}),header:j.jsx(c("FDSDialogBackgroundImageHeader.react"),{backgroundImageProps:{src:"/images/live_producer/live_shopping/seller_guidance_dialog.png"},onClose:a,withBackButton:!1}),size:"small",children:j.jsxs("div",{children:[j.jsx(c("CometRow.react"),{align:"start",verticalAlign:"center",children:j.jsx(c("CometRowItem.react"),{children:j.jsx(c("LWIOmniTextPairing.react"),{headline:n,level:4})})}),d.map(function(a,b){return j.jsxs(c("CometRow.react"),{align:"start",verticalAlign:"center",children:[j.jsx(c("CometRowItem.react"),{children:j.jsx(c("FDSIcon.react"),{icon:a.icon})}),j.jsx(c("CometRowItem.react"),{children:j.jsx(c("LWIOmniTextPairing.react"),{body:a.description,headline:a.title,level:4})})]},b)}),j.jsx(c("CometRow.react"),{align:"start",verticalAlign:"center",children:j.jsx(c("CometRowItem.react"),{children:j.jsx(c("LWIOmniTextPairing.react"),{body:l,level:4})})}),o]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MarketingMessagesLWITOSModalWrapper.react",["CometMarketingMessageLwiComposerContext","MMLWITOSOmniContent","MarketingMessagesLWITOSGeoModal.react","MarketingMessagesLWITOSLiveSelling.react","MarketingMessagesLWITOSModalWrapperMutation.graphql","RelayHooks","nullthrows","react","uniqueID","useCometMarketingMessageLwiComposerContextActions","useMMLWILogger","useVisibilityObserver"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useState,n=h!==void 0?h:h=b("MarketingMessagesLWITOSModalWrapperMutation.graphql");function a(a){var b=a.children,e=a.dismissDialog;a=l(d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerStateContext);var f=a.businessInfo,g=a.composerSurface,h=a.isTosModalShown,i=a.selectedLegacyAdAccountID;a=c("useCometMarketingMessageLwiComposerContextActions")();var o=a.setHasSignedMmTos,p=a.setIsTosModalShown;a=d("RelayHooks").useMutation(n);var q=a[0],r=c("useMMLWILogger")(),s=f.businessID;a=f.hasSignedMmTos;f=m(!1);var t=f[0],u=f[1];f=m(!1);var v=f[0],w=f[1];f=c("useVisibilityObserver")({onVisible:k(function(){v||(w(!0),r.logOnboardingImpression())},[v,r])});if(a)return b;var x=g==="LIVE_SELLING"?"FB_LIVE_SELLING":"MBS_BIZ_INBOX";a={content:d("MMLWITOSOmniContent").getTOSDialogContent(g),displayError:t,isTosModalShown:h,onAcceptTos:function(){r.logOnboardingClick("get_started"),q({onCompleted:function(a){var b;if(((b=a.xfb_mig_marketing_messages_in_am_tos)==null?void 0:b.success)===!0)o(!0),r.logOnboardingSuccess();else{u(!0);b=(a=(b=a.xfb_mig_marketing_messages_in_am_tos)==null?void 0:b.error_msg)!=null?a:"";r.logOnboardingFailure(b)}},onError:function(a){u(!0),r.logOnboardingFailure(a.message)},variables:{input:{ad_account_id:c("nullthrows")(i),business_id:c("nullthrows")(s),client_mutation_id:c("uniqueID")(),log_session_id:c("uniqueID")(),mig_product_tos_cms_list:["MARKETING_MESSAGING_TERMS"],surface:x}}})},onDismiss:function(){p(!1),e&&e()}};return j.jsx("div",{ref:f,children:g==="BIZ_INBOX"?j.jsxs(j.Fragment,{children:[b,j.jsx(c("MarketingMessagesLWITOSGeoModal.react"),{TOSConfig:a})]}):g==="LIVE_SELLING"?j.jsx(c("MarketingMessagesLWITOSLiveSelling.react"),{TOSConfig:a}):b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useCometMarketingMessageLwiComposerContext",["CometMarketingMessageLwiComposerContext","LiveProducerMMLWIConsts","MMLWIFbtUtils","MMLWIHelperUtils","RelayHooks","react","useCometMarketingMessageLwiComposerContext_businessInfo.graphql","useCometMarketingMessageLwiComposerContext_page.graphql","useCometMarketingMessageLwiComposerContext_subscriberInsights.graphql","useCometMarketingMessageLwiComposerContext_video.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=(l||d("react")).useReducer,n=h!==void 0?h:h=b("useCometMarketingMessageLwiComposerContext_page.graphql"),o=i!==void 0?i:i=b("useCometMarketingMessageLwiComposerContext_subscriberInsights.graphql"),p=j!==void 0?j:j=b("useCometMarketingMessageLwiComposerContext_businessInfo.graphql"),q=k!==void 0?k:k=b("useCometMarketingMessageLwiComposerContext_video.graphql");function r(a,b){var c;return{pageID:(c=a==null?void 0:a.id)!=null?c:"",pageName:(c=a==null?void 0:a.name)!=null?c:"",pageProfilePicURI:(a=a==null?void 0:(c=a.profile_picture)==null?void 0:c.uri)!=null?a:"",subscriberCount:(b=b==null?void 0:(c=b.xfb_marketing_message_business_insights)==null?void 0:(a=c.net_opt_in)==null?void 0:a.messenger)!=null?b:0}}function s(a){var b;a=a==null?void 0:a.xfb_marketing_message_lwi_business_info;b=(b=a==null?void 0:(b=a.business)==null?void 0:(b=b.business_ad_accounts)==null?void 0:b.edges)!=null?b:[];b=b.filter(function(a){a=a.node;return(a==null?void 0:(a=a.viewer_permissions)==null?void 0:a.write)===!0}).map(function(a){var b;a=a.node;return{currency:(b=a==null?void 0:a.currency)!=null?b:"",id:(b=a==null?void 0:a.id)!=null?b:"",legacyAccountID:(b=a==null?void 0:a.legacy_account_id)!=null?b:"",name:(b=a==null?void 0:a.name)!=null?b:"",paymentMethod:{description:a==null?void 0:(b=a.billing_info)==null?void 0:(b=b.payment_section_details)==null?void 0:b.description,label:a==null?void 0:(b=a.billing_info)==null?void 0:(a=b.payment_section_details)==null?void 0:a.label}}});return{adAccounts:b,businessID:(b=a==null?void 0:(b=a.business)==null?void 0:b.id)!=null?b:"",hasSignedMmTos:(b=a==null?void 0:a.has_signed_tos)!=null?b:!1}}function a(a,b,c,e,f){var g,h;b=(h=d("RelayHooks")).useFragment(n,b);c=h.useFragment(o,c);e=h.useFragment(p,e);h=h.useFragment(q,f);f=r(b,c);c=s(e);e=!c.hasSignedMmTos;g=(g=h==null?void 0:(g=h.owner)==null?void 0:(g=g.live_producer_notify_subscribers_mm_entrypoint_toggle_state)==null?void 0:g.toggle_state)!=null?g:!1;var i=null,j=null,k=null,l=null,t=d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.campaignInfo.startDateTime,u=d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.campaignInfo.duration;switch(a){case"LIVE_SELLING":i=d("MMLWIFbtUtils").getMMLWILiveSellingCreativeSectionDefaultMessage(f.pageName).toString();j=d("MMLWIFbtUtils").getMMLWILiveSellingCreativeSectionDefaulButtonLabel().toString();k=d("LiveProducerMMLWIConsts").getMMLWILiveSellingCreativeSectionDefaulButtonURL((h=h==null?void 0:h.id)!=null?h:"");t=d("LiveProducerMMLWIConsts").getMMLWILiveSellingDefaultStartDateTime();u=d("LiveProducerMMLWIConsts").LiveSellingDefaultDuration;break;case"BIZ_INBOX":i=d("MMLWIFbtUtils").MM_LWI_MBS_INBOX_DEFAUTL_MESSAGE_BODY.toString();j=d("MMLWIFbtUtils").MM_LWI_MBS_INBOX_DEFAUTL_BUTTON_LABEL.toString();k=(h=(h=b==null?void 0:b.websites[0])!=null?h:b==null?void 0:b.url)!=null?h:"";t=d("MMLWIHelperUtils").getInboxDefaultStartDateTime();l=d("MMLWIHelperUtils").getInboxDefaultEndDate();u=d("MMLWIHelperUtils").DEFAULT_DURATION_IN_DAYS;break;default:}b=c.adAccounts;h=d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.selectedLegacyAdAccountID;var v=d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.defaultPaymentMethod,w=d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.selectedAdAccountID;b.length>0&&(h=b[0].legacyAccountID,v=b[0].paymentMethod,w=b[0].id);return m(d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerReducer,babelHelpers["extends"]({},d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState,{businessInfo:c,campaignInfo:babelHelpers["extends"]({},d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.campaignInfo,{duration:u,endDate:l,startDateTime:t}),composerSurface:a,creativeInfo:babelHelpers["extends"]({},d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.creativeInfo,{buttons:[{buttonText:j,buttonURL:k}],campaignBody:i}),defaultPaymentMethod:v,isTosModalShown:e,liveSellingInfo:babelHelpers["extends"]({},d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.liveSellingInfo,{isLiveSellingOptinOn:g}),pageInfo:f,selectedAdAccountID:w,selectedLegacyAdAccountID:h}))}g["default"]=a}),98);
-----
CometMarketingMessageLwiComposerContainer.react",["CometMarketingMessageLwiComposerContainer_fullPage.graphql","CometMarketingMessageLwiComposerContext","CometMarketingMessageLwiComposerWrapper.react","CometPlaceholder.react","CometRelay","CometTransientDialogProvider.react","LWICometUIStatusContextProvider.react","MarketingMessagesLWITOSModalWrapper.react","react","useCometMarketingMessageLwiComposerContext"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("CometMarketingMessageLwiComposerContainer_fullPage.graphql");function a(a){var b=a.composerSurface,e=a.dismissDialog,f=a.fullPage;a=a.videoID;f=d("CometRelay").useFragment(k,f);var g=f,h=f,i=f.video;b=c("useCometMarketingMessageLwiComposerContext")(b,f.page,g,h,i);f=b[0];g=b[1];return j.jsx(c("LWICometUIStatusContextProvider.react"),{boostID:null,hasNeverVisitedBizweb:!1,shouldShowBEFUpsell:!1,children:j.jsx(c("CometTransientDialogProvider.react"),{children:j.jsx(c("CometPlaceholder.react"),{fallback:null,children:j.jsx(d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerStateContext.Provider,{value:f,children:j.jsx(d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerDispatchContext.Provider,{value:g,children:j.jsx(c("MarketingMessagesLWITOSModalWrapper.react"),{dismissDialog:e,children:j.jsx(c("CometMarketingMessageLwiComposerWrapper.react"),{dismissDialog:e,videoID:a})})})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useCometMarketingMessageLwiComposerContextActions",["CometMarketingMessageLwiComposerContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useContext;function a(){var a=i(d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerDispatchContext);function b(b){a({isTosModalShown:b,type:"SET_IS_TOS_MODAL_SHOWN"})}function c(b){a({isMbsConfirmationModalShown:b,type:"SET_IS_MBS_CONFIRMATION_MODAL_SHOWN"})}function e(b){a({selectedLegacyAdAccountID:b,type:"SET_SELECTED_LEGACY_AD_ACCOUNT_ID"})}function f(b){a({campaignBody:b,type:"SET_CAMPAIGN_BODY_TEXT"})}function g(b){a({campaignButtonText:b,type:"SET_CAMPAIGN_BUTTON_TEXT"})}function h(b){a({campaignButtonUrl:b,type:"SET_CAMPAIGN_BUTTON_URL"})}function j(b){a({lifetimeBudget:b,type:"SET_LIFETIME_BUDGET"})}function k(b){a({bidAmount:b,type:"SET_BID_AMOUNT"})}function l(b){a({hasSignedMmTos:b,type:"SET_HAS_SIGNED_MM_TOS"})}function m(b){a({startDateTime:b,type:"SET_START_DATE_TIME"})}function n(b){a({endDate:b,type:"SET_END_DATE"})}function o(b){a({duration:b,type:"SET_DURATION"})}function p(b){a({isLiveSellingOptinOn:b,type:"SET_LIVE_SELLING_OPTIN"})}function q(b){a({type:"SET_LIVE_SELLING_VIDEO_ID",videoID:b})}function r(b){a({selectedMedia:b,type:"SET_SELECTED_MEDIA"})}function s(b){a({liveSellingCurrentStep:b,type:"SET_LIVE_SELLING_CURRENT_STEP"})}return{setBidAmount:k,setCampaignBodyText:f,setCampaignButtonText:g,setCampaignButtonUrl:h,setDuration:o,setEndDate:n,setHasSignedMmTos:l,setIsMbsConfirmationModalShown:c,setIsTosModalShown:b,setLifetimeBudget:j,setLiveSellingCurrentStep:s,setMMLWILiveSellingOptin:p,setMMLWILiveSellingVideoID:q,setSelectedLegacyAdAccountID:e,setSelectedMedia:r,setStartDateTime:m}}g["default"]=a}),98);
-----
MarketingMessagesLWITOSModalWrapperMutation.graphql",["MarketingMessagesLWITOSModalWrapperMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"request",variableName:"input"}],concreteType:"XFBMIGMarketingMessagesInAdsManagerTOSMutationResponse",kind:"LinkedField",name:"xfb_mig_marketing_messages_in_am_tos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"error_msg",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MarketingMessagesLWITOSModalWrapperMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MarketingMessagesLWITOSModalWrapperMutation",selections:c},params:{id:b("MarketingMessagesLWITOSModalWrapperMutation_facebookRelayOperation"),metadata:{},name:"MarketingMessagesLWITOSModalWrapperMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MarketingMessagesLWITOSModalWrapperMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7760347670693160"}),null);
-----
CommerceManagerApp.react",["AdsDataPluginsDebuggerWrapper.react","AutoLoggingConditionalWrapper","CUIErrorCard.react","CatalogBusinessEventsLoggerHelper","CommerceManagerAppLoadingState.react","CommerceManagerRelayEnvironment","CommerceManagerRouterRootV2.react","CommerceManagerSFLUtils","CommerceManagerSuspense.react","CommerceSession","GeoAppShell.react","RelayHooks","SellerFunnelAutoLoggingUtils","SellerInsightsV2LoggingUtils","Timezone","TimezoneNamesData","WebSession","cr:3996","cr:4015","gkx","performance","react","useCommerceManagerTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useEffect,l=e.useRef;d("AutoLoggingConditionalWrapper").init({name:"commerce_manager"});d("Timezone").registerNamesModule(c("TimezoneNamesData"));function a(a){var e=a.catalogID,f=a.catalogOrCmsID,g=a.cmsID,h=a.commerceSessionID,i=a.isEligibleForBizKitCommerceIntegration,k=a.loadFedInformWizard,l=a.loadFedInformWizardIndividualFlow,n=a.loadIDVFlow,o=a.loadOBBOFlow,p=a.showOnLoadModal,q=a.showShopCompleteDialog,r=a.showTOSModal;a=a.toastMessage;c("useCommerceManagerTheme")();m();d("CommerceSession").setCurrentSession((h=h)!=null?h:d("WebSession").getId());d("SellerFunnelAutoLoggingUtils").initializeClickAutoLogging({catalogID:e,cmsID:g});h=c("gkx")("3986")&&b("cr:4015")!==null?b("cr:4015").CommerceManagerRelayEnvironmentForPreloaderTestsFactory():d("CommerceManagerRelayEnvironment").CommerceManagerRelayEnvironmentFactory();d("CommerceManagerSFLUtils").initRelayRuntimeState({catalogID:e,cmsID:g});return j.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:h,children:j.jsx(c("GeoAppShell.react"),{isNextThemeEnabled:c("gkx")("774"),children:j.jsxs(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),flowName:"LOAD_MAIN_APP",loadingComponent:j.jsx(c("CommerceManagerAppLoadingState.react"),{}),oncall:"merchant_platform_and_interfaces",children:[b("cr:3996")!=null?j.jsx(b("cr:3996"),{}):null,j.jsx(c("AdsDataPluginsDebuggerWrapper.react"),{children:j.jsx(c("CommerceManagerRouterRootV2.react"),{catalogID:e,catalogOrCmsID:f,cmsID:g,isEligibleForBizKitCommerceIntegration:i,loadFedInformWizard:k,loadFedInformWizardIndividualFlow:l,loadIDVFlow:n,loadOBBOFlow:o,showOnLoadModal:p,showShopCompleteDialog:q,showTOSModal:r,toastMessage:a})})]})})})}a.displayName=a.name+" [from "+f.id+"]";function m(){var a=l(!1);k(function(){typeof (h||(h=c("performance"))).now==="function"&&!a.current&&(c("CatalogBusinessEventsLoggerHelper").getPerformanceLogger().setEvent("unified_commerce_manager_app_first_render").setActionData({source:"air"}).setTimeTakenInMs(Math.round((h||(h=c("performance"))).now())).log(),a.current=!0),d("SellerInsightsV2LoggingUtils").commerceInsightsPageLoadingV2Scenario()},[])}g["default"]=a}),98);
-----
CommerceManagerRouterRootV2.react",["CommerceManagerAppLoadingState.react","CommerceManagerHooks","CommerceManagerRootMatchRouteContainer.react","CommerceManagerRouteConfigUtils","CommerceManagerRouteConfigurations","CommerceManagerRouterRootV2Query.graphql","CommerceManagerSuspense.react","react","useCallOnceImmediately"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function k(a){var e=a.catalogID,f=a.catalogOrCmsID,g=a.cmsID,i=a.isEligibleForBizKitCommerceIntegration,k=a.loadFedInformWizard,l=a.loadFedInformWizardIndividualFlow,m=a.loadIDVFlow,n=a.loadOBBOFlow,o=a.showOnLoadModal,p=a.showShopCompleteDialog,q=a.showTOSModal;a=a.toastMessage;var r=d("CommerceManagerHooks").useCommerceManagerLazyQuery(h!==void 0?h:h=b("CommerceManagerRouterRootV2Query.graphql"),{catalogOrCmsID:f});f={catalogOrCmsID:f,contextConfiguration:r.configuration,isEligibleForBizKitCommerceIntegration:i,loadFedInformWizard:k,loadFedInformWizardIndividualFlow:l,loadIDVFlow:m,loadOBBOFlow:n,showOnLoadModal:o,showShopCompleteDialog:p,showTOSModal:q,toastMessage:a};c("useCallOnceImmediately")(function(){var a=d("CommerceManagerRouteConfigUtils").getRouteConfigs(g,e);d("CommerceManagerRouteConfigurations").initRouteConfigs(a)});return j.jsx(c("CommerceManagerRootMatchRouteContainer.react"),babelHelpers["extends"]({},f,{placeholder:c("CommerceManagerAppLoadingState.react")}))}k.displayName=k.name+" [from "+f.id+"]";function a(a){return j.jsx(c("CommerceManagerSuspense.react"),{loadingComponent:j.jsx(c("CommerceManagerAppLoadingState.react"),{}),oncall:"cxp_interfaces",children:j.jsx(k,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerRootView.react",["AtomicToastManager.react","CGPGuidanceModal.react","CUIErrorCard.react","CommerceManagerContextProviders.react","CommerceManagerHeroInteractionRouterRoot","CommerceManagerLayoutV2.react","CommerceManagerLoadingOverlay.react","CommerceManagerMatchRouteContainerPlaceholder.react","CommerceManagerRootModalsV2.react","CommerceManagerRootViewMatchRouteContainer.react","CommerceManagerRootView_contextConfiguration.graphql","CommerceManagerSuspense.react","CommerceManagerTabRoutingUtils","CommerceManagerUtils","GeoBaseSpacingLayout.react","GeoToasterProvider.react","HeroInteractionIgnoreWithDiv.react","RelayHooks","SUIBusinessThemeContainer.react","react","useAdsInterfacesRouterLeafRoute","withSellerFunnelLogging"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("CommerceManagerRootView_contextConfiguration.graphql");function a(a){var b=a.catalogOrCmsID,e=a.contextConfiguration,f=a.isEligibleForBizKitCommerceIntegration,g=a.loadFedInformWizard,h=a.loadFedInformWizardIndividualFlow,i=a.loadIDVFlow,l=a.loadOBBOFlow,m=a.showOnLoadModal,n=a.showShopCompleteDialog,o=a.showTOSModal;a=a.toastMessage;e=d("RelayHooks").useFragment(k,e);var p=c("useAdsInterfacesRouterLeafRoute")(),q=d("CommerceManagerTabRoutingUtils").deriveActiveTabFromRouteName(p.name),r=d("CommerceManagerTabRoutingUtils").deriveSubtabFromRouteName(p.name),s=d("CommerceManagerUtils").isShopBuilderTab(q,r);f=j.jsx(c("AtomicToastManager.react"),{children:j.jsx(c("GeoToasterProvider.react"),{children:j.jsx(c("CommerceManagerContextProviders.react"),{activeTab:q,catalogOrCmsID:b,commerceManagerRoutingImpl:"AdsInterfacesRouter",configuration:e,isBizSuiteUser:f,loadFedInformWizard:g,loadFedInformWizardIndividualFlow:h,loadIDVFlow:i,loadOBBOFlow:l,routeGivenName:p.givenName,showOnLoadModal:m,showShopCompleteDialog:n,showTOSModal:o,toastMessage:a,children:j.jsxs(d("withSellerFunnelLogging").SellerFunnelLoggingAppRoot,{surface:"commerce_manager",children:[s?j.jsx(c("SUIBusinessThemeContainer.react"),{children:j.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:j.jsx(c("GeoBaseSpacingLayout.react"),{direction:"vertical",children:j.jsx(c("CommerceManagerLoadingOverlay.react"),{})}),oncall:"merchant_platform_and_interfaces",children:j.jsx(c("CommerceManagerRootViewMatchRouteContainer.react"),{placeholder:c("CommerceManagerMatchRouteContainerPlaceholder.react")})})}):j.jsx(c("CommerceManagerLayoutV2.react"),{catalogOrCmsID:b,subtab:(e=r)!=null?e:void 0,tab:q,children:j.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:j.jsx(c("GeoBaseSpacingLayout.react"),{direction:"vertical",children:j.jsx(c("CommerceManagerLoadingOverlay.react"),{})}),oncall:"merchant_platform_and_interfaces",children:j.jsx(c("CommerceManagerRootViewMatchRouteContainer.react"),{placeholder:c("CommerceManagerMatchRouteContainerPlaceholder.react")})})}),j.jsxs(c("HeroInteractionIgnoreWithDiv.react"),{children:[j.jsx(c("CommerceManagerRootModalsV2.react"),{catalogOrCmsID:b,country:"US",showShopCompleteDialog:n}),j.jsx(d("CGPGuidanceModal.react").CGPGuidanceModal,{})]})]})})})});return j.jsx(c("CommerceManagerHeroInteractionRouterRoot").Component,{defaultTracePolicy:"commerce_manager.unknown",children:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerContextUtils",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a.loadDeferredPayoutOnboardingFlow===!0||a.loadFedInformWizard===!0||a.loadFedInformWizardIndividualFlow===!0||a.loadIDVFlow===!0||a.loadOBBOFlow===!0||a.loadKYCFlow===!0||a.shouldShowCompletePayoutsModal===!0||a.shouldShowLinkedAssetOptOutModal===!0||a.shouldShowMergeShopsOptOutModal===!0||a.shouldShowOneCatalogMigrationModal===!0||a.showTOSModal===!0||a.showOnLoadModal!=null}f.isForceLoadingModal=a}),66);
-----
CommerceManagerContextProviders.react",["CommerceManagerAppContextProvider.react","CommerceManagerCatalogContextProvider.react","CommerceManagerCatalogItemsPageFetchKeyContext.react","CommerceManagerCatalogSetsPageFetchKeyContext.react","CommerceManagerCommerceContextProviders.react","CommerceManagerContextProviders_configuration.graphql","CommerceManagerLoggingHooks","CommerceManagerRoutingContext","CommerceManagerTabContext","CommerceManagerUsageContext","RelayHooks","UnifiedCommerceManagerUsage","err","getJSEnumSafe","hero-tracing-placeholder","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useMemo,m=h!==void 0?h:h=b("CommerceManagerContextProviders_configuration.graphql");function a(a){var b,e=a.activeTab,f=a.children,g=a.loadIDVFlow,h=a.loadOBBOFlow,i=a.loadFedInformWizard,n=a.loadFedInformWizardIndividualFlow,o=a.isBizSuiteUser,p=a.showShopCompleteDialog,q=a.toastMessage,r=a.showTOSModal,s=a.showOnLoadModal,t=d("CommerceManagerLoggingHooks").useErrorLogging(),u=k(d("hero-tracing-placeholder").HeroInteractionIDContext),v=d("RelayHooks").useFragment(m,a.configuration),w=(b=c("getJSEnumSafe")(c("UnifiedCommerceManagerUsage"),v==null?void 0:v.usage))!=null?b:"UNKNOWN";b=l(function(){return{commerceManagerRoutingImpl:a.commerceManagerRoutingImpl,routeGivenName:a.routeGivenName}},[a.commerceManagerRoutingImpl,a.routeGivenName]);var x=l(function(){return{currentTab:e}},[e]),y=l(function(){return{usage:w}},[w]);if(w==="UNKNOWN"){t({error:c("err")("Unified Commerce Manager usage is unknown"),flowName:"NAVIGATION",oncall:"catalog_quality_tools"});return null}t=new URLSearchParams(window.location.search);t=t.get("ref");return j.jsx(c("CommerceManagerAppContextProvider.react"),{catalogOrCmsID:a.catalogOrCmsID,children:j.jsx(c("CommerceManagerUsageContext").Provider,{value:y,children:j.jsx(c("CommerceManagerCommerceContextProviders.react"),{canViewPermissions:(v==null?void 0:(y=v.features)==null?void 0:y.canViewPermissions)===!0,interactionUUID:u,isBizSuiteUser:o,loadFedInformWizard:i,loadFedInformWizardIndividualFlow:n,loadIDVFlow:g,loadOBBOFlow:h,referrerSurface:t,settings:v,showOnLoadModal:s,showShopCompleteDialog:p,showTOSModal:r,toastMessage:q,children:j.jsx(c("CommerceManagerCatalogContextProvider.react"),{catalog:v==null?void 0:v.catalog,children:j.jsx(c("CommerceManagerRoutingContext").Provider,{value:b,children:j.jsx(c("CommerceManagerTabContext").Provider,{value:x,children:j.jsx(d("CommerceManagerCatalogItemsPageFetchKeyContext.react").CommerceManagerCatalogItemsPageFetchKeyContextProvider,{children:j.jsx(d("CommerceManagerCatalogSetsPageFetchKeyContext.react").CommerceManagerCatalogSetsPageFetchKeyContextProvider,{children:f})})})})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerCommerceContextProviders.react",["CommerceBrandCompleteQueryParameterUtils","CommerceManagerCheckoutStyle","CommerceManagerCommerceContextProviders_configuration.graphql","CommerceManagerComponentGatingProvider","CommerceManagerContext","CommerceManagerLocalizationContext","CommerceManagerPermissionProvider.react","CommercePaymentProviders","RelayHooks","castToEnum","getJSEnumSafe","react","useCommerceManagerModalParams","useCommerceManagerRouteParams"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useState;function a(a){var e,f=a.canViewPermissions,g=a.children,i=a.interactionUUID,l=a.isBizSuiteUser,m=a.loadFedInformWizard,n=a.loadFedInformWizardIndividualFlow,o=a.loadIDVFlow,p=a.loadOBBOFlow,q=a.referrerSurface,r=a.settings,s=a.showOnLoadModal,t=a.showShopCompleteDialog,u=a.showTOSModal;a=a.toastMessage;r=d("RelayHooks").useFragment(h!==void 0?h:h=b("CommerceManagerCommerceContextProviders_configuration.graphql"),r);var v=c("useCommerceManagerRouteParams")();v=v.shopID;var w=k(void 0),x=w[0];w=w[1];var y=c("useCommerceManagerModalParams")(),z=y.showKYCModal,A=y.shouldShowCompletePayoutsModal,B=y.showDeferredPayoutOnboardingModal;y=y.shouldShowOneCatalogMigrationModal;var C=d("CommerceBrandCompleteQueryParameterUtils").useBrandCompleteQueryParameters(),D=C.shouldShowLinkedAssetOptOutModal;C=C.shouldShowMergeShopsOptOutModal;a=k(a);var E=a[0];a=a[1];var F=k(null),G=F[0];F=F[1];if(r==null)return g;var H=r.commerceMerchantSettings,I=H==null?void 0:H.id;if(H==null||I==null)return g;var J=H.shopifyApplication,K=H.checkoutStyle,L=H.commerceFeatures,M=H.externalMerchantID,N=H.hasSellerCreatedShopsAds,O=H.id,P=H.isChurnInsightsEnabled,Q=H.page,R=H.paymentProvider;e=H.isShopifyDirectMerchant===!0?"SHOPIFY":(e=H.commercePartnerIntegration)==null?void 0:e.platform;O={accountID_DEPRECATED_USE_CMS_ID_INSTEAD:I,cmsID:O,isBizSuiteUser:l,externalMerchantID:M,hasAccessToAutoUpdatesInItemsTab:Boolean(((I=r.features)==null?void 0:(O=I.catalogConciergeFeatures)==null?void 0:O.hasAccessToAutoUpdatesInItemsTab)===!0),hasIncompleteIntegrationPlan:Boolean(H.integrationPlan!=null&&((l=H.integrationPlan)==null?void 0:l.is_onsite_setup_complete)!==!0),hasSellerCreatedShopsAds:Boolean(N),interactionUUID:i,isChurnInsightsEnabled:Boolean(P),isShopifySeller:Boolean(H.isShopifySeller),isShopifyDirectMerchant:Boolean(H.isShopifyDirectMerchant),isInsightsV2Enabled:Boolean(L==null?void 0:L.isInsightsV2Enabled),isMigratedShopifyDirectMerchant:Boolean(H.isMigratedShopifyDirectMerchant),isOptimalSetupStepperCardEnabled:(M=L==null?void 0:L.isOptimalSetupStepperCardEnabled)!=null?M:!1,isOfferUploadUIEnabled:Boolean(L==null?void 0:L.isOfferUploadUIEnabled),isInferredTaxCategoryDisabled:Boolean(H.isInferredTaxCategoryDisabled),loadIDVFlow:o,loadOBBOFlow:p,cgpGuidanceModalProps:G,loadKYCFlow:z,loadDeferredPayoutOnboardingFlow:B,setCGPGuidanceModalProps:F,shouldShowOneCatalogMigrationModal:y,shouldShowCompletePayoutsModal:A,shouldShowLinkedAssetOptOutModal:D,shouldShowMergeShopsOptOutModal:C,loadFedInformWizard:m,loadFedInformWizardIndividualFlow:n,pageID:Q==null?void 0:Q.id,canViewPermissions:f,referrerSurface:q,showOnLoadModal:s,showShopCompleteDialog:t,shopID:v,isInsightsHybridShop:Boolean(H==null?void 0:H.isHybridShop),shopifyDomain:J==null?void 0:J.shop_domain,shopifyAppInstallationID:J==null?void 0:J.id,toastMessage:E,setToastMessage:a,showTOSModal:u,brandCompleteOptOutSuccessfulMigrationType:x,setBrandCompleteOptOutSuccessfulMigrationType:w,partnerIntegrationPlatform:e,isOffsiteDeprecationSellPageEnabled:Boolean((I=r.features)==null?void 0:I.isOffsiteDeprecationSellPageEnabled)};l={isEnabled:!1,tbpActions:H.tbpActions};N=c("getJSEnumSafe")(c("CommerceManagerCheckoutStyle"),K);i=c("castToEnum")(R,c("CommercePaymentProviders"));return j.jsx(c("CommerceManagerPermissionProvider.react"),{params:l,children:j.jsx(c("CommerceManagerComponentGatingProvider"),{checkoutStyle:N,paymentProvider:i,children:j.jsx(d("CommerceManagerLocalizationContext").CommerceManagerLocalizationContextProvider,{selectedLocationID:null,children:j.jsx(c("CommerceManagerContext").Provider,{value:O,children:g})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LeadsManager.react",["BizKitContextCardAdsDataSharingNUXContext","CometPlaceholder.react","ErrorBoundary.react","GeoButton.react","GeoModalFooter.react","GeoSpinner.react","JSResource","LWIBizWebButtonActionContextProvider.react","LeadsCenterAYMTTipContextProvider","LeadsCenterAYMTTipContextUpdater.react","LeadsCenterQPLLogger","LeadsCenterSurfaceEnterFlowFalcoEvent","LeadsManagerAdsDataSharingNUXQuery.graphql","LeadsManagerConstants","LeadsManagerContext","LeadsManagerLogVisitTimeMutation","LeadsManagerMainView.react","LeadsManagerModalFallback.react","LeadsManagerReducer","LeadsManagerViewContext","LeadsManagerViewReducer","LeadsManager_fragment.graphql","PageConsentForAdsEventsModal.react","RelayHooks","deferredLoadComponent","lazyLoadComponent","nullthrows","react","requireDeferredForDisplay","useBizWebGetRouteParams"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useEffect,m=e.useReducer,n=c("deferredLoadComponent")(c("requireDeferredForDisplay")("LeadsManagerAudienceExpansionToast.react").__setRef("LeadsManager.react")),o=c("lazyLoadComponent")(c("JSResource")("LeadsManagerAudienceCenterModalContainer.react").__setRef("LeadsManager.react")),p=c("lazyLoadComponent")(c("JSResource")("LeadsManagerCSVImportSection.react").__setRef("LeadsManager.react")),q=c("lazyLoadComponent")(c("JSResource")("LeadsManagerSettingsView.react").__setRef("LeadsManager.react")),r=c("lazyLoadComponent")(c("JSResource")("LeadsManagerToSDialog.react").__setRef("LeadsManager.react")),s=function(a,b){var c;if(a!=="OPTED_IN"||(b==null?void 0:b.adsDataSharingNUX)==null||b.adsDataSharingNUX.length===0)return{showNUX:!1,nuxBody:"",nuxType:null,impressionLoggedNuxes:null,nuxUIType:null};a=(a=(a=b.adsDataSharingNUX)==null?void 0:a[0].nux_content_text)!=null?a:"";c=(c=(c=b.adsDataSharingNUX)==null?void 0:c[0].nux_type)!=null?c:null;b=(b=(b=b.adsDataSharingNUX)==null?void 0:b[0].nux_ui_type)!=null?b:null;return{showNUX:!1,nuxBody:a,nuxType:c,impressionLoggedNuxes:null,nuxUIType:b}},t=function(a,b,d,e,f,g,h,i,j,l){if(e)return k.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerSettingsViewLazy",fallback:k.jsx(c("GeoSpinner.react"),{center:!0}),children:k.jsx("div",{className:"xvkph5b x5yr21d x10l6tqk x1nrll8i xwa60dl x11lhmoz",children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(q,{pageID:b,pageName:d})})})});else if(f){f=((e=i.page)==null?void 0:(d=e.is_passing_gk_csv_validator)==null?void 0:d.passes_gk)||!1;return k.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerCSVImportSectionLazy",fallback:k.jsx(c("GeoSpinner.react"),{center:!0}),children:k.jsx("div",{className:"xvkph5b x5yr21d x10l6tqk x1nrll8i xwa60dl x11lhmoz",children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(p,{leadsCSVTemplate:h,pageID:b,shouldShowCSVDebugger:f})})})})}else if(g)return k.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerAudienceCenterModalContainerLazy",fallback:k.jsx(c("GeoSpinner.react"),{center:!0}),children:k.jsx("div",{className:"x14vqqas x5yr21d x10l6tqk x1nrll8i xwa60dl x11lhmoz",children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(o,{pageID:b,lwi:c("nullthrows")(i.lwi)})})})});return k.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerMainView",fallback:k.jsx(c("GeoSpinner.react"),{center:!0}),children:k.jsx(c("LeadsManagerMainView.react"),{isComet:a,tableQueryReference:j,pipelineViewQueryReference:l,pageID:b,queryRef:i})})},u=h!==void 0?h:h=b("LeadsManager_fragment.graphql"),v=i!==void 0?i:i=b("LeadsManagerAdsDataSharingNUXQuery.graphql");function a(a){var b=c("useBizWebGetRouteParams")();b=b.is_lookalike_modal_open;b=m(d("LeadsManagerReducer").reducer,d("LeadsManagerReducer").getInitialState({canSeeLeadOwnerInvitation:a.canSeeLeadOwnerInvitation,canSeeStageManagement:a.canSeeStageManagement,canUseSettings:a.canUseSettings,isComet:a.isComet,isToSAccepted:a.isToSAccepted,isBackFillJobsRunning:a.isBackFillJobsRunning,isInBizKit:a.isInBizKit,unreadQuery:a.isUnread,defaultLeadID:"",firstAdsLeadOpportunityID:"",firstDirectOrMessengerLeadOpportunityID:"",openLeadsCenterDetailView:!1,shouldShowLeadsCenterMVPWelcomeModal:!0,sampleLeadId:"",shouldShowFastFollowupMVP:a.shouldShowFastFollowupMVP,shouldShowLeadsUpsellTipAndPreToSPage:!1,shouldShowLeadsPrioritizationStatus:a.shouldShowLeadsPrioritizationStatus,newLeadsCountSinceLastVisit:a.newLeadsCountSinceLastVisit,shouldShowPipelineTour:a.pipelineTourImpressionCount===0,adQuery:a.adQuery,adsEventSharingSettingStatus:a.adsEventSharingSettingStatus,adsEventSharingBusinessConsentLink:a.adsEventSharingBusinessConsentLink,shouldShowLeadClosureBins:a.shouldShowLeadClosureBins,isEligibleForAdsEventSharingModal:a.isEligibleForAdsEventSharingModal,adsEventSharingModalEntryPoints:a.adsEventSharingModalEntryPoints,shouldShowBulkEditImprovement:a.shouldShowBulkEditImprovement,shouldShowColdStartImprovements:a.shouldShowColdStartImprovements,shouldShowLookalikeModalFromUpsell:b===!0,shouldImproveCSVDownload:a.shouldImproveCSVDownload}));var e=b[0],f=b[1];b=a.isEligibleForAdsEventSharingModal;var g=e.showAudienceExpansionToast,h=e.showSavedAudienceModal,i=d("RelayHooks").useFragment(u,a.queryRef),j=m(d("LeadsManagerViewReducer").viewReducer,d("LeadsManagerViewReducer").getInitialViewState({isToSAccepted:!0})),o=j[0],p=j[1];j=m(d("BizKitContextCardAdsDataSharingNUXContext").reducer,s(a.adsEventSharingSettingStatus,i==null?void 0:i.page));var q=j[0],w=j[1];j=o.settingsViewShown;var x=o.showCSVImportSection,y=o.isShowingToS,z=a.pageID,A=a.pageName,B=a.leadsCSVTemplate,C=a.tableQueryReference,D=a.pipelineViewQueryReference,E=d("RelayHooks").useRelayEnvironment();A=t(a.isComet,z,A,j,x,h,B,i,C,D);d("LeadsCenterQPLLogger").componentLoadTimeStart(a.isToSAccepted,a.isComet,!0);l(function(){d("LeadsManagerLogVisitTimeMutation").commit(E,{asset_id:z,is_bizapp:!1},{}),c("LeadsCenterSurfaceEnterFlowFalcoEvent").log(function(){return{page_id:z,event_location:"leads_center",client_timestamp_ms:Date.now(),event_data:{}}})},[E,z]);return k.jsx(c("CometPlaceholder.react"),{fallback:k.jsx(c("GeoSpinner.react"),{center:!0}),children:k.jsx("div",{"data-testid":void 0,children:k.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:E,children:k.jsx(d("BizKitContextCardAdsDataSharingNUXContext").DataSharingNUXStateContext.Provider,{value:q,children:k.jsx(c("LWIBizWebButtonActionContextProvider.react"),{children:k.jsx(d("BizKitContextCardAdsDataSharingNUXContext").DataSharingNUXDispatchContext.Provider,{value:w,children:k.jsxs(c("LeadsCenterAYMTTipContextProvider"),{children:[k.jsx(c("LeadsManagerContext").Provider,{value:{dispatch:f,state:e},children:k.jsxs(c("LeadsManagerViewContext").Provider,{value:{dispatchForView:p,stateForView:o},children:[k.jsxs(c("ErrorBoundary.react"),{children:[y&&k.jsx(c("CometPlaceholder.react"),{fallback:k.jsx(c("LeadsManagerModalFallback.react"),{header:d("LeadsManagerConstants").LEADS_MANAGER_TOS_DIALOG_TITLE,footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{isLoading:!0,isDisabled:!0,label:d("LeadsManagerConstants").LEADS_MANAGER_TOS_DIALOG_BUTTON})}),isVisible:y,onHide:function(){p({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!1})}}),children:k.jsx(r,{pageID:z,leadCount:(i==null?void 0:(j=i.page)==null?void 0:j.lead_gen_backfill_count)||0})}),k.jsx(c("PageConsentForAdsEventsModal.react"),{relayEnvironment:E,initialAdsConsentOptInStatus:null,shouldShowOrdersAdsConsent:!1,shouldShowLeadStageUpdateAdsConsent:b,shouldShowAppointmentAdsConsent:!1,shouldShowDetectedOutcomesAdsConsent:!1,shouldEnableUniversalAdsEventSharingSettings:!0,onConsentDecisionMade:function(a){f({type:"MBS_ADS_EVENT_SHARING_SETTING_SET_OPT_IN_STATUS",optInStatus:a}),a===!0&&d("RelayHooks").fetchQuery(E,v,{pageID:z}).toPromise().then(function(a){a=s("OPTED_IN",a==null?void 0:a.page);w({type:"INIT",nuxBody:a.nuxBody,nuxType:a.nuxType,nuxUIType:a.nuxUIType})})["catch"](function(a){})},initialConsentNeeded:b,pageID:a.pageID})]}),A,g&&k.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerAudienceExpansionToastLazy",fallback:null,children:k.jsx(n,{})})]})}),z!=null?k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("CometPlaceholder.react"),{name:"LeadsCenterAYMTTipContextUpdater",fallback:null,children:k.jsx(c("LeadsCenterAYMTTipContextUpdater.react"),{pageID:z})})}):null]})})})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LeadsManagerMainView.react",["cx","ix","BizKitDefaultPage.react","BizKitPageHeaderStrings","CometPageletWithDiv.react","CometPlaceholder.react","ErrorBoundary.react","FlexLayout.react","GeoButton.react","GeoCard.react","GeoFlexbox.react","GeoNotice.react","GeoPage.react","GeoPageCard.react","GeoPageHeader.react","GeoPageItem.react","GeoPageSection.react","GeoSection.react","GeoSpinner.react","GeoToolbar.react","HeroInteractionIgnoreWithDiv.react","JSResource","Layout.react","LayoutColumn.react","LeadsCenterAYMTRefs.react","LeadsCenterEducationTipType","LeadsCenterLeadsTabClickFalcoEvent","LeadsCenterMarkEducationTipCompletedMutation","LeadsCenterPopUpTipRenderer.react","LeadsCenterQPLLogger","LeadsManagerActionBar.react","LeadsManagerCSVImportToastDeferred.react","LeadsManagerCometTableRootQuery.graphql","LeadsManagerConstants","LeadsManagerContext","LeadsManagerFilterUtils","LeadsManagerInsightsSection.react","LeadsManagerLeadDetailsContainer.react","LeadsManagerMainView_fragment.graphql","LeadsManagerPageContainer.react","LeadsManagerPipelineOptimizedRootContainer.react","LeadsManagerPipelineViewUtils","LeadsManagerSearchRootNew.react","LeadsManagerStagesBarRoot.react","LeadsManagerTablePreToSAcceptStateLazy.react","LeadsManagerTableRootContainer.react","LeadsManagerTimeUtils","LeadsManagerTypes","LeadsManagerViewContext","LeadsManagerViewTab.react","RelayHooks","dispatchAndFetchLeadsManagerFilters","fbicon","geoMargin","lazyLoadComponent","qpl","react","stylex","useUniqueID"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react"));e=l;var n=e.useContext,o=e.useEffect,p=e.useState,q=c("lazyLoadComponent")(c("JSResource")("LeadsCSVDownloadFilterDialogContainer.react").__setRef("LeadsManagerMainView.react")),r=c("lazyLoadComponent")(c("JSResource")("LeadsManagerChatHeadView.react").__setRef("LeadsManagerMainView.react")),s=function(){return m.jsx(c("CometPlaceholder.react"),{fallback:null,name:"LeadsCSVDownloadFilterDialogContainer",children:m.jsx(q,{})})},t="paid_digest",u={mainContentRootMVP:{overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},contextualColumn:{paddingBottom:"xwxc41k",paddingTop:"xyamay9",width:"xdzyupr",paddingRight:"x8e5d8q",paddingStart:null,paddingEnd:null,$$css:!0}},v=j!==void 0?j:j=b("LeadsManagerMainView_fragment.graphql");function w(a,b){d("LeadsCenterQPLLogger").logEventEndSuccess(c("qpl")._(793517015,"552"),{string:{pageID:a,viewType:b,screenWidth:window.innerWidth,screenHeight:window.innerHeight}})}function a(a){var b,e,g,h=a.isComet,j=a.pageID,l=a.pipelineViewQueryReference,q=a.queryRef;a=a.tableQueryReference;var y=j;a=d("RelayHooks").useQueryLoader(c("LeadsManagerCometTableRootQuery.graphql"),a);var z=a[0];a=a[1];var A=h?a:null,B=d("RelayHooks").useFragment(v,q);h=n(c("LeadsManagerContext"));var C=h.dispatch,D=h.state;a=D.newLeadsCountSinceLastVisit;var E=D.shouldShowBulkEditImprovement;q=D.shouldShowBulkAction;h=n(c("LeadsManagerViewContext"));var ca=h.dispatchForView;h=p(!0);var F=h[0],da=h[1],G=d("RelayHooks").useRelayEnvironment();h=new URLSearchParams(window.location.search);var H=h.get("entry_exp")===t;o(function(){H&&D.selectedSource!=="Paid"&&C({type:"LEADS_MANAGER_SELECT_SOURCE",source:"Paid"}),d("LeadsCenterQPLLogger").logEventStart(c("qpl")._(793518510,"1087"),!0)},[C,H]);var I=D.currentTableState,J=D.isInBizKit,K=D.selectedLeadIDs;h=D.openLeadsCenterDetailView;var ea=D.isToSAccepted,L=D.isFromPreToSAcceptView,M=d("LeadsManagerPipelineViewUtils").getLCViewTypeFromLocalStorage();M=p(M);var N=M[0],fa=M[1];M=K.toArray();o(function(){(I===d("LeadsManagerTypes").LeadsManagerTableStates.LEADS_LOADED||I===d("LeadsManagerTypes").LeadsManagerTableStates.NULL_STATE)&&d("LeadsCenterQPLLogger").logEventEndSuccess(c("qpl")._(793516600,"692"),{string:{pageID:j,viewType:N}})},[I]);function O(){F?C({type:"HIDE_TOP_BAR"}):C({type:"SHOW_TOP_BAR"}),da(!F)}var P=x(B.page),Q=aa(B.page),R=ba(B.page),S={owners:P,pageDetails:R,pageID:y,stages:Q};function T(a){fa(a),d("LeadsManagerPipelineViewUtils").setLCViewTypeToLocalStorage(a)}b=(b=(b=B.page)==null?void 0:(b=b.business_presence_node)==null?void 0:(b=b.biz_crm_config)==null?void 0:(b=b.crm_feature_gating)==null?void 0:b.has_more_than_20_leads)!=null?b:!1;e=(e=(e=B.page)==null?void 0:(e=e.business_presence_node)==null?void 0:(e=e.biz_crm_config)==null?void 0:(e=e.crm_feature_gating)==null?void 0:e.has_ads_access)!=null?e:!1;var U=Q!=null&&Q.length>0,V=!d("LeadsManagerFilterUtils").hasFiltersSelected(N,D),W=function(){ca({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})};W=babelHelpers["extends"]({},S,{environment:G,showToSModal:W,leadsCenterView:"table",lwiQueryRef:B==null?void 0:B.lwi});w(j,N);g=(g=B.page)==null?void 0:(g=g.business_presence_node)==null?void 0:g.biz_crm_config;var X=m.jsx(c("ErrorBoundary.react"),{children:m.jsx(c("HeroInteractionIgnoreWithDiv.react"),{children:m.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerActionBar",fallback:m.jsx(c("GeoSpinner.react"),{center:!0}),children:m.jsx(c("LeadsManagerActionBar.react"),{pageID:y,lwiQueryRef:B==null?void 0:B.lwi,crmConfigQueryRef:g,audienceToolInformation:{hasMoreThan20Leads:b,hasAdsAccess:e},audienceButtonRef:d("LeadsCenterAYMTRefs.react").audienceRef,leadsCenterView:N,stages:(g=Q)!=null?g:[],loadTableQuery:A})})})});b=m.jsxs("div",{className:"x9f619","data-testid":void 0,children:[m.jsx("div",{className:"xh8yej3",children:m.jsx(c("ErrorBoundary.react"),{children:m.jsx(d("CometPageletWithDiv.react").Placeholder,{name:"LeadsManagerTableRoot",fallback:m.jsx(c("GeoSpinner.react"),{center:!0}),children:m.jsx(c("LeadsManagerTableRootContainer.react"),babelHelpers["extends"]({loadTableQuery:A,queryReference:z},W))})})}),D.shouldShowCSVImportToast&&m.jsx(c("LeadsManagerCSVImportToastDeferred.react"),{leadsCenterView:"table"})]});e=B==null?void 0:B.lwi;g={pageID:y,pageDetails:R,lwiQueryRef:e};var ga=m.jsx("div",{style:{maxWidth:"400"},className:(k||(k=c("stylex")))(c("geoMargin").start12,(F||N==="table")&&c("geoMargin").top16,!F&&N==="pipeline"&&c("geoMargin").top12),children:m.jsxs(c("Layout.react"),{children:[m.jsx(c("LayoutColumn.react"),{children:m.jsx(c("LeadsManagerViewTab.react"),{leadsCenterView:N,pageID:y,onSwitch:Z,onLeadsCenterViewChange:T})}),m.jsx("div",{className:"x18mqm2i xzj7eog",children:m.jsx(c("LayoutColumn.react"),{children:m.jsx(c("GeoButton.react"),{icon:d("fbicon")._(i("500221"),16),label:F?d("LeadsManagerConstants").HIDE_FILTER_BUTTON_CONTENT:d("LeadsManagerConstants").SHOW_FILTER_BUTTON_CONTENT,variant:"default",onClick:O})})})]})});function Y(a,b){return m.jsxs("div",{className:(k||(k=c("stylex")))(!F&&c("geoMargin").bottom12),children:[ga,F?m.jsx(c("GeoSection.react"),{children:m.jsx(c("ErrorBoundary.react"),{children:m.jsx(c("LeadsManagerSearchRootNew.react"),{loadTableQuery:b,pageID:y,owners:P,leadsCenterView:N,lwiQueryRef:B==null?void 0:B.lwi,stages:a,clearRecommendationFilters:$})})}):null]})}Y.displayName=Y.name+" [from "+f.id+"]";z=m.jsx(m.Fragment,{children:F?m.jsx(c("GeoSection.react"),{children:m.jsx(c("ErrorBoundary.react"),{children:m.jsx(c("LeadsManagerStagesBarRoot.react"),{loadTableQuery:A,leadsCenterView:N,pageID:y,stages:Q})})}):null});W=c("useUniqueID")();R=m.jsx(m.Fragment,{children:a>0?m.jsx(c("GeoPageSection.react"),{grow:"auto",children:m.jsx(c("GeoPageCard.react"),{columns:12,grow:"auto",shrink:"none",children:m.jsx(c("GeoNotice.react"),{id:W,status:"success",children:d("LeadsManagerConstants").getNewLeadNotice(a)})})}):null});e=m.jsx(c("HeroInteractionIgnoreWithDiv.react"),{children:m.jsx(c("LeadsCenterPopUpTipRenderer.react"),{leadsCenterView:N,onLeadsCenterViewChange:T,fromPreToSView:L,hasStages:U})});Z=m.jsx(m.Fragment,{children:V&&m.jsx(c("GeoPageSection.react"),{children:m.jsx(c("GeoPageItem.react"),{columns:12,shrink:"none",children:m.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerInsightsSection",fallback:m.jsx(c("GeoSpinner.react"),{center:!0}),children:m.jsx(c("LeadsManagerInsightsSection.react"),{pageID:y})})})})});O=m.jsx(c("HeroInteractionIgnoreWithDiv.react"),{children:m.jsx("div",{className:"xh8yej3",children:m.jsx(c("LeadsManagerTablePreToSAcceptStateLazy.react"),{pageID:y})})});var ha=d("BizKitPageHeaderStrings").LEADS;function Z(){c("LeadsCenterLeadsTabClickFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{leads_center_view_type:N==="table"?"pipeline":"table"},event_location:"leads_center",page_id:y}});if(N==="pipeline"){var a=d("LeadsManagerTimeUtils").getStartAndEndTimeOfInterval(D.interval),b=a[0];a=a[1];d("dispatchAndFetchLeadsManagerFilters").onViewSwitch(j,A,D,{stage_id:D.selectedStageID,owner_id:D.selectedOwnerID,label_id:D.selectedLabelID,form_id:D.selectedLeadFormID,source_name:D.selectedSource,status_name:D.selectedStatus,name_search_term:D.nameQuery,email_search_term:D.emailQuery,answer_search_term:D.formAnswerQuery,phone_search_term:D.phoneQuery,campaign_group_id:D.campaignQuery,campaign_id:D.adSetQuery,adgroup_id:D.adQuery,start_time:b,end_time:a,expiring_type:D.expiringQuery,is_unread:D.unreadQuery,shouldShowLeadsPrioritizationStatus:!D.isLeadsPriorityStatusDisabled},K.count()>1&&!E?function(){return C({type:"LEADS_MANAGER_CLOSE_LEAD_DETAILS"})}:null)}else d("LeadsCenterMarkEducationTipCompletedMutation").commit(G,{tip_type:c("LeadsCenterEducationTipType").VIEW_SWITCH},{})}W=m.jsx("div",{className:"xr1yuqi xkrivgy x4ii5y1 x1gryazu x78zum5 x1q0g3np xh8yej3",children:m.jsxs("div",{className:"x78zum5 xdt5ytf xh8yej3",children:[e,O]})});function $(){d("dispatchAndFetchLeadsManagerFilters").dispatchAndFetchLeadsManagerFilters(y,N,A,D,{from_intake_progression:!1,to_converted_progression:!1},function(){C({type:"UPDATE_RECOMMENDATION_FILTER_STATE",fromIntakeProgression:!1,toConvertedProgression:!1})})}a=function(){return m.jsx(c("GeoPageHeader.react"),{heading:ha,toolbar:m.jsx(c("GeoToolbar.react"),{children:m.jsxs(c("CometPlaceholder.react"),{name:"LeadsManagerHeaderRedesignMVP",fallback:m.jsx(c("GeoSpinner.react"),{center:!0}),children:[J||X,J&&m.jsx(c("FlexLayout.react"),{justify:"all",align:"center",children:X})]})})})};L=m.jsxs(m.Fragment,{children:[m.jsxs(c("ErrorBoundary.react"),{children:[m.jsx(c("CometPlaceholder.react"),{fallback:m.jsx(c("GeoSpinner.react"),{center:!0}),name:"LeadsManagerPipeline",children:m.jsx(c("LeadsManagerPipelineOptimizedRootContainer.react"),babelHelpers["extends"]({queryReference:l},g))}),D.chatHead&&m.jsx(c("HeroInteractionIgnoreWithDiv.react"),{children:m.jsx(c("CometPlaceholder.react"),{fallback:null,name:"LeadsManagerChatHeadView",children:m.jsx(r,{threadID:D.threadID,name:D.leadName,profileURIs:D.profilePicUri,platform:D.platform,leadSource:D.leadSource,leadsCenterView:"pipeline",whatsappMailboxId:(T=D.whatsappMailboxId)!=null?T:""})})})]}),D.shouldShowCSVImportToast&&m.jsx(c("LeadsManagerCSVImportToastDeferred.react"),{leadsCenterView:"pipeline"})]});U=m.jsxs(c("GeoPage.react"),{columns:12,grow:"fill",header:a(),isFullwidth:!0,children:[m.jsx(c("GeoPageSection.react"),{grow:"auto",children:m.jsx(c("GeoPageCard.react"),{columns:12,grow:"auto",shrink:"none",children:Y(Q,null)})}),Z,m.jsx(c("GeoPageSection.react"),{grow:"fill",children:m.jsx(c("GeoPageItem.react"),{columns:12,shrink:"none","data-testid":void 0,children:m.jsxs(m.Fragment,{children:[e,m.jsx(s,{}),m.jsx("div",{className:"clearfix"}),L]})})})]});V=m.jsxs(c("GeoPage.react"),{columns:12,grow:"fill",header:a(),isFullwidth:!0,children:[m.jsx(c("GeoPageSection.react"),{grow:"auto",children:m.jsx(c("GeoPageCard.react"),{columns:12,grow:"auto",shrink:"none",children:Y(null,A)})}),Z,R,m.jsx(c("GeoPageSection.react"),{grow:"fill",children:m.jsxs(c("GeoPageCard.react"),{columns:12,grow:"auto",shrink:"none",children:[z,e,m.jsx(s,{}),m.jsx("div",{className:"clearfix"}),b]})})]});O=M.length>0||h===!0||E&&q?m.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:u.contextualColumn,shrink:0,children:m.jsx(c("GeoCard.react"),{children:m.jsx("div",{className:"xh8yej3 x5yr21d x1n2onr6 x1ey2m1c xu96u03 x3m8u43 x13vifvy x6ikm8r",children:m.jsx(c("ErrorBoundary.react"),{children:m.jsx("div",{className:"xh8yej3 x5yr21d x6ikm8r x10wlt62",children:m.jsx(c("LeadsManagerLeadDetailsContainer.react"),babelHelpers["extends"]({},S,{leadsCenterView:N,loadTableQuery:A,clearRecommendationFilters:$}))})})})})}):null;return m.jsx(m.Fragment,{children:ea?m.jsx(c("LeadsManagerPageContainer.react"),{children:m.jsxs("div",{className:"x78zum5 x193iq5w xh8yej3 x6ikm8r x10wlt62",children:[N==="pipeline"?U:V,O]})}):m.jsx(c("BizKitDefaultPage.react"),{initShowLocalNav:!1,hideHeader:!0,header:a(),isFullwidth:!0,children:m.jsx(c("GeoCard.react"),{children:m.jsxs(c("GeoFlexbox.react"),{direction:"row",xstyle:u.mainContentRootMVP,children:[m.jsx(c("GeoFlexbox.react"),{basis:"0",grow:1,shrink:1}),W]})})})})}a.displayName=a.name+" [from "+f.id+"]";function x(a){var b=[];a=a==null?void 0:a.possible_lead_owners;a!=null&&a.map(function(a){b.push(a)});return b}function aa(a){return a==null?void 0:a.page_opportunity_stages}function ba(a){return{id:(a==null?void 0:a.id)||"",name:(a==null?void 0:a.name)||"",pictureURL:(a==null?void 0:(a=a.profile_picture)==null?void 0:a.uri)||""}}g["default"]=a}),98);
-----
LeadsManagerTableNullState.react",["fbt","BUIButton.react","BUIText.react","FlexLayout.react","LeadManagerUtils","LeadsManagerConstants","LeadsManagerContext","LeadsManagerLeadDetailsEditContactDialogLazy.react","LeadsManagerViewContext","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useState;function a(a){var b=a.nullStateType;a=a.pageID;var e=d("RelayHooks").useRelayEnvironment(),f=k(c("LeadsManagerViewContext")),g=f.dispatchForView;f=k(c("LeadsManagerContext"));f=f.state;f=f.canSeeLeadOwnerInvitation;var i=l(!1),m=i[0],n=i[1];i=b;b=a;switch(i){case d("LeadManagerUtils").LeadsManagerNullStateType.TOS:return f?j.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[j.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center",children:h._("Please accept the Page Contact Terms to use the Leads Centre tool.")}),j.jsx(c("BUIButton.react"),{label:h._("View Terms"),use:"primary",onClick:function(){g({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})}})]}):j.jsx(c("FlexLayout.react"),{align:"center",direction:"vertical",children:j.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center",size:"header3",weight:"bold",children:d("LeadsManagerConstants").PRE_TOS_ACCEPT_VIEW_NO_PERMISSION_TEXT})});case d("LeadManagerUtils").LeadsManagerNullStateType.NO_LEADS:return j.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[m&&j.jsx(c("LeadsManagerLeadDetailsEditContactDialogLazy.react"),{environment:e,lead:null,pageID:b,onClose:function(){n(!1)},leadsCenterView:"table"}),j.jsx(c("BUIText.react"),{size:"header2","data-testid":void 0,children:h._("You don"t have any leads yet")}),j.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center","data-testid":void 0,children:h._("Leads generated from your lead ads will automatically be shown here. You can also manually create leads or upload your list of leads from a spreadsheet.")}),j.jsxs("div",{margin:"_3-8x",children:[j.jsx(c("BUIButton.react"),{label:h._("Create Lead"),use:"default",onClick:function(){n(!0)},"data-testid":void 0}),j.jsx(c("BUIButton.react"),{margin:"_3-9a",label:h._("Upload Leads"),use:"primary",onClick:function(){g({type:"LEADS_MANAGER_TOGGLE_CSV_IMPORT_SECTION",showCSVImportSection:!0})},"data-testid":void 0})]})]});case d("LeadManagerUtils").LeadsManagerNullStateType.NO_SEARCH_RESULTS:return j.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[j.jsx(c("BUIText.react"),{size:"header2",children:h._("No results")}),j.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center",children:h._("Try removing filters or selecting a different stage.")})]});case d("LeadManagerUtils").LeadsManagerNullStateType.DATA_PROPAGATING:return j.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[j.jsx(c("BUIText.react"),{size:"header2",children:h._("Your lead data is loading!")}),j.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center",children:h._("We are working on fetching leads generated from your lead ads campaign. It will take a while for the first time. Please come back later.")})]})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
LeadsManagerPipelineNullState.react",["fbt","FlexLayout.react","GeoBaseText.react","GeoButton.react","GeoHeading.react","GeoText.react","LeadManagerUtils","LeadsManagerViewContext","geoMargin","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useContext;function a(a){var b=a.nullStateType;a.pageID;a=k(c("LeadsManagerViewContext"));var e=a.dispatchForView;a=b;switch(a){case d("LeadManagerUtils").LeadsManagerNullStateType.TOS:return j.jsx("div",{className:"x10l6tqk x14kq9sb x1nrll8i x1m9mm8y",children:j.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[j.jsx(c("GeoBaseText.react"),{xstyle:c("geoMargin").bottom8,textAlign:"center",size:"header4",color:"value",weight:"bold",children:h._("Please accept the Page Contact Terms to use the Leads Centre tool.")}),j.jsx(c("GeoButton.react"),{label:h._("View Terms"),variant:"primary",onClick:function(){e({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})}})]})});case d("LeadManagerUtils").LeadsManagerNullStateType.DATA_PROPAGATING:return j.jsx("div",{className:"x10l6tqk x14kq9sb x1nrll8i x1m9mm8y",children:j.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[j.jsx(c("GeoHeading.react"),{level:2,children:h._("Your lead data is loading!")}),j.jsx(c("GeoText.react"),{xstyle:c("geoMargin").bottom8,textAlign:"center",children:h._("We are working on fetching leads generated from your lead ads campaign. It will take a while for the first time. Please come back later.")})]})});default:return j.jsx("div",{})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
AdsTargetingAudienceEditorContainer.react",["cx","fbt","AdsAPISpec","AdsAudienceFilterEnum","AdsCommonTargetingConstants","AdsCustomAudienceSharingConstants","AdsDetailedTargetingRelaxationUtils","AdsFluxContainer","AdsInterfacesLogger","AdsLookalikeContainerConstants","AdsManagerRelayEnvironment","AdsMessengerPlacementUtils","AdsPEFluxCreateAudienceActionFlux","AdsStaticGuidanceCard.react","AdsTargetingAsASignalGuidanceCardImpressionsAction","AdsTargetingAudienceActions","AdsTargetingAudienceCreationPopoverMenu.react","AdsTargetingAudienceEditorContainerHasDeprecatedAppEventSegmentsAudienceQuery.graphql","AdsTargetingAudienceEditorSelector","AdsTargetingAudienceLoggingEvents","AdsTargetingAudienceNewVBLALAddedAction","AdsTargetingAudienceTokenizer.react","AdsTargetingAudienceUtils","AdsTargetingBootloadDialog.react","AdsTargetingConnectionCountriesMisalignmentAction","AdsTargetingCustomAudienceExpansionUtils","AdsTargetingDFCABMRequirementMTCNotice.react","AdsTargetingLookalikeContainerSeedSizeStatusAction","AdsTargetingLookalikeRelaxationConstants","AdsTargetingLookalikeRelaxationUtils","AdsTargetingSharedAudienceAgreementNotAcceptedMTCNotice.react","AdsTargetingSignalLossUtils","AdsTargetingSpecHasAppEventSegmentsAudienceFetchAction","AdsTargetingUntrustedAccountUsingDFCANotice.react","AdsTargetingVBLALUpsellUtils","AdsTargetingValueBasedLookalikeUpsellContainer.react","AdsUtils","AsyncRequest","AsyncTypedRequest","AudienceManagerCreateAudienceFlatDialogSuspense.react","BUIGuidanceCard.react","BUIGuidanceCardCloseButton.react","BUIGuidanceCardContent.react","BUIGuidanceCardContentLink.react","BUIGuidanceCardContentText.react","BUIGuidanceCardHeader.react","BizSiteIdentifier.brands","ContextualLayerAutoFlipBluetip","ContextualLayerShowAndHideOnScrollOut","ContextualLayerUpdateOnScroll","CustomAudienceTosUtils","CustomAudienceUtils","DataFileCustomAudienceUserLevelTOSModal.react","DatafileCustomAudienceSharingStatus","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardFooter.react","GeoGuidanceCardHeader.react","GeoLink.react","GeoSpinner.react","JSResource","LayerFadeOnHide","LayerFadeOnShow","LayerHideOnBlur","LetterboxEnumUtils","Link.react","LoadingMarkerArea.react","RelayHooks","SimpleNUXMessage","TargetingEUPrivacyDirectiveConstants","ThisControllerNoLongerExists","URI","XAdsCampaignHasDeletedConnectionsSavedAuidenceController","XAdsTargetingAsASignalImpressionsController","XAdsTargetingConnectionsCountriesMisalignmentController","XHasDeprecatedAppEventSegmentsAudienceController","XUIAmbientNUX.react","adsTargetingCreateLookalikeContainers","cachedGraphAPI","geoMargin","gkx","immutable","promiseDone","prop-types","react","vulture"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react"));a=l.Component;var n=600,o=d("AdsAPISpec").CUSTOM_AUDIENCE_FIELDS.map(d("AdsUtils").underscoreKey),p=310,q=new(k||(k=c("URI")))("/business/help/917879191754763");function r(){return m.jsx("div",{className:"_2piv",children:m.jsx(c("LoadingMarkerArea.react"),{name:"AdsTargetingAudienceEditorContainer",owner:"admarket_targeting_oncalls",children:m.jsx(c("GeoSpinner.react"),{})})},"spinner")}r.displayName=r.name+" [from "+f.id+"]";function s(a){return(a.customAudiences||[]).concat(a.excludedCustomAudiences||[])}function t(a,b,e){return!a?null:m.jsx("div",{className:"_3-8i",id:"accept_dfca_user_tos_notice",children:m.jsx(c("AdsStaticGuidanceCard.react"),{ccCardProps:{category:"ERROR",messageID:"accept_dfca_user_tos_notice",textData:[{type:"PARAGRAPH",data:{text:d("AdsCustomAudienceSharingConstants").DFCA_TOS_NOT_ACCEPTED(b,e)}}],ctaData:[{type:"BUTTON_GROUP",data:{buttonsData:[{dataTestID:"audience-editor-container-dfca-tos-notice-button",text:"Next",onCallToAction:function(){d("AdsTargetingAudienceActions").showUserTosDialog(b)}}]}}]}})})}t.displayName=t.name+" [from "+f.id+"]";function u(a){var b=a.hasLegacyLookalikes,e=a.isRegulated;a=a.seedSizeStatus;c("vulture")("7cEvRFaUy1r");return a==null||a.status!="LOW_SEEDS"||b==!0?null:m.jsxs(c("BUIGuidanceCard.react"),{category:"error",children:[m.jsx(c("BUIGuidanceCardHeader.react"),{children:d("AdsLookalikeContainerConstants").LOOKALIKE_SOURCE_TOO_SMALL_MESSAGE(e)}),m.jsx(c("BUIGuidanceCardContent.react"),{children:m.jsx(c("BUIGuidanceCardContentText.react"),{children:a.message})})]})}u.displayName=u.name+" [from "+f.id+"]";function v(a){var b=a.audiencesLength,e=a.creationSource,f=a.isRegulated,g=a.onClose;a=a.spinnerStatus;c("vulture")("8RSKbsY46YC");if(a!=B.LOADED_SUCCESS||b===0)return null;a=d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_SUCCESS_BODY(e,f);return m.jsxs(c("BUIGuidanceCard.react"),{action:m.jsx(c("BUIGuidanceCardCloseButton.react"),{onPress:g}),category:"success",margin:"_3-8x _3-95",children:[m.jsx(c("BUIGuidanceCardHeader.react"),{children:d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_SUCCESS_HEADER(f)}),m.jsx(c("BUIGuidanceCardContent.react"),{children:m.jsx(c("BUIGuidanceCardContentText.react"),{children:a})})]})}v.displayName=v.name+" [from "+f.id+"]";function w(a){var b=a.creationSource,e=a.hasLegacyLookalikes,f=a.isRegulated,g=a.onClick;a=a.spinnerStatus;c("vulture")("3YuDTf4YBwq");if(a===B.LOADING)return m.jsx(c("GeoSpinner.react"),{label:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_SPINNER_TEXT(f)});return!e||a===B.LOADED_ERROR?null:m.jsx("div",{className:"_2pio",children:m.jsx(c("AdsStaticGuidanceCard.react"),{ccCardProps:{category:"ERROR",messageID:"convert_lookalike_to_lookalike_container_notice",header:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_BANNER_HEADER(f),textData:[{type:"PARAGRAPH",data:{text:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_BANNER_BODY(b,f)}}],ctaData:[{type:"BUTTON_GROUP",data:{buttonsData:[{text:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_BUTTON_TEXT(f),onCallToAction:g}]}}]}})})}w.displayName=w.name+" [from "+f.id+"]";function x(){var a;return m.jsx(c("GeoGuidanceCard.react"),{footer:m.jsx(c("GeoGuidanceCardFooter.react"),{children:m.jsx(c("GeoLink.react"),{href:(a=d("TargetingEUPrivacyDirectiveConstants")).EU_PRIVACY_DIRECTIVE_AUDIENCE_MANAGER_LEARN_MORE_LINK,target:"_blank",children:a.EU_PRIVACY_DIRECTIVE_AUDIENCE_MANAGER_LEARN_MORE})}),header:m.jsx(c("GeoGuidanceCardHeader.react"),{heading:a.REMOVE_EU_PRIVACY_DIRECTIVE_AUDIENCES_ERROR_HEADER}),status:"error",xstyle:c("geoMargin").vert8,children:m.jsx(c("GeoGuidanceCardContent.react"),{children:a.REMOVE_EU_PRIVACY_DIRECTIVE_AUDIENCES_ERROR_BODY_POST_DEC_9})})}x.displayName=x.name+" [from "+f.id+"]";function y(a){var b=a.audiencesLength,e=a.creationSource,f=a.hasLegacyLookalikes,g=a.isRegulated;a=a.spinnerStatus;c("vulture")("9FHphzIs0W0");if(a!=B.LOADED_ERROR||b==0)return null;if(!f)return null;a=d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_ERROR_BODY(e,g);return m.jsxs(c("BUIGuidanceCard.react"),{category:"error",margin:"_3-8x _3-95",children:[m.jsx(c("BUIGuidanceCardHeader.react"),{children:d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_ERROR_HEADER(g)}),m.jsx(c("BUIGuidanceCardContent.react"),{children:m.jsx(c("BUIGuidanceCardContentText.react"),{children:a})})]})}y.displayName=y.name+" [from "+f.id+"]";function z(a){a=a.badAudiences;c("vulture")("8lYchSyDWA5");a=i._("Your saved audience can"t be used because it contains at least one audience that has been disabled. Disabled audiences were shared by accounts that are no longer active. To continue using this saved audience, remove the affected audiences: {bad audiences}",[i._param("bad audiences",a.join(","))]);return m.jsx("div",{className:"_2pio",id:"saved_audience_owner_account_disabled_notice",children:m.jsx(c("AdsStaticGuidanceCard.react"),{ccCardProps:{category:"ERROR",messageID:"saved_audience_owner_disabled_notice",textData:[{type:"PARAGRAPH",data:{text:a}}]}})})}z.displayName=z.name+" [from "+f.id+"]";function A(a,b,c){return a===!0&&b===!0&&!c}var B=Object.freeze({LOADING:"LOADING",LOADED_SUCCESS:"LOADED_SUCCESS",LOADED_ERROR:"LOADED_ERROR",NONE:"NONE"});e=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,e;for(var g=arguments.length,h=new Array(g),i=0;i1;c=((c=a.campaignIDs)!=null?c:[]).length>1;return a.accountID!==this.props.accountID||a.areAllCampaignsNew!==this.props.areAllCampaignsNew||a.areAllCampaignsLALaaS!==this.props.areAllCampaignsLALaaS||c!==b};g.$9=function(){var a;if(!((a=this.props.campaignIDs)==null?void 0:a.length))return;if(c("gkx")("4856")){a=j!==void 0?j:j=b("AdsTargetingAudienceEditorContainerHasDeprecatedAppEventSegmentsAudienceQuery.graphql");var e=c("AdsManagerRelayEnvironment");c("promiseDone")(d("RelayHooks").fetchQuery(e,a,{ad_account_id:this.props.accountID,ids:(e=this.props.campaignIDs)!=null?e:[]},{fetchPolicy:"store-or-network"}).toPromise(),function(a){a=(a=a==null?void 0:(a=a.xfb_andromeda_XHasDeprecatedAppEventSegmentsAudienceController)==null?void 0:a.has_app_event_segments_audience)!=null?a:!1;c("AdsTargetingSpecHasAppEventSegmentsAudienceFetchAction").dispatch({hasAppEventSegmentsAudience:a},{line:"759",module:"AdsTargetingAudienceEditorContainer.react.js",moduleID:f.id})},function(){c("AdsTargetingSpecHasAppEventSegmentsAudienceFetchAction").dispatch({hasAppEventSegmentsAudience:!1},{line:"764",module:"AdsTargetingAudienceEditorContainer.react.js",moduleID:f.id})})}else{e=c("XHasDeprecatedAppEventSegmentsAudienceController").getURIBuilder().setFBIDVector("ids",(a=this.props.campaignIDs)!=null?a:[]).setFBID("ad_account_id",this.props.accountID).getURI();a=new(c("AsyncTypedRequest"))().setURI(e).setHandler(function(a){a=a.payload.has_app_event_segments_audience;c("AdsTargetingSpecHasAppEventSegmentsAudienceFetchAction").dispatch({hasAppEventSegmentsAudience:a},{line:"780",module:"AdsTargetingAudienceEditorContainer.react.js",moduleID:f.id})}).setErrorHandler(function(a){c("AdsTargetingSpecHasAppEventSegmentsAudienceFetchAction").dispatch({hasAppEventSegmentsAudience:!1},{line:"785",module:"AdsTargetingAudienceEditorContainer.react.js",moduleID:f.id})});a.send()}};g.$10=function(){var a,b=this;if(!((a=this.props.campaignIDs)==null?void 0:a.length))return;a=c("XAdsCampaignHasDeletedConnectionsSavedAuidenceController").getURIBuilder().setFBIDVector("ids",(a=this.props.campaignIDs)!=null?a:[]).setFBID("ad_account_id",this.props.accountID).getURI();a=new(c("AsyncTypedRequest"))().setURI(a).setHandler(function(a){a=a.payload.campaign_has_deleted_connections_saved_audience;b.state.passConnectionsDeprecationPhase3NotificationGKSelector&&b.setState({campaignHasDeletedConnectionsSavedAudience:a})}).setErrorHandler(function(a){b.setState({campaignHasDeletedConnectionsSavedAudience:!1})});a.send()};g.$11=function(a){return d("AdsMessengerPlacementUtils").isTogglingMessengerThread(a.placementAPISpec,this.props.placementAPISpec)?!0:d("AdsMessengerPlacementUtils").pageIDChangedWhenMessengerSelected(a.placementAPISpec,this.props.placementAPISpec,this.props.pageID,a.pageID)};g.render=function(){return m.jsxs("div",{"data-testid":void 0,id:d("AdsPEFluxCreateAudienceActionFlux").actionType,children:[this.$13(),this.$14(),this.$15(),this.$16()]})};g.$16=function(){return this.state.requiredUserTos==null?null:m.jsx(c("DataFileCustomAudienceUserLevelTOSModal.react"),{adAccountID:this.props.accountID,businessName:c("CustomAudienceTosUtils").getBusinessNameToAcceptTOSFor(this.props.accountInfo),isShown:this.state.requiredUserTos!=null,isValueBased:this.state.requiredUserTos==="value_based_custom_audience_tos",onAccept:this.$17,onHide:this.$18})};g.$19=function(){return t(this.$20(!1),!1,this.props.dataFileCustomAudienceUsageType)};g.$21=function(){return t(this.$20(!0),!0,this.props.dataFileCustomAudienceUsageType)};g.$20=function(a){var b=this.state.tosAccepted;return a?this.$22(!0)&&!(b&&b.value_based_custom_audience_tos):this.$22(!1)&&!(b&&b.custom_audience_tos)};g.$23=function(){return m.jsx(c("AdsTargetingSharedAudienceAgreementNotAcceptedMTCNotice.react"),{dataFileCustomAudienceUsageType:this.props.dataFileCustomAudienceUsageType,shouldShowBannerToBusiness:this.$24()})};g.$24=function(){if(!this.state.targetableAudiencesLoaded||this.state.targetableAudiences==null)return!1;var a=this.state.targetableAudiences.getValueEnforcing().toJS();return Object.keys(a).some(function(b){b=a[b];return b.sharing_status!=null&&b.sharing_status.status!==d("LetterboxEnumUtils").getEnumKey(c("DatafileCustomAudienceSharingStatus"),c("DatafileCustomAudienceSharingStatus").ACCEPTED_RELATIONSHIP)})};g.$25=function(){return m.jsx(c("AdsTargetingDFCABMRequirementMTCNotice.react"),{accountID:this.props.accountID,dataFileCustomAudienceUsageType:this.props.dataFileCustomAudienceUsageType,isAdAccountAdmin:this.$26(),shouldShowBannerToAccount:this.$27()})};g.$27=function(){var a=!this.props.accountInfo.business;if(!a||!this.state.targetableAudiencesLoaded||this.state.targetableAudiences==null)return!1;var b=this.state.targetableAudiences.getValueEnforcing().toJS();return Object.keys(b).some(function(a){return b[a].subtype==="CUSTOM"})};g.$28=function(){if(!this.state.targetableAudiencesLoaded||this.state.targetableAudiences==null||this.props.dataFileCustomAudienceUsageType!=="saved audience")return null;var a=this.state.targetableAudiences.getValueEnforcing().toJS(),b=[];Object.keys(a).forEach(function(c){c=a[c];c.operation_status!=null&&c.operation_status.code===470&&b.push(c.name)});return b};g.$29=function(){return!this.props.accountInfo.is_tier_0||!this.$30()?null:m.jsx(c("AdsTargetingUntrustedAccountUsingDFCANotice.react"),{})};g.$30=function(){return this.$22(!0)||this.$22(!1)};g.$31=function(){if(this.state.valueBasedUpsellSpinnerStatus!=B.LOADED_SUCCESS)return null;var a=i._("Audiences updated"),b=i._("Marked audiences were switched to value-based lookalikes.");return m.jsxs(c("BUIGuidanceCard.react"),{action:m.jsx(c("BUIGuidanceCardCloseButton.react"),{onPress:this.$2}),category:"success",margin:"_3-8x",children:[m.jsx(c("BUIGuidanceCardHeader.react"),{children:a}),m.jsx(c("BUIGuidanceCardContent.react"),{children:m.jsx(c("BUIGuidanceCardContentText.react"),{children:b})})]})};g.$6=function(){var a=(this.props.customAudiences||[]).filter(function(a){return a.lookalike_type==="lookalike_container"||a.lookalike_type==="regulated_container"}).map(function(a){return a.id}),b=(this.props.excludedCustomAudiences||[]).filter(function(a){return a.lookalike_type==="lookalike_container"||a.lookalike_type==="regulated_container"}).map(function(a){return a.id});a=d("ThisControllerNoLongerExists").__DEADBUILDER__("bp2f01khc").setIntVector("included_audiences",a).setIntVector("excluded_audiences",b).setStringVector("countries",this.props.countries).setString("ad_account_id",this.props.accountID).getURI();new(c("AsyncRequest"))().setURI(a).setHandler(function(a){a=a.payload;a==null?c("AdsTargetingLookalikeContainerSeedSizeStatusAction").dispatch({seedSizeStatus:null},{line:"1109",module:"AdsTargetingAudienceEditorContainer.react.js",moduleID:f.id}):c("AdsTargetingLookalikeContainerSeedSizeStatusAction").dispatch({seedSizeStatus:{status:a[0],message:a[1]}},{line:"1113",module:"AdsTargetingAudienceEditorContainer.react.js",moduleID:f.id})}).setErrorHandler(function(a){}).send()};g.$7=function(){if(this.props.countries==null)return;var a=this.props.customAudiences.some(function(a){return((a=a.lookalike_spec)==null?void 0:a.creation_ui)==="connections_generated"});if(!a){this.state.areConnectionCountriesMisaligned&&c("AdsTargetingConnectionCountriesMisalignmentAction").dispatch({isMisaligned:!1},{line:"1140",module:"AdsTargetingAudienceEditorContainer.react.js",moduleID:f.id});return}a=this.props.customAudiences.filter(function(a){return((a=a.lookalike_spec)==null?void 0:a.creation_ui)==="connections_generated"}).map(function(a){return a.id});a=c("XAdsTargetingConnectionsCountriesMisalignmentController").getURIBuilder().setStringVector("audiences",a).setStringVector("countries",this.props.countries).getURI();new(c("AsyncRequest"))().setURI(a).setHandler(function(a){a=a.payload;c("AdsTargetingConnectionCountriesMisalignmentAction").dispatch({isMisaligned:a},{line:"1165",module:"AdsTargetingAudienceEditorContainer.react.js",moduleID:f.id})}).setErrorHandler(function(a){}).send()};g.$33=function(){if(this.state.newVblalAdded==null)return null;var a=this.state.newVblalAdded,b="";a.sourceType==="app_users"?b="app":a.sourceType==="fb_pixel"?b="pixel":a.sourceType==="offline_conversion_data_set"&&(b="offline event");var d=i._("New value-based lookalike created");b=i._("A new value-based lookalike, {=m2} has been created using your {source name}.",[i._param("source name",b),i._implicitParam("=m2",m.jsx("strong",{children:i._("{lookalike name},",[i._param("lookalike name",a.vblalName)])}))]);a=i._("Learn more");return m.jsxs(c("BUIGuidanceCard.react"),{action:m.jsx(c("BUIGuidanceCardCloseButton.react"),{onPress:this.$3}),category:"success",margin:"_3-8x",children:[m.jsx(c("BUIGuidanceCardHeader.react"),{children:d}),m.jsxs(c("BUIGuidanceCardContent.react"),{children:[m.jsx(c("BUIGuidanceCardContentText.react"),{children:b}),m.jsx(c("BUIGuidanceCardContentLink.react"),{onPress:this.$32,children:a})]})]})};g.$34=function(){if(this.state.shouldDeprecateConnections&&this.state.areConnectionCountriesMisaligned){var a=i._("Location mismatch"),b=this.props.dataFileCustomAudienceUsageType!=="saved audience"?"ad set":"saved audience";b=i._("Your {creation source}"s location doesn"t match the location used for one of your lookalikes. If you want the lookalike to include people from your {creation sources}"s location, you"ll need to remove and recreate it.",[i._param("creation source",b),i._param("creation sources",b)]);return m.jsxs(c("BUIGuidanceCard.react"),{category:"active-feedback",children:[m.jsx(c("BUIGuidanceCardHeader.react"),{children:a}),m.jsx(c("BUIGuidanceCardContent.react"),{children:m.jsx(c("BUIGuidanceCardContentText.react"),{children:b})})]})}return null};g.$35=function(){return!this.props.isFromSavedAudience||!this.props.isLookalikeRelaxationErrorState?null:m.jsxs(c("BUIGuidanceCard.react"),{category:"error",children:[m.jsx(c("BUIGuidanceCardHeader.react"),{children:d("AdsTargetingLookalikeRelaxationConstants").LOOKALIKE_RELAXATION_INCLUDE_LOOKALIKE_HEADER}),m.jsx(c("BUIGuidanceCardContent.react"),{children:m.jsx(c("BUIGuidanceCardContentText.react"),{children:d("AdsTargetingLookalikeRelaxationConstants").LOOKALIKE_RELAXATION_INCLUDE_LOOKALIKE_BODY})})]})};g.$36=function(){return this.state.valueBasedUpsellSpinnerStatus==B.LOADING&&d("AdsTargetingVBLALUpsellUtils").isEligible(this.state.targetableAudiences,this.state.targetableAudiencesLoaded)?m.jsx(c("GeoSpinner.react"),{label:d("AdsTargetingVBLALUpsellUtils").SPINNER_TEXT}):null};g.$13=function(){return m.jsxs(m.Fragment,{children:[this.$37(),this.$38(),m.jsx(c("AdsTargetingValueBasedLookalikeUpsellContainer.react"),{accountID:this.props.accountID,actions:this.props.actions,campaignIDs:this.props.campaignIDs,countries:this.props.countries,customAudiences:this.props.customAudiences,dataFileCustomAudienceUsageType:this.props.dataFileCustomAudienceUsageType,excludedCustomAudiences:this.props.excludedCustomAudiences,numCampaigns:this.props.numCampaigns,objectiveData:this.props.objectiveData,optimizationGoal:this.props.optimizationGoal,targetableAudiences:this.state.targetableAudiences}),this.$36(),this.$31(),this.$33(),this.$35(),this.$34(),this.$39()]})};g.$40=function(a){var b=this.props.customAudiences.some(function(b){return b.lookalike_type===a});return b?b:this.props.excludedCustomAudiences.some(function(b){return b.lookalike_type===a})};g.$41=function(){if(!this.state.targetableAudiencesLoaded||this.state.targetableAudiences==null)return!1;var a=this.state.targetableAudiences.getValueEnforcing().toJS();return Object.keys(a).some(function(b){b=a[b];return d("CustomAudienceUtils").isAudienceEUPrivacyDirectiveImpacted(b)})};g.$37=function(){var a=this,b=this.$28();if(b!=null&&b.length!==0)return m.jsx(z,{badAudiences:b});if(this.$27())return m.jsx(m.Fragment,{children:this.$25()});b=this.$29();if(b!==null)return m.jsx(m.Fragment,{children:b});b=this.props.dataFileCustomAudienceUsageType!=="saved audience"?"ad set":"saved audience";var d=this.$41();if(d)return m.jsx(x,{});if(this.state.canUseLookalikeContainer||this.state.canUseLookalikeContainerInPublic){d=this.$40("lookalike")&&this.state.canUseLookalikeContainer;var e=this.$40("regulated")&&this.state.canUseLookalikeContainerInPublic,f=this.$40("regulated_container");d=d||e;var g=s(this.props).length;return m.jsxs(m.Fragment,{children:[m.jsx(v,{audiencesLength:g,creationSource:b,isRegulated:f,spinnerStatus:this.state.lookalikeToLookalikeContainerConversionSpinnerStatus,onClose:this.$4}),m.jsx(y,{audiencesLength:s(this.props).length,creationSource:b,hasLegacyLookalikes:d,isRegulated:e,spinnerStatus:this.state.lookalikeToLookalikeContainerConversionSpinnerStatus}),m.jsx(u,{hasLegacyLookalikes:d,isRegulated:f,seedSizeStatus:this.state.seedSizeStatus}),m.jsx(w,{creationSource:b,hasLegacyLookalikes:d,isRegulated:e,spinnerStatus:this.state.lookalikeToLookalikeContainerConversionSpinnerStatus,onClick:function(){return c("adsTargetingCreateLookalikeContainers")(a.props.accountID,a.props.actions,a.props.countries,a.props.customAudiences,a.props.excludedCustomAudiences,e,a.state.targetableAudiences)}})]})}return m.jsxs(m.Fragment,{children:[this.$19(),this.$21(),this.$23()]})};g.$42=function(){return Boolean(this.props.isAdvantageAudienceInclusionEnabled)?!1:this.props.safrExclusionConfig?this.props.safrExclusionConfig.is_visible:!0};g.$43=function(){var a=this;if(this.state.isNCATurnedOn){var b=d("AdsTargetingCustomAudienceExpansionUtils").isCustomAudienceExpansionEnabled(this.props.targetingRelaxationTypes);if(!b)return this.props.customAudiences.filter(function(b){return!a.state.existingCustomers.includes(b.id)})}return this.props.customAudiences};g.$44=function(){var a=this;return this.state.isNCATurnedOn?this.props.excludedCustomAudiences.filter(function(b){return!a.state.existingCustomers.includes(b.id)}):this.props.excludedCustomAudiences};g.$38=function(){if(!this.state.targetableAudiencesLoaded)return r();var a=this.props.width?this.props.width-d("AdsCommonTargetingConstants").TABLE_LABEL_WIDTH:void 0,b=this.$42(),e=d("AdsTargetingLookalikeRelaxationUtils").isCampaignLookalikeRelaxationEligible(this.props.isNewCampaign,this.props.optimizationGoal,this.props.objectiveData.objective,this.props.targetingRelaxationTypes,this.props.promotedObjectType),f=this.$43(),g=this.$44();return m.jsx(c("AdsTargetingAudienceTokenizer.react"),{accountID:this.props.accountID,adAccount:this.state.adAccount.getValue(),advantageAudienceCAExclusionSectionEnabled:this.props.advantageAudienceCAExclusionSectionEnabled,allowExclusion:b,allowedCustomAudienceCategories:d("AdsTargetingAudienceUtils").GetValidAudienceTypes(this.props.safrInclusionConfig,[c("AdsAudienceFilterEnum").ALL,c("AdsAudienceFilterEnum").REGULATED_CATEGORIES_AUDIENCE,c("AdsAudienceFilterEnum").CUSTOM_AUDIENCE],this.props.selectedRegulatedCategory,this.state.passSpecialAdAudienceDeprecationPhase2GKSelector),audienceCreationPopoverMenu:this.$45(),bulkEditBulkControlSelection:this.props.bulkEditBulkControlSelection,bulkEditLink:this.props.bulkEditLink,campaignEndTimestamp:this.props.campaignEndTimestamp,campaignHasDeletedConnectionsSavedAudience:this.state.campaignHasDeletedConnectionsSavedAudience,campaignIDs:this.props.campaignIDs,canShowLALaaSGuidanceCard:this.$46(),canShowLALaaSInlineDisclosure:this.$47(),canUseCustomAudienceExpansion:this.state.canUseCustomAudienceExpansion,canUseLookalikeContainer:this.state.canUseLookalikeContainer,canUseLookalikeContainerInPublic:this.state.canUseLookalikeContainerInPublic,countries:this.props.countries,currentReachFrequencyCampaignStartIn48Hours:this.props.currentReachFrequencyCampaignStartIn48Hours,customAudiences:f,customAudiencesToCampaignsInfoMap:this.props.customAudiencesToCampaignsInfoMap,dao:this.props.dao,dataFileCustomAudienceUsageType:this.props.dataFileCustomAudienceUsageType,disableAudienceCreation:this.state.isAdProposalCreationMode||this.props.disableAudienceCreation,excludedCustomAudienceCategories:d("AdsTargetingAudienceUtils").GetValidAudienceTypes(this.props.safrExclusionConfig,[c("AdsAudienceFilterEnum").CUSTOM_AUDIENCE],this.props.selectedRegulatedCategory,this.state.passSpecialAdAudienceDeprecationPhase2GKSelector,this.props.advantageAudienceCAExclusionSectionEnabled),excludedCustomAudiences:g,excludedCustomAudiencesToCampaignsInfoMap:this.props.excludedCustomAudiencesToCampaignsInfoMap,existingCustomers:this.state.existingCustomers,hasAppEventSegmentsAudience:this.state.campaignHasAppEventSegmentAudience,hostID:this.props.hostID,inclusionExclusionMode:this.props.inclusionExclusionMode,isAdAccountAdmin:this.$26(),isAdvantageAudienceSavedAudience:this.props.isAdvantageAudienceSavedAudience,isAnySelectedCampaignEligibleForTAFE:this.props.isAnySelectedCampaignEligibleForTAFE,isBulkControl:this.props.isBulkControl,isCampaignCustomAudienceExpansionEligible:!0,isCampaignLookalikeRelaxationEligible:e,isCustomAudiencesMixedValue:this.props.isCustomAudiencesMixedValue,isEveryCampaignAdvantageAudienceEnabled:this.props.isEveryCampaignAdvantageAudienceEnabled,isExcludedCustomAudiencesMixedValue:this.props.isExcludedCustomAudiencesMixedValue,isFromSavedAudience:this.props.isFromSavedAudience,isFromTargetingAudienceEditor:!0,isNCATurnedOn:this.state.isNCATurnedOn,isNewSavedAudienceCreation:this.props.isNewSavedAudienceCreation,isOnsiteDonateAd:this.props.isOnsiteDonateAd,isPersonalAdAccount:!this.props.accountInfo.business,isProgressiveDisclosureEnabled:this.props.isProgressiveDisclosureEnabled,isReachFrequency:this.props.isReachFrequency,isTargetingYouthByAge:this.props.isTargetingYouthByAge,isUntrustedAccount:this.props.accountInfo.is_tier_0,logDataSource:this.props.logDataSource,numCampaigns:this.props.numCampaigns,objective:this.props.objectiveData.objective,optimizationGoal:this.props.optimizationGoal,pageID:this.props.pageID,pageTypes:this.props.pageTypes,passTargetingFrictionAdvantageProductsGuidance:this.state.passTargetingFrictionAdvantageProductsGuidance,placeholder:this.props.placeholder,productCatalogID:this.props.productCatalogID,promotedObjectType:this.props.promotedObjectType,regulatedCategories:this.props.regulatedCategories,selectedAudienceType:this.props.selectedAudienceType,selectedRegulatedCategory:this.props.selectedRegulatedCategory,shouldEnableIos14AppInstallPrepChanges:this.props.shouldEnableIos14AppInstallPrepChanges,shouldEnableIos14AppInstallSignalLossChanges:this.props.shouldEnableIos14AppInstallSignalLossChanges,shouldEnableNonAppInstallSignalLossChanges:this.props.shouldEnableNonAppInstallSignalLossChanges,shouldHideExpansionComponents:this.props.targetingAutomationIndividualSettingType!=null,shouldShowVBLALInVOBanner:d("AdsTargetingVBLALUpsellUtils").shouldUseVBLALInVOBanner(this.props.optimizationGoal,this.props.objectiveData.objective,this.state.shouldAdAccountUseVBLALInVO),shouldUseSnapshotForDynamicCA:this.props.shouldUseSnapshotForDynamicCA,specialAdCategoryCountries:(b=this.props.specialAdCategoryCountries)!=null?b:[],tafeCaMitigationStrategiesBulkSpec:this.props.tafeCaMitigationStrategiesBulkSpec,targetableAudiences:this.$48(),targetingCategoryLoadObject:this.props.targetingCategoryLoadObject,targetingPlugin:this.props.targetingPlugin,targetingRelaxationTypes:this.props.targetingRelaxationTypes,targetingRelaxationTypesBulkSpec:this.props.targetingRelaxationTypesBulkSpec,width:a,onChangeCustomAudiences:this.props.actions.changeCustomAudiences,onChangeExcludedAudiences:this.props.actions.changeExcludedAudiences,onCreateAudienceClick:this.$49,onExcludeAudience:this.props.disableExcludeCustomAudiences?void 0:this.$50,onIncludeAudience:this.$51,onRelaxationChange:this.props.actions.changeRelaxation,onRemoveAudience:this.$52,onRemoveAudienceGroup:this.$53},"tokenizer")};g.$26=function(){var a="";this.props.accountInfo.userpermissions&&this.props.accountInfo.userpermissions.data&&this.props.accountInfo.userpermissions.data.length>0&&(a=this.props.accountInfo.userpermissions.data[0].role);return a==="ADMIN"};g.$48=function(){var a=this.state.targetableAudiences;return a!=null?a.getValueEnforcing():c("immutable").Map()};g.$45=function(){if(this.state.isAdProposalCreationMode||this.props.disableAudienceCreation)return null;var a=this.context.getCustomProperties();return m.jsx(c("AdsTargetingAudienceCreationPopoverMenu.react"),{disableCustomAudienceCreationItem:a.disableCustomAudienceCreationItem,disableLookalikeAudienceCreationItem:a.disableLookalikeAudienceCreationItem,isReachFrequency:this.props.isReachFrequency,isSpecialAdAudienceDeprecationEnabled:this.state.passSpecialAdAudienceDeprecationPhase1GKSelector,isTargetingYouthByAge:this.props.isTargetingYouthByAge,ref:"createAudienceMenu",selectedRegulatedCategory:this.props.selectedRegulatedCategory,shouldExcludeMACA:this.props.shouldEnableIos14AppInstallPrepChanges},"creationMenu")};g.$39=function(){var a=this.$54();return this.state.isAdProposalCreationMode||!this.state.showAudienceCreationMenuNUX||this.props.disableAudienceCreation||this.props.selectedRegulatedCategory||!a?null:m.jsx(c("XUIAmbientNUX.react"),{behaviors:{ContextualLayerUpdateOnScroll:c("ContextualLayerUpdateOnScroll"),ContextualLayerAutoFlipBluetip:c("ContextualLayerAutoFlipBluetip"),ContextualLayerShowAndHideOnScrollOut:c("ContextualLayerShowAndHideOnScrollOut"),LayerHideOnBlur:c("LayerHideOnBlur"),LayerFadeOnHide:c("LayerFadeOnHide"),LayerFadeOnShow:c("LayerFadeOnShow")},contextRef:this.$54,customwidth:p,position:"right",shown:this.state.showAudienceCreationMenuNUX,width:"custom",onCloseButtonClick:this.$55,children:m.jsxs("div",{children:[i._("You can now quickly create a Lookalike Audience to use during ad set creation. Choose Lookalike Audience from the menu to get started."),m.jsx(c("Link.react"),{className:"_5is3",href:"https://www.facebook.com/business/help/231114077092092",target:"_blank",children:i._("Learn more")}),m.jsx("span",{children:"."})]})},"audienceNUX")};g.$14=function(){var a;if(!this.state.showCreateCustomAudienceDialog&&!this.state.showValueBasedDataFileUploadDialog&&!this.state.showDFCACreationDialog)return null;var b=c("CustomAudienceTosUtils").getTosRequirements();return m.jsx(c("AudienceManagerCreateAudienceFlatDialogSuspense.react"),{accountID:this.props.accountID,accountInfo:this.props.accountInfo,autoLaunch:(a=this.$56())!=null?a:void 0,dao:this.props.dao,disabledAudienceTypes:c("immutable").Set(),isAdsEditorEntrypoint:!0,isOnsiteDonateAd:this.props.isOnsiteDonateAd,selectedRegulatedCategory:!!this.props.selectedRegulatedCategory,showDFCACreationDialog:this.state.showDFCACreationDialog,showEngagementAudienceNUX:this.state.showEngagementAudienceNUX,tosAccepted:this.state.tosAccepted,tosRequirementsForAccount:b,width:n,onAudienceAdded:this.$57,onCancel:d("AdsTargetingAudienceActions").hideCreateCustomAudienceDialog})};g.$56=function(){return this.state.showValueBasedDataFileUploadDialog?{workflow_id:"value_based_data_file",from_vlal_cf_upsell:!0}:null};g.$15=function(){return!this.state.showLookalikeCreationDialog?null:m.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audience:this.state.lookalikeSeedAudience,bootloadLoader:c("JSResource")("AudienceManagerTieredLookalikeDialog.react").__setRef("AdsTargetingAudienceEditorContainer.react"),bootloadPlaceholder:r(),defaultCountry:this.props.lookalikePrefillCountry,selectedRegulatedCategory:this.props.selectedRegulatedCategory,width:n,onAudienceAdded:this.$57,onClose:d("AdsTargetingAudienceActions").hideCreateLookalikeAudienceDialog})};g.$47=function(){if(this.props.areAllCampaignsLALaaS!==!0)return!1;if(Boolean(this.props.isEveryCampaignAdvantageAudienceEnabled))return!1;var a=d("AdsDetailedTargetingRelaxationUtils").isAppInstallsOrMessagesObjective(this.state.selectedCampaigns,this.props.objectiveData.effectiveObjective);return!a?!0:this.props.areAllCampaignsNew===!1||this.state.shouldShowLALaaSGuidanceCard===!1};g.$46=function(){if(!A(this.props.areAllCampaignsLALaaS,this.props.areAllCampaignsNew,this.props.isEveryCampaignAdvantageAudienceEnabled)||this.state.shouldShowLALaaSGuidanceCard===!1)return!1;var a=d("AdsDetailedTargetingRelaxationUtils").isAppInstallsOrMessagesObjective(this.state.selectedCampaigns,this.props.objectiveData.effectiveObjective);return a};g.$59=function(a){if(a.subtype!=="CUSTOM")return!1;var b=this.state.tosAccepted;if(a.is_value_based)return!(b&&b.value_based_custom_audience_tos);else return!(b&&b.custom_audience_tos)};g.$22=function(a){if(!this.state.targetableAudiencesLoaded)return!1;if(this.state.targetableAudiences==null)return!1;var b=this.state.targetableAudiences.getValueEnforcing().toJS();return Object.keys(b).some(function(c){return b[c].subtype==="CUSTOM"&&b[c].is_value_based===a})};g.$58=function(a,b){c("AdsInterfacesLogger").log({eventName:b,data:(b={},b.targeting_ui_event_data=JSON.stringify({subtype:a.subtype,data_source:a.data_source,rule_v2:a.rule_v2,flow:this.props.logDataSource}),b)},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)};g.$8=function(a,b,e){var g;g=((g=b)!=null?g:[]).length>1;if(g){c("AdsTargetingAsASignalGuidanceCardImpressionsAction").dispatch({showCard:!1,cardName:e},{line:"2066",module:"AdsTargetingAudienceEditorContainer.react.js",moduleID:f.id});return}g=c("XAdsTargetingAsASignalImpressionsController").getURIBuilder().setString("ad_account_id",a).setEnum("card_placement",e).getURI();a=new(c("AsyncRequest"))().setURI(g).setHandler(function(a){a=a.payload;c("AdsTargetingAsASignalGuidanceCardImpressionsAction").dispatch({showCard:a,cardName:e},{line:"2082",module:"AdsTargetingAudienceEditorContainer.react.js",moduleID:f.id})}).setErrorHandler(function(a){d("AdsTargetingSignalLossUtils").logTargetingUserEventWithCampaignIDsOnce("targeting_as_a_signal_impression_controller_error",(a=b)!=null?a:[],{card_placement:e});c("AdsTargetingAsASignalGuidanceCardImpressionsAction").dispatch({showCard:!1,cardName:e},{line:"2094",module:"AdsTargetingAudienceEditorContainer.react.js",moduleID:f.id})});a.send()};return e}(a);e.contextTypes={getCustomProperties:c("prop-types").func.isRequired};h=c("AdsFluxContainer").create(e,{withProps:!0,name:f.id});g["default"]=h}),226);
-----
DataFileCustomAudienceUserLevelTOSModal.react",["fbt","ix","BUIButton.react","BUIModal.react","BUIModalFooter.react","BUISection.react","BUIText.react","FlexLayout.react","Image.react","ImageBlock.react","Link.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=k.jsx(c("Image.react"),{src:i("396621")}),m=h._("Requirements for using custom audiences"),n=h._("Requirements for using value-based Custom Audiences"),o=h._("To use Custom Audiences, you must be: an advertiser; an agency or data provider acting on behalf of an advertiser; or a Marketing API or Custom Audiences API partner."),p=h._("Advertisers and those who run ads on their behalf are ultimately responsible for acknowledging their permission to share and use people"s data."),q=function(a){return h._("You are accepting terms on behalf of {business_name}",[h._param("business_name",k.jsx("strong",{children:a}))])},r=function(a,b){b=b===!0?k.jsx(c("Link.react"),{href:"/customaudiences/value_based/tos.php?act="+a,target:"_blank",children:h._("Meta Business Tools Terms")}):k.jsx(c("Link.react"),{href:"/ads/manage/customaudiences/tos.php?act="+a,target:"_blank",children:h._("Custom audience terms")});return h._("By clicking "I Accept", you agree to the {custom_audience_terms}.",[h._param("custom_audience_terms",b)])};a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
AudienceManagerCreateAudienceFlatDialogContainer.react",["cx","AdsAMAccountAcceptedTosAddAction","AdsAMCreateAudienceServerActions","AdsAMCreateAudienceStore","AdsAMCreateAudienceViewActions","AdsAMEngagementAudienceCreatedActionFlux","AdsAMFileImportCreateAudienceCompleteAction","AdsAMMailChimpFetchCompleteActionFlux","AdsAMMailChimpUploadCompleteActionFlux","AdsAMViewCloseMoveAdAccoutToBusinessDialogAction","AdsAccountStore","AdsAccountUtils","AdsAudienceCreationDialogConstants","AdsAudienceUploaderFlowNextSteps.react","AdsCustomAudienceType","AdsDfcaLalasGuidanceCustomerListSelectionModal.react","AdsEngagementAudienceUILogger","AdsGeodesicAdoption","AdsGraphAPI","AdsInterfacesLogger","AdsManagerIGLoginUtils","AdsManagerUserPermissions","AdsTargetingAudienceEditorGKSelectors","AdsTargetingBootloadDialog.react","AsyncRequest","AudienceManagerCompleteUploadMessage.react","AudienceManagerCreateAudienceCompleteDialogContent.react","AudienceManagerCreateAudienceFlatDialogConstants","AudienceManagerCreateAudienceFlatDialogMainMenu.react","AudienceManagerCreateAudienceFlatDialogUtils","AudienceManagerCustomerListAudienceStepperModal.react","AudienceManagerCustomerListAudienceStepperModalV2.react","AudienceManagerErrorDialogContent.react","AudienceManagerLoggingEvents","AudienceManagerMailChimpInitDialogContent.react","AudienceManagerMailChimpSelectListDialogContent.react","AudienceManagerNextStepDialogContent.react","AudienceManagerShouldDisableMACAAsLookalikeSourceProvider","AudienceManagerSubscriberListStepperModal.react","AudienceManagerTieredLookalikeDialog.react","AudienceManagerUIConstants","AudienceManagerUploadDialogContent.react","BusinessManagerUpsellContainer.brands","CometPlaceholder.react","CreateCAStages","CustomAudienceTosUtils","CustomAudienceUtils","DataFileCustomAudienceUserLevelTOSModal.react","FluxContainer","GeoSpinner.react","JSResource","MarketingMessagesGKUtils","PopupWindow","RelayFBEnvironment","RelayHooks","XCheckUserHasMMWABAPermissionControllerRouteBuilder","XUIDialogTitle.react","lazyLoadComponent","promiseDone","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=c("AudienceManagerShouldDisableMACAAsLookalikeSourceProvider").toFluxSelector(),l="",m=c("lazyLoadComponent")(c("JSResource")("AudienceManagerCreateMultikeyAudienceImportDialogContainer.react").__setRef("AudienceManagerCreateAudienceFlatDialogContainer.react")),n=c("lazyLoadComponent")(c("JSResource")("AdsCreatePlatformAudienceDialogContainer.react").__setRef("AudienceManagerCreateAudienceFlatDialogContainer.react"));a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var g=arguments.length,h=new Array(g),i=0;i0?this.state.currentPage.toString():null,dao:this.props.dao,isOnsiteDonateAd:this.props.isOnsiteDonateAd,isWcaTosAccepted:c("CustomAudienceTosUtils").isWcaTosAccepted(this.props.tosAccepted),selectedRegulatedCategory:this.props.selectedRegulatedCategory,signalSourceType:e,onAudienceAdded:this.props.onAudienceAdded,onBack:d("AudienceManagerCreateAudienceFlatDialogUtils").onBackToMainMenu,onCancel:this.$4,onCreateAudience:this.$24,onFinishCreateAudience:this.$25})}):null;case d("AdsAMEngagementAudienceCreatedActionFlux").actionType:return j.jsx(c("AdsTargetingBootloadDialog.react"),{bootloadLoader:c("JSResource")("AdsAudienceCreationOrUpdateSuccessDialogGeodesic.react").__setRef("AudienceManagerCreateAudienceFlatDialogContainer.react"),dialogTitle:d("AdsAudienceCreationDialogConstants").CREATE_VIDEO_ECA_MODAL_TITLE,disableMACAAsLookalikeSource:!1,isCreateAudience:!0,selectedRegulatedCategory:this.props.selectedRegulatedCategory,onCompleteClick:this.$4,onCreateAdItemClick:this.$13,onLookalikeItemClick:this.$14});case c("CreateCAStages").CREATION_COMPLETE_NEXT_STEP:return d("AudienceManagerCreateAudienceFlatDialogUtils").getBootloadDialog(this,j.jsx(c("AudienceManagerNextStepDialogContent.react"),{selectedRegulatedCategory:this.props.selectedRegulatedCategory,onCreateAdClick:this.$13,onCreateLookalikeClick:this.$14,onFinish:this.$21}),this.$4,this.$16,null,d("AdsAudienceCreationDialogConstants").CUSTOM_AUDIENCE_CREATION_DIALOG_WIDTH);case c("CreateCAStages").CREATE_VIDEO_AUDIENCE:return j.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,bootloadLoader:c("JSResource")("AudienceManagerEngagementAudienceDialogGeodesicContainer.react").__setRef("AudienceManagerCreateAudienceFlatDialogContainer.react"),isCreateAudience:!0,isIGLogin:this.state.isIGLogin,onAudienceAdded:this.props.onAudienceAdded,onBack:d("AudienceManagerCreateAudienceFlatDialogUtils").onBackToMainMenu,onCancel:this.$4,onSaveAudience:this.$26});case c("CreateCAStages").CREATE_CATALOG_AUDIENCE:return j.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,bootloadLoader:c("JSResource")("AudienceManagerCatalogAudienceDialogContainer.react").__setRef("AudienceManagerCreateAudienceFlatDialogContainer.react"),isCreateAudience:!0,onAudienceAdded:this.props.onAudienceAdded,onBack:d("AudienceManagerCreateAudienceFlatDialogUtils").onBackToMainMenu,onCancel:this.$4,onSaveAudience:this.$27});case c("CreateCAStages").CREATE_CANVAS_AUDIENCE:return j.jsx(c("CometPlaceholder.react"),{fallback:b,name:f.id,children:j.jsx(n,{accountID:this.props.accountID,dao:this.props.dao,isWcaTosAccepted:c("CustomAudienceTosUtils").isWcaTosAccepted(this.props.tosAccepted),signalSourceType:"canvas",onAudienceAdded:this.props.onAudienceAdded,onBack:d("AudienceManagerCreateAudienceFlatDialogUtils").onBackToMainMenu,onCancel:this.$4,onCreateAudience:this.$24,onFinishCreateAudience:this.$25})})}return null};e.render=function(){return j.jsx(d("AdsGeodesicAdoption").AdsGeodesicAdoptionDisabledProvider,{children:this.$3()})};e.$8=function(){return c("CustomAudienceTosUtils").isDataFileUserLevelTosAccepted(this.props.tosAccepted)};e.$9=function(){return c("CustomAudienceTosUtils").isWeightedTosAccepted(this.props.tosAccepted)};e.$12=function(){var a=this.props.tosRequirementsForAccount.custom_audience;return!!this.props.tosAccepted.custom_audience_tos||Object.prototype.hasOwnProperty.call(this.props.tosAccepted,a)&&this.props.tosAccepted[a]==1};e.$29=function(a){var b={};Object.entries(this.state.audiences).filter(function(a){a[0];a=a[1];return a.subtype===c("AdsCustomAudienceType").SUBTYPES.ENGAGEMENT}).forEach(function(a){var c=a[0];a=a[1];b[c]=a});Object.keys(b).length&&d("AdsEngagementAudienceUILogger").log(a,{audiences:b})};e.$30=function(a){var b=[];for(var c in a){var d=a[c].name,e=a[c].description;(d!==this.state.audiences[c].name||!!e)&&b.push(a[c])}return b};e.$31=function(a){var b=this,c=[];Object.keys(a).forEach(function(d){a[d]&&c.push(b.state.selectableContactsLists[d])});return c};return b}(j.PureComponent);a.defaultProps={openedFromAudienceManager:!1};b=c("FluxContainer").create(a,{withProps:!0});g["default"]=b}),98);
-----
LeadsManagerViewReducer",[],(function(a,b,c,d,e,f){"use strict";function a(a){return{settingsViewShown:!1,showCSVImportSection:!1,isShowingToS:!a.isToSAccepted}}function b(a,b){switch(b.type){case"LEADS_MANAGER_SETTINGS_VIEW":return babelHelpers["extends"]({},a,{showCSVImportSection:!1,settingsViewShown:b.settingsViewShown});case"LEADS_MANAGER_TOGGLE_CSV_IMPORT_SECTION":return babelHelpers["extends"]({},a,{settingsViewShown:!1,showCSVImportSection:b.showCSVImportSection});case"LEADS_MANAGER_TOGGLE_TOS_MODAL":return babelHelpers["extends"]({},a,{isShowingToS:b.showToSModal,settingsViewShown:!1,showCSVImportSection:!1});default:return a}}f.getInitialViewState=a;f.viewReducer=b}),66);
-----
BizKitContextCardActivityListItem.react",["cx","fbt","ix","BizInboxStateContext","BizKitContextCardActivityListItemActionsMenu.react","BizKitContextCardActivityListItemDetail.react","BizKitContextCardActivityListItemIcon.react","BizKitContextCardActivityListItem_mbsBusinessAssets.graphql","BizKitContextCardActivityListItem_node.graphql","BizKitContextCardActivityListItem_page.graphql","GeoIcon.react","GeoText.react","GeoTooltip.react","LeftRight.react","RelayHooks","ShimButton.react","Timestamp.react","fbicon","formatDate","getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils","react"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l,m,n,o=n||(n=d("react"));e=n;var p=e.useContext,q=e.useState,r=k!==void 0?k:k=b("BizKitContextCardActivityListItem_node.graphql"),s=o.createRef();function a(a){var e,f=a.data,g=a.isInKBankRollout,h=a.mbsBusinessAssets,k=a.onShowContactCardTosModal,n=a.page,t=a.pageContactID,u=a.pageID,v=a.selectInteraction;a.shouldRemovePageVCDependency;var w=a.shouldShowContactCardTos,x=a.surface;a=a.userID;var y=q(!1),z=y[0],A=y[1],B=d("RelayHooks").useFragment(r,f);y=k;f=w;k=d("RelayHooks").useFragment(l!==void 0?l:l=b("BizKitContextCardActivityListItem_page.graphql"),n);w=d("RelayHooks").useFragment(m!==void 0?m:m=b("BizKitContextCardActivityListItem_mbsBusinessAssets.graphql"),h);n=d("getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils").getIsDependencyOfRemovePageDependencyEnabledToolForContactCard(x);h=n?w:k;w=(h==null?void 0:(n=h.timelineActionsCheck)==null?void 0:n.showTimelineActions)===!0;n=(h=(k=B.contact_action)==null?void 0:k.descriptions.map(function(a){return(a=a.text)!=null?a:""}).filter(function(a){return a!==""}))!=null?h:[];k=p(c("BizInboxStateContext"));h=k.defaultCurrency;k=((k=B.contact_action)==null?void 0:k.is_auto_detected)===!0?(k=B.contact_action)==null?void 0:k.data_silo_auto_detected_activity:(k=B.contact_action)==null?void 0:k.data_silo;e=((e=B.contact_action)==null?void 0:e.is_auto_detected)!==!0&&k!=="SP_SILO_BUSINESS";k=(k=B.contact_action)==null?void 0:k.type;var C=x==="INBOX_MESSAGING_FB"||x==="INBOX_MESSAGING_IG";if(C){var D;C=o.jsx("div",{onMouseEnter:function(){s.current==null&&A(!0)},onMouseLeave:function(){A(!1)},children:o.jsx(c("ShimButton.react"),{className:"_5-vm"+(((D=B.contact_action)==null?void 0:(D=D.story)==null?void 0:D.id)?" _cxw":""),onClick:function(){v!=null&&v(B)},children:o.jsxs(c("LeftRight.react"),{direction:"left",children:[o.jsx(c("BizKitContextCardActivityListItemIcon.react"),{isCorporationActivity:e,actionType:k,shouldShowNewActivityDesign:C}),o.jsxs("div",{className:"xy80clv xod5an3 x540dpk x1gslohp",children:[o.jsxs(c("LeftRight.react"),{children:[o.jsx(c("GeoText.react"),{children:(D=(D=B.contact_action)==null?void 0:(C=D.title)==null?void 0:C.text)!=null?D:""}),u!=null&&o.jsx(c("BizKitContextCardActivityListItemActionsMenu.react"),{actionType:k,defaultCurrency:h,descriptions:n,dialogRef:s,interactionID:(C=B.contact_action)==null?void 0:C.interaction_id,invoiceID:(D=B.contact_action)==null?void 0:D.invoice_id,pageID:u,surface:x,pageContactID:t,onShowContactCardTosModal:y,shouldShowContactCardTos:f,shouldShow:z,userID:a})]}),o.jsx("div",{className:"x1a2yejm",children:((C=B.contact_action)==null?void 0:C.style)==="DETAIL"&&o.jsx(c("BizKitContextCardActivityListItemDetail.react"),{actionType:k,clickUrl:(D=B.contact_action)==null?void 0:D.click_url,descriptions:n,imageUrl:(C=B.contact_action)==null?void 0:C.image_url,interactionID:(D=B.contact_action)==null?void 0:D.interaction_id,invoiceID:(C=B.contact_action)==null?void 0:C.invoice_id,isInKBankRollout:g==!0,pageID:u,onShowContactCardTosModal:y,shouldShowContactCardTos:f,subtitle:(D=B.contact_action)==null?void 0:(C=D.subtitle)==null?void 0:C.text,timestamp:(D=B.contact_action)==null?void 0:D.timestamp,userID:a})}),o.jsxs("div",{className:"x78zum5",children:[o.jsx("div",{className:"x17ddzgb xuol047 x4yy6wa",children:o.jsx(c("Timestamp.react"),{text:c("formatDate")((C=B.contact_action)==null?void 0:C.timestamp,"D M j, Y g:ia"),time:Number((D=B.contact_action)==null?void 0:D.timestamp)})}),o.jsx("div",{children:o.jsxs("div",{className:"x78zum5",children:[o.jsx("div",{className:"x1nx2rwh",children:((C=B.contact_action)==null?void 0:C.is_auto_detected)===!0&&o.jsx(c("GeoTooltip.react"),{content:i._("This activity was created by an automation."),position:"right",children:o.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(j("572392"),16)})})}),((D=B.contact_action)==null?void 0:D.show_ad_icon)===!0&&o.jsx(c("GeoTooltip.react"),{content:i._("This activity will be shared with Meta to improve ads. You can manage this with your data sharing preferences."),position:"right",children:o.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(j("508086"),16)})})]})})]})]})]})})});return C}return o.jsx("div",{onMouseEnter:function(){s.current==null&&A(!0)},onMouseLeave:function(){A(!1)},children:o.jsxs(c("ShimButton.react"),{className:"_5-vm"+(((D=B.contact_action)==null?void 0:(C=D.story)==null?void 0:C.id)?" _cxw":""),onClick:function(){v!=null&&v(B)},children:[o.jsxs(c("LeftRight.react"),{children:[o.jsxs(o.Fragment,{children:[o.jsx(c("BizKitContextCardActivityListItemIcon.react"),{isCorporationActivity:e,actionType:k}),o.jsx(c("GeoText.react"),{children:(e=(D=B.contact_action)==null?void 0:(C=D.title)==null?void 0:C.text)!=null?e:""})]}),w&&u!=null&&o.jsx(c("BizKitContextCardActivityListItemActionsMenu.react"),{actionType:k,defaultCurrency:h,descriptions:n,dialogRef:s,interactionID:(D=B.contact_action)==null?void 0:D.interaction_id,invoiceID:(C=B.contact_action)==null?void 0:C.invoice_id,pageID:u,surface:x,pageContactID:t,onShowContactCardTosModal:y,shouldShowContactCardTos:f,shouldShow:z,userID:a})]}),o.jsxs("div",{className:"xy80clv xod5an3 x1mnrxsn x1gslohp",children:[((e=B.contact_action)==null?void 0:e.style)==="DETAIL"&&o.jsx(c("BizKitContextCardActivityListItemDetail.react"),{actionType:k,clickUrl:(w=B.contact_action)==null?void 0:w.click_url,descriptions:n,imageUrl:(h=B.contact_action)==null?void 0:h.image_url,interactionID:(D=B.contact_action)==null?void 0:D.interaction_id,invoiceID:(C=B.contact_action)==null?void 0:C.invoice_id,isInKBankRollout:g==!0,pageID:u,onShowContactCardTosModal:y,shouldShowContactCardTos:f,subtitle:(x=B.contact_action)==null?void 0:(t=x.subtitle)==null?void 0:t.text,timestamp:(z=B.contact_action)==null?void 0:z.timestamp,userID:a}),o.jsxs("div",{className:"x78zum5",children:[o.jsx("div",{className:"x17ddzgb xuol047 x4yy6wa",children:o.jsx(c("Timestamp.react"),{text:c("formatDate")((e=B.contact_action)==null?void 0:e.timestamp,"D M j, Y g:ia"),time:Number((k=B.contact_action)==null?void 0:k.timestamp)})}),o.jsxs("div",{className:"x78zum5",children:[o.jsx("div",{className:"x1nx2rwh",children:((w=B.contact_action)==null?void 0:w.is_auto_detected)===!0&&o.jsx(c("GeoTooltip.react"),{content:i._("This activity was created by an automation."),position:"right",children:o.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(j("572392"),16)})})}),((n=B.contact_action)==null?void 0:n.show_ad_icon)===!0&&o.jsx(c("GeoTooltip.react"),{content:i._("This activity will be shared with Meta to improve ads. You can manage this with your data sharing preferences."),position:"right",children:o.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(j("508086"),16)})})]})]})]})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardActivityListItemDetail.react",["ix","GeoLink.react","Image.react","JSResource","LeftRight.react","MNCommerceDialogStateActions","MessengerAdsConversionFunnelTypedLogger","MessengerConversionEvent","PagesPlatformBookingMessageViewer","ServicesAppointmentDialogRoot.react","ServicesAppointmentManagementDialogEnum","emptyFunction","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useState,l=c("lazyLoadComponent")(c("JSResource")("MNCommerceOrderDetailsDialogContainer.react").__setRef("BizKitContextCardActivityListItemDetail.react")),m=c("lazyLoadComponent")(c("JSResource")("OrderShippedDetailDialog.react").__setRef("BizKitContextCardActivityListItemDetail.react")),n=c("lazyLoadComponent")(c("JSResource")("FBPaymentsReceiptDialog.react").__setRef("BizKitContextCardActivityListItemDetail.react")),o={referrerUIComponent:"composer",referrerUISurface:"message"};function a(a){var b=a.actionType,e=a.clickUrl,g=a.descriptions,i=a.imageUrl;a.interactionID;var p=a.invoiceID,q=a.isInKBankRollout,r=a.onShowContactCardTosModal,s=a.pageID,t=a.shouldShowContactCardTos,u=a.subtitle;a.timestamp;var v=a.userID;a=k(!1);var w=a[0],x=a[1];if(g.length===0)return null;function y(){var a=r,f=t,g=function(){if(f)return a();x(!0)},h=function(){x(!1)},i=null,k=u;if(e!=null)k=j.jsx(c("GeoLink.react"),{href:e,target:"_blank",children:u});else if(b!=null)switch(b){case"APPOINTMENT_BOOKED":p!=null&&s!=null&&(k=j.jsx(c("GeoLink.react"),{onClick:function(){g(),new(c("MessengerAdsConversionFunnelTypedLogger"))().setName(c("MessengerConversionEvent").PAGE_CLICK_APPOINTMENT_BOOKED_CTA).setPageID(s).setConsumerID(v).log()},children:u}),i=j.jsx(c("ServicesAppointmentDialogRoot.react"),{causalElementRef:c("emptyFunction"),dialogType:c("ServicesAppointmentManagementDialogEnum").VIEW_DETAILS,onToggle:x,pageID:s,referrerData:o,requestID:p,showMessengerButton:!1,shown:w,userID:v,viewer:c("PagesPlatformBookingMessageViewer").ADMIN}));break;case"PAYMENT_RECEIVED":p!=null&&(k=j.jsx(c("GeoLink.react"),{onClick:function(){g(),new(c("MessengerAdsConversionFunnelTypedLogger"))().setName(c("MessengerConversionEvent").PAGE_CLICK_PAYMENT_RECEIVED_CTA).setPageID(s).setConsumerID(v).log()},children:u}),i=j.jsx(j.Suspense,{fallback:null,children:j.jsx(n,{actorID:s,onDialogToggle:x,receiptClientType:"pages_commerce",receiptID:p})}));break;case"ORDER_SHIPPED":p!=null&&s!=null&&(k=j.jsx(c("GeoLink.react"),{onClick:g,children:u}),i=j.jsx(j.Suspense,{fallback:null,children:j.jsx(m,{invoiceID:p,isInKBankRollout:q,onToggle:h,pageID:s})}));break;case"ORDER_PLACED":if(p!=null){h=function(){d("MNCommerceDialogStateActions").showDialog(l,{receiptID:p})};k=j.jsx(c("GeoLink.react"),{onClick:h,children:u})}break;default:break}return j.jsxs("div",{className:"x117nqv4 xahult9 xsgj6o6 x1gslohp x6ikm8r x10wlt62 xlyipyv xuxw1ft",children:[k,w&&i]})}y.displayName=y.name+" [from "+f.id+"]";function z(){return g.map(function(a,b){var d=a;e!=null&&(d=j.jsx(c("GeoLink.react"),{href:e,target:"_blank",children:a}));return j.jsx("div",{className:"x17ddzgb x6ikm8r x10wlt62 xlyipyv x16dsc37 xuxw1ft",children:d},b)})}function A(){if(b==null)return null;var a={width:"56px",height:"56px",borderRadius:"4px",marginBottom:"2px",marginLeft:"16px",marginRight:"8px"};if(i!=null)return e!=null?j.jsx("a",{href:e,target:"_blank",children:j.jsx(c("Image.react"),{src:i,style:a})}):j.jsx(c("Image.react"),{src:i,style:a});a=null;switch(b){case"APPOINTMENT_BOOKED":a=h("994823");break;case"ORDER_SHIPPED":a=h("802395");break;case"ORDER_PLACED":a=h("1059944");break;case"PAYMENT_RECEIVED":case"BUSINESS_ORDER":a=h("994823");break;default:break}return a===null?null:j.jsx("div",{className:"x1q8sqs3 x1lcm9me x1yr5g0i xrt01vj x10y3i5r xxk0z11 xjpr12u x1d52u69 x1emribx xyamay9 x1pi30zi x1l90r2v x1swvt13 xvy4d1p",children:j.jsx(c("Image.react"),{src:a})})}A.displayName=A.name+" [from "+f.id+"]";return j.jsxs(c("LeftRight.react"),{direction:"left",children:[A(),j.jsxs(j.Fragment,{children:[y(),z()]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivityListItemActionsMenu.react",["cx","fbt","ix","BUIContextualLayer.react","BUIMenu.react","BizKitContextCardUtils","CTMEPDChecker","ContactGraphDeleteActivityCancelFlowFalcoEvent","ContactGraphDeleteActivityClickFalcoEvent","ContactGraphDeleteActivityDeleteFalcoEvent","GeoIcon.react","JSResource","PagesInboxThreadActionSystemDispatcher","PagesManagerInboxDeleteActivityMutation","ServicesAppointmentManagementDialogEnum","ThreadActionSystemTimelineActionFalcoEvent","emptyFunction","fbicon","lazyLoadComponent","nullthrows","promiseDone","react","stylex"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l,m=l||(l=d("react"));b=l;var n=b.useEffect,o=b.useRef,p=b.useState,q=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxThreadActionSystemOrderPlacedDialog.react").__setRef("BizKitContextCardActivityListItemActionsMenu.react")),r=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxThreadActionSystemAppointmentDialog").__setRef("BizKitContextCardActivityListItemActionsMenu.react")),s=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxOrderShippedActivitySendDetailsDialog.react").__setRef("BizKitContextCardActivityListItemActionsMenu.react")),t=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxDeleteActivityConfirmationDialog.react").__setRef("BizKitContextCardActivityListItemActionsMenu.react")),u={actionMenuHidden:{visibility:"xlshs6z",$$css:!0}};function v(a){return a==="APPOINTMENT_BOOKED"||a==="ORDER_PLACED"||a==="ORDER_SHIPPED"||a==="PAYMENT_RECEIVED"||a==="LEAD_DETECTED"}function w(a){var b=a.actionType,d=a.hasDetails,e=a.pageID,f=a.timelineActionType,g=a.userID;if(g==null||e==null)return;var h=x(b);if(h==null)return;c("ThreadActionSystemTimelineActionFalcoEvent").log(function(){return{activity_type:h,consumer_id:g,has_details:d,page_id:e,timeline_action_type:f}})}function x(a){if(a==null)return null;switch(a){case"PAYMENT_RECEIVED":return"PAYMENT_RECEIVED";case"APPOINTMENT_BOOKED":return"APPOINTMENT_BOOKED";case"ORDER_PLACED":return"ORDER_PLACED";case"ORDER_SHIPPED":return"ORDER_SHIPPED";default:return null}}function y(a){var b=a.actionType,d=a.defaultCurrency,e=a.interactionID,f=a.onHide,g=a.pageID,h=a.userID;if(b==null)return null;var i=function(){w({actionType:b,hasDetails:!1,pageID:g,timelineActionType:"send_details",userID:h})};switch(b){case"APPOINTMENT_BOOKED":return m.jsx(m.Suspense,{fallback:null,children:m.jsx(r,{dialogType:c("ServicesAppointmentManagementDialogEnum").CREATE_ANOTHER_APPOINTMENT,interactionID:e,onToggle:f,onUpdateCompleted:function(a,b){a&&(c("PagesInboxThreadActionSystemDispatcher").dispatch(!0),i())},pageID:g,shown:!0,userID:h})});case"ORDER_PLACED":return e==null||h==null?null:m.jsx(m.Suspense,{fallback:null,children:m.jsx(q,{defaultCurrency:d,entryPoint:"activity_actions_menu",interactionID:e,onHide:f,onSuccess:i,pageID:g,userID:h})});case"ORDER_SHIPPED":return g==null||h==null?null:m.jsx(m.Suspense,{fallback:null,children:m.jsx(s,{onHide:f,onSuccess:i,pageID:g,userID:h})});default:return null}}y.displayName=y.name+" [from "+f.id+"]";function z(a){var b=a.actionType,e=a.descriptions,f=a.interactionID,g=a.invoiceID,h=a.onHide,i=a.pageContactID,j=a.pageID,k=a.surface,l=a.userID,n=e.length!==0,o=function(){c("ContactGraphDeleteActivityDeleteFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(k),page_id:j,page_contact_id:i,event_data:{activity_id:f},is_server_log:!1}}),d("PagesManagerInboxDeleteActivityMutation").commit({consumerID:l,pageID:j,interactionID:c("nullthrows")(f)},{onSuccess:function(){c("PagesInboxThreadActionSystemDispatcher").dispatch(!0),w({actionType:b,hasDetails:n,pageID:j,timelineActionType:"delete",userID:l})},onFailure:c("emptyFunction")})};a=function(){c("ContactGraphDeleteActivityCancelFlowFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(k),page_id:j,page_contact_id:i,event_data:{activity_id:f},is_server_log:!1}})};return n&&b==="APPOINTMENT_BOOKED"?j==null||g==null?null:m.jsx(m.Suspense,{fallback:null,children:m.jsx(r,{dialogType:c("ServicesAppointmentManagementDialogEnum").ADMIN_CANCEL,interactionID:f,onToggle:h,onUpdateCompleted:function(a,b){a&&o()},pageID:j,requestID:g,shown:!0,userID:l})}):m.jsx(m.Suspense,{fallback:null,children:m.jsx(t,{onDeleteConfirm:o,onCancelConfirm:a,onHide:h})})}z.displayName=z.name+" [from "+f.id+"]";function A(a){var b=a.actionType,d=a.defaultCurrency,e=a.interactionID,f=a.invoiceID,g=a.onHide,h=a.pageID,i=a.userID;if(b==null)return null;var j=function(){w({actionType:b,hasDetails:!0,pageID:h,timelineActionType:"edit",userID:i})};switch(b){case"APPOINTMENT_BOOKED":return m.jsx(m.Suspense,{fallback:null,children:m.jsx(r,{dialogType:c("ServicesAppointmentManagementDialogEnum").EDIT,interactionID:e,onToggle:g,onUpdateCompleted:function(a,b){a&&(c("PagesInboxThreadActionSystemDispatcher").dispatch(!0),j())},pageID:h,requestID:f,shown:!0,userID:i})});case"ORDER_PLACED":return e==null||i==null||f==null?null:m.jsx(m.Suspense,{fallback:null,children:m.jsx(q,{defaultCurrency:d,entryPoint:"activity_actions_menu",interactionID:e,invoiceID:f,onHide:g,onSuccess:j,pageID:h,userID:i})});default:return null}}A.displayName=A.name+" [from "+f.id+"]";function a(a){var b=a.actionType,e=a.defaultCurrency,f=a.descriptions,g=a.dialogRef,h=a.interactionID,l=a.invoiceID,q=a.onShowContactCardTosModal,r=a.pageContactID,s=a.pageID,t=a.shouldShow,w=a.shouldShowContactCardTos,x=a.surface;a=a.userID;var B=o(null),C=p(!1),D=C[0],E=C[1];C=p(!1);var F=C[0],G=C[1];C=p(!1);var H=C[0],I=C[1];C=p(!1);var J=C[0],K=C[1];C=p(!1);C[0];var L=C[1];c("promiseDone")(d("CTMEPDChecker").isCTMEPDAffected(s,a).then(function(a){return L(a)}));var M=q,N=w;C=p(t);var O=C[0],P=C[1];n(function(){P(t&&!F&&!H&&!J)},[t,F,H,J]);n(function(){O||E(!1)},[O]);var Q=o(null),R=function(a){var b;a.target instanceof Node&&!((b=Q.current)==null?void 0:b.contains==null?void 0:b.contains(a.target))&&E(!1)};n(function(){D&&document.addEventListener("click",R,!1);return function(){document.removeEventListener("click",R,!1)}},[D]);if(!v(b))return null;q=function(a){if(h==null)return;var b=function(){K(!0),c("ContactGraphDeleteActivityClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(x),page_id:s,page_contact_id:r,event_data:{activity_id:h},is_server_log:!1}})};a.push({type:"item",label:i._("Delete"),onClick:b})};w=[];q(w);return m.jsxs("div",{className:(k||(k=c("stylex")))(!O&&u.actionMenuHidden),children:[m.jsxs("div",{onClick:function(){if(N)return M();E(!D)},ref:B,role:"none",children:[m.jsx("div",{className:"_9ml3",children:m.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(j("484386"),16)})}),D&&B.current!=null&&m.jsx(c("BUIContextualLayer.react"),{align:"end",context:B.current,children:m.jsx("div",{ref:Q,children:m.jsx(c("BUIMenu.react"),{items:w})})})]}),F&&m.jsx("div",{ref:g,children:m.jsx(y,{actionType:b,defaultCurrency:e,interactionID:h,onHide:function(){return G(!1)},pageID:s,userID:a})}),J&&m.jsx("div",{ref:g,children:m.jsx(z,{actionType:b,descriptions:f,interactionID:h,invoiceID:l,onHide:function(){return K(!1)},pageID:s,userID:a,surface:x,pageContactID:r})}),H&&m.jsx("div",{ref:g,children:m.jsx(A,{actionType:b,defaultCurrency:e,interactionID:h,invoiceID:l,onHide:function(){return I(!1)},pageID:s,userID:a})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
ARHubTos.react",["ARHubTosModal.react","asyncToGeneratorRuntime","react","useARHubEffectDismissMessage","useARHubUserHasDismissedMessage"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));e=h;var j=e.useCallback,k=e.useEffect,l=e.useState;function a(){var a=l(!1),d=a[0],e=a[1];a=c("useARHubEffectDismissMessage")();var f=a[0];a[1];a="https://fb.me/MetaSparkTerms";var g="https://fb.me/MetaSparkStudioTerms",h="hamlet_tos_modal",m=c("useARHubUserHasDismissedMessage")({dismissableCardtype:h,paramList:[]}),n=j(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield f({cardType:h,params:[]}),e(!0)}),[f,h]),o=function(){window.open("https://fb.me/MetaSparkTerms","_blank")};k(function(){if(m)return},[m,d]);return i.jsx(c("ARHubTosModal.react"),{isShown:!(d||m),onAccept:n,onLearnMore:o,tosLink:a,tosStudioLink:g})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
ARHubTosModal.react",["fbt","ix","GeoBlockingDialog.react","GeoButton.react","GeoHeading.react","GeoLink.react","GeoModalFooter.react","GeoSection.react","GeoText.react","IPB4BImage.react","geoMargin","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l={container:{"@media (min-width: 700px)_minWidth":"x17ld54g",$$css:!0}};function a(a){var b=a.isShown,d=a.onAccept,e=a.onLearnMore,f=a.tosLink;a=a.tosStudioLink;return k.jsx(c("GeoBlockingDialog.react"),{"data-testid":void 0,footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{label:h._("u63a5u53d7"),onClick:d,variant:"primary"}),secondaryButton:k.jsx(c("GeoButton.react"),{label:h._("u4e86u89e3u66f4u591a"),onClick:e})}),heading:h._("u6211u4eecu5df2u66f4u65b0 Meta Spark u6761u6b3eu548c Meta Spark Studio u6761u6b3e"),image:k.jsx(c("IPB4BImage.react"),{src:i("382231"),width:600}),imageSize:"auto",isShown:b,onHide:function(){},xstyle:l.container,children:k.jsx("div",{className:"xyamay9 x4uap5 xwxc41k xkhd6sd",children:k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("GeoHeading.react"),{level:3,xstyle:c("geoMargin").bottom24,children:h._("u6211u4eecu5df2u66f4u65b0 Meta Spark u6761u6b3eu548c Meta Spark Studio u6761u6b3e")}),k.jsx(c("GeoText.react"),{children:"The changes include:"}),k.jsxs("ul",{className:"xtaz4m5 x1p5oq8j xxbr6pl xwxc41k xbbxn1n",children:[k.jsx("li",{children:k.jsx(c("GeoText.react"),{children:h._("u4f60u73b0u5728u9700u8981u521bu5efa Meta u5e10u6237u624du80fdu4f7fu7528 Meta Sparku3002")})}),k.jsx("li",{children:k.jsx(c("GeoText.react"),{children:h._("u5411 Meta u63d0u51fau7684 Meta Spark u76f8u5173u5f02u8baeu5fc5u987bu6839u636eu7f8eu56fdu4ef2u88c1u534fu4f1au7684u6d88u8d39u8005u4ef2u88c1u89c4u5219u7ecfu7531u5177u7ea6u675fu529bu7684u5355u72ecu4ef2u88c1u89e3u51b3uff0cu5e76u9075u5faau7279u5b9au4f8bu5916u60c5u51b5u3002")})}),k.jsx("li",{children:k.jsx(c("GeoText.react"),{children:h._("u4e3au4f7fu6761u6b3eu66f4u6e05u695au660eu4e86uff0cu6211u4eecu8fdbu884cu4e86u4e00u4e9bu4feeu6539u3002u4f8bu5982uff0cu6211u4eecu660eu786eu89c4u5b9auff1au4f60u63a5u6536u6216u6536u96c6u7684u4e0eu4f60u7279u6548u5185u5bb9u76f8u5173u7684u4efbu4f55u4fe1u606fuff08u6839u636e Meta Spark u6761u6b3eu4e2du7684u5b9au4e49uff09u5747u89c6u4e3au5c5eu4e8e Meta u5f00u653eu5e73u53f0u6761u6b3eu6240u8ff0u7528u9014u7684u201cu5f00u653eu5e73u53f0u6570u636eu201duff0cu6211u4eecu8fd8u8fdbu4e00u6b65u8be6u8ff0u4e86u4f60u5bf9u8fd9u4e9bu4fe1u606fu627fu62c5u7684u76f8u5e94u4e49u52a1u3002")})})]}),k.jsx(c("GeoText.react"),{children:h._("By continuing to use Meta Spark, you agree to the updated {=m1} and {=m3}",[h._implicitParam("=m1",k.jsx(c("GeoLink.react"),{href:f,target:"_blank",children:h._("Meta Spark Terms")})),h._implicitParam("=m3",k.jsx(c("GeoLink.react"),{href:a,target:"_blank",children:h._("Meta Spark Studio Terms")}))])})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
CRMClientDetailsNote.react",["cx","fbt","ActionList.react","BizInboxMultiAdminFbtUtils","BizKitContextCardUtils","CRMClientDetailsNote_note.graphql","CRMEventsLogger","ClientIDs","ContactGraphDeleteNoteClickFalcoEvent","ContactGraphDeleteNoteDeleteFalcoEvent","ContactGraphEditNoteCancelFlowFalcoEvent","ContactGraphEditNoteClickFalcoEvent","ContactGraphEditNoteSaveFalcoEvent","ExpandableText.react","GeoBaseText.react","GeoBinaryInput.react","GeoButton.react","GeoCancelButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoSelector.react","GeoSelectorItem.react","GeoTextArea.react","GeoTooltip.react","Link.react","RelayModern","Timestamp.react","formatDate","geoMargin","isStringNullOrEmpty","isTruthy","nullthrows","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m="customer_details_view";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h-----
BizKitContextCardLabel.react",["BIZInboxClientLogger","BizKitContextCardUtils","ContactGraphSearchByLabelClickFalcoEvent","ContactGraphUnsetLabelFromContactClickFalcoEvent","ContextCardLabelGetTokenAttributes","CustomLabelUtils","FlexLayout.react","GeoCheckboxInput.react","GeoTokenLabel.react","GeoTooltip.react","PageCommItemFolder","PageContactLabelCreationSource","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useState;function a(a){var b=j(!1),e=b[0],f=b[1],g=a.onRemoveLabel,h=a.onDismissLabel,k=a.id,l=a.name,m=a.color,n=a.contentType,o=a.createName,p=a.isSuggestedLabel,q=a.onAddorCreateLabel,r=a.onSelectLabel;b=a.readOnly;var s=a.dataSilo,t=a.labelSource,u=a.pageID,v=a.onShowContactCardTosModal,w=a.shouldShowContactCardTos,x=a.pageContactID,y=a.surface,z=a.isAILabel,A=a.isAdResponseLabel,B=function(){f(!0),q&&o!=null&&q(o,p,k,m,n)},C=null,D=function(){if(r&&!p){if(y!==void 0){c("ContactGraphSearchByLabelClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(y),page_id:u,page_contact_id:x,event_data:{label_ids:[k],label_search_result:[""]},is_server_log:!1}});if(u!=null){var a=t===c("PageCommItemFolder").INTENT_AUTO_LABEL?"ml_intent_label":"label";d("BIZInboxClientLogger").logFilterApply(u,d("BizKitContextCardUtils").getPageCommPlatformType(y),"contact_card",a)}d("BIZInboxClientLogger").logLabelSearchClick(u,d("BizKitContextCardUtils").getPageCommPlatformType(y),null,l,k,c("PageContactLabelCreationSource")[String(t)],null)}r({id:k,color:m,name:l,data_silo:s,label_source:t})}},E=Object.keys(c("PageContactLabelCreationSource"))[7],F=t===E;a=a.dataSilo==="DC_SILO_CORPORATION"&&!A&&!F;F=!a&&!A&&(g||h)&&!b;A=function(){if(y!==void 0){c("ContactGraphUnsetLabelFromContactClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(y),page_id:u,page_contact_id:x,event_data:{label_name:l,label_id:k},is_server_log:!1}});var a=String(t);d("BIZInboxClientLogger").logThreadLabelDelete(u,d("BizKitContextCardUtils").getPageCommPlatformType(y),m,l,k,c("PageContactLabelCreationSource")[a])}w?v():g!=null&&g(k,l)};b=function(){h!=null&&h(k,l,m,n!=null?n:"")};p===!0&&(C=i.jsx("div",{className:"x1nx2rwh",children:i.jsx(c("GeoCheckboxInput.react"),{"data-testid":void 0,value:e,label:"Hidden Label",isLabelHidden:!0,onChange:w?v:B})}));e=p?"context_card_suggested_lables":"contact_labels";B=Object.keys(c("PageContactLabelCreationSource"))[8];e=Object.keys(c("PageContactLabelCreationSource"))[9];a=i.jsx(c("GeoTokenLabel.react"),{clearLabel:"clearLabel",color:d("ContextCardLabelGetTokenAttributes").getTokenLabelColor(m,a),label:l,media:d("ContextCardLabelGetTokenAttributes").getTokenMedia(a,z,t===E||t===B,t===e),onClear:F===!0?p?b:A:null,onClick_DEPRECATED:D});return i.jsxs(c("FlexLayout.react"),{align:"center",children:[C,i.jsx("div",{className:"x1iorvi4 x150jy0e xjkvuk6 x1e558r4","data-testid":void 0,children:t===B?i.jsx(c("GeoTooltip.react"),{content:d("CustomLabelUtils").WA_MM_INBOX_AUTO_LABEL_TOOLTIP_CONTEXT,position:"below",children:a}):a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardLabelsList.react",["BizKitContextCardLabel.react","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.allLabels,d=a.onRemoveLabel,e=a.onSelectLabel,f=a.onShowContactCardTosModal,g=a.pageContactID,h=a.pageID,j=a.readOnly,k=a.shouldShowContactCardTos,l=a.surface;a=null;b&&b.length>0&&(a=b.map(function(a,b){var m;return a&&i.jsx("div",{className:"x1rg5ohu",children:i.jsx(c("BizKitContextCardLabel.react"),{color:c("nullthrows")(a.color),name:c("nullthrows")(a.name),id:c("nullthrows")(a.id),onRemoveLabel:d,onSelectLabel:e,isSuggestedLabel:!1,readOnly:j,dataSilo:a.data_silo,labelSource:a.label_source,pageID:h,onShowContactCardTosModal:f,shouldShowContactCardTos:k,pageContactID:g,surface:l,isAILabel:(m=a.is_ai_label)!=null?m:!1,isAdResponseLabel:(m=a.is_ad_response_label)!=null?m:!1})},c("nullthrows")(a.id)+"_"+b)}));return i.jsx("div",{className:"x14vqqas",children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardNotesSection.react",["fbt","BizInboxStateContext","BizKitContactCardWACoexEditToast.react","BizKitContextCardLinkButton.react","BizKitContextCardMoreSection.react","BizKitContextCardNotesSection_notes.graphql","BizKitContextCardUtils","CRMClientDetailsNote.react","CRMEventsLogger","ContactGraphAddNoteClickFalcoEvent","ContactGraphSeeMoreNoteClickFalcoEvent","ContextCardNotesUtils","GeoBaseText.react","GeoHeading.react","GeoSpinner.react","JSResource","LeftRight.react","RelayHooks","lazyLoadComponent","react","useGeoToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useContext,m=e.useEffect,n=e.useState,o=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardAddNoteSection.react").__setRef("BizKitContextCardNotesSection.react")),p=i!==void 0?i:i=b("BizKitContextCardNotesSection_notes.graphql"),q=10;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=a.className,f=a.pageID,g=a.notes,i=a.contactID,j=a.contactIdentity,r=a.surface,s=a.readOnly,t=a.onShowContactCardTosModal,u=a.shouldShowContactCardTos,v=a.onShowCoexEditInfo,w=n(!1),x=w[0],y=w[1];w=n(!1);var z=w[0],A=w[1];w=l(c("BizInboxStateContext"));var B=w.isWAOnly,C=w.isWECCoexAccount;w=d("RelayHooks").usePaginationFragment(p,g);var D=w.hasNext,E=w.loadNext,F=w.data;g=c("useGeoToaster")();var G=g.add;w=n(!1);var H=w[0],I=w[1],J=F==null?void 0:(g=F.shared_attributes)==null?void 0:g.page_contact_id,K=function(a){d("ContextCardNotesUtils").onDeleteNote(b,a,r)},L=function(a,c){d("ContextCardNotesUtils").onUpdateNote(b,a,c,r)};w=function(e){var f;d("ContextCardNotesUtils").onAddNote(b,F==null?void 0:(f=F.business_attributes)==null?void 0:(f=f.admin_notes)==null?void 0:(f=f.notes_list)==null?void 0:f.__id,e,i,j,r);d("CRMEventsLogger").log(a.pageID,"click_add_note","add_note_button","bizkit_context_card",J);C&&j.type==="WA_USER"&&!H&&(G(c("BizKitContactCardWACoexEditToast.react")(v)),I(!0))};g=function(){var a;a=F==null?void 0:(a=F.business_attributes)==null?void 0:(a=a.admin_notes)==null?void 0:(a=a.notes_list)==null?void 0:a.edges;if(a==null||a.length===0)return k.jsx("div",{className:"x17ddzgb x14vqqas",children:k.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",isDisabled:!0,display:"block","data-testid":void 0,children:h._("u8ffdu8e2au91cdu8981u7684u5ba2u6237u4e92u52a8u3002")})});a=a.map(function(a){return a.node?k.jsx(c("CRMClientDetailsNote.react"),{note:a.node,onDelete:K,onEdit:L,pageID:f,surface:r,pageContactID:J,readOnly:s,onShowContactCardTosModal:t,shouldShowContactCardTos:u},a.node.id):null});return k.jsx("div",{className:"x14vqqas",children:a})};var M=function(){if(!D||x)return;y(!0);E(q,{onComplete:function(){y(!1)}})},N=function(){if(!D)return null;return x?k.jsx("div",{className:"x178xt8z x13fuv20 xkh9tda x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",children:k.jsx(c("GeoSpinner.react"),{})}):k.jsx(c("BizKitContextCardMoreSection.react"),{className:"x178xt8z x13fuv20 xkh9tda x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",onClick:function(){c("ContactGraphSeeMoreNoteClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(r),page_id:f,page_contact_id:J,event_data:{},is_server_log:!1}}),M()}})};m(function(){A(!1)},[a.contactID]);return k.jsxs("div",{className:e,"data-testid":void 0,children:[k.jsxs(c("LeftRight.react"),{children:[k.jsx(c("GeoHeading.react"),{level:3,children:h._("u5907u6ce8")}),!z&&!B&&k.jsx(c("BizKitContextCardLinkButton.react"),{readOnly:s,label:h._("u6dfbu52a0u5907u6ce8"),onClick:function(){c("ContactGraphAddNoteClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(r),page_id:f,page_contact_id:J,event_data:{},is_server_log:!1}}),u?t():A(!0)},"data-testid":void 0})]}),z&&k.jsx(k.Suspense,{fallback:null,children:k.jsx(o,{isShown:z,setIsShown:A,onAddNote:w})}),g(),N()]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardLabelsSection.react",["fbt","BizInboxOffsiteEmailTourRefs","BizInboxStateContext","BizKitContactCardWACoexEditToast.react","BizKitContextCardLabelsList.react","BizKitContextCardLabelsSection_contactLabels.graphql","BizKitContextCardLinkButton.react","BizKitContextCardManageLabelsSection.react","BizKitContextCardNewLabelSection.react","BizKitContextCardSectionHeader.react","BizKitContextCardSuggestedLabelsSection.react","BizKitContextCardTooltipConsts","BizKitContextCardUtils","ContactGraphManageLabelsClickFalcoEvent","ContextCardLabelUtils","LeftRight.react","RelayHooks","bizInboxStateAIAgentReducer","filterNulls","immutable","nux:66","react","useBizInboxStateReducers","useBusinessPresenceLabelUpdateSubscription","useGeoToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useContext,m=e.useEffect,n=e.useRef,o=e.useState,p=i!==void 0?i:i=b("BizKitContextCardLabelsSection_contactLabels.graphql"),q=b("nux:66")==null?void 0:b("nux:66")("MBS_WWW_INBOX_MANAGE_LABEL_METRIC_TOGGLE_NUX");function a(a){var b,e,f=d("RelayHooks").useRelayEnvironment(),g=a.businessAssets,i=a.className,j=a.contactIdentity,r=a.contactLabels,s=a.pageID,t=a.onSelectLabel,u=a.surface,v=a.readOnly,w=a.onShowContactCardTosModal,x=a.shouldShowContactCardTos,y=a.shouldDisableBizInput,z=a.assetData,A=a.onShowCoexEditInfo,B=d("RelayHooks").useFragment(p,r),C=c("useBizInboxStateReducers")([c("bizInboxStateAIAgentReducer")]);a=l(c("BizInboxStateContext"));var D=a.selectedThreadIDCorpLabelConnectionID,E=a.isWECCoexAccount;r=c("useGeoToaster")();var F=r.add;a=o(!1);var G=a[0],H=a[1];m(function(){if(D==null){var a;C({corpLabelConnectionID:B==null?void 0:(a=B.shared_attributes)==null?void 0:(a=a.corp_label_list)==null?void 0:a.__id,type:"update_corp_label_connection_id"})}});var I=B==null?void 0:(r=B.shared_attributes)==null?void 0:r.page_contact_id;a=z==null?void 0:z.id;r=(z==null?void 0:(r=z.custom_labels)==null?void 0:r.edges)||[];z=(z==null?void 0:(z=z.corp_labels)==null?void 0:z.edges)||[];r=d("ContextCardLabelUtils").parsePageLabelNode(u,r);z=d("ContextCardLabelUtils").parsePageLabelNode(u,z);r=r.concat(z);z=c("immutable").Map(r.map(function(a){return[a.name,a]}));r=o(!1);var J=r[0];r=r[1];var K=o(!1),L=K[0],M=K[1],N=B==null?void 0:(K=B.business_attributes)==null?void 0:(K=K.customer_labels)==null?void 0:(K=K.label_list)==null?void 0:K.__id;K=B==null?void 0:(K=B.shared_attributes)==null?void 0:(K=K.suggested_labels)==null?void 0:K.__id;var O=l(c("BizInboxStateContext"));O=O.isWAOnly;var P=n(null);b=(B==null?void 0:(b=B.business_attributes)==null?void 0:(b=b.customer_labels)==null?void 0:(b=b.label_list)==null?void 0:b.edges)||[];e=(B==null?void 0:(e=B.business_attributes)==null?void 0:(e=e.customer_labels)==null?void 0:(e=e.customer_custom_tags)==null?void 0:e.edges)||[];var Q=d("ContextCardLabelUtils").parsePageLabelNode(u,d("ContextCardLabelUtils").mergeContactAndCustomerLabels(b,e));b=d("ContextCardLabelUtils").parseSuggestedLabelNode((B==null?void 0:(b=B.shared_attributes)==null?void 0:(e=b.suggested_labels)==null?void 0:e.edges)||[]);e=(B==null?void 0:(e=B.shared_attributes)==null?void 0:(e=e.corp_label_list)==null?void 0:e.edges)||[];var R=d("ContextCardLabelUtils").parsePageLabelNode(u,e);e=o(Q.concat(R));var S=e[0],T=e[1];c("useBusinessPresenceLabelUpdateSubscription")(s,j.contact_id,function(a){var b;a=a.xfb_business_presence_label_update_subscribe;b=d("ContextCardLabelUtils").parsePageLabelNode(u,d("ContextCardLabelUtils").mergeContactAndCustomerLabels((b=a==null?void 0:(b=a.custom_thread_labels)==null?void 0:b.edges)!=null?b:[],(b=a==null?void 0:(b=a.customer_custom_tags)==null?void 0:b.edges)!=null?b:[]));a=d("ContextCardLabelUtils").parsePageLabelNode(u,(a=a==null?void 0:(a=a.corp_thread_labels)==null?void 0:a.edges)!=null?a:[]);T(b.concat(a))});e=o(j.contact_id);var U=e[0],V=e[1];m(function(){j.contact_id!==U&&(V(j.contact_id),T(Q.concat(R)))},[j,j.contact_id,Q,R,U]);e=function(a,b){d("ContextCardLabelUtils").onUnsetLabel(f,N,j,a,b,u);b=S.filter(function(b){return b.id!==a});T(b)};var W=function(a,b,e,g,h){d("ContextCardLabelUtils").onAddLabel(f,c("filterNulls")([N]),j,e,a,h,s,g,u,b,I,"bizkit_context_card","add_label_contact_button");E===!0&&j.type==="WA_USER"&&!G&&(F(c("BizKitContactCardWACoexEditToast.react")(A)),H(!0));if(e!==null&&g!==null){S.push({id:(h=e)!=null?h:"",name:a,color:(b=g)!=null?b:"",contact_count:0});T(S)}};return k.jsxs("div",{className:i,"data-testid":void 0,ref:d("BizInboxOffsiteEmailTourRefs").bizKitContextCardNewLabelSectionRef,children:[!y&&!O&&q!=null&&(B==null?void 0:(i=B.page)==null?void 0:(i=i.gk_check)==null?void 0:i.passes_gk)===!0&&k.jsx(q,{contextRef:P,onComplete:function(){x?w():M(!L)}}),k.jsxs(c("LeftRight.react"),{children:[k.jsx(c("BizKitContextCardSectionHeader.react"),{sectionTitle:h._("u6807u7b7e"),tooltipsText:c("BizKitContextCardTooltipConsts").LABEL_TOOLTIP_TEXT,learnMoreLink:c("BizKitContextCardTooltipConsts").CONTACT_CARD_TOOLTIP_HELP_LINK,testid:void 0}),!y&&!O&&k.jsx(c("BizKitContextCardLinkButton.react"),{contextRef:P,readOnly:v,"data-testid":void 0,label:h._("u7ba1u7406u6807u7b7e"),onClick:function(){c("ContactGraphManageLabelsClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(u),page_id:s,page_contact_id:I,event_data:{},is_server_log:!1}}),x?w():M(!L)}})]}),k.jsx(c("BizKitContextCardLabelsList.react"),{allLabels:S,onRemoveLabel:e,onSelectLabel:t,readOnly:v,pageID:j.business_id,onShowContactCardTosModal:w,shouldShowContactCardTos:x,pageContactID:I,surface:u}),!v&&!y&&!O&&k.jsx(c("BizKitContextCardNewLabelSection.react"),{isAddLabelToggle:J,setIsAddLabelToggle:r,onAddorCreateLabel:W,pageLabels:z,labels:B,onShowContactCardTosModal:w,shouldShowContactCardTos:x,surface:u,pageID:s,pageContactID:I}),!v&&!y&&!O&&k.jsx(c("BizKitContextCardSuggestedLabelsSection.react"),{contactIdentity:j,connectionID:K,conversationLabels:Q,suggestedLabels:b,onCreateAndAddLabel:W,onShowContactCardTosModal:w,shouldShowContactCardTos:x,surface:u,pageID:s,pageContactID:I}),k.jsx(c("BizKitContextCardManageLabelsSection.react"),{pageID:s,labels:z,isShown:L,onToggle:M,surface:u,contactID:j.contact_id,businessAssets:g,assetID:a,shouldShowCustomLabelMetrics:(e=B==null?void 0:(i=B.page)==null?void 0:(P=i.gk_check)==null?void 0:P.passes_gk)!=null?e:!1})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardSectionWrapper.react",["BizInboxStateContext","BizKitContextCardAboutDetailSection.react","BizKitContextCardAboutSectionFacebook.react","BizKitContextCardAboutSectionInstagram.react","BizKitContextCardActivitySection.react","BizKitContextCardDataSharingSection.react","BizKitContextCardLabelsDataFragment.react","BizKitContextCardMediaSection.react","BizKitContextCardNewActivitySection.react","BizKitContextCardNotesSection.react","BizKitContextCardOutcomesSection.react","BizKitContextCardProfileSection.react","BizKitContextCardReminderSection.react","JSResource","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext,k=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardOrdersSection.react").__setRef("BizKitContextCardSectionWrapper.react")),l=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardMessageSection.react").__setRef("BizKitContextCardSectionWrapper.react")),m=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardPaymentSection.react").__setRef("BizKitContextCardSectionWrapper.react"));function a(a){var b=a.data,d=a.sectionName,e=a.surface,f=a.pageID,g=a.bpnID,h=a.contactID,n=a.contactIdentity,o=a.onSelectLabel,p=a.onActivityListUpdated,q=a.isInKBankRollout,r=a.activitiesQueryReference,s=a.onBanUser,t=a.isBlockedInIG,u=a.readOnly,v=a.onShowContactCardTosModal,w=a.shouldShowContactCardTos,x=a.shouldDisableBizInput,y=a.pageContactID,z=a.mbsBusinessAssetsRef,A=a.pageRef,B=a.businessAssets,C=a.isPageEnabledForWAM,D=a.shouldShowPaymentOnboardingContextCard,E=a.externalPaymentAccountData,F=a.isGcashEnabled,G=a.onShowCoexEditInfo,H=j(c("BizInboxStateContext"));H=H.shouldShowLeadManagementMVP;switch(d){case"ABOUT":return i.jsx(c("BizKitContextCardAboutDetailSection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",about:b,contactIdentity:n,pageID:f,bpnID:g,surface:e,readOnly:u,onShowContactCardTosModal:v,shouldShowContactCardTos:w,shouldDisableBizInput:x,isPageEnabledForWAM:C,onShowCoexEditInfo:G});case"FACEBOOK_PROFILE":return i.jsx(c("BizKitContextCardAboutSectionFacebook.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",details:b,pageID:f});case"INSTAGRAM_PROFILE":return i.jsx(c("BizKitContextCardAboutSectionInstagram.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",details:b});case"OUTCOMES":return i.jsx(c("BizKitContextCardOutcomesSection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",data:b,consumerID:n.contact_id,pageID:f,profileData:b,contactID:h,pageContactID:y,surface:e,contactIdentity:n,onShowContactCardTosModal:v,shouldShowContactCardTos:w,isInKBankRollout:q,onActivityListUpdated:p});case"ACTIVITY":return e==="INBOX_MESSAGING_WA"?i.jsx(i.Fragment,{}):i.jsx(c("BizKitContextCardActivitySection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",contactID:h,contactIdentity:n,pageID:f,isInKBankRollout:q,onActivityListUpdated:p,activitiesQueryReference:r,readOnly:u,surface:e,onShowContactCardTosModal:v,shouldShowContactCardTos:w,shouldDisableBizInput:x});case"LABEL":return i.jsx(c("BizKitContextCardLabelsDataFragment.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",contactID:h,contactIdentity:n,pageID:f,contactLabels:b,onSelectLabel:o,surface:e,readOnly:u,onShowContactCardTosModal:v,shouldShowContactCardTos:w,shouldDisableBizInput:x,pageRef:A,mbsBusinessAssetsRef:z,businessAssets:B,onShowCoexEditInfo:G});case"MEDIA":return i.jsx(c("BizKitContextCardMediaSection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",media:b,pageID:f,readOnly:u});case"MESSAGE":return i.jsx(l,{details:b,pageID:f,surface:e});case"NOTE":return i.jsx(c("BizKitContextCardNotesSection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",contactID:h,contactIdentity:n,pageID:f,notes:b,surface:e,readOnly:u,onShowContactCardTosModal:v,shouldShowContactCardTos:w,onShowCoexEditInfo:G});case"PROFILE":return i.jsx(c("BizKitContextCardProfileSection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",surface:e,profile:b,pageID:f,onBanUser:s,isBlockedInIG:t,shouldShowCloseButton:a.shouldShowCloseButton,onClose:a.onClose,readOnly:u});case"ORDER":return i.jsx(k,{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",pageID:f,orders:b,readOnly:u,surface:e,onShowContactCardTosModal:v,shouldShowContactCardTos:w});case"THIRD_PARTY_DATA":return i.jsx(i.Fragment,{});case"DATA_SHARING":return i.jsx(c("BizKitContextCardDataSharingSection.react"),{consumerID:n.contact_id,pageID:f,profileData:b,contactID:h,surface:e,contactIdentity:n,isRedesign:!1});case"PAYMENT":return i.jsx(m,{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",data:b,pageID:f,shouldShowPaymentOnboardingContextCard:D,externalPaymentAccountData:E,isGcashEnabled:F});case"REMINDER":return!H?i.jsx(i.Fragment,{}):i.jsx(c("BizKitContextCardReminderSection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",pageID:f,contactID:y,surface:e,businessAssets:B});case"NEW_ACTIVITY":return i.jsx(c("BizKitContextCardNewActivitySection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",pageID:f,contactID:y,surface:e,businessAssets:B,contactIdentity:n,onActivityListUpdated:p,isInKBankRollout:q,onShowContactCardTosModal:v,shouldShowContactCardTos:w});default:return i.jsx(i.Fragment,{})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivitySection.react",["fbt","BizInboxStateContext","BizKitContextCardActivityDropDown.react","BizKitContextCardActivityListSection.react","BizKitContextCardActivityNuxForAutoDetected.react","BizKitContextCardActivitySectionQuery.graphql","BizKitContextCardActivitySection_contact.graphql","BizKitContextCardSectionHeader.react","BizKitContextCardTooltipConsts","GeoSpinner.react","LeftRight.react","RelayHooks","cr:4615","getBizInboxOrganizeInboxTourSteps","getBizInboxUnifiedThreadsQuery","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.Suspense,n=e.useContext,o=e.useEffect,p=e.useState,q=i!==void 0?i:i=b("BizKitContextCardActivitySection_contact.graphql"),r=j!==void 0?j:j=b("BizKitContextCardActivitySectionQuery.graphql");function a(a){var e=a.activitiesQueryReference;a=babelHelpers.objectWithoutPropertiesLoose(a,["activitiesQueryReference"]);var f=n(c("BizInboxStateContext"));f=f.selectedThreadID;var g=a.contactIdentity;f=(g=b("cr:4615")==null?void 0:b("cr:4615").shouldUseUnifiedQuery("context_card_details",{selected_thread_item_id:(f=f)!=null?f:"",business_id:(f=g==null?void 0:g.business_id)!=null?f:""}))!=null?g:!1;if(d("getBizInboxUnifiedThreadsQuery").getShouldUnifyContextCardQueries()&&f)return l.jsx(s,babelHelpers["extends"]({activitiesQueryReference:e},a));return e==null?l.jsx(l.Fragment,{children:" "}):l.jsx(t,babelHelpers["extends"]({activitiesQueryReference:e},a))}a.displayName=a.name+" [from "+f.id+"]";function s(a){var c=a.className,d=a.pageID,e=a.isInKBankRollout,f=a.contactID,g=a.contactIdentity,h=a.onActivityListUpdated,i=a.readOnly,j=a.surface,k=a.onShowContactCardTosModal,m=a.shouldShowContactCardTos;a=a.shouldDisableBizInput;var n=p(null),q=n[0],r=n[1];o(function(){b("cr:4615")&&b("cr:4615").execUnifiedQuery("context_card_details",function(a){r(a==null?void 0:a.activitiesRef)})},[]);if(b("cr:4615")){return l.jsx(u,{canAddActivities:(n=q==null?void 0:q.can_add_activities)!=null?n:!1,className:c,contactID:f,contactIdentity:g,pageID:d,isInKBankRollout:e,onActivityListUpdated:h,readOnly:i,surface:j,onShowContactCardTosModal:k,shouldShowContactCardTos:m,shouldDisableBizInput:a,contactRef:q==null?void 0:q.selected_biz_crm_contact.activityRef,adsDataSharingNUXContactRef:q==null?void 0:q.selected_biz_crm_contact.adsDataSharingNUXRef,dropDownContactRef:q==null?void 0:q.selected_biz_crm_contact.activityDropDownRef,dropDownPageRef:q==null?void 0:q.page.dropdownRef,dropDownBizAssetRef:q==null?void 0:q.xfb_mbs_business_assets.dropdownRef,listItemPageRef:q==null?void 0:q.page.listItemRef,listItemBizAssetRef:q==null?void 0:q.xfb_mbs_business_assets.listItemRef})}return l.jsx(l.Fragment,{children:" "})}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b,c=a.className,e=a.pageID,f=a.isInKBankRollout,g=a.contactID,h=a.contactIdentity,i=a.onActivityListUpdated,j=a.activitiesQueryReference,k=a.readOnly,m=a.surface,n=a.onShowContactCardTosModal,o=a.shouldShowContactCardTos;a=a.shouldDisableBizInput;j=d("RelayHooks").usePreloadedQuery(r,j);return l.jsx(u,{canAddActivities:(b=j==null?void 0:(b=j.biz_crm_contact_card_config)==null?void 0:b.can_add_activities)!=null?b:!1,className:c,contactID:g,contactIdentity:h,pageID:e,isInKBankRollout:f,onActivityListUpdated:i,readOnly:k,surface:m,onShowContactCardTosModal:n,shouldShowContactCardTos:o,shouldDisableBizInput:a,contactRef:j==null?void 0:j.retrieve_biz_crm_contact,adsDataSharingNUXContactRef:j==null?void 0:j.retrieve_biz_crm_contact,dropDownContactRef:j==null?void 0:j.retrieve_biz_crm_contact,dropDownPageRef:j==null?void 0:j.page,dropDownBizAssetRef:j==null?void 0:j.xfb_mbs_business_assets,listItemPageRef:j==null?void 0:j.page,listItemBizAssetRef:j==null?void 0:j.xfb_mbs_business_assets})}t.displayName=t.name+" [from "+f.id+"]";function u(a){var b,e,f=a.canAddActivities,g=a.className,i=a.pageID,j=a.isInKBankRollout,k=a.contactID,n=a.contactIdentity,o=a.onActivityListUpdated,r=a.readOnly,s=a.surface,t=a.onShowContactCardTosModal,u=a.shouldShowContactCardTos,v=a.shouldDisableBizInput,w=a.contactRef,x=a.adsDataSharingNUXContactRef,y=a.dropDownContactRef,z=a.dropDownPageRef,A=a.dropDownBizAssetRef,B=a.listItemPageRef;a=a.listItemBizAssetRef;w=d("RelayHooks").useFragment(q,w);b=w==null?void 0:(b=w.fb_attributes)==null?void 0:b.user_id;e=w==null?void 0:(e=w.shared_attributes)==null?void 0:e.page_contact_id;var C=w==null?void 0:w.should_show_automated_activity_nux,D=w==null?void 0:w.should_show_automated_activity_redesigned_nux,E=p(null),F=E[0],G=E[1];E=function(a){G(a),o(a)};return l.jsxs(l.Fragment,{children:[l.jsx(c("BizKitContextCardActivityNuxForAutoDetected.react"),{contact:x,shouldShowNux:D!==!0&&C===!0,pageID:i,nuxType:"AUTOMATED_ACTIVITY_CREATION",identity:n,refetchLeadOpportunity:function(){}}),l.jsxs("div",{className:g,"data-testid":void 0,ref:d("getBizInboxOrganizeInboxTourSteps").contactCardActivitySectionRef,children:[l.jsxs(c("LeftRight.react"),{children:[l.jsx(c("BizKitContextCardSectionHeader.react"),{sectionTitle:h._("u52a8u6001"),tooltipsText:c("BizKitContextCardTooltipConsts").ACTIVITY_TOOLTIP_TEXT,learnMoreLink:c("BizKitContextCardTooltipConsts").CONTACT_CARD_TOOLTIP_HELP_LINK,testid:void 0}),!v&&f===!0&&l.jsx(c("BizKitContextCardActivityDropDown.react"),{contactID:k,page:z,contact:y,mbsBusinessAssets:A,pageID:i,readOnly:r,userID:b,connectionID:F,contactIdentity:n,surface:s,pageContactID:e,onShowContactCardTosModal:t,shouldShowContactCardTos:u})]}),l.jsx(m,{fallback:l.jsx(c("GeoSpinner.react"),{center:!0}),children:l.jsx(c("BizKitContextCardActivityListSection.react"),{activity:w,page:B,mbsBusinessAssets:a,pageID:i,userID:b,surface:s,pageContactID:e,onActivityListUpdated:E,isInKBankRollout:j,onShowContactCardTosModal:t,shouldShowContactCardTos:u,contactIdentity:n,refetchLeadOpportunity:function(){}})})]})]})}u.displayName=u.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardNewLabelSection.react",["fbt","ix","BizInboxLabelSearchSource","BizInboxLabelSearchableEntry","BizKitContextCardUtils","ClickableArea.react","ContactGraphAddLabelClickFalcoEvent","ContextCardLabelUtils","FlexLayout.react","GeoBaseTypeaheadItem.react","GeoMediaItem.react","GeoTokenLabel.react","GeoTokenLabelColorEnum","GeoTypeahead.react","Image.react","PagesManagerInboxContextCardLabelsTypeaheadRenderer.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useState,m={"#90949C":k.jsx(c("Image.react"),{src:i("1278101")}),"#8A73C9":k.jsx(c("Image.react"),{src:i("1631086")}),"#F65569":k.jsx(c("Image.react"),{src:i("1278102")}),"#5291FF":k.jsx(c("Image.react"),{src:i("294498")}),"#FB9240":k.jsx(c("Image.react"),{src:i("294500")}),"#72A737":k.jsx(c("Image.react"),{src:i("294499")})};function a(a){var b=a.isAddLabelToggle,e=a.setIsAddLabelToggle,f=a.pageLabels,g=a.labels,j=a.onAddorCreateLabel,n=a.onShowContactCardTosModal,o=a.shouldShowContactCardTos,p=a.surface,q=a.pageID,r=a.pageContactID,s=(g==null?void 0:(a=g.business_attributes)==null?void 0:(g=a.customer_labels)==null?void 0:(a=g.label_list)==null?void 0:a.edges)||[];g=f.toArray();g=g.filter(function(a){return a.data_silo!=="DC_SILO_CORPORATION"});a=g.filter(function(a){return!s.find(function(b){return((b=b.node)==null?void 0:b.name)===a.name})});g=new(c("BizInboxLabelSearchSource"))(a);a=l("");var t=a[0],u=a[1];a=l(null);var v=a[0],w=a[1],x=d("ContextCardLabelUtils").genIfPageExceedLabelLimit(f);b?a=k.jsx(c("Image.react"),{src:i("656611")}):a=k.jsx(c("Image.react"),{src:i("497293")});f=h._("u6dfbu52a0u6807u7b7e");var y=h._("u6dfbu52a0u6807u7b7e"),z=h._("u65b0u6807u7b7eu540du79f0u4e0du80fdu53eau5305u542bu7a7au683c"),A=function(){w(null);if(t.trim()===""){w(z);return}x?w(d("ContextCardLabelUtils").TAG_REACH_LIMIT_ERROR_MSG):j(t,!1);u("")},B=function(a){u("");w(null);if(a instanceof c("BizInboxLabelSearchableEntry")){var b=a.getData().id,d=a.getData().name;a=a.getData().color;j(d,!1,b,a)}};function C(a){a.length-----
BizKitContextCardOutcomesSection.react",["fbt","BizKitContextCardDataSharingSection.react","BizKitContextCardNewActivitySection.react","BizKitContextCardOutcomesSection_contact.graphql","GeoBaseText.react","GeoHeading.react","MbsDetectedOutcomesNUX.react","RelayHooks","geoMargin","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react"),m=i!==void 0?i:i=b("BizKitContextCardOutcomesSection_contact.graphql");function a(a){var b=a.businessAssets,e=a.className,f=a.consumerID,g=a.contactID,i=a.contactIdentity,k=a.data,n=a.isInKBankRollout,o=a.onActivityListUpdated,p=a.onShowContactCardTosModal,q=a.pageContactID,r=a.pageID,s=a.profileData,t=a.shouldShowContactCardTos;a=a.surface;k=d("RelayHooks").useFragment(m,k);var u=k==null?void 0:k.should_show_automated_activity_redesigned_nux;return l.jsxs("div",{className:e,"data-testid":void 0,children:[l.jsx(c("GeoHeading.react"),{level:3,children:h._("Outcomes")}),l.jsx("div",{className:(j||(j=c("stylex")))(c("geoMargin").vert12),children:l.jsx(c("GeoBaseText.react"),{color:"value",display:"block",isDisabled:!0,size:"accent",children:h._("Track key business outcomes and organize your inbox by managing labels and activities.")})}),l.jsx(c("BizKitContextCardDataSharingSection.react"),{consumerID:f,pageID:r,profileData:s,contactID:g,surface:a,contactIdentity:i,isRedesign:!0}),l.jsx(c("BizKitContextCardNewActivitySection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",pageID:r,contactID:q,surface:a,businessAssets:b,contactIdentity:i,onActivityListUpdated:o,isInKBankRollout:n,onShowContactCardTosModal:p,shouldShowContactCardTos:t}),l.jsx(d("MbsDetectedOutcomesNUX.react").MbsDetectedOutcomesNUX,{contactData:k,shouldShowDoNuxRedesign:u,identity:i,pageID:r,contactID:q,surface:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
ThreadOrderStatusDropdownSection.react",["fbt","BizInboxFbtUtils","BizInboxUpdateThreadOrderStatusMutation","BizKitContextCardNewActivitySectionEventLogger","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoSelector.react","GeoSelectorItem.react","GeoToast.react","LeftRight.react","RelayHooks","RelayModern","ThreadOrderStatusDropdownSection_orderStatus.graphql","geoMargin","react","useGeoToaster","usePageThreadOrderStatusSubscription"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j,m=l.useEffect,n=l.useRef,o=l.useState,p=i!==void 0?i:i=b("ThreadOrderStatusDropdownSection_orderStatus.graphql");function a(a,b,e,f){return function(g){g.payload.should_update_order_status===!0&&(g.payload.success?d("RelayModern").commitLocalUpdate(e,function(e){e=e.get(a);e!=null&&(e.setValue("ORDERED","thread_action_system_order_status",{asset_type:"MESSENGER",consumer_id:b,page_id:a}),f(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getUpdateOrderStatusSuccessToast(),status:"success"})))}):f(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getUpdateOrderStatusFailureToast(),status:"error"})))}}function e(a){var b,e=a.pageID,f=a.consumerID,g=a.query,i=a.environment,j=a.refresh,l=a.showAdEventSharingLegalNux,q=a.shouldShowContactCardTos;a=a.onShowContactCardTosModal;g=d("RelayHooks").useFragment(p,g);var r=g==null?void 0:g.thread_action_system_order_status;b=g==null?void 0:(b=g.order_status_labels)==null?void 0:b.order_status_list;var s=g==null?void 0:(g=g.order_status_labels)==null?void 0:g.labels;g=o(r);var t=g[0],u=g[1],v=n(null);g=c("useGeoToaster")();var w=g.add;m(function(){v.current=r,u(r)},[r]);c("usePageThreadOrderStatusSubscription")(e,(g=f)!=null?g:"",function(a){u((a=a.xfb_page_order_status_subscribe)==null?void 0:a.order_status)});if(!b||!s)return null;var x=function(a){if(f==null)return;u(a);var b=null;switch(a){case"BOOKED":case"ORDERED":case"PAID":case"SHIPPED":b=a;break}b!==null&&d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownOptionClick(e,f,b);w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getUpdateOrderStatusInProgressToast(),status:"indeterminate"}));d("BizInboxUpdateThreadOrderStatusMutation").commit(i,e,f,b,{onSuccess:function(){v.current=a,j(),l(),b===null?w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getClearOrderStatusSuccessToast(),status:"success"})):(w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getUpdateOrderStatusSuccessToast(),status:"success"})),d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownOptionSave(e,f,b))},onFailure:function(a){b===null?w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getClearOrderStatusFailureToast(),status:"error"})):(w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getUpdateOrderStatusFailureToast(),status:"error"})),d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownOptionError(e,f,b,a)),u(v.current)}})},y=[];b.map(function(a,b){y.push(k.jsx(c("GeoSelectorItem.react"),{"data-testid":void 0,label:s[b],value:a},a))});g=k.jsx(c("GeoSelector.react"),{"data-testid":void 0,label:"Order status dropdown",placeholder:h._("u9009u62e9u4e00u9879"),isLabelHidden:!0,onChange:x,value:t,onOpen:q?a:function(){d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownClick(e,f)},children:q?[]:y});return k.jsxs("div",{className:"xyamay9 x4uap5 x18d9i69 xkhd6sd",children:[k.jsxs(c("LeftRight.react"),{children:[k.jsx(c("GeoHeading.react"),{level:4,children:h._("u8ba2u5355u72b6u6001")}),k.jsx(c("GeoLink.react"),{onClick:q?a:function(){x(null),d("BizKitContextCardNewActivitySectionEventLogger").logClearStatusTextClick(e,f)},children:h._("u6e05u9664u72b6u6001")})]}),k.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top8,children:g})]})}e.displayName=e.name+" [from "+f.id+"]";function q(a){var b,e=a.pageID,f=a.consumerID,g=a.query,i=a.environment,j=a.refresh,l=a.showAdEventSharingLegalNux,q=a.shouldShowContactCardTos;a=a.onShowContactCardTosModal;g=d("RelayHooks").useFragment(p,g);var r=g==null?void 0:g.thread_action_system_order_status;b=g==null?void 0:(b=g.order_status_labels)==null?void 0:b.order_status_list;var s=g==null?void 0:(g=g.order_status_labels)==null?void 0:g.labels;g=o(r);var t=g[0],u=g[1],v=n(null);g=c("useGeoToaster")();var w=g.add;m(function(){v.current=t,u(r)},[r,t]);c("usePageThreadOrderStatusSubscription")(e,(g=f)!=null?g:"",function(a){u((a=a.xfb_page_order_status_subscribe)==null?void 0:a.order_status)});if(!b||!s)return null;var x=function(a){if(f==null)return;u(a);var b=null;switch(a){case"BOOKED":case"ORDERED":case"PAID":case"SHIPPED":b=a;break}b!==null&&d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownOptionClick(e,f,b);d("BizInboxUpdateThreadOrderStatusMutation").commit(i,e,f,b,{onSuccess:function(){j(),l(),b===null?w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getClearOrderStatusSuccessToast(),status:"success"})):(w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getUpdateOrderStatusSuccessToast(),status:"success"})),d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownOptionSave(e,f,b))},onFailure:function(a){b===null?w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getClearOrderStatusFailureToast(),status:"error"})):(w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getUpdateOrderStatusFailureToast(),status:"error"})),d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownOptionError(e,f,b,a)),u(v.current)}})},y=[];b.map(function(a,b){y.push(k.jsx(c("GeoSelectorItem.react"),{"data-testid":void 0,label:s[b],value:a},a))});g=k.jsx(c("GeoSelector.react"),{"data-testid":void 0,label:"Order status dropdown",placeholder:h._("u9009u62e9u4e00u9879"),isLabelHidden:!0,onChange:x,value:t,onOpen:q?a:function(){d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownClick(e,f)},children:y});return k.jsxs("div",{className:"xyamay9 x4uap5 x18d9i69 xkhd6sd",children:[k.jsxs(c("LeftRight.react"),{children:[k.jsx(c("GeoHeading.react"),{level:4,children:h._("u8ba2u5355u72b6u6001")}),k.jsx(c("GeoLink.react"),{onClick:q?a:function(){x(null),d("BizKitContextCardNewActivitySectionEventLogger").logClearStatusTextClick(e,f)},children:h._("u6e05u9664u72b6u6001")})]}),k.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top8,children:g})]})}q.displayName=q.name+" [from "+f.id+"]";g.getUpdateThreadOrderStatusCallback=a;g.ThreadOrderStatusDropdownSection=e;g.ThreadOrderStatusDropdownSectionDeprecated=q}),226);
-----
BizKitContextCardActivityDropDown.react",["cx","fbt","ix","BizKitContextCardActivityDropDown_contact.graphql","BizKitContextCardActivityDropDown_mbsBusinessAssets.graphql","BizKitContextCardActivityDropDown_page.graphql","BizKitContextCardAddActivityMutation","BizKitContextCardLinkButton.react","BizKitContextCardUtils","CRMEventsTypedLogger","ContactGraphAddActivityClickFalcoEvent","ContextualDialogArrow","ContextualLayerShowAndHideOnScrollOut","ContextualLayerUpdateOnScroll","Image.react","JSResource","MessengerAdsConversionFunnelTypedLogger","MessengerConversionEvent","PmaThreadActionSystemEventFalcoEvent","PopoverMenu.react","QE2Logger","QPLUserFlow","ReactXUIMenu","RelayHooks","ThreadActionSystemQPLConstants","getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils","lazyLoadComponent","react","useAdsDataSharingNUX","useSimpleNUX_LEGACY"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l,m,n,o=n||(n=d("react"));e=n;var p=e.useEffect,q=e.useRef,r=e.useState,s=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardActivityOrderDialog.react").__setRef("BizKitContextCardActivityDropDown.react")),t=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxOrderShippedActivitySendDetailsDialog.react").__setRef("BizKitContextCardActivityDropDown.react")),u=c("lazyLoadComponent")(c("JSResource")("XUIAmbientNUX.react").__setRef("BizKitContextCardActivityDropDown.react"));function v(a){var b=a.contextRef;a=c("useSimpleNUX_LEGACY")("290161645875967");var d=a[0],e=a[1];a=r(!1);var f=a[0],g=a[1];p(function(){if(!d)return;var a=window.setTimeout(function(){g(!0)},1e3);return function(){return window.clearTimeout(a)}},[d]);return f&&o.jsx(u,{alignment:"right",behaviors:{ContextualLayerUpdateOnScroll:c("ContextualLayerUpdateOnScroll"),ContextualLayerShowAndHideOnScrollOut:c("ContextualLayerShowAndHideOnScrollOut")},contextRef:function(){return b.current},onCloseButtonClick:function(){e(),g(!1)},position:"below",shown:!0,width:"auto",children:i._("u5728 Messenger u4e2du7ba1u7406u548cu8ffdu8e2au8ba2u5355u4ee5u53cau8fdbu884cu9884u7ea6u3002")},"clips_button_nux")}v.displayName=v.name+" [from "+f.id+"]";function a(a){var e=d("RelayHooks").useRelayEnvironment(),f=r(null),g=f[0],h=f[1];f=d("RelayHooks").useFragment(k!==void 0?k:k=b("BizKitContextCardActivityDropDown_page.graphql"),a.page);var n=d("RelayHooks").useFragment(l!==void 0?l:l=b("BizKitContextCardActivityDropDown_mbsBusinessAssets.graphql"),a.mbsBusinessAssets),p=d("RelayHooks").useFragment(m!==void 0?m:m=b("BizKitContextCardActivityDropDown_contact.graphql"),a.contact),u=d("getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils").getIsDependencyOfRemovePageDependencyEnabledToolForContactCard(a.surface);u=u?n:f;var w=(u==null?void 0:(n=u.ctm_www_tas_order_integration_gk)==null?void 0:n.is_order_integration_enabled)===!0;u=q(null);n=p==null?void 0:p.adsDataSharingActivityNUX;p=p==null?void 0:(p=p.page)==null?void 0:p.settings_uri_in_business_view;var x=d("useAdsDataSharingNUX").useAdsEventSharingNux(n,p,a.pageID),y=function(b){c("ContactGraphAddActivityClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(a.surface),page_id:A,page_contact_id:a.pageContactID,event_data:{activity_type:b},is_server_log:!1}}),c("QPLUserFlow").addPoint(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT,b),d("BizKitContextCardAddActivityMutation").commit(e,C,{interactionType:b,identity:D,entrypoint:"CONTACT_CARD"},{onSuccess:function(e){e=e==null?void 0:(e=e.biz_crm_contact_add_action)==null?void 0:(e=e.action_new)==null?void 0:e.interaction_id;e!=null&&(b==="PAYMENT_RECEIVED"||b==="ORDER_SHIPPED")?(d("QE2Logger").logExposureForPage("ctm_www_tas_order_integration_universe",A),w?h({orderStatus:b,interactionId:e}):x()):x();c("PmaThreadActionSystemEventFalcoEvent").log(function(){var c;return{page_id:a.pageID,consumer_id:(c=B)!=null?c:z,interaction_type:b,has_details:!1,entrypoint:"CONTACT_CARD"}});c("QPLUserFlow").endSuccess(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT)},onFailure:function(){return c("QPLUserFlow").endFailure(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT,d("ThreadActionSystemQPLConstants").ADD_ACTIVITY_MUTATION_FAILED)}})},z=a.contactID,A=a.pageID;n=a.readOnly;var B=a.userID,C=a.connectionID,D=a.contactIdentity;p=a.onShowContactCardTosModal;var E=a.shouldShowContactCardTos,F=r(!1),G=F[0],H=F[1];F=function(){var a;new(c("MessengerAdsConversionFunnelTypedLogger"))().setName(c("MessengerConversionEvent").PAGE_CLICK_ADD_ACTIVITY).setPageID(A).setConsumerID((a=B)!=null?a:z).log();new(c("CRMEventsTypedLogger"))().setPageID(A).setEvent("page_click_add_activity").setUISurface("contact_card_activity").setIsServerLog(!1).log();c("QPLUserFlow").start(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT)};f=(f=f==null?void 0:(f=f.translationFix)==null?void 0:f.is_enabled)!=null?f:!1;var I=f?o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("APPOINTMENT_BOOKED")},icon:o.jsx(c("Image.react"),{src:j("961923")}),"data-testid":void 0,children:i._("u5df2u9884u7ea6")}):o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("APPOINTMENT_BOOKED")},icon:o.jsx(c("Image.react"),{src:j("961923")}),"data-testid":void 0,children:"Appointment booked"}),J=f?o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("ORDER_PLACED")},icon:o.jsx(c("Image.react"),{src:j("961939")}),"data-testid":void 0,children:i._("u5df2u4e0bu5355")}):o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("ORDER_PLACED")},icon:o.jsx(c("Image.react"),{src:j("961939")}),"data-testid":void 0,children:"Order placed"}),K=f?o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("PAYMENT_RECEIVED")},icon:o.jsx(c("Image.react"),{src:j("961932")}),"data-testid":void 0,children:i._("u5df2u6536u6b3e")}):o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("PAYMENT_RECEIVED")},icon:o.jsx(c("Image.react"),{src:j("961932")}),"data-testid":void 0,children:"Payment received"});f=f?o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("ORDER_SHIPPED")},icon:o.jsx(c("Image.react"),{src:j("961946")}),"data-testid":void 0,children:i._("u5df2u53d1u8d27")}):o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("ORDER_SHIPPED")},icon:o.jsx(c("Image.react"),{src:j("961946")}),"data-testid":void 0,children:"Order shipped"});I=o.jsxs(c("ReactXUIMenu"),{children:[I,J,K,f]});return o.jsxs("div",{className:"uiContextualLayerParent",children:[E?o.jsx(c("BizKitContextCardLinkButton.react"),{readOnly:n,label:i._("u6dfbu52a0u52a8u6001"),onClick:p}):o.jsx(c("PopoverMenu.react"),{alignh:"right",alignv:"baseline",layerBehaviors:[c("ContextualDialogArrow")],menu:I,"data-testid":void 0,ref:u,children:o.jsx(c("BizKitContextCardLinkButton.react"),{readOnly:n,label:i._("u6dfbu52a0u52a8u6001"),onClick:F})}),u.current!=null&&o.jsx(v,{contextRef:u}),w&&B!=null&&o.jsxs(o.Fragment,{children:[g!=null&&o.jsx(o.Suspense,{fallback:null,children:o.jsx(s,{attachOrderModalType:g.orderStatus,interactionId:g.interactionId,pageID:A,userID:B,hideModal:function(){h(null),x()},setShowOrderShippedDialog:H})}),G&&o.jsx(o.Suspense,{fallback:null,children:o.jsx(t,{onHide:function(){H(!1)},onSuccess:function(){H(!1)},pageID:A,userID:B})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardAboutDetailSection.react",["fbt","BizKitContextCardAboutDetailSection_about.graphql","BizKitContextCardAboutSectionOffline.react","GeoHeading.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var e=a.about,f=a.className,g=a.contactIdentity,j=a.pageID,l=a.bpnID,m=a.surface,n=a.readOnly,o=a.onShowContactCardTosModal,p=a.shouldShowContactCardTos,q=a.shouldDisableBizInput,r=a.isPageEnabledForWAM;a=a.onShowCoexEditInfo;e=d("RelayHooks").useFragment(i!==void 0?i:i=b("BizKitContextCardAboutDetailSection_about.graphql"),e);return k.jsxs("div",{className:f,"data-testid":void 0,children:[k.jsx(c("GeoHeading.react"),{level:3,children:q?h._("u8bbfu5ba2u7528u6237"):h._("u7b80u4ecb")}),k.jsx(c("BizKitContextCardAboutSectionOffline.react"),{details:e,contactIdentity:g,pageID:j,bpnID:l,surface:m,isPageEnabledForWAM:r,readOnly:n,onShowContactCardTosModal:o,shouldShowContactCardTos:p,onShowCoexEditInfo:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardNewActivitySection.react",["fbt","BizInboxCreateLeadMutation","BizInboxFbtUtils","BizInboxGating","BizInboxStateContext","BizKitContextCardActivityListSection.react","BizKitContextCardActivityNuxForAutoDetected.react","BizKitContextCardNewActivitySectionEventLogger","BizKitContextCardNewActivitySectionQuery.graphql","GeoBaseText.react","GeoButton.react","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoPill.react","GeoToast.react","LeadOpportunityStageUpdateMutation","LeadsManagerConstants","LeadsManagerStageSelector.react","LeftRight.react","PageAdsEligibleEventSource","PageConsentForAdsEventsActions","RelayHooks","ThreadOrderStatusDropdownSection.react","XBizSuiteControllerRouteBuilder","XFBMBSAdsEventSharingEntryPointUtils.facebook","bizInboxStateHideContactCardReducer","geoMargin","getBizInboxOrganizeInboxTourSteps","react","relay-runtime/query/fetchQuery","stylex","useAdsDataSharingNUX","useBizInboxStateReducers","useBizWebGetRouteParams","useBizWebRouteDispatcher","useGeoToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.startTransition,n=e.useCallback,o=e.useContext,p=e.useEffect,q=e.useRef,r=e.useState,s=i!==void 0?i:i=b("BizKitContextCardNewActivitySectionQuery.graphql");function a(a){var b,e=a.surface,f=a.pageID,g=a.contactID,i=a.businessAssets,k=a.contactIdentity,t=a.onActivityListUpdated,u=a.isInKBankRollout,v=a.onShowContactCardTosModal,w=a.shouldShowContactCardTos,x=o(c("BizInboxStateContext")),y=x.hasPageSignedLcTos,z=x.selectedIgAssetId,A=x.pBUPIGAccountID,B=x.shouldShowLeadStageUpdateAdsConsent;x=r({fetchPolicy:"network-only"});var C=x[0],D=x[1];x=r(null);var E=x[0];x[1];x=r(null);x[0];var aa=x[1];x=function(a){aa(a),t(a)};var F="MESSENGER",G="MSGR_INBOX_ORGANIC";switch(e){case"INBOX_MESSAGING_IG":case"INBOX_POST_COMMENT_IG":case"INTERACTIONS_IG_COMMENT":case"POST_COMMENT_IG":F="IG";G="IG_INBOX_ORGANIC";break;default:}var H=c("useBizWebRouteDispatcher")(),I=c("useBizWebGetRouteParams")(),J=I.asset_id,K=c("XBizSuiteControllerRouteBuilder").buildURL({rest:"leads_center"});I=function(){var a={asset_id:J};H(K,a);d("BizKitContextCardNewActivitySectionEventLogger").logGoToLeadsCenterCTAClick(f,L,F)};var L=k.contact_id,M=g!==""?g:null,N=d("RelayHooks").useLazyLoadQuery(s,{pageID:f,consumerID:L,contactID:M,surface:e,assetType:F,businessAssets:i,identity:k},C);C=((C=N.leads_center)==null?void 0:C.should_enable_cold_start_improvements)===!0;var O=(b=N.biz_inbox_lead_stage_query)==null?void 0:(b=b.lead_stage)==null?void 0:b.id;b=d("BizInboxGating").getAllowPBIAFrontendChanges()&&z===A;var ba=(N==null?void 0:(z=N.leads_center)==null?void 0:z.should_show_mbs_ads_event_sharing_setting_modal_in_contact_card)===!0;z=b?!1:(A=N.page)==null?void 0:A.has_leads_center_access;b=(b=N.retrieve_biz_crm_contact)==null?void 0:(A=b.page)==null?void 0:A.settings_uri_in_business_view;A=r(O);var P=A[0],Q=A[1],R=q(null),S=d("RelayHooks").useRelayEnvironment();A=n(function(){void c("relay-runtime/query/fetchQuery")(S,s,{pageID:f,consumerID:L,contactID:M,assetType:F,businessAssets:i,identity:k,surface:e}).toPromise()},[F,i,L,k,M,f,S,e]);p(function(){R.current=P,Q(O)},[O]);var ca=c("useBizInboxStateReducers")([c("bizInboxStateHideContactCardReducer")]),T=c("useGeoToaster")(),U=T.add,V=d("RelayHooks").useRelayEnvironment();T=(T=N.biz_inbox_lead_stage_query)==null?void 0:T.lead_opportunity;var W=T==null?void 0:T.id,da=function(){if(W==null)return;var a={asset_id:J,lead_id:W};H(K,a)},X=n(function(){m(function(){D(function(a){return{fetchKey:((a=a==null?void 0:a.fetchKey)!=null?a:0)+1,fetchPolicy:"network-only"}})})},[]),Y=function(a,b){var e;b=b!=null?b>0:a==="mark_as_lead_inbox_contact_card";e=(e=(e=N.leads_center)==null?void 0:e.list_mbs_ads_event_sharing_setting_modal_entrypoints.includes(d("XFBMBSAdsEventSharingEntryPointUtils.facebook").fromJSEnum(a)))!=null?e:!1;if(!B||!b||!e||!ba)return;d("PageConsentForAdsEventsActions").showConsentModalIfNeeded(function(){return!0},function(){return!0},function(){},c("PageAdsEligibleEventSource").LEAD_STAGE_UPDATE,null,a)};T=function(){d("BizKitContextCardNewActivitySectionEventLogger").logMarkAsLeadCTAClick(f,L,F),Y("mark_as_lead_inbox_contact_card"),d("BizInboxCreateLeadMutation").commit(V,f,g,G,F,{onSuccess:function(){ca({type:"has_organic_lead.update"}),X(),U(l.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getAddLeadSuccessToast(),status:"success"}))},onFailure:function(){U(l.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getAddLeadFailureToast(),status:"error"}))}},i)};var Z=function(a){var b;if(a==null||W==null)return;d("BizKitContextCardNewActivitySectionEventLogger").logLeadStageDropdownOptionClick(f,L,a,F);Q(a);b=(b=N.page)==null?void 0:(b=b.page_opportunity_stages)==null?void 0:(b=b.find(function(b){return b.id===a}))==null?void 0:b.stage_key;Y("lead_stage_update_inbox_contact_card",b);d("LeadOpportunityStageUpdateMutation").commit(V,{lead_opportunity_id:W,stage:a,event_location:"business_inbox"},{onSuccess:function(){X(),ea(),U(l.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getMoveLeadStageSuccessToast(),status:"success"})),d("BizKitContextCardNewActivitySectionEventLogger").logLeadStageDropdownOptionSave(f,L,a,F)},onFailure:function(b){U(l.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getMoveLeadStageFailureToast(),status:"error"})),Q(R.current),d("BizKitContextCardNewActivitySectionEventLogger").logLeadStageDropdownOptionError(f,L,a,b,F)}})};I=l.jsx(c("GeoButton.react"),{label:d("BizInboxFbtUtils").getGoToLeadsCenterLabel(),onClick:I,variant:"primary"});var $=l.jsx(c("GeoBaseText.react"),{color:"value",display:"block",isDisabled:!0,size:"accent",children:d("BizInboxFbtUtils").getGoToLeadsCenterSubtitle()});I=l.jsxs(l.Fragment,{children:[I,l.jsx("div",{className:(j||(j=c("stylex")))(c("geoMargin").top4),children:$})]});$=l.jsx(c("GeoButton.react"),{"data-testid":void 0,label:C?d("BizInboxFbtUtils").getContactCardMarkAsLeadLabel():d("BizInboxFbtUtils").getContactCardAddLeadLabel(),onClick:T,variant:"default"});T=(T=N.biz_inbox_lead_stage_query)==null?void 0:(T=T.lead_opportunity)==null?void 0:T.mbs_ads_event_sharing_lead_opt_in_status;T=T==="OPTED_IN"?(T=N.retrieve_biz_crm_contact)==null?void 0:T.adsDataSharingLeadStageUpdateNUX:[];var ea=d("useAdsDataSharingNUX").useAdsEventSharingNux(T,b,f);T=l.jsx(c("LeadsManagerStageSelector.react"),{dataTestId:"contact-card-leads-stage-selector-button",allowNoSelection:!1,isDisabled:!1,stages:(T=N.page)==null?void 0:T.page_opportunity_stages,selectedValue:P,width:160,onChange:Z,consumerID:L,pageID:f,assetType:F,shouldShowBulkAction:!1,shouldShowBulkEditImprovement:!1});Z=l.jsx(c("GeoLink.react"),{"data-testid":void 0,onClick:function(){da(),d("BizKitContextCardNewActivitySectionEventLogger").logViewInLeadsCenterTextClick(f,L,F)},children:d("LeadsManagerConstants").VIEW_IN_LEADS_CENTER_TEXT});Z=z===!0?l.jsxs("div",{className:"xyamay9 x4uap5 x18d9i69 xkhd6sd",children:[l.jsxs(c("LeftRight.react"),{children:[l.jsx(c("GeoHeading.react"),{level:4,children:d("LeadsManagerConstants").LEAD_STAGE_LABEL}),y&&((z=N.biz_inbox_lead_stage_query)==null?void 0:z.lead_stage)!==null?Z:null]}),l.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top8,children:y?((z=N.biz_inbox_lead_stage_query)==null?void 0:z.lead_stage)===null?$:T:I})]}):null;z=(y=N.retrieve_biz_crm_contact)==null?void 0:y.adsDataSharingActivityNUX;$=d("useAdsDataSharingNUX").useAdsEventSharingNux(z,b,f);y=(I=(T=N.page)==null?void 0:T.thread_action_system_should_use_optimistic_update)!=null?I:!1;z=F!=="MESSENGER"?null:y?l.jsx(d("ThreadOrderStatusDropdownSection.react").ThreadOrderStatusDropdownSection,{pageID:f,consumerID:L,query:N.page,environment:V,refresh:X,showAdEventSharingLegalNux:$,onShowContactCardTosModal:v,shouldShowContactCardTos:w}):l.jsx(d("ThreadOrderStatusDropdownSection.react").ThreadOrderStatusDropdownSectionDeprecated,{pageID:f,consumerID:L,query:N.page,environment:V,refresh:X,showAdEventSharingLegalNux:$,onShowContactCardTosModal:v,shouldShowContactCardTos:w});b=F!=="MESSENGER"?null:l.jsx("div",{className:(j||(j=c("stylex")))(c("geoMargin").top8),children:l.jsx(c("BizKitContextCardActivityListSection.react"),{activity:N.retrieve_biz_crm_contact,page:E==null?void 0:E.page.listItemRef,mbsBusinessAssets:E==null?void 0:E.xfb_mbs_business_assets.listItemRef,pageID:f,userID:L,surface:e,pageContactID:g,onActivityListUpdated:x,isInKBankRollout:u,onShowContactCardTosModal:v,shouldShowContactCardTos:w,contactIdentity:k,refetchLeadOpportunity:A})});return l.jsxs(l.Fragment,{children:[l.jsx(c("BizKitContextCardActivityNuxForAutoDetected.react"),{contact:N.retrieve_biz_crm_contact,shouldShowNux:((T=N.retrieve_biz_crm_contact)==null?void 0:T.should_show_automated_activity_redesigned_nux)!==!0&&((I=N.retrieve_biz_crm_contact)==null?void 0:I.should_show_automated_activity_nux)===!0,pageID:f,nuxType:"AUTOMATED_ACTIVITY_CREATION",identity:k,refetchLeadOpportunity:A}),l.jsx("div",{ref:d("getBizInboxOrganizeInboxTourSteps").contactCardActivitySectionRef,className:a.className,"data-testid":void 0,children:l.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top4,children:[l.jsxs(c("GeoFlexbox.react"),{gap:8,alignItems:"center",children:[l.jsx(c("GeoHeading.react"),{level:3,children:h._("u52a8u6001")}),C?l.jsx(c("GeoPill.react"),{label:d("LeadsManagerConstants").RECOMMENDED_PILL_CONTENT,status:"info",value:d("LeadsManagerConstants").RECOMMENDED_PILL_CONTENT}):null]}),Z,z,b]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardAboutSectionOffline.react",["fbt","ix","BizEmailSubscriptionConsts","BizInboxStateContext","BizKitContextCardAboutSectionLoggingUtils","BizKitContextCardAboutSectionOfflineRow.react","BizKitContextCardAboutSectionOffline_details.graphql","BizKitContextCardConstants","BizKitContextCardLinkButton.react","CountryNames","GeoBaseText.react","GeoButton.react","GeoLink.react","ISOCountryCode","Image.react","JSResource","LeftRight.react","RelayHooks","WhatsAppMarketingFbtUtils","geoMargin","isTruthy","lazyLoadComponent","react","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react"));e=l;var n=e.useContext,o=e.useState,p=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardEditProfileDialog.react").__setRef("BizKitContextCardAboutSectionOffline.react")),q="https://www.facebook.com/business/help/925702697860930";function r(a){a=((a=a.shared_attributes)==null?void 0:a.profile)||{};var b=a.phone;a=a.fallback_phone_number;b=(b==null?void 0:b.phoneNumber)||a;return{icon:m.jsx(c("Image.react"),{src:i("972302")}),value:(a=b)!=null?a:h._("+ u624bu673au53f7")}}function s(a,b){var e,f;b=b==="CRM_DESTINATION";e=(e=a.shared_attributes)==null?void 0:(e=e.profile)==null?void 0:e.email;f=((f=a.wa_attributes)==null?void 0:f.wa_customer_id)!=null;var g=null;e!=null?g=e:g=h._("+ u90aeu7bb1");e={icon:m.jsx(c("Image.react"),{src:i("569294")}),value:g,"data-testid":"context_card_details_email"};if(f)return e;g=(a=a==null?void 0:(g=a.business_attributes)==null?void 0:(f=g.communication_preference)==null?void 0:f.email_subscription_status)!=null?a:"UNCONFIRMED";f=d("BizEmailSubscriptionConsts").getEmailSubscriptionStatusConsts(g);a={iconSecondLine:b?m.jsx(c("Image.react"),{src:f.icon_size_8}):null,valueSecondLine:b?f.label:null};return babelHelpers["extends"]({},e,a)}function t(a){return{icon:m.jsx(c("Image.react"),{src:i("972294")}),value:((a=a.shared_attributes)==null?void 0:(a=a.profile)==null?void 0:a.formatted_birthday)||h._("+ u751fu65e5"),"data-testid":"context_card_details_birthday"}}function u(a,b){var d,e;b=b==="CRM_DESTINATION";d=a==null?void 0:(d=a.shared_attributes)==null?void 0:(d=d.profile)==null?void 0:d.country_code;return{icon:m.jsx(c("Image.react"),{src:i("820011")}),value:((e=a.shared_attributes)==null?void 0:(e=e.profile)==null?void 0:e.address)||h._("+ u5730u5740"),valueSecondLine:(e=a.shared_attributes)==null?void 0:(a=e.profile)==null?void 0:a.city_state,valueThirdLine:b&&c("isTruthy")(d)?c("CountryNames")[c("ISOCountryCode")[d]]:null,"data-testid":"context_card_details_address"}}function v(){return m.jsxs("div",{children:[m.jsx("div",{className:"xz9dl7a x4uap5 xsag5q8 xkhd6sd",children:m.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("u8fd9u4f4du7528u6237u6b63u4ee5u8bbfu5ba2u8eabu4efdu4f7fu7528u4f60u7684u7f51u7ad9u804au5929u63d2u4ef6u3002u5728u7ed9u8fd9u4f4du7528u6237u53d1u7b2cu4e00u6761u6d88u606fu540eu7684 24 u5c0fu65f6u5185uff0cu4f60u53efu4ee5u4e0eu4e4bu4e92u53d1u6d88u606fuff1b24 u5c0fu65f6u540eu5219u65e0u6cd5u518du5411u5bf9u65b9u53d1u6d88u606fu3002")})}),m.jsx("div",{className:"xz9dl7a x4uap5 xsag5q8 xkhd6sd",children:m.jsxs(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:[h._("u4f46u662fuff0cu4f60u4ecdu53efu5728u6536u4ef6u7bb1u4e2du67e5u770bu804au5929u8bb0u5f55u3002"),m.jsx(c("GeoLink.react"),{href:q,target:"_blank",children:"Learn More"})]})})]})}v.displayName=v.name+" [from "+f.id+"]";function w(a){var b=a.editButtonDataTestID;b=a.onEditButtonClicked;a=a.readOnly;return m.jsxs("div",{className:"xz9dl7a x4uap5 xsag5q8 xkhd6sd",children:[m.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("u8bf7u6dfbu52a0u8054u7cfbu65b9u5f0fu7b49u7528u6237u4fe1u606fu3002")}),m.jsx("div",{className:(k||(k=c("stylex")))(c("geoMargin").top12),children:m.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:a,disabledMessage:c("BizKitContextCardConstants").CONTACT_CARD_READ_ONLY_MODE_DISABLE_BUTTON_HOVER_OVER_TEXT,label:h._("u6dfbu52a0u4fe1u606f"),onClick:b})})]})}w.displayName=w.name+" [from "+f.id+"]";function a(a){var e,f,g,k,l,q=a.pageID,x=a.contactIdentity,y=a.surface,z=a.readOnly,A=a.onShowContactCardTosModal,B=a.shouldShowContactCardTos,C=a.bpnID,D=a.isPageEnabledForWAM,E=a.onShowCoexEditInfo,F=o(!1),G=F[0],H=F[1];F=n(c("BizInboxStateContext"));F=F.isWAOnly;a=d("RelayHooks").useFragment(j!==void 0?j:j=b("BizKitContextCardAboutSectionOffline_details.graphql"),a.details);var I=a==null?void 0:(e=a.shared_attributes)==null?void 0:e.page_contact_id;e=function(){H(!0),d("BizKitContextCardAboutSectionLoggingUtils").logAddContactDetailsClick(q,I,y)};var J=function(){H(!0),d("BizKitContextCardAboutSectionLoggingUtils").logEditContactDetailsClick(q,I,y)},K=function(){H(!1)};f=a==null?void 0:(f=a.shared_attributes)==null?void 0:(f=f.profile)==null?void 0:f.guest_id;g=Object.entries((a==null?void 0:(g=a.shared_attributes)==null?void 0:g.profile)||{}).every(function(a){return a[0]==="guest_id"||a[1]==null||a[1]===""});k=(a==null?void 0:(k=a.wa_attributes)==null?void 0:k.wa_customer_id)!=null;l=d("WhatsAppMarketingFbtUtils").getLabelForStatus(a==null?void 0:(l=a.wa_attributes)==null?void 0:l.opt_in_status);if(f!=null)return m.jsx(v,{});f=G&&m.jsx(m.Suspense,{fallback:null,children:m.jsx(p,{pageID:q,bpnID:C,hideContactCardProfileSectionEditDialog:K,contactIdentity:x,contact:a,surface:y,isPageEnabledForWAM:D,onShowCoexEditInfo:E})});return g||a==null?m.jsxs(m.Fragment,{children:[f,m.jsx(w,{onEditButtonClicked:B?A:e,readOnly:z,editButtonDataTestID:"context_card_details_edit"})]}):m.jsxs("div",{className:"xz9dl7a xn6708d xsag5q8 x1ye3gou",children:[m.jsxs(c("LeftRight.react"),{children:[m.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("u5df2u6dfbu52a0u7684u4fe1u606f")}),!F&&m.jsx(c("BizKitContextCardLinkButton.react"),{"data-testid":void 0,readOnly:z,label:h._("u7f16u8f91"),onClick:B?A:J})]}),f,m.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},r(a))),k&&D?m.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,{icon:m.jsx(c("Image.react"),{src:i("617781")}),value:l}):null,m.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},s(a,y))),m.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},t(a))),m.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},u(a,y)))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardActivityListSection.react",["fbt","BizInboxCustomActivityCreatedSubscription","BizKitContextCardActivityListItem3DWrapper.react","BizKitContextCardActivityListSection_activity.graphql","BizKitContextCardMoreSection.react","BizKitContextCardSeeLessSection.react","BizKitContextCardUtils","ContactGraphSeeMoreActivityClickFalcoEvent","GeoBaseText.react","PagesContextCardHistoryStoryViewer.react","RelayHooks","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.startTransition,m=e.useEffect,n=e.useRef,o=e.useState,p=2,q=3,r=i!==void 0?i:i=b("BizKitContextCardActivityListSection_activity.graphql");function a(a){var b=a.activity,e=a.pageID,f=a.userID,g=a.surface,i=a.pageContactID,j=a.isInKBankRollout,s=a.onActivityListUpdated,t=a.onShowContactCardTosModal,u=a.shouldShowContactCardTos,v=a.contactIdentity,w=a.refetchLeadOpportunity;b=d("RelayHooks").usePaginationFragment(r,b);var x=b.data,y=b.loadNext,z=b.hasNext,A=b.refetch;b=o(null);var B=b[0],C=b[1],D=x==null?void 0:(b=x.all_actions)==null?void 0:(b=b.interaction_count)==null?void 0:b.count,E=x==null?void 0:(b=x.all_actions)==null?void 0:(b=b.actions)==null?void 0:(b=b.edges)==null?void 0:b.length;b=o(null);var F=b[0],G=b[1],H=x==null?void 0:(b=x.all_actions)==null?void 0:(b=b.actions)==null?void 0:b.__id,I=n(),J=d("RelayHooks").useRelayEnvironment();m(function(){if(H!=null){s(H);if(F!==D){var a;w();G((a=D)!=null?a:0)}v.type==="FB_USER"&&(I.current=d("BizInboxCustomActivityCreatedSubscription").subscribe(J,v,function(){}))}return function(){var a;(a=I.current)==null?void 0:a.dispose();I.current=null}},[s,H,v,J]);d("RelayHooks").useSubscribeToInvalidationState([H].filter(Boolean),function(){var a=x==null?void 0:x.id;a!=null&&l(function(){A({count:q,id:a})})});var K=function(){c("ContactGraphSeeMoreActivityClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(g),page_id:e,page_contact_id:i,event_data:{},is_server_log:!1}}),z&&y(q)},L=function(){var a=x==null?void 0:x.id;a!=null&&l(function(){A({count:p,id:a},{fetchPolicy:"network-only"})})},M=function(a){a=(a=a.contact_action)==null?void 0:(a=a.story)==null?void 0:a.id;a!=null&&C(a)};b=function(){if(D==null||E==null)return null;return D<=E?null:k.jsx(c("BizKitContextCardMoreSection.react"),{className:"x178xt8z x13fuv20 xkh9tda x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",onClick:K})};var N=function(){if(E==null)return null;return E>q?k.jsx(c("BizKitContextCardSeeLessSection.react"),{className:"x178xt8z x13fuv20 xkh9tda x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",onClick:L}):null},O=function(){var b;b=x==null?void 0:(b=x.all_actions)==null?void 0:(b=b.actions)==null?void 0:b.edges;if(b==null||b.length===0)return k.jsx("div",{className:"x17ddzgb x14vqqas",children:k.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",isDisabled:!0,display:"block","data-testid":void 0,children:h._("u8ffdu8e2au91cdu8981u7684u5ba2u6237u4e92u52a8u3002")})});b=b.map(function(b,d){var h;return((h=b.node)==null?void 0:h.codeSplitWrapper)!=null&&k.jsx(c("BizKitContextCardActivityListItem3DWrapper.react"),{wrapperRef:(h=b.node)==null?void 0:h.codeSplitWrapper,isInKBankRollout:j,page:a.page,mbsBusinessAssets:a.mbsBusinessAssets,pageID:e,surface:g,pageContactID:i,selectInteraction:M,onShowContactCardTosModal:t,shouldShowContactCardTos:u,userID:f},"interaction_"+d)});return k.jsx("div",{className:"x14vqqas",children:b})},P=function(){return B!=null?k.jsx(c("PagesContextCardHistoryStoryViewer.react"),{pageID:e,storyToken:B,userID:c("nullthrows")(f),onClose:function(){return C(null)}}):null};return k.jsxs("div",{children:[P(),O(),N(),b()]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardSuggestedLabelsSection.react",["fbt","BizInboxFeatureTipRenderer.react","BizInboxStateContext","BizKitContextCardLabel.react","BizKitContextCardUtils","CRMContextCardSuggestedLabels","ContactGraphSuggestedLabelDismissFalcoEvent","ContextCardLabelUtils","GeoText.react","LeftRight.react","RelayHooks","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useRef;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=a.contactIdentity,f=a.conversationLabels,g=a.connectionID,i=a.suggestedLabels,m=a.onCreateAndAddLabel,n=a.onShowContactCardTosModal,o=a.shouldShowContactCardTos,p=a.surface,q=a.pageID,r=a.pageContactID;a=k(c("BizInboxStateContext"));var s=a.shouldShowPriorityInbox;a=a.shouldShowMLSuggestedLabel;var t=l(null),u=j.jsx(c("BizInboxFeatureTipRenderer.react"),{contextRef:t,tipPosition:"suggested-label",contextualLayerPosition:"start"}),v,w=a?function(a,f,h,i){d("ContextCardLabelUtils").onDismissSuggestedLabel(b,g,e,a,f,p),c("ContactGraphSuggestedLabelDismissFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(p),page_id:q,page_contact_id:r,event_data:{label_name:f,is_bulk_action:!1,is_suggested_label:!0,content_type:i,label_color:h},is_server_log:!1}})}:null;a=i.filter(function(a){return!f.find(function(b){return b.name.toLocaleLowerCase()===a.name.toLocaleLowerCase()})});s&&(a=a.filter(function(a){return a.name.toLocaleLowerCase()!==c("CRMContextCardSuggestedLabels")[1].name.toString().toLocaleLowerCase()}));a.length!==0&&(v=a.map(function(a,b){return a&&j.jsxs("div",{ref:d("ContextCardLabelUtils").genUpsellSuggestedLabel(b,a,q,p,r)===!0?t:null,className:"x1rg5ohu",children:[j.jsx(c("BizKitContextCardLabel.react"),{color:c("nullthrows")(a.color),name:c("nullthrows")(a.display_name.toString()),contentType:c("nullthrows")(a.content_type),createName:c("nullthrows")(a.name),id:c("nullthrows")(a.id),onDismissLabel:w,isSuggestedLabel:!0,onAddorCreateLabel:m,readOnly:!1,onShowContactCardTosModal:n,shouldShowContactCardTos:o,isAILabel:!1,isAdResponseLabel:!1}),d("ContextCardLabelUtils").genUpsellSuggestedLabel(b,a,q,p,r)===!0?u:null]},c("nullthrows")(a.name))}));return j.jsxs("div",{"data-testid":void 0,children:[j.jsx(c("LeftRight.react"),{children:j.jsx("div",{className:"xod5an3 x14vqqas",children:j.jsx(c("GeoText.react"),{children:h._("u63a8u8350u6807u7b7e")})})}),v]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardActivityListItem3DWrapper.react",["BizKitContextCardActivityListItem3DWrapper_BizCRMContactAction3DWrapper.graphql","CometRelay","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.Suspense;function a(a){var c=a.isInKBankRollout,e=a.mbsBusinessAssets,f=a.onShowContactCardTosModal,g=a.page,i=a.pageContactID,l=a.pageID,m=a.selectInteraction,n=a.shouldShowContactCardTos,o=a.surface,p=a.userID;a=a.wrapperRef;a=d("CometRelay").useFragment(h!==void 0?h:h=b("BizKitContextCardActivityListItem3DWrapper_BizCRMContactAction3DWrapper.graphql"),a);return j.jsx(k,{fallback:null,children:j.jsx(d("CometRelay").MatchContainer,{match:a,props:{data:a,isInKBankRollout:c,page:g,mbsBusinessAssets:e,pageID:l,surface:o,pageContactID:i,selectInteraction:m,onShowContactCardTosModal:f,shouldShowContactCardTos:n,shouldRemovePageVCDependency:!0,userID:p}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCard.react",["BizCRMContactCardPermission","BizCRMContactCardSection","BizKitContextCardConstants","BizKitContextCardErrorBoundary.react","BizKitContextCardTOSModal.react","BizKitContextCardTosLoggingUtils","BizKitContextCard_config.graphql","BizKitContextCard_detail.graphql","GeoToast.react","JSResource","RelayHooks","cr:4922","getJSEnumSafe","getShould3DBizInboxContextCardSections.entrypointutils","lazyLoadComponent","react","useGeoToaster"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useState,m=c("lazyLoadComponent")(c("JSResource")("BizKitContactCardCoexEditInfoModal.react").__setRef("BizKitContextCard.react"));function a(a){var e,f,g=d("RelayHooks").useFragment(h!==void 0?h:h=b("BizKitContextCard_detail.graphql"),a.contactDetails),j=d("RelayHooks").useFragment(i!==void 0?i:i=b("BizKitContextCard_config.graphql"),a.contactConfig),n=a.contactID,o=a.contactIdentity,p=a.pageID,q=a.onSelectLabel,r=a.onActivityListUpdated,s=a.activitiesQueryReference,t=a.onBanUser,u=a.isBlockedInIG,v=a.surface,w=a.businessAssets,x=a.isDependencyOfRemovePageDependencyEnabledTool;x=x===void 0?!1:x;var y=a.externalPaymentAccountData,z=a.isGcashEnabled,A=(j==null?void 0:j.permission)?c("getJSEnumSafe")(c("BizCRMContactCardPermission"),j==null?void 0:j.permission)!=="READ_WRITE":!1,B=(e=g==null?void 0:(e=g.shared_attributes)==null?void 0:e.is_guest_chat)!=null?e:!1,C=(e=g==null?void 0:(e=g.shared_attributes)==null?void 0:e.page_contact_id)!=null?e:"";e=(e=g==null?void 0:g.has_consented_to_contact_card_tos)!=null?e:!1;var D=["CRM_DESTINATION","INBOX_CONTACT_LIST","INBOX_LEAD_EMAIL"].includes(v),E=!D&&!e;D=x?g==null?void 0:g.mbs_business_assets:g==null?void 0:g.page;x=x?(g==null?void 0:(x=g.mbs_business_assets)==null?void 0:x.page_if_viewer_can_manage_permissions)!=null:(g==null?void 0:(x=g.page)==null?void 0:x.if_viewer_can_manage_permissions)!=null;var F=!1,G=D==null?void 0:(f=D.business_presence_node)==null?void 0:f.id,H=(D==null?void 0:(f=D.is_in_kbank_rollout)==null?void 0:f.passes)===!0,I=(g==null?void 0:(D=g.page)==null?void 0:(f=D.show_payment_onboarding_context_card)==null?void 0:f.passes_gk)===!0;D=l(!1);f=D[0];var J=D[1];D=c("useGeoToaster")();var K=D.add,L=function(a){var b=null;a==="error"?b=c("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_ERROR_TEXT:a==="success"&&(b=c("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_SUCCESS_TEXT);b!==null&&K(k.jsx(c("GeoToast.react"),{heading:b,status:a}),{duration:"standard"})};D=l(!1);var M=D[0],N=D[1],O=function(){N(!0)};D=M&&k.jsx(k.Suspense,{fallback:null,children:k.jsx(m,{isShown:M,onHide:function(){N(!1)}})});var P=function(){J(!0),d("BizKitContextCardTosLoggingUtils").logTosModalEnterFlow(p,C,v)};j=d("getShould3DBizInboxContextCardSections.entrypointutils").getShould3DBizInboxContextCardSections()?j==null?void 0:(M=j.sections_renderers)==null?void 0:M.map(function(d){return k.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:p,section:c("getJSEnumSafe")(c("BizCRMContactCardSection"),d.section_enum),children:k.jsx(b("cr:4922"),{surface:v,data:g,sectionName:d.section_enum,pageID:p,bpnID:G,contactID:n,pageContactID:C,contactIdentity:o,onSelectLabel:q,isPageEnabledForWAM:F,onActivityListUpdated:r,onBanUser:t,isInKBankRollout:H,activitiesQueryReference:s,isBlockedInIG:u,readOnly:A,shouldShowCloseButton:a.shouldShowCloseButton,onClose:a.onClose,onShowContactCardTosModal:P,shouldShowContactCardTos:E,shouldDisableBizInput:B,pageRef:g==null?void 0:g.page,mbsBusinessAssetsRef:g==null?void 0:g.mbs_business_assets,externalPaymentAccountData:y,rendererRef:d,businessAssets:w,shouldShowPaymentOnboardingContextCard:I,isGcashEnabled:z,onShowCoexEditInfo:O})},d.section_enum)}):j==null?void 0:(M=j.sections)==null?void 0:M.map(function(d){return k.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:p,section:c("getJSEnumSafe")(c("BizCRMContactCardSection"),d),children:k.jsx(b("cr:4922"),{surface:v,data:g,sectionName:d,pageID:p,bpnID:G,contactID:n,pageContactID:C,contactIdentity:o,onSelectLabel:q,isPageEnabledForWAM:F,onActivityListUpdated:r,onBanUser:t,isInKBankRollout:H,activitiesQueryReference:s,isBlockedInIG:u,readOnly:A,shouldShowCloseButton:a.shouldShowCloseButton,onClose:a.onClose,onShowContactCardTosModal:P,shouldShowContactCardTos:E,shouldDisableBizInput:B,pageRef:g==null?void 0:g.page,mbsBusinessAssetsRef:g==null?void 0:g.mbs_business_assets,externalPaymentAccountData:y,rendererRef:null,businessAssets:w,shouldShowPaymentOnboardingContextCard:I,isGcashEnabled:z,onShowCoexEditInfo:O})},d)});return k.jsxs("div",{className:"xdpxx8g","data-testid":void 0,children:[j,D,!e&&G!=null?k.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:p,children:k.jsx(c("BizKitContextCardTOSModal.react"),{bpnID:G,pageID:p,contactIdentity:o,pageContactID:C,surface:v,isShown:f,isAdmin:x,onHide:function(){J(!1),d("BizKitContextCardTosLoggingUtils").logTosModalCancelFlow(p,C,v)},onAcceptSuccess:function(){J(!1),L("success")},onAcceptFailure:function(){J(!1),L("error")}})}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardTOSModal.react",["fbt","BizKitContextCardAcceptToSMutation","BizKitContextCardConstants","BizKitContextCardTosLoggingUtils","CRMConsentToTOSDialog.react","GeoButton.react","GeoCancelButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","RelayHooks","err","geoMargin","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=a.pageID,f=a.contactIdentity,g=a.pageContactID,j=a.surface,m=a.isShown,n=a.isAdmin,o=a.onHide,p=a.onAcceptSuccess,q=a.onAcceptFailure;a=l(!1);var r=a[0],s=a[1];a=l(!1);var t=a[0],u=a[1];a=function(){s(!0),d("BizKitContextCardTosLoggingUtils").logTosReviewButtonClick(e,g,j)};var v=function(){d("BizKitContextCardAcceptToSMutation").commit(b,{actor_id:e,identity:f},{onSuccess:function(a){a=(a=a.biz_crm_contact_sign_tos)==null?void 0:(a=a.biz_crm_contact)==null?void 0:a.has_consented_to_contact_card_tos;a===!0?(p(),d("BizKitContextCardTosLoggingUtils").logTosAcceptSuccess(e,g,j)):(q(),u(!1),d("BizKitContextCardTosLoggingUtils").logTosAcceptFailure(e,g,j,c("err")("unexpected tos signing failure")))},onFailure:function(a){q(),u(!1),d("BizKitContextCardTosLoggingUtils").logTosAcceptFailure(e,g,j,a)}})},w=function(){window.open("https://www.facebook.com/legal/page_contact_terms","_blank"),o()};return k.jsxs("span",{children:[k.jsx(c("GeoModal.react"),{footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{"data-testid":void 0,label:n?h._("u67e5u770b"):h._("u67e5u770bu6761u6b3e"),onClick:n?a:w,isLoading:t,variant:"primary"}),secondaryButton:k.jsx(c("GeoCancelButton.react"),{"data-testid":void 0})}),header:k.jsx(c("GeoModalHeader.react"),{heading:n?c("BizKitContextCardConstants").CONTACT_CARD_TOS_HEADER_TEXT:c("BizKitContextCardConstants").CONTACT_CARD_TOS_NON_ADMIN_HEADER_TEXT}),isShown:m,onHide:o,children:k.jsxs(c("GeoSection.react"),{children:[k.jsx("div",{children:k.jsx(c("GeoText.react"),{xstyle:c("geoMargin").vert16,children:n?c("BizKitContextCardConstants").CONTACT_CARD_TOS_FIRST_SECTION_TEXT:c("BizKitContextCardConstants").CONTACT_CARD_TOS_NON_ADMIN_FIRST_SECTION_TEXT})}),k.jsx("div",{className:(i||(i=c("stylex")))(c("geoMargin").top16),children:k.jsx(c("GeoLink.react"),{xstyle:c("geoMargin").vert16,onClick:n?a:w,children:k.jsx("strong",{children:n?c("BizKitContextCardConstants").CONTACT_CARD_TOS_CONTINUE_REVIEW_TEXT:h._("u67e5u770bu6761u6b3e")})})})]})}),k.jsx(c("CRMConsentToTOSDialog.react"),{isShown:r,onConfirm:function(){u(!0),d("BizKitContextCardTosLoggingUtils").logTosAcceptClick(e,g,j),v()},onHide:function(){o(),s(!1)},isLoading:t,alwaysAllowConfirm:!0})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardTosLoggingUtils",["BizKitContextCardUtils","ContactGraphTosAcceptClickFalcoEvent","ContactGraphTosAcceptFailureFalcoEvent","ContactGraphTosAcceptSuccessFalcoEvent","ContactGraphTosModalCancelFlowFalcoEvent","ContactGraphTosModalEnterFlowFalcoEvent","ContactGraphTosReviewButtonClickFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e){c("ContactGraphTosModalEnterFlowFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function b(a,b,e){c("ContactGraphTosModalCancelFlowFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function e(a,b,e){c("ContactGraphTosReviewButtonClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function f(a,b,e){c("ContactGraphTosAcceptClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function h(a,b,e){c("ContactGraphTosAcceptSuccessFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function i(a,b,e,f){c("ContactGraphTosAcceptFailureFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{error_type:f.name,error_message:f.message,error_trace:f.stack},is_server_log:!1}})}g.logTosModalEnterFlow=a;g.logTosModalCancelFlow=b;g.logTosReviewButtonClick=e;g.logTosAcceptClick=f;g.logTosAcceptSuccess=h;g.logTosAcceptFailure=i}),98);
-----
ContactGraphTosModalEnterFlowFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("792");b=d("FalcoLoggerInternal").create("contact_graph_tos_modal_enter_flow",a);e=b;g["default"]=e}),98);
-----
ContactGraphTosModalCancelFlowFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("791");b=d("FalcoLoggerInternal").create("contact_graph_tos_modal_cancel_flow",a);e=b;g["default"]=e}),98);
-----
AdFLEXWhatsappMmInboxReTosMessageMarketingConfigPlugin",["AdsPERouterHelper","MessageMarketingMBSInboxToSModalAction"],(function(a,b,c,d,e,f,g){"use strict";a={type:"flexWhatsappMmInboxReTosConfig",key:"marketingMessages",tool:"MANAGE_MESSAGES",getWhatsAppInboxReTosModal:function(){var a=c("AdsPERouterHelper").getRouter().getQueryParams();a=(a=a.show_inbox_re_tos)!=null?a:!1;a&&c("MessageMarketingMBSInboxToSModalAction").dispatch({isModalShown:!0},{line:"29",module:"AdFLEXWhatsappMmInboxReTosMessageMarketingConfigPlugin.js",moduleID:f.id});return null}};b=a;g["default"]=b}),98);
-----
MarketingMessagesLWITOSModalWrapperMutation.graphql",["MarketingMessagesLWITOSModalWrapperMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"request",variableName:"input"}],concreteType:"XFBMIGMarketingMessagesInAdsManagerTOSMutationResponse",kind:"LinkedField",name:"xfb_mig_marketing_messages_in_am_tos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MarketingMessagesLWITOSModalWrapperMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MarketingMessagesLWITOSModalWrapperMutation",selections:c},params:{id:b("MarketingMessagesLWITOSModalWrapperMutation_facebookRelayOperation"),metadata:{},name:"MarketingMessagesLWITOSModalWrapperMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MarketingMessagesLWITOSModalWrapperMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7752166058168768"}),null);
-----
CometMarketingMessageLwiComposerContext",["emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=(h||d("react")).createContext;b={campaignInfo:{bidAmount:null,duration:null,endDateTime:null,lifetimeBudget:null,startDateTime:null},composerSurface:"BIZ_INBOX",creativeInfo:{buttons:[{buttonText:null,buttonURL:null}],campaignBody:null,campaignHeadline:null,media:{mediaHash:null,mediaType:null,videoID:null}},isMbsConfirmationModalShown:!1,isTosModalShown:!1,pageInfo:{adAccounts:[{id:"",legacyAccountID:"",name:""}],isPaidMmTosSigned:!1,pageID:"",pageName:"",pageProfilePicURI:"",subscriberCount:null}};e=function(a,b){switch(b.type){case"SET_IS_TOS_MODAL_SHOWN":return babelHelpers["extends"]({},a,{isTosModalShown:b.isTosModalShown});case"SET_IS_CONFIRMATION_MODAL_SHOWN":return babelHelpers["extends"]({},a,{isTosModalShown:b.isConfirmationModalShown})}};f=a(b);d=a(c("emptyFunction"));g.CometMarketingMessageLwiComposerInitialState=b;g.CometMarketingMessageLwiComposerReducer=e;g.CometMarketingMessageLwiComposerStateContext=f;g.CometMarketingMessageLwiComposerDispatchContext=d}),98);
-----
LiveProducerMMLWICreationContainerView.react",["CometCardedDialogLegacy.react","FDSDialog.react","LiveProducerMMLWIConsts","LiveProducerMMLWISubscriberInvitation.react","LiveProducerNotifySubscribersConsts","MarketingMessagesLWITOSModalWrapper.react","emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||(h=d("react"))).unstable_useMemoCache,j=h;function a(a){var b=i(13),e=a.composerContent,f=a.composerFooter;a=a.dismissDialog;var g=d("LiveProducerMMLWIConsts").LiveProducerMMLWICurrentStep.SUBSCRIBER_INVITATION;switch(g){case d("LiveProducerMMLWIConsts").LiveProducerMMLWICurrentStep.TERMS:b[0]===Symbol["for"]("react.memo_cache_sentinel")?(g=j.jsx(c("MarketingMessagesLWITOSModalWrapper.react"),{}),b[0]=g):g=b[0];return g;case d("LiveProducerMMLWIConsts").LiveProducerMMLWICurrentStep.CREATION:b[1]===Symbol["for"]("react.memo_cache_sentinel")?(g=j.jsx(j.Fragment,{}),b[1]=g):g=b[1];var h;b[2]!==e?(h=j.jsx(j.Fragment,{children:e}),b[2]=e,b[3]=h):h=b[3];b[4]!==f||b[5]!==h?(e=j.jsx(c("FDSDialog.react"),{footer:f,header:g,children:h}),b[4]=f,b[5]=h,b[6]=e):e=b[6];return e;case d("LiveProducerMMLWIConsts").LiveProducerMMLWICurrentStep.SUMMARY:g=a!=null?a:c("emptyFunction");b[7]===Symbol["for"]("react.memo_cache_sentinel")?(f=j.jsx(j.Fragment,{children:"MM Summary Placeholder"}),b[7]=f):f=b[7];b[8]!==g?(h=j.jsx(c("CometCardedDialogLegacy.react"),{onClose:g,size:"medium",title:"MM LWI",withCloseButton:!0,children:f}),b[8]=g,b[9]=h):h=b[9];return h;case d("LiveProducerMMLWIConsts").LiveProducerMMLWICurrentStep.SUBSCRIBER_INVITATION:e=a!=null?a:c("emptyFunction");b[10]===Symbol["for"]("react.memo_cache_sentinel")?(f=j.jsx(c("LiveProducerMMLWISubscriberInvitation.react"),{}),b[10]=f):f=b[10];b[11]!==e?(g=j.jsx(c("CometCardedDialogLegacy.react"),{onClose:e,size:"medium",title:d("LiveProducerNotifySubscribersConsts").LIVE_PRODUCER_NOTIFY_PEOPLE_LABEL,withCloseButton:!0,children:f}),b[11]=e,b[12]=g):g=b[12];return g}}g["default"]=a}),98);
-----
useCometMarketingMessageLwiComposerContextActions",["CometMarketingMessageLwiComposerContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useContext;function a(){var a=i(d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerDispatchContext);function b(b){a({isTosModalShown:b,type:"SET_IS_TOS_MODAL_SHOWN"})}return{setIsTosModalShown:b}}g["default"]=a}),98);
-----
CometMarketingMessageLwiComposerFullPageView.react",["BizMarketingMessageLWIComposerFramework.react","CometMarketingMessageLwiComposerContext","CometMarketingMessageLwiComposerFullPageView_page.graphql","MarketingMessagesLWITOSModalWrapper.react","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useContext,l=h!==void 0?h:h=b("CometMarketingMessageLwiComposerFullPageView_page.graphql");function a(a){a=a.page;a=d("RelayHooks").useFragment(l,a);a==null?void 0:a.name;a=k(d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerStateContext);var b=a.composerSurface,e=a.isTosModalShown;a=a.pageInfo;return j.jsxs(j.Fragment,{children:[e&&b==="BIZ_INBOX"&&j.jsx(c("MarketingMessagesLWITOSModalWrapper.react"),{}),j.jsx(c("BizMarketingMessageLWIComposerFramework.react"),{}),j.jsx("div",{children:String(a==null?void 0:(e=a.adAccounts)==null?void 0:(b=e[0])==null?void 0:b.name)})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardOutcomesSection.react",["fbt","BizKitContextCardDataSharingSection.react","BizKitContextCardNewActivitySection.react","GeoBaseText.react","GeoHeading.react","geoMargin","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var b=a.businessAssets,d=a.className,e=a.consumerID,f=a.contactID,g=a.contactIdentity,j=a.isInKBankRollout,l=a.onActivityListUpdated,m=a.onShowContactCardTosModal,n=a.pageContactID,o=a.pageID,p=a.profileData,q=a.shouldShowContactCardTos;a=a.surface;return k.jsxs("div",{className:d,"data-testid":void 0,children:[k.jsx(c("GeoHeading.react"),{level:3,children:h._("Outcomes")}),k.jsx("div",{className:(i||(i=c("stylex")))(c("geoMargin").top12),children:k.jsx(c("GeoBaseText.react"),{color:"value",display:"block",isDisabled:!0,size:"accent",children:h._("Track key business outcomes and organize your inbox by managing labels and activities.")})}),k.jsx(c("BizKitContextCardDataSharingSection.react"),{consumerID:e,pageID:o,profileData:p,contactID:f,surface:a,contactIdentity:g,isRedesign:!0}),k.jsx(c("BizKitContextCardNewActivitySection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",pageID:o,contactID:n,surface:a,businessAssets:b,contactIdentity:g,onActivityListUpdated:l,isInKBankRollout:j,onShowContactCardTosModal:m,shouldShowContactCardTos:q})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
LiveProducerMMLWIDialog.react",["CometCardedDialogLegacy.react","CometRelay","LiveProducerMMLWICreationContainer.react","LiveProducerMMLWIDialogQuery.graphql","LiveProducerMMLWIEnums","MarketingMessagesLWITOSModalWrapper.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("LiveProducerMMLWIDialogQuery.graphql");function a(a){var b=a.props.onClose;a=a.queries;a=d("CometRelay").usePreloadedQuery(k,a.queryRef);var e=a.page;e=e==null?void 0:(e=e.recurring_messages_info)==null?void 0:e.topic_pairs;e==null?void 0:(e=e.at(0))==null?void 0:e.opt_in_count;(e=a.video)==null?void 0:e.broadcast_status;(e=a.lwi)==null?void 0:(e=e.ad_accounts)==null?void 0:e.count;e=a==null?void 0:a.lwi;a=!1;a=a?d("LiveProducerMMLWIEnums").LiveProducerMMLWICurrentStep.CREATION:d("LiveProducerMMLWIEnums").LiveProducerMMLWICurrentStep.TERMS;var f=function(){b()};switch(a){case d("LiveProducerMMLWIEnums").LiveProducerMMLWICurrentStep.TERMS:return j.jsx(c("MarketingMessagesLWITOSModalWrapper.react"),{});case d("LiveProducerMMLWIEnums").LiveProducerMMLWICurrentStep.CREATION:return j.jsx(c("LiveProducerMMLWICreationContainer.react"),{adAccounts:e});case d("LiveProducerMMLWIEnums").LiveProducerMMLWICurrentStep.SUMMARY:return j.jsx(c("CometCardedDialogLegacy.react"),{onClose:f,size:"medium",title:"MM LWI",withCloseButton:!0,children:j.jsx(j.Fragment,{children:"MM Summary Placeholder"})})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MarketingMessagesLWITOSModalWrapper.react",["fbt","CometDialog.react","FDSDialogFooter.react","FDSDialogHeader.react","MarketingMessagesLWIEnums","MarketingMessagesLWITOSGeoModal.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(){var a=d("MarketingMessagesLWIEnums").MMLWIViewerSurface.LIVE_SELLING;switch(a){case d("MarketingMessagesLWIEnums").MMLWIViewerSurface.LIVE_SELLING:return j.jsx(c("CometDialog.react"),{footer:j.jsx(c("FDSDialogFooter.react"),{primary:{label:"Get Started"}}),header:j.jsx(c("FDSDialogHeader.react"),{text:h._("Live Selling TOS Modal")})});case d("MarketingMessagesLWIEnums").MMLWIViewerSurface.BIZ_INBOX:return j.jsx(c("MarketingMessagesLWITOSGeoModal.react"),{})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MessageMarketingMBSInboxToSModalMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{alias:null,args:[{kind:"Variable",name:"request",variableName:"input"}],concreteType:"XFBWhatsAppMarketingMessagesMBSInboxReToSResponse",kind:"LinkedField",name:"xfb_whatsapp_mm_mbs_inbox_re_tos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MessageMarketingMBSInboxToSModalMutation",selections:b,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MessageMarketingMBSInboxToSModalMutation",selections:b},params:{id:"8021837341163768",metadata:{},name:"MessageMarketingMBSInboxToSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MessageMarketingMBSInboxToSModal",["fbt","GeoButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","MessageMarketingLandingPageConsts","MessageMarketingMBSInboxToSModalAction","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){a=a.isModalShown;var b=function(){c("MessageMarketingMBSInboxToSModalAction").dispatch({isModalShown:!1},{line:"37",module:"MessageMarketingMBSInboxToSModal.js",moduleID:f.id})};return j.jsx(c("GeoModal.react"),{footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{label:h._("u63a5u53d7"),variant:"primary",onClick:b}),secondaryButton:j.jsx(c("GeoButton.react"),{label:h._("u53d6u6d88"),variant:"default",onClick:b})}),header:j.jsx(c("GeoModalHeader.react"),{heading:h._("Meta Business Suite u6536u4ef6u7bb1u4e0e WhatsApp u96c6u6210u6761u6b3e")}),isShown:a,onHide:b,children:j.jsx(c("GeoSection.react"),{children:j.jsx(c("GeoText.react"),{children:h._("u9009u62e9{=m1}uff0cu5373u8868u793au4f60u540cu610f{=m3}uff0cu4e5fu540cu610fu6839u636eu8fd9u4e9bu6761u6b3eu548c{=m5}u5728u6536u4ef6u7bb1u4e2du4f7fu7528 WhatsAppu3002",[h._implicitParam("=m1",j.jsx("strong",{children:h._("u63a5u53d7")})),h._implicitParam("=m3",j.jsx(c("GeoLink.react"),{href:d("MessageMarketingLandingPageConsts").MBS_INBOX_TERMS_URL,children:h._("Meta Business Suite u6536u4ef6u7bb1u4e0e WhatsApp u96c6u6210u6761u6b3e")})),h._implicitParam("=m5",j.jsx(c("GeoLink.react"),{href:d("MessageMarketingLandingPageConsts").ADS_MANAGER_MARKETING_MESSAGES_TERMS_URL,children:h._("u5e7fu544au7ba1u7406u5de5u5177u7684u8425u9500u6d88u606f Beta u6d4bu8bd5u6761u6b3e")}))])})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MessageMarketingMBSInboxToSModalAction",["Laminar","MessageMarketingMBSInboxToSModalProvider","MessageMarketingMBSInboxToSModalReducerPlugin"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("MessageMarketingMBSInboxToSModalReducerPlugin"),b("MessageMarketingMBSInboxToSModalProvider"),{},"")]},function(){return[]},"MessageMarketingMBSInboxToSModalActionPlugin");e.exports=a}),null);
-----
MessageMarketingMBSInboxToSModalProvider",["Laminar","MessageMarketingMBSInboxToSModalProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("MessageMarketingMBSInboxToSModalProviderPlugin"),"MessageMarketingMBSInboxToSModalProviderPlugin")}),null);
-----
MessageMarketingMBSInboxToSModalReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return{isModalShown:b.isModalShown}}};b=a;f["default"]=b}),66);
-----
MessageMarketingMBSInboxToSModalProviderPlugin",[],(function(a,b,c,d,e,f){"use strict";a={initialState:{isModalShown:!1}};b=a;f["default"]=b}),66);
-----
MessageMarketingMBSInboxToSModalContainer.react",["AdsAccountStore","AdsFluxHooks","MessageMarketingMBSInboxToSModal","MessageMarketingMBSInboxToSModalProvider","adsCreateStructuredSelector","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("adsCreateStructuredSelector")({isModalShown:c("MessageMarketingMBSInboxToSModalProvider").toFluxSelector(),businessID:c("AdsAccountStore").getSelectedBusinessID},f.id+".containerSelector");function a(){var a=d("AdsFluxHooks").useAdsSelector(j),b=a.isModalShown;a=a.businessID;return a==null?null:i.jsx(c("MessageMarketingMBSInboxToSModal"),{isModalShown:b.isModalShown})}a.displayName=a.name+" [from "+f.id+"]";b=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=b}),98);
-----
OCDevCenterTOSModal_organization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterTOSModal_organization",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{args:null,kind:"FragmentSpread",name:"OCDevManagePermissionFormSubmitButton_organization"}],type:"Organization",abstractKey:null};e.exports=a}),null);
-----
CommerceManagerContextUtils",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a.loadDeferredPayoutOnboardingFlow===!0||a.loadFedInformWizard===!0||a.loadFedInformWizardIndividualFlow===!0||a.loadIDVFlow===!0||a.loadOBBOFlow===!0||a.loadKYCFlow===!0||a.shouldShowCompletePayoutsModal===!0||a.shouldShowLinkedAssetOptOutModal===!0||a.shouldShowMergeShopsOptOutModal===!0||a.shouldShowOneCatalogMigrationModal===!0||a.showTOSModal===!0||a.showOnLoadModal!=null}f.isForceLoadingModal=a}),66);
-----
BizKitContextCardOrdersSection3DWrapper.react",["BizKitContextCardOrdersSection.react","BizKitContextCardOrdersSection3DWrapper_orders.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BizKitContextCardOrdersSection3DWrapper_orders.graphql");function a(a){var b=a.className,e=a.pageID,f=a.section_3d,g=a.onShowContactCardTosModal,h=a.shouldShowContactCardTos,i=a.surface;a=a.readOnly;f=d("RelayHooks").useFragment(k,f);return j.jsx(c("BizKitContextCardOrdersSection.react"),{className:b,pageID:e,orders:f==null?void 0:f.biz_crm_contact,readOnly:a,surface:i,onShowContactCardTosModal:g,shouldShowContactCardTos:h})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometMarketingMessagesTOSModal.react",["BizMarketingMessagesOnboardingFbtUtils","BizMarketingMessagesOnboardingUtils","BizMarketingMessagingPageOnboardingMutation","BizMessageMarketingOnboardingConst","BizMessageMarketingOnboardingFbtUtils","BusinessCometMarketingMessagesOnboardingModalValuePropItem.react","GeoBaseText.react","GeoBlockingDialog.react","GeoButton.react","GeoFlexbox.react","GeoModalFooter.react","GeoScrollableArea.react","GeoToast.react","IPB4BImage.react","XBizSuiteControllerRouteBuilder","geoMargin","nullthrows","react","useBizKitPageNullable","useBizMarketingMessagesOnboardingLogging","useBizMarketingMountOnce","useBizWebGetRouteParams","useBizWebRouteDispatcher","useBoolean","useGeoToaster"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={root:{height:"x5yr21d",$$css:!0}},k="re_tos_modal",l="sign_tos";function a(){var a=c("useBizWebRouteDispatcher")(),b=c("useBizWebGetRouteParams")(),e=c("nullthrows")(c("useBizKitPageNullable")(),"pageID is null"),f=c("XBizSuiteControllerRouteBuilder").buildURL({nav_ref:"internal_nav",rest:"home"}),g=c("useBoolean")(!1),h=g.setFalse,m=g.setTrue;g=g.value;var n=c("useBoolean")(!1),o=n.setFalse,p=n.setTrue;n=n.value;var q=d("BizMarketingMessagingPageOnboardingMutation").useBizMarketingMessagingPageOnboardingMutation(),r=q[0];q=q[1];var s=c("useBizMarketingMessagesOnboardingLogging")({pageID:c("nullthrows")(e)}),t=s.logClick,u=s.logFailure,v=s.logImpression,w=s.logSubmit,x=s.logSuccess;s=d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalValueProps(!1);s=s.map(function(a,b){return i.jsx(c("BusinessCometMarketingMessagesOnboardingModalValuePropItem.react"),babelHelpers["extends"]({},a),b)});var y=i.jsx(c("IPB4BImage.react"),{src:d("BizMessageMarketingOnboardingConst").ONBOARDING_MODAL_IMAGE_SRC,width:d("BizMessageMarketingOnboardingConst").ONBOARDING_MODAL_IMAGE_WIDTH}),z=c("useGeoToaster")(),A=z.add,B=function(){a(f,b)};z=function(){t(k,"accept"),w(k,l),r({onCompleted:function(a){x(k,l)},onError:function(a){u(k,l,a==null?void 0:a.message,a==null?void 0:a.stack),A(i.jsx(c("GeoToast.react"),{heading:d("BizMarketingMessagesOnboardingFbtUtils").ONBOARDING_GENERAL_MUTATION_ERROR,status:"error"}))},variables:{input:{onboarding_step:"SIGN_TOS",page_id:e}}})};var C=function(){t(k,"cancel"),B()},D=function(){t(k,"full_terms"),p(),h()},E=function(){t(k,"previous"),o()};c("useBizMarketingMountOnce")(function(){v(k)});return i.jsx(c("GeoBlockingDialog.react"),{"data-testid":void 0,footer:i.jsx(c("GeoModalFooter.react"),{primaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:q||!g,isLoading:q,label:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalAgreeButtonLabel(),onClick:z,variant:"primary"}),secondaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:q,label:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalNotNowButtonLabel(),onClick:C,variant:"default"}),startContent:n?i.jsx(c("GeoButton.react"),{"data-testid":void 0,icon:d("BizMarketingMessagesOnboardingUtils").getFBIconByName("chevron-left"),isDisabled:q,label:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalPreviousButtonLabel(),onClick:E,variant:"default"}):null}),heading:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalHeader(n),image:y,isShown:!0,onHide:B,orientation:"vertical",children:i.jsx(c("GeoScrollableArea.react"),{direction:"vertical",onScrollBottom:m,xstyle:j.root,children:n?i.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").horiz16,children:i.jsx(c("GeoBaseText.react"),{color:"value","data-testid":void 0,size:"accent",children:d("BizMessageMarketingOnboardingFbtUtils").getTOSLegalContentV2()})}):i.jsxs(c("GeoFlexbox.react"),{direction:"column",justifyContent:"space-between",xstyle:j.root,children:[i.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").horiz16,children:[i.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",children:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalDescription(D)}),s]}),i.jsx(c("GeoFlexbox.react"),{xstyle:c("geoMargin").horiz16,children:i.jsx(c("GeoBaseText.react"),{color:"value","data-testid":void 0,size:"accent",children:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalLegalContent()})})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LeadsManagerOptimized.react",["CometPlaceholder.react","ErrorBoundary.react","GeoButton.react","GeoModalFooter.react","GeoSpinner.react","JSResource","LeadsCenterAYMTTipContextProvider","LeadsCenterAYMTTipContextUpdater.react","LeadsCenterQPLLogger","LeadsCenterSurfaceEnterFlowFalcoEvent","LeadsManagerConstants","LeadsManagerContext","LeadsManagerLogVisitTimeMutation","LeadsManagerMainView.react","LeadsManagerModalFallback.react","LeadsManagerOptimized_fragment.graphql","LeadsManagerReducer","LeadsManagerViewContext","LeadsManagerViewReducer","RelayHooks","deferredLoadComponent","lazyLoadComponent","nullthrows","react","requireDeferredForDisplay"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useEffect,l=e.useReducer,m=c("deferredLoadComponent")(c("requireDeferredForDisplay")("LeadsManagerAudienceExpansionToast.react").__setRef("LeadsManagerOptimized.react")),n=c("lazyLoadComponent")(c("JSResource")("LeadsManagerAudienceCenterModalContainer.react").__setRef("LeadsManagerOptimized.react")),o=c("lazyLoadComponent")(c("JSResource")("LeadsManagerCSVImportSection.react").__setRef("LeadsManagerOptimized.react")),p=c("lazyLoadComponent")(c("JSResource")("LeadsManagerSettingsView.react").__setRef("LeadsManagerOptimized.react")),q=c("lazyLoadComponent")(c("JSResource")("LeadsManagerToSDialog.react").__setRef("LeadsManagerOptimized.react")),r=function(a,b,d,e,f,g,h,i,k,l){if(e){return j.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerSettingsViewLazy",fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:j.jsx("div",{className:"xvkph5b x5yr21d x10l6tqk x1nrll8i xwa60dl x11lhmoz",children:j.jsx(c("ErrorBoundary.react"),{children:j.jsx(p,{pageID:b,pageName:d,config:c("nullthrows")((e=i.page)==null?void 0:e.business_presence_node)})})})})}else if(f){f=((d=i.page)==null?void 0:(e=d.is_passing_gk_csv_validator)==null?void 0:e.passes_gk)||!1;return j.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerCSVImportSectionLazy",fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:j.jsx("div",{className:"xvkph5b x5yr21d x10l6tqk x1nrll8i xwa60dl x11lhmoz",children:j.jsx(c("ErrorBoundary.react"),{children:j.jsx(o,{leadsCSVTemplate:h,pageID:b,shouldShowCSVDebugger:f})})})})}else if(g)return j.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerAudienceCenterModalContainerLazy",fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:j.jsx("div",{className:"x14vqqas x5yr21d x10l6tqk x1nrll8i xwa60dl x11lhmoz",children:j.jsx(c("ErrorBoundary.react"),{children:j.jsx(n,{pageID:b,lwi:c("nullthrows")(i.lwi)})})})});return j.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerMainView",fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:j.jsx(c("LeadsManagerMainView.react"),{isComet:a,tableQueryReference:k,pipelineViewQueryReference:l,pageID:b,queryRef:i})})},s=h!==void 0?h:h=b("LeadsManagerOptimized_fragment.graphql");function a(a){var b=l(d("LeadsManagerReducer").reducer,d("LeadsManagerReducer").getInitialState({canSeeLeadOwnerInvitation:a.canSeeLeadOwnerInvitation,canSeeStageManagement:a.canSeeStageManagement,canUseSettings:a.canUseSettings,isComet:a.isComet,isToSAccepted:a.isToSAccepted,isBackFillJobsRunning:a.isBackFillJobsRunning,isInBizKit:a.isInBizKit,unreadQuery:a.isUnread,showLeadsCenterOnboardingTourTip:!1,defaultLeadID:"",isPageInLeadsCenterPipelineViewTest:a.isPageInLeadsCenterPipelineViewTest,firstAdsLeadOpportunityID:"",firstDirectOrMessengerLeadOpportunityID:"",openLeadsCenterDetailView:!1,shouldShowLeadsCenterMVPWelcomeModal:!0,sampleLeadId:"",shouldShowFastFollowupMVP:a.shouldShowFastFollowupMVP,shouldShowLeadsUpsellTipAndPreToSPage:!1,shouldShowLeadsPrioritizationStatus:a.shouldShowLeadsPrioritizationStatus,newLeadsCountSinceLastVisit:a.newLeadsCountSinceLastVisit,shouldShowPipelineTour:a.isPageInLeadsCenterPipelineViewTest&&a.pipelineTourImpressionCount===0,shouldShowFormAndAdFormatChanges:a.shouldShowFormAndAdFormatChanges,shouldShowLookalikeAudienceCreationImprovement:a.shouldShowLookalikeAudienceCreationImprovement,shouldShowResponsivePipelineView:a.shouldShowResponsivePipelineView,shouldShowPipelineViewImprovements:a.shouldShowPipelineViewImprovements,adQuery:a.adQuery})),e=b[0];b=b[1];var f=e.showAudienceExpansionToast,g=e.showSavedAudienceModal,h=d("RelayHooks").useFragment(s,a.queryRef),i=l(d("LeadsManagerViewReducer").viewReducer,d("LeadsManagerViewReducer").getInitialViewState({isToSAccepted:!0})),n=i[0],o=i[1];i=n.settingsViewShown;var p=n.showCSVImportSection,t=n.isShowingToS,u=a.pageID,v=a.pageName,w=a.leadsCSVTemplate,x=a.tableQueryReference,y=a.pipelineViewQueryReference,z=d("RelayHooks").useRelayEnvironment();v=r(a.isComet,u,v,i,p,g,w,h,x,y);d("LeadsCenterQPLLogger").componentLoadTimeStart(a.isPageInLeadsCenterPipelineViewTest,a.isToSAccepted,a.isComet,!0);k(function(){d("LeadsManagerLogVisitTimeMutation").commit(z,{asset_id:u,is_bizapp:!1},{}),c("LeadsCenterSurfaceEnterFlowFalcoEvent").log(function(){return{page_id:u,event_location:"leads_center",client_timestamp_ms:Date.now(),event_data:{}}})},[z,u]);return j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:j.jsx("div",{"data-testid":void 0,children:j.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:z,children:j.jsxs(c("LeadsCenterAYMTTipContextProvider"),{children:[j.jsx(c("LeadsManagerContext").Provider,{value:{dispatch:b,state:e},children:j.jsxs(c("LeadsManagerViewContext").Provider,{value:{dispatchForView:o,stateForView:n},children:[j.jsx(c("ErrorBoundary.react"),{children:t&&j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("LeadsManagerModalFallback.react"),{header:d("LeadsManagerConstants").LEADS_MANAGER_TOS_DIALOG_TITLE,footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{isLoading:!0,isDisabled:!0,label:d("LeadsManagerConstants").LEADS_MANAGER_TOS_DIALOG_BUTTON})}),isVisible:t,onHide:function(){o({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!1})}}),children:j.jsx(q,{pageID:u,leadCount:((i=h.page)==null?void 0:i.lead_gen_backfill_count)||0})})}),v,f&&j.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerAudienceExpansionToastLazy",fallback:null,children:j.jsx(m,{})})]})}),u!=null?j.jsx(c("ErrorBoundary.react"),{children:j.jsx(c("CometPlaceholder.react"),{name:"LeadsCenterAYMTTipContextUpdater",fallback:null,children:j.jsx(c("LeadsCenterAYMTTipContextUpdater.react"),{pageID:u})})}):null]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MessageMarketingBetaToSDialog",["fbt","GeoButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoNotice.react","GeoSection.react","GeoText.react","MessageMarketingBetaToSDialogMutation.graphql","MessageMarketingBetaToSModalAction","RelayHooks","ReloadPage","WhatsAppAdsManagerOnboardingWelcomeStepMessages","WhatsAppBizxPlatformWWWLoggerUtils","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState,m=i!==void 0?i:i=b("MessageMarketingBetaToSDialogMutation.graphql");function a(a){var b=a.businessID;a=a.isDialogShown;var e=l(!1),g=e[0],i=e[1];e=l(!1);var j=e[0],n=e[1];e=d("RelayHooks").useMutation(m);var o=e[0],p=d("WhatsAppBizxPlatformWWWLoggerUtils").getSessionLoggingID("MessageMarketingToS"),q=function(){c("MessageMarketingBetaToSModalAction").dispatch({isModalShown:!1},{line:"51",module:"MessageMarketingBetaToSDialog.js",moduleID:f.id})};e=function(){i(!0),n(!1),o({variables:{input:{log_session_id:p,business_id:b}},onCompleted:function(a){i(!1),q(),d("ReloadPage").now()},onError:function(){i(!1),n(!0)}})};return k.jsx(c("GeoModal.react"),{"data-testid":void 0,footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{isLoading:g,label:h._("u540cu610f"),variant:"primary",onClick:e}),secondaryButton:k.jsx(c("GeoButton.react"),{isDisabled:g,label:h._("u53d6u6d88"),onClick:q})}),header:k.jsx(c("GeoModalHeader.react"),{heading:h._("u8425u9500u6d88u606fu9002u7528u7684u65b0u7248u670du52a1u6761u6b3e")}),isShown:a,onHide:q,children:k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("GeoText.react"),{children:h._("u7ee7u7eedu5373u8868u793au4f60u5df2u7ecfu9605u8bfbu5e76u540cu610f{=m1}u3002",[h._implicitParam("=m1",k.jsx(c("GeoLink.react"),{href:"https://www.facebook.com/legal/ads-manager-marketing-messages-terms",target:"_blank",children:h._("u8425u9500u6d88u606fu9002u7528u7684u65b0u7248u670du52a1u6761u6b3e")}))])}),j?k.jsx(c("GeoNotice.react"),{status:"error",children:d("WhatsAppAdsManagerOnboardingWelcomeStepMessages").TOS_ERROR}):null]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MessageMarketingBetaToSDialogContainer.react",["AdsAccountStore","AdsFluxHooks","MessageMarketingBetaToSDialog","MessageMarketingBetaToSModalProvider","adsCreateStructuredSelector","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("adsCreateStructuredSelector")({isModalShown:c("MessageMarketingBetaToSModalProvider").toFluxSelector(),businessID:c("AdsAccountStore").getSelectedBusinessID},f.id+".containerSelector");function a(){var a=d("AdsFluxHooks").useAdsSelector(j),b=a.isModalShown;a=a.businessID;return a==null?null:i.jsx(c("MessageMarketingBetaToSDialog"),{businessID:a,isDialogShown:b.isModalShown})}a.displayName=a.name+" [from "+f.id+"]";b=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=b}),98);
-----
MessageMarketingBetaToSDialogOpen",["MessageMarketingBetaToSModalAction"],(function(a,b,c,d,e,f,g){"use strict";function a(){c("MessageMarketingBetaToSModalAction").dispatch({isModalShown:!0},{line:"16",module:"MessageMarketingBetaToSDialogOpen.js",moduleID:f.id})}g["default"]=a}),98);
-----
MessageMarketingBetaToSModalAction",["Laminar","MessageMarketingBetaToSModalProvider","MessageMarketingBetaToSModalReducerPlugin"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("MessageMarketingBetaToSModalReducerPlugin"),b("MessageMarketingBetaToSModalProvider"),{},"")]},function(){return[]},"MessageMarketingBetaToSModalActionPlugin");e.exports=a}),null);
-----
MessageMarketingBetaToSModalProvider",["Laminar","MessageMarketingBetaToSModalProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("MessageMarketingBetaToSModalProviderPlugin"),"MessageMarketingBetaToSModalProviderPlugin")}),null);
-----
MessageMarketingBetaToSModalReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return{isModalShown:b.isModalShown}}};b=a;f["default"]=b}),66);
-----
MessageMarketingBetaToSModalProviderPlugin",[],(function(a,b,c,d,e,f){"use strict";a={initialState:{isModalShown:!1}};b=a;f["default"]=b}),66);
-----
BizKitContextCardNewActivitySection.react",["fbt","BizCRMContactCardRenderSurface","BizInboxCreateLeadMutation","BizInboxFbtUtils","BizInboxStateContext","BizKitContextCardActivityListSection.react","BizKitContextCardNewActivitySectionQuery.graphql","GeoButton.react","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoToast.react","LeadOpportunityStageUpdateMutation","LeadsManagerConstants","LeadsManagerStageSelector.react","LeftRight.react","RelayHooks","ThreadOrderStatusDropdownSection.react","XBizSuiteControllerRouteBuilder","bizInboxStateHideContactCardReducer","geoMargin","react","stylex","useBizInboxStateReducers","useBizWebGetRouteParams","useBizWebRouteDispatcher","useGeoToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.startTransition,l=e.useCallback,m=e.useContext,n=e.useState,o=i!==void 0?i:i=b("BizKitContextCardNewActivitySectionQuery.graphql");function a(a){var b,e=a.surface,f=a.pageID,g=a.contactID,i=a.businessAssets,p=a.contactIdentity,q=a.onActivityListUpdated,r=a.isInKBankRollout,s=a.onShowContactCardTosModal,t=a.shouldShowContactCardTos,u=m(c("BizInboxStateContext"));u=u.hasPageSignedLcTos;var v=n({fetchPolicy:"network-only"}),w=v[0],x=v[1];v=n(null);var y=v[0];v[1];v=n(null);v[0];var z=v[1];v=function(a){z(a),q(a)};var A="MESSENGER",B="MSGR_INBOX_ORGANIC";switch(e){case c("BizCRMContactCardRenderSurface").INBOX_MESSAGING_IG:case c("BizCRMContactCardRenderSurface").INBOX_POST_COMMENT_IG:case c("BizCRMContactCardRenderSurface").INTERACTIONS_IG_COMMENT:case c("BizCRMContactCardRenderSurface").POST_COMMENT_IG:A="IG";B="IG_INBOX_ORGANIC";break;default:}var C=c("useBizWebRouteDispatcher")(),D=c("useBizWebGetRouteParams")(),E=D.asset_id,F=c("XBizSuiteControllerRouteBuilder").buildURL({rest:"leads_center"});D=function(){var a={asset_id:E};C(F,a)};var G=p.contact_id;w=d("RelayHooks").useLazyLoadQuery(o,{pageID:f,consumerID:G,contactID:g,surface:e,assetType:A,businessAssets:i,identity:p},w);var H=c("useBizInboxStateReducers")([c("bizInboxStateHideContactCardReducer")]),I=c("useGeoToaster")(),J=I.add,K=d("RelayHooks").useRelayEnvironment();I=(I=w.biz_inbox_lead_stage_query)==null?void 0:I.lead_opportunity;var L=I==null?void 0:I.id,M=function(){if(L==null)return;var a={asset_id:E,lead_id:L};C(F,a)},N=l(function(){k(function(){x(function(a){return{fetchKey:((a=a==null?void 0:a.fetchKey)!=null?a:0)+1,fetchPolicy:"network-only"}})})},[]);I=function(){d("BizInboxCreateLeadMutation").commit(K,f,g,B,A,{onSuccess:function(){H({type:"has_organic_lead.update"}),N(),J(j.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getAddLeadSuccessToast(),status:"success"}))},onFailure:function(){J(j.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getAddLeadFailureToast(),status:"error"}))}},i)};var O=function(a){if(a==null||L==null)return;d("LeadOpportunityStageUpdateMutation").commit(K,{lead_opportunity_id:L,stage:a,event_location:"business_inbox"},{onSuccess:function(){N(),J(j.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getMoveLeadStageSuccessToast(),status:"success"}))},onFailure:function(){J(j.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getMoveLeadStageFailureToast(),status:"error"}))}})};D=j.jsx(c("GeoButton.react"),{label:d("BizInboxFbtUtils").getGoToLeadsCenterLabel(),onClick:D,variant:"primary"});I=j.jsx(c("GeoButton.react"),{label:d("BizInboxFbtUtils").getContactCardAddLeadLabel(),onClick:I,variant:"primary"});b=j.jsx(c("LeadsManagerStageSelector.react"),{allowNoSelection:!1,isDisabled:!1,stages:(b=w.page)==null?void 0:b.page_opportunity_stages,selectedValue:(b=w.biz_inbox_lead_stage_query)==null?void 0:(b=b.lead_stage)==null?void 0:b.id,width:160,onChange:O});u=j.jsxs("div",{className:"xyamay9 x4uap5 x18d9i69 xkhd6sd",children:[j.jsxs(c("LeftRight.react"),{children:[j.jsx(c("GeoHeading.react"),{level:4,children:d("LeadsManagerConstants").LEAD_STAGE_LABEL}),j.jsx(c("GeoLink.react"),{onClick:function(){M()},children:d("LeadsManagerConstants").VIEW_IN_LEADS_CENTER_TEXT})]}),j.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top8,children:u?((O=w.biz_inbox_lead_stage_query)==null?void 0:O.lead_stage)===null?I:b:D})]});I=j.jsx(c("ThreadOrderStatusDropdownSection.react"),{pageID:f,consumerID:G,orderStatus:(O=w.page)==null?void 0:O.thread_action_system_order_status,environment:K,refresh:N});return j.jsx("div",{className:a.className,children:j.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top4,children:[j.jsx(c("GeoHeading.react"),{level:3,children:h._("u52a8u6001")}),u,I,j.jsx("div",{className:c("stylex")(c("geoMargin").top8),children:j.jsx(c("BizKitContextCardActivityListSection.react"),{activity:w.retrieve_biz_crm_contact,page:y==null?void 0:y.page.listItemRef,mbsBusinessAssets:y==null?void 0:y.xfb_mbs_business_assets.listItemRef,pageID:f,userID:G,surface:e,pageContactID:g,onActivityListUpdated:v,isInKBankRollout:r,onShowContactCardTosModal:s,shouldShowContactCardTos:t,contactIdentity:p})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
ARHubTos.react",["ARHubModalLogger","ARHubModalLoggerType","ARHubTosModal.react","asyncToGeneratorRuntime","react","useARHubEffectDismissMessage","useARHubUserHasDismissedMessage"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useCallback,j=e.useEffect,k=e.useState;function a(){var a=k(!1),e=a[0],f=a[1];a=c("useARHubEffectDismissMessage")();var g=a[0];a[1];a="https://fb.me/MetaSparkTerms";var l="https://fb.me/MetaSparkStudioTerms",m="hamlet_tos_modal",n=c("useARHubUserHasDismissedMessage")({dismissableCardtype:m,paramList:[]}),o=i(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield g({cardType:m,params:[]}),d("ARHubModalLogger").acceptTermsOfService(),f(!0)}),[g,m]),p=function(){d("ARHubModalLogger").clickedLearnMore(),window.open("https://fb.me/MetaSparkTerms","_blank")};j(function(){if(n)return;!e?d("ARHubModalLogger").start(c("ARHubModalLoggerType").TOS_MODAL):d("ARHubModalLogger").endSuccess()},[n,e]);return h.jsx(c("ARHubTosModal.react"),{isShown:!(e||n),onAccept:o,onLearnMore:p,tosLink:a,tosStudioLink:l})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
ARHubTosModal.react",["fbt","ix","ARHubModalLogger","GeoBlockingDialog.react","GeoButton.react","GeoHeading.react","GeoLink.react","GeoModalFooter.react","GeoSection.react","GeoText.react","IPB4BImage.react","geoMargin","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k={list:{listStyleType:"xtaz4m5",paddingTop:"x1p5oq8j",paddingEnd:"xxbr6pl",paddingBottom:"xwxc41k",paddingStart:"xbbxn1n",$$css:!0},modalBody:{paddingTop:"xyamay9",paddingEnd:"x4uap5",paddingBottom:"xwxc41k",paddingStart:"xkhd6sd",$$css:!0},container:{minWidth:"xppr10f",$$css:!0}};function a(a){var b=a.isShown,e=a.tosLink,f=a.tosStudioLink,g=a.onAccept;a=a.onLearnMore;return j.jsx(c("GeoBlockingDialog.react"),{"data-testid":void 0,footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{label:h._("u540cu610f"),onClick:g,variant:"primary"}),secondaryButton:j.jsx(c("GeoButton.react"),{label:h._("u4e86u89e3u66f4u591a"),onClick:a})}),heading:h._("u6211u4eecu5df2u66f4u65b0 Meta Spark u6761u6b3eu548c Meta Spark Studio u6761u6b3e"),image:j.jsx(c("IPB4BImage.react"),{src:i("382231"),width:600}),imageSize:"auto",isShown:b,onHide:function(){},xstyle:k.container,children:j.jsx("div",{className:"xyamay9 x4uap5 xwxc41k xkhd6sd",children:j.jsxs(c("GeoSection.react"),{children:[j.jsx(c("GeoHeading.react"),{level:3,xstyle:c("geoMargin").bottom24,children:h._("u6211u4eecu5df2u66f4u65b0 Meta Spark u6761u6b3eu548c Meta Spark Studio u6761u6b3e")}),j.jsx(c("GeoText.react"),{children:"The changes include:"}),j.jsxs("ul",{className:"xtaz4m5 x1p5oq8j xxbr6pl xwxc41k xbbxn1n",children:[j.jsx("li",{children:j.jsx(c("GeoText.react"),{children:h._("u4f60u73b0u5728u9700u8981u521bu5efa Meta u5e10u6237u624du80fdu4f7fu7528 Meta Sparku3002")})}),j.jsx("li",{children:j.jsx(c("GeoText.react"),{children:h._("u5411 Meta u63d0u51fau7684 Meta Spark u76f8u5173u5f02u8baeu5fc5u987bu6839u636eu7f8eu56fdu4ef2u88c1u534fu4f1au7684u6d88u8d39u8005u4ef2u88c1u89c4u5219u7ecfu7531u5177u7ea6u675fu529bu7684u5355u72ecu4ef2u88c1u89e3u51b3uff0cu5e76u9075u5faau7279u5b9au4f8bu5916u60c5u51b5u3002")})}),j.jsx("li",{children:j.jsx(c("GeoText.react"),{children:h._("u4e3au4f7fu6761u6b3eu66f4u6e05u695au660eu4e86uff0cu6211u4eecu8fdbu884cu4e86u4e00u4e9bu4feeu6539u3002u4f8bu5982uff0cu6211u4eecu660eu786eu89c4u5b9auff1au4f60u63a5u6536u6216u6536u96c6u7684u4e0eu4f60u7279u6548u5185u5bb9u76f8u5173u7684u4efbu4f55u4fe1u606fuff08u6839u636e Meta Spark u6761u6b3eu4e2du7684u5b9au4e49uff09u5747u89c6u4e3au5c5eu4e8e Meta u5f00u653eu5e73u53f0u6761u6b3eu6240u8ff0u7528u9014u7684u201cu5f00u653eu5e73u53f0u6570u636eu201duff0cu6211u4eecu8fd8u8fdbu4e00u6b65u8be6u8ff0u4e86u4f60u5bf9u8fd9u4e9bu4fe1u606fu627fu62c5u7684u76f8u5e94u4e49u52a1u3002")})})]}),j.jsx(c("GeoText.react"),{children:h._("By continuing to use Meta Spark, you agree to the updated {=m1} and {=m3}",[h._implicitParam("=m1",j.jsx(c("GeoLink.react"),{href:e,onClick:function(){d("ARHubModalLogger").clickedLinkTos()},target:"_blank",children:h._("Meta Spark Terms")})),h._implicitParam("=m3",j.jsx(c("GeoLink.react"),{href:f,onClick:function(){d("ARHubModalLogger").clickedLinkTosStudio()},target:"_blank",children:h._("Meta Spark Studio Terms")}))])})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LeadsManagerTablePreToSAcceptState.react",["fbt","ix","GeoBaseText.react","GeoButton.react","GeoCard.react","GeoLink.react","GeoSpinner.react","GeoText.react","Image.react","LeadsCenterTosSubmitFlowFalcoEvent","LeadsManagerAcceptToSMutation","LeadsManagerConstants","LeadsManagerContext","LeadsManagerViewContext","RelayHooks","geoMargin","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");b=d("react");var k=b.useContext,l=b.useState;function a(a){var b=k(c("LeadsManagerContext")),e=b.dispatch;b=l(!1);var f=b[0],g=b[1],i=d("RelayHooks").useRelayEnvironment();b=k(c("LeadsManagerViewContext"));var o=b.dispatchForView;if(f)return j.jsx(c("GeoSpinner.react"),{});b=j.jsxs("div",{children:[j.jsx(c("GeoText.react"),{children:h._("Leads and other tools that process contact or messaging data are subject to the")})," ",j.jsx(c("GeoLink.react"),{onClick:function(){o({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})},children:h._("Leads Center Terms of Service")}),"."]});f=h._("By selecting to {=m1}, you agree to these Terms.",[h._implicitParam("=m1",j.jsx("b",{children:h._("Continue")}))]);var p=m();return j.jsx(c("GeoCard.react"),{children:j.jsxs("div",{className:"x78zum5 x1q0g3np",children:[j.jsx("div",{className:"x6s0dn4 x78zum5 xt7dq6l xl56j7k x3hqpx7",children:j.jsxs("div",{className:"xc26acl x7a106z x78zum5 xdt5ytf x65xoit",children:[j.jsx(c("GeoBaseText.react"),{color:"heading",size:"header2",xstyle:c("geoMargin").top12,children:d("LeadsManagerConstants").PRE_TOS_ACCEPT_VIEW_HEADER}),p.map(function(a){return j.jsx("div",{className:"x1i64zmx x1xmf6yo",children:j.jsxs("div",{className:"x7a106z x78zum5 x14vqqas",children:[j.jsx("div",{className:"xq8finb xr9ek0c",children:j.jsx(c("Image.react"),{src:a.icon})}),j.jsx("div",{children:j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:a.contentBody})})]})},a.contentBody)}),j.jsx("div",{className:"xqui205",children:j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:b})}),j.jsx("div",{className:"xqui205",children:j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:f})}),j.jsx("div",{className:"x1lliihq x8x9d4c xack27t",children:j.jsx(c("GeoButton.react"),{variant:"primary",label:h._("u7ee7u7eed"),xstyle:c("geoMargin").vert24,"data-testid":void 0,onClick:function(){n(a.pageID,"BIZWEB_LEAD_CENTER",g,i,e)}})})]})}),j.jsx("div",{className:"x78zum5 xt7dq6l x3hqpx7",children:j.jsx(c("Image.react"),{className:"xt7dq6l xh8yej3",src:"/images/leads_center/leads_center_pre_tos_accept_view/MBS-Leads-ToS-New-User-b4b4x.png"})})]})})}a.displayName=a.name+" [from "+f.id+"]";function m(){return[{contentBody:d("LeadsManagerConstants").PRE_TOS_ACCEPT_STOPWATCH_ICON_CONTENT,contentHeader:"",icon:i("500256")},{contentBody:d("LeadsManagerConstants").PRE_TOS_ACCEPT_FUNNEL_ICON_CONTENT,contentHeader:"",icon:i("560117")},{contentBody:d("LeadsManagerConstants").PRE_TOS_ACCEPT_THUNDER_ICON_CONTENT,contentHeader:"",icon:i("1020800")}]}function n(a,b,e,f,g){c("LeadsCenterTosSubmitFlowFalcoEvent").log(function(){return{page_id:a,event_location:"leads_center",event_data:{}}}),e(!0),d("LeadsManagerAcceptToSMutation").commit(f,{actor_id:a,signature_surface:b},{onSuccess:function(a){var b;b=(b=a.lead_gen_tos_consent)==null?void 0:b.success;if(b===!0){g({type:"LEADS_MANAGER_ACCEPT_TOS_ACTION",isBackFillJobsRunning:((b=a.lead_gen_tos_consent)==null?void 0:(a=b.page)==null?void 0:a.has_leads_center_back_fill_job_running)||!1})}else e(!1)},onFailure:function(){e(!1)}})}g["default"]=a}),98);
-----
LeadsManagerPipelineNullState.react",["fbt","FlexLayout.react","GeoBaseText.react","GeoButton.react","GeoHeading.react","GeoText.react","LeadManagerUtils","LeadsManagerViewContext","geoMargin","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useContext;function a(a){var b=j(c("LeadsManagerViewContext")),e=b.dispatchForView;b=a.nullStateType;switch(b){case d("LeadManagerUtils").LeadsManagerNullStateType.TOS:return i.jsx("div",{className:"x10l6tqk x14kq9sb x1nrll8i x1m9mm8y",children:i.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[i.jsx(c("GeoBaseText.react"),{xstyle:c("geoMargin").bottom8,textAlign:"center",size:"header4",color:"value",weight:"bold",children:h._("u8bf7u63a5u53d7u516cu5171u4e3bu9875u8054u7cfbu4ebau6761u6b3euff0cu4ee5u4fbfu4f7fu7528u6f5cu5728u5ba2u6237u7ba1u7406u5de5u5177u3002")}),i.jsx(c("GeoButton.react"),{label:h._("u67e5u770bu6761u6b3e"),variant:"primary",onClick:function(){e({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})}})]})});case d("LeadManagerUtils").LeadsManagerNullStateType.DATA_PROPAGATING:return i.jsx("div",{className:"x10l6tqk x14kq9sb x1nrll8i x1m9mm8y",children:i.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[i.jsx(c("GeoHeading.react"),{level:2,children:h._("u6b63u5728u52a0u8f7du4f60u7684u6f5cu5728u5ba2u6237u6570u636euff01")}),i.jsx(c("GeoText.react"),{xstyle:c("geoMargin").bottom8,textAlign:"center",children:h._("u6211u4eecu6b63u4eceu4f60u7684u7ebfu7d22u5e7fu544au4e2du8c03u53d6u6240u751fu6210u7684u6f5cu5728u5ba2u6237u4fe1u606fu3002u9996u6b21u8c03u53d6u8fc7u7a0bu8017u65f6u8f83u957fuff0cu8bf7u7a0du540eu56deu6765u770bu770bu3002")})]})});default:return i.jsx("div",{})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextLabels3DWrapper.react",["BizKitContextLabels3DWrapper_contactLabels.graphql","BizKitContextLabelsWrapper.react","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("BizKitContextLabels3DWrapper_contactLabels.graphql");function a(a){var b=a.className,e=a.contactID,f=a.contactIdentity,g=a.pageID,h=a.onSelectLabel,k=a.surface,l=a.readOnly,m=a.onShowContactCardTosModal,n=a.shouldShowContactCardTos,o=a.shouldDisableBizInput,p=a.pageRef,q=a.mbsBusinessAssetsRef,r=a.section_3d;a=a.businessAssets;r=d("RelayHooks").useFragment(j,r);return i.jsx(c("BizKitContextLabelsWrapper.react"),{className:b,contactID:e,contactIdentity:f,pageID:g,contactLabels:r==null?void 0:r.biz_crm_contact,onSelectLabel:h,surface:k,readOnly:l,onShowContactCardTosModal:m,shouldShowContactCardTos:n,shouldDisableBizInput:o,pageRef:p,businessAssets:a,mbsBusinessAssetsRef:q})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardNotesSection3DWrapper.react",["BizKitContextCardNotesSection.react","BizKitContextCardNotesSection3DWrapper_notes.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("BizKitContextCardNotesSection3DWrapper_notes.graphql");function a(a){var b=a.className,e=a.pageID,f=a.section_3d,g=a.contactID,h=a.contactIdentity,k=a.surface,l=a.readOnly,m=a.onShowContactCardTosModal;a=a.shouldShowContactCardTos;f=d("RelayHooks").useFragment(j,f);return i.jsx(c("BizKitContextCardNotesSection.react"),{className:b,contactID:g,contactIdentity:h,pageID:e,notes:f==null?void 0:f.biz_crm_contact,surface:k,readOnly:l,onShowContactCardTosModal:m,shouldShowContactCardTos:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivitySection3DWrapper.react",["BizKitContextCardActivitySection.react","BizKitContextCardActivitySection3DWrapper_activities.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");h!==void 0?h:h=b("BizKitContextCardActivitySection3DWrapper_activities.graphql");function a(a){var b=a.className,d=a.pageID,e=a.isInKBankRollout,f=a.contactID,g=a.contactIdentity,h=a.onActivityListUpdated,j=a.activitiesQueryReference,k=a.readOnly,l=a.surface,m=a.onShowContactCardTosModal,n=a.shouldShowContactCardTos;a=a.shouldDisableBizInput;return i.jsx(c("BizKitContextCardActivitySection.react"),{className:b,contactID:f,contactIdentity:g,pageID:d,isInKBankRollout:e,onActivityListUpdated:h,activitiesQueryReference:j,readOnly:k,surface:l,onShowContactCardTosModal:m,shouldShowContactCardTos:n,shouldDisableBizInput:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardAboutDetailSection3DWrapper.react",["BizKitContextCardAboutDetailSection.react","BizKitContextCardAboutDetailSection3DWrapper_about.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("BizKitContextCardAboutDetailSection3DWrapper_about.graphql");function a(a){var b=a.section_3d,e=a.className,f=a.contactIdentity,g=a.pageID,h=a.bpnID,k=a.surface,l=a.readOnly,m=a.onShowContactCardTosModal,n=a.shouldShowContactCardTos,o=a.shouldDisableBizInput;a=a.isPageEnabledForWAM;b=d("RelayHooks").useFragment(j,b);return i.jsx(c("BizKitContextCardAboutDetailSection.react"),{about:b==null?void 0:b.biz_crm_contact,className:e,contactIdentity:f,isPageEnabledForWAM:a,pageID:g,bpnID:h,surface:k,readOnly:l,onShowContactCardTosModal:m,shouldShowContactCardTos:n,shouldDisableBizInput:o})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerHomePageV2.react",["CommerceManagerAppContext","CommerceManagerContext","CommerceManagerGeoPage.react","CommerceManagerHomePageBannersContainer.react","CommerceManagerHomePageInformAct.react","CommerceManagerHomePageModals.react","CommerceManagerHomePageSectionSuspenseWrapper.react","CommerceManagerHomePageV2LeftColumn.react","CommerceManagerHomePageV2RightColumn.react","CommerceManagerHomeUtils","CommerceManagerImpressionLoggingContainer.react","CommerceManagerSuspense.react","CommerceManagerUsabilitySurveyContainer.react","CommerceManagerUsabilitySurveyUtils","GeoGlimmer.react","GeoPageHeader.react","GeoPageItem.react","GeoPageSection.react","GeoPageSectionWithNestedChildren.react","nullthrows","nux:522","react","withSellerFunnelLogging"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext;function j(){var a=d("CommerceManagerHomeUtils").useGetHasValidShopifyAppInstallation();return h.jsx(c("GeoPageHeader.react"),{description:a?d("CommerceManagerHomeUtils").FBTS.HOME_PAGE_HEADER_DESCRIPTION_SHOPIFY:null,heading:d("CommerceManagerHomeUtils").FBTS.HOME_PAGE_HEADER_HEADING})}j.displayName=j.name+" [from "+f.id+"]";function k(){var a,e=c("nullthrows")(i(c("CommerceManagerAppContext")),"catalogOrCmsID was null, invalid value from CommerceManagerAppContext");e=e.catalogOrCmsID;var f=i(c("CommerceManagerContext"));a=(a=f.showShopCompleteDialog)!=null?a:!1;f=(f=f.showTOSModal)!=null?f:!1;var g=b("nux:522")==null?void 0:b("nux:522")("COMMERCE_MANAGER_HOME_PAGE_V2_NUX");return h.jsxs(h.Fragment,{children:[h.jsx(c("CommerceManagerHomePageModals.react"),{showShopCompleteDialog:a,showTOSModal:f}),h.jsx(c("CommerceManagerGeoPage.react"),{actionBanner:h.jsx(c("CommerceManagerHomePageInformAct.react"),{catalogOrCmsID:e}),columns:d("CommerceManagerHomeUtils").CM_HOME_PAGE_FULL_WIDTH,header:h.jsx(j,{}),children:h.jsxs(c("GeoPageSectionWithNestedChildren.react"),{children:[g!=null&&h.jsx(g,{}),d("CommerceManagerUsabilitySurveyUtils").isUsabilitySurveyEnabled()?h.jsx(c("CommerceManagerUsabilitySurveyContainer.react"),{columns:d("CommerceManagerHomeUtils").CM_HOME_PAGE_FULL_WIDTH}):null,h.jsx(d("CommerceManagerHomePageSectionSuspenseWrapper.react").CommerceManagerHomePageSectionSuspenseWrapper,{columns:d("CommerceManagerHomeUtils").CM_HOME_PAGE_FULL_WIDTH,height:d("CommerceManagerHomeUtils").BANNERS_CONTAINER_HEIGHT,children:h.jsx(c("CommerceManagerHomePageBannersContainer.react"),{catalogOrCmsID:e})}),h.jsx(c("CommerceManagerHomePageV2LeftColumn.react"),{columns:d("CommerceManagerHomeUtils").CM_HOME_LEFT_COLUMN_WIDTH}),h.jsx(c("CommerceManagerHomePageV2RightColumn.react"),{columns:d("CommerceManagerHomeUtils").CM_HOME_RIGHT_COLUMN_WIDTH})]})})]})}k.displayName=k.name+" [from "+f.id+"]";function l(){var a=h.jsx(c("CommerceManagerGeoPage.react"),{columns:d("CommerceManagerHomeUtils").CM_HOME_PAGE_FULL_WIDTH,grow:"fill",header:h.jsx(j,{}),children:h.jsx(c("GeoPageSection.react"),{grow:"fill",children:h.jsx(c("GeoPageItem.react"),{columns:d("CommerceManagerHomeUtils").CM_HOME_PAGE_FULL_WIDTH,grow:"fill",children:h.jsx(c("GeoGlimmer.react"),{})})})});return h.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{flowName:"COMMERCE_MANAGER_HOME_V2_HOME_TAB",oncall:"cxp_interfaces",children:h.jsx(c("CommerceManagerSuspense.react"),{component:l.name,loadingComponent:a,oncall:"cxp_interfaces",children:h.jsx(k,{})})})}l.displayName=l.name+" [from "+f.id+"]";a=d("withSellerFunnelLogging").withSellerFunnelLogging(l,{flow:"cm_home"});e=a;g["default"]=e}),98);
-----
StreamerHomeLevelUpModule.react",["fbt","ix","GeoButton.react","GeoFlexbox.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoHeading.react","GeoLink.react","GeoList.react","GeoListMediaItem.react","GeoSection.react","GeoTab.react","GeoTabHeader.react","GeoText.react","Image.react","RelayHooks","StreamerHomeLevelUpEligibilityUtils","StreamerHomeLevelUpModule_streamerHomeModule.graphql","StreamerHomeLevelUpOnboardingTOSModal.react","react","recoverableViolation","useBizKitStreamerDashboardLogger","useLevelUpLiveTrackRequirements","useLevelUpVODTrackRequirements"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l=d("react").useState,m=function(a){return a.filter(function(a){return a.meets}).length},n=function(a){return m(a.requirements)/a.requirements.length};function a(a){var e,f=l(!1),g=f[0],o=f[1];f=d("RelayHooks").useFragment(j!==void 0?j:j=b("StreamerHomeLevelUpModule_streamerHomeModule.graphql"),a.streamerHomeModule);a=f.page;var p=d("useBizKitStreamerDashboardLogger").useBizKitStreamerDashboardLogger(),q=function(a){return p.setEvent("button_clicked").setActionTarget(a).log()};f=function(){p.setEvent("level_up_apply_clicked").log(),o(!0)};var r=(e=(e=a.vod_level_up_track)==null?void 0:e.passes_gk)!=null?e:!1,s=c("useLevelUpLiveTrackRequirements")(a,r),t=c("useLevelUpVODTrackRequirements")(a);e=l(function(){if(!r)return s;var a=n(s),b=n(t);return b>a?t:s});var u=e[0],v=e[1],w=i("1352373"),x=i("1208638");e=d("StreamerHomeLevelUpEligibilityUtils").getLevelUpModuleDescription(r,q);var y=m(u.requirements),z=n(u);return k.jsxs("div",{children:[k.jsx("div",{className:"xod5an3 x14atkfc",children:k.jsx(c("Image.react"),{className:"xt7dq6l x193iq5w",src:"/images/games/streamer_dashboard/BizKitStreamerHomeLevelUpArt_4x.png"})}),k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("GeoHeading.react"),{level:2,children:h._("u6210u4e3au5347u7ea7u8ba1u5212u4e3bu64ad")}),k.jsx(c("GeoText.react"),{children:e})]}),r?k.jsxs(c("GeoTabHeader.react"),{onChange:function(a){q(a+"_tab");switch(a){case"unknown":c("recoverableViolation")("Invalid Level Up track type selected","games_video_streamer_dashboard");case"live_creator":return v(s);case"vod_creator":return v(t)}},value:u.name,children:[k.jsx(c("GeoTab.react"),{label:h._("u4e3bu64ad"),value:"live_creator"}),k.jsx(c("GeoTab.react"),{label:h._("u89c6u9891u521bu4f5cu8005"),value:"vod_creator"})]}):null,k.jsxs(c("GeoSection.react"),{children:[k.jsxs("div",{children:[k.jsx(c("GeoHeading.react"),{level:3,children:h._("u8ba1u5212u53c2u4e0eu8d44u683c")}),k.jsx("div",{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":z*100,className:"x78zum5 xdt5ytf x12nagc x14vqqas x6c5l4p",children:k.jsx(c("GeoFlexbox.react"),{alignItems:"center",children:k.jsx("div",{className:"x1wpzbip xhk9q7s x1otrzb0 x1i1ezom x1o6z2jb xdk7pt x6ikm8r x10wlt62 xh8yej3",children:k.jsx("div",{className:"x11goek xdk7pt x19w6rv x1mbqufl x11xpdln x1fwqrf6",style:{transform:"scaleX("+z+")"}})})})}),k.jsx(c("GeoText.react"),{children:h._("{completed criteria}/{total criteria}u4e2au8981u6c42u5df2u5b8cu6210",[h._param("completed criteria",y),h._param("total criteria",u.requirements.length)])}),k.jsx(c("GeoList.react"),{children:u.requirements.map(function(a,b){return k.jsx(c("GeoListMediaItem.react"),{imageHeight:16,imageURI:a.meets===!0?x:w,imageWidth:16,label:a.text},b)})})]}),u.name==="live_creator"?k.jsx("div",{className:"xw7yly9",children:k.jsx(c("GeoGuidanceCard.react"),{header:k.jsx(c("GeoGuidanceCardHeader.react"),{heading:h._("u60f3u8981u66f4u5febu5b9eu73b0u76eeu6807uff1f")}),status:"recommendation",children:k.jsx(c("GeoGuidanceCardContent.react"),{children:k.jsx(c("GeoText.react"),{children:h._("{=m0}u5185u5bb9u5982u4f55u5728 Facebook u4e0au4f20u64aduff0cu4ee5u53cau4f60u80fdu91c7u53d6u54eau4e9bu63aau65bdu6765u63d0u5347u53d7u4f17u4e92u52a8u3002",[h._implicitParam("=m0",k.jsx(c("GeoLink.react"),{href:"/fbgaminghome/creators/bootcamp",onClick:function(){q("creator_best_practices")},target:"_blank",children:h._("u8be6u7ec6u4e86u89e3")}))])})})})}):null,k.jsxs("div",{className:"xw7yly9",children:[k.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:!u.isEligible||((e=a.fan_support_settings)==null?void 0:e.level_up_terms_accepted)===!0,label:h._("u7533u8bf7"),onClick:f,variant:"primary",width:"100%"}),k.jsx(c("StreamerHomeLevelUpOnboardingTOSModal.react"),{isShown:g,onHide:function(){o(!1)}})]})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StreamerHomeLevelUpOnboardingTOSModal.react",["fbt","AsyncRequest","CometRelay","DevsiteAudienceNetworkTrackingPixels","GeoButton.react","GeoCancelButton.react","GeoFlexbox.react","GeoHeading.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoNotice.react","GeoSection.react","GeoSpinner.react","GeoText.react","Image.react","StreamerHomeContext","StreamerHomeLevelUpOnboardingTOSModalMutation.graphql","XAffiliateOnboardingPolicyController","react","useBizKitStreamerDashboardLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useContext,l=e.useLayoutEffect,m=e.useRef,n=e.useState,o=i!==void 0?i:i=b("StreamerHomeLevelUpOnboardingTOSModalMutation.graphql");function a(a){var b=a.isShown,e=a.onHide,f=m();a=n("INITIAL");var g=a[0],i=a[1],p=d("useBizKitStreamerDashboardLogger").useBizKitStreamerDashboardLogger();a=d("CometRelay").useMutation(o);var q=a[0];a=a[1];var r=k(c("StreamerHomeContext")),s=r.pageID;r=function(){p.setActionTarget("accept_level_up_terms").setEvent("button_clicked").log(),s!=null&&q({onCompleted:function(a){d("DevsiteAudienceNetworkTrackingPixels").track("GCLevelUpApplicationApproved");((a=a.accept_level_up_terms_fan_support_page_settings)==null?void 0:(a=a.fan_support_page_settings)==null?void 0:a.level_up_terms_accepted)===!0&&(p.setActionTarget("level_up_terms_accepted").setEvent("level_up_terms_accepted").log(),i("SUCCESS"))},onError:function(a){p.setActionTarget("accept_level_up_terms_failed").logError(a),i("ERROR")},variables:{input:{page:s}}})};var t=function(){b&&(p.setEvent("level_up_terms_dismissed").log(),i("INITIAL"),e())};l(function(){if(b){var a=c("XAffiliateOnboardingPolicyController").getURIBuilder().getURI(),d=new(c("AsyncRequest"))().setAllowCrossPageTransition(!0).setRelativeTo(f.current).setURI(a).setHandler(function(){i("TOS")}).setErrorHandler(function(){i("ERROR")});d.send();return function(){return d.abort()}}},[b]);var u=j.jsxs(j.Fragment,{children:[j.jsx(c("GeoFlexbox.react"),{direction:"column",style:{backgroundColor:"#162643",height:250},children:j.jsx(c("Image.react"),{height:230,src:"/images/games/streamer_dashboard/Congratulations.png",width:506})}),j.jsxs(c("GeoSection.react"),{children:[j.jsx(c("GeoHeading.react"),{level:2,children:h._("u606du559cuff01")}),j.jsx(c("GeoText.react"),{children:h._("u4f60u7684u7533u8bf7u5df2u83b7u6279u3002u4f60u53efu4ee5u5728u6e38u620fu76f4u64adu671fu95f4u63a5u6536u201cu661fu661fu201du4e86u3002")})]})]});a=g==="SUCCESS"?j.jsx(c("GeoButton.react"),{autoFocus:!0,label:h._("u786eu5b9a"),onClick:e,variant:"primary"}):j.jsx(c("GeoButton.react"),{autoFocus:!0,isDisabled:g!=="TOS",isLoading:a,label:h._("u6211u540cu610f"),onClick:r,variant:"primary"});return j.jsx(c("GeoModal.react"),{footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:a,secondaryButton:g==="SUCCESS"?void 0:j.jsx(c("GeoCancelButton.react"),{"data-testid":void 0,onClick:t})}),header:j.jsx(c("GeoModalHeader.react"),{heading:h._("u63a5u53d7u521bu4f5cu8005u5347u7ea7u8ba1u5212u670du52a1u6761u6b3e")}),isShown:b,label:"Level Up TOS Modal",onHide:t,children:j.jsxs(c("GeoSection.react"),{children:[(g==="INITIAL"||g==="TOS")&&j.jsx("div",{ref:f},"terms"),g==="INITIAL"&&j.jsx(c("GeoSpinner.react"),{}),g==="ERROR"&&j.jsx(c("GeoNotice.react"),{status:"error",children:h._("u51fau9519u4e86uff0cu8bf7u91cdu8bd5u3002")}),g==="SUCCESS"&&u]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StreamerHomeLevelUpOnboardingTOSModalMutation.graphql",["StreamerHomeLevelUpOnboardingTOSModalMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"AcceptLevelUpTermsFanSupportPageSettingsResponsePayload",kind:"LinkedField",name:"accept_level_up_terms_fan_support_page_settings",plural:!1,selections:[{alias:null,args:null,concreteType:"FanSupportPageSettings",kind:"LinkedField",name:"fan_support_page_settings",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"level_up_terms_accepted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mixer_bonus_terms_accepted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"incentive_terms_accepted",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"StreamerHomeLevelUpOnboardingTOSModalMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"StreamerHomeLevelUpOnboardingTOSModalMutation",selections:c},params:{id:b("StreamerHomeLevelUpOnboardingTOSModalMutation_facebookRelayOperation"),metadata:{},name:"StreamerHomeLevelUpOnboardingTOSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
StreamerHomeLevelUpOnboardingTOSModalMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6273243206039468"}),null);
-----
CommerceManagerApp.react",["CUIErrorCard.react","CatalogBusinessEventsLoggerHelper","CommerceManagerAppLoadingState.react","CommerceManagerAutoLoggingUtils","CommerceManagerMetaEmployeeRecommendations","CommerceManagerRelayEnvironment","CommerceManagerRouterRootV2.react","CommerceManagerSuspense.react","RelayAPIConfig","RelayFBEnvironment","RelayHooks","SellerInsightsV2LoggingUtils","gkx","performance","react","useCommerceManagerTheme"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useEffect,j=b.useRef;function a(a){var b=a.catalogID,e=a.catalogOrCmsID,f=a.cmsID,g=a.isEligibleForBizKitCommerceIntegration,i=a.loadFedInformWizard,j=a.loadFedInformWizardIndividualFlow,l=a.loadIDVFlow,m=a.loadOBBOFlow,n=a.showOnLoadModal,o=a.showShopCompleteDialog;a=a.showTOSModal;c("useCommerceManagerTheme")();k();d("CommerceManagerAutoLoggingUtils").initializeAutoClickLogging({catalogID:b,cmsID:f});d("CommerceManagerMetaEmployeeRecommendations").useLogBizKitEligibilityBypassRecommendationForMetaEmployees(g);var p=c("RelayFBEnvironment");c("gkx")("3062")&&(p=c("CommerceManagerRelayEnvironment").getForActorID(c("RelayAPIConfig").actorID));return h.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:p,children:h.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),flowName:"LOAD_MAIN_APP",loadingComponent:h.jsx(c("CommerceManagerAppLoadingState.react"),{}),oncall:"merchant_platform_and_interfaces",children:h.jsx(c("CommerceManagerRouterRootV2.react"),{catalogID:b,catalogOrCmsID:e,cmsID:f,isEligibleForBizKitCommerceIntegration:g,loadFedInformWizard:i,loadFedInformWizardIndividualFlow:j,loadIDVFlow:l,loadOBBOFlow:m,showOnLoadModal:n,showShopCompleteDialog:o,showTOSModal:a})})})}a.displayName=a.name+" [from "+f.id+"]";function k(){var a=j(!1);i(function(){typeof c("performance").now==="function"&&!a.current&&(c("CatalogBusinessEventsLoggerHelper").getPerformanceLogger().setEvent("unified_commerce_manager_app_first_render").setTimeTakenInMs(Math.round(c("performance").now())).log(),a.current=!0),d("SellerInsightsV2LoggingUtils").commerceInsightsPageLoadingV2Scenario()},[])}g["default"]=a}),98);
-----
CommerceManagerRouterRootV2.react",["CommerceManagerAppLoadingState.react","CommerceManagerRootMatchRouteContainer.react","CommerceManagerRouteConfigUtils","CommerceManagerRouteConfigurations","CommerceManagerRouterRootV2Query.graphql","CommerceManagerSuspense.react","RelayHooks","react","useCallOnceImmediately"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function j(a){var e=d("RelayHooks").useLazyLoadQuery(h!==void 0?h:h=b("CommerceManagerRouterRootV2Query.graphql"),{catalogOrCmsID:a.catalogOrCmsID});e={catalogOrCmsID:a.catalogOrCmsID,contextConfiguration:e.configuration,isEligibleForBizKitCommerceIntegration:a.isEligibleForBizKitCommerceIntegration,loadFedInformWizard:a.loadFedInformWizard,loadFedInformWizardIndividualFlow:a.loadFedInformWizardIndividualFlow,loadIDVFlow:a.loadIDVFlow,loadOBBOFlow:a.loadOBBOFlow,showOnLoadModal:a.showOnLoadModal,showShopCompleteDialog:a.showShopCompleteDialog,showTOSModal:a.showTOSModal};c("useCallOnceImmediately")(function(){var b=d("CommerceManagerRouteConfigUtils").getRouteConfigs(a.cmsID,a.catalogID);d("CommerceManagerRouteConfigurations").initRouteConfigs(b)});return i.jsx(c("CommerceManagerRootMatchRouteContainer.react"),babelHelpers["extends"]({},e,{placeholder:c("CommerceManagerAppLoadingState.react")}))}j.displayName=j.name+" [from "+f.id+"]";function a(a){return i.jsx(c("CommerceManagerSuspense.react"),{loadingComponent:i.jsx(c("CommerceManagerAppLoadingState.react"),{}),oncall:"cxp_interfaces",children:i.jsx(j,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitCustomerEmptyStateWithValuePropsView.react",["fbt","BizKitCuReSharedNullStateView.react","BizKitCustomerOnboardingConstants","BizKitCustomerTOSModal.react","BizKitDefaultPage.react","BizKitRequirePageAdminPermissionNotice.react","CRMDestinationContext","CrmDestinationTosFlowImpressionFalcoEvent","GeoCard.react","GeoToast.react","nullthrows","react","useBizKitPageNullable","useGeoToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useContext,k=b.useEffect,l=b.useState;function a(a){var b=c("useBizKitPageNullable")(),e=l(!1),f=e[0],g=e[1];e=l(null);var m=e[0],n=e[1];e=c("useGeoToaster")();var o=e.add;e=j(c("CRMDestinationContext"));var p=e.bpnID;k(function(){if(m!=null){var a=null;m==="error"?a=h._("u51fau9519u4e86uff0cu8bf7u7a0du540eu91cdu8bd5u3002"):m==="success"&&(a=h._("u4f60u5df2u63a5u53d7u8054u7cfbu4ebau5de5u5177u7684u670du52a1u6761u6b3eu3002"));a!==null&&o(i.jsx(c("GeoToast.react"),{heading:a,status:m}),{duration:"sticky"})}},[o,m]);k(function(){c("CrmDestinationTosFlowImpressionFalcoEvent").log(function(){return{event_location:"bizweb_crm_destination",page_id:b,business_presence_node_id:p,event_data:{}}})},[b,p]);return i.jsx(c("BizKitDefaultPage.react"),{initShowLocalNav:!1,children:i.jsxs(c("GeoCard.react"),{children:[i.jsx(d("BizKitCuReSharedNullStateView.react").BizKitCuReSharedNullStateView,{nullStateConfig:a.canSignToS?c("BizKitCustomerOnboardingConstants").TOS_NULL_STATE_CONFIG:c("BizKitCustomerOnboardingConstants").TOS_NO_PERMISSION_NULL_STATE_CONFIG,onPrimaryButtonClick:function(){g(!0)},customSection:a.canSignToS?null:i.jsx(c("BizKitRequirePageAdminPermissionNotice.react"),{notice:c("BizKitCustomerOnboardingConstants").CONTACTS_CONTAC_ADMIN_TO_SETUP_WARNING})}),a.canSignToS&&i.jsx(c("BizKitCustomerTOSModal.react"),{bpnID:c("nullthrows")(p),isShown:f,onHide:function(){g(!1)},onAcceptSuccess:function(){g(!1),a.refresh(),n("success")},onAcceptFailure:function(){g(!1),n("error")},eventLocation:"bizweb_crm_destination",tosSurface:"BIZWEB_CONTACTS_TAB"})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitCustomerEmptyStateView.react",["fbt","ix","BizKitCustomerConnect3PDataModal.react","BizKitCustomerTOSModal.react","BizKitDefaultPage.react","CRMCreateCRMConfigMutation.react","CRMDestinationContext","CrmDestinationPartnerIntegrationClickFalcoEvent","CrmDestinationPartnerIntegrationImpressionFalcoEvent","CrmDestinationTosFlowImpressionFalcoEvent","FlexLayout.react","FlexLayoutItem.react","GeoButton.react","GeoCard.react","GeoTextPairing.react","GeoToast.react","Image.react","RelayHooks","URI","XBizAppStoreController","nullthrows","react","useBizKitPageNullable","useGeoToaster"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");b=d("react");var k=b.useContext,l=b.useEffect,m=b.useState;function n(a){return j.jsxs(c("FlexLayout.react"),{align:"center",className_DO_NOT_USE:"x8rgt9n",direction:"vertical",justify:"all",children:[j.jsx(c("FlexLayoutItem.react"),{children:j.jsx(c("Image.react"),{src:i("1682260")})}),j.jsx(c("FlexLayoutItem.react"),{className:"xqui205 x1l2rt3b",children:j.jsx(c("GeoTextPairing.react"),{textAlign:"center",description:h._("u8054u7cfbu4ebau5de5u5177u7528u9014u5e7fu6cdbuff0cu4f60u4e0du4ec5u80fdu5b58u50a8u548cu7ba1u7406u6240u6709u8054u7cfbu4ebau6570u636euff0cu8fd8u80fdu521bu5efau53d7u4f17u7ec6u5206u548cu7ba1u7406u53d7u4f17u3002u63a5u53d7u670du52a1u6761u6b3eu5c31u53efu5f00u59cbu4f7fu7528u3002"),heading:h._("u6b22u8fceu4f7fu7528u8054u7cfbu4ebau5de5u5177"),size:"header2"})}),j.jsx(c("FlexLayoutItem.react"),{className:"x14vqqas",children:j.jsx(c("GeoButton.react"),{"data-testid":void 0,label:h._("u5f00u59cb"),onClick:function(){a.setModalShown(!0)},variant:"primary"})})]})}n.displayName=n.name+" [from "+f.id+"]";function o(a){return j.jsxs(c("FlexLayout.react"),{align:"center",className_DO_NOT_USE:"x8rgt9n",direction:"vertical",justify:"all",children:[j.jsx(c("FlexLayoutItem.react"),{children:j.jsx(c("Image.react"),{src:i("1495174")})}),j.jsx(c("FlexLayoutItem.react"),{className:"xqui205 x1l2rt3b",children:j.jsx(c("GeoTextPairing.react"),{textAlign:"center",description:h._("u7ed1u5b9au5176u4ed6u4e1au52a1u5de5u5177u5e76u5bfcu5165u6570u636euff0cu5f00u59cbu4f7fu7528u9ad8u6548u7684u8054u7cfbu4ebau5de5u5177u3002"),heading:h._("u65e0u8054u7cfbu4eba"),size:"header2"})}),j.jsx(c("FlexLayoutItem.react"),{className:"x14vqqas",children:j.jsx(c("GeoButton.react"),{label:h._("u5173u8054u6570u636e"),onClick:function(){a.setModalShown(!0)},variant:"primary"})})]})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=c("nullthrows")(c("useBizKitPageNullable")(),"pageID is null"),f=m(!1),g=f[0],i=f[1];f=m(!1);var p=f[0],q=f[1];f=m(null);var r=f[0],s=f[1];f=c("useGeoToaster")();var t=f.add,u=a.shouldShowTOS;f=k(c("CRMDestinationContext"));var v=f.bpnID;l(function(){u?c("CrmDestinationTosFlowImpressionFalcoEvent").log(function(){return{event_location:"bizweb_crm_destination",page_id:e,business_presence_node_id:v,event_data:{}}}):c("CrmDestinationPartnerIntegrationImpressionFalcoEvent").log(function(){return{event_location:"bizweb_crm_destination",page_id:e,business_presence_node_id:v,event_data:{}}});if(r!=null){var a=null;r==="error"?a=h._("u51fau9519u4e86uff0cu8bf7u7a0du540eu91cdu8bd5u3002"):r==="success"&&(a=h._("u4f60u5df2u63a5u53d7u8054u7cfbu4ebau5de5u5177u7684u670du52a1u6761u6b3eu3002"));a!==null&&t(j.jsx(c("GeoToast.react"),{heading:a,status:r}),{duration:"sticky"})}},[e,v,t,r,u]);f=o({setModalShown:i});u&&(f=n({setModalShown:i}));return j.jsx(c("BizKitDefaultPage.react"),{initShowLocalNav:!1,children:j.jsxs(c("GeoCard.react"),{children:[f,a.shouldShowTOS?j.jsx(c("BizKitCustomerTOSModal.react"),{bpnID:c("nullthrows")(v),isShown:g,onHide:function(){i(!1)},onAcceptSuccess:function(){i(!1),a.refresh(),s("success")},onAcceptFailure:function(){i(!1),s("error")},eventLocation:"bizweb_crm_destination",tosSurface:"BIZWEB_CONTACTS_TAB"}):j.jsx(c("BizKitCustomerConnect3PDataModal.react"),{isConfirmButtonDisabled:p,onConnectData:function(){c("CrmDestinationPartnerIntegrationClickFalcoEvent").log(function(){return{event_location:"bizweb_crm_destination",page_id:e,business_presence_node_id:v,event_data:{}}}),a.crmConfigExist||d("CRMCreateCRMConfigMutation.react").commitCRMCreateCRMConfigMutation(c("nullthrows")(v),b),c("URI").goURIOnNewWindow(c("XBizAppStoreController").getURIBuilder().setString("rest","data_integration").setFBID("page_id",e).setEnum("channel","crm_destination").getURI()),q(!0)},isShown:g,onHide:function(){i(!1)},pageID:e})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitCustomerTOSModal.react",["fbt","CRMConsentToTOSDialog.react","CrmDestinationTosFlowEnterFlowFalcoEvent","CrmDestinationTosFlowReceiveResponseFailureFalcoEvent","CrmDestinationTosFlowReceiveResponseSuccessFalcoEvent","CrmDestinationTosFlowSubmitFlowFalcoEvent","GeoButton.react","GeoCancelButton.react","GeoCheckboxInput.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","LeadsManagerAcceptToSMutation","RelayHooks","nullthrows","react","useBizKitPageNullable","useBoolean"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useEffect,k=b.useState;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=c("nullthrows")(c("useBizKitPageNullable")(),"pageID is null"),f=k(!1),g=f[0],m=f[1];f=k(!1);var n=f[0],o=f[1];f=c("useBoolean")(!1);var p=f.value;f=f.set;var q=function(){c("CrmDestinationTosFlowReceiveResponseSuccessFalcoEvent").log(function(){return{event_location:a.eventLocation,page_id:e,business_presence_node_id:a.bpnID,event_data:{}}}),a.onAcceptSuccess()},r=function(){c("CrmDestinationTosFlowReceiveResponseFailureFalcoEvent").log(function(){return{event_location:a.eventLocation,page_id:e,business_presence_node_id:a.bpnID,event_data:{}}}),a.onAcceptFailure()};j(function(){a.isShown&&c("CrmDestinationTosFlowEnterFlowFalcoEvent").log(function(){return{event_location:a.eventLocation,page_id:e,business_presence_node_id:a.bpnID,event_data:{}}})},[a.bpnID,a.isShown,e,a.eventLocation]);return i.jsxs("span",{children:[i.jsx(c("GeoModal.react"),{footer:i.jsx(c("GeoModalFooter.react"),{primaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:!p,label:h._("u786eu8ba4"),onClick:function(){o(!0),c("CrmDestinationTosFlowSubmitFlowFalcoEvent").log(function(){return{event_location:a.eventLocation,page_id:e,business_presence_node_id:a.bpnID,event_data:{tos_submit_referrer:"summary"}}}),l(b,e,a.tosSurface,q,r,o)},isLoading:n,variant:"primary"}),secondaryButton:i.jsx(c("GeoCancelButton.react"),{"data-testid":void 0}),startContent:i.jsx(c("GeoCheckboxInput.react"),{label:h._("u6211u4ee3u8868u6211u7684u7ec4u7ec7u786eu8ba4u6211u5df2u9605u8bfb{=m2}uff0cu5e76u4e86u89e3u6211u4f7fu7528u8fd9u6b3eu5de5u5177u5fc5u987bu9075u5b88u8fd9u4e9bu6761u6b3eu3002",[h._implicitParam("=m2",i.jsx(c("GeoLink.react"),{onClick:function(){m(!0),a.onHide()},children:h._("u516cu5171u4e3bu9875u8054u7cfbu4ebau6761u6b3e")}))]),onChange:f,value:p})}),header:i.jsx(c("GeoModalHeader.react"),{heading:h._("u8054u7cfbu4ebau670du52a1u6761u6b3e")}),isShown:a.isShown,onHide:a.onHide,children:i.jsx(c("GeoSection.react"),{children:i.jsxs("div",{children:[i.jsx("div",{children:i.jsx(c("GeoText.react"),{children:h._("u8054u7cfbu4ebau76f8u4fe1u4f60u4f1au4ee5u8d1fu8d23u4efbu7684u6001u5ea6u5904u7406u4ed6u4eecu7684u4fe1u606fu3002u70b9u51fbu201cu786eu8ba4u201duff0cu5373u8868u793au4f60u540cu610fu4e0bu5217u4e8bu9879uff1a")})}),i.jsxs("div",{className:"x1yztbdb x1sy10c2",children:[i.jsx("div",{className:"xtcx8v3 x12nagc xv90nub x1gslohp",children:i.jsx(c("GeoText.react"),{children:h._("u4f60u6709u6743u9650u50a8u5b58u548cu4f7fu7528u4ed6u4eecu7684u4fe1u606fu6765u53d1u9001u4ea4u6613u548cu63a8u5e7fu6d88u606fu3002")})}),i.jsx("div",{className:"xtcx8v3 x12nagc xv90nub x1gslohp",children:i.jsx(c("GeoText.react"),{children:h._("u4f60u7684u8054u7cfbu4ebau9009u62e9u5141u8bb8u51fau4e8eu8425u9500u76eeu7684u5206u4eabu6216u4f7fu7528u5176u6570u636eu3002")})}),i.jsx("div",{className:"xtcx8v3 x12nagc xv90nub x1gslohp",children:i.jsx(c("GeoText.react"),{children:h._("u5982u679cu8054u7cfbu4ebau9009u62e9u7981u6b62u5206u4eabu5176u4fe1u606fuff0cu65e0u8bbau4f55u65f6uff0cu4f60u90fdu5c06u7acbu5373u79fbu9664u76f8u5173u4fe1u606fu3002")})})]})]})})}),i.jsx(c("CRMConsentToTOSDialog.react"),{isShown:g,onConfirm:function(){o(!0),c("CrmDestinationTosFlowSubmitFlowFalcoEvent").log(function(){return{event_location:a.eventLocation,page_id:e,business_presence_node_id:a.bpnID,event_data:{tos_submit_referrer:"detail"}}}),l(b,e,a.tosSurface,q,r,o)},onHide:function(){m(!1)},isLoading:n})]})}a.displayName=a.name+" [from "+f.id+"]";function l(a,b,c,e,f,g){d("LeadsManagerAcceptToSMutation").commit(a,{actor_id:b,signature_surface:c},{onSuccess:function(a){a=(a=a.lead_gen_tos_consent)==null?void 0:a.success;a===!0?e():(f(),g(!1))},onFailure:function(){f(),g(!1)}})}g["default"]=a}),98);
-----
CommerceManagerRootView.react",["CUIErrorCard.react","CommerceManagerContextProviders.react","CommerceManagerHeroInteractionRouterRoot","CommerceManagerLayoutV2.react","CommerceManagerLoadingOverlay.react","CommerceManagerMatchRouteContainerPlaceholder.react","CommerceManagerRootModalsV2.react","CommerceManagerRootViewMatchRouteContainer.react","CommerceManagerRootView_contextConfiguration.graphql","CommerceManagerSuspense.react","CommerceManagerTabRoutingUtils","CommerceManagerUsabilitySurveyUtils","CommerceManagerUtils","GeoBaseSpacingLayout.react","GeoToasterProvider.react","HeroInteractionIgnoreWithDiv.react","JSResource","RelayHooks","SUIBusinessThemeContainer.react","lazyLoadComponent","react","useAdsInterfacesRouterLeafRoute","useCatalogLocation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").Suspense,k=c("lazyLoadComponent")(c("JSResource")("CommerceManagerUsabilitySurveyInfo.react").__setRef("CommerceManagerRootView.react")),l=h!==void 0?h:h=b("CommerceManagerRootView_contextConfiguration.graphql");function a(a){var b=c("useCatalogLocation")(),e=d("RelayHooks").useFragment(l,a.contextConfiguration),f=c("useAdsInterfacesRouterLeafRoute")(),g=d("CommerceManagerTabRoutingUtils").deriveActiveTabFromRouteName(f.name);f=d("CommerceManagerTabRoutingUtils").deriveSubtabFromRouteName(f.name);var h=d("CommerceManagerUtils").isShopBuilderTab(g,f),m=function(a){return d("CommerceManagerUsabilitySurveyUtils").isUsabilitySurveyEnabled()?i.jsx(k,{skipTaskContextBar:a}):null};h=i.jsx(c("GeoToasterProvider.react"),{children:i.jsxs(c("CommerceManagerContextProviders.react"),{catalogOrCmsID:a.catalogOrCmsID,commerceManagerRoutingImpl:"AdsInterfacesRouter",configuration:e,isBizSuiteUser:a.isEligibleForBizKitCommerceIntegration,loadFedInformWizard:a.loadFedInformWizard,loadFedInformWizardIndividualFlow:a.loadFedInformWizardIndividualFlow,loadIDVFlow:a.loadIDVFlow,loadOBBOFlow:a.loadOBBOFlow,showOnLoadModal:a.showOnLoadModal,showShopCompleteDialog:a.showShopCompleteDialog,showTOSModal:a.showTOSModal,children:[h?i.jsxs(c("SUIBusinessThemeContainer.react"),{children:[i.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:i.jsx(c("GeoBaseSpacingLayout.react"),{direction:"vertical",children:i.jsx(c("CommerceManagerLoadingOverlay.react"),{})}),oncall:"merchant_platform_and_interfaces",children:i.jsx(c("CommerceManagerRootViewMatchRouteContainer.react"),{placeholder:c("CommerceManagerMatchRouteContainerPlaceholder.react")})}),i.jsx(j,{fallback:null,children:m(!0)})]}):i.jsx(c("CommerceManagerLayoutV2.react"),{catalogOrCmsID:a.catalogOrCmsID,location:b,subtab:(e=f)!=null?e:void 0,tab:g,unsabilitySurveyInfo:i.jsx(j,{fallback:null,children:m(!1)}),children:i.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:i.jsx(c("GeoBaseSpacingLayout.react"),{direction:"vertical",children:i.jsx(c("CommerceManagerLoadingOverlay.react"),{})}),oncall:"merchant_platform_and_interfaces",children:i.jsx(c("CommerceManagerRootViewMatchRouteContainer.react"),{placeholder:c("CommerceManagerMatchRouteContainerPlaceholder.react")})})}),i.jsx(c("HeroInteractionIgnoreWithDiv.react"),{children:i.jsx(c("CommerceManagerRootModalsV2.react"),{catalogOrCmsID:a.catalogOrCmsID,country:"US",showShopCompleteDialog:a.showShopCompleteDialog})})]})});return i.jsx(c("CommerceManagerHeroInteractionRouterRoot").Component,{defaultTracePolicy:"commerce_manager.unknown",children:h})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerContextProviders.react",["CommerceManagerAppContextProvider.react","CommerceManagerCatalogContextProvider.react","CommerceManagerCatalogItemsPageFetchKeyContext.react","CommerceManagerCatalogSetsPageFetchKeyContext.react","CommerceManagerCommerceContextProviders.react","CommerceManagerContextProviders_configuration.graphql","CommerceManagerLoggingHooks","CommerceManagerRoutingContext","CommerceManagerUsageContext","RelayHooks","UnifiedCommerceManagerUsage","err","getJSEnumSafe","hero-tracing-placeholder","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useContext,k=h!==void 0?h:h=b("CommerceManagerContextProviders_configuration.graphql");function a(a){var b,e=a.children,f=a.loadIDVFlow,g=a.loadOBBOFlow,h=a.loadFedInformWizard,l=a.loadFedInformWizardIndividualFlow,m=a.isBizSuiteUser,n=a.showShopCompleteDialog,o=a.showTOSModal,p=a.showOnLoadModal,q=d("CommerceManagerLoggingHooks").useErrorLogging(),r=j(d("hero-tracing-placeholder").HeroInteractionIDContext),s=d("RelayHooks").useFragment(k,a.configuration);b=(b=c("getJSEnumSafe")(c("UnifiedCommerceManagerUsage"),s==null?void 0:s.usage))!=null?b:"UNKNOWN";if(b==="UNKNOWN"){q({error:c("err")("Unified Commerce Manager usage is unknown"),flowName:"NAVIGATION",oncall:"catalog_quality_tools"});return null}q=new URLSearchParams(window.location.search);q=q.get("ref");var t={commerceManagerRoutingImpl:a.commerceManagerRoutingImpl};return i.jsx(c("CommerceManagerAppContextProvider.react"),{catalogOrCmsID:a.catalogOrCmsID,configuration:s,children:i.jsx(c("CommerceManagerUsageContext").Provider,{value:{usage:b},children:i.jsx(c("CommerceManagerCommerceContextProviders.react"),{canViewPermissions:(s==null?void 0:(a=s.features)==null?void 0:a.canViewPermissions)===!0,interactionUUID:r,isBizSuiteUser:m,loadFedInformWizard:h,loadFedInformWizardIndividualFlow:l,loadIDVFlow:f,loadOBBOFlow:g,referrerSurface:q,settings:s,showOnLoadModal:p,showShopCompleteDialog:n,showTOSModal:o,children:i.jsx(c("CommerceManagerCatalogContextProvider.react"),{catalog:s==null?void 0:s.catalog,children:i.jsx(c("CommerceManagerRoutingContext").Provider,{value:t,children:i.jsx(d("CommerceManagerCatalogItemsPageFetchKeyContext.react").CommerceManagerCatalogItemsPageFetchKeyContextProvider,{children:i.jsx(d("CommerceManagerCatalogSetsPageFetchKeyContext.react").CommerceManagerCatalogSetsPageFetchKeyContextProvider,{children:e})})})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerCommerceContextProviders.react",["CommerceManagerCheckoutStyle","CommerceManagerCommerceContextProviders_configuration.graphql","CommerceManagerComponentGatingProvider","CommerceManagerContext","CommerceManagerLocalizationContext","CommerceManagerPermissionProvider.react","CommerceManagerSurveyTaskContext","CommercePaymentProviders","RelayHooks","castToEnum","getJSEnumSafe","react","useAdsInterfacesRouterParams"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function a(a){var e=a.children,f=a.interactionUUID,g=a.isBizSuiteUser,j=a.loadIDVFlow,k=a.loadOBBOFlow,l=a.loadFedInformWizard,m=a.loadFedInformWizardIndividualFlow,n=a.settings,o=a.canViewPermissions,p=a.referrerSurface,q=a.showShopCompleteDialog,r=a.showTOSModal;a=a.showOnLoadModal;n=d("RelayHooks").useFragment(h!==void 0?h:h=b("CommerceManagerCommerceContextProviders_configuration.graphql"),n);var s=c("useAdsInterfacesRouterParams")();s=s.routeParams;s=s.shopID;if(n==null)return e;var t=n.commerceMerchantSettings,u=t==null?void 0:t.id;if(t==null||u==null)return e;var v=t.shopifyApplication,w=t.hasShopifyCatalogPartnerToken,x=t.checkoutStyle,y=t.id,z=t.page,A=t.commerceFeatures,B=t.dropsAudienceSize,C=t.paymentProvider,D=t.externalMerchantID;D={accountID_DEPRECATED_USE_CMS_ID_INSTEAD:u,canViewDiscounts:Boolean(n==null?void 0:(u=n.commerceManagerFeatures)==null?void 0:u.canViewDiscounts),cmsID:y,isBizSuiteUser:g,emailOptInIGUserCount:B==null?void 0:B.email_opt_in_ig_user_count,externalMerchantID:D,fetchPersistedDropIssues:Boolean(A==null?void 0:A.fetchPersistedDropIssues),isDropsCollaboratorFlowEnabled:Boolean(A==null?void 0:A.isDropsCollaboratorFlowEnabled),hasAccessToAutoUpdatesInItemsTab:Boolean(((u=n.features)==null?void 0:(y=u.catalogConciergeFeatures)==null?void 0:y.hasAccessToAutoUpdatesInItemsTab)===!0),hasShopifyCatalogPartnerToken:Boolean(w),loyaltyIGUserCount:B==null?void 0:B.loyalty_ig_user_count,interactionUUID:f,isDiscountsNUXEnabled:Boolean(A==null?void 0:A.isDiscountsNUXEnabled),isDropsKYCEnabled:Boolean((A==null?void 0:A.isDropsKYCEnabled)===!0&&t.isSandboxShop!==!0),isDropsCommerceDrawingEnabled:Boolean(A==null?void 0:A.isDropsCommerceDrawingEnabled),isDropsSimplifiedCreationFlowEnabled:Boolean(A==null?void 0:A.isDropsSimplifiedCreationFlowEnabled),isShopifySeller:Boolean(t.isShopifySeller),isShopifyDirectMerchant:Boolean(t.isShopifyDirectMerchant),isManagedSeller:Boolean(t.isManagedSeller),isFlashSaleCampaignInsightsEnabled:Boolean(A==null?void 0:A.isFlashSaleCampaignInsightsEnabled),isInsightsV2Enabled:Boolean(A==null?void 0:A.isInsightsV2Enabled),isLiveShoppingIncentivesEnabled:Boolean(A==null?void 0:A.isLiveShoppingIncentivesEnabled),isLiveShoppingExclusivesEnabled:Boolean(A==null?void 0:A.isLiveShoppingExclusivesEnabled),isLiveShoppingCreatorsEnabled:Boolean(A==null?void 0:A.isLiveShoppingCreatorsEnabled),isLoyaltyDropsEnabled:Boolean(A==null?void 0:A.isLoyaltyDropsEnabled),isLoyaltyDropsWithLoyaltyProgramEnabled:Boolean(A==null?void 0:A.isLoyaltyDropsWithLoyaltyProgramEnabled),isMigratedShopifyDirectMerchant:Boolean(t.isMigratedShopifyDirectMerchant),isOverviewMessagingEnabled:Boolean((g=n.features)==null?void 0:g.useOverviewMessaging),isRatingsAndReviewsTabRenameEnabled:Boolean(A==null?void 0:A.isRatingsAndReviewsTabRenameEnabled),isInsightsTaggedContentCombinedPurchaseStyleEnabled:Boolean(A==null?void 0:A.isTaggedContentCombinedPurchaseStyleEnabled),loadIDVFlow:j,loadOBBOFlow:k,loadFedInformWizard:l,loadFedInformWizardIndividualFlow:m,pageID:z==null?void 0:z.id,canViewPermissions:o,referrerSurface:p,showOnLoadModal:a,showShopCompleteDialog:q,shopID:s,isInsightsHybridShop:Boolean(t==null?void 0:t.isHybridShop),isSellerOffersListV2Enabled:Boolean(A==null?void 0:A.isSellerOffersListV2Enabled),shopifyDomain:v==null?void 0:v.shop_domain,shopifyAppInstallationID:v==null?void 0:v.id,showTOSModal:r,isShopsQACommerceManagerFAQEnabled:Boolean(A==null?void 0:A.isShopsQACommerceManagerFAQEnabled)};y={isEnabled:((u=t.commerceFeatures)==null?void 0:u.isPrivacyAwareUIEnabled)||!1,tbpActions:t.tbpActions};w=c("getJSEnumSafe")(c("CommerceManagerCheckoutStyle"),x);B=c("castToEnum")(C,c("CommercePaymentProviders"));return i.jsx(c("CommerceManagerPermissionProvider.react"),{params:y,children:i.jsx(c("CommerceManagerComponentGatingProvider"),{checkoutStyle:w,paymentProvider:B,children:i.jsx(d("CommerceManagerLocalizationContext").CommerceManagerLocalizationContextProvider,{selectedLocationID:null,children:i.jsx(d("CommerceManagerSurveyTaskContext").CommerceManagerSurveyTaskContextProvider,{surveyData:null,children:i.jsx(c("CommerceManagerContext").Provider,{value:D,children:e})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardOrdersSection.react",["fbt","BizKitContextCardActivityListItem.react","BizKitContextCardMoreSection.react","BizKitContextCardOrdersSection_orders.graphql","GeoBaseText.react","GeoHeading.react","GeoSpinner.react","LeftRight.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.Suspense,l=e.useState,m=i!==void 0?i:i=b("BizKitContextCardOrdersSection_orders.graphql"),n=5;function a(a){var b=a.className,e=a.pageID,f=a.orders,g=a.onShowContactCardTosModal,i=a.shouldShowContactCardTos,o=a.surface;a=l(!1);var p=a[0],q=a[1];a=d("RelayHooks").usePaginationFragment(m,f);var r=a.hasNext,s=a.loadNext,t=a.data,u=function(){if(!r||p)return;q(!0);s(n,{onComplete:function(){return q(!1)}})};f=function(){if(!r)return null;return p?j.jsx("div",{className:"x1tciwvm x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",children:j.jsx(c("GeoSpinner.react"),{})}):j.jsx(c("BizKitContextCardMoreSection.react"),{className:"x1tciwvm x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",onClick:u})};a=function(){var a,b;a=t==null?void 0:(a=t.business_actions)==null?void 0:(a=a.actions)==null?void 0:a.edges;var d=t==null?void 0:(b=t.shared_attributes)==null?void 0:b.page_contact_id;if(a==null||a.length===0)return j.jsx("div",{className:"x17ddzgb x14vqqas",children:j.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",isDisabled:!0,display:"block",children:h._("u65e0u8ba2u5355u53efu663eu793au3002")})});b=a.map(function(a,b){var f;return((f=a.node)==null?void 0:f.wrapper)!=null&&j.jsx(c("BizKitContextCardActivityListItem.react"),{data:a.node.wrapper,pageID:e,surface:o,pageContactID:d,onShowContactCardTosModal:g,shouldShowContactCardTos:i,shouldRemovePageVCDependency:!0,userID:t==null?void 0:(f=t.fb_attributes)==null?void 0:f.user_id,toggleShouldShowOmnichannelEmailDetailView:function(){},setActiveEmailThread:function(){}},"order_"+b)});return j.jsx("div",{className:"x14vqqas",children:b})};return j.jsxs("div",{className:b,children:[j.jsx(c("LeftRight.react"),{children:j.jsx(c("GeoHeading.react"),{level:3,children:h._("u8ba2u5355")})}),j.jsxs(k,{fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:[a(),f()]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerShopifyHomePage.react",["fbt","CommerManagerShopAdsUpsellBanner.react","CommerceManagerAppContext","CommerceManagerContext","CommerceManagerEarlyWarningMessageBanner.react","CommerceManagerErrorMessageBanner.react","CommerceManagerFederalInformNotificationContainer.react","CommerceManagerGeoPage.react","CommerceManagerHomePageModals.react","CommerceManagerHooks","CommerceManagerImpressionLoggingContainer.react","CommerceManagerShopifyHomePageLeftColumn.react","CommerceManagerShopifyHomePageQuery.graphql","CommerceManagerShopifyHomePageRightColumn.react","CommerceManagerSuspense.react","CommerceManagerUsabilitySurveyContainer.react","CommerceManagerUsabilitySurveyUtils","GeoGlimmer.react","GeoPageHeader.react","GeoPageItem.react","GeoPageSection.react","Link.react","nullthrows","react","useCommerceManagerMessaging","withSellerFunnelLogging"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useContext,l=i!==void 0?i:i=b("CommerceManagerShopifyHomePageQuery.graphql");function m(){return j.jsx(c("GeoPageHeader.react"),{description:h._("u7535u5546u7ba1u7406u5de5u5177u53efu4ee5u5e2eu52a9u8865u5145 Shopify u7684u529fu80fdu3002u4f60u53efu4ee5u5728u8fd9u91ccu8bbfu95eeu9ad8u7ea7u7684u5e97u94fau8bbeu7f6eu548cu66f4u6df1u5165u7684u5ba2u6237u5206u6790u3002{=m2}",[h._implicitParam("=m2",j.jsx(c("Link.react"),{href:"https://www.facebook.com/business/help/search/?query=Shopify",target:"_blank",children:h._("u8be6u7ec6u4e86u89e3")}))]),heading:h._("u6982u89c8")})}m.displayName=m.name+" [from "+f.id+"]";function n(){var a,b,e,f=k(c("CommerceManagerContext")),g=c("nullthrows")(k(c("CommerceManagerAppContext")));g=g.catalogOrCmsID;a=(a=f.showShopCompleteDialog)!=null?a:!1;f=(f=f.showTOSModal)!=null?f:!1;g=d("CommerceManagerHooks").useCommerceManagerQuery(l,{catalogOrCmsID:g},{fetchPolicy:"network-only"});var h=c("useCommerceManagerMessaging")(g.configuration,["ERROR"]);h=h.length>0;b=(b=(b=g.configuration)==null?void 0:(b=b.commerceAccount)==null?void 0:(b=b.federal_inform_compliance_status)==null?void 0:b.show_warning_banner)!=null?b:!1;e=(e=(e=g.configuration)==null?void 0:(e=e.commerceAccount)==null?void 0:(e=e.commerce_features)==null?void 0:e.should_show_early_warning_banner)!=null?e:!1;b=b?j.jsx(c("CommerceManagerSuspense.react"),{oncall:"commerce_platform_onboarding_experiences",children:j.jsx(c("CommerceManagerFederalInformNotificationContainer.react"),{})}):null;var i=null;h?i=j.jsx(c("CommerceManagerSuspense.react"),{oncall:"cxp_guidance",children:j.jsx(c("CommerceManagerErrorMessageBanner.react"),{configuration:g.configuration})}):e&&(i=j.jsx(c("CommerceManagerSuspense.react"),{oncall:"cxp_guidance",children:j.jsx(c("CommerceManagerEarlyWarningMessageBanner.react"),{configuration:g.configuration})}));h=j.jsx(c("CommerceManagerSuspense.react"),{oncall:"cxp_guidance",children:j.jsx(c("CommerManagerShopAdsUpsellBanner.react"),{configuration:g.configuration})});e=j.jsxs(j.Fragment,{children:[b,h]});return j.jsxs(c("CommerceManagerImpressionLoggingContainer.react"),{flowName:"COMMERCE_MANAGER_SHOPIFY_HOME_TAB",oncall:"cxp_interfaces",children:[j.jsx(c("CommerceManagerHomePageModals.react"),{showShopCompleteDialog:a,showTOSModal:f}),j.jsx(c("CommerceManagerGeoPage.react"),{actionBanner:e,columns:12,guidanceBanner:i,header:j.jsx(m,{}),children:j.jsxs(c("GeoPageSection.react"),{children:[d("CommerceManagerUsabilitySurveyUtils").isUsabilitySurveyEnabled()?j.jsx(c("CommerceManagerUsabilitySurveyContainer.react"),{columns:12}):null,j.jsx(c("CommerceManagerShopifyHomePageLeftColumn.react"),{columns:8}),j.jsx(c("CommerceManagerShopifyHomePageRightColumn.react"),{columns:4})]})})]})}n.displayName=n.name+" [from "+f.id+"]";function o(){var a=j.jsx(c("CommerceManagerGeoPage.react"),{columns:12,grow:"fill",header:j.jsx(m,{}),children:j.jsx(c("GeoPageSection.react"),{grow:"fill",children:j.jsx(c("GeoPageItem.react"),{columns:12,grow:"fill",children:j.jsx(c("GeoGlimmer.react"),{})})})});return j.jsx(c("CommerceManagerSuspense.react"),{flowStep:o.name,loadingComponent:a,oncall:"cxp_interfaces",children:j.jsx(n,{})})}o.displayName=o.name+" [from "+f.id+"]";a=d("withSellerFunnelLogging").withSellerFunnelLogging(o,{flow:"shopify-home-page"});e=a;g["default"]=e}),98);
-----
CommerceManagerHomePage.react",["fbt","CatalogContext","CommerceManagerAppContext","CommerceManagerContext","CommerceManagerGeoPage.react","CommerceManagerHomePageBannersContainer.react","CommerceManagerHomePageErrorsOrEarlyWarnings.react","CommerceManagerHomePageInformAct.react","CommerceManagerHomePageLeftColumnOptimisticLoad.react","CommerceManagerHomePageModals.react","CommerceManagerHomePageRightColumnOptimisticLoad.react","CommerceManagerHomePageSectionSuspenseWrapper.react","CommerceManagerImpressionLoggingContainer.react","CommerceManagerSuspense.react","CommerceManagerUsabilitySurveyContainer.react","CommerceManagerUsabilitySurveyUtils","CurrentBusinessUser","GeoGlimmer.react","GeoPageHeader.react","GeoPageItem.react","GeoPageSection.react","nullthrows","react","useCatalogImpressionsLogging","withSellerFunnelLogging"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useContext,k=116;function l(){return i.jsx(c("GeoPageHeader.react"),{"data-testid":void 0,heading:h._("u6982u89c8")})}l.displayName=l.name+" [from "+f.id+"]";function m(a){var b,e;d("useCatalogImpressionsLogging").useCatalogImpressionLogging({category:"home_page",event:"flow_start"});a=j(c("CatalogContext"));var f=c("nullthrows")(j(c("CommerceManagerAppContext")));f=f.catalogOrCmsID;var g=j(c("CommerceManagerContext"));b=(b=g.showShopCompleteDialog)!=null?b:!1;g=(g=g.showTOSModal)!=null?g:!1;e=(e=c("CurrentBusinessUser").business_id)!=null?e:a==null?void 0:a.ownerBusinessID;return i.jsxs(c("CommerceManagerImpressionLoggingContainer.react"),{flowName:"COMMERCE_MANAGER_HOME_TAB",oncall:"cxp_interfaces",children:[i.jsx(c("CommerceManagerHomePageModals.react"),{showShopCompleteDialog:b,showTOSModal:g}),i.jsx(c("CommerceManagerGeoPage.react"),{actionBanner:i.jsx(c("CommerceManagerHomePageInformAct.react"),{catalogOrCmsID:f}),columns:12,"data-testid":void 0,guidanceBanner:i.jsx(d("CommerceManagerHomePageSectionSuspenseWrapper.react").CommerceManagerHomePageSectionSuspenseWrapper,{columns:12,height:0,children:i.jsx(c("CommerceManagerHomePageErrorsOrEarlyWarnings.react"),{catalogOrCmsID:f})}),header:i.jsx(l,{}),children:i.jsxs(c("GeoPageSection.react"),{children:[i.jsx(d("CommerceManagerHomePageSectionSuspenseWrapper.react").CommerceManagerHomePageSectionSuspenseWrapper,{columns:12,height:0,children:d("CommerceManagerUsabilitySurveyUtils").isUsabilitySurveyEnabled()?i.jsx(c("CommerceManagerUsabilitySurveyContainer.react"),{columns:12}):null}),i.jsx(d("CommerceManagerHomePageSectionSuspenseWrapper.react").CommerceManagerHomePageSectionSuspenseWrapper,{columns:12,height:k,children:i.jsx(c("CommerceManagerHomePageBannersContainer.react"),{catalogOrCmsID:f})}),i.jsx(c("CommerceManagerHomePageLeftColumnOptimisticLoad.react"),{catalogOrCmsID:f,columns:8}),i.jsx(c("CommerceManagerHomePageRightColumnOptimisticLoad.react"),{businessID:e,catalogOrCmsID:f,columns:4})]})})]})}m.displayName=m.name+" [from "+f.id+"]";function n(a){var b=i.jsx(c("CommerceManagerGeoPage.react"),{columns:12,"data-testid":void 0,grow:"fill",header:i.jsx(l,{}),children:i.jsx(c("GeoPageSection.react"),{grow:"fill",children:i.jsx(c("GeoPageItem.react"),{columns:12,grow:"fill",children:i.jsx(c("GeoGlimmer.react"),{})})})});return i.jsx(c("CommerceManagerSuspense.react"),{flowStep:n.name,loadingComponent:b,oncall:"cxp_interfaces",children:i.jsx(m,babelHelpers["extends"]({},a))})}n.displayName=n.name+" [from "+f.id+"]";a=d("withSellerFunnelLogging").withSellerFunnelLogging(n,{flow:"home-page"});b=a;g["default"]=b}),98);
-----
CommerceManagerHomePageModals.react",["CatalogContext","CommerceManagerAppContext","CommerceManagerHomePageModalsQuery.graphql","CommerceManagerHomeShopCompleteModal.react","CommerceManagerHooks","CommerceManagerImpressionLoggingContainer.react","CommerceManagerIntegrityEnforcementFBT","CommerceManagerMarketplaceUpsellModal","CommerceManagerShopsDisabledModalV2.react","CommerceManagerSuspense.react","CommerceMerchantIntegrityStatus","CurrentBusinessUser","GeoPageSpinner.react","JSResource","isEmpty","keyMirror","lazyLoadComponent","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");a=d("react");var j=a.Suspense,k=a.useContext,l=a.useState,m=c("lazyLoadComponent")(c("JSResource")("CommerceManagerTOSModal.react").__setRef("CommerceManagerHomePageModals.react")),n=c("keyMirror")(c("CommerceMerchantIntegrityStatus")),o=h!==void 0?h:h=b("CommerceManagerHomePageModalsQuery.graphql");function p(a){var b,e;a=babelHelpers["extends"]({},a);var f=c("nullthrows")(k(c("CommerceManagerAppContext")),"Failed to retrieve Catalog/CMS ID from CM App Context");f=f.catalogOrCmsID;var g=d("CommerceManagerHooks").useCommerceManagerQuery(o,{catalogOrCmsID:f},{fetchPolicy:"network-only"}),h=k(c("CatalogContext"));b=(b=c("CurrentBusinessUser").business_id)!=null?b:h==null?void 0:h.ownerBusinessID;h=(h=g.configuration)==null?void 0:h.commerceAccount;e=(e=g.configuration)==null?void 0:e.catalogAccount;var p=!c("isEmpty")(h==null?void 0:h.commerceMerchantStateInfo);e=(e=e==null?void 0:(e=e.catalogItems)==null?void 0:e.count)!=null?e:0;e=e>0;p=a.showShopCompleteDialog&&p;var q=l((h==null?void 0:h.merchantIntegrityStatus)===n.DISABLED),r=q[0],s=q[1];q=l(a.showShopCompleteDialog&&!p);p=q[0];var t=q[1];q=l(a.showTOSModal);a=q[0];var u=q[1];q=h==null?void 0:h.id;return q==null?null:a?i.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:q},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"accept_tos_modal_view",oncall:"commerce_platform_onboarding_experiences",children:i.jsx(c("CommerceManagerSuspense.react"),{oncall:"commerce_platform_seller_onboarding",children:i.jsx(m,{isShown:a,onHide:function(){return u(!1)}})})}):i.jsxs(i.Fragment,{children:[i.jsx(c("CommerceManagerMarketplaceUpsellModal"),{accountID:q,configuration:g.configuration}),p?i.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:q},flowName:"ONBOARDING_COMPLETE_MODAL",flowStep:"onboarding_complete_modal_view",oncall:"commerce_platform_onboarding_experiences",children:i.jsx(j,{fallback:i.jsx(c("GeoPageSpinner.react"),{variant:"overlay"}),children:i.jsx(c("CommerceManagerHomeShopCompleteModal.react"),{businessID:b,catalogHasInventory:e,catalogOrCmsID:f,onHide:function(){return t(!1)}})})}):null,r===!0?i.jsx(c("CommerceManagerShopsDisabledModalV2.react"),{body:d("CommerceManagerIntegrityEnforcementFBT").EnforcementOverlayCardBodyShop(h==null?void 0:h.displayName),businessID:b,onHide:function(){return s(!1)}}):null]})}p.displayName=p.name+" [from "+f.id+"]";function q(a){return i.jsx(c("CommerceManagerSuspense.react"),{flowStep:q.name,oncall:"cxp_interfaces",children:i.jsx(p,babelHelpers["extends"]({},a))})}q.displayName=q.name+" [from "+f.id+"]";g["default"]=q}),98);
-----
CommerceManagerTOSModal.react",["fbt","ix","CommerceManagerContext","CommerceManagerTOSModalMutation.graphql","CommerceManagerTOSModalQuery.graphql","CommerceManagerTOSStringUtils","GeoButton.react","GeoHeading.react","GeoIllustrationModal.react","GeoModalFooter.react","GeoSection.react","GeoText.react","GeoToast.react","Image.react","RelayHooks","nullthrows","react","useGeoToaster"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=d("react"),m=d("react").useContext,n={body:{marginTop:"xw7yly9",marginBottom:"x1yztbdb",$$css:!0}},o=j!==void 0?j:j=b("CommerceManagerTOSModalMutation.graphql"),p=k!==void 0?k:k=b("CommerceManagerTOSModalQuery.graphql");function a(a){var b=a.isShown,e=a.onHide;a=m(c("CommerceManagerContext"));a=a.cmsID;var f=c("nullthrows")(a);a=d("RelayHooks").useLazyLoadQuery(p,{cmsID:f},{fetchPolicy:"store-or-network"});var g=d("RelayHooks").useMutation(o),j=g[0];g=g[1];var k=c("useGeoToaster")(),q=k.add;k=function(){j({variables:{input:{commerce_account_id:f}},onCompleted:function(a){q(l.jsx(c("GeoToast.react"),{heading:d("CommerceManagerTOSStringUtils").getTermsAcceptedMessage(),status:"success"})),e()},onError:function(a){q(l.jsx(c("GeoToast.react"),{heading:(a=a.description)!=null?a:"",status:"error"}));e()}})};a=(a=a.cms)==null?void 0:(a=a.missing_tos_info)==null?void 0:a.deadline_in_seconds;var r=d("CommerceManagerTOSStringUtils").getTOSAcceptanceDescription(a);a=d("CommerceManagerTOSStringUtils").getTOSAcceptanceTitle(a);return l.jsx(c("GeoIllustrationModal.react"),{footer:l.jsx(c("GeoModalFooter.react"),{primaryButton:l.jsx(c("GeoButton.react"),{isDisabled:g,label:h._("u662fuff0cu6211u540cu610f"),variant:"primary",onClick:k})}),heading:a,image:l.jsx(c("Image.react"),{src:i("278532"),width:440}),isShown:b,onHide:e,children:l.jsxs(c("GeoSection.react"),{children:[l.jsx(c("GeoHeading.react"),{level:2,children:a}),l.jsx(c("GeoText.react"),{xstyle:n.body,children:r})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerTOSModalQuery.graphql",["CommerceManagerTOSModalQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"cmsID"}],c=[{kind:"Variable",name:"id",variableName:"cmsID"}],d={alias:null,args:null,concreteType:"CMSMissingTermsAndConditions",kind:"LinkedField",name:"missing_tos_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"deadline_in_seconds",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CommerceManagerTOSModalQuery",selections:[{alias:"cms",args:c,concreteType:"CommerceMerchantSettings",kind:"LinkedField",name:"fetch__CommerceMerchantSettings",plural:!1,selections:[d],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CommerceManagerTOSModalQuery",selections:[{alias:"cms",args:c,concreteType:"CommerceMerchantSettings",kind:"LinkedField",name:"fetch__CommerceMerchantSettings",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("CommerceManagerTOSModalQuery_facebookRelayOperation"),metadata:{},name:"CommerceManagerTOSModalQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
CommerceManagerTOSModalMutation.graphql",["CommerceManagerTOSModalMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"CommerceAccountAcceptTOSMutationResponse",kind:"LinkedField",name:"commerce_accept_seller_tos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"commerce_account_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CommerceManagerTOSModalMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CommerceManagerTOSModalMutation",selections:c},params:{id:b("CommerceManagerTOSModalMutation_facebookRelayOperation"),metadata:{},name:"CommerceManagerTOSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
CommerceManagerTOSModalQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5661577503911571"}),null);
-----
CommerceManagerTOSModalMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8140372942702165"}),null);
-----
AudienceManagerChrome.react",["cx","fbt","invariant","AdsAMAccountAcceptedTosAddAction","AdsAMAmStartInitAction","AdsAMAudienceDeleteStartAction","AdsAMAudienceGraphAPI","AdsAMAudienceStore","AdsAMAudienceUtils","AdsAMConnectConfig","AdsAMCreateAudienceServerActions","AdsAMSharingAgreementAcceptedAction","AdsAMViewActions","AdsAMViewClearErrorsAction","AdsAMViewCloseMoveAdAccoutToBusinessDialogAction","AdsAMViewCloseRegularEditDialogAction","AdsAMViewCloseShareAudienceDialogAction","AdsAMViewCloseUserTOSDialogAction","AdsAMViewShowBulkDeleteDialogAction","AdsAMViewShowBulkShareAudienceDialogAction","AdsAMViewShowCreateCaDialogAction","AdsAMViewShowDeleteAudienceDialogAction","AdsAMViewShowLookalikeDialogAction","AdsAMViewShowMoveAdAccoutToBusinessDialogAction","AdsAMViewShowOptOutDialogAction","AdsAMViewShowPixelDialogAction","AdsAMViewShowRegularEditDialogAction","AdsAMViewShowSavedAudienceCreateDialogAction","AdsAMViewShowSavedAudienceEditDialogAction","AdsAMViewShowSavedTargetSpecDialogAction","AdsAMViewShowShareAudienceDialogAction","AdsAMViewShowWcaDialogAction","AdsAMViewStore","AdsAMViewToggleSpecialAdAudienceDialogAction","AdsAMViewUpdateFilterSetAction","AdsAccountStore","AdsAccountUtils","AdsAttachAdAccountToBusinessManagerNotice.react","AdsAudienceDataSourceUtils","AdsAudienceDetailActions","AdsAudienceDetailStore","AdsAudienceManagerFilterBarConstants","AdsAudienceManagerFilterBarUtils","AdsAudienceManagerGlobalNavigation.react","AdsAudienceManagerUnloadAction","AdsAudienceOverlapActions","AdsAudienceRuleBuilderSpecUtil","AdsAudienceSharingStore","AdsCollapseSideNavAction","AdsCommonAdvertisablePagesVideosStore","AdsCreateAudienceActionSelector.react","AdsCreateSpecialAdAudienceBlockingDialog.react","AdsCustomAudienceType","AdsDataSourceTables","AdsErrorBoundary.react","AdsExpandSideNavAction","AdsFluxContainer","AdsGenericFilter","AdsGenericFilterField","AdsGenericFilterSet","AdsGenericFilterSetUtil","AdsGeodesicAdoption","AdsInterfacesLogger","AdsMgmtPerfScenarioController","AdsMoveAdAccountToBusinessViewStage","AdsNewIDs","AdsPerfScenarios","AdsPixelDialogStore","AdsPixelDialogTypes","AdsPixelTableSettingProvider","AdsPixelViewActions","AdsSavedAudienceActions","AdsSavedAudienceLoggingEvents","AdsSideNavUIStateDataProvider","AdsSignalsBlockLongRetentionOfflineCustomAudienceConfig","AdsStaticGuidanceCard.react","AdsTargetingAudienceEditorGKSelectors","AdsTargetingAudienceManagerVLALMegaphoneNUXContainer.react","AdsTargetingAudienceShowCreateLalAudienceDialogDataAction","AdsTargetingBootloadDialog.react","AdsTargetingDeprecatedOptionsWarningBanner.react","AdsTargetingEUPrivacyDirectiveImpactBanner.react","AdsTargetingFallbackErrorNotice.react","AdsTargetingIosSignalLossSelectors","AdsTargetingNonprofitCAAnnouncementBanner.react","AdsTargetingOfflineRetentionChangeNotice.react","AdsTargetingOffsiteSignalsConsolidationUtils","AdsTargetingSpecialAdAudienceDeprecationBanner","AdsUnifiedAudienceManagerFilterBar.react","AssetLibrarySearchStore.brands","AudienceDetailsPaneGeodesicContainer.react","AudienceManagerActionSelector.react","AudienceManagerBulkDeleteDialog.react","AudienceManagerBulkDeleteSTSDialog.react","AudienceManagerColumnSelector.react","AudienceManagerCreateAudienceFlatDialogContainer.react","AudienceManagerDeleteAudiencesButton.react","AudienceManagerDeleteDialog.react","AudienceManagerEditAudiencesButton.react","AudienceManagerErrorTypes","AudienceManagerErrorView.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerLoggingUtils","AudienceManagerLookalikeDialogGKSelectors","AudienceManagerOptOutDialog.react","AudienceManagerPerfScenarioLoggingUtils","AudienceManagerPlacement","AudienceManagerSearchBar.react","AudienceManagerSelectableTable.react","AudienceManagerShareAudiencesButton.react","AudienceManagerStages","AudienceManagerTransactionDialog.react","AudienceManagerUIConstants","AudienceSharingHideAgreementDataAction","BUIButton.react","BUICard.react","BUIDetailPaneActions.brands","BUIGuidanceCard.react","BUIGuidanceCardContent.react","BUIGuidanceCardContentText.react","BUIGuidanceCardHeader.react","BUISection.react","BUIText.react","BootloadedComponent.react","CometPlaceholder.react","CustomAudienceDataSourceSubType","CustomAudienceTosUtils","CustomAudienceUtils","DialogActions.brands","FlexLayout.react","GeoHeading.react","GeoSpinner.react","GeoToast.react","GeoToolbar.react","GeoToolbarFill.react","JSResource","LookalikeLocationsNeededBanner.react","LookalikeLocationsNotNeededAudienceManagerBanner.react","PartnerIntegrationDialogLoggingScopesAction","SUIBusinessThemeContainer.react","ScrollableArea.react","ShareAudienceConstants","URI","UnifiedAudiencesManagerAudienceDetailPaneAction","UnifiedAudiencesManagerAudienceDetailPaneConstants","adsAccountGK","adsSignalSourceContainersSelector","emptyFunction","gkx","ifRequired","immutable","joinClasses","lazyLoadComponent","performanceNow","react","setupScenarioStart"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=d("react");a=d("react").PureComponent;var l=c("AdsPixelTableSettingProvider").toFluxStore(),m=c("lazyLoadComponent")(c("JSResource")("AdsPELocalScopeSelectorContainer.react").__setRef("AudienceManagerChrome.react")),n="basecode",o=47,p=35,q=42,r=720,s=112,t=284,u=14,v=300,w=56,x=c("AdsSideNavUIStateDataProvider").toFluxStore();b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h0?a=k.jsx("div",{className:"_htg",children:k.jsx(c("AudienceManagerErrorView.react"),{message:b[0].message,shown:!0})}):a=k.jsxs("div",{className:"_2aah",children:[k.jsx(c("GeoSpinner.react"),{}),k.jsxs("div",{children:[k.jsx(c("BUIText.react"),{display:"block",margin:"_3-8n",size:"meta1",textAlign:"center",weight:"bold",children:i._("u6b63u5728u52a0u8f7du53d7u4f17")}),k.jsx(c("BUIText.react"),{display:"block",size:"meta1",textAlign:"center",children:i._("u8bf7u7a0du7b49u2026")})]})]});return k.jsxs("div",{children:[this.$5(),a]})};e.$7=function(){var a=this,b=this.$8();b=k.jsx(c("BUICard.react"),{margin:"_3-8j",children:k.jsx(c("BUISection.react"),{children:k.jsx(c("SUIBusinessThemeContainer.react"),{children:b?this.$9():this.$10()})})});return k.jsxs("div",{"data-testid":void 0,children:[k.jsxs("div",{ref:this.$2,onClick:function(){return window.setTimeout(function(){return a.forceUpdate()})},children:[c("AdsAMAudienceStore").hasError(d("AudienceManagerErrorTypes").Errors.STS_GET)?this.$11():null,this.$12(),this.$13(),k.jsx(c("AdsTargetingSpecialAdAudienceDeprecationBanner"),{hasAffectedAudiences:this.state.hasSpecialAdAudiences,passesPhase1GK:this.state.isSpecialAdAudienceDeprecationPhase1Enabled,passesPhase2GK:this.state.isSpecialAdAudienceDeprecationPhase2Enabled,onReviewAffectedAudiences:this.$14}),k.jsx(c("AdsTargetingDeprecatedOptionsWarningBanner.react"),{hasAffectedAudiences:this.state.hasConnectionsAndFBAMACAOptions,passesGK:this.state.passesFbaMacaPhase1UIGK||this.state.passesConnectionsDeprecationPhase1UIGK,onReviewAffectedAudiences:this.$14}),this.$15(),this.$16(),k.jsx(c("AdsTargetingEUPrivacyDirectiveImpactBanner.react"),{adAccountID:this.props.accountID,passesEUPrivacyDirectiveAudienceManagerGK:this.state.passesEUPrivacyDirectiveAudienceManagerGK,onReviewEUPrivacyDirectiveImpactedAudiences:this.$14}),k.jsx(c("AdsTargetingNonprofitCAAnnouncementBanner.react"),{adAccountPages:this.state.pages,passNonprofitCACreationGK:this.state.passNonprofitCACreationGK}),k.jsx(c("AdsTargetingOfflineRetentionChangeNotice.react"),{offlineCARetentionCutoffTime:c("AdsSignalsBlockLongRetentionOfflineCustomAudienceConfig").creation.timestamp,shouldShowOfflineRetentionNotice:this.state.shouldShowOfflineRetentionNotice}),k.jsx(c("AdsTargetingAudienceManagerVLALMegaphoneNUXContainer.react"),{adAccountID:this.props.accountID,onGetStarted:d("AdsAMViewActions").showValueBasedCADialogFromAMUpsell})]}),k.jsxs(c("FlexLayout.react"),{children:[b,this.$17()]}),this.$18(),this.$19(),this.$20(),this.$21(),this.$22(),this.$23(),this.$24(),this.$25(),this.$26(),this.$27(),this.$28(),this.$29()]})};e.$17=function(){return this.state.clickedAudienceID!=null?k.jsx(c("AudienceDetailsPaneGeodesicContainer.react"),{accountID:this.props.accountID,audienceID:this.state.clickedAudienceID,businessID:this.props.businessID,offsiteConsolidatedContainers:this.state.offsiteConsolidatedContainers,tableHeight:this.$30()}):null};e.$28=function(){return this.state.showSharingAgreementID!==null?k.jsx(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("AudienceSharingAgreementRecipientModal.react").__setRef("AudienceManagerChrome.react"),bootloadPlaceholder:k.jsx(c("GeoSpinner.react"),{}),initiatorBusinessName:this.state.showSharingAgreementBusinessName,isShown:!0,responseSuccess:this.state.agreementResponseSuccess,onAccept:this.$31,onHide:this.$32}):null};e.$15=function(){var a=null;this.state.shouldUseLookalikeContainer&&!this.state.shouldDisableLocationsNotNeededBanners&&(a=k.jsx(c("LookalikeLocationsNotNeededAudienceManagerBanner.react"),{hasSharedLookalikes:this.state.hasSharedLookalikes,onReviewSharedLookalikesAction:this.$14}));return a};e.$16=function(){var a=null;this.state.shouldShowLookalikeLocationsNeededBanner&&(a=k.jsx("div",{className:"_3-8t",children:k.jsx(c("LookalikeLocationsNeededBanner.react"),{shouldShowLookalikeLocationsNeededBanner:this.state.shouldShowLookalikeLocationsNeededBanner})}));return a};e.$13=function(){var a=c("AdsAMAudienceStore").getAccount();if(!c("AdsAccountUtils").hasCapability(a,"CAN_SEE_ATTACH_AD_ACCOUNT_TO_BUSINESS_NOTICE")||a.business)return null;var b="";a.userpermissions&&a.userpermissions.data&&(b=a.userpermissions.data[0].role);return k.jsx(c("AdsAttachAdAccountToBusinessManagerNotice.react"),{adAccountID:a.account_id,isAdAccountAdmin:b==="ADMIN",isAdsCreationBlockedWithoutBM:this.$33(),onClickSwitchToBusinessButton:this.$34})};e.$11=function(){return k.jsxs(c("BUIGuidanceCard.react"),{category:"error",children:[k.jsx(c("BUIGuidanceCardHeader.react"),{children:null}),k.jsx(c("BUIGuidanceCardContent.react"),{children:k.jsx(c("BUIGuidanceCardContentText.react"),{children:i._("u65e0u6cd5u663eu793au5df2u4fddu5b58u7684u76eeu6807u7ec4uff0cu6211u4eecu6b63u5168u529bu6392u9519u3002")})})]})};e.$39=function(){return d("CustomAudienceUtils").isDisabledAdAccount(c("AdsAMAudienceStore").getAccount())};e.$12=function(){return k.jsxs(c("FlexLayout.react"),{className_DO_NOT_USE:"_3-8p _3-9d _3-91",justify:"all",style:{height:p},children:[k.jsx(c("GeoHeading.react"),{level:1,children:i._("u53d7u4f17")}),k.jsx(k.Suspense,{fallback:k.jsx(c("GeoSpinner.react"),{}),children:k.jsx(m,{})})]})};e.$8=function(){var a=c("AdsAMAudienceStore").getAllAudiences().length||this.$6();return!!a};e.$6=function(){var a=c("AdsAMViewStore").hasFilterContent()||c("AssetLibrarySearchStore.brands").getConstructedFilterSet();return!!a};e.$10=function(){return k.jsx("div",{className:"_2ayw",children:k.jsx(c("AdsTargetingBootloadDialog.react"),{accountId:this.props.accountID,accountInfo:c("AdsAMAudienceStore").getAccount(),bootloadLoader:c("JSResource")("AudienceManagerBlankState.react").__setRef("AudienceManagerChrome.react"),businessID:this.props.businessID,canWrite:this.props.canWrite,dao:this.props.primedDao,isSpecialAdAudienceDeprecationPhase1Enabled:this.state.isSpecialAdAudienceDeprecationPhase1Enabled,tosAccepted:this.$40(),tosRequirementsForAccount:this.$41(),onAudienceAdded:this.$42,onSavedAudienceCreated:this.$43})})};e.$9=function(){return k.jsxs("div",{children:[this.$44(),this.$45(),this.$46(),this.$47(),this.$48(),this.$49(),this.$50(),this.$51(),this.$52(),this.$53(),this.$54(),this.$55(),this.$56()]})};e.$57=function(){return k.jsx(c("AdsCreateAudienceActionSelector.react"),{disabled:!this.props.canWrite&&!c("AdsAMConnectConfig").create_draft_audiences||this.$39(),isSpecialAdAudienceDeprecationPhase1Enabled:this.state.isSpecialAdAudienceDeprecationPhase1Enabled,use:"primary",useSavedAudience:!0,onAction:this.$58},"inline_create_button")};e.$18=function(){var a=c("AdsAMAudienceStore").getErrorsByType(d("AudienceManagerErrorTypes").ErrorTypes.NON_INIT_ERRORS);return a.length>0?k.jsx(c("AudienceManagerTransactionDialog.react"),{error:a[0],stage:d("AudienceManagerStages").ERROR,onCancelError:this.$59}):null};e.$44=function(){var a=this.props.placement===c("AudienceManagerPlacement").BIZ_ASSET_LIBRARY,b=this.$60(),d=[],e=c("adsAccountGK")._(c("AdsAMAudienceStore").getAccount(),"2jJcF2Tn9");e&&d.push(this.$61());d.push(this.$62());d.push(this.$63());d.push(this.$64());d.push(this.$65());e=[b];(this.props.placement===c("AudienceManagerPlacement").NEW_ADS_MANAGER||a)&&this.$8()&&d.unshift(this.$57());return k.jsxs(c("GeoToolbar.react"),{children:[k.jsx(c("GeoToolbar.react"),{children:d}),k.jsx(c("GeoToolbarFill.react"),{}),k.jsx(c("GeoToolbar.react"),{children:e})]})};e.$61=function(){var a=i._("u9000u51fau7528u6237");return k.jsx(c("BUIButton.react"),{label:a,onClick:this.$66},"opt_out_user_button")};e.$67=function(){var a=this;d("DialogActions.brands").openDialog({isAsync:!0,dialogWidth:600,dialogResource:c("JSResource")("AddTagsDialogController.brands").__setRef("AudienceManagerChrome.react"),dialogProps:{selectedObjectIDs:this.state.selectedAudienceIDs,onCancelAddTags:d("DialogActions.brands").closeDialog}});c("ifRequired")("AssetLibraryLogger.brands",function(b){b.logUserAction(b.EVENT_NAME.ADD_TAG_TO_OBJECT_BUTTON_CLICK,{selectedAssets:a.state.selectedAudienceIDs})})};e.$68=function(){this.setState({showAudienceOverlapDialog:!0}),d("AdsAudienceOverlapActions").loadAudienceOverlap(),d("AudienceManagerFunnelLogger").appendAction(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.VIEW_OVERLAP_CLICK),c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_VIEW_OVERLAP},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)};e.$55=function(){return this.state.showAudienceOverlapDialog?k.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,bootloadLoader:c("JSResource")("AudienceManagerAudienceOverlapDialogContainer.react").__setRef("AudienceManagerChrome.react"),initialAudienceIDsToCompare:this.state.selectedAudienceIDs,onCancel:this.$69}):null};e.$70=function(){return!!c("AdsAMViewStore").getFilterSet()};e.$73=function(){var a=c("AdsAMViewStore").getFilterSet(),b=c("AssetLibrarySearchStore.brands").getConstructedFilterSet();a=a&&b?d("AdsGenericFilterSetUtil").mergeByField(a,b):a||b;return{name:c("AdsAMViewStore").getNameFilter(),filterSet:a}};e.$26=function(){return this.state.audienceClicked&&d("AdsAMAudienceUtils").isSavedAudience(this.state.audienceClicked)&&this.state.dialogStates.showSavedAudienceEditDialog?k.jsx(d("AdsGeodesicAdoption").AdsGeodesicAdoptionEnabledProvider,{children:k.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audienceID:this.state.audienceClicked.id,bootloadLoader:c("JSResource")("AdsEditSavedAudienceDialogContainer.react").__setRef("AudienceManagerChrome.react"),isShown:this.state.dialogStates.showSavedAudienceEditDialog,shouldEnableAppSignalLossAudienceManagerChanges:this.state.shouldEnableAppSignalLossAudienceManagerChanges,shouldEnableIos14AppInstallSignalLossChanges:!1,shouldEnableNonAppInstallSignalLossChanges:!1,onClose:this.$75,onSavedAudienceChange:function(){},onSavedAudienceUpdated:this.$76})}):null};e.$27=function(){return this.state.dialogStates.showSavedAudienceCreateDialog?k.jsx(d("AdsGeodesicAdoption").AdsGeodesicAdoptionEnabledProvider,{children:k.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,accountInfo:c("AdsAMAudienceStore").getAccount(),bootloadLoader:c("JSResource")("AdsCreateSavedAudienceTargetingDialogContainerWrapper.react").__setRef("AudienceManagerChrome.react"),isShown:!0,shouldEnableAppSignalLossAudienceManagerChanges:this.state.shouldEnableAppSignalLossAudienceManagerChanges,shouldEnableIos14AppInstallSignalLossChanges:!1,shouldEnableNonAppInstallSignalLossChanges:!1,tempID:this.state.tempID,onCancel:this.$77,onCreate:this.$43})}):null};e.$19=function(){var a=this.props.primedDao;if((this.state.dialogStates.showCreateCustomAudienceDialog||this.state.dialogStates.showDFCACreationDialog)&&a!=null){var b=this.props.placement!==c("AudienceManagerPlacement").POWER_EDITOR,e=void 0;this.state.customAudienceCreationAutoLaunch&&(e=this.state.customAudienceCreationAutoLaunch);return k.jsx(c("CometPlaceholder.react"),{fallback:k.jsx(c("GeoSpinner.react"),{size:"small"}),children:k.jsx(c("AudienceManagerCreateAudienceFlatDialogContainer.react"),{accountID:this.props.accountID,accountInfo:c("AdsAMAudienceStore").getAccount(),allowNextStep:b,autoLaunch:e,businessID:this.props.businessID,dao:a,openedFromAudienceManager:!0,showDFCACreationDialog:this.state.dialogStates.showDFCACreationDialog,showEngagementAudienceNUX:this.state.showEngagementAudienceNUX,tosAccepted:this.$40(),tosRequirementsForAccount:this.$41(),onAudienceAdded:this.$42,onCancel:d("AdsAMViewActions").closeCreateCustomAudienceDialog})})}return null};e.$45=function(){if(this.state.dialogStates.showBulkDeleteDialog){this.state.selectedAudienceIDs&&this.state.selectedAudienceIDs.length>0||j(0,3598);var a=this.state.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)}),b=d("AdsAMAudienceUtils").isSavedTargetSpec(a[0]);if(b){b=this.state.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)});return k.jsx(c("AudienceManagerBulkDeleteSTSDialog.react"),{canPauseCampaign:this.state.canPauseCampaign,selectedAudiences:b,onBulkDelete:this.$78,onClose:d("AdsAMViewActions").closeBulkDeleteDialog})}else return k.jsx(c("AudienceManagerBulkDeleteDialog.react"),{accountID:this.props.accountID,canPauseCampaign:this.state.canPauseCampaign,controller:this.props.controller,selectedAudiences:a,onBulkDelete:this.$79,onBulkUnshare:this.$80,onClose:d("AdsAMViewActions").closeBulkDeleteDialog})}return null};e.$53=function(){var a=this;return this.state.dialogStates.showOptOutDialog&&this.state.audienceClicked!=null?k.jsx(c("AudienceManagerOptOutDialog.react"),{audience:this.state.audienceClicked,onClose:d("AdsAMViewActions").closeOptOutDialog,onConfirmClick:function(b,c){a.props.controller.changeAudienceWithCallback(b,c,d("AdsAMViewActions").closeOptOutDialog)}}):null};e.$62=function(){var a=this.state.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)});return k.jsx(c("AudienceManagerEditAudiencesButton.react"),{accountID:this.props.accountID,businessID:this.props.businessID,isAudienceCreationBlockedWithoutBM:this.$81(),selectedAudiences:a,signalLossDFCAReplaceGK:this.state.signalLossDFCAReplaceGK,onBulkAction:this.$82,onCAAction:this.$83,onMultipleOverlapAction:this.$84,onSTGAction:this.$85},"edit_audience")};e.$64=function(){var a=this.state.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)});return k.jsx(c("AudienceManagerDeleteAudiencesButton.react"),{accountID:this.props.accountID,selectedAudiences:a,onBulkAction:this.$82,onCAAction:this.$83,onMultipleOverlapAction:this.$84,onSTGAction:this.$85},"delete_audience")};e.$63=function(){var a=this.state.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)});return k.jsx(c("AudienceManagerShareAudiencesButton.react"),{accountID:this.props.accountID,businessID:this.props.businessID,selectedAudiences:a,onBulkAction:this.$82,onCAAction:this.$83,onMultipleOverlapAction:this.$84,onSTGAction:this.$85},"share_audience")};e.$65=function(){var a=this.state.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)}),b=c("AdsAMAudienceStore").getAccount();b=c("adsAccountGK")._(b,"2jJcF2Tn9");return k.jsx("div",{children:k.jsx(c("AudienceManagerActionSelector.react"),{accountID:this.props.accountID,businessID:this.props.businessID,canEditLabels:this.props.placement===c("AudienceManagerPlacement").BIZ_ASSET_LIBRARY,canSeePlatformWCAUI:!0,canUseOptOut:b,controller:this.props.controller,createAdlabel:this.$86(),hasHitAudienceUpdateLimit:!1,isAudienceCreationBlockedWithoutBM:this.$81(),nextAudienceUpdateAvailableTime:"",selectedAudiences:a,onAdCreate:this.props.onAdCreate,onBulkAction:this.$82,onCAAction:this.$83,onMultipleOverlapAction:this.$84,onSTGAction:this.$85})},"action_selector")};e.$86=function(){return this.props.placement===c("AudienceManagerPlacement").POWER_EDITOR?i._("u521bu5efau5e7fu544au7ec4"):i._("u521bu5efau5e7fu544a")};e.$60=function(){return k.jsx(c("AudienceManagerColumnSelector.react"),{columnsShown:c("AdsAMViewStore").getColumnsShown(),onSelectorChange:this.$87},"column_selector")};e.$46=function(){if(this.state.dialogType===c("AdsPixelDialogTypes").EMAIL_INSTRUCTIONS){var a=this.$91();if(a)return k.jsx(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("AdsPixelDialogContainer.react").__setRef("AudienceManagerChrome.react"),bootloadPlaceholder:k.jsx("div",{}),pixelID:a})}return null};e.$47=function(){return this.state.dialogType===c("AdsPixelDialogTypes").EMAIL_CODE_SUCCESS?k.jsx(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("AdsPixelDialogContainer.react").__setRef("AudienceManagerChrome.react"),bootloadPlaceholder:k.jsx("div",{})}):null};e.$48=function(){if(this.state.dialogType===c("AdsPixelDialogTypes").INTEGRATIONS_CMS){var a=this.$91();if(a)return k.jsx(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("AdsPixelDialogContainer.react").__setRef("AudienceManagerChrome.react"),bootloadPlaceholder:k.jsx("div",{}),pixelID:a})}return null};e.$51=function(){var a=this.state.audienceClicked!=null?this.state.audienceClicked.id:null;if(this.state.dialogStates.showShareDialog&&(this.state.selectedAudienceIDs.length>0||a!=null)){a=this.state.selectedAudienceIDs.length>0?this.state.selectedAudienceIDs:[a];return k.jsx(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ShareAudienceDialogContainer.react").__setRef("AudienceManagerChrome.react"),bootloadPlaceholder:k.jsx("div",{}),ownerAccountID:this.props.accountID,selectedAudienceIDs:a,onUpdateAudienceCapabilities:this.props.controller.bulkUpdateAudienceCapabilities})}return null};e.$29=function(){return this.state.shareSuccess?k.jsx("div",{className:"x10l6tqk xjnlgov x11dcrmo",children:k.jsx(c("GeoToast.react"),{description:d("ShareAudienceConstants").ShareAudienceConstants.SHARE_AUDIENCE_CONFIRMATION_BODY,heading:d("ShareAudienceConstants").ShareAudienceConstants.SHARE_AUDIENCE_CONFIRMATION_HEADER,onHide:function(){c("AdsAMViewCloseShareAudienceDialogAction").dispatch({},{line:"1918",module:"AudienceManagerChrome.react.js"})}})}):null};e.$24=function(){if(!this.state.dialogStates.showMoveAdAccountToBusinessDialog)return null;var a=c("AdsAMAudienceStore").getAccount();return k.jsx(c("AdsTargetingBootloadDialog.react"),{adAccountName:a.name,bootloadLoader:c("JSResource")("BusinessManagerUpsellContainer.brands").__setRef("AudienceManagerChrome.react"),initialViewStage:c("AdsMoveAdAccountToBusinessViewStage").BUSINESS_SELECTOR,ownerAccountID:a.account_id,shouldHideBackButton:!0,onCancel:this.$94})};e.$49=function(){var a=this.state,b=a.audienceClicked;a=a.dialogStates;if(a.showRegularEditDialog&&b){if(d("AdsAMAudienceUtils").isAudienceCreatedFromFile(b))return k.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audience:this.state.audienceClicked,bootloadLoader:c("JSResource")("AudienceManagerEditMultiKeyAudienceOptionsDialogContainer.react").__setRef("AudienceManagerChrome.react"),dao:this.props.primedDao,shouldRedirectToAddPeopleStep:this.state.shouldRedirectToAddPeopleStep,tosAccepted:this.$40(),tosRequirementsForAccount:this.$41(),onAudienceChanged:this.$92,onAudienceUpdated:this.$95,onClose:this.$93,onNextOptionCreateAd:this.$37,onNextOptionCreateLAL:this.$38});if(b.rule_v2){a=c("AdsAudienceDataSourceUtils").getPlatformAudienceSubType(JSON.parse(b.rule_v2));return k.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audience:b,bootloadLoader:c("JSResource")("AdsCreatePlatformAudienceDialogContainer.react").__setRef("AudienceManagerChrome.react"),dao:this.props.primedDao,isWcaTosAccepted:c("CustomAudienceTosUtils").isWcaTosAccepted(this.$40()),signalSourceType:a,onAudienceAdded:this.$95,onBack:d("AdsAMViewActions").closeRegularEditDialog,onCancel:d("AdsAMViewActions").closeRegularEditDialog,onCreateAudience:this.$96})}return k.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audience:this.state.audienceClicked,bootloadLoader:c("JSResource")("AudienceManagerEditAudienceDialog.react").__setRef("AudienceManagerChrome.react"),tosAccepted:this.$40(),tosRequirementsForAccount:this.$41(),onAudienceChanged:this.$92,onClose:d("AdsAMViewActions").closeRegularEditDialog})}return null};e.$25=function(){return this.state.dialogStates.showWCADialog?k.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audience:this.state.audienceClicked,bootloadLoader:c("JSResource")("WebsiteCustomAudience.react").__setRef("AudienceManagerChrome.react"),dao:this.props.primedDao,isTosAccepted:c("CustomAudienceTosUtils").isWcaTosAccepted(this.$40()),onAudienceAdded:this.$42,onAudienceUpdated:this.$95}):null};e.$50=function(){var a=this.state.audienceClicked;return this.state.dialogStates.showDeleteDialog&&a!=null?d("AdsAMAudienceUtils").isSavedTargetSpec(a)?k.jsx(c("AudienceManagerBulkDeleteSTSDialog.react"),{canPauseCampaign:this.state.canPauseCampaign,selectedAudiences:[a],onBulkDelete:this.$97,onClose:d("AdsAMViewActions").closeDeleteAudienceDialog}):k.jsx(c("AudienceManagerDeleteDialog.react"),{accountID:this.props.accountID,audience:a,canPauseCampaign:this.state.canPauseCampaign,dao:this.props.primedDao,onAudienceDeleted:this.$98,onAudienceUnshared:this.$99}):null};e.$102=function(){c("AdsMgmtPerfScenarioController").endScenariosWithTrigger("am_edit_targeting_delete_audience_succeed",d("AudienceManagerLoggingEvents").AM_DELETE_AUDIENCE_SUCCEED,null)};e.$20=function(){return this.state.dialogStates.showUserTosDialog||this.state.dialogStates.showValueBasedUserTosDialog?k.jsx(c("AdsTargetingBootloadDialog.react"),{adAccountID:this.props.accountID,bootloadLoader:c("JSResource")("DataFileCustomAudienceUserLevelTOSModal.react").__setRef("AudienceManagerChrome.react"),businessName:c("CustomAudienceTosUtils").getBusinessNameToAcceptTOSFor(c("AdsAMAudienceStore").getAccount()),isShown:!0,isValueBased:this.state.dialogStates.showValueBasedUserTosDialog,onAccept:this.$100,onHide:this.$101}):null};e.$21=function(){if(this.state.dialogStates.showLookalikeDialog){var a=c("AdsAMAudienceStore").getLookalikeSeedAudience();return k.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audience:a,bootloadLoader:c("JSResource")("AudienceManagerTieredLookalikeDialog.react").__setRef("AudienceManagerChrome.react"),canUseLookalikeContainerInQE:this.state.shouldUseLookalikeContainer,dao:this.props.primedDao,onAudienceAdded:this.$42,onClose:d("AdsAMViewActions").closeLookalikeDialog})}return null};e.$22=function(){return this.state.dialogStates.showSpecialAdAudienceDialog?k.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audience:this.state.audienceClicked,bootloadLoader:c("JSResource")("AudienceManagerTieredLookalikeDialog.react").__setRef("AudienceManagerChrome.react"),canUseLookalikeContainerInQE:this.state.shouldUseLookalikeContainer,dao:this.props.primedDao,selectedRegulatedCategory:!0,onAudienceAdded:this.$42,onClose:d("AdsAMViewActions").closeSpecialAdAudienceDialog}):null};e.$23=function(){return this.state.dialogStates.showSpecialAdAudienceBlockingDialog?k.jsx(c("AdsCreateSpecialAdAudienceBlockingDialog.react"),{isVisible:!0,onCancel:d("AdsAMViewActions").closeSpecialAdAudienceDialog,onConfirm:d("AdsAMViewActions").closeSpecialAdAudienceBlockingDialog}):null};e.$54=function(){if(this.state.showOptOutUserDialog){var a=c("AdsAMAudienceStore").getAccount();return k.jsx(c("AdsTargetingBootloadDialog.react"),{adAccount:a,bootloadLoader:c("JSResource")("AudienceManagerOptOutUserDialog.react").__setRef("AudienceManagerChrome.react"),tosAccepted:this.$40(),tosRequirementsForAccount:this.$41(),onClose:this.$103})}return null};e.$104=function(a){d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.FILTER_PRESET_CHANGED,a||""),this.$14(a),c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_FILTER_LEFT_PRESET_CHANGED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP),c("BUIDetailPaneActions.brands").close()};e.$30=function(){var a=this.$2.current;a=a==null?0:parseInt(getComputedStyle(a).height,10);return this.props.height-q-d("AudienceManagerUIConstants").TABLE_TOP_PADDING-s-a};e.$106=function(a,b){a=d("AdsAudienceManagerFilterBarUtils").getAddedFilterSets(a,b);if(a.length===0)return;a.every(function(a){return c("AdsInterfacesLogger").log({eventName:d("AdsAudienceManagerFilterBarConstants").AdsAMFilterBarLogEvents[a.key]},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)})};e.$107=function(){var a=this.state,b=a.leftNavUIState;a=a.clickedAudienceID;var c=this.props.width-u*4-t;b=b.isCollapsed?w:v;a=a?d("UnifiedAudiencesManagerAudienceDetailPaneConstants").AUDIENCE_DETAILS_PANE_WIDTH:0;return c-b-a};e.$56=function(){var a=this.$30();this.$70()&&(a-=o);var b={account_id:this.props.accountID};return k.jsx("div",{className:"_5dg_","data-testid":void 0,children:k.jsxs(c("FlexLayout.react"),{direction:"horizontal",children:[k.jsx("div",{className:"_83bi",style:{height:a},children:k.jsxs(c("ScrollableArea.react"),{maxHeight:this.props.height,children:[k.jsx(c("AudienceManagerSearchBar.react"),{ref:this.$1,onKeywordsChanged:this.$71,onKeywordsComplete:this.$72},"search_bar"),this.$108()]})}),k.jsx("div",{children:k.jsx(c("AudienceManagerSelectableTable.react"),{account:b,businessID:this.props.businessID,canWrite:this.props.canWrite,dao:this.props.primedDao,height:a,isAdAccountInUnusedAudiencesUILaunchGK:this.state.showUnusedAudiencesUILaunchGK,isDisabledAccount:this.$39(),isFromDFCAReplaceUpsell:this.state.isFromDFCAReplaceUpsell,isInAudienceRuleSummaryGK:this.state.isInAudienceRuleSummaryGK,offsiteConsolidatedContainers:this.state.offsiteConsolidatedContainers,placement:this.props.placement,selectedAudienceIDs:this.state.selectedAudienceIDs,useSavedAudience:!0,width:this.$107(),onCheckboxSelect:this.$109,onCreateAudienceClicked:this.$58,onLastRowReached:this.$110})})]})})};e.$108=function(){return k.jsx(c("AdsUnifiedAudienceManagerFilterBar.react"),{filterSet:this.state.filterSet,highlightAllAudiencesByDefault:!this.state.nameFilter,isEPDFilterOn:this.$111(),isFromDFCAReplaceUpsell:this.state.isFromDFCAReplaceUpsell,showUnusedAudiencesGK:this.state.showUnusedAudiencesGK,showUnusedAudiencesUILaunchGK:this.state.showUnusedAudiencesUILaunchGK,onClear:this.$74,onSelect:this.$105})};e.$52=function(){return this.state.dialogStates.showUnshareDialog&&this.state.audienceClicked?k.jsx(c("AdsTargetingBootloadDialog.react"),{audience:this.state.audienceClicked,bootloadLoader:c("JSResource")("AudienceManagerUnshareContainer.react").__setRef("AudienceManagerChrome.react"),width:r,onUpdateAudiencePermissions:this.$112}):null};e.$111=function(){var a=new(c("AdsGenericFilterSet"))([new(c("AdsGenericFilter"))(new(c("AdsGenericFilterField"))("quicklook","STRING_SET"),"IN",["QUICKLOOK_UNAVAILABLE"])]);return d("AdsGenericFilterSetUtil").matchesExactly(this.state.filterSet,a)};e.$91=function(){if(this.state.viewPixelCodeSelectedID)return this.state.viewPixelCodeSelectedID;else if(this.state.audienceClicked){if(this.state.audienceClicked.external_event_source)return this.state.audienceClicked.external_event_source.id;var a=JSON.parse(this.state.audienceClicked.rule_v2);a=c("immutable").fromJS(a.inclusions.rules[0]);return d("AdsAudienceRuleBuilderSpecUtil").getFirstEventSourceID(a)}return null};e.$41=function(){return c("CustomAudienceTosUtils").getTosRequirements()};e.$40=function(){return c("AdsAMAudienceStore").getAccount().tos_accepted||{}};e.$81=function(){return c("adsAccountGK")._(c("AdsAMAudienceStore").getAccount(),"2ehnV9039")};e.$33=function(){return c("adsAccountGK")._(c("AdsAMAudienceStore").getAccount(),"2ehnV9039")};return b}(a);b.displayName="AudienceManagerChrome";b.defaultProps={placement:c("AudienceManagerPlacement").STAND_ALONE};e=c("AdsFluxContainer").create(b,{withProps:!0,name:f.id});g["default"]=e}),98);
-----
BizMarketingMessagingToSModalLoggingUtils",["BusinessMessagingReengagementMarketingMessageTosModalClickFalcoEvent","BusinessMessagingReengagementMarketingMessageTosModalFailureFalcoEvent","BusinessMessagingReengagementMarketingMessageTosModalImpressionFalcoEvent","BusinessMessagingReengagementMarketingMessageTosModalSubmitFalcoEvent","BusinessMessagingReengagementMarketingMessageTosModalSuccessFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d){c("BusinessMessagingReengagementMarketingMessageTosModalImpressionFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{entry_point:b,session_id:d},event_location:"bizweb_messaging_reengagement",page_id:a}})}function b(a,b,d,e){c("BusinessMessagingReengagementMarketingMessageTosModalClickFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{button_type:e,entry_point:b,session_id:d},event_location:"bizweb_messaging_reengagement",page_id:a}})}function d(a,b,d,e){c("BusinessMessagingReengagementMarketingMessageTosModalSubmitFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{entry_point:b,mutation_name:e,session_id:d},event_location:"bizweb_messaging_reengagement",page_id:a}})}function e(a,b,d,e){c("BusinessMessagingReengagementMarketingMessageTosModalSuccessFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{entry_point:b,mutation_name:e,session_id:d},event_location:"bizweb_messaging_reengagement",page_id:a}})}function f(a,b,d,e,f,g){c("BusinessMessagingReengagementMarketingMessageTosModalFailureFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{entry_point:b,error_message:f,error_stack_trace:g,mutation_name:e,session_id:d},event_location:"bizweb_messaging_reengagement",page_id:a}})}g.logImpressionEvent=a;g.logClickButtonEvents=b;g.logSubmitMutation=d;g.logSuccessMutation=e;g.logFailureMutation=f}),98);
-----
BusinessCometMarketingMessagesOnboardingModal.react",["ix","BizMarketingMessagingFbtUtils","BizMarketingMessagingPageOnboardingMutation","BizMarketingMessagingToSModalLoggingUtils","BusinessCometMarketingMessagesOnboardingModalValuePropItem.react","GeoBaseText.react","GeoBlockingDialog.react","GeoButton.react","GeoDivider.react","GeoFlexbox.react","GeoModalFooter.react","GeoScrollableArea.react","IPB4BImage.react","XBizSuiteControllerRouteBuilder","geoMargin","nullthrows","react","useBizKitPageNullable","useBizMarketingMountOnce","useBizWebRouteDispatcher","useBoolean","uuid"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j={root:{height:"x5yr21d",$$css:!0}};function a(a){a=a.isOnboarded;var b=c("useBoolean")(!1),e=b.setTrue;b=b.value;var f=c("useBoolean")(!1),g=f.setTrue;f=f.value;var k=c("nullthrows")(c("useBizKitPageNullable")(),"pageID is null"),l=c("useBizWebRouteDispatcher")(),m=d("BizMarketingMessagingPageOnboardingMutation").useBizMarketingMessagingPageOnboardingMutation(),n=m[0],o=c("uuid")(),p="overview";m=d("BizMarketingMessagingFbtUtils").getOnboardingModalValueProps();m=m.map(function(a,b){return i.jsx(c("BusinessCometMarketingMessagesOnboardingModalValuePropItem.react"),babelHelpers["extends"]({},a),b)});var q=function(){e(),l(c("XBizSuiteControllerRouteBuilder").buildURL({rest:"home"}))};c("useBizMarketingMountOnce")(function(){d("BizMarketingMessagingToSModalLoggingUtils").logImpressionEvent(k,p,o)});return i.jsx(c("GeoBlockingDialog.react"),{"data-testid":void 0,footer:i.jsx(c("GeoModalFooter.react"),{primaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:b||!f,isLoading:b,label:d("BizMarketingMessagingFbtUtils").getOnboardingModalAgreeButtonLabel(),onClick:function(){d("BizMarketingMessagingToSModalLoggingUtils").logClickButtonEvents(k,p,o,"agree"),e(),d("BizMarketingMessagingToSModalLoggingUtils").logSubmitMutation(k,p,o,"biz_marketing_messaging_onboard"),n({onCompleted:function(a){d("BizMarketingMessagingToSModalLoggingUtils").logSuccessMutation(k,p,o,"biz_marketing_messaging_onboard")},onError:function(a){d("BizMarketingMessagingToSModalLoggingUtils").logFailureMutation(k,p,o,"biz_marketing_messaging_onboard",a==null?void 0:a.message,a==null?void 0:a.stack)},variables:{input:{page_id:k}}})},variant:"primary"}),secondaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:b,isLoading:b,label:d("BizMarketingMessagingFbtUtils").getOnboardingModalNotNowButtonLabel(),onClick:function(){d("BizMarketingMessagingToSModalLoggingUtils").logClickButtonEvents(k,p,o,"not_now"),q()},variant:"default"})}),heading:d("BizMarketingMessagingFbtUtils").getOnboardingModalHeader(),image:i.jsx(c("IPB4BImage.react"),{src:h("206164"),width:208}),isShown:!a,onHide:q,orientation:"vertical",children:i.jsxs(c("GeoScrollableArea.react"),{direction:"vertical",onScrollBottom:g,xstyle:j.root,children:[i.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").horiz16,children:[i.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",children:d("BizMarketingMessagingFbtUtils").getOnboardingModalDescription()}),m]}),i.jsx(c("GeoDivider.react"),{xstyle:[c("geoMargin").top8,c("geoMargin").bottom16]}),i.jsx(c("GeoFlexbox.react"),{xstyle:c("geoMargin").horiz16,children:i.jsx(c("GeoBaseText.react"),{color:"value","data-testid":void 0,size:"accent",children:d("BizMarketingMessagingFbtUtils").getOnboardingModalLegalContent()})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessMessagingReengagementMarketingMessageTosModalSuccessFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("3673");c=b("FalcoLoggerInternal").create("business_messaging_reengagement_marketing_message_tos_modal_success",a);e.exports=c}),null);
-----
BusinessMessagingReengagementMarketingMessageTosModalClickFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("3669");c=b("FalcoLoggerInternal").create("business_messaging_reengagement_marketing_message_tos_modal_click",a);e.exports=c}),null);
-----
BusinessMessagingReengagementMarketingMessageTosModalSubmitFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("3672");c=b("FalcoLoggerInternal").create("business_messaging_reengagement_marketing_message_tos_modal_submit",a);e.exports=c}),null);
-----
BusinessMessagingReengagementMarketingMessageTosModalFailureFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("3670");c=b("FalcoLoggerInternal").create("business_messaging_reengagement_marketing_message_tos_modal_failure",a);e.exports=c}),null);
-----
BusinessMessagingReengagementMarketingMessageTosModalImpressionFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("3671");c=b("FalcoLoggerInternal").create("business_messaging_reengagement_marketing_message_tos_modal_impression",a);e.exports=c}),null);
-----
BusinessCometCreatorMarketplaceOnboardingLogger",["BusinessCometCreatorMarketplaceLoggingHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useMemo,i=function(){function a(a){this.log=a}var b=a.prototype;b.onboardingLandingPageVisited=function(){this.log({event:"onboarding_landing_page_visited",event_type:"impression"})};b.landingPageGetStartedButtonClicked=function(a,b){this.log({event:"landing_page_get_started_button_clicked",event_type:"click",extra_fields:JSON.stringify({component:b,variant:a})})};b.ineligibleForOnboardingPageRendered=function(){this.log({event:"ineligible_for_onboarding",event_type:"impression"})};b.ineligibleForUsingPlatformPageRendered=function(){this.log({event:"ineligible_for_using_platform",event_type:"impression"})};b.undefinedAccessRestrictionsPageRendered=function(){this.log({event:"undefined_access_restrictions",event_type:"impression"})};b.noAccessPageRendered=function(){this.log({event:"unknown_error_while_onboarding",event_type:"impression"})};b.accountSelectionPageRendered=function(){this.log({event:"account_selection_page",event_type:"impression"})};b.singleAccountRegistrationPageRendered=function(){this.log({event:"single_account_registration_page",event_type:"impression"})};b.noEligibleAccountsPageRendered=function(){this.log({event:"no_eligible_account_page",event_type:"impression"})};b.ineligiblePageSwitchAccountButtonClicked=function(a,b){this.log({event:"ineligible_page_switch_account_button_clicked",event_type:"click",extra_fields:JSON.stringify({component:b,variant:a})})};b.ineligiblePageRegisterInterestButtonClicked=function(a,b){this.log({event:"ineligible_page_register_interest_button_clicked",event_type:"click",extra_fields:JSON.stringify({component:b,variant:a})})};b.acceptTOSModalDisplayed=function(){this.log({event:"tos_displayed",event_type:"impression"})};b.acceptTOSButtonClicked=function(){this.log({event:"tos_accept_button_clicked",event_type:"click"})};b.cancelTOSButtonClicked=function(){this.log({event:"tos_cancel_button_clicked",event_type:"click"})};b.getStartedModalDisplayed=function(){this.log({event:"tos_success_message_displayed",event_type:"impression"})};b.getStartedButtonClicked=function(){this.log({event:"tos_success_message_get_started_button_clicked",event_type:"click"})};b.epdConsentPageDisplayed=function(){this.log({event:"epd_consent_page_displayed",event_type:"click"})};b.epdConsentModalDisplayed=function(){this.log({event:"epd_consent_modal_displayed",event_type:"click"})};b.epdConsentButtonClicked=function(){this.log({event:"epd_consent_button_clicked",event_type:"click"})};return a}();function a(){var a=d("BusinessCometCreatorMarketplaceLoggingHooks").useFBSEventLogging();return h(function(){return new i(a)},[a])}g.usePaidPartnershipsOnboardingLogger=a}),98);
-----
BusinessCometCreatorMarketplaceOnboardingModalView.react",["$InternalEnum","BusinessCometCreatorMarketplaceOnboardingEPDModalView.react","BusinessCometCreatorMarketplaceOnboardingGetStartedModalView.react","BusinessCometCreatorMarketplaceOnboardingToSModalView.react","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useCallback,j=e.useState,k=b("$InternalEnum")({ToS:0,EPD:1,FinishOnboarding:2});function a(a){var b=a.bcpBrandProfileID,d=a.isShown,e=a.onCancel,f=a.onSuccess,g=c("gkx")("6707");a=j(k.ToS);var l=a[0],m=a[1];a=i(function(){e(),m(k.ToS)},[m,e]);var n=i(function(){g?m(k.EPD):m(k.FinishOnboarding)},[m,g]),o=i(function(){m(k.FinishOnboarding)},[m]),p=i(function(){f(),m(k.ToS)},[f]);return h.jsxs(h.Fragment,{children:[l===k.ToS&&h.jsx(c("BusinessCometCreatorMarketplaceOnboardingToSModalView.react"),{bcpBrandProfileID:b,isShown:d,onClose:a,onSuccess:n}),l===k.EPD&&h.jsx(c("BusinessCometCreatorMarketplaceOnboardingEPDModalView.react"),{bcpBrandProfileID:b,isShown:d,onClose:a,onSuccess:o}),l===k.FinishOnboarding&&h.jsx(c("BusinessCometCreatorMarketplaceOnboardingGetStartedModalView.react"),{bcpBrandProfileID:b,isShown:d,onClose:a,onSuccess:p})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometCreatorMarketplaceOnboardingToSModalView.react",["fbt","BCPBrandTOSSitevarConfig","BusinessCometCreatorMarketplaceOnboardingLogger","BusinessCometCreatorMarketplaceOnboardingSomethingWentWrongModalView.react","BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation.graphql","CometRelay","CreatorMarketplaceMBSTOSContainer.react","GeoButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useCallback,l=e.useEffect,m=e.useState,n=i!==void 0?i:i=b("BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation.graphql");function a(a){var b=a.bcpBrandProfileID,e=a.isShown,f=a.onClose,g=a.onSuccess;a=m(!1);var h=a[0],i=a[1];a=m(!1);var l=a[0],p=a[1];a=d("CometRelay").useMutation(n);var q=a[0],r=d("BusinessCometCreatorMarketplaceOnboardingLogger").usePaidPartnershipsOnboardingLogger();a=k(function(){r.acceptTOSButtonClicked(),i(!0),q({onCompleted:function(a){i(!1),p(!1),g()},onError:function(a){i(!1),p(!0)},variables:{bcp_brand_id:b}})},[b,i,q,g,p,r]);var s=k(function(){f(),p(!1),i(!1),r.cancelTOSButtonClicked()},[f,p,i,r]);return j.jsxs(j.Fragment,{children:[!l&&j.jsx(o,{isLoading:h,isShown:e,onAccept:a,onHide:s}),l&&j.jsx(c("BusinessCometCreatorMarketplaceOnboardingSomethingWentWrongModalView.react"),{isLoading:h,isShown:e,onHide:s,onRetry:a})]})}a.displayName=a.name+" [from "+f.id+"]";function o(a){var b=a.isLoading,e=a.isShown,f=a.onAccept;a=a.onHide;var g=d("BusinessCometCreatorMarketplaceOnboardingLogger").usePaidPartnershipsOnboardingLogger(),i=c("BCPBrandTOSSitevarConfig").actual_version;i=c("BCPBrandTOSSitevarConfig").version_to_cms_id_mapping[i];l(function(){e&&g.acceptTOSModalDisplayed()},[e,g]);return j.jsx(c("GeoModal.react"),{footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:b,isLoading:b,label:h._("Accept"),onClick:f,variant:"primary"}),secondaryButton:j.jsx(c("GeoButton.react"),{isDisabled:b,label:h._("Cancel"),onClick:a,variant:"default"})}),header:j.jsx(c("GeoModalHeader.react"),{heading:h._("Review and accept our Terms of Service to get started")}),isShown:e,onHide:a,width:740,children:j.jsx(c("GeoSection.react"),{children:j.jsx(c("CreatorMarketplaceMBSTOSContainer.react"),{cmsID:i.toString(),onLoad:function(){}})})})}o.displayName=o.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation.graphql",["BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"bcp_brand_id"}],c=[{alias:null,args:[{fields:[{kind:"Variable",name:"bcp_brand_id",variableName:"bcp_brand_id"}],kind:"ObjectValue",name:"data"}],concreteType:"PAYBrandProfileResponsePayload",kind:"LinkedField",name:"bcp_brand_accept_tos_on_mbs",plural:!1,selections:[{alias:null,args:null,concreteType:"PAYBCPBrandProfile",kind:"LinkedField",name:"bcp_brand_profile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation",selections:c},params:{id:b("BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation_facebookRelayOperation"),metadata:{},name:"BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5795849613815164"}),null);
-----
OCDevCenterTOSModal.react",["fbt","GeoCheckboxInput.react","GeoDivider.react","GeoModalCard.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","OCDevCenterTOSModalMutation.graphql","OCDevCenterTOSModal_termsOfService.graphql","OCDevUIDraftJSRenderer.react","OCDevUIForm.react","OCDevUIFormSubmitButton.react","RelayHooks","nullthrows","react","regeneratorRuntime","useOCDevManageCommitMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react"),l=d("react").useState;function a(a){var e=a.agreeText,f=a.heading,g=a.organizationID;a=a.termsOfService;var m=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevCenterTOSModal_termsOfService.graphql"),a);a=l(!1);var n=a[0];a=a[1];var o=c("useOCDevManageCommitMutation")(j!==void 0?j:j=b("OCDevCenterTOSModalMutation.graphql"));function p(){var a;return b("regeneratorRuntime").async(function(d){while(1)switch(d.prev=d.next){case 0:d.next=2;return b("regeneratorRuntime").awrap(o({input:{organization_id:(a=g)!=null?a:"",tos_type:c("nullthrows")(m.tos_type)}},{closeModalOnSuccess:!0}));case 2:case"end":return d.stop()}},null,this)}return k.jsx(c("OCDevUIForm.react"),{onSubmit:p,children:k.jsx(c("GeoModalCard.react"),{footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("OCDevUIFormSubmitButton.react"),{forceDisabled:!n}),startContent:k.jsx(c("GeoCheckboxInput.react"),{label:h._("I Agree"),value:n,onChange:a})}),header:k.jsx(c("GeoModalHeader.react"),{heading:f}),children:k.jsx(c("GeoSection.react"),{children:k.jsxs("div",{className:"xuyqlj2",children:[k.jsx(c("OCDevUIDraftJSRenderer.react"),{draftJSString:(p=m.content_draft_js)!=null?p:""}),k.jsx(c("GeoDivider.react"),{}),k.jsx(c("GeoText.react"),{children:e})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevCenterTOSModalMutation.graphql",["OCDevCenterTOSModalMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCDevCenterTOSModalMutation",selections:[{alias:null,args:c,concreteType:"TosAcceptResponsePayload",kind:"LinkedField",name:"tos_accept",plural:!1,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{alias:null,args:null,concreteType:"OrganizationToApplicationsConnection",kind:"LinkedField",name:"applications",plural:!1,selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"nodes",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"OCDevCenterOculusStartApplyFormView_application"}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCDevCenterTOSModalMutation",selections:[{alias:null,args:c,concreteType:"TosAcceptResponsePayload",kind:"LinkedField",name:"tos_accept",plural:!1,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{alias:null,args:null,concreteType:"OrganizationToApplicationsConnection",kind:"LinkedField",name:"applications",plural:!1,selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[d,{alias:null,args:[{kind:"Literal",name:"latest_only",value:!0},{kind:"Literal",name:"types",value:["DEVELOPER_HLA"]}],concreteType:"OrganizationSignedLegalAgreementsConnection",kind:"LinkedField",name:"signed_legal_agreements",plural:!1,selections:[{alias:null,args:null,concreteType:"TermsOfService",kind:"LinkedField",name:"nodes",plural:!0,selections:[d],storageKey:null}],storageKey:"signed_legal_agreements(latest_only:true,types:["DEVELOPER_HLA"])"},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},d,{alias:null,args:[{kind:"Literal",name:"first",value:1}],concreteType:"ApplicationDeveloperStartSubmissionsConnection",kind:"LinkedField",name:"developer_start_submissions",plural:!1,selections:[{alias:null,args:null,concreteType:"DeveloperStartSubmission",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"business_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"business_website",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"email_address",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"funding_explanation",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"funding_or_revenue_amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_received_outside_funding",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"phone_number",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"preferred_engine",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"project_description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"project_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"prototype_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_city",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_country_code",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_street",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_street_two",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_zip",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shirt_size",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"target_launch_date",storageKey:null},d],storageKey:null}],storageKey:"developer_start_submissions(first:1)"}],storageKey:null}],storageKey:null},d],storageKey:null}],storageKey:null}]},params:{id:b("OCDevCenterTOSModalMutation_oculusRelayOperation"),metadata:{},name:"OCDevCenterTOSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCDevCenterOculusStartApplyFormView.react",["fbt","ix","GeoButton.react","GeoHeading.react","OCDevCenterNarrowInnerLayout.react","OCDevCenterOculusStartApplyForm.react","OCDevCenterOculusStartApplyFormView_application.graphql","OCDevCenterOculusStartApplyFormView_hardwareRequestFormConfigs.graphql","OCDevCenterOculusStartApplyFormView_termsOfService.graphql","OCDevCenterOculusStartApplyFormView_user.graphql","OCDevCenterPage.react","OCDevCenterTOSModal.react","OCDevManageEmptyState.react","OCDevUISpacedLayout.react","RelayHooks","react","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n=d("react");e=d("react");var o=e.useCallback,p=e.useEffect;function a(a){var e=a.application,f=a.hardwareRequestFormConfigs,g=a.termsOfService;a=a.user;var q=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevCenterOculusStartApplyFormView_application.graphql"),e);e=d("RelayHooks").useFragment(k!==void 0?k:k=b("OCDevCenterOculusStartApplyFormView_hardwareRequestFormConfigs.graphql"),f);var r=d("RelayHooks").useFragment(l!==void 0?l:l=b("OCDevCenterOculusStartApplyFormView_termsOfService.graphql"),g);f=d("RelayHooks").useFragment(m!==void 0?m:m=b("OCDevCenterOculusStartApplyFormView_user.graphql"),a);g=c("useOCDevUIModal")();var s=g.openModal,t=o(function(){var a;s(n.jsx(c("OCDevCenterTOSModal.react"),{agreeText:h._("I have read and agree to Oculusu2019s Privacy Policy, Terms of Service, and the terms of this program as stated above. If you do not agree to any of the terms of this program and Use Terms or do not have authority to bind the identified Organization, then {underlined_do_not} click "I Agree" and {underlined_do_not} submit any program application to Oculus.",[h._param("underlined_do_not",n.jsx("u",{children:"do not"}))]),heading:h._("Developer Hardware Loan Agreement"),organizationID:(a=q.organization)==null?void 0:a.id,termsOfService:r}))},[(a=q.organization)==null?void 0:a.id,s,r]),u=((a=(g=q.organization)==null?void 0:(a=g.signed_legal_agreements)==null?void 0:(g=a.nodes)==null?void 0:g.length)!=null?a:0)!==0;p(function(){u||t()},[u,t]);g=h._("Oculus Start Application");return n.jsx(c("OCDevCenterPage.react"),{pageTitle:g,children:n.jsx(c("OCDevCenterNarrowInnerLayout.react"),{children:n.jsxs(c("OCDevUISpacedLayout.react"),{children:[n.jsx(c("GeoHeading.react"),{level:1,children:g}),u?n.jsx(c("OCDevCenterOculusStartApplyForm.react"),{application:q,hardwareRequestFormConfigs:e,user:f}):n.jsx(c("OCDevManageEmptyState.react"),{action:n.jsx(c("GeoButton.react"),{label:h._("View Agreement"),variant:"primary",onClick:t}),heading:h._("Developer Hardware Loan Agreement Required"),icon:i("1571610")})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevCenterTOSModal_termsOfService.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterTOSModal_termsOfService",selections:[{alias:null,args:null,kind:"ScalarField",name:"content_draft_js",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tos_type",storageKey:null}],type:"TermsOfService",abstractKey:null};e.exports=a}),null);
-----
OCDevCenterTOSModalMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4193358817433159"}),null);
-----
OCDevCenterOculusStartApplyFormView_termsOfService.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterOculusStartApplyFormView_termsOfService",selections:[{args:null,kind:"FragmentSpread",name:"OCDevCenterTOSModal_termsOfService"}],type:"TermsOfService",abstractKey:null};e.exports=a}),null);
-----
BizKitContextCardActivityListItem.react",["cx","BIZInboxClientLogger","BizInboxStateContext","BizKitContextCardActivityListItemActionsMenu.react","BizKitContextCardActivityListItemDetail.react","BizKitContextCardActivityListItemIcon.react","BizKitContextCardActivityListItem_mbsBusinessAssets.graphql","BizKitContextCardActivityListItem_node.graphql","BizKitContextCardActivityListItem_page.graphql","GeoText.react","LeftRight.react","RelayHooks","ShimButton.react","Timestamp.react","formatDate","getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=d("react");e=d("react");var m=e.useContext,n=e.useEffect,o=e.useState,p=i!==void 0?i:i=b("BizKitContextCardActivityListItem_node.graphql"),q=l.createRef();function a(a){var e,f=o(!1),g=f[0],h=f[1],i=d("RelayHooks").useFragment(p,a.data);f=a.onShowContactCardTosModal;var r=a.shouldShowContactCardTos,s=d("RelayHooks").useFragment(j!==void 0?j:j=b("BizKitContextCardActivityListItem_page.graphql"),a.page),t=d("RelayHooks").useFragment(k!==void 0?k:k=b("BizKitContextCardActivityListItem_mbsBusinessAssets.graphql"),a.mbsBusinessAssets),u=d("getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils").getIsDependencyOfRemovePageDependencyEnabledToolForContactCard(a.surface);u=u?t:s;s=(u==null?void 0:(t=u.timelineActionsCheck)==null?void 0:t.showTimelineActions)===!0;u=(t=(u=i.contact_action)==null?void 0:u.descriptions.map(function(a){return(a=a.text)!=null?a:""}).filter(function(a){return a!==""}))!=null?t:[];t=m(c("BizInboxStateContext"));var v=t.defaultCurrency,w=t.offsiteEmailAccountID;t=((t=i.contact_action)==null?void 0:t.data_silo)!=="SP_SILO_BUSINESS";var x=((e=i.contact_action)==null?void 0:e.type)==="SEND_EMAIL",y=(e=i.contact_action)==null?void 0:e.interaction_id;n(function(){x&&d("BIZInboxClientLogger").logEmailInContactCardImpression(a.pageID,y,w)},[x,y,w,a.pageID,a.pageContactID]);return l.jsx("div",{onMouseEnter:function(){q.current==null&&h(!0)},onMouseLeave:function(){h(!1)},children:l.jsxs(c("ShimButton.react"),{className:"_5-vm"+(((e=i.contact_action)==null?void 0:(e=e.story)==null?void 0:e.id)?" _cxw":""),onClick:function(){if(a.selectInteraction!=null){a.selectInteraction(i);if(x){var b;d("BIZInboxClientLogger").logEmailInContactCardClick(a.pageID,(b=i.contact_action)==null?void 0:b.interaction_id,w);a.toggleShouldShowOmnichannelEmailDetailView(!0);a.setActiveEmailThread({threadID:(b=(b=i.contact_action)==null?void 0:b.interaction_id)!=null?b:"",title:(b=(b=i.contact_action)==null?void 0:(b=b.subtitle)==null?void 0:b.text)!=null?b:""})}}},children:[l.jsxs(c("LeftRight.react"),{children:[l.jsxs(l.Fragment,{children:[l.jsx(c("BizKitContextCardActivityListItemIcon.react"),{isCorporationActivity:t}),l.jsx(c("GeoText.react"),{children:(e=(e=i.contact_action)==null?void 0:(t=e.title)==null?void 0:t.text)!=null?e:""})]}),s&&a.pageID!=null&&l.jsx(c("BizKitContextCardActivityListItemActionsMenu.react"),{actionType:(t=i.contact_action)==null?void 0:t.type,defaultCurrency:v,descriptions:u,dialogRef:q,interactionID:(e=i.contact_action)==null?void 0:e.interaction_id,invoiceID:(s=i.contact_action)==null?void 0:s.invoice_id,pageID:a.pageID,surface:a.surface,pageContactID:a.pageContactID,onShowContactCardTosModal:f,shouldShowContactCardTos:r,shouldShow:g,userID:a.userID})]}),l.jsxs("div",{className:"xlg2ruo x1e56ztr x1mnrxsn x1gslohp",children:[((t=i.contact_action)==null?void 0:t.style)==="DETAIL"&&l.jsx(c("BizKitContextCardActivityListItemDetail.react"),{actionType:(v=i.contact_action)==null?void 0:v.type,clickUrl:(e=i.contact_action)==null?void 0:e.click_url,descriptions:u,imageUrl:(s=i.contact_action)==null?void 0:s.image_url,interactionID:(g=i.contact_action)==null?void 0:g.interaction_id,invoiceID:(t=i.contact_action)==null?void 0:t.invoice_id,isInKBankRollout:a.isInKBankRollout==!0,pageID:a.pageID,onShowContactCardTosModal:f,shouldShowContactCardTos:r,subtitle:(v=i.contact_action)==null?void 0:(e=v.subtitle)==null?void 0:e.text,timestamp:(u=i.contact_action)==null?void 0:u.timestamp,userID:a.userID}),l.jsx("div",{className:"x17ddzgb x1d52u69",children:l.jsx(c("Timestamp.react"),{text:c("formatDate")((s=i.contact_action)==null?void 0:s.timestamp,"D M j, Y g:ia"),time:Number((g=i.contact_action)==null?void 0:g.timestamp)})})]})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivityListItemDetail.react",["ix","BizInboxFormBuilderClientLogger","BizKitFormBuilderCompletedDetailsModalLazyLoad.react","GeoLink.react","Image.react","JSResource","LeftRight.react","MNCommerceDialogStateActions","MessengerAdsConversionFunnelTypedLogger","MessengerConversionEvent","PagesPlatformBookingMessageViewer","ServicesAppointmentDialogRoot.react","ServicesAppointmentManagementDialogEnum","emptyFunction","formatDate","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useState,k=c("lazyLoadComponent")(c("JSResource")("MNCommerceOrderDetailsDialogContainer.react").__setRef("BizKitContextCardActivityListItemDetail.react")),l=c("lazyLoadComponent")(c("JSResource")("OrderShippedDetailDialog.react").__setRef("BizKitContextCardActivityListItemDetail.react")),m=c("lazyLoadComponent")(c("JSResource")("FBPaymentsReceiptDialog.react").__setRef("BizKitContextCardActivityListItemDetail.react")),n={referrerUIComponent:"composer",referrerUISurface:"message"};function a(a){var b=j(!1),e=b[0],g=b[1];if(a.descriptions.length===0)return null;function o(){var b=a.onShowContactCardTosModal,f=a.shouldShowContactCardTos,h=function(){if(f)return b();g(!0)},j=function(){g(!1)},o=null,p=a.subtitle;if(a.clickUrl!=null)p=i.jsx(c("GeoLink.react"),{href:a.clickUrl,target:"_blank",children:a.subtitle});else if(a.actionType!=null)switch(a.actionType){case"APPOINTMENT_BOOKED":a.invoiceID!=null&&a.pageID!=null&&(p=i.jsx(c("GeoLink.react"),{onClick:function(){h(),new(c("MessengerAdsConversionFunnelTypedLogger"))().setName(c("MessengerConversionEvent").PAGE_CLICK_APPOINTMENT_BOOKED_CTA).setPageID(a.pageID).setConsumerID(a.userID).log()},children:a.subtitle}),o=i.jsx(c("ServicesAppointmentDialogRoot.react"),{causalElementRef:c("emptyFunction"),dialogType:c("ServicesAppointmentManagementDialogEnum").VIEW_DETAILS,onToggle:g,pageID:a.pageID,referrerData:n,requestID:a.invoiceID,showMessengerButton:!1,shown:e,userID:a.userID,viewer:c("PagesPlatformBookingMessageViewer").ADMIN}));break;case"FORM_SUBMITTED":if(a.interactionID!=null&&a.pageID!=null){var q;p=i.jsx(c("GeoLink.react"),{onClick:function(){var b;g(!0);d("BizInboxFormBuilderClientLogger").logFormBuilderActivityClickAction((b=a.pageID)!=null?b:"",(b=a.interactionID)!=null?b:"")},children:a.subtitle});o=i.jsx(i.Suspense,{fallback:null,children:i.jsx(c("BizKitFormBuilderCompletedDetailsModalLazyLoad.react"),{isShown:e,onHide:function(b){g(!1);if(b!==!0){d("BizInboxFormBuilderClientLogger").logFormBuilderCompletedViewCancelAction((b=a.pageID)!=null?b:"",(b=a.interactionID)!=null?b:"")}},submittedTime:c("formatDate")(a.timestamp,"M j, Y"),formConversationInstanceId:(q=a.interactionID)!=null?q:""})})}break;case"PAYMENT_RECEIVED":a.invoiceID!=null&&(p=i.jsx(c("GeoLink.react"),{onClick:function(){h(),new(c("MessengerAdsConversionFunnelTypedLogger"))().setName(c("MessengerConversionEvent").PAGE_CLICK_PAYMENT_RECEIVED_CTA).setPageID(a.pageID).setConsumerID(a.userID).log()},children:a.subtitle}),o=i.jsx(i.Suspense,{fallback:null,children:i.jsx(m,{actorID:a.pageID,onDialogToggle:g,receiptClientType:"pages_commerce",receiptID:a.invoiceID})}));break;case"ORDER_SHIPPED":a.invoiceID!=null&&a.pageID!=null&&(p=i.jsx(c("GeoLink.react"),{onClick:h,children:a.subtitle}),o=i.jsx(i.Suspense,{fallback:null,children:i.jsx(l,{invoiceID:a.invoiceID,isInKBankRollout:a.isInKBankRollout,onToggle:j,pageID:a.pageID})}));break;case"ORDER_PLACED":if(a.invoiceID!=null){q=function(){d("MNCommerceDialogStateActions").showDialog(k,{receiptID:a.invoiceID})};p=i.jsx(c("GeoLink.react"),{onClick:q,children:a.subtitle})}break;case"SEND_EMAIL":p=i.jsx(c("GeoLink.react"),{children:a.subtitle});break;default:break}return i.jsxs("div",{className:"x117nqv4 xahult9 xsgj6o6 x1gslohp x6ikm8r x10wlt62 xlyipyv xuxw1ft",children:[p,e&&o]})}o.displayName=o.name+" [from "+f.id+"]";function p(){return a.descriptions.map(function(b,d){var e=b;a.clickUrl!=null&&(e=i.jsx(c("GeoLink.react"),{href:a.clickUrl,target:"_blank",children:b}));return i.jsx("div",{className:"x17ddzgb x6ikm8r x10wlt62 xlyipyv x16dsc37 xuxw1ft",children:e},d)})}function q(){if(a.actionType==null)return null;var b={width:"56px",height:"56px",borderRadius:"4px",marginBottom:"2px",marginLeft:"16px",marginRight:"8px"};if(a.imageUrl!=null)return a.clickUrl!=null?i.jsx("a",{href:a.clickUrl,target:"_blank",children:i.jsx(c("Image.react"),{src:a.imageUrl,style:b})}):i.jsx(c("Image.react"),{src:a.imageUrl,style:b});b=null;switch(a.actionType){case"APPOINTMENT_BOOKED":b=h("994823");break;case"FORM_SUBMITTED":b=h("1845289");break;case"ORDER_SHIPPED":b=h("802395");break;case"ORDER_PLACED":b=h("1059944");break;case"SEND_EMAIL":b=h("222123");break;case"PAYMENT_RECEIVED":case"BUSINESS_ORDER":b=h("994823");break;default:break}return b===null?null:i.jsx("div",{className:"x1q8sqs3 x1lcm9me x1yr5g0i xrt01vj x10y3i5r xxk0z11 xjpr12u x1d52u69 x1emribx xyamay9 x1pi30zi x1l90r2v x1swvt13 xvy4d1p",children:i.jsx(c("Image.react"),{src:b})})}q.displayName=q.name+" [from "+f.id+"]";return i.jsxs(c("LeftRight.react"),{direction:"left",children:[q(),i.jsxs(i.Fragment,{children:[o(),p()]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivityListItemActionsMenu.react",["cx","fbt","ix","BUIContextualLayer.react","BUIMenu.react","BizKitContextCardUtils","CTMEPDChecker","ContactGraphDeleteActivityCancelFlowFalcoEvent","ContactGraphDeleteActivityClickFalcoEvent","ContactGraphDeleteActivityDeleteFalcoEvent","GeoIcon.react","JSResource","PagesInboxThreadActionSystemDispatcher","PagesManagerInboxDeleteActivityMutation","ServicesAppointmentManagementDialogEnum","ThreadActionSystemTimelineActionFalcoEvent","emptyFunction","fbicon","lazyLoadComponent","nullthrows","promiseDone","react"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=d("react");b=d("react");var l=b.useEffect,m=b.useRef,n=b.useState,o=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxThreadActionSystemOrderPlacedDialog.react").__setRef("BizKitContextCardActivityListItemActionsMenu.react")),p=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxThreadActionSystemAppointmentDialog").__setRef("BizKitContextCardActivityListItemActionsMenu.react")),q=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxOrderShippedActivitySendDetailsDialog.react").__setRef("BizKitContextCardActivityListItemActionsMenu.react")),r=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxDeleteActivityConfirmationDialog.react").__setRef("BizKitContextCardActivityListItemActionsMenu.react"));function s(a){return a==="APPOINTMENT_BOOKED"||a==="ORDER_PLACED"||a==="ORDER_SHIPPED"||a==="PAYMENT_RECEIVED"}function t(a){var b=a.actionType,d=a.hasDetails,e=a.pageID,f=a.timelineActionType,g=a.userID;if(g==null||e==null)return;var h=u(b);if(h==null)return;c("ThreadActionSystemTimelineActionFalcoEvent").log(function(){return{activity_type:h,consumer_id:g,has_details:d,page_id:e,timeline_action_type:f}})}function u(a){if(a==null)return null;switch(a){case"PAYMENT_RECEIVED":return"PAYMENT_RECEIVED";case"APPOINTMENT_BOOKED":return"APPOINTMENT_BOOKED";case"ORDER_PLACED":return"ORDER_PLACED";case"ORDER_SHIPPED":return"ORDER_SHIPPED";default:return null}}function v(a){if(a.actionType==null)return null;var b=function(){t({actionType:a.actionType,hasDetails:!1,pageID:a.pageID,timelineActionType:"send_details",userID:a.userID})};switch(a.actionType){case"APPOINTMENT_BOOKED":return k.jsx(k.Suspense,{fallback:null,children:k.jsx(p,{dialogType:c("ServicesAppointmentManagementDialogEnum").CREATE_ANOTHER_APPOINTMENT,interactionID:a.interactionID,onToggle:a.onHide,onUpdateCompleted:function(a,d){a&&(c("PagesInboxThreadActionSystemDispatcher").dispatch(!0),b())},pageID:a.pageID,shown:!0,userID:a.userID})});case"ORDER_PLACED":return a.interactionID==null||a.userID==null?null:k.jsx(k.Suspense,{fallback:null,children:k.jsx(o,{defaultCurrency:a.defaultCurrency,entryPoint:"activity_actions_menu",interactionID:a.interactionID,onHide:a.onHide,onSuccess:b,pageID:a.pageID,userID:a.userID})});case"ORDER_SHIPPED":return a.pageID==null||a.userID==null?null:k.jsx(k.Suspense,{fallback:null,children:k.jsx(q,{onHide:a.onHide,onSuccess:b,pageID:a.pageID,userID:a.userID})});default:return null}}v.displayName=v.name+" [from "+f.id+"]";function w(a){var b=a.descriptions.length!==0,e=function(){c("ContactGraphDeleteActivityDeleteFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(a.surface),page_id:a.pageID,page_contact_id:a.pageContactID,event_data:{activity_id:a.interactionID},is_server_log:!1}}),d("PagesManagerInboxDeleteActivityMutation").commit({consumerID:a.userID,pageID:a.pageID,interactionID:c("nullthrows")(a.interactionID)},{onSuccess:function(){c("PagesInboxThreadActionSystemDispatcher").dispatch(!0),t({actionType:a.actionType,hasDetails:b,pageID:a.pageID,timelineActionType:"delete",userID:a.userID})},onFailure:c("emptyFunction")})},f=function(){c("ContactGraphDeleteActivityCancelFlowFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(a.surface),page_id:a.pageID,page_contact_id:a.pageContactID,event_data:{activity_id:a.interactionID},is_server_log:!1}})};return b&&a.actionType==="APPOINTMENT_BOOKED"?a.pageID==null||a.invoiceID==null?null:k.jsx(k.Suspense,{fallback:null,children:k.jsx(p,{dialogType:c("ServicesAppointmentManagementDialogEnum").ADMIN_CANCEL,interactionID:a.interactionID,onToggle:a.onHide,onUpdateCompleted:function(a,b){a&&e()},pageID:a.pageID,requestID:a.invoiceID,shown:!0,userID:a.userID})}):k.jsx(k.Suspense,{fallback:null,children:k.jsx(r,{onDeleteConfirm:e,onCancelConfirm:f,onHide:a.onHide})})}w.displayName=w.name+" [from "+f.id+"]";function x(a){if(a.actionType==null)return null;var b=function(){t({actionType:a.actionType,hasDetails:!0,pageID:a.pageID,timelineActionType:"edit",userID:a.userID})};switch(a.actionType){case"APPOINTMENT_BOOKED":return k.jsx(k.Suspense,{fallback:null,children:k.jsx(p,{dialogType:c("ServicesAppointmentManagementDialogEnum").EDIT,interactionID:a.interactionID,onToggle:a.onHide,onUpdateCompleted:function(a,d){a&&(c("PagesInboxThreadActionSystemDispatcher").dispatch(!0),b())},pageID:a.pageID,requestID:a.invoiceID,shown:!0,userID:a.userID})});case"ORDER_PLACED":return a.interactionID==null||a.userID==null||a.invoiceID==null?null:k.jsx(k.Suspense,{fallback:null,children:k.jsx(o,{defaultCurrency:a.defaultCurrency,entryPoint:"activity_actions_menu",interactionID:a.interactionID,invoiceID:a.invoiceID,onHide:a.onHide,onSuccess:b,pageID:a.pageID,userID:a.userID})});default:return null}}x.displayName=x.name+" [from "+f.id+"]";function a(a){var b=m(null),e=n(!1),f=e[0],g=e[1];e=n(!1);var h=e[0],o=e[1];e=n(!1);var p=e[0],q=e[1];e=n(!1);var r=e[0],t=e[1];e=n(!1);e[0];var u=e[1];c("promiseDone")(d("CTMEPDChecker").isCTMEPDAffected(a.pageID,a.userID).then(function(a){return u(a)}));var y=a.onShowContactCardTosModal,z=a.shouldShowContactCardTos;e=n(a.shouldShow);var A=e[0],B=e[1];l(function(){B(a.shouldShow&&!h&&!p&&!r)},[a.shouldShow,h,p,r]);l(function(){A||g(!1)},[A]);var C=m(null),D=function(a){var b;a.target instanceof Node&&!((b=C.current)==null?void 0:b.contains==null?void 0:b.contains(a.target))&&g(!1)};l(function(){f&&document.addEventListener("click",D,!1);return function(){document.removeEventListener("click",D,!1)}},[f]);if(!s(a.actionType))return null;e=function(b){if(a.interactionID==null)return;var e=function(){t(!0),c("ContactGraphDeleteActivityClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(a.surface),page_id:a.pageID,page_contact_id:a.pageContactID,event_data:{activity_id:a.interactionID},is_server_log:!1}})};b.push({type:"item",label:i._("u5220u9664"),onClick:e})};var E=[];e(E);return k.jsxs("div",{className:""+(A?"":" xlshs6z"),children:[k.jsxs("div",{onClick:function(){if(z)return y();g(!f)},ref:b,role:"none",children:[k.jsx("div",{className:"_9ml3",children:k.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(j("484386"),16)})}),f&&b.current!=null&&k.jsx(c("BUIContextualLayer.react"),{align:"end",context:b.current,children:k.jsx("div",{ref:C,children:k.jsx(c("BUIMenu.react"),{items:E})})})]}),h&&k.jsx("div",{ref:a.dialogRef,children:k.jsx(v,{actionType:a.actionType,defaultCurrency:a.defaultCurrency,interactionID:a.interactionID,onHide:function(){return o(!1)},pageID:a.pageID,userID:a.userID})}),r&&k.jsx("div",{ref:a.dialogRef,children:k.jsx(w,{actionType:a.actionType,descriptions:a.descriptions,interactionID:a.interactionID,invoiceID:a.invoiceID,onHide:function(){return t(!1)},pageID:a.pageID,userID:a.userID,surface:a.surface,pageContactID:a.pageContactID})}),p&&k.jsx("div",{ref:a.dialogRef,children:k.jsx(x,{actionType:a.actionType,defaultCurrency:a.defaultCurrency,interactionID:a.interactionID,invoiceID:a.invoiceID,onHide:function(){return q(!1)},pageID:a.pageID,userID:a.userID})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CRMClientDetailsNote.react",["cx","fbt","ActionList.react","BizInboxMultiAdminFbtUtils","BizKitContextCardUtils","CRMClientDetailsNote_note.graphql","CRMEventsLogger","ClientIDs","ContactGraphDeleteNoteClickFalcoEvent","ContactGraphDeleteNoteDeleteFalcoEvent","ContactGraphEditNoteCancelFlowFalcoEvent","ContactGraphEditNoteClickFalcoEvent","ContactGraphEditNoteSaveFalcoEvent","ExpandableText.react","GeoBaseText.react","GeoBinaryInput.react","GeoButton.react","GeoCancelButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoSelector.react","GeoSelectorItem.react","GeoTextArea.react","GeoTooltip.react","Link.react","RelayModern","Timestamp.react","formatDate","geoMargin","isTruthy","nullthrows","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l="customer_details_view";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h-----
BizKitContextCardLabel.react",["BIZInboxClientLogger","BizKitContextCardUtils","ContactGraphSearchByLabelClickFalcoEvent","ContactGraphUnsetLabelFromContactClickFalcoEvent","ContextCardLabelGetTokenLabelColor","FlexLayout.react","GeoCheckboxInput.react","GeoTokenLabel.react","MetaSymbolMonochromatic.react","PageCommItemFolder","PageContactLabelCreationSource","getIsMultiSelectLocalScopeSelector.entrypointutils","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState;function a(a){var b=i(!1),e=b[0],f=b[1],g=a.onRemoveLabel,j=a.onDismissLabel,k=a.id,l=a.name,m=a.color,n=a.contentType,o=a.createName,p=a.isSuggestedLabel,q=a.onAddorCreateLabel,r=a.onSelectLabel;b=a.readOnly;var s=a.dataSilo,t=a.labelSource,u=a.pageID,v=a.onShowContactCardTosModal,w=a.shouldShowContactCardTos,x=a.pageContactID,y=a.surface,z=function(){f(!0),q&&o!=null&&q(o,p,null,m,n)},A=null,B=function(){if(r&&!p){if(y!==void 0){c("ContactGraphSearchByLabelClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(y),page_id:u,page_contact_id:x,event_data:{label_ids:[k],label_search_result:[""]},is_server_log:!1}});if(u!=null){var a=t===c("PageCommItemFolder").INTENT_AUTO_LABEL?"ml_intent_label":"label";d("BIZInboxClientLogger").logFilterApply(u,d("BizKitContextCardUtils").getPageCommPlatformType(y),"contact_card",a)}d("BIZInboxClientLogger").logLabelSearchClick(u,d("BizKitContextCardUtils").getPageCommPlatformType(y),null,l,k,c("PageContactLabelCreationSource")[String(t)],null)}r(d("getIsMultiSelectLocalScopeSelector.entrypointutils").getIsMultiSelectLocalScopeSelector()?{id:k,color:m,name:l,pageID:u,data_silo:s,label_source:t}:{id:k,color:m,name:l,data_silo:s,label_source:t})}};a=a.dataSilo==="DC_SILO_CORPORATION";b=!a&&(g||j)&&!b;var C=function(){if(y!==void 0){c("ContactGraphUnsetLabelFromContactClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(y),page_id:u,page_contact_id:x,event_data:{label_name:l,label_id:k},is_server_log:!1}});var a=String(t);d("BIZInboxClientLogger").logThreadLabelDelete(u,d("BizKitContextCardUtils").getPageCommPlatformType(y),m,l,k,c("PageContactLabelCreationSource")[a])}w?v():g!=null&&g(k,l)},D=function(){j!=null&&j(k,l,m,n!=null?n:"")};p===!0&&(A=h.jsx("div",{className:"x1nx2rwh",children:h.jsx(c("GeoCheckboxInput.react"),{"data-testid":void 0,value:e,label:"Hidden Label",isLabelHidden:!0,onChange:w?v:z})}));e=null;a&&(e=h.jsx(c("MetaSymbolMonochromatic.react"),{size:12}));z=p?"context_card_suggested_lables":"contact_labels";return h.jsxs(c("FlexLayout.react"),{align:"center",children:[A,h.jsx("div",{className:"x1iorvi4 x150jy0e xjkvuk6 x1e558r4","data-testid":void 0,children:h.jsx(c("GeoTokenLabel.react"),{clearLabel:"clearLabel",color:d("ContextCardLabelGetTokenLabelColor").getTokenLabelColor(m,a),label:l,media:e,onClear:b===!0?p?D:C:null,onClick_DEPRECATED:B})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardLabelsList.react",["BizKitContextCardLabel.react","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.allLabels,d=a.onRemoveLabel,e=a.onSelectLabel,f=a.readOnly,g=a.pageID,i=a.onShowContactCardTosModal,j=a.shouldShowContactCardTos,k=a.pageContactID,l=a.surface;a=null;b&&b.length>0&&(a=b.map(function(a,b){return a&&h.jsx("div",{className:"x1rg5ohu",children:h.jsx(c("BizKitContextCardLabel.react"),{color:c("nullthrows")(a.color),name:c("nullthrows")(a.name),id:c("nullthrows")(a.id),onRemoveLabel:d,onSelectLabel:e,isSuggestedLabel:!1,readOnly:f,dataSilo:a.data_silo,labelSource:a.label_source,pageID:g,onShowContactCardTosModal:i,shouldShowContactCardTos:j,pageContactID:k,surface:l})},c("nullthrows")(a.id)+"_"+b)}));return h.jsx("div",{className:"x14vqqas",children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardNotesSection.react",["fbt","BizInboxStateContext","BizKitContextCardLinkButton.react","BizKitContextCardMoreSection.react","BizKitContextCardNotesSection_notes.graphql","BizKitContextCardUtils","CRMClientDetailsNote.react","CRMEventsLogger","ContactGraphAddNoteClickFalcoEvent","ContactGraphSeeMoreNoteClickFalcoEvent","ContextCardNotesUtils","GeoBaseText.react","GeoHeading.react","GeoSpinner.react","JSResource","LeftRight.react","RelayHooks","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useContext,l=e.useEffect,m=e.useState,n=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardAddNoteSection.react").__setRef("BizKitContextCardNotesSection.react")),o=i!==void 0?i:i=b("BizKitContextCardNotesSection_notes.graphql"),p=10;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=a.className,f=a.pageID,g=a.notes,i=a.contactID,q=a.contactIdentity,r=a.surface,s=a.readOnly,t=a.onShowContactCardTosModal,u=a.shouldShowContactCardTos,v=m(!1),w=v[0],x=v[1];v=m(!1);var y=v[0],z=v[1];v=k(c("BizInboxStateContext"));v=v.isWAOnly;g=d("RelayHooks").usePaginationFragment(o,g);var A=g.hasNext,B=g.loadNext,C=g.data,D=C==null?void 0:(g=C.shared_attributes)==null?void 0:g.page_contact_id,E=function(a){d("ContextCardNotesUtils").onDeleteNote(b,a,r)},F=function(a,c){d("ContextCardNotesUtils").onUpdateNote(b,a,c,r)};g=function(c){var e;d("ContextCardNotesUtils").onAddNote(b,C==null?void 0:(e=C.business_attributes)==null?void 0:(e=e.admin_notes)==null?void 0:(e=e.notes_list)==null?void 0:e.__id,c,i,q,r);d("CRMEventsLogger").log(a.pageID,"click_add_note","add_note_button","bizkit_context_card",D)};var G=function(){var a;a=C==null?void 0:(a=C.business_attributes)==null?void 0:(a=a.admin_notes)==null?void 0:(a=a.notes_list)==null?void 0:a.edges;if(a==null||a.length===0)return j.jsx("div",{className:"x17ddzgb x14vqqas",children:j.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",isDisabled:!0,display:"block","data-testid":void 0,children:h._("u8ffdu8e2au91cdu8981u7684u5ba2u6237u4e92u52a8u3002")})});a=a.map(function(a){return a.node?j.jsx(c("CRMClientDetailsNote.react"),{note:a.node,onDelete:E,onEdit:F,pageID:f,surface:r,pageContactID:D,readOnly:s,onShowContactCardTosModal:t,shouldShowContactCardTos:u},a.node.id):null});return j.jsx("div",{className:"x14vqqas",children:a})},H=function(){if(!A||w)return;x(!0);B(p,{onComplete:function(){x(!1)}})},I=function(){if(!A)return null;return w?j.jsx("div",{className:"x1tciwvm x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",children:j.jsx(c("GeoSpinner.react"),{})}):j.jsx(c("BizKitContextCardMoreSection.react"),{className:"x1tciwvm x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",onClick:function(){c("ContactGraphSeeMoreNoteClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(r),page_id:f,page_contact_id:D,event_data:{},is_server_log:!1}}),H()}})};l(function(){z(!1)},[a.contactID]);return j.jsxs("div",{className:e,"data-testid":void 0,children:[j.jsxs(c("LeftRight.react"),{children:[j.jsx(c("GeoHeading.react"),{level:3,children:h._("u5907u6ce8")}),!y&&!v&&j.jsx(c("BizKitContextCardLinkButton.react"),{readOnly:s,label:h._("u6dfbu52a0u5907u6ce8"),onClick:function(){c("ContactGraphAddNoteClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(r),page_id:f,page_contact_id:D,event_data:{},is_server_log:!1}}),u?t():z(!0)},"data-testid":void 0})]}),y&&j.jsx(j.Suspense,{fallback:null,children:j.jsx(n,{isShown:y,setIsShown:z,onAddNote:g})}),G(),I()]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardLabelsSection.react",["fbt","BizInboxOffsiteEmailTourRefs","BizInboxStateContext","BizKitContextCardLabelsList.react","BizKitContextCardLabelsSection_contactLabels.graphql","BizKitContextCardLinkButton.react","BizKitContextCardManageLabelsSection.react","BizKitContextCardNewLabelSection.react","BizKitContextCardSectionHeader.react","BizKitContextCardSuggestedLabelsSection.react","BizKitContextCardTooltipConsts","BizKitContextCardUtils","ContactGraphManageLabelsClickFalcoEvent","ContextCardLabelUtils","LeftRight.react","RelayHooks","filterNulls","gkx","immutable","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useContext,l=e.useState,m=i!==void 0?i:i=b("BizKitContextCardLabelsSection_contactLabels.graphql");function a(a){var b,e,f,g,i=d("RelayHooks").useRelayEnvironment(),n=a.businessAssets,o=a.className,p=a.contactIdentity,q=a.contactLabels,r=a.pageID,s=a.onSelectLabel,t=a.surface,u=a.readOnly,v=a.onShowContactCardTosModal,w=a.shouldShowContactCardTos,x=a.shouldDisableBizInput;a=a.assetData;q=d("RelayHooks").useFragment(m,q);var y=q==null?void 0:(b=q.shared_attributes)==null?void 0:b.page_contact_id;b=(a==null?void 0:(b=a.custom_labels)==null?void 0:b.edges)||[];a=(a==null?void 0:(a=a.corp_labels)==null?void 0:a.edges)||[];b=d("ContextCardLabelUtils").parsePageLabelNode(t,b);a=d("ContextCardLabelUtils").parsePageLabelNode(t,a);b=b.concat(a);a=c("immutable").Map(b.map(function(a){return[a.name,a]}));b=l(!1);var z=b[0];b=b[1];var A=l(!1),B=A[0],C=A[1],D=q==null?void 0:(A=q.business_attributes)==null?void 0:(A=A.customer_labels)==null?void 0:(A=A.label_list)==null?void 0:A.__id;A=q==null?void 0:(A=q.shared_attributes)==null?void 0:(A=A.suggested_labels)==null?void 0:A.__id;var E=function(a,b){d("ContextCardLabelUtils").onUnsetLabel(i,D,p,a,b,t)},F=function(a,b,e,f,g){d("ContextCardLabelUtils").onAddLabel(i,c("filterNulls")([D]),p,e,a,g,r,f,t,b,y,"bizkit_context_card","add_label_contact_button")},G=k(c("BizInboxStateContext"));G=G.isWAOnly;e=(q==null?void 0:(e=q.business_attributes)==null?void 0:(e=e.customer_labels)==null?void 0:(e=e.label_list)==null?void 0:e.edges)||[];f=(q==null?void 0:(f=q.business_attributes)==null?void 0:(f=f.customer_labels)==null?void 0:(f=f.customer_custom_tags)==null?void 0:f.edges)||[];e=d("ContextCardLabelUtils").parsePageLabelNode(t,d("ContextCardLabelUtils").mergeContactAndCustomerLabels(e,f));f=d("ContextCardLabelUtils").parseSuggestedLabelNode((q==null?void 0:(f=q.shared_attributes)==null?void 0:(f=f.suggested_labels)==null?void 0:f.edges)||[]);g=(q==null?void 0:(g=q.shared_attributes)==null?void 0:(g=g.corp_label_list)==null?void 0:g.edges)||[];g=d("ContextCardLabelUtils").parsePageLabelNode(t,g);var H=e.concat(g);g=function(){return j.jsx(c("BizKitContextCardLabelsList.react"),{allLabels:H,onRemoveLabel:E,onSelectLabel:s,readOnly:u,pageID:p.business_id,onShowContactCardTosModal:v,shouldShowContactCardTos:w,pageContactID:y,surface:t})};return j.jsxs("div",{className:o,"data-testid":void 0,ref:d("BizInboxOffsiteEmailTourRefs").bizKitContextCardNewLabelSectionRef,children:[j.jsxs(c("LeftRight.react"),{children:[j.jsx(c("BizKitContextCardSectionHeader.react"),{sectionTitle:h._("u6807u7b7e"),tooltipsText:c("BizKitContextCardTooltipConsts").LABEL_TOOLTIP_TEXT,learnMoreLink:c("BizKitContextCardTooltipConsts").CONTACT_CARD_TOOLTIP_HELP_LINK,testid:void 0}),!x&&!G&&j.jsx(c("BizKitContextCardLinkButton.react"),{readOnly:u,"data-testid":void 0,label:h._("u7ba1u7406u6807u7b7e"),onClick:function(){c("ContactGraphManageLabelsClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(t),page_id:r,page_contact_id:y,event_data:{},is_server_log:!1}}),w?v():C(!B)}})]}),c("gkx")("1495")?j.jsx(c("BizKitContextCardLabelsList.react"),{allLabels:H,onRemoveLabel:E,onSelectLabel:s,readOnly:u,pageID:p.business_id,onShowContactCardTosModal:v,shouldShowContactCardTos:w,pageContactID:y,surface:t}):g(),!u&&!x&&!G&&j.jsx(c("BizKitContextCardNewLabelSection.react"),{isAddLabelToggle:z,setIsAddLabelToggle:b,onAddorCreateLabel:F,pageLabels:a,labels:q,onShowContactCardTosModal:v,shouldShowContactCardTos:w,surface:t,pageID:r,pageContactID:y}),!u&&!x&&!G&&j.jsx(c("BizKitContextCardSuggestedLabelsSection.react"),{contactIdentity:p,connectionID:A,conversationLabels:e,suggestedLabels:f,onCreateAndAddLabel:F,onShowContactCardTosModal:v,shouldShowContactCardTos:w,surface:t,pageID:r,pageContactID:y}),j.jsx(c("BizKitContextCardManageLabelsSection.react"),{pageID:r,labels:a,isShown:B,onToggle:C,surface:t,contactID:G?p.contact_id:null,businessAssets:n})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardSectionWrapper.react",["BizKitContextCardAboutDetailSection.react","BizKitContextCardAboutSectionFacebook.react","BizKitContextCardAboutSectionInstagram.react","BizKitContextCardActivitySection.react","BizKitContextCardAddLeadSection.react","BizKitContextCardMediaSection.react","BizKitContextCardNotesSection.react","BizKitContextCardProfileSection.react","BizKitContextLabelsWrapper.react","JSResource","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardOrdersSection.react").__setRef("BizKitContextCardSectionWrapper.react")),j=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardMessageSection.react").__setRef("BizKitContextCardSectionWrapper.react")),k=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardPaymentSection.react").__setRef("BizKitContextCardSectionWrapper.react"));function a(a){var b=a.data,d=a.sectionName,e=a.surface,f=a.pageID,g=a.bpnID,l=a.contactID,m=a.contactIdentity,n=a.onSelectLabel,o=a.onActivityListUpdated,p=a.isInKBankRollout,q=a.activitiesQueryReference,r=a.onBanUser,s=a.isBlockedInIG,t=a.readOnly,u=a.onShowContactCardTosModal,v=a.shouldShowContactCardTos,w=a.shouldDisableBizInput,x=a.pageContactID,y=a.mbsBusinessAssetsRef,z=a.pageRef,A=a.businessAssets,B=a.isPageEnabledForWAM,C=a.shouldShowPaymentOnboardingContextCard;switch(d){case"ABOUT":return h.jsx(c("BizKitContextCardAboutDetailSection.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",about:b,contactIdentity:m,pageID:f,bpnID:g,surface:e,readOnly:t,onShowContactCardTosModal:u,shouldShowContactCardTos:v,shouldDisableBizInput:w,isPageEnabledForWAM:B});case"FACEBOOK_PROFILE":return h.jsx(c("BizKitContextCardAboutSectionFacebook.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",details:b,pageID:f});case"INSTAGRAM_PROFILE":return h.jsx(c("BizKitContextCardAboutSectionInstagram.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",details:b});case"ACTIVITY":return e==="INBOX_MESSAGING_WA"?h.jsx(h.Fragment,{}):h.jsx(c("BizKitContextCardActivitySection.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",contactID:l,contactIdentity:m,pageID:f,isInKBankRollout:p,onActivityListUpdated:o,activitiesQueryReference:q,readOnly:t,surface:e,onShowContactCardTosModal:u,shouldShowContactCardTos:v,shouldDisableBizInput:w});case"LABEL":return h.jsx(c("BizKitContextLabelsWrapper.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",contactID:l,contactIdentity:m,pageID:f,contactLabels:b,onSelectLabel:n,surface:e,readOnly:t,onShowContactCardTosModal:u,shouldShowContactCardTos:v,shouldDisableBizInput:w,pageRef:z,mbsBusinessAssetsRef:y,businessAssets:A});case"MEDIA":return h.jsx(c("BizKitContextCardMediaSection.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",media:b,pageID:f,readOnly:t});case"MESSAGE":return h.jsx(j,{details:b,pageID:f,surface:e});case"NOTE":return h.jsx(c("BizKitContextCardNotesSection.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",contactID:l,contactIdentity:m,pageID:f,notes:b,surface:e,readOnly:t,onShowContactCardTosModal:u,shouldShowContactCardTos:v});case"PROFILE":return h.jsx(c("BizKitContextCardProfileSection.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",surface:e,profile:b,pageID:f,onBanUser:r,isBlockedInIG:s,shouldShowCloseButton:a.shouldShowCloseButton,onClose:a.onClose,readOnly:t});case"ORDER":return h.jsx(i,{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",pageID:f,orders:b,readOnly:t,surface:e,onShowContactCardTosModal:u,shouldShowContactCardTos:v});case"THIRD_PARTY_DATA":return h.jsx(h.Fragment,{});case"LEAD_STAGE":return h.jsx(c("BizKitContextCardAddLeadSection.react"),{pageID:f,contactID:x,surface:e,businessAssets:A});case"PAYMENT":return h.jsx(k,{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",data:b,pageID:f,shouldShowPaymentOnboardingContextCard:C});default:return h.jsx(h.Fragment,{})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivitySection.react",["fbt","BIZInboxClientLogger","BizInboxAYMTTipContext","BizInboxAYMTTipNames","BizInboxChannelTipRenderer.react","BizInboxConfigUtils","BizInboxFeatureTipRenderer.react","BizInboxNavChannel","BizInboxOmnichannelFeatureTourRefs.react","BizInboxStateContext","BizKitContextCardActivityDropDown.react","BizKitContextCardActivityListSection.react","BizKitContextCardActivitySectionQuery.graphql","BizKitContextCardActivitySection_contact.graphql","BizKitContextCardSectionHeader.react","BizKitContextCardTooltipConsts","GeoSpinner.react","LeftRight.react","RelayHooks","bizInboxStateShowOffsiteEmailOnboardingIntroModalReducer","cr:4615","getBizInboxUnifiedThreadsQuery","react","useBizInboxAYMTTipValidator","useBizInboxStateReducers"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react");e=d("react");var l=e.Suspense,m=e.useContext,n=e.useEffect,o=e.useState,p=i!==void 0?i:i=b("BizKitContextCardActivitySection_contact.graphql"),q=j!==void 0?j:j=b("BizKitContextCardActivitySectionQuery.graphql");function a(a){var e=a.activitiesQueryReference;a=babelHelpers.objectWithoutPropertiesLoose(a,["activitiesQueryReference"]);var f=m(c("BizInboxStateContext"));f=f.selectedThreadID;var g=a.contactIdentity;f=(g=b("cr:4615")==null?void 0:b("cr:4615").shouldUseUnifiedQuery("context_card_details",{selected_thread_item_id:(f=f)!=null?f:"",business_id:(f=g==null?void 0:g.business_id)!=null?f:""}))!=null?g:!1;if(d("getBizInboxUnifiedThreadsQuery").getShouldUnifyContextCardQueries()&&f)return k.jsx(r,babelHelpers["extends"]({activitiesQueryReference:e},a));return e==null?k.jsx(k.Fragment,{children:" "}):k.jsx(s,babelHelpers["extends"]({activitiesQueryReference:e},a))}a.displayName=a.name+" [from "+f.id+"]";function r(a){var c=a.className,d=a.pageID,e=a.isInKBankRollout,f=a.contactID,g=a.contactIdentity,h=a.onActivityListUpdated,i=a.readOnly,j=a.surface,l=a.onShowContactCardTosModal,m=a.shouldShowContactCardTos;a=a.shouldDisableBizInput;var p=o(null),q=p[0],r=p[1];n(function(){b("cr:4615")&&b("cr:4615").execUnifiedQuery("context_card_details",function(a){r(a==null?void 0:a.activitiesRef)})},[]);if(b("cr:4615")){return k.jsx(t,{canAddActivities:(p=q==null?void 0:q.can_add_activities)!=null?p:!1,className:c,contactID:f,contactIdentity:g,pageID:d,isInKBankRollout:e,onActivityListUpdated:h,readOnly:i,surface:j,onShowContactCardTosModal:l,shouldShowContactCardTos:m,shouldDisableBizInput:a,contactRef:q==null?void 0:q.selected_biz_crm_contact,dropDownPageRef:q==null?void 0:q.page.dropdownRef,dropDownBizAssetRef:q==null?void 0:q.xfb_mbs_business_assets.dropdownRef,listItemPageRef:q==null?void 0:q.page.listItemRef,listItemBizAssetRef:q==null?void 0:q.xfb_mbs_business_assets.listItemRef})}return k.jsx(k.Fragment,{children:" "})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var b,c=a.className,e=a.pageID,f=a.isInKBankRollout,g=a.contactID,h=a.contactIdentity,i=a.onActivityListUpdated,j=a.activitiesQueryReference,l=a.readOnly,m=a.surface,n=a.onShowContactCardTosModal,o=a.shouldShowContactCardTos;a=a.shouldDisableBizInput;j=d("RelayHooks").usePreloadedQuery(q,j);return k.jsx(t,{canAddActivities:(b=j==null?void 0:(b=j.biz_crm_contact_card_config)==null?void 0:b.can_add_activities)!=null?b:!1,className:c,contactID:g,contactIdentity:h,pageID:e,isInKBankRollout:f,onActivityListUpdated:i,readOnly:l,surface:m,onShowContactCardTosModal:n,shouldShowContactCardTos:o,shouldDisableBizInput:a,contactRef:j==null?void 0:j.retrieve_biz_crm_contact,dropDownPageRef:j==null?void 0:j.page,dropDownBizAssetRef:j==null?void 0:j.xfb_mbs_business_assets,listItemPageRef:j==null?void 0:j.page,listItemBizAssetRef:j==null?void 0:j.xfb_mbs_business_assets})}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b,e,g=a.canAddActivities,i=a.className,j=a.pageID,n=a.isInKBankRollout,q=a.contactID,r=a.contactIdentity,s=a.onActivityListUpdated,t=a.readOnly,u=a.surface,v=a.onShowContactCardTosModal,w=a.shouldShowContactCardTos,x=a.shouldDisableBizInput,y=a.contactRef,z=a.dropDownPageRef,A=a.dropDownBizAssetRef,B=a.listItemPageRef;a=a.listItemBizAssetRef;y=d("RelayHooks").useFragment(p,y);b=y==null?void 0:(b=y.fb_attributes)==null?void 0:b.user_id;e=y==null?void 0:(e=y.shared_attributes)==null?void 0:e.page_contact_id;var C=o(null),D=C[0],E=C[1];C=m(c("BizInboxStateContext"));var F=C.navChannel;C=C.pageID;var G=function(a){E(a),s(a)};C=C!=null?k.jsx(c("BizInboxChannelTipRenderer.react"),{tipPosition:"contact-card-activity-section"}):null;var H=c("useBizInboxStateReducers")([c("bizInboxStateShowOffsiteEmailOnboardingIntroModalReducer")]),I=m(c("BizInboxAYMTTipContext"));I=c("useBizInboxAYMTTipValidator")(I,"contact-card-activity-section");I=I==null?void 0:I.tipSpec.tip_name;var J=F===c("BizInboxNavChannel").MESSENGER&&I===c("BizInboxAYMTTipNames").BIZ_INBOX_OFFSITE_CONTACT_CARD_ACTIVITY_UPSELL_TIP;function K(){if(!J)return null;var a=d("BizInboxConfigUtils").parseDefaultPlatform(F),b=function(){var b="contact_card_activity_section_upsell";H({shouldShowOffsiteEmailOnboardingIntroModal:!0,offsiteEmailOnboardingSourceFeature:b,type:"show_offsite_email_onboarding_intro_modal.update"});d("BIZInboxClientLogger").logOffsiteEmailStartOnboard(j,a,b)};return k.jsx(c("BizInboxFeatureTipRenderer.react"),{contextRef:{current:d("BizInboxOmnichannelFeatureTourRefs.react").bizInboxContactCardActivitySectionRef.current},tipPosition:"contact-card-activity-section",onComplete:b,align:"middle",tourCompletionLabel:"try_it"})}K.displayName=K.name+" [from "+f.id+"]";return k.jsxs("div",{className:i,"data-testid":void 0,ref:d("BizInboxOmnichannelFeatureTourRefs.react").bizInboxContactCardActivitySectionRef,children:[k.jsxs(c("LeftRight.react"),{children:[k.jsx(c("BizKitContextCardSectionHeader.react"),{sectionTitle:h._("u52a8u6001"),tooltipsText:c("BizKitContextCardTooltipConsts").ACTIVITY_TOOLTIP_TEXT,learnMoreLink:c("BizKitContextCardTooltipConsts").CONTACT_CARD_TOOLTIP_HELP_LINK,testid:void 0}),!x&&g===!0&&k.jsx(c("BizKitContextCardActivityDropDown.react"),{contactID:q,page:z,mbsBusinessAssets:A,pageID:j,readOnly:t,userID:b,connectionID:D,contactIdentity:r,surface:u,pageContactID:e,onShowContactCardTosModal:v,shouldShowContactCardTos:w})]}),C,k.jsx(l,{fallback:k.jsx(c("GeoSpinner.react"),{center:!0}),children:k.jsx(c("BizKitContextCardActivityListSection.react"),{activity:y,page:B,mbsBusinessAssets:a,pageID:j,userID:b,surface:u,pageContactID:e,onActivityListUpdated:G,isInKBankRollout:n,onShowContactCardTosModal:v,shouldShowContactCardTos:w})}),K()]})}t.displayName=t.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardNewLabelSection.react",["fbt","ix","BizInboxLabelSearchSource","BizInboxLabelSearchableEntry","BizKitContextCardUtils","ClickableArea.react","ContactGraphAddLabelClickFalcoEvent","ContextCardLabelUtils","FlexLayout.react","GeoBaseTypeaheadItem.react","GeoMediaItem.react","GeoTokenLabel.react","GeoTokenLabelColorEnum","GeoTypeahead.react","Image.react","PagesManagerInboxContextCardLabelsTypeaheadRenderer.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useState,l={"#90949C":j.jsx(c("Image.react"),{src:i("1278101")}),"#8A73C9":j.jsx(c("Image.react"),{src:i("1631086")}),"#F65569":j.jsx(c("Image.react"),{src:i("1278102")}),"#5291FF":j.jsx(c("Image.react"),{src:i("294498")}),"#FB9240":j.jsx(c("Image.react"),{src:i("294500")}),"#72A737":j.jsx(c("Image.react"),{src:i("294499")})};function a(a){var b=a.isAddLabelToggle,e=a.setIsAddLabelToggle,f=a.pageLabels,g=a.labels,m=a.onAddorCreateLabel,n=a.onShowContactCardTosModal,o=a.shouldShowContactCardTos,p=a.surface,q=a.pageID,r=a.pageContactID,s=(g==null?void 0:(a=g.business_attributes)==null?void 0:(g=a.customer_labels)==null?void 0:(a=g.label_list)==null?void 0:a.edges)||[];g=f.toArray();g=g.filter(function(a){return a.data_silo!=="DC_SILO_CORPORATION"});a=g.filter(function(a){return!s.find(function(b){return((b=b.node)==null?void 0:b.name)===a.name})});g=new(c("BizInboxLabelSearchSource"))(a);a=k("");var t=a[0],u=a[1];a=k(null);var v=a[0],w=a[1],x=d("ContextCardLabelUtils").genIfPageExceedLabelLimit(f);b?a=j.jsx(c("Image.react"),{src:i("656611")}):a=j.jsx(c("Image.react"),{src:i("497293")});f=h._("u6dfbu52a0u6807u7b7e");var y=h._("u6dfbu52a0u6807u7b7e"),z=h._("u65b0u6807u7b7eu540du79f0u4e0du80fdu53eau5305u542bu7a7au683c"),A=function(){w(null);if(t.trim()===""){w(z);return}x?w(d("ContextCardLabelUtils").TAG_REACH_LIMIT_ERROR_MSG):m(t,!1);u("")},B=function(a){u("");w(null);if(a instanceof c("BizInboxLabelSearchableEntry")){var b=a.getData().id,d=a.getData().name;a=a.getData().color;m(d,!1,b,a)}};function C(a){a.length-----
BizKitContextCardActivityDropDown.react",["cx","fbt","ix","BizKitContextCardActivityDropDown_mbsBusinessAssets.graphql","BizKitContextCardActivityDropDown_page.graphql","BizKitContextCardAddActivityMutation","BizKitContextCardLinkButton.react","BizKitContextCardUtils","CRMEventsTypedLogger","ContactGraphAddActivityClickFalcoEvent","ContextualDialogArrow","ContextualLayerShowAndHideOnScrollOut","ContextualLayerUpdateOnScroll","Image.react","JSResource","MessengerAdsConversionFunnelTypedLogger","MessengerConversionEvent","PmaThreadActionSystemEventFalcoEvent","PopoverMenu.react","QE2Logger","QPLUserFlow","ReactXUIMenu","RelayHooks","ThreadActionSystemQPLConstants","getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils","lazyLoadComponent","react","useSimpleNUX_LEGACY"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l,m=d("react");e=d("react");var n=e.useEffect,o=e.useRef,p=e.useState,q=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardActivityOrderDialog.react").__setRef("BizKitContextCardActivityDropDown.react")),r=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxOrderShippedActivitySendDetailsDialog.react").__setRef("BizKitContextCardActivityDropDown.react")),s=c("lazyLoadComponent")(c("JSResource")("XUIAmbientNUX.react").__setRef("BizKitContextCardActivityDropDown.react"));function t(a){var b=c("useSimpleNUX_LEGACY")("290161645875967"),d=b[0],e=b[1];b=p(!1);var f=b[0],g=b[1];n(function(){if(!d)return;var a=window.setTimeout(function(){g(!0)},1e3);return function(){return window.clearTimeout(a)}},[d]);return f&&m.jsx(s,{alignment:"right",behaviors:{ContextualLayerUpdateOnScroll:c("ContextualLayerUpdateOnScroll"),ContextualLayerShowAndHideOnScrollOut:c("ContextualLayerShowAndHideOnScrollOut")},contextRef:function(){return a.contextRef.current},onCloseButtonClick:function(){e(),g(!1)},position:"below",shown:!0,width:"auto",children:i._("u5728 Messenger u4e2du7ba1u7406u548cu8ffdu8e2au8ba2u5355u4ee5u53cau8fdbu884cu9884u7ea6u3002")},"clips_button_nux")}t.displayName=t.name+" [from "+f.id+"]";function a(a){var e=d("RelayHooks").useRelayEnvironment(),f=p(null),g=f[0],h=f[1];f=d("RelayHooks").useFragment(k!==void 0?k:k=b("BizKitContextCardActivityDropDown_page.graphql"),a.page);var n=d("RelayHooks").useFragment(l!==void 0?l:l=b("BizKitContextCardActivityDropDown_mbsBusinessAssets.graphql"),a.mbsBusinessAssets),s=d("getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils").getIsDependencyOfRemovePageDependencyEnabledToolForContactCard(a.surface);s=s?n:f;var u=(s==null?void 0:(n=s.ctm_www_tas_order_integration_gk)==null?void 0:n.is_order_integration_enabled)===!0;f=o(null);var v=function(b){c("ContactGraphAddActivityClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(a.surface),page_id:x,page_contact_id:a.pageContactID,event_data:{activity_type:b},is_server_log:!1}}),c("QPLUserFlow").addPoint(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT,b),d("BizKitContextCardAddActivityMutation").commit(e,z,{interactionType:b,identity:A,entrypoint:"CONTACT_CARD"},{onSuccess:function(e){e=e==null?void 0:(e=e.biz_crm_contact_add_action)==null?void 0:(e=e.action_new)==null?void 0:e.interaction_id;e!=null&&(b==="PAYMENT_RECEIVED"||b==="ORDER_SHIPPED")&&(d("QE2Logger").logExposureForPage("ctm_www_tas_order_integration_universe",x),u&&h({orderStatus:b,interactionId:e}));c("PmaThreadActionSystemEventFalcoEvent").log(function(){var c;return{page_id:a.pageID,consumer_id:(c=y)!=null?c:w,interaction_type:b,has_details:!1,entrypoint:"CONTACT_CARD"}});c("QPLUserFlow").endSuccess(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT)},onFailure:function(){return c("QPLUserFlow").endFailure(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT,d("ThreadActionSystemQPLConstants").ADD_ACTIVITY_MUTATION_FAILED)}})},w=a.contactID,x=a.pageID;s=a.readOnly;var y=a.userID,z=a.connectionID,A=a.contactIdentity;n=a.onShowContactCardTosModal;var B=a.shouldShowContactCardTos,C=p(!1),D=C[0],E=C[1];C=function(){var a;new(c("MessengerAdsConversionFunnelTypedLogger"))().setName(c("MessengerConversionEvent").PAGE_CLICK_ADD_ACTIVITY).setPageID(x).setConsumerID((a=y)!=null?a:w).log();new(c("CRMEventsTypedLogger"))().setPageID(x).setEvent("page_click_add_activity").setUISurface("contact_card_activity").setIsServerLog(!1).log();c("QPLUserFlow").start(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT)};var F=m.jsxs(c("ReactXUIMenu"),{children:[m.jsx(c("ReactXUIMenu").Item,{onClick:function(){v("APPOINTMENT_BOOKED")},icon:m.jsx(c("Image.react"),{src:j("961923")}),"data-testid":void 0,children:"Appointment Booked"}),m.jsx(c("ReactXUIMenu").Item,{onClick:function(){v("ORDER_PLACED")},icon:m.jsx(c("Image.react"),{src:j("961939")}),"data-testid":void 0,children:"Order Placed"}),m.jsx(c("ReactXUIMenu").Item,{onClick:function(){v("PAYMENT_RECEIVED")},icon:m.jsx(c("Image.react"),{src:j("961932")}),"data-testid":void 0,children:"Payment Received"}),m.jsx(c("ReactXUIMenu").Item,{onClick:function(){v("ORDER_SHIPPED")},icon:m.jsx(c("Image.react"),{src:j("961946")}),"data-testid":void 0,children:"Order Shipped"})]});return m.jsxs("div",{className:"uiContextualLayerParent",children:[B?m.jsx(c("BizKitContextCardLinkButton.react"),{readOnly:s,label:i._("u6dfbu52a0u52a8u6001"),onClick:n}):m.jsx(c("PopoverMenu.react"),{alignh:"right",alignv:"baseline",layerBehaviors:[c("ContextualDialogArrow")],menu:F,"data-testid":void 0,ref:f,children:m.jsx(c("BizKitContextCardLinkButton.react"),{readOnly:s,label:i._("u6dfbu52a0u52a8u6001"),onClick:C})}),f.current!=null&&m.jsx(t,{contextRef:f}),u&&y!=null&&m.jsxs(m.Fragment,{children:[g!=null&&m.jsx(m.Suspense,{fallback:null,children:m.jsx(q,{attachOrderModalType:g.orderStatus,interactionId:g.interactionId,pageID:x,userID:y,hideModal:function(){h(null)},setShowOrderShippedDialog:E})}),D&&m.jsx(m.Suspense,{fallback:null,children:m.jsx(r,{onHide:function(){E(!1)},onSuccess:function(){E(!1)},pageID:x,userID:y})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardAboutDetailSection.react",["fbt","BizKitContextCardAboutDetailSection_about.graphql","BizKitContextCardAboutSectionOffline.react","GeoHeading.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");function a(a){var e=a.about,f=a.className,g=a.contactIdentity,k=a.pageID,l=a.bpnID,m=a.surface,n=a.readOnly,o=a.onShowContactCardTosModal,p=a.shouldShowContactCardTos,q=a.shouldDisableBizInput;a=a.isPageEnabledForWAM;e=d("RelayHooks").useFragment(i!==void 0?i:i=b("BizKitContextCardAboutDetailSection_about.graphql"),e);return j.jsxs("div",{className:f,"data-testid":void 0,children:[j.jsx(c("GeoHeading.react"),{level:3,children:q?h._("u8bbfu5ba2u7528u6237"):h._("u7b80u4ecb")}),j.jsx(c("BizKitContextCardAboutSectionOffline.react"),{details:e,contactIdentity:g,pageID:k,bpnID:l,surface:m,isPageEnabledForWAM:a,readOnly:n,onShowContactCardTosModal:o,shouldShowContactCardTos:p})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardAboutSectionOffline.react",["fbt","ix","BIZInboxClientLogger","BizEmailSubscriptionConsts","BizInboxFbtUtils","BizInboxOmnichannelFeatureTourRefs.react","BizInboxStateContext","BizKitContactCardOmnichannelContext.react","BizKitContextCardAboutSectionLoggingUtils","BizKitContextCardAboutSectionOfflineRow.react","BizKitContextCardAboutSectionOffline_details.graphql","BizKitContextCardConstants","BizKitContextCardEditProfileMutation","BizKitContextCardLinkButton.react","CountryNames","GeoBaseText.react","GeoButton.react","GeoLink.react","GeoToast.react","ISOCountryCode","Image.react","JSResource","LeftRight.react","RelayHooks","RelayModern","WhatsAppMarketingFbtUtils","geoMargin","isTruthy","lazyLoadComponent","react","stylex","useGeoToaster"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useContext,m=e.useEffect,n=e.useState,o=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardEditProfileDialog.react").__setRef("BizKitContextCardAboutSectionOffline.react")),p="https://www.facebook.com/business/help/925702697860930";function q(a){a=((a=a.shared_attributes)==null?void 0:a.profile)||{};var b=a.phone;a=a.fallback_phone_number;b=(b==null?void 0:b.phoneNumber)||a;return{icon:k.jsx(c("Image.react"),{src:i("972302")}),value:(a=b)!=null?a:h._("+ u624bu673au53f7")}}function r(a,b){var e,f,g;b=b==="CRM_DESTINATION";e=(e=a.shared_attributes)==null?void 0:(e=e.profile)==null?void 0:e.email;f=(f=a.shared_attributes)==null?void 0:(f=f.profile)==null?void 0:f.suggested_email_address;g=((g=a.wa_attributes)==null?void 0:g.wa_customer_id)!=null;var j=null,l=!1;e!=null?j=e:f!=null?(j=f,l=!0):j=h._("+ u90aeu7bb1");e={icon:k.jsx(c("Image.react"),{src:i("569294")}),value:j,"data-testid":"context_card_details_email",showSuggestionOptions:l};if(g)return e;g=(l=a==null?void 0:(f=a.business_attributes)==null?void 0:(j=f.communication_preference)==null?void 0:j.email_subscription_status)!=null?l:"UNCONFIRMED";a=d("BizEmailSubscriptionConsts").getEmailSubscriptionStatusConsts(g);f={iconSecondLine:b?k.jsx(c("Image.react"),{src:a.icon_size_8}):null,valueSecondLine:b?a.label:null};return babelHelpers["extends"]({},e,f)}function s(a){return{icon:k.jsx(c("Image.react"),{src:i("972294")}),value:((a=a.shared_attributes)==null?void 0:(a=a.profile)==null?void 0:a.formatted_birthday)||h._("+ u751fu65e5"),"data-testid":"context_card_details_birthday"}}function t(a,b){var d,e;b=b==="CRM_DESTINATION";d=a==null?void 0:(d=a.shared_attributes)==null?void 0:(d=d.profile)==null?void 0:d.country_code;return{icon:k.jsx(c("Image.react"),{src:i("820011")}),value:((e=a.shared_attributes)==null?void 0:(e=e.profile)==null?void 0:e.address)||h._("+ u5730u5740"),valueSecondLine:(e=a.shared_attributes)==null?void 0:(a=e.profile)==null?void 0:a.city_state,valueThirdLine:b&&c("isTruthy")(d)?c("CountryNames")[c("ISOCountryCode")[d]]:null,"data-testid":"context_card_details_address"}}function u(){return k.jsxs("div",{children:[k.jsx("div",{className:"xz9dl7a x4uap5 xsag5q8 xkhd6sd",children:k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("u8fd9u4f4du7528u6237u6b63u4ee5u8bbfu5ba2u8eabu4efdu4f7fu7528u4f60u7684u7f51u7ad9u804au5929u63d2u4ef6u3002u5728u7ed9u8fd9u4f4du7528u6237u53d1u7b2cu4e00u6761u6d88u606fu540eu7684 24 u5c0fu65f6u5185uff0cu4f60u53efu4ee5u4e0eu4e4bu4e92u53d1u6d88u606fuff1b24 u5c0fu65f6u540eu5219u65e0u6cd5u518du5411u5bf9u65b9u53d1u6d88u606fu3002")})}),k.jsx("div",{className:"xz9dl7a x4uap5 xsag5q8 xkhd6sd",children:k.jsxs(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:[h._("u4f46u662fuff0cu4f60u4ecdu53efu5728u6536u4ef6u7bb1u4e2du67e5u770bu804au5929u8bb0u5f55u3002"),k.jsx(c("GeoLink.react"),{href:p,target:"_blank",children:"Learn More"})]})})]})}u.displayName=u.name+" [from "+f.id+"]";function v(a){var b=a.onEditButtonClicked,d=a.readOnly;a=a.editButtonDataTestID;return k.jsxs("div",{className:"xz9dl7a x4uap5 xsag5q8 xkhd6sd",children:[k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("u8bf7u6dfbu52a0u8054u7cfbu65b9u5f0fu7b49u7528u6237u4fe1u606fu3002")}),k.jsx("div",{className:c("stylex")(c("geoMargin").top12),children:k.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:d,disabledMessage:c("BizKitContextCardConstants").CONTACT_CARD_READ_ONLY_MODE_DISABLE_BUTTON_HOVER_OVER_TEXT,label:h._("u6dfbu52a0u4fe1u606f"),onClick:b})})]})}v.displayName=v.name+" [from "+f.id+"]";function a(a){var e,f,g,p,w=a.pageID,x=a.contactIdentity,y=a.surface,z=a.readOnly,A=a.onShowContactCardTosModal,B=a.shouldShowContactCardTos,C=a.bpnID,D=a.isPageEnabledForWAM,E=n(!1),F=E[0],G=E[1];E=l(c("BizInboxStateContext"));E=E.isWAOnly;var H=d("RelayHooks").useFragment(j!==void 0?j:j=b("BizKitContextCardAboutSectionOffline_details.graphql"),a.details),I=H==null?void 0:(a=H.shared_attributes)==null?void 0:a.page_contact_id;a=function(){G(!0),d("BizKitContextCardAboutSectionLoggingUtils").logAddContactDetailsClick(w,I,y)};var J=function(){G(!0),d("BizKitContextCardAboutSectionLoggingUtils").logEditContactDetailsClick(w,I,y)},K=function(){G(!1)},L=d("RelayHooks").useRelayEnvironment(),M=d("BizKitContactCardOmnichannelContext.react").useBizKitContactCardOmnichannelContext(),N=c("useGeoToaster")(),O=N.add,P=k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getContactUpdateSuccessToastHeading()}),Q=function(a){((a=a.biz_crm_contact_update_profile_fields)==null?void 0:a.success)===!0&&(d("RelayModern").commitLocalUpdate(L,function(a){if(M.activityConnectionID!=null){a=a.get(M.activityConnectionID);a!=null&&a.invalidateRecord()}}),O(P))};N=function(){var a;if(B){A();return}a=H==null?void 0:(a=H.shared_attributes)==null?void 0:(a=a.profile)==null?void 0:a.suggested_email_address;d("BizKitContextCardEditProfileMutation").commit(L,{identity:x,update_fields:{email:a,should_delete_email_suggestion:!0},surface:y},{onSuccess:Q,onFailure:function(){}});d("BIZInboxClientLogger").logEmailContactInfoSuggestionAccept(w)};var R=function(){d("BizKitContextCardEditProfileMutation").commit(L,{identity:x,update_fields:{should_delete_email_suggestion:!0},surface:y}),d("BIZInboxClientLogger").logEmailContactInfoSuggestionReject(w)},S=H==null?void 0:(e=H.shared_attributes)==null?void 0:(e=e.profile)==null?void 0:e.email,T=H==null?void 0:(e=H.shared_attributes)==null?void 0:(e=e.profile)==null?void 0:e.suggested_email_address;m(function(){S==null&&T!=null&&d("BIZInboxClientLogger").logEmailContactInfoSuggestionImpression(w)},[S,T,w]);e=H==null?void 0:(e=H.shared_attributes)==null?void 0:(e=e.profile)==null?void 0:e.guest_id;f=Object.entries((H==null?void 0:(f=H.shared_attributes)==null?void 0:f.profile)||{}).every(function(a){return a[0]==="guest_id"||a[1]==null||a[1]===""});g=(H==null?void 0:(g=H.wa_attributes)==null?void 0:g.wa_customer_id)!=null;p=d("WhatsAppMarketingFbtUtils").getLabelForStatus(H==null?void 0:(p=H.wa_attributes)==null?void 0:p.opt_in_status);if(e!=null)return k.jsx(u,{});e=F&&k.jsx(k.Suspense,{fallback:null,children:k.jsx(o,{pageID:w,bpnID:C,hideContactCardProfileSectionEditDialog:K,contactIdentity:x,contact:H,surface:y,isPageEnabledForWAM:D})});return f||H==null?k.jsxs(k.Fragment,{children:[e,k.jsx(v,{onEditButtonClicked:B?A:a,readOnly:z,editButtonDataTestID:"context_card_details_edit"})]}):k.jsxs("div",{className:"xz9dl7a xn6708d xsag5q8 x1ye3gou",children:[k.jsxs(c("LeftRight.react"),{children:[k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("u5df2u6dfbu52a0u7684u4fe1u606f")}),!E&&k.jsx(c("BizKitContextCardLinkButton.react"),{"data-testid":void 0,readOnly:z,label:h._("u7f16u8f91"),onClick:B?A:J})]}),e,k.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},q(H))),g&&D?k.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,{icon:k.jsx(c("Image.react"),{src:i("617781")}),value:p}):null,k.jsx("div",{ref:d("BizInboxOmnichannelFeatureTourRefs.react").bizInboxContactCardEmailFieldRef,children:k.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},r(H,y),{onTakeSuggestion:N,onRejectSuggestion:R}))}),k.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},s(H))),k.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},t(H,y)))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivityListSection.react",["fbt","BizKitContactCardOmnichannelContext.react","BizKitContextCardActivityListItem3DWrapper.react","BizKitContextCardActivityListSection_activity.graphql","BizKitContextCardMoreSection.react","BizKitContextCardUtils","ContactGraphSeeMoreActivityClickFalcoEvent","GeoBaseText.react","JSResource","PagesContextCardHistoryStoryViewer.react","RelayHooks","lazyLoadComponent","nullthrows","react","useToggle"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.startTransition,l=e.useEffect,m=e.useState,n=c("lazyLoadComponent")(c("JSResource")("BizInboxOmnichannelEmailThreadDetailViewModal.react").__setRef("BizKitContextCardActivityListSection.react")),o=5,p=i!==void 0?i:i=b("BizKitContextCardActivityListSection_activity.graphql");function a(a){var b=a.activity,e=a.pageID,f=a.userID,g=a.surface,i=a.pageContactID,q=a.isInKBankRollout,r=a.onActivityListUpdated,s=a.onShowContactCardTosModal,t=a.shouldShowContactCardTos;b=d("RelayHooks").usePaginationFragment(p,b);var u=b.data,v=b.loadNext,w=b.hasNext,x=b.refetch;b=m(null);var y=b[0],z=b[1];b=c("useToggle")(!1);var A=b[0],B=b[1];b=m({threadID:"",title:""});var C=b[0],D=b[1],E=u==null?void 0:(b=u.all_actions)==null?void 0:(b=b.interaction_count)==null?void 0:b.count,F=u==null?void 0:(b=u.all_actions)==null?void 0:(b=b.actions)==null?void 0:(b=b.edges)==null?void 0:b.length,G=d("BizKitContactCardOmnichannelContext.react").useBizKitContactCardOmnichannelContext(),H=u==null?void 0:(b=u.all_actions)==null?void 0:(b=b.actions)==null?void 0:b.__id;l(function(){H!=null&&(r(H),G.setActivityConnectionID(H))},[r,H,G]);d("RelayHooks").useSubscribeToInvalidationState([H].filter(Boolean),function(){var a=u==null?void 0:u.id;a!=null&&k(function(){x({count:o,id:a})})});var I=function(){c("ContactGraphSeeMoreActivityClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(g),page_id:e,page_contact_id:i,event_data:{},is_server_log:!1}}),w&&v(o)},J=function(a){a=(a=a.contact_action)==null?void 0:(a=a.story)==null?void 0:a.id;a!=null&&z(a)};b=function(){if(E==null||F==null)return null;return E<=F?null:j.jsx(c("BizKitContextCardMoreSection.react"),{className:"x1tciwvm x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",onClick:I})};var K=function(){var b;b=u==null?void 0:(b=u.all_actions)==null?void 0:(b=b.actions)==null?void 0:b.edges;if(b==null||b.length===0)return j.jsx("div",{className:"x17ddzgb x14vqqas",children:j.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",isDisabled:!0,display:"block","data-testid":void 0,children:h._("u8ffdu8e2au91cdu8981u7684u5ba2u6237u4e92u52a8u3002")})});b=b.map(function(b,d){var h;return((h=b.node)==null?void 0:h.codeSplitWrapper)!=null&&j.jsx(c("BizKitContextCardActivityListItem3DWrapper.react"),{wrapperRef:(h=b.node)==null?void 0:h.codeSplitWrapper,isInKBankRollout:q,page:a.page,mbsBusinessAssets:a.mbsBusinessAssets,pageID:e,surface:g,pageContactID:i,selectInteraction:J,onShowContactCardTosModal:s,shouldShowContactCardTos:t,userID:f,toggleShouldShowOmnichannelEmailDetailView:B,setActiveEmailThread:D},"interaction_"+d)});return j.jsx("div",{className:"x14vqqas",children:b})},L=function(){return y!=null?j.jsx(c("PagesContextCardHistoryStoryViewer.react"),{pageID:e,storyToken:y,userID:c("nullthrows")(f),onClose:function(){return z(null)}}):null},M=function(){return j.jsx(j.Suspense,{fallback:null,children:j.jsx(n,{toggleShouldShow:B,activeEmailThread:C})})};return j.jsxs("div",{children:[L(),K(),b(),A&&M()]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardSuggestedLabelsSection.react",["fbt","BizInboxFeatureTipRenderer.react","BizInboxStateContext","BizKitContextCardLabel.react","BizKitContextCardUtils","CRMContextCardSuggestedLabels","ContactGraphSuggestedLabelDismissFalcoEvent","ContextCardLabelUtils","GeoText.react","LeftRight.react","RelayHooks","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useContext,k=b.useRef;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=a.contactIdentity,f=a.conversationLabels,g=a.connectionID,l=a.suggestedLabels,m=a.onCreateAndAddLabel,n=a.onShowContactCardTosModal,o=a.shouldShowContactCardTos,p=a.surface,q=a.pageID,r=a.pageContactID;a=j(c("BizInboxStateContext"));var s=a.shouldShowPriorityInbox;a=a.shouldShowMLSuggestedLabel;var t=k(null),u=i.jsx(c("BizInboxFeatureTipRenderer.react"),{contextRef:t,tipPosition:"suggested-label",contextualLayerPosition:"start"}),v,w=a?function(a,f,h,i){d("ContextCardLabelUtils").onDismissSuggestedLabel(b,g,e,a,f,p),c("ContactGraphSuggestedLabelDismissFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(p),page_id:q,page_contact_id:r,event_data:{label_name:f,is_bulk_action:!1,is_suggested_label:!0,content_type:i,label_color:h},is_server_log:!1}})}:null;a=l.filter(function(a){return!f.find(function(b){return b.name.toLocaleLowerCase()===a.name.toLocaleLowerCase()})});s&&(a=a.filter(function(a){return a.name.toLocaleLowerCase()!==c("CRMContextCardSuggestedLabels")[1].name.toString().toLocaleLowerCase()}));a.length!==0&&(v=a.map(function(a,b){return a&&i.jsxs("div",{ref:d("ContextCardLabelUtils").genUpsellSuggestedLabel(b,a,q,p,r)===!0?t:null,className:"x1rg5ohu",children:[i.jsx(c("BizKitContextCardLabel.react"),{color:c("nullthrows")(a.color),name:c("nullthrows")(a.display_name.toString()),contentType:c("nullthrows")(a.content_type),createName:c("nullthrows")(a.name),id:c("nullthrows")(a.id),onDismissLabel:w,isSuggestedLabel:!0,onAddorCreateLabel:m,readOnly:!1,onShowContactCardTosModal:n,shouldShowContactCardTos:o}),d("ContextCardLabelUtils").genUpsellSuggestedLabel(b,a,q,p,r)===!0?u:null]},c("nullthrows")(a.name))}));return i.jsxs("div",{"data-testid":void 0,children:[i.jsx(c("LeftRight.react"),{children:i.jsx("div",{className:"xod5an3 x14vqqas",children:i.jsx(c("GeoText.react"),{children:h._("u63a8u8350u6807u7b7e")})})}),v]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivityListItem3DWrapper.react",["BizKitContextCardActivityListItem3DWrapper_BizCRMContactAction3DWrapper.graphql","CometRelay","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").Suspense;function a(a){var c=a.wrapperRef,e=a.isInKBankRollout,f=a.selectInteraction,g=a.page,k=a.mbsBusinessAssets,l=a.pageID,m=a.onShowContactCardTosModal,n=a.shouldShowContactCardTos,o=a.userID,p=a.surface,q=a.pageContactID,r=a.toggleShouldShowOmnichannelEmailDetailView;a=a.setActiveEmailThread;c=d("CometRelay").useFragment(h!==void 0?h:h=b("BizKitContextCardActivityListItem3DWrapper_BizCRMContactAction3DWrapper.graphql"),c);return i.jsx(j,{fallback:null,children:i.jsx(d("CometRelay").MatchContainer,{match:c,props:{data:c,isInKBankRollout:e,page:g,mbsBusinessAssets:k,pageID:l,surface:p,pageContactID:q,selectInteraction:f,onShowContactCardTosModal:m,shouldShowContactCardTos:n,shouldRemovePageVCDependency:!0,userID:o,toggleShouldShowOmnichannelEmailDetailView:r,setActiveEmailThread:a}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCard.react",["BizCRMContactCardPermission","BizCRMContactCardSection","BizKitContactCardOmnichannelContext.react","BizKitContextCardConstants","BizKitContextCardErrorBoundary.react","BizKitContextCardTOSModal.react","BizKitContextCardTosLoggingUtils","BizKitContextCard_config.graphql","BizKitContextCard_detail.graphql","GeoToast.react","RelayHooks","cr:4922","getJSEnumSafe","getShould3DBizInboxContextCardSections.entrypointutils","react","useGeoToaster"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react"),k=d("react").useState;function a(a){var e,f,g,l=d("RelayHooks").useFragment(h!==void 0?h:h=b("BizKitContextCard_detail.graphql"),a.contactDetails),m=d("RelayHooks").useFragment(i!==void 0?i:i=b("BizKitContextCard_config.graphql"),a.contactConfig),n=a.contactID,o=a.contactIdentity,p=a.pageID,q=a.onSelectLabel,r=a.onActivityListUpdated,s=a.activitiesQueryReference,t=a.onBanUser,u=a.isBlockedInIG,v=a.surface,w=a.businessAssets,x=a.isDependencyOfRemovePageDependencyEnabledTool;x=x===void 0?!1:x;var y=(m==null?void 0:m.permission)?c("getJSEnumSafe")(c("BizCRMContactCardPermission"),m==null?void 0:m.permission)!=="READ_WRITE":!1,z=(e=l==null?void 0:(e=l.shared_attributes)==null?void 0:e.is_guest_chat)!=null?e:!1,A=(e=l==null?void 0:(e=l.shared_attributes)==null?void 0:e.page_contact_id)!=null?e:"";e=(e=l==null?void 0:l.has_consented_to_contact_card_tos)!=null?e:!1;var B=["CRM_DESTINATION","INBOX_CONTACT_LIST","INBOX_LEAD_EMAIL"].includes(v),C=!B&&!e;B=x?l==null?void 0:l.mbs_business_assets:l==null?void 0:l.page;x=x?(l==null?void 0:(x=l.mbs_business_assets)==null?void 0:x.page_if_viewer_can_manage_permissions)!=null:(l==null?void 0:(x=l.page)==null?void 0:x.if_viewer_can_manage_permissions)!=null;var D=(l==null?void 0:(f=l.page)==null?void 0:(f=f.is_page_enabled_for_wam)==null?void 0:f.passes_gk)===!0,E=B==null?void 0:(f=B.business_presence_node)==null?void 0:f.id,F=(B==null?void 0:(f=B.is_in_kbank_rollout)==null?void 0:f.passes)===!0,G=(l==null?void 0:(B=l.page)==null?void 0:(f=B.show_payment_onboarding_context_card)==null?void 0:f.passes_gk)===!0;B=k(!1);f=B[0];var H=B[1];B=c("useGeoToaster")();var I=B.add,J=function(a){var b=null;a==="error"?b=c("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_ERROR_TEXT:a==="success"&&(b=c("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_SUCCESS_TEXT);b!==null&&I(j.jsx(c("GeoToast.react"),{heading:b,status:a}),{duration:"standard"})},K=function(){H(!0),d("BizKitContextCardTosLoggingUtils").logTosModalEnterFlow(p,A,v)};B=k(null);var L=B[0];B=B[1];m=d("getShould3DBizInboxContextCardSections.entrypointutils").getShould3DBizInboxContextCardSections()?m==null?void 0:(g=m.sections_renderers)==null?void 0:g.map(function(d){return j.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:p,section:c("getJSEnumSafe")(c("BizCRMContactCardSection"),d.section_enum),children:j.jsx(b("cr:4922"),{surface:v,data:l,sectionName:d.section_enum,pageID:p,bpnID:E,contactID:n,pageContactID:A,contactIdentity:o,onSelectLabel:q,isPageEnabledForWAM:D,onActivityListUpdated:r,onBanUser:t,isInKBankRollout:F,activitiesQueryReference:s,isBlockedInIG:u,readOnly:y,shouldShowCloseButton:a.shouldShowCloseButton,onClose:a.onClose,onShowContactCardTosModal:K,shouldShowContactCardTos:C,shouldDisableBizInput:z,pageRef:l==null?void 0:l.page,mbsBusinessAssetsRef:l==null?void 0:l.mbs_business_assets,rendererRef:d,businessAssets:w,shouldShowPaymentOnboardingContextCard:G})},d.section_enum)}):m==null?void 0:(g=m.sections)==null?void 0:g.map(function(d){return j.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:p,section:c("getJSEnumSafe")(c("BizCRMContactCardSection"),d),children:j.jsx(b("cr:4922"),{surface:v,data:l,sectionName:d,pageID:p,bpnID:E,contactID:n,pageContactID:A,contactIdentity:o,onSelectLabel:q,isPageEnabledForWAM:D,onActivityListUpdated:r,onBanUser:t,isInKBankRollout:F,activitiesQueryReference:s,isBlockedInIG:u,readOnly:y,shouldShowCloseButton:a.shouldShowCloseButton,onClose:a.onClose,onShowContactCardTosModal:K,shouldShowContactCardTos:C,shouldDisableBizInput:z,pageRef:l==null?void 0:l.page,mbsBusinessAssetsRef:l==null?void 0:l.mbs_business_assets,rendererRef:null,businessAssets:w,shouldShowPaymentOnboardingContextCard:G})},d)});return j.jsx(d("BizKitContactCardOmnichannelContext.react").BizKitContactCardOmnichannelContext.Provider,{value:{activityConnectionID:L,setActivityConnectionID:B},children:j.jsxs("div",{className:"xdpxx8g","data-testid":void 0,children:[m,!e&&E!=null?j.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:p,children:j.jsx(c("BizKitContextCardTOSModal.react"),{bpnID:E,pageID:p,contactIdentity:o,pageContactID:A,surface:v,isShown:f,isAdmin:x,onHide:function(){H(!1),d("BizKitContextCardTosLoggingUtils").logTosModalCancelFlow(p,A,v)},onAcceptSuccess:function(){H(!1),J("success")},onAcceptFailure:function(){H(!1),J("error")}})}):null]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardTOSModal.react",["fbt","BizKitContextCardAcceptToSMutation","BizKitContextCardConstants","BizKitContextCardTosLoggingUtils","CRMConsentToTOSDialog.react","GeoButton.react","GeoCancelButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","RelayHooks","err","geoMargin","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useState;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=a.pageID,f=a.contactIdentity,g=a.pageContactID,k=a.surface,l=a.isShown,m=a.isAdmin,n=a.onHide,o=a.onAcceptSuccess,p=a.onAcceptFailure;a=j(!1);var q=a[0],r=a[1];a=j(!1);var s=a[0],t=a[1];a=function(){r(!0),d("BizKitContextCardTosLoggingUtils").logTosReviewButtonClick(e,g,k)};var u=function(){d("BizKitContextCardAcceptToSMutation").commit(b,{actor_id:e,identity:f},{onSuccess:function(a){a=(a=a.biz_crm_contact_sign_tos)==null?void 0:(a=a.biz_crm_contact)==null?void 0:a.has_consented_to_contact_card_tos;a===!0?(o(),d("BizKitContextCardTosLoggingUtils").logTosAcceptSuccess(e,g,k)):(p(),t(!1),d("BizKitContextCardTosLoggingUtils").logTosAcceptFailure(e,g,k,c("err")("unexpected tos signing failure")))},onFailure:function(a){p(),t(!1),d("BizKitContextCardTosLoggingUtils").logTosAcceptFailure(e,g,k,a)}})},v=function(){window.open("https://www.facebook.com/legal/page_contact_terms","_blank"),n()};return i.jsxs("span",{children:[i.jsx(c("GeoModal.react"),{footer:i.jsx(c("GeoModalFooter.react"),{primaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,label:m?h._("u67e5u770b"):h._("u67e5u770bu6761u6b3e"),onClick:m?a:v,isLoading:s,variant:"primary"}),secondaryButton:i.jsx(c("GeoCancelButton.react"),{"data-testid":void 0})}),header:i.jsx(c("GeoModalHeader.react"),{heading:m?c("BizKitContextCardConstants").CONTACT_CARD_TOS_HEADER_TEXT:c("BizKitContextCardConstants").CONTACT_CARD_TOS_NON_ADMIN_HEADER_TEXT}),isShown:l,onHide:n,children:i.jsxs(c("GeoSection.react"),{children:[i.jsx("div",{children:i.jsx(c("GeoText.react"),{xstyle:c("geoMargin").vert16,children:m?c("BizKitContextCardConstants").CONTACT_CARD_TOS_FIRST_SECTION_TEXT:c("BizKitContextCardConstants").CONTACT_CARD_TOS_NON_ADMIN_FIRST_SECTION_TEXT})}),i.jsx("div",{className:c("stylex")(c("geoMargin").top16),children:i.jsx(c("GeoLink.react"),{xstyle:c("geoMargin").vert16,onClick:m?a:v,children:i.jsx("strong",{children:m?c("BizKitContextCardConstants").CONTACT_CARD_TOS_CONTINUE_REVIEW_TEXT:h._("u67e5u770bu6761u6b3e")})})})]})}),i.jsx(c("CRMConsentToTOSDialog.react"),{isShown:q,onConfirm:function(){t(!0),d("BizKitContextCardTosLoggingUtils").logTosAcceptClick(e,g,k),u()},onHide:function(){n(),r(!1)},isLoading:s,alwaysAllowConfirm:!0})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardTosLoggingUtils",["BizKitContextCardUtils","ContactGraphTosAcceptClickFalcoEvent","ContactGraphTosAcceptFailureFalcoEvent","ContactGraphTosAcceptSuccessFalcoEvent","ContactGraphTosModalCancelFlowFalcoEvent","ContactGraphTosModalEnterFlowFalcoEvent","ContactGraphTosReviewButtonClickFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e){c("ContactGraphTosModalEnterFlowFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function b(a,b,e){c("ContactGraphTosModalCancelFlowFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function e(a,b,e){c("ContactGraphTosReviewButtonClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function f(a,b,e){c("ContactGraphTosAcceptClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function h(a,b,e){c("ContactGraphTosAcceptSuccessFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function i(a,b,e,f){c("ContactGraphTosAcceptFailureFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{error_type:f.name,error_message:f.message,error_trace:f.stack},is_server_log:!1}})}g.logTosModalEnterFlow=a;g.logTosModalCancelFlow=b;g.logTosReviewButtonClick=e;g.logTosAcceptClick=f;g.logTosAcceptSuccess=h;g.logTosAcceptFailure=i}),98);
-----
ContactGraphTosModalEnterFlowFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("792");c=b("FalcoLoggerInternal").create("contact_graph_tos_modal_enter_flow",a);e.exports=c}),null);
-----
ContactGraphTosModalCancelFlowFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("791");c=b("FalcoLoggerInternal").create("contact_graph_tos_modal_cancel_flow",a);e.exports=c}),null);
-----
AudienceManagerCreateAudienceFlatDialogContainer.react",["cx","AdsAMAccountAcceptedTosAddAction","AdsAMCreateAudienceServerActions","AdsAMCreateAudienceStore","AdsAMCreateAudienceViewActions","AdsAMEngagementAudienceCreatedActionFlux","AdsAMFileImportCheckFileActionFlux","AdsAMFileImportCreateAudienceCompleteAction","AdsAMMailChimpFetchCompleteActionFlux","AdsAMMailChimpUploadCompleteActionFlux","AdsAMViewCloseMoveAdAccoutToBusinessDialogAction","AdsAccountStore","AdsAccountUtils","AdsAudienceCreationDialogConstants","AdsAudienceUploaderFlowNextSteps.react","AdsCustomAudienceType","AdsEngagementAudienceUILogger","AdsGeodesicAdoption","AdsGraphAPI","AdsInterfacesLogger","AdsManagerUserPermissions","AdsMgmtPerfScenarioController","AdsTargetingAudienceEditorGKSelectors","AdsTargetingBootloadDialog.react","AdsTargetingIosSignalLossSelectors","AudienceManagerCompleteUploadMessage.react","AudienceManagerCreateAudienceCompleteDialogContent.react","AudienceManagerCreateAudienceFlatDialogConstants","AudienceManagerCreateAudienceFlatDialogMainMenu.react","AudienceManagerCreateAudienceFlatDialogUtils","AudienceManagerCustomerListAudienceStepperModal.react","AudienceManagerErrorDialogContent.react","AudienceManagerLoggingEvents","AudienceManagerMailChimpInitDialogContent.react","AudienceManagerMailChimpSelectListDialogContent.react","AudienceManagerNextStepDialogContent.react","AudienceManagerShouldDisableMACAAsLookalikeSourceProvider","AudienceManagerSubscriberListAudienceStepperModal.react","AudienceManagerTieredLookalikeDialog.react","AudienceManagerUIConstants","AudienceManagerUploadDialogContent.react","BusinessManagerUpsellContainer.brands","CometPlaceholder.react","CreateCAStages","CustomAudienceTosUtils","CustomAudienceUtils","DataFileCustomAudienceUserLevelTOSModal.react","FluxContainer","GeoSpinner.react","JSResource","PopupWindow","XUIDialogTitle.react","lazyLoadComponent","promiseDone","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=c("AudienceManagerShouldDisableMACAAsLookalikeSourceProvider").toFluxSelector(),k="",l=c("lazyLoadComponent")(c("JSResource")("AudienceManagerCreateMultikeyAudienceImportDialogContainer.react").__setRef("AudienceManagerCreateAudienceFlatDialogContainer.react")),m=c("lazyLoadComponent")(c("JSResource")("AdsCreatePlatformAudienceDialogContainer.react").__setRef("AudienceManagerCreateAudienceFlatDialogContainer.react"));a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var g=arguments.length,h=new Array(g),i=0;i0?this.state.currentPage.toString():null,dao:this.props.dao,isOnsiteDonateAd:this.props.isOnsiteDonateAd,isWcaTosAccepted:c("CustomAudienceTosUtils").isWcaTosAccepted(this.props.tosAccepted),selectedRegulatedCategory:this.props.selectedRegulatedCategory,signalSourceType:e,onAudienceAdded:this.props.onAudienceAdded,onBack:d("AudienceManagerCreateAudienceFlatDialogUtils").onBackToMainMenu,onCancel:this.$3,onCreateAudience:this.$23,onFinishCreateAudience:this.$24})}):null;case d("AdsAMEngagementAudienceCreatedActionFlux").actionType:return i.jsx(c("AdsTargetingBootloadDialog.react"),{bootloadLoader:c("JSResource")("AdsAudienceCreationOrUpdateSuccessDialogGeodesic.react").__setRef("AudienceManagerCreateAudienceFlatDialogContainer.react"),dialogTitle:d("AdsAudienceCreationDialogConstants").CREATE_VIDEO_ECA_MODAL_TITLE,disableMACAAsLookalikeSource:!1,isCreateAudience:!0,selectedRegulatedCategory:this.props.selectedRegulatedCategory,onCompleteClick:this.$3,onCreateAdItemClick:this.$12,onLookalikeItemClick:this.$13});case c("CreateCAStages").CREATION_COMPLETE_NEXT_STEP:return d("AudienceManagerCreateAudienceFlatDialogUtils").getBootloadDialog(i.jsx(c("AudienceManagerNextStepDialogContent.react"),{selectedRegulatedCategory:this.props.selectedRegulatedCategory,onCreateAdClick:this.$12,onCreateLookalikeClick:this.$13,onFinish:this.$20}),this.$3,this.$15,null,d("AdsAudienceCreationDialogConstants").CUSTOM_AUDIENCE_CREATION_DIALOG_WIDTH);case c("CreateCAStages").CREATE_VIDEO_AUDIENCE:return i.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,bootloadLoader:c("JSResource")("AudienceManagerEngagementAudienceDialogGeodesicContainer.react").__setRef("AudienceManagerCreateAudienceFlatDialogContainer.react"),isCreateAudience:!0,onAudienceAdded:this.props.onAudienceAdded,onBack:d("AudienceManagerCreateAudienceFlatDialogUtils").onBackToMainMenu,onCancel:this.$3,onSaveAudience:this.$25});case c("CreateCAStages").CREATE_CATALOG_AUDIENCE:return i.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,bootloadLoader:c("JSResource")("AudienceManagerCatalogAudienceDialogContainer.react").__setRef("AudienceManagerCreateAudienceFlatDialogContainer.react"),isCreateAudience:!0,onAudienceAdded:this.props.onAudienceAdded,onBack:d("AudienceManagerCreateAudienceFlatDialogUtils").onBackToMainMenu,onCancel:this.$3,onSaveAudience:this.$26});case c("CreateCAStages").CREATE_CANVAS_AUDIENCE:return i.jsx(c("CometPlaceholder.react"),{fallback:b,children:i.jsx(m,{accountID:this.props.accountID,dao:this.props.dao,isWcaTosAccepted:c("CustomAudienceTosUtils").isWcaTosAccepted(this.props.tosAccepted),signalSourceType:"canvas",onAudienceAdded:this.props.onAudienceAdded,onBack:d("AudienceManagerCreateAudienceFlatDialogUtils").onBackToMainMenu,onCancel:this.$3,onCreateAudience:this.$23,onFinishCreateAudience:this.$24})})}return null};e.render=function(){return i.jsx(d("AdsGeodesicAdoption").AdsGeodesicAdoptionDisabledProvider,{children:this.$2()})};e.$5=function(){return c("CustomAudienceTosUtils").isDataFileUserLevelTosAccepted(this.props.tosAccepted)};e.$6=function(){return c("CustomAudienceTosUtils").isWeightedTosAccepted(this.props.tosAccepted)};e.$11=function(){var a=this.props.tosRequirementsForAccount.custom_audience;return!!this.props.tosAccepted.custom_audience_tos||Object.prototype.hasOwnProperty.call(this.props.tosAccepted,a)&&this.props.tosAccepted[a]==1};e.$28=function(a){var b={};Object.entries(this.state.audiences).filter(function(a){a[0];a=a[1];return a.subtype===c("AdsCustomAudienceType").SUBTYPES.ENGAGEMENT}).forEach(function(a){var c=a[0];a=a[1];b[c]=a});Object.keys(b).length&&d("AdsEngagementAudienceUILogger").log(a,{audiences:b})};e.$29=function(a){var b=[];for(var c in a){var d=a[c].name,e=a[c].description;(d!==this.state.audiences[c].name||!!e)&&b.push(a[c])}return b};e.$30=function(a){var b=this,c=[];Object.keys(a).forEach(function(d){a[d]&&c.push(b.state.selectableContactsLists[d])});return c};return b}(i.PureComponent);a.defaultProps={openedFromAudienceManager:!1};b=c("FluxContainer").create(a,{withProps:!0});g["default"]=b}),98);
-----
DataFileCustomAudienceUserLevelTOSModal.react",["fbt","ix","BUIButton.react","BUIModal.react","BUIModalFooter.react","BUISection.react","BUIText.react","FlexLayout.react","Image.react","ImageBlock.react","Link.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=j.jsx(c("Image.react"),{src:i("396621")}),l=h._("u81eau5b9au4e49u53d7u4f17u7684u4f7fu7528u8981u6c42"),m=h._("u4ef7u503cu5bfcu5411u578bu81eau5b9au4e49u53d7u4f17u7684u4f7fu7528u8981u6c42"),n=h._("u53eau6709u4ee5u4e0bu4ebau5458u53efu4ee5u4f7fu7528u81eau5b9au4e49u53d7u4f17uff1au5e7fu544au4e3bu3001u4ee3u8868u5e7fu544au4e3bu6267u884cu64cdu4f5cu7684u7ecfu9500u5546u6216u6570u636eu63d0u4f9bu65b9u3001u5e02u573au8425u9500 API u6216u81eau5b9au4e49u53d7u4f17 API u5408u4f5cu4f19u4f34u3002"),o=h._("Advertisers and those who run ads on their behalf are ultimately responsible for acknowledging their permission to share and use people"s data."),p=function(a){return h._("You are accepting terms on behalf of {business_name}",[h._param("business_name",j.jsx("strong",{children:a}))])},q=function(a,b){b=b===!0?j.jsx(c("Link.react"),{href:"/customaudiences/value_based/tos.php?act="+a,target:"_blank",children:h._("Meta u4e1au52a1u5de5u5177u6761u6b3e")}):j.jsx(c("Link.react"),{href:"/ads/manage/customaudiences/tos.php?act="+a,target:"_blank",children:h._("Custom Audience terms")});return h._("u70b9u51fbu201cu6211u540cu610fu201duff0cu5373u8868u793au4f60u63a5u53d7{custom_audience_terms}u3002",[h._param("custom_audience_terms",b)])};a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
AdsTargetingAudienceEditorContainer.react",["cx","fbt","AdsAPISpec","AdsAudienceFilterEnum","AdsAutomationRenamingUtils","AdsCommonTargetingConstants","AdsCustomAudienceSharingConstants","AdsDetailedTargetingRelaxationUtils","AdsEditingCampaignEditorContext","AdsFluxContainer","AdsInterfacesLogger","AdsLookalikeContainerConstants","AdsMessengerPlacementUtils","AdsPEFluxCreateAudienceActionFlux","AdsStaticGuidanceCard.react","AdsTargetingAsASignalGuidanceCardImpressionsAction","AdsTargetingAudienceActions","AdsTargetingAudienceCreationPopoverMenu.react","AdsTargetingAudienceEditorSelector","AdsTargetingAudienceLoggingEvents","AdsTargetingAudienceNewVBLALAddedAction","AdsTargetingAudienceTokenizer.react","AdsTargetingAudienceUtils","AdsTargetingBootloadDialog.react","AdsTargetingConnectionCountriesMisalignmentAction","AdsTargetingCustomAudienceExpansionUtils","AdsTargetingDFCABMRequirementMTCNotice.react","AdsTargetingLookalikeContainerSeedSizeStatusAction","AdsTargetingLookalikeRelaxationConstants","AdsTargetingLookalikeRelaxationUtils","AdsTargetingSharedAudienceAgreementNotAcceptedMTCNotice.react","AdsTargetingSignalLossUtils","AdsTargetingSpecHasAppEventSegmentsAudienceFetchAction","AdsTargetingUntrustedAccountUsingDFCANotice.react","AdsTargetingVBLALUpsellUtils","AdsTargetingValueBasedLookalikeUpsellContainer.react","AdsUtils","AsyncRequest","AudienceManagerCreateAudienceFlatDialogSuspense.react","BUIGuidanceCard.react","BUIGuidanceCardCloseButton.react","BUIGuidanceCardContent.react","BUIGuidanceCardContentLink.react","BUIGuidanceCardContentText.react","BUIGuidanceCardHeader.react","BizSiteIdentifier.brands","ContextualLayerUpdateOnScroll","CustomAudienceTosUtils","CustomAudienceUtils","DataFileCustomAudienceUserLevelTOSModal.react","DatafileCustomAudienceSharingStatus","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardFooter.react","GeoGuidanceCardHeader.react","GeoLink.react","GeoSpinner.react","JSResource","LayerHideOnBlur","LetterboxEnumUtils","Link.react","LoadingMarkerArea.react","SimpleNUXMessage","TargetingEUPrivacyDirectiveConstants","URI","XAdsCampaignHasDeletedConnectionsSavedAuidenceController","XAdsTargetingAsASignalImpressionsController","XAdsTargetingConnectionsCountriesMisalignmentController","XAdsTargetingLookalikeContainerLowSeedsController","XHasDeprecatedAppEventSegmentsAudienceController","XUIAmbientNUX.react","adsTargetingCreateLookalikeContainers","adsUEditorSelectedCampaignsSelector","cachedGraphAPI","geoMargin","immutable","prop-types","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");a=d("react").Component;var k=600,l=d("AdsAPISpec").CUSTOM_AUDIENCE_FIELDS.map(d("AdsUtils").underscoreKey),m=310,n=new(c("URI"))("/business/help/917879191754763");function o(){return j.jsx("div",{className:"_2piv",children:j.jsx(c("LoadingMarkerArea.react"),{name:"AdsTargetingAudienceEditorContainer",owner:"admarket_targeting_oncalls",children:j.jsx(c("GeoSpinner.react"),{})})},"spinner")}o.displayName=o.name+" [from "+f.id+"]";function p(a){return(a.customAudiences||[]).concat(a.excludedCustomAudiences||[])}function q(a,b,e){return!a?null:j.jsx("div",{className:"_3-8i",id:"accept_dfca_user_tos_notice",children:j.jsx(c("AdsStaticGuidanceCard.react"),{ccCardProps:{category:"ERROR",messageID:"accept_dfca_user_tos_notice",textData:[{type:"PARAGRAPH",data:{text:d("AdsCustomAudienceSharingConstants").DFCA_TOS_NOT_ACCEPTED(b,e)}}],ctaData:[{type:"BUTTON_GROUP",data:{buttonsData:[{dataTestID:"audience-editor-container-dfca-tos-notice-button",text:"Next",onCallToAction:function(){d("AdsTargetingAudienceActions").showUserTosDialog(b)}}]}}]}})})}q.displayName=q.name+" [from "+f.id+"]";function r(a){var b=a.seedSizeStatus,e=a.isRegulated;a=a.hasLegacyLookalikes;return b==null||b.status!="LOW_SEEDS"||a==!0?null:j.jsxs(c("BUIGuidanceCard.react"),{category:"error",children:[j.jsx(c("BUIGuidanceCardHeader.react"),{children:d("AdsLookalikeContainerConstants").LOOKALIKE_SOURCE_TOO_SMALL_MESSAGE(e)}),j.jsx(c("BUIGuidanceCardContent.react"),{children:j.jsx(c("BUIGuidanceCardContentText.react"),{children:b.message})})]})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var b=a.isRegulated,e=a.spinnerStatus,f=a.audiencesLength,g=a.creationSource;a=a.onClose;if(e!=y.LOADED_SUCCESS||f===0)return null;e=d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_SUCCESS_BODY(g,b);return j.jsxs(c("BUIGuidanceCard.react"),{action:j.jsx(c("BUIGuidanceCardCloseButton.react"),{onPress:a}),category:"success",margin:"_3-8x _3-95",children:[j.jsx(c("BUIGuidanceCardHeader.react"),{children:d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_SUCCESS_HEADER(b)}),j.jsx(c("BUIGuidanceCardContent.react"),{children:j.jsx(c("BUIGuidanceCardContentText.react"),{children:e})})]})}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b=a.creationSource,e=a.hasLegacyLookalikes,f=a.spinnerStatus,g=a.isRegulated;a=a.onClick;if(f===y.LOADING)return j.jsx(c("GeoSpinner.react"),{label:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_SPINNER_TEXT(g)});return!e||f===y.LOADED_ERROR?null:j.jsx("div",{className:"_2pio",children:j.jsx(c("AdsStaticGuidanceCard.react"),{ccCardProps:{category:"ERROR",messageID:"convert_lookalike_to_lookalike_container_notice",header:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_BANNER_HEADER(g),textData:[{type:"PARAGRAPH",data:{text:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_BANNER_BODY(b,g)}}],ctaData:[{type:"BUTTON_GROUP",data:{buttonsData:[{text:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_BUTTON_TEXT(g),onCallToAction:a}]}}]}})})}t.displayName=t.name+" [from "+f.id+"]";function u(){return j.jsx(c("GeoGuidanceCard.react"),{footer:j.jsx(c("GeoGuidanceCardFooter.react"),{children:j.jsx(c("GeoLink.react"),{href:d("TargetingEUPrivacyDirectiveConstants").EU_PRIVACY_DIRECTIVE_AUDIENCE_MANAGER_LEARN_MORE_LINK,target:"_blank",children:d("TargetingEUPrivacyDirectiveConstants").EU_PRIVACY_DIRECTIVE_AUDIENCE_MANAGER_LEARN_MORE})}),header:j.jsx(c("GeoGuidanceCardHeader.react"),{heading:d("TargetingEUPrivacyDirectiveConstants").REMOVE_EU_PRIVACY_DIRECTIVE_AUDIENCES_ERROR_HEADER}),status:"error",xstyle:[c("geoMargin").top8,c("geoMargin").bottom8],children:j.jsx(c("GeoGuidanceCardContent.react"),{children:d("TargetingEUPrivacyDirectiveConstants").REMOVE_EU_PRIVACY_DIRECTIVE_AUDIENCES_ERROR_BODY_POST_DEC_9})})}u.displayName=u.name+" [from "+f.id+"]";function v(a){var b=a.hasLegacyLookalikes,e=a.spinnerStatus,f=a.audiencesLength,g=a.isRegulated;a=a.creationSource;if(e!=y.LOADED_ERROR||f==0)return null;if(!b)return null;e=d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_ERROR_BODY(a,g);return j.jsxs(c("BUIGuidanceCard.react"),{category:"error",margin:"_3-8x _3-95",children:[j.jsx(c("BUIGuidanceCardHeader.react"),{children:d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_ERROR_HEADER(g)}),j.jsx(c("BUIGuidanceCardContent.react"),{children:j.jsx(c("BUIGuidanceCardContentText.react"),{children:e})})]})}v.displayName=v.name+" [from "+f.id+"]";function w(a){a=a.badAudiences;a=i._("u4f60u4fddu5b58u7684u53d7u4f17u65e0u6cd5u4f7fu7528uff0cu56e0u4e3au5b83u5305u542bu81f3u5c11u4e00u4e2au5df2u7981u7528u7684u53d7u4f17u3002u4e0eu4f60u5171u4eabu7981u7528u53d7u4f17u7684u5e10u6237u5df2u505cu7528u3002u5982u9700u7ee7u7eedu4f7fu7528u4fddu5b58u7684u53d7u4f17uff0cu8bf7u79fbu9664u4ee5u4e0bu53d7u5f71u54cdu7684u53d7u4f17uff1a{bad audiences}",[i._param("bad audiences",a.join(","))]);return j.jsx("div",{className:"_2pio",id:"saved_audience_owner_account_disabled_notice",children:j.jsx(c("AdsStaticGuidanceCard.react"),{ccCardProps:{category:"ERROR",messageID:"saved_audience_owner_disabled_notice",textData:[{type:"PARAGRAPH",data:{text:a}}]}})})}w.displayName=w.name+" [from "+f.id+"]";function x(a,b){return a===!0&&b===!0}var y=Object.freeze({LOADING:"LOADING",LOADED_SUCCESS:"LOADED_SUCCESS",LOADED_ERROR:"LOADED_ERROR",NONE:"NONE"});b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h1;c=((c=a.campaignIDs)!=null?c:[]).length>1;return a.accountID!==this.props.accountID||a.areAllCampaignsNew!==this.props.areAllCampaignsNew||a.areAllCampaignsLALaaS!==this.props.areAllCampaignsLALaaS||c!==b};e.$8=function(){var a;a=c("XHasDeprecatedAppEventSegmentsAudienceController").getURIBuilder().setFBIDVector("ids",(a=this.props.campaignIDs)!=null?a:[]).setFBID("ad_account_id",this.props.accountID).getURI();a=new(c("AsyncRequest"))().setURI(a).setHandler(function(a){a=a.payload.has_app_event_segments_audience;c("AdsTargetingSpecHasAppEventSegmentsAudienceFetchAction").dispatch({hasAppEventSegmentsAudience:a,isRemovingAppEventSegmentsAudience:!1},{line:"704",module:"AdsTargetingAudienceEditorContainer.react.js"})}).setErrorHandler(function(a){c("AdsTargetingSpecHasAppEventSegmentsAudienceFetchAction").dispatch({hasAppEventSegmentsAudience:!1,isRemovingAppEventSegmentsAudience:!1},{line:"710",module:"AdsTargetingAudienceEditorContainer.react.js"})});a.send()};e.$9=function(){var a,b=this;a=c("XAdsCampaignHasDeletedConnectionsSavedAuidenceController").getURIBuilder().setFBIDVector("ids",(a=this.props.campaignIDs)!=null?a:[]).setFBID("ad_account_id",this.props.accountID).getURI();a=new(c("AsyncRequest"))().setURI(a).setHandler(function(a){a=a.payload.campaign_has_deleted_connections_saved_audience;b.state.passConnectionsDeprecationPhase3NotificationGKSelector&&b.setState({campaignHasDeletedConnectionsSavedAudience:a})}).setErrorHandler(function(a){b.setState({campaignHasDeletedConnectionsSavedAudience:!1})});a.send()};e.$10=function(a){return d("AdsMessengerPlacementUtils").isTogglingMessengerThread(a.placementAPISpec,this.props.placementAPISpec)?!0:d("AdsMessengerPlacementUtils").pageIDChangedWhenMessengerSelected(a.placementAPISpec,this.props.placementAPISpec,this.props.pageID,a.pageID)};e.render=function(){return j.jsxs("div",{"data-testid":void 0,id:d("AdsPEFluxCreateAudienceActionFlux").actionType,children:[this.$12(),this.$13(),this.$14(),this.$15()]})};e.$15=function(){return this.state.requiredUserTos==null?null:j.jsx(c("DataFileCustomAudienceUserLevelTOSModal.react"),{adAccountID:this.props.accountID,businessName:c("CustomAudienceTosUtils").getBusinessNameToAcceptTOSFor(this.props.accountInfo),isShown:this.state.requiredUserTos!=null,isValueBased:this.state.requiredUserTos==="value_based_custom_audience_tos",onAccept:this.$16,onHide:this.$17})};e.$18=function(){return q(this.$19(!1),!1,this.props.dataFileCustomAudienceUsageType)};e.$20=function(){return q(this.$19(!0),!0,this.props.dataFileCustomAudienceUsageType)};e.$19=function(a){var b=this.state.tosAccepted;return a?this.$21(!0)&&!(b&&b.value_based_custom_audience_tos):this.$21(!1)&&!(b&&b.custom_audience_tos)};e.$22=function(){return j.jsx(c("AdsTargetingSharedAudienceAgreementNotAcceptedMTCNotice.react"),{dataFileCustomAudienceUsageType:this.props.dataFileCustomAudienceUsageType,shouldShowBannerToBusiness:this.$23()})};e.$23=function(){if(!this.state.targetableAudiencesLoaded||this.state.targetableAudiences==null)return!1;var a=this.state.targetableAudiences.getValueEnforcing().toJS();return Object.keys(a).some(function(b){b=a[b];return b.sharing_status!=null&&b.sharing_status.status!==d("LetterboxEnumUtils").getEnumKey(c("DatafileCustomAudienceSharingStatus"),c("DatafileCustomAudienceSharingStatus").ACCEPTED_RELATIONSHIP)})};e.$24=function(){return j.jsx(c("AdsTargetingDFCABMRequirementMTCNotice.react"),{accountID:this.props.accountID,dataFileCustomAudienceUsageType:this.props.dataFileCustomAudienceUsageType,isAdAccountAdmin:this.$25(),shouldShowBannerToAccount:this.$26()})};e.$26=function(){var a=!this.props.accountInfo.business;if(!a||!this.state.targetableAudiencesLoaded||this.state.targetableAudiences==null)return!1;var b=this.state.targetableAudiences.getValueEnforcing().toJS();return Object.keys(b).some(function(a){return b[a].subtype==="CUSTOM"})};e.$27=function(){if(!this.state.targetableAudiencesLoaded||this.state.targetableAudiences==null||this.props.dataFileCustomAudienceUsageType!=="saved audience")return null;var a=this.state.targetableAudiences.getValueEnforcing().toJS(),b=[];Object.keys(a).forEach(function(c){c=a[c];c.operation_status!=null&&c.operation_status.code===470&&b.push(c.name)});return b};e.$28=function(){return!this.props.accountInfo.is_tier_0||!this.$29()?null:j.jsx(c("AdsTargetingUntrustedAccountUsingDFCANotice.react"),{})};e.$29=function(){return this.$21(!0)||this.$21(!1)};e.$30=function(){if(this.state.valueBasedUpsellSpinnerStatus!=y.LOADED_SUCCESS)return null;var a=i._("u53d7u4f17u5df2u66f4u65b0"),b=i._("u6807u8bb0u7684u53d7u4f17u5df2u5207u6362u4e3au4ef7u503cu5bfcu5411u578bu7c7bu4f3cu53d7u4f17u3002");return j.jsxs(c("BUIGuidanceCard.react"),{action:j.jsx(c("BUIGuidanceCardCloseButton.react"),{onPress:this.$2}),category:"success",margin:"_3-8x",children:[j.jsx(c("BUIGuidanceCardHeader.react"),{children:a}),j.jsx(c("BUIGuidanceCardContent.react"),{children:j.jsx(c("BUIGuidanceCardContentText.react"),{children:b})})]})};e.$6=function(){var a=(this.props.customAudiences||[]).filter(function(a){return a.lookalike_type==="lookalike_container"||a.lookalike_type==="regulated_container"}).map(function(a){return a.id}),b=(this.props.excludedCustomAudiences||[]).filter(function(a){return a.lookalike_type==="lookalike_container"||a.lookalike_type==="regulated_container"}).map(function(a){return a.id});a=c("XAdsTargetingLookalikeContainerLowSeedsController").getURIBuilder().setIntVector("included_audiences",a).setIntVector("excluded_audiences",b).setStringVector("countries",this.props.countries).setString("ad_account_id",this.props.accountID).getURI();new(c("AsyncRequest"))().setURI(a).setHandler(function(a){a=a.payload;a==null?c("AdsTargetingLookalikeContainerSeedSizeStatusAction").dispatch({seedSizeStatus:null},{line:"1029",module:"AdsTargetingAudienceEditorContainer.react.js"}):c("AdsTargetingLookalikeContainerSeedSizeStatusAction").dispatch({seedSizeStatus:{status:a[0],message:a[1]}},{line:"1033",module:"AdsTargetingAudienceEditorContainer.react.js"})}).setErrorHandler(function(a){}).send()};e.$32=function(){if(this.props.countries==null)return;var a=this.props.customAudiences.some(function(a){return((a=a.lookalike_spec)==null?void 0:a.creation_ui)==="connections_generated"});if(!a){c("AdsTargetingConnectionCountriesMisalignmentAction").dispatch({isMisaligned:!1},{line:"1059",module:"AdsTargetingAudienceEditorContainer.react.js"});return}a=this.props.customAudiences.filter(function(a){return((a=a.lookalike_spec)==null?void 0:a.creation_ui)==="connections_generated"}).map(function(a){return a.id});a=c("XAdsTargetingConnectionsCountriesMisalignmentController").getURIBuilder().setStringVector("audiences",a).setStringVector("countries",this.props.countries).getURI();new(c("AsyncRequest"))().setURI(a).setHandler(function(a){a=a.payload;c("AdsTargetingConnectionCountriesMisalignmentAction").dispatch({isMisaligned:a},{line:"1083",module:"AdsTargetingAudienceEditorContainer.react.js"})}).setErrorHandler(function(a){}).send()};e.$33=function(){if(this.state.newVblalAdded==null)return null;var a=this.state.newVblalAdded,b="";a.sourceType==="app_users"?b="app":a.sourceType==="fb_pixel"?b="pixel":a.sourceType==="offline_conversion_data_set"&&(b="offline event");var d=i._("u65b0u7684u4ef7u503cu5bfcu5411u578bu7c7bu4f3cu53d7u4f17u521bu5efau6210u529f");b=i._("u5df2u4f7fu7528{source name}u6210u529fu521bu5efau65b0u7684u4ef7u503cu5bfcu5411u578bu7c7bu4f3cu53d7u4f17{=m2}u3002",[i._param("source name",b),i._implicitParam("=m2",j.jsx("strong",{children:i._("{lookalike name}",[i._param("lookalike name",a.vblalName)])}))]);a=i._("u8be6u7ec6u4e86u89e3");return j.jsxs(c("BUIGuidanceCard.react"),{action:j.jsx(c("BUIGuidanceCardCloseButton.react"),{onPress:this.$3}),category:"success",margin:"_3-8x",children:[j.jsx(c("BUIGuidanceCardHeader.react"),{children:d}),j.jsxs(c("BUIGuidanceCardContent.react"),{children:[j.jsx(c("BUIGuidanceCardContentText.react"),{children:b}),j.jsx(c("BUIGuidanceCardContentLink.react"),{onPress:this.$31,children:a})]})]})};e.$34=function(){if(this.state.shouldDeprecateConnections&&this.state.areConnectionCountriesMisaligned){var a=i._("u5730u533au4e0du7b26"),b=this.props.dataFileCustomAudienceUsageType!=="saved audience"?"ad set":"saved audience";b=i._("u4f60u6709u4e00u7ec4u7c7bu4f3cu53d7u4f17u7684u5730u533au5b9au4f4du8bbeu7f6eu4e0e{creation source}u7684u8bbeu7f6eu4e0du540cu3002u5982u679cu4f60u5e0cu671bu8fd9u7ec4u53d7u4f17u5305u542b{creation sources}u5b9au4f4du5730u533au7684u7528u6237uff0cu9700u8bf7u79fbu9664u5e76u91cdu65b0u521bu5efau53d7u4f17u3002",[i._param("creation source",b),i._param("creation sources",b)]);return j.jsxs(c("BUIGuidanceCard.react"),{category:"active-feedback",children:[j.jsx(c("BUIGuidanceCardHeader.react"),{children:a}),j.jsx(c("BUIGuidanceCardContent.react"),{children:j.jsx(c("BUIGuidanceCardContentText.react"),{children:b})})]})}return null};e.$35=function(){if(!this.props.isFromSavedAudience||!this.props.isLookalikeRelaxationErrorState)return null;var a=this.state.adAccount.getValue();a=d("AdsAutomationRenamingUtils").isAutomationRenamingEnabledForAdAccount(a);return j.jsxs(c("BUIGuidanceCard.react"),{category:"error",children:[j.jsx(c("BUIGuidanceCardHeader.react"),{children:d("AdsTargetingLookalikeRelaxationConstants").LOOKALIKE_RELAXATION_INCLUDE_LOOKALIKE_HEADER}),j.jsx(c("BUIGuidanceCardContent.react"),{children:j.jsx(c("BUIGuidanceCardContentText.react"),{children:a?d("AdsTargetingLookalikeRelaxationConstants").LOOKALIKE_RELAXATION_INCLUDE_LOOKALIKE_BODY_AUTOMATION_RENAMED:d("AdsTargetingLookalikeRelaxationConstants").LOOKALIKE_RELAXATION_INCLUDE_LOOKALIKE_BODY})})]})};e.$36=function(){return this.state.valueBasedUpsellSpinnerStatus==y.LOADING&&d("AdsTargetingVBLALUpsellUtils").isEligible(this.state.targetableAudiences,this.state.targetableAudiencesLoaded)?j.jsx(c("GeoSpinner.react"),{label:d("AdsTargetingVBLALUpsellUtils").SPINNER_TEXT}):null};e.$12=function(){this.state.shouldDeprecateConnections&&this.$32();return j.jsxs(j.Fragment,{children:[this.$37(),this.$38(),j.jsx(c("AdsTargetingValueBasedLookalikeUpsellContainer.react"),{accountID:this.props.accountID,actions:this.props.actions,campaignIDs:this.props.campaignIDs,countries:this.props.countries,customAudiences:this.props.customAudiences,dataFileCustomAudienceUsageType:this.props.dataFileCustomAudienceUsageType,excludedCustomAudiences:this.props.excludedCustomAudiences,numCampaigns:this.props.numCampaigns,objectiveData:this.props.objectiveData,optimizationGoal:this.props.optimizationGoal,targetableAudiences:this.state.targetableAudiences}),this.$36(),this.$30(),this.$33(),this.$35(),this.$34(),this.$39()]})};e.$40=function(a){var b=this.props.customAudiences.some(function(b){return b.lookalike_type===a});return b?b:this.props.excludedCustomAudiences.some(function(b){return b.lookalike_type===a})};e.$41=function(){if(!this.state.targetableAudiencesLoaded||this.state.targetableAudiences==null)return!1;var a=this.state.targetableAudiences.getValueEnforcing().toJS();return Object.keys(a).some(function(b){b=a[b];return d("CustomAudienceUtils").isAudienceEUPrivacyDirectiveImpacted(b)})};e.$37=function(){var a=this,b=this.$27();if(b!=null&&b.length!==0)return j.jsx(w,{badAudiences:b});if(this.$26())return j.jsx(j.Fragment,{children:this.$24()});b=this.$28();if(b!==null)return j.jsx(j.Fragment,{children:b});b=this.props.dataFileCustomAudienceUsageType!=="saved audience"?"ad set":"saved audience";var d=this.$41();if(d)return j.jsx(u,{});if(this.state.canUseLookalikeContainer||this.state.canUseLookalikeContainerInPublic){d=this.$40("lookalike")&&this.state.canUseLookalikeContainer;var e=this.$40("regulated")&&this.state.canUseLookalikeContainerInPublic,f=this.$40("regulated_container");d=d||e;var g=p(this.props).length;return j.jsxs(j.Fragment,{children:[j.jsx(s,{audiencesLength:g,creationSource:b,isRegulated:f,spinnerStatus:this.state.lookalikeToLookalikeContainerConversionSpinnerStatus,onClose:this.$4}),j.jsx(v,{audiencesLength:p(this.props).length,creationSource:b,hasLegacyLookalikes:d,isRegulated:e,spinnerStatus:this.state.lookalikeToLookalikeContainerConversionSpinnerStatus}),j.jsx(r,{hasLegacyLookalikes:d,isRegulated:f,seedSizeStatus:this.state.seedSizeStatus}),j.jsx(t,{creationSource:b,hasLegacyLookalikes:d,isRegulated:e,spinnerStatus:this.state.lookalikeToLookalikeContainerConversionSpinnerStatus,onClick:function(){return c("adsTargetingCreateLookalikeContainers")(a.props.accountID,a.props.actions,a.props.countries,a.props.customAudiences,a.props.excludedCustomAudiences,e,a.state.targetableAudiences)}})]})}return j.jsxs(j.Fragment,{children:[this.$18(),this.$20(),this.$22()]})};e.$42=function(){return this.props.safrExclusionConfig?this.props.safrExclusionConfig.is_visible:!0};e.$38=function(){if(!this.state.targetableAudiencesLoaded)return o();var a=this.props.width?this.props.width-d("AdsCommonTargetingConstants").TABLE_LABEL_WIDTH:void 0,b=this.$42(),e=d("AdsTargetingLookalikeRelaxationUtils").isCampaignLookalikeRelaxationEligible(this.props.isNewCampaign,this.props.optimizationGoal,this.props.objectiveData.objective,this.props.targetingRelaxationTypes,this.props.promotedObjectType);return j.jsx(c("AdsTargetingAudienceTokenizer.react"),{accountID:this.props.accountID,adAccount:this.state.adAccount.getValue(),advantageAudienceCAExclusionSectionEnabled:this.props.advantageAudienceCAExclusionSectionEnabled,allowExclusion:b,allowedCustomAudienceCategories:d("AdsTargetingAudienceUtils").GetValidAudienceTypes(this.props.safrInclusionConfig,[c("AdsAudienceFilterEnum").ALL,c("AdsAudienceFilterEnum").REGULATED_CATEGORIES_AUDIENCE,c("AdsAudienceFilterEnum").CUSTOM_AUDIENCE],this.props.selectedRegulatedCategory,this.state.passSpecialAdAudienceDeprecationPhase2GKSelector),audienceCreationPopoverMenu:this.$43(),bulkEditBulkControlSelection:this.props.bulkEditBulkControlSelection,bulkEditLink:this.props.bulkEditLink,campaignEndTimestamp:this.props.campaignEndTimestamp,campaignHasDeletedConnectionsSavedAudience:this.state.campaignHasDeletedConnectionsSavedAudience,campaignIDs:this.props.campaignIDs,canShowLALaaSGuidanceCard:this.$44(),canShowLALaaSInlineDisclosure:this.$45(),canUseCustomAudienceExpansion:this.state.canUseCustomAudienceExpansion,canUseLookalikeContainer:this.state.canUseLookalikeContainer,canUseLookalikeContainerInPublic:this.state.canUseLookalikeContainerInPublic,countries:this.props.countries,currentReachFrequencyCampaignStartIn48Hours:this.props.currentReachFrequencyCampaignStartIn48Hours,customAudiences:this.props.customAudiences,customAudiencesToCampaignsInfoMap:this.props.customAudiencesToCampaignsInfoMap,dao:this.props.dao,dataFileCustomAudienceUsageType:this.props.dataFileCustomAudienceUsageType,disableAudienceCreation:this.state.isAdProposalCreationMode||this.props.disableAudienceCreation,excludedCustomAudienceCategories:d("AdsTargetingAudienceUtils").GetValidAudienceTypes(this.props.safrExclusionConfig,[c("AdsAudienceFilterEnum").CUSTOM_AUDIENCE],this.props.selectedRegulatedCategory,this.state.passSpecialAdAudienceDeprecationPhase2GKSelector,this.props.advantageAudienceCAExclusionSectionEnabled),excludedCustomAudiences:this.props.excludedCustomAudiences,excludedCustomAudiencesToCampaignsInfoMap:this.props.excludedCustomAudiencesToCampaignsInfoMap,hasAppEventSegmentsAudience:this.state.campaignHasAppEventSegmentAudience,hostID:this.props.hostID,inclusionExclusionMode:this.props.inclusionExclusionMode,isAdAccountAdmin:this.$25(),isBulkControl:this.props.isBulkControl,isCampaignCustomAudienceExpansionEligible:!0,isCampaignLookalikeRelaxationEligible:e,isCustomAudiencesMixedValue:this.props.isCustomAudiencesMixedValue,isExcludedCustomAudiencesMixedValue:this.props.isExcludedCustomAudiencesMixedValue,isFromSavedAudience:this.props.isFromSavedAudience,isNewSavedAudienceCreation:this.props.isNewSavedAudienceCreation,isOnsiteDonateAd:this.props.isOnsiteDonateAd,isPersonalAdAccount:!this.props.accountInfo.business,isTargetingYouthByAge:this.props.isTargetingYouthByAge,isUntrustedAccount:this.props.accountInfo.is_tier_0,logDataSource:this.props.logDataSource,numCampaigns:this.props.numCampaigns,objective:this.props.objectiveData.objective,optimizationGoal:this.props.optimizationGoal,pageID:this.props.pageID,pageTypes:this.props.pageTypes,placeholder:this.props.placeholder,productCatalogID:this.props.productCatalogID,promotedObjectType:this.props.promotedObjectType,regulatedCategories:this.props.regulatedCategories,selectedAudienceType:this.props.selectedAudienceType,selectedRegulatedCategory:this.props.selectedRegulatedCategory,shouldEnableIos14AppInstallPrepChanges:this.props.shouldEnableIos14AppInstallPrepChanges,shouldEnableIos14AppInstallSignalLossChanges:this.props.shouldEnableIos14AppInstallSignalLossChanges,shouldEnableNonAppInstallSignalLossChanges:this.props.shouldEnableNonAppInstallSignalLossChanges,shouldShowVBLALInVOBanner:d("AdsTargetingVBLALUpsellUtils").shouldUseVBLALInVOBanner(this.props.optimizationGoal,this.props.objectiveData.objective,this.state.shouldAdAccountUseVBLALInVO),shouldUseSnapshotForDynamicCA:this.props.shouldUseSnapshotForDynamicCA,signalLossLALInclusionWarningData:this.state.signalLossLALInclusionWarningData,specialAdCategoryCountries:(b=this.props.specialAdCategoryCountries)!=null?b:[],targetableAudiences:this.$46(),targetingRelaxationTypes:this.props.targetingRelaxationTypes,targetingRelaxationTypesBulkSpec:this.props.targetingRelaxationTypesBulkSpec,width:a,onChangeCustomAudiences:this.props.actions.changeCustomAudiences,onChangeExcludedAudiences:this.props.actions.changeExcludedAudiences,onCreateAudienceClick:this.$47,onExcludeAudience:this.props.disableExcludeCustomAudiences?void 0:this.$48,onIncludeAudience:this.$49,onRelaxationChange:this.props.actions.changeRelaxation,onRemoveAudience:this.$50,onRemoveAudienceGroup:this.$51},"tokenizer")};e.$25=function(){var a="";this.props.accountInfo.userpermissions&&this.props.accountInfo.userpermissions.data&&this.props.accountInfo.userpermissions.data.length>0&&(a=this.props.accountInfo.userpermissions.data[0].role);return a==="ADMIN"};e.$46=function(){var a=this.state.targetableAudiences;return a!=null?a.getValueEnforcing():c("immutable").Map()};e.$43=function(){if(this.state.isAdProposalCreationMode||this.props.disableAudienceCreation)return null;var a=this.context.getCustomProperties();return j.jsx(c("AdsTargetingAudienceCreationPopoverMenu.react"),{disableCustomAudienceCreationItem:a.disableCustomAudienceCreationItem,disableLookalikeAudienceCreationItem:a.disableLookalikeAudienceCreationItem,isReachFrequency:this.props.isReachFrequency,isSpecialAdAudienceDeprecationEnabled:this.state.passSpecialAdAudienceDeprecationPhase1GKSelector,isTargetingYouthByAge:this.props.isTargetingYouthByAge,ref:"createAudienceMenu",selectedRegulatedCategory:this.props.selectedRegulatedCategory,shouldExcludeMACA:this.props.shouldEnableIos14AppInstallPrepChanges},"creationMenu")};e.$39=function(){var a=this.$52();return this.state.isAdProposalCreationMode||!this.state.showAudienceCreationMenuNUX||this.props.disableAudienceCreation||this.props.selectedRegulatedCategory||!a?null:j.jsx(c("XUIAmbientNUX.react"),{behaviors:{ContextualLayerUpdateOnScroll:c("ContextualLayerUpdateOnScroll"),LayerHideOnBlur:c("LayerHideOnBlur")},contextRef:this.$52,customwidth:m,position:"right",shown:this.state.showAudienceCreationMenuNUX,width:"custom",onCloseButtonClick:this.$53,children:j.jsxs("div",{children:[i._("u4f60u53efu4ee5u5728u521bu5efau5e7fu544au7ec4u65f6u5febu901fu5730u521bu5efau7c7bu4f3cu53d7u4f17uff0cu9009u62e9u83dcu5355u4e2du7684u201cu7c7bu4f3cu53d7u4f17u201du5373u53efu5f00u59cbu3002"),j.jsx(c("Link.react"),{className:"_5is3",href:"https://www.facebook.com/business/help/231114077092092",target:"_blank",children:i._("u8be6u7ec6u4e86u89e3")}),j.jsx("span",{children:"."})]})},"audienceNUX")};e.$13=function(){var a;if(!this.state.showCreateCustomAudienceDialog&&!this.state.showValueBasedDataFileUploadDialog&&!this.state.showDFCACreationDialog)return null;var b=c("CustomAudienceTosUtils").getTosRequirements();return j.jsx(c("AudienceManagerCreateAudienceFlatDialogSuspense.react"),{accountID:this.props.accountID,accountInfo:this.props.accountInfo,autoLaunch:(a=this.$54())!=null?a:void 0,dao:this.props.dao,isOnsiteDonateAd:this.props.isOnsiteDonateAd,selectedRegulatedCategory:!!this.props.selectedRegulatedCategory,showDFCACreationDialog:this.state.showDFCACreationDialog,showEngagementAudienceNUX:this.state.showEngagementAudienceNUX,tosAccepted:this.state.tosAccepted,tosRequirementsForAccount:b,width:k,onAudienceAdded:this.$55,onCancel:d("AdsTargetingAudienceActions").hideCreateCustomAudienceDialog})};e.$54=function(){return this.state.showValueBasedDataFileUploadDialog?{workflow_id:"value_based_data_file",from_vlal_cf_upsell:!0}:null};e.$14=function(){return!this.state.showLookalikeCreationDialog?null:j.jsx(c("AdsTargetingBootloadDialog.react"),{accountID:this.props.accountID,audience:this.state.lookalikeSeedAudience,bootloadLoader:c("JSResource")("AudienceManagerTieredLookalikeDialog.react").__setRef("AdsTargetingAudienceEditorContainer.react"),bootloadPlaceholder:o(),defaultCountry:this.props.lookalikePrefillCountry,selectedRegulatedCategory:this.props.selectedRegulatedCategory,width:k,onAudienceAdded:this.$55,onClose:d("AdsTargetingAudienceActions").hideCreateLookalikeAudienceDialog})};e.$45=function(){if(this.props.areAllCampaignsLALaaS!==!0)return!1;var a=c("adsUEditorSelectedCampaignsSelector")(c("AdsEditingCampaignEditorContext"));a=d("AdsDetailedTargetingRelaxationUtils").isAppInstallsOrMessagesObjective(a,this.props.objectiveData.effectiveObjective);return!a?!0:this.props.areAllCampaignsNew===!1||this.state.shouldShowLALaaSGuidanceCard===!1};e.$44=function(){if(!x(this.props.areAllCampaignsLALaaS,this.props.areAllCampaignsNew)||this.state.shouldShowLALaaSGuidanceCard===!1)return!1;var a=c("adsUEditorSelectedCampaignsSelector")(c("AdsEditingCampaignEditorContext"));a=d("AdsDetailedTargetingRelaxationUtils").isAppInstallsOrMessagesObjective(a,this.props.objectiveData.effectiveObjective);return a};e.$57=function(a){if(a.subtype!=="CUSTOM")return!1;var b=this.state.tosAccepted;if(a.is_value_based)return!(b&&b.value_based_custom_audience_tos);else return!(b&&b.custom_audience_tos)};e.$21=function(a){if(!this.state.targetableAudiencesLoaded)return!1;if(this.state.targetableAudiences==null)return!1;var b=this.state.targetableAudiences.getValueEnforcing().toJS();return Object.keys(b).some(function(c){return b[c].subtype==="CUSTOM"&&b[c].is_value_based===a})};e.$56=function(a,b){c("AdsInterfacesLogger").log({eventName:b,data:(b={},b.targeting_ui_event_data=JSON.stringify({subtype:a.subtype,data_source:a.data_source,rule_v2:a.rule_v2,flow:this.props.logDataSource}),b)},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)};e.$7=function(a,b,e){var f;f=((f=b)!=null?f:[]).length>1;if(f){c("AdsTargetingAsASignalGuidanceCardImpressionsAction").dispatch({showCard:!1,cardName:e},{line:"1937",module:"AdsTargetingAudienceEditorContainer.react.js"});return}f=c("XAdsTargetingAsASignalImpressionsController").getURIBuilder().setString("ad_account_id",a).setEnum("card_placement",e).getURI();a=new(c("AsyncRequest"))().setURI(f).setHandler(function(a){a=a.payload;c("AdsTargetingAsASignalGuidanceCardImpressionsAction").dispatch({showCard:a,cardName:e},{line:"1953",module:"AdsTargetingAudienceEditorContainer.react.js"})}).setErrorHandler(function(a){d("AdsTargetingSignalLossUtils").logTargetingUserEventWithCampaignIDsOnce("targeting_as_a_signal_impression_controller_error",(a=b)!=null?a:[],{card_placement:e});c("AdsTargetingAsASignalGuidanceCardImpressionsAction").dispatch({showCard:!1,cardName:e},{line:"1965",module:"AdsTargetingAudienceEditorContainer.react.js"})});a.send()};return b}(a);b.contextTypes={getCustomProperties:c("prop-types").func.isRequired};e=c("AdsFluxContainer").create(b,{withProps:!0,name:f.id});g["default"]=e}),98);
-----
LeadsManagerViewReducer",[],(function(a,b,c,d,e,f){"use strict";function a(a){return{settingsViewShown:!1,showCSVImportSection:!1,isShowingToS:!a.isToSAccepted}}function b(a,b){switch(b.type){case"LEADS_MANAGER_SETTINGS_VIEW":return babelHelpers["extends"]({},a,{showCSVImportSection:!1,settingsViewShown:b.settingsViewShown});case"LEADS_MANAGER_TOGGLE_CSV_IMPORT_SECTION":return babelHelpers["extends"]({},a,{settingsViewShown:!1,showCSVImportSection:b.showCSVImportSection});case"LEADS_MANAGER_TOGGLE_TOS_MODAL":return babelHelpers["extends"]({},a,{isShowingToS:b.showToSModal,settingsViewShown:!1,showCSVImportSection:!1});default:return a}}f.getInitialViewState=a;f.viewReducer=b}),66);
-----
LeadsManagerMainView.react",["cx","fbt","ix","$InternalEnum","BasicFBNux","BizKitDefaultPage.react","BizKitPageHeader.react","BizKitPageHeaderStrings","ErrorBoundary.react","FlexLayout.react","GeoCard.react","GeoFlexbox.react","GeoHeading.react","GeoPageHeader.react","GeoSection.react","GeoTab.react","GeoTabGroup.react","GeoToolbar.react","GeoTour.react","GeoTourFeatureStep.react","LeadsCenterAYMTRefs.react","LeadsCenterDigestNotificationClickFalcoEvent","LeadsCenterLeadsTabClickFalcoEvent","LeadsCenterMarketingEmailUpsellBanner.react","LeadsCenterOnboardingDismissFalcoEvent","LeadsCenterOnboardingEnterFlowFalcoEvent","LeadsCenterOnboardingExitFlowFalcoEvent","LeadsCenterPopUpTipRenderer.react","LeadsCenterQPLLogger","LeadsManagerActionBar.react","LeadsManagerCSVImportToast.react","LeadsManagerConstants","LeadsManagerContext","LeadsManagerLeadDetailsContainer.react","LeadsManagerSearchRoot.react","LeadsManagerSearchRootNew.react","LeadsManagerStagesBarRoot.react","LeadsManagerTableRoot.react","LeadsManagerTypes","LeadsManagerViewContext","RelayHooks","fbicon","geoMargin","isTruthy","nullthrows","qpl","react","stylex"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=d("react");e=d("react");var l=e.useContext,m=e.useEffect,n=e.useState,o=b("$InternalEnum").Mirrored(["NOT_READY","SHOW_NUX","DISABLED"]),p="paid_digest",q={workArea:{marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",paddingLeft:"xnm25rq",paddingRight:"xyfqnmn",$$css:!0},tableSplit:{alignItems:"x1qjc9v5",boxSizing:"x9f619",display:"x78zum5",$$css:!0},workAreaRedesignMVP:{marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",$$css:!0},tableSplitRedesignMVP:{boxSizing:"x9f619",$$css:!0},leadsManagerMainViewRedesignMVP:{display:"x78zum5",flexDirection:"x1q0g3np",width:"xh8yej3",$$css:!0},leadsManagerMainViewWithTableRedesignMVP:{display:"x78zum5",flexDirection:"xdt5ytf",width:"xh8yej3",$$css:!0},leadsManagerContactCardRedesignMVP:{width:"xh8yej3",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},mainContentRootMVP:{overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},contextCardContainerMVP:{width:"xh8yej3",height:"x5yr21d",position:"x1n2onr6",bottom:"x1ey2m1c",left:"xu96u03",right:"x3m8u43",top:"x13vifvy",overflowX:"x6ikm8r",$$css:!0},fullWidth:{width:"xh8yej3",$$css:!0}},r=d("fbicon")._(j("531311"),16),s=d("fbicon")._(j("875309"),16);function a(a){var b,e,f=a.pageID,g=a.response,h=l(c("LeadsManagerContext")),j=h.dispatch,w=h.state;h=l(c("LeadsManagerViewContext"));var x=h.dispatchForView;h=d("RelayHooks").useRelayEnvironment();var y=new URLSearchParams(window.location.search),z=y.get("entry_exp")===p,A=k.createRef();m(function(){z&&w.selectedSource!=="Paid"&&(j({type:"LEADS_MANAGER_SELECT_SOURCE",source:"Paid"}),A.current==null&&(A.current=!0,c("LeadsCenterDigestNotificationClickFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{notification_use_case:"PAID_NEW_LEAD"},event_location:"leads_center",page_id:f}}))),d("LeadsCenterQPLLogger").logEventStart(c("qpl")._(793518510,"1087"),!0)},[j,z]);y=n(c("isTruthy")((y=g.onboarding_nux)==null?void 0:y.should_show)?o.NOT_READY:o.DISABLED);var B=y[0],C=y[1],D=w.currentTableState,E=w.isInBizKit,F=w.shouldShowLeadCenterIntegration;y=w.isPageInLeadsCenterQualTest;var G=w.shouldShowLeadManagementMVP,H=w.isPageInLeadsCenterPipelineViewTest,I=w.selectedLeadIDs,J=w.openLeadsCenterDetailView;I=I.toArray();B===o.NOT_READY&&D===d("LeadsManagerTypes").LeadsManagerTableStates.LEADS_LOADED&&C(o.SHOW_NUX);m(function(){(D===d("LeadsManagerTypes").LeadsManagerTableStates.LEADS_LOADED||D===d("LeadsManagerTypes").LeadsManagerTableStates.NULL_STATE)&&d("LeadsCenterQPLLogger").logEventEndSuccess(c("qpl")._(793516600,"692"))},[D]);var K=function(b){c("LeadsCenterOnboardingDismissFalcoEvent").log(function(){return{event_location:"leads_center",page_id:a.pageID,client_timestamp_ms:Date.now(),event_data:{step_id:b}}})},L=function(){var b;b=B===o.SHOW_NUX&&c("isTruthy")((b=g.onboarding_nux)==null?void 0:b.should_show);b&&(d("BasicFBNux").onView(d("LeadsManagerConstants").ONBOARDING_NUX_ID),c("LeadsCenterOnboardingEnterFlowFalcoEvent").log(function(){return{event_location:"leads_center",page_id:a.pageID,client_timestamp_ms:Date.now(),event_data:{}}}));return k.jsxs(c("GeoTour.react"),{isActive:b,onHide:function(){C(o.DISABLED)},onComplete:function(){c("LeadsCenterOnboardingExitFlowFalcoEvent").log(function(){return{event_location:"leads_center",page_id:a.pageID,client_timestamp_ms:Date.now(),event_data:{}}})},children:[k.jsx(c("GeoTourFeatureStep.react"),{content:i._("u7ef4u62a4u7ebfu7d22u5e7fu544au4e92u52a8u7528u6237u7684u4fe1u606fu3002u8f7bu677eu7ec4u7ec7u7ba1u7406u6f5cu5728u5ba2u6237uff0cu6216u4e0eu4e4bu5b9eu65f6u4e92u52a8uff0cu4eceu800cu62c9u8fd1u4e0eu4ed6u4eecu7684u8dddu79bbu3002"),position:"above",heading:i._("u57f9u517bu6f5cu5728u5ba2u6237"),image:k.jsx(k.Fragment,{}),contextRef:d("LeadsCenterAYMTRefs.react").tableRef,onHide:function(){K("table")}}),k.jsx(c("GeoTourFeatureStep.react"),{content:i._("u67e5u770bu6f5cu5728u5ba2u6237u8be6u60c5uff0cu4e86u89e3u4f60u7684u6f5cu5728u5ba2u6237u3002u4f60u53efu4ee5u6307u5b9au6240u6709u8005u3001u8bbeu7f6eu63d0u9192u6216u8005u6dfbu52a0u5907u6ce8u548cu6807u7b7euff0cu4ee5u4fbfu4e0eu6f5cu5728u5ba2u6237u8fdbu884cu66f4u591au4e92u52a8u3002"),position:"above",heading:i._("u7f16u8f91u6f5cu5728u5ba2u6237u8be6u60c5"),image:k.jsx(k.Fragment,{}),contextRef:d("LeadsCenterAYMTRefs.react").detailRef,onHide:function(){K("contact")}}),k.jsx(c("GeoTourFeatureStep.react"),{content:i._("u6309u9636u6bb5u5bf9u6f5cu5728u5ba2u6237u8fdbu884cu5206u7c7bu5e76u8ffdu8e2au8f6cu5316u8fdbu5ea6u3002u4f60u53efu4ee5u5728u8bbeu7f6eu4e2du521bu5efau3001u5220u9664u3001u91cdu65b0u6392u5217u6216u91cdu547du540du9636u6bb5uff0cu8fdbu4e00u6b65u5b9au5236u6f5cu5728u5ba2u6237u6f0fu6597u3002"),heading:i._("u5206u9636u6bb5u7ba1u7406u6f5cu5728u5ba2u6237"),image:k.jsx(k.Fragment,{}),contextRef:d("LeadsCenterAYMTRefs.react").stageRef,onHide:function(){K("stage")}}),k.jsx(c("GeoTourFeatureStep.react"),{content:i._("u5229u7528u81eau5b9au4e49u53d7u4f17u529fu80fduff0cu5728 Facebook u7528u6237u4e2du627eu5230u73b0u6709u53d7u4f17uff0cu6216u8005u501fu52a9u7c7bu4f3cu53d7u4f17u529fu80fduff0cu5438u5f15u4e0eu73b0u6709u6f5cu5728u5ba2u6237u7c7bu4f3cu7684u65b0u53d7u4f17u3002"),heading:i._("u5229u7528u53d7u4f17u5de5u5177u5438u5f15u65b0u7684u6f5cu5728u5ba2u6237"),image:k.jsx(k.Fragment,{}),contextRef:d("LeadsCenterAYMTRefs.react").audienceRef,onHide:function(){K("audience")}})]})},M=t(g),N=u(g),O=v(g);O={owners:M,pageDetails:O,pageID:f,stages:N};var P=n("table"),Q=P[0];P=P[1];b=(b=a==null?void 0:(b=a.response.page)==null?void 0:(b=b.business_presence_node)==null?void 0:(b=b.biz_crm_config)==null?void 0:(b=b.crm_feature_gating)==null?void 0:b.should_show_audience_tool)!=null?b:!1;var R=k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("LeadsManagerActionBar.react"),{pageID:f,audienceExpansionLWI:c("nullthrows")(g.lwi),crmConfig:(e=g.page)==null?void 0:(e=e.business_presence_node)==null?void 0:e.biz_crm_config,shouldShowAudienceTool:b,audienceButtonRef:d("LeadsCenterAYMTRefs.react").audienceRef})});e=k.jsxs("div",{className:"x1qjc9v5 x9f619 x78zum5",children:[k.jsx("div",{style:{width:1400},children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").tableRef,children:k.jsx(c("LeadsManagerTableRoot.react"),babelHelpers["extends"]({},O,{environment:h,showToSModal:function(){x({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})},leadsCenterView:"table"}))})})}),k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").detailRef,children:k.jsx(c("LeadsManagerLeadDetailsContainer.react"),babelHelpers["extends"]({},O,{shouldShowLeadCenterIntegration:F}))})}),w.shouldShowCSVImportToast&&k.jsx(c("LeadsManagerCSVImportToast.react"),{})]});b=k.jsxs("div",{className:"x9f619",children:[k.jsx("div",{className:"xh8yej3",children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").tableRef,children:k.jsx(c("LeadsManagerTableRoot.react"),babelHelpers["extends"]({},O,{environment:h,showToSModal:function(){x({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})},leadsCenterView:"table"}))})})}),w.shouldShowCSVImportToast&&k.jsx(c("LeadsManagerCSVImportToast.react"),{})]});var S=k.jsxs(c("GeoCard.react"),{children:[E&&k.jsx(c("GeoSection.react"),{children:k.jsxs(c("FlexLayout.react"),{justify:"all",align:"center",children:[k.jsx(c("GeoHeading.react"),{level:1,children:d("LeadsManagerConstants").OPPORTUNITIES}),R]})}),k.jsxs("div",{children:[k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").stageRef,children:k.jsx(c("LeadsManagerStagesBarRoot.react"),{pageID:f,stages:N})})})}),k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("LeadsManagerSearchRoot.react"),{pageID:f,owners:M,leadsCenterView:Q})})})]}),k.jsx("div",{className:"clearfix"}),e]});h=k.jsxs("div",{className:"x1qjc9v5 x9f619 x78zum5",children:[k.jsx("div",{style:{width:1400},children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").tableRef,children:k.jsx(c("LeadsManagerTableRoot.react"),babelHelpers["extends"]({},O,{environment:h,showToSModal:function(){x({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})},leadsCenterView:"pipeline"}))})})}),w.shouldShowCSVImportToast&&k.jsx(c("LeadsManagerCSVImportToast.react"),{})]});P=k.jsx("div",{style:{maxWidth:"400"},className:c("stylex")(c("geoMargin").top16,c("geoMargin").start12),children:k.jsxs(c("GeoTabGroup.react"),{onChange:P,value:Q,children:[k.jsx(c("GeoTab.react"),{icon:r,label:d("LeadsManagerConstants").PIPELINE_VIEW_TAB_LABEL,value:"pipeline",onActivate:Q==="table"?U:void 0}),k.jsx(c("GeoTab.react"),{icon:s,label:d("LeadsManagerConstants").TABLE_VIEW_TAB_LABEL,value:"table",onActivate:Q==="pipeline"?U:void 0})]})});U=k.jsxs("div",{children:[k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").filterToolRef,className:c("stylex")(c("geoMargin").bottom12),children:k.jsx(c("GeoCard.react"),{children:k.jsxs("div",{children:[P,k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("LeadsManagerSearchRootNew.react"),{pageID:f,owners:M,leadsCenterView:Q})})})]})})}),k.jsx("div",{className:"clearfix"}),h]});h=k.jsxs("div",{className:"xh8yej3",children:[k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").filterToolRef,className:c("stylex")(c("geoMargin").bottom12),children:k.jsx(c("GeoCard.react"),{children:k.jsxs("div",{children:[P,k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("LeadsManagerSearchRootNew.react"),{pageID:f,owners:M,leadsCenterView:Q})})}),k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").stageRef,children:k.jsx(c("LeadsManagerStagesBarRoot.react"),{pageID:f,stages:N})})})})]})})}),k.jsx("div",{className:"clearfix"}),b]});P=k.jsxs(c("GeoCard.react"),{children:[k.jsxs("div",{ref:d("LeadsCenterAYMTRefs.react").filterToolRef,children:[k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("LeadsManagerSearchRootNew.react"),{pageID:f,owners:M,leadsCenterView:Q})})}),k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").stageRef,children:k.jsx(c("LeadsManagerStagesBarRoot.react"),{pageID:f,stages:N})})})})]}),k.jsx("div",{className:"clearfix"}),e]});e=k.jsxs("div",{children:[k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").filterToolRef,className:c("stylex")(c("geoMargin").bottom12),children:k.jsx(c("GeoCard.react"),{children:k.jsxs("div",{children:[k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("LeadsManagerSearchRootNew.react"),{pageID:f,owners:M,leadsCenterView:Q})})}),k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").stageRef,children:k.jsx(c("LeadsManagerStagesBarRoot.react"),{pageID:f,stages:N})})})})]})})}),k.jsx("div",{className:"clearfix"}),e]});M=k.jsxs("div",{className:"xh8yej3",children:[k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").filterToolRef,className:c("stylex")(c("geoMargin").bottom12),children:k.jsx(c("GeoCard.react"),{children:k.jsxs("div",{children:[k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("LeadsManagerSearchRootNew.react"),{pageID:f,owners:M,leadsCenterView:Q})})}),k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").stageRef,children:k.jsx(c("LeadsManagerStagesBarRoot.react"),{pageID:f,stages:N})})})})]})})}),k.jsx("div",{className:"clearfix"}),b]});N=k.jsx("div",{children:Q==="pipeline"?U:Q==="table"?h:e});var T=F?d("BizKitPageHeaderStrings").LEADS:d("BizKitPageHeaderStrings").CUSTOMER;function U(){c("LeadsCenterLeadsTabClickFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{leads_center_view_type:Q==="table"?"pipeline":"table"},event_location:"leads_center",page_id:f}}),j({type:"LEADS_MANAGER_CLEAR_FILTERS"})}b=k.jsx("div",{className:["xr1yuqi xkrivgy x4ii5y1 x1gryazu","x78zum5 x1q0g3np xh8yej3"],children:k.jsxs("div",{className:["x78zum5 xdt5ytf xh8yej3"],children:[L(),(F||G)&&k.jsx(c("LeadsCenterPopUpTipRenderer.react"),{}),H?N:G?M:y?e:F?P:S]})});U=k.jsx("div",{className:"xh8yej3 x5yr21d x1n2onr6 x1ey2m1c xu96u03 x3m8u43 x13vifvy x6ikm8r",children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").detailRef,className:"xh8yej3 x5yr21d x6ikm8r x10wlt62",children:k.jsx(c("LeadsManagerLeadDetailsContainer.react"),babelHelpers["extends"]({},O,{shouldShowLeadCenterIntegration:F}))})})});var V=k.jsx(k.Fragment,{children:E&&k.jsx(c("LeadsCenterMarketingEmailUpsellBanner.react"),{query:a==null?void 0:a.response,pageID:f,bpnID:c("nullthrows")((h=g.page)==null?void 0:(M=h.business_presence_node)==null?void 0:M.id)})});O=function(){return k.jsx(c("GeoPageHeader.react"),{heading:T,toolbar:k.jsx(c("GeoToolbar.react"),{children:k.jsxs(k.Fragment,{children:[E||R,E&&k.jsx(c("FlexLayout.react"),{justify:"all",align:"center",children:F&&R}),V]})})})};return k.jsx(k.Fragment,{children:G||H?k.jsx(c("BizKitDefaultPage.react"),{initShowLocalNav:!1,hideHeader:!0,header:O(),contextualObject:I.length===0&&J===!1?null:k.jsx(c("GeoCard.react"),{children:U}),isFullwidth:!0,children:k.jsx(c("GeoCard.react"),{children:k.jsxs(c("GeoFlexbox.react"),{direction:"row",xstyle:Q==="pipeline"?{}:q.mainContentRootMVP,children:[k.jsx(c("GeoFlexbox.react"),{basis:"0",grow:1,shrink:1}),b]})})}):k.jsxs("div",{className:["xr1yuqi xkrivgy x4ii5y1 x1gryazu xnm25rq xyfqnmn"],style:{maxWidth:d("LeadsManagerConstants").MAX_SCREEN_WIDTH+"px"},children:[L(),(F||G)&&k.jsx(c("LeadsCenterPopUpTipRenderer.react"),{}),E||R,E&&k.jsx("div",{className:c("stylex")(c("geoMargin").bottom16,c("geoMargin").top24),children:k.jsxs(c("FlexLayout.react"),{justify:"all",align:"center",children:[k.jsx(c("BizKitPageHeader.react"),{heading:T}),F&&R]})}),V,H?N:y?e:F?P:S]})})}a.displayName=a.name+" [from "+f.id+"]";function t(a){var b=[];a=(a=a.page)==null?void 0:a.possible_lead_owners;a!=null&&a.map(function(a){b.push(a)});return b}function u(a){return(a=a.page)==null?void 0:a.page_opportunity_stages}function v(a){a=a.page;return{id:(a==null?void 0:a.id)||"",name:(a==null?void 0:a.name)||"",pictureURL:(a==null?void 0:(a=a.profile_picture)==null?void 0:a.uri)||""}}g["default"]=a}),98);
-----
LeadsManagerToSDialog.react",["cx","fbt","CRMConsentToTOSDialog.react","GeoButton.react","GeoCancelButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoSpinner.react","GeoText.react","LeadsCenterTosDismissFalcoEvent","LeadsCenterTosImpressionFalcoEvent","LeadsCenterTosSubmitFlowFalcoEvent","LeadsManagerAcceptToSMutation","LeadsManagerContext","LeadsManagerViewContext","RelayHooks","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");b=d("react");var k=b.useContext,l=b.useState;function a(a){var b=k(c("LeadsManagerViewContext")),e=b.stateForView,f=b.dispatchForView;b=k(c("LeadsManagerContext"));var g=b.dispatch;b=l(!1);var h=b[0],n=b[1];b=l(!1);var o=b[0],p=b[1];b=e.isShowingToS;var q=d("RelayHooks").useRelayEnvironment();e=k(c("LeadsManagerContext"));e=e.state;var r=e.isInBizKit?"BIZWEB_LEAD_CENTER":"PAGE_LEAD_CENTER";if(!a||h)return j.jsx(c("GeoSpinner.react"),{});b&&c("LeadsCenterTosImpressionFalcoEvent").log(function(){return{page_id:a.pageID,event_location:"leads_center",event_data:{}}});return j.jsxs("span",{children:[j.jsxs(c("GeoModal.react"),{footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{"data-testid":void 0,label:e.shouldShowLeadCenterIntegration?i._("u786eu8ba4"):i._("u540cu610f"),onClick:function(){f({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!1}),m(a.pageID,r,n,q,g)},variant:"primary"}),secondaryButton:j.jsx(c("GeoCancelButton.react"),{})}),header:j.jsx(c("GeoModalHeader.react"),{heading:e.shouldShowLeadManagementMVP?i._("u7ebfu7d22u5e7fu544au670du52a1u6761u6b3e"):i._("u6f5cu5728u5ba2u6237u7ba1u7406u4e2du5fc3u670du52a1u6761u6b3e")}),isShown:b&&e.shouldShowLeadManagementMVP&&!e.shouldShowLeadsCenterMVPWelcomeModal||b&&!e.shouldShowLeadManagementMVP,label:i._("u6f5cu5728u5ba2u6237u7ba1u7406u4e2du5fc3u670du52a1u6761u6b3e"),onHide:function(){c("LeadsCenterTosDismissFalcoEvent").log(function(){return{page_id:a.pageID,event_location:"leads_center",event_data:{}}}),f({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!1})},width:560,children:[j.jsx(c("GeoSection.react"),{children:j.jsx("div",{children:j.jsxs("div",{className:"_96mo",children:[j.jsx("div",{children:j.jsx(c("GeoText.react"),{children:i._("u4f60u7684u6f5cu5728u5ba2u6237u76f8u4fe1u4f60u4f1au4ee5u8d1fu8d23u4efbu7684u6001u5ea6u5904u7406u4ed6u4eecu7684u4fe1u606fu3002u70b9u51fbu201cu786eu8ba4u201duff0cu5373u8868u793au4f60u540cu610fu4e0bu5217u4e8bu9879uff1a")})}),j.jsx("div",{className:"_96mp",children:j.jsx(c("GeoText.react"),{children:i._("u4f60u6709u6743u9650u50a8u5b58u548cu4f7fu7528u6f5cu5728u5ba2u6237u4fe1u606fu53d1u9001u4ea4u6613u548cu63a8u5e7fu6d88u606fu3002")})}),j.jsx("div",{className:"_96mp",children:j.jsx(c("GeoText.react"),{children:i._("u4f60u7684u8054u7cfbu4ebau9009u62e9u5141u8bb8u51fau4e8eu8425u9500u76eeu7684u5206u4eabu6216u4f7fu7528u5176u6570u636eu3002")})}),j.jsx("div",{className:"_96mp",children:j.jsx(c("GeoText.react"),{children:i._("u5982u679cu8054u7cfbu4ebau9009u62e9u7981u6b62u5206u4eabu5176u4fe1u606fuff0cu65e0u8bbau4f55u65f6uff0cu4f60u90fdu5c06u7acbu5373u79fbu9664u76f8u5173u4fe1u606fu3002")})}),e.shouldShowLeadManagementMVP&&j.jsx("div",{className:"_96mp",children:j.jsx(c("GeoText.react"),{children:i._("u62e5u6709u6d88u606fu6536u53d1u6743u9650u7684u6536u4ef6u7bb1u7528u6237u5c06u81eau52a8u83b7u5f97u6f5cu5728u5ba2u6237u6743u9650u3002")})}),a.leadCount===0&&j.jsx(c("GeoLink.react"),{onClick:function(){p(!0)},children:i._("u67e5u770bu6211u4eecu7684u516cu5171u4e3bu9875u8054u7cfbu4ebau529fu80fdu670du52a1u6761u6b3e")})]})})}),a.leadCount>0&&j.jsx(c("GeoSection.react"),{children:j.jsx("div",{children:j.jsx("div",{className:"_96mo",children:j.jsx(c("GeoText.react"),{children:e.shouldShowLeadManagementMVP?(h=i._plural(a.leadCount,"number"),i._({"*":"u4f60u901au8fc7u5e7fu544au83b7u5f97{number}u4f4du53efu5bfcu5165u201cu6f5cu5728u5ba2u6237u201du7248u5757u7684u6f5cu5728u5ba2u6237u3002u70b9u51fbu4e0bu65b9u7684u201cu786eu8ba4u201duff0cu5373u8868u793au4f60u540cu610f{=m4}u5e76u4f1au5f00u59cbu5bfcu5165u6f5cu5728u5ba2u6237u4fe1u606fu3002u4f60u8fd8u53efu4ee5u901au8fc7{=m8}u4e0bu8f7du548cu67e5u770bu6f5cu5728u5ba2u6237u4fe1u606fu3002","_1":"u4f60u901au8fc7u5e7fu544au83b7u5f97 1 u4f4du53efu5bfcu5165u201cu6f5cu5728u5ba2u6237u201du7248u5757u7684u6f5cu5728u5ba2u6237u3002u70b9u51fbu4e0bu65b9u7684u201cu786eu8ba4u201duff0cu5373u8868u793au4f60u540cu610f{=m4}u5e76u4f1au5f00u59cbu5bfcu5165u6f5cu5728u5ba2u6237u4fe1u606fu3002u4f60u8fd8u53efu4ee5u901au8fc7{=m8}u4e0bu8f7du548cu67e5u770bu6f5cu5728u5ba2u6237u4fe1u606fu3002"},[h,i._implicitParam("=m4",j.jsx(c("GeoLink.react"),{onClick:function(){p(!0)},children:i._({"*":"u516cu5171u4e3bu9875u8054u7cfbu4ebau529fu80fdu670du52a1u6761u6b3e"},[h])})),i._implicitParam("=m8",j.jsx(c("GeoLink.react"),{href:"../publishing_tools/?section=LEAD_ADS_FORMS",children:i._({"*":"u53d1u5e03u5de5u5177"},[h])}))])):(h=i._plural(a.leadCount,"number"),i._({"*":"u4f60u901au8fc7u7ebfu7d22u5e7fu544au83b7u5f97{number}u4f4du53efu5bfcu5165u6f5cu5728u5ba2u6237u7ba1u7406u4e2du5fc3u7684u6f5cu5728u5ba2u6237u3002u70b9u51fbu4e0bu65b9u7684u201cu786eu8ba4u201duff0cu5373u8868u793au4f60u540cu610f{=m4}u5e76u4f1au5f00u59cbu5bfcu5165u6f5cu5728u5ba2u6237u4fe1u606fu3002u4f60u8fd8u53efu4ee5u901au8fc7{=m8}u4e0bu8f7du548cu67e5u770bu6f5cu5728u5ba2u6237u4fe1u606f","_1":"u4f60u901au8fc7u7ebfu7d22u5e7fu544au83b7u5f97 1 u4f4du53efu5bfcu5165u6f5cu5728u5ba2u6237u7ba1u7406u4e2du5fc3u7684u6f5cu5728u5ba2u6237u3002u70b9u51fbu4e0bu65b9u7684u201cu786eu8ba4u201duff0cu5373u8868u793au4f60u540cu610f{=m4}u5e76u4f1au5f00u59cbu5bfcu5165u6f5cu5728u5ba2u6237u4fe1u606fu3002u4f60u8fd8u53efu4ee5u901au8fc7{=m8}u4e0bu8f7du548cu67e5u770bu6f5cu5728u5ba2u6237u4fe1u606f"},[h,i._implicitParam("=m4",j.jsx(c("GeoLink.react"),{onClick:function(){p(!0)},children:i._({"*":"u516cu5171u4e3bu9875u8054u7cfbu4ebau529fu80fdu670du52a1u6761u6b3e"},[h])})),i._implicitParam("=m8",j.jsx(c("GeoLink.react"),{href:"../publishing_tools/?section=LEAD_ADS_FORMS",children:i._({"*":"u53d1u5e03u5de5u5177"},[h])}))]))})})})})]}),j.jsx(c("CRMConsentToTOSDialog.react"),{isShown:o,onConfirm:function(){p(!1)},onHide:function(){p(!1)}})]})}a.displayName=a.name+" [from "+f.id+"]";function m(a,b,e,f,g){c("LeadsCenterTosSubmitFlowFalcoEvent").log(function(){return{page_id:a,event_location:"leads_center",event_data:{}}}),e(!0),d("LeadsManagerAcceptToSMutation").commit(f,{actor_id:a,signature_surface:b},{onSuccess:function(a){var b;b=(b=a.lead_gen_tos_consent)==null?void 0:b.success;if(b===!0){g({type:"LEADS_MANAGER_ACCEPT_TOS_ACTION",isBackFillJobsRunning:((b=a.lead_gen_tos_consent)==null?void 0:(a=b.page)==null?void 0:a.has_leads_center_back_fill_job_running)||!1});g({type:"LEADS_MANAGER_SELECT_STAGE",stageID:null})}else e(!1)},onFailure:function(){e(!1)}})}g["default"]=a}),98);
-----
LeadsManagerTableNullState.react",["fbt","BUIButton.react","BUIText.react","FlexLayout.react","LeadsManagerLeadDetailsEditContactDialog.react","LeadsManagerViewContext","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useContext,k=b.useState;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=j(c("LeadsManagerViewContext")),f=e.dispatchForView;e=k(!1);var g=e[0],l=e[1];e=a.nullStateType;a=a.pageID;switch(e){case"TOS":return i.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[i.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center",children:h._("u8bf7u63a5u53d7u516cu5171u4e3bu9875u8054u7cfbu4ebau6761u6b3euff0cu4ee5u4fbfu4f7fu7528u6f5cu5728u5ba2u6237u7ba1u7406u5de5u5177u3002")}),i.jsx(c("BUIButton.react"),{label:h._("u67e5u770bu6761u6b3e"),use:"primary",onClick:function(){f({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})}})]});case"NO_LEADS":return i.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[g&&i.jsx(c("LeadsManagerLeadDetailsEditContactDialog.react"),{environment:b,lead:null,pageID:a,onClose:function(){l(!1)}}),i.jsx(c("BUIText.react"),{size:"header2","data-testid":void 0,children:h._("You don"t have any leads yet")}),i.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center","data-testid":void 0,children:h._("u901au8fc7u4f60u7684u7ebfu7d22u5e7fu544au83b7u5f97u7684u6f5cu5728u5ba2u6237u4f1au81eau52a8u663eu793au5728u8fd9u91ccu3002u4f60u4e5fu53efu4ee5u624bu52a8u521bu5efau6f5cu5728u5ba2u6237uff0cu6216u4eceu7535u5b50u8868u683cu4e0au4f20u6f5cu5728u5ba2u6237u540du5355u3002")}),i.jsxs("div",{margin:"_3-8x",children:[i.jsx(c("BUIButton.react"),{label:h._("u521bu5efau6f5cu5728u5ba2u6237"),use:"default",onClick:function(){l(!0)},"data-testid":void 0}),i.jsx(c("BUIButton.react"),{margin:"_3-9a",label:h._("u4e0au4f20u6f5cu5728u5ba2u6237"),use:"primary",onClick:function(){f({type:"LEADS_MANAGER_TOGGLE_CSV_IMPORT_SECTION",showCSVImportSection:!0})},"data-testid":void 0})]})]});case"NO_SEARCH_RESULTS":return i.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[i.jsx(c("BUIText.react"),{size:"header2",children:h._("u6ca1u6709u7ed3u679c")}),i.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center",children:h._("u5c1du8bd5u79fbu9664u7b5bu9009u6761u4ef6u6216u9009u62e9u5176u4ed6u9636u6bb5u3002")})]});case"DATA_PROPAGATING":return i.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[i.jsx(c("BUIText.react"),{size:"header2",children:h._("u6b63u5728u52a0u8f7du4f60u7684u6f5cu5728u5ba2u6237u6570u636euff01")}),i.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center",children:h._("We are working on fetching leads generated from your Lead Ads campaigns. It will take a while for the first time, please come back later.")})]});default:e;throw new Error("exhaustive switch case")}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
-----
WDCTOSModalQuery.graphql",["relay-runtime"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"XARDevProfile",kind:"LinkedField",name:"dev_profile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_accepted_terms",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"WDCTOSModalQuery",selections:e,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"WDCTOSModalQuery",selections:e},params:{id:"26688270044094399",metadata:{},name:"WDCTOSModalQuery",operationKind:"query",text:null}}})();n("relay-runtime").PreloadableQueryRegistry.set(e.params.id,e),a.exports=e}),null);
-----
WDCTOSModalQuery$Parameters",[],(function(t,n,r,o,a,i){"use strict";var e={kind:"PreloadableConcreteRequest",params:{id:"26688270044094399",metadata:{},name:"WDCTOSModalQuery",operationKind:"query",text:null}};a.exports=e}),null);
-----
BizKitContextCardTOSModalContainer.react",["BizKitContextCardConstants","BizKitContextCardTOSModal.react","BizKitContextCardTosLoggingUtils","GeoToast.react","react","react-compiler-runtime","useGeoToaster"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react"));function u(e){var t=o("react-compiler-runtime").c(24),n=e.bpnID,a=e.contactIdentity,i=e.isAdmin,l=e.isShown,u=e.onHide,c=e.pageContactID,d=e.pageID,m=e.surface,p=r("useGeoToaster")(),_=p.add,f;t[0]!==_?(f=function(t){var e=null;t==="error"?e=r("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_ERROR_TEXT:t==="success"&&(e=r("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_SUCCESS_TEXT),e!==null&&_(s.jsx(r("GeoToast.react"),{heading:e,status:t}),{duration:"standard"})},t[0]=_,t[1]=f):f=t[1];var g=f,h;t[2]!==u||t[3]!==c||t[4]!==d||t[5]!==m?(h=function(){o("BizKitContextCardTosLoggingUtils").logTosModalCancelFlow(d,c,m),u()},t[2]=u,t[3]=c,t[4]=d,t[5]=m,t[6]=h):h=t[6];var y=h,C;t[7]!==u||t[8]!==g?(C=function(){u(),g("success")},t[7]=u,t[8]=g,t[9]=C):C=t[9];var b=C,v;t[10]!==u||t[11]!==g?(v=function(){u(),g("error")},t[10]=u,t[11]=g,t[12]=v):v=t[12];var S=v,R;return t[13]!==n||t[14]!==a||t[15]!==S||t[16]!==b||t[17]!==y||t[18]!==i||t[19]!==l||t[20]!==c||t[21]!==d||t[22]!==m?(R=s.jsx(r("BizKitContextCardTOSModal.react"),{bpnID:n,contactIdentity:a,isAdmin:i,isShown:l,onAcceptFailure:S,onAcceptSuccess:b,onHide:y,pageContactID:c,pageID:d,surface:m}),t[13]=n,t[14]=a,t[15]=S,t[16]=b,t[17]=y,t[18]=i,t[19]=l,t[20]=c,t[21]=d,t[22]=m,t[23]=R):R=t[23],R}l.default=u}),98);
-----
BizWebCometOmniAiSMBPhotosModalContainer.react",["BizWebCometOmniAIA1OnboardingUtils","BizWebCometOmniAISMBPhotosUtils","BizWebCometOmniAiSMBPhotosModal.react","CometRelayErrorHandling","MessagingAIOnboardingFlowLoggingUtils","filterNulls","nullthrows","react","useBizAIFileUploader"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=r("react"));function u(e){var t=e.extraBottomContent,n=e.onAddProduct,a=e.overrideModalDescription,i=e.overrideModalTitle,l=e.pageID,u=e.photosState,c=e.shouldShowProductsRevamp,d=u.commitExtractImage,m=u.entrypointSource,p=u.products,_=u.selectedProductID,f=u.setProducts,g=u.setSelectedProductID,h=r("useBizAIFileUploader")(l,"photo_dump"),y=h.uploadImage,C={entrypoint_source:m};function b(e,t){f(function(t){return o("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(t,{id:e,status:"extracting"})}),d({onCompleted:function(n){var t;o("MessagingAIOnboardingFlowLoggingUtils").logSMBEvents("photos_ui_extraction_success",l,null,null,null,C);var a=n.xfb_biz_ai_photos_product_group_extraction.product,i={complexPrice:(t=o("BizWebCometOmniAISMBPhotosUtils")).formatExtractionString(a.complex_price),currency:t.formatExtractionString(a.currency,"USD"),description:t.formatExtractionString(a.description),name:t.formatExtractionString(a.name),price:a!=null&&a.price?r("nullthrows")(a.price)/100:a==null?void 0:a.price};f(function(t){return o("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(t,{data:i,extractedData:i,id:e,status:"extracted"})})},onError:function(n){o("MessagingAIOnboardingFlowLoggingUtils").logSMBExceptions("photos_ui_extraction_failed",l,null,null,null,n,C),o("BizWebCometOmniAIA1OnboardingUtils").shouldSilenceError(n)&&o("CometRelayErrorHandling").markErrorAsHandled(n),f(function(t){return o("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(t,{id:e,status:"extraction-failed"})})},variables:{input:{files:r("filterNulls")(t.map(function(e){return e.handle})),page_id:l,request_id:e}}})}async function v(e,t,n){if(o("MessagingAIOnboardingFlowLoggingUtils").logSMBEvents("photos_ui_files_selected",l,null,null,null,babelHelpers.extends({},C,{files:String(e.length)})),e.length!==0){var r=e.map(o("BizWebCometOmniAISMBPhotosUtils").createImage),a=!!n&&!c;if(t==null){var i=o("BizWebCometOmniAISMBPhotosUtils").createProduct(r);f(function(e){return[].concat(e,[i])}),g(i.id);var s=await Promise.all(r.map(function(e){return o("BizWebCometOmniAISMBPhotosUtils").uploadBizAIFile(e,y)}));f(function(e){return o("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(e,babelHelpers.extends({},i,{images:s,status:"uploaded"}))});var u=i.id;a&&await b(u,s)}else{var d=[].concat(t.images,r),m=t.id;f(function(e){return o("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(e,{id:m,images:d,status:a?"uploading":"uploaded"})});var p=await Promise.all(r.map(function(e){return o("BizWebCometOmniAISMBPhotosUtils").uploadBizAIFile(e,y)})),_=d.map(function(e){var t=p.find(function(t){return t.id===e.id});return t!=null?t:e});f(function(e){return o("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(e,{id:m,images:_})}),a&&await b(m,p)}}}var S=p.find(function(e){return e.id===_});if(S==null)return null;async function R(){if(S!=null){var e=S.images.filter(function(e){return e.handle!=null});e.length>0&&await b(S.id,e)}}return s.jsx(r("BizWebCometOmniAiSMBPhotosModal.react"),{entrypointSource:m,extraBottomContent:t,onAutoSave:n,onCreateNew:function(){var e=o("BizWebCometOmniAISMBPhotosUtils").createProduct([],"new");f(function(t){return[].concat(t,[e])}),g(e.id)},onHide:function(){g(null)},onRemove:function(){f(p.filter(function(e){return e.id!==S.id}))},onSelectFiles:v,onTriggerExtraction:R,onUpdate:function(t){f(function(e){return o("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(e,t)})},overrideModalDescription:a,overrideModalTitle:i,pageID:l,product:S,shouldShowProductsRevamp:c},""+S.id+String(o("BizWebCometOmniAISMBPhotosUtils").isProductStatus(S,"extracted")))}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98);
-----
BizGenAIProductCreateModal.react",["BizWebCometOmniAISMBPhotosUtils","BizWebCometOmniAiSMBPhotosModalContainer.react","react","react-compiler-runtime","useBizAIPhotosIngestion.react","useBizAIPhotosState.react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=e.useEffect;function c(e){var t,n,a,i,l,c,d,m,p=o("react-compiler-runtime").c(15),_=(t=e.extraProps)==null?void 0:t.pageID,f=(n=e.extraProps)==null?void 0:n.shouldShowProductsRevamp,g=(a=(i=e.extraProps)==null?void 0:i.photosStateEntrypoint)!=null?a:"knowledge-list",h=(l=e.extraProps)==null?void 0:l.overrideModalTitle,y=(c=e.extraProps)==null?void 0:c.overrideModalDescription,C=(d=e.extraProps)==null?void 0:d.extraBottomContent,b=(m=e.extraProps)==null?void 0:m.onSuccess,v=r("useBizAIPhotosState.react")(g),S;p[0]!==b?(S={onDone:function(){b==null||b()}},p[0]=b,p[1]=S):S=p[1];var R=r("useBizAIPhotosIngestion.react")(_!=null?_:"0",S),L=R.onAddProduct,E,k;if(p[2]!==v?(E=function(){var e=v.products,t=v.setProducts,n=v.setSelectedProductID;if(e.length===0){var r=o("BizWebCometOmniAISMBPhotosUtils").createProduct([],"new");t([r]),n(r.id)}},k=[v],p[2]=v,p[3]=E,p[4]=k):(E=p[3],k=p[4]),u(E,k),_==null)return null;var I;p[5]!==L?(I=function(t){L(t)},p[5]=L,p[6]=I):I=p[6];var T;return p[7]!==C||p[8]!==y||p[9]!==h||p[10]!==_||p[11]!==v||p[12]!==f||p[13]!==I?(T=s.jsx(r("BizWebCometOmniAiSMBPhotosModalContainer.react"),{extraBottomContent:C,onAddProduct:I,overrideModalDescription:y,overrideModalTitle:h,pageID:_,photosState:v,shouldShowProductsRevamp:f}),p[7]=C,p[8]=y,p[9]=h,p[10]=_,p[11]=v,p[12]=f,p[13]=I,p[14]=T):T=p[14],T}l.default=c}),98);
-----
WhatsAppBusinessTechProviderOnboardingResourcesCard.react",["fbt","BizMsgPlatformImpressionWrapper.react","GeoDivider.react","GeoFlexbox.react","GeoHeading.react","GeoPageItem.react","WhatsAppBizxPlatformLoggerEvent.flow","WhatsAppBusinessAccessPartnerToolsCard.react","WhatsAppBusinessQuickStartTestIntegrationTileCore.react","WhatsAppBusinessTechProviderESIntegrationHelperCard.react","WhatsAppBusinessTechProviderHostedESLandingCard.react","WhatsAppDirectSignupQuickstartCapiPartnerOnboardingTile.react","WhatsAppDirectSignupQuickstartMMLitePartnerOnboardingTile.react","WhatsAppDirectSignupQuickstartMapiPartnerOnboardingTile.react","XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook","geoWidth","gkx","react","useBizMsgPlatformLogger","useWhatsAppBusiness3PDOnboardingSharedState"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=s._(/*BTDS*/"Onboard customers"),d=s._(/*BTDS*/"Previously completed"),m=s._(/*BTDS*/"Offer more to your customers");function p(e){var t,n,a,i=e.appID,l=e.businessID,s=e.configs,p=r("useBizMsgPlatformLogger")(),_=r("useWhatsAppBusiness3PDOnboardingSharedState")(),f=_.state,g=f.onboardingProgress,h=f.isMMLiteAllowlisted,y=f.isMMLiteTosAccepted,C=f.isCapiTosModalSeen,b=f.isMapiTosModalSeen,v=f.xfb_get_app_review_status_for_all_unified_onboarding_products,S=f.navRef,R=_.dispatch,L=g==null?void 0:g.percentCompletedForProviderOnboarding,E=L===100,k=h===!0,I=o("XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook").toJSEnum(v==null||(t=v.app_review_submission_statuses)==null||(t=t.find(function(e){return e.product_type==="MMLITE"}))==null?void 0:t.app_review_submission_status),T=o("XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook").toJSEnum(v==null||(n=v.app_review_submission_statuses)==null||(n=n.find(function(e){return e.product_type==="MAPI"}))==null?void 0:n.app_review_submission_status),D=o("XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook").toJSEnum(v==null||(a=v.app_review_submission_statuses)==null||(a=a.find(function(e){return e.product_type==="CAPI"}))==null?void 0:a.app_review_submission_status),x=!1,$=!0,P=function(t){R({type:"UPDATE_IS_MM_LITE_TOS_ACCEPTED",value:t})},N=function(t){R({type:"UPDATE_IS_CAPI_TOS_MODAL_SEEN",value:t})},M=function(t){R({type:"UPDATE_IS_MAPI_TOS_MODAL_SEEN",value:t})};return E?u.jsx(r("BizMsgPlatformImpressionWrapper.react"),{onImpression:function(){p.logEvent(r("WhatsAppBizxPlatformLoggerEvent.flow").WA_TECH_PROVIDER_ONBOARDING_RESOURCES_UI,{},601)},children:function(t){return u.jsx(r("GeoPageItem.react"),{containerRef:t,columns:12,children:u.jsxs(r("GeoFlexbox.react"),{direction:"column",gap:16,children:[r("gkx")("14461")?u.jsx(r("WhatsAppBusinessAccessPartnerToolsCard.react"),{appID:i,businessID:l}):u.jsxs(u.Fragment,{children:[u.jsxs(r("GeoFlexbox.react"),{direction:"column",gap:16,children:[u.jsx(r("GeoHeading.react"),{level:1,xstyle:r("geoWidth").fullWidth,children:c}),u.jsxs(r("GeoFlexbox.react"),{gap:16,children:[(r("gkx")("8077")||r("gkx")("8075"))&&u.jsx(r("WhatsAppBusinessTechProviderHostedESLandingCard.react"),{appID:i,configs:s}),u.jsx(r("WhatsAppBusinessTechProviderESIntegrationHelperCard.react"),{appID:i,businessID:l})]})]}),u.jsx(r("WhatsAppBusinessQuickStartTestIntegrationTileCore.react"),{appID:i,businessID:l})]}),u.jsxs(r("GeoFlexbox.react"),{direction:"column",gap:16,children:[u.jsx(r("GeoHeading.react"),{level:1,xstyle:r("geoWidth").fullWidth,children:m}),k&&u.jsx(r("WhatsAppDirectSignupQuickstartMMLitePartnerOnboardingTile.react"),{appID:i,businessID:l,isMMLiteTosAccepted:y,navRef:S,isBspBusiness:x,appMMLiteReviewStatus:I,isTechProviderBusiness:$,updateIsMMLiteTosAccepted:P}),u.jsxs(u.Fragment,{children:[u.jsx(r("WhatsAppDirectSignupQuickstartCapiPartnerOnboardingTile.react"),{appID:i,appCapiReviewStatus:D,businessID:l,isCapiTosModalSeen:C,updateIsCapiTosModalSeen:N}),u.jsx(r("WhatsAppDirectSignupQuickstartMapiPartnerOnboardingTile.react"),{appID:i,businessID:l,isMapiTosModalSeen:b,isBspBusiness:x,appMapiReviewStatus:T,isTechProviderBusiness:$,updateIsMapiTosModalSeen:M})]})]}),u.jsx(r("GeoDivider.react"),{}),u.jsx(r("GeoHeading.react"),{level:1,xstyle:r("geoWidth").fullWidth,children:d})]})})}}):null}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226);
-----
WearablesTOSModal.react",["fbt","ix","CometRelay","GeoBlockingDialog.react","GeoButton.react","GeoHeading.react","GeoLink.react","GeoModalFooter.react","GeoSection.react","GeoText.react","GeoVStack.react","Image.react","WearablesConstants","WearablesTOSModalQuery.graphql","emptyFunction","react","react-compiler-runtime","useBoolean","useWearablesAcceptTOSMutation"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react");function m(a){var b=d("react-compiler-runtime").c(13);a=a.devProfileID;a=c("useWearablesAcceptTOSMutation")(a);var e=a[0];a=a[1];var f=c("useBoolean")(!0),g=f.setFalse;f=f.value;var j;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(j=h._(/*BTDS*/"Accept"),b[0]=j):j=b[0];var k;b[1]!==e||b[2]!==g?(k=function(){e(),g()},b[1]=e,b[2]=g,b[3]=k):k=b[3];b[4]!==a||b[5]!==k?(j=l.jsx(c("GeoModalFooter.react"),{primaryButton:l.jsx(c("GeoButton.react"),{"data-testid":void 0,isLoading:a,label:j,onClick:k,variant:"primary"})}),b[4]=a,b[5]=k,b[6]=j):j=b[6];b[7]===Symbol["for"]("react.memo_cache_sentinel")?(a=l.jsx(c("Image.react"),{src:i("842798")}),b[7]=a):a=b[7];b[8]===Symbol["for"]("react.memo_cache_sentinel")?(k=l.jsx(c("GeoHeading.react"),{level:3,children:h._(/*BTDS*/"Terms and policy")}),b[8]=k):k=b[8];b[9]===Symbol["for"]("react.memo_cache_sentinel")?(k=l.jsx(c("GeoSection.react"),{children:l.jsxs(c("GeoVStack.react"),{children:[k,l.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"By using {siteName}, you agree to the {=m4} and acknowledge you have read the {=m8}.",[h._param("siteName",d("WearablesConstants").SITE_NAME),h._implicitParam("=m4",l.jsx(c("GeoLink.react"),{href:"https://wearables.developer.meta.com/terms/",target:"_blank",children:h._(/*BTDS*/"Wearables Developer Terms")})),h._implicitParam("=m8",l.jsx(c("GeoLink.react"),{href:d("WearablesConstants").WEARABLES_ACCEPTABLE_USE_POLICY_LINK,target:"_blank",children:h._(/*BTDS*/"Acceptable Use Policy")}))])})]})}),b[9]=k):k=b[9];b[10]!==f||b[11]!==j?(a=l.jsx(c("GeoBlockingDialog.react"),{footer:j,heading:"",image:a,isShown:f,onHide:c("emptyFunction"),children:k}),b[10]=f,b[11]=j,b[12]=a):a=b[12];return a}function a(a){var c,e=d("react-compiler-runtime").c(2);a=a.displayQueryReference;a=d("CometRelay").usePreloadedQuery(j!==void 0?j:j=b("WearablesTOSModalQuery.graphql"),a);c=(c=(c=a.viewer)==null||(c=c.dev_profile)==null?void 0:c.has_accepted_terms)!=null?c:!1;a=(a=a.viewer)==null||(a=a.dev_profile)==null?void 0:a.id;if(c||a==null)return null;e[0]!==a?(c=l.jsx(m,{devProfileID:a}),e[0]=a,e[1]=c):c=e[1];return c}g["default"]=a}),226);
-----
WearablesTOSModalQuery.graphql",["relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"XARDevProfile",kind:"LinkedField",name:"dev_profile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_accepted_terms",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"WearablesTOSModalQuery",selections:a,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"WearablesTOSModalQuery",selections:a},params:{id:"31428112256804256",metadata:{},name:"WearablesTOSModalQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
WearablesDevCenterBuildRouterRoot",["CometRelayEnvironmentFactory","CurrentUser","MetaAuthCometCookieConsent.react","WearablesDevCenterCometApp.react","WearablesTOSModalQuery$Parameters","buildCometRootComponent","buildWearablesCometRouterStateProvider","cr:21356","createCometRelayBaseEntryPointEnvironmentProvider","deferredLoadComponent","loadCometAppshellEntrypoint","qpl","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=c("deferredLoadComponent")(c("requireDeferred")("WearablesDevCenterErrorRoot.react").__setRef("WearablesDevCenterBuildRouterRoot"));function a(a,e){var f=c("CurrentUser").getARID();a=c("buildWearablesCometRouterStateProvider")(babelHelpers["extends"]({},a,{initialLoadTraceId:e,navigationQPLEvent:c("qpl")._(328403328,"885"),relayEnvironmentFactory:d("CometRelayEnvironmentFactory").CometRelayEnvironmentFactory}));var g={getDeferredQueries:function(){return{}},getDisplayQueries:function(){return{tosQueryReference:{parameters:c("WearablesTOSModalQuery$Parameters"),variables:{}}}}};g=c("loadCometAppshellEntrypoint")(c("WearablesDevCenterCometApp.react"),g,c("createCometRelayBaseEntryPointEnvironmentProvider")(d("CometRelayEnvironmentFactory").CometRelayEnvironmentFactory,f));return d("buildCometRootComponent").buildCometRootComponent(g,{initialLoadTraceId:e,relayEnvironmentFactory:d("CometRelayEnvironmentFactory").CometRelayEnvironmentFactory},{CometRouterStateProvider:a,OtherRootComponents:{CookieConsentDialog:c("MetaAuthCometCookieConsent.react"),KeyCommandNub:null,Redblock:b("cr:21356"),UncaughtErrorFallback:h},UIStateProviders:{}})}g.buildWearablesDevCenterRouterRootComponent=a}),98);
-----
WearablesTOSModalQuery$Parameters",[],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:"31428112256804256",metadata:{},name:"WearablesTOSModalQuery",operationKind:"query",text:null}};e.exports=a}),null);
-----
CatalogCreationBasicsCardContent.react",["fbt","CUIErrorCard.react","CatalogBusinessEventsLoggerHelper","CatalogCreationAutomaticPermissionSwitch.react","CatalogCreationBasicsCardContentPartnershipQuery.graphql","CatalogCreationBillingInput.react","CatalogCreationBusinessSelector.react","CatalogCreationCountrySelector.react","CatalogCreationErrorMessage.react","CatalogCreationMarketplacePartnerSellerTOSModal.react","CatalogCreationNameInput","CatalogCreationPageSelectorContainer.react","CatalogCreationPartnerNameInput.react","CatalogCreationPartnerSelection.react","CatalogCreationProfilePictureSelectorContainer.react","CatalogCreationTestCatalogCheckbox.react","CatalogCreationVerticalSelector.react","CatalogTermOfService.react","CatalogVerticalsConfig","CommerceManagerHooks","CommerceManagerOnboardingPartnerPlatformUtils","CommerceManagerSuspense.react","GeoBaseText.react","GeoFlexbox.react","GeoInputGroup.react","GeoSection.react","GeoSpinner.react","GeoTextInput.react","MarketplaceCatalogTermsOfService.react","SFLUtilityMethods","SellerFunnelLoggingHooks","ShopifyOptimizedOnboardingDomainContext.react","getApplicableDisabledState","getNoAccessForBusinessActionTooltip","gkx","justknobx","react","react-compiler-runtime","useAcceptMarketplacePartnershipTOS","useCommerceManagerRouteParams","useCommerceManagerRouter","vulture"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u,m=d.useCallback,p=d.useEffect,_={suffixInput:{width:"x14atkfc",$$css:!0}},f=e!==void 0?e:e=n("CatalogCreationBasicsCardContentPartnershipQuery.graphql");function g(){return r("gkx")("1451")}function h(e){var t,n,a,l,u,d=o("react-compiler-runtime").c(107),m=e.isPartnerPlatformEnabled,b=e.setCreationState,v=e.state,S=e.togglePartnerPlatformSelection,R=r("useCommerceManagerRouter")(),L=o("SellerFunnelLoggingHooks").useEventLogging(),E;d[0]!==b?(E=function(t){b(function(e){return babelHelpers.extends({},e,{partnerPlatform:t})})},d[0]=b,d[1]=E):E=d[1];var k;d[2]===Symbol.for("react.memo_cache_sentinel")?(k={action:"create_catalog_select_partner"},d[2]=k):k=d[2];var I=o("SFLUtilityMethods").useSflAwareLambda(E,k,h),T;d[3]===Symbol.for("react.memo_cache_sentinel")?(T=o("CatalogCreationPartnerSelection.react").partnerPlatforms.find(C),d[3]=T):T=d[3];var D=T,x=r("useCommerceManagerRouteParams")(),$;d[4]!==m||d[5]!==(x==null?void 0:x.ad_account_id)||d[6]!==I||d[7]!==v.businessID||d[8]!==v.partnerPlatform?($=function(){g()&&m&&v.partnerPlatform==null&&(r("CatalogBusinessEventsLoggerHelper").getCatalogCreateFlowLogger().setEvent("catalog_create_new_onboarding_woocommerce_defaulted").setAdAccountID(x==null?void 0:x.ad_account_id).setActionData({business_id:v.businessID}).log(),D!=null&&I(D))},d[4]=m,d[5]=x==null?void 0:x.ad_account_id,d[6]=I,d[7]=v.businessID,d[8]=v.partnerPlatform,d[9]=$):$=d[9];var P=x==null?void 0:x.ad_account_id,N;d[10]!==m||d[11]!==I||d[12]!==v.businessID||d[13]!==v.partnerPlatform||d[14]!==P?(N=[v.businessID,v.partnerPlatform,D,I,P,m],d[10]=m,d[11]=I,d[12]=v.businessID,d[13]=v.partnerPlatform,d[14]=P,d[15]=N):N=d[15],p($,N);var M;d[16]!==b?(M=function(t){r("vulture")("yGbykDywoA5T0FOf7iqkGxStHBc="),b(function(e){return babelHelpers.extends({},e,{billingTimezone:t})})},d[16]=b,d[17]=M):M=d[17];var w=M,A;d[18]!==b?(A=function(t){r("vulture")("rpxpkrADL7MFllIoaFkeW5eMhB4="),b(function(e){return babelHelpers.extends({},e,{billingCurrencyCode:t})})},d[18]=b,d[19]=A):A=d[19];var F=A,O;d[20]!==b?(O=function(t){b(function(e){return babelHelpers.extends({},e,{catalogName:t})})},d[20]=b,d[21]=O):O=d[21];var B=O,W;d[22]!==R||d[23]!==b?(W=function(t){b(function(e){return babelHelpers.extends({},e,{businessID:t,pageID:null,selectedCountry:null})}),r("justknobx")._("2309")&&R.replace({params:{business_id:t}})},d[22]=R,d[23]=b,d[24]=W):W=d[24];var q;d[25]===Symbol.for("react.memo_cache_sentinel")?(q={action:"create_catalog_select_business"},d[25]=q):q=d[25];var U=o("SFLUtilityMethods").useSflAwareLambda(W,q,h),V;d[26]!==b?(V=function(t){b(function(e){return babelHelpers.extends({},e,{brandName:t})})},d[26]=b,d[27]=V):V=d[27];var H=V,G;d[28]!==b?(G=function(t){b(function(e){return babelHelpers.extends({},e,{pageID:t})})},d[28]=b,d[29]=G):G=d[29];var z=G,j;d[30]!==b?(j=function(t){b(function(e){return babelHelpers.extends({},e,{selectedCountry:t})})},d[30]=b,d[31]=j):j=d[31];var K=j,Q;d[32]!==b?(Q=function(t){b(function(e){return babelHelpers.extends({},e,{isTestCatalog:t,selectedCountry:null})})},d[32]=b,d[33]=Q):Q=d[33];var X=Q,Y;d[34]!==b?(Y=function(t){r("vulture")("Ba35RCh7jft01eF5grkN1THNCHg="),b(function(e){return babelHelpers.extends({},e,{catalogProfilePicture:t})})},d[34]=b,d[35]=Y):Y=d[35];var J=Y,Z;d[36]!==b?(Z=function(t){b(function(e){return babelHelpers.extends({},e,{shopifyState:babelHelpers.extends({},e.shopifyState,{shopifyDomain:t})})})},d[36]=b,d[37]=Z):Z=d[37];var ee=Z,te;d[38]!==b?(te=function(t){b(function(e){return babelHelpers.extends({},e,{automaticPermission:t})})},d[38]=b,d[39]=te):te=d[39];var ne=te,re;d[40]!==b?(re=function(t){r("vulture")("Xly9f3_G0irL9taCINYIbDWF7mc="),b(function(e){return babelHelpers.extends({},e,{showMarketplacePartnerSellerTOSModal:t})})},d[40]=b,d[41]=re):re=d[41];var oe=re,ae=o("useAcceptMarketplacePartnershipTOS").useAcceptMarketplacePartnershipTOS(),ie;if(d[42]!==v.catalogName){var le;ie=(le=v.catalogName)==null?void 0:le.trim(),d[42]=v.catalogName,d[43]=ie}else ie=d[43];var se=ie,ue=m===!0&&((t=v.partnerPlatform)==null?void 0:t.key)===o("CommerceManagerOnboardingPartnerPlatformUtils").PartnerPlatformsType.SHOPIFY,ce=v.vertical===o("CatalogVerticalsConfig").CatalogCreationVertical.Commerce&&(m!==!0||ue),de=v.vertical===o("CatalogVerticalsConfig").CatalogCreationVertical.MarketplacePartnership,me;d[44]===Symbol.for("react.memo_cache_sentinel")?(me=s._(/*BTDS*/"Shopify website"),d[44]=me):me=d[44];var pe=me,_e;if(d[45]!==b||d[46]!==((n=v.shopifyState)==null?void 0:n.shopifyDomain)){var fe;_e=function(){b(function(e){var t;return babelHelpers.extends({},e,{validationErrors:babelHelpers.extends({},e.validationErrors,{shopifyDomain:!o("ShopifyOptimizedOnboardingDomainContext.react").isShopifyDomainPrefixValid((t=v.shopifyState)==null?void 0:t.shopifyDomain)})})})},d[45]=b,d[46]=(fe=v.shopifyState)==null?void 0:fe.shopifyDomain,d[47]=_e}else _e=d[47];var ge=_e,he=(a=v.businessID)!=null?a:"",ye=v.businessID!==null,Ce;d[48]!==he||d[49]!==ye?(Ce={bizID:he,hasBusinessID:ye},d[48]=he,d[49]=ye,d[50]=Ce):Ce=d[50];var be=o("CommerceManagerHooks").useCommerceManagerLazyQuery(f,Ce),ve=((l=be.business)==null?void 0:l.if_viewer_can_connect_to_apartner_platform)!==null,Se=!ve,Re;d[51]!==v.catalogID||d[52]!==Se?(Re=r("getApplicableDisabledState")([Se,r("getNoAccessForBusinessActionTooltip")()],[v.catalogID!=null,""]),d[51]=v.catalogID,d[52]=Se,d[53]=Re):Re=d[53];var Le=Re,Ee=v.catalogID!=null,ke;d[54]!==b||d[55]!==v.businessID||d[56]!==v.showMarketplacePartnership||d[57]!==v.vertical||d[58]!==Ee?(ke=c.jsx(r("CatalogCreationVerticalSelector.react"),{businessID:v.businessID,isDisabled:Ee,setCreationState:b,showMarketplacePartnership:v.showMarketplacePartnership,vertical:v.vertical}),d[54]=b,d[55]=v.businessID,d[56]=v.showMarketplacePartnership,d[57]=v.vertical,d[58]=Ee,d[59]=ke):ke=d[59];var Ie;d[60]!==Le||d[61]!==m||d[62]!==I||d[63]!==v.partnerPlatform||d[64]!==v.vertical||d[65]!==S?(Ie=v.vertical===o("CatalogVerticalsConfig").CatalogCreationVertical.Commerce&&c.jsx(o("CatalogCreationPartnerSelection.react").CatalogCreationPartnerSelection,{disabledMessage:Le.disabledMessage,isDisabled:Le.isDisabled,isPartnerPlatformEnabled:m,selectedPartnerPlatform:v.partnerPlatform,setPartnerPlatform:I,togglePartnerPlatformSelection:S}),d[60]=Le,d[61]=m,d[62]=I,d[63]=v.partnerPlatform,d[64]=v.vertical,d[65]=S,d[66]=Ie):Ie=d[66];var Te;if(d[67]!==m||d[68]!==ue||d[69]!==se||d[70]!==ne||d[71]!==U||d[72]!==B||d[73]!==ee||d[74]!==ce||d[75]!==v.automaticPermission||d[76]!==v.automaticPermissionFeatureEnabled||d[77]!==v.businessID||d[78]!==v.catalogID||d[79]!==v.catalogName||d[80]!==((u=v.shopifyState)==null?void 0:u.shopifyDomain)||d[81]!==v.validationErrors||d[82]!==ge){var De,xe,$e,Pe,Ne;Te=ce&&c.jsxs(c.Fragment,{children:[c.jsx(r("CommerceManagerSuspense.react"),{errorComponent:r("CUIErrorCard.react"),loadingComponent:c.jsx(r("GeoSpinner.react"),{center:!0,loggingName:i.id}),oncall:"catalog_interfaces",children:c.jsx(r("CatalogCreationBusinessSelector.react"),{description:s._(/*BTDS*/"Only catalogs added to a business portfolio can be used to run ads."),isDisabled:v.catalogID!=null,label:s._(/*BTDS*/"Business portfolio"),selectedBusinessID:v.businessID,onBusinessSelected:U})}),ue&&c.jsxs(r("GeoInputGroup.react"),{label:pe,children:[c.jsx(r("GeoTextInput.react"),{errorMessage:v.validationErrors.shopifyDomain?s._(/*BTDS*/"Enter a valid website name."):null,isLabelHidden:!0,label:pe,value:(De=(xe=v.shopifyState)==null?void 0:xe.shopifyDomain)!=null?De:"",onBlur:ge,onChange:ee}),c.jsx(r("GeoTextInput.react"),{isDisabled:!0,isLabelHidden:!0,label:pe,value:".myshopify.com",xstyle:_.suffixInput,onChange:y})]}),v.automaticPermissionFeatureEnabled?c.jsx(r("CatalogCreationAutomaticPermissionSwitch.react"),{isDisabled:v.catalogID!=null,value:v.automaticPermission,onChange:ne}):null,m!==!0&&c.jsx(r("CatalogCreationNameInput"),{catalogName:($e=v.catalogName)!=null?$e:"",errorMessage:v.validationErrors.catalogName===!0&&se===""?s._(/*BTDS*/"Enter a catalog name."):v.validationErrors.catalogName===!0&&((Pe=se==null?void 0:se.length)!=null?Pe:0)>150?s._(/*BTDS*/"Catalog name cannot exceed 150 characters."):null,label:s._(/*BTDS*/"Name"),onCatalogNameChange:B})]}),d[67]=m,d[68]=ue,d[69]=se,d[70]=ne,d[71]=U,d[72]=B,d[73]=ee,d[74]=ce,d[75]=v.automaticPermission,d[76]=v.automaticPermissionFeatureEnabled,d[77]=v.businessID,d[78]=v.catalogID,d[79]=v.catalogName,d[80]=(Ne=v.shopifyState)==null?void 0:Ne.shopifyDomain,d[81]=v.validationErrors,d[82]=ge,d[83]=Te}else Te=d[83];var Me;if(d[84]!==ae||d[85]!==de||d[86]!==H||d[87]!==U||d[88]!==J||d[89]!==K||d[90]!==b||d[91]!==F||d[92]!==X||d[93]!==z||d[94]!==oe||d[95]!==w||d[96]!==L||d[97]!==v){var we,Ae,Fe,Oe;Me=de&&c.jsxs(c.Fragment,{children:[c.jsx(r("CatalogCreationErrorMessage.react"),{state:v}),c.jsx(r("CommerceManagerSuspense.react"),{errorComponent:r("CUIErrorCard.react"),loadingComponent:c.jsx(r("GeoSpinner.react"),{center:!0,loggingName:i.id}),oncall:"mp_partnerships",children:c.jsx(r("CatalogCreationBusinessSelector.react"),{description:"",isDisabled:v.catalogID!=null,label:s._(/*BTDS*/"Business portfolio"),selectedBusinessID:v.businessID,onBusinessSelected:U})}),c.jsx(r("CatalogCreationPartnerNameInput.react"),{brandName:(we=v.brandName)!=null?we:"",errorMessage:"",onBrandNameChange:H}),c.jsx(r("CatalogCreationProfilePictureSelectorContainer.react"),{setCatalogProfilePicture:J}),v.businessID!=null&&c.jsxs(r("CommerceManagerSuspense.react"),{errorComponent:r("CUIErrorCard.react"),loadingComponent:c.jsx(r("GeoSpinner.react"),{center:!0,loggingName:i.id}),oncall:"mp_partnerships",children:[c.jsx(r("CatalogCreationTestCatalogCheckbox.react"),{isTestCatalog:v.isTestCatalog,onIsTestCatalogChange:X}),c.jsx(r("CatalogCreationCountrySelector.react"),{businessID:v.businessID,isTestCatalog:v.isTestCatalog,selectedCountry:v.selectedCountry,onCountrySelected:K})]}),c.jsx(r("CommerceManagerSuspense.react"),{errorComponent:r("CUIErrorCard.react"),loadingComponent:c.jsx(r("GeoSpinner.react"),{center:!0,loggingName:i.id}),oncall:"mp_partnerships",children:c.jsx(r("CatalogCreationBillingInput.react"),{businessID:(Ae=v.businessID)!=null?Ae:"",currency:(Fe=v.billingCurrencyCode)!=null?Fe:"",timezone:(Oe=v.billingTimezone)!=null?Oe:"",onCurrencyChange:F,onTimezoneChange:w})}),c.jsx(r("CatalogCreationPageSelectorContainer.react"),{businessID:v.businessID,selectedPageID:v.pageID,onPageSelected:z}),c.jsx(r("CatalogCreationMarketplacePartnerSellerTOSModal.react"),{isShown:v.showMarketplacePartnerSellerTOSModal,mutationInFlight:v.marketplacePartnerSellerTOSAcceptRequest.inProgress,onAccept:function(){L({event_status:"success",event_type:"click",react_component_name:"CatalogCreationMarketplacePartnerSellerTOSModal"}),ae({setCreationState:b,state:v})},onHide:function(){r("vulture")("331t8nbIClfLPJV5gcyjgBKSHMw="),oe(!1)}})]}),d[84]=ae,d[85]=de,d[86]=H,d[87]=U,d[88]=J,d[89]=K,d[90]=b,d[91]=F,d[92]=X,d[93]=z,d[94]=oe,d[95]=w,d[96]=L,d[97]=v,d[98]=Me}else Me=d[98];var Be;d[99]!==de?(Be=c.jsx(r("GeoBaseText.react"),{color:"placeholder",size:"valueDescription",children:de?c.jsx(r("MarketplaceCatalogTermsOfService.react"),{}):c.jsx(r("CatalogTermOfService.react"),{})}),d[99]=de,d[100]=Be):Be=d[100];var We;return d[101]!==ke||d[102]!==Ie||d[103]!==Te||d[104]!==Me||d[105]!==Be?(We=c.jsx(r("GeoSection.react"),{children:c.jsxs(r("GeoFlexbox.react"),{direction:"column",gap:16,children:[ke,Ie,Te,Me,Be]})}),d[101]=ke,d[102]=Ie,d[103]=Te,d[104]=Me,d[105]=Be,d[106]=We):We=d[106],We}function y(){}function C(e){return(e==null?void 0:e.key)===o("CommerceManagerOnboardingPartnerPlatformUtils").PartnerPlatformsType.WOOCOMMERCE}l.default=h}),226);
-----
ToSModal.react",["fbt","GeoBaseText.react","GeoButton.react","GeoDivider.react","GeoGenericModalHeader.react","GeoModal.react","GeoModalFooter.react","GeoTextPairing.react","MixedPermissionsBackwardFixStrings","MixedPermissionsEventsFalcoEvent","RelayHooks","ToSBusinessInfo.react","ToSModal_businessQuery.graphql","ToSModal_pageQuery.graphql","ToSUserInfo.react","geoMargin","react","stylex","useGeoConfirmationModal","useGeoTheme"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react")),n=l.useCallback,o=i!==void 0?i:i=b("ToSModal_businessQuery.graphql"),p=j!==void 0?j:j=b("ToSModal_pageQuery.graphql");function a(a){var b;a.extraProps;a.props.onHide;a=a.queries;var e=a.businessQueryRef;a=a.pageQueryRef;var f=d("RelayHooks").usePreloadedQuery(o,e);f=f.business;a=d("RelayHooks").usePreloadedQuery(p,a);var g=(b=f==null?void 0:f.name)!=null?b:"",i=(a=(b=a.node)==null?void 0:b.name)!=null?a:"";b=c("useGeoTheme")();a=b.selectSpacing;b=a({bounds:"internal",context:"container",relation:"component"});var j=c("useGeoConfirmationModal")();a=n(function(){c("MixedPermissionsEventsFalcoEvent").log(function(){return{business_id:e.variables.businessID,event_data:{event_location:"bizweb",event_name:"accept_clicked",event_type:"ui"},user_id:null}})},[e.variables.businessID]);var l=n(function(){j({body:d("MixedPermissionsBackwardFixStrings").TOS_DECLINE_CONFIRMATION_WARNING_MIXED_PERMISSIONS(g,i),cancel:h._(/*BTDS*/"Cancel"),confirm:h._(/*BTDS*/"Decline"),onConfirm:function(){c("MixedPermissionsEventsFalcoEvent").log(function(){return{business_id:e.variables.businessID,event_data:{event_location:"bizweb",event_name:"decline_clicked",event_type:"ui"},user_id:null}})},title:d("MixedPermissionsBackwardFixStrings").TOS_DECLINE_CONFIRMATION_TITLE_MIXED_PERMISSIONS})},[j,g,i,e.variables.businessID]);return m.jsxs(c("GeoModal.react"),{footer:m.jsx(c("GeoModalFooter.react"),{primaryButton:m.jsx(c("GeoButton.react"),{label:d("MixedPermissionsBackwardFixStrings").ACCEPT_BUTTON_LABEL,onClick:a,variant:"primary"}),secondaryButton:m.jsx(c("GeoButton.react"),{label:d("MixedPermissionsBackwardFixStrings").DECLINE_BUTTON_LABEL,onClick:l,variant:"default"})}),header:m.jsx(c("GeoGenericModalHeader.react"),{children:m.jsx("div",{className:"x2b8uid",children:m.jsx(c("GeoTextPairing.react"),{description:d("MixedPermissionsBackwardFixStrings").TOS_MODAL_DESCRIPTION_MIXED_PERMISSIONS,heading:d("MixedPermissionsBackwardFixStrings").TOS_MODAL_HEADING_MIXED_PERMISSIONS(g),size:"header2",textAlign:"center"})})}),onHide:function(){},width:600,children:[m.jsx(c("GeoDivider.react"),{xstyle:[c("geoMargin").vert8,c("geoMargin").horiz16]}),f&&m.jsx("div",babelHelpers["extends"]({},(k||(k=c("stylex"))).props(b),{children:m.jsx(c("ToSBusinessInfo.react"),{businessRef:f})})),m.jsx(c("GeoDivider.react"),{xstyle:[c("geoMargin").vert8,c("geoMargin").horiz16]}),f&&m.jsx("div",babelHelpers["extends"]({},(k||(k=c("stylex"))).props(b),{children:m.jsx(c("ToSUserInfo.react"),{businessName:(a=f.name)!=null?a:"",businessRef:f})})),m.jsx(c("GeoDivider.react"),{xstyle:[c("geoMargin").vert8,c("geoMargin").horiz16]}),m.jsx("div",babelHelpers["extends"]({},(k||(k=c("stylex"))).props(b),{children:m.jsx(c("GeoBaseText.react"),{color:"valueDescription",size:"valueDescription",children:d("MixedPermissionsBackwardFixStrings").TOS_MODAL_ACTION_TEXT_MIXED_PERMISSIONS(g,i)})}))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
ToSModal_pageQuery.graphql",["ToSModal_pageQuery_facebookRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"pageID"}],c=[{kind:"Variable",name:"id",variableName:"pageID"}],d={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],type:"Page",abstractKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"ToSModal_pageQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[d],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"ToSModal_pageQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("ToSModal_pageQuery_facebookRelayOperation"),metadata:{},name:"ToSModal_pageQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
ToSModal_businessQuery.graphql",["ToSModal_businessQuery_facebookRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"businessID"}],c=[{kind:"Variable",name:"id",variableName:"businessID"}],d={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"ToSModal_businessQuery",selections:[{alias:null,args:c,concreteType:"AdBusiness",kind:"LinkedField",name:"business",plural:!1,selections:[d,{args:null,kind:"FragmentSpread",name:"ToSBusinessInfo_business"},{args:null,kind:"FragmentSpread",name:"ToSUserInfo_business"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"ToSModal_businessQuery",selections:[{alias:null,args:c,concreteType:"AdBusiness",kind:"LinkedField",name:"business",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"creation_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"business_verification_status",storageKey:null},{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBBusinessProfile",kind:"LinkedField",name:"business_profile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"legal_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"country",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"website_url",storageKey:null},e],storageKey:null},{alias:null,args:null,concreteType:"BusinessUser",kind:"LinkedField",name:"business_user_for_viewer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null},d,e],storageKey:null},e],storageKey:null}]},params:{id:b("ToSModal_businessQuery_facebookRelayOperation"),metadata:{},name:"ToSModal_businessQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
ToSModal.entrypoint",["JSResourceForInteraction","ToSModal_businessQuery$Parameters","ToSModal_pageQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var b=a.businessID;a=a.pageID;return{extraProps:{businessID:b,pageID:a},queries:{businessQueryRef:{parameters:c("ToSModal_businessQuery$Parameters"),variables:{businessID:b}},pageQueryRef:{parameters:c("ToSModal_pageQuery$Parameters"),variables:{pageID:a}}}}},root:c("JSResourceForInteraction")("ToSModal.react").__setRef("ToSModal.entrypoint")};g["default"]=a}),98);
-----
ToSModal_pageQuery$Parameters",["ToSModal_pageQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("ToSModal_pageQuery_facebookRelayOperation"),metadata:{},name:"ToSModal_pageQuery",operationKind:"query",text:null}};e.exports=a}),null);
-----
ToSModal_businessQuery$Parameters",["ToSModal_businessQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("ToSModal_businessQuery_facebookRelayOperation"),metadata:{},name:"ToSModal_businessQuery",operationKind:"query",text:null}};e.exports=a}),null);
-----
ToSModal_pageQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="25057622003829981"}),null);
-----
ToSModal_businessQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="25045112858414233"}),null);
-----
CatalogCreationMarketplacePartnerSellerTOSModalQuery.graphql",["CatalogCreationMarketplacePartnerSellerTOSModalQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"cmsID"}],c=[{kind:"Variable",name:"object_id",variableName:"cmsID"},{kind:"Literal",name:"requester_uri",value:""}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CatalogCreationMarketplacePartnerSellerTOSModalQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"galaxy_cms_object",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBGalaxyCMSReactBlockContent",kind:"LinkedField",name:"cms_content",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"GalaxyCMSReactBlock_content"}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CatalogCreationMarketplacePartnerSellerTOSModalQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"galaxy_cms_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"XFBGalaxyCMSReactBlockContent",kind:"LinkedField",name:"cms_content",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"json_cms_content",storageKey:null},{alias:null,args:null,concreteType:"GalaxyCMSJSDependency",kind:"LinkedField",name:"js_dependencies",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"dependency",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("CatalogCreationMarketplacePartnerSellerTOSModalQuery_facebookRelayOperation"),metadata:{},name:"CatalogCreationMarketplacePartnerSellerTOSModalQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
CatalogCreationMarketplacePartnerSellerTOSModalQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24730220736580208"}),null);
-----
BizWebCometOmniAiSMBPhotos.react",["BizWebCometOmniAIA1OnboardingUtils","BizWebCometOmniAISMBPhotosUtils","BizWebCometOmniAiSMBPhotosConsts","BizWebCometOmniAiSMBPhotosModal.react","BizWebCometOmniAiSMBPhotosTable.react","BizWebCometOmniAiSMBPricelistConsts","CometRelayErrorHandling","GeoFileSelector.react","GeoVStack.react","MessagingAIOnboardingFlowLoggingUtils","filterNulls","nullthrows","react","useBizAIFileUploader"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||c("react"),j=["image/jpg","image/jpeg","image/png"];function a(a){var b=a.pageID;a=a.photosState;var e=a.commitExtractImage,f=a.products,g=a.selectedProductID,h=a.setProducts,k=a.setSelectedProductID;a=c("useBizAIFileUploader")();var l=a.uploadImage;function m(a){var b=c("nullthrows")(a.file,"Expected file in image state"),d=a.id;return l({file:b,onFailure:function(b){return babelHelpers.extends({},a,{src:b,status:"failed"})},onSuccess:function(b,c){return babelHelpers.extends({},a,{handle:c,src:b,status:"uploaded"})},sessionKey:d})}function n(a,f){h(function(b){return d("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(b,{id:a,status:"extracting"})}),e({onCompleted:function(e){d("MessagingAIOnboardingFlowLoggingUtils").logSMBEvents("photos_ui_extraction_success",b,null,null,null);var f=e.xfb_biz_ai_photos_product_group_extraction.product;h(function(b){var e;return(e=d("BizWebCometOmniAISMBPhotosUtils")).maybeUpdateProduct(b,{data:{currency:e.formatExtractionString(f.currency,"USD"),description:e.formatExtractionString(f.description),name:e.formatExtractionString(f.name),price:Boolean(f==null?void 0:f.price)?c("nullthrows")(f.price)/100:f==null?void 0:f.price},id:a,status:"extracted"})})},onError:function(c){d("MessagingAIOnboardingFlowLoggingUtils").logSMBExceptions("photos_ui_extraction_failed",b,null,null,null,c),d("BizWebCometOmniAIA1OnboardingUtils").shouldSilenceError(c)&&d("CometRelayErrorHandling").markErrorAsHandled(c),h(function(b){return d("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(b,{id:a,status:"extraction-failed"})})},variables:{input:{files:c("filterNulls")(f.map(function(a){return a.handle})),page_id:b,request_id:a}}})}async function o(a,c,e){d("MessagingAIOnboardingFlowLoggingUtils").logSMBEvents("photos_ui_files_selected",b,null,null,null,{files:String(a.length)});if(a.length===0)return;a=a.map(d("BizWebCometOmniAISMBPhotosUtils").createImage);if(c==null){var f=d("BizWebCometOmniAISMBPhotosUtils").createProduct(a);h(function(a){return[].concat(a,[f])});k(f.id);var g=await Promise.all(a.map(m));h(function(a){return d("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(a,babelHelpers.extends({},f,{images:g,status:"uploaded"}))});var i=f.id;await n(i,g)}else{var j=[].concat(c.images,a),l=c.id;h(function(a){return d("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(a,{id:l,images:j,status:Boolean(e)?"uploading":"uploaded"})});var o=await Promise.all(a.map(m)),p=j.map(function(a){var b=o.find(function(b){return b.id===a.id});return b!=null?b:a});h(function(a){return d("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(a,{id:l,images:p})});Boolean(e)&&await n(l,o)}}function p(a,b){return b.length>d("BizWebCometOmniAiSMBPhotosConsts").MAX_FILE_COUNT?d("BizWebCometOmniAiSMBPricelistConsts").getExceedCountFbt(d("BizWebCometOmniAiSMBPhotosConsts").MAX_FILE_COUNT):null}var q=f.find(function(a){return a.id===g});return i.jsxs(c("GeoVStack.react"),{context:"container",relation:"section",children:[i.jsx(c("GeoVStack.react"),{children:i.jsx(c("GeoFileSelector.react"),{allowMultiple:!0,customValidators:[p],description:null,fileTypes:j,label:f.length===0?d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_FILE_SELECTOR_FIRST_LABEL:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_FILE_SELECTOR_ANOTHER_LABEL,onChange:o,value:[]})}),f.length>0&&i.jsx(c("BizWebCometOmniAiSMBPhotosTable.react"),{onRowClick:function(a){return k(a.id)},products:f}),q!=null&&i.jsx(c("BizWebCometOmniAiSMBPhotosModal.react"),{onCreateNew:function(){var a=d("BizWebCometOmniAISMBPhotosUtils").createProduct([],"uploaded");h(function(b){return[].concat(b,[a])});k(a.id)},onHide:function(){return k(null)},onRemove:function(){h(f.filter(function(a){return a.id!==q.id}))},onSelectFiles:o,onUpdate:function(a){h(function(b){return d("BizWebCometOmniAISMBPhotosUtils").maybeUpdateProduct(b,a)})},pageID:b,product:q},""+q.id+String(d("BizWebCometOmniAISMBPhotosUtils").isProductStatus(q,"extracted")))]})}a.displayName=a.name+" [from "+f.id+"]";g.default=a}),98);
-----
BizWebCometOmniAiSMBPhotosModal.react",["ix","BizMsgPlatformCurrencySelector.react","BizWebCometOmniAISMBPhotosUtils","BizWebCometOmniAiSMBImageMedia.react","BizWebCometOmniAiSMBPhotosConsts","BizWebCometOmniAiSMBPricelistConsts","GeoButton.react","GeoButtonLoadingState.react","GeoCurrencyInput.react","GeoFileSelector.react","GeoGrid.react","GeoGridItem.react","GeoGridTypes","GeoInputGroup.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoSpinner.react","GeoTextArea.react","GeoTextInput.react","GeoTextPairing.react","GeoVStack.react","Image.react","MessagingAIOnboardingFlowLoggingUtils","fbicon","geoMargin","isEmpty","isStringNullOrWhitespaceOnly","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||c("react"),m=(i||(i=d("react"))).useState,n=96;function o(){return{}}function a(a){var b,e,f=a.onCreateNew,g=a.onHide,i=a.onRemove,k=a.onSelectFiles,q=a.onUpdate,r=a.pageID,s=a.product;a=m((a=(a=s.data)==null?void 0:a.name)!=null?a:"");var t=a[0];a=a[1];b=m((b=(b=s.data)==null?void 0:b.description)!=null?b:"");var u=b[0];b=b[1];e=m((e=s.data)==null?void 0:e.price);var v=e[0];e=e[1];var w=m(o()),x=w[0],y=w[1];w=(w=(w=s.data)==null?void 0:w.currency)!=null?w:"USD";var z=s.images.some(function(a){return d("BizWebCometOmniAISMBPhotosUtils").isImageStatus(a,"uploading")});function A(){var a={};c("isStringNullOrWhitespaceOnly")(t)&&(a.name=d("BizWebCometOmniAiSMBPhotosConsts").REQUIRED_FIELD_VALIDATION);s.images.length===0&&(a.images=d("BizWebCometOmniAiSMBPhotosConsts").REQUIRED_FIELD_VALIDATION);return a}var B=d("BizWebCometOmniAISMBPhotosUtils").isProductStatus(s,["extracting","uploading"]),C=!B;function D(a,b){return b.length+s.images.length>d("BizWebCometOmniAiSMBPhotosConsts").MAX_FILE_COUNT?s.images.length===0?d("BizWebCometOmniAiSMBPricelistConsts").getExceedCountFbt(d("BizWebCometOmniAiSMBPhotosConsts").MAX_FILE_COUNT):"":null}async function E(a,b){s.images.length===0&&y(o()),await k(a,s,b)}return l.jsx(c("GeoModal.react"),{footer:l.jsx(c("GeoModalFooter.react"),{primaryButton:B?l.jsx(c("GeoButtonLoadingState.react"),{}):l.jsx(c("GeoButton.react"),{label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_MODAL_PRIMARY_BUTTON,onClick:function(){if(C){var a=A();if(!(j||(j=c("isEmpty")))(a)){y(a);return}d("MessagingAIOnboardingFlowLoggingUtils").logSMBEvents("photos_ui_add_product_clicked",r,null,null,null);y(o());q(d("BizWebCometOmniAISMBPhotosUtils").updateProductData(s,{description:u,name:t,price:v}))}g("transition")},variant:"primary"}),secondaryButton:C?l.jsx(c("GeoButton.react"),{label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_MODAL_SECONDARY_BUTTON,onClick:function(){var a=A();if(!(j||(j=c("isEmpty")))(a)){y(a);return}d("MessagingAIOnboardingFlowLoggingUtils").logSMBEvents("photos_ui_add_another_product_clicked",r,null,null,null);f();y(o())}}):void 0,startContent:C&&l.jsx(c("GeoButton.react"),{icon:d("fbicon")._(h("483828"),16),label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_MODAL_REMOVE_BUTTON,onClick:function(){i(),g("transition")},variant:"default"})}),header:l.jsx(c("GeoModalHeader.react"),{description:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_MODAL_DESCRIPTION,heading:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_MODAL_TITLE}),isShown:!0,onHide:g,children:l.jsx(c("GeoSection.react"),{children:B?l.jsxs(c("GeoVStack.react"),{alignItems:"center",justifyContent:"center",style:{minHeight:300},children:[l.jsx(c("GeoSpinner.react"),{}),l.jsx(c("GeoTextPairing.react"),{description:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_EXTRACTION_DESCRIPTION,heading:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_EXTRACTION_LABEL,size:"header4",textAlign:"center"})]}):l.jsxs(c("GeoVStack.react"),{children:[s.images.length>0?l.jsxs(c("GeoGrid.react"),{rowGap:16,templateColumns:d("GeoGridTypes").GridRepeat.track(5,d("GeoGridTypes").GridSize.len(n+16,"px")),xstyle:c("geoMargin").top8,children:[s.images.map(function(a){var b;return l.jsx(c("GeoGridItem.react"),{children:l.jsx(c("BizWebCometOmniAiSMBImageMedia.react"),{fileName:(b=a.file)==null?void 0:b.name,fit:"cover",isLoading:d("BizWebCometOmniAISMBPhotosUtils").isImageStatus(a,"uploading"),media:a.src!=null?l.jsx(c("Image.react"),{src:a.src}):null,onClose:function(){q(babelHelpers.extends({},s,{images:s.images.filter(function(b){b=b.id;return b!==a.id})}))},showCloseButton:!z,size:n,status:d("BizWebCometOmniAISMBPhotosUtils").isImageStatus(a,"failed")?"error":void 0})},a.id)}),l.jsx(c("GeoGridItem.react"),{alignSelf:"center",style:{width:n},children:l.jsx(c("GeoFileSelector.react"),{allowMultiple:!0,customValidators:[D],description:null,errorMessage:x.images,fileTypes:["image/jpg","image/jpeg","image/png"],isLabelHidden:!0,label:d("BizWebCometOmniAiSMBPricelistConsts").PRICELIST_FILE_SELECTOR_LABEL,onChange:function(a){return E(a,!1)},value:[],variant:"drop"})})]}):l.jsx(c("GeoFileSelector.react"),{allowMultiple:!0,customValidators:[D],description:null,errorMessage:x.images,fileTypes:["image/jpg","image/jpeg","image/png"],isLabelHidden:!0,label:d("BizWebCometOmniAiSMBPricelistConsts").PRICELIST_FILE_SELECTOR_LABEL,onChange:function(a){return E(a,!0)},value:[]}),l.jsx(c("GeoTextInput.react"),{errorMessage:x.name,label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_NAME_LABEL,maxLength:200,onChange:a,placeholder:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_NAME_PLACEHOLDER,value:t}),l.jsxs(c("GeoInputGroup.react"),{label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_PRICE_LABEL,children:[l.jsx(c("BizMsgPlatformCurrencySelector.react"),{currencyCode:w,label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_CURRENCY_LABEL,onChange:function(a){q(d("BizWebCometOmniAISMBPhotosUtils").updateProductData(s,{currency:a}))},xstyle:p.small}),l.jsx(c("GeoCurrencyInput.react"),{currency:w,isOptional:!0,label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_PRICE_LABEL,onChange:e,placeholder:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_PRICE_PLACEHOLDER,showSymbol:!0,value:v})]}),l.jsx(c("GeoTextArea.react"),{isOptional:!0,isResizable:!1,label:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_DESCRIPTION_LABEL,maxLength:2e3,onChange:b,placeholder:d("BizWebCometOmniAiSMBPhotosConsts").PHOTOS_PRODUCT_DESCRIPTION_PLACEHOLDER,shouldAutoGrow:!0,value:u})]})})})}a.displayName=a.name+" [from "+f.id+"]";var p={small:{maxWidth:"xflt7ov",$$css:!0}};g.default=a}),98);
-----
CatalogCreationMarketplacePartnerSellerTOSModal.react",["fbt","GeoButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","react","useVPVDImpression"],(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.useState;function a(a){var b=a.isShown,d=a.mutationInFlight,e=a.onAccept;a=a.onHide;var f=l(!0),g=f[0],i=f[1];f=k(function(){i(!1)},[]);f=c("useVPVDImpression")({onVPVDEnd:function(){},onVPVDStart:(f=f)!=null?f:function(){}});f=f[0];return j.jsx(c("GeoModal.react"),{footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{isDisabled:d||g,isLoading:d,label:h._(/*BTDS*/"Accept Terms of Service"),variant:"primary",onClick:e}),startContent:j.jsx(c("GeoText.react"),{textAlign:"start",children:h._(/*BTDS*/"{Link}",[h._param("Link",j.jsx(c("GeoLink.react"),{href:"https://www.facebook.com/legal/marketplacepartnerprogram",rel:"noopener noreferrer",target:"_blank",children:"Facebook Marketplace integration Terms"}))])})}),header:j.jsx(c("GeoModalHeader.react"),{heading:h._(/*BTDS*/"Review Terms of Service")}),isShown:b,onHide:a,children:j.jsxs(c("GeoSection.react"),{children:[j.jsx("h2",{children:j.jsx("u",{children:"Facebook Marketplace Integration Terms of Service for the European Economic Area"})}),j.jsxs("p",{children:["These Facebook (",j.jsx("b",{children:FB}),") Marketplace Integration Terms of Service for the European Economic Area (these u201c",j.jsx("b",{children:"Marketplace Integration Terms"}),"u201d) are entered into by and between"," ",j.jsx("b",{children:"Meta Platforms, Inc."})," and ",j.jsx("b",{children:"Meta Platforms Ireland Limited"})," ","(collectively, u201c",j.jsx("b",{children:"Meta"}),"u201d) and the person or entity accepting these Marketplace Integration Terms (u201c",j.jsx("b",{children:"you"}),"u201d), and are effective as of the date you indicate your assent to these Marketplace Integration Terms by clicking u201cagreeu201d or u201cacceptu201d (the u201c",j.jsx("b",{children:"Effective Date"}),"u201d). If you are accepting on behalf of a legal entity, you represent and warrant that you are an authorized representative of such entity with the authority to bind it to these Marketplace Integration Terms. As used herein, you and Meta are each referred to as a u201c",j.jsx("b",{children:"Party"}),"u201d or, collectively, as the u201c",j.jsx("b",{children:"Parties"}),"u201d. Capitalized terms that are not defined in the body of these Marketplace Integration Terms will have the meanings set forth in ",j.jsx("u",{children:"Exhibit A"})," (",j.jsx("u",{children:"Definitions"}),") or the Meta Online Terms (as defined below), as applicable."]}),j.jsx("p",{children:"You and Meta agree as follows:"}),"1. Your Integration.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Generally"}),". These Marketplace Integration Terms shall govern the integration (using the FBM Technology) of your online classifieds marketplace with FB Marketplace in order to allow certain of your Listings to be surfaced within FB Marketplace within the European Economic Area (u201cEEAu201d), as described herein (such integration, your u201c",j.jsx("b",{children:"Integration"}),"u201d). In order to have an Integration under these Marketplace Integration Terms, you must meet the"," ",j.jsx("a",{href:"https://www.facebook.com/business/help/646509171194744",children:j.jsx("u",{children:"partner eligibility requirements"})})," ","(all such eligible partners collectively, u201cOCAS Partnersu201d)."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Specifications"}),". Your Integration must comply with the Specifications, which may be updated, modified, or replaced by Meta from time to time with prior written notice to you of any material changes, in the same manner and form that Meta uses to provide notice to similarly-situated partners. If at any time your Integration fails to comply with the Specifications, Meta may suspend or deactivate your Integration. If updates to the Specifications or FBM Technology are made available, then you will apply those updates to your Integration as soon as practicable in accordance with your general development and release schedule; provided that if Meta notifies you that an update is necessary to comply with applicable law or an order, agreement, understanding, settlement or recommendation by a government agency or regulatory authority, then you must apply those updates within the time period specified by Meta. Without limitation, your Integration must enable at a minimum:"]})}),j.jsxs("ol",{type:"i",children:[j.jsx("p",{children:j.jsxs("li",{children:["Meta to view a feed of all Eligible Listings (defined below), including Listing Content (defined below) for each Eligible Listing (u201c",j.jsx("b",{children:"Listing Catalog"}),"u201d);"]})}),j.jsx("p",{children:j.jsxs("li",{children:["Meta to specifically authorize certain Eligible Listings in the Listing Catalog for display on FB Marketplace (such authorized Eligible Listings, u201c",j.jsx("b",{children:"Approved Listings"}),"u201d);"]})}),j.jsx("p",{children:j.jsx("li",{children:"Buyers to purchase Goods offered for sale by an Approved Listing on your online classifieds marketplace; and"})}),j.jsx("p",{children:j.jsxs("li",{children:["you to provide Meta with the categories of data categorized as u201cSeller Datau201d in the Specifications (such data along with any other data you may provide Meta via the Integration, u201c",j.jsx("b",{children:"Seller Data"}),"u201d), and Meta to provide you with the data categorized as u201cMeta Click Identifier Datau201d in the Specifications (such data along with any other data Meta may provide you via the Integration other than Performance Data, u201c",j.jsx("b",{children:"Meta Click Identifier Data"}),"u201d). In addition, Meta will provide you with the performance and analytics data categorized as u201cPerformance Datau201d in the Specifications (u201c",j.jsx("b",{children:"Performance Data"}),"u201d), and such Performance Data will be deemed Metau2019s Confidential Information. Seller Data, Meta Click Identifier Data and Performance Data are to be transmitted via the methods indicated by Meta, including by using the FBM Technology (e.g., through the APIs designated by Meta), and in accordance with any applicable Specifications, including the transmission frequencies set forth in the Specifications."," "]})})]}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Service Levels"}),". Your Integration must meet the inventory refresh standards and other requirements set forth in Metau2019s"," ",j.jsx("a",{href:"https://www.facebook.com/business/help/1780602339444274",children:j.jsx("u",{children:"Service Level documentation"})})," ","(the u201c",j.jsx("b",{children:"Service Level Requirements"}),"u201d). If your Integration does not comply with the Service Level Requirements as determined by Metau2019s systems and records, Meta may (i) suspend or deactivate your Integration, or (ii) in the case of a failure to meet the Freshness Standard specified in the Service Level Requirements, take the corresponding actions specified therein."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Control"}),". Notwithstanding anything to the contrary, Meta retains the sole ownership, decision-making authority, and control over FB Marketplace, including: (i) whether to suspend or discontinue the availability of your Integration if Meta determines that you are in violation of these Marketplace Integration Terms; (ii) Metau2019s ranking methodology and the conditions under which Listings are displayed on FB Marketplace; (iii) the countries and regions within the EEA where Listings may be viewed on FB Marketplace; and (iv) how Approved Listings are displayed (subject to Section 2(c)) on FB Marketplace via your Integration. Subject to the foregoing, each Party will have sole ownership, decision-making authority, and control over its and its Affiliatesu2019 products and services. Except as otherwise contemplated by these Marketplace Integration Terms, including the Specifications, you retain sole ownership, decision-making authority, and control over the content displayed on your online classifieds marketplace (including within the browser window that a Buyer is taken to after clicking on a call-to-action button within the FB Marketplace PDP), and Meta will not alter any disclosures, links or other content included therein."]})})]}),"2. Listings.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Eligible Listings"}),". In order for a Listing to be eligible to appear on FB Marketplace via your Integration (an u201c",j.jsx("b",{children:"Eligible Listing"}),"u201d), it must (i) comply with the Facebook Community Standards (currently available at"," ",j.jsx("a",{href:"https://transparency.fb.com/policies/community-standards/",target:"_blank",children:"https://transparency.fb.com/policies/community-standards/"}),"), the Commerce Policies (currently available at"," ",j.jsx("a",{href:"https://www.facebook.com/policies_center/commerce/",target:"_blank",children:"https://www.facebook.com/policies_center/commerce/"}),"), and the FB Marketplace listing requirements (currently available at"," ",j.jsx("a",{href:"https://www.facebook.com/help/153832041692242",target:"_blank",children:"https://www.facebook.com/help/153832041692242"}),") (collectively, the u201c",j.jsx("b",{children:"FB Marketplace Policies"}),"u201d), and (ii) meet the"," ",j.jsx("a",{href:"https://www.facebook.com/business/help/1995010967686934",children:j.jsx("u",{children:"Additional Eligibility Requirements"})}),", which Meta may update from time to time (together with the FB Marketplace Policies, the u201c",j.jsx("b",{children:"Eligibility Requirements"}),"u201d). If your Listings repeatedly fail to meet the Eligibility Requirements as determined by Metau2019s systems and records, Meta may remove such Listings, remove (or require you to remove) the offending Seller(s), or suspend or deactivate your Integration. If Meta has further concerns regarding the failure of your Listings to meet the FB Marketplace Policies, Meta will, prior to taking any enforcement action aside from those listed in the previous sentence, refer the matter to an escalation process between the parties."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Sellers"}),". Without limiting the Eligibility Requirements, you will use commercially reasonable efforts to ensure each Seller associated with a Listing sent via the Integration is a consumer, as opposed to a business, trader or professional account. Meta reserves the right to (i) remove any Seller or any Listings associated with a Seller that Meta determines is not a consumer, based on Metau2019s systems and records and/or other information available to Meta, and/or (ii) limit the number and/or types of Listings displayed on FB Marketplace from a given Seller within a specific time period."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Presentation"}),". Meta may display Eligible Listings, and present such Listings to Buyers, on FB Marketplace in a manner and form that is generally consistent with the display and presentation of other listings on FB Marketplace, which will be determined by Meta, and subject to any changes made to safeguard the user experience. To the extent Meta displays an Eligible Listing on FB Marketplace, such Eligible Listing may include any content, materials, data or other information provided by you via your Integration in connection with such Eligible Listing (u201c",j.jsx("b",{children:"Listing Content"}),"u201d), including price, description, images, condition, Seller information, shipping cost and estimated delivery time, provided that (i) the Eligible Listing as displayed on FB Marketplace will include the u201cCore Fieldsu201d listed in the Specifications, and (ii) Meta may modify such Listing Content as necessary to display them on FB Marketplace (e.g., for truncation of text or images to fit the FB Marketplace look and feel, character or image limit, or other listing policies, and to compensate for any caching or update times), provided that Meta will provide the Buyer with the ability to view the full Listing Content by clicking on a link (e.g., a u201csee moreu201d link). Meta may also update a Listing to include new or updated Listing Content that is provided by you via your Integration. Subject to the foregoing, Meta may not change the Listing Content."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Required Content"}),". Each Listing in the Listing Catalog must include (i) all of the Seller ID Data set forth in the Specifications, and (ii) the following Listing Content at a minimum: (1) a description of and the price for the applicable Good, which should include any taxes and fees due to be paid, to the extent applicable; (2) shipping and/or local pickup information for the applicable Good; (3) required legal disclosures, to the extent applicable; and (4) any other Listing Content required by the Specifications or reasonably requested by Meta. In order to maintain the accuracy of Listings, you will promptly notify Meta in the manner contemplated by the Specifications of any changes to such information."]})})]}),"3. Takedowns and Opt-Outs.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"By Meta"}),". Meta may remove any Listings displayed on FB Marketplace via your Integration (i) if Meta determines that the Listing is not an Eligible Listing, or (ii) in accordance with Metau2019s standard course of operation consistent with the treatment of other listings on FB Marketplace. Meta may make available to you, within Commerce Manager or through other means, information regarding takedowns or policy violations associated with your Listings."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"By You"}),". You will promptly remove any Listing displayed on FB Marketplace via your Integration promptly after becoming aware of any facts or circumstances that reasonably indicate such Listing is not an Eligible Listing."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Seller Requests"}),". A Seller may request that its Seller Data (in whole or in any part) be deleted from, or ceased to be displayed on, FB Marketplace via your Integration (or Meta may notify you that it has received such a request from a Seller) (each, a u201c",j.jsx("b",{children:"Seller Removal Reques"}),"tu201d), and following any such Seller Removal Request, you shall: (1) promptly delete such Seller Data from your Listing Catalog within thirty (30) days of receipt of a Seller Removal Request; and (2) cease sending any other Seller Data associated with such Seller via your Integration. You will maintain a support mechanism to facilitate the making, receipt, and execution of any Seller Removal Requests (such support mechanism, the u201c",j.jsx("b",{children:"Seller Removal Support Mechanism"}),"u201d). Meta may maintain a Facebook Help Center article concerning your Integration and directing Sellers wishing to make a Seller Removal Request to the Seller Removal Support Mechanism. You will promptly notify Meta in writing of any changes to the Seller Removal Support Mechanism that may require Meta to update such Facebook Help Center article."]})})]}),"4. Data and Content.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Meta Click Identifier Data"}),". For clarity, all Meta Click Identifier Data is subject to and governed under the Platform Terms, including without limitation Sections 3 and 6 of the Platform Terms. Without limiting the foregoing, you may use Meta Click Identifier Data only to attribute a particular engagement back to FB Marketplace (which, for clarity, includes optimizing inventory to be sent to Meta via the Integration). You may not use Meta Click Identifier Data for any purpose other than as expressly set forth in these Marketplace Integration Terms."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Seller Data"}),". For clarity, all Seller Data is subject to and governed under the Meta Online Terms. With respect to Seller Data, Meta will comply with Metau2019s Data Security Terms (currently accessible online at"," ",j.jsx("a",{href:"https://m.facebook.com/legal/terms/data_security_terms",target:"_blank",children:"https://m.facebook.com/legal/terms/data_security_terms"}),") (u201c",j.jsx("b",{children:"DST"}),"u201d), and for purposes of these Marketplace Integration Terms references to Covered Data in the DST will be construed as references to Seller Data. Meta will not use non-public data that OCAS Partners provide, or that is generated by OCAS Partnersu2019 listings, in the context of OCAS Partnersu2019 integration into FB Marketplace in the EEA, in competition with OCAS Partners, i.e., to improve any elements of FB Marketplace in the EEA that OCAS Partners do not have access to or do not benefit from. Meta has systems and controls designed to prevent such use. Notwithstanding the above, to the extent permissible under applicable law, Meta will not be held liable to the extent (i) unintentional data use occurs due to a technical glitch or malfunction of its systems (u201cUnintended Useu201d); or (ii) data use occurs only in an immaterial way under the circumstances (u201cImmaterial Useu201d). Upon discovery of any Unintended Use or Immaterial Use, Meta will use good faith efforts to remedy such Unintended Use or Immaterial Use promptly."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"GDPR"}),". To the extent the following categories of data include personal information under the General Data Protection Regulation (Regulation (EU) 2016/679) (the u201c",j.jsx("b",{children:"GDPR"}),"u201d):"]})}),j.jsxs("ol",{type:"i",children:[j.jsx("p",{children:j.jsxs("li",{children:["Meta will act as data controller for (i) personal information collected when a user interacts with Metau2019s platform via FB Marketplace, and (ii) personal information within the Seller Data for purposes of ranking and recommendations, to ensure the safety, security, and integrity of Metau2019s services, and to comply with applicable law. In addition, Meta will act as data controller, and you as data processor, for all personal information within the Meta Click Identifier Data (including Click ID) that Meta provides to you in connection with the Integration. The relevant provisions of the Data Protection Addendum available at"," ",j.jsx("a",{href:"https://www.facebook.com/legal/terms/Privacy",target:"_blank",children:"https://www.facebook.com/legal/terms/Privacy"})," ","(or successive location) shall apply when Meta acts as the data controller."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:["Meta will act as data processor or sub-processor, as applicable, for personal information within the Seller Data for all other purposes not listed above. The Meta Global Processor Terms available at"," ",j.jsx("a",{href:"https://www.facebook.com/legal/terms/Meta-Global-Processor-Terms",target:"_blank",children:"https://www.facebook.com/legal/terms/Meta-Global-Processor-Terms"})," ","(or successive location) shall apply when Meta acts as the data processor."]})})]})]}),"5. Dealings with Buyers and Sellers.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Support"}),". You acknowledge and agree that you will be solely responsible for, and Meta will have no obligation in connection with, resolving any issues communicated to you by a Buyer or Seller in so far as they relate to: (i) any Listings, or Goods offered for sale in Listings, displayed on FB Marketplace via your Integration; and (ii) customer support to a Buyer after it has purchased a Good via your Integration, including (to the extent applicable) transaction confirmation emails, delivery notices, customer service, and returns. Meta acknowledges and agrees that it will be solely responsible for, and you will have no obligation in connection with, providing any Buyer with customer support with respect to their access and use of FB Marketplace. The parties will work together to resolve any bugs, technical, performance and capacity issues that may arise in relation to your Integration."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Ensuring Compliance"}),". You will not, and you will ensure that Sellers do not, use FB Marketplace via your Integration in a manner, or for purposes, that violates applicable law or these Marketplace Integration Terms or that otherwise result in a breach or violation of the Meta Online Terms. Unless prohibited by applicable law, you will notify Meta promptly, and in writing, upon becoming aware of any actual or suspected violation by you or any Seller of applicable law in connection with the Integration."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Communications"}),". You will not engage in any communications with Buyers or Sellers that purport to: (i) be on behalf of Meta or its Affiliates; or (ii) limit Metau2019s or its Affiliatesu2019 rights or to subject or otherwise bind Meta or its Affiliates to any obligations, including any obligation to provide Buyers or Sellers with any refunds or other payments, or any obligation to take any other action with respect to Buyers or Sellers, or the sales made through FB Marketplace via your Integration."," "]})})]}),"6. Fees; Payment; Taxes.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Fees"}),". In consideration of Meta providing you with the ability to enable and offer your Integration, you will pay to Meta a fee calculated on a cost-per-click basis as applied to each call-to-action button that takes a user to your online classifieds marketplace, as determined and communicated to you by Meta (the u201c",j.jsx("b",{children:"Integration Fees"}),"u201d). Metau2019s data and records will be used to calculate all Integration Fees. Notwithstanding the foregoing, Meta may communicate to you in writing an offer for a free use period or discount on the Integration Fees, in which case the Integration Fees will be adjusted to reflect such offer."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Payment"}),". Meta will extend a line of credit to you and will issue you invoices on a monthly basis. You will pay all Integration Fees due under these Marketplace Integration Terms, in full and cleared funds, via the electronic payment method(s) directed or authorized by Meta and in a currency supported by Meta. All Integration Fees are due within thirty (30) days following the invoice date. If the credit limit is exceeded earlier than thirty (30) days following the invoice date, earlier payment may be required in order to avoid loss of service."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Taxes"}),". You will be responsible for all sales, use, excise, and value added taxes, and any other similar taxes, duties, and charges of any kind imposed by any federal, state, or local Governmental Authority on any amounts payable by you hereunder (which, for clarity, includes the Integration Fees, but excludes any taxes that are based upon Metau2019s net or gross income or gross receipts), and shall pay all such amounts hereunder free and clear of all deductions and withholdings whatsoever, unless the deduction or withholding is required by applicable law. If any deduction or withholding is required by applicable law, you shall pay to Meta such sum as well, after the deduction or withholding has been made, leaving Meta with the same amount as it would have been entitled to receive without any such requirement to make a deduction or withholding."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Surcharges and Additional Fees"}),". You will not charge Sellers any unique surcharges or additional fees to specifically display their Listings on FB Marketplace via your Integration. Neither you nor Meta will charge Buyers any unique surcharges, higher prices, or additional fees specifically for the purchase of Goods via your Integration."]})})]}),"7. Confidentiality.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Generally"}),". A Party (each, a u201c",j.jsx("b",{children:"Disclosing Party"}),"u201d) may disclose information, directly or indirectly, to the other Party (each, a u201c",j.jsx("b",{children:"Receiving Party"}),"u201d), and such information will be deemed to be u201c",j.jsx("b",{children:"Confidential Information"}),"u201d if, when it is disclosed, regardless of the form or medium (whether in writing, verbally, electronically, or otherwise): (i) it is designated as confidential by the Disclosing Party; or (ii) it should reasonably be understood by the Receiving Party, given the nature of the information or the circumstances surrounding its disclosure, to be confidential. Confidential Information may include information such as product designs, product plans, data, software and technology, financial information, marketing plans, business opportunities, proposed terms, pricing information, discounts, inventions, and knowu2010how. The Confidential Information of a Party includes Confidential Information disclosed by its Representatives and Affiliates in connection with these Marketplace Integration Terms. Metau2019s Confidential Information includes the FBM Technology. Notwithstanding anything to the contrary, (i) your Listing Content will not be deemed to be Confidential Information and may be used, disclosed, and retained as expressly set forth in these Marketplace Integration Terms, and (ii) Meta Click Identifier Data will not be deemed to be Confidential Information and will instead be governed by the terms set forth elsewhere in this Agreement, including Section 4(a) and the Platform Terms."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Exclusions"}),". The obligations under these Marketplace Integration Terms with respect to Confidential Information, including the restrictions on disclosure and use, do not apply to information that: (i) was in the Receiving Partyu2019s possession prior to receipt from the Disclosing Party; (ii) is or becomes publicly known through no wrongful act or omission of the Receiving Party; (iii) becomes rightfully known by the Receiving Party from an Entity other than the Disclosing Party; or (iv) is independently developed by the Receiving Party without use of or reference to the Disclosing Partyu2019s Confidential Information, as can be shown by documentary evidence."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Use and Disclosure of Confidential Information"}),". A Receiving Party will only use the Confidential Information of a Disclosing Party as required to perform its obligations and exercise its rights under these Marketplace Integration Terms. A Receiving Party will hold the Confidential Information it receives in strict confidence and take appropriate precautions to protect such Confidential Information. A Receiving Party will not disclose the other Partyu2019s Confidential Information to anyone other than to its Affiliates and its and their Representatives, subject to the following conditions: any individual who receives Confidential Information in accordance with the foregoing must: (i) have a u201cneed to knowu201d such Confidential Information for the purposes of the Receiving Party exercising its rights or performing its obligations under these Marketplace Integration Terms; and (ii) be subject to confidentiality obligations covering such Confidential Information."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Permitted Disclosures"}),"."]})}),j.jsxs("ol",{type:"i",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Generally"}),". If a Receiving Party is required to disclose the Confidential Information of a Disclosing Party (except as set forth in ",j.jsx("u",{children:"Section 9(d)(ii)"})," (",j.jsx("u",{children:"Governmental Authorities"}),") below) in response to a subpoena, court order, or other lawful process of a Governmental Authority that validly compels disclosure, the Receiving Party will: (1) notify the Disclosing Party as soon as practicable after learning of the existence or likely existence of such requirement (unless prohibited by applicable law); (2) use reasonable efforts to limit the scope of such disclosure, disclose only the Confidential Information reasonably required to comply with the requirement, and use reasonable efforts to obtain confidential treatment of any Confidential Information; and (3) permit, subject to applicable law, the Disclosing Party to seek a protective order or to otherwise challenge or limit the disclosure of the Confidential Information prior to its disclosure."]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Governmental Authorities"}),". Notwithstanding anything to the contrary: (1) a Party may disclose a copy of these Marketplace Integration Terms and any Meta Online Terms, or share their contents with, any Governmental Authority with competent jurisdiction over such Party, if requested, directly or indirectly, by the Governmental Authority; and (2) the Receiving Party may disclose Confidential Information to a Governmental Authority to comply with any bona fide request of such Governmental Authority in connection with a proper exercise of its regulatory power as conferred by applicable law, and in each case of (1) and (2), subject to the Disclosing Party using reasonable efforts to obtain confidential treatment and limiting the scope of disclosure (and for clarity, in the case of (1) and (2), without complying with the foregoing Section 9(d)(i)."]})})]}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Publicity"}),". Neither Party will (and will cause its Affiliates not to) issue any press release regarding these Marketplace Integration Terms, without such other Partyu2019s prior written consent. You agree to cooperate with Meta, in a commercially reasonable manner, in responding to any press inquiries that either Party may receive."]})})]}),"8. Term; Termination; Survival.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Term"}),". These Marketplace Integration Terms will commence on the Effective Date and will remain in effect until terminated in accordance with this Section 8."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Termination"}),". These Marketplace Integration Terms may be terminated by either Party with or without cause immediately upon written notice to the other Party; provided, however, that if you provide written notice of termination, such termination will be deemed effective only after you cease to use the Integration (including disabling all distribution of Listings) and any associated FBM Technology. If Meta provides written notice of termination, you will immediately cease to use the Integration and any associated FBM Technology, and will promptly delete any Meta Click Identifier Data that you possess. Upon you executing a u201cdeleteu201d call on the relevant API(s), Meta will promptly cease to display any Listings (and delete all Listing Content) displayed on FB Marketplace. These Marketplace Integration Terms will immediately terminate if the Platform Terms have been terminated in accordance with Section 7(e) of the Platform Terms."," "]})}),j.jsx("p",{children:j.jsxs("li",{children:[j.jsx("u",{children:"Survival"}),". The following Sections will survive any termination or expiration of these Marketplace Integration Terms: 4, 5, 6(b), 6(c), 7, 8(b), 8(c) and 10, Exhibit A, and any other terms and provisions of these Marketplace Integration Terms or the Meta Online Terms which are expressly set forth as surviving or which by their nature would be reasonably expected to survive."," "]})})]}),"9. Representations and Warranties. You represent, warrant, and covenant that:",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsx("li",{children:"these Marketplace Integration Terms, and your performance of these Marketplace Integration Terms, will not conflict with any agreement, instrument, or understanding, oral or written, to which you are party or by which you may be bound, including your agreements with Sellers;"})}),j.jsx("p",{children:j.jsx("li",{children:"you will not, and your Integration will not, cause any viruses, worms, time bombs, Trojan horses or other harmful, malicious or destructive code to be installed on or introduced into FB Marketplace or any other Meta Product;"})}),j.jsx("p",{children:j.jsxs("li",{children:["you will honor (and/or require the applicable Seller to honor) any representations, warranties, covenants, commitments and guarantees included in any Listing Content displayed on FB Marketplace via your Integration or that you have otherwise communicated to Buyers or Sellers (e.g., u201cMoney Back Guaranteeu201d) (the u201c",j.jsx("b",{children:"Guarantees"}),"u201d);"," "]})}),j.jsx("p",{children:j.jsx("li",{children:"without limiting Section 2(c)(ii) in the Platform Terms, you have obtained and possess, and will maintain at all times, all authorizations, permissions, consents, rights, licenses, agreements, permits, approvals, registrations, orders, declarations, filings, lawful bases and the like, that are required under applicable law or by a Governmental Authority to provide Meta with the Seller Data, Listings, Listing Catalog and Listing Content and for the Listings and the Listing Content to be displayed on FB Marketplace via your Integration and used as contemplated under these Marketplace Integration Terms, including in connection with the display of feedback scores for Sellers and information about Goods;"})}),j.jsx("p",{children:j.jsx("li",{children:"you will accurately transmit the Seller Data, Listings, Listing Catalog, and Listing Content via your Integration, as provided to you by each relevant Seller; and"})}),j.jsx("p",{children:j.jsx("li",{children:"all Seller Data generated by you and provided to Meta via your Integration or otherwise in connection with these Marketplace Integration Terms is and will be true, accurate, complete, and not misleading."})})]}),"10. Miscellaneous.",j.jsxs("ol",{type:"a",children:[j.jsx("p",{children:j.jsxs("li",{children:["The Platform Terms (currently available at"," ",j.jsx("a",{href:"https://developers.facebook.com/terms",target:"_blank",children:"https://developers.facebook.com/terms"}),"), Commercial Terms (currently available at"," ",j.jsx("a",{href:"https://www.facebook.com/legal/commercial_terms",target:"_blank",children:"https://www.facebook.com/legal/commercial_terms"}),"), and the Terms of Service (currently available at"," ",j.jsx("a",{href:"https://www.facebook.com/terms",target:"_blank",children:"https://www.facebook.com/terms"}),") (each, together with any other applicable terms and policies referenced in the foregoing, collectively the u201c",j.jsx("b",{children:"Meta Online Terms"}),"u201d) are hereby incorporated into these Marketplace Integration Terms by reference. The FBM Technology and FB Marketplace are part of the u201cPlatformu201d and the u201cMeta Productu201d, in each case, as used in the Meta Online Terms. (i) Your Integration is an u201cApp,u201d (ii) Listing Content, Seller Data, and the Listing Catalog are u201cYour Content,u201d and (iii) Meta Click Identifier Data is u201cPlatform Data,u201d as used in the Platform Terms. Your Integration and your associated interactions with the FBM Technology and FB Marketplace are deemed to be u201caccess or use of the Meta Products for business or commercial purposesu201d as used in the Commercial Terms. You acknowledge and agree that your Integration, your use of the FBM Technology, the display of Listings on FB Marketplace, and the sale of Goods, in each case, via your Integration are subject to and must be in accordance with the Meta Online Terms, as modified and supplemented by these Marketplace Integration Terms. You acknowledge and agree that Meta may update, modify, or replace these Marketplace Integration Terms and the Meta Online Terms at any time. Nothing in these Marketplace Integration Terms will be construed as limiting Metau2019s or any of its Affiliatesu2019 rights, or your obligations, under the Meta Online Terms. Metau2019s rights and obligations under these Marketplace Integration Terms and the Meta Online Terms may be exercised or performed by Meta or any of its Affiliates (as determined by Meta). In the event of any conflict between these Marketplace Integration Terms and the Meta Online Terms, these Marketplace Integration Terms will control, solely to the extent of the conflict."]})}),j.jsx("p",{children:j.jsxs("li",{children:["These Marketplace Integration Terms (which, for clarity, include the Meta Online Terms) represent the entire agreement between the parties with respect to the subject matter hereof and supersede any previous or contemporaneous oral or written representations and agreements regarding the same. The Parties acknowledge and agree that these Marketplace Integration Terms, and the relationship between the Parties, do not impose any obligations of exclusivity on either Party. Meta and its Affiliates are under no obligation to guarantee a minimum number of sales of Goods, impressions/views of Listings, fees, or revenues in connection with your Integration. Meta does not guarantee that any minimum volumes, categories, or types of Listings will be displayed on FB Marketplace via your Integration. The Parties are independent contractors, and these Marketplace Integration Terms do not create or imply a partnership or joint venture between them. Neither Party, by virtue of these Marketplace Integration Terms, will have any right, power, or authority to act or create an obligation, expressed or implied, on behalf of the other Party. If any provision of these Marketplace Integration Terms is found unenforceable, that provision will be severed, and the balance of these Marketplace Integration Terms will remain in full force and effect. References to any websites in these Marketplace Integration Terms include any successor websites and successor URLs."," "]})})]}),j.jsx("br",{}),j.jsx("br",{}),j.jsx("br",{}),j.jsx("h2",{style:{textAlign:"center"},children:j.jsx("u",{children:"Exhibit A (Definitions)"})}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Affiliate"}),"u201d means, with respect to an Entity, a different Entity which, directly or indirectly, owns or controls, is owned or is controlled by, or is under common ownership or control with such first Entity. As used in this definition, u201ccontrolu201d means the power to direct the management or affairs of an Entity, and u201cownershipu201d means the beneficial ownership of 50% or more of the voting equity securities or other equivalent voting interests of the Entity. Metau2019s Affiliates include the Meta Companies (as set forth at"," ",j.jsx("a",{href:"https://www.facebook.com/help/111814505650678",target:"_blank",children:"https://www.facebook.com/help/111814505650678"}),"), in addition to other Affiliates. For clarity, Sellers are not your Affiliates."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Buyers"}),"u201d means end-users of FB Marketplace, except to the extent such end-users are Sellers."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Entity"}),"u201d means an individual, corporation, firm, limited liability company, partnership, joint venture, trust, unincorporated organization, estate, association, Governmental Authority, or other entity or organization, whether or not a legal entity."," "]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Facebook App"}),"u201d means the Facebook mobile application, available via the iOS and Android mobile operating systems."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"FB Marketplace"}),"u201d means the version of Metau2019s online marketplace called u201cFacebook Marketplaceu201d accessible via the Facebook App or the Facebook website."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"FBM Technology"}),"u201d means the set of APIs, SDKs, tools, plugins, code, technology, content, and services made available or provided by Meta or its Affiliates in connection with your Integration or these Marketplace Integration Terms."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Good"}),"u201d means any new or used physical good."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Governmental Authority"}),"u201d means any duly authorized federal, national, supranational, state, provincial, local, or other government, governmental, regulatory, or administrative authority, agency, or commission, or any court, tribunal, or judicial or arbitral body, of competent jurisdiction."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Listing"}),"u201d means an offer to sell a Good by a Seller on your online marketplace, including any Listing Content."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Representative"}),"u201d means, with respect to an Entity, any of its directors, officers, employees, agents, consultants, contractors, subcontractors, service providers, advisors, accountants, auditors, attorneys, and other representatives."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Sellers"}),"u201d means end-user sellers of your online classifieds marketplace."]}),j.jsxs("p",{children:["u201c",j.jsx("b",{children:"Specifications"}),"u201d means specifications, guidelines, operational or technical requirements or other documentation provided or made available to you by Meta, including those in our"," ",j.jsx("a",{href:"https://facebook.com/business/help/1345557483542951",children:j.jsx("u",{children:"technical documentation"})}),", and which may be updated, modified, or replaced by Meta from time to time."," "]}),j.jsx("div",{ref:f,children:j.jsx("br",{})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useAcceptMarketplacePartnershipTOS",["RelayHooks","nullthrows","react","useAcceptMarketplacePartnershipTOSMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useCallback;function a(){var a=h!==void 0?h:h=b("useAcceptMarketplacePartnershipTOSMutation.graphql");a=d("RelayHooks").useMutation(a);var e=a[0];return j(function(a){var b=a.setCreationState;a=a.state;e({variables:{input:{business_id:c("nullthrows")(a.businessID),tos_version:"V1"}},onCompleted:function(a){a=a==null?void 0:(a=a.xfb_accept_marketplace_partner_seller_terms_of_service)==null?void 0:(a=a.marketplace_partner_seller_terms_of_service)==null?void 0:a.id;a!==null?b(function(a){return babelHelpers["extends"]({},a,{showMarketplacePartnerSellerTOSModal:!1,marketplacePartnerSellerTOSAccepted:!0,marketplacePartnerSellerTOSAcceptRequest:{inProgress:!1}})}):b(function(a){return babelHelpers["extends"]({},a,{showMarketplacePartnerSellerTOSModal:!0,marketplacePartnerSellerTOSAccepted:!1,marketplacePartnerSellerTOSAcceptRequest:{inProgress:!1}})})},onError:function(a){b(function(a){return babelHelpers["extends"]({},a,{marketplacePartnerSellerTOSAcceptRequest:{inProgress:!1}})})}});return!0},[e])}g.useAcceptMarketplacePartnershipTOS=a}),98);
-----
DEVHorizonOculusStartApplyForm_termsOfService.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DEVHorizonOculusStartApplyForm_termsOfService",selections:[{args:null,kind:"FragmentSpread",name:"DEVHorizonTOSModal_termsOfService"}],type:"TermsOfService",abstractKey:null};e.exports=a}),null);
-----
DEVHorizonTOSModalMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XOCTosAcceptResponsePayload",kind:"LinkedField",name:"xoc_tos_accept",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"DEVHorizonTOSModalMutation",selections:b,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"DEVHorizonTOSModalMutation",selections:b},params:{id:"29537279192537720",metadata:{},name:"DEVHorizonTOSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MMLWICampaignListTOSWrapper.react",["MMLWICampaignListTOSWrapperMutation.graphql","MMLWICampaignListTOSWrapper_businessInfo.graphql","MMLWITOSOmniContent","MarketingMessagesLWITOSGeoModal.react","RelayHooks","isTruthy","nullthrows","react","uniqueID"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useState,m=h!==void 0?h:h=b("MMLWICampaignListTOSWrapperMutation.graphql"),n=i!==void 0?i:i=b("MMLWICampaignListTOSWrapper_businessInfo.graphql");function a(a){a=a.data;a=d("RelayHooks").useFragment(n,a);a=(a=a.xfb_marketing_message_lwi_business_info)!=null?a:{};var b=a.business;a=a.has_signed_tos;var e=b==null?void 0:b.id;b=(b=b==null?void 0:(b=b.business_ad_accounts)==null?void 0:b.edges)!=null?b:[];var f=(b=(b=b.filter(function(a){a=a.node;return(a==null?void 0:(a=a.viewer_permissions)==null?void 0:a.write)===!0})[0].node)==null?void 0:b.legacy_account_id)!=null?b:"";b=l(!a);var g=b[0],h=b[1];b=l(a);a=b[0];var i=b[1];b=l(!1);var j=b[0],o=b[1];b=d("RelayHooks").useMutation(m);var p=b[0];if(c("isTruthy")(a))return;var q="MBS_BIZ_INBOX";b={content:d("MMLWITOSOmniContent").getTOSDialogContent("BIZ_INBOX"),displayError:j,isTosModalShown:g,onAcceptTos:function(){p({onCompleted:function(a){((a=a.xfb_mig_marketing_messages_in_am_tos)==null?void 0:a.success)===!0?i(!0):o(!0)},onError:function(){o(!0)},variables:{input:{ad_account_id:c("nullthrows")(f),business_id:c("nullthrows")(e),client_mutation_id:c("uniqueID")(),log_session_id:c("uniqueID")(),mig_product_tos_cms_list:["MARKETING_MESSAGING_TERMS"],surface:q}}});return},onDismiss:function(){h(!1);return}};return k.jsx(c("MarketingMessagesLWITOSGeoModal.react"),{TOSConfig:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
WhatsAppDirectSignupStateReducer",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){switch(b.type){case"UPDATE_STATE":return babelHelpers["extends"]({},b.value);case"UPDATE_BUSINESS":return babelHelpers["extends"]({},a,{business:b.value,unableToViewBusinessAssets:!1,hasDirectSignupWaba:!0,shouldEnableTos:!1,isBusinessAdmin:!0});case"UPDATE_IS_MM_LITE_TOS_ACCEPTED":return babelHelpers["extends"]({},a,{isMMLiteTosAccepted:b.value});case"UPDATE_IS_CAPI_TOS_MODAL_SEEN":return babelHelpers["extends"]({},a,{isCapiTosModalSeen:b.value});case"UPDATE_IS_MAPI_TOS_MODAL_SEEN":return babelHelpers["extends"]({},a,{isMapiTosModalSeen:b.value});case"UPDATE_ACCESS_TOKEN":return babelHelpers["extends"]({},a,{accessToken:b.value});case"UPDATE_PARTNER_ONBOARDING_DATA":return babelHelpers["extends"]({},a,{partnerOnboardingData:b.value})}}f.reducer=a}),66);
-----
useWhatsAppDirectSignupSharedState",["useBizMsgPlatformSharedState"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=c("useBizMsgPlatformSharedState")(),b=a.dispatch;a=a.state;return{dispatch:b,state:a,updateState:function(a){return b({type:"UPDATE_STATE",value:a})},updateBusiness:function(a){return b({type:"UPDATE_BUSINESS",value:a})},updateIsMMLiteTosAccepted:function(a){return b({type:"UPDATE_IS_MM_LITE_TOS_ACCEPTED",value:a})},updateIsCapiTosModalSeen:function(a){return b({type:"UPDATE_IS_CAPI_TOS_MODAL_SEEN",value:a})},updateIsMapiTosModalSeen:function(a){return b({type:"UPDATE_IS_MAPI_TOS_MODAL_SEEN",value:a})},updateAccessToken:function(a){return b({type:"UPDATE_ACCESS_TOKEN",value:a})},updatePartnerOnboardingData:function(a){return b({type:"UPDATE_PARTNER_ONBOARDING_DATA",value:a})}}}g["default"]=a}),98);
-----
WhatsAppCapiPartnerOnboardingTosModal.react",["fbt","ix","GeoButton.react","GeoCancelButton.react","GeoDivider.react","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoModalFooter.react","GeoSection.react","GeoText.react","Image.react","WhatsAppBizxIllustrationGeoModal.react","WhatsAppBizxPlatformLoggerEvent.flow","WhatsAppOnboardingDirectSignupUtils","fbicon","geoMargin","react","useBizMsgPlatformLogger","useWhatsAppDirectSignupSharedState"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=h._(/*BTDS*/"Get actionable insights from Conversions API");function a(a){var b=a.isShown,e=a.onHide,f=c("useBizMsgPlatformLogger")();a=c("useWhatsAppDirectSignupSharedState")();var g=a.updateIsCapiTosModalSeen;a=function(){f.logEvent(c("WhatsAppBizxPlatformLoggerEvent.flow").DIRECT_SIGNUP_CAPI_PARTNER_ONBOARDING_TOS_ACCEPTANCE,{},2),g(!0),e()};return k.jsx(d("WhatsAppBizxIllustrationGeoModal.react").WhatsAppBizxIllustrationGeoModal,{"data-testid":void 0,image:k.jsx(c("Image.react"),{width:"100%",src:i("854494")}),width:600,footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{variant:"primary",icon:d("fbicon")._(i("509932"),16),href:d("WhatsAppOnboardingDirectSignupUtils").getCapiOnboardingGuideLink(),target:"_blank",label:h._(/*BTDS*/"Continue to integration guide"),onClick:a}),secondaryButton:k.jsx(c("GeoCancelButton.react"),{label:h._(/*BTDS*/"Close")})}),heading:l,isShown:b,onHide:e,children:k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("GeoHeading.react"),{level:2,children:l}),k.jsx(c("GeoText.react"),{xstyle:c("geoMargin").top16,children:h._(/*BTDS*/"With the ability to pull insights from your website, app, store, or messages, Conversions API empowers you to make informed decisions about how and where you want to reach your audience.")}),k.jsx(c("GeoDivider.react"),{}),k.jsx(c("GeoFlexbox.react"),{children:k.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"By continuing, you agree to the {link}.",[h._param("link",k.jsx(c("GeoLink.react"),{href:"https://www.facebook.com/legal/technology_terms",target:"_blank",children:"Meta Business Tools Terms"}))])})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
WhatsAppMapiPartnerOnboardingTosModal.react",["fbt","ix","GeoButton.react","GeoCancelButton.react","GeoDivider.react","GeoFlexbox.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoHeading.react","GeoLink.react","GeoModalFooter.react","GeoSection.react","GeoText.react","Image.react","URI","WhatsAppBizxIllustrationGeoModal.react","WhatsAppBizxPlatformLoggerEvent.flow","WhatsAppDirectSignupAppReviewUtils","WhatsAppOnboardingDirectSignupUtils","XDeveloperAppControllerRouteBuilder","asyncToGeneratorRuntime","fbicon","geoMargin","react","useAddAppReviewPermissionsForUnifiedPartnerOnboarding","useBizMsgPlatformLogger","useWhatsAppDirectSignupSharedState"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m=h._(/*BTDS*/"Drive discovery and demand with Marketing API"),n=h._(/*BTDS*/"MAPI"),o=["ADS_READ","ADS_MANAGEMENT","PAGES_MANAGE_ADS","PAGES_READ_ENGAGEMENT","PAGES_SHOW_LIST"];function a(a){var e=a.appMapiReviewStatus,f=a.isShown,g=a.onHide,k=c("useBizMsgPlatformLogger")();a=c("useWhatsAppDirectSignupSharedState")();var p=a.state.appID,q=a.updateIsMapiTosModalSeen;a=function(){k.logEvent(c("WhatsAppBizxPlatformLoggerEvent.flow").DIRECT_SIGNUP_MAPI_PARTNER_ONBOARDING_TOS_ACCEPTANCE,{},2),q(!0),g()};var r=c("useAddAppReviewPermissionsForUnifiedPartnerOnboarding")(),s=r[0],t=r[1],u=c("XDeveloperAppControllerRouteBuilder").buildUri({app_id:p,page:"app-review",tab:"submissions"});r=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(t)return;e==="UNSUBMITTED"?yield s({app_id:p,product_type:"MAPI"}).then(function(){(j||(j=c("URI"))).goURIOnNewWindow(u)}):(j||(j=c("URI"))).goURIOnNewWindow(u)});return function(){return a.apply(this,arguments)}}();return l.jsx(d("WhatsAppBizxIllustrationGeoModal.react").WhatsAppBizxIllustrationGeoModal,{"data-testid":void 0,image:l.jsx(c("Image.react"),{width:"100%",src:i("854492")}),width:600,footer:l.jsx(c("GeoModalFooter.react"),{primaryButton:l.jsx(c("GeoButton.react"),{variant:"primary",icon:d("fbicon")._(i("509932"),16),href:d("WhatsAppOnboardingDirectSignupUtils").getMapiOnboardingGuideLink(),target:"_blank",label:h._(/*BTDS*/"Continue to integration guide"),onClick:a}),secondaryButton:l.jsx(c("GeoCancelButton.react"),{label:h._(/*BTDS*/"Close")})}),heading:m,isShown:f,onHide:g,children:l.jsxs(c("GeoSection.react"),{children:[l.jsx(c("GeoHeading.react"),{level:2,children:m}),l.jsx(c("GeoText.react"),{xstyle:c("geoMargin").vert16,children:h._(/*BTDS*/"Ads that click to WhatsApp send people that click on your ads directly into conversations with your business in WhatsApp. Use these ads to reach people at scale and deliver standout, individualized service.")}),l.jsx(c("GeoGuidanceCard.react"),{xstyle:c("geoMargin").top12,header:l.jsx(c("GeoGuidanceCardHeader.react"),{heading:d("WhatsAppDirectSignupAppReviewUtils").getAppReviewStatusFbt((a=e)!=null?a:"UNSUBMITTED")}),status:d("WhatsAppDirectSignupAppReviewUtils").getAppReviewStatus((f=e)!=null?f:"UNSUBMITTED"),children:l.jsxs(c("GeoGuidanceCardContent.react"),{children:[l.jsx(c("GeoText.react"),{children:d("WhatsAppDirectSignupAppReviewUtils").getAppReviewDescriptionFbt(n,o)}),l.jsx(c("GeoLink.react"),{onClick:r,children:d("WhatsAppDirectSignupAppReviewUtils").getAppReviewProductLinkFbt((a=e)!=null?a:"UNSUBMITTED",o.length)})]})}),l.jsx(c("GeoDivider.react"),{}),l.jsx(c("GeoFlexbox.react"),{children:l.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"By continuing, you agree to the {link}.",[h._param("link",l.jsx(c("GeoLink.react"),{href:"https://www.facebook.com/legal/self_service_ads_terms",target:"_blank",children:"Self-Serve Ad Terms"}))])})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
WhatsAppDirectSignupQuickstartCapiPartnerOnboardingTile.react",["fbt","ix","GeoButton.react","GeoCard.react","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoPageItem.react","GeoSection.react","GeoText.react","WhatsAppCapiPartnerOnboardingTosModal.react","WhatsAppIconHelper","WhatsAppOnboardingDirectSignupUtils","react","useBoolean","useWhatsAppDirectSignupSharedState"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=h._(/*BTDS*/"Get actionable insights from Conversions API"),m=h._(/*BTDS*/"With the ability to pull insights from your website, app, store, or messages, Conversions API empowers you to make informed decisions about how and where you want to reach your audience. {Learn more about Conversions API Link}.",[h._param("Learn more about Conversions API Link",k.jsx(c("GeoLink.react"),{href:d("WhatsAppOnboardingDirectSignupUtils").getCapiLearnMoreLink(),target:"_blank",children:h._(/*BTDS*/"Learn more")}))]),n=h._(/*BTDS*/"Get started"),o=h._(/*BTDS*/"View integration guide");function a(){var a=c("useWhatsAppDirectSignupSharedState")();a=a.state.isCapiTosModalSeen;var b=c("useBoolean")(!1),e=b.value,f=b.setTrue;b=b.setFalse;return k.jsx(c("GeoPageItem.react"),{columns:12,children:k.jsx(c("GeoCard.react"),{"data-testid":void 0,children:k.jsxs(c("GeoSection.react"),{children:[k.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",direction:"row",gap:8,children:[k.jsxs(c("GeoFlexbox.react"),{gap:8,children:[d("WhatsAppIconHelper").getTileIcon(i("1348365")),k.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:8,children:[k.jsx(c("GeoHeading.react"),{level:3,children:l}),k.jsx(c("GeoText.react"),{children:m})]})]}),a===!0?k.jsx(c("GeoButton.react"),{target:"_blank",href:d("WhatsAppOnboardingDirectSignupUtils").getCapiOnboardingGuideLink(),label:o,"data-testid":void 0}):k.jsx(c("GeoButton.react"),{label:n,"data-testid":void 0,onClick:f})]}),k.jsx(c("WhatsAppCapiPartnerOnboardingTosModal.react"),{isShown:e,onHide:b})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
WhatsAppDirectSignupQuickstartMapiPartnerOnboardingTile.react",["fbt","ix","GeoButton.react","GeoCard.react","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoPageItem.react","GeoPill.react","GeoSection.react","GeoText.react","WhatsAppDirectSignupAppReviewUtils","WhatsAppIconHelper","WhatsAppMapiPartnerOnboardingTosModal.react","WhatsAppOnboardingDirectSignupUtils","XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook","react","useBoolean","useWhatsAppDirectSignupSharedState"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=h._(/*BTDS*/"Drive discovery and demand with Marketing API"),m=h._(/*BTDS*/"Ads that click to WhatsApp send people that click on your ads directly into conversations with your business in WhatsApp. Create these ads to reach people at scale and deliver standout, individualized service. {Learn more link}.",[h._param("Learn more link",k.jsx(c("GeoLink.react"),{href:d("WhatsAppOnboardingDirectSignupUtils").getMapiLearnMoreLink(),target:"_blank",children:h._(/*BTDS*/"Learn more")}))]),n=h._(/*BTDS*/"Get started"),o=h._(/*BTDS*/"View integration guide"),p=h._(/*BTDS*/"App Review required");function a(){var a,b=c("useWhatsAppDirectSignupSharedState")();b=b.state;var e=b.isMapiTosModalSeen,f=b.isBspBusiness,g=b.isTechProviderBusiness;b=b.partnerOnboardingData;var h=c("useBoolean")(!1),j=h.value,q=h.setTrue;h=h.setFalse;b=d("XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook").toJSEnum(b==null?void 0:(b=b.xfb_get_app_review_status_for_all_unified_onboarding_products)==null?void 0:(b=b.app_review_submission_statuses)==null?void 0:(b=b.find(function(a){return a.product_type==="MAPI"}))==null?void 0:b.app_review_submission_status);return k.jsx(c("GeoPageItem.react"),{columns:12,children:k.jsx(c("GeoCard.react"),{"data-testid":void 0,children:k.jsxs(c("GeoSection.react"),{children:[k.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",direction:"row",gap:8,children:[k.jsxs(c("GeoFlexbox.react"),{gap:8,children:[d("WhatsAppIconHelper").getTileIcon(i("1374736")),k.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:8,children:[k.jsxs(c("GeoFlexbox.react"),{gap:12,alignItems:"center",children:[k.jsx(c("GeoHeading.react"),{level:3,children:l}),k.jsx(c("GeoPill.react"),{label:p,status:d("WhatsAppDirectSignupAppReviewUtils").getAppReviewPillStatus((a=b)!=null?a:"UNSUBMITTED"),value:p})]}),k.jsx(c("GeoText.react"),{children:m})]})]}),e!==!0||(f||g)&&b!=="APPROVED"?k.jsx(c("GeoButton.react"),{label:n,"data-testid":void 0,onClick:q}):k.jsx(c("GeoButton.react"),{target:"_blank",href:d("WhatsAppOnboardingDirectSignupUtils").getMapiOnboardingGuideLink(),label:o,"data-testid":void 0})]}),k.jsx(c("WhatsAppMapiPartnerOnboardingTosModal.react"),{isShown:j,onHide:h,appMapiReviewStatus:b})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
WhatsAppDirectSignupQuickstartMMLitePartnerOnboardingTile.react",["fbt","ix","GeoButton.react","GeoCard.react","GeoFlexbox.react","GeoHeading.react","GeoPageItem.react","GeoPill.react","GeoSection.react","GeoText.react","WhatsAppDirectSignupAppReviewUtils","WhatsAppIconHelper","WhatsAppMMLitePartnerOnboardingTosModal.react","WhatsAppOnboardingDirectSignupUtils","XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook","react","useBoolean","useWhatsAppDirectSignupSharedState"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=h._(/*BTDS*/"Improve ROI with Marketing Messages Lite API"),m=h._(/*BTDS*/"Sending marketing messages through the Marketing Messages Lite API enables you to leverage Meta AI to improve quality for users and drive performance for businesses."),n=h._(/*BTDS*/"Get started"),o=h._(/*BTDS*/"View integration guide"),p=h._(/*BTDS*/"App Review required");function a(a){var b;a=a.businessID;var e=c("useWhatsAppDirectSignupSharedState")();e=e.state;var f=e.isMMLiteTosAccepted,g=e.isBspBusiness,h=e.isTechProviderBusiness;e=e.partnerOnboardingData;var j=c("useBoolean")(!1),q=j.value,r=j.setTrue;j=j.setFalse;e=d("XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook").toJSEnum(e==null?void 0:(e=e.xfb_get_app_review_status_for_all_unified_onboarding_products)==null?void 0:(e=e.app_review_submission_statuses)==null?void 0:(e=e.find(function(a){return a.product_type==="MMLITE"}))==null?void 0:e.app_review_submission_status);return k.jsx(c("GeoPageItem.react"),{columns:12,children:k.jsx(c("GeoCard.react"),{"data-testid":void 0,children:k.jsxs(c("GeoSection.react"),{children:[k.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",direction:"row",gap:8,children:[k.jsxs(c("GeoFlexbox.react"),{gap:8,children:[d("WhatsAppIconHelper").getTileIcon(i("1530501")),k.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:8,children:[k.jsxs(c("GeoFlexbox.react"),{gap:12,alignItems:"center",children:[k.jsx(c("GeoHeading.react"),{level:3,children:l}),(g===!0||h===!0)&&k.jsx(c("GeoPill.react"),{label:p,status:d("WhatsAppDirectSignupAppReviewUtils").getAppReviewPillStatus((b=e)!=null?b:"UNSUBMITTED"),value:p})]}),k.jsx(c("GeoText.react"),{children:m})]})]}),f!==!0||(g||h)&&e!=="APPROVED"?k.jsx(c("GeoButton.react"),{label:n,"data-testid":void 0,onClick:r}):k.jsx(c("GeoButton.react"),{target:"_blank",href:d("WhatsAppOnboardingDirectSignupUtils").getMMLiteOnboardingGuideLink(),label:o,"data-testid":void 0})]}),k.jsx(c("WhatsAppMMLitePartnerOnboardingTosModal.react"),{businessID:a,isShown:q,onHide:j,appMMLiteReviewStatus:e})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
WhatsAppOnboardingDirectSignupMMLitePartnerOnboardingCard.react",["fbt","GeoFlexbox.react","GeoGuidanceCard.react","GeoGuidanceCardFooter.react","GeoGuidanceCardHeader.react","GeoLink.react","WhatsAppMMLitePartnerOnboardingTosModal.react","WhatsAppOnboardingDirectSignupUtils","XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook","react","useBoolean","useWhatsAppDirectSignupSharedState"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=h._(/*BTDS*/"Improve ROI with Marketing Messages Lite API"),l=h._(/*BTDS*/"Sending marketing messages through the Marketing Messages Lite API enables you to leverage Meta AI to improve quality for users and drive performance for businesses."),m=h._(/*BTDS*/"View integration guide"),n=h._(/*BTDS*/"Configure the API"),o=h._(/*BTDS*/"Not now");function a(a){a=a.businessID;var b=c("useWhatsAppDirectSignupSharedState")();b=b.state;var e=b.isMMLiteTosAccepted,f=b.isBspBusiness,g=b.isTechProviderBusiness;b=b.partnerOnboardingData;var h=c("useBoolean")(!0),i=h.value;h=h.setFalse;var p=c("useBoolean")(!1),q=p.value,r=p.setTrue;p=p.setFalse;b=d("XFBUnifiedOnboardingAppReviewSubmissionStatusUtils.facebook").toJSEnum(b==null?void 0:(b=b.xfb_get_app_review_status_for_all_unified_onboarding_products)==null?void 0:(b=b.app_review_submission_statuses)==null?void 0:(b=b.find(function(a){return a.product_type==="MMLITE"}))==null?void 0:b.app_review_submission_status);return j.jsxs(j.Fragment,{children:[i&&j.jsx(c("GeoGuidanceCard.react"),{footer:j.jsx(c("GeoGuidanceCardFooter.react"),{children:j.jsxs(c("GeoFlexbox.react"),{gap:24,children:[e!==!0||(f||g)&&b!=="APPROVED"?j.jsx(c("GeoLink.react"),{onClick:r,children:n}):j.jsx(c("GeoLink.react"),{target:"_blank",href:d("WhatsAppOnboardingDirectSignupUtils").getMMLiteOnboardingGuideLink(),children:m}),j.jsx(c("GeoLink.react"),{onClick:h,children:o})]})}),header:j.jsx(c("GeoGuidanceCardHeader.react"),{heading:k,description:l}),status:"new-products-and-features"}),j.jsx(c("WhatsAppMMLitePartnerOnboardingTosModal.react"),{businessID:a,isShown:q,onHide:p,appMMLiteReviewStatus:b})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BusinessCometInboxOutcomesSection3DWrapper.react",["BizKitContextCardOutcomesSectionContainer.react","BusinessCometContextCardNewActivitySection.react","BusinessCometDetectedOutcomesNuxSection.react","BusinessCometInboxContactCardDataSharingSection.react","BusinessCometInboxOutcomesSection3DWrapper_outcomes.graphql","BusinessCometSectionContentPlaceholder.react","CometPlaceholder.react","CometRelay","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||c("react"),k=h!==void 0?h:h=b("BusinessCometInboxOutcomesSection3DWrapper_outcomes.graphql");function a(a){var b=a.businessAssets,e=a.className,f=a.contactID,g=a.contactIdentity,h=a.isInKBankRollout,i=a.onShowContactCardTosModal,l=a.pageContactID,m=a.pageID,n=a.section_3d,o=a.shouldShowContactCardTos;a=a.surface;n=d("CometRelay").useFragment(k,n);return j.jsxs(c("BizKitContextCardOutcomesSectionContainer.react"),{className:e,children:[j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("BusinessCometSectionContentPlaceholder.react"),{}),children:j.jsx(c("BusinessCometInboxContactCardDataSharingSection.react"),{contactID:f,contactIdentity:g,isRedesign:!0,pageID:m,profileData:n==null?void 0:n.biz_crm_contact,surface:a})}),j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("BusinessCometSectionContentPlaceholder.react"),{}),children:j.jsx(c("BusinessCometContextCardNewActivitySection.react"),{businessAssets:b,consumerID:g.contact_id,contactID:l,contactIdentity:g,fragmentRef:n==null?void 0:n.biz_crm_contact,isInKBankRollout:h,onShowContactCardTosModal:i,pageID:m,shouldShowContactCardTos:o,surface:a})}),j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("BusinessCometSectionContentPlaceholder.react"),{}),children:j.jsx(c("BusinessCometDetectedOutcomesNuxSection.react"),{contactID:l,fragmentRef:n==null?void 0:n.biz_crm_contact,identity:g,pageID:m,surface:a})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometContextCardNewActivitySection.react",["BizKitContextCardNewActivitySectionShared.react","BusinessCometContextCardNewActivitySection_section.graphql","CometRelay","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BusinessCometContextCardNewActivitySection_section.graphql");function a(a){var b=a.businessAssets,e=a.consumerID,f=a.contactID,g=a.contactIdentity,h=a.fragmentRef,i=a.isInKBankRollout,l=a.onShowContactCardTosModal,m=a.pageID,n=a.shouldShowContactCardTos,o=a.surface;a=d("CometRelay").useRefetchableFragment(k,h);var p=a[0],q=a[1];function r(){}function s(){var a=p==null?void 0:p.id;if(a==null)return;var c="MESSENGER";(o==="INBOX_MESSAGING_IG"||o==="INBOX_POST_COMMENT_IG"||o==="INTERACTIONS_IG_COMMENT"||o==="POST_COMMENT_IG")&&(c="IG");q({assetType:c,businessAssets:b,consumerID:e,id:a,pageID:m},{fetchPolicy:"network-only"})}function t(a,b){}return j.jsx(c("BizKitContextCardNewActivitySectionShared.react"),{businessAssets:b,className:"xkh9tda x13fuv20 x178xt8z xyamay9 xn6708d x1l90r2v x1ye3gou",contactID:f,contactIdentity:g,crmContactFragmentRef:p,isInKBankRollout:i,leadCenterFragmentRef:p==null?void 0:p.leads_center,leadStageFragmentRef:p==null?void 0:p.biz_inbox_lead_stage_query,onActivityListUpdated:t,onShowContactCardTosModal:l,pageFragmentRef:p==null?void 0:p.page,pageID:m,refetchLeadOpportunity:r,refresh:s,shouldShowContactCardTos:n,surface:o})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometInboxNewActivitySection3DWrapper.react",["BusinessCometContextCardNewActivitySection.react","BusinessCometInboxNewActivitySection3DWrapper_section.graphql","BusinessCometSectionContentPlaceholder.react","CometPlaceholder.react","CometRelay","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||c("react"),k=h!==void 0?h:h=b("BusinessCometInboxNewActivitySection3DWrapper_section.graphql");function a(a){var b=a.businessAssets,e=a.contactIdentity,f=a.isInKBankRollout,g=a.onShowContactCardTosModal,h=a.pageContactID,i=a.pageID,l=a.section_3d,m=a.shouldShowContactCardTos;a=a.surface;l=d("CometRelay").useFragment(k,l);return j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("BusinessCometSectionContentPlaceholder.react"),{}),children:j.jsx(c("BusinessCometContextCardNewActivitySection.react"),{businessAssets:b,consumerID:e.contact_id,contactID:h,contactIdentity:e,fragmentRef:l==null?void 0:l.biz_crm_contact,isInKBankRollout:f,onShowContactCardTosModal:g,pageID:i,shouldShowContactCardTos:m,surface:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
DEVHorizonTOSModal.react",["fbt","CometRelay","DEVHorizonTOSModalMutation.graphql","DEVHorizonTOSModal_organization.graphql","DEVHorizonTOSModal_termsOfService.graphql","MCDSButton.react","MCDSCheckbox.react","MCDSContainer.react","MCDSDialog.react","MCDSFlexbox.react","MCDSHorizontalDivider.react","MCDSText.react","OCDevUIDraftJSRenderer.react","mcdsMargin","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react")),n=l.useState;function a(a){a=a.props;var e=a.modalProps,f=e.organizationKey;e=e.termsOfServiceKey;var g=a.onClose,l=d("CometRelay").useFragment(i!==void 0?i:i=b("DEVHorizonTOSModal_organization.graphql"),f),o=d("CometRelay").useFragment(j!==void 0?j:j=b("DEVHorizonTOSModal_termsOfService.graphql"),e);a=n(!1);f=a[0];e=a[1];a=d("CometRelay").useMutation(k!==void 0?k:k=b("DEVHorizonTOSModalMutation.graphql"));var p=a[0];a=a[1];return m.jsx(c("MCDSDialog.react"),{ariaLabel:h._("Developer Hardware Loan Agreement"),footer:m.jsxs(c("MCDSFlexbox.react"),{alignItems:"center",justifyContent:"space-between",children:[m.jsx(c("MCDSCheckbox.react"),{label:h._("I Agree"),value:f,onChange:e}),m.jsx(c("MCDSButton.react"),{isDisabled:!f,isLoading:a,label:h._("Submit"),type:"primary",onClick:function(){var a;p({variables:{input:{organization_id:(a=l==null?void 0:l.id)!=null?a:"",tos_type:c("nullthrows")(o.tos_type)}}});g()}})]}),isTitleSticky:!0,title:h._("Developer Hardware Loan Agreement"),onClose:g,children:m.jsx(c("MCDSContainer.react"),{children:m.jsxs("div",{className:"xuyqlj2",children:[m.jsx(c("OCDevUIDraftJSRenderer.react"),{draftJSString:(e=o.content_draft_js)!=null?e:""}),m.jsx(c("MCDSHorizontalDivider.react"),{xstyle:c("mcdsMargin").vert16}),m.jsx(c("MCDSText.react"),{children:h._("I have read and agree to Oculusu2019s Privacy Policy, Terms of Service, and the terms of this program as stated above. If you do not agree to any of the terms of this program and Use Terms or do not have authority to bind the identified Organization, then {underlined_do_not} click "I Agree" and {underlined_do_not} submit any program application to Oculus.",[h._param("underlined_do_not",m.jsx("u",{children:"do not"}))])})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
DEVHorizonTOSModal_organization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DEVHorizonTOSModal_organization",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"Organization",abstractKey:null};e.exports=a}),null);
-----
DEVHorizonTOSModal_termsOfService.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DEVHorizonTOSModal_termsOfService",selections:[{alias:null,args:null,kind:"ScalarField",name:"content_draft_js",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tos_type",storageKey:null}],type:"TermsOfService",abstractKey:null};e.exports=a}),null);
-----
DEVHorizonTOSModal.entrypoint",["JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{}},root:c("JSResourceForInteraction")("DEVHorizonTOSModal.react").__setRef("DEVHorizonTOSModal.entrypoint")};b=a;g["default"]=b}),98);
-----
DEVHorizonOculusStartApplyFormView.react",["fbt","ix","DEVHorizonOculusStartApplyForm.react","DEVHorizonOculusStartApplyFormView_application.graphql","DEVHorizonOculusStartApplyFormView_hardwareRequestFormConfigs.graphql","DEVHorizonOculusStartApplyFormView_termsOfService.graphql","DEVHorizonOculusStartApplyFormView_user.graphql","DEVHorizonTOSModal.entrypoint","MCDSButton.react","MCDSDefaultLoadingDialog.react","MCDSEntryPointModalTrigger.react","OCDevManageEmptyState.react","RelayHooks","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n,o=n||d("react");function a(a){var e,f=a.application,g=a.hardwareRequestFormConfigs,n=a.termsOfService;a=a.user;f=d("RelayHooks").useFragment(j!==void 0?j:j=b("DEVHorizonOculusStartApplyFormView_application.graphql"),f);g=d("RelayHooks").useFragment(k!==void 0?k:k=b("DEVHorizonOculusStartApplyFormView_hardwareRequestFormConfigs.graphql"),g);n=d("RelayHooks").useFragment(l!==void 0?l:l=b("DEVHorizonOculusStartApplyFormView_termsOfService.graphql"),n);a=d("RelayHooks").useFragment(m!==void 0?m:m=b("DEVHorizonOculusStartApplyFormView_user.graphql"),a);e=((e=f.organization)==null?void 0:(e=e.signed_legal_agreements)==null?void 0:e.count_up_to)===1;n=o.jsx(c("MCDSEntryPointModalTrigger.react"),{entryPoint:c("DEVHorizonTOSModal.entrypoint"),options:{fallback:c("MCDSDefaultLoadingDialog.react")},otherProps:{organizationKey:f.organization,termsOfServiceKey:n},preloadParams:{},children:function(a){a=a.onTrigger;return o.jsx(c("MCDSButton.react"),{label:h._("__JHASH__ABIW54WfhQ-__JHASH__"),type:"primary",onClick:a})}},"CTA to sign HLA");return o.jsx(o.Fragment,{children:e?o.jsx(c("DEVHorizonOculusStartApplyForm.react"),{application:f,hardwareRequestFormConfigs:g,user:a}):o.jsx(c("OCDevManageEmptyState.react"),{action:n,heading:h._("__JHASH__HEYln9dwUz___JHASH__"),icon:d("fbicon")._(i("728259"),24)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
DEVHorizonOculusStartApplyFormView_termsOfService.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DEVHorizonOculusStartApplyFormView_termsOfService",selections:[{args:null,kind:"FragmentSpread",name:"DEVHorizonTOSModal_termsOfService"}],type:"TermsOfService",abstractKey:null};e.exports=a}),null);
-----
BizKitContextCardNewActivitySectionShared.react",["fbt","BizInboxCreateLeadMutation","BizInboxFbtUtils","BizInboxGating","BizInboxStateContext","BizKitContextCardActivityListSection.react","BizKitContextCardActivityNuxForAutoDetected.react","BizKitContextCardNewActivitySectionEventLogger","BizKitContextCardNewActivitySectionShared_crmContact.graphql","BizKitContextCardNewActivitySectionShared_leadCenter.graphql","BizKitContextCardNewActivitySectionShared_leadStage.graphql","BizKitContextCardNewActivitySectionShared_page.graphql","GeoBaseText.react","GeoButton.react","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoPill.react","GeoToast.react","LeadOpportunityStageUpdateMutation","LeadsManagerConstants","LeadsManagerStageSelector.react","LeftRight.react","PageAdsEligibleEventSource","PageConsentForAdsEventsActions","RelayHooks","ThreadOrderStatusDropdownSection.react","XBizSuiteControllerRouteBuilder","XFBMBSAdsEventSharingEntryPointUtils.facebook","bizInboxStateHideContactCardReducer","geoMargin","getBizInboxOrganizeInboxTourSteps","react","stylex","useAdsDataSharingNUX","useBizInboxStateReducers","useBizWebGetRouteParams","useBizWebRouteDispatcher","useGeoToaster","useShouldUseContactCardCTAFix"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n,o=n||(n=d("react"));e=n;var p=e.useContext,q=e.useEffect,r=e.useRef,s=e.useState,t=i!==void 0?i:i=b("BizKitContextCardNewActivitySectionShared_leadCenter.graphql"),u=j!==void 0?j:j=b("BizKitContextCardNewActivitySectionShared_leadStage.graphql"),v=k!==void 0?k:k=b("BizKitContextCardNewActivitySectionShared_page.graphql"),aa=l!==void 0?l:l=b("BizKitContextCardNewActivitySectionShared_crmContact.graphql");function a(a){var b,e=a.surface,f=a.pageID,g=a.contactID,i=a.businessAssets,j=a.contactIdentity,k=a.onActivityListUpdated,l=a.isInKBankRollout,n=a.onShowContactCardTosModal,w=a.shouldShowContactCardTos,x=a.refetchLeadOpportunity,y=a.pageFragmentRef,z=a.leadCenterFragmentRef,A=a.leadStageFragmentRef,B=a.refresh,C=p(c("BizInboxStateContext")),D=C.hasPageSignedLcTos,E=C.selectedIgAssetId,F=C.pBUPIGAccountID,ba=C.shouldShowLeadStageUpdateAdsConsent;C=s(null);var G=C[0];C[1];C=s(null);C[0];var ca=C[1];C=function(a,b){ca(a),k(a,b)};var H=c("useShouldUseContactCardCTAFix")(),I="MESSENGER",J="MSGR_INBOX_ORGANIC";switch(e){case"INBOX_MESSAGING_IG":case"INBOX_POST_COMMENT_IG":case"INTERACTIONS_IG_COMMENT":case"POST_COMMENT_IG":I="IG";J="IG_INBOX_ORGANIC";break;default:}var K=c("useBizWebRouteDispatcher")(),L=c("useBizWebGetRouteParams")(),M=L.asset_id,N=c("XBizSuiteControllerRouteBuilder").buildURL({rest:"leads_center"});L=function(){var a={asset_id:M};K(N,a);d("BizKitContextCardNewActivitySectionEventLogger").logGoToLeadsCenterCTAClick(f,O,I)};var O=j.contact_id,P=(b=d("RelayHooks")).useFragment(t,z),Q=b.useFragment(v,y);z=b.useFragment(u,A);y=b.useFragment(aa,a.crmContactFragmentRef);A=(P==null?void 0:P.should_enable_cold_start_improvements)===!0;var R=z==null?void 0:(b=z.lead_stage)==null?void 0:b.id;b=d("BizInboxGating").getAllowPBIAFrontendChanges()&&E===F;var da=(P==null?void 0:P.should_show_mbs_ads_event_sharing_setting_modal_in_contact_card)===!0;E=b?!1:Q==null?void 0:Q.has_leads_center_access;b=y==null?void 0:(F=y.page)==null?void 0:F.settings_uri_in_business_view;F=s(R);var S=F[0],T=F[1],U=r(null);q(function(){U.current=S,T(R)},[R]);var ea=c("useBizInboxStateReducers")([c("bizInboxStateHideContactCardReducer")]);F=c("useGeoToaster")();var V=F.add,W=d("RelayHooks").useRelayEnvironment();F=z==null?void 0:z.lead_opportunity;var X=F==null?void 0:F.id,fa=function(){if(X==null)return;var a={asset_id:M,lead_id:X};K(N,a)},Y=function(a,b){var e;b=b!=null?b>0:a==="mark_as_lead_inbox_contact_card";e=(e=P==null?void 0:P.list_mbs_ads_event_sharing_setting_modal_entrypoints.includes(d("XFBMBSAdsEventSharingEntryPointUtils.facebook").fromJSEnum(a)))!=null?e:!1;if(!ba||!b||!e||!da)return;d("PageConsentForAdsEventsActions").showConsentModalIfNeeded(function(){return!0},function(){return!0},function(){},c("PageAdsEligibleEventSource").LEAD_STAGE_UPDATE,null,a)};F=function(){d("BizKitContextCardNewActivitySectionEventLogger").logMarkAsLeadCTAClick(f,O,I),Y("mark_as_lead_inbox_contact_card"),d("BizInboxCreateLeadMutation").commit(W,f,g,J,I,{onSuccess:function(){ea({type:"has_organic_lead.update"}),B(),V(o.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getAddLeadSuccessToast(),status:"success"}))},onFailure:function(){V(o.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getAddLeadFailureToast(),status:"error"}))}},i)};var Z=function(a){var b;if(a==null||X==null)return;d("BizKitContextCardNewActivitySectionEventLogger").logLeadStageDropdownOptionClick(f,O,a,I);T(a);b=Q==null?void 0:(b=Q.page_opportunity_stages)==null?void 0:(b=b.find(function(b){return b.id===a}))==null?void 0:b.stage_key;Y("lead_stage_update_inbox_contact_card",b);d("LeadOpportunityStageUpdateMutation").commit(W,{lead_opportunity_id:X,stage:a,event_location:"business_inbox"},{onSuccess:function(){B(),ga(),V(o.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getMoveLeadStageSuccessToast(),status:"success"})),d("BizKitContextCardNewActivitySectionEventLogger").logLeadStageDropdownOptionSave(f,O,a,I)},onFailure:function(b){V(o.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getMoveLeadStageFailureToast(),status:"error"})),T(U.current),d("BizKitContextCardNewActivitySectionEventLogger").logLeadStageDropdownOptionError(f,O,a,b,I)}})};L=o.jsx(c("GeoButton.react"),{label:d("BizInboxFbtUtils").getGoToLeadsCenterLabel(),tooltip:H?d("BizInboxFbtUtils").getGoToLeadsCenterSubtitle():null,onClick:L,variant:H?void 0:"primary"});var $=o.jsx(c("GeoBaseText.react"),{color:"value",display:"block",isDisabled:!0,size:"accent",children:d("BizInboxFbtUtils").getGoToLeadsCenterSubtitle()});L=o.jsxs(o.Fragment,{children:[L,!H&&o.jsx("div",{className:(m||(m=c("stylex")))(c("geoMargin").top4),children:$})]});H=o.jsx(c("GeoButton.react"),{"data-testid":void 0,label:A?d("BizInboxFbtUtils").getContactCardMarkAsLeadLabel():d("BizInboxFbtUtils").getContactCardAddLeadLabel(),onClick:F,variant:"default"});F=z==null?void 0:($=z.lead_opportunity)==null?void 0:$.mbs_ads_event_sharing_lead_opt_in_status;$=F==="OPTED_IN"?y==null?void 0:y.adsDataSharingLeadStageUpdateNUX:[];var ga=d("useAdsDataSharingNUX").useAdsEventSharingNux($,b,f);F=o.jsx(c("LeadsManagerStageSelector.react"),{dataTestId:"contact-card-leads-stage-selector-button",allowNoSelection:!1,isDisabled:!1,stages:Q==null?void 0:Q.page_opportunity_stages,selectedValue:S,width:160,onChange:Z,consumerID:O,pageID:f,assetType:I,shouldShowBulkAction:!1,shouldShowBulkEditImprovement:!1});$=o.jsx(c("GeoLink.react"),{"data-testid":void 0,onClick:function(){fa(),d("BizKitContextCardNewActivitySectionEventLogger").logViewInLeadsCenterTextClick(f,O,I)},children:d("LeadsManagerConstants").VIEW_IN_LEADS_CENTER_TEXT});Z=E===!0?o.jsxs("div",{className:"xyamay9 x4uap5 x18d9i69 xkhd6sd",children:[o.jsxs(c("LeftRight.react"),{children:[o.jsx(c("GeoHeading.react"),{level:4,children:d("LeadsManagerConstants").LEAD_STAGE_LABEL}),D&&(z==null?void 0:z.lead_stage)!==null?$:null]}),o.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top8,children:D?(z==null?void 0:z.lead_stage)===null?H:F:L})]}):null;E=y==null?void 0:y.adsDataSharingActivityNUX;$=d("useAdsDataSharingNUX").useAdsEventSharingNux(E,b,f);z=(D=Q==null?void 0:Q.thread_action_system_should_use_optimistic_update)!=null?D:!1;H=I!=="MESSENGER"?null:z?o.jsx(d("ThreadOrderStatusDropdownSection.react").ThreadOrderStatusDropdownSection,{pageID:f,consumerID:O,query:Q,environment:W,refresh:B,showAdEventSharingLegalNux:$,onShowContactCardTosModal:n,shouldShowContactCardTos:w}):o.jsx(d("ThreadOrderStatusDropdownSection.react").ThreadOrderStatusDropdownSectionDeprecated,{pageID:f,consumerID:O,query:Q,environment:W,refresh:B,showAdEventSharingLegalNux:$,onShowContactCardTosModal:n,shouldShowContactCardTos:w});F=I!=="MESSENGER"?null:o.jsx("div",{className:(m||(m=c("stylex")))(c("geoMargin").top8),children:o.jsx(c("BizKitContextCardActivityListSection.react"),{activity:y,page:G==null?void 0:G.page.listItemRef,mbsBusinessAssets:G==null?void 0:G.xfb_mbs_business_assets.listItemRef,pageID:f,userID:O,surface:e,pageContactID:g,onActivityListUpdated:C,isInKBankRollout:l,onShowContactCardTosModal:n,shouldShowContactCardTos:w,contactIdentity:j,refetchLeadOpportunity:x})});return o.jsxs(o.Fragment,{children:[o.jsx(c("BizKitContextCardActivityNuxForAutoDetected.react"),{contact:y,shouldShowNux:(y==null?void 0:y.should_show_automated_activity_redesigned_nux)!==!0&&(y==null?void 0:y.should_show_automated_activity_nux)===!0,pageID:f,nuxType:"AUTOMATED_ACTIVITY_CREATION",identity:j,refetchLeadOpportunity:x}),o.jsx("div",{ref:d("getBizInboxOrganizeInboxTourSteps").contactCardActivitySectionRef,className:a.className,"data-testid":void 0,children:o.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top4,children:[o.jsxs(c("GeoFlexbox.react"),{gap:8,alignItems:"center",children:[o.jsx(c("GeoHeading.react"),{level:3,children:h._("Activity")}),A?o.jsx(c("GeoPill.react"),{label:d("LeadsManagerConstants").RECOMMENDED_PILL_CONTENT,status:"info",value:d("LeadsManagerConstants").RECOMMENDED_PILL_CONTENT}):null]}),Z,H,F]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BusinessCometInboxContextCard.react",["BizCRMContactCardPermission","BizCRMContactCardSection","BizInboxStateContext","BizKitContextCardConstants","BizKitContextCardErrorBoundary.react","BizKitContextCardTOSModal.react","BizKitContextCardTosLoggingUtils","BusinessCometInboxContextCardSection3DWrapper.react","BusinessCometInboxContextCard_config.graphql","BusinessCometInboxContextCard_detail.graphql","CometPlaceholder.react","GeoToast.react","JSResourceForInteraction","RelayHooks","getJSEnumSafe","justknobx","lazyLoadComponent","react","useGeoToaster","usePageGating"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useContext,m=e.useState,n=c("lazyLoadComponent")(c("JSResourceForInteraction")("BizKitContactCardCoexEditInfoModal.react").__setRef("BusinessCometInboxContextCard.react"));function a(a){var e,f=d("RelayHooks").useFragment(h!==void 0?h:h=b("BusinessCometInboxContextCard_detail.graphql"),a.contactDetails),g=d("RelayHooks").useFragment(i!==void 0?i:i=b("BusinessCometInboxContextCard_config.graphql"),a.contactConfig),j=a.businessAssets,o=a.contactID,p=a.contactIdentity,q=a.externalPaymentAccountData,r=a.isBlockedInIG,s=a.isDependencyOfRemovePageDependencyEnabledTool;s=s===void 0?!1:s;var t=a.isGcashEnabled,u=a.onActivityListUpdated,v=a.onBanUser,w=a.onSelectLabel,x=a.pageID,y=a.surface,z=(g==null?void 0:g.permission)?c("getJSEnumSafe")(c("BizCRMContactCardPermission"),g==null?void 0:g.permission)!=="READ_WRITE":!1,A=l(c("BizInboxStateContext"));A=A.onboardPageID;var B=(e=f==null?void 0:(e=f.shared_attributes)==null?void 0:e.is_guest_chat)!=null?e:!1,C=(e=f==null?void 0:(e=f.shared_attributes)==null?void 0:e.page_contact_id)!=null?e:"";e=(e=f==null?void 0:f.has_consented_to_contact_card_tos)!=null?e:!1;var D=["CRM_DESTINATION","INBOX_CONTACT_LIST","INBOX_LEAD_EMAIL"].includes(y),E=c("usePageGating")("gk");E=A!=null&&A!==""&&E.getBool(A,"wa_inbox_deprecate_bpl",{fallback:{enabled:c("justknobx")._("3190"),getBool:!1},silent:!1});E=((A=E)!=null?A:!1)&&p.type==="WA_USER";var F=!D&&!E&&!e;A=s?f==null?void 0:f.mbs_business_assets:f==null?void 0:f.page;s=s?(f==null?void 0:(D=f.mbs_business_assets)==null?void 0:D.page_if_viewer_can_manage_permissions)!=null:(f==null?void 0:(E=f.page)==null?void 0:E.if_viewer_can_manage_permissions)!=null;var G=!1,H=A==null?void 0:(D=A.business_presence_node)==null?void 0:D.id,I=(A==null?void 0:(E=A.is_in_kbank_rollout)==null?void 0:E.passes)===!0,J=(f==null?void 0:(D=f.page)==null?void 0:(A=D.show_payment_onboarding_context_card)==null?void 0:A.passes_gk)===!0;E=m(!1);D=E[0];var K=E[1];A=c("useGeoToaster")();var L=A.add,M=function(a){var b=null;a==="error"?b=c("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_ERROR_TEXT:a==="success"&&(b=c("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_SUCCESS_TEXT);b!==null&&L(k.jsx(c("GeoToast.react"),{heading:b,status:a}),{duration:"standard"})};E=m(!1);A=E[0];var N=E[1],O=function(){N(!0)};E=A&&k.jsx(c("CometPlaceholder.react"),{fallback:null,children:k.jsx(n,{isShown:A,onHide:function(){N(!1)}})});var P=function(){K(!0),d("BizKitContextCardTosLoggingUtils").logTosModalEnterFlow(x,C,y)};g=g==null?void 0:(A=g.sections_renderers)==null?void 0:A.map(function(b){return k.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:x,section:c("getJSEnumSafe")(c("BizCRMContactCardSection"),b.section_enum),children:k.jsx(c("BusinessCometInboxContextCardSection3DWrapper.react"),{bpnID:H,businessAssets:j,contactID:o,contactIdentity:p,data:f,externalPaymentAccountData:q,isBlockedInIG:r,isGcashEnabled:t,isInKBankRollout:I,isPageEnabledForWAM:G,onActivityListUpdated:u,onBanUser:v,onClose:a.onClose,onSelectLabel:w,onShowCoexEditInfo:O,onShowContactCardTosModal:P,pageContactID:C,pageID:x,readOnly:z,rendererRef:b,sectionName:b.section_enum,shouldDisableBizInput:B,shouldShowCloseButton:a.shouldShowCloseButton,shouldShowContactCardTos:F,shouldShowPaymentOnboardingContextCard:J,surface:y})},b.section_enum)});return k.jsxs("div",{className:"xdpxx8g","data-testid":void 0,children:[g,E,!e&&H!=null?k.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:x,children:k.jsx(c("BizKitContextCardTOSModal.react"),{bpnID:H,contactIdentity:p,isAdmin:s,isShown:D,onAcceptFailure:function(){K(!1),M("error")},onAcceptSuccess:function(){K(!1),M("success")},onHide:function(){K(!1),d("BizKitContextCardTosLoggingUtils").logTosModalCancelFlow(x,C,y)},pageContactID:C,pageID:x,surface:y})}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MarketingMessagesLWIBizInboxTOSModalWrapper.react",["BizInboxMarketingMessageEntrypointContext","MarketingMessagesLWITOSGeoModal.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext;function a(a){a=a.TOSConfig;var b=j(d("BizInboxMarketingMessageEntrypointContext").BizInboxMarketingMessageEntrypointStateContext);b=b.isSideSheetShown;a=babelHelpers["extends"]({},a,{isTosModalShown:a.isTosModalShown||b});return i.jsx(c("MarketingMessagesLWITOSGeoModal.react"),{TOSConfig:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerOverviewPageRoot.react",["CommerceManagerContextProviders.react","CommerceManagerHomePage.atomic","CommerceManagerLayersContainerWithSuspense.react","CommerceManagerOverviewPageRootQuery.graphql","RelayHooks","nullthrows","react","useCommerceManagerRouteParams","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("CommerceManagerOverviewPageRootQuery.graphql");function a(a){var b;c("vulture")("aUs0g4NqBBi");var e=d("RelayHooks").usePreloadedQuery(k,a.queries.CommerceManagerOverviewPageRootQueryReference),f=c("useCommerceManagerRouteParams")(),g=f.load_idv_flow,h=f.load_obbo_flow,i=f.load_fed_inform_wizard,l=f.load_fed_inform_wizard_individual_flow,m=f.shop_complete,n=f.show_on_load_modal,o=f.show_tos_modal;f=f.toast_message;return j.jsxs(c("CommerceManagerContextProviders.react"),{activeTab:"home",catalogOrCmsID:c("nullthrows")((b=(b=a.extraProps)==null?void 0:b.cmsID)!=null?b:(b=a.extraProps)==null?void 0:b.catalogID),commerceManagerRoutingImpl:"Comet",configuration:e.configuration,isBizSuiteUser:!1,loadFedInformWizard:i,loadFedInformWizardIndividualFlow:l,loadIDVFlow:g,loadOBBOFlow:h,routeGivenName:"catalog_home",showOnLoadModal:n,showShopCompleteDialog:m,showTOSModal:o,toastMessage:f,children:[j.jsx(c("CommerceManagerLayersContainerWithSuspense.react"),{}),j.jsx(c("CommerceManagerHomePage.atomic"),{})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AudienceManagerChrome.react",["cx","fbt","invariant","AdsAEExperimentUtils","AdsAMAccountAcceptedTosAddAction","AdsAMAmStartInitAction","AdsAMAudienceDeleteStartAction","AdsAMAudienceGraphAPI","AdsAMAudienceStore","AdsAMAudienceUtils","AdsAMCreateAudienceServerActions","AdsAMSharingAgreementAcceptedAction","AdsAMViewActions","AdsAMViewClearErrorsAction","AdsAMViewCloseMoveAdAccoutToBusinessDialogAction","AdsAMViewCloseRegularEditDialogAction","AdsAMViewCloseShareAudienceDialogAction","AdsAMViewCloseUserTOSDialogAction","AdsAMViewShowCreateCaDialogAction","AdsAMViewShowLookalikeDialogAction","AdsAMViewShowSavedAudienceCreateDialogAction","AdsAMViewShowSavedTargetSpecDialogAction","AdsAMViewStore","AdsAMViewToggleSpecialAdAudienceDialogAction","AdsAMViewUpdateFilterSetAction","AdsAdvantageAudienceSavedAudienceGKUtils","AdsAudienceDataSourceUtils","AdsAudienceDetailActions","AdsAudienceDetailStore","AdsAudienceManagerGlobalNavigation.react","AdsAudienceManagerUnloadAction","AdsAudienceOverlapActions","AdsAudienceRuleBuilderSpecUtil","AdsAudienceSharingStore","AdsCollapseSideNavAction","AdsCommonAdvertisablePagesVideosStore","AdsCreateSpecialAdAudienceBlockingDialog.react","AdsDataSourceTables","AdsErrorBoundary.react","AdsExpandSideNavAction","AdsFluxContainer","AdsGenericFilterSetUtil","AdsGeodesicAdoption","AdsInterfacesLogger","AdsManagerIGLoginUtils","AdsMoveAdAccountToBusinessViewStage","AdsNewIDs","AdsOsmipExperimentUtils","AdsPixelDialogStore","AdsPixelDialogTypes","AdsPixelTableSettingProvider","AdsSavedAudienceActions","AdsSavedAudienceLoggingEvents","AdsSideNavUIStateDataProvider","AdsStaticGuidanceCard.react","AdsTargetingAccountControlInfoSelector","AdsTargetingAudienceEditorGKSelectors","AdsTargetingAudienceShowCreateLalAudienceDialogDataAction","AdsTargetingBootloadDialog.react","AdsTargetingFallbackErrorNotice.react","AdsTargetingIosSignalLossSelectors","AdsTargetingOffsiteSignalsConsolidationUtils","AssetLibrarySearchStore.brands","AudienceDetailsPaneGeodesicContainer.react","AudienceManagerAudienceTable.react","AudienceManagerBulkDeleteDialog.react","AudienceManagerBulkDeleteSTSDialog.react","AudienceManagerCreateAudienceFlatDialogContainer.react","AudienceManagerDeleteDialog.react","AudienceManagerErrorTypes","AudienceManagerErrorView.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerHeader.react","AudienceManagerLoggingEvents","AudienceManagerLoggingUtils","AudienceManagerLookalikeDialogGKSelectors","AudienceManagerOptOutDialog.react","AudienceManagerPlacement","AudienceManagerStages","AudienceManagerToolsBar.react","AudienceManagerTransactionDialog.react","AudienceManagerUIConstants","AudienceManagerUnsubscribeStepperModal.react","AudienceSharingHideAgreementDataAction","BUICard.react","BUISection.react","BUIText.react","BootloadedComponent.react","BrandingUtils","CometPlaceholder.react","CustomAudienceTosUtils","CustomAudienceUtils","FlexLayout.react","GeoAppShell.react","GeoCard.react","GeoFlexbox.react","GeoNextAMUtils","GeoSection.react","GeoSpinner.react","GeoToast.react","JSResource","MarketingMessagesAudienceEditSubscriberListUpdateFalcoEvent","PartnerIntegrationDialogLoggingScopesAction","SUIBusinessThemeContainer.react","ShareAudienceConstants","URI","UnifiedAudiencesManagerAudienceDetailPaneAction","XAdsAccountQualityControllerRouteBuilder","adsCreateSelector","adsMessageMarketingWABASelector","adsSignalSourceContainersSelector","cr:9922","geoMargin","immutable","isSubscriberListAudience","joinClasses","lazyLoadComponent","performanceNow","react","stylex","useGeoTheme","vulture"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l,m,n,o=n||(n=d("react"));a=n.PureComponent;var p=d("GeoNextAMUtils").isGeoNextEnabled(),q=c("AdsPixelTableSettingProvider").toFluxStore(),r=c("lazyLoadComponent")(c("JSResource")("AdsOsmipProactivePromptWithAnchor.react").__setRef("AudienceManagerChrome.react")),s=(e=b("cr:9922"))!=null?e:c("adsCreateSelector")([],function(){return null},{name:f.id}),t=42,u=720,v=112,w=c("AdsSideNavUIStateDataProvider").toFluxStore();h=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var g=arguments.length,h=new Array(g),i=0;i
-----
BusinessCometMarketingMessageComposerRoot.react",["BizMarketingMessageComposerFullPage.react","BusinessCometMarketingMessageComposerRootQuery.graphql","BusinessCometMarketingMessagesTOSModal.react","RelayHooks","isTruthy","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var e;a=d("RelayHooks").usePreloadedQuery(h!==void 0?h:h=b("BusinessCometMarketingMessageComposerRootQuery.graphql"),a.queries.queryReference);e=!c("isTruthy")((e=a.page)==null?void 0:e.has_signed_all_mm_tos);return j.jsxs(j.Fragment,{children:[e&&j.jsx(c("BusinessCometMarketingMessagesTOSModal.react"),{}),j.jsx(c("BizMarketingMessageComposerFullPage.react"),{campaign:a.campaign,flow:a.flow,page:c("nullthrows")(a.page),rootNodes:a,segment:a.segment})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometSubscriberGrowthViewContainer.react",["BizMarketingMessageOnboardingComposerContext","BizMarketingMessagingReleaseUtils","BizMarketingMessagingSgLoggingUtils","BusinessCometMarketingMessagesTOSModal.react","BusinessCometSubscriberGrowthViewContainerQuery.graphql","BusinessCometSubscriberGrowthViewContainer_fragment.graphql","BusinessCometSubscriberGrowthViewContainer_messageConsent.graphql","BusinessCometSubscriberGrowthViewContainer_onboardingFragment.graphql","CometRelay","RelayHooks","deferredLoadComponent","isTruthy","nullthrows","react","requireDeferredForDisplay","useBizMarketingMessageOnboardingComposerContext","useBoolean"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=l||(l=d("react")),n=l.useEffect,o=c("deferredLoadComponent")(c("requireDeferredForDisplay")("BusinessCometSubscriberGrowthView.react").__setRef("BusinessCometSubscriberGrowthViewContainer.react")),p=h!==void 0?h:h=b("BusinessCometSubscriberGrowthViewContainerQuery.graphql");function a(a){var e,f,g,h,l,q,r;a=d("RelayHooks").usePreloadedQuery(p,a.queries.businessCometSubscriberGrowthViewContainerQueryReference);e=(a==null?void 0:(e=a.page)==null?void 0:e.signed_page_contact_term)===!0&&(a==null?void 0:(e=a.page)==null?void 0:e.signed_mm_additional_terms)===!0;f=e&&!c("isTruthy")(a==null?void 0:(f=a.page)==null?void 0:f.signed_meta_ai_tos);g=c("nullthrows")((g=a.page)==null?void 0:g.business_presence_node);var s=i!==void 0?i:i=b("BusinessCometSubscriberGrowthViewContainer_fragment.graphql");s=d("CometRelay").useFragment(s,a);h=(h=a.page)==null?void 0:(h=h.business_presence_node)==null?void 0:h.biz_marketing_consent_message;var t=j!==void 0?j:j=b("BusinessCometSubscriberGrowthViewContainer_messageConsent.graphql");l=(l=a.lwi)==null?void 0:l.eligible_product_data;var u=k!==void 0?k:k=b("BusinessCometSubscriberGrowthViewContainer_onboardingFragment.graphql");t=d("CometRelay").useFragment(t,(t=a.page)==null?void 0:(t=t.business_presence_node)==null?void 0:t.biz_marketing_consent_message);u=d("RelayHooks").useRefetchableFragment(u,a==null?void 0:a.page);var v=u[0];u[1];u=v==null?void 0:(u=v.business_presence_node)==null?void 0:u.biz_marketing_consent_message;q=v==null?void 0:(q=v.business_presence_node)==null?void 0:(q=q.biz_crm_config)==null?void 0:q.biz_marketing_messaging_config;v=c("useBizMarketingMessageOnboardingComposerContext")(v,u,q);u=v[0];q=v[1];v=(v=a==null?void 0:(v=a.marketing_messages_mbs_onboarding_v3_optimize_gk)==null?void 0:(v=v.gk_check)==null?void 0:v.passes_gk)!=null?v:!1;r=(r=a==null?void 0:(r=a.marketing_messages_mbs_onboarding_v4_gk)==null?void 0:(r=r.gk_check)==null?void 0:r.passes_gk)!=null?r:!1;v={gks:{passes_marketing_messages_mbs_gk:!0,passes_marketing_messages_mbs_onboarding_v3_gk:!0,passes_marketing_messages_mbs_onboarding_v3_optimize_gk:v,passes_marketing_messages_mbs_onboarding_v4_gk:r}};r=d("BizMarketingMessagingReleaseUtils").getOnboardingFlowVersion(v);var w=u.pageInfo.pageID;v=c("useBoolean")(!1);var x=v.setTrue,y=v.value;n(function(){y||(x(),d("BizMarketingMessagingSgLoggingUtils").logGysImpressionEvent(w))},[x,y,w]);return m.jsx(d("BizMarketingMessageOnboardingComposerContext").BizMarketingMessageOnboardingComposerStateContext.Provider,{value:u,children:m.jsxs(d("BizMarketingMessageOnboardingComposerContext").BizMarketingMessageOnboardingComposerDispatchContext.Provider,{value:q,children:[f&&m.jsx(c("BusinessCometMarketingMessagesTOSModal.react"),{}),m.jsx(o,{allCampaignsCount:a==null?void 0:a.allCampaignsCount,businessMessageConsent:t,businessPresenceNodeKey:g,consentMessage:h,eligibleProductData:l,gkConfig:a==null?void 0:a.page,hasSignedToS:e,lwiData:s,mDotMe:a==null?void 0:a.page,onboardingFlowVersion:r})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometMarketingMessagesOverviewView.react",["BizKitPageHeader.react","BizKitScrollablePage.react","BizMarketingMessageNoticeView.react","BizMarketingMessageNoticeViewPhase2.react","BizMarketingMessageNoticeViewPhase3.react","BizMarketingMessageSubscriberGrowthUtil","BizMarketingMessagesGetStartedFbtUtils","BizMarketingMessagesOverviewCTSBannerCard.react","BizMarketingMessagesOverviewCongratsSetupModal.react","BizMarketingMessagesOverviewLearnMoreCard.react","BizMarketingMessagesOverviewPerformanceCard.react","BizMarketingMessagesOverviewQuickStartGuideCard.react","BizMarketingMessagesOverviewRecentCampaignsCard.react","BizMarketingMessagesOverviewUpsellCampaignCreationModal.react","BizMarketingMessagingOverviewTBLLoggingUtils","BizMessageMarketingHeader.react","BizMessageMarketingOverviewFbtUtils","BusinessCometMarketingMessagesOverviewNullState.react","BusinessCometMarketingMessagesOverviewView_campaignsActive.graphql","BusinessCometMarketingMessagesOverviewView_campaignsSent.graphql","BusinessCometMarketingMessagesOverviewView_draftWelcomeCampaigns.graphql","BusinessCometMarketingMessagesOverviewView_eligibleProductData.graphql","BusinessCometMarketingMessagesOverviewView_recentCampaigns.graphql","BusinessCometMarketingMessagesTOSModal.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoHeading.react","GeoPageCard.react","GeoPageItem.react","GeoPageSection.react","RelayHooks","XBizSuiteControllerRouteBuilder","geoMargin","isTruthy","nullthrows","react","useBizKitPageNullable","useBizMarketingMountOnce","useBizWebGetRouteParams","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m,n=m||(m=d("react")),o=m.useState;function a(a){var e,f=a.allCampaignsCount,g=a.allFinishedOnboardingSteps,m=a.campaignsActive,p=a.campaignsDraft,q=a.campaignsSent,r=a.createAdImageURL,s=a.eligibleProductData,t=a.hasConsentMessage,u=a.hasScheduledCampaignsAfterMigrationDate,v=a.hasSignedToS,w=a.isEligibleForFreeToPaidNotice,x=a.isEligibleForFreeToPaidNoticePhase2,y=a.isPassHolidayUpsell1212GeoGating,z=a.isPassR9GK,A=a.messengerOptIns,B=a.needsReTos,C=a.newSubscribersCountAfterLastMM,D=a.reachSubscriberCountThreshold;a=a.recentCampaigns;q=d("RelayHooks").useFragment(h!==void 0?h:h=b("BusinessCometMarketingMessagesOverviewView_campaignsSent.graphql"),q);m=d("RelayHooks").useFragment(i!==void 0?i:i=b("BusinessCometMarketingMessagesOverviewView_campaignsActive.graphql"),m);p=d("RelayHooks").useFragment(j!==void 0?j:j=b("BusinessCometMarketingMessagesOverviewView_draftWelcomeCampaigns.graphql"),p);a=d("RelayHooks").useFragment(k!==void 0?k:k=b("BusinessCometMarketingMessagesOverviewView_recentCampaigns.graphql"),a);var E=o(!1),F=E[0];E=E[1];v=!v||F;F=((F=(F=q.sentCampaigns)==null?void 0:F.count)!=null?F:0)+((F=m.activeCampaigns)==null?void 0:F.length)>=2;var G=t||g.includes("FINISH_WELCOME_CAMPAIGN");t=g.includes("TUNR_ON_MAXIMIZED_SUBSCRIBERS");var H=!(t&&F&&G),I=g.includes("FINISH_WELCOME_CAMPAIGN"),J=g.includes("FINISH_INVITE_TO_SUBSCRIBE");g=null;var K=c("XBizSuiteControllerRouteBuilder").buildUri({nav_ref:"internal_nav",rest:"marketing_message_composer"}),L=c("nullthrows")(c("useBizKitPageNullable")(),"pageID is null");e=(e=c("XBizSuiteControllerRouteBuilder").buildUri({nav_ref:"internal_nav",rest:"marketing_messages/onboarding"}))==null?void 0:e.addQueryParam("asset_id",L);var M=K==null?void 0:K.addQueryParam("asset_id",L);g=p.draftWelcomeCampaigns.length>0?K==null?void 0:K.addQueryParam("campaign_id",p.draftWelcomeCampaigns[0].flow_id):e;K=d("RelayHooks").useFragment(l!==void 0?l:l=b("BusinessCometMarketingMessagesOverviewView_eligibleProductData.graphql"),s);var N=(p={},p.ads_lwi_goal="GET_SUBSCRIBERS",p.page_welcome_message=JSON.stringify({image_url:r}),p);s=K==null?void 0:(e=K.product_data)==null?void 0:e.find(function(a){return(a==null?void 0:a.objective)==="MESSAGES"});var O=(r=s==null?void 0:s.target_id)!=null?r:"";p=d("BizMarketingMessageSubscriberGrowthUtil").getMMMBSCTSRedirectionUrl(L,N,O,"bizweb_mbs_marketing_message_overview_tab");e=(K=c("useBizWebGetRouteParams")())!=null?K:{};var P=e.is_nux,Q=e.nav_ref;s=e.session_id;var R=String(s!=null?s:c("uuidv4")());c("useBizMarketingMountOnce")(function(){d("BizMarketingMessagingOverviewTBLLoggingUtils").logImpressionEvent(Q,L,R,"overview")});r=function(){if(B)return n.jsx(c("BusinessCometMarketingMessagesTOSModal.react"),{});else if(c("isTruthy")(P)){var a=d("BizMarketingMessageSubscriberGrowthUtil").getMMMBSCTSRedirectionUrl(L,N,O,"bizweb_mbs_marketing_message_onboarding_flow");return n.jsx(c("BizMarketingMessagesOverviewCongratsSetupModal.react"),{createAdURL:a,finishInviteToSubscribe:J,finishWelcomeCampaign:I})}else{a=D!=null&&G;if(a){return n.jsx(c("BizMarketingMessagesOverviewUpsellCampaignCreationModal.react"),{subscriberCountThreshold:(a=D)!=null?a:0})}}};K=n.jsx(c("GeoGuidanceCard.react"),{header:n.jsx(c("GeoGuidanceCardHeader.react"),{heading:d("BizMarketingMessagesGetStartedFbtUtils").GETSTARTED_PAGE_PRICING_GUIDANCE_CARD_TITLE}),status:"active-feedback",children:n.jsx(c("GeoGuidanceCardContent.react"),{children:d("BizMarketingMessagesGetStartedFbtUtils").GETSTARTED_PAGE_PRICING_DESCRIPTION})});e=n.jsxs(c("GeoPageSection.react"),{children:[n.jsx(c("GeoPageCard.react"),{columns:12,children:K}),n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BusinessCometMarketingMessagesOverviewNullState.react"),{setHasStartedOnboarding:E})})]});if(v)return n.jsx(c("BizKitScrollablePage.react"),{header:n.jsx(c("BizKitPageHeader.react"),{description:d("BizMarketingMessagesGetStartedFbtUtils").GETSTARTED_PAGE_HEADER_DESCRIPTION,heading:d("BizMarketingMessagesGetStartedFbtUtils").GETSTARTED_PAGE_HEADER_TITLE}),isFullwidth:!0,children:e});E=n.jsxs(c("GeoPageSection.react"),{children:[x?u?n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessageNoticeViewPhase3.react"),{})}):n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessageNoticeViewPhase2.react"),{})}):w?n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessageNoticeView.react"),{})}):null,H?n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessagesOverviewQuickStartGuideCard.react"),{completeMaximizeSubscribers:t,completeTwoMarketingMessages:F,completeWelcomeMessage:G,composerURL:M,welcomeCampaignURL:g})}):null,n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("GeoHeading.react"),{level:2,xstyle:c("geoMargin").top8,children:d("BizMessageMarketingOverviewFbtUtils").PERFORMANCE_OVERVIEW_SECTION_TITLE})}),n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessagesOverviewPerformanceCard.react"),{campaignsActiveCount:(s=m.activeCampaigns)==null?void 0:s.length,campaignsSentCount:(K=q.sentCampaigns)==null?void 0:K.count,createAdURL:p,isPassHolidayUpsell1212GeoGating:y,isPassR9GK:z,mostRecentCampaign:a,newSubscribersCountAfterLastMM:C,shouldShowSmartRecommendation:!H,totalSubscribers:A})}),H?n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessagesOverviewCTSBannerCard.react"),{CTSURL:p})}):null,n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessagesOverviewRecentCampaignsCard.react"),{allCampaignsCount:f,recentCampaigns:a})}),n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("GeoHeading.react"),{level:2,xstyle:c("geoMargin").top8,children:d("BizMessageMarketingOverviewFbtUtils").LEARN_MORE_SECTION_TITLE})}),n.jsx(c("GeoPageItem.react"),{columns:12,children:n.jsx(c("BizMarketingMessagesOverviewLearnMoreCard.react"),{})})]});return n.jsxs(n.Fragment,{children:[r(),n.jsx(c("BizKitScrollablePage.react"),{header:n.jsx(c("BizMessageMarketingHeader.react"),{pageSource:"OVER_VIEW",passesOnboardingV4GK:!0,subCategory:"fb_business_marketing_messages_overview"}),isFullwidth:!0,children:E})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometMarketingMessagesTOSModal.react",["BizMarketingMessagesOnboardingFbtUtils","BizMarketingMessagesOnboardingUtils","BizMarketingMessagingPageOnboardingMutation","BizMessageMarketingOnboardingConst","BizMessageMarketingOnboardingFbtUtils","BusinessCometMarketingMessagesOnboardingModalValuePropItem.react","GeoBaseText.react","GeoBlockingDialog.react","GeoButton.react","GeoFlexbox.react","GeoModalFooter.react","GeoScrollableArea.react","GeoToast.react","IPB4BImage.react","XBizSuiteControllerRouteBuilder","geoMargin","nullthrows","react","useBizKitPageNullable","useBizMarketingMessagesOnboardingLogging","useBizMarketingMountOnce","useBizWebGetRouteParams","useBizWebRouteDispatcher","useBoolean","useGeoToaster"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={root:{height:"x5yr21d",$$css:!0}},k="re_tos_modal",l="sign_tos";function a(){var a=c("useBizWebRouteDispatcher")(),b=c("useBizWebGetRouteParams")(),e=c("nullthrows")(c("useBizKitPageNullable")(),"pageID is null"),f=c("XBizSuiteControllerRouteBuilder").buildURL({nav_ref:"internal_nav",rest:"home"}),g=c("useBoolean")(!1),h=g.setFalse,m=g.setTrue;g=g.value;var n=c("useBoolean")(!1),o=n.setFalse,p=n.setTrue;n=n.value;var q=d("BizMarketingMessagingPageOnboardingMutation").useBizMarketingMessagingPageOnboardingMutation(),r=q[0];q=q[1];var s=c("useBizMarketingMessagesOnboardingLogging")({pageID:c("nullthrows")(e)}),t=s.logClick,u=s.logFailure,v=s.logImpression,w=s.logSubmit,x=s.logSuccess;s=d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalValueProps(!1);s=s.map(function(a,b){return i.jsx(c("BusinessCometMarketingMessagesOnboardingModalValuePropItem.react"),babelHelpers["extends"]({},a),b)});var y=i.jsx(c("IPB4BImage.react"),{src:d("BizMessageMarketingOnboardingConst").ONBOARDING_MODAL_IMAGE_SRC,width:d("BizMessageMarketingOnboardingConst").ONBOARDING_MODAL_IMAGE_WIDTH}),z=c("useGeoToaster")(),A=z.add,B=function(){a(f,b)};z=function(){t(k,"accept"),w(k,l),r({onCompleted:function(a){x(k,l)},onError:function(a){u(k,l,a==null?void 0:a.message,a==null?void 0:a.stack),A(i.jsx(c("GeoToast.react"),{heading:d("BizMarketingMessagesOnboardingFbtUtils").ONBOARDING_GENERAL_MUTATION_ERROR,status:"error"}))},variables:{input:{onboarding_step:"SIGN_TOS",page_id:e}}})};var C=function(){t(k,"cancel"),B()},D=function(){t(k,"full_terms"),p(),h()},E=function(){t(k,"previous"),o()};c("useBizMarketingMountOnce")(function(){v(k)});return i.jsx(c("GeoBlockingDialog.react"),{"data-testid":void 0,footer:i.jsx(c("GeoModalFooter.react"),{primaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:q||!g,isLoading:q,label:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalAgreeButtonLabel(),onClick:z,variant:"primary"}),secondaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:q,label:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalNotNowButtonLabel(),onClick:C,variant:"default"}),startContent:n?i.jsx(c("GeoButton.react"),{"data-testid":void 0,icon:d("BizMarketingMessagesOnboardingUtils").getFBIconByName("chevron-left"),isDisabled:q,label:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalPreviousButtonLabel(),onClick:E,variant:"default"}):null}),heading:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalHeader(n),image:y,isShown:!0,onHide:B,orientation:"vertical",children:i.jsx(c("GeoScrollableArea.react"),{direction:"vertical",onScrollBottom:m,xstyle:j.root,children:n?i.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").horiz16,children:i.jsx(c("GeoBaseText.react"),{color:"value","data-testid":void 0,size:"accent",children:d("BizMessageMarketingOnboardingFbtUtils").getTOSLegalContentV2()})}):i.jsxs(c("GeoFlexbox.react"),{direction:"column",justifyContent:"space-between",xstyle:j.root,children:[i.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").horiz16,children:[i.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",children:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalDescription(D)}),s]}),i.jsx(c("GeoFlexbox.react"),{xstyle:c("geoMargin").horiz16,children:i.jsx(c("GeoBaseText.react"),{color:"value","data-testid":void 0,size:"accent",children:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalLegalContent()})})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerTOSModal.react",["fbt","ix","CommerceManagerContext","CommerceManagerTOSModalMutation.graphql","CommerceManagerTOSModalQuery.graphql","CommerceManagerTOSStringUtils","GeoButton.react","GeoHeading.react","GeoIllustrationModal.react","GeoModalFooter.react","GeoSection.react","GeoText.react","GeoToast.react","Image.react","RelayHooks","nullthrows","react","useGeoToaster"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react")),n=l.useContext,o={body:{marginTop:"xw7yly9",marginBottom:"x1yztbdb",$$css:!0}},p=j!==void 0?j:j=b("CommerceManagerTOSModalMutation.graphql"),q=k!==void 0?k:k=b("CommerceManagerTOSModalQuery.graphql");function a(a){var b=a.isShown,e=a.onHide;a=n(c("CommerceManagerContext"));a=a.cmsID;var f=c("nullthrows")(a);a=d("RelayHooks").useLazyLoadQuery(q,{cmsID:f},{fetchPolicy:"store-or-network"});var g=d("RelayHooks").useMutation(p),j=g[0];g=g[1];var k=c("useGeoToaster")(),l=k.add;k=function(){j({variables:{input:{commerce_account_id:f}},onCompleted:function(a){l(m.jsx(c("GeoToast.react"),{heading:d("CommerceManagerTOSStringUtils").getTermsAcceptedMessage(),status:"success"})),e()},onError:function(a){l(m.jsx(c("GeoToast.react"),{heading:(a=a.description)!=null?a:"",status:"error"}));e()}})};a=(a=a.cms)==null?void 0:(a=a.missing_tos_info)==null?void 0:a.deadline_in_seconds;var r=d("CommerceManagerTOSStringUtils").getTOSAcceptanceDescription(a);a=d("CommerceManagerTOSStringUtils").getTOSAcceptanceTitle(a);return m.jsx(c("GeoIllustrationModal.react"),{footer:m.jsx(c("GeoModalFooter.react"),{primaryButton:m.jsx(c("GeoButton.react"),{isDisabled:g,label:h._("u662fuff0cu6211u540cu610f"),variant:"primary",onClick:k})}),heading:a,image:m.jsx(c("Image.react"),{src:i("278532"),width:440}),isShown:b,onHide:e,children:m.jsxs(c("GeoSection.react"),{children:[m.jsx(c("GeoHeading.react"),{level:2,children:a}),m.jsx(c("GeoText.react"),{xstyle:o.body,children:r})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
CommerceManagerTOSModalQuery.graphql",["CommerceManagerTOSModalQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"cmsID"}],c=[{kind:"Variable",name:"id",variableName:"cmsID"}],d={alias:null,args:null,concreteType:"CMSMissingTermsAndConditions",kind:"LinkedField",name:"missing_tos_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"deadline_in_seconds",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CommerceManagerTOSModalQuery",selections:[{alias:"cms",args:c,concreteType:"CommerceMerchantSettings",kind:"LinkedField",name:"fetch__CommerceMerchantSettings",plural:!1,selections:[d],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CommerceManagerTOSModalQuery",selections:[{alias:"cms",args:c,concreteType:"CommerceMerchantSettings",kind:"LinkedField",name:"fetch__CommerceMerchantSettings",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("CommerceManagerTOSModalQuery_facebookRelayOperation"),metadata:{},name:"CommerceManagerTOSModalQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
CommerceManagerTOSModalMutation.graphql",["CommerceManagerTOSModalMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"CommerceAccountAcceptTOSMutationResponse",kind:"LinkedField",name:"commerce_accept_seller_tos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"commerce_account_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CommerceManagerTOSModalMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CommerceManagerTOSModalMutation",selections:c},params:{id:b("CommerceManagerTOSModalMutation_facebookRelayOperation"),metadata:{},name:"CommerceManagerTOSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
CommerceManagerTOSModalQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5661577503911571"}),null);
-----
CommerceManagerTOSModalMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8140372942702165"}),null);
-----
BusinessCometCreatorMarketplaceOnboardingModalView.react",["$InternalEnum","BusinessCometCreatorMarketplaceOnboardingEPDModalView.react","BusinessCometCreatorMarketplaceOnboardingGetStartedModalView.react","BusinessCometCreatorMarketplaceOnboardingToSModalView.react","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));e=h;var j=e.useCallback,k=e.useState,l=b("$InternalEnum")({ToS:0,EPD:1,FinishOnboarding:2});function a(a){var b=a.bcpBrandProfileID,d=a.isShown,e=a.onCancel,f=a.onSuccess;a=a.skipTOS;var g=c("gkx")("22639");a=k(a?l.FinishOnboarding:l.ToS);var h=a[0],m=a[1];a=j(function(){e(),m(l.ToS)},[m,e]);var n=j(function(){g?m(l.EPD):m(l.FinishOnboarding)},[m,g]),o=j(function(){m(l.FinishOnboarding)},[m]),p=j(function(){f(),m(l.ToS)},[f]);return i.jsxs(i.Fragment,{children:[h===l.ToS&&i.jsx(c("BusinessCometCreatorMarketplaceOnboardingToSModalView.react"),{bcpBrandProfileID:b,isShown:d,onClose:a,onSuccess:n}),h===l.EPD&&i.jsx(c("BusinessCometCreatorMarketplaceOnboardingEPDModalView.react"),{bcpBrandProfileID:b,isShown:d,onClose:a,onSuccess:o}),h===l.FinishOnboarding&&i.jsx(c("BusinessCometCreatorMarketplaceOnboardingGetStartedModalView.react"),{bcpBrandProfileID:b,isShown:d,onClose:a,onSuccess:p})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometCreatorMarketplaceOnboardingToSModalView.react",["fbt","BCPBrandTOSSitevarConfig","BusinessCometCreatorMarketplaceOnboardingLogger","BusinessCometCreatorMarketplaceOnboardingSomethingWentWrongModalView.react","BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation.graphql","CometRelay","CreatorMarketplaceMBSTOSContainer.react","GeoButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useEffect,n=e.useState,o=i!==void 0?i:i=b("BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation.graphql");function a(a){var b=a.bcpBrandProfileID,e=a.isShown,f=a.onClose,g=a.onSuccess;a=n(!1);var h=a[0],i=a[1];a=n(!1);var j=a[0],m=a[1],q=c("BCPBrandTOSSitevarConfig").actual_version;a=d("CometRelay").useMutation(o);var r=a[0],s=d("BusinessCometCreatorMarketplaceOnboardingLogger").usePaidPartnershipsOnboardingLogger();a=l(function(){s.acceptTOSButtonClicked(),i(!0),r({onCompleted:function(a){i(!1),m(!1),g()},onError:function(a){i(!1),m(!0)},variables:{bcp_brand_id:b,version:q}})},[b,i,r,g,m,s,q]);var t=l(function(){f(),m(!1),i(!1),s.cancelTOSButtonClicked()},[f,m,i,s]);return k.jsxs(k.Fragment,{children:[!j&&k.jsx(p,{isLoading:h,isShown:e,onAccept:a,onHide:t}),j&&k.jsx(c("BusinessCometCreatorMarketplaceOnboardingSomethingWentWrongModalView.react"),{isLoading:h,isShown:e,onHide:t,onRetry:a})]})}a.displayName=a.name+" [from "+f.id+"]";function p(a){var b=a.isLoading,e=a.isShown,f=a.onAccept;a=a.onHide;var g=d("BusinessCometCreatorMarketplaceOnboardingLogger").usePaidPartnershipsOnboardingLogger(),i=c("BCPBrandTOSSitevarConfig").actual_version;i=c("BCPBrandTOSSitevarConfig").version_to_cms_id_mapping[i];m(function(){e&&g.acceptTOSModalDisplayed()},[e,g]);return k.jsx(c("GeoModal.react"),{footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:b,isLoading:b,label:h._("u63a5u53d7"),onClick:f,variant:"primary"}),secondaryButton:k.jsx(c("GeoButton.react"),{isDisabled:b,label:h._("u53d6u6d88"),onClick:a,variant:"default"})}),header:k.jsx(c("GeoModalHeader.react"),{heading:h._("u67e5u770bu5e76u63a5u53d7u6211u4eecu7684u300au670du52a1u6761u6b3eu300bu5373u53efu5f00u59cb")}),isShown:e,onHide:a,width:740,children:k.jsx(c("GeoSection.react"),{children:k.jsx(c("CreatorMarketplaceMBSTOSContainer.react"),{cmsID:i.toString(),onLoad:function(){}})})})}p.displayName=p.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation.graphql",["BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"bcp_brand_id"},{defaultValue:null,kind:"LocalArgument",name:"version"}],c=[{alias:null,args:[{fields:[{kind:"Variable",name:"bcp_brand_id",variableName:"bcp_brand_id"},{kind:"Variable",name:"version",variableName:"version"}],kind:"ObjectValue",name:"data"}],concreteType:"PAYBrandProfileResponsePayload",kind:"LinkedField",name:"bcp_brand_accept_tos_on_mbs",plural:!1,selections:[{alias:null,args:null,concreteType:"PAYBCPBrandProfile",kind:"LinkedField",name:"bcp_brand_profile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation",selections:c},params:{id:b("BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation_facebookRelayOperation"),metadata:{},name:"BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6370416056368902"}),null);
-----
BusinessCometCreatorMarketplaceOnboardingLogger",["BusinessCometCreatorMarketplaceLoggingHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useMemo,j=function(){function a(a){this.log=a}var b=a.prototype;b.onboardingLandingPageVisited=function(){this.log({event:"onboarding_landing_page_visited",event_type:"impression"})};b.landingPageGetStartedButtonClicked=function(a,b){this.log({event:"landing_page_get_started_button_clicked",event_type:"click",extra_fields:JSON.stringify({component:b,variant:a})})};b.ineligibleForOnboardingPageRendered=function(){this.log({event:"ineligible_for_onboarding",event_type:"impression"})};b.ineligibleForUsingPlatformPageRendered=function(){this.log({event:"ineligible_for_using_platform",event_type:"impression"})};b.undefinedAccessRestrictionsPageRendered=function(){this.log({event:"undefined_access_restrictions",event_type:"impression"})};b.noAccessPageRendered=function(){this.log({event:"unknown_error_while_onboarding",event_type:"impression"})};b.accountSelectionPageRendered=function(){this.log({event:"account_selection_page",event_type:"impression"})};b.singleAccountRegistrationPageRendered=function(){this.log({event:"single_account_registration_page",event_type:"impression"})};b.noEligibleAccountsPageRendered=function(){this.log({event:"no_eligible_account_page",event_type:"impression"})};b.ineligiblePageSwitchAccountButtonClicked=function(a,b){this.log({event:"ineligible_page_switch_account_button_clicked",event_type:"click",extra_fields:JSON.stringify({component:b,variant:a})})};b.ineligiblePageRegisterInterestButtonClicked=function(a,b){this.log({event:"ineligible_page_register_interest_button_clicked",event_type:"click",extra_fields:JSON.stringify({component:b,variant:a})})};b.acceptTOSModalDisplayed=function(){this.log({event:"tos_displayed",event_type:"impression"})};b.acceptTOSButtonClicked=function(){this.log({event:"tos_accept_button_clicked",event_type:"click"})};b.cancelTOSButtonClicked=function(){this.log({event:"tos_cancel_button_clicked",event_type:"click"})};b.getStartedModalDisplayed=function(){this.log({event:"tos_success_message_displayed",event_type:"impression"})};b.getStartedButtonClicked=function(){this.log({event:"tos_success_message_get_started_button_clicked",event_type:"click"})};b.epdConsentPageDisplayed=function(){this.log({event:"epd_consent_page_displayed",event_type:"click"})};b.epdConsentModalDisplayed=function(){this.log({event:"epd_consent_modal_displayed",event_type:"click"})};b.epdConsentButtonClicked=function(){this.log({event:"epd_consent_button_clicked",event_type:"click"})};return a}();function a(){var a=d("BusinessCometCreatorMarketplaceLoggingHooks").useFBSEventLogging();return i(function(){return new j(a)},[a])}g.usePaidPartnershipsOnboardingLogger=a}),98);
-----
MessageMarketingMBSInboxToSModal",["fbt","AdsPERouterHelper","GeoButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoNotice.react","GeoSection.react","GeoText.react","MessageMarketingLandingPageConsts","MessageMarketingMBSInboxToSModalMutation.graphql","RelayHooks","WhatsAppAdsManagerOnboardingWelcomeStepMessages","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState,m=i!==void 0?i:i=b("MessageMarketingMBSInboxToSModalMutation.graphql");function a(a){var b=a.businessID,e=a.isModalShown,f=a.setToSModalShown,g=a.setToSSuccessModalShown;a=l(!1);var i=a[0],j=a[1];a=l(!1);var n=a[0],o=a[1],p=function(){f(!1),c("AdsPERouterHelper").getRouter().updateParams({show_inbox_re_tos:null})};a=d("RelayHooks").useMutation(m);var q=a[0];a=function(){j(!0),o(!1),q({variables:{input:{business_id:b}},onCompleted:function(){j(!1),p(),g(!0)},onError:function(){j(!1),o(!0)}})};return k.jsx(c("GeoModal.react"),{footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{isLoading:i,label:h._("u63a5u53d7"),variant:"primary",onClick:a}),secondaryButton:k.jsx(c("GeoButton.react"),{label:h._("u53d6u6d88"),variant:"default",onClick:p})}),header:k.jsx(c("GeoModalHeader.react"),{heading:h._("u5173u4e8e Meta Business Suite u6536u4ef6u7bb1u5185u7f6e WhatsApp u7684u6761u6b3e")}),isShown:e,onHide:p,children:k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("GeoText.react"),{children:h._("u9009u62e9{=m1}uff0cu5373u8868u793au4f60u540cu610f{=m3}uff0cu4e5fu540cu610fu6839u636eu8fd9u4e9bu6761u6b3eu548c{=m5}u4f7fu7528u6536u4ef6u7bb1u5185u7f6e WhatsAppu3002",[h._implicitParam("=m1",k.jsx("strong",{children:h._("u63a5u53d7")})),h._implicitParam("=m3",k.jsx(c("GeoLink.react"),{href:d("MessageMarketingLandingPageConsts").MBS_INBOX_TERMS_URL,children:h._("u5173u4e8e Meta Business Suite u6536u4ef6u7bb1u5185u7f6e WhatsApp u7684u6761u6b3e")})),h._implicitParam("=m5",k.jsx(c("GeoLink.react"),{href:d("MessageMarketingLandingPageConsts").ADS_MANAGER_MARKETING_MESSAGES_TERMS_URL,children:h._("u5e7fu544au7ba1u7406u5de5u5177u7684u8425u9500u6d88u606f Beta u6d4bu8bd5u6761u6b3e")}))])}),n&&k.jsx(c("GeoNotice.react"),{status:"error",children:d("WhatsAppAdsManagerOnboardingWelcomeStepMessages").TOS_ERROR})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MessageMarketingMBSInboxToSModalContainer.react",["AdsAccountStore","AdsFluxHooks","MessageMarketingInboxPermissionSetUpModals.react","MessageMarketingMBSInboxToSModal","MessageMarketingMBSInboxToSModalAction","MessageMarketingMBSInboxToSModalProvider","MessageMarketingMBSInboxToSSignedSuccessModal","ReloadPage","WhatsAppBizxPlatformLoggerFactory","WhatsAppBizxPlatformSharedProviders.react","adsCreateStructuredSelector","emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useState,k=c("adsCreateStructuredSelector")({isModalShown:c("MessageMarketingMBSInboxToSModalProvider").toFluxSelector(),businessID:c("AdsAccountStore").getSelectedBusinessID},f.id+".containerSelector");function a(){var a=d("AdsFluxHooks").useAdsSelector(k),b=a.isModalShown;a=a.businessID;b=j(b.isModalShown);var e=b[0];b=b[1];var g=j(!1),h=g[0];g=g[1];var l=j(!1),m=l[0],n=l[1];l=function(){n(!1),c("MessageMarketingMBSInboxToSModalAction").dispatch({isModalShown:!1},{line:"55",module:"MessageMarketingMBSInboxToSModalContainer.react.js",moduleID:f.id}),d("ReloadPage").now()};var o=c("WhatsAppBizxPlatformLoggerFactory").getInstance();if(a==null)return null;if(e)return i.jsx(c("MessageMarketingMBSInboxToSModal"),{businessID:a,isModalShown:e,setToSModalShown:b,setToSSuccessModalShown:g});if(h)return i.jsx(c("MessageMarketingMBSInboxToSSignedSuccessModal"),{isModalShown:h,setPermissionModalShown:n,setToSSuccessModalShown:g});return m?i.jsx(c("WhatsAppBizxPlatformSharedProviders.react"),{logger:o,children:i.jsx(c("MessageMarketingInboxPermissionSetUpModals.react"),{onClose:c("emptyFunction"),onCloseFromReToS:l})}):i.jsx(i.Fragment,{})}a.displayName=a.name+" [from "+f.id+"]";b=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=b}),98);
-----
MessageMarketingMBSInboxToSModalMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{alias:null,args:[{kind:"Variable",name:"request",variableName:"input"}],concreteType:"XFBWhatsAppMarketingMessagesMBSInboxReToSResponse",kind:"LinkedField",name:"xfb_whatsapp_mm_mbs_inbox_re_tos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MessageMarketingMBSInboxToSModalMutation",selections:b,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MessageMarketingMBSInboxToSModalMutation",selections:b},params:{id:"8021837341163768",metadata:{},name:"MessageMarketingMBSInboxToSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MessageMarketingBetaToSDialog",["fbt","GeoButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoNotice.react","GeoSection.react","GeoText.react","MessageMarketingBetaToSDialogFbts","MessageMarketingBetaToSDialogMutation.graphql","MessageMarketingBetaToSModalAction","RelayHooks","ReloadPage","WhatsAppAdsManagerOnboardingWelcomeStepMessages","WhatsAppBizxPlatformWWWLoggerUtils","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState,m=i!==void 0?i:i=b("MessageMarketingBetaToSDialogMutation.graphql");function a(a){var b=a.businessID;a=a.isDialogShown;var e=l(!1),g=e[0],i=e[1];e=l(!1);var j=e[0],n=e[1];e=d("RelayHooks").useMutation(m);var o=e[0],p=d("WhatsAppBizxPlatformWWWLoggerUtils").getSessionLoggingID("MessageMarketingToS"),q=c("gkx")("2313"),r=function(){c("MessageMarketingBetaToSModalAction").dispatch({isModalShown:!1},{line:"59",module:"MessageMarketingBetaToSDialog.js",moduleID:f.id})};e=function(){i(!0),n(!1),o({variables:{input:{log_session_id:p,business_id:b,version:q?"BETA_2024_GEN_AI_AND_AGENCY":null}},onCompleted:function(a){i(!1),r(),d("ReloadPage").now()},onError:function(){i(!1),n(!0)}})};return k.jsx(c("GeoModal.react"),{"data-testid":void 0,footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{"data-testid":void 0,isLoading:g,label:h._("u540cu610f"),variant:"primary",onClick:e}),secondaryButton:k.jsx(c("GeoButton.react"),{isDisabled:g,label:h._("u53d6u6d88"),onClick:r})}),header:k.jsx(c("GeoModalHeader.react"),{heading:q?d("MessageMarketingBetaToSDialogFbts").AGENCY_TERMS_HEADING_FBT:d("MessageMarketingBetaToSDialogFbts").UPDATED_TERMS_HEADING_FBT}),isShown:a,onHide:r,children:k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("GeoText.react"),{children:q?d("MessageMarketingBetaToSDialogFbts").getAgencyTermsOfServiceText():d("MessageMarketingBetaToSDialogFbts").getUpdatedTermsOfServiceText()}),j?k.jsx(c("GeoNotice.react"),{status:"error",children:d("WhatsAppAdsManagerOnboardingWelcomeStepMessages").TOS_ERROR}):null]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MessageMarketingBetaToSDialogContainer.react",["AdsAccountStore","AdsFluxHooks","MessageMarketingBetaToSDialog","MessageMarketingBetaToSModalProvider","adsCreateStructuredSelector","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("adsCreateStructuredSelector")({isModalShown:c("MessageMarketingBetaToSModalProvider").toFluxSelector(),businessID:c("AdsAccountStore").getSelectedBusinessID},f.id+".containerSelector");function a(){var a=d("AdsFluxHooks").useAdsSelector(j),b=a.isModalShown;a=a.businessID;return a==null?null:i.jsx(c("MessageMarketingBetaToSDialog"),{businessID:a,isDialogShown:b.isModalShown})}a.displayName=a.name+" [from "+f.id+"]";b=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=b}),98);
-----
OCDevCenterTOSModal.react",["fbt","GeoCheckboxInput.react","GeoDivider.react","GeoModalCard.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","OCDevCenterTOSModalMutation.graphql","OCDevCenterTOSModal_organization.graphql","OCDevCenterTOSModal_termsOfService.graphql","OCDevManagePermissionFormSubmitButton.react","OCDevUIDraftJSRenderer.react","OCDevUIForm.react","OCOrganizationPermissionEnum","RelayHooks","asyncToGeneratorRuntime","nullthrows","react","useOCDevUICommitMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react")),n=l.useState;function a(a){var e=a.agreeText,f=a.heading,g=a.organization;a=a.termsOfService;var l=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevCenterTOSModal_organization.graphql"),g),o=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevCenterTOSModal_termsOfService.graphql"),a);g=n(!1);a=g[0];g=g[1];var p=c("useOCDevUICommitMutation")(k!==void 0?k:k=b("OCDevCenterTOSModalMutation.graphql"));function q(){return r.apply(this,arguments)}function r(){r=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;yield p({input:{organization_id:(a=l==null?void 0:l.id)!=null?a:"",tos_type:c("nullthrows")(o.tos_type)}},{closeModalOnSuccess:!0})});return r.apply(this,arguments)}return m.jsx(c("OCDevUIForm.react"),{onSubmit:q,children:m.jsx(c("GeoModalCard.react"),{footer:m.jsx(c("GeoModalFooter.react"),{primaryButton:m.jsx(c("OCDevManagePermissionFormSubmitButton.react"),{forceDisabled:!a,organization:l,permissions:[c("OCOrganizationPermissionEnum").SIGN_ORGANIZATION_AGREEMENT]}),startContent:m.jsx(c("GeoCheckboxInput.react"),{label:h._("I Agree"),value:a,onChange:g})}),header:m.jsx(c("GeoModalHeader.react"),{heading:f}),children:m.jsx(c("GeoSection.react"),{children:m.jsxs("div",{className:"xuyqlj2",children:[m.jsx(c("OCDevUIDraftJSRenderer.react"),{draftJSString:(q=o.content_draft_js)!=null?q:""}),m.jsx(c("GeoDivider.react"),{}),m.jsx(c("GeoText.react"),{children:e})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevCenterTOSModalMutation.graphql",["OCDevCenterTOSModalMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCDevCenterTOSModalMutation",selections:[{alias:null,args:c,concreteType:"XOCTosAcceptResponsePayload",kind:"LinkedField",name:"xoc_tos_accept",plural:!1,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{alias:null,args:null,concreteType:"OrganizationToApplicationsConnection",kind:"LinkedField",name:"applications",plural:!1,selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"nodes",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"OCDevCenterOculusStartApplyFormView_application"}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCDevCenterTOSModalMutation",selections:[{alias:null,args:c,concreteType:"XOCTosAcceptResponsePayload",kind:"LinkedField",name:"xoc_tos_accept",plural:!1,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{alias:null,args:null,concreteType:"OrganizationToApplicationsConnection",kind:"LinkedField",name:"applications",plural:!1,selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"latest_only",value:!0},{kind:"Literal",name:"types",value:["DEVELOPER_HLA"]}],concreteType:"OrganizationSignedLegalAgreementsConnection",kind:"LinkedField",name:"signed_legal_agreements",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"max",value:1}],kind:"ScalarField",name:"count_up_to",storageKey:"count_up_to(max:1)"}],storageKey:"signed_legal_agreements(latest_only:true,types:["DEVELOPER_HLA"])"},d,{alias:null,args:null,kind:"ScalarField",name:"viewer_permissions",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},d,{alias:null,args:[{kind:"Literal",name:"first",value:1}],concreteType:"ApplicationViewerDeveloperStartSubmissionsConnection",kind:"LinkedField",name:"viewer_developer_start_submissions",plural:!1,selections:[{alias:null,args:null,concreteType:"DeveloperStartSubmission",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"business_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"business_website",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"email_address",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"funding_explanation",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"funding_or_revenue_amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_received_outside_funding",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"phone_number",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"preferred_engine",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"project_description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"project_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"prototype_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_city",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_country_code",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_street",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_street_two",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_zip",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shirt_size",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"target_launch_date",storageKey:null},d],storageKey:null}],storageKey:"viewer_developer_start_submissions(first:1)"}],storageKey:null}],storageKey:null},d],storageKey:null}],storageKey:null}]},params:{id:b("OCDevCenterTOSModalMutation_oculusRelayOperation"),metadata:{},name:"OCDevCenterTOSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCDevCenterTOSModal_organization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterTOSModal_organization",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{args:null,kind:"FragmentSpread",name:"OCDevManagePermissionFormSubmitButton_organization"}],type:"Organization",abstractKey:null};e.exports=a}),null);
-----
OCDevCenterOculusStartApplyFormView.react",["fbt","ix","GeoButton.react","GeoHeading.react","OCDevCenterNarrowInnerLayout.react","OCDevCenterOculusStartApplyForm.react","OCDevCenterOculusStartApplyFormView_application.graphql","OCDevCenterOculusStartApplyFormView_hardwareRequestFormConfigs.graphql","OCDevCenterOculusStartApplyFormView_termsOfService.graphql","OCDevCenterOculusStartApplyFormView_user.graphql","OCDevCenterPage.react","OCDevCenterTOSModal.react","OCDevManageEmptyState.react","OCDevUISpacedLayout.react","RelayHooks","fbicon","react","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n,o=n||(n=d("react"));e=n;var p=e.useCallback,q=e.useEffect;function a(a){var e=a.application,f=a.hardwareRequestFormConfigs,g=a.termsOfService;a=a.user;var n=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevCenterOculusStartApplyFormView_application.graphql"),e);e=d("RelayHooks").useFragment(k!==void 0?k:k=b("OCDevCenterOculusStartApplyFormView_hardwareRequestFormConfigs.graphql"),f);var r=d("RelayHooks").useFragment(l!==void 0?l:l=b("OCDevCenterOculusStartApplyFormView_termsOfService.graphql"),g);f=d("RelayHooks").useFragment(m!==void 0?m:m=b("OCDevCenterOculusStartApplyFormView_user.graphql"),a);g=c("useOCDevUIModal")();var s=g.openModal,t=p(function(){s(o.jsx(c("OCDevCenterTOSModal.react"),{agreeText:h._("I have read and agree to Oculusu2019s Privacy Policy, Terms of Service, and the terms of this program as stated above. If you do not agree to any of the terms of this program and Use Terms or do not have authority to bind the identified Organization, then {underlined_do_not} click "I Agree" and {underlined_do_not} submit any program application to Oculus.",[h._param("underlined_do_not",o.jsx("u",{children:"do not"}))]),heading:h._("Developer Hardware Loan Agreement"),organization:n.organization,termsOfService:r}))},[n.organization,s,r]),u=((a=n.organization)==null?void 0:(g=a.signed_legal_agreements)==null?void 0:g.count_up_to)===1;q(function(){u||t()},[u,t]);a=h._("Oculus Start Application");return o.jsx(c("OCDevCenterPage.react"),{pageTitle:a,children:o.jsx(c("OCDevCenterNarrowInnerLayout.react"),{children:o.jsxs(c("OCDevUISpacedLayout.react"),{children:[o.jsx(c("GeoHeading.react"),{level:1,children:a}),u?o.jsx(c("OCDevCenterOculusStartApplyForm.react"),{application:n,hardwareRequestFormConfigs:e,user:f}):o.jsx(c("OCDevManageEmptyState.react"),{action:o.jsx(c("GeoButton.react"),{label:h._("View Agreement"),variant:"primary",onClick:t}),heading:h._("Developer Hardware Loan Agreement Required"),icon:d("fbicon")._(i("728259"),24)})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevCenterTOSModal_termsOfService.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterTOSModal_termsOfService",selections:[{alias:null,args:null,kind:"ScalarField",name:"content_draft_js",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tos_type",storageKey:null}],type:"TermsOfService",abstractKey:null};e.exports=a}),null);
-----
OCDevCenterTOSModalMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7387460447943801"}),null);
-----
OCDevCenterOculusStartApplyFormView_application.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterOculusStartApplyFormView_application",selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"latest_only",value:!0},{kind:"Literal",name:"types",value:["DEVELOPER_HLA"]}],concreteType:"OrganizationSignedLegalAgreementsConnection",kind:"LinkedField",name:"signed_legal_agreements",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"max",value:1}],kind:"ScalarField",name:"count_up_to",storageKey:"count_up_to(max:1)"}],storageKey:"signed_legal_agreements(latest_only:true,types:["DEVELOPER_HLA"])"},{args:null,kind:"FragmentSpread",name:"OCDevCenterTOSModal_organization"}],storageKey:null},{args:null,kind:"FragmentSpread",name:"OCDevCenterOculusStartApplyForm_application"}],type:"Application",abstractKey:null};e.exports=a}),null);
-----
OCDevCenterOculusStartApplyFormView_termsOfService.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterOculusStartApplyFormView_termsOfService",selections:[{args:null,kind:"FragmentSpread",name:"OCDevCenterTOSModal_termsOfService"}],type:"TermsOfService",abstractKey:null};e.exports=a}),null);
-----
BizKitCustomerTOSModal.react",["fbt","CRMConsentToTOSDialog.react","CrmDestinationTosFlowEnterFlowFalcoEvent","CrmDestinationTosFlowReceiveResponseFailureFalcoEvent","CrmDestinationTosFlowReceiveResponseSuccessFalcoEvent","CrmDestinationTosFlowSubmitFlowFalcoEvent","GeoButton.react","GeoCancelButton.react","GeoCheckboxInput.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","LeadsManagerAcceptToSMutation","RelayHooks","nullthrows","react","useBizKitPageNullable","useBoolean"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useState;function a(a){var b=a.bpnID,e=a.eventLocation,f=a.isShown,g=a.onAcceptFailure,i=a.onAcceptSuccess,n=a.onHide,o=a.tosSurface,p=d("RelayHooks").useRelayEnvironment(),q=c("nullthrows")(c("useBizKitPageNullable")(),"pageID is null");a=l(!1);var r=a[0],s=a[1];a=l(!1);var t=a[0],u=a[1];a=c("useBoolean")(!1);var v=a.value;a=a.set;var w=function(){c("CrmDestinationTosFlowReceiveResponseSuccessFalcoEvent").log(function(){return{event_location:e,page_id:q,business_presence_node_id:b,event_data:{}}}),i()},x=function(){c("CrmDestinationTosFlowReceiveResponseFailureFalcoEvent").log(function(){return{event_location:e,page_id:q,business_presence_node_id:b,event_data:{}}}),g()};k(function(){f&&c("CrmDestinationTosFlowEnterFlowFalcoEvent").log(function(){return{event_location:e,page_id:q,business_presence_node_id:b,event_data:{}}})},[b,f,q,e]);return j.jsxs("span",{children:[j.jsx(c("GeoModal.react"),{footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:!v,label:h._("__JHASH__bWmGOgwi1Be__JHASH__"),onClick:function(){u(!0),c("CrmDestinationTosFlowSubmitFlowFalcoEvent").log(function(){return{event_location:e,page_id:q,business_presence_node_id:b,event_data:{tos_submit_referrer:"summary"}}}),m(p,q,o,w,x,u)},isLoading:t,variant:"primary"}),secondaryButton:j.jsx(c("GeoCancelButton.react"),{"data-testid":void 0}),startContent:j.jsx(c("GeoCheckboxInput.react"),{label:h._("__JHASH__Y7zIu3sACOb__JHASH__",[h._implicitParam("=m2",j.jsx(c("GeoLink.react"),{onClick:function(){s(!0),n()},children:h._("__JHASH__TPGPkHWRiKN__JHASH__")}))]),onChange:a,value:v})}),header:j.jsx(c("GeoModalHeader.react"),{heading:h._("__JHASH__9TXjVNfIevd__JHASH__")}),isShown:f,onHide:n,children:j.jsx(c("GeoSection.react"),{children:j.jsxs("div",{children:[j.jsx("div",{children:j.jsx(c("GeoText.react"),{children:h._("__JHASH__92nH8Fa6Vb9__JHASH__")})}),j.jsxs("div",{className:"x1yztbdb x1sy10c2",children:[j.jsx("div",{className:"xtcx8v3 x12nagc xv90nub x1gslohp",children:j.jsx(c("GeoText.react"),{children:h._("__JHASH__Wcx3Vd-rboT__JHASH__")})}),j.jsx("div",{className:"xtcx8v3 x12nagc xv90nub x1gslohp",children:j.jsx(c("GeoText.react"),{children:h._("__JHASH__tMoHrhs0fmt__JHASH__")})}),j.jsx("div",{className:"xtcx8v3 x12nagc xv90nub x1gslohp",children:j.jsx(c("GeoText.react"),{children:h._("__JHASH__namqpXUiNdt__JHASH__")})})]})]})})}),j.jsx(c("CRMConsentToTOSDialog.react"),{isShown:r,onConfirm:function(){u(!0),c("CrmDestinationTosFlowSubmitFlowFalcoEvent").log(function(){return{event_location:e,page_id:q,business_presence_node_id:b,event_data:{tos_submit_referrer:"detail"}}}),m(p,q,o,w,x,u)},onHide:function(){s(!1)},isLoading:t})]})}a.displayName=a.name+" [from "+f.id+"]";function m(a,b,c,e,f,g){d("LeadsManagerAcceptToSMutation").commit(a,{actor_id:b,signature_surface:c},{onSuccess:function(a){a=(a=a.lead_gen_tos_consent)==null?void 0:a.success;a===!0?e():(f(),g(!1))},onFailure:function(){f(),g(!1)}})}g["default"]=a}),226);
-----
BizKitCustomerEmptyStateWithValuePropsView.react",["fbt","BizKitCuReSharedNullStateView.react","BizKitCustomerOnboardingConstants","BizKitCustomerTOSModal.react","BizKitDefaultPage.react","BizKitRequirePageAdminPermissionNotice.react","CRMDestinationContext","CrmDestinationTosFlowImpressionFalcoEvent","GeoCard.react","GeoToast.react","nullthrows","react","useBizKitPageNullable","useGeoToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useEffect,m=b.useState;function a(a){var b=a.canSignToS,e=a.refresh,f=c("useBizKitPageNullable")();a=m(!1);var g=a[0],i=a[1];a=m(null);var n=a[0],o=a[1];a=c("useGeoToaster")();var p=a.add;a=k(c("CRMDestinationContext"));var q=a.bpnID;l(function(){if(n!=null){var a=null;n==="error"?a=h._("__JHASH__B6-1BpcbAY4__JHASH__"):n==="success"&&(a=h._("__JHASH__HewKfxAA0FI__JHASH__"));a!==null&&p(j.jsx(c("GeoToast.react"),{heading:a,status:n}),{duration:"sticky"})}},[p,n]);l(function(){c("CrmDestinationTosFlowImpressionFalcoEvent").log(function(){return{event_location:"bizweb_crm_destination",page_id:f,business_presence_node_id:q,event_data:{}}})},[f,q]);return j.jsx(c("BizKitDefaultPage.react"),{initShowLocalNav:!1,children:j.jsxs(c("GeoCard.react"),{children:[j.jsx(d("BizKitCuReSharedNullStateView.react").BizKitCuReSharedNullStateView,{nullStateConfig:b?c("BizKitCustomerOnboardingConstants").TOS_NULL_STATE_CONFIG:c("BizKitCustomerOnboardingConstants").TOS_NO_PERMISSION_NULL_STATE_CONFIG,onPrimaryButtonClick:function(){i(!0)},customSection:b?null:j.jsx(c("BizKitRequirePageAdminPermissionNotice.react"),{notice:c("BizKitCustomerOnboardingConstants").CONTACTS_CONTAC_ADMIN_TO_SETUP_WARNING})}),b&&j.jsx(c("BizKitCustomerTOSModal.react"),{bpnID:c("nullthrows")(q),isShown:g,onHide:function(){i(!1)},onAcceptSuccess:function(){i(!1),e(),o("success")},onAcceptFailure:function(){i(!1),o("error")},eventLocation:"bizweb_crm_destination",tosSurface:"BIZWEB_CONTACTS_TAB"})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
StreamerHomeLevelUpOnboardingTOSModal.react",["fbt","AsyncRequest","CometRelay","DevsiteAudienceNetworkTrackingPixels","GeoButton.react","GeoCancelButton.react","GeoFlexbox.react","GeoHeading.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoNotice.react","GeoSection.react","GeoSpinner.react","GeoText.react","Image.react","StreamerHomeContext","StreamerHomeLevelUpOnboardingTOSModalMutation.graphql","XAffiliateOnboardingPolicyController","react","useBizKitStreamerDashboardLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useContext,m=e.useLayoutEffect,n=e.useRef,o=e.useState,p=i!==void 0?i:i=b("StreamerHomeLevelUpOnboardingTOSModalMutation.graphql");function a(a){var b=a.isShown,e=a.onHide,f=n();a=o("INITIAL");var g=a[0],i=a[1],j=d("useBizKitStreamerDashboardLogger").useBizKitStreamerDashboardLogger();a=d("CometRelay").useMutation(p);var q=a[0];a=a[1];var r=l(c("StreamerHomeContext")),s=r.pageID;r=function(){j.setActionTarget("accept_level_up_terms").setEvent("button_clicked").log(),s!=null&&q({onCompleted:function(a){d("DevsiteAudienceNetworkTrackingPixels").track("GCLevelUpApplicationApproved");((a=a.accept_level_up_terms_fan_support_page_settings)==null?void 0:(a=a.fan_support_page_settings)==null?void 0:a.level_up_terms_accepted)===!0&&(j.setActionTarget("level_up_terms_accepted").setEvent("level_up_terms_accepted").log(),i("SUCCESS"))},onError:function(a){j.setActionTarget("accept_level_up_terms_failed").logError(a),i("ERROR")},variables:{input:{page:s}}})};var t=function(){b&&(j.setEvent("level_up_terms_dismissed").log(),i("INITIAL"),e())};m(function(){if(b){var a=c("XAffiliateOnboardingPolicyController").getURIBuilder().getURI(),d=new(c("AsyncRequest"))().setAllowCrossPageTransition(!0).setRelativeTo(f.current).setURI(a).setHandler(function(){i("TOS")}).setErrorHandler(function(){i("ERROR")});d.send();return function(){return d.abort()}}},[b]);var u=k.jsxs(k.Fragment,{children:[k.jsx(c("GeoFlexbox.react"),{direction:"column",style:{backgroundColor:"#162643",height:250},children:k.jsx(c("Image.react"),{height:230,src:"/images/games/streamer_dashboard/Congratulations.png",width:506})}),k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("GeoHeading.react"),{level:2,children:h._("__JHASH__-fyFTwgt6Mq__JHASH__")}),k.jsx(c("GeoText.react"),{children:h._("__JHASH__DTHp2RyvEyb__JHASH__")})]})]});a=g==="SUCCESS"?k.jsx(c("GeoButton.react"),{autoFocus:!0,label:h._("__JHASH__LgwB_1gx03c__JHASH__"),onClick:e,variant:"primary"}):k.jsx(c("GeoButton.react"),{autoFocus:!0,isDisabled:g!=="TOS",isLoading:a,label:h._("__JHASH__-2pTfqpE9rm__JHASH__"),onClick:r,variant:"primary"});return k.jsx(c("GeoModal.react"),{footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:a,secondaryButton:g==="SUCCESS"?void 0:k.jsx(c("GeoCancelButton.react"),{"data-testid":void 0,onClick:t})}),header:k.jsx(c("GeoModalHeader.react"),{heading:h._("__JHASH__cstf2AszGBC__JHASH__")}),isShown:b,label:"Level Up TOS Modal",onHide:t,children:k.jsxs(c("GeoSection.react"),{children:[(g==="INITIAL"||g==="TOS")&&k.jsx("div",{ref:f},"terms"),g==="INITIAL"&&k.jsx(c("GeoSpinner.react"),{}),g==="ERROR"&&k.jsx(c("GeoNotice.react"),{status:"error",children:h._("__JHASH__Z3nk6W4jiOa__JHASH__")}),g==="SUCCESS"&&u]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
StreamerHomeLevelUpOnboardingTOSModalMutation.graphql",["StreamerHomeLevelUpOnboardingTOSModalMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"AcceptLevelUpTermsFanSupportPageSettingsResponsePayload",kind:"LinkedField",name:"accept_level_up_terms_fan_support_page_settings",plural:!1,selections:[{alias:null,args:null,concreteType:"FanSupportPageSettings",kind:"LinkedField",name:"fan_support_page_settings",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"level_up_terms_accepted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"incentive_terms_accepted",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"StreamerHomeLevelUpOnboardingTOSModalMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"StreamerHomeLevelUpOnboardingTOSModalMutation",selections:c},params:{id:b("StreamerHomeLevelUpOnboardingTOSModalMutation_facebookRelayOperation"),metadata:{},name:"StreamerHomeLevelUpOnboardingTOSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
StreamerHomeLevelUpOnboardingTOSModalMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7790119204357102"}),null);
-----
StreamerHomeLevelUpModule.react",["fbt","ix","GeoButton.react","GeoFlexbox.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoHeading.react","GeoLink.react","GeoList.react","GeoListMediaItem.react","GeoSection.react","GeoText.react","Image.react","JSResourceForInteraction","RelayHooks","StreamerHomeLevelUpEligibilityUtils","StreamerHomeLevelUpModule_streamerHomeModule.graphql","lazyLoadComponent","react","useBizKitStreamerDashboardLogger","useLevelUpLiveTrackRequirements"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useEffect,n=e.useState,o=c("lazyLoadComponent")(c("JSResourceForInteraction")("StreamerHomeLevelUpOnboardingTOSModal.react").__setRef("StreamerHomeLevelUpModule.react")),p=function(a){return a.filter(function(a){return a.meets}).length},q=function(a){return p(a)/a.length};function a(a){a=a.streamerHomeModule;var e=n(!1),f=e[0],g=e[1];e=d("RelayHooks").useFragment(j!==void 0?j:j=b("StreamerHomeLevelUpModule_streamerHomeModule.graphql"),a);var k=e.page,r=d("useBizKitStreamerDashboardLogger").useBizKitStreamerDashboardLogger();m(function(){k!=null&&r.setEvent("module_load_success").log()},[r,k]);var s=function(a){return r.setEvent("button_clicked").setActionTarget(a).log()};a=function(){r.setEvent("level_up_apply_clicked").log(),g(!0)};e=c("useLevelUpLiveTrackRequirements")(k);var t=e.isEligible;e=e.requirements;var u=i("1352373"),v=i("1208638"),w=d("StreamerHomeLevelUpEligibilityUtils").getLevelUpModuleDescription(s),x=p(e),y=q(e);return l.jsxs("div",{children:[l.jsx("div",{className:"xod5an3 x14atkfc",children:l.jsx(c("Image.react"),{className:"xt7dq6l x193iq5w",src:"/images/games/streamer_dashboard/BizKitStreamerHomeLevelUpArt_4x.png"})}),l.jsxs(c("GeoSection.react"),{children:[l.jsx(c("GeoHeading.react"),{level:2,children:h._("__JHASH__N2jtr_roFxe__JHASH__")}),l.jsx(c("GeoText.react"),{children:w})]}),l.jsxs(c("GeoSection.react"),{children:[l.jsxs("div",{children:[l.jsx(c("GeoHeading.react"),{level:3,children:h._("__JHASH__SmUBJt6buUI__JHASH__")}),l.jsx("div",{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":y*100,className:"x78zum5 xdt5ytf x12nagc x14vqqas x6c5l4p",children:l.jsx(c("GeoFlexbox.react"),{alignItems:"center",children:l.jsx("div",{className:"x1wpzbip xhk9q7s x1otrzb0 x1i1ezom x1o6z2jb xdk7pt x6ikm8r x10wlt62 xh8yej3",children:l.jsx("div",{className:"x11goek xdk7pt x19w6rv x1mbqufl x11xpdln x1fwqrf6",style:{transform:"scaleX("+y+")"}})})})}),l.jsx(c("GeoText.react"),{children:h._("__JHASH__RhqCvePEW6w__JHASH__",[h._param("completed criteria",x),h._param("total criteria",e.length)])}),l.jsx(c("GeoList.react"),{children:e.map(function(a,b){return l.jsx(c("GeoListMediaItem.react"),{imageHeight:16,imageURI:a.meets===!0?v:u,imageWidth:16,label:a.text},b)})})]}),l.jsx("div",{className:"xw7yly9",children:l.jsx(c("GeoGuidanceCard.react"),{header:l.jsx(c("GeoGuidanceCardHeader.react"),{heading:h._("__JHASH__4Srh0yzuSmV__JHASH__")}),status:"recommendation",children:l.jsx(c("GeoGuidanceCardContent.react"),{children:l.jsx(c("GeoText.react"),{children:h._("__JHASH__3n3hJqgnUqG__JHASH__",[h._implicitParam("=m0",l.jsx(c("GeoLink.react"),{href:"/fbgaminghome/creators/bootcamp",onClick:function(){s("creator_best_practices")},target:"_blank",children:h._("__JHASH__z3ykT5i1SHO__JHASH__")}))])})})})}),l.jsxs("div",{className:"xw7yly9",children:[l.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:!t||((w=k.fan_support_settings)==null?void 0:w.level_up_terms_accepted)===!0,label:h._("__JHASH__M8579GesDmy__JHASH__"),onClick:a,variant:"primary",width:"100%"}),f&&l.jsx(o,{isShown:f,onHide:function(){g(!1)}})]})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardOrdersSection.react",["fbt","BizKitContextCardActivityListItem.react","BizKitContextCardMoreSection.react","BizKitContextCardOrdersSection_orders.graphql","GeoBaseText.react","GeoHeading.react","GeoSpinner.react","LeftRight.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.Suspense,m=e.useState,n=i!==void 0?i:i=b("BizKitContextCardOrdersSection_orders.graphql"),o=5;function a(a){var b=a.className,e=a.pageID,f=a.orders,g=a.onShowContactCardTosModal,i=a.shouldShowContactCardTos,j=a.surface;a=m(!1);var p=a[0],q=a[1];a=d("RelayHooks").usePaginationFragment(n,f);var r=a.hasNext,s=a.loadNext,t=a.data,u=function(){if(!r||p)return;q(!0);s(o,{onComplete:function(){return q(!1)}})};f=function(){if(!r)return null;return p?k.jsx("div",{className:"x178xt8z x13fuv20 xkh9tda x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",children:k.jsx(c("GeoSpinner.react"),{})}):k.jsx(c("BizKitContextCardMoreSection.react"),{className:"x178xt8z x13fuv20 xkh9tda x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",onClick:u})};a=function(){var a,b;a=t==null?void 0:(a=t.business_actions)==null?void 0:(a=a.actions)==null?void 0:a.edges;var d=t==null?void 0:(b=t.shared_attributes)==null?void 0:b.page_contact_id;if(a==null||a.length===0)return k.jsx("div",{className:"x17ddzgb x14vqqas",children:k.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",isDisabled:!0,display:"block",children:h._("__JHASH__caLWduh8b_0__JHASH__")})});b=a.map(function(a,b){var f;return((f=a.node)==null?void 0:f.wrapper)!=null&&k.jsx(c("BizKitContextCardActivityListItem.react"),{data:a.node.wrapper,pageID:e,surface:j,pageContactID:d,onShowContactCardTosModal:g,shouldShowContactCardTos:i,shouldRemovePageVCDependency:!0,userID:t==null?void 0:(f=t.fb_attributes)==null?void 0:f.user_id},"order_"+b)});return k.jsx("div",{className:"x14vqqas",children:b})};return k.jsxs("div",{className:b,children:[k.jsx(c("LeftRight.react"),{children:k.jsx(c("GeoHeading.react"),{level:3,children:h._("__JHASH__OXqW9qieXL5__JHASH__")})}),k.jsxs(l,{fallback:k.jsx(c("GeoSpinner.react"),{center:!0}),children:[a(),f()]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextLabels3DWrapper.react",["BizKitContextCardLabelsDataFragment.react","BizKitContextLabels3DWrapper_contactLabels.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BizKitContextLabels3DWrapper_contactLabels.graphql");function a(a){var b=a.className,e=a.contactID,f=a.contactIdentity,g=a.pageID,h=a.onSelectLabel,i=a.surface,l=a.readOnly,m=a.onShowContactCardTosModal,n=a.shouldShowContactCardTos,o=a.shouldDisableBizInput,p=a.pageRef,q=a.mbsBusinessAssetsRef,r=a.section_3d;a=a.businessAssets;r=d("RelayHooks").useFragment(k,r);return j.jsx(c("BizKitContextCardLabelsDataFragment.react"),{className:b,contactID:e,contactIdentity:f,pageID:g,contactLabels:r==null?void 0:r.biz_crm_contact,onSelectLabel:h,surface:i,readOnly:l,onShowContactCardTosModal:m,shouldShowContactCardTos:n,shouldDisableBizInput:o,pageRef:p,businessAssets:a,mbsBusinessAssetsRef:q})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardAboutDetailSection3DWrapper.react",["BizKitContextCardAboutDetailSection.react","BizKitContextCardAboutDetailSection3DWrapper_about.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BizKitContextCardAboutDetailSection3DWrapper_about.graphql");function a(a){var b=a.section_3d,e=a.className,f=a.contactIdentity,g=a.pageID,h=a.bpnID,i=a.surface,l=a.readOnly,m=a.onShowContactCardTosModal,n=a.shouldShowContactCardTos,o=a.shouldDisableBizInput;a=a.isPageEnabledForWAM;b=d("RelayHooks").useFragment(k,b);return j.jsx(c("BizKitContextCardAboutDetailSection.react"),{about:b==null?void 0:b.biz_crm_contact,className:e,contactIdentity:f,isPageEnabledForWAM:a,pageID:g,bpnID:h,surface:i,readOnly:l,onShowContactCardTosModal:m,shouldShowContactCardTos:n,shouldDisableBizInput:o})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardOrdersSection3DWrapper.react",["BizKitContextCardOrdersSection.react","BizKitContextCardOrdersSection3DWrapper_orders.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BizKitContextCardOrdersSection3DWrapper_orders.graphql");function a(a){var b=a.className,e=a.pageID,f=a.section_3d,g=a.onShowContactCardTosModal,h=a.shouldShowContactCardTos,i=a.surface;a=a.readOnly;f=d("RelayHooks").useFragment(k,f);return j.jsx(c("BizKitContextCardOrdersSection.react"),{className:b,pageID:e,orders:f==null?void 0:f.biz_crm_contact,readOnly:a,surface:i,onShowContactCardTosModal:g,shouldShowContactCardTos:h})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LeadsManagerToSDialog.react",["cx","fbt","CRMConsentToTOSDialog.react","GeoButton.react","GeoCancelButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoSpinner.react","GeoText.react","LeadsCenterTosDismissFalcoEvent","LeadsCenterTosImpressionFalcoEvent","LeadsCenterTosSubmitFlowFalcoEvent","LeadsManagerAcceptToSMutation","LeadsManagerConstants","LeadsManagerContext","LeadsManagerViewContext","RelayHooks","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));b=j;var l=b.useContext,m=b.useState;function a(a){var b=l(c("LeadsManagerViewContext")),e=b.stateForView,f=b.dispatchForView;b=l(c("LeadsManagerContext"));var g=b.state,h=b.dispatch;b=m(!1);var j=b[0],o=b[1];b=m(!1);var p=b[0],q=b[1];b=e.isShowingToS;var r=d("RelayHooks").useRelayEnvironment(),s=g.isInBizKit?"BIZWEB_LEAD_CENTER":"PAGE_LEAD_CENTER";if(!a||j)return k.jsx(c("GeoSpinner.react"),{});b&&c("LeadsCenterTosImpressionFalcoEvent").log(function(){return{page_id:a.pageID,event_location:"leads_center",event_data:{}}});return k.jsxs("span",{children:[k.jsxs(c("GeoModal.react"),{footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{"data-testid":void 0,label:d("LeadsManagerConstants").LEADS_MANAGER_TOS_DIALOG_BUTTON,onClick:function(){f({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!1}),h({shouldShowPipelineTour:!0,type:"SHOW_PIPELINE_ONBOARDING_TOUR"}),h({isFromPreToSAcceptView:!0,type:"IS_FROM_PRE_TOS_ACCEPT_VIEW"}),n(a.pageID,s,o,r,h)},variant:"primary"}),secondaryButton:k.jsx(c("GeoCancelButton.react"),{})}),header:k.jsx(c("GeoModalHeader.react"),{heading:d("LeadsManagerConstants").LEADS_MANAGER_TOS_DIALOG_TITLE}),isShown:b,label:i._("__JHASH__z6I6WRptLND__JHASH__"),onHide:function(){c("LeadsCenterTosDismissFalcoEvent").log(function(){return{page_id:a.pageID,event_location:"leads_center",event_data:{}}}),f({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!1})},width:560,children:[k.jsx(c("GeoSection.react"),{children:k.jsx("div",{children:k.jsxs("div",{className:"_96mo",children:[k.jsx("div",{children:k.jsx(c("GeoText.react"),{children:i._("__JHASH__ByvSW45N-gb__JHASH__")})}),k.jsx("div",{className:"_96mp",children:k.jsx(c("GeoText.react"),{children:i._("__JHASH__1wKr4kg59me__JHASH__")})}),k.jsx("div",{className:"_96mp",children:k.jsx(c("GeoText.react"),{children:i._("__JHASH__PsopSE_o4de__JHASH__")})}),k.jsx("div",{className:"_96mp",children:k.jsx(c("GeoText.react"),{children:i._("__JHASH__RbKRL6jvVw1__JHASH__")})}),k.jsx("div",{className:"_96mp",children:k.jsx(c("GeoText.react"),{children:i._("__JHASH__Kzp_b7ZTiOK__JHASH__")})}),k.jsxs("div",{className:"_96mp",children:[k.jsx(c("GeoText.react"),{children:i._("__JHASH__0rt0tLpTirU__JHASH__")})," ",k.jsx(c("GeoLink.react"),{onClick:function(){q(!0)},children:i._("__JHASH__zUV_6yJrV7n__JHASH__")}),"."]})]})})}),a.leadCount>0&&k.jsx(c("GeoSection.react"),{children:k.jsx("div",{children:k.jsx("div",{className:"_96mo",children:k.jsx(c("GeoText.react"),{children:(e=i._plural(a.leadCount,"number"),i._("__JHASH__UiEH6vgtKdv__JHASH__",[e,i._implicitParam("=m4",k.jsx(c("GeoLink.react"),{onClick:function(){q(!0)},children:i._("__JHASH__16zrzBGFvqc__JHASH__",[e])})),i._implicitParam("=m8",k.jsx(c("GeoLink.react"),{href:"../publishing_tools/?section=LEAD_ADS_FORMS",children:i._("__JHASH__s322NBn9w_C__JHASH__",[e])}))]))})})})})]}),k.jsx(c("CRMConsentToTOSDialog.react"),{isShown:p,onConfirm:function(){q(!1)},onHide:function(){q(!1)}})]})}a.displayName=a.name+" [from "+f.id+"]";function n(a,b,e,f,g){c("LeadsCenterTosSubmitFlowFalcoEvent").log(function(){return{page_id:a,event_location:"leads_center",event_data:{}}}),e(!0),d("LeadsManagerAcceptToSMutation").commit(f,{actor_id:a,signature_surface:b},{onSuccess:function(a){var b;b=(b=a.lead_gen_tos_consent)==null?void 0:b.success;if(b===!0){g({type:"LEADS_MANAGER_ACCEPT_TOS_ACTION",isBackFillJobsRunning:((b=a.lead_gen_tos_consent)==null?void 0:(a=b.page)==null?void 0:a.has_leads_center_back_fill_job_running)||!1});g({type:"LEADS_MANAGER_SELECT_STAGE",stageID:null})}else e(!1)},onFailure:function(){e(!1)}})}g["default"]=a}),226);
-----
LeadsManagerTablePreToSAcceptState.react",["fbt","ix","GeoBaseText.react","GeoButton.react","GeoCard.react","GeoLink.react","GeoSpinner.react","GeoText.react","Image.react","LeadsCenterPreTosAcceptanceViewClickContinueButtonFalcoEvent","LeadsCenterPreTosAcceptanceViewClickHyperlinkFalcoEvent","LeadsCenterPreTosAcceptanceViewImpressionFalcoEvent","LeadsManagerAcceptToSMutation","LeadsManagerConstants","LeadsManagerContext","LeadsManagerViewContext","RelayHooks","geoMargin","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));b=j;var l=b.useContext,m=b.useEffect,n=b.useState;function a(a){var b=a.pageID;a=l(c("LeadsManagerContext"));var e=a.dispatch;a=a.state;var f=a.canSeeLeadOwnerInvitation,g=n(!1),i=g[0],j=g[1],q=d("RelayHooks").useRelayEnvironment();g=a.shouldShowColdStartImprovements;a=l(c("LeadsManagerViewContext"));var r=a.dispatchForView;m(function(){i||c("LeadsCenterPreTosAcceptanceViewImpressionFalcoEvent").log(function(){return{page_id:b,event_location:"leads_center",event_data:{}}})});if(i)return k.jsx(c("GeoSpinner.react"),{});a=k.jsxs("div",{children:[k.jsx(c("GeoText.react"),{children:h._("__JHASH__Cmk_WW5HFkZ__JHASH__")})," ",k.jsx(c("GeoLink.react"),{onClick:function(){c("LeadsCenterPreTosAcceptanceViewClickHyperlinkFalcoEvent").log(function(){return{page_id:b,event_location:"leads_center",event_data:{}}}),r({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})},children:h._("__JHASH__I2hczrBMQPG__JHASH__")}),"."]});var s=k.jsx("div",{children:k.jsx(c("GeoText.react"),{children:h._("__JHASH__ZlvqQhsvO--__JHASH__",[h._param("terms of service",k.jsx("b",{children:"Leads Center Terms of Service"}))])})}),t=h._("__JHASH__GAcJOrrk8tc__JHASH__",[h._implicitParam("=m1",k.jsx("b",{children:h._("__JHASH__CUNA6ZvaW-O__JHASH__")}))]),u=o();return k.jsx(c("GeoCard.react"),{children:k.jsxs("div",{className:"x78zum5 x1q0g3np",children:[k.jsx("div",{className:"x6s0dn4 x78zum5 xt7dq6l xl56j7k x3hqpx7",children:k.jsxs("div",{className:"xc26acl x7a106z x78zum5 xdt5ytf x65xoit x1dgoarg",children:[k.jsx(c("GeoBaseText.react"),{color:"heading",size:"header2",xstyle:c("geoMargin").top12,children:d("LeadsManagerConstants").PRE_TOS_ACCEPT_VIEW_HEADER}),g?k.jsx(c("GeoBaseText.react"),{color:"value",size:"value",xstyle:c("geoMargin").top24,children:d("LeadsManagerConstants").PRE_TOS_ACCEPT_IMPORT_LEADS_CONTENT}):null,u.map(function(a){return k.jsx("div",{className:"x1i64zmx x1xmf6yo",children:k.jsxs("div",{className:"x7a106z x78zum5 x14vqqas",children:[k.jsx("div",{className:"xq8finb xr9ek0c",children:k.jsx(c("Image.react"),{src:a.icon})}),k.jsx("div",{children:k.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:a.contentBody})})]})},a.contentBody)}),f?k.jsx(c("GeoBaseText.react"),{color:"value",size:"value",xstyle:c("geoMargin").top24,children:a}):k.jsx(c("GeoBaseText.react"),{color:"value",size:"value",xstyle:c("geoMargin").top24,children:s}),f&&k.jsx(c("GeoBaseText.react"),{color:"value",size:"value",xstyle:c("geoMargin").top24,children:t}),k.jsx("div",{className:"x1lliihq x1fg7cb5",children:k.jsx(c("GeoButton.react"),{variant:"primary",isDisabled:!f,label:h._("__JHASH__DIrRqxkYK1z__JHASH__"),xstyle:c("geoMargin").vert24,"data-testid":void 0,onClick:function(){e({shouldShowPipelineTour:!0,type:"SHOW_PIPELINE_ONBOARDING_TOUR"}),e({isFromPreToSAcceptView:!0,type:"IS_FROM_PRE_TOS_ACCEPT_VIEW"}),c("LeadsCenterPreTosAcceptanceViewClickContinueButtonFalcoEvent").log(function(){return{page_id:b,event_location:"leads_center",event_data:{}}}),p(b,"BIZWEB_LEAD_CENTER",j,q,e)}})})]})}),k.jsx("div",{className:"x78zum5 xt7dq6l x3hqpx7",children:k.jsx(c("Image.react"),{className:"xt7dq6l xh8yej3",src:"/images/leads_center/leads_center_pre_tos_accept_view/MBS-Leads-ToS-New-User-b4b4x.png"})})]})})}a.displayName=a.name+" [from "+f.id+"]";function o(){return[{contentBody:d("LeadsManagerConstants").PRE_TOS_ACCEPT_STOPWATCH_ICON_CONTENT,contentHeader:"",icon:i("500256")},{contentBody:d("LeadsManagerConstants").PRE_TOS_ACCEPT_FUNNEL_ICON_CONTENT,contentHeader:"",icon:i("560117")},{contentBody:d("LeadsManagerConstants").PRE_TOS_ACCEPT_THUNDER_ICON_CONTENT,contentHeader:"",icon:i("1020800")}]}function p(a,b,c,e,f){c(!0),d("LeadsManagerAcceptToSMutation").commit(e,{actor_id:a,signature_surface:b},{onSuccess:function(a){var b;b=(b=a.lead_gen_tos_consent)==null?void 0:b.success;if(b===!0){f({type:"LEADS_MANAGER_ACCEPT_TOS_ACTION",isBackFillJobsRunning:((b=a.lead_gen_tos_consent)==null?void 0:(a=b.page)==null?void 0:a.has_leads_center_back_fill_job_running)||!1})}else c(!1)},onFailure:function(){c(!1)}})}g["default"]=a}),226);
-----
BizKitContextCardActivitySection3DWrapper.react",["BizKitContextCardActivitySection.react","BizKitContextCardActivitySection3DWrapper_activities.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");h!==void 0?h:h=b("BizKitContextCardActivitySection3DWrapper_activities.graphql");function a(a){var b=a.className,d=a.pageID,e=a.isInKBankRollout,f=a.contactID,g=a.contactIdentity,h=a.onActivityListUpdated,i=a.activitiesQueryReference,k=a.readOnly,l=a.surface,m=a.onShowContactCardTosModal,n=a.shouldShowContactCardTos;a=a.shouldDisableBizInput;return j.jsx(c("BizKitContextCardActivitySection.react"),{className:b,contactID:f,contactIdentity:g,pageID:d,isInKBankRollout:e,onActivityListUpdated:h,activitiesQueryReference:i,readOnly:k,surface:l,onShowContactCardTosModal:m,shouldShowContactCardTos:n,shouldDisableBizInput:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardNotesSection3DWrapper.react",["BizKitContextCardNotesSection.react","BizKitContextCardNotesSection3DWrapper_notes.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BizKitContextCardNotesSection3DWrapper_notes.graphql");function a(a){var b=a.className,e=a.pageID,f=a.section_3d,g=a.contactID,h=a.contactIdentity,i=a.surface,l=a.readOnly,m=a.onShowContactCardTosModal;a=a.shouldShowContactCardTos;f=d("RelayHooks").useFragment(k,f);return j.jsx(c("BizKitContextCardNotesSection.react"),{className:b,contactID:g,contactIdentity:h,pageID:e,notes:f==null?void 0:f.biz_crm_contact,surface:i,readOnly:l,onShowContactCardTosModal:m,shouldShowContactCardTos:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerHomePageModals.react",["CatalogContext","CommerceBrandCompleteQueryParameterUtils","CommerceManagerAppContext","CommerceManagerContext","CommerceManagerHomePageModalsQuery.graphql","CommerceManagerHomeShopCompleteModal.react","CommerceManagerHooks","CommerceManagerImpressionLoggingContainer.react","CommerceManagerIntegrityEnforcementFBT","CommerceManagerShopsDisabledModalV2.react","CommerceManagerSuspense.react","CommerceOneCatalogMigrationModalSelector.atomic","CurrentBusinessUser","GeoPageSpinner.react","JSResource","SellerState","isEmpty","justknobx","keyMirror","lazyLoadComponent","nullthrows","react","useCommerceManagerModalParams"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.Suspense,m=e.useCallback,n=e.useContext,o=e.useState,p=c("lazyLoadComponent")(c("JSResource")("CommerceManagerTOSModal.react").__setRef("CommerceManagerHomePageModals.react")),q=c("lazyLoadComponent")(c("JSResource")("CommerceManagerOnboardingPayoutsModal.react").__setRef("CommerceManagerHomePageModals.react")),r=c("lazyLoadComponent")(c("JSResource")("CommerceManagerKYCModal.react").__setRef("CommerceManagerHomePageModals.react")),s=c("lazyLoadComponent")(c("JSResource")("CommerceManagerOBBOModal.react").__setRef("CommerceManagerHomePageModals.react")),t=c("lazyLoadComponent")(c("JSResource")("CommerceManagerDeferredPayoutOnboardingModalProxy.atomic").__setRef("CommerceManagerHomePageModals.react")),u=c("lazyLoadComponent")(c("JSResource")("CGPGuidanceEnableFederalInformActVerificationModal.react").__setRef("CommerceManagerHomePageModals.react")),v=c("lazyLoadComponent")(c("JSResource")("CGPGuidanceEnableBusinessAssetsModal.react").__setRef("CommerceManagerHomePageModals.react")),w=c("lazyLoadComponent")(c("JSResource")("CommerceBrandCompleteModal.atomic").__setRef("CommerceManagerHomePageModals.react")),x=c("lazyLoadComponent")(c("JSResource")("AdsAutocatOnboardingModalContainer.react").__setRef("CommerceManagerHomePageModals.react")),y=c("keyMirror")(c("SellerState")),z=h!==void 0?h:h=b("CommerceManagerHomePageModalsQuery.graphql"),A="CommerceManagerHomePageModals";function B(a){var b,e,f,g=c("nullthrows")(n(c("CommerceManagerAppContext")),"Failed to retrieve Catalog/CMS ID from CM App Context");g=g.catalogOrCmsID;var h=d("CommerceManagerHooks").useCommerceManagerQuery(z,{catalogOrCmsID:g},{fetchPolicy:"network-only"}),j=c("useCommerceManagerModalParams")(),A=j.removeQueryParam,B=j.showKYCModal,C=j.shouldShowCompletePayoutsModal,D=j.showDeferredPayoutOnboardingModal,E=j.shouldShowOneCatalogMigrationModal;j=j.showMultiShopConnectBusinessAssetsModal;var F=n(c("CatalogContext")),G=n(c("CommerceManagerContext")),H=G.loadFedInformWizard,I=G.setBrandCompleteOptOutSuccessfulMigrationType;G=(G=c("CurrentBusinessUser").business_id)!=null?G:F==null?void 0:F.ownerBusinessID;F=(F=h.configuration)==null?void 0:F.commerceAccount;b=(b=h.configuration)==null?void 0:b.catalogAccount;var J=!(i||(i=c("isEmpty")))(F==null?void 0:F.commerceMerchantStateInfo);e=F==null?void 0:(e=F.commerceMerchantStateInfo)==null?void 0:e.sellerState;f=(f=b==null?void 0:(f=b.catalogItems)==null?void 0:f.count)!=null?f:0;f=f>0;J=a.showShopCompleteDialog&&J;var K=(b==null?void 0:b.original_creation_source)==="AUTOCAT";b=(b==null?void 0:(b=b.website_onboarding_settings)==null?void 0:b.state)==="READY";K=K&&b;b=o(String(e)===y.BANNED);e=b[0];var L=b[1];b=o(a.showShopCompleteDialog&&!J);J=b[0];var M=b[1];b=o(a.showTOSModal);var N=b[0],O=b[1];b=o(a.showOBBOModal);var P=b[0],Q=b[1];b=o(H===!0);H=b[0];b=b[1];var R=F==null?void 0:F.id,S=d("CommerceBrandCompleteQueryParameterUtils").useBrandCompleteQueryParameters(),T=S.shouldShowMergeShopsOptOutModal;S=S.shouldShowLinkedAssetOptOutModal;var U=S===!0?"BRAND_COMPLETE_ADD_LINKED_ASSET":T===!0?"BRAND_COMPLETE_MERGE_SHOPS":null;S=m(function(){I&&I(U)},[I,U]);T=(T=h.configuration)==null?void 0:T.one_catalog_migration;if(K)return k.jsx(c("CommerceManagerSuspense.react"),{oncall:"catalog_quality_tools",children:k.jsx(x,{})});if(R==null)return null;if(E)return k.jsx(c("CommerceOneCatalogMigrationModalSelector.atomic"),{oneCatalogMigrationState:T,onHide:function(){return A("should_show_one_catalog_migration_modal")}});if(a.showBrandCompleteModal)return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R,migrationType:U},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"brand_complete_migration_opt_out_modal_view",oncall:"seller_account_foundation",children:k.jsx(c("CommerceManagerSuspense.react"),{oncall:"seller_account_foundation",children:k.jsx(w,{cmsID:R,flowName:"COMMERCE_MANAGER_HOME_TAB",sellerFunnelFlow:a.flowName,onLinkedAssetOptOutSuccess:S,onMergeShopsOptOutSuccess:S,onMigrationFailure:function(){d("CommerceBrandCompleteQueryParameterUtils").setBrandCompleteOptOutQueryParameters(!0)},onMigrationSuccess:function(){I&&I(null)}})})});if(N)return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"accept_tos_modal_view",oncall:"commerce_platform_onboarding_experiences",children:k.jsx(c("CommerceManagerSuspense.react"),{oncall:"commerce_platform_seller_onboarding",children:k.jsx(p,{isShown:N,onHide:function(){return O(!1)}})})});if(C)return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"onboarding_payouts_modal_view",oncall:"commerce_platform_onboarding_experiences",children:k.jsx(q,{commerceAccountID:R,hasOnsiteIntent:!0,isShown:C,source:"COMMERCE_MANAGER_HOME_COMPLETE_PAYOUTS_MODAL",onHide:function(){A("should_show_complete_payouts_modal")}})});if(B)return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"kyc_modal_view",oncall:"commerce_platform_onboarding_experiences",children:k.jsx(r,{isDialogShown:!0,onHide:function(){return A("load_kyc_flow")}})});if(P&&c("justknobx")._("1915"))return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"obbo_modal_view",oncall:"commerce_platform_onboarding_experiences",children:k.jsx(s,{isDialogShown:P,setIsDialogShown:Q,setShowNotifications:Q,onHide:function(){return Q(!1)}})});if(H&&c("justknobx")._("2205"))return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"fi_wizard_modal_view",oncall:"seller_onsite_retention",children:k.jsx(u,{cmsID:R,showModal:H,onModalVisibilityChange:b})});if(D){return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"deferred_payout_onboarding_modal_view",oncall:"commerce_platform_onboarding_experiences",children:k.jsx(t,{cms:(K=h.configuration)==null?void 0:K.commerceAccount,cmsID:R})})}if(j)return k.jsx(v,{cmsID:R,showModal:j,onHide:function(){return A("show_multi_shop_business_asset_connect_modal")}});if(J)return k.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:R},flowName:"ONBOARDING_COMPLETE_MODAL",flowStep:"onboarding_complete_modal_view",oncall:"commerce_platform_onboarding_experiences",children:k.jsx(l,{fallback:k.jsx(c("GeoPageSpinner.react"),{variant:"overlay"}),children:k.jsx(c("CommerceManagerHomeShopCompleteModal.react"),{businessID:G,catalogHasInventory:f,catalogOrCmsID:g,onHide:function(){return M(!1)}})})});return e?k.jsx(c("CommerceManagerShopsDisabledModalV2.react"),{body:d("CommerceManagerIntegrityEnforcementFBT").EnforcementOverlayCardBodyShop(F==null?void 0:F.displayName),businessID:G,onHide:function(){return L(!1)}}):null}B.displayName=B.name+" [from "+f.id+"]";function a(a){var b,e;a=a.flowName;var f=n(c("CommerceManagerContext"));b=(b=f.showShopCompleteDialog)!=null?b:!1;e=(e=f.showTOSModal)!=null?e:!1;f=(f=f.loadOBBOFlow)!=null?f:!1;var g=d("CommerceBrandCompleteQueryParameterUtils").useBrandCompleteQueryParameters(),h=g.shouldShowLinkedAssetOptOutModal,i=g.shouldShowMergeShopsOptOutModal,j=g.shouldMergeShops;g=g.shouldUpdateLinkedAsset;return k.jsx(c("CommerceManagerSuspense.react"),{flowStep:A,oncall:"cxp_interfaces",children:k.jsx(B,{flowName:a,showBrandCompleteModal:h||i||j||g,showOBBOModal:f,showShopCompleteDialog:b,showTOSModal:e})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsPEManageAdsPaneContainer.react",["cx","errorCode","AdFLEXCampaignEditControlConfig","AdFLEXConfig","AdFLEXInboxNuxConfig","AdFLEXWhatsappMmInboxReTosConfig","AdsALSurface","AdsALSurfaceTablePlugin","AdsAMTableProvider","AdsAccountCreationUtils","AdsAccountStore","AdsAutoflowEducationModalAction","AdsAutoflowEducationModalProvider","AdsDeferRenderingForPerfContainer.react","AdsErrorBoundary.react","AdsExperimentsRunWinnerModalProvider","AdsFluxContainer","AdsHardRefreshDataProvider","AdsLazyContainer","AdsManagerRelayEnvironment","AdsMgmt2024H1ExperimentUtils","AdsMgmtArchivedCustomMetricsDialogProvider","AdsMgmtCampaignTableSidePanel.react","AdsMgmtDimensionSelectors","AdsMgmtNavigationTabsContainer.react","AdsMgmtSearchAndFilterGeoCard.react","AdsMgmtUseFilterIntentionProvider","AdsMidFlightRecommendationResolutionFlowProvider","AdsMidflightResolutionFlowVisibilitySelectors","AdsPEDcpSidePanelProvider","AdsPEFilterUIStateSelectors","AdsPELayoutSetAdLimitsRecommendationResolutionCardSizeAction","AdsPELayoutSetMidFlightResolutionCardSizeAction","AdsPELayoutSetPreFlightResolutionCardSizeAction","AdsPETableRouteContainer.react","AdsPEToolbarRouteContainer.react","AdsReportBuilderCustomMetricsDialogProvider","AdsRevertFragmentationProvider","AdsSelectionLevelSelectors","AdsSpinnerGroup.react","AdsTALRerunTestModalDataProvider","AdsTALSurfaceToastDataProvider","CometPlaceholder.react","DOMEventListener","DateTime","InteractionAreas","JSResource","LoadingMarkerArea.react","MessageMarketingAddMessagesDeliveredColumnNUXContainerLazy.react","QPLSharing","RelayHooks","ResponsiveBlock.react","ShopsAdsMetricsOnboardingTourContainerLazy.react","ShopsAdsOnboardingModalContainerLazy.react","adsBulkEditDialogSelector","adsColumnFlexingModalSelector","adsExperimentsCreateTestModalSelector","adsIsCBOBulkEditDialogType","adsManagerSourceOfTruthNuxSelector","adsManagerTableOpportunityScoreNUXSelector","adsMgmtAdgroupSelectionSelector","adsMgmtCampaignGroupSelectionSelector","adsMgmtCampaignSelectionSelector","adsMgmtDataFetchingStatusSelector","adsMgmtPrimaryViewWidthStyleSelector","adsPEManageAdsSectionSelector","adsPermissionRequestGetUserRole","adsPreFlightRecommendationResolutionFlowVisibilitySelector","adsStatusChangeDialogSelector","adsUEditorAdgroupAllDraftsAndEditorTrayOpenSelector","adsUEditorHasAcceptedGenAIAlphaTermsSelector","emptyFunction","gkx","lazyLoadComponent","no-swipe","react","withAdsHeroTracing"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=c("lazyLoadComponent")(c("JSResource")("AdsAddPaymentMethodMessagingFloatingTipWrapperDeferred.react").__setRef("AdsPEManageAdsPaneContainer.react")),m=c("lazyLoadComponent")(c("JSResource")("AdsLoadingRecommendationResolutionFlow.react").__setRef("AdsPEManageAdsPaneContainer.react")),n=c("lazyLoadComponent")(c("JSResource")("AdsMidFlightRecommendationResolutionFlowContainer.react").__setRef("AdsPEManageAdsPaneContainer.react")),o=c("lazyLoadComponent")(c("JSResource")("AdsPreFlightRecommendationResolutionFlowContainer.react").__setRef("AdsPEManageAdsPaneContainer.react")),p=c("lazyLoadComponent")(c("JSResource")("AdLimitsRecommendationResolutionCardContainer.react").__setRef("AdsPEManageAdsPaneContainer.react")),q=c("lazyLoadComponent")(c("JSResource")("AdsAutomaticFlowLiteEducationModal.react").__setRef("AdsPEManageAdsPaneContainer.react")),r=c("lazyLoadComponent")(c("JSResource")("AdsManagerQualitySurvey.react").__setRef("AdsPEManageAdsPaneContainer.react")),s=c("lazyLoadComponent")(c("JSResource")("CreatorAdsRootContainer.react").__setRef("AdsPEManageAdsPaneContainer.react")),t=c("lazyLoadComponent")(c("JSResource")("AdsPermissionRequestDeferred.react").__setRef("AdsPEManageAdsPaneContainer.react")),u=c("lazyLoadComponent")(c("JSResource")("AdsMessagingResultsUpsellModalContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"));a=c("AdsAMTableProvider").toFluxStore();var v=d("AdsLazyContainer").create({loader:c("JSResource")("AdsAMTableResolutionFlowContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:[a],shouldShow:function(){return!0},placeholderComponent:null}),w=function(a){a.deliberateSync=!0;return c("no-swipe")(a)},x=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsManagerHardRefreshModal.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:[c("AdsHardRefreshDataProvider").toFluxStore()],shouldShow:function(){return c("AdsHardRefreshDataProvider")().isShown}}),y=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsReportBuilderCustomMetricDialogContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:[c("AdsReportBuilderCustomMetricsDialogProvider").toFluxStore()].filter(Boolean),shouldShow:function(){return c("AdsReportBuilderCustomMetricsDialogProvider")().isOpen}}),z=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsBulkEditDialogContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:c("adsBulkEditDialogSelector").getStores(),shouldShow:function(){var a=c("adsBulkEditDialogSelector")();a=a.dialogType;return a!=null&&!c("adsIsCBOBulkEditDialogType")(a)}}),A=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsCBOBulkEditDialogContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:c("adsBulkEditDialogSelector").getStores(),shouldShow:function(){var a=c("adsBulkEditDialogSelector")();a=a.dialogType;return a!=null&&c("adsIsCBOBulkEditDialogType")(a)}}),B=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsStatusChangeDialogContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:c("adsStatusChangeDialogSelector").getStores(),shouldShow:function(){return c("adsStatusChangeDialogSelector")().isShown}}),C=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsMgmtArchivedCustomMetricsListContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:[c("AdsMgmtArchivedCustomMetricsDialogProvider").toFluxStore()],shouldShow:function(){return c("AdsMgmtArchivedCustomMetricsDialogProvider")().isShown}}),D=d("AdsLazyContainer").create({loader:c("JSResource")("AdsExperimentsRunWinnerModalContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),placeholderComponent:null,stores:[c("AdsExperimentsRunWinnerModalProvider").toFluxStore()],shouldShow:function(){return c("AdsExperimentsRunWinnerModalProvider")().showRunWinnerModal}}),E=d("AdsLazyContainer").create({loader:c("JSResource")("AdsTALRerunTestModalContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),placeholderComponent:null,stores:[c("AdsTALRerunTestModalDataProvider").toFluxStore()],shouldShow:function(){return c("AdsTALRerunTestModalDataProvider")().modalIsVisible}}),F=d("AdsLazyContainer").create({loader:c("JSResource")("AdsTALSurfaceToastContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),placeholderComponent:null,stores:[c("AdsTALSurfaceToastDataProvider").toFluxStore()],shouldShow:function(){return c("AdsTALSurfaceToastDataProvider")().toastProps!=null}}),G=d("AdsLazyContainer").create({loader:c("JSResource")("AdsRevertRecommendationFlowContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),placeholderComponent:null,stores:[c("AdsRevertFragmentationProvider").toFluxStore()],shouldShow:function(){return c("AdsRevertFragmentationProvider")().showModal}}),H=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsColumnFlexingModalContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:c("adsColumnFlexingModalSelector").getStores(),shouldShow:function(){return c("adsColumnFlexingModalSelector")().shouldShowModal===!0}}),I=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsGenAIAlphaTestModalContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:c("adsUEditorHasAcceptedGenAIAlphaTermsSelector").getStores(),shouldShow:function(){return c("adsUEditorHasAcceptedGenAIAlphaTermsSelector")()!==1&&c("adsUEditorHasAcceptedGenAIAlphaTermsSelector")()!==2}}),J=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsManagerTableOpportunityScoreNUXTourContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:c("adsManagerTableOpportunityScoreNUXSelector").getStores(),shouldShow:function(){return c("adsManagerTableOpportunityScoreNUXSelector")().shouldShowModal===!0}}),K=d("AdsLazyContainer").create({loader:c("JSResource")("AdsPEToolbarCreateTestModal.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:d("adsExperimentsCreateTestModalSelector").adsExperimentsCreateTestModalSelector.getStores(),placeholderComponent:null,shouldShow:function(){return d("adsExperimentsCreateTestModalSelector").adsExperimentsCreateTestModalSelector().toolbarState.isModalVisible===!0}}),L=d("AdsLazyContainer").create({loader:c("JSResource")("AdsManagerSourceOfTruthNuxContainer.react").__setRef("AdsPEManageAdsPaneContainer.react"),stores:c("adsManagerSourceOfTruthNuxSelector").getStores(),placeholderComponent:null,shouldShow:function(){return c("adsManagerSourceOfTruthNuxSelector")().shouldShowModal===!0}});c("InteractionAreas").addArea("_2utx","mgmt_filterbar","am_management_other");c("InteractionAreas").addArea("_2ut_","mgmt_table","am_management_table");c("InteractionAreas").addAreaByID("peTabs","mgmt_tabs","am_management_navigation");var M=c("withAdsHeroTracing").root("am.table.toolbar");function N(){var a=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsPEToolbarRouteContainer",children:k.jsx(c("AdsPEToolbarRouteContainer.react"),{})});return c("gkx")("1157")?k.jsx(M,{children:a}):a}N.displayName=N.name+" [from "+f.id+"]";var O=k.createRef();b=function(a){babelHelpers.inheritsLoose(b,a);b.getStores=function(){return[].concat(c("AdsAccountStore").getSelectedAccount.getStores(),d("AdsMgmtDimensionSelectors").hasFiltersSelector.getStores(),c("adsPEManageAdsSectionSelector").getStores(),c("adsMgmtPrimaryViewWidthStyleSelector").getStores(),d("AdsSelectionLevelSelectors").adsSelectionLevelSelector.getStores(),d("AdsMidflightResolutionFlowVisibilitySelectors").adsMidflightIsValidResolutionFlowLoadObjectSelector.getStores(),d("adsPreFlightRecommendationResolutionFlowVisibilitySelector").adsPreFlightRecommendationResolutionFlowVisibilitySelector.getStores(),d("AdsPEFilterUIStateSelectors").hasFilters.getStores(),[c("AdsMgmtUseFilterIntentionProvider").toFluxStore(),c("AdsAutoflowEducationModalProvider").toFluxStore(),c("AdsMidFlightRecommendationResolutionFlowProvider").toFluxStore()],c("adsUEditorAdgroupAllDraftsAndEditorTrayOpenSelector").getStores(),[c("AdsPEDcpSidePanelProvider").toFluxStore()],c("adsMgmtCampaignGroupSelectionSelector").getStores(),c("adsMgmtCampaignSelectionSelector").getStores(),c("adsMgmtAdgroupSelectionSelector").getStores()).filter(Boolean)};b.calculateState=function(a){var b,e=c("adsPEManageAdsSectionSelector")(),f=d("AdsSelectionLevelSelectors").adsSelectionLevelSelector(e),g=["ad","ad_set","campaign"].includes(f),h=c("AdsMidFlightRecommendationResolutionFlowProvider")(),i=d("AdsMidflightResolutionFlowVisibilitySelectors").adsMidflightIsValidResolutionFlowLoadObjectSelector().getValue()===!0,j=g&&i,k=g&&d("adsPreFlightRecommendationResolutionFlowVisibilitySelector").adsPreFlightRecommendationResolutionFlowVisibilitySelector(),l=e==="L1"||e==="L2"||e==="L3"||e==="CREATIVES";l=!l||(a==null?void 0:a.shouldLoadRealFilterContainer)===!0||d("AdsPEFilterUIStateSelectors").hasFilters()||c("AdsMgmtUseFilterIntentionProvider")().isIntentionShown;a=c("AdsAccountStore").getSelectedAccount().getValue();b=c("AdFLEXConfig")==null?void 0:(b=c("AdFLEXConfig").get())==null?void 0:b.getRedirectRoute==null?void 0:b.getRedirectRoute(a);b!=null&&b.navigate();b=c("adsUEditorAdgroupAllDraftsAndEditorTrayOpenSelector")();var m=c("AdsPEDcpSidePanelProvider")().isSidePanelOpen,n=c("AdsPEDcpSidePanelProvider")().selectedVizType,o=null,p=0;if(c("gkx")("4651"))switch(f){case"campaign":c("adsMgmtCampaignGroupSelectionSelector")!=null&&(p=c("adsMgmtCampaignGroupSelectionSelector")().size);break;case"ad_set":c("adsMgmtCampaignSelectionSelector")!=null&&(p=c("adsMgmtCampaignSelectionSelector")().size);break;case"ad":c("adsMgmtAdgroupSelectionSelector")!=null&&(p=c("adsMgmtAdgroupSelectionSelector")().size)}else{o=[];switch(f){case"campaign":c("adsMgmtCampaignGroupSelectionSelector")!=null&&(o=c("adsMgmtCampaignGroupSelectionSelector")().toArray());break;case"ad_set":c("adsMgmtCampaignSelectionSelector")!=null&&(o=c("adsMgmtCampaignSelectionSelector")().toArray());break;case"ad":c("adsMgmtAdgroupSelectionSelector")!=null&&(o=c("adsMgmtAdgroupSelectionSelector")().toArray())}p=o.length}return{account:a,areAllAdGroupsNew:b,hasBulkEditDialog:g,showFilter:d("AdsMgmtDimensionSelectors").hasFiltersSelector(),hasAdLimitsRecommendationResolution:g,shouldLoadRealFilterContainer:l,primaryViewWidth:c("adsMgmtPrimaryViewWidthStyleSelector")(),section:e,isValidMidflightResolutionFlow:i,isVisibleMidflightRecommendationResolutionFlow:j,isVisiblePreFlightRecommendationResolutionFlow:k,isAutoflowEducationModalShown:c("AdsAutoflowEducationModalProvider")().isAutoflowEducationModalShown,midFlightRecommendationData:h,isDcpSidePanelOpen:m,selectedAdObjectIDs:o,selectedAdObjectIDsCount:p,selectedAdObjectLevel:f,sidePanelVizType:n}};function b(b){b=a.call(this,b)||this;b.$2=function(a,b){c("AdsPELayoutSetMidFlightResolutionCardSizeAction").dispatch({height:b},{line:"970",module:"AdsPEManageAdsPaneContainer.react.js",moduleID:f.id}),c("AdsPELayoutSetPreFlightResolutionCardSizeAction").dispatch({height:b},{line:"973",module:"AdsPEManageAdsPaneContainer.react.js",moduleID:f.id})};b.$3=function(a,b){c("AdsPELayoutSetAdLimitsRecommendationResolutionCardSizeAction").dispatch({height:b},{line:"982",module:"AdsPEManageAdsPaneContainer.react.js",moduleID:f.id})};b.$4=function(){var a=O.current;a&&d("DOMEventListener").add(a,"wheel",w,{passive:!1})};b.$1=function(){var a=O.current;a&&d("DOMEventListener").remove(a,"wheel",w,{passive:!1})};c("QPLSharing").emitPoint("LOAD_TABLE","MANAGE_ADS_PANE_CONTAINER_MOUNT_START");return b}var e=b.prototype;e.componentDidMount=function(){c("QPLSharing").emitPoint("LOAD_TABLE","MANAGE_ADS_PANE_CONTAINER_MOUNT_END")};e.componentWillUnmount=function(){this.$1()};e.render=function(){var a,b,e=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsPETableRouteContainer",children:k.jsx(c("AdsPETableRouteContainer.react"),{})}),g=this.state.hasBulkEditDialog?k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsBulkEditDialogContainer",children:k.jsx(z,{})}):null,h=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsABTestingDialogContainer",children:k.jsx(K,{})}),i=x!==null?x&&k.jsx(x,{}):null,j=y&&k.jsx(y,{}),l=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsCBOBulkEditDialogContainer",children:k.jsx(A,{})}),t=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsStatusChangeDialogContainer",children:k.jsx(B,{})}),w=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsMgmtArchivedCustomMetricsListLazyContainer",children:k.jsx(C,{isShown:!0})}),M=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsExperimentsRunWinnerModalContainer",children:k.jsx(D,{})}),Q=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsTALSurfaceToast",children:k.jsx(F,{})}),R=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"ShopsAdsOnboardingModalContainerLazy",children:k.jsx(c("ShopsAdsOnboardingModalContainerLazy.react"),{})}),S=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsColumnFlexingModalContainer",children:k.jsx(H,{})}),T=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsGenAIAlphaTestModalContainer",children:k.jsx(I,{})});a=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsTALRerunTestModalContainer",children:k.jsx(E,{adAccountTimeZoneId:(a=(a=this.state.account)==null?void 0:a.timezone_id)!=null?a:c("DateTime").localNow().getTimezoneID()})});var U=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsMessagingResultsUpsellModalContainer",children:k.jsx(c("CometPlaceholder.react"),{fallback:null,children:k.jsx(u,{})})}),V=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"ShopsAdsMetricsOnboardingTourContainerLazy",children:k.jsx(c("ShopsAdsMetricsOnboardingTourContainerLazy.react"),{})}),W=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsManagerTableOpportunityScoreNUXTourContainer",children:k.jsx(J,{accountOpportunityScore:c("adsManagerTableOpportunityScoreNUXSelector")().accountOpportunityScore})}),X=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"MessageMarketingAddMessagesDeliveredColumnNUXContainer",children:k.jsx(c("MessageMarketingAddMessagesDeliveredColumnNUXContainerLazy.react"),{})}),aa=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AMTableResolutionFlowContainer",children:k.jsx(v,{})}),ba=k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsManagerSourceOfTruthNuxContainer",children:k.jsx(L,{})});c("AdFLEXWhatsappMmInboxReTosConfig")==null?void 0:(b=c("AdFLEXWhatsappMmInboxReTosConfig").get())==null?void 0:b.getWhatsAppInboxReTosModal==null?void 0:b.getWhatsAppInboxReTosModal();b=this.state;var ca=b.account,da=b.hasAdLimitsRecommendationResolution,ea=b.shouldLoadRealFilterContainer,fa=b.isValidMidflightResolutionFlow,Y=b.isVisibleMidflightRecommendationResolutionFlow,Z=b.isVisiblePreFlightRecommendationResolutionFlow,ga=b.primaryViewWidth,$=b.section,ha=b.isAutoflowEducationModalShown,ia=b.midFlightRecommendationData,ja=b.selectedAdObjectIDsCount;b=b.selectedAdObjectLevel;T=k.jsxs(k.Fragment,{children:[c("gkx")("1291")?T:null,l,t,j,w,M,a,Q,R,S,V,i,U,X,!Y&&!Z&&W,aa,d("AdsMgmt2024H1ExperimentUtils").getIsAccountInSourceOfTruthTestGroupWithoutExposure()&&ba]});t=k.jsx(c("AdsDeferRenderingForPerfContainer.react"),{placeholder:null,selector:c("adsMgmtDataFetchingStatusSelector"),children:k.jsx(N,{})});e=k.jsxs(P,{style:{display:"flex",flexDirection:"column"},children:[t,g,k.jsx(P,{style:{display:"flex"},children:k.jsx("div",{className:"_2ut_",style:{display:"flex"},children:e})})]});j=k.jsxs(P,{style:{display:"flex",flexDirection:"column"},children:[t,g,l,h,k.jsx(P,{style:{display:"flex"},children:k.jsx("div",{className:"_2ut_",style:{display:"flex"},children:e})})]});if(this.state.section==="PACKAGE_AD_CREATION")return j;if(this.state.section==="CREATOR_ADS"){return k.jsx(s,{adAccountID:(w=this.state.account)==null?void 0:w.account_id})}e=k.jsx(c("AdsSpinnerGroup.react"),{children:e});M=k.jsx("div",{className:"_1hv5",style:{height:"98%"},children:k.jsx(c("LoadingMarkerArea.react"),{name:"AdsPEManageAdsPaneContainer",owner:"ads_management",children:e})});a=this.state.showFilter?k.jsx(c("AdsMgmtSearchAndFilterGeoCard.react"),{isValidMidflightResolutionFlow:fa,shouldLoadRealFilterContainer:ea}):null;Q=$==="ACCOUNT"||$==="ADVERTISING_SETTINGS"||$==="AD_ACCOUNT_SETTINGS"||$==="CREATIVES";R=Y?k.jsx(c("CometPlaceholder.react"),{fallback:null,name:f.id,children:k.jsx(c("CometPlaceholder.react"),{fallback:k.jsx(m,{midFlightRecommendationData:ia}),name:f.id,children:k.jsx(c("ResponsiveBlock.react"),{onResize:this.$2,children:k.jsx(n,{})})})}):null;S=Z?k.jsx(c("CometPlaceholder.react"),{fallback:null,name:f.id,children:k.jsx(c("ResponsiveBlock.react"),{onResize:this.$2,children:k.jsx(o,{})})}):null;V=k.jsx(c("CometPlaceholder.react"),{fallback:null,name:f.id,children:k.jsx(c("ResponsiveBlock.react"),{onResize:this.$2,children:k.jsx(G,{})})});i=da?k.jsx(c("CometPlaceholder.react"),{fallback:null,name:f.id,children:k.jsx(c("ResponsiveBlock.react"),{onResize:this.$3,children:k.jsx(p,{})})}):null;U=ha?k.jsx(q,{isAutomaticFlow:!0,logSeeNewEducationModalPage:c("emptyFunction"),onChangeToAutomaticFlow:c("emptyFunction"),onCloseEducationModal:function(){return c("AdsAutoflowEducationModalAction").dispatch({isAutoflowEducationModalShown:!1},{line:"825",module:"AdsPEManageAdsPaneContainer.react.js",moduleID:f.id})}}):null;X=k.jsx(c("CometPlaceholder.react"),{fallback:null,name:f.id,children:k.jsx(r,{})});return c("AdsALSurface")({surface:c("AdsALSurfaceTablePlugin")})(k.jsxs("div",{className:"_2utw",ref:O,style:{height:"100%",display:"flex",flexDirection:"column"},onMouseEnter:this.$4,onMouseLeave:this.$1,children:[k.jsxs(c("AdsErrorBoundary.react"),{moduleName:f.id,children:[T,R,U,S,V,i]}),a,Q?null:this.$5(),k.jsx(P,{className:"_3-9a",style:{width:ga,display:"flex",flexDirection:"column",overflow:"auto"},children:this.state.isDcpSidePanelOpen&&d("AdsMgmt2024H1ExperimentUtils").getIsAccountInDcpPhaseOneQETestGroup()?k.jsxs("div",{style:{display:"flex",flexDirection:"row",height:"100%",overflow:"hidden"},children:[k.jsx(P,{className:"_2utz",style:{width:"70%",marginRight:8},children:M}),k.jsx("div",{className:"_1hv5",style:{width:"30%",height:"98%"},children:k.jsx(c("AdsMgmtCampaignTableSidePanel.react"),{selectedAdObjectIDsCount:ja,selectedAdObjectLevel:b,selectedVizType:this.state.sidePanelVizType})})]}):k.jsx(P,{className:"_2utz",children:M})}),k.jsxs(c("AdsErrorBoundary.react"),{moduleName:f.id,children:[X,this.$6(ca)]})]}))};e.$6=function(a){if(a!=null){var b;b=c("AdFLEXCampaignEditControlConfig")==null?void 0:(b=c("AdFLEXCampaignEditControlConfig").get())==null?void 0:b.getAPIXHideComponentWrapper;b=b!=null?k.jsx(b,{account:a,children:k.jsx(l,{account:a})}):k.jsx(l,{account:a});return b!=null?k.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:c("AdsManagerRelayEnvironment"),children:k.jsx(c("CometPlaceholder.react"),{fallback:null,name:f.id,children:b})}):null}return this.state.areAllAdGroupsNew&&a!=null&&!d("AdsAccountCreationUtils").accountHasPermissionToCreateAds(a)&&a.business!=null?k.jsx(c("CometPlaceholder.react"),{fallback:null,children:k.jsx(t,{adAccount:a,adLevel:"ad",businessUserType:c("adsPermissionRequestGetUserRole")(),errorCode:1487194})}):(b=c("AdFLEXInboxNuxConfig")==null?void 0:(b=c("AdFLEXInboxNuxConfig").get())==null?void 0:b.getMessageCampaignsGoToInboxNux==null?void 0:b.getMessageCampaignsGoToInboxNux(a))!=null?b:null};e.$5=function(){return k.jsx("div",{className:"_3-8r",id:"peTabs",children:k.jsx(c("AdsErrorBoundary.react"),{moduleName:"AdsMgmtNavigationTabsContainer",children:k.jsx(c("AdsMgmtNavigationTabsContainer.react"),{})})})};return b}(k.Component);function P(a){var b=a.children,c=a.style;a=babelHelpers.objectWithoutPropertiesLoose(a,["children","style"]);return k.jsx("div",babelHelpers["extends"]({},a,{style:babelHelpers["extends"]({height:"100%"},c),children:b}))}P.displayName=P.name+" [from "+f.id+"]";e=c("AdsFluxContainer").create(b,{name:f.id});g["default"]=e}),98);
-----
MessageMarketingBetaToSDialogOpen",["MessageMarketingBetaToSModalAction"],(function(a,b,c,d,e,f,g){"use strict";function a(){c("MessageMarketingBetaToSModalAction").dispatch({isModalShown:!0},{line:"16",module:"MessageMarketingBetaToSDialogOpen.js",moduleID:f.id})}g["default"]=a}),98);
-----
MessageMarketingBetaToSModalAction",["Laminar","MessageMarketingBetaToSModalProvider","MessageMarketingBetaToSModalReducerPlugin"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("MessageMarketingBetaToSModalReducerPlugin"),b("MessageMarketingBetaToSModalProvider"),{},"")]},function(){return[]},"MessageMarketingBetaToSModalActionPlugin");e.exports=a}),null);
-----
MessageMarketingBetaToSModalReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return{isModalShown:b.isModalShown}}};b=a;f["default"]=b}),66);
-----
MessageMarketingMBSInboxToSModalAction",["Laminar","MessageMarketingMBSInboxToSModalProvider","MessageMarketingMBSInboxToSModalReducerPlugin"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("MessageMarketingMBSInboxToSModalReducerPlugin"),b("MessageMarketingMBSInboxToSModalProvider"),{},"")]},function(){return[]},"MessageMarketingMBSInboxToSModalActionPlugin");e.exports=a}),null);
-----
MessageMarketingMBSInboxToSModalReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return{isModalShown:b.isModalShown}}};b=a;f["default"]=b}),66);
-----
AdFLEXWhatsappMmInboxReTosMessageMarketingConfigPlugin",["AdsPERouterHelper","MessageMarketingMBSInboxToSModalAction"],(function(a,b,c,d,e,f,g){"use strict";a={type:"flexWhatsappMmInboxReTosConfig",key:"marketingMessages",tool:"MANAGE_MESSAGES",getWhatsAppInboxReTosModal:function(){var a=c("AdsPERouterHelper").getRouter().getQueryParams();a=(a=a.show_inbox_re_tos)!=null?a:!1;a&&c("MessageMarketingMBSInboxToSModalAction").dispatch({isModalShown:!0},{line:"29",module:"AdFLEXWhatsappMmInboxReTosMessageMarketingConfigPlugin.js",moduleID:f.id});return null}};b=a;g["default"]=b}),98);
-----
AdsManagerLazyLoadModals.react",["AAAMediaPickerVisibilityProvider","AdAccountDSAInfoChangeVerificationModalProvider","AdProposalFlowProvider","AdsAIActionabilityViewChangesModalDataProvider","AdsAILoggingUtils","AdsAIUtils","AdsBrowserExtensionErrorDataProvider","AdsCampaignGroupBudgetBulkAdoptionDialogProvider","AdsCampaignStructureCreationLoadingUIDataProvider","AdsCatalogCreationShopifyOptimizedOnboardingModalContainerLazy.react","AdsCertificationLearnMoreDataProvider","AdsCertificationUserHasCertified","AdsClipboardDataProvider","AdsConvergenceStoreTrafficL3PageSelectorConfirmationDialogUIDataProvider","AdsDuplicationUpgradeChangesSummaryModalProvider","AdsExperimentsLightweightTestConfirmationDialogProvider","AdsExternalCreationConfirmationDialogPlaceholder.react","AdsGuidanceAccountSpendLimitDialogDataProvider","AdsLWIGraduationSuccessfulCompletionDataProvider","AdsLazyContainer","AdsLazyContainerPreloaderProvider","AdsLoginAs","AdsMgmt2024H1ExperimentUtils","AdsMgmtDeleteDraftDialogShownProvider","AdsOfflineEventSetOptimizationSurveyDialogContainerLazy.react","AdsPEAudienceSplittingUIDataProvider","AdsPECreationUIProvider","AdsPECrepeCampaignStructureCreationLoadingUIDataProvider","AdsPEDigitalCircularAdAccountSelectionDialogContainer.react","AdsPEImportStore","AdsPELazyDialogDataProvider","AdsPEModalStatusContainer.react","AdsPENavigationProvider","AdsPEPublishDialogPlaceholder.react","AdsPEPurgeArchiveProvider","AdsPEQuickCreateDialogContainer.react","AdsPEReachFrequencyStatusTransitionDialogBootloadContainer.react","AdsPETableViewSelectors","AdsPreflightRecommendationHubProvider","AdsProgressiveDisclosureNUXModalProvider","AdsRecoverPostProgressModalContainerLazy.react","AdsReportBuilderCompareAttributionWindowUtils","AdsRuleDialogBootloadContainer.react","AdsSAFRCategoryInfoModalProvider","AdsSAFREducationModalProvider","AdsSessionExpiredDialogDataProvider","AdsSplitTestChangeBlockedDialogBootloadContainer.react","AdsToggleZeroConversionWarningDialogDataProvider","AdsUnificationCampaignNUXModalProvider","AdvertiserIntegrityPhoneVerificationWizardProvider","CometPlaceholder.react","JSResource","MessageMarketingBetaToSModalProvider","MessageMarketingMBSInboxToSModalProvider","PostPublishMobileUpsellProvider","ShopsAdsShopifyOptimizedOnboardingModalContainerLazy.react","SpecialAdCategoryErrorGuidanceCardTuneProvider","URIInitDataUtil","adsCreationIsDialogShownSelector","adsIsInCampaignGroupLevelSelector","isEmpty","lazyLoadComponent","react","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a,b){return function(){var c=a();c&&b();return c}}var k=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsUEditorPreflightRecommendationHubBulkResolutionModal.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("AdsPreflightRecommendationHubProvider")().shouldShowBulkResolutionModal},function(){return c("vulture")("7dyEhmAuULr")}),stores:[c("AdsPreflightRecommendationHubProvider").toFluxStore()]}),l=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsAccountSpendLimitPostPublishModalContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return c("AdsGuidanceAccountSpendLimitDialogDataProvider")().showPostPublishAccountSpendLimitDialog},stores:[c("AdsGuidanceAccountSpendLimitDialogDataProvider").toFluxStore()]}),m=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsAccountSpendLimitManagerModalContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("AdsGuidanceAccountSpendLimitDialogDataProvider")().showAccountSpendLimitManageDialog},function(){return c("vulture")("8Trz97XOWS")}),stores:[c("AdsGuidanceAccountSpendLimitDialogDataProvider").toFluxStore()]}),n=c("AdsPELazyDialogDataProvider").toFluxStore(),o=c("AdsPEPurgeArchiveProvider").toFluxStore(),p=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEDiscardConfirmDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return n.getState().discardConfirmDialogShown.dialogShown},stores:[n]}),q=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEEndStudyConfirmDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return n.getState().endStudyConfirmDialogShown.dialogShown},function(){}),stores:[n]}),r=d("AdsLazyContainer").create({loader:c("JSResource")("AdsPEUploadPreviewDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:c("AdsPEPublishDialogPlaceholder.react"),shouldShow:function(){return n.getState().uploadPreviewDialogShown},stores:[n]}),s=c("AdsToggleZeroConversionWarningDialogDataProvider").toFluxStore(),t=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPrePublishZeroConversionWarningDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return s.getState().isVisible},stores:[s]}),u=d("AdsLazyContainer").create({loader:c("JSResource")("AdvertiserIntegrityPhoneVerificationWizardLauncher.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:function(){return c("AdvertiserIntegrityPhoneVerificationWizardProvider")().isVisible},stores:[c("AdvertiserIntegrityPhoneVerificationWizardProvider").toFluxStore()]}),v=d("AdsLazyContainer").create({loader:c("JSResource")("AdsSpecialAdCategoryErrorGuidanceCardTuneDialogLauncher.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:a(function(){return c("SpecialAdCategoryErrorGuidanceCardTuneProvider")().isVisible},function(){}),stores:[c("SpecialAdCategoryErrorGuidanceCardTuneProvider").toFluxStore()]}),w=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsExperimentsLightweightTestConfirmationDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("AdsExperimentsLightweightTestConfirmationDialogProvider")().isVisible},function(){return c("vulture")("6KH2o2GS8Os")}),stores:[c("AdsExperimentsLightweightTestConfirmationDialogProvider").toFluxStore()]}),x=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEOverAdLimitConfirmPublishDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return n.getState().overAdLimitPublishConfirmDialogShown.dialogShown},function(){}),stores:[n]}),y=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPELowReachRecommendationDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return n.getState().lowReachRecommendationDialogState.dialogShown},function(){}),stores:[n]}),z=c("AdsPECreationUIProvider").toFluxStore(),A=d("AdsLazyContainer").create({loader:c("JSResource")("AdsPEConvergencePrefillContentContainer.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:c("AdsExternalCreationConfirmationDialogPlaceholder.react"),shouldShow:function(){return z.getState().isCreationOpen},stores:[z]}),B=d("AdsLazyContainer").create({loader:c("JSResource")("AdsPEPublishReceiptDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:c("AdsPEPublishDialogPlaceholder.react"),shouldShow:function(){return n.getState().publishReceiptDialogShown},stores:[n]}),C=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPELeadDownloadDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return n.getState().leadDownloadDialogShown},stores:[n]}),D=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsDuplicationDialogUpgradeCombinedSwitchContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return c("adsCreationIsDialogShownSelector")()},stores:c("adsCreationIsDialogShownSelector").getStores()}),E=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEPublishConfirmDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return n.getState().publishConfirmDialogShown.dialogShown},stores:[n]}),F=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEDeleteConfirmDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return n.getState().deleteConfirmDialogShown},stores:[n]}),G=c("AdsPECrepeCampaignStructureCreationLoadingUIDataProvider").toFluxStore(),H=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPECrepeCampaignStructureCreateContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return G.getState().isCreating},function(){}),stores:[G]}),I=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsCampaignGroupBudgetMidflightEducationDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return n.getState().campaignMidflightEducationDialogState.dialogShown},stores:[n]}),J=c("AdsCampaignStructureCreationLoadingUIDataProvider").toFluxStore(),K=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsCampaignStructureCreateContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return J.getState().isCreating},stores:[J]});e=c("AdsConvergenceStoreTrafficL3PageSelectorConfirmationDialogUIDataProvider").toFluxStore();var L=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEConvergenceStoreTrafficPageSelectorConfirmationDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("AdsConvergenceStoreTrafficL3PageSelectorConfirmationDialogUIDataProvider")().showDialog},function(){return c("vulture")("8LyLJDUuEkg")}),stores:[e]}),M=c("AdsPEAudienceSplittingUIDataProvider").toFluxStore(),N=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEAudienceSplittingDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return M.getState()},function(){}),stores:[M]}),O=c("AdsBrowserExtensionErrorDataProvider").toFluxStore(),aa=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsBrowserExtensionErrorDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return!!O.getState().extensionURL},stores:[O]}),P=c("AdsSessionExpiredDialogDataProvider").toFluxStore(),ba=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsSessionExpiredDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return P.getState().isShown},stores:[P]}),ca=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEServerBulkImportDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return c("AdsPEImportStore").getState().dialogOpen},stores:[c("AdsPEImportStore")]}),da=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("MessageMarketingBetaToSDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("MessageMarketingBetaToSModalProvider")().isModalShown},function(){return c("vulture")("LhgShNiutj")}),stores:[c("MessageMarketingBetaToSModalProvider").toFluxStore()]}),ea=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("MessageMarketingMBSInboxToSModalContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("MessageMarketingMBSInboxToSModalProvider")().isModalShown},function(){}),stores:[c("MessageMarketingMBSInboxToSModalProvider").toFluxStore()]}),fa=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEPurgeArchiveDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return o.getState().isDialogShown},stores:[o]}),Q=c("AdsClipboardDataProvider").toFluxStore();e=c("AdsLazyContainerPreloaderProvider").toFluxStore();var ga=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsClipboardDialogVisibilityContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldPreload:function(){return c("AdsLazyContainerPreloaderProvider")().get("clipboardDialog")},shouldShow:a(function(){return Q.getState().showClipboard},function(){}),stores:[Q,e]}),ha=d("AdsLazyContainer").create({loader:c("JSResource")("AdsPEBusinessIntegrityTwoFacAuthStartupDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:a(function(){return d("URIInitDataUtil").shouldShowAdsBITwoFacDialogOnStartup()},function(){return c("vulture")("6SqY7e5cJyR")}),stores:[]}),R=c("AdsMgmtDeleteDraftDialogShownProvider").toFluxSelector(),ia=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPEDeleteDraftDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return R().isShown},stores:R.getStores()}),S=c("AdsCertificationLearnMoreDataProvider").toFluxSelector(),ja=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsRegulatedCategorySelectorLearnMoreContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return S().showLearnMoreDialog},function(){return c("vulture")("9E4XF4Pfeb6")}),stores:S.getStores()}),T=c("AdsSAFREducationModalProvider").toFluxSelector(),ka=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsRegulatedCategorySeeDetailModalPopupWindowContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return T().showEducationModal},function(){}),stores:T.getStores()}),U=c("AdsSAFRCategoryInfoModalProvider").toFluxSelector(),la=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsRegulatedCategoryCategoryInfoModalPopupWindowContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return U().showInfoModal},function(){}),stores:U.getStores()}),ma=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdProposalFlowContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("AdProposalFlowProvider")().flow!=null},function(){}),stores:[c("AdProposalFlowProvider").toFluxStore()]}),na=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsUEditorCampaignGroupBudgetBulkAdoptionWrapper.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return c("AdsCampaignGroupBudgetBulkAdoptionDialogProvider")().shown},function(){}),stores:[c("AdsCampaignGroupBudgetBulkAdoptionDialogProvider").toFluxStore()]}),oa=c("lazyLoadComponent")(c("JSResource")("AdsPEEmployeeSelectDraftContainer.react").__setRef("AdsManagerLazyLoadModals.react")),pa=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsCreatePageDialogContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return n.getState().createPageDialogState.dialogShown},function(){}),stores:[n]}),V=c("AdsDuplicationUpgradeChangesSummaryModalProvider").toFluxStore(),qa=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsDuplicationUpgradeChangesSummaryModalContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return V.getState().shouldShow},function(){}),stores:[V]}),W=c("AdsProgressiveDisclosureNUXModalProvider").toFluxStore(),ra=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsProgressiveDisclosureNUXModalContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:function(){return W.getState().modalScenario!=null},stores:[W]}),X=c("AdsUnificationCampaignNUXModalProvider").toFluxStore(),sa=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsUnificationCampaignNUXModalContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return X.getState().modalScenario!=null},function(){}),stores:[X]}),Y=c("AAAMediaPickerVisibilityProvider").toFluxStore(),ta=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsSmartAppPromotionAssetLiquidityMediaPickerContextContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return Y.getState().shouldShow},function(){}),stores:[Y]}),ua=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsSBGMEEngagementDetailsContainer.react").__setRef("AdsManagerLazyLoadModals.react"),shouldShow:a(function(){return n.getState().sbgMEEngagementDetailsDialogState.dialogShown},function(){}),stores:[n]});e=c("AdsPETableViewSelectors").tableViewSpecSelector.getStores();var Z=c("AdsPENavigationProvider").toFluxStore(),va=d("AdsLazyContainer").create({loader:c("JSResource")("AdsNoConversionColumnToastContainer.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:a(function(){return Ba()},function(){}),stores:[].concat(e,[Z])}),$=c("PostPublishMobileUpsellProvider").toFluxStore(),wa=d("AdsLazyContainer").create({loader:c("JSResource")("PostPublishMobileUpsell.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:function(){return $.getState().modalEnabled},stores:[$]}),xa=d("AdsLazyContainer").create({loader:c("JSResource")("AdAccountDSAInfoChangeVerificationModalLauncher.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:a(function(){return c("AdAccountDSAInfoChangeVerificationModalProvider")().isVisible},function(){}),stores:[c("AdAccountDSAInfoChangeVerificationModalProvider").toFluxStore()]}),ya=d("AdsLazyContainer").create({loader:c("JSResource")("LWIGraduationSuccessfulCompletionModalWrapper.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:a(function(){var a=c("adsIsInCampaignGroupLevelSelector")(),b=c("AdsLWIGraduationSuccessfulCompletionDataProvider")().shouldShowSuccessfulCompletionDialog;return a&&b},function(){}),stores:[].concat(c("adsIsInCampaignGroupLevelSelector").getStores(),[c("AdsLWIGraduationSuccessfulCompletionDataProvider").toFluxStore()])}),za=d("AdsLazyContainer").create({loader:c("JSResource")("AdsAIActionabilityViewChangesModal.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:a(function(){var a=c("AdsAIActionabilityViewChangesModalDataProvider")().shouldShowViewChangesModal;a=a&&d("AdsAIUtils").getIsAdsAIBetaM2ActionabilityEnabledOnCurrentSurface();a&&d("AdsAILoggingUtils").logImpressionAdsAIViewChanges();return a},function(){}),stores:[c("AdsAIActionabilityViewChangesModalDataProvider").toFluxStore()]}),Aa=d("AdsLazyContainer").create({loader:c("JSResource")("AdsCertificationDialogNux.react").__setRef("AdsManagerLazyLoadModals.react"),placeholderComponent:null,shouldShow:function(){return!c("AdsCertificationUserHasCertified").HAS_USER_CERTIFIED},stores:[]});function Ba(){var a=["AdPane","CampPane","CampaignGroupPane"].includes(Z.getState().currentPane),b=c("AdsPETableViewSelectors").tableViewSpecSelector(),e=b.attributionWindows,f=b.sourceOfTruthSources,g=b.viewHasAttributionSupportingColumn;b=b.viewHasSourceOfTruthSupportingColumn;e=a&&d("AdsReportBuilderCompareAttributionWindowUtils").hasNonDefaultAttributionWindows(e)&&!g;g=a&&!(h||(h=c("isEmpty")))(f)&&b!==!0&&d("AdsMgmt2024H1ExperimentUtils").getIsAccountInSourceOfTruthTestGroupWithoutExposure();return e||g}function b(){return j.jsxs(j.Fragment,{children:[j.jsx(ba,{}),j.jsx(r,{}),j.jsx(B,{}),j.jsx(ca,{}),j.jsx(H,{}),j.jsx(N,{}),j.jsx(c("AdsRuleDialogBootloadContainer.react"),{}),j.jsx(K,{}),j.jsx(c("AdsPEQuickCreateDialogContainer.react"),{}),j.jsx(F,{}),j.jsx(I,{}),j.jsx(ia,{}),j.jsx(p,{}),j.jsx(q,{}),j.jsx(c("AdsPEReachFrequencyStatusTransitionDialogBootloadContainer.react"),{}),j.jsx(w,{}),j.jsx(c("AdsSplitTestChangeBlockedDialogBootloadContainer.react"),{}),j.jsx(D,{}),j.jsx(fa,{}),j.jsx(c("AdsPEModalStatusContainer.react"),{}),j.jsx(aa,{}),j.jsx(C,{}),d("AdsLoginAs").isUsingLoginAs()?j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx("span",{}),name:f.id,children:j.jsx(oa,{})}):null,j.jsx(ja,{}),j.jsx(ka,{}),j.jsx(la,{}),j.jsx(E,{}),j.jsx(c("AdsOfflineEventSetOptimizationSurveyDialogContainerLazy.react"),{}),j.jsx(A,{}),j.jsx(L,{}),j.jsx(ga,{}),j.jsx(na,{}),j.jsx(ma,{}),j.jsx(x,{}),j.jsx(y,{}),j.jsx(t,{}),j.jsx(u,{}),j.jsx(v,{}),j.jsx(pa,{}),j.jsx(qa,{}),j.jsx(ra,{}),j.jsx(sa,{}),j.jsx(ta,{}),j.jsx(da,{}),j.jsx(ea,{}),j.jsx(c("AdsPEDigitalCircularAdAccountSelectionDialogContainer.react"),{}),j.jsx(ua,{}),j.jsx(ha,{}),j.jsx(va,{}),j.jsx(l,{}),j.jsx(k,{}),j.jsx(m,{}),j.jsx(wa,{}),j.jsx(c("ShopsAdsShopifyOptimizedOnboardingModalContainerLazy.react"),{}),j.jsx(xa,{}),j.jsx(ya,{}),j.jsx(c("AdsCatalogCreationShopifyOptimizedOnboardingModalContainerLazy.react"),{}),j.jsx(za,{}),j.jsx(Aa,{}),j.jsx(c("AdsRecoverPostProgressModalContainerLazy.react"),{})]})}b.displayName=b.name+" [from "+f.id+"]";g["default"]=b}),98);
-----
MessageMarketingBetaToSModalProvider",["Laminar","MessageMarketingBetaToSModalProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("MessageMarketingBetaToSModalProviderPlugin"),"MessageMarketingBetaToSModalProviderPlugin")}),null);
-----
MessageMarketingMBSInboxToSModalProvider",["Laminar","MessageMarketingMBSInboxToSModalProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("MessageMarketingMBSInboxToSModalProviderPlugin"),"MessageMarketingMBSInboxToSModalProviderPlugin")}),null);
-----
MessageMarketingBetaToSModalProviderPlugin",[],(function(a,b,c,d,e,f){"use strict";a={initialState:{isModalShown:!1}};b=a;f["default"]=b}),66);
-----
MessageMarketingMBSInboxToSModalProviderPlugin",[],(function(a,b,c,d,e,f){"use strict";a={initialState:{isModalShown:!1}};b=a;f["default"]=b}),66);
-----
SYDLazyDialogContainer.react",["AdsAddDiscountForCommerceProvider","AdsAddDiscountForCommerceRegistry","AdsAddDiscountForCommerceUtil","AdsAutoflowSYDEducationModalProvider","AdsLazyContainer","AdsPreCreateRecommendationResolutionFlowProvider","AdsSYDLazyDialogProvider","JSResource","MessageMarketingBetaToSModalProvider","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");b("AdsAddDiscountForCommerceRegistry");var j=c("AdsSYDLazyDialogProvider").toFluxStore(),k=c("AdsAddDiscountForCommerceProvider").toFluxStore(),l=c("AdsPreCreateRecommendationResolutionFlowProvider").toFluxStore(),m=d("AdsLazyContainer").create({loader:c("JSResource")("SYDAlertsResolutionFlowContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().sydAlertsResolutionFlowState.resolutionFlowType!==null},placeholderComponent:null}),n=d("AdsLazyContainer").create({loader:c("JSResource")("AdsAddDiscountForCommerceContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[k],shouldShow:function(){return k.getState().ctaActionState!==d("AdsAddDiscountForCommerceUtil").CTAActionState.BEFORE_CLICK},placeholderComponent:null}),o=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("AdsPersonalSettingsContactFormDialogSYDContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().adsPersonalSettingsContactFormDialogState.dialogShown}}),p=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("SYDMobileUpsellDialogContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().sydMobileUpsellDialogState.dialogShown}}),q=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("SYDAYMTProactiveChatOptInDialogContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().sydAymtProactiveChatOptInDialogState.dialogShown}}),r=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("SYDAYMTAdRewardsMPIneligibleOptInDialogContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().sydAymtAdRewardsMPIneligibleOptInState.dialogShown}}),s=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("SYDAYMTMMAwarenessSignUpDialogContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().sydAymtMMAwarenessSignUpDialogState.isDialogShown}}),t=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("MessageMarketingBetaToSDialogContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[c("MessageMarketingBetaToSModalProvider").toFluxStore()],shouldShow:function(){return c("MessageMarketingBetaToSModalProvider")().isModalShown}}),u=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("ShareCommerceManagerMarketingTagsSectionLinkDialogContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().shareCommerceManagerMarketingTagsSectionLinkDialogState.dialogShown}}),v=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("SYDAYMTCatalogQualitySignalsOptInDialogContainer.react").__setRef("SYDLazyDialogContainer.react"),stores:[j],shouldShow:function(){return j.getState().sydAymtCatalogQualitySignalsOptInDialogState.dialogShown}}),w=c("AdsAutoflowSYDEducationModalProvider").toFluxStore(),x=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("SYDGuidanceHubAutoFlowEducationModalContainer.react").__setRef("SYDLazyDialogContainer.react"),shouldShow:function(){return w.getState().isAutoflowSYDEducationModalShown},stores:[w]}),y=d("AdsLazyContainer").createForDialog({loader:c("JSResource")("SYDGuidanceHubDialogResolutionFlowContainer.react").__setRef("SYDLazyDialogContainer.react"),shouldShow:function(){var a=l.getState();return a.recommendationType!=null},stores:[l]});function a(){return i.jsxs(i.Fragment,{children:[i.jsx(m,{}),i.jsx(o,{}),i.jsx(p,{}),i.jsx(q,{}),i.jsx(s,{}),i.jsx(t,{}),i.jsx(u,{}),i.jsx(v,{}),i.jsx(n,{}),i.jsx(r,{}),i.jsx(x,{}),i.jsx(y,{})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MarketingMessagesLWITOSGeoModal.react",["BizInboxMarketingMessageEntrypointContext","GeoBaseModal.react","GeoBaseSpacingLayout.react","GeoBaseText.react","GeoButton.react","GeoFlexbox.react","GeoIcon.react","GeoIllustrationCard.react","GeoModalFooter.react","GeoNotice.react","GeoSection.react","GeoTextPairing.react","Image.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext;function a(a){a=a.TOSConfig;var b=a.content,e=a.displayError,f=a.isTosModalShown,g=a.onAcceptTos;a=a.onDismiss;var h=b.buttonLabel,k=b.description,l=b.disclaimer,m=b.error,n=b.title;b=b.upsellItems;var o=j(d("BizInboxMarketingMessageEntrypointContext").BizInboxMarketingMessageEntrypointStateContext);o=o.isSideSheetShown;e=i.jsx(i.Fragment,{children:e&&i.jsx(c("GeoNotice.react"),{status:"warning",children:m})});return i.jsx(c("GeoBaseModal.react"),{isShown:f||o,onHide:a,width:440,children:i.jsx(c("GeoIllustrationCard.react"),{"data-testid":void 0,footer:i.jsx(c("GeoModalFooter.react"),{primaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,label:h,onClick:g,variant:"primary"})}),heading:"Heading",image:i.jsx(c("Image.react"),{src:"/images/tofu/nux/mbs-education-hub-create-ads-b4b_4x.png",width:"100%"}),isDismissable:!0,children:i.jsxs(c("GeoSection.react"),{children:[i.jsx(c("GeoTextPairing.react"),{description:k,heading:n,size:"header3"}),b.map(function(a,b){return i.jsx(c("GeoFlexbox.react"),{style:{marginTop:10},children:i.jsxs(c("GeoBaseSpacingLayout.react"),{children:[i.jsx(c("GeoIcon.react"),{icon:a.icon}),i.jsx(c("GeoTextPairing.react"),{description:a.description,heading:a.title,size:"header4"})]})},b)}),i.jsx(c("GeoFlexbox.react"),{style:{marginTop:26},children:i.jsx(c("GeoBaseText.react"),{color:"value",size:"valueDescription",children:l})}),e]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CometMarketingMessageLwiComposerContext",["LiveProducerMMLWIConsts","MMLWIFbtUtils","emptyFunction","isEmpty","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i;a=(i||d("react")).createContext;b={businessInfo:{adAccounts:[{currency:"",id:"",legacyAccountID:"",name:"",paymentMethod:{description:null,label:null}}],businessID:"",hasSignedMmTos:!1},campaignInfo:{bidAmount:null,duration:null,endDate:null,lifetimeBudget:null,startDateTime:null},composerSurface:"BIZ_INBOX",creativeInfo:{buttons:[{buttonText:null,buttonURL:null}],campaignBody:null,campaignHeadline:null,media:{imageHash:null,imageUrl:null,mediaType:null,playableUrl:null,videoID:null}},defaultPaymentMethod:{description:null,label:null},isCampaignReadyForPublish:!1,isMbsConfirmationModalShown:!1,isTosModalShown:!0,liveSellingCurrentStep:d("LiveProducerMMLWIConsts").LiveProducerMMLWICurrentStep.CREATION,liveSellingInfo:{isLiveSellingOptinOn:!0,videoID:""},pageInfo:{pageID:"",pageName:"",pageProfilePicURI:"",subscriberCount:null},publishButtonDisabledMessage:d("MMLWIFbtUtils").getMMLWIInvalidCampaignErrorMessage(),selectedAdAccountCurrency:"USD",selectedAdAccountID:null,selectedLegacyAdAccountID:null};e=function(a,b){var c;switch(b.type){case"SET_IS_TOS_MODAL_SHOWN":return babelHelpers["extends"]({},a,{isTosModalShown:b.isTosModalShown});case"SET_IS_MBS_CONFIRMATION_MODAL_SHOWN":return babelHelpers["extends"]({},a,{isMbsConfirmationModalShown:b.isMbsConfirmationModalShown});case"SET_SELECTED_LEGACY_AD_ACCOUNT_ID":return babelHelpers["extends"]({},a,{defaultPaymentMethod:l(b.selectedLegacyAdAccountID,(c=a.businessInfo)==null?void 0:c.adAccounts),selectedAdAccountCurrency:j(b.selectedLegacyAdAccountID,(c=a.businessInfo)==null?void 0:c.adAccounts),selectedAdAccountID:k(b.selectedLegacyAdAccountID,(c=a.businessInfo)==null?void 0:c.adAccounts),selectedLegacyAdAccountID:b.selectedLegacyAdAccountID});case"SET_CAMPAIGN_BODY_TEXT":c=babelHelpers["extends"]({},a,{creativeInfo:babelHelpers["extends"]({},a.creativeInfo,{campaignBody:b.campaignBody})});var d=m(c),e=d.disabledMessage;d=d.isValid;return babelHelpers["extends"]({},c,{isCampaignReadyForPublish:d,publishButtonDisabledMessage:e});case"SET_CAMPAIGN_BUTTON_TEXT":d=babelHelpers["extends"]({},a,{creativeInfo:babelHelpers["extends"]({},a.creativeInfo,{buttons:[babelHelpers["extends"]({},(c=a.creativeInfo)==null?void 0:c.buttons[0],{buttonText:b.campaignButtonText})]})});e=m(d);c=e.disabledMessage;e=e.isValid;return babelHelpers["extends"]({},d,{isCampaignReadyForPublish:e,publishButtonDisabledMessage:c});case"SET_CAMPAIGN_BUTTON_URL":e=babelHelpers["extends"]({},a,{creativeInfo:babelHelpers["extends"]({},a.creativeInfo,{buttons:[babelHelpers["extends"]({},(d=a.creativeInfo)==null?void 0:d.buttons[0],{buttonURL:b.campaignButtonUrl})]})});c=m(e);d=c.disabledMessage;c=c.isValid;return babelHelpers["extends"]({},e,{isCampaignReadyForPublish:c,publishButtonDisabledMessage:d});case"SET_LIVE_SELLING_CURRENT_STEP":return babelHelpers["extends"]({},a,{liveSellingCurrentStep:b.liveSellingCurrentStep});case"SET_HAS_SIGNED_MM_TOS":return babelHelpers["extends"]({},a,{businessInfo:babelHelpers["extends"]({},a.businessInfo,{hasSignedMmTos:b.hasSignedMmTos}),isTosModalShown:!b.hasSignedMmTos});case"SET_LIFETIME_BUDGET":e=babelHelpers["extends"]({},a,{campaignInfo:babelHelpers["extends"]({},a.campaignInfo,{lifetimeBudget:b.lifetimeBudget})});c=m(e);d=c.disabledMessage;c=c.isValid;return babelHelpers["extends"]({},e,{isCampaignReadyForPublish:c,publishButtonDisabledMessage:d});case"SET_BID_AMOUNT":e=babelHelpers["extends"]({},a,{campaignInfo:babelHelpers["extends"]({},a.campaignInfo,{bidAmount:b.bidAmount})});c=m(e);d=c.disabledMessage;c=c.isValid;return babelHelpers["extends"]({},e,{isCampaignReadyForPublish:c,publishButtonDisabledMessage:d});case"SET_START_DATE_TIME":d=(c=(e=b.startDateTime)==null?void 0:e.getUnixTimestamp())!=null?c:0;e=(c=(e=a.campaignInfo.endDate)==null?void 0:e.getTime())!=null?c:0;c=e-d;e=0;c>0&&(e=Math.round(c/864e5));d=babelHelpers["extends"]({},a,{campaignInfo:babelHelpers["extends"]({},a.campaignInfo,{duration:e,startDateTime:b.startDateTime})});c=m(d);e=c.disabledMessage;c=c.isValid;return babelHelpers["extends"]({},d,{isCampaignReadyForPublish:c,publishButtonDisabledMessage:e});case"SET_END_DATE":e=(c=(d=a.campaignInfo.startDateTime)==null?void 0:d.getUnixTimestamp())!=null?c:0;d=(c=(d=b.endDate)==null?void 0:d.getTime())!=null?c:0;c=d-e;d=0;c>0&&(d=Math.round(c/864e5));e=babelHelpers["extends"]({},a,{campaignInfo:babelHelpers["extends"]({},a.campaignInfo,{duration:d,endDate:b.endDate})});c=m(e);d=c.disabledMessage;c=c.isValid;return babelHelpers["extends"]({},e,{isCampaignReadyForPublish:c,publishButtonDisabledMessage:d});case"SET_LIVE_SELLING_OPTIN":return babelHelpers["extends"]({},a,{liveSellingInfo:babelHelpers["extends"]({},a.liveSellingInfo,{isLiveSellingOptinOn:b.isLiveSellingOptinOn})});case"SET_LIVE_SELLING_VIDEO_ID":return babelHelpers["extends"]({},a,{liveSellingInfo:babelHelpers["extends"]({},a.liveSellingInfo,{videoID:b.videoID})});case"SET_SELECTED_MEDIA":e="";var f,g,h,i;c=b.selectedMedia;if(c!==null)for(d in c)e=String(c[d].imageUrl),f=c[d].mediaType,f==="image"?(g=c[d].imageHash,e=String(c[d].imageUrl)):f==="video"&&(e=String(c[d].imageUrl),h=String(c[d].playableUrl),i=String(c[d].videoID));return babelHelpers["extends"]({},a,{creativeInfo:babelHelpers["extends"]({},a.creativeInfo,{media:{imageHash:g,imageUrl:e,mediaType:f,playableUrl:h,videoID:i}})});case"SET_DURATION":e=(c=(d=a.campaignInfo.startDateTime)==null?void 0:d.getUnixTimestamp())!=null?c:0;c=(d=b.duration)!=null?d:0;d=null;if(c>0&&e>0){e=e+c*864e5;d=new Date(e)}c=babelHelpers["extends"]({},a,{campaignInfo:babelHelpers["extends"]({},a.campaignInfo,{duration:b.duration,endDate:d})});e=m(c);a=e.disabledMessage;b=e.isValid;return babelHelpers["extends"]({},c,{isCampaignReadyForPublish:b,publishButtonDisabledMessage:a})}};function j(a,b){b=b.find(function(b){b=b.legacyAccountID;return b===a});return b?b.currency:null}function k(a,b){b=b.find(function(b){b=b.legacyAccountID;return b===a});return b?b.id:null}function l(a,b){var c;b=b.find(function(b){b=b.legacyAccountID;return b===a});return{description:(c=b==null?void 0:(c=b.paymentMethod)==null?void 0:c.description)!=null?c:null,label:(b=b==null?void 0:(c=b.paymentMethod)==null?void 0:c.label)!=null?b:null}}function m(a){var b=a.campaignInfo,e=a.creativeInfo,f=a.defaultPaymentMethod;a=a.selectedLegacyAdAccountID;var g=b.bidAmount,i=b.duration,j=b.lifetimeBudget;b=b.startDateTime;b=b!=null&&b.getUnixTimestamp()>Date.now();i=i!=null&&i>0;j=j!=null&&j>0;g=g!=null&&g>0;b=b&&i&&j&&g;i=e.buttons;j=e.campaignBody;g=i!=null&&i.length>0&&!(h||(h=c("isEmpty")))((g=i[0].buttonText)==null?void 0:g.trim())&&!(h||(h=c("isEmpty")))((e=i[0].buttonURL)==null?void 0:e.trim());i=!(h||(h=c("isEmpty")))(j==null?void 0:j.trim());e=i&&g;j=a!=null;i=f.label;g=i!=null;a=b&&e&&j&&g;f=null;a||(f=d("MMLWIFbtUtils").getMMLWIInvalidCampaignErrorMessage());return{disabledMessage:f,isValid:a}}f=a(b);a=a(c("emptyFunction"));g.CometMarketingMessageLwiComposerInitialState=b;g.CometMarketingMessageLwiComposerReducer=e;g.CometMarketingMessageLwiComposerStateContext=f;g.CometMarketingMessageLwiComposerDispatchContext=a}),98);
-----
MarketingMessagesLWITOSLiveSelling.react",["ix","CometContextualMessage.react","CometRow.react","CometRowItem.react","FDSDialog.react","FDSDialogBackgroundImageHeader.react","FDSDialogFooter.react","FDSIcon.react","ImageIconSource","LWIOmniTextPairing.react","react","useMMLWILiveSellingLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useEffect;function a(a){a=a.TOSConfig;var b=h("1334173"),d=a.content,e=a.displayError,f=a.isTosModalShown,g=a.onAcceptTos;a=a.onDismiss;var i=d.buttonLabel,l=d.disclaimer,m=d.error,n=d.title;d=d.upsellItems;var o=c("useMMLWILiveSellingLogger")(),p=o.logCampaignCreationClick;k(function(){p()});o=j.jsx(j.Fragment,{children:e&&j.jsx(c("CometContextualMessage.react"),{body:m,headline:"TOS signature failed",icon:j.jsx(c("FDSIcon.react"),{icon:new(c("ImageIconSource"))(b,24,24)})})});return j.jsx(j.Fragment,{children:f&&j.jsx(c("FDSDialog.react"),{disablePageScroll:!0,footer:j.jsx(c("FDSDialogFooter.react"),{primary:{label:i,onPress:g}}),header:j.jsx(c("FDSDialogBackgroundImageHeader.react"),{backgroundImageProps:{src:"/images/live_producer/live_shopping/seller_guidance_dialog.png"},onClose:a,withBackButton:!1}),size:"small",children:j.jsxs("div",{children:[j.jsx(c("CometRow.react"),{align:"start",verticalAlign:"center",children:j.jsx(c("CometRowItem.react"),{children:j.jsx(c("LWIOmniTextPairing.react"),{headline:n,level:4})})}),d.map(function(a,b){return j.jsxs(c("CometRow.react"),{align:"start",verticalAlign:"center",children:[j.jsx(c("CometRowItem.react"),{children:j.jsx(c("FDSIcon.react"),{icon:a.icon})}),j.jsx(c("CometRowItem.react"),{children:j.jsx(c("LWIOmniTextPairing.react"),{body:a.description,headline:a.title,level:4})})]},b)}),j.jsx(c("CometRow.react"),{align:"start",verticalAlign:"center",children:j.jsx(c("CometRowItem.react"),{children:j.jsx(c("LWIOmniTextPairing.react"),{body:l,level:4})})}),o]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MarketingMessagesLWITOSModalWrapper.react",["CometMarketingMessageLwiComposerContext","MMLWITOSOmniContent","MarketingMessagesLWITOSGeoModal.react","MarketingMessagesLWITOSLiveSelling.react","MarketingMessagesLWITOSModalWrapperMutation.graphql","RelayHooks","nullthrows","react","uniqueID","useCometMarketingMessageLwiComposerContextActions","useMMLWILogger","useVisibilityObserver"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useState,n=h!==void 0?h:h=b("MarketingMessagesLWITOSModalWrapperMutation.graphql");function a(a){var b=a.children,e=a.dismissDialog;a=l(d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerStateContext);var f=a.businessInfo,g=a.composerSurface,h=a.isTosModalShown,i=a.selectedLegacyAdAccountID;a=c("useCometMarketingMessageLwiComposerContextActions")();var o=a.setHasSignedMmTos,p=a.setIsTosModalShown;a=d("RelayHooks").useMutation(n);var q=a[0],r=c("useMMLWILogger")(),s=f.businessID;a=f.hasSignedMmTos;f=m(!1);var t=f[0],u=f[1];f=m(!1);var v=f[0],w=f[1];f=c("useVisibilityObserver")({onVisible:k(function(){v||(w(!0),r.logOnboardingImpression())},[v,r])});if(a)return b;var x=g==="LIVE_SELLING"?"FB_LIVE_SELLING":"MBS_BIZ_INBOX";a={content:d("MMLWITOSOmniContent").getTOSDialogContent(g),displayError:t,isTosModalShown:h,onAcceptTos:function(){r.logOnboardingClick("get_started"),q({onCompleted:function(a){var b;if(((b=a.xfb_mig_marketing_messages_in_am_tos)==null?void 0:b.success)===!0)o(!0),r.logOnboardingSuccess();else{u(!0);b=(a=(b=a.xfb_mig_marketing_messages_in_am_tos)==null?void 0:b.error_msg)!=null?a:"";r.logOnboardingFailure(b)}},onError:function(a){u(!0),r.logOnboardingFailure(a.message)},variables:{input:{ad_account_id:c("nullthrows")(i),business_id:c("nullthrows")(s),client_mutation_id:c("uniqueID")(),log_session_id:c("uniqueID")(),mig_product_tos_cms_list:["MARKETING_MESSAGING_TERMS"],surface:x}}})},onDismiss:function(){p(!1),e&&e()}};return j.jsx("div",{ref:f,children:g==="BIZ_INBOX"?j.jsxs(j.Fragment,{children:[b,j.jsx(c("MarketingMessagesLWITOSGeoModal.react"),{TOSConfig:a})]}):g==="LIVE_SELLING"?j.jsx(c("MarketingMessagesLWITOSLiveSelling.react"),{TOSConfig:a}):b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useCometMarketingMessageLwiComposerContext",["CometMarketingMessageLwiComposerContext","LiveProducerMMLWIConsts","MMLWIFbtUtils","MMLWIHelperUtils","RelayHooks","react","useCometMarketingMessageLwiComposerContext_businessInfo.graphql","useCometMarketingMessageLwiComposerContext_page.graphql","useCometMarketingMessageLwiComposerContext_subscriberInsights.graphql","useCometMarketingMessageLwiComposerContext_video.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=(l||d("react")).useReducer,n=h!==void 0?h:h=b("useCometMarketingMessageLwiComposerContext_page.graphql"),o=i!==void 0?i:i=b("useCometMarketingMessageLwiComposerContext_subscriberInsights.graphql"),p=j!==void 0?j:j=b("useCometMarketingMessageLwiComposerContext_businessInfo.graphql"),q=k!==void 0?k:k=b("useCometMarketingMessageLwiComposerContext_video.graphql");function r(a,b){var c;return{pageID:(c=a==null?void 0:a.id)!=null?c:"",pageName:(c=a==null?void 0:a.name)!=null?c:"",pageProfilePicURI:(a=a==null?void 0:(c=a.profile_picture)==null?void 0:c.uri)!=null?a:"",subscriberCount:(b=b==null?void 0:(c=b.xfb_marketing_message_business_insights)==null?void 0:(a=c.net_opt_in)==null?void 0:a.messenger)!=null?b:0}}function s(a){var b;a=a==null?void 0:a.xfb_marketing_message_lwi_business_info;b=(b=a==null?void 0:(b=a.business)==null?void 0:(b=b.business_ad_accounts)==null?void 0:b.edges)!=null?b:[];b=b.filter(function(a){a=a.node;return(a==null?void 0:(a=a.viewer_permissions)==null?void 0:a.write)===!0}).map(function(a){var b;a=a.node;return{currency:(b=a==null?void 0:a.currency)!=null?b:"",id:(b=a==null?void 0:a.id)!=null?b:"",legacyAccountID:(b=a==null?void 0:a.legacy_account_id)!=null?b:"",name:(b=a==null?void 0:a.name)!=null?b:"",paymentMethod:{description:a==null?void 0:(b=a.billing_info)==null?void 0:(b=b.payment_section_details)==null?void 0:b.description,label:a==null?void 0:(b=a.billing_info)==null?void 0:(a=b.payment_section_details)==null?void 0:a.label}}});return{adAccounts:b,businessID:(b=a==null?void 0:(b=a.business)==null?void 0:b.id)!=null?b:"",hasSignedMmTos:(b=a==null?void 0:a.has_signed_tos)!=null?b:!1}}function a(a,b,c,e,f){var g,h;b=(h=d("RelayHooks")).useFragment(n,b);c=h.useFragment(o,c);e=h.useFragment(p,e);h=h.useFragment(q,f);f=r(b,c);c=s(e);e=!c.hasSignedMmTos;g=(g=h==null?void 0:(g=h.owner)==null?void 0:(g=g.live_producer_notify_subscribers_mm_entrypoint_toggle_state)==null?void 0:g.toggle_state)!=null?g:!1;var i=null,j=null,k=null,l=null,t=d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.campaignInfo.startDateTime,u=d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.campaignInfo.duration;switch(a){case"LIVE_SELLING":i=d("MMLWIFbtUtils").getMMLWILiveSellingCreativeSectionDefaultMessage(f.pageName).toString();j=d("MMLWIFbtUtils").getMMLWILiveSellingCreativeSectionDefaulButtonLabel().toString();k=d("LiveProducerMMLWIConsts").getMMLWILiveSellingCreativeSectionDefaulButtonURL((h=h==null?void 0:h.id)!=null?h:"");t=d("LiveProducerMMLWIConsts").getMMLWILiveSellingDefaultStartDateTime();u=d("LiveProducerMMLWIConsts").LiveSellingDefaultDuration;break;case"BIZ_INBOX":i=d("MMLWIFbtUtils").MM_LWI_MBS_INBOX_DEFAUTL_MESSAGE_BODY.toString();j=d("MMLWIFbtUtils").MM_LWI_MBS_INBOX_DEFAUTL_BUTTON_LABEL.toString();k=(h=(h=b==null?void 0:b.websites[0])!=null?h:b==null?void 0:b.url)!=null?h:"";t=d("MMLWIHelperUtils").getInboxDefaultStartDateTime();l=d("MMLWIHelperUtils").getInboxDefaultEndDate();u=d("MMLWIHelperUtils").DEFAULT_DURATION_IN_DAYS;break;default:}b=c.adAccounts;h=d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.selectedLegacyAdAccountID;var v=d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.defaultPaymentMethod,w=d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.selectedAdAccountID;b.length>0&&(h=b[0].legacyAccountID,v=b[0].paymentMethod,w=b[0].id);return m(d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerReducer,babelHelpers["extends"]({},d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState,{businessInfo:c,campaignInfo:babelHelpers["extends"]({},d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.campaignInfo,{duration:u,endDate:l,startDateTime:t}),composerSurface:a,creativeInfo:babelHelpers["extends"]({},d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.creativeInfo,{buttons:[{buttonText:j,buttonURL:k}],campaignBody:i}),defaultPaymentMethod:v,isTosModalShown:e,liveSellingInfo:babelHelpers["extends"]({},d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerInitialState.liveSellingInfo,{isLiveSellingOptinOn:g}),pageInfo:f,selectedAdAccountID:w,selectedLegacyAdAccountID:h}))}g["default"]=a}),98);
-----
CometMarketingMessageLwiComposerContainer.react",["CometMarketingMessageLwiComposerContainer_fullPage.graphql","CometMarketingMessageLwiComposerContext","CometMarketingMessageLwiComposerWrapper.react","CometPlaceholder.react","CometRelay","CometTransientDialogProvider.react","LWICometUIStatusContextProvider.react","MarketingMessagesLWITOSModalWrapper.react","react","useCometMarketingMessageLwiComposerContext"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("CometMarketingMessageLwiComposerContainer_fullPage.graphql");function a(a){var b=a.composerSurface,e=a.dismissDialog,f=a.fullPage;a=a.videoID;f=d("CometRelay").useFragment(k,f);var g=f,h=f,i=f.video;b=c("useCometMarketingMessageLwiComposerContext")(b,f.page,g,h,i);f=b[0];g=b[1];return j.jsx(c("LWICometUIStatusContextProvider.react"),{boostID:null,hasNeverVisitedBizweb:!1,shouldShowBEFUpsell:!1,children:j.jsx(c("CometTransientDialogProvider.react"),{children:j.jsx(c("CometPlaceholder.react"),{fallback:null,children:j.jsx(d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerStateContext.Provider,{value:f,children:j.jsx(d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerDispatchContext.Provider,{value:g,children:j.jsx(c("MarketingMessagesLWITOSModalWrapper.react"),{dismissDialog:e,children:j.jsx(c("CometMarketingMessageLwiComposerWrapper.react"),{dismissDialog:e,videoID:a})})})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useCometMarketingMessageLwiComposerContextActions",["CometMarketingMessageLwiComposerContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useContext;function a(){var a=i(d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerDispatchContext);function b(b){a({isTosModalShown:b,type:"SET_IS_TOS_MODAL_SHOWN"})}function c(b){a({isMbsConfirmationModalShown:b,type:"SET_IS_MBS_CONFIRMATION_MODAL_SHOWN"})}function e(b){a({selectedLegacyAdAccountID:b,type:"SET_SELECTED_LEGACY_AD_ACCOUNT_ID"})}function f(b){a({campaignBody:b,type:"SET_CAMPAIGN_BODY_TEXT"})}function g(b){a({campaignButtonText:b,type:"SET_CAMPAIGN_BUTTON_TEXT"})}function h(b){a({campaignButtonUrl:b,type:"SET_CAMPAIGN_BUTTON_URL"})}function j(b){a({lifetimeBudget:b,type:"SET_LIFETIME_BUDGET"})}function k(b){a({bidAmount:b,type:"SET_BID_AMOUNT"})}function l(b){a({hasSignedMmTos:b,type:"SET_HAS_SIGNED_MM_TOS"})}function m(b){a({startDateTime:b,type:"SET_START_DATE_TIME"})}function n(b){a({endDate:b,type:"SET_END_DATE"})}function o(b){a({duration:b,type:"SET_DURATION"})}function p(b){a({isLiveSellingOptinOn:b,type:"SET_LIVE_SELLING_OPTIN"})}function q(b){a({type:"SET_LIVE_SELLING_VIDEO_ID",videoID:b})}function r(b){a({selectedMedia:b,type:"SET_SELECTED_MEDIA"})}function s(b){a({liveSellingCurrentStep:b,type:"SET_LIVE_SELLING_CURRENT_STEP"})}return{setBidAmount:k,setCampaignBodyText:f,setCampaignButtonText:g,setCampaignButtonUrl:h,setDuration:o,setEndDate:n,setHasSignedMmTos:l,setIsMbsConfirmationModalShown:c,setIsTosModalShown:b,setLifetimeBudget:j,setLiveSellingCurrentStep:s,setMMLWILiveSellingOptin:p,setMMLWILiveSellingVideoID:q,setSelectedLegacyAdAccountID:e,setSelectedMedia:r,setStartDateTime:m}}g["default"]=a}),98);
-----
MarketingMessagesLWITOSModalWrapperMutation.graphql",["MarketingMessagesLWITOSModalWrapperMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"request",variableName:"input"}],concreteType:"XFBMIGMarketingMessagesInAdsManagerTOSMutationResponse",kind:"LinkedField",name:"xfb_mig_marketing_messages_in_am_tos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"error_msg",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MarketingMessagesLWITOSModalWrapperMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MarketingMessagesLWITOSModalWrapperMutation",selections:c},params:{id:b("MarketingMessagesLWITOSModalWrapperMutation_facebookRelayOperation"),metadata:{},name:"MarketingMessagesLWITOSModalWrapperMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MarketingMessagesLWITOSModalWrapperMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7760347670693160"}),null);
-----
CommerceManagerApp.react",["AdsDataPluginsDebuggerWrapper.react","AutoLoggingConditionalWrapper","CUIErrorCard.react","CatalogBusinessEventsLoggerHelper","CommerceManagerAppLoadingState.react","CommerceManagerRelayEnvironment","CommerceManagerRouterRootV2.react","CommerceManagerSFLUtils","CommerceManagerSuspense.react","CommerceSession","GeoAppShell.react","RelayHooks","SellerFunnelAutoLoggingUtils","SellerInsightsV2LoggingUtils","Timezone","TimezoneNamesData","WebSession","cr:3996","cr:4015","gkx","performance","react","useCommerceManagerTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useEffect,l=e.useRef;d("AutoLoggingConditionalWrapper").init({name:"commerce_manager"});d("Timezone").registerNamesModule(c("TimezoneNamesData"));function a(a){var e=a.catalogID,f=a.catalogOrCmsID,g=a.cmsID,h=a.commerceSessionID,i=a.isEligibleForBizKitCommerceIntegration,k=a.loadFedInformWizard,l=a.loadFedInformWizardIndividualFlow,n=a.loadIDVFlow,o=a.loadOBBOFlow,p=a.showOnLoadModal,q=a.showShopCompleteDialog,r=a.showTOSModal;a=a.toastMessage;c("useCommerceManagerTheme")();m();d("CommerceSession").setCurrentSession((h=h)!=null?h:d("WebSession").getId());d("SellerFunnelAutoLoggingUtils").initializeClickAutoLogging({catalogID:e,cmsID:g});h=c("gkx")("3986")&&b("cr:4015")!==null?b("cr:4015").CommerceManagerRelayEnvironmentForPreloaderTestsFactory():d("CommerceManagerRelayEnvironment").CommerceManagerRelayEnvironmentFactory();d("CommerceManagerSFLUtils").initRelayRuntimeState({catalogID:e,cmsID:g});return j.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:h,children:j.jsx(c("GeoAppShell.react"),{isNextThemeEnabled:c("gkx")("774"),children:j.jsxs(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),flowName:"LOAD_MAIN_APP",loadingComponent:j.jsx(c("CommerceManagerAppLoadingState.react"),{}),oncall:"merchant_platform_and_interfaces",children:[b("cr:3996")!=null?j.jsx(b("cr:3996"),{}):null,j.jsx(c("AdsDataPluginsDebuggerWrapper.react"),{children:j.jsx(c("CommerceManagerRouterRootV2.react"),{catalogID:e,catalogOrCmsID:f,cmsID:g,isEligibleForBizKitCommerceIntegration:i,loadFedInformWizard:k,loadFedInformWizardIndividualFlow:l,loadIDVFlow:n,loadOBBOFlow:o,showOnLoadModal:p,showShopCompleteDialog:q,showTOSModal:r,toastMessage:a})})]})})})}a.displayName=a.name+" [from "+f.id+"]";function m(){var a=l(!1);k(function(){typeof (h||(h=c("performance"))).now==="function"&&!a.current&&(c("CatalogBusinessEventsLoggerHelper").getPerformanceLogger().setEvent("unified_commerce_manager_app_first_render").setActionData({source:"air"}).setTimeTakenInMs(Math.round((h||(h=c("performance"))).now())).log(),a.current=!0),d("SellerInsightsV2LoggingUtils").commerceInsightsPageLoadingV2Scenario()},[])}g["default"]=a}),98);
-----
CommerceManagerRouterRootV2.react",["CommerceManagerAppLoadingState.react","CommerceManagerHooks","CommerceManagerRootMatchRouteContainer.react","CommerceManagerRouteConfigUtils","CommerceManagerRouteConfigurations","CommerceManagerRouterRootV2Query.graphql","CommerceManagerSuspense.react","react","useCallOnceImmediately"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function k(a){var e=a.catalogID,f=a.catalogOrCmsID,g=a.cmsID,i=a.isEligibleForBizKitCommerceIntegration,k=a.loadFedInformWizard,l=a.loadFedInformWizardIndividualFlow,m=a.loadIDVFlow,n=a.loadOBBOFlow,o=a.showOnLoadModal,p=a.showShopCompleteDialog,q=a.showTOSModal;a=a.toastMessage;var r=d("CommerceManagerHooks").useCommerceManagerLazyQuery(h!==void 0?h:h=b("CommerceManagerRouterRootV2Query.graphql"),{catalogOrCmsID:f});f={catalogOrCmsID:f,contextConfiguration:r.configuration,isEligibleForBizKitCommerceIntegration:i,loadFedInformWizard:k,loadFedInformWizardIndividualFlow:l,loadIDVFlow:m,loadOBBOFlow:n,showOnLoadModal:o,showShopCompleteDialog:p,showTOSModal:q,toastMessage:a};c("useCallOnceImmediately")(function(){var a=d("CommerceManagerRouteConfigUtils").getRouteConfigs(g,e);d("CommerceManagerRouteConfigurations").initRouteConfigs(a)});return j.jsx(c("CommerceManagerRootMatchRouteContainer.react"),babelHelpers["extends"]({},f,{placeholder:c("CommerceManagerAppLoadingState.react")}))}k.displayName=k.name+" [from "+f.id+"]";function a(a){return j.jsx(c("CommerceManagerSuspense.react"),{loadingComponent:j.jsx(c("CommerceManagerAppLoadingState.react"),{}),oncall:"cxp_interfaces",children:j.jsx(k,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerRootView.react",["AtomicToastManager.react","CGPGuidanceModal.react","CUIErrorCard.react","CommerceManagerContextProviders.react","CommerceManagerHeroInteractionRouterRoot","CommerceManagerLayoutV2.react","CommerceManagerLoadingOverlay.react","CommerceManagerMatchRouteContainerPlaceholder.react","CommerceManagerRootModalsV2.react","CommerceManagerRootViewMatchRouteContainer.react","CommerceManagerRootView_contextConfiguration.graphql","CommerceManagerSuspense.react","CommerceManagerTabRoutingUtils","CommerceManagerUtils","GeoBaseSpacingLayout.react","GeoToasterProvider.react","HeroInteractionIgnoreWithDiv.react","RelayHooks","SUIBusinessThemeContainer.react","react","useAdsInterfacesRouterLeafRoute","withSellerFunnelLogging"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("CommerceManagerRootView_contextConfiguration.graphql");function a(a){var b=a.catalogOrCmsID,e=a.contextConfiguration,f=a.isEligibleForBizKitCommerceIntegration,g=a.loadFedInformWizard,h=a.loadFedInformWizardIndividualFlow,i=a.loadIDVFlow,l=a.loadOBBOFlow,m=a.showOnLoadModal,n=a.showShopCompleteDialog,o=a.showTOSModal;a=a.toastMessage;e=d("RelayHooks").useFragment(k,e);var p=c("useAdsInterfacesRouterLeafRoute")(),q=d("CommerceManagerTabRoutingUtils").deriveActiveTabFromRouteName(p.name),r=d("CommerceManagerTabRoutingUtils").deriveSubtabFromRouteName(p.name),s=d("CommerceManagerUtils").isShopBuilderTab(q,r);f=j.jsx(c("AtomicToastManager.react"),{children:j.jsx(c("GeoToasterProvider.react"),{children:j.jsx(c("CommerceManagerContextProviders.react"),{activeTab:q,catalogOrCmsID:b,commerceManagerRoutingImpl:"AdsInterfacesRouter",configuration:e,isBizSuiteUser:f,loadFedInformWizard:g,loadFedInformWizardIndividualFlow:h,loadIDVFlow:i,loadOBBOFlow:l,routeGivenName:p.givenName,showOnLoadModal:m,showShopCompleteDialog:n,showTOSModal:o,toastMessage:a,children:j.jsxs(d("withSellerFunnelLogging").SellerFunnelLoggingAppRoot,{surface:"commerce_manager",children:[s?j.jsx(c("SUIBusinessThemeContainer.react"),{children:j.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:j.jsx(c("GeoBaseSpacingLayout.react"),{direction:"vertical",children:j.jsx(c("CommerceManagerLoadingOverlay.react"),{})}),oncall:"merchant_platform_and_interfaces",children:j.jsx(c("CommerceManagerRootViewMatchRouteContainer.react"),{placeholder:c("CommerceManagerMatchRouteContainerPlaceholder.react")})})}):j.jsx(c("CommerceManagerLayoutV2.react"),{catalogOrCmsID:b,subtab:(e=r)!=null?e:void 0,tab:q,children:j.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:j.jsx(c("GeoBaseSpacingLayout.react"),{direction:"vertical",children:j.jsx(c("CommerceManagerLoadingOverlay.react"),{})}),oncall:"merchant_platform_and_interfaces",children:j.jsx(c("CommerceManagerRootViewMatchRouteContainer.react"),{placeholder:c("CommerceManagerMatchRouteContainerPlaceholder.react")})})}),j.jsxs(c("HeroInteractionIgnoreWithDiv.react"),{children:[j.jsx(c("CommerceManagerRootModalsV2.react"),{catalogOrCmsID:b,country:"US",showShopCompleteDialog:n}),j.jsx(d("CGPGuidanceModal.react").CGPGuidanceModal,{})]})]})})})});return j.jsx(c("CommerceManagerHeroInteractionRouterRoot").Component,{defaultTracePolicy:"commerce_manager.unknown",children:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerContextUtils",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a.loadDeferredPayoutOnboardingFlow===!0||a.loadFedInformWizard===!0||a.loadFedInformWizardIndividualFlow===!0||a.loadIDVFlow===!0||a.loadOBBOFlow===!0||a.loadKYCFlow===!0||a.shouldShowCompletePayoutsModal===!0||a.shouldShowLinkedAssetOptOutModal===!0||a.shouldShowMergeShopsOptOutModal===!0||a.shouldShowOneCatalogMigrationModal===!0||a.showTOSModal===!0||a.showOnLoadModal!=null}f.isForceLoadingModal=a}),66);
-----
CommerceManagerContextProviders.react",["CommerceManagerAppContextProvider.react","CommerceManagerCatalogContextProvider.react","CommerceManagerCatalogItemsPageFetchKeyContext.react","CommerceManagerCatalogSetsPageFetchKeyContext.react","CommerceManagerCommerceContextProviders.react","CommerceManagerContextProviders_configuration.graphql","CommerceManagerLoggingHooks","CommerceManagerRoutingContext","CommerceManagerTabContext","CommerceManagerUsageContext","RelayHooks","UnifiedCommerceManagerUsage","err","getJSEnumSafe","hero-tracing-placeholder","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useMemo,m=h!==void 0?h:h=b("CommerceManagerContextProviders_configuration.graphql");function a(a){var b,e=a.activeTab,f=a.children,g=a.loadIDVFlow,h=a.loadOBBOFlow,i=a.loadFedInformWizard,n=a.loadFedInformWizardIndividualFlow,o=a.isBizSuiteUser,p=a.showShopCompleteDialog,q=a.toastMessage,r=a.showTOSModal,s=a.showOnLoadModal,t=d("CommerceManagerLoggingHooks").useErrorLogging(),u=k(d("hero-tracing-placeholder").HeroInteractionIDContext),v=d("RelayHooks").useFragment(m,a.configuration),w=(b=c("getJSEnumSafe")(c("UnifiedCommerceManagerUsage"),v==null?void 0:v.usage))!=null?b:"UNKNOWN";b=l(function(){return{commerceManagerRoutingImpl:a.commerceManagerRoutingImpl,routeGivenName:a.routeGivenName}},[a.commerceManagerRoutingImpl,a.routeGivenName]);var x=l(function(){return{currentTab:e}},[e]),y=l(function(){return{usage:w}},[w]);if(w==="UNKNOWN"){t({error:c("err")("Unified Commerce Manager usage is unknown"),flowName:"NAVIGATION",oncall:"catalog_quality_tools"});return null}t=new URLSearchParams(window.location.search);t=t.get("ref");return j.jsx(c("CommerceManagerAppContextProvider.react"),{catalogOrCmsID:a.catalogOrCmsID,children:j.jsx(c("CommerceManagerUsageContext").Provider,{value:y,children:j.jsx(c("CommerceManagerCommerceContextProviders.react"),{canViewPermissions:(v==null?void 0:(y=v.features)==null?void 0:y.canViewPermissions)===!0,interactionUUID:u,isBizSuiteUser:o,loadFedInformWizard:i,loadFedInformWizardIndividualFlow:n,loadIDVFlow:g,loadOBBOFlow:h,referrerSurface:t,settings:v,showOnLoadModal:s,showShopCompleteDialog:p,showTOSModal:r,toastMessage:q,children:j.jsx(c("CommerceManagerCatalogContextProvider.react"),{catalog:v==null?void 0:v.catalog,children:j.jsx(c("CommerceManagerRoutingContext").Provider,{value:b,children:j.jsx(c("CommerceManagerTabContext").Provider,{value:x,children:j.jsx(d("CommerceManagerCatalogItemsPageFetchKeyContext.react").CommerceManagerCatalogItemsPageFetchKeyContextProvider,{children:j.jsx(d("CommerceManagerCatalogSetsPageFetchKeyContext.react").CommerceManagerCatalogSetsPageFetchKeyContextProvider,{children:f})})})})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerCommerceContextProviders.react",["CommerceBrandCompleteQueryParameterUtils","CommerceManagerCheckoutStyle","CommerceManagerCommerceContextProviders_configuration.graphql","CommerceManagerComponentGatingProvider","CommerceManagerContext","CommerceManagerLocalizationContext","CommerceManagerPermissionProvider.react","CommercePaymentProviders","RelayHooks","castToEnum","getJSEnumSafe","react","useCommerceManagerModalParams","useCommerceManagerRouteParams"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useState;function a(a){var e,f=a.canViewPermissions,g=a.children,i=a.interactionUUID,l=a.isBizSuiteUser,m=a.loadFedInformWizard,n=a.loadFedInformWizardIndividualFlow,o=a.loadIDVFlow,p=a.loadOBBOFlow,q=a.referrerSurface,r=a.settings,s=a.showOnLoadModal,t=a.showShopCompleteDialog,u=a.showTOSModal;a=a.toastMessage;r=d("RelayHooks").useFragment(h!==void 0?h:h=b("CommerceManagerCommerceContextProviders_configuration.graphql"),r);var v=c("useCommerceManagerRouteParams")();v=v.shopID;var w=k(void 0),x=w[0];w=w[1];var y=c("useCommerceManagerModalParams")(),z=y.showKYCModal,A=y.shouldShowCompletePayoutsModal,B=y.showDeferredPayoutOnboardingModal;y=y.shouldShowOneCatalogMigrationModal;var C=d("CommerceBrandCompleteQueryParameterUtils").useBrandCompleteQueryParameters(),D=C.shouldShowLinkedAssetOptOutModal;C=C.shouldShowMergeShopsOptOutModal;a=k(a);var E=a[0];a=a[1];var F=k(null),G=F[0];F=F[1];if(r==null)return g;var H=r.commerceMerchantSettings,I=H==null?void 0:H.id;if(H==null||I==null)return g;var J=H.shopifyApplication,K=H.checkoutStyle,L=H.commerceFeatures,M=H.externalMerchantID,N=H.hasSellerCreatedShopsAds,O=H.id,P=H.isChurnInsightsEnabled,Q=H.page,R=H.paymentProvider;e=H.isShopifyDirectMerchant===!0?"SHOPIFY":(e=H.commercePartnerIntegration)==null?void 0:e.platform;O={accountID_DEPRECATED_USE_CMS_ID_INSTEAD:I,cmsID:O,isBizSuiteUser:l,externalMerchantID:M,hasAccessToAutoUpdatesInItemsTab:Boolean(((I=r.features)==null?void 0:(O=I.catalogConciergeFeatures)==null?void 0:O.hasAccessToAutoUpdatesInItemsTab)===!0),hasIncompleteIntegrationPlan:Boolean(H.integrationPlan!=null&&((l=H.integrationPlan)==null?void 0:l.is_onsite_setup_complete)!==!0),hasSellerCreatedShopsAds:Boolean(N),interactionUUID:i,isChurnInsightsEnabled:Boolean(P),isShopifySeller:Boolean(H.isShopifySeller),isShopifyDirectMerchant:Boolean(H.isShopifyDirectMerchant),isInsightsV2Enabled:Boolean(L==null?void 0:L.isInsightsV2Enabled),isMigratedShopifyDirectMerchant:Boolean(H.isMigratedShopifyDirectMerchant),isOptimalSetupStepperCardEnabled:(M=L==null?void 0:L.isOptimalSetupStepperCardEnabled)!=null?M:!1,isOfferUploadUIEnabled:Boolean(L==null?void 0:L.isOfferUploadUIEnabled),isInferredTaxCategoryDisabled:Boolean(H.isInferredTaxCategoryDisabled),loadIDVFlow:o,loadOBBOFlow:p,cgpGuidanceModalProps:G,loadKYCFlow:z,loadDeferredPayoutOnboardingFlow:B,setCGPGuidanceModalProps:F,shouldShowOneCatalogMigrationModal:y,shouldShowCompletePayoutsModal:A,shouldShowLinkedAssetOptOutModal:D,shouldShowMergeShopsOptOutModal:C,loadFedInformWizard:m,loadFedInformWizardIndividualFlow:n,pageID:Q==null?void 0:Q.id,canViewPermissions:f,referrerSurface:q,showOnLoadModal:s,showShopCompleteDialog:t,shopID:v,isInsightsHybridShop:Boolean(H==null?void 0:H.isHybridShop),shopifyDomain:J==null?void 0:J.shop_domain,shopifyAppInstallationID:J==null?void 0:J.id,toastMessage:E,setToastMessage:a,showTOSModal:u,brandCompleteOptOutSuccessfulMigrationType:x,setBrandCompleteOptOutSuccessfulMigrationType:w,partnerIntegrationPlatform:e,isOffsiteDeprecationSellPageEnabled:Boolean((I=r.features)==null?void 0:I.isOffsiteDeprecationSellPageEnabled)};l={isEnabled:!1,tbpActions:H.tbpActions};N=c("getJSEnumSafe")(c("CommerceManagerCheckoutStyle"),K);i=c("castToEnum")(R,c("CommercePaymentProviders"));return j.jsx(c("CommerceManagerPermissionProvider.react"),{params:l,children:j.jsx(c("CommerceManagerComponentGatingProvider"),{checkoutStyle:N,paymentProvider:i,children:j.jsx(d("CommerceManagerLocalizationContext").CommerceManagerLocalizationContextProvider,{selectedLocationID:null,children:j.jsx(c("CommerceManagerContext").Provider,{value:O,children:g})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LeadsManager.react",["BizKitContextCardAdsDataSharingNUXContext","CometPlaceholder.react","ErrorBoundary.react","GeoButton.react","GeoModalFooter.react","GeoSpinner.react","JSResource","LWIBizWebButtonActionContextProvider.react","LeadsCenterAYMTTipContextProvider","LeadsCenterAYMTTipContextUpdater.react","LeadsCenterQPLLogger","LeadsCenterSurfaceEnterFlowFalcoEvent","LeadsManagerAdsDataSharingNUXQuery.graphql","LeadsManagerConstants","LeadsManagerContext","LeadsManagerLogVisitTimeMutation","LeadsManagerMainView.react","LeadsManagerModalFallback.react","LeadsManagerReducer","LeadsManagerViewContext","LeadsManagerViewReducer","LeadsManager_fragment.graphql","PageConsentForAdsEventsModal.react","RelayHooks","deferredLoadComponent","lazyLoadComponent","nullthrows","react","requireDeferredForDisplay","useBizWebGetRouteParams"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useEffect,m=e.useReducer,n=c("deferredLoadComponent")(c("requireDeferredForDisplay")("LeadsManagerAudienceExpansionToast.react").__setRef("LeadsManager.react")),o=c("lazyLoadComponent")(c("JSResource")("LeadsManagerAudienceCenterModalContainer.react").__setRef("LeadsManager.react")),p=c("lazyLoadComponent")(c("JSResource")("LeadsManagerCSVImportSection.react").__setRef("LeadsManager.react")),q=c("lazyLoadComponent")(c("JSResource")("LeadsManagerSettingsView.react").__setRef("LeadsManager.react")),r=c("lazyLoadComponent")(c("JSResource")("LeadsManagerToSDialog.react").__setRef("LeadsManager.react")),s=function(a,b){var c;if(a!=="OPTED_IN"||(b==null?void 0:b.adsDataSharingNUX)==null||b.adsDataSharingNUX.length===0)return{showNUX:!1,nuxBody:"",nuxType:null,impressionLoggedNuxes:null,nuxUIType:null};a=(a=(a=b.adsDataSharingNUX)==null?void 0:a[0].nux_content_text)!=null?a:"";c=(c=(c=b.adsDataSharingNUX)==null?void 0:c[0].nux_type)!=null?c:null;b=(b=(b=b.adsDataSharingNUX)==null?void 0:b[0].nux_ui_type)!=null?b:null;return{showNUX:!1,nuxBody:a,nuxType:c,impressionLoggedNuxes:null,nuxUIType:b}},t=function(a,b,d,e,f,g,h,i,j,l){if(e)return k.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerSettingsViewLazy",fallback:k.jsx(c("GeoSpinner.react"),{center:!0}),children:k.jsx("div",{className:"xvkph5b x5yr21d x10l6tqk x1nrll8i xwa60dl x11lhmoz",children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(q,{pageID:b,pageName:d})})})});else if(f){f=((e=i.page)==null?void 0:(d=e.is_passing_gk_csv_validator)==null?void 0:d.passes_gk)||!1;return k.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerCSVImportSectionLazy",fallback:k.jsx(c("GeoSpinner.react"),{center:!0}),children:k.jsx("div",{className:"xvkph5b x5yr21d x10l6tqk x1nrll8i xwa60dl x11lhmoz",children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(p,{leadsCSVTemplate:h,pageID:b,shouldShowCSVDebugger:f})})})})}else if(g)return k.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerAudienceCenterModalContainerLazy",fallback:k.jsx(c("GeoSpinner.react"),{center:!0}),children:k.jsx("div",{className:"x14vqqas x5yr21d x10l6tqk x1nrll8i xwa60dl x11lhmoz",children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(o,{pageID:b,lwi:c("nullthrows")(i.lwi)})})})});return k.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerMainView",fallback:k.jsx(c("GeoSpinner.react"),{center:!0}),children:k.jsx(c("LeadsManagerMainView.react"),{isComet:a,tableQueryReference:j,pipelineViewQueryReference:l,pageID:b,queryRef:i})})},u=h!==void 0?h:h=b("LeadsManager_fragment.graphql"),v=i!==void 0?i:i=b("LeadsManagerAdsDataSharingNUXQuery.graphql");function a(a){var b=c("useBizWebGetRouteParams")();b=b.is_lookalike_modal_open;b=m(d("LeadsManagerReducer").reducer,d("LeadsManagerReducer").getInitialState({canSeeLeadOwnerInvitation:a.canSeeLeadOwnerInvitation,canSeeStageManagement:a.canSeeStageManagement,canUseSettings:a.canUseSettings,isComet:a.isComet,isToSAccepted:a.isToSAccepted,isBackFillJobsRunning:a.isBackFillJobsRunning,isInBizKit:a.isInBizKit,unreadQuery:a.isUnread,defaultLeadID:"",firstAdsLeadOpportunityID:"",firstDirectOrMessengerLeadOpportunityID:"",openLeadsCenterDetailView:!1,shouldShowLeadsCenterMVPWelcomeModal:!0,sampleLeadId:"",shouldShowFastFollowupMVP:a.shouldShowFastFollowupMVP,shouldShowLeadsUpsellTipAndPreToSPage:!1,shouldShowLeadsPrioritizationStatus:a.shouldShowLeadsPrioritizationStatus,newLeadsCountSinceLastVisit:a.newLeadsCountSinceLastVisit,shouldShowPipelineTour:a.pipelineTourImpressionCount===0,adQuery:a.adQuery,adsEventSharingSettingStatus:a.adsEventSharingSettingStatus,adsEventSharingBusinessConsentLink:a.adsEventSharingBusinessConsentLink,shouldShowLeadClosureBins:a.shouldShowLeadClosureBins,isEligibleForAdsEventSharingModal:a.isEligibleForAdsEventSharingModal,adsEventSharingModalEntryPoints:a.adsEventSharingModalEntryPoints,shouldShowBulkEditImprovement:a.shouldShowBulkEditImprovement,shouldShowColdStartImprovements:a.shouldShowColdStartImprovements,shouldShowLookalikeModalFromUpsell:b===!0,shouldImproveCSVDownload:a.shouldImproveCSVDownload}));var e=b[0],f=b[1];b=a.isEligibleForAdsEventSharingModal;var g=e.showAudienceExpansionToast,h=e.showSavedAudienceModal,i=d("RelayHooks").useFragment(u,a.queryRef),j=m(d("LeadsManagerViewReducer").viewReducer,d("LeadsManagerViewReducer").getInitialViewState({isToSAccepted:!0})),o=j[0],p=j[1];j=m(d("BizKitContextCardAdsDataSharingNUXContext").reducer,s(a.adsEventSharingSettingStatus,i==null?void 0:i.page));var q=j[0],w=j[1];j=o.settingsViewShown;var x=o.showCSVImportSection,y=o.isShowingToS,z=a.pageID,A=a.pageName,B=a.leadsCSVTemplate,C=a.tableQueryReference,D=a.pipelineViewQueryReference,E=d("RelayHooks").useRelayEnvironment();A=t(a.isComet,z,A,j,x,h,B,i,C,D);d("LeadsCenterQPLLogger").componentLoadTimeStart(a.isToSAccepted,a.isComet,!0);l(function(){d("LeadsManagerLogVisitTimeMutation").commit(E,{asset_id:z,is_bizapp:!1},{}),c("LeadsCenterSurfaceEnterFlowFalcoEvent").log(function(){return{page_id:z,event_location:"leads_center",client_timestamp_ms:Date.now(),event_data:{}}})},[E,z]);return k.jsx(c("CometPlaceholder.react"),{fallback:k.jsx(c("GeoSpinner.react"),{center:!0}),children:k.jsx("div",{"data-testid":void 0,children:k.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:E,children:k.jsx(d("BizKitContextCardAdsDataSharingNUXContext").DataSharingNUXStateContext.Provider,{value:q,children:k.jsx(c("LWIBizWebButtonActionContextProvider.react"),{children:k.jsx(d("BizKitContextCardAdsDataSharingNUXContext").DataSharingNUXDispatchContext.Provider,{value:w,children:k.jsxs(c("LeadsCenterAYMTTipContextProvider"),{children:[k.jsx(c("LeadsManagerContext").Provider,{value:{dispatch:f,state:e},children:k.jsxs(c("LeadsManagerViewContext").Provider,{value:{dispatchForView:p,stateForView:o},children:[k.jsxs(c("ErrorBoundary.react"),{children:[y&&k.jsx(c("CometPlaceholder.react"),{fallback:k.jsx(c("LeadsManagerModalFallback.react"),{header:d("LeadsManagerConstants").LEADS_MANAGER_TOS_DIALOG_TITLE,footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{isLoading:!0,isDisabled:!0,label:d("LeadsManagerConstants").LEADS_MANAGER_TOS_DIALOG_BUTTON})}),isVisible:y,onHide:function(){p({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!1})}}),children:k.jsx(r,{pageID:z,leadCount:(i==null?void 0:(j=i.page)==null?void 0:j.lead_gen_backfill_count)||0})}),k.jsx(c("PageConsentForAdsEventsModal.react"),{relayEnvironment:E,initialAdsConsentOptInStatus:null,shouldShowOrdersAdsConsent:!1,shouldShowLeadStageUpdateAdsConsent:b,shouldShowAppointmentAdsConsent:!1,shouldShowDetectedOutcomesAdsConsent:!1,shouldEnableUniversalAdsEventSharingSettings:!0,onConsentDecisionMade:function(a){f({type:"MBS_ADS_EVENT_SHARING_SETTING_SET_OPT_IN_STATUS",optInStatus:a}),a===!0&&d("RelayHooks").fetchQuery(E,v,{pageID:z}).toPromise().then(function(a){a=s("OPTED_IN",a==null?void 0:a.page);w({type:"INIT",nuxBody:a.nuxBody,nuxType:a.nuxType,nuxUIType:a.nuxUIType})})["catch"](function(a){})},initialConsentNeeded:b,pageID:a.pageID})]}),A,g&&k.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerAudienceExpansionToastLazy",fallback:null,children:k.jsx(n,{})})]})}),z!=null?k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("CometPlaceholder.react"),{name:"LeadsCenterAYMTTipContextUpdater",fallback:null,children:k.jsx(c("LeadsCenterAYMTTipContextUpdater.react"),{pageID:z})})}):null]})})})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LeadsManagerMainView.react",["cx","ix","BizKitDefaultPage.react","BizKitPageHeaderStrings","CometPageletWithDiv.react","CometPlaceholder.react","ErrorBoundary.react","FlexLayout.react","GeoButton.react","GeoCard.react","GeoFlexbox.react","GeoNotice.react","GeoPage.react","GeoPageCard.react","GeoPageHeader.react","GeoPageItem.react","GeoPageSection.react","GeoSection.react","GeoSpinner.react","GeoToolbar.react","HeroInteractionIgnoreWithDiv.react","JSResource","Layout.react","LayoutColumn.react","LeadsCenterAYMTRefs.react","LeadsCenterEducationTipType","LeadsCenterLeadsTabClickFalcoEvent","LeadsCenterMarkEducationTipCompletedMutation","LeadsCenterPopUpTipRenderer.react","LeadsCenterQPLLogger","LeadsManagerActionBar.react","LeadsManagerCSVImportToastDeferred.react","LeadsManagerCometTableRootQuery.graphql","LeadsManagerConstants","LeadsManagerContext","LeadsManagerFilterUtils","LeadsManagerInsightsSection.react","LeadsManagerLeadDetailsContainer.react","LeadsManagerMainView_fragment.graphql","LeadsManagerPageContainer.react","LeadsManagerPipelineOptimizedRootContainer.react","LeadsManagerPipelineViewUtils","LeadsManagerSearchRootNew.react","LeadsManagerStagesBarRoot.react","LeadsManagerTablePreToSAcceptStateLazy.react","LeadsManagerTableRootContainer.react","LeadsManagerTimeUtils","LeadsManagerTypes","LeadsManagerViewContext","LeadsManagerViewTab.react","RelayHooks","dispatchAndFetchLeadsManagerFilters","fbicon","geoMargin","lazyLoadComponent","qpl","react","stylex","useUniqueID"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react"));e=l;var n=e.useContext,o=e.useEffect,p=e.useState,q=c("lazyLoadComponent")(c("JSResource")("LeadsCSVDownloadFilterDialogContainer.react").__setRef("LeadsManagerMainView.react")),r=c("lazyLoadComponent")(c("JSResource")("LeadsManagerChatHeadView.react").__setRef("LeadsManagerMainView.react")),s=function(){return m.jsx(c("CometPlaceholder.react"),{fallback:null,name:"LeadsCSVDownloadFilterDialogContainer",children:m.jsx(q,{})})},t="paid_digest",u={mainContentRootMVP:{overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},contextualColumn:{paddingBottom:"xwxc41k",paddingTop:"xyamay9",width:"xdzyupr",paddingRight:"x8e5d8q",paddingStart:null,paddingEnd:null,$$css:!0}},v=j!==void 0?j:j=b("LeadsManagerMainView_fragment.graphql");function w(a,b){d("LeadsCenterQPLLogger").logEventEndSuccess(c("qpl")._(793517015,"552"),{string:{pageID:a,viewType:b,screenWidth:window.innerWidth,screenHeight:window.innerHeight}})}function a(a){var b,e,g,h=a.isComet,j=a.pageID,l=a.pipelineViewQueryReference,q=a.queryRef;a=a.tableQueryReference;var y=j;a=d("RelayHooks").useQueryLoader(c("LeadsManagerCometTableRootQuery.graphql"),a);var z=a[0];a=a[1];var A=h?a:null,B=d("RelayHooks").useFragment(v,q);h=n(c("LeadsManagerContext"));var C=h.dispatch,D=h.state;a=D.newLeadsCountSinceLastVisit;var E=D.shouldShowBulkEditImprovement;q=D.shouldShowBulkAction;h=n(c("LeadsManagerViewContext"));var ca=h.dispatchForView;h=p(!0);var F=h[0],da=h[1],G=d("RelayHooks").useRelayEnvironment();h=new URLSearchParams(window.location.search);var H=h.get("entry_exp")===t;o(function(){H&&D.selectedSource!=="Paid"&&C({type:"LEADS_MANAGER_SELECT_SOURCE",source:"Paid"}),d("LeadsCenterQPLLogger").logEventStart(c("qpl")._(793518510,"1087"),!0)},[C,H]);var I=D.currentTableState,J=D.isInBizKit,K=D.selectedLeadIDs;h=D.openLeadsCenterDetailView;var ea=D.isToSAccepted,L=D.isFromPreToSAcceptView,M=d("LeadsManagerPipelineViewUtils").getLCViewTypeFromLocalStorage();M=p(M);var N=M[0],fa=M[1];M=K.toArray();o(function(){(I===d("LeadsManagerTypes").LeadsManagerTableStates.LEADS_LOADED||I===d("LeadsManagerTypes").LeadsManagerTableStates.NULL_STATE)&&d("LeadsCenterQPLLogger").logEventEndSuccess(c("qpl")._(793516600,"692"),{string:{pageID:j,viewType:N}})},[I]);function O(){F?C({type:"HIDE_TOP_BAR"}):C({type:"SHOW_TOP_BAR"}),da(!F)}var P=x(B.page),Q=aa(B.page),R=ba(B.page),S={owners:P,pageDetails:R,pageID:y,stages:Q};function T(a){fa(a),d("LeadsManagerPipelineViewUtils").setLCViewTypeToLocalStorage(a)}b=(b=(b=B.page)==null?void 0:(b=b.business_presence_node)==null?void 0:(b=b.biz_crm_config)==null?void 0:(b=b.crm_feature_gating)==null?void 0:b.has_more_than_20_leads)!=null?b:!1;e=(e=(e=B.page)==null?void 0:(e=e.business_presence_node)==null?void 0:(e=e.biz_crm_config)==null?void 0:(e=e.crm_feature_gating)==null?void 0:e.has_ads_access)!=null?e:!1;var U=Q!=null&&Q.length>0,V=!d("LeadsManagerFilterUtils").hasFiltersSelected(N,D),W=function(){ca({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})};W=babelHelpers["extends"]({},S,{environment:G,showToSModal:W,leadsCenterView:"table",lwiQueryRef:B==null?void 0:B.lwi});w(j,N);g=(g=B.page)==null?void 0:(g=g.business_presence_node)==null?void 0:g.biz_crm_config;var X=m.jsx(c("ErrorBoundary.react"),{children:m.jsx(c("HeroInteractionIgnoreWithDiv.react"),{children:m.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerActionBar",fallback:m.jsx(c("GeoSpinner.react"),{center:!0}),children:m.jsx(c("LeadsManagerActionBar.react"),{pageID:y,lwiQueryRef:B==null?void 0:B.lwi,crmConfigQueryRef:g,audienceToolInformation:{hasMoreThan20Leads:b,hasAdsAccess:e},audienceButtonRef:d("LeadsCenterAYMTRefs.react").audienceRef,leadsCenterView:N,stages:(g=Q)!=null?g:[],loadTableQuery:A})})})});b=m.jsxs("div",{className:"x9f619","data-testid":void 0,children:[m.jsx("div",{className:"xh8yej3",children:m.jsx(c("ErrorBoundary.react"),{children:m.jsx(d("CometPageletWithDiv.react").Placeholder,{name:"LeadsManagerTableRoot",fallback:m.jsx(c("GeoSpinner.react"),{center:!0}),children:m.jsx(c("LeadsManagerTableRootContainer.react"),babelHelpers["extends"]({loadTableQuery:A,queryReference:z},W))})})}),D.shouldShowCSVImportToast&&m.jsx(c("LeadsManagerCSVImportToastDeferred.react"),{leadsCenterView:"table"})]});e=B==null?void 0:B.lwi;g={pageID:y,pageDetails:R,lwiQueryRef:e};var ga=m.jsx("div",{style:{maxWidth:"400"},className:(k||(k=c("stylex")))(c("geoMargin").start12,(F||N==="table")&&c("geoMargin").top16,!F&&N==="pipeline"&&c("geoMargin").top12),children:m.jsxs(c("Layout.react"),{children:[m.jsx(c("LayoutColumn.react"),{children:m.jsx(c("LeadsManagerViewTab.react"),{leadsCenterView:N,pageID:y,onSwitch:Z,onLeadsCenterViewChange:T})}),m.jsx("div",{className:"x18mqm2i xzj7eog",children:m.jsx(c("LayoutColumn.react"),{children:m.jsx(c("GeoButton.react"),{icon:d("fbicon")._(i("500221"),16),label:F?d("LeadsManagerConstants").HIDE_FILTER_BUTTON_CONTENT:d("LeadsManagerConstants").SHOW_FILTER_BUTTON_CONTENT,variant:"default",onClick:O})})})]})});function Y(a,b){return m.jsxs("div",{className:(k||(k=c("stylex")))(!F&&c("geoMargin").bottom12),children:[ga,F?m.jsx(c("GeoSection.react"),{children:m.jsx(c("ErrorBoundary.react"),{children:m.jsx(c("LeadsManagerSearchRootNew.react"),{loadTableQuery:b,pageID:y,owners:P,leadsCenterView:N,lwiQueryRef:B==null?void 0:B.lwi,stages:a,clearRecommendationFilters:$})})}):null]})}Y.displayName=Y.name+" [from "+f.id+"]";z=m.jsx(m.Fragment,{children:F?m.jsx(c("GeoSection.react"),{children:m.jsx(c("ErrorBoundary.react"),{children:m.jsx(c("LeadsManagerStagesBarRoot.react"),{loadTableQuery:A,leadsCenterView:N,pageID:y,stages:Q})})}):null});W=c("useUniqueID")();R=m.jsx(m.Fragment,{children:a>0?m.jsx(c("GeoPageSection.react"),{grow:"auto",children:m.jsx(c("GeoPageCard.react"),{columns:12,grow:"auto",shrink:"none",children:m.jsx(c("GeoNotice.react"),{id:W,status:"success",children:d("LeadsManagerConstants").getNewLeadNotice(a)})})}):null});e=m.jsx(c("HeroInteractionIgnoreWithDiv.react"),{children:m.jsx(c("LeadsCenterPopUpTipRenderer.react"),{leadsCenterView:N,onLeadsCenterViewChange:T,fromPreToSView:L,hasStages:U})});Z=m.jsx(m.Fragment,{children:V&&m.jsx(c("GeoPageSection.react"),{children:m.jsx(c("GeoPageItem.react"),{columns:12,shrink:"none",children:m.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerInsightsSection",fallback:m.jsx(c("GeoSpinner.react"),{center:!0}),children:m.jsx(c("LeadsManagerInsightsSection.react"),{pageID:y})})})})});O=m.jsx(c("HeroInteractionIgnoreWithDiv.react"),{children:m.jsx("div",{className:"xh8yej3",children:m.jsx(c("LeadsManagerTablePreToSAcceptStateLazy.react"),{pageID:y})})});var ha=d("BizKitPageHeaderStrings").LEADS;function Z(){c("LeadsCenterLeadsTabClickFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{leads_center_view_type:N==="table"?"pipeline":"table"},event_location:"leads_center",page_id:y}});if(N==="pipeline"){var a=d("LeadsManagerTimeUtils").getStartAndEndTimeOfInterval(D.interval),b=a[0];a=a[1];d("dispatchAndFetchLeadsManagerFilters").onViewSwitch(j,A,D,{stage_id:D.selectedStageID,owner_id:D.selectedOwnerID,label_id:D.selectedLabelID,form_id:D.selectedLeadFormID,source_name:D.selectedSource,status_name:D.selectedStatus,name_search_term:D.nameQuery,email_search_term:D.emailQuery,answer_search_term:D.formAnswerQuery,phone_search_term:D.phoneQuery,campaign_group_id:D.campaignQuery,campaign_id:D.adSetQuery,adgroup_id:D.adQuery,start_time:b,end_time:a,expiring_type:D.expiringQuery,is_unread:D.unreadQuery,shouldShowLeadsPrioritizationStatus:!D.isLeadsPriorityStatusDisabled},K.count()>1&&!E?function(){return C({type:"LEADS_MANAGER_CLOSE_LEAD_DETAILS"})}:null)}else d("LeadsCenterMarkEducationTipCompletedMutation").commit(G,{tip_type:c("LeadsCenterEducationTipType").VIEW_SWITCH},{})}W=m.jsx("div",{className:"xr1yuqi xkrivgy x4ii5y1 x1gryazu x78zum5 x1q0g3np xh8yej3",children:m.jsxs("div",{className:"x78zum5 xdt5ytf xh8yej3",children:[e,O]})});function $(){d("dispatchAndFetchLeadsManagerFilters").dispatchAndFetchLeadsManagerFilters(y,N,A,D,{from_intake_progression:!1,to_converted_progression:!1},function(){C({type:"UPDATE_RECOMMENDATION_FILTER_STATE",fromIntakeProgression:!1,toConvertedProgression:!1})})}a=function(){return m.jsx(c("GeoPageHeader.react"),{heading:ha,toolbar:m.jsx(c("GeoToolbar.react"),{children:m.jsxs(c("CometPlaceholder.react"),{name:"LeadsManagerHeaderRedesignMVP",fallback:m.jsx(c("GeoSpinner.react"),{center:!0}),children:[J||X,J&&m.jsx(c("FlexLayout.react"),{justify:"all",align:"center",children:X})]})})})};L=m.jsxs(m.Fragment,{children:[m.jsxs(c("ErrorBoundary.react"),{children:[m.jsx(c("CometPlaceholder.react"),{fallback:m.jsx(c("GeoSpinner.react"),{center:!0}),name:"LeadsManagerPipeline",children:m.jsx(c("LeadsManagerPipelineOptimizedRootContainer.react"),babelHelpers["extends"]({queryReference:l},g))}),D.chatHead&&m.jsx(c("HeroInteractionIgnoreWithDiv.react"),{children:m.jsx(c("CometPlaceholder.react"),{fallback:null,name:"LeadsManagerChatHeadView",children:m.jsx(r,{threadID:D.threadID,name:D.leadName,profileURIs:D.profilePicUri,platform:D.platform,leadSource:D.leadSource,leadsCenterView:"pipeline",whatsappMailboxId:(T=D.whatsappMailboxId)!=null?T:""})})})]}),D.shouldShowCSVImportToast&&m.jsx(c("LeadsManagerCSVImportToastDeferred.react"),{leadsCenterView:"pipeline"})]});U=m.jsxs(c("GeoPage.react"),{columns:12,grow:"fill",header:a(),isFullwidth:!0,children:[m.jsx(c("GeoPageSection.react"),{grow:"auto",children:m.jsx(c("GeoPageCard.react"),{columns:12,grow:"auto",shrink:"none",children:Y(Q,null)})}),Z,m.jsx(c("GeoPageSection.react"),{grow:"fill",children:m.jsx(c("GeoPageItem.react"),{columns:12,shrink:"none","data-testid":void 0,children:m.jsxs(m.Fragment,{children:[e,m.jsx(s,{}),m.jsx("div",{className:"clearfix"}),L]})})})]});V=m.jsxs(c("GeoPage.react"),{columns:12,grow:"fill",header:a(),isFullwidth:!0,children:[m.jsx(c("GeoPageSection.react"),{grow:"auto",children:m.jsx(c("GeoPageCard.react"),{columns:12,grow:"auto",shrink:"none",children:Y(null,A)})}),Z,R,m.jsx(c("GeoPageSection.react"),{grow:"fill",children:m.jsxs(c("GeoPageCard.react"),{columns:12,grow:"auto",shrink:"none",children:[z,e,m.jsx(s,{}),m.jsx("div",{className:"clearfix"}),b]})})]});O=M.length>0||h===!0||E&&q?m.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:u.contextualColumn,shrink:0,children:m.jsx(c("GeoCard.react"),{children:m.jsx("div",{className:"xh8yej3 x5yr21d x1n2onr6 x1ey2m1c xu96u03 x3m8u43 x13vifvy x6ikm8r",children:m.jsx(c("ErrorBoundary.react"),{children:m.jsx("div",{className:"xh8yej3 x5yr21d x6ikm8r x10wlt62",children:m.jsx(c("LeadsManagerLeadDetailsContainer.react"),babelHelpers["extends"]({},S,{leadsCenterView:N,loadTableQuery:A,clearRecommendationFilters:$}))})})})})}):null;return m.jsx(m.Fragment,{children:ea?m.jsx(c("LeadsManagerPageContainer.react"),{children:m.jsxs("div",{className:"x78zum5 x193iq5w xh8yej3 x6ikm8r x10wlt62",children:[N==="pipeline"?U:V,O]})}):m.jsx(c("BizKitDefaultPage.react"),{initShowLocalNav:!1,hideHeader:!0,header:a(),isFullwidth:!0,children:m.jsx(c("GeoCard.react"),{children:m.jsxs(c("GeoFlexbox.react"),{direction:"row",xstyle:u.mainContentRootMVP,children:[m.jsx(c("GeoFlexbox.react"),{basis:"0",grow:1,shrink:1}),W]})})})})}a.displayName=a.name+" [from "+f.id+"]";function x(a){var b=[];a=a==null?void 0:a.possible_lead_owners;a!=null&&a.map(function(a){b.push(a)});return b}function aa(a){return a==null?void 0:a.page_opportunity_stages}function ba(a){return{id:(a==null?void 0:a.id)||"",name:(a==null?void 0:a.name)||"",pictureURL:(a==null?void 0:(a=a.profile_picture)==null?void 0:a.uri)||""}}g["default"]=a}),98);
-----
LeadsManagerTableNullState.react",["fbt","BUIButton.react","BUIText.react","FlexLayout.react","LeadManagerUtils","LeadsManagerConstants","LeadsManagerContext","LeadsManagerLeadDetailsEditContactDialogLazy.react","LeadsManagerViewContext","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useState;function a(a){var b=a.nullStateType;a=a.pageID;var e=d("RelayHooks").useRelayEnvironment(),f=k(c("LeadsManagerViewContext")),g=f.dispatchForView;f=k(c("LeadsManagerContext"));f=f.state;f=f.canSeeLeadOwnerInvitation;var i=l(!1),m=i[0],n=i[1];i=b;b=a;switch(i){case d("LeadManagerUtils").LeadsManagerNullStateType.TOS:return f?j.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[j.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center",children:h._("Please accept the Page Contact Terms to use the Leads Centre tool.")}),j.jsx(c("BUIButton.react"),{label:h._("View Terms"),use:"primary",onClick:function(){g({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})}})]}):j.jsx(c("FlexLayout.react"),{align:"center",direction:"vertical",children:j.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center",size:"header3",weight:"bold",children:d("LeadsManagerConstants").PRE_TOS_ACCEPT_VIEW_NO_PERMISSION_TEXT})});case d("LeadManagerUtils").LeadsManagerNullStateType.NO_LEADS:return j.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[m&&j.jsx(c("LeadsManagerLeadDetailsEditContactDialogLazy.react"),{environment:e,lead:null,pageID:b,onClose:function(){n(!1)},leadsCenterView:"table"}),j.jsx(c("BUIText.react"),{size:"header2","data-testid":void 0,children:h._("You don"t have any leads yet")}),j.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center","data-testid":void 0,children:h._("Leads generated from your lead ads will automatically be shown here. You can also manually create leads or upload your list of leads from a spreadsheet.")}),j.jsxs("div",{margin:"_3-8x",children:[j.jsx(c("BUIButton.react"),{label:h._("Create Lead"),use:"default",onClick:function(){n(!0)},"data-testid":void 0}),j.jsx(c("BUIButton.react"),{margin:"_3-9a",label:h._("Upload Leads"),use:"primary",onClick:function(){g({type:"LEADS_MANAGER_TOGGLE_CSV_IMPORT_SECTION",showCSVImportSection:!0})},"data-testid":void 0})]})]});case d("LeadManagerUtils").LeadsManagerNullStateType.NO_SEARCH_RESULTS:return j.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[j.jsx(c("BUIText.react"),{size:"header2",children:h._("No results")}),j.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center",children:h._("Try removing filters or selecting a different stage.")})]});case d("LeadManagerUtils").LeadsManagerNullStateType.DATA_PROPAGATING:return j.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[j.jsx(c("BUIText.react"),{size:"header2",children:h._("Your lead data is loading!")}),j.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center",children:h._("We are working on fetching leads generated from your lead ads campaign. It will take a while for the first time. Please come back later.")})]})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
LeadsManagerPipelineNullState.react",["fbt","FlexLayout.react","GeoBaseText.react","GeoButton.react","GeoHeading.react","GeoText.react","LeadManagerUtils","LeadsManagerViewContext","geoMargin","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useContext;function a(a){var b=a.nullStateType;a.pageID;a=k(c("LeadsManagerViewContext"));var e=a.dispatchForView;a=b;switch(a){case d("LeadManagerUtils").LeadsManagerNullStateType.TOS:return j.jsx("div",{className:"x10l6tqk x14kq9sb x1nrll8i x1m9mm8y",children:j.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[j.jsx(c("GeoBaseText.react"),{xstyle:c("geoMargin").bottom8,textAlign:"center",size:"header4",color:"value",weight:"bold",children:h._("Please accept the Page Contact Terms to use the Leads Centre tool.")}),j.jsx(c("GeoButton.react"),{label:h._("View Terms"),variant:"primary",onClick:function(){e({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})}})]})});case d("LeadManagerUtils").LeadsManagerNullStateType.DATA_PROPAGATING:return j.jsx("div",{className:"x10l6tqk x14kq9sb x1nrll8i x1m9mm8y",children:j.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[j.jsx(c("GeoHeading.react"),{level:2,children:h._("Your lead data is loading!")}),j.jsx(c("GeoText.react"),{xstyle:c("geoMargin").bottom8,textAlign:"center",children:h._("We are working on fetching leads generated from your lead ads campaign. It will take a while for the first time. Please come back later.")})]})});default:return j.jsx("div",{})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
AdsTargetingAudienceEditorContainer.react",["cx","fbt","AdsAPISpec","AdsAudienceFilterEnum","AdsCommonTargetingConstants","AdsCustomAudienceSharingConstants","AdsDetailedTargetingRelaxationUtils","AdsFluxContainer","AdsInterfacesLogger","AdsLookalikeContainerConstants","AdsManagerRelayEnvironment","AdsMessengerPlacementUtils","AdsPEFluxCreateAudienceActionFlux","AdsStaticGuidanceCard.react","AdsTargetingAsASignalGuidanceCardImpressionsAction","AdsTargetingAudienceActions","AdsTargetingAudienceCreationPopoverMenu.react","AdsTargetingAudienceEditorContainerHasDeprecatedAppEventSegmentsAudienceQuery.graphql","AdsTargetingAudienceEditorSelector","AdsTargetingAudienceLoggingEvents","AdsTargetingAudienceNewVBLALAddedAction","AdsTargetingAudienceTokenizer.react","AdsTargetingAudienceUtils","AdsTargetingBootloadDialog.react","AdsTargetingConnectionCountriesMisalignmentAction","AdsTargetingCustomAudienceExpansionUtils","AdsTargetingDFCABMRequirementMTCNotice.react","AdsTargetingLookalikeContainerSeedSizeStatusAction","AdsTargetingLookalikeRelaxationConstants","AdsTargetingLookalikeRelaxationUtils","AdsTargetingSharedAudienceAgreementNotAcceptedMTCNotice.react","AdsTargetingSignalLossUtils","AdsTargetingSpecHasAppEventSegmentsAudienceFetchAction","AdsTargetingUntrustedAccountUsingDFCANotice.react","AdsTargetingVBLALUpsellUtils","AdsTargetingValueBasedLookalikeUpsellContainer.react","AdsUtils","AsyncRequest","AsyncTypedRequest","AudienceManagerCreateAudienceFlatDialogSuspense.react","BUIGuidanceCard.react","BUIGuidanceCardCloseButton.react","BUIGuidanceCardContent.react","BUIGuidanceCardContentLink.react","BUIGuidanceCardContentText.react","BUIGuidanceCardHeader.react","BizSiteIdentifier.brands","ContextualLayerAutoFlipBluetip","ContextualLayerShowAndHideOnScrollOut","ContextualLayerUpdateOnScroll","CustomAudienceTosUtils","CustomAudienceUtils","DataFileCustomAudienceUserLevelTOSModal.react","DatafileCustomAudienceSharingStatus","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardFooter.react","GeoGuidanceCardHeader.react","GeoLink.react","GeoSpinner.react","JSResource","LayerFadeOnHide","LayerFadeOnShow","LayerHideOnBlur","LetterboxEnumUtils","Link.react","LoadingMarkerArea.react","RelayHooks","SimpleNUXMessage","TargetingEUPrivacyDirectiveConstants","ThisControllerNoLongerExists","URI","XAdsCampaignHasDeletedConnectionsSavedAuidenceController","XAdsTargetingAsASignalImpressionsController","XAdsTargetingConnectionsCountriesMisalignmentController","XHasDeprecatedAppEventSegmentsAudienceController","XUIAmbientNUX.react","adsTargetingCreateLookalikeContainers","cachedGraphAPI","geoMargin","gkx","immutable","promiseDone","prop-types","react","vulture"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react"));a=l.Component;var n=600,o=d("AdsAPISpec").CUSTOM_AUDIENCE_FIELDS.map(d("AdsUtils").underscoreKey),p=310,q=new(k||(k=c("URI")))("/business/help/917879191754763");function r(){return m.jsx("div",{className:"_2piv",children:m.jsx(c("LoadingMarkerArea.react"),{name:"AdsTargetingAudienceEditorContainer",owner:"admarket_targeting_oncalls",children:m.jsx(c("GeoSpinner.react"),{})})},"spinner")}r.displayName=r.name+" [from "+f.id+"]";function s(a){return(a.customAudiences||[]).concat(a.excludedCustomAudiences||[])}function t(a,b,e){return!a?null:m.jsx("div",{className:"_3-8i",id:"accept_dfca_user_tos_notice",children:m.jsx(c("AdsStaticGuidanceCard.react"),{ccCardProps:{category:"ERROR",messageID:"accept_dfca_user_tos_notice",textData:[{type:"PARAGRAPH",data:{text:d("AdsCustomAudienceSharingConstants").DFCA_TOS_NOT_ACCEPTED(b,e)}}],ctaData:[{type:"BUTTON_GROUP",data:{buttonsData:[{dataTestID:"audience-editor-container-dfca-tos-notice-button",text:"Next",onCallToAction:function(){d("AdsTargetingAudienceActions").showUserTosDialog(b)}}]}}]}})})}t.displayName=t.name+" [from "+f.id+"]";function u(a){var b=a.hasLegacyLookalikes,e=a.isRegulated;a=a.seedSizeStatus;c("vulture")("7cEvRFaUy1r");return a==null||a.status!="LOW_SEEDS"||b==!0?null:m.jsxs(c("BUIGuidanceCard.react"),{category:"error",children:[m.jsx(c("BUIGuidanceCardHeader.react"),{children:d("AdsLookalikeContainerConstants").LOOKALIKE_SOURCE_TOO_SMALL_MESSAGE(e)}),m.jsx(c("BUIGuidanceCardContent.react"),{children:m.jsx(c("BUIGuidanceCardContentText.react"),{children:a.message})})]})}u.displayName=u.name+" [from "+f.id+"]";function v(a){var b=a.audiencesLength,e=a.creationSource,f=a.isRegulated,g=a.onClose;a=a.spinnerStatus;c("vulture")("8RSKbsY46YC");if(a!=B.LOADED_SUCCESS||b===0)return null;a=d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_SUCCESS_BODY(e,f);return m.jsxs(c("BUIGuidanceCard.react"),{action:m.jsx(c("BUIGuidanceCardCloseButton.react"),{onPress:g}),category:"success",margin:"_3-8x _3-95",children:[m.jsx(c("BUIGuidanceCardHeader.react"),{children:d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_SUCCESS_HEADER(f)}),m.jsx(c("BUIGuidanceCardContent.react"),{children:m.jsx(c("BUIGuidanceCardContentText.react"),{children:a})})]})}v.displayName=v.name+" [from "+f.id+"]";function w(a){var b=a.creationSource,e=a.hasLegacyLookalikes,f=a.isRegulated,g=a.onClick;a=a.spinnerStatus;c("vulture")("3YuDTf4YBwq");if(a===B.LOADING)return m.jsx(c("GeoSpinner.react"),{label:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_SPINNER_TEXT(f)});return!e||a===B.LOADED_ERROR?null:m.jsx("div",{className:"_2pio",children:m.jsx(c("AdsStaticGuidanceCard.react"),{ccCardProps:{category:"ERROR",messageID:"convert_lookalike_to_lookalike_container_notice",header:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_BANNER_HEADER(f),textData:[{type:"PARAGRAPH",data:{text:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_BANNER_BODY(b,f)}}],ctaData:[{type:"BUTTON_GROUP",data:{buttonsData:[{text:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_BUTTON_TEXT(f),onCallToAction:g}]}}]}})})}w.displayName=w.name+" [from "+f.id+"]";function x(){var a;return m.jsx(c("GeoGuidanceCard.react"),{footer:m.jsx(c("GeoGuidanceCardFooter.react"),{children:m.jsx(c("GeoLink.react"),{href:(a=d("TargetingEUPrivacyDirectiveConstants")).EU_PRIVACY_DIRECTIVE_AUDIENCE_MANAGER_LEARN_MORE_LINK,target:"_blank",children:a.EU_PRIVACY_DIRECTIVE_AUDIENCE_MANAGER_LEARN_MORE})}),header:m.jsx(c("GeoGuidanceCardHeader.react"),{heading:a.REMOVE_EU_PRIVACY_DIRECTIVE_AUDIENCES_ERROR_HEADER}),status:"error",xstyle:c("geoMargin").vert8,children:m.jsx(c("GeoGuidanceCardContent.react"),{children:a.REMOVE_EU_PRIVACY_DIRECTIVE_AUDIENCES_ERROR_BODY_POST_DEC_9})})}x.displayName=x.name+" [from "+f.id+"]";function y(a){var b=a.audiencesLength,e=a.creationSource,f=a.hasLegacyLookalikes,g=a.isRegulated;a=a.spinnerStatus;c("vulture")("9FHphzIs0W0");if(a!=B.LOADED_ERROR||b==0)return null;if(!f)return null;a=d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_ERROR_BODY(e,g);return m.jsxs(c("BUIGuidanceCard.react"),{category:"error",margin:"_3-8x _3-95",children:[m.jsx(c("BUIGuidanceCardHeader.react"),{children:d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_ERROR_HEADER(g)}),m.jsx(c("BUIGuidanceCardContent.react"),{children:m.jsx(c("BUIGuidanceCardContentText.react"),{children:a})})]})}y.displayName=y.name+" [from "+f.id+"]";function z(a){a=a.badAudiences;c("vulture")("8lYchSyDWA5");a=i._("Your saved audience can"t be used because it contains at least one audience that has been disabled. Disabled audiences were shared by accounts that are no longer active. To continue using this saved audience, remove the affected audiences: {bad audiences}",[i._param("bad audiences",a.join(","))]);return m.jsx("div",{className:"_2pio",id:"saved_audience_owner_account_disabled_notice",children:m.jsx(c("AdsStaticGuidanceCard.react"),{ccCardProps:{category:"ERROR",messageID:"saved_audience_owner_disabled_notice",textData:[{type:"PARAGRAPH",data:{text:a}}]}})})}z.displayName=z.name+" [from "+f.id+"]";function A(a,b,c){return a===!0&&b===!0&&!c}var B=Object.freeze({LOADING:"LOADING",LOADED_SUCCESS:"LOADED_SUCCESS",LOADED_ERROR:"LOADED_ERROR",NONE:"NONE"});e=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,e;for(var g=arguments.length,h=new Array(g),i=0;i
-----
DataFileCustomAudienceUserLevelTOSModal.react",["fbt","ix","BUIButton.react","BUIModal.react","BUIModalFooter.react","BUISection.react","BUIText.react","FlexLayout.react","Image.react","ImageBlock.react","Link.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=k.jsx(c("Image.react"),{src:i("396621")}),m=h._("Requirements for using custom audiences"),n=h._("Requirements for using value-based Custom Audiences"),o=h._("To use Custom Audiences, you must be: an advertiser; an agency or data provider acting on behalf of an advertiser; or a Marketing API or Custom Audiences API partner."),p=h._("Advertisers and those who run ads on their behalf are ultimately responsible for acknowledging their permission to share and use people"s data."),q=function(a){return h._("You are accepting terms on behalf of {business_name}",[h._param("business_name",k.jsx("strong",{children:a}))])},r=function(a,b){b=b===!0?k.jsx(c("Link.react"),{href:"/customaudiences/value_based/tos.php?act="+a,target:"_blank",children:h._("Meta Business Tools Terms")}):k.jsx(c("Link.react"),{href:"/ads/manage/customaudiences/tos.php?act="+a,target:"_blank",children:h._("Custom audience terms")});return h._("By clicking "I Accept", you agree to the {custom_audience_terms}.",[h._param("custom_audience_terms",b)])};a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f
AudienceManagerCreateAudienceFlatDialogContainer.react",["cx","AdsAMAccountAcceptedTosAddAction","AdsAMCreateAudienceServerActions","AdsAMCreateAudienceStore","AdsAMCreateAudienceViewActions","AdsAMEngagementAudienceCreatedActionFlux","AdsAMFileImportCreateAudienceCompleteAction","AdsAMMailChimpFetchCompleteActionFlux","AdsAMMailChimpUploadCompleteActionFlux","AdsAMViewCloseMoveAdAccoutToBusinessDialogAction","AdsAccountStore","AdsAccountUtils","AdsAudienceCreationDialogConstants","AdsAudienceUploaderFlowNextSteps.react","AdsCustomAudienceType","AdsDfcaLalasGuidanceCustomerListSelectionModal.react","AdsEngagementAudienceUILogger","AdsGeodesicAdoption","AdsGraphAPI","AdsInterfacesLogger","AdsManagerIGLoginUtils","AdsManagerUserPermissions","AdsTargetingAudienceEditorGKSelectors","AdsTargetingBootloadDialog.react","AsyncRequest","AudienceManagerCompleteUploadMessage.react","AudienceManagerCreateAudienceCompleteDialogContent.react","AudienceManagerCreateAudienceFlatDialogConstants","AudienceManagerCreateAudienceFlatDialogMainMenu.react","AudienceManagerCreateAudienceFlatDialogUtils","AudienceManagerCustomerListAudienceStepperModal.react","AudienceManagerCustomerListAudienceStepperModalV2.react","AudienceManagerErrorDialogContent.react","AudienceManagerLoggingEvents","AudienceManagerMailChimpInitDialogContent.react","AudienceManagerMailChimpSelectListDialogContent.react","AudienceManagerNextStepDialogContent.react","AudienceManagerShouldDisableMACAAsLookalikeSourceProvider","AudienceManagerSubscriberListStepperModal.react","AudienceManagerTieredLookalikeDialog.react","AudienceManagerUIConstants","AudienceManagerUploadDialogContent.react","BusinessManagerUpsellContainer.brands","CometPlaceholder.react","CreateCAStages","CustomAudienceTosUtils","CustomAudienceUtils","DataFileCustomAudienceUserLevelTOSModal.react","FluxContainer","GeoSpinner.react","JSResource","MarketingMessagesGKUtils","PopupWindow","RelayFBEnvironment","RelayHooks","XCheckUserHasMMWABAPermissionControllerRouteBuilder","XUIDialogTitle.react","lazyLoadComponent","promiseDone","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=c("AudienceManagerShouldDisableMACAAsLookalikeSourceProvider").toFluxSelector(),l="",m=c("lazyLoadComponent")(c("JSResource")("AudienceManagerCreateMultikeyAudienceImportDialogContainer.react").__setRef("AudienceManagerCreateAudienceFlatDialogContainer.react")),n=c("lazyLoadComponent")(c("JSResource")("AdsCreatePlatformAudienceDialogContainer.react").__setRef("AudienceManagerCreateAudienceFlatDialogContainer.react"));a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var g=arguments.length,h=new Array(g),i=0;i
-----
LeadsManagerViewReducer",[],(function(a,b,c,d,e,f){"use strict";function a(a){return{settingsViewShown:!1,showCSVImportSection:!1,isShowingToS:!a.isToSAccepted}}function b(a,b){switch(b.type){case"LEADS_MANAGER_SETTINGS_VIEW":return babelHelpers["extends"]({},a,{showCSVImportSection:!1,settingsViewShown:b.settingsViewShown});case"LEADS_MANAGER_TOGGLE_CSV_IMPORT_SECTION":return babelHelpers["extends"]({},a,{settingsViewShown:!1,showCSVImportSection:b.showCSVImportSection});case"LEADS_MANAGER_TOGGLE_TOS_MODAL":return babelHelpers["extends"]({},a,{isShowingToS:b.showToSModal,settingsViewShown:!1,showCSVImportSection:!1});default:return a}}f.getInitialViewState=a;f.viewReducer=b}),66);
-----
BizKitContextCardActivityListItem.react",["cx","fbt","ix","BizInboxStateContext","BizKitContextCardActivityListItemActionsMenu.react","BizKitContextCardActivityListItemDetail.react","BizKitContextCardActivityListItemIcon.react","BizKitContextCardActivityListItem_mbsBusinessAssets.graphql","BizKitContextCardActivityListItem_node.graphql","BizKitContextCardActivityListItem_page.graphql","GeoIcon.react","GeoText.react","GeoTooltip.react","LeftRight.react","RelayHooks","ShimButton.react","Timestamp.react","fbicon","formatDate","getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils","react"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l,m,n,o=n||(n=d("react"));e=n;var p=e.useContext,q=e.useState,r=k!==void 0?k:k=b("BizKitContextCardActivityListItem_node.graphql"),s=o.createRef();function a(a){var e,f=a.data,g=a.isInKBankRollout,h=a.mbsBusinessAssets,k=a.onShowContactCardTosModal,n=a.page,t=a.pageContactID,u=a.pageID,v=a.selectInteraction;a.shouldRemovePageVCDependency;var w=a.shouldShowContactCardTos,x=a.surface;a=a.userID;var y=q(!1),z=y[0],A=y[1],B=d("RelayHooks").useFragment(r,f);y=k;f=w;k=d("RelayHooks").useFragment(l!==void 0?l:l=b("BizKitContextCardActivityListItem_page.graphql"),n);w=d("RelayHooks").useFragment(m!==void 0?m:m=b("BizKitContextCardActivityListItem_mbsBusinessAssets.graphql"),h);n=d("getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils").getIsDependencyOfRemovePageDependencyEnabledToolForContactCard(x);h=n?w:k;w=(h==null?void 0:(n=h.timelineActionsCheck)==null?void 0:n.showTimelineActions)===!0;n=(h=(k=B.contact_action)==null?void 0:k.descriptions.map(function(a){return(a=a.text)!=null?a:""}).filter(function(a){return a!==""}))!=null?h:[];k=p(c("BizInboxStateContext"));h=k.defaultCurrency;k=((k=B.contact_action)==null?void 0:k.is_auto_detected)===!0?(k=B.contact_action)==null?void 0:k.data_silo_auto_detected_activity:(k=B.contact_action)==null?void 0:k.data_silo;e=((e=B.contact_action)==null?void 0:e.is_auto_detected)!==!0&&k!=="SP_SILO_BUSINESS";k=(k=B.contact_action)==null?void 0:k.type;var C=x==="INBOX_MESSAGING_FB"||x==="INBOX_MESSAGING_IG";if(C){var D;C=o.jsx("div",{onMouseEnter:function(){s.current==null&&A(!0)},onMouseLeave:function(){A(!1)},children:o.jsx(c("ShimButton.react"),{className:"_5-vm"+(((D=B.contact_action)==null?void 0:(D=D.story)==null?void 0:D.id)?" _cxw":""),onClick:function(){v!=null&&v(B)},children:o.jsxs(c("LeftRight.react"),{direction:"left",children:[o.jsx(c("BizKitContextCardActivityListItemIcon.react"),{isCorporationActivity:e,actionType:k,shouldShowNewActivityDesign:C}),o.jsxs("div",{className:"xy80clv xod5an3 x540dpk x1gslohp",children:[o.jsxs(c("LeftRight.react"),{children:[o.jsx(c("GeoText.react"),{children:(D=(D=B.contact_action)==null?void 0:(C=D.title)==null?void 0:C.text)!=null?D:""}),u!=null&&o.jsx(c("BizKitContextCardActivityListItemActionsMenu.react"),{actionType:k,defaultCurrency:h,descriptions:n,dialogRef:s,interactionID:(C=B.contact_action)==null?void 0:C.interaction_id,invoiceID:(D=B.contact_action)==null?void 0:D.invoice_id,pageID:u,surface:x,pageContactID:t,onShowContactCardTosModal:y,shouldShowContactCardTos:f,shouldShow:z,userID:a})]}),o.jsx("div",{className:"x1a2yejm",children:((C=B.contact_action)==null?void 0:C.style)==="DETAIL"&&o.jsx(c("BizKitContextCardActivityListItemDetail.react"),{actionType:k,clickUrl:(D=B.contact_action)==null?void 0:D.click_url,descriptions:n,imageUrl:(C=B.contact_action)==null?void 0:C.image_url,interactionID:(D=B.contact_action)==null?void 0:D.interaction_id,invoiceID:(C=B.contact_action)==null?void 0:C.invoice_id,isInKBankRollout:g==!0,pageID:u,onShowContactCardTosModal:y,shouldShowContactCardTos:f,subtitle:(D=B.contact_action)==null?void 0:(C=D.subtitle)==null?void 0:C.text,timestamp:(D=B.contact_action)==null?void 0:D.timestamp,userID:a})}),o.jsxs("div",{className:"x78zum5",children:[o.jsx("div",{className:"x17ddzgb xuol047 x4yy6wa",children:o.jsx(c("Timestamp.react"),{text:c("formatDate")((C=B.contact_action)==null?void 0:C.timestamp,"D M j, Y g:ia"),time:Number((D=B.contact_action)==null?void 0:D.timestamp)})}),o.jsx("div",{children:o.jsxs("div",{className:"x78zum5",children:[o.jsx("div",{className:"x1nx2rwh",children:((C=B.contact_action)==null?void 0:C.is_auto_detected)===!0&&o.jsx(c("GeoTooltip.react"),{content:i._("This activity was created by an automation."),position:"right",children:o.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(j("572392"),16)})})}),((D=B.contact_action)==null?void 0:D.show_ad_icon)===!0&&o.jsx(c("GeoTooltip.react"),{content:i._("This activity will be shared with Meta to improve ads. You can manage this with your data sharing preferences."),position:"right",children:o.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(j("508086"),16)})})]})})]})]})]})})});return C}return o.jsx("div",{onMouseEnter:function(){s.current==null&&A(!0)},onMouseLeave:function(){A(!1)},children:o.jsxs(c("ShimButton.react"),{className:"_5-vm"+(((D=B.contact_action)==null?void 0:(C=D.story)==null?void 0:C.id)?" _cxw":""),onClick:function(){v!=null&&v(B)},children:[o.jsxs(c("LeftRight.react"),{children:[o.jsxs(o.Fragment,{children:[o.jsx(c("BizKitContextCardActivityListItemIcon.react"),{isCorporationActivity:e,actionType:k}),o.jsx(c("GeoText.react"),{children:(e=(D=B.contact_action)==null?void 0:(C=D.title)==null?void 0:C.text)!=null?e:""})]}),w&&u!=null&&o.jsx(c("BizKitContextCardActivityListItemActionsMenu.react"),{actionType:k,defaultCurrency:h,descriptions:n,dialogRef:s,interactionID:(D=B.contact_action)==null?void 0:D.interaction_id,invoiceID:(C=B.contact_action)==null?void 0:C.invoice_id,pageID:u,surface:x,pageContactID:t,onShowContactCardTosModal:y,shouldShowContactCardTos:f,shouldShow:z,userID:a})]}),o.jsxs("div",{className:"xy80clv xod5an3 x1mnrxsn x1gslohp",children:[((e=B.contact_action)==null?void 0:e.style)==="DETAIL"&&o.jsx(c("BizKitContextCardActivityListItemDetail.react"),{actionType:k,clickUrl:(w=B.contact_action)==null?void 0:w.click_url,descriptions:n,imageUrl:(h=B.contact_action)==null?void 0:h.image_url,interactionID:(D=B.contact_action)==null?void 0:D.interaction_id,invoiceID:(C=B.contact_action)==null?void 0:C.invoice_id,isInKBankRollout:g==!0,pageID:u,onShowContactCardTosModal:y,shouldShowContactCardTos:f,subtitle:(x=B.contact_action)==null?void 0:(t=x.subtitle)==null?void 0:t.text,timestamp:(z=B.contact_action)==null?void 0:z.timestamp,userID:a}),o.jsxs("div",{className:"x78zum5",children:[o.jsx("div",{className:"x17ddzgb xuol047 x4yy6wa",children:o.jsx(c("Timestamp.react"),{text:c("formatDate")((e=B.contact_action)==null?void 0:e.timestamp,"D M j, Y g:ia"),time:Number((k=B.contact_action)==null?void 0:k.timestamp)})}),o.jsxs("div",{className:"x78zum5",children:[o.jsx("div",{className:"x1nx2rwh",children:((w=B.contact_action)==null?void 0:w.is_auto_detected)===!0&&o.jsx(c("GeoTooltip.react"),{content:i._("This activity was created by an automation."),position:"right",children:o.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(j("572392"),16)})})}),((n=B.contact_action)==null?void 0:n.show_ad_icon)===!0&&o.jsx(c("GeoTooltip.react"),{content:i._("This activity will be shared with Meta to improve ads. You can manage this with your data sharing preferences."),position:"right",children:o.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(j("508086"),16)})})]})]})]})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardActivityListItemDetail.react",["ix","GeoLink.react","Image.react","JSResource","LeftRight.react","MNCommerceDialogStateActions","MessengerAdsConversionFunnelTypedLogger","MessengerConversionEvent","PagesPlatformBookingMessageViewer","ServicesAppointmentDialogRoot.react","ServicesAppointmentManagementDialogEnum","emptyFunction","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useState,l=c("lazyLoadComponent")(c("JSResource")("MNCommerceOrderDetailsDialogContainer.react").__setRef("BizKitContextCardActivityListItemDetail.react")),m=c("lazyLoadComponent")(c("JSResource")("OrderShippedDetailDialog.react").__setRef("BizKitContextCardActivityListItemDetail.react")),n=c("lazyLoadComponent")(c("JSResource")("FBPaymentsReceiptDialog.react").__setRef("BizKitContextCardActivityListItemDetail.react")),o={referrerUIComponent:"composer",referrerUISurface:"message"};function a(a){var b=a.actionType,e=a.clickUrl,g=a.descriptions,i=a.imageUrl;a.interactionID;var p=a.invoiceID,q=a.isInKBankRollout,r=a.onShowContactCardTosModal,s=a.pageID,t=a.shouldShowContactCardTos,u=a.subtitle;a.timestamp;var v=a.userID;a=k(!1);var w=a[0],x=a[1];if(g.length===0)return null;function y(){var a=r,f=t,g=function(){if(f)return a();x(!0)},h=function(){x(!1)},i=null,k=u;if(e!=null)k=j.jsx(c("GeoLink.react"),{href:e,target:"_blank",children:u});else if(b!=null)switch(b){case"APPOINTMENT_BOOKED":p!=null&&s!=null&&(k=j.jsx(c("GeoLink.react"),{onClick:function(){g(),new(c("MessengerAdsConversionFunnelTypedLogger"))().setName(c("MessengerConversionEvent").PAGE_CLICK_APPOINTMENT_BOOKED_CTA).setPageID(s).setConsumerID(v).log()},children:u}),i=j.jsx(c("ServicesAppointmentDialogRoot.react"),{causalElementRef:c("emptyFunction"),dialogType:c("ServicesAppointmentManagementDialogEnum").VIEW_DETAILS,onToggle:x,pageID:s,referrerData:o,requestID:p,showMessengerButton:!1,shown:w,userID:v,viewer:c("PagesPlatformBookingMessageViewer").ADMIN}));break;case"PAYMENT_RECEIVED":p!=null&&(k=j.jsx(c("GeoLink.react"),{onClick:function(){g(),new(c("MessengerAdsConversionFunnelTypedLogger"))().setName(c("MessengerConversionEvent").PAGE_CLICK_PAYMENT_RECEIVED_CTA).setPageID(s).setConsumerID(v).log()},children:u}),i=j.jsx(j.Suspense,{fallback:null,children:j.jsx(n,{actorID:s,onDialogToggle:x,receiptClientType:"pages_commerce",receiptID:p})}));break;case"ORDER_SHIPPED":p!=null&&s!=null&&(k=j.jsx(c("GeoLink.react"),{onClick:g,children:u}),i=j.jsx(j.Suspense,{fallback:null,children:j.jsx(m,{invoiceID:p,isInKBankRollout:q,onToggle:h,pageID:s})}));break;case"ORDER_PLACED":if(p!=null){h=function(){d("MNCommerceDialogStateActions").showDialog(l,{receiptID:p})};k=j.jsx(c("GeoLink.react"),{onClick:h,children:u})}break;default:break}return j.jsxs("div",{className:"x117nqv4 xahult9 xsgj6o6 x1gslohp x6ikm8r x10wlt62 xlyipyv xuxw1ft",children:[k,w&&i]})}y.displayName=y.name+" [from "+f.id+"]";function z(){return g.map(function(a,b){var d=a;e!=null&&(d=j.jsx(c("GeoLink.react"),{href:e,target:"_blank",children:a}));return j.jsx("div",{className:"x17ddzgb x6ikm8r x10wlt62 xlyipyv x16dsc37 xuxw1ft",children:d},b)})}function A(){if(b==null)return null;var a={width:"56px",height:"56px",borderRadius:"4px",marginBottom:"2px",marginLeft:"16px",marginRight:"8px"};if(i!=null)return e!=null?j.jsx("a",{href:e,target:"_blank",children:j.jsx(c("Image.react"),{src:i,style:a})}):j.jsx(c("Image.react"),{src:i,style:a});a=null;switch(b){case"APPOINTMENT_BOOKED":a=h("994823");break;case"ORDER_SHIPPED":a=h("802395");break;case"ORDER_PLACED":a=h("1059944");break;case"PAYMENT_RECEIVED":case"BUSINESS_ORDER":a=h("994823");break;default:break}return a===null?null:j.jsx("div",{className:"x1q8sqs3 x1lcm9me x1yr5g0i xrt01vj x10y3i5r xxk0z11 xjpr12u x1d52u69 x1emribx xyamay9 x1pi30zi x1l90r2v x1swvt13 xvy4d1p",children:j.jsx(c("Image.react"),{src:a})})}A.displayName=A.name+" [from "+f.id+"]";return j.jsxs(c("LeftRight.react"),{direction:"left",children:[A(),j.jsxs(j.Fragment,{children:[y(),z()]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivityListItemActionsMenu.react",["cx","fbt","ix","BUIContextualLayer.react","BUIMenu.react","BizKitContextCardUtils","CTMEPDChecker","ContactGraphDeleteActivityCancelFlowFalcoEvent","ContactGraphDeleteActivityClickFalcoEvent","ContactGraphDeleteActivityDeleteFalcoEvent","GeoIcon.react","JSResource","PagesInboxThreadActionSystemDispatcher","PagesManagerInboxDeleteActivityMutation","ServicesAppointmentManagementDialogEnum","ThreadActionSystemTimelineActionFalcoEvent","emptyFunction","fbicon","lazyLoadComponent","nullthrows","promiseDone","react","stylex"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l,m=l||(l=d("react"));b=l;var n=b.useEffect,o=b.useRef,p=b.useState,q=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxThreadActionSystemOrderPlacedDialog.react").__setRef("BizKitContextCardActivityListItemActionsMenu.react")),r=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxThreadActionSystemAppointmentDialog").__setRef("BizKitContextCardActivityListItemActionsMenu.react")),s=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxOrderShippedActivitySendDetailsDialog.react").__setRef("BizKitContextCardActivityListItemActionsMenu.react")),t=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxDeleteActivityConfirmationDialog.react").__setRef("BizKitContextCardActivityListItemActionsMenu.react")),u={actionMenuHidden:{visibility:"xlshs6z",$$css:!0}};function v(a){return a==="APPOINTMENT_BOOKED"||a==="ORDER_PLACED"||a==="ORDER_SHIPPED"||a==="PAYMENT_RECEIVED"||a==="LEAD_DETECTED"}function w(a){var b=a.actionType,d=a.hasDetails,e=a.pageID,f=a.timelineActionType,g=a.userID;if(g==null||e==null)return;var h=x(b);if(h==null)return;c("ThreadActionSystemTimelineActionFalcoEvent").log(function(){return{activity_type:h,consumer_id:g,has_details:d,page_id:e,timeline_action_type:f}})}function x(a){if(a==null)return null;switch(a){case"PAYMENT_RECEIVED":return"PAYMENT_RECEIVED";case"APPOINTMENT_BOOKED":return"APPOINTMENT_BOOKED";case"ORDER_PLACED":return"ORDER_PLACED";case"ORDER_SHIPPED":return"ORDER_SHIPPED";default:return null}}function y(a){var b=a.actionType,d=a.defaultCurrency,e=a.interactionID,f=a.onHide,g=a.pageID,h=a.userID;if(b==null)return null;var i=function(){w({actionType:b,hasDetails:!1,pageID:g,timelineActionType:"send_details",userID:h})};switch(b){case"APPOINTMENT_BOOKED":return m.jsx(m.Suspense,{fallback:null,children:m.jsx(r,{dialogType:c("ServicesAppointmentManagementDialogEnum").CREATE_ANOTHER_APPOINTMENT,interactionID:e,onToggle:f,onUpdateCompleted:function(a,b){a&&(c("PagesInboxThreadActionSystemDispatcher").dispatch(!0),i())},pageID:g,shown:!0,userID:h})});case"ORDER_PLACED":return e==null||h==null?null:m.jsx(m.Suspense,{fallback:null,children:m.jsx(q,{defaultCurrency:d,entryPoint:"activity_actions_menu",interactionID:e,onHide:f,onSuccess:i,pageID:g,userID:h})});case"ORDER_SHIPPED":return g==null||h==null?null:m.jsx(m.Suspense,{fallback:null,children:m.jsx(s,{onHide:f,onSuccess:i,pageID:g,userID:h})});default:return null}}y.displayName=y.name+" [from "+f.id+"]";function z(a){var b=a.actionType,e=a.descriptions,f=a.interactionID,g=a.invoiceID,h=a.onHide,i=a.pageContactID,j=a.pageID,k=a.surface,l=a.userID,n=e.length!==0,o=function(){c("ContactGraphDeleteActivityDeleteFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(k),page_id:j,page_contact_id:i,event_data:{activity_id:f},is_server_log:!1}}),d("PagesManagerInboxDeleteActivityMutation").commit({consumerID:l,pageID:j,interactionID:c("nullthrows")(f)},{onSuccess:function(){c("PagesInboxThreadActionSystemDispatcher").dispatch(!0),w({actionType:b,hasDetails:n,pageID:j,timelineActionType:"delete",userID:l})},onFailure:c("emptyFunction")})};a=function(){c("ContactGraphDeleteActivityCancelFlowFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(k),page_id:j,page_contact_id:i,event_data:{activity_id:f},is_server_log:!1}})};return n&&b==="APPOINTMENT_BOOKED"?j==null||g==null?null:m.jsx(m.Suspense,{fallback:null,children:m.jsx(r,{dialogType:c("ServicesAppointmentManagementDialogEnum").ADMIN_CANCEL,interactionID:f,onToggle:h,onUpdateCompleted:function(a,b){a&&o()},pageID:j,requestID:g,shown:!0,userID:l})}):m.jsx(m.Suspense,{fallback:null,children:m.jsx(t,{onDeleteConfirm:o,onCancelConfirm:a,onHide:h})})}z.displayName=z.name+" [from "+f.id+"]";function A(a){var b=a.actionType,d=a.defaultCurrency,e=a.interactionID,f=a.invoiceID,g=a.onHide,h=a.pageID,i=a.userID;if(b==null)return null;var j=function(){w({actionType:b,hasDetails:!0,pageID:h,timelineActionType:"edit",userID:i})};switch(b){case"APPOINTMENT_BOOKED":return m.jsx(m.Suspense,{fallback:null,children:m.jsx(r,{dialogType:c("ServicesAppointmentManagementDialogEnum").EDIT,interactionID:e,onToggle:g,onUpdateCompleted:function(a,b){a&&(c("PagesInboxThreadActionSystemDispatcher").dispatch(!0),j())},pageID:h,requestID:f,shown:!0,userID:i})});case"ORDER_PLACED":return e==null||i==null||f==null?null:m.jsx(m.Suspense,{fallback:null,children:m.jsx(q,{defaultCurrency:d,entryPoint:"activity_actions_menu",interactionID:e,invoiceID:f,onHide:g,onSuccess:j,pageID:h,userID:i})});default:return null}}A.displayName=A.name+" [from "+f.id+"]";function a(a){var b=a.actionType,e=a.defaultCurrency,f=a.descriptions,g=a.dialogRef,h=a.interactionID,l=a.invoiceID,q=a.onShowContactCardTosModal,r=a.pageContactID,s=a.pageID,t=a.shouldShow,w=a.shouldShowContactCardTos,x=a.surface;a=a.userID;var B=o(null),C=p(!1),D=C[0],E=C[1];C=p(!1);var F=C[0],G=C[1];C=p(!1);var H=C[0],I=C[1];C=p(!1);var J=C[0],K=C[1];C=p(!1);C[0];var L=C[1];c("promiseDone")(d("CTMEPDChecker").isCTMEPDAffected(s,a).then(function(a){return L(a)}));var M=q,N=w;C=p(t);var O=C[0],P=C[1];n(function(){P(t&&!F&&!H&&!J)},[t,F,H,J]);n(function(){O||E(!1)},[O]);var Q=o(null),R=function(a){var b;a.target instanceof Node&&!((b=Q.current)==null?void 0:b.contains==null?void 0:b.contains(a.target))&&E(!1)};n(function(){D&&document.addEventListener("click",R,!1);return function(){document.removeEventListener("click",R,!1)}},[D]);if(!v(b))return null;q=function(a){if(h==null)return;var b=function(){K(!0),c("ContactGraphDeleteActivityClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(x),page_id:s,page_contact_id:r,event_data:{activity_id:h},is_server_log:!1}})};a.push({type:"item",label:i._("Delete"),onClick:b})};w=[];q(w);return m.jsxs("div",{className:(k||(k=c("stylex")))(!O&&u.actionMenuHidden),children:[m.jsxs("div",{onClick:function(){if(N)return M();E(!D)},ref:B,role:"none",children:[m.jsx("div",{className:"_9ml3",children:m.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(j("484386"),16)})}),D&&B.current!=null&&m.jsx(c("BUIContextualLayer.react"),{align:"end",context:B.current,children:m.jsx("div",{ref:Q,children:m.jsx(c("BUIMenu.react"),{items:w})})})]}),F&&m.jsx("div",{ref:g,children:m.jsx(y,{actionType:b,defaultCurrency:e,interactionID:h,onHide:function(){return G(!1)},pageID:s,userID:a})}),J&&m.jsx("div",{ref:g,children:m.jsx(z,{actionType:b,descriptions:f,interactionID:h,invoiceID:l,onHide:function(){return K(!1)},pageID:s,userID:a,surface:x,pageContactID:r})}),H&&m.jsx("div",{ref:g,children:m.jsx(A,{actionType:b,defaultCurrency:e,interactionID:h,invoiceID:l,onHide:function(){return I(!1)},pageID:s,userID:a})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
ARHubTos.react",["ARHubTosModal.react","asyncToGeneratorRuntime","react","useARHubEffectDismissMessage","useARHubUserHasDismissedMessage"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));e=h;var j=e.useCallback,k=e.useEffect,l=e.useState;function a(){var a=l(!1),d=a[0],e=a[1];a=c("useARHubEffectDismissMessage")();var f=a[0];a[1];a="https://fb.me/MetaSparkTerms";var g="https://fb.me/MetaSparkStudioTerms",h="hamlet_tos_modal",m=c("useARHubUserHasDismissedMessage")({dismissableCardtype:h,paramList:[]}),n=j(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield f({cardType:h,params:[]}),e(!0)}),[f,h]),o=function(){window.open("https://fb.me/MetaSparkTerms","_blank")};k(function(){if(m)return},[m,d]);return i.jsx(c("ARHubTosModal.react"),{isShown:!(d||m),onAccept:n,onLearnMore:o,tosLink:a,tosStudioLink:g})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
ARHubTosModal.react",["fbt","ix","GeoBlockingDialog.react","GeoButton.react","GeoHeading.react","GeoLink.react","GeoModalFooter.react","GeoSection.react","GeoText.react","IPB4BImage.react","geoMargin","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l={container:{"@media (min-width: 700px)_minWidth":"x17ld54g",$$css:!0}};function a(a){var b=a.isShown,d=a.onAccept,e=a.onLearnMore,f=a.tosLink;a=a.tosStudioLink;return k.jsx(c("GeoBlockingDialog.react"),{"data-testid":void 0,footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{label:h._("u63a5u53d7"),onClick:d,variant:"primary"}),secondaryButton:k.jsx(c("GeoButton.react"),{label:h._("u4e86u89e3u66f4u591a"),onClick:e})}),heading:h._("u6211u4eecu5df2u66f4u65b0 Meta Spark u6761u6b3eu548c Meta Spark Studio u6761u6b3e"),image:k.jsx(c("IPB4BImage.react"),{src:i("382231"),width:600}),imageSize:"auto",isShown:b,onHide:function(){},xstyle:l.container,children:k.jsx("div",{className:"xyamay9 x4uap5 xwxc41k xkhd6sd",children:k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("GeoHeading.react"),{level:3,xstyle:c("geoMargin").bottom24,children:h._("u6211u4eecu5df2u66f4u65b0 Meta Spark u6761u6b3eu548c Meta Spark Studio u6761u6b3e")}),k.jsx(c("GeoText.react"),{children:"The changes include:"}),k.jsxs("ul",{className:"xtaz4m5 x1p5oq8j xxbr6pl xwxc41k xbbxn1n",children:[k.jsx("li",{children:k.jsx(c("GeoText.react"),{children:h._("u4f60u73b0u5728u9700u8981u521bu5efa Meta u5e10u6237u624du80fdu4f7fu7528 Meta Sparku3002")})}),k.jsx("li",{children:k.jsx(c("GeoText.react"),{children:h._("u5411 Meta u63d0u51fau7684 Meta Spark u76f8u5173u5f02u8baeu5fc5u987bu6839u636eu7f8eu56fdu4ef2u88c1u534fu4f1au7684u6d88u8d39u8005u4ef2u88c1u89c4u5219u7ecfu7531u5177u7ea6u675fu529bu7684u5355u72ecu4ef2u88c1u89e3u51b3uff0cu5e76u9075u5faau7279u5b9au4f8bu5916u60c5u51b5u3002")})}),k.jsx("li",{children:k.jsx(c("GeoText.react"),{children:h._("u4e3au4f7fu6761u6b3eu66f4u6e05u695au660eu4e86uff0cu6211u4eecu8fdbu884cu4e86u4e00u4e9bu4feeu6539u3002u4f8bu5982uff0cu6211u4eecu660eu786eu89c4u5b9auff1au4f60u63a5u6536u6216u6536u96c6u7684u4e0eu4f60u7279u6548u5185u5bb9u76f8u5173u7684u4efbu4f55u4fe1u606fuff08u6839u636e Meta Spark u6761u6b3eu4e2du7684u5b9au4e49uff09u5747u89c6u4e3au5c5eu4e8e Meta u5f00u653eu5e73u53f0u6761u6b3eu6240u8ff0u7528u9014u7684u201cu5f00u653eu5e73u53f0u6570u636eu201duff0cu6211u4eecu8fd8u8fdbu4e00u6b65u8be6u8ff0u4e86u4f60u5bf9u8fd9u4e9bu4fe1u606fu627fu62c5u7684u76f8u5e94u4e49u52a1u3002")})})]}),k.jsx(c("GeoText.react"),{children:h._("By continuing to use Meta Spark, you agree to the updated {=m1} and {=m3}",[h._implicitParam("=m1",k.jsx(c("GeoLink.react"),{href:f,target:"_blank",children:h._("Meta Spark Terms")})),h._implicitParam("=m3",k.jsx(c("GeoLink.react"),{href:a,target:"_blank",children:h._("Meta Spark Studio Terms")}))])})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
CRMClientDetailsNote.react",["cx","fbt","ActionList.react","BizInboxMultiAdminFbtUtils","BizKitContextCardUtils","CRMClientDetailsNote_note.graphql","CRMEventsLogger","ClientIDs","ContactGraphDeleteNoteClickFalcoEvent","ContactGraphDeleteNoteDeleteFalcoEvent","ContactGraphEditNoteCancelFlowFalcoEvent","ContactGraphEditNoteClickFalcoEvent","ContactGraphEditNoteSaveFalcoEvent","ExpandableText.react","GeoBaseText.react","GeoBinaryInput.react","GeoButton.react","GeoCancelButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoSelector.react","GeoSelectorItem.react","GeoTextArea.react","GeoTooltip.react","Link.react","RelayModern","Timestamp.react","formatDate","geoMargin","isStringNullOrEmpty","isTruthy","nullthrows","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m="customer_details_view";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
BizKitContextCardLabel.react",["BIZInboxClientLogger","BizKitContextCardUtils","ContactGraphSearchByLabelClickFalcoEvent","ContactGraphUnsetLabelFromContactClickFalcoEvent","ContextCardLabelGetTokenAttributes","CustomLabelUtils","FlexLayout.react","GeoCheckboxInput.react","GeoTokenLabel.react","GeoTooltip.react","PageCommItemFolder","PageContactLabelCreationSource","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useState;function a(a){var b=j(!1),e=b[0],f=b[1],g=a.onRemoveLabel,h=a.onDismissLabel,k=a.id,l=a.name,m=a.color,n=a.contentType,o=a.createName,p=a.isSuggestedLabel,q=a.onAddorCreateLabel,r=a.onSelectLabel;b=a.readOnly;var s=a.dataSilo,t=a.labelSource,u=a.pageID,v=a.onShowContactCardTosModal,w=a.shouldShowContactCardTos,x=a.pageContactID,y=a.surface,z=a.isAILabel,A=a.isAdResponseLabel,B=function(){f(!0),q&&o!=null&&q(o,p,k,m,n)},C=null,D=function(){if(r&&!p){if(y!==void 0){c("ContactGraphSearchByLabelClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(y),page_id:u,page_contact_id:x,event_data:{label_ids:[k],label_search_result:[""]},is_server_log:!1}});if(u!=null){var a=t===c("PageCommItemFolder").INTENT_AUTO_LABEL?"ml_intent_label":"label";d("BIZInboxClientLogger").logFilterApply(u,d("BizKitContextCardUtils").getPageCommPlatformType(y),"contact_card",a)}d("BIZInboxClientLogger").logLabelSearchClick(u,d("BizKitContextCardUtils").getPageCommPlatformType(y),null,l,k,c("PageContactLabelCreationSource")[String(t)],null)}r({id:k,color:m,name:l,data_silo:s,label_source:t})}},E=Object.keys(c("PageContactLabelCreationSource"))[7],F=t===E;a=a.dataSilo==="DC_SILO_CORPORATION"&&!A&&!F;F=!a&&!A&&(g||h)&&!b;A=function(){if(y!==void 0){c("ContactGraphUnsetLabelFromContactClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(y),page_id:u,page_contact_id:x,event_data:{label_name:l,label_id:k},is_server_log:!1}});var a=String(t);d("BIZInboxClientLogger").logThreadLabelDelete(u,d("BizKitContextCardUtils").getPageCommPlatformType(y),m,l,k,c("PageContactLabelCreationSource")[a])}w?v():g!=null&&g(k,l)};b=function(){h!=null&&h(k,l,m,n!=null?n:"")};p===!0&&(C=i.jsx("div",{className:"x1nx2rwh",children:i.jsx(c("GeoCheckboxInput.react"),{"data-testid":void 0,value:e,label:"Hidden Label",isLabelHidden:!0,onChange:w?v:B})}));e=p?"context_card_suggested_lables":"contact_labels";B=Object.keys(c("PageContactLabelCreationSource"))[8];e=Object.keys(c("PageContactLabelCreationSource"))[9];a=i.jsx(c("GeoTokenLabel.react"),{clearLabel:"clearLabel",color:d("ContextCardLabelGetTokenAttributes").getTokenLabelColor(m,a),label:l,media:d("ContextCardLabelGetTokenAttributes").getTokenMedia(a,z,t===E||t===B,t===e),onClear:F===!0?p?b:A:null,onClick_DEPRECATED:D});return i.jsxs(c("FlexLayout.react"),{align:"center",children:[C,i.jsx("div",{className:"x1iorvi4 x150jy0e xjkvuk6 x1e558r4","data-testid":void 0,children:t===B?i.jsx(c("GeoTooltip.react"),{content:d("CustomLabelUtils").WA_MM_INBOX_AUTO_LABEL_TOOLTIP_CONTEXT,position:"below",children:a}):a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardLabelsList.react",["BizKitContextCardLabel.react","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.allLabels,d=a.onRemoveLabel,e=a.onSelectLabel,f=a.onShowContactCardTosModal,g=a.pageContactID,h=a.pageID,j=a.readOnly,k=a.shouldShowContactCardTos,l=a.surface;a=null;b&&b.length>0&&(a=b.map(function(a,b){var m;return a&&i.jsx("div",{className:"x1rg5ohu",children:i.jsx(c("BizKitContextCardLabel.react"),{color:c("nullthrows")(a.color),name:c("nullthrows")(a.name),id:c("nullthrows")(a.id),onRemoveLabel:d,onSelectLabel:e,isSuggestedLabel:!1,readOnly:j,dataSilo:a.data_silo,labelSource:a.label_source,pageID:h,onShowContactCardTosModal:f,shouldShowContactCardTos:k,pageContactID:g,surface:l,isAILabel:(m=a.is_ai_label)!=null?m:!1,isAdResponseLabel:(m=a.is_ad_response_label)!=null?m:!1})},c("nullthrows")(a.id)+"_"+b)}));return i.jsx("div",{className:"x14vqqas",children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardNotesSection.react",["fbt","BizInboxStateContext","BizKitContactCardWACoexEditToast.react","BizKitContextCardLinkButton.react","BizKitContextCardMoreSection.react","BizKitContextCardNotesSection_notes.graphql","BizKitContextCardUtils","CRMClientDetailsNote.react","CRMEventsLogger","ContactGraphAddNoteClickFalcoEvent","ContactGraphSeeMoreNoteClickFalcoEvent","ContextCardNotesUtils","GeoBaseText.react","GeoHeading.react","GeoSpinner.react","JSResource","LeftRight.react","RelayHooks","lazyLoadComponent","react","useGeoToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useContext,m=e.useEffect,n=e.useState,o=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardAddNoteSection.react").__setRef("BizKitContextCardNotesSection.react")),p=i!==void 0?i:i=b("BizKitContextCardNotesSection_notes.graphql"),q=10;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=a.className,f=a.pageID,g=a.notes,i=a.contactID,j=a.contactIdentity,r=a.surface,s=a.readOnly,t=a.onShowContactCardTosModal,u=a.shouldShowContactCardTos,v=a.onShowCoexEditInfo,w=n(!1),x=w[0],y=w[1];w=n(!1);var z=w[0],A=w[1];w=l(c("BizInboxStateContext"));var B=w.isWAOnly,C=w.isWECCoexAccount;w=d("RelayHooks").usePaginationFragment(p,g);var D=w.hasNext,E=w.loadNext,F=w.data;g=c("useGeoToaster")();var G=g.add;w=n(!1);var H=w[0],I=w[1],J=F==null?void 0:(g=F.shared_attributes)==null?void 0:g.page_contact_id,K=function(a){d("ContextCardNotesUtils").onDeleteNote(b,a,r)},L=function(a,c){d("ContextCardNotesUtils").onUpdateNote(b,a,c,r)};w=function(e){var f;d("ContextCardNotesUtils").onAddNote(b,F==null?void 0:(f=F.business_attributes)==null?void 0:(f=f.admin_notes)==null?void 0:(f=f.notes_list)==null?void 0:f.__id,e,i,j,r);d("CRMEventsLogger").log(a.pageID,"click_add_note","add_note_button","bizkit_context_card",J);C&&j.type==="WA_USER"&&!H&&(G(c("BizKitContactCardWACoexEditToast.react")(v)),I(!0))};g=function(){var a;a=F==null?void 0:(a=F.business_attributes)==null?void 0:(a=a.admin_notes)==null?void 0:(a=a.notes_list)==null?void 0:a.edges;if(a==null||a.length===0)return k.jsx("div",{className:"x17ddzgb x14vqqas",children:k.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",isDisabled:!0,display:"block","data-testid":void 0,children:h._("u8ffdu8e2au91cdu8981u7684u5ba2u6237u4e92u52a8u3002")})});a=a.map(function(a){return a.node?k.jsx(c("CRMClientDetailsNote.react"),{note:a.node,onDelete:K,onEdit:L,pageID:f,surface:r,pageContactID:J,readOnly:s,onShowContactCardTosModal:t,shouldShowContactCardTos:u},a.node.id):null});return k.jsx("div",{className:"x14vqqas",children:a})};var M=function(){if(!D||x)return;y(!0);E(q,{onComplete:function(){y(!1)}})},N=function(){if(!D)return null;return x?k.jsx("div",{className:"x178xt8z x13fuv20 xkh9tda x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",children:k.jsx(c("GeoSpinner.react"),{})}):k.jsx(c("BizKitContextCardMoreSection.react"),{className:"x178xt8z x13fuv20 xkh9tda x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",onClick:function(){c("ContactGraphSeeMoreNoteClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(r),page_id:f,page_contact_id:J,event_data:{},is_server_log:!1}}),M()}})};m(function(){A(!1)},[a.contactID]);return k.jsxs("div",{className:e,"data-testid":void 0,children:[k.jsxs(c("LeftRight.react"),{children:[k.jsx(c("GeoHeading.react"),{level:3,children:h._("u5907u6ce8")}),!z&&!B&&k.jsx(c("BizKitContextCardLinkButton.react"),{readOnly:s,label:h._("u6dfbu52a0u5907u6ce8"),onClick:function(){c("ContactGraphAddNoteClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(r),page_id:f,page_contact_id:J,event_data:{},is_server_log:!1}}),u?t():A(!0)},"data-testid":void 0})]}),z&&k.jsx(k.Suspense,{fallback:null,children:k.jsx(o,{isShown:z,setIsShown:A,onAddNote:w})}),g(),N()]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardLabelsSection.react",["fbt","BizInboxOffsiteEmailTourRefs","BizInboxStateContext","BizKitContactCardWACoexEditToast.react","BizKitContextCardLabelsList.react","BizKitContextCardLabelsSection_contactLabels.graphql","BizKitContextCardLinkButton.react","BizKitContextCardManageLabelsSection.react","BizKitContextCardNewLabelSection.react","BizKitContextCardSectionHeader.react","BizKitContextCardSuggestedLabelsSection.react","BizKitContextCardTooltipConsts","BizKitContextCardUtils","ContactGraphManageLabelsClickFalcoEvent","ContextCardLabelUtils","LeftRight.react","RelayHooks","bizInboxStateAIAgentReducer","filterNulls","immutable","nux:66","react","useBizInboxStateReducers","useBusinessPresenceLabelUpdateSubscription","useGeoToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useContext,m=e.useEffect,n=e.useRef,o=e.useState,p=i!==void 0?i:i=b("BizKitContextCardLabelsSection_contactLabels.graphql"),q=b("nux:66")==null?void 0:b("nux:66")("MBS_WWW_INBOX_MANAGE_LABEL_METRIC_TOGGLE_NUX");function a(a){var b,e,f=d("RelayHooks").useRelayEnvironment(),g=a.businessAssets,i=a.className,j=a.contactIdentity,r=a.contactLabels,s=a.pageID,t=a.onSelectLabel,u=a.surface,v=a.readOnly,w=a.onShowContactCardTosModal,x=a.shouldShowContactCardTos,y=a.shouldDisableBizInput,z=a.assetData,A=a.onShowCoexEditInfo,B=d("RelayHooks").useFragment(p,r),C=c("useBizInboxStateReducers")([c("bizInboxStateAIAgentReducer")]);a=l(c("BizInboxStateContext"));var D=a.selectedThreadIDCorpLabelConnectionID,E=a.isWECCoexAccount;r=c("useGeoToaster")();var F=r.add;a=o(!1);var G=a[0],H=a[1];m(function(){if(D==null){var a;C({corpLabelConnectionID:B==null?void 0:(a=B.shared_attributes)==null?void 0:(a=a.corp_label_list)==null?void 0:a.__id,type:"update_corp_label_connection_id"})}});var I=B==null?void 0:(r=B.shared_attributes)==null?void 0:r.page_contact_id;a=z==null?void 0:z.id;r=(z==null?void 0:(r=z.custom_labels)==null?void 0:r.edges)||[];z=(z==null?void 0:(z=z.corp_labels)==null?void 0:z.edges)||[];r=d("ContextCardLabelUtils").parsePageLabelNode(u,r);z=d("ContextCardLabelUtils").parsePageLabelNode(u,z);r=r.concat(z);z=c("immutable").Map(r.map(function(a){return[a.name,a]}));r=o(!1);var J=r[0];r=r[1];var K=o(!1),L=K[0],M=K[1],N=B==null?void 0:(K=B.business_attributes)==null?void 0:(K=K.customer_labels)==null?void 0:(K=K.label_list)==null?void 0:K.__id;K=B==null?void 0:(K=B.shared_attributes)==null?void 0:(K=K.suggested_labels)==null?void 0:K.__id;var O=l(c("BizInboxStateContext"));O=O.isWAOnly;var P=n(null);b=(B==null?void 0:(b=B.business_attributes)==null?void 0:(b=b.customer_labels)==null?void 0:(b=b.label_list)==null?void 0:b.edges)||[];e=(B==null?void 0:(e=B.business_attributes)==null?void 0:(e=e.customer_labels)==null?void 0:(e=e.customer_custom_tags)==null?void 0:e.edges)||[];var Q=d("ContextCardLabelUtils").parsePageLabelNode(u,d("ContextCardLabelUtils").mergeContactAndCustomerLabels(b,e));b=d("ContextCardLabelUtils").parseSuggestedLabelNode((B==null?void 0:(b=B.shared_attributes)==null?void 0:(e=b.suggested_labels)==null?void 0:e.edges)||[]);e=(B==null?void 0:(e=B.shared_attributes)==null?void 0:(e=e.corp_label_list)==null?void 0:e.edges)||[];var R=d("ContextCardLabelUtils").parsePageLabelNode(u,e);e=o(Q.concat(R));var S=e[0],T=e[1];c("useBusinessPresenceLabelUpdateSubscription")(s,j.contact_id,function(a){var b;a=a.xfb_business_presence_label_update_subscribe;b=d("ContextCardLabelUtils").parsePageLabelNode(u,d("ContextCardLabelUtils").mergeContactAndCustomerLabels((b=a==null?void 0:(b=a.custom_thread_labels)==null?void 0:b.edges)!=null?b:[],(b=a==null?void 0:(b=a.customer_custom_tags)==null?void 0:b.edges)!=null?b:[]));a=d("ContextCardLabelUtils").parsePageLabelNode(u,(a=a==null?void 0:(a=a.corp_thread_labels)==null?void 0:a.edges)!=null?a:[]);T(b.concat(a))});e=o(j.contact_id);var U=e[0],V=e[1];m(function(){j.contact_id!==U&&(V(j.contact_id),T(Q.concat(R)))},[j,j.contact_id,Q,R,U]);e=function(a,b){d("ContextCardLabelUtils").onUnsetLabel(f,N,j,a,b,u);b=S.filter(function(b){return b.id!==a});T(b)};var W=function(a,b,e,g,h){d("ContextCardLabelUtils").onAddLabel(f,c("filterNulls")([N]),j,e,a,h,s,g,u,b,I,"bizkit_context_card","add_label_contact_button");E===!0&&j.type==="WA_USER"&&!G&&(F(c("BizKitContactCardWACoexEditToast.react")(A)),H(!0));if(e!==null&&g!==null){S.push({id:(h=e)!=null?h:"",name:a,color:(b=g)!=null?b:"",contact_count:0});T(S)}};return k.jsxs("div",{className:i,"data-testid":void 0,ref:d("BizInboxOffsiteEmailTourRefs").bizKitContextCardNewLabelSectionRef,children:[!y&&!O&&q!=null&&(B==null?void 0:(i=B.page)==null?void 0:(i=i.gk_check)==null?void 0:i.passes_gk)===!0&&k.jsx(q,{contextRef:P,onComplete:function(){x?w():M(!L)}}),k.jsxs(c("LeftRight.react"),{children:[k.jsx(c("BizKitContextCardSectionHeader.react"),{sectionTitle:h._("u6807u7b7e"),tooltipsText:c("BizKitContextCardTooltipConsts").LABEL_TOOLTIP_TEXT,learnMoreLink:c("BizKitContextCardTooltipConsts").CONTACT_CARD_TOOLTIP_HELP_LINK,testid:void 0}),!y&&!O&&k.jsx(c("BizKitContextCardLinkButton.react"),{contextRef:P,readOnly:v,"data-testid":void 0,label:h._("u7ba1u7406u6807u7b7e"),onClick:function(){c("ContactGraphManageLabelsClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(u),page_id:s,page_contact_id:I,event_data:{},is_server_log:!1}}),x?w():M(!L)}})]}),k.jsx(c("BizKitContextCardLabelsList.react"),{allLabels:S,onRemoveLabel:e,onSelectLabel:t,readOnly:v,pageID:j.business_id,onShowContactCardTosModal:w,shouldShowContactCardTos:x,pageContactID:I,surface:u}),!v&&!y&&!O&&k.jsx(c("BizKitContextCardNewLabelSection.react"),{isAddLabelToggle:J,setIsAddLabelToggle:r,onAddorCreateLabel:W,pageLabels:z,labels:B,onShowContactCardTosModal:w,shouldShowContactCardTos:x,surface:u,pageID:s,pageContactID:I}),!v&&!y&&!O&&k.jsx(c("BizKitContextCardSuggestedLabelsSection.react"),{contactIdentity:j,connectionID:K,conversationLabels:Q,suggestedLabels:b,onCreateAndAddLabel:W,onShowContactCardTosModal:w,shouldShowContactCardTos:x,surface:u,pageID:s,pageContactID:I}),k.jsx(c("BizKitContextCardManageLabelsSection.react"),{pageID:s,labels:z,isShown:L,onToggle:M,surface:u,contactID:j.contact_id,businessAssets:g,assetID:a,shouldShowCustomLabelMetrics:(e=B==null?void 0:(i=B.page)==null?void 0:(P=i.gk_check)==null?void 0:P.passes_gk)!=null?e:!1})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardSectionWrapper.react",["BizInboxStateContext","BizKitContextCardAboutDetailSection.react","BizKitContextCardAboutSectionFacebook.react","BizKitContextCardAboutSectionInstagram.react","BizKitContextCardActivitySection.react","BizKitContextCardDataSharingSection.react","BizKitContextCardLabelsDataFragment.react","BizKitContextCardMediaSection.react","BizKitContextCardNewActivitySection.react","BizKitContextCardNotesSection.react","BizKitContextCardOutcomesSection.react","BizKitContextCardProfileSection.react","BizKitContextCardReminderSection.react","JSResource","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext,k=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardOrdersSection.react").__setRef("BizKitContextCardSectionWrapper.react")),l=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardMessageSection.react").__setRef("BizKitContextCardSectionWrapper.react")),m=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardPaymentSection.react").__setRef("BizKitContextCardSectionWrapper.react"));function a(a){var b=a.data,d=a.sectionName,e=a.surface,f=a.pageID,g=a.bpnID,h=a.contactID,n=a.contactIdentity,o=a.onSelectLabel,p=a.onActivityListUpdated,q=a.isInKBankRollout,r=a.activitiesQueryReference,s=a.onBanUser,t=a.isBlockedInIG,u=a.readOnly,v=a.onShowContactCardTosModal,w=a.shouldShowContactCardTos,x=a.shouldDisableBizInput,y=a.pageContactID,z=a.mbsBusinessAssetsRef,A=a.pageRef,B=a.businessAssets,C=a.isPageEnabledForWAM,D=a.shouldShowPaymentOnboardingContextCard,E=a.externalPaymentAccountData,F=a.isGcashEnabled,G=a.onShowCoexEditInfo,H=j(c("BizInboxStateContext"));H=H.shouldShowLeadManagementMVP;switch(d){case"ABOUT":return i.jsx(c("BizKitContextCardAboutDetailSection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",about:b,contactIdentity:n,pageID:f,bpnID:g,surface:e,readOnly:u,onShowContactCardTosModal:v,shouldShowContactCardTos:w,shouldDisableBizInput:x,isPageEnabledForWAM:C,onShowCoexEditInfo:G});case"FACEBOOK_PROFILE":return i.jsx(c("BizKitContextCardAboutSectionFacebook.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",details:b,pageID:f});case"INSTAGRAM_PROFILE":return i.jsx(c("BizKitContextCardAboutSectionInstagram.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",details:b});case"OUTCOMES":return i.jsx(c("BizKitContextCardOutcomesSection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",data:b,consumerID:n.contact_id,pageID:f,profileData:b,contactID:h,pageContactID:y,surface:e,contactIdentity:n,onShowContactCardTosModal:v,shouldShowContactCardTos:w,isInKBankRollout:q,onActivityListUpdated:p});case"ACTIVITY":return e==="INBOX_MESSAGING_WA"?i.jsx(i.Fragment,{}):i.jsx(c("BizKitContextCardActivitySection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",contactID:h,contactIdentity:n,pageID:f,isInKBankRollout:q,onActivityListUpdated:p,activitiesQueryReference:r,readOnly:u,surface:e,onShowContactCardTosModal:v,shouldShowContactCardTos:w,shouldDisableBizInput:x});case"LABEL":return i.jsx(c("BizKitContextCardLabelsDataFragment.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",contactID:h,contactIdentity:n,pageID:f,contactLabels:b,onSelectLabel:o,surface:e,readOnly:u,onShowContactCardTosModal:v,shouldShowContactCardTos:w,shouldDisableBizInput:x,pageRef:A,mbsBusinessAssetsRef:z,businessAssets:B,onShowCoexEditInfo:G});case"MEDIA":return i.jsx(c("BizKitContextCardMediaSection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",media:b,pageID:f,readOnly:u});case"MESSAGE":return i.jsx(l,{details:b,pageID:f,surface:e});case"NOTE":return i.jsx(c("BizKitContextCardNotesSection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",contactID:h,contactIdentity:n,pageID:f,notes:b,surface:e,readOnly:u,onShowContactCardTosModal:v,shouldShowContactCardTos:w,onShowCoexEditInfo:G});case"PROFILE":return i.jsx(c("BizKitContextCardProfileSection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",surface:e,profile:b,pageID:f,onBanUser:s,isBlockedInIG:t,shouldShowCloseButton:a.shouldShowCloseButton,onClose:a.onClose,readOnly:u});case"ORDER":return i.jsx(k,{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",pageID:f,orders:b,readOnly:u,surface:e,onShowContactCardTosModal:v,shouldShowContactCardTos:w});case"THIRD_PARTY_DATA":return i.jsx(i.Fragment,{});case"DATA_SHARING":return i.jsx(c("BizKitContextCardDataSharingSection.react"),{consumerID:n.contact_id,pageID:f,profileData:b,contactID:h,surface:e,contactIdentity:n,isRedesign:!1});case"PAYMENT":return i.jsx(m,{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",data:b,pageID:f,shouldShowPaymentOnboardingContextCard:D,externalPaymentAccountData:E,isGcashEnabled:F});case"REMINDER":return!H?i.jsx(i.Fragment,{}):i.jsx(c("BizKitContextCardReminderSection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",pageID:f,contactID:y,surface:e,businessAssets:B});case"NEW_ACTIVITY":return i.jsx(c("BizKitContextCardNewActivitySection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",pageID:f,contactID:y,surface:e,businessAssets:B,contactIdentity:n,onActivityListUpdated:p,isInKBankRollout:q,onShowContactCardTosModal:v,shouldShowContactCardTos:w});default:return i.jsx(i.Fragment,{})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivitySection.react",["fbt","BizInboxStateContext","BizKitContextCardActivityDropDown.react","BizKitContextCardActivityListSection.react","BizKitContextCardActivityNuxForAutoDetected.react","BizKitContextCardActivitySectionQuery.graphql","BizKitContextCardActivitySection_contact.graphql","BizKitContextCardSectionHeader.react","BizKitContextCardTooltipConsts","GeoSpinner.react","LeftRight.react","RelayHooks","cr:4615","getBizInboxOrganizeInboxTourSteps","getBizInboxUnifiedThreadsQuery","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.Suspense,n=e.useContext,o=e.useEffect,p=e.useState,q=i!==void 0?i:i=b("BizKitContextCardActivitySection_contact.graphql"),r=j!==void 0?j:j=b("BizKitContextCardActivitySectionQuery.graphql");function a(a){var e=a.activitiesQueryReference;a=babelHelpers.objectWithoutPropertiesLoose(a,["activitiesQueryReference"]);var f=n(c("BizInboxStateContext"));f=f.selectedThreadID;var g=a.contactIdentity;f=(g=b("cr:4615")==null?void 0:b("cr:4615").shouldUseUnifiedQuery("context_card_details",{selected_thread_item_id:(f=f)!=null?f:"",business_id:(f=g==null?void 0:g.business_id)!=null?f:""}))!=null?g:!1;if(d("getBizInboxUnifiedThreadsQuery").getShouldUnifyContextCardQueries()&&f)return l.jsx(s,babelHelpers["extends"]({activitiesQueryReference:e},a));return e==null?l.jsx(l.Fragment,{children:" "}):l.jsx(t,babelHelpers["extends"]({activitiesQueryReference:e},a))}a.displayName=a.name+" [from "+f.id+"]";function s(a){var c=a.className,d=a.pageID,e=a.isInKBankRollout,f=a.contactID,g=a.contactIdentity,h=a.onActivityListUpdated,i=a.readOnly,j=a.surface,k=a.onShowContactCardTosModal,m=a.shouldShowContactCardTos;a=a.shouldDisableBizInput;var n=p(null),q=n[0],r=n[1];o(function(){b("cr:4615")&&b("cr:4615").execUnifiedQuery("context_card_details",function(a){r(a==null?void 0:a.activitiesRef)})},[]);if(b("cr:4615")){return l.jsx(u,{canAddActivities:(n=q==null?void 0:q.can_add_activities)!=null?n:!1,className:c,contactID:f,contactIdentity:g,pageID:d,isInKBankRollout:e,onActivityListUpdated:h,readOnly:i,surface:j,onShowContactCardTosModal:k,shouldShowContactCardTos:m,shouldDisableBizInput:a,contactRef:q==null?void 0:q.selected_biz_crm_contact.activityRef,adsDataSharingNUXContactRef:q==null?void 0:q.selected_biz_crm_contact.adsDataSharingNUXRef,dropDownContactRef:q==null?void 0:q.selected_biz_crm_contact.activityDropDownRef,dropDownPageRef:q==null?void 0:q.page.dropdownRef,dropDownBizAssetRef:q==null?void 0:q.xfb_mbs_business_assets.dropdownRef,listItemPageRef:q==null?void 0:q.page.listItemRef,listItemBizAssetRef:q==null?void 0:q.xfb_mbs_business_assets.listItemRef})}return l.jsx(l.Fragment,{children:" "})}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b,c=a.className,e=a.pageID,f=a.isInKBankRollout,g=a.contactID,h=a.contactIdentity,i=a.onActivityListUpdated,j=a.activitiesQueryReference,k=a.readOnly,m=a.surface,n=a.onShowContactCardTosModal,o=a.shouldShowContactCardTos;a=a.shouldDisableBizInput;j=d("RelayHooks").usePreloadedQuery(r,j);return l.jsx(u,{canAddActivities:(b=j==null?void 0:(b=j.biz_crm_contact_card_config)==null?void 0:b.can_add_activities)!=null?b:!1,className:c,contactID:g,contactIdentity:h,pageID:e,isInKBankRollout:f,onActivityListUpdated:i,readOnly:k,surface:m,onShowContactCardTosModal:n,shouldShowContactCardTos:o,shouldDisableBizInput:a,contactRef:j==null?void 0:j.retrieve_biz_crm_contact,adsDataSharingNUXContactRef:j==null?void 0:j.retrieve_biz_crm_contact,dropDownContactRef:j==null?void 0:j.retrieve_biz_crm_contact,dropDownPageRef:j==null?void 0:j.page,dropDownBizAssetRef:j==null?void 0:j.xfb_mbs_business_assets,listItemPageRef:j==null?void 0:j.page,listItemBizAssetRef:j==null?void 0:j.xfb_mbs_business_assets})}t.displayName=t.name+" [from "+f.id+"]";function u(a){var b,e,f=a.canAddActivities,g=a.className,i=a.pageID,j=a.isInKBankRollout,k=a.contactID,n=a.contactIdentity,o=a.onActivityListUpdated,r=a.readOnly,s=a.surface,t=a.onShowContactCardTosModal,u=a.shouldShowContactCardTos,v=a.shouldDisableBizInput,w=a.contactRef,x=a.adsDataSharingNUXContactRef,y=a.dropDownContactRef,z=a.dropDownPageRef,A=a.dropDownBizAssetRef,B=a.listItemPageRef;a=a.listItemBizAssetRef;w=d("RelayHooks").useFragment(q,w);b=w==null?void 0:(b=w.fb_attributes)==null?void 0:b.user_id;e=w==null?void 0:(e=w.shared_attributes)==null?void 0:e.page_contact_id;var C=w==null?void 0:w.should_show_automated_activity_nux,D=w==null?void 0:w.should_show_automated_activity_redesigned_nux,E=p(null),F=E[0],G=E[1];E=function(a){G(a),o(a)};return l.jsxs(l.Fragment,{children:[l.jsx(c("BizKitContextCardActivityNuxForAutoDetected.react"),{contact:x,shouldShowNux:D!==!0&&C===!0,pageID:i,nuxType:"AUTOMATED_ACTIVITY_CREATION",identity:n,refetchLeadOpportunity:function(){}}),l.jsxs("div",{className:g,"data-testid":void 0,ref:d("getBizInboxOrganizeInboxTourSteps").contactCardActivitySectionRef,children:[l.jsxs(c("LeftRight.react"),{children:[l.jsx(c("BizKitContextCardSectionHeader.react"),{sectionTitle:h._("u52a8u6001"),tooltipsText:c("BizKitContextCardTooltipConsts").ACTIVITY_TOOLTIP_TEXT,learnMoreLink:c("BizKitContextCardTooltipConsts").CONTACT_CARD_TOOLTIP_HELP_LINK,testid:void 0}),!v&&f===!0&&l.jsx(c("BizKitContextCardActivityDropDown.react"),{contactID:k,page:z,contact:y,mbsBusinessAssets:A,pageID:i,readOnly:r,userID:b,connectionID:F,contactIdentity:n,surface:s,pageContactID:e,onShowContactCardTosModal:t,shouldShowContactCardTos:u})]}),l.jsx(m,{fallback:l.jsx(c("GeoSpinner.react"),{center:!0}),children:l.jsx(c("BizKitContextCardActivityListSection.react"),{activity:w,page:B,mbsBusinessAssets:a,pageID:i,userID:b,surface:s,pageContactID:e,onActivityListUpdated:E,isInKBankRollout:j,onShowContactCardTosModal:t,shouldShowContactCardTos:u,contactIdentity:n,refetchLeadOpportunity:function(){}})})]})]})}u.displayName=u.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardNewLabelSection.react",["fbt","ix","BizInboxLabelSearchSource","BizInboxLabelSearchableEntry","BizKitContextCardUtils","ClickableArea.react","ContactGraphAddLabelClickFalcoEvent","ContextCardLabelUtils","FlexLayout.react","GeoBaseTypeaheadItem.react","GeoMediaItem.react","GeoTokenLabel.react","GeoTokenLabelColorEnum","GeoTypeahead.react","Image.react","PagesManagerInboxContextCardLabelsTypeaheadRenderer.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useState,m={"#90949C":k.jsx(c("Image.react"),{src:i("1278101")}),"#8A73C9":k.jsx(c("Image.react"),{src:i("1631086")}),"#F65569":k.jsx(c("Image.react"),{src:i("1278102")}),"#5291FF":k.jsx(c("Image.react"),{src:i("294498")}),"#FB9240":k.jsx(c("Image.react"),{src:i("294500")}),"#72A737":k.jsx(c("Image.react"),{src:i("294499")})};function a(a){var b=a.isAddLabelToggle,e=a.setIsAddLabelToggle,f=a.pageLabels,g=a.labels,j=a.onAddorCreateLabel,n=a.onShowContactCardTosModal,o=a.shouldShowContactCardTos,p=a.surface,q=a.pageID,r=a.pageContactID,s=(g==null?void 0:(a=g.business_attributes)==null?void 0:(g=a.customer_labels)==null?void 0:(a=g.label_list)==null?void 0:a.edges)||[];g=f.toArray();g=g.filter(function(a){return a.data_silo!=="DC_SILO_CORPORATION"});a=g.filter(function(a){return!s.find(function(b){return((b=b.node)==null?void 0:b.name)===a.name})});g=new(c("BizInboxLabelSearchSource"))(a);a=l("");var t=a[0],u=a[1];a=l(null);var v=a[0],w=a[1],x=d("ContextCardLabelUtils").genIfPageExceedLabelLimit(f);b?a=k.jsx(c("Image.react"),{src:i("656611")}):a=k.jsx(c("Image.react"),{src:i("497293")});f=h._("u6dfbu52a0u6807u7b7e");var y=h._("u6dfbu52a0u6807u7b7e"),z=h._("u65b0u6807u7b7eu540du79f0u4e0du80fdu53eau5305u542bu7a7au683c"),A=function(){w(null);if(t.trim()===""){w(z);return}x?w(d("ContextCardLabelUtils").TAG_REACH_LIMIT_ERROR_MSG):j(t,!1);u("")},B=function(a){u("");w(null);if(a instanceof c("BizInboxLabelSearchableEntry")){var b=a.getData().id,d=a.getData().name;a=a.getData().color;j(d,!1,b,a)}};function C(a){a.length
BizKitContextCardOutcomesSection.react",["fbt","BizKitContextCardDataSharingSection.react","BizKitContextCardNewActivitySection.react","BizKitContextCardOutcomesSection_contact.graphql","GeoBaseText.react","GeoHeading.react","MbsDetectedOutcomesNUX.react","RelayHooks","geoMargin","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react"),m=i!==void 0?i:i=b("BizKitContextCardOutcomesSection_contact.graphql");function a(a){var b=a.businessAssets,e=a.className,f=a.consumerID,g=a.contactID,i=a.contactIdentity,k=a.data,n=a.isInKBankRollout,o=a.onActivityListUpdated,p=a.onShowContactCardTosModal,q=a.pageContactID,r=a.pageID,s=a.profileData,t=a.shouldShowContactCardTos;a=a.surface;k=d("RelayHooks").useFragment(m,k);var u=k==null?void 0:k.should_show_automated_activity_redesigned_nux;return l.jsxs("div",{className:e,"data-testid":void 0,children:[l.jsx(c("GeoHeading.react"),{level:3,children:h._("Outcomes")}),l.jsx("div",{className:(j||(j=c("stylex")))(c("geoMargin").vert12),children:l.jsx(c("GeoBaseText.react"),{color:"value",display:"block",isDisabled:!0,size:"accent",children:h._("Track key business outcomes and organize your inbox by managing labels and activities.")})}),l.jsx(c("BizKitContextCardDataSharingSection.react"),{consumerID:f,pageID:r,profileData:s,contactID:g,surface:a,contactIdentity:i,isRedesign:!0}),l.jsx(c("BizKitContextCardNewActivitySection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",pageID:r,contactID:q,surface:a,businessAssets:b,contactIdentity:i,onActivityListUpdated:o,isInKBankRollout:n,onShowContactCardTosModal:p,shouldShowContactCardTos:t}),l.jsx(d("MbsDetectedOutcomesNUX.react").MbsDetectedOutcomesNUX,{contactData:k,shouldShowDoNuxRedesign:u,identity:i,pageID:r,contactID:q,surface:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
ThreadOrderStatusDropdownSection.react",["fbt","BizInboxFbtUtils","BizInboxUpdateThreadOrderStatusMutation","BizKitContextCardNewActivitySectionEventLogger","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoSelector.react","GeoSelectorItem.react","GeoToast.react","LeftRight.react","RelayHooks","RelayModern","ThreadOrderStatusDropdownSection_orderStatus.graphql","geoMargin","react","useGeoToaster","usePageThreadOrderStatusSubscription"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j,m=l.useEffect,n=l.useRef,o=l.useState,p=i!==void 0?i:i=b("ThreadOrderStatusDropdownSection_orderStatus.graphql");function a(a,b,e,f){return function(g){g.payload.should_update_order_status===!0&&(g.payload.success?d("RelayModern").commitLocalUpdate(e,function(e){e=e.get(a);e!=null&&(e.setValue("ORDERED","thread_action_system_order_status",{asset_type:"MESSENGER",consumer_id:b,page_id:a}),f(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getUpdateOrderStatusSuccessToast(),status:"success"})))}):f(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getUpdateOrderStatusFailureToast(),status:"error"})))}}function e(a){var b,e=a.pageID,f=a.consumerID,g=a.query,i=a.environment,j=a.refresh,l=a.showAdEventSharingLegalNux,q=a.shouldShowContactCardTos;a=a.onShowContactCardTosModal;g=d("RelayHooks").useFragment(p,g);var r=g==null?void 0:g.thread_action_system_order_status;b=g==null?void 0:(b=g.order_status_labels)==null?void 0:b.order_status_list;var s=g==null?void 0:(g=g.order_status_labels)==null?void 0:g.labels;g=o(r);var t=g[0],u=g[1],v=n(null);g=c("useGeoToaster")();var w=g.add;m(function(){v.current=r,u(r)},[r]);c("usePageThreadOrderStatusSubscription")(e,(g=f)!=null?g:"",function(a){u((a=a.xfb_page_order_status_subscribe)==null?void 0:a.order_status)});if(!b||!s)return null;var x=function(a){if(f==null)return;u(a);var b=null;switch(a){case"BOOKED":case"ORDERED":case"PAID":case"SHIPPED":b=a;break}b!==null&&d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownOptionClick(e,f,b);w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getUpdateOrderStatusInProgressToast(),status:"indeterminate"}));d("BizInboxUpdateThreadOrderStatusMutation").commit(i,e,f,b,{onSuccess:function(){v.current=a,j(),l(),b===null?w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getClearOrderStatusSuccessToast(),status:"success"})):(w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getUpdateOrderStatusSuccessToast(),status:"success"})),d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownOptionSave(e,f,b))},onFailure:function(a){b===null?w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getClearOrderStatusFailureToast(),status:"error"})):(w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getUpdateOrderStatusFailureToast(),status:"error"})),d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownOptionError(e,f,b,a)),u(v.current)}})},y=[];b.map(function(a,b){y.push(k.jsx(c("GeoSelectorItem.react"),{"data-testid":void 0,label:s[b],value:a},a))});g=k.jsx(c("GeoSelector.react"),{"data-testid":void 0,label:"Order status dropdown",placeholder:h._("u9009u62e9u4e00u9879"),isLabelHidden:!0,onChange:x,value:t,onOpen:q?a:function(){d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownClick(e,f)},children:q?[]:y});return k.jsxs("div",{className:"xyamay9 x4uap5 x18d9i69 xkhd6sd",children:[k.jsxs(c("LeftRight.react"),{children:[k.jsx(c("GeoHeading.react"),{level:4,children:h._("u8ba2u5355u72b6u6001")}),k.jsx(c("GeoLink.react"),{onClick:q?a:function(){x(null),d("BizKitContextCardNewActivitySectionEventLogger").logClearStatusTextClick(e,f)},children:h._("u6e05u9664u72b6u6001")})]}),k.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top8,children:g})]})}e.displayName=e.name+" [from "+f.id+"]";function q(a){var b,e=a.pageID,f=a.consumerID,g=a.query,i=a.environment,j=a.refresh,l=a.showAdEventSharingLegalNux,q=a.shouldShowContactCardTos;a=a.onShowContactCardTosModal;g=d("RelayHooks").useFragment(p,g);var r=g==null?void 0:g.thread_action_system_order_status;b=g==null?void 0:(b=g.order_status_labels)==null?void 0:b.order_status_list;var s=g==null?void 0:(g=g.order_status_labels)==null?void 0:g.labels;g=o(r);var t=g[0],u=g[1],v=n(null);g=c("useGeoToaster")();var w=g.add;m(function(){v.current=t,u(r)},[r,t]);c("usePageThreadOrderStatusSubscription")(e,(g=f)!=null?g:"",function(a){u((a=a.xfb_page_order_status_subscribe)==null?void 0:a.order_status)});if(!b||!s)return null;var x=function(a){if(f==null)return;u(a);var b=null;switch(a){case"BOOKED":case"ORDERED":case"PAID":case"SHIPPED":b=a;break}b!==null&&d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownOptionClick(e,f,b);d("BizInboxUpdateThreadOrderStatusMutation").commit(i,e,f,b,{onSuccess:function(){j(),l(),b===null?w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getClearOrderStatusSuccessToast(),status:"success"})):(w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getUpdateOrderStatusSuccessToast(),status:"success"})),d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownOptionSave(e,f,b))},onFailure:function(a){b===null?w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getClearOrderStatusFailureToast(),status:"error"})):(w(k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getUpdateOrderStatusFailureToast(),status:"error"})),d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownOptionError(e,f,b,a)),u(v.current)}})},y=[];b.map(function(a,b){y.push(k.jsx(c("GeoSelectorItem.react"),{"data-testid":void 0,label:s[b],value:a},a))});g=k.jsx(c("GeoSelector.react"),{"data-testid":void 0,label:"Order status dropdown",placeholder:h._("u9009u62e9u4e00u9879"),isLabelHidden:!0,onChange:x,value:t,onOpen:q?a:function(){d("BizKitContextCardNewActivitySectionEventLogger").logOrderStatusDropdownClick(e,f)},children:y});return k.jsxs("div",{className:"xyamay9 x4uap5 x18d9i69 xkhd6sd",children:[k.jsxs(c("LeftRight.react"),{children:[k.jsx(c("GeoHeading.react"),{level:4,children:h._("u8ba2u5355u72b6u6001")}),k.jsx(c("GeoLink.react"),{onClick:q?a:function(){x(null),d("BizKitContextCardNewActivitySectionEventLogger").logClearStatusTextClick(e,f)},children:h._("u6e05u9664u72b6u6001")})]}),k.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top8,children:g})]})}q.displayName=q.name+" [from "+f.id+"]";g.getUpdateThreadOrderStatusCallback=a;g.ThreadOrderStatusDropdownSection=e;g.ThreadOrderStatusDropdownSectionDeprecated=q}),226);
-----
BizKitContextCardActivityDropDown.react",["cx","fbt","ix","BizKitContextCardActivityDropDown_contact.graphql","BizKitContextCardActivityDropDown_mbsBusinessAssets.graphql","BizKitContextCardActivityDropDown_page.graphql","BizKitContextCardAddActivityMutation","BizKitContextCardLinkButton.react","BizKitContextCardUtils","CRMEventsTypedLogger","ContactGraphAddActivityClickFalcoEvent","ContextualDialogArrow","ContextualLayerShowAndHideOnScrollOut","ContextualLayerUpdateOnScroll","Image.react","JSResource","MessengerAdsConversionFunnelTypedLogger","MessengerConversionEvent","PmaThreadActionSystemEventFalcoEvent","PopoverMenu.react","QE2Logger","QPLUserFlow","ReactXUIMenu","RelayHooks","ThreadActionSystemQPLConstants","getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils","lazyLoadComponent","react","useAdsDataSharingNUX","useSimpleNUX_LEGACY"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l,m,n,o=n||(n=d("react"));e=n;var p=e.useEffect,q=e.useRef,r=e.useState,s=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardActivityOrderDialog.react").__setRef("BizKitContextCardActivityDropDown.react")),t=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxOrderShippedActivitySendDetailsDialog.react").__setRef("BizKitContextCardActivityDropDown.react")),u=c("lazyLoadComponent")(c("JSResource")("XUIAmbientNUX.react").__setRef("BizKitContextCardActivityDropDown.react"));function v(a){var b=a.contextRef;a=c("useSimpleNUX_LEGACY")("290161645875967");var d=a[0],e=a[1];a=r(!1);var f=a[0],g=a[1];p(function(){if(!d)return;var a=window.setTimeout(function(){g(!0)},1e3);return function(){return window.clearTimeout(a)}},[d]);return f&&o.jsx(u,{alignment:"right",behaviors:{ContextualLayerUpdateOnScroll:c("ContextualLayerUpdateOnScroll"),ContextualLayerShowAndHideOnScrollOut:c("ContextualLayerShowAndHideOnScrollOut")},contextRef:function(){return b.current},onCloseButtonClick:function(){e(),g(!1)},position:"below",shown:!0,width:"auto",children:i._("u5728 Messenger u4e2du7ba1u7406u548cu8ffdu8e2au8ba2u5355u4ee5u53cau8fdbu884cu9884u7ea6u3002")},"clips_button_nux")}v.displayName=v.name+" [from "+f.id+"]";function a(a){var e=d("RelayHooks").useRelayEnvironment(),f=r(null),g=f[0],h=f[1];f=d("RelayHooks").useFragment(k!==void 0?k:k=b("BizKitContextCardActivityDropDown_page.graphql"),a.page);var n=d("RelayHooks").useFragment(l!==void 0?l:l=b("BizKitContextCardActivityDropDown_mbsBusinessAssets.graphql"),a.mbsBusinessAssets),p=d("RelayHooks").useFragment(m!==void 0?m:m=b("BizKitContextCardActivityDropDown_contact.graphql"),a.contact),u=d("getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils").getIsDependencyOfRemovePageDependencyEnabledToolForContactCard(a.surface);u=u?n:f;var w=(u==null?void 0:(n=u.ctm_www_tas_order_integration_gk)==null?void 0:n.is_order_integration_enabled)===!0;u=q(null);n=p==null?void 0:p.adsDataSharingActivityNUX;p=p==null?void 0:(p=p.page)==null?void 0:p.settings_uri_in_business_view;var x=d("useAdsDataSharingNUX").useAdsEventSharingNux(n,p,a.pageID),y=function(b){c("ContactGraphAddActivityClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(a.surface),page_id:A,page_contact_id:a.pageContactID,event_data:{activity_type:b},is_server_log:!1}}),c("QPLUserFlow").addPoint(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT,b),d("BizKitContextCardAddActivityMutation").commit(e,C,{interactionType:b,identity:D,entrypoint:"CONTACT_CARD"},{onSuccess:function(e){e=e==null?void 0:(e=e.biz_crm_contact_add_action)==null?void 0:(e=e.action_new)==null?void 0:e.interaction_id;e!=null&&(b==="PAYMENT_RECEIVED"||b==="ORDER_SHIPPED")?(d("QE2Logger").logExposureForPage("ctm_www_tas_order_integration_universe",A),w?h({orderStatus:b,interactionId:e}):x()):x();c("PmaThreadActionSystemEventFalcoEvent").log(function(){var c;return{page_id:a.pageID,consumer_id:(c=B)!=null?c:z,interaction_type:b,has_details:!1,entrypoint:"CONTACT_CARD"}});c("QPLUserFlow").endSuccess(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT)},onFailure:function(){return c("QPLUserFlow").endFailure(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT,d("ThreadActionSystemQPLConstants").ADD_ACTIVITY_MUTATION_FAILED)}})},z=a.contactID,A=a.pageID;n=a.readOnly;var B=a.userID,C=a.connectionID,D=a.contactIdentity;p=a.onShowContactCardTosModal;var E=a.shouldShowContactCardTos,F=r(!1),G=F[0],H=F[1];F=function(){var a;new(c("MessengerAdsConversionFunnelTypedLogger"))().setName(c("MessengerConversionEvent").PAGE_CLICK_ADD_ACTIVITY).setPageID(A).setConsumerID((a=B)!=null?a:z).log();new(c("CRMEventsTypedLogger"))().setPageID(A).setEvent("page_click_add_activity").setUISurface("contact_card_activity").setIsServerLog(!1).log();c("QPLUserFlow").start(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT)};f=(f=f==null?void 0:(f=f.translationFix)==null?void 0:f.is_enabled)!=null?f:!1;var I=f?o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("APPOINTMENT_BOOKED")},icon:o.jsx(c("Image.react"),{src:j("961923")}),"data-testid":void 0,children:i._("u5df2u9884u7ea6")}):o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("APPOINTMENT_BOOKED")},icon:o.jsx(c("Image.react"),{src:j("961923")}),"data-testid":void 0,children:"Appointment booked"}),J=f?o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("ORDER_PLACED")},icon:o.jsx(c("Image.react"),{src:j("961939")}),"data-testid":void 0,children:i._("u5df2u4e0bu5355")}):o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("ORDER_PLACED")},icon:o.jsx(c("Image.react"),{src:j("961939")}),"data-testid":void 0,children:"Order placed"}),K=f?o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("PAYMENT_RECEIVED")},icon:o.jsx(c("Image.react"),{src:j("961932")}),"data-testid":void 0,children:i._("u5df2u6536u6b3e")}):o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("PAYMENT_RECEIVED")},icon:o.jsx(c("Image.react"),{src:j("961932")}),"data-testid":void 0,children:"Payment received"});f=f?o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("ORDER_SHIPPED")},icon:o.jsx(c("Image.react"),{src:j("961946")}),"data-testid":void 0,children:i._("u5df2u53d1u8d27")}):o.jsx(c("ReactXUIMenu").Item,{onClick:function(){y("ORDER_SHIPPED")},icon:o.jsx(c("Image.react"),{src:j("961946")}),"data-testid":void 0,children:"Order shipped"});I=o.jsxs(c("ReactXUIMenu"),{children:[I,J,K,f]});return o.jsxs("div",{className:"uiContextualLayerParent",children:[E?o.jsx(c("BizKitContextCardLinkButton.react"),{readOnly:n,label:i._("u6dfbu52a0u52a8u6001"),onClick:p}):o.jsx(c("PopoverMenu.react"),{alignh:"right",alignv:"baseline",layerBehaviors:[c("ContextualDialogArrow")],menu:I,"data-testid":void 0,ref:u,children:o.jsx(c("BizKitContextCardLinkButton.react"),{readOnly:n,label:i._("u6dfbu52a0u52a8u6001"),onClick:F})}),u.current!=null&&o.jsx(v,{contextRef:u}),w&&B!=null&&o.jsxs(o.Fragment,{children:[g!=null&&o.jsx(o.Suspense,{fallback:null,children:o.jsx(s,{attachOrderModalType:g.orderStatus,interactionId:g.interactionId,pageID:A,userID:B,hideModal:function(){h(null),x()},setShowOrderShippedDialog:H})}),G&&o.jsx(o.Suspense,{fallback:null,children:o.jsx(t,{onHide:function(){H(!1)},onSuccess:function(){H(!1)},pageID:A,userID:B})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardAboutDetailSection.react",["fbt","BizKitContextCardAboutDetailSection_about.graphql","BizKitContextCardAboutSectionOffline.react","GeoHeading.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var e=a.about,f=a.className,g=a.contactIdentity,j=a.pageID,l=a.bpnID,m=a.surface,n=a.readOnly,o=a.onShowContactCardTosModal,p=a.shouldShowContactCardTos,q=a.shouldDisableBizInput,r=a.isPageEnabledForWAM;a=a.onShowCoexEditInfo;e=d("RelayHooks").useFragment(i!==void 0?i:i=b("BizKitContextCardAboutDetailSection_about.graphql"),e);return k.jsxs("div",{className:f,"data-testid":void 0,children:[k.jsx(c("GeoHeading.react"),{level:3,children:q?h._("u8bbfu5ba2u7528u6237"):h._("u7b80u4ecb")}),k.jsx(c("BizKitContextCardAboutSectionOffline.react"),{details:e,contactIdentity:g,pageID:j,bpnID:l,surface:m,isPageEnabledForWAM:r,readOnly:n,onShowContactCardTosModal:o,shouldShowContactCardTos:p,onShowCoexEditInfo:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardNewActivitySection.react",["fbt","BizInboxCreateLeadMutation","BizInboxFbtUtils","BizInboxGating","BizInboxStateContext","BizKitContextCardActivityListSection.react","BizKitContextCardActivityNuxForAutoDetected.react","BizKitContextCardNewActivitySectionEventLogger","BizKitContextCardNewActivitySectionQuery.graphql","GeoBaseText.react","GeoButton.react","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoPill.react","GeoToast.react","LeadOpportunityStageUpdateMutation","LeadsManagerConstants","LeadsManagerStageSelector.react","LeftRight.react","PageAdsEligibleEventSource","PageConsentForAdsEventsActions","RelayHooks","ThreadOrderStatusDropdownSection.react","XBizSuiteControllerRouteBuilder","XFBMBSAdsEventSharingEntryPointUtils.facebook","bizInboxStateHideContactCardReducer","geoMargin","getBizInboxOrganizeInboxTourSteps","react","relay-runtime/query/fetchQuery","stylex","useAdsDataSharingNUX","useBizInboxStateReducers","useBizWebGetRouteParams","useBizWebRouteDispatcher","useGeoToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.startTransition,n=e.useCallback,o=e.useContext,p=e.useEffect,q=e.useRef,r=e.useState,s=i!==void 0?i:i=b("BizKitContextCardNewActivitySectionQuery.graphql");function a(a){var b,e=a.surface,f=a.pageID,g=a.contactID,i=a.businessAssets,k=a.contactIdentity,t=a.onActivityListUpdated,u=a.isInKBankRollout,v=a.onShowContactCardTosModal,w=a.shouldShowContactCardTos,x=o(c("BizInboxStateContext")),y=x.hasPageSignedLcTos,z=x.selectedIgAssetId,A=x.pBUPIGAccountID,B=x.shouldShowLeadStageUpdateAdsConsent;x=r({fetchPolicy:"network-only"});var C=x[0],D=x[1];x=r(null);var E=x[0];x[1];x=r(null);x[0];var aa=x[1];x=function(a){aa(a),t(a)};var F="MESSENGER",G="MSGR_INBOX_ORGANIC";switch(e){case"INBOX_MESSAGING_IG":case"INBOX_POST_COMMENT_IG":case"INTERACTIONS_IG_COMMENT":case"POST_COMMENT_IG":F="IG";G="IG_INBOX_ORGANIC";break;default:}var H=c("useBizWebRouteDispatcher")(),I=c("useBizWebGetRouteParams")(),J=I.asset_id,K=c("XBizSuiteControllerRouteBuilder").buildURL({rest:"leads_center"});I=function(){var a={asset_id:J};H(K,a);d("BizKitContextCardNewActivitySectionEventLogger").logGoToLeadsCenterCTAClick(f,L,F)};var L=k.contact_id,M=g!==""?g:null,N=d("RelayHooks").useLazyLoadQuery(s,{pageID:f,consumerID:L,contactID:M,surface:e,assetType:F,businessAssets:i,identity:k},C);C=((C=N.leads_center)==null?void 0:C.should_enable_cold_start_improvements)===!0;var O=(b=N.biz_inbox_lead_stage_query)==null?void 0:(b=b.lead_stage)==null?void 0:b.id;b=d("BizInboxGating").getAllowPBIAFrontendChanges()&&z===A;var ba=(N==null?void 0:(z=N.leads_center)==null?void 0:z.should_show_mbs_ads_event_sharing_setting_modal_in_contact_card)===!0;z=b?!1:(A=N.page)==null?void 0:A.has_leads_center_access;b=(b=N.retrieve_biz_crm_contact)==null?void 0:(A=b.page)==null?void 0:A.settings_uri_in_business_view;A=r(O);var P=A[0],Q=A[1],R=q(null),S=d("RelayHooks").useRelayEnvironment();A=n(function(){void c("relay-runtime/query/fetchQuery")(S,s,{pageID:f,consumerID:L,contactID:M,assetType:F,businessAssets:i,identity:k,surface:e}).toPromise()},[F,i,L,k,M,f,S,e]);p(function(){R.current=P,Q(O)},[O]);var ca=c("useBizInboxStateReducers")([c("bizInboxStateHideContactCardReducer")]),T=c("useGeoToaster")(),U=T.add,V=d("RelayHooks").useRelayEnvironment();T=(T=N.biz_inbox_lead_stage_query)==null?void 0:T.lead_opportunity;var W=T==null?void 0:T.id,da=function(){if(W==null)return;var a={asset_id:J,lead_id:W};H(K,a)},X=n(function(){m(function(){D(function(a){return{fetchKey:((a=a==null?void 0:a.fetchKey)!=null?a:0)+1,fetchPolicy:"network-only"}})})},[]),Y=function(a,b){var e;b=b!=null?b>0:a==="mark_as_lead_inbox_contact_card";e=(e=(e=N.leads_center)==null?void 0:e.list_mbs_ads_event_sharing_setting_modal_entrypoints.includes(d("XFBMBSAdsEventSharingEntryPointUtils.facebook").fromJSEnum(a)))!=null?e:!1;if(!B||!b||!e||!ba)return;d("PageConsentForAdsEventsActions").showConsentModalIfNeeded(function(){return!0},function(){return!0},function(){},c("PageAdsEligibleEventSource").LEAD_STAGE_UPDATE,null,a)};T=function(){d("BizKitContextCardNewActivitySectionEventLogger").logMarkAsLeadCTAClick(f,L,F),Y("mark_as_lead_inbox_contact_card"),d("BizInboxCreateLeadMutation").commit(V,f,g,G,F,{onSuccess:function(){ca({type:"has_organic_lead.update"}),X(),U(l.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getAddLeadSuccessToast(),status:"success"}))},onFailure:function(){U(l.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getAddLeadFailureToast(),status:"error"}))}},i)};var Z=function(a){var b;if(a==null||W==null)return;d("BizKitContextCardNewActivitySectionEventLogger").logLeadStageDropdownOptionClick(f,L,a,F);Q(a);b=(b=N.page)==null?void 0:(b=b.page_opportunity_stages)==null?void 0:(b=b.find(function(b){return b.id===a}))==null?void 0:b.stage_key;Y("lead_stage_update_inbox_contact_card",b);d("LeadOpportunityStageUpdateMutation").commit(V,{lead_opportunity_id:W,stage:a,event_location:"business_inbox"},{onSuccess:function(){X(),ea(),U(l.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getMoveLeadStageSuccessToast(),status:"success"})),d("BizKitContextCardNewActivitySectionEventLogger").logLeadStageDropdownOptionSave(f,L,a,F)},onFailure:function(b){U(l.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getMoveLeadStageFailureToast(),status:"error"})),Q(R.current),d("BizKitContextCardNewActivitySectionEventLogger").logLeadStageDropdownOptionError(f,L,a,b,F)}})};I=l.jsx(c("GeoButton.react"),{label:d("BizInboxFbtUtils").getGoToLeadsCenterLabel(),onClick:I,variant:"primary"});var $=l.jsx(c("GeoBaseText.react"),{color:"value",display:"block",isDisabled:!0,size:"accent",children:d("BizInboxFbtUtils").getGoToLeadsCenterSubtitle()});I=l.jsxs(l.Fragment,{children:[I,l.jsx("div",{className:(j||(j=c("stylex")))(c("geoMargin").top4),children:$})]});$=l.jsx(c("GeoButton.react"),{"data-testid":void 0,label:C?d("BizInboxFbtUtils").getContactCardMarkAsLeadLabel():d("BizInboxFbtUtils").getContactCardAddLeadLabel(),onClick:T,variant:"default"});T=(T=N.biz_inbox_lead_stage_query)==null?void 0:(T=T.lead_opportunity)==null?void 0:T.mbs_ads_event_sharing_lead_opt_in_status;T=T==="OPTED_IN"?(T=N.retrieve_biz_crm_contact)==null?void 0:T.adsDataSharingLeadStageUpdateNUX:[];var ea=d("useAdsDataSharingNUX").useAdsEventSharingNux(T,b,f);T=l.jsx(c("LeadsManagerStageSelector.react"),{dataTestId:"contact-card-leads-stage-selector-button",allowNoSelection:!1,isDisabled:!1,stages:(T=N.page)==null?void 0:T.page_opportunity_stages,selectedValue:P,width:160,onChange:Z,consumerID:L,pageID:f,assetType:F,shouldShowBulkAction:!1,shouldShowBulkEditImprovement:!1});Z=l.jsx(c("GeoLink.react"),{"data-testid":void 0,onClick:function(){da(),d("BizKitContextCardNewActivitySectionEventLogger").logViewInLeadsCenterTextClick(f,L,F)},children:d("LeadsManagerConstants").VIEW_IN_LEADS_CENTER_TEXT});Z=z===!0?l.jsxs("div",{className:"xyamay9 x4uap5 x18d9i69 xkhd6sd",children:[l.jsxs(c("LeftRight.react"),{children:[l.jsx(c("GeoHeading.react"),{level:4,children:d("LeadsManagerConstants").LEAD_STAGE_LABEL}),y&&((z=N.biz_inbox_lead_stage_query)==null?void 0:z.lead_stage)!==null?Z:null]}),l.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top8,children:y?((z=N.biz_inbox_lead_stage_query)==null?void 0:z.lead_stage)===null?$:T:I})]}):null;z=(y=N.retrieve_biz_crm_contact)==null?void 0:y.adsDataSharingActivityNUX;$=d("useAdsDataSharingNUX").useAdsEventSharingNux(z,b,f);y=(I=(T=N.page)==null?void 0:T.thread_action_system_should_use_optimistic_update)!=null?I:!1;z=F!=="MESSENGER"?null:y?l.jsx(d("ThreadOrderStatusDropdownSection.react").ThreadOrderStatusDropdownSection,{pageID:f,consumerID:L,query:N.page,environment:V,refresh:X,showAdEventSharingLegalNux:$,onShowContactCardTosModal:v,shouldShowContactCardTos:w}):l.jsx(d("ThreadOrderStatusDropdownSection.react").ThreadOrderStatusDropdownSectionDeprecated,{pageID:f,consumerID:L,query:N.page,environment:V,refresh:X,showAdEventSharingLegalNux:$,onShowContactCardTosModal:v,shouldShowContactCardTos:w});b=F!=="MESSENGER"?null:l.jsx("div",{className:(j||(j=c("stylex")))(c("geoMargin").top8),children:l.jsx(c("BizKitContextCardActivityListSection.react"),{activity:N.retrieve_biz_crm_contact,page:E==null?void 0:E.page.listItemRef,mbsBusinessAssets:E==null?void 0:E.xfb_mbs_business_assets.listItemRef,pageID:f,userID:L,surface:e,pageContactID:g,onActivityListUpdated:x,isInKBankRollout:u,onShowContactCardTosModal:v,shouldShowContactCardTos:w,contactIdentity:k,refetchLeadOpportunity:A})});return l.jsxs(l.Fragment,{children:[l.jsx(c("BizKitContextCardActivityNuxForAutoDetected.react"),{contact:N.retrieve_biz_crm_contact,shouldShowNux:((T=N.retrieve_biz_crm_contact)==null?void 0:T.should_show_automated_activity_redesigned_nux)!==!0&&((I=N.retrieve_biz_crm_contact)==null?void 0:I.should_show_automated_activity_nux)===!0,pageID:f,nuxType:"AUTOMATED_ACTIVITY_CREATION",identity:k,refetchLeadOpportunity:A}),l.jsx("div",{ref:d("getBizInboxOrganizeInboxTourSteps").contactCardActivitySectionRef,className:a.className,"data-testid":void 0,children:l.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top4,children:[l.jsxs(c("GeoFlexbox.react"),{gap:8,alignItems:"center",children:[l.jsx(c("GeoHeading.react"),{level:3,children:h._("u52a8u6001")}),C?l.jsx(c("GeoPill.react"),{label:d("LeadsManagerConstants").RECOMMENDED_PILL_CONTENT,status:"info",value:d("LeadsManagerConstants").RECOMMENDED_PILL_CONTENT}):null]}),Z,z,b]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardAboutSectionOffline.react",["fbt","ix","BizEmailSubscriptionConsts","BizInboxStateContext","BizKitContextCardAboutSectionLoggingUtils","BizKitContextCardAboutSectionOfflineRow.react","BizKitContextCardAboutSectionOffline_details.graphql","BizKitContextCardConstants","BizKitContextCardLinkButton.react","CountryNames","GeoBaseText.react","GeoButton.react","GeoLink.react","ISOCountryCode","Image.react","JSResource","LeftRight.react","RelayHooks","WhatsAppMarketingFbtUtils","geoMargin","isTruthy","lazyLoadComponent","react","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react"));e=l;var n=e.useContext,o=e.useState,p=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardEditProfileDialog.react").__setRef("BizKitContextCardAboutSectionOffline.react")),q="https://www.facebook.com/business/help/925702697860930";function r(a){a=((a=a.shared_attributes)==null?void 0:a.profile)||{};var b=a.phone;a=a.fallback_phone_number;b=(b==null?void 0:b.phoneNumber)||a;return{icon:m.jsx(c("Image.react"),{src:i("972302")}),value:(a=b)!=null?a:h._("+ u624bu673au53f7")}}function s(a,b){var e,f;b=b==="CRM_DESTINATION";e=(e=a.shared_attributes)==null?void 0:(e=e.profile)==null?void 0:e.email;f=((f=a.wa_attributes)==null?void 0:f.wa_customer_id)!=null;var g=null;e!=null?g=e:g=h._("+ u90aeu7bb1");e={icon:m.jsx(c("Image.react"),{src:i("569294")}),value:g,"data-testid":"context_card_details_email"};if(f)return e;g=(a=a==null?void 0:(g=a.business_attributes)==null?void 0:(f=g.communication_preference)==null?void 0:f.email_subscription_status)!=null?a:"UNCONFIRMED";f=d("BizEmailSubscriptionConsts").getEmailSubscriptionStatusConsts(g);a={iconSecondLine:b?m.jsx(c("Image.react"),{src:f.icon_size_8}):null,valueSecondLine:b?f.label:null};return babelHelpers["extends"]({},e,a)}function t(a){return{icon:m.jsx(c("Image.react"),{src:i("972294")}),value:((a=a.shared_attributes)==null?void 0:(a=a.profile)==null?void 0:a.formatted_birthday)||h._("+ u751fu65e5"),"data-testid":"context_card_details_birthday"}}function u(a,b){var d,e;b=b==="CRM_DESTINATION";d=a==null?void 0:(d=a.shared_attributes)==null?void 0:(d=d.profile)==null?void 0:d.country_code;return{icon:m.jsx(c("Image.react"),{src:i("820011")}),value:((e=a.shared_attributes)==null?void 0:(e=e.profile)==null?void 0:e.address)||h._("+ u5730u5740"),valueSecondLine:(e=a.shared_attributes)==null?void 0:(a=e.profile)==null?void 0:a.city_state,valueThirdLine:b&&c("isTruthy")(d)?c("CountryNames")[c("ISOCountryCode")[d]]:null,"data-testid":"context_card_details_address"}}function v(){return m.jsxs("div",{children:[m.jsx("div",{className:"xz9dl7a x4uap5 xsag5q8 xkhd6sd",children:m.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("u8fd9u4f4du7528u6237u6b63u4ee5u8bbfu5ba2u8eabu4efdu4f7fu7528u4f60u7684u7f51u7ad9u804au5929u63d2u4ef6u3002u5728u7ed9u8fd9u4f4du7528u6237u53d1u7b2cu4e00u6761u6d88u606fu540eu7684 24 u5c0fu65f6u5185uff0cu4f60u53efu4ee5u4e0eu4e4bu4e92u53d1u6d88u606fuff1b24 u5c0fu65f6u540eu5219u65e0u6cd5u518du5411u5bf9u65b9u53d1u6d88u606fu3002")})}),m.jsx("div",{className:"xz9dl7a x4uap5 xsag5q8 xkhd6sd",children:m.jsxs(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:[h._("u4f46u662fuff0cu4f60u4ecdu53efu5728u6536u4ef6u7bb1u4e2du67e5u770bu804au5929u8bb0u5f55u3002"),m.jsx(c("GeoLink.react"),{href:q,target:"_blank",children:"Learn More"})]})})]})}v.displayName=v.name+" [from "+f.id+"]";function w(a){var b=a.editButtonDataTestID;b=a.onEditButtonClicked;a=a.readOnly;return m.jsxs("div",{className:"xz9dl7a x4uap5 xsag5q8 xkhd6sd",children:[m.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("u8bf7u6dfbu52a0u8054u7cfbu65b9u5f0fu7b49u7528u6237u4fe1u606fu3002")}),m.jsx("div",{className:(k||(k=c("stylex")))(c("geoMargin").top12),children:m.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:a,disabledMessage:c("BizKitContextCardConstants").CONTACT_CARD_READ_ONLY_MODE_DISABLE_BUTTON_HOVER_OVER_TEXT,label:h._("u6dfbu52a0u4fe1u606f"),onClick:b})})]})}w.displayName=w.name+" [from "+f.id+"]";function a(a){var e,f,g,k,l,q=a.pageID,x=a.contactIdentity,y=a.surface,z=a.readOnly,A=a.onShowContactCardTosModal,B=a.shouldShowContactCardTos,C=a.bpnID,D=a.isPageEnabledForWAM,E=a.onShowCoexEditInfo,F=o(!1),G=F[0],H=F[1];F=n(c("BizInboxStateContext"));F=F.isWAOnly;a=d("RelayHooks").useFragment(j!==void 0?j:j=b("BizKitContextCardAboutSectionOffline_details.graphql"),a.details);var I=a==null?void 0:(e=a.shared_attributes)==null?void 0:e.page_contact_id;e=function(){H(!0),d("BizKitContextCardAboutSectionLoggingUtils").logAddContactDetailsClick(q,I,y)};var J=function(){H(!0),d("BizKitContextCardAboutSectionLoggingUtils").logEditContactDetailsClick(q,I,y)},K=function(){H(!1)};f=a==null?void 0:(f=a.shared_attributes)==null?void 0:(f=f.profile)==null?void 0:f.guest_id;g=Object.entries((a==null?void 0:(g=a.shared_attributes)==null?void 0:g.profile)||{}).every(function(a){return a[0]==="guest_id"||a[1]==null||a[1]===""});k=(a==null?void 0:(k=a.wa_attributes)==null?void 0:k.wa_customer_id)!=null;l=d("WhatsAppMarketingFbtUtils").getLabelForStatus(a==null?void 0:(l=a.wa_attributes)==null?void 0:l.opt_in_status);if(f!=null)return m.jsx(v,{});f=G&&m.jsx(m.Suspense,{fallback:null,children:m.jsx(p,{pageID:q,bpnID:C,hideContactCardProfileSectionEditDialog:K,contactIdentity:x,contact:a,surface:y,isPageEnabledForWAM:D,onShowCoexEditInfo:E})});return g||a==null?m.jsxs(m.Fragment,{children:[f,m.jsx(w,{onEditButtonClicked:B?A:e,readOnly:z,editButtonDataTestID:"context_card_details_edit"})]}):m.jsxs("div",{className:"xz9dl7a xn6708d xsag5q8 x1ye3gou",children:[m.jsxs(c("LeftRight.react"),{children:[m.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("u5df2u6dfbu52a0u7684u4fe1u606f")}),!F&&m.jsx(c("BizKitContextCardLinkButton.react"),{"data-testid":void 0,readOnly:z,label:h._("u7f16u8f91"),onClick:B?A:J})]}),f,m.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},r(a))),k&&D?m.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,{icon:m.jsx(c("Image.react"),{src:i("617781")}),value:l}):null,m.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},s(a,y))),m.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},t(a))),m.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},u(a,y)))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardActivityListSection.react",["fbt","BizInboxCustomActivityCreatedSubscription","BizKitContextCardActivityListItem3DWrapper.react","BizKitContextCardActivityListSection_activity.graphql","BizKitContextCardMoreSection.react","BizKitContextCardSeeLessSection.react","BizKitContextCardUtils","ContactGraphSeeMoreActivityClickFalcoEvent","GeoBaseText.react","PagesContextCardHistoryStoryViewer.react","RelayHooks","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.startTransition,m=e.useEffect,n=e.useRef,o=e.useState,p=2,q=3,r=i!==void 0?i:i=b("BizKitContextCardActivityListSection_activity.graphql");function a(a){var b=a.activity,e=a.pageID,f=a.userID,g=a.surface,i=a.pageContactID,j=a.isInKBankRollout,s=a.onActivityListUpdated,t=a.onShowContactCardTosModal,u=a.shouldShowContactCardTos,v=a.contactIdentity,w=a.refetchLeadOpportunity;b=d("RelayHooks").usePaginationFragment(r,b);var x=b.data,y=b.loadNext,z=b.hasNext,A=b.refetch;b=o(null);var B=b[0],C=b[1],D=x==null?void 0:(b=x.all_actions)==null?void 0:(b=b.interaction_count)==null?void 0:b.count,E=x==null?void 0:(b=x.all_actions)==null?void 0:(b=b.actions)==null?void 0:(b=b.edges)==null?void 0:b.length;b=o(null);var F=b[0],G=b[1],H=x==null?void 0:(b=x.all_actions)==null?void 0:(b=b.actions)==null?void 0:b.__id,I=n(),J=d("RelayHooks").useRelayEnvironment();m(function(){if(H!=null){s(H);if(F!==D){var a;w();G((a=D)!=null?a:0)}v.type==="FB_USER"&&(I.current=d("BizInboxCustomActivityCreatedSubscription").subscribe(J,v,function(){}))}return function(){var a;(a=I.current)==null?void 0:a.dispose();I.current=null}},[s,H,v,J]);d("RelayHooks").useSubscribeToInvalidationState([H].filter(Boolean),function(){var a=x==null?void 0:x.id;a!=null&&l(function(){A({count:q,id:a})})});var K=function(){c("ContactGraphSeeMoreActivityClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(g),page_id:e,page_contact_id:i,event_data:{},is_server_log:!1}}),z&&y(q)},L=function(){var a=x==null?void 0:x.id;a!=null&&l(function(){A({count:p,id:a},{fetchPolicy:"network-only"})})},M=function(a){a=(a=a.contact_action)==null?void 0:(a=a.story)==null?void 0:a.id;a!=null&&C(a)};b=function(){if(D==null||E==null)return null;return D<=E?null:k.jsx(c("BizKitContextCardMoreSection.react"),{className:"x178xt8z x13fuv20 xkh9tda x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",onClick:K})};var N=function(){if(E==null)return null;return E>q?k.jsx(c("BizKitContextCardSeeLessSection.react"),{className:"x178xt8z x13fuv20 xkh9tda x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",onClick:L}):null},O=function(){var b;b=x==null?void 0:(b=x.all_actions)==null?void 0:(b=b.actions)==null?void 0:b.edges;if(b==null||b.length===0)return k.jsx("div",{className:"x17ddzgb x14vqqas",children:k.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",isDisabled:!0,display:"block","data-testid":void 0,children:h._("u8ffdu8e2au91cdu8981u7684u5ba2u6237u4e92u52a8u3002")})});b=b.map(function(b,d){var h;return((h=b.node)==null?void 0:h.codeSplitWrapper)!=null&&k.jsx(c("BizKitContextCardActivityListItem3DWrapper.react"),{wrapperRef:(h=b.node)==null?void 0:h.codeSplitWrapper,isInKBankRollout:j,page:a.page,mbsBusinessAssets:a.mbsBusinessAssets,pageID:e,surface:g,pageContactID:i,selectInteraction:M,onShowContactCardTosModal:t,shouldShowContactCardTos:u,userID:f},"interaction_"+d)});return k.jsx("div",{className:"x14vqqas",children:b})},P=function(){return B!=null?k.jsx(c("PagesContextCardHistoryStoryViewer.react"),{pageID:e,storyToken:B,userID:c("nullthrows")(f),onClose:function(){return C(null)}}):null};return k.jsxs("div",{children:[P(),O(),N(),b()]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardSuggestedLabelsSection.react",["fbt","BizInboxFeatureTipRenderer.react","BizInboxStateContext","BizKitContextCardLabel.react","BizKitContextCardUtils","CRMContextCardSuggestedLabels","ContactGraphSuggestedLabelDismissFalcoEvent","ContextCardLabelUtils","GeoText.react","LeftRight.react","RelayHooks","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useRef;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=a.contactIdentity,f=a.conversationLabels,g=a.connectionID,i=a.suggestedLabels,m=a.onCreateAndAddLabel,n=a.onShowContactCardTosModal,o=a.shouldShowContactCardTos,p=a.surface,q=a.pageID,r=a.pageContactID;a=k(c("BizInboxStateContext"));var s=a.shouldShowPriorityInbox;a=a.shouldShowMLSuggestedLabel;var t=l(null),u=j.jsx(c("BizInboxFeatureTipRenderer.react"),{contextRef:t,tipPosition:"suggested-label",contextualLayerPosition:"start"}),v,w=a?function(a,f,h,i){d("ContextCardLabelUtils").onDismissSuggestedLabel(b,g,e,a,f,p),c("ContactGraphSuggestedLabelDismissFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(p),page_id:q,page_contact_id:r,event_data:{label_name:f,is_bulk_action:!1,is_suggested_label:!0,content_type:i,label_color:h},is_server_log:!1}})}:null;a=i.filter(function(a){return!f.find(function(b){return b.name.toLocaleLowerCase()===a.name.toLocaleLowerCase()})});s&&(a=a.filter(function(a){return a.name.toLocaleLowerCase()!==c("CRMContextCardSuggestedLabels")[1].name.toString().toLocaleLowerCase()}));a.length!==0&&(v=a.map(function(a,b){return a&&j.jsxs("div",{ref:d("ContextCardLabelUtils").genUpsellSuggestedLabel(b,a,q,p,r)===!0?t:null,className:"x1rg5ohu",children:[j.jsx(c("BizKitContextCardLabel.react"),{color:c("nullthrows")(a.color),name:c("nullthrows")(a.display_name.toString()),contentType:c("nullthrows")(a.content_type),createName:c("nullthrows")(a.name),id:c("nullthrows")(a.id),onDismissLabel:w,isSuggestedLabel:!0,onAddorCreateLabel:m,readOnly:!1,onShowContactCardTosModal:n,shouldShowContactCardTos:o,isAILabel:!1,isAdResponseLabel:!1}),d("ContextCardLabelUtils").genUpsellSuggestedLabel(b,a,q,p,r)===!0?u:null]},c("nullthrows")(a.name))}));return j.jsxs("div",{"data-testid":void 0,children:[j.jsx(c("LeftRight.react"),{children:j.jsx("div",{className:"xod5an3 x14vqqas",children:j.jsx(c("GeoText.react"),{children:h._("u63a8u8350u6807u7b7e")})})}),v]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardActivityListItem3DWrapper.react",["BizKitContextCardActivityListItem3DWrapper_BizCRMContactAction3DWrapper.graphql","CometRelay","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.Suspense;function a(a){var c=a.isInKBankRollout,e=a.mbsBusinessAssets,f=a.onShowContactCardTosModal,g=a.page,i=a.pageContactID,l=a.pageID,m=a.selectInteraction,n=a.shouldShowContactCardTos,o=a.surface,p=a.userID;a=a.wrapperRef;a=d("CometRelay").useFragment(h!==void 0?h:h=b("BizKitContextCardActivityListItem3DWrapper_BizCRMContactAction3DWrapper.graphql"),a);return j.jsx(k,{fallback:null,children:j.jsx(d("CometRelay").MatchContainer,{match:a,props:{data:a,isInKBankRollout:c,page:g,mbsBusinessAssets:e,pageID:l,surface:o,pageContactID:i,selectInteraction:m,onShowContactCardTosModal:f,shouldShowContactCardTos:n,shouldRemovePageVCDependency:!0,userID:p}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCard.react",["BizCRMContactCardPermission","BizCRMContactCardSection","BizKitContextCardConstants","BizKitContextCardErrorBoundary.react","BizKitContextCardTOSModal.react","BizKitContextCardTosLoggingUtils","BizKitContextCard_config.graphql","BizKitContextCard_detail.graphql","GeoToast.react","JSResource","RelayHooks","cr:4922","getJSEnumSafe","getShould3DBizInboxContextCardSections.entrypointutils","lazyLoadComponent","react","useGeoToaster"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useState,m=c("lazyLoadComponent")(c("JSResource")("BizKitContactCardCoexEditInfoModal.react").__setRef("BizKitContextCard.react"));function a(a){var e,f,g=d("RelayHooks").useFragment(h!==void 0?h:h=b("BizKitContextCard_detail.graphql"),a.contactDetails),j=d("RelayHooks").useFragment(i!==void 0?i:i=b("BizKitContextCard_config.graphql"),a.contactConfig),n=a.contactID,o=a.contactIdentity,p=a.pageID,q=a.onSelectLabel,r=a.onActivityListUpdated,s=a.activitiesQueryReference,t=a.onBanUser,u=a.isBlockedInIG,v=a.surface,w=a.businessAssets,x=a.isDependencyOfRemovePageDependencyEnabledTool;x=x===void 0?!1:x;var y=a.externalPaymentAccountData,z=a.isGcashEnabled,A=(j==null?void 0:j.permission)?c("getJSEnumSafe")(c("BizCRMContactCardPermission"),j==null?void 0:j.permission)!=="READ_WRITE":!1,B=(e=g==null?void 0:(e=g.shared_attributes)==null?void 0:e.is_guest_chat)!=null?e:!1,C=(e=g==null?void 0:(e=g.shared_attributes)==null?void 0:e.page_contact_id)!=null?e:"";e=(e=g==null?void 0:g.has_consented_to_contact_card_tos)!=null?e:!1;var D=["CRM_DESTINATION","INBOX_CONTACT_LIST","INBOX_LEAD_EMAIL"].includes(v),E=!D&&!e;D=x?g==null?void 0:g.mbs_business_assets:g==null?void 0:g.page;x=x?(g==null?void 0:(x=g.mbs_business_assets)==null?void 0:x.page_if_viewer_can_manage_permissions)!=null:(g==null?void 0:(x=g.page)==null?void 0:x.if_viewer_can_manage_permissions)!=null;var F=!1,G=D==null?void 0:(f=D.business_presence_node)==null?void 0:f.id,H=(D==null?void 0:(f=D.is_in_kbank_rollout)==null?void 0:f.passes)===!0,I=(g==null?void 0:(D=g.page)==null?void 0:(f=D.show_payment_onboarding_context_card)==null?void 0:f.passes_gk)===!0;D=l(!1);f=D[0];var J=D[1];D=c("useGeoToaster")();var K=D.add,L=function(a){var b=null;a==="error"?b=c("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_ERROR_TEXT:a==="success"&&(b=c("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_SUCCESS_TEXT);b!==null&&K(k.jsx(c("GeoToast.react"),{heading:b,status:a}),{duration:"standard"})};D=l(!1);var M=D[0],N=D[1],O=function(){N(!0)};D=M&&k.jsx(k.Suspense,{fallback:null,children:k.jsx(m,{isShown:M,onHide:function(){N(!1)}})});var P=function(){J(!0),d("BizKitContextCardTosLoggingUtils").logTosModalEnterFlow(p,C,v)};j=d("getShould3DBizInboxContextCardSections.entrypointutils").getShould3DBizInboxContextCardSections()?j==null?void 0:(M=j.sections_renderers)==null?void 0:M.map(function(d){return k.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:p,section:c("getJSEnumSafe")(c("BizCRMContactCardSection"),d.section_enum),children:k.jsx(b("cr:4922"),{surface:v,data:g,sectionName:d.section_enum,pageID:p,bpnID:G,contactID:n,pageContactID:C,contactIdentity:o,onSelectLabel:q,isPageEnabledForWAM:F,onActivityListUpdated:r,onBanUser:t,isInKBankRollout:H,activitiesQueryReference:s,isBlockedInIG:u,readOnly:A,shouldShowCloseButton:a.shouldShowCloseButton,onClose:a.onClose,onShowContactCardTosModal:P,shouldShowContactCardTos:E,shouldDisableBizInput:B,pageRef:g==null?void 0:g.page,mbsBusinessAssetsRef:g==null?void 0:g.mbs_business_assets,externalPaymentAccountData:y,rendererRef:d,businessAssets:w,shouldShowPaymentOnboardingContextCard:I,isGcashEnabled:z,onShowCoexEditInfo:O})},d.section_enum)}):j==null?void 0:(M=j.sections)==null?void 0:M.map(function(d){return k.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:p,section:c("getJSEnumSafe")(c("BizCRMContactCardSection"),d),children:k.jsx(b("cr:4922"),{surface:v,data:g,sectionName:d,pageID:p,bpnID:G,contactID:n,pageContactID:C,contactIdentity:o,onSelectLabel:q,isPageEnabledForWAM:F,onActivityListUpdated:r,onBanUser:t,isInKBankRollout:H,activitiesQueryReference:s,isBlockedInIG:u,readOnly:A,shouldShowCloseButton:a.shouldShowCloseButton,onClose:a.onClose,onShowContactCardTosModal:P,shouldShowContactCardTos:E,shouldDisableBizInput:B,pageRef:g==null?void 0:g.page,mbsBusinessAssetsRef:g==null?void 0:g.mbs_business_assets,externalPaymentAccountData:y,rendererRef:null,businessAssets:w,shouldShowPaymentOnboardingContextCard:I,isGcashEnabled:z,onShowCoexEditInfo:O})},d)});return k.jsxs("div",{className:"xdpxx8g","data-testid":void 0,children:[j,D,!e&&G!=null?k.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:p,children:k.jsx(c("BizKitContextCardTOSModal.react"),{bpnID:G,pageID:p,contactIdentity:o,pageContactID:C,surface:v,isShown:f,isAdmin:x,onHide:function(){J(!1),d("BizKitContextCardTosLoggingUtils").logTosModalCancelFlow(p,C,v)},onAcceptSuccess:function(){J(!1),L("success")},onAcceptFailure:function(){J(!1),L("error")}})}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardTOSModal.react",["fbt","BizKitContextCardAcceptToSMutation","BizKitContextCardConstants","BizKitContextCardTosLoggingUtils","CRMConsentToTOSDialog.react","GeoButton.react","GeoCancelButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","RelayHooks","err","geoMargin","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=a.pageID,f=a.contactIdentity,g=a.pageContactID,j=a.surface,m=a.isShown,n=a.isAdmin,o=a.onHide,p=a.onAcceptSuccess,q=a.onAcceptFailure;a=l(!1);var r=a[0],s=a[1];a=l(!1);var t=a[0],u=a[1];a=function(){s(!0),d("BizKitContextCardTosLoggingUtils").logTosReviewButtonClick(e,g,j)};var v=function(){d("BizKitContextCardAcceptToSMutation").commit(b,{actor_id:e,identity:f},{onSuccess:function(a){a=(a=a.biz_crm_contact_sign_tos)==null?void 0:(a=a.biz_crm_contact)==null?void 0:a.has_consented_to_contact_card_tos;a===!0?(p(),d("BizKitContextCardTosLoggingUtils").logTosAcceptSuccess(e,g,j)):(q(),u(!1),d("BizKitContextCardTosLoggingUtils").logTosAcceptFailure(e,g,j,c("err")("unexpected tos signing failure")))},onFailure:function(a){q(),u(!1),d("BizKitContextCardTosLoggingUtils").logTosAcceptFailure(e,g,j,a)}})},w=function(){window.open("https://www.facebook.com/legal/page_contact_terms","_blank"),o()};return k.jsxs("span",{children:[k.jsx(c("GeoModal.react"),{footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{"data-testid":void 0,label:n?h._("u67e5u770b"):h._("u67e5u770bu6761u6b3e"),onClick:n?a:w,isLoading:t,variant:"primary"}),secondaryButton:k.jsx(c("GeoCancelButton.react"),{"data-testid":void 0})}),header:k.jsx(c("GeoModalHeader.react"),{heading:n?c("BizKitContextCardConstants").CONTACT_CARD_TOS_HEADER_TEXT:c("BizKitContextCardConstants").CONTACT_CARD_TOS_NON_ADMIN_HEADER_TEXT}),isShown:m,onHide:o,children:k.jsxs(c("GeoSection.react"),{children:[k.jsx("div",{children:k.jsx(c("GeoText.react"),{xstyle:c("geoMargin").vert16,children:n?c("BizKitContextCardConstants").CONTACT_CARD_TOS_FIRST_SECTION_TEXT:c("BizKitContextCardConstants").CONTACT_CARD_TOS_NON_ADMIN_FIRST_SECTION_TEXT})}),k.jsx("div",{className:(i||(i=c("stylex")))(c("geoMargin").top16),children:k.jsx(c("GeoLink.react"),{xstyle:c("geoMargin").vert16,onClick:n?a:w,children:k.jsx("strong",{children:n?c("BizKitContextCardConstants").CONTACT_CARD_TOS_CONTINUE_REVIEW_TEXT:h._("u67e5u770bu6761u6b3e")})})})]})}),k.jsx(c("CRMConsentToTOSDialog.react"),{isShown:r,onConfirm:function(){u(!0),d("BizKitContextCardTosLoggingUtils").logTosAcceptClick(e,g,j),v()},onHide:function(){o(),s(!1)},isLoading:t,alwaysAllowConfirm:!0})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitContextCardTosLoggingUtils",["BizKitContextCardUtils","ContactGraphTosAcceptClickFalcoEvent","ContactGraphTosAcceptFailureFalcoEvent","ContactGraphTosAcceptSuccessFalcoEvent","ContactGraphTosModalCancelFlowFalcoEvent","ContactGraphTosModalEnterFlowFalcoEvent","ContactGraphTosReviewButtonClickFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e){c("ContactGraphTosModalEnterFlowFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function b(a,b,e){c("ContactGraphTosModalCancelFlowFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function e(a,b,e){c("ContactGraphTosReviewButtonClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function f(a,b,e){c("ContactGraphTosAcceptClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function h(a,b,e){c("ContactGraphTosAcceptSuccessFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function i(a,b,e,f){c("ContactGraphTosAcceptFailureFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{error_type:f.name,error_message:f.message,error_trace:f.stack},is_server_log:!1}})}g.logTosModalEnterFlow=a;g.logTosModalCancelFlow=b;g.logTosReviewButtonClick=e;g.logTosAcceptClick=f;g.logTosAcceptSuccess=h;g.logTosAcceptFailure=i}),98);
-----
ContactGraphTosModalEnterFlowFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("792");b=d("FalcoLoggerInternal").create("contact_graph_tos_modal_enter_flow",a);e=b;g["default"]=e}),98);
-----
ContactGraphTosModalCancelFlowFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("791");b=d("FalcoLoggerInternal").create("contact_graph_tos_modal_cancel_flow",a);e=b;g["default"]=e}),98);
-----
AdFLEXWhatsappMmInboxReTosMessageMarketingConfigPlugin",["AdsPERouterHelper","MessageMarketingMBSInboxToSModalAction"],(function(a,b,c,d,e,f,g){"use strict";a={type:"flexWhatsappMmInboxReTosConfig",key:"marketingMessages",tool:"MANAGE_MESSAGES",getWhatsAppInboxReTosModal:function(){var a=c("AdsPERouterHelper").getRouter().getQueryParams();a=(a=a.show_inbox_re_tos)!=null?a:!1;a&&c("MessageMarketingMBSInboxToSModalAction").dispatch({isModalShown:!0},{line:"29",module:"AdFLEXWhatsappMmInboxReTosMessageMarketingConfigPlugin.js",moduleID:f.id});return null}};b=a;g["default"]=b}),98);
-----
MarketingMessagesLWITOSModalWrapperMutation.graphql",["MarketingMessagesLWITOSModalWrapperMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"request",variableName:"input"}],concreteType:"XFBMIGMarketingMessagesInAdsManagerTOSMutationResponse",kind:"LinkedField",name:"xfb_mig_marketing_messages_in_am_tos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MarketingMessagesLWITOSModalWrapperMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MarketingMessagesLWITOSModalWrapperMutation",selections:c},params:{id:b("MarketingMessagesLWITOSModalWrapperMutation_facebookRelayOperation"),metadata:{},name:"MarketingMessagesLWITOSModalWrapperMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MarketingMessagesLWITOSModalWrapperMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7752166058168768"}),null);
-----
CometMarketingMessageLwiComposerContext",["emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=(h||d("react")).createContext;b={campaignInfo:{bidAmount:null,duration:null,endDateTime:null,lifetimeBudget:null,startDateTime:null},composerSurface:"BIZ_INBOX",creativeInfo:{buttons:[{buttonText:null,buttonURL:null}],campaignBody:null,campaignHeadline:null,media:{mediaHash:null,mediaType:null,videoID:null}},isMbsConfirmationModalShown:!1,isTosModalShown:!1,pageInfo:{adAccounts:[{id:"",legacyAccountID:"",name:""}],isPaidMmTosSigned:!1,pageID:"",pageName:"",pageProfilePicURI:"",subscriberCount:null}};e=function(a,b){switch(b.type){case"SET_IS_TOS_MODAL_SHOWN":return babelHelpers["extends"]({},a,{isTosModalShown:b.isTosModalShown});case"SET_IS_CONFIRMATION_MODAL_SHOWN":return babelHelpers["extends"]({},a,{isTosModalShown:b.isConfirmationModalShown})}};f=a(b);d=a(c("emptyFunction"));g.CometMarketingMessageLwiComposerInitialState=b;g.CometMarketingMessageLwiComposerReducer=e;g.CometMarketingMessageLwiComposerStateContext=f;g.CometMarketingMessageLwiComposerDispatchContext=d}),98);
-----
LiveProducerMMLWICreationContainerView.react",["CometCardedDialogLegacy.react","FDSDialog.react","LiveProducerMMLWIConsts","LiveProducerMMLWISubscriberInvitation.react","LiveProducerNotifySubscribersConsts","MarketingMessagesLWITOSModalWrapper.react","emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||(h=d("react"))).unstable_useMemoCache,j=h;function a(a){var b=i(13),e=a.composerContent,f=a.composerFooter;a=a.dismissDialog;var g=d("LiveProducerMMLWIConsts").LiveProducerMMLWICurrentStep.SUBSCRIBER_INVITATION;switch(g){case d("LiveProducerMMLWIConsts").LiveProducerMMLWICurrentStep.TERMS:b[0]===Symbol["for"]("react.memo_cache_sentinel")?(g=j.jsx(c("MarketingMessagesLWITOSModalWrapper.react"),{}),b[0]=g):g=b[0];return g;case d("LiveProducerMMLWIConsts").LiveProducerMMLWICurrentStep.CREATION:b[1]===Symbol["for"]("react.memo_cache_sentinel")?(g=j.jsx(j.Fragment,{}),b[1]=g):g=b[1];var h;b[2]!==e?(h=j.jsx(j.Fragment,{children:e}),b[2]=e,b[3]=h):h=b[3];b[4]!==f||b[5]!==h?(e=j.jsx(c("FDSDialog.react"),{footer:f,header:g,children:h}),b[4]=f,b[5]=h,b[6]=e):e=b[6];return e;case d("LiveProducerMMLWIConsts").LiveProducerMMLWICurrentStep.SUMMARY:g=a!=null?a:c("emptyFunction");b[7]===Symbol["for"]("react.memo_cache_sentinel")?(f=j.jsx(j.Fragment,{children:"MM Summary Placeholder"}),b[7]=f):f=b[7];b[8]!==g?(h=j.jsx(c("CometCardedDialogLegacy.react"),{onClose:g,size:"medium",title:"MM LWI",withCloseButton:!0,children:f}),b[8]=g,b[9]=h):h=b[9];return h;case d("LiveProducerMMLWIConsts").LiveProducerMMLWICurrentStep.SUBSCRIBER_INVITATION:e=a!=null?a:c("emptyFunction");b[10]===Symbol["for"]("react.memo_cache_sentinel")?(f=j.jsx(c("LiveProducerMMLWISubscriberInvitation.react"),{}),b[10]=f):f=b[10];b[11]!==e?(g=j.jsx(c("CometCardedDialogLegacy.react"),{onClose:e,size:"medium",title:d("LiveProducerNotifySubscribersConsts").LIVE_PRODUCER_NOTIFY_PEOPLE_LABEL,withCloseButton:!0,children:f}),b[11]=e,b[12]=g):g=b[12];return g}}g["default"]=a}),98);
-----
useCometMarketingMessageLwiComposerContextActions",["CometMarketingMessageLwiComposerContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useContext;function a(){var a=i(d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerDispatchContext);function b(b){a({isTosModalShown:b,type:"SET_IS_TOS_MODAL_SHOWN"})}return{setIsTosModalShown:b}}g["default"]=a}),98);
-----
CometMarketingMessageLwiComposerFullPageView.react",["BizMarketingMessageLWIComposerFramework.react","CometMarketingMessageLwiComposerContext","CometMarketingMessageLwiComposerFullPageView_page.graphql","MarketingMessagesLWITOSModalWrapper.react","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useContext,l=h!==void 0?h:h=b("CometMarketingMessageLwiComposerFullPageView_page.graphql");function a(a){a=a.page;a=d("RelayHooks").useFragment(l,a);a==null?void 0:a.name;a=k(d("CometMarketingMessageLwiComposerContext").CometMarketingMessageLwiComposerStateContext);var b=a.composerSurface,e=a.isTosModalShown;a=a.pageInfo;return j.jsxs(j.Fragment,{children:[e&&b==="BIZ_INBOX"&&j.jsx(c("MarketingMessagesLWITOSModalWrapper.react"),{}),j.jsx(c("BizMarketingMessageLWIComposerFramework.react"),{}),j.jsx("div",{children:String(a==null?void 0:(e=a.adAccounts)==null?void 0:(b=e[0])==null?void 0:b.name)})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardOutcomesSection.react",["fbt","BizKitContextCardDataSharingSection.react","BizKitContextCardNewActivitySection.react","GeoBaseText.react","GeoHeading.react","geoMargin","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var b=a.businessAssets,d=a.className,e=a.consumerID,f=a.contactID,g=a.contactIdentity,j=a.isInKBankRollout,l=a.onActivityListUpdated,m=a.onShowContactCardTosModal,n=a.pageContactID,o=a.pageID,p=a.profileData,q=a.shouldShowContactCardTos;a=a.surface;return k.jsxs("div",{className:d,"data-testid":void 0,children:[k.jsx(c("GeoHeading.react"),{level:3,children:h._("Outcomes")}),k.jsx("div",{className:(i||(i=c("stylex")))(c("geoMargin").top12),children:k.jsx(c("GeoBaseText.react"),{color:"value",display:"block",isDisabled:!0,size:"accent",children:h._("Track key business outcomes and organize your inbox by managing labels and activities.")})}),k.jsx(c("BizKitContextCardDataSharingSection.react"),{consumerID:e,pageID:o,profileData:p,contactID:f,surface:a,contactIdentity:g,isRedesign:!0}),k.jsx(c("BizKitContextCardNewActivitySection.react"),{className:"x178xt8z x13fuv20 xkh9tda xyamay9 xn6708d x1l90r2v x1ye3gou",pageID:o,contactID:n,surface:a,businessAssets:b,contactIdentity:g,onActivityListUpdated:l,isInKBankRollout:j,onShowContactCardTosModal:m,shouldShowContactCardTos:q})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
LiveProducerMMLWIDialog.react",["CometCardedDialogLegacy.react","CometRelay","LiveProducerMMLWICreationContainer.react","LiveProducerMMLWIDialogQuery.graphql","LiveProducerMMLWIEnums","MarketingMessagesLWITOSModalWrapper.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("LiveProducerMMLWIDialogQuery.graphql");function a(a){var b=a.props.onClose;a=a.queries;a=d("CometRelay").usePreloadedQuery(k,a.queryRef);var e=a.page;e=e==null?void 0:(e=e.recurring_messages_info)==null?void 0:e.topic_pairs;e==null?void 0:(e=e.at(0))==null?void 0:e.opt_in_count;(e=a.video)==null?void 0:e.broadcast_status;(e=a.lwi)==null?void 0:(e=e.ad_accounts)==null?void 0:e.count;e=a==null?void 0:a.lwi;a=!1;a=a?d("LiveProducerMMLWIEnums").LiveProducerMMLWICurrentStep.CREATION:d("LiveProducerMMLWIEnums").LiveProducerMMLWICurrentStep.TERMS;var f=function(){b()};switch(a){case d("LiveProducerMMLWIEnums").LiveProducerMMLWICurrentStep.TERMS:return j.jsx(c("MarketingMessagesLWITOSModalWrapper.react"),{});case d("LiveProducerMMLWIEnums").LiveProducerMMLWICurrentStep.CREATION:return j.jsx(c("LiveProducerMMLWICreationContainer.react"),{adAccounts:e});case d("LiveProducerMMLWIEnums").LiveProducerMMLWICurrentStep.SUMMARY:return j.jsx(c("CometCardedDialogLegacy.react"),{onClose:f,size:"medium",title:"MM LWI",withCloseButton:!0,children:j.jsx(j.Fragment,{children:"MM Summary Placeholder"})})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MarketingMessagesLWITOSModalWrapper.react",["fbt","CometDialog.react","FDSDialogFooter.react","FDSDialogHeader.react","MarketingMessagesLWIEnums","MarketingMessagesLWITOSGeoModal.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(){var a=d("MarketingMessagesLWIEnums").MMLWIViewerSurface.LIVE_SELLING;switch(a){case d("MarketingMessagesLWIEnums").MMLWIViewerSurface.LIVE_SELLING:return j.jsx(c("CometDialog.react"),{footer:j.jsx(c("FDSDialogFooter.react"),{primary:{label:"Get Started"}}),header:j.jsx(c("FDSDialogHeader.react"),{text:h._("Live Selling TOS Modal")})});case d("MarketingMessagesLWIEnums").MMLWIViewerSurface.BIZ_INBOX:return j.jsx(c("MarketingMessagesLWITOSGeoModal.react"),{})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MessageMarketingMBSInboxToSModalMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{alias:null,args:[{kind:"Variable",name:"request",variableName:"input"}],concreteType:"XFBWhatsAppMarketingMessagesMBSInboxReToSResponse",kind:"LinkedField",name:"xfb_whatsapp_mm_mbs_inbox_re_tos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MessageMarketingMBSInboxToSModalMutation",selections:b,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MessageMarketingMBSInboxToSModalMutation",selections:b},params:{id:"8021837341163768",metadata:{},name:"MessageMarketingMBSInboxToSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MessageMarketingMBSInboxToSModal",["fbt","GeoButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","MessageMarketingLandingPageConsts","MessageMarketingMBSInboxToSModalAction","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){a=a.isModalShown;var b=function(){c("MessageMarketingMBSInboxToSModalAction").dispatch({isModalShown:!1},{line:"37",module:"MessageMarketingMBSInboxToSModal.js",moduleID:f.id})};return j.jsx(c("GeoModal.react"),{footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{label:h._("u63a5u53d7"),variant:"primary",onClick:b}),secondaryButton:j.jsx(c("GeoButton.react"),{label:h._("u53d6u6d88"),variant:"default",onClick:b})}),header:j.jsx(c("GeoModalHeader.react"),{heading:h._("Meta Business Suite u6536u4ef6u7bb1u4e0e WhatsApp u96c6u6210u6761u6b3e")}),isShown:a,onHide:b,children:j.jsx(c("GeoSection.react"),{children:j.jsx(c("GeoText.react"),{children:h._("u9009u62e9{=m1}uff0cu5373u8868u793au4f60u540cu610f{=m3}uff0cu4e5fu540cu610fu6839u636eu8fd9u4e9bu6761u6b3eu548c{=m5}u5728u6536u4ef6u7bb1u4e2du4f7fu7528 WhatsAppu3002",[h._implicitParam("=m1",j.jsx("strong",{children:h._("u63a5u53d7")})),h._implicitParam("=m3",j.jsx(c("GeoLink.react"),{href:d("MessageMarketingLandingPageConsts").MBS_INBOX_TERMS_URL,children:h._("Meta Business Suite u6536u4ef6u7bb1u4e0e WhatsApp u96c6u6210u6761u6b3e")})),h._implicitParam("=m5",j.jsx(c("GeoLink.react"),{href:d("MessageMarketingLandingPageConsts").ADS_MANAGER_MARKETING_MESSAGES_TERMS_URL,children:h._("u5e7fu544au7ba1u7406u5de5u5177u7684u8425u9500u6d88u606f Beta u6d4bu8bd5u6761u6b3e")}))])})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MessageMarketingMBSInboxToSModalAction",["Laminar","MessageMarketingMBSInboxToSModalProvider","MessageMarketingMBSInboxToSModalReducerPlugin"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("MessageMarketingMBSInboxToSModalReducerPlugin"),b("MessageMarketingMBSInboxToSModalProvider"),{},"")]},function(){return[]},"MessageMarketingMBSInboxToSModalActionPlugin");e.exports=a}),null);
-----
MessageMarketingMBSInboxToSModalProvider",["Laminar","MessageMarketingMBSInboxToSModalProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("MessageMarketingMBSInboxToSModalProviderPlugin"),"MessageMarketingMBSInboxToSModalProviderPlugin")}),null);
-----
MessageMarketingMBSInboxToSModalReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return{isModalShown:b.isModalShown}}};b=a;f["default"]=b}),66);
-----
MessageMarketingMBSInboxToSModalProviderPlugin",[],(function(a,b,c,d,e,f){"use strict";a={initialState:{isModalShown:!1}};b=a;f["default"]=b}),66);
-----
MessageMarketingMBSInboxToSModalContainer.react",["AdsAccountStore","AdsFluxHooks","MessageMarketingMBSInboxToSModal","MessageMarketingMBSInboxToSModalProvider","adsCreateStructuredSelector","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("adsCreateStructuredSelector")({isModalShown:c("MessageMarketingMBSInboxToSModalProvider").toFluxSelector(),businessID:c("AdsAccountStore").getSelectedBusinessID},f.id+".containerSelector");function a(){var a=d("AdsFluxHooks").useAdsSelector(j),b=a.isModalShown;a=a.businessID;return a==null?null:i.jsx(c("MessageMarketingMBSInboxToSModal"),{isModalShown:b.isModalShown})}a.displayName=a.name+" [from "+f.id+"]";b=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=b}),98);
-----
OCDevCenterTOSModal_organization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterTOSModal_organization",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{args:null,kind:"FragmentSpread",name:"OCDevManagePermissionFormSubmitButton_organization"}],type:"Organization",abstractKey:null};e.exports=a}),null);
-----
CommerceManagerContextUtils",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a.loadDeferredPayoutOnboardingFlow===!0||a.loadFedInformWizard===!0||a.loadFedInformWizardIndividualFlow===!0||a.loadIDVFlow===!0||a.loadOBBOFlow===!0||a.loadKYCFlow===!0||a.shouldShowCompletePayoutsModal===!0||a.shouldShowLinkedAssetOptOutModal===!0||a.shouldShowMergeShopsOptOutModal===!0||a.shouldShowOneCatalogMigrationModal===!0||a.showTOSModal===!0||a.showOnLoadModal!=null}f.isForceLoadingModal=a}),66);
-----
BizKitContextCardOrdersSection3DWrapper.react",["BizKitContextCardOrdersSection.react","BizKitContextCardOrdersSection3DWrapper_orders.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BizKitContextCardOrdersSection3DWrapper_orders.graphql");function a(a){var b=a.className,e=a.pageID,f=a.section_3d,g=a.onShowContactCardTosModal,h=a.shouldShowContactCardTos,i=a.surface;a=a.readOnly;f=d("RelayHooks").useFragment(k,f);return j.jsx(c("BizKitContextCardOrdersSection.react"),{className:b,pageID:e,orders:f==null?void 0:f.biz_crm_contact,readOnly:a,surface:i,onShowContactCardTosModal:g,shouldShowContactCardTos:h})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometMarketingMessagesTOSModal.react",["BizMarketingMessagesOnboardingFbtUtils","BizMarketingMessagesOnboardingUtils","BizMarketingMessagingPageOnboardingMutation","BizMessageMarketingOnboardingConst","BizMessageMarketingOnboardingFbtUtils","BusinessCometMarketingMessagesOnboardingModalValuePropItem.react","GeoBaseText.react","GeoBlockingDialog.react","GeoButton.react","GeoFlexbox.react","GeoModalFooter.react","GeoScrollableArea.react","GeoToast.react","IPB4BImage.react","XBizSuiteControllerRouteBuilder","geoMargin","nullthrows","react","useBizKitPageNullable","useBizMarketingMessagesOnboardingLogging","useBizMarketingMountOnce","useBizWebGetRouteParams","useBizWebRouteDispatcher","useBoolean","useGeoToaster"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={root:{height:"x5yr21d",$$css:!0}},k="re_tos_modal",l="sign_tos";function a(){var a=c("useBizWebRouteDispatcher")(),b=c("useBizWebGetRouteParams")(),e=c("nullthrows")(c("useBizKitPageNullable")(),"pageID is null"),f=c("XBizSuiteControllerRouteBuilder").buildURL({nav_ref:"internal_nav",rest:"home"}),g=c("useBoolean")(!1),h=g.setFalse,m=g.setTrue;g=g.value;var n=c("useBoolean")(!1),o=n.setFalse,p=n.setTrue;n=n.value;var q=d("BizMarketingMessagingPageOnboardingMutation").useBizMarketingMessagingPageOnboardingMutation(),r=q[0];q=q[1];var s=c("useBizMarketingMessagesOnboardingLogging")({pageID:c("nullthrows")(e)}),t=s.logClick,u=s.logFailure,v=s.logImpression,w=s.logSubmit,x=s.logSuccess;s=d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalValueProps(!1);s=s.map(function(a,b){return i.jsx(c("BusinessCometMarketingMessagesOnboardingModalValuePropItem.react"),babelHelpers["extends"]({},a),b)});var y=i.jsx(c("IPB4BImage.react"),{src:d("BizMessageMarketingOnboardingConst").ONBOARDING_MODAL_IMAGE_SRC,width:d("BizMessageMarketingOnboardingConst").ONBOARDING_MODAL_IMAGE_WIDTH}),z=c("useGeoToaster")(),A=z.add,B=function(){a(f,b)};z=function(){t(k,"accept"),w(k,l),r({onCompleted:function(a){x(k,l)},onError:function(a){u(k,l,a==null?void 0:a.message,a==null?void 0:a.stack),A(i.jsx(c("GeoToast.react"),{heading:d("BizMarketingMessagesOnboardingFbtUtils").ONBOARDING_GENERAL_MUTATION_ERROR,status:"error"}))},variables:{input:{onboarding_step:"SIGN_TOS",page_id:e}}})};var C=function(){t(k,"cancel"),B()},D=function(){t(k,"full_terms"),p(),h()},E=function(){t(k,"previous"),o()};c("useBizMarketingMountOnce")(function(){v(k)});return i.jsx(c("GeoBlockingDialog.react"),{"data-testid":void 0,footer:i.jsx(c("GeoModalFooter.react"),{primaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:q||!g,isLoading:q,label:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalAgreeButtonLabel(),onClick:z,variant:"primary"}),secondaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:q,label:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalNotNowButtonLabel(),onClick:C,variant:"default"}),startContent:n?i.jsx(c("GeoButton.react"),{"data-testid":void 0,icon:d("BizMarketingMessagesOnboardingUtils").getFBIconByName("chevron-left"),isDisabled:q,label:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalPreviousButtonLabel(),onClick:E,variant:"default"}):null}),heading:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalHeader(n),image:y,isShown:!0,onHide:B,orientation:"vertical",children:i.jsx(c("GeoScrollableArea.react"),{direction:"vertical",onScrollBottom:m,xstyle:j.root,children:n?i.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").horiz16,children:i.jsx(c("GeoBaseText.react"),{color:"value","data-testid":void 0,size:"accent",children:d("BizMessageMarketingOnboardingFbtUtils").getTOSLegalContentV2()})}):i.jsxs(c("GeoFlexbox.react"),{direction:"column",justifyContent:"space-between",xstyle:j.root,children:[i.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").horiz16,children:[i.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",children:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalDescription(D)}),s]}),i.jsx(c("GeoFlexbox.react"),{xstyle:c("geoMargin").horiz16,children:i.jsx(c("GeoBaseText.react"),{color:"value","data-testid":void 0,size:"accent",children:d("BizMessageMarketingOnboardingFbtUtils").getOnboardingModalLegalContent()})})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LeadsManagerOptimized.react",["CometPlaceholder.react","ErrorBoundary.react","GeoButton.react","GeoModalFooter.react","GeoSpinner.react","JSResource","LeadsCenterAYMTTipContextProvider","LeadsCenterAYMTTipContextUpdater.react","LeadsCenterQPLLogger","LeadsCenterSurfaceEnterFlowFalcoEvent","LeadsManagerConstants","LeadsManagerContext","LeadsManagerLogVisitTimeMutation","LeadsManagerMainView.react","LeadsManagerModalFallback.react","LeadsManagerOptimized_fragment.graphql","LeadsManagerReducer","LeadsManagerViewContext","LeadsManagerViewReducer","RelayHooks","deferredLoadComponent","lazyLoadComponent","nullthrows","react","requireDeferredForDisplay"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useEffect,l=e.useReducer,m=c("deferredLoadComponent")(c("requireDeferredForDisplay")("LeadsManagerAudienceExpansionToast.react").__setRef("LeadsManagerOptimized.react")),n=c("lazyLoadComponent")(c("JSResource")("LeadsManagerAudienceCenterModalContainer.react").__setRef("LeadsManagerOptimized.react")),o=c("lazyLoadComponent")(c("JSResource")("LeadsManagerCSVImportSection.react").__setRef("LeadsManagerOptimized.react")),p=c("lazyLoadComponent")(c("JSResource")("LeadsManagerSettingsView.react").__setRef("LeadsManagerOptimized.react")),q=c("lazyLoadComponent")(c("JSResource")("LeadsManagerToSDialog.react").__setRef("LeadsManagerOptimized.react")),r=function(a,b,d,e,f,g,h,i,k,l){if(e){return j.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerSettingsViewLazy",fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:j.jsx("div",{className:"xvkph5b x5yr21d x10l6tqk x1nrll8i xwa60dl x11lhmoz",children:j.jsx(c("ErrorBoundary.react"),{children:j.jsx(p,{pageID:b,pageName:d,config:c("nullthrows")((e=i.page)==null?void 0:e.business_presence_node)})})})})}else if(f){f=((d=i.page)==null?void 0:(e=d.is_passing_gk_csv_validator)==null?void 0:e.passes_gk)||!1;return j.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerCSVImportSectionLazy",fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:j.jsx("div",{className:"xvkph5b x5yr21d x10l6tqk x1nrll8i xwa60dl x11lhmoz",children:j.jsx(c("ErrorBoundary.react"),{children:j.jsx(o,{leadsCSVTemplate:h,pageID:b,shouldShowCSVDebugger:f})})})})}else if(g)return j.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerAudienceCenterModalContainerLazy",fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:j.jsx("div",{className:"x14vqqas x5yr21d x10l6tqk x1nrll8i xwa60dl x11lhmoz",children:j.jsx(c("ErrorBoundary.react"),{children:j.jsx(n,{pageID:b,lwi:c("nullthrows")(i.lwi)})})})});return j.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerMainView",fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:j.jsx(c("LeadsManagerMainView.react"),{isComet:a,tableQueryReference:k,pipelineViewQueryReference:l,pageID:b,queryRef:i})})},s=h!==void 0?h:h=b("LeadsManagerOptimized_fragment.graphql");function a(a){var b=l(d("LeadsManagerReducer").reducer,d("LeadsManagerReducer").getInitialState({canSeeLeadOwnerInvitation:a.canSeeLeadOwnerInvitation,canSeeStageManagement:a.canSeeStageManagement,canUseSettings:a.canUseSettings,isComet:a.isComet,isToSAccepted:a.isToSAccepted,isBackFillJobsRunning:a.isBackFillJobsRunning,isInBizKit:a.isInBizKit,unreadQuery:a.isUnread,showLeadsCenterOnboardingTourTip:!1,defaultLeadID:"",isPageInLeadsCenterPipelineViewTest:a.isPageInLeadsCenterPipelineViewTest,firstAdsLeadOpportunityID:"",firstDirectOrMessengerLeadOpportunityID:"",openLeadsCenterDetailView:!1,shouldShowLeadsCenterMVPWelcomeModal:!0,sampleLeadId:"",shouldShowFastFollowupMVP:a.shouldShowFastFollowupMVP,shouldShowLeadsUpsellTipAndPreToSPage:!1,shouldShowLeadsPrioritizationStatus:a.shouldShowLeadsPrioritizationStatus,newLeadsCountSinceLastVisit:a.newLeadsCountSinceLastVisit,shouldShowPipelineTour:a.isPageInLeadsCenterPipelineViewTest&&a.pipelineTourImpressionCount===0,shouldShowFormAndAdFormatChanges:a.shouldShowFormAndAdFormatChanges,shouldShowLookalikeAudienceCreationImprovement:a.shouldShowLookalikeAudienceCreationImprovement,shouldShowResponsivePipelineView:a.shouldShowResponsivePipelineView,shouldShowPipelineViewImprovements:a.shouldShowPipelineViewImprovements,adQuery:a.adQuery})),e=b[0];b=b[1];var f=e.showAudienceExpansionToast,g=e.showSavedAudienceModal,h=d("RelayHooks").useFragment(s,a.queryRef),i=l(d("LeadsManagerViewReducer").viewReducer,d("LeadsManagerViewReducer").getInitialViewState({isToSAccepted:!0})),n=i[0],o=i[1];i=n.settingsViewShown;var p=n.showCSVImportSection,t=n.isShowingToS,u=a.pageID,v=a.pageName,w=a.leadsCSVTemplate,x=a.tableQueryReference,y=a.pipelineViewQueryReference,z=d("RelayHooks").useRelayEnvironment();v=r(a.isComet,u,v,i,p,g,w,h,x,y);d("LeadsCenterQPLLogger").componentLoadTimeStart(a.isPageInLeadsCenterPipelineViewTest,a.isToSAccepted,a.isComet,!0);k(function(){d("LeadsManagerLogVisitTimeMutation").commit(z,{asset_id:u,is_bizapp:!1},{}),c("LeadsCenterSurfaceEnterFlowFalcoEvent").log(function(){return{page_id:u,event_location:"leads_center",client_timestamp_ms:Date.now(),event_data:{}}})},[z,u]);return j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:j.jsx("div",{"data-testid":void 0,children:j.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:z,children:j.jsxs(c("LeadsCenterAYMTTipContextProvider"),{children:[j.jsx(c("LeadsManagerContext").Provider,{value:{dispatch:b,state:e},children:j.jsxs(c("LeadsManagerViewContext").Provider,{value:{dispatchForView:o,stateForView:n},children:[j.jsx(c("ErrorBoundary.react"),{children:t&&j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("LeadsManagerModalFallback.react"),{header:d("LeadsManagerConstants").LEADS_MANAGER_TOS_DIALOG_TITLE,footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{isLoading:!0,isDisabled:!0,label:d("LeadsManagerConstants").LEADS_MANAGER_TOS_DIALOG_BUTTON})}),isVisible:t,onHide:function(){o({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!1})}}),children:j.jsx(q,{pageID:u,leadCount:((i=h.page)==null?void 0:i.lead_gen_backfill_count)||0})})}),v,f&&j.jsx(c("CometPlaceholder.react"),{name:"LeadsManagerAudienceExpansionToastLazy",fallback:null,children:j.jsx(m,{})})]})}),u!=null?j.jsx(c("ErrorBoundary.react"),{children:j.jsx(c("CometPlaceholder.react"),{name:"LeadsCenterAYMTTipContextUpdater",fallback:null,children:j.jsx(c("LeadsCenterAYMTTipContextUpdater.react"),{pageID:u})})}):null]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MessageMarketingBetaToSDialog",["fbt","GeoButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoNotice.react","GeoSection.react","GeoText.react","MessageMarketingBetaToSDialogMutation.graphql","MessageMarketingBetaToSModalAction","RelayHooks","ReloadPage","WhatsAppAdsManagerOnboardingWelcomeStepMessages","WhatsAppBizxPlatformWWWLoggerUtils","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState,m=i!==void 0?i:i=b("MessageMarketingBetaToSDialogMutation.graphql");function a(a){var b=a.businessID;a=a.isDialogShown;var e=l(!1),g=e[0],i=e[1];e=l(!1);var j=e[0],n=e[1];e=d("RelayHooks").useMutation(m);var o=e[0],p=d("WhatsAppBizxPlatformWWWLoggerUtils").getSessionLoggingID("MessageMarketingToS"),q=function(){c("MessageMarketingBetaToSModalAction").dispatch({isModalShown:!1},{line:"51",module:"MessageMarketingBetaToSDialog.js",moduleID:f.id})};e=function(){i(!0),n(!1),o({variables:{input:{log_session_id:p,business_id:b}},onCompleted:function(a){i(!1),q(),d("ReloadPage").now()},onError:function(){i(!1),n(!0)}})};return k.jsx(c("GeoModal.react"),{"data-testid":void 0,footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{isLoading:g,label:h._("u540cu610f"),variant:"primary",onClick:e}),secondaryButton:k.jsx(c("GeoButton.react"),{isDisabled:g,label:h._("u53d6u6d88"),onClick:q})}),header:k.jsx(c("GeoModalHeader.react"),{heading:h._("u8425u9500u6d88u606fu9002u7528u7684u65b0u7248u670du52a1u6761u6b3e")}),isShown:a,onHide:q,children:k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("GeoText.react"),{children:h._("u7ee7u7eedu5373u8868u793au4f60u5df2u7ecfu9605u8bfbu5e76u540cu610f{=m1}u3002",[h._implicitParam("=m1",k.jsx(c("GeoLink.react"),{href:"https://www.facebook.com/legal/ads-manager-marketing-messages-terms",target:"_blank",children:h._("u8425u9500u6d88u606fu9002u7528u7684u65b0u7248u670du52a1u6761u6b3e")}))])}),j?k.jsx(c("GeoNotice.react"),{status:"error",children:d("WhatsAppAdsManagerOnboardingWelcomeStepMessages").TOS_ERROR}):null]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MessageMarketingBetaToSDialogContainer.react",["AdsAccountStore","AdsFluxHooks","MessageMarketingBetaToSDialog","MessageMarketingBetaToSModalProvider","adsCreateStructuredSelector","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("adsCreateStructuredSelector")({isModalShown:c("MessageMarketingBetaToSModalProvider").toFluxSelector(),businessID:c("AdsAccountStore").getSelectedBusinessID},f.id+".containerSelector");function a(){var a=d("AdsFluxHooks").useAdsSelector(j),b=a.isModalShown;a=a.businessID;return a==null?null:i.jsx(c("MessageMarketingBetaToSDialog"),{businessID:a,isDialogShown:b.isModalShown})}a.displayName=a.name+" [from "+f.id+"]";b=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=b}),98);
-----
MessageMarketingBetaToSDialogOpen",["MessageMarketingBetaToSModalAction"],(function(a,b,c,d,e,f,g){"use strict";function a(){c("MessageMarketingBetaToSModalAction").dispatch({isModalShown:!0},{line:"16",module:"MessageMarketingBetaToSDialogOpen.js",moduleID:f.id})}g["default"]=a}),98);
-----
MessageMarketingBetaToSModalAction",["Laminar","MessageMarketingBetaToSModalProvider","MessageMarketingBetaToSModalReducerPlugin"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("MessageMarketingBetaToSModalReducerPlugin"),b("MessageMarketingBetaToSModalProvider"),{},"")]},function(){return[]},"MessageMarketingBetaToSModalActionPlugin");e.exports=a}),null);
-----
MessageMarketingBetaToSModalProvider",["Laminar","MessageMarketingBetaToSModalProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("MessageMarketingBetaToSModalProviderPlugin"),"MessageMarketingBetaToSModalProviderPlugin")}),null);
-----
MessageMarketingBetaToSModalReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return{isModalShown:b.isModalShown}}};b=a;f["default"]=b}),66);
-----
MessageMarketingBetaToSModalProviderPlugin",[],(function(a,b,c,d,e,f){"use strict";a={initialState:{isModalShown:!1}};b=a;f["default"]=b}),66);
-----
BizKitContextCardNewActivitySection.react",["fbt","BizCRMContactCardRenderSurface","BizInboxCreateLeadMutation","BizInboxFbtUtils","BizInboxStateContext","BizKitContextCardActivityListSection.react","BizKitContextCardNewActivitySectionQuery.graphql","GeoButton.react","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoToast.react","LeadOpportunityStageUpdateMutation","LeadsManagerConstants","LeadsManagerStageSelector.react","LeftRight.react","RelayHooks","ThreadOrderStatusDropdownSection.react","XBizSuiteControllerRouteBuilder","bizInboxStateHideContactCardReducer","geoMargin","react","stylex","useBizInboxStateReducers","useBizWebGetRouteParams","useBizWebRouteDispatcher","useGeoToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.startTransition,l=e.useCallback,m=e.useContext,n=e.useState,o=i!==void 0?i:i=b("BizKitContextCardNewActivitySectionQuery.graphql");function a(a){var b,e=a.surface,f=a.pageID,g=a.contactID,i=a.businessAssets,p=a.contactIdentity,q=a.onActivityListUpdated,r=a.isInKBankRollout,s=a.onShowContactCardTosModal,t=a.shouldShowContactCardTos,u=m(c("BizInboxStateContext"));u=u.hasPageSignedLcTos;var v=n({fetchPolicy:"network-only"}),w=v[0],x=v[1];v=n(null);var y=v[0];v[1];v=n(null);v[0];var z=v[1];v=function(a){z(a),q(a)};var A="MESSENGER",B="MSGR_INBOX_ORGANIC";switch(e){case c("BizCRMContactCardRenderSurface").INBOX_MESSAGING_IG:case c("BizCRMContactCardRenderSurface").INBOX_POST_COMMENT_IG:case c("BizCRMContactCardRenderSurface").INTERACTIONS_IG_COMMENT:case c("BizCRMContactCardRenderSurface").POST_COMMENT_IG:A="IG";B="IG_INBOX_ORGANIC";break;default:}var C=c("useBizWebRouteDispatcher")(),D=c("useBizWebGetRouteParams")(),E=D.asset_id,F=c("XBizSuiteControllerRouteBuilder").buildURL({rest:"leads_center"});D=function(){var a={asset_id:E};C(F,a)};var G=p.contact_id;w=d("RelayHooks").useLazyLoadQuery(o,{pageID:f,consumerID:G,contactID:g,surface:e,assetType:A,businessAssets:i,identity:p},w);var H=c("useBizInboxStateReducers")([c("bizInboxStateHideContactCardReducer")]),I=c("useGeoToaster")(),J=I.add,K=d("RelayHooks").useRelayEnvironment();I=(I=w.biz_inbox_lead_stage_query)==null?void 0:I.lead_opportunity;var L=I==null?void 0:I.id,M=function(){if(L==null)return;var a={asset_id:E,lead_id:L};C(F,a)},N=l(function(){k(function(){x(function(a){return{fetchKey:((a=a==null?void 0:a.fetchKey)!=null?a:0)+1,fetchPolicy:"network-only"}})})},[]);I=function(){d("BizInboxCreateLeadMutation").commit(K,f,g,B,A,{onSuccess:function(){H({type:"has_organic_lead.update"}),N(),J(j.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getAddLeadSuccessToast(),status:"success"}))},onFailure:function(){J(j.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getAddLeadFailureToast(),status:"error"}))}},i)};var O=function(a){if(a==null||L==null)return;d("LeadOpportunityStageUpdateMutation").commit(K,{lead_opportunity_id:L,stage:a,event_location:"business_inbox"},{onSuccess:function(){N(),J(j.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getMoveLeadStageSuccessToast(),status:"success"}))},onFailure:function(){J(j.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getMoveLeadStageFailureToast(),status:"error"}))}})};D=j.jsx(c("GeoButton.react"),{label:d("BizInboxFbtUtils").getGoToLeadsCenterLabel(),onClick:D,variant:"primary"});I=j.jsx(c("GeoButton.react"),{label:d("BizInboxFbtUtils").getContactCardAddLeadLabel(),onClick:I,variant:"primary"});b=j.jsx(c("LeadsManagerStageSelector.react"),{allowNoSelection:!1,isDisabled:!1,stages:(b=w.page)==null?void 0:b.page_opportunity_stages,selectedValue:(b=w.biz_inbox_lead_stage_query)==null?void 0:(b=b.lead_stage)==null?void 0:b.id,width:160,onChange:O});u=j.jsxs("div",{className:"xyamay9 x4uap5 x18d9i69 xkhd6sd",children:[j.jsxs(c("LeftRight.react"),{children:[j.jsx(c("GeoHeading.react"),{level:4,children:d("LeadsManagerConstants").LEAD_STAGE_LABEL}),j.jsx(c("GeoLink.react"),{onClick:function(){M()},children:d("LeadsManagerConstants").VIEW_IN_LEADS_CENTER_TEXT})]}),j.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top8,children:u?((O=w.biz_inbox_lead_stage_query)==null?void 0:O.lead_stage)===null?I:b:D})]});I=j.jsx(c("ThreadOrderStatusDropdownSection.react"),{pageID:f,consumerID:G,orderStatus:(O=w.page)==null?void 0:O.thread_action_system_order_status,environment:K,refresh:N});return j.jsx("div",{className:a.className,children:j.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").top4,children:[j.jsx(c("GeoHeading.react"),{level:3,children:h._("u52a8u6001")}),u,I,j.jsx("div",{className:c("stylex")(c("geoMargin").top8),children:j.jsx(c("BizKitContextCardActivityListSection.react"),{activity:w.retrieve_biz_crm_contact,page:y==null?void 0:y.page.listItemRef,mbsBusinessAssets:y==null?void 0:y.xfb_mbs_business_assets.listItemRef,pageID:f,userID:G,surface:e,pageContactID:g,onActivityListUpdated:v,isInKBankRollout:r,onShowContactCardTosModal:s,shouldShowContactCardTos:t,contactIdentity:p})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
ARHubTos.react",["ARHubModalLogger","ARHubModalLoggerType","ARHubTosModal.react","asyncToGeneratorRuntime","react","useARHubEffectDismissMessage","useARHubUserHasDismissedMessage"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useCallback,j=e.useEffect,k=e.useState;function a(){var a=k(!1),e=a[0],f=a[1];a=c("useARHubEffectDismissMessage")();var g=a[0];a[1];a="https://fb.me/MetaSparkTerms";var l="https://fb.me/MetaSparkStudioTerms",m="hamlet_tos_modal",n=c("useARHubUserHasDismissedMessage")({dismissableCardtype:m,paramList:[]}),o=i(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield g({cardType:m,params:[]}),d("ARHubModalLogger").acceptTermsOfService(),f(!0)}),[g,m]),p=function(){d("ARHubModalLogger").clickedLearnMore(),window.open("https://fb.me/MetaSparkTerms","_blank")};j(function(){if(n)return;!e?d("ARHubModalLogger").start(c("ARHubModalLoggerType").TOS_MODAL):d("ARHubModalLogger").endSuccess()},[n,e]);return h.jsx(c("ARHubTosModal.react"),{isShown:!(e||n),onAccept:o,onLearnMore:p,tosLink:a,tosStudioLink:l})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
ARHubTosModal.react",["fbt","ix","ARHubModalLogger","GeoBlockingDialog.react","GeoButton.react","GeoHeading.react","GeoLink.react","GeoModalFooter.react","GeoSection.react","GeoText.react","IPB4BImage.react","geoMargin","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k={list:{listStyleType:"xtaz4m5",paddingTop:"x1p5oq8j",paddingEnd:"xxbr6pl",paddingBottom:"xwxc41k",paddingStart:"xbbxn1n",$$css:!0},modalBody:{paddingTop:"xyamay9",paddingEnd:"x4uap5",paddingBottom:"xwxc41k",paddingStart:"xkhd6sd",$$css:!0},container:{minWidth:"xppr10f",$$css:!0}};function a(a){var b=a.isShown,e=a.tosLink,f=a.tosStudioLink,g=a.onAccept;a=a.onLearnMore;return j.jsx(c("GeoBlockingDialog.react"),{"data-testid":void 0,footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{label:h._("u540cu610f"),onClick:g,variant:"primary"}),secondaryButton:j.jsx(c("GeoButton.react"),{label:h._("u4e86u89e3u66f4u591a"),onClick:a})}),heading:h._("u6211u4eecu5df2u66f4u65b0 Meta Spark u6761u6b3eu548c Meta Spark Studio u6761u6b3e"),image:j.jsx(c("IPB4BImage.react"),{src:i("382231"),width:600}),imageSize:"auto",isShown:b,onHide:function(){},xstyle:k.container,children:j.jsx("div",{className:"xyamay9 x4uap5 xwxc41k xkhd6sd",children:j.jsxs(c("GeoSection.react"),{children:[j.jsx(c("GeoHeading.react"),{level:3,xstyle:c("geoMargin").bottom24,children:h._("u6211u4eecu5df2u66f4u65b0 Meta Spark u6761u6b3eu548c Meta Spark Studio u6761u6b3e")}),j.jsx(c("GeoText.react"),{children:"The changes include:"}),j.jsxs("ul",{className:"xtaz4m5 x1p5oq8j xxbr6pl xwxc41k xbbxn1n",children:[j.jsx("li",{children:j.jsx(c("GeoText.react"),{children:h._("u4f60u73b0u5728u9700u8981u521bu5efa Meta u5e10u6237u624du80fdu4f7fu7528 Meta Sparku3002")})}),j.jsx("li",{children:j.jsx(c("GeoText.react"),{children:h._("u5411 Meta u63d0u51fau7684 Meta Spark u76f8u5173u5f02u8baeu5fc5u987bu6839u636eu7f8eu56fdu4ef2u88c1u534fu4f1au7684u6d88u8d39u8005u4ef2u88c1u89c4u5219u7ecfu7531u5177u7ea6u675fu529bu7684u5355u72ecu4ef2u88c1u89e3u51b3uff0cu5e76u9075u5faau7279u5b9au4f8bu5916u60c5u51b5u3002")})}),j.jsx("li",{children:j.jsx(c("GeoText.react"),{children:h._("u4e3au4f7fu6761u6b3eu66f4u6e05u695au660eu4e86uff0cu6211u4eecu8fdbu884cu4e86u4e00u4e9bu4feeu6539u3002u4f8bu5982uff0cu6211u4eecu660eu786eu89c4u5b9auff1au4f60u63a5u6536u6216u6536u96c6u7684u4e0eu4f60u7279u6548u5185u5bb9u76f8u5173u7684u4efbu4f55u4fe1u606fuff08u6839u636e Meta Spark u6761u6b3eu4e2du7684u5b9au4e49uff09u5747u89c6u4e3au5c5eu4e8e Meta u5f00u653eu5e73u53f0u6761u6b3eu6240u8ff0u7528u9014u7684u201cu5f00u653eu5e73u53f0u6570u636eu201duff0cu6211u4eecu8fd8u8fdbu4e00u6b65u8be6u8ff0u4e86u4f60u5bf9u8fd9u4e9bu4fe1u606fu627fu62c5u7684u76f8u5e94u4e49u52a1u3002")})})]}),j.jsx(c("GeoText.react"),{children:h._("By continuing to use Meta Spark, you agree to the updated {=m1} and {=m3}",[h._implicitParam("=m1",j.jsx(c("GeoLink.react"),{href:e,onClick:function(){d("ARHubModalLogger").clickedLinkTos()},target:"_blank",children:h._("Meta Spark Terms")})),h._implicitParam("=m3",j.jsx(c("GeoLink.react"),{href:f,onClick:function(){d("ARHubModalLogger").clickedLinkTosStudio()},target:"_blank",children:h._("Meta Spark Studio Terms")}))])})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LeadsManagerTablePreToSAcceptState.react",["fbt","ix","GeoBaseText.react","GeoButton.react","GeoCard.react","GeoLink.react","GeoSpinner.react","GeoText.react","Image.react","LeadsCenterTosSubmitFlowFalcoEvent","LeadsManagerAcceptToSMutation","LeadsManagerConstants","LeadsManagerContext","LeadsManagerViewContext","RelayHooks","geoMargin","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");b=d("react");var k=b.useContext,l=b.useState;function a(a){var b=k(c("LeadsManagerContext")),e=b.dispatch;b=l(!1);var f=b[0],g=b[1],i=d("RelayHooks").useRelayEnvironment();b=k(c("LeadsManagerViewContext"));var o=b.dispatchForView;if(f)return j.jsx(c("GeoSpinner.react"),{});b=j.jsxs("div",{children:[j.jsx(c("GeoText.react"),{children:h._("Leads and other tools that process contact or messaging data are subject to the")})," ",j.jsx(c("GeoLink.react"),{onClick:function(){o({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})},children:h._("Leads Center Terms of Service")}),"."]});f=h._("By selecting to {=m1}, you agree to these Terms.",[h._implicitParam("=m1",j.jsx("b",{children:h._("Continue")}))]);var p=m();return j.jsx(c("GeoCard.react"),{children:j.jsxs("div",{className:"x78zum5 x1q0g3np",children:[j.jsx("div",{className:"x6s0dn4 x78zum5 xt7dq6l xl56j7k x3hqpx7",children:j.jsxs("div",{className:"xc26acl x7a106z x78zum5 xdt5ytf x65xoit",children:[j.jsx(c("GeoBaseText.react"),{color:"heading",size:"header2",xstyle:c("geoMargin").top12,children:d("LeadsManagerConstants").PRE_TOS_ACCEPT_VIEW_HEADER}),p.map(function(a){return j.jsx("div",{className:"x1i64zmx x1xmf6yo",children:j.jsxs("div",{className:"x7a106z x78zum5 x14vqqas",children:[j.jsx("div",{className:"xq8finb xr9ek0c",children:j.jsx(c("Image.react"),{src:a.icon})}),j.jsx("div",{children:j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:a.contentBody})})]})},a.contentBody)}),j.jsx("div",{className:"xqui205",children:j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:b})}),j.jsx("div",{className:"xqui205",children:j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:f})}),j.jsx("div",{className:"x1lliihq x8x9d4c xack27t",children:j.jsx(c("GeoButton.react"),{variant:"primary",label:h._("u7ee7u7eed"),xstyle:c("geoMargin").vert24,"data-testid":void 0,onClick:function(){n(a.pageID,"BIZWEB_LEAD_CENTER",g,i,e)}})})]})}),j.jsx("div",{className:"x78zum5 xt7dq6l x3hqpx7",children:j.jsx(c("Image.react"),{className:"xt7dq6l xh8yej3",src:"/images/leads_center/leads_center_pre_tos_accept_view/MBS-Leads-ToS-New-User-b4b4x.png"})})]})})}a.displayName=a.name+" [from "+f.id+"]";function m(){return[{contentBody:d("LeadsManagerConstants").PRE_TOS_ACCEPT_STOPWATCH_ICON_CONTENT,contentHeader:"",icon:i("500256")},{contentBody:d("LeadsManagerConstants").PRE_TOS_ACCEPT_FUNNEL_ICON_CONTENT,contentHeader:"",icon:i("560117")},{contentBody:d("LeadsManagerConstants").PRE_TOS_ACCEPT_THUNDER_ICON_CONTENT,contentHeader:"",icon:i("1020800")}]}function n(a,b,e,f,g){c("LeadsCenterTosSubmitFlowFalcoEvent").log(function(){return{page_id:a,event_location:"leads_center",event_data:{}}}),e(!0),d("LeadsManagerAcceptToSMutation").commit(f,{actor_id:a,signature_surface:b},{onSuccess:function(a){var b;b=(b=a.lead_gen_tos_consent)==null?void 0:b.success;if(b===!0){g({type:"LEADS_MANAGER_ACCEPT_TOS_ACTION",isBackFillJobsRunning:((b=a.lead_gen_tos_consent)==null?void 0:(a=b.page)==null?void 0:a.has_leads_center_back_fill_job_running)||!1})}else e(!1)},onFailure:function(){e(!1)}})}g["default"]=a}),98);
-----
LeadsManagerPipelineNullState.react",["fbt","FlexLayout.react","GeoBaseText.react","GeoButton.react","GeoHeading.react","GeoText.react","LeadManagerUtils","LeadsManagerViewContext","geoMargin","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useContext;function a(a){var b=j(c("LeadsManagerViewContext")),e=b.dispatchForView;b=a.nullStateType;switch(b){case d("LeadManagerUtils").LeadsManagerNullStateType.TOS:return i.jsx("div",{className:"x10l6tqk x14kq9sb x1nrll8i x1m9mm8y",children:i.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[i.jsx(c("GeoBaseText.react"),{xstyle:c("geoMargin").bottom8,textAlign:"center",size:"header4",color:"value",weight:"bold",children:h._("u8bf7u63a5u53d7u516cu5171u4e3bu9875u8054u7cfbu4ebau6761u6b3euff0cu4ee5u4fbfu4f7fu7528u6f5cu5728u5ba2u6237u7ba1u7406u5de5u5177u3002")}),i.jsx(c("GeoButton.react"),{label:h._("u67e5u770bu6761u6b3e"),variant:"primary",onClick:function(){e({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})}})]})});case d("LeadManagerUtils").LeadsManagerNullStateType.DATA_PROPAGATING:return i.jsx("div",{className:"x10l6tqk x14kq9sb x1nrll8i x1m9mm8y",children:i.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[i.jsx(c("GeoHeading.react"),{level:2,children:h._("u6b63u5728u52a0u8f7du4f60u7684u6f5cu5728u5ba2u6237u6570u636euff01")}),i.jsx(c("GeoText.react"),{xstyle:c("geoMargin").bottom8,textAlign:"center",children:h._("u6211u4eecu6b63u4eceu4f60u7684u7ebfu7d22u5e7fu544au4e2du8c03u53d6u6240u751fu6210u7684u6f5cu5728u5ba2u6237u4fe1u606fu3002u9996u6b21u8c03u53d6u8fc7u7a0bu8017u65f6u8f83u957fuff0cu8bf7u7a0du540eu56deu6765u770bu770bu3002")})]})});default:return i.jsx("div",{})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextLabels3DWrapper.react",["BizKitContextLabels3DWrapper_contactLabels.graphql","BizKitContextLabelsWrapper.react","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("BizKitContextLabels3DWrapper_contactLabels.graphql");function a(a){var b=a.className,e=a.contactID,f=a.contactIdentity,g=a.pageID,h=a.onSelectLabel,k=a.surface,l=a.readOnly,m=a.onShowContactCardTosModal,n=a.shouldShowContactCardTos,o=a.shouldDisableBizInput,p=a.pageRef,q=a.mbsBusinessAssetsRef,r=a.section_3d;a=a.businessAssets;r=d("RelayHooks").useFragment(j,r);return i.jsx(c("BizKitContextLabelsWrapper.react"),{className:b,contactID:e,contactIdentity:f,pageID:g,contactLabels:r==null?void 0:r.biz_crm_contact,onSelectLabel:h,surface:k,readOnly:l,onShowContactCardTosModal:m,shouldShowContactCardTos:n,shouldDisableBizInput:o,pageRef:p,businessAssets:a,mbsBusinessAssetsRef:q})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardNotesSection3DWrapper.react",["BizKitContextCardNotesSection.react","BizKitContextCardNotesSection3DWrapper_notes.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("BizKitContextCardNotesSection3DWrapper_notes.graphql");function a(a){var b=a.className,e=a.pageID,f=a.section_3d,g=a.contactID,h=a.contactIdentity,k=a.surface,l=a.readOnly,m=a.onShowContactCardTosModal;a=a.shouldShowContactCardTos;f=d("RelayHooks").useFragment(j,f);return i.jsx(c("BizKitContextCardNotesSection.react"),{className:b,contactID:g,contactIdentity:h,pageID:e,notes:f==null?void 0:f.biz_crm_contact,surface:k,readOnly:l,onShowContactCardTosModal:m,shouldShowContactCardTos:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivitySection3DWrapper.react",["BizKitContextCardActivitySection.react","BizKitContextCardActivitySection3DWrapper_activities.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");h!==void 0?h:h=b("BizKitContextCardActivitySection3DWrapper_activities.graphql");function a(a){var b=a.className,d=a.pageID,e=a.isInKBankRollout,f=a.contactID,g=a.contactIdentity,h=a.onActivityListUpdated,j=a.activitiesQueryReference,k=a.readOnly,l=a.surface,m=a.onShowContactCardTosModal,n=a.shouldShowContactCardTos;a=a.shouldDisableBizInput;return i.jsx(c("BizKitContextCardActivitySection.react"),{className:b,contactID:f,contactIdentity:g,pageID:d,isInKBankRollout:e,onActivityListUpdated:h,activitiesQueryReference:j,readOnly:k,surface:l,onShowContactCardTosModal:m,shouldShowContactCardTos:n,shouldDisableBizInput:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardAboutDetailSection3DWrapper.react",["BizKitContextCardAboutDetailSection.react","BizKitContextCardAboutDetailSection3DWrapper_about.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("BizKitContextCardAboutDetailSection3DWrapper_about.graphql");function a(a){var b=a.section_3d,e=a.className,f=a.contactIdentity,g=a.pageID,h=a.bpnID,k=a.surface,l=a.readOnly,m=a.onShowContactCardTosModal,n=a.shouldShowContactCardTos,o=a.shouldDisableBizInput;a=a.isPageEnabledForWAM;b=d("RelayHooks").useFragment(j,b);return i.jsx(c("BizKitContextCardAboutDetailSection.react"),{about:b==null?void 0:b.biz_crm_contact,className:e,contactIdentity:f,isPageEnabledForWAM:a,pageID:g,bpnID:h,surface:k,readOnly:l,onShowContactCardTosModal:m,shouldShowContactCardTos:n,shouldDisableBizInput:o})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerHomePageV2.react",["CommerceManagerAppContext","CommerceManagerContext","CommerceManagerGeoPage.react","CommerceManagerHomePageBannersContainer.react","CommerceManagerHomePageInformAct.react","CommerceManagerHomePageModals.react","CommerceManagerHomePageSectionSuspenseWrapper.react","CommerceManagerHomePageV2LeftColumn.react","CommerceManagerHomePageV2RightColumn.react","CommerceManagerHomeUtils","CommerceManagerImpressionLoggingContainer.react","CommerceManagerSuspense.react","CommerceManagerUsabilitySurveyContainer.react","CommerceManagerUsabilitySurveyUtils","GeoGlimmer.react","GeoPageHeader.react","GeoPageItem.react","GeoPageSection.react","GeoPageSectionWithNestedChildren.react","nullthrows","nux:522","react","withSellerFunnelLogging"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext;function j(){var a=d("CommerceManagerHomeUtils").useGetHasValidShopifyAppInstallation();return h.jsx(c("GeoPageHeader.react"),{description:a?d("CommerceManagerHomeUtils").FBTS.HOME_PAGE_HEADER_DESCRIPTION_SHOPIFY:null,heading:d("CommerceManagerHomeUtils").FBTS.HOME_PAGE_HEADER_HEADING})}j.displayName=j.name+" [from "+f.id+"]";function k(){var a,e=c("nullthrows")(i(c("CommerceManagerAppContext")),"catalogOrCmsID was null, invalid value from CommerceManagerAppContext");e=e.catalogOrCmsID;var f=i(c("CommerceManagerContext"));a=(a=f.showShopCompleteDialog)!=null?a:!1;f=(f=f.showTOSModal)!=null?f:!1;var g=b("nux:522")==null?void 0:b("nux:522")("COMMERCE_MANAGER_HOME_PAGE_V2_NUX");return h.jsxs(h.Fragment,{children:[h.jsx(c("CommerceManagerHomePageModals.react"),{showShopCompleteDialog:a,showTOSModal:f}),h.jsx(c("CommerceManagerGeoPage.react"),{actionBanner:h.jsx(c("CommerceManagerHomePageInformAct.react"),{catalogOrCmsID:e}),columns:d("CommerceManagerHomeUtils").CM_HOME_PAGE_FULL_WIDTH,header:h.jsx(j,{}),children:h.jsxs(c("GeoPageSectionWithNestedChildren.react"),{children:[g!=null&&h.jsx(g,{}),d("CommerceManagerUsabilitySurveyUtils").isUsabilitySurveyEnabled()?h.jsx(c("CommerceManagerUsabilitySurveyContainer.react"),{columns:d("CommerceManagerHomeUtils").CM_HOME_PAGE_FULL_WIDTH}):null,h.jsx(d("CommerceManagerHomePageSectionSuspenseWrapper.react").CommerceManagerHomePageSectionSuspenseWrapper,{columns:d("CommerceManagerHomeUtils").CM_HOME_PAGE_FULL_WIDTH,height:d("CommerceManagerHomeUtils").BANNERS_CONTAINER_HEIGHT,children:h.jsx(c("CommerceManagerHomePageBannersContainer.react"),{catalogOrCmsID:e})}),h.jsx(c("CommerceManagerHomePageV2LeftColumn.react"),{columns:d("CommerceManagerHomeUtils").CM_HOME_LEFT_COLUMN_WIDTH}),h.jsx(c("CommerceManagerHomePageV2RightColumn.react"),{columns:d("CommerceManagerHomeUtils").CM_HOME_RIGHT_COLUMN_WIDTH})]})})]})}k.displayName=k.name+" [from "+f.id+"]";function l(){var a=h.jsx(c("CommerceManagerGeoPage.react"),{columns:d("CommerceManagerHomeUtils").CM_HOME_PAGE_FULL_WIDTH,grow:"fill",header:h.jsx(j,{}),children:h.jsx(c("GeoPageSection.react"),{grow:"fill",children:h.jsx(c("GeoPageItem.react"),{columns:d("CommerceManagerHomeUtils").CM_HOME_PAGE_FULL_WIDTH,grow:"fill",children:h.jsx(c("GeoGlimmer.react"),{})})})});return h.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{flowName:"COMMERCE_MANAGER_HOME_V2_HOME_TAB",oncall:"cxp_interfaces",children:h.jsx(c("CommerceManagerSuspense.react"),{component:l.name,loadingComponent:a,oncall:"cxp_interfaces",children:h.jsx(k,{})})})}l.displayName=l.name+" [from "+f.id+"]";a=d("withSellerFunnelLogging").withSellerFunnelLogging(l,{flow:"cm_home"});e=a;g["default"]=e}),98);
-----
StreamerHomeLevelUpModule.react",["fbt","ix","GeoButton.react","GeoFlexbox.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoHeading.react","GeoLink.react","GeoList.react","GeoListMediaItem.react","GeoSection.react","GeoTab.react","GeoTabHeader.react","GeoText.react","Image.react","RelayHooks","StreamerHomeLevelUpEligibilityUtils","StreamerHomeLevelUpModule_streamerHomeModule.graphql","StreamerHomeLevelUpOnboardingTOSModal.react","react","recoverableViolation","useBizKitStreamerDashboardLogger","useLevelUpLiveTrackRequirements","useLevelUpVODTrackRequirements"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l=d("react").useState,m=function(a){return a.filter(function(a){return a.meets}).length},n=function(a){return m(a.requirements)/a.requirements.length};function a(a){var e,f=l(!1),g=f[0],o=f[1];f=d("RelayHooks").useFragment(j!==void 0?j:j=b("StreamerHomeLevelUpModule_streamerHomeModule.graphql"),a.streamerHomeModule);a=f.page;var p=d("useBizKitStreamerDashboardLogger").useBizKitStreamerDashboardLogger(),q=function(a){return p.setEvent("button_clicked").setActionTarget(a).log()};f=function(){p.setEvent("level_up_apply_clicked").log(),o(!0)};var r=(e=(e=a.vod_level_up_track)==null?void 0:e.passes_gk)!=null?e:!1,s=c("useLevelUpLiveTrackRequirements")(a,r),t=c("useLevelUpVODTrackRequirements")(a);e=l(function(){if(!r)return s;var a=n(s),b=n(t);return b>a?t:s});var u=e[0],v=e[1],w=i("1352373"),x=i("1208638");e=d("StreamerHomeLevelUpEligibilityUtils").getLevelUpModuleDescription(r,q);var y=m(u.requirements),z=n(u);return k.jsxs("div",{children:[k.jsx("div",{className:"xod5an3 x14atkfc",children:k.jsx(c("Image.react"),{className:"xt7dq6l x193iq5w",src:"/images/games/streamer_dashboard/BizKitStreamerHomeLevelUpArt_4x.png"})}),k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("GeoHeading.react"),{level:2,children:h._("u6210u4e3au5347u7ea7u8ba1u5212u4e3bu64ad")}),k.jsx(c("GeoText.react"),{children:e})]}),r?k.jsxs(c("GeoTabHeader.react"),{onChange:function(a){q(a+"_tab");switch(a){case"unknown":c("recoverableViolation")("Invalid Level Up track type selected","games_video_streamer_dashboard");case"live_creator":return v(s);case"vod_creator":return v(t)}},value:u.name,children:[k.jsx(c("GeoTab.react"),{label:h._("u4e3bu64ad"),value:"live_creator"}),k.jsx(c("GeoTab.react"),{label:h._("u89c6u9891u521bu4f5cu8005"),value:"vod_creator"})]}):null,k.jsxs(c("GeoSection.react"),{children:[k.jsxs("div",{children:[k.jsx(c("GeoHeading.react"),{level:3,children:h._("u8ba1u5212u53c2u4e0eu8d44u683c")}),k.jsx("div",{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":z*100,className:"x78zum5 xdt5ytf x12nagc x14vqqas x6c5l4p",children:k.jsx(c("GeoFlexbox.react"),{alignItems:"center",children:k.jsx("div",{className:"x1wpzbip xhk9q7s x1otrzb0 x1i1ezom x1o6z2jb xdk7pt x6ikm8r x10wlt62 xh8yej3",children:k.jsx("div",{className:"x11goek xdk7pt x19w6rv x1mbqufl x11xpdln x1fwqrf6",style:{transform:"scaleX("+z+")"}})})})}),k.jsx(c("GeoText.react"),{children:h._("{completed criteria}/{total criteria}u4e2au8981u6c42u5df2u5b8cu6210",[h._param("completed criteria",y),h._param("total criteria",u.requirements.length)])}),k.jsx(c("GeoList.react"),{children:u.requirements.map(function(a,b){return k.jsx(c("GeoListMediaItem.react"),{imageHeight:16,imageURI:a.meets===!0?x:w,imageWidth:16,label:a.text},b)})})]}),u.name==="live_creator"?k.jsx("div",{className:"xw7yly9",children:k.jsx(c("GeoGuidanceCard.react"),{header:k.jsx(c("GeoGuidanceCardHeader.react"),{heading:h._("u60f3u8981u66f4u5febu5b9eu73b0u76eeu6807uff1f")}),status:"recommendation",children:k.jsx(c("GeoGuidanceCardContent.react"),{children:k.jsx(c("GeoText.react"),{children:h._("{=m0}u5185u5bb9u5982u4f55u5728 Facebook u4e0au4f20u64aduff0cu4ee5u53cau4f60u80fdu91c7u53d6u54eau4e9bu63aau65bdu6765u63d0u5347u53d7u4f17u4e92u52a8u3002",[h._implicitParam("=m0",k.jsx(c("GeoLink.react"),{href:"/fbgaminghome/creators/bootcamp",onClick:function(){q("creator_best_practices")},target:"_blank",children:h._("u8be6u7ec6u4e86u89e3")}))])})})})}):null,k.jsxs("div",{className:"xw7yly9",children:[k.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:!u.isEligible||((e=a.fan_support_settings)==null?void 0:e.level_up_terms_accepted)===!0,label:h._("u7533u8bf7"),onClick:f,variant:"primary",width:"100%"}),k.jsx(c("StreamerHomeLevelUpOnboardingTOSModal.react"),{isShown:g,onHide:function(){o(!1)}})]})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StreamerHomeLevelUpOnboardingTOSModal.react",["fbt","AsyncRequest","CometRelay","DevsiteAudienceNetworkTrackingPixels","GeoButton.react","GeoCancelButton.react","GeoFlexbox.react","GeoHeading.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoNotice.react","GeoSection.react","GeoSpinner.react","GeoText.react","Image.react","StreamerHomeContext","StreamerHomeLevelUpOnboardingTOSModalMutation.graphql","XAffiliateOnboardingPolicyController","react","useBizKitStreamerDashboardLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useContext,l=e.useLayoutEffect,m=e.useRef,n=e.useState,o=i!==void 0?i:i=b("StreamerHomeLevelUpOnboardingTOSModalMutation.graphql");function a(a){var b=a.isShown,e=a.onHide,f=m();a=n("INITIAL");var g=a[0],i=a[1],p=d("useBizKitStreamerDashboardLogger").useBizKitStreamerDashboardLogger();a=d("CometRelay").useMutation(o);var q=a[0];a=a[1];var r=k(c("StreamerHomeContext")),s=r.pageID;r=function(){p.setActionTarget("accept_level_up_terms").setEvent("button_clicked").log(),s!=null&&q({onCompleted:function(a){d("DevsiteAudienceNetworkTrackingPixels").track("GCLevelUpApplicationApproved");((a=a.accept_level_up_terms_fan_support_page_settings)==null?void 0:(a=a.fan_support_page_settings)==null?void 0:a.level_up_terms_accepted)===!0&&(p.setActionTarget("level_up_terms_accepted").setEvent("level_up_terms_accepted").log(),i("SUCCESS"))},onError:function(a){p.setActionTarget("accept_level_up_terms_failed").logError(a),i("ERROR")},variables:{input:{page:s}}})};var t=function(){b&&(p.setEvent("level_up_terms_dismissed").log(),i("INITIAL"),e())};l(function(){if(b){var a=c("XAffiliateOnboardingPolicyController").getURIBuilder().getURI(),d=new(c("AsyncRequest"))().setAllowCrossPageTransition(!0).setRelativeTo(f.current).setURI(a).setHandler(function(){i("TOS")}).setErrorHandler(function(){i("ERROR")});d.send();return function(){return d.abort()}}},[b]);var u=j.jsxs(j.Fragment,{children:[j.jsx(c("GeoFlexbox.react"),{direction:"column",style:{backgroundColor:"#162643",height:250},children:j.jsx(c("Image.react"),{height:230,src:"/images/games/streamer_dashboard/Congratulations.png",width:506})}),j.jsxs(c("GeoSection.react"),{children:[j.jsx(c("GeoHeading.react"),{level:2,children:h._("u606du559cuff01")}),j.jsx(c("GeoText.react"),{children:h._("u4f60u7684u7533u8bf7u5df2u83b7u6279u3002u4f60u53efu4ee5u5728u6e38u620fu76f4u64adu671fu95f4u63a5u6536u201cu661fu661fu201du4e86u3002")})]})]});a=g==="SUCCESS"?j.jsx(c("GeoButton.react"),{autoFocus:!0,label:h._("u786eu5b9a"),onClick:e,variant:"primary"}):j.jsx(c("GeoButton.react"),{autoFocus:!0,isDisabled:g!=="TOS",isLoading:a,label:h._("u6211u540cu610f"),onClick:r,variant:"primary"});return j.jsx(c("GeoModal.react"),{footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:a,secondaryButton:g==="SUCCESS"?void 0:j.jsx(c("GeoCancelButton.react"),{"data-testid":void 0,onClick:t})}),header:j.jsx(c("GeoModalHeader.react"),{heading:h._("u63a5u53d7u521bu4f5cu8005u5347u7ea7u8ba1u5212u670du52a1u6761u6b3e")}),isShown:b,label:"Level Up TOS Modal",onHide:t,children:j.jsxs(c("GeoSection.react"),{children:[(g==="INITIAL"||g==="TOS")&&j.jsx("div",{ref:f},"terms"),g==="INITIAL"&&j.jsx(c("GeoSpinner.react"),{}),g==="ERROR"&&j.jsx(c("GeoNotice.react"),{status:"error",children:h._("u51fau9519u4e86uff0cu8bf7u91cdu8bd5u3002")}),g==="SUCCESS"&&u]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StreamerHomeLevelUpOnboardingTOSModalMutation.graphql",["StreamerHomeLevelUpOnboardingTOSModalMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"AcceptLevelUpTermsFanSupportPageSettingsResponsePayload",kind:"LinkedField",name:"accept_level_up_terms_fan_support_page_settings",plural:!1,selections:[{alias:null,args:null,concreteType:"FanSupportPageSettings",kind:"LinkedField",name:"fan_support_page_settings",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"level_up_terms_accepted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mixer_bonus_terms_accepted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"incentive_terms_accepted",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"StreamerHomeLevelUpOnboardingTOSModalMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"StreamerHomeLevelUpOnboardingTOSModalMutation",selections:c},params:{id:b("StreamerHomeLevelUpOnboardingTOSModalMutation_facebookRelayOperation"),metadata:{},name:"StreamerHomeLevelUpOnboardingTOSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
StreamerHomeLevelUpOnboardingTOSModalMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6273243206039468"}),null);
-----
CommerceManagerApp.react",["CUIErrorCard.react","CatalogBusinessEventsLoggerHelper","CommerceManagerAppLoadingState.react","CommerceManagerAutoLoggingUtils","CommerceManagerMetaEmployeeRecommendations","CommerceManagerRelayEnvironment","CommerceManagerRouterRootV2.react","CommerceManagerSuspense.react","RelayAPIConfig","RelayFBEnvironment","RelayHooks","SellerInsightsV2LoggingUtils","gkx","performance","react","useCommerceManagerTheme"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useEffect,j=b.useRef;function a(a){var b=a.catalogID,e=a.catalogOrCmsID,f=a.cmsID,g=a.isEligibleForBizKitCommerceIntegration,i=a.loadFedInformWizard,j=a.loadFedInformWizardIndividualFlow,l=a.loadIDVFlow,m=a.loadOBBOFlow,n=a.showOnLoadModal,o=a.showShopCompleteDialog;a=a.showTOSModal;c("useCommerceManagerTheme")();k();d("CommerceManagerAutoLoggingUtils").initializeAutoClickLogging({catalogID:b,cmsID:f});d("CommerceManagerMetaEmployeeRecommendations").useLogBizKitEligibilityBypassRecommendationForMetaEmployees(g);var p=c("RelayFBEnvironment");c("gkx")("3062")&&(p=c("CommerceManagerRelayEnvironment").getForActorID(c("RelayAPIConfig").actorID));return h.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:p,children:h.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),flowName:"LOAD_MAIN_APP",loadingComponent:h.jsx(c("CommerceManagerAppLoadingState.react"),{}),oncall:"merchant_platform_and_interfaces",children:h.jsx(c("CommerceManagerRouterRootV2.react"),{catalogID:b,catalogOrCmsID:e,cmsID:f,isEligibleForBizKitCommerceIntegration:g,loadFedInformWizard:i,loadFedInformWizardIndividualFlow:j,loadIDVFlow:l,loadOBBOFlow:m,showOnLoadModal:n,showShopCompleteDialog:o,showTOSModal:a})})})}a.displayName=a.name+" [from "+f.id+"]";function k(){var a=j(!1);i(function(){typeof c("performance").now==="function"&&!a.current&&(c("CatalogBusinessEventsLoggerHelper").getPerformanceLogger().setEvent("unified_commerce_manager_app_first_render").setTimeTakenInMs(Math.round(c("performance").now())).log(),a.current=!0),d("SellerInsightsV2LoggingUtils").commerceInsightsPageLoadingV2Scenario()},[])}g["default"]=a}),98);
-----
CommerceManagerRouterRootV2.react",["CommerceManagerAppLoadingState.react","CommerceManagerRootMatchRouteContainer.react","CommerceManagerRouteConfigUtils","CommerceManagerRouteConfigurations","CommerceManagerRouterRootV2Query.graphql","CommerceManagerSuspense.react","RelayHooks","react","useCallOnceImmediately"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function j(a){var e=d("RelayHooks").useLazyLoadQuery(h!==void 0?h:h=b("CommerceManagerRouterRootV2Query.graphql"),{catalogOrCmsID:a.catalogOrCmsID});e={catalogOrCmsID:a.catalogOrCmsID,contextConfiguration:e.configuration,isEligibleForBizKitCommerceIntegration:a.isEligibleForBizKitCommerceIntegration,loadFedInformWizard:a.loadFedInformWizard,loadFedInformWizardIndividualFlow:a.loadFedInformWizardIndividualFlow,loadIDVFlow:a.loadIDVFlow,loadOBBOFlow:a.loadOBBOFlow,showOnLoadModal:a.showOnLoadModal,showShopCompleteDialog:a.showShopCompleteDialog,showTOSModal:a.showTOSModal};c("useCallOnceImmediately")(function(){var b=d("CommerceManagerRouteConfigUtils").getRouteConfigs(a.cmsID,a.catalogID);d("CommerceManagerRouteConfigurations").initRouteConfigs(b)});return i.jsx(c("CommerceManagerRootMatchRouteContainer.react"),babelHelpers["extends"]({},e,{placeholder:c("CommerceManagerAppLoadingState.react")}))}j.displayName=j.name+" [from "+f.id+"]";function a(a){return i.jsx(c("CommerceManagerSuspense.react"),{loadingComponent:i.jsx(c("CommerceManagerAppLoadingState.react"),{}),oncall:"cxp_interfaces",children:i.jsx(j,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitCustomerEmptyStateWithValuePropsView.react",["fbt","BizKitCuReSharedNullStateView.react","BizKitCustomerOnboardingConstants","BizKitCustomerTOSModal.react","BizKitDefaultPage.react","BizKitRequirePageAdminPermissionNotice.react","CRMDestinationContext","CrmDestinationTosFlowImpressionFalcoEvent","GeoCard.react","GeoToast.react","nullthrows","react","useBizKitPageNullable","useGeoToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useContext,k=b.useEffect,l=b.useState;function a(a){var b=c("useBizKitPageNullable")(),e=l(!1),f=e[0],g=e[1];e=l(null);var m=e[0],n=e[1];e=c("useGeoToaster")();var o=e.add;e=j(c("CRMDestinationContext"));var p=e.bpnID;k(function(){if(m!=null){var a=null;m==="error"?a=h._("u51fau9519u4e86uff0cu8bf7u7a0du540eu91cdu8bd5u3002"):m==="success"&&(a=h._("u4f60u5df2u63a5u53d7u8054u7cfbu4ebau5de5u5177u7684u670du52a1u6761u6b3eu3002"));a!==null&&o(i.jsx(c("GeoToast.react"),{heading:a,status:m}),{duration:"sticky"})}},[o,m]);k(function(){c("CrmDestinationTosFlowImpressionFalcoEvent").log(function(){return{event_location:"bizweb_crm_destination",page_id:b,business_presence_node_id:p,event_data:{}}})},[b,p]);return i.jsx(c("BizKitDefaultPage.react"),{initShowLocalNav:!1,children:i.jsxs(c("GeoCard.react"),{children:[i.jsx(d("BizKitCuReSharedNullStateView.react").BizKitCuReSharedNullStateView,{nullStateConfig:a.canSignToS?c("BizKitCustomerOnboardingConstants").TOS_NULL_STATE_CONFIG:c("BizKitCustomerOnboardingConstants").TOS_NO_PERMISSION_NULL_STATE_CONFIG,onPrimaryButtonClick:function(){g(!0)},customSection:a.canSignToS?null:i.jsx(c("BizKitRequirePageAdminPermissionNotice.react"),{notice:c("BizKitCustomerOnboardingConstants").CONTACTS_CONTAC_ADMIN_TO_SETUP_WARNING})}),a.canSignToS&&i.jsx(c("BizKitCustomerTOSModal.react"),{bpnID:c("nullthrows")(p),isShown:f,onHide:function(){g(!1)},onAcceptSuccess:function(){g(!1),a.refresh(),n("success")},onAcceptFailure:function(){g(!1),n("error")},eventLocation:"bizweb_crm_destination",tosSurface:"BIZWEB_CONTACTS_TAB"})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitCustomerEmptyStateView.react",["fbt","ix","BizKitCustomerConnect3PDataModal.react","BizKitCustomerTOSModal.react","BizKitDefaultPage.react","CRMCreateCRMConfigMutation.react","CRMDestinationContext","CrmDestinationPartnerIntegrationClickFalcoEvent","CrmDestinationPartnerIntegrationImpressionFalcoEvent","CrmDestinationTosFlowImpressionFalcoEvent","FlexLayout.react","FlexLayoutItem.react","GeoButton.react","GeoCard.react","GeoTextPairing.react","GeoToast.react","Image.react","RelayHooks","URI","XBizAppStoreController","nullthrows","react","useBizKitPageNullable","useGeoToaster"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");b=d("react");var k=b.useContext,l=b.useEffect,m=b.useState;function n(a){return j.jsxs(c("FlexLayout.react"),{align:"center",className_DO_NOT_USE:"x8rgt9n",direction:"vertical",justify:"all",children:[j.jsx(c("FlexLayoutItem.react"),{children:j.jsx(c("Image.react"),{src:i("1682260")})}),j.jsx(c("FlexLayoutItem.react"),{className:"xqui205 x1l2rt3b",children:j.jsx(c("GeoTextPairing.react"),{textAlign:"center",description:h._("u8054u7cfbu4ebau5de5u5177u7528u9014u5e7fu6cdbuff0cu4f60u4e0du4ec5u80fdu5b58u50a8u548cu7ba1u7406u6240u6709u8054u7cfbu4ebau6570u636euff0cu8fd8u80fdu521bu5efau53d7u4f17u7ec6u5206u548cu7ba1u7406u53d7u4f17u3002u63a5u53d7u670du52a1u6761u6b3eu5c31u53efu5f00u59cbu4f7fu7528u3002"),heading:h._("u6b22u8fceu4f7fu7528u8054u7cfbu4ebau5de5u5177"),size:"header2"})}),j.jsx(c("FlexLayoutItem.react"),{className:"x14vqqas",children:j.jsx(c("GeoButton.react"),{"data-testid":void 0,label:h._("u5f00u59cb"),onClick:function(){a.setModalShown(!0)},variant:"primary"})})]})}n.displayName=n.name+" [from "+f.id+"]";function o(a){return j.jsxs(c("FlexLayout.react"),{align:"center",className_DO_NOT_USE:"x8rgt9n",direction:"vertical",justify:"all",children:[j.jsx(c("FlexLayoutItem.react"),{children:j.jsx(c("Image.react"),{src:i("1495174")})}),j.jsx(c("FlexLayoutItem.react"),{className:"xqui205 x1l2rt3b",children:j.jsx(c("GeoTextPairing.react"),{textAlign:"center",description:h._("u7ed1u5b9au5176u4ed6u4e1au52a1u5de5u5177u5e76u5bfcu5165u6570u636euff0cu5f00u59cbu4f7fu7528u9ad8u6548u7684u8054u7cfbu4ebau5de5u5177u3002"),heading:h._("u65e0u8054u7cfbu4eba"),size:"header2"})}),j.jsx(c("FlexLayoutItem.react"),{className:"x14vqqas",children:j.jsx(c("GeoButton.react"),{label:h._("u5173u8054u6570u636e"),onClick:function(){a.setModalShown(!0)},variant:"primary"})})]})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=c("nullthrows")(c("useBizKitPageNullable")(),"pageID is null"),f=m(!1),g=f[0],i=f[1];f=m(!1);var p=f[0],q=f[1];f=m(null);var r=f[0],s=f[1];f=c("useGeoToaster")();var t=f.add,u=a.shouldShowTOS;f=k(c("CRMDestinationContext"));var v=f.bpnID;l(function(){u?c("CrmDestinationTosFlowImpressionFalcoEvent").log(function(){return{event_location:"bizweb_crm_destination",page_id:e,business_presence_node_id:v,event_data:{}}}):c("CrmDestinationPartnerIntegrationImpressionFalcoEvent").log(function(){return{event_location:"bizweb_crm_destination",page_id:e,business_presence_node_id:v,event_data:{}}});if(r!=null){var a=null;r==="error"?a=h._("u51fau9519u4e86uff0cu8bf7u7a0du540eu91cdu8bd5u3002"):r==="success"&&(a=h._("u4f60u5df2u63a5u53d7u8054u7cfbu4ebau5de5u5177u7684u670du52a1u6761u6b3eu3002"));a!==null&&t(j.jsx(c("GeoToast.react"),{heading:a,status:r}),{duration:"sticky"})}},[e,v,t,r,u]);f=o({setModalShown:i});u&&(f=n({setModalShown:i}));return j.jsx(c("BizKitDefaultPage.react"),{initShowLocalNav:!1,children:j.jsxs(c("GeoCard.react"),{children:[f,a.shouldShowTOS?j.jsx(c("BizKitCustomerTOSModal.react"),{bpnID:c("nullthrows")(v),isShown:g,onHide:function(){i(!1)},onAcceptSuccess:function(){i(!1),a.refresh(),s("success")},onAcceptFailure:function(){i(!1),s("error")},eventLocation:"bizweb_crm_destination",tosSurface:"BIZWEB_CONTACTS_TAB"}):j.jsx(c("BizKitCustomerConnect3PDataModal.react"),{isConfirmButtonDisabled:p,onConnectData:function(){c("CrmDestinationPartnerIntegrationClickFalcoEvent").log(function(){return{event_location:"bizweb_crm_destination",page_id:e,business_presence_node_id:v,event_data:{}}}),a.crmConfigExist||d("CRMCreateCRMConfigMutation.react").commitCRMCreateCRMConfigMutation(c("nullthrows")(v),b),c("URI").goURIOnNewWindow(c("XBizAppStoreController").getURIBuilder().setString("rest","data_integration").setFBID("page_id",e).setEnum("channel","crm_destination").getURI()),q(!0)},isShown:g,onHide:function(){i(!1)},pageID:e})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitCustomerTOSModal.react",["fbt","CRMConsentToTOSDialog.react","CrmDestinationTosFlowEnterFlowFalcoEvent","CrmDestinationTosFlowReceiveResponseFailureFalcoEvent","CrmDestinationTosFlowReceiveResponseSuccessFalcoEvent","CrmDestinationTosFlowSubmitFlowFalcoEvent","GeoButton.react","GeoCancelButton.react","GeoCheckboxInput.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","LeadsManagerAcceptToSMutation","RelayHooks","nullthrows","react","useBizKitPageNullable","useBoolean"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useEffect,k=b.useState;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=c("nullthrows")(c("useBizKitPageNullable")(),"pageID is null"),f=k(!1),g=f[0],m=f[1];f=k(!1);var n=f[0],o=f[1];f=c("useBoolean")(!1);var p=f.value;f=f.set;var q=function(){c("CrmDestinationTosFlowReceiveResponseSuccessFalcoEvent").log(function(){return{event_location:a.eventLocation,page_id:e,business_presence_node_id:a.bpnID,event_data:{}}}),a.onAcceptSuccess()},r=function(){c("CrmDestinationTosFlowReceiveResponseFailureFalcoEvent").log(function(){return{event_location:a.eventLocation,page_id:e,business_presence_node_id:a.bpnID,event_data:{}}}),a.onAcceptFailure()};j(function(){a.isShown&&c("CrmDestinationTosFlowEnterFlowFalcoEvent").log(function(){return{event_location:a.eventLocation,page_id:e,business_presence_node_id:a.bpnID,event_data:{}}})},[a.bpnID,a.isShown,e,a.eventLocation]);return i.jsxs("span",{children:[i.jsx(c("GeoModal.react"),{footer:i.jsx(c("GeoModalFooter.react"),{primaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:!p,label:h._("u786eu8ba4"),onClick:function(){o(!0),c("CrmDestinationTosFlowSubmitFlowFalcoEvent").log(function(){return{event_location:a.eventLocation,page_id:e,business_presence_node_id:a.bpnID,event_data:{tos_submit_referrer:"summary"}}}),l(b,e,a.tosSurface,q,r,o)},isLoading:n,variant:"primary"}),secondaryButton:i.jsx(c("GeoCancelButton.react"),{"data-testid":void 0}),startContent:i.jsx(c("GeoCheckboxInput.react"),{label:h._("u6211u4ee3u8868u6211u7684u7ec4u7ec7u786eu8ba4u6211u5df2u9605u8bfb{=m2}uff0cu5e76u4e86u89e3u6211u4f7fu7528u8fd9u6b3eu5de5u5177u5fc5u987bu9075u5b88u8fd9u4e9bu6761u6b3eu3002",[h._implicitParam("=m2",i.jsx(c("GeoLink.react"),{onClick:function(){m(!0),a.onHide()},children:h._("u516cu5171u4e3bu9875u8054u7cfbu4ebau6761u6b3e")}))]),onChange:f,value:p})}),header:i.jsx(c("GeoModalHeader.react"),{heading:h._("u8054u7cfbu4ebau670du52a1u6761u6b3e")}),isShown:a.isShown,onHide:a.onHide,children:i.jsx(c("GeoSection.react"),{children:i.jsxs("div",{children:[i.jsx("div",{children:i.jsx(c("GeoText.react"),{children:h._("u8054u7cfbu4ebau76f8u4fe1u4f60u4f1au4ee5u8d1fu8d23u4efbu7684u6001u5ea6u5904u7406u4ed6u4eecu7684u4fe1u606fu3002u70b9u51fbu201cu786eu8ba4u201duff0cu5373u8868u793au4f60u540cu610fu4e0bu5217u4e8bu9879uff1a")})}),i.jsxs("div",{className:"x1yztbdb x1sy10c2",children:[i.jsx("div",{className:"xtcx8v3 x12nagc xv90nub x1gslohp",children:i.jsx(c("GeoText.react"),{children:h._("u4f60u6709u6743u9650u50a8u5b58u548cu4f7fu7528u4ed6u4eecu7684u4fe1u606fu6765u53d1u9001u4ea4u6613u548cu63a8u5e7fu6d88u606fu3002")})}),i.jsx("div",{className:"xtcx8v3 x12nagc xv90nub x1gslohp",children:i.jsx(c("GeoText.react"),{children:h._("u4f60u7684u8054u7cfbu4ebau9009u62e9u5141u8bb8u51fau4e8eu8425u9500u76eeu7684u5206u4eabu6216u4f7fu7528u5176u6570u636eu3002")})}),i.jsx("div",{className:"xtcx8v3 x12nagc xv90nub x1gslohp",children:i.jsx(c("GeoText.react"),{children:h._("u5982u679cu8054u7cfbu4ebau9009u62e9u7981u6b62u5206u4eabu5176u4fe1u606fuff0cu65e0u8bbau4f55u65f6uff0cu4f60u90fdu5c06u7acbu5373u79fbu9664u76f8u5173u4fe1u606fu3002")})})]})]})})}),i.jsx(c("CRMConsentToTOSDialog.react"),{isShown:g,onConfirm:function(){o(!0),c("CrmDestinationTosFlowSubmitFlowFalcoEvent").log(function(){return{event_location:a.eventLocation,page_id:e,business_presence_node_id:a.bpnID,event_data:{tos_submit_referrer:"detail"}}}),l(b,e,a.tosSurface,q,r,o)},onHide:function(){m(!1)},isLoading:n})]})}a.displayName=a.name+" [from "+f.id+"]";function l(a,b,c,e,f,g){d("LeadsManagerAcceptToSMutation").commit(a,{actor_id:b,signature_surface:c},{onSuccess:function(a){a=(a=a.lead_gen_tos_consent)==null?void 0:a.success;a===!0?e():(f(),g(!1))},onFailure:function(){f(),g(!1)}})}g["default"]=a}),98);
-----
CommerceManagerRootView.react",["CUIErrorCard.react","CommerceManagerContextProviders.react","CommerceManagerHeroInteractionRouterRoot","CommerceManagerLayoutV2.react","CommerceManagerLoadingOverlay.react","CommerceManagerMatchRouteContainerPlaceholder.react","CommerceManagerRootModalsV2.react","CommerceManagerRootViewMatchRouteContainer.react","CommerceManagerRootView_contextConfiguration.graphql","CommerceManagerSuspense.react","CommerceManagerTabRoutingUtils","CommerceManagerUsabilitySurveyUtils","CommerceManagerUtils","GeoBaseSpacingLayout.react","GeoToasterProvider.react","HeroInteractionIgnoreWithDiv.react","JSResource","RelayHooks","SUIBusinessThemeContainer.react","lazyLoadComponent","react","useAdsInterfacesRouterLeafRoute","useCatalogLocation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").Suspense,k=c("lazyLoadComponent")(c("JSResource")("CommerceManagerUsabilitySurveyInfo.react").__setRef("CommerceManagerRootView.react")),l=h!==void 0?h:h=b("CommerceManagerRootView_contextConfiguration.graphql");function a(a){var b=c("useCatalogLocation")(),e=d("RelayHooks").useFragment(l,a.contextConfiguration),f=c("useAdsInterfacesRouterLeafRoute")(),g=d("CommerceManagerTabRoutingUtils").deriveActiveTabFromRouteName(f.name);f=d("CommerceManagerTabRoutingUtils").deriveSubtabFromRouteName(f.name);var h=d("CommerceManagerUtils").isShopBuilderTab(g,f),m=function(a){return d("CommerceManagerUsabilitySurveyUtils").isUsabilitySurveyEnabled()?i.jsx(k,{skipTaskContextBar:a}):null};h=i.jsx(c("GeoToasterProvider.react"),{children:i.jsxs(c("CommerceManagerContextProviders.react"),{catalogOrCmsID:a.catalogOrCmsID,commerceManagerRoutingImpl:"AdsInterfacesRouter",configuration:e,isBizSuiteUser:a.isEligibleForBizKitCommerceIntegration,loadFedInformWizard:a.loadFedInformWizard,loadFedInformWizardIndividualFlow:a.loadFedInformWizardIndividualFlow,loadIDVFlow:a.loadIDVFlow,loadOBBOFlow:a.loadOBBOFlow,showOnLoadModal:a.showOnLoadModal,showShopCompleteDialog:a.showShopCompleteDialog,showTOSModal:a.showTOSModal,children:[h?i.jsxs(c("SUIBusinessThemeContainer.react"),{children:[i.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:i.jsx(c("GeoBaseSpacingLayout.react"),{direction:"vertical",children:i.jsx(c("CommerceManagerLoadingOverlay.react"),{})}),oncall:"merchant_platform_and_interfaces",children:i.jsx(c("CommerceManagerRootViewMatchRouteContainer.react"),{placeholder:c("CommerceManagerMatchRouteContainerPlaceholder.react")})}),i.jsx(j,{fallback:null,children:m(!0)})]}):i.jsx(c("CommerceManagerLayoutV2.react"),{catalogOrCmsID:a.catalogOrCmsID,location:b,subtab:(e=f)!=null?e:void 0,tab:g,unsabilitySurveyInfo:i.jsx(j,{fallback:null,children:m(!1)}),children:i.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:i.jsx(c("GeoBaseSpacingLayout.react"),{direction:"vertical",children:i.jsx(c("CommerceManagerLoadingOverlay.react"),{})}),oncall:"merchant_platform_and_interfaces",children:i.jsx(c("CommerceManagerRootViewMatchRouteContainer.react"),{placeholder:c("CommerceManagerMatchRouteContainerPlaceholder.react")})})}),i.jsx(c("HeroInteractionIgnoreWithDiv.react"),{children:i.jsx(c("CommerceManagerRootModalsV2.react"),{catalogOrCmsID:a.catalogOrCmsID,country:"US",showShopCompleteDialog:a.showShopCompleteDialog})})]})});return i.jsx(c("CommerceManagerHeroInteractionRouterRoot").Component,{defaultTracePolicy:"commerce_manager.unknown",children:h})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerContextProviders.react",["CommerceManagerAppContextProvider.react","CommerceManagerCatalogContextProvider.react","CommerceManagerCatalogItemsPageFetchKeyContext.react","CommerceManagerCatalogSetsPageFetchKeyContext.react","CommerceManagerCommerceContextProviders.react","CommerceManagerContextProviders_configuration.graphql","CommerceManagerLoggingHooks","CommerceManagerRoutingContext","CommerceManagerUsageContext","RelayHooks","UnifiedCommerceManagerUsage","err","getJSEnumSafe","hero-tracing-placeholder","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useContext,k=h!==void 0?h:h=b("CommerceManagerContextProviders_configuration.graphql");function a(a){var b,e=a.children,f=a.loadIDVFlow,g=a.loadOBBOFlow,h=a.loadFedInformWizard,l=a.loadFedInformWizardIndividualFlow,m=a.isBizSuiteUser,n=a.showShopCompleteDialog,o=a.showTOSModal,p=a.showOnLoadModal,q=d("CommerceManagerLoggingHooks").useErrorLogging(),r=j(d("hero-tracing-placeholder").HeroInteractionIDContext),s=d("RelayHooks").useFragment(k,a.configuration);b=(b=c("getJSEnumSafe")(c("UnifiedCommerceManagerUsage"),s==null?void 0:s.usage))!=null?b:"UNKNOWN";if(b==="UNKNOWN"){q({error:c("err")("Unified Commerce Manager usage is unknown"),flowName:"NAVIGATION",oncall:"catalog_quality_tools"});return null}q=new URLSearchParams(window.location.search);q=q.get("ref");var t={commerceManagerRoutingImpl:a.commerceManagerRoutingImpl};return i.jsx(c("CommerceManagerAppContextProvider.react"),{catalogOrCmsID:a.catalogOrCmsID,configuration:s,children:i.jsx(c("CommerceManagerUsageContext").Provider,{value:{usage:b},children:i.jsx(c("CommerceManagerCommerceContextProviders.react"),{canViewPermissions:(s==null?void 0:(a=s.features)==null?void 0:a.canViewPermissions)===!0,interactionUUID:r,isBizSuiteUser:m,loadFedInformWizard:h,loadFedInformWizardIndividualFlow:l,loadIDVFlow:f,loadOBBOFlow:g,referrerSurface:q,settings:s,showOnLoadModal:p,showShopCompleteDialog:n,showTOSModal:o,children:i.jsx(c("CommerceManagerCatalogContextProvider.react"),{catalog:s==null?void 0:s.catalog,children:i.jsx(c("CommerceManagerRoutingContext").Provider,{value:t,children:i.jsx(d("CommerceManagerCatalogItemsPageFetchKeyContext.react").CommerceManagerCatalogItemsPageFetchKeyContextProvider,{children:i.jsx(d("CommerceManagerCatalogSetsPageFetchKeyContext.react").CommerceManagerCatalogSetsPageFetchKeyContextProvider,{children:e})})})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerCommerceContextProviders.react",["CommerceManagerCheckoutStyle","CommerceManagerCommerceContextProviders_configuration.graphql","CommerceManagerComponentGatingProvider","CommerceManagerContext","CommerceManagerLocalizationContext","CommerceManagerPermissionProvider.react","CommerceManagerSurveyTaskContext","CommercePaymentProviders","RelayHooks","castToEnum","getJSEnumSafe","react","useAdsInterfacesRouterParams"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function a(a){var e=a.children,f=a.interactionUUID,g=a.isBizSuiteUser,j=a.loadIDVFlow,k=a.loadOBBOFlow,l=a.loadFedInformWizard,m=a.loadFedInformWizardIndividualFlow,n=a.settings,o=a.canViewPermissions,p=a.referrerSurface,q=a.showShopCompleteDialog,r=a.showTOSModal;a=a.showOnLoadModal;n=d("RelayHooks").useFragment(h!==void 0?h:h=b("CommerceManagerCommerceContextProviders_configuration.graphql"),n);var s=c("useAdsInterfacesRouterParams")();s=s.routeParams;s=s.shopID;if(n==null)return e;var t=n.commerceMerchantSettings,u=t==null?void 0:t.id;if(t==null||u==null)return e;var v=t.shopifyApplication,w=t.hasShopifyCatalogPartnerToken,x=t.checkoutStyle,y=t.id,z=t.page,A=t.commerceFeatures,B=t.dropsAudienceSize,C=t.paymentProvider,D=t.externalMerchantID;D={accountID_DEPRECATED_USE_CMS_ID_INSTEAD:u,canViewDiscounts:Boolean(n==null?void 0:(u=n.commerceManagerFeatures)==null?void 0:u.canViewDiscounts),cmsID:y,isBizSuiteUser:g,emailOptInIGUserCount:B==null?void 0:B.email_opt_in_ig_user_count,externalMerchantID:D,fetchPersistedDropIssues:Boolean(A==null?void 0:A.fetchPersistedDropIssues),isDropsCollaboratorFlowEnabled:Boolean(A==null?void 0:A.isDropsCollaboratorFlowEnabled),hasAccessToAutoUpdatesInItemsTab:Boolean(((u=n.features)==null?void 0:(y=u.catalogConciergeFeatures)==null?void 0:y.hasAccessToAutoUpdatesInItemsTab)===!0),hasShopifyCatalogPartnerToken:Boolean(w),loyaltyIGUserCount:B==null?void 0:B.loyalty_ig_user_count,interactionUUID:f,isDiscountsNUXEnabled:Boolean(A==null?void 0:A.isDiscountsNUXEnabled),isDropsKYCEnabled:Boolean((A==null?void 0:A.isDropsKYCEnabled)===!0&&t.isSandboxShop!==!0),isDropsCommerceDrawingEnabled:Boolean(A==null?void 0:A.isDropsCommerceDrawingEnabled),isDropsSimplifiedCreationFlowEnabled:Boolean(A==null?void 0:A.isDropsSimplifiedCreationFlowEnabled),isShopifySeller:Boolean(t.isShopifySeller),isShopifyDirectMerchant:Boolean(t.isShopifyDirectMerchant),isManagedSeller:Boolean(t.isManagedSeller),isFlashSaleCampaignInsightsEnabled:Boolean(A==null?void 0:A.isFlashSaleCampaignInsightsEnabled),isInsightsV2Enabled:Boolean(A==null?void 0:A.isInsightsV2Enabled),isLiveShoppingIncentivesEnabled:Boolean(A==null?void 0:A.isLiveShoppingIncentivesEnabled),isLiveShoppingExclusivesEnabled:Boolean(A==null?void 0:A.isLiveShoppingExclusivesEnabled),isLiveShoppingCreatorsEnabled:Boolean(A==null?void 0:A.isLiveShoppingCreatorsEnabled),isLoyaltyDropsEnabled:Boolean(A==null?void 0:A.isLoyaltyDropsEnabled),isLoyaltyDropsWithLoyaltyProgramEnabled:Boolean(A==null?void 0:A.isLoyaltyDropsWithLoyaltyProgramEnabled),isMigratedShopifyDirectMerchant:Boolean(t.isMigratedShopifyDirectMerchant),isOverviewMessagingEnabled:Boolean((g=n.features)==null?void 0:g.useOverviewMessaging),isRatingsAndReviewsTabRenameEnabled:Boolean(A==null?void 0:A.isRatingsAndReviewsTabRenameEnabled),isInsightsTaggedContentCombinedPurchaseStyleEnabled:Boolean(A==null?void 0:A.isTaggedContentCombinedPurchaseStyleEnabled),loadIDVFlow:j,loadOBBOFlow:k,loadFedInformWizard:l,loadFedInformWizardIndividualFlow:m,pageID:z==null?void 0:z.id,canViewPermissions:o,referrerSurface:p,showOnLoadModal:a,showShopCompleteDialog:q,shopID:s,isInsightsHybridShop:Boolean(t==null?void 0:t.isHybridShop),isSellerOffersListV2Enabled:Boolean(A==null?void 0:A.isSellerOffersListV2Enabled),shopifyDomain:v==null?void 0:v.shop_domain,shopifyAppInstallationID:v==null?void 0:v.id,showTOSModal:r,isShopsQACommerceManagerFAQEnabled:Boolean(A==null?void 0:A.isShopsQACommerceManagerFAQEnabled)};y={isEnabled:((u=t.commerceFeatures)==null?void 0:u.isPrivacyAwareUIEnabled)||!1,tbpActions:t.tbpActions};w=c("getJSEnumSafe")(c("CommerceManagerCheckoutStyle"),x);B=c("castToEnum")(C,c("CommercePaymentProviders"));return i.jsx(c("CommerceManagerPermissionProvider.react"),{params:y,children:i.jsx(c("CommerceManagerComponentGatingProvider"),{checkoutStyle:w,paymentProvider:B,children:i.jsx(d("CommerceManagerLocalizationContext").CommerceManagerLocalizationContextProvider,{selectedLocationID:null,children:i.jsx(d("CommerceManagerSurveyTaskContext").CommerceManagerSurveyTaskContextProvider,{surveyData:null,children:i.jsx(c("CommerceManagerContext").Provider,{value:D,children:e})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardOrdersSection.react",["fbt","BizKitContextCardActivityListItem.react","BizKitContextCardMoreSection.react","BizKitContextCardOrdersSection_orders.graphql","GeoBaseText.react","GeoHeading.react","GeoSpinner.react","LeftRight.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.Suspense,l=e.useState,m=i!==void 0?i:i=b("BizKitContextCardOrdersSection_orders.graphql"),n=5;function a(a){var b=a.className,e=a.pageID,f=a.orders,g=a.onShowContactCardTosModal,i=a.shouldShowContactCardTos,o=a.surface;a=l(!1);var p=a[0],q=a[1];a=d("RelayHooks").usePaginationFragment(m,f);var r=a.hasNext,s=a.loadNext,t=a.data,u=function(){if(!r||p)return;q(!0);s(n,{onComplete:function(){return q(!1)}})};f=function(){if(!r)return null;return p?j.jsx("div",{className:"x1tciwvm x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",children:j.jsx(c("GeoSpinner.react"),{})}):j.jsx(c("BizKitContextCardMoreSection.react"),{className:"x1tciwvm x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",onClick:u})};a=function(){var a,b;a=t==null?void 0:(a=t.business_actions)==null?void 0:(a=a.actions)==null?void 0:a.edges;var d=t==null?void 0:(b=t.shared_attributes)==null?void 0:b.page_contact_id;if(a==null||a.length===0)return j.jsx("div",{className:"x17ddzgb x14vqqas",children:j.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",isDisabled:!0,display:"block",children:h._("u65e0u8ba2u5355u53efu663eu793au3002")})});b=a.map(function(a,b){var f;return((f=a.node)==null?void 0:f.wrapper)!=null&&j.jsx(c("BizKitContextCardActivityListItem.react"),{data:a.node.wrapper,pageID:e,surface:o,pageContactID:d,onShowContactCardTosModal:g,shouldShowContactCardTos:i,shouldRemovePageVCDependency:!0,userID:t==null?void 0:(f=t.fb_attributes)==null?void 0:f.user_id,toggleShouldShowOmnichannelEmailDetailView:function(){},setActiveEmailThread:function(){}},"order_"+b)});return j.jsx("div",{className:"x14vqqas",children:b})};return j.jsxs("div",{className:b,children:[j.jsx(c("LeftRight.react"),{children:j.jsx(c("GeoHeading.react"),{level:3,children:h._("u8ba2u5355")})}),j.jsxs(k,{fallback:j.jsx(c("GeoSpinner.react"),{center:!0}),children:[a(),f()]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerShopifyHomePage.react",["fbt","CommerManagerShopAdsUpsellBanner.react","CommerceManagerAppContext","CommerceManagerContext","CommerceManagerEarlyWarningMessageBanner.react","CommerceManagerErrorMessageBanner.react","CommerceManagerFederalInformNotificationContainer.react","CommerceManagerGeoPage.react","CommerceManagerHomePageModals.react","CommerceManagerHooks","CommerceManagerImpressionLoggingContainer.react","CommerceManagerShopifyHomePageLeftColumn.react","CommerceManagerShopifyHomePageQuery.graphql","CommerceManagerShopifyHomePageRightColumn.react","CommerceManagerSuspense.react","CommerceManagerUsabilitySurveyContainer.react","CommerceManagerUsabilitySurveyUtils","GeoGlimmer.react","GeoPageHeader.react","GeoPageItem.react","GeoPageSection.react","Link.react","nullthrows","react","useCommerceManagerMessaging","withSellerFunnelLogging"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useContext,l=i!==void 0?i:i=b("CommerceManagerShopifyHomePageQuery.graphql");function m(){return j.jsx(c("GeoPageHeader.react"),{description:h._("u7535u5546u7ba1u7406u5de5u5177u53efu4ee5u5e2eu52a9u8865u5145 Shopify u7684u529fu80fdu3002u4f60u53efu4ee5u5728u8fd9u91ccu8bbfu95eeu9ad8u7ea7u7684u5e97u94fau8bbeu7f6eu548cu66f4u6df1u5165u7684u5ba2u6237u5206u6790u3002{=m2}",[h._implicitParam("=m2",j.jsx(c("Link.react"),{href:"https://www.facebook.com/business/help/search/?query=Shopify",target:"_blank",children:h._("u8be6u7ec6u4e86u89e3")}))]),heading:h._("u6982u89c8")})}m.displayName=m.name+" [from "+f.id+"]";function n(){var a,b,e,f=k(c("CommerceManagerContext")),g=c("nullthrows")(k(c("CommerceManagerAppContext")));g=g.catalogOrCmsID;a=(a=f.showShopCompleteDialog)!=null?a:!1;f=(f=f.showTOSModal)!=null?f:!1;g=d("CommerceManagerHooks").useCommerceManagerQuery(l,{catalogOrCmsID:g},{fetchPolicy:"network-only"});var h=c("useCommerceManagerMessaging")(g.configuration,["ERROR"]);h=h.length>0;b=(b=(b=g.configuration)==null?void 0:(b=b.commerceAccount)==null?void 0:(b=b.federal_inform_compliance_status)==null?void 0:b.show_warning_banner)!=null?b:!1;e=(e=(e=g.configuration)==null?void 0:(e=e.commerceAccount)==null?void 0:(e=e.commerce_features)==null?void 0:e.should_show_early_warning_banner)!=null?e:!1;b=b?j.jsx(c("CommerceManagerSuspense.react"),{oncall:"commerce_platform_onboarding_experiences",children:j.jsx(c("CommerceManagerFederalInformNotificationContainer.react"),{})}):null;var i=null;h?i=j.jsx(c("CommerceManagerSuspense.react"),{oncall:"cxp_guidance",children:j.jsx(c("CommerceManagerErrorMessageBanner.react"),{configuration:g.configuration})}):e&&(i=j.jsx(c("CommerceManagerSuspense.react"),{oncall:"cxp_guidance",children:j.jsx(c("CommerceManagerEarlyWarningMessageBanner.react"),{configuration:g.configuration})}));h=j.jsx(c("CommerceManagerSuspense.react"),{oncall:"cxp_guidance",children:j.jsx(c("CommerManagerShopAdsUpsellBanner.react"),{configuration:g.configuration})});e=j.jsxs(j.Fragment,{children:[b,h]});return j.jsxs(c("CommerceManagerImpressionLoggingContainer.react"),{flowName:"COMMERCE_MANAGER_SHOPIFY_HOME_TAB",oncall:"cxp_interfaces",children:[j.jsx(c("CommerceManagerHomePageModals.react"),{showShopCompleteDialog:a,showTOSModal:f}),j.jsx(c("CommerceManagerGeoPage.react"),{actionBanner:e,columns:12,guidanceBanner:i,header:j.jsx(m,{}),children:j.jsxs(c("GeoPageSection.react"),{children:[d("CommerceManagerUsabilitySurveyUtils").isUsabilitySurveyEnabled()?j.jsx(c("CommerceManagerUsabilitySurveyContainer.react"),{columns:12}):null,j.jsx(c("CommerceManagerShopifyHomePageLeftColumn.react"),{columns:8}),j.jsx(c("CommerceManagerShopifyHomePageRightColumn.react"),{columns:4})]})})]})}n.displayName=n.name+" [from "+f.id+"]";function o(){var a=j.jsx(c("CommerceManagerGeoPage.react"),{columns:12,grow:"fill",header:j.jsx(m,{}),children:j.jsx(c("GeoPageSection.react"),{grow:"fill",children:j.jsx(c("GeoPageItem.react"),{columns:12,grow:"fill",children:j.jsx(c("GeoGlimmer.react"),{})})})});return j.jsx(c("CommerceManagerSuspense.react"),{flowStep:o.name,loadingComponent:a,oncall:"cxp_interfaces",children:j.jsx(n,{})})}o.displayName=o.name+" [from "+f.id+"]";a=d("withSellerFunnelLogging").withSellerFunnelLogging(o,{flow:"shopify-home-page"});e=a;g["default"]=e}),98);
-----
CommerceManagerHomePage.react",["fbt","CatalogContext","CommerceManagerAppContext","CommerceManagerContext","CommerceManagerGeoPage.react","CommerceManagerHomePageBannersContainer.react","CommerceManagerHomePageErrorsOrEarlyWarnings.react","CommerceManagerHomePageInformAct.react","CommerceManagerHomePageLeftColumnOptimisticLoad.react","CommerceManagerHomePageModals.react","CommerceManagerHomePageRightColumnOptimisticLoad.react","CommerceManagerHomePageSectionSuspenseWrapper.react","CommerceManagerImpressionLoggingContainer.react","CommerceManagerSuspense.react","CommerceManagerUsabilitySurveyContainer.react","CommerceManagerUsabilitySurveyUtils","CurrentBusinessUser","GeoGlimmer.react","GeoPageHeader.react","GeoPageItem.react","GeoPageSection.react","nullthrows","react","useCatalogImpressionsLogging","withSellerFunnelLogging"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useContext,k=116;function l(){return i.jsx(c("GeoPageHeader.react"),{"data-testid":void 0,heading:h._("u6982u89c8")})}l.displayName=l.name+" [from "+f.id+"]";function m(a){var b,e;d("useCatalogImpressionsLogging").useCatalogImpressionLogging({category:"home_page",event:"flow_start"});a=j(c("CatalogContext"));var f=c("nullthrows")(j(c("CommerceManagerAppContext")));f=f.catalogOrCmsID;var g=j(c("CommerceManagerContext"));b=(b=g.showShopCompleteDialog)!=null?b:!1;g=(g=g.showTOSModal)!=null?g:!1;e=(e=c("CurrentBusinessUser").business_id)!=null?e:a==null?void 0:a.ownerBusinessID;return i.jsxs(c("CommerceManagerImpressionLoggingContainer.react"),{flowName:"COMMERCE_MANAGER_HOME_TAB",oncall:"cxp_interfaces",children:[i.jsx(c("CommerceManagerHomePageModals.react"),{showShopCompleteDialog:b,showTOSModal:g}),i.jsx(c("CommerceManagerGeoPage.react"),{actionBanner:i.jsx(c("CommerceManagerHomePageInformAct.react"),{catalogOrCmsID:f}),columns:12,"data-testid":void 0,guidanceBanner:i.jsx(d("CommerceManagerHomePageSectionSuspenseWrapper.react").CommerceManagerHomePageSectionSuspenseWrapper,{columns:12,height:0,children:i.jsx(c("CommerceManagerHomePageErrorsOrEarlyWarnings.react"),{catalogOrCmsID:f})}),header:i.jsx(l,{}),children:i.jsxs(c("GeoPageSection.react"),{children:[i.jsx(d("CommerceManagerHomePageSectionSuspenseWrapper.react").CommerceManagerHomePageSectionSuspenseWrapper,{columns:12,height:0,children:d("CommerceManagerUsabilitySurveyUtils").isUsabilitySurveyEnabled()?i.jsx(c("CommerceManagerUsabilitySurveyContainer.react"),{columns:12}):null}),i.jsx(d("CommerceManagerHomePageSectionSuspenseWrapper.react").CommerceManagerHomePageSectionSuspenseWrapper,{columns:12,height:k,children:i.jsx(c("CommerceManagerHomePageBannersContainer.react"),{catalogOrCmsID:f})}),i.jsx(c("CommerceManagerHomePageLeftColumnOptimisticLoad.react"),{catalogOrCmsID:f,columns:8}),i.jsx(c("CommerceManagerHomePageRightColumnOptimisticLoad.react"),{businessID:e,catalogOrCmsID:f,columns:4})]})})]})}m.displayName=m.name+" [from "+f.id+"]";function n(a){var b=i.jsx(c("CommerceManagerGeoPage.react"),{columns:12,"data-testid":void 0,grow:"fill",header:i.jsx(l,{}),children:i.jsx(c("GeoPageSection.react"),{grow:"fill",children:i.jsx(c("GeoPageItem.react"),{columns:12,grow:"fill",children:i.jsx(c("GeoGlimmer.react"),{})})})});return i.jsx(c("CommerceManagerSuspense.react"),{flowStep:n.name,loadingComponent:b,oncall:"cxp_interfaces",children:i.jsx(m,babelHelpers["extends"]({},a))})}n.displayName=n.name+" [from "+f.id+"]";a=d("withSellerFunnelLogging").withSellerFunnelLogging(n,{flow:"home-page"});b=a;g["default"]=b}),98);
-----
CommerceManagerHomePageModals.react",["CatalogContext","CommerceManagerAppContext","CommerceManagerHomePageModalsQuery.graphql","CommerceManagerHomeShopCompleteModal.react","CommerceManagerHooks","CommerceManagerImpressionLoggingContainer.react","CommerceManagerIntegrityEnforcementFBT","CommerceManagerMarketplaceUpsellModal","CommerceManagerShopsDisabledModalV2.react","CommerceManagerSuspense.react","CommerceMerchantIntegrityStatus","CurrentBusinessUser","GeoPageSpinner.react","JSResource","isEmpty","keyMirror","lazyLoadComponent","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");a=d("react");var j=a.Suspense,k=a.useContext,l=a.useState,m=c("lazyLoadComponent")(c("JSResource")("CommerceManagerTOSModal.react").__setRef("CommerceManagerHomePageModals.react")),n=c("keyMirror")(c("CommerceMerchantIntegrityStatus")),o=h!==void 0?h:h=b("CommerceManagerHomePageModalsQuery.graphql");function p(a){var b,e;a=babelHelpers["extends"]({},a);var f=c("nullthrows")(k(c("CommerceManagerAppContext")),"Failed to retrieve Catalog/CMS ID from CM App Context");f=f.catalogOrCmsID;var g=d("CommerceManagerHooks").useCommerceManagerQuery(o,{catalogOrCmsID:f},{fetchPolicy:"network-only"}),h=k(c("CatalogContext"));b=(b=c("CurrentBusinessUser").business_id)!=null?b:h==null?void 0:h.ownerBusinessID;h=(h=g.configuration)==null?void 0:h.commerceAccount;e=(e=g.configuration)==null?void 0:e.catalogAccount;var p=!c("isEmpty")(h==null?void 0:h.commerceMerchantStateInfo);e=(e=e==null?void 0:(e=e.catalogItems)==null?void 0:e.count)!=null?e:0;e=e>0;p=a.showShopCompleteDialog&&p;var q=l((h==null?void 0:h.merchantIntegrityStatus)===n.DISABLED),r=q[0],s=q[1];q=l(a.showShopCompleteDialog&&!p);p=q[0];var t=q[1];q=l(a.showTOSModal);a=q[0];var u=q[1];q=h==null?void 0:h.id;return q==null?null:a?i.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:q},flowName:"COMMERCE_MANAGER_HOME_TAB",flowStep:"accept_tos_modal_view",oncall:"commerce_platform_onboarding_experiences",children:i.jsx(c("CommerceManagerSuspense.react"),{oncall:"commerce_platform_seller_onboarding",children:i.jsx(m,{isShown:a,onHide:function(){return u(!1)}})})}):i.jsxs(i.Fragment,{children:[i.jsx(c("CommerceManagerMarketplaceUpsellModal"),{accountID:q,configuration:g.configuration}),p?i.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{additionalData:{cmsID:q},flowName:"ONBOARDING_COMPLETE_MODAL",flowStep:"onboarding_complete_modal_view",oncall:"commerce_platform_onboarding_experiences",children:i.jsx(j,{fallback:i.jsx(c("GeoPageSpinner.react"),{variant:"overlay"}),children:i.jsx(c("CommerceManagerHomeShopCompleteModal.react"),{businessID:b,catalogHasInventory:e,catalogOrCmsID:f,onHide:function(){return t(!1)}})})}):null,r===!0?i.jsx(c("CommerceManagerShopsDisabledModalV2.react"),{body:d("CommerceManagerIntegrityEnforcementFBT").EnforcementOverlayCardBodyShop(h==null?void 0:h.displayName),businessID:b,onHide:function(){return s(!1)}}):null]})}p.displayName=p.name+" [from "+f.id+"]";function q(a){return i.jsx(c("CommerceManagerSuspense.react"),{flowStep:q.name,oncall:"cxp_interfaces",children:i.jsx(p,babelHelpers["extends"]({},a))})}q.displayName=q.name+" [from "+f.id+"]";g["default"]=q}),98);
-----
CommerceManagerTOSModal.react",["fbt","ix","CommerceManagerContext","CommerceManagerTOSModalMutation.graphql","CommerceManagerTOSModalQuery.graphql","CommerceManagerTOSStringUtils","GeoButton.react","GeoHeading.react","GeoIllustrationModal.react","GeoModalFooter.react","GeoSection.react","GeoText.react","GeoToast.react","Image.react","RelayHooks","nullthrows","react","useGeoToaster"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=d("react"),m=d("react").useContext,n={body:{marginTop:"xw7yly9",marginBottom:"x1yztbdb",$$css:!0}},o=j!==void 0?j:j=b("CommerceManagerTOSModalMutation.graphql"),p=k!==void 0?k:k=b("CommerceManagerTOSModalQuery.graphql");function a(a){var b=a.isShown,e=a.onHide;a=m(c("CommerceManagerContext"));a=a.cmsID;var f=c("nullthrows")(a);a=d("RelayHooks").useLazyLoadQuery(p,{cmsID:f},{fetchPolicy:"store-or-network"});var g=d("RelayHooks").useMutation(o),j=g[0];g=g[1];var k=c("useGeoToaster")(),q=k.add;k=function(){j({variables:{input:{commerce_account_id:f}},onCompleted:function(a){q(l.jsx(c("GeoToast.react"),{heading:d("CommerceManagerTOSStringUtils").getTermsAcceptedMessage(),status:"success"})),e()},onError:function(a){q(l.jsx(c("GeoToast.react"),{heading:(a=a.description)!=null?a:"",status:"error"}));e()}})};a=(a=a.cms)==null?void 0:(a=a.missing_tos_info)==null?void 0:a.deadline_in_seconds;var r=d("CommerceManagerTOSStringUtils").getTOSAcceptanceDescription(a);a=d("CommerceManagerTOSStringUtils").getTOSAcceptanceTitle(a);return l.jsx(c("GeoIllustrationModal.react"),{footer:l.jsx(c("GeoModalFooter.react"),{primaryButton:l.jsx(c("GeoButton.react"),{isDisabled:g,label:h._("u662fuff0cu6211u540cu610f"),variant:"primary",onClick:k})}),heading:a,image:l.jsx(c("Image.react"),{src:i("278532"),width:440}),isShown:b,onHide:e,children:l.jsxs(c("GeoSection.react"),{children:[l.jsx(c("GeoHeading.react"),{level:2,children:a}),l.jsx(c("GeoText.react"),{xstyle:n.body,children:r})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerTOSModalQuery.graphql",["CommerceManagerTOSModalQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"cmsID"}],c=[{kind:"Variable",name:"id",variableName:"cmsID"}],d={alias:null,args:null,concreteType:"CMSMissingTermsAndConditions",kind:"LinkedField",name:"missing_tos_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"deadline_in_seconds",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CommerceManagerTOSModalQuery",selections:[{alias:"cms",args:c,concreteType:"CommerceMerchantSettings",kind:"LinkedField",name:"fetch__CommerceMerchantSettings",plural:!1,selections:[d],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CommerceManagerTOSModalQuery",selections:[{alias:"cms",args:c,concreteType:"CommerceMerchantSettings",kind:"LinkedField",name:"fetch__CommerceMerchantSettings",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("CommerceManagerTOSModalQuery_facebookRelayOperation"),metadata:{},name:"CommerceManagerTOSModalQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
CommerceManagerTOSModalMutation.graphql",["CommerceManagerTOSModalMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"CommerceAccountAcceptTOSMutationResponse",kind:"LinkedField",name:"commerce_accept_seller_tos",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"commerce_account_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CommerceManagerTOSModalMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CommerceManagerTOSModalMutation",selections:c},params:{id:b("CommerceManagerTOSModalMutation_facebookRelayOperation"),metadata:{},name:"CommerceManagerTOSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
CommerceManagerTOSModalQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5661577503911571"}),null);
-----
CommerceManagerTOSModalMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8140372942702165"}),null);
-----
AudienceManagerChrome.react",["cx","fbt","invariant","AdsAMAccountAcceptedTosAddAction","AdsAMAmStartInitAction","AdsAMAudienceDeleteStartAction","AdsAMAudienceGraphAPI","AdsAMAudienceStore","AdsAMAudienceUtils","AdsAMConnectConfig","AdsAMCreateAudienceServerActions","AdsAMSharingAgreementAcceptedAction","AdsAMViewActions","AdsAMViewClearErrorsAction","AdsAMViewCloseMoveAdAccoutToBusinessDialogAction","AdsAMViewCloseRegularEditDialogAction","AdsAMViewCloseShareAudienceDialogAction","AdsAMViewCloseUserTOSDialogAction","AdsAMViewShowBulkDeleteDialogAction","AdsAMViewShowBulkShareAudienceDialogAction","AdsAMViewShowCreateCaDialogAction","AdsAMViewShowDeleteAudienceDialogAction","AdsAMViewShowLookalikeDialogAction","AdsAMViewShowMoveAdAccoutToBusinessDialogAction","AdsAMViewShowOptOutDialogAction","AdsAMViewShowPixelDialogAction","AdsAMViewShowRegularEditDialogAction","AdsAMViewShowSavedAudienceCreateDialogAction","AdsAMViewShowSavedAudienceEditDialogAction","AdsAMViewShowSavedTargetSpecDialogAction","AdsAMViewShowShareAudienceDialogAction","AdsAMViewShowWcaDialogAction","AdsAMViewStore","AdsAMViewToggleSpecialAdAudienceDialogAction","AdsAMViewUpdateFilterSetAction","AdsAccountStore","AdsAccountUtils","AdsAttachAdAccountToBusinessManagerNotice.react","AdsAudienceDataSourceUtils","AdsAudienceDetailActions","AdsAudienceDetailStore","AdsAudienceManagerFilterBarConstants","AdsAudienceManagerFilterBarUtils","AdsAudienceManagerGlobalNavigation.react","AdsAudienceManagerUnloadAction","AdsAudienceOverlapActions","AdsAudienceRuleBuilderSpecUtil","AdsAudienceSharingStore","AdsCollapseSideNavAction","AdsCommonAdvertisablePagesVideosStore","AdsCreateAudienceActionSelector.react","AdsCreateSpecialAdAudienceBlockingDialog.react","AdsCustomAudienceType","AdsDataSourceTables","AdsErrorBoundary.react","AdsExpandSideNavAction","AdsFluxContainer","AdsGenericFilter","AdsGenericFilterField","AdsGenericFilterSet","AdsGenericFilterSetUtil","AdsGeodesicAdoption","AdsInterfacesLogger","AdsMgmtPerfScenarioController","AdsMoveAdAccountToBusinessViewStage","AdsNewIDs","AdsPerfScenarios","AdsPixelDialogStore","AdsPixelDialogTypes","AdsPixelTableSettingProvider","AdsPixelViewActions","AdsSavedAudienceActions","AdsSavedAudienceLoggingEvents","AdsSideNavUIStateDataProvider","AdsSignalsBlockLongRetentionOfflineCustomAudienceConfig","AdsStaticGuidanceCard.react","AdsTargetingAudienceEditorGKSelectors","AdsTargetingAudienceManagerVLALMegaphoneNUXContainer.react","AdsTargetingAudienceShowCreateLalAudienceDialogDataAction","AdsTargetingBootloadDialog.react","AdsTargetingDeprecatedOptionsWarningBanner.react","AdsTargetingEUPrivacyDirectiveImpactBanner.react","AdsTargetingFallbackErrorNotice.react","AdsTargetingIosSignalLossSelectors","AdsTargetingNonprofitCAAnnouncementBanner.react","AdsTargetingOfflineRetentionChangeNotice.react","AdsTargetingOffsiteSignalsConsolidationUtils","AdsTargetingSpecialAdAudienceDeprecationBanner","AdsUnifiedAudienceManagerFilterBar.react","AssetLibrarySearchStore.brands","AudienceDetailsPaneGeodesicContainer.react","AudienceManagerActionSelector.react","AudienceManagerBulkDeleteDialog.react","AudienceManagerBulkDeleteSTSDialog.react","AudienceManagerColumnSelector.react","AudienceManagerCreateAudienceFlatDialogContainer.react","AudienceManagerDeleteAudiencesButton.react","AudienceManagerDeleteDialog.react","AudienceManagerEditAudiencesButton.react","AudienceManagerErrorTypes","AudienceManagerErrorView.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerLoggingUtils","AudienceManagerLookalikeDialogGKSelectors","AudienceManagerOptOutDialog.react","AudienceManagerPerfScenarioLoggingUtils","AudienceManagerPlacement","AudienceManagerSearchBar.react","AudienceManagerSelectableTable.react","AudienceManagerShareAudiencesButton.react","AudienceManagerStages","AudienceManagerTransactionDialog.react","AudienceManagerUIConstants","AudienceSharingHideAgreementDataAction","BUIButton.react","BUICard.react","BUIDetailPaneActions.brands","BUIGuidanceCard.react","BUIGuidanceCardContent.react","BUIGuidanceCardContentText.react","BUIGuidanceCardHeader.react","BUISection.react","BUIText.react","BootloadedComponent.react","CometPlaceholder.react","CustomAudienceDataSourceSubType","CustomAudienceTosUtils","CustomAudienceUtils","DialogActions.brands","FlexLayout.react","GeoHeading.react","GeoSpinner.react","GeoToast.react","GeoToolbar.react","GeoToolbarFill.react","JSResource","LookalikeLocationsNeededBanner.react","LookalikeLocationsNotNeededAudienceManagerBanner.react","PartnerIntegrationDialogLoggingScopesAction","SUIBusinessThemeContainer.react","ScrollableArea.react","ShareAudienceConstants","URI","UnifiedAudiencesManagerAudienceDetailPaneAction","UnifiedAudiencesManagerAudienceDetailPaneConstants","adsAccountGK","adsSignalSourceContainersSelector","emptyFunction","gkx","ifRequired","immutable","joinClasses","lazyLoadComponent","performanceNow","react","setupScenarioStart"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=d("react");a=d("react").PureComponent;var l=c("AdsPixelTableSettingProvider").toFluxStore(),m=c("lazyLoadComponent")(c("JSResource")("AdsPELocalScopeSelectorContainer.react").__setRef("AudienceManagerChrome.react")),n="basecode",o=47,p=35,q=42,r=720,s=112,t=284,u=14,v=300,w=56,x=c("AdsSideNavUIStateDataProvider").toFluxStore();b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
-----
BizMarketingMessagingToSModalLoggingUtils",["BusinessMessagingReengagementMarketingMessageTosModalClickFalcoEvent","BusinessMessagingReengagementMarketingMessageTosModalFailureFalcoEvent","BusinessMessagingReengagementMarketingMessageTosModalImpressionFalcoEvent","BusinessMessagingReengagementMarketingMessageTosModalSubmitFalcoEvent","BusinessMessagingReengagementMarketingMessageTosModalSuccessFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d){c("BusinessMessagingReengagementMarketingMessageTosModalImpressionFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{entry_point:b,session_id:d},event_location:"bizweb_messaging_reengagement",page_id:a}})}function b(a,b,d,e){c("BusinessMessagingReengagementMarketingMessageTosModalClickFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{button_type:e,entry_point:b,session_id:d},event_location:"bizweb_messaging_reengagement",page_id:a}})}function d(a,b,d,e){c("BusinessMessagingReengagementMarketingMessageTosModalSubmitFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{entry_point:b,mutation_name:e,session_id:d},event_location:"bizweb_messaging_reengagement",page_id:a}})}function e(a,b,d,e){c("BusinessMessagingReengagementMarketingMessageTosModalSuccessFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{entry_point:b,mutation_name:e,session_id:d},event_location:"bizweb_messaging_reengagement",page_id:a}})}function f(a,b,d,e,f,g){c("BusinessMessagingReengagementMarketingMessageTosModalFailureFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{entry_point:b,error_message:f,error_stack_trace:g,mutation_name:e,session_id:d},event_location:"bizweb_messaging_reengagement",page_id:a}})}g.logImpressionEvent=a;g.logClickButtonEvents=b;g.logSubmitMutation=d;g.logSuccessMutation=e;g.logFailureMutation=f}),98);
-----
BusinessCometMarketingMessagesOnboardingModal.react",["ix","BizMarketingMessagingFbtUtils","BizMarketingMessagingPageOnboardingMutation","BizMarketingMessagingToSModalLoggingUtils","BusinessCometMarketingMessagesOnboardingModalValuePropItem.react","GeoBaseText.react","GeoBlockingDialog.react","GeoButton.react","GeoDivider.react","GeoFlexbox.react","GeoModalFooter.react","GeoScrollableArea.react","IPB4BImage.react","XBizSuiteControllerRouteBuilder","geoMargin","nullthrows","react","useBizKitPageNullable","useBizMarketingMountOnce","useBizWebRouteDispatcher","useBoolean","uuid"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j={root:{height:"x5yr21d",$$css:!0}};function a(a){a=a.isOnboarded;var b=c("useBoolean")(!1),e=b.setTrue;b=b.value;var f=c("useBoolean")(!1),g=f.setTrue;f=f.value;var k=c("nullthrows")(c("useBizKitPageNullable")(),"pageID is null"),l=c("useBizWebRouteDispatcher")(),m=d("BizMarketingMessagingPageOnboardingMutation").useBizMarketingMessagingPageOnboardingMutation(),n=m[0],o=c("uuid")(),p="overview";m=d("BizMarketingMessagingFbtUtils").getOnboardingModalValueProps();m=m.map(function(a,b){return i.jsx(c("BusinessCometMarketingMessagesOnboardingModalValuePropItem.react"),babelHelpers["extends"]({},a),b)});var q=function(){e(),l(c("XBizSuiteControllerRouteBuilder").buildURL({rest:"home"}))};c("useBizMarketingMountOnce")(function(){d("BizMarketingMessagingToSModalLoggingUtils").logImpressionEvent(k,p,o)});return i.jsx(c("GeoBlockingDialog.react"),{"data-testid":void 0,footer:i.jsx(c("GeoModalFooter.react"),{primaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:b||!f,isLoading:b,label:d("BizMarketingMessagingFbtUtils").getOnboardingModalAgreeButtonLabel(),onClick:function(){d("BizMarketingMessagingToSModalLoggingUtils").logClickButtonEvents(k,p,o,"agree"),e(),d("BizMarketingMessagingToSModalLoggingUtils").logSubmitMutation(k,p,o,"biz_marketing_messaging_onboard"),n({onCompleted:function(a){d("BizMarketingMessagingToSModalLoggingUtils").logSuccessMutation(k,p,o,"biz_marketing_messaging_onboard")},onError:function(a){d("BizMarketingMessagingToSModalLoggingUtils").logFailureMutation(k,p,o,"biz_marketing_messaging_onboard",a==null?void 0:a.message,a==null?void 0:a.stack)},variables:{input:{page_id:k}}})},variant:"primary"}),secondaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:b,isLoading:b,label:d("BizMarketingMessagingFbtUtils").getOnboardingModalNotNowButtonLabel(),onClick:function(){d("BizMarketingMessagingToSModalLoggingUtils").logClickButtonEvents(k,p,o,"not_now"),q()},variant:"default"})}),heading:d("BizMarketingMessagingFbtUtils").getOnboardingModalHeader(),image:i.jsx(c("IPB4BImage.react"),{src:h("206164"),width:208}),isShown:!a,onHide:q,orientation:"vertical",children:i.jsxs(c("GeoScrollableArea.react"),{direction:"vertical",onScrollBottom:g,xstyle:j.root,children:[i.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").horiz16,children:[i.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",children:d("BizMarketingMessagingFbtUtils").getOnboardingModalDescription()}),m]}),i.jsx(c("GeoDivider.react"),{xstyle:[c("geoMargin").top8,c("geoMargin").bottom16]}),i.jsx(c("GeoFlexbox.react"),{xstyle:c("geoMargin").horiz16,children:i.jsx(c("GeoBaseText.react"),{color:"value","data-testid":void 0,size:"accent",children:d("BizMarketingMessagingFbtUtils").getOnboardingModalLegalContent()})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessMessagingReengagementMarketingMessageTosModalSuccessFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("3673");c=b("FalcoLoggerInternal").create("business_messaging_reengagement_marketing_message_tos_modal_success",a);e.exports=c}),null);
-----
BusinessMessagingReengagementMarketingMessageTosModalClickFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("3669");c=b("FalcoLoggerInternal").create("business_messaging_reengagement_marketing_message_tos_modal_click",a);e.exports=c}),null);
-----
BusinessMessagingReengagementMarketingMessageTosModalSubmitFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("3672");c=b("FalcoLoggerInternal").create("business_messaging_reengagement_marketing_message_tos_modal_submit",a);e.exports=c}),null);
-----
BusinessMessagingReengagementMarketingMessageTosModalFailureFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("3670");c=b("FalcoLoggerInternal").create("business_messaging_reengagement_marketing_message_tos_modal_failure",a);e.exports=c}),null);
-----
BusinessMessagingReengagementMarketingMessageTosModalImpressionFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("3671");c=b("FalcoLoggerInternal").create("business_messaging_reengagement_marketing_message_tos_modal_impression",a);e.exports=c}),null);
-----
BusinessCometCreatorMarketplaceOnboardingLogger",["BusinessCometCreatorMarketplaceLoggingHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useMemo,i=function(){function a(a){this.log=a}var b=a.prototype;b.onboardingLandingPageVisited=function(){this.log({event:"onboarding_landing_page_visited",event_type:"impression"})};b.landingPageGetStartedButtonClicked=function(a,b){this.log({event:"landing_page_get_started_button_clicked",event_type:"click",extra_fields:JSON.stringify({component:b,variant:a})})};b.ineligibleForOnboardingPageRendered=function(){this.log({event:"ineligible_for_onboarding",event_type:"impression"})};b.ineligibleForUsingPlatformPageRendered=function(){this.log({event:"ineligible_for_using_platform",event_type:"impression"})};b.undefinedAccessRestrictionsPageRendered=function(){this.log({event:"undefined_access_restrictions",event_type:"impression"})};b.noAccessPageRendered=function(){this.log({event:"unknown_error_while_onboarding",event_type:"impression"})};b.accountSelectionPageRendered=function(){this.log({event:"account_selection_page",event_type:"impression"})};b.singleAccountRegistrationPageRendered=function(){this.log({event:"single_account_registration_page",event_type:"impression"})};b.noEligibleAccountsPageRendered=function(){this.log({event:"no_eligible_account_page",event_type:"impression"})};b.ineligiblePageSwitchAccountButtonClicked=function(a,b){this.log({event:"ineligible_page_switch_account_button_clicked",event_type:"click",extra_fields:JSON.stringify({component:b,variant:a})})};b.ineligiblePageRegisterInterestButtonClicked=function(a,b){this.log({event:"ineligible_page_register_interest_button_clicked",event_type:"click",extra_fields:JSON.stringify({component:b,variant:a})})};b.acceptTOSModalDisplayed=function(){this.log({event:"tos_displayed",event_type:"impression"})};b.acceptTOSButtonClicked=function(){this.log({event:"tos_accept_button_clicked",event_type:"click"})};b.cancelTOSButtonClicked=function(){this.log({event:"tos_cancel_button_clicked",event_type:"click"})};b.getStartedModalDisplayed=function(){this.log({event:"tos_success_message_displayed",event_type:"impression"})};b.getStartedButtonClicked=function(){this.log({event:"tos_success_message_get_started_button_clicked",event_type:"click"})};b.epdConsentPageDisplayed=function(){this.log({event:"epd_consent_page_displayed",event_type:"click"})};b.epdConsentModalDisplayed=function(){this.log({event:"epd_consent_modal_displayed",event_type:"click"})};b.epdConsentButtonClicked=function(){this.log({event:"epd_consent_button_clicked",event_type:"click"})};return a}();function a(){var a=d("BusinessCometCreatorMarketplaceLoggingHooks").useFBSEventLogging();return h(function(){return new i(a)},[a])}g.usePaidPartnershipsOnboardingLogger=a}),98);
-----
BusinessCometCreatorMarketplaceOnboardingModalView.react",["$InternalEnum","BusinessCometCreatorMarketplaceOnboardingEPDModalView.react","BusinessCometCreatorMarketplaceOnboardingGetStartedModalView.react","BusinessCometCreatorMarketplaceOnboardingToSModalView.react","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useCallback,j=e.useState,k=b("$InternalEnum")({ToS:0,EPD:1,FinishOnboarding:2});function a(a){var b=a.bcpBrandProfileID,d=a.isShown,e=a.onCancel,f=a.onSuccess,g=c("gkx")("6707");a=j(k.ToS);var l=a[0],m=a[1];a=i(function(){e(),m(k.ToS)},[m,e]);var n=i(function(){g?m(k.EPD):m(k.FinishOnboarding)},[m,g]),o=i(function(){m(k.FinishOnboarding)},[m]),p=i(function(){f(),m(k.ToS)},[f]);return h.jsxs(h.Fragment,{children:[l===k.ToS&&h.jsx(c("BusinessCometCreatorMarketplaceOnboardingToSModalView.react"),{bcpBrandProfileID:b,isShown:d,onClose:a,onSuccess:n}),l===k.EPD&&h.jsx(c("BusinessCometCreatorMarketplaceOnboardingEPDModalView.react"),{bcpBrandProfileID:b,isShown:d,onClose:a,onSuccess:o}),l===k.FinishOnboarding&&h.jsx(c("BusinessCometCreatorMarketplaceOnboardingGetStartedModalView.react"),{bcpBrandProfileID:b,isShown:d,onClose:a,onSuccess:p})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometCreatorMarketplaceOnboardingToSModalView.react",["fbt","BCPBrandTOSSitevarConfig","BusinessCometCreatorMarketplaceOnboardingLogger","BusinessCometCreatorMarketplaceOnboardingSomethingWentWrongModalView.react","BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation.graphql","CometRelay","CreatorMarketplaceMBSTOSContainer.react","GeoButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useCallback,l=e.useEffect,m=e.useState,n=i!==void 0?i:i=b("BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation.graphql");function a(a){var b=a.bcpBrandProfileID,e=a.isShown,f=a.onClose,g=a.onSuccess;a=m(!1);var h=a[0],i=a[1];a=m(!1);var l=a[0],p=a[1];a=d("CometRelay").useMutation(n);var q=a[0],r=d("BusinessCometCreatorMarketplaceOnboardingLogger").usePaidPartnershipsOnboardingLogger();a=k(function(){r.acceptTOSButtonClicked(),i(!0),q({onCompleted:function(a){i(!1),p(!1),g()},onError:function(a){i(!1),p(!0)},variables:{bcp_brand_id:b}})},[b,i,q,g,p,r]);var s=k(function(){f(),p(!1),i(!1),r.cancelTOSButtonClicked()},[f,p,i,r]);return j.jsxs(j.Fragment,{children:[!l&&j.jsx(o,{isLoading:h,isShown:e,onAccept:a,onHide:s}),l&&j.jsx(c("BusinessCometCreatorMarketplaceOnboardingSomethingWentWrongModalView.react"),{isLoading:h,isShown:e,onHide:s,onRetry:a})]})}a.displayName=a.name+" [from "+f.id+"]";function o(a){var b=a.isLoading,e=a.isShown,f=a.onAccept;a=a.onHide;var g=d("BusinessCometCreatorMarketplaceOnboardingLogger").usePaidPartnershipsOnboardingLogger(),i=c("BCPBrandTOSSitevarConfig").actual_version;i=c("BCPBrandTOSSitevarConfig").version_to_cms_id_mapping[i];l(function(){e&&g.acceptTOSModalDisplayed()},[e,g]);return j.jsx(c("GeoModal.react"),{footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:b,isLoading:b,label:h._("Accept"),onClick:f,variant:"primary"}),secondaryButton:j.jsx(c("GeoButton.react"),{isDisabled:b,label:h._("Cancel"),onClick:a,variant:"default"})}),header:j.jsx(c("GeoModalHeader.react"),{heading:h._("Review and accept our Terms of Service to get started")}),isShown:e,onHide:a,width:740,children:j.jsx(c("GeoSection.react"),{children:j.jsx(c("CreatorMarketplaceMBSTOSContainer.react"),{cmsID:i.toString(),onLoad:function(){}})})})}o.displayName=o.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation.graphql",["BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"bcp_brand_id"}],c=[{alias:null,args:[{fields:[{kind:"Variable",name:"bcp_brand_id",variableName:"bcp_brand_id"}],kind:"ObjectValue",name:"data"}],concreteType:"PAYBrandProfileResponsePayload",kind:"LinkedField",name:"bcp_brand_accept_tos_on_mbs",plural:!1,selections:[{alias:null,args:null,concreteType:"PAYBCPBrandProfile",kind:"LinkedField",name:"bcp_brand_profile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation",selections:c},params:{id:b("BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation_facebookRelayOperation"),metadata:{},name:"BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BusinessCometCreatorMarketplaceOnboardingToSModalViewMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5795849613815164"}),null);
-----
OCDevCenterTOSModal.react",["fbt","GeoCheckboxInput.react","GeoDivider.react","GeoModalCard.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","OCDevCenterTOSModalMutation.graphql","OCDevCenterTOSModal_termsOfService.graphql","OCDevUIDraftJSRenderer.react","OCDevUIForm.react","OCDevUIFormSubmitButton.react","RelayHooks","nullthrows","react","regeneratorRuntime","useOCDevManageCommitMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react"),l=d("react").useState;function a(a){var e=a.agreeText,f=a.heading,g=a.organizationID;a=a.termsOfService;var m=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevCenterTOSModal_termsOfService.graphql"),a);a=l(!1);var n=a[0];a=a[1];var o=c("useOCDevManageCommitMutation")(j!==void 0?j:j=b("OCDevCenterTOSModalMutation.graphql"));function p(){var a;return b("regeneratorRuntime").async(function(d){while(1)switch(d.prev=d.next){case 0:d.next=2;return b("regeneratorRuntime").awrap(o({input:{organization_id:(a=g)!=null?a:"",tos_type:c("nullthrows")(m.tos_type)}},{closeModalOnSuccess:!0}));case 2:case"end":return d.stop()}},null,this)}return k.jsx(c("OCDevUIForm.react"),{onSubmit:p,children:k.jsx(c("GeoModalCard.react"),{footer:k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("OCDevUIFormSubmitButton.react"),{forceDisabled:!n}),startContent:k.jsx(c("GeoCheckboxInput.react"),{label:h._("I Agree"),value:n,onChange:a})}),header:k.jsx(c("GeoModalHeader.react"),{heading:f}),children:k.jsx(c("GeoSection.react"),{children:k.jsxs("div",{className:"xuyqlj2",children:[k.jsx(c("OCDevUIDraftJSRenderer.react"),{draftJSString:(p=m.content_draft_js)!=null?p:""}),k.jsx(c("GeoDivider.react"),{}),k.jsx(c("GeoText.react"),{children:e})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevCenterTOSModalMutation.graphql",["OCDevCenterTOSModalMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCDevCenterTOSModalMutation",selections:[{alias:null,args:c,concreteType:"TosAcceptResponsePayload",kind:"LinkedField",name:"tos_accept",plural:!1,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{alias:null,args:null,concreteType:"OrganizationToApplicationsConnection",kind:"LinkedField",name:"applications",plural:!1,selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"nodes",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"OCDevCenterOculusStartApplyFormView_application"}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCDevCenterTOSModalMutation",selections:[{alias:null,args:c,concreteType:"TosAcceptResponsePayload",kind:"LinkedField",name:"tos_accept",plural:!1,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{alias:null,args:null,concreteType:"OrganizationToApplicationsConnection",kind:"LinkedField",name:"applications",plural:!1,selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[d,{alias:null,args:[{kind:"Literal",name:"latest_only",value:!0},{kind:"Literal",name:"types",value:["DEVELOPER_HLA"]}],concreteType:"OrganizationSignedLegalAgreementsConnection",kind:"LinkedField",name:"signed_legal_agreements",plural:!1,selections:[{alias:null,args:null,concreteType:"TermsOfService",kind:"LinkedField",name:"nodes",plural:!0,selections:[d],storageKey:null}],storageKey:"signed_legal_agreements(latest_only:true,types:["DEVELOPER_HLA"])"},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},d,{alias:null,args:[{kind:"Literal",name:"first",value:1}],concreteType:"ApplicationDeveloperStartSubmissionsConnection",kind:"LinkedField",name:"developer_start_submissions",plural:!1,selections:[{alias:null,args:null,concreteType:"DeveloperStartSubmission",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"business_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"business_website",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"email_address",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"funding_explanation",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"funding_or_revenue_amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_received_outside_funding",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"phone_number",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"preferred_engine",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"project_description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"project_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"prototype_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_city",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_country_code",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_street",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_street_two",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_address_zip",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shirt_size",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"target_launch_date",storageKey:null},d],storageKey:null}],storageKey:"developer_start_submissions(first:1)"}],storageKey:null}],storageKey:null},d],storageKey:null}],storageKey:null}]},params:{id:b("OCDevCenterTOSModalMutation_oculusRelayOperation"),metadata:{},name:"OCDevCenterTOSModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCDevCenterOculusStartApplyFormView.react",["fbt","ix","GeoButton.react","GeoHeading.react","OCDevCenterNarrowInnerLayout.react","OCDevCenterOculusStartApplyForm.react","OCDevCenterOculusStartApplyFormView_application.graphql","OCDevCenterOculusStartApplyFormView_hardwareRequestFormConfigs.graphql","OCDevCenterOculusStartApplyFormView_termsOfService.graphql","OCDevCenterOculusStartApplyFormView_user.graphql","OCDevCenterPage.react","OCDevCenterTOSModal.react","OCDevManageEmptyState.react","OCDevUISpacedLayout.react","RelayHooks","react","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n=d("react");e=d("react");var o=e.useCallback,p=e.useEffect;function a(a){var e=a.application,f=a.hardwareRequestFormConfigs,g=a.termsOfService;a=a.user;var q=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevCenterOculusStartApplyFormView_application.graphql"),e);e=d("RelayHooks").useFragment(k!==void 0?k:k=b("OCDevCenterOculusStartApplyFormView_hardwareRequestFormConfigs.graphql"),f);var r=d("RelayHooks").useFragment(l!==void 0?l:l=b("OCDevCenterOculusStartApplyFormView_termsOfService.graphql"),g);f=d("RelayHooks").useFragment(m!==void 0?m:m=b("OCDevCenterOculusStartApplyFormView_user.graphql"),a);g=c("useOCDevUIModal")();var s=g.openModal,t=o(function(){var a;s(n.jsx(c("OCDevCenterTOSModal.react"),{agreeText:h._("I have read and agree to Oculusu2019s Privacy Policy, Terms of Service, and the terms of this program as stated above. If you do not agree to any of the terms of this program and Use Terms or do not have authority to bind the identified Organization, then {underlined_do_not} click "I Agree" and {underlined_do_not} submit any program application to Oculus.",[h._param("underlined_do_not",n.jsx("u",{children:"do not"}))]),heading:h._("Developer Hardware Loan Agreement"),organizationID:(a=q.organization)==null?void 0:a.id,termsOfService:r}))},[(a=q.organization)==null?void 0:a.id,s,r]),u=((a=(g=q.organization)==null?void 0:(a=g.signed_legal_agreements)==null?void 0:(g=a.nodes)==null?void 0:g.length)!=null?a:0)!==0;p(function(){u||t()},[u,t]);g=h._("Oculus Start Application");return n.jsx(c("OCDevCenterPage.react"),{pageTitle:g,children:n.jsx(c("OCDevCenterNarrowInnerLayout.react"),{children:n.jsxs(c("OCDevUISpacedLayout.react"),{children:[n.jsx(c("GeoHeading.react"),{level:1,children:g}),u?n.jsx(c("OCDevCenterOculusStartApplyForm.react"),{application:q,hardwareRequestFormConfigs:e,user:f}):n.jsx(c("OCDevManageEmptyState.react"),{action:n.jsx(c("GeoButton.react"),{label:h._("View Agreement"),variant:"primary",onClick:t}),heading:h._("Developer Hardware Loan Agreement Required"),icon:i("1571610")})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevCenterTOSModal_termsOfService.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterTOSModal_termsOfService",selections:[{alias:null,args:null,kind:"ScalarField",name:"content_draft_js",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tos_type",storageKey:null}],type:"TermsOfService",abstractKey:null};e.exports=a}),null);
-----
OCDevCenterTOSModalMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4193358817433159"}),null);
-----
OCDevCenterOculusStartApplyFormView_termsOfService.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterOculusStartApplyFormView_termsOfService",selections:[{args:null,kind:"FragmentSpread",name:"OCDevCenterTOSModal_termsOfService"}],type:"TermsOfService",abstractKey:null};e.exports=a}),null);
-----
BizKitContextCardActivityListItem.react",["cx","BIZInboxClientLogger","BizInboxStateContext","BizKitContextCardActivityListItemActionsMenu.react","BizKitContextCardActivityListItemDetail.react","BizKitContextCardActivityListItemIcon.react","BizKitContextCardActivityListItem_mbsBusinessAssets.graphql","BizKitContextCardActivityListItem_node.graphql","BizKitContextCardActivityListItem_page.graphql","GeoText.react","LeftRight.react","RelayHooks","ShimButton.react","Timestamp.react","formatDate","getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=d("react");e=d("react");var m=e.useContext,n=e.useEffect,o=e.useState,p=i!==void 0?i:i=b("BizKitContextCardActivityListItem_node.graphql"),q=l.createRef();function a(a){var e,f=o(!1),g=f[0],h=f[1],i=d("RelayHooks").useFragment(p,a.data);f=a.onShowContactCardTosModal;var r=a.shouldShowContactCardTos,s=d("RelayHooks").useFragment(j!==void 0?j:j=b("BizKitContextCardActivityListItem_page.graphql"),a.page),t=d("RelayHooks").useFragment(k!==void 0?k:k=b("BizKitContextCardActivityListItem_mbsBusinessAssets.graphql"),a.mbsBusinessAssets),u=d("getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils").getIsDependencyOfRemovePageDependencyEnabledToolForContactCard(a.surface);u=u?t:s;s=(u==null?void 0:(t=u.timelineActionsCheck)==null?void 0:t.showTimelineActions)===!0;u=(t=(u=i.contact_action)==null?void 0:u.descriptions.map(function(a){return(a=a.text)!=null?a:""}).filter(function(a){return a!==""}))!=null?t:[];t=m(c("BizInboxStateContext"));var v=t.defaultCurrency,w=t.offsiteEmailAccountID;t=((t=i.contact_action)==null?void 0:t.data_silo)!=="SP_SILO_BUSINESS";var x=((e=i.contact_action)==null?void 0:e.type)==="SEND_EMAIL",y=(e=i.contact_action)==null?void 0:e.interaction_id;n(function(){x&&d("BIZInboxClientLogger").logEmailInContactCardImpression(a.pageID,y,w)},[x,y,w,a.pageID,a.pageContactID]);return l.jsx("div",{onMouseEnter:function(){q.current==null&&h(!0)},onMouseLeave:function(){h(!1)},children:l.jsxs(c("ShimButton.react"),{className:"_5-vm"+(((e=i.contact_action)==null?void 0:(e=e.story)==null?void 0:e.id)?" _cxw":""),onClick:function(){if(a.selectInteraction!=null){a.selectInteraction(i);if(x){var b;d("BIZInboxClientLogger").logEmailInContactCardClick(a.pageID,(b=i.contact_action)==null?void 0:b.interaction_id,w);a.toggleShouldShowOmnichannelEmailDetailView(!0);a.setActiveEmailThread({threadID:(b=(b=i.contact_action)==null?void 0:b.interaction_id)!=null?b:"",title:(b=(b=i.contact_action)==null?void 0:(b=b.subtitle)==null?void 0:b.text)!=null?b:""})}}},children:[l.jsxs(c("LeftRight.react"),{children:[l.jsxs(l.Fragment,{children:[l.jsx(c("BizKitContextCardActivityListItemIcon.react"),{isCorporationActivity:t}),l.jsx(c("GeoText.react"),{children:(e=(e=i.contact_action)==null?void 0:(t=e.title)==null?void 0:t.text)!=null?e:""})]}),s&&a.pageID!=null&&l.jsx(c("BizKitContextCardActivityListItemActionsMenu.react"),{actionType:(t=i.contact_action)==null?void 0:t.type,defaultCurrency:v,descriptions:u,dialogRef:q,interactionID:(e=i.contact_action)==null?void 0:e.interaction_id,invoiceID:(s=i.contact_action)==null?void 0:s.invoice_id,pageID:a.pageID,surface:a.surface,pageContactID:a.pageContactID,onShowContactCardTosModal:f,shouldShowContactCardTos:r,shouldShow:g,userID:a.userID})]}),l.jsxs("div",{className:"xlg2ruo x1e56ztr x1mnrxsn x1gslohp",children:[((t=i.contact_action)==null?void 0:t.style)==="DETAIL"&&l.jsx(c("BizKitContextCardActivityListItemDetail.react"),{actionType:(v=i.contact_action)==null?void 0:v.type,clickUrl:(e=i.contact_action)==null?void 0:e.click_url,descriptions:u,imageUrl:(s=i.contact_action)==null?void 0:s.image_url,interactionID:(g=i.contact_action)==null?void 0:g.interaction_id,invoiceID:(t=i.contact_action)==null?void 0:t.invoice_id,isInKBankRollout:a.isInKBankRollout==!0,pageID:a.pageID,onShowContactCardTosModal:f,shouldShowContactCardTos:r,subtitle:(v=i.contact_action)==null?void 0:(e=v.subtitle)==null?void 0:e.text,timestamp:(u=i.contact_action)==null?void 0:u.timestamp,userID:a.userID}),l.jsx("div",{className:"x17ddzgb x1d52u69",children:l.jsx(c("Timestamp.react"),{text:c("formatDate")((s=i.contact_action)==null?void 0:s.timestamp,"D M j, Y g:ia"),time:Number((g=i.contact_action)==null?void 0:g.timestamp)})})]})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivityListItemDetail.react",["ix","BizInboxFormBuilderClientLogger","BizKitFormBuilderCompletedDetailsModalLazyLoad.react","GeoLink.react","Image.react","JSResource","LeftRight.react","MNCommerceDialogStateActions","MessengerAdsConversionFunnelTypedLogger","MessengerConversionEvent","PagesPlatformBookingMessageViewer","ServicesAppointmentDialogRoot.react","ServicesAppointmentManagementDialogEnum","emptyFunction","formatDate","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useState,k=c("lazyLoadComponent")(c("JSResource")("MNCommerceOrderDetailsDialogContainer.react").__setRef("BizKitContextCardActivityListItemDetail.react")),l=c("lazyLoadComponent")(c("JSResource")("OrderShippedDetailDialog.react").__setRef("BizKitContextCardActivityListItemDetail.react")),m=c("lazyLoadComponent")(c("JSResource")("FBPaymentsReceiptDialog.react").__setRef("BizKitContextCardActivityListItemDetail.react")),n={referrerUIComponent:"composer",referrerUISurface:"message"};function a(a){var b=j(!1),e=b[0],g=b[1];if(a.descriptions.length===0)return null;function o(){var b=a.onShowContactCardTosModal,f=a.shouldShowContactCardTos,h=function(){if(f)return b();g(!0)},j=function(){g(!1)},o=null,p=a.subtitle;if(a.clickUrl!=null)p=i.jsx(c("GeoLink.react"),{href:a.clickUrl,target:"_blank",children:a.subtitle});else if(a.actionType!=null)switch(a.actionType){case"APPOINTMENT_BOOKED":a.invoiceID!=null&&a.pageID!=null&&(p=i.jsx(c("GeoLink.react"),{onClick:function(){h(),new(c("MessengerAdsConversionFunnelTypedLogger"))().setName(c("MessengerConversionEvent").PAGE_CLICK_APPOINTMENT_BOOKED_CTA).setPageID(a.pageID).setConsumerID(a.userID).log()},children:a.subtitle}),o=i.jsx(c("ServicesAppointmentDialogRoot.react"),{causalElementRef:c("emptyFunction"),dialogType:c("ServicesAppointmentManagementDialogEnum").VIEW_DETAILS,onToggle:g,pageID:a.pageID,referrerData:n,requestID:a.invoiceID,showMessengerButton:!1,shown:e,userID:a.userID,viewer:c("PagesPlatformBookingMessageViewer").ADMIN}));break;case"FORM_SUBMITTED":if(a.interactionID!=null&&a.pageID!=null){var q;p=i.jsx(c("GeoLink.react"),{onClick:function(){var b;g(!0);d("BizInboxFormBuilderClientLogger").logFormBuilderActivityClickAction((b=a.pageID)!=null?b:"",(b=a.interactionID)!=null?b:"")},children:a.subtitle});o=i.jsx(i.Suspense,{fallback:null,children:i.jsx(c("BizKitFormBuilderCompletedDetailsModalLazyLoad.react"),{isShown:e,onHide:function(b){g(!1);if(b!==!0){d("BizInboxFormBuilderClientLogger").logFormBuilderCompletedViewCancelAction((b=a.pageID)!=null?b:"",(b=a.interactionID)!=null?b:"")}},submittedTime:c("formatDate")(a.timestamp,"M j, Y"),formConversationInstanceId:(q=a.interactionID)!=null?q:""})})}break;case"PAYMENT_RECEIVED":a.invoiceID!=null&&(p=i.jsx(c("GeoLink.react"),{onClick:function(){h(),new(c("MessengerAdsConversionFunnelTypedLogger"))().setName(c("MessengerConversionEvent").PAGE_CLICK_PAYMENT_RECEIVED_CTA).setPageID(a.pageID).setConsumerID(a.userID).log()},children:a.subtitle}),o=i.jsx(i.Suspense,{fallback:null,children:i.jsx(m,{actorID:a.pageID,onDialogToggle:g,receiptClientType:"pages_commerce",receiptID:a.invoiceID})}));break;case"ORDER_SHIPPED":a.invoiceID!=null&&a.pageID!=null&&(p=i.jsx(c("GeoLink.react"),{onClick:h,children:a.subtitle}),o=i.jsx(i.Suspense,{fallback:null,children:i.jsx(l,{invoiceID:a.invoiceID,isInKBankRollout:a.isInKBankRollout,onToggle:j,pageID:a.pageID})}));break;case"ORDER_PLACED":if(a.invoiceID!=null){q=function(){d("MNCommerceDialogStateActions").showDialog(k,{receiptID:a.invoiceID})};p=i.jsx(c("GeoLink.react"),{onClick:q,children:a.subtitle})}break;case"SEND_EMAIL":p=i.jsx(c("GeoLink.react"),{children:a.subtitle});break;default:break}return i.jsxs("div",{className:"x117nqv4 xahult9 xsgj6o6 x1gslohp x6ikm8r x10wlt62 xlyipyv xuxw1ft",children:[p,e&&o]})}o.displayName=o.name+" [from "+f.id+"]";function p(){return a.descriptions.map(function(b,d){var e=b;a.clickUrl!=null&&(e=i.jsx(c("GeoLink.react"),{href:a.clickUrl,target:"_blank",children:b}));return i.jsx("div",{className:"x17ddzgb x6ikm8r x10wlt62 xlyipyv x16dsc37 xuxw1ft",children:e},d)})}function q(){if(a.actionType==null)return null;var b={width:"56px",height:"56px",borderRadius:"4px",marginBottom:"2px",marginLeft:"16px",marginRight:"8px"};if(a.imageUrl!=null)return a.clickUrl!=null?i.jsx("a",{href:a.clickUrl,target:"_blank",children:i.jsx(c("Image.react"),{src:a.imageUrl,style:b})}):i.jsx(c("Image.react"),{src:a.imageUrl,style:b});b=null;switch(a.actionType){case"APPOINTMENT_BOOKED":b=h("994823");break;case"FORM_SUBMITTED":b=h("1845289");break;case"ORDER_SHIPPED":b=h("802395");break;case"ORDER_PLACED":b=h("1059944");break;case"SEND_EMAIL":b=h("222123");break;case"PAYMENT_RECEIVED":case"BUSINESS_ORDER":b=h("994823");break;default:break}return b===null?null:i.jsx("div",{className:"x1q8sqs3 x1lcm9me x1yr5g0i xrt01vj x10y3i5r xxk0z11 xjpr12u x1d52u69 x1emribx xyamay9 x1pi30zi x1l90r2v x1swvt13 xvy4d1p",children:i.jsx(c("Image.react"),{src:b})})}q.displayName=q.name+" [from "+f.id+"]";return i.jsxs(c("LeftRight.react"),{direction:"left",children:[q(),i.jsxs(i.Fragment,{children:[o(),p()]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivityListItemActionsMenu.react",["cx","fbt","ix","BUIContextualLayer.react","BUIMenu.react","BizKitContextCardUtils","CTMEPDChecker","ContactGraphDeleteActivityCancelFlowFalcoEvent","ContactGraphDeleteActivityClickFalcoEvent","ContactGraphDeleteActivityDeleteFalcoEvent","GeoIcon.react","JSResource","PagesInboxThreadActionSystemDispatcher","PagesManagerInboxDeleteActivityMutation","ServicesAppointmentManagementDialogEnum","ThreadActionSystemTimelineActionFalcoEvent","emptyFunction","fbicon","lazyLoadComponent","nullthrows","promiseDone","react"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=d("react");b=d("react");var l=b.useEffect,m=b.useRef,n=b.useState,o=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxThreadActionSystemOrderPlacedDialog.react").__setRef("BizKitContextCardActivityListItemActionsMenu.react")),p=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxThreadActionSystemAppointmentDialog").__setRef("BizKitContextCardActivityListItemActionsMenu.react")),q=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxOrderShippedActivitySendDetailsDialog.react").__setRef("BizKitContextCardActivityListItemActionsMenu.react")),r=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxDeleteActivityConfirmationDialog.react").__setRef("BizKitContextCardActivityListItemActionsMenu.react"));function s(a){return a==="APPOINTMENT_BOOKED"||a==="ORDER_PLACED"||a==="ORDER_SHIPPED"||a==="PAYMENT_RECEIVED"}function t(a){var b=a.actionType,d=a.hasDetails,e=a.pageID,f=a.timelineActionType,g=a.userID;if(g==null||e==null)return;var h=u(b);if(h==null)return;c("ThreadActionSystemTimelineActionFalcoEvent").log(function(){return{activity_type:h,consumer_id:g,has_details:d,page_id:e,timeline_action_type:f}})}function u(a){if(a==null)return null;switch(a){case"PAYMENT_RECEIVED":return"PAYMENT_RECEIVED";case"APPOINTMENT_BOOKED":return"APPOINTMENT_BOOKED";case"ORDER_PLACED":return"ORDER_PLACED";case"ORDER_SHIPPED":return"ORDER_SHIPPED";default:return null}}function v(a){if(a.actionType==null)return null;var b=function(){t({actionType:a.actionType,hasDetails:!1,pageID:a.pageID,timelineActionType:"send_details",userID:a.userID})};switch(a.actionType){case"APPOINTMENT_BOOKED":return k.jsx(k.Suspense,{fallback:null,children:k.jsx(p,{dialogType:c("ServicesAppointmentManagementDialogEnum").CREATE_ANOTHER_APPOINTMENT,interactionID:a.interactionID,onToggle:a.onHide,onUpdateCompleted:function(a,d){a&&(c("PagesInboxThreadActionSystemDispatcher").dispatch(!0),b())},pageID:a.pageID,shown:!0,userID:a.userID})});case"ORDER_PLACED":return a.interactionID==null||a.userID==null?null:k.jsx(k.Suspense,{fallback:null,children:k.jsx(o,{defaultCurrency:a.defaultCurrency,entryPoint:"activity_actions_menu",interactionID:a.interactionID,onHide:a.onHide,onSuccess:b,pageID:a.pageID,userID:a.userID})});case"ORDER_SHIPPED":return a.pageID==null||a.userID==null?null:k.jsx(k.Suspense,{fallback:null,children:k.jsx(q,{onHide:a.onHide,onSuccess:b,pageID:a.pageID,userID:a.userID})});default:return null}}v.displayName=v.name+" [from "+f.id+"]";function w(a){var b=a.descriptions.length!==0,e=function(){c("ContactGraphDeleteActivityDeleteFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(a.surface),page_id:a.pageID,page_contact_id:a.pageContactID,event_data:{activity_id:a.interactionID},is_server_log:!1}}),d("PagesManagerInboxDeleteActivityMutation").commit({consumerID:a.userID,pageID:a.pageID,interactionID:c("nullthrows")(a.interactionID)},{onSuccess:function(){c("PagesInboxThreadActionSystemDispatcher").dispatch(!0),t({actionType:a.actionType,hasDetails:b,pageID:a.pageID,timelineActionType:"delete",userID:a.userID})},onFailure:c("emptyFunction")})},f=function(){c("ContactGraphDeleteActivityCancelFlowFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(a.surface),page_id:a.pageID,page_contact_id:a.pageContactID,event_data:{activity_id:a.interactionID},is_server_log:!1}})};return b&&a.actionType==="APPOINTMENT_BOOKED"?a.pageID==null||a.invoiceID==null?null:k.jsx(k.Suspense,{fallback:null,children:k.jsx(p,{dialogType:c("ServicesAppointmentManagementDialogEnum").ADMIN_CANCEL,interactionID:a.interactionID,onToggle:a.onHide,onUpdateCompleted:function(a,b){a&&e()},pageID:a.pageID,requestID:a.invoiceID,shown:!0,userID:a.userID})}):k.jsx(k.Suspense,{fallback:null,children:k.jsx(r,{onDeleteConfirm:e,onCancelConfirm:f,onHide:a.onHide})})}w.displayName=w.name+" [from "+f.id+"]";function x(a){if(a.actionType==null)return null;var b=function(){t({actionType:a.actionType,hasDetails:!0,pageID:a.pageID,timelineActionType:"edit",userID:a.userID})};switch(a.actionType){case"APPOINTMENT_BOOKED":return k.jsx(k.Suspense,{fallback:null,children:k.jsx(p,{dialogType:c("ServicesAppointmentManagementDialogEnum").EDIT,interactionID:a.interactionID,onToggle:a.onHide,onUpdateCompleted:function(a,d){a&&(c("PagesInboxThreadActionSystemDispatcher").dispatch(!0),b())},pageID:a.pageID,requestID:a.invoiceID,shown:!0,userID:a.userID})});case"ORDER_PLACED":return a.interactionID==null||a.userID==null||a.invoiceID==null?null:k.jsx(k.Suspense,{fallback:null,children:k.jsx(o,{defaultCurrency:a.defaultCurrency,entryPoint:"activity_actions_menu",interactionID:a.interactionID,invoiceID:a.invoiceID,onHide:a.onHide,onSuccess:b,pageID:a.pageID,userID:a.userID})});default:return null}}x.displayName=x.name+" [from "+f.id+"]";function a(a){var b=m(null),e=n(!1),f=e[0],g=e[1];e=n(!1);var h=e[0],o=e[1];e=n(!1);var p=e[0],q=e[1];e=n(!1);var r=e[0],t=e[1];e=n(!1);e[0];var u=e[1];c("promiseDone")(d("CTMEPDChecker").isCTMEPDAffected(a.pageID,a.userID).then(function(a){return u(a)}));var y=a.onShowContactCardTosModal,z=a.shouldShowContactCardTos;e=n(a.shouldShow);var A=e[0],B=e[1];l(function(){B(a.shouldShow&&!h&&!p&&!r)},[a.shouldShow,h,p,r]);l(function(){A||g(!1)},[A]);var C=m(null),D=function(a){var b;a.target instanceof Node&&!((b=C.current)==null?void 0:b.contains==null?void 0:b.contains(a.target))&&g(!1)};l(function(){f&&document.addEventListener("click",D,!1);return function(){document.removeEventListener("click",D,!1)}},[f]);if(!s(a.actionType))return null;e=function(b){if(a.interactionID==null)return;var e=function(){t(!0),c("ContactGraphDeleteActivityClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(a.surface),page_id:a.pageID,page_contact_id:a.pageContactID,event_data:{activity_id:a.interactionID},is_server_log:!1}})};b.push({type:"item",label:i._("u5220u9664"),onClick:e})};var E=[];e(E);return k.jsxs("div",{className:""+(A?"":" xlshs6z"),children:[k.jsxs("div",{onClick:function(){if(z)return y();g(!f)},ref:b,role:"none",children:[k.jsx("div",{className:"_9ml3",children:k.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(j("484386"),16)})}),f&&b.current!=null&&k.jsx(c("BUIContextualLayer.react"),{align:"end",context:b.current,children:k.jsx("div",{ref:C,children:k.jsx(c("BUIMenu.react"),{items:E})})})]}),h&&k.jsx("div",{ref:a.dialogRef,children:k.jsx(v,{actionType:a.actionType,defaultCurrency:a.defaultCurrency,interactionID:a.interactionID,onHide:function(){return o(!1)},pageID:a.pageID,userID:a.userID})}),r&&k.jsx("div",{ref:a.dialogRef,children:k.jsx(w,{actionType:a.actionType,descriptions:a.descriptions,interactionID:a.interactionID,invoiceID:a.invoiceID,onHide:function(){return t(!1)},pageID:a.pageID,userID:a.userID,surface:a.surface,pageContactID:a.pageContactID})}),p&&k.jsx("div",{ref:a.dialogRef,children:k.jsx(x,{actionType:a.actionType,defaultCurrency:a.defaultCurrency,interactionID:a.interactionID,invoiceID:a.invoiceID,onHide:function(){return q(!1)},pageID:a.pageID,userID:a.userID})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CRMClientDetailsNote.react",["cx","fbt","ActionList.react","BizInboxMultiAdminFbtUtils","BizKitContextCardUtils","CRMClientDetailsNote_note.graphql","CRMEventsLogger","ClientIDs","ContactGraphDeleteNoteClickFalcoEvent","ContactGraphDeleteNoteDeleteFalcoEvent","ContactGraphEditNoteCancelFlowFalcoEvent","ContactGraphEditNoteClickFalcoEvent","ContactGraphEditNoteSaveFalcoEvent","ExpandableText.react","GeoBaseText.react","GeoBinaryInput.react","GeoButton.react","GeoCancelButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoSelector.react","GeoSelectorItem.react","GeoTextArea.react","GeoTooltip.react","Link.react","RelayModern","Timestamp.react","formatDate","geoMargin","isTruthy","nullthrows","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l="customer_details_view";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
BizKitContextCardLabel.react",["BIZInboxClientLogger","BizKitContextCardUtils","ContactGraphSearchByLabelClickFalcoEvent","ContactGraphUnsetLabelFromContactClickFalcoEvent","ContextCardLabelGetTokenLabelColor","FlexLayout.react","GeoCheckboxInput.react","GeoTokenLabel.react","MetaSymbolMonochromatic.react","PageCommItemFolder","PageContactLabelCreationSource","getIsMultiSelectLocalScopeSelector.entrypointutils","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState;function a(a){var b=i(!1),e=b[0],f=b[1],g=a.onRemoveLabel,j=a.onDismissLabel,k=a.id,l=a.name,m=a.color,n=a.contentType,o=a.createName,p=a.isSuggestedLabel,q=a.onAddorCreateLabel,r=a.onSelectLabel;b=a.readOnly;var s=a.dataSilo,t=a.labelSource,u=a.pageID,v=a.onShowContactCardTosModal,w=a.shouldShowContactCardTos,x=a.pageContactID,y=a.surface,z=function(){f(!0),q&&o!=null&&q(o,p,null,m,n)},A=null,B=function(){if(r&&!p){if(y!==void 0){c("ContactGraphSearchByLabelClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(y),page_id:u,page_contact_id:x,event_data:{label_ids:[k],label_search_result:[""]},is_server_log:!1}});if(u!=null){var a=t===c("PageCommItemFolder").INTENT_AUTO_LABEL?"ml_intent_label":"label";d("BIZInboxClientLogger").logFilterApply(u,d("BizKitContextCardUtils").getPageCommPlatformType(y),"contact_card",a)}d("BIZInboxClientLogger").logLabelSearchClick(u,d("BizKitContextCardUtils").getPageCommPlatformType(y),null,l,k,c("PageContactLabelCreationSource")[String(t)],null)}r(d("getIsMultiSelectLocalScopeSelector.entrypointutils").getIsMultiSelectLocalScopeSelector()?{id:k,color:m,name:l,pageID:u,data_silo:s,label_source:t}:{id:k,color:m,name:l,data_silo:s,label_source:t})}};a=a.dataSilo==="DC_SILO_CORPORATION";b=!a&&(g||j)&&!b;var C=function(){if(y!==void 0){c("ContactGraphUnsetLabelFromContactClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(y),page_id:u,page_contact_id:x,event_data:{label_name:l,label_id:k},is_server_log:!1}});var a=String(t);d("BIZInboxClientLogger").logThreadLabelDelete(u,d("BizKitContextCardUtils").getPageCommPlatformType(y),m,l,k,c("PageContactLabelCreationSource")[a])}w?v():g!=null&&g(k,l)},D=function(){j!=null&&j(k,l,m,n!=null?n:"")};p===!0&&(A=h.jsx("div",{className:"x1nx2rwh",children:h.jsx(c("GeoCheckboxInput.react"),{"data-testid":void 0,value:e,label:"Hidden Label",isLabelHidden:!0,onChange:w?v:z})}));e=null;a&&(e=h.jsx(c("MetaSymbolMonochromatic.react"),{size:12}));z=p?"context_card_suggested_lables":"contact_labels";return h.jsxs(c("FlexLayout.react"),{align:"center",children:[A,h.jsx("div",{className:"x1iorvi4 x150jy0e xjkvuk6 x1e558r4","data-testid":void 0,children:h.jsx(c("GeoTokenLabel.react"),{clearLabel:"clearLabel",color:d("ContextCardLabelGetTokenLabelColor").getTokenLabelColor(m,a),label:l,media:e,onClear:b===!0?p?D:C:null,onClick_DEPRECATED:B})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardLabelsList.react",["BizKitContextCardLabel.react","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.allLabels,d=a.onRemoveLabel,e=a.onSelectLabel,f=a.readOnly,g=a.pageID,i=a.onShowContactCardTosModal,j=a.shouldShowContactCardTos,k=a.pageContactID,l=a.surface;a=null;b&&b.length>0&&(a=b.map(function(a,b){return a&&h.jsx("div",{className:"x1rg5ohu",children:h.jsx(c("BizKitContextCardLabel.react"),{color:c("nullthrows")(a.color),name:c("nullthrows")(a.name),id:c("nullthrows")(a.id),onRemoveLabel:d,onSelectLabel:e,isSuggestedLabel:!1,readOnly:f,dataSilo:a.data_silo,labelSource:a.label_source,pageID:g,onShowContactCardTosModal:i,shouldShowContactCardTos:j,pageContactID:k,surface:l})},c("nullthrows")(a.id)+"_"+b)}));return h.jsx("div",{className:"x14vqqas",children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardNotesSection.react",["fbt","BizInboxStateContext","BizKitContextCardLinkButton.react","BizKitContextCardMoreSection.react","BizKitContextCardNotesSection_notes.graphql","BizKitContextCardUtils","CRMClientDetailsNote.react","CRMEventsLogger","ContactGraphAddNoteClickFalcoEvent","ContactGraphSeeMoreNoteClickFalcoEvent","ContextCardNotesUtils","GeoBaseText.react","GeoHeading.react","GeoSpinner.react","JSResource","LeftRight.react","RelayHooks","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useContext,l=e.useEffect,m=e.useState,n=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardAddNoteSection.react").__setRef("BizKitContextCardNotesSection.react")),o=i!==void 0?i:i=b("BizKitContextCardNotesSection_notes.graphql"),p=10;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=a.className,f=a.pageID,g=a.notes,i=a.contactID,q=a.contactIdentity,r=a.surface,s=a.readOnly,t=a.onShowContactCardTosModal,u=a.shouldShowContactCardTos,v=m(!1),w=v[0],x=v[1];v=m(!1);var y=v[0],z=v[1];v=k(c("BizInboxStateContext"));v=v.isWAOnly;g=d("RelayHooks").usePaginationFragment(o,g);var A=g.hasNext,B=g.loadNext,C=g.data,D=C==null?void 0:(g=C.shared_attributes)==null?void 0:g.page_contact_id,E=function(a){d("ContextCardNotesUtils").onDeleteNote(b,a,r)},F=function(a,c){d("ContextCardNotesUtils").onUpdateNote(b,a,c,r)};g=function(c){var e;d("ContextCardNotesUtils").onAddNote(b,C==null?void 0:(e=C.business_attributes)==null?void 0:(e=e.admin_notes)==null?void 0:(e=e.notes_list)==null?void 0:e.__id,c,i,q,r);d("CRMEventsLogger").log(a.pageID,"click_add_note","add_note_button","bizkit_context_card",D)};var G=function(){var a;a=C==null?void 0:(a=C.business_attributes)==null?void 0:(a=a.admin_notes)==null?void 0:(a=a.notes_list)==null?void 0:a.edges;if(a==null||a.length===0)return j.jsx("div",{className:"x17ddzgb x14vqqas",children:j.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",isDisabled:!0,display:"block","data-testid":void 0,children:h._("u8ffdu8e2au91cdu8981u7684u5ba2u6237u4e92u52a8u3002")})});a=a.map(function(a){return a.node?j.jsx(c("CRMClientDetailsNote.react"),{note:a.node,onDelete:E,onEdit:F,pageID:f,surface:r,pageContactID:D,readOnly:s,onShowContactCardTosModal:t,shouldShowContactCardTos:u},a.node.id):null});return j.jsx("div",{className:"x14vqqas",children:a})},H=function(){if(!A||w)return;x(!0);B(p,{onComplete:function(){x(!1)}})},I=function(){if(!A)return null;return w?j.jsx("div",{className:"x1tciwvm x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",children:j.jsx(c("GeoSpinner.react"),{})}):j.jsx(c("BizKitContextCardMoreSection.react"),{className:"x1tciwvm x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",onClick:function(){c("ContactGraphSeeMoreNoteClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(r),page_id:f,page_contact_id:D,event_data:{},is_server_log:!1}}),H()}})};l(function(){z(!1)},[a.contactID]);return j.jsxs("div",{className:e,"data-testid":void 0,children:[j.jsxs(c("LeftRight.react"),{children:[j.jsx(c("GeoHeading.react"),{level:3,children:h._("u5907u6ce8")}),!y&&!v&&j.jsx(c("BizKitContextCardLinkButton.react"),{readOnly:s,label:h._("u6dfbu52a0u5907u6ce8"),onClick:function(){c("ContactGraphAddNoteClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(r),page_id:f,page_contact_id:D,event_data:{},is_server_log:!1}}),u?t():z(!0)},"data-testid":void 0})]}),y&&j.jsx(j.Suspense,{fallback:null,children:j.jsx(n,{isShown:y,setIsShown:z,onAddNote:g})}),G(),I()]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardLabelsSection.react",["fbt","BizInboxOffsiteEmailTourRefs","BizInboxStateContext","BizKitContextCardLabelsList.react","BizKitContextCardLabelsSection_contactLabels.graphql","BizKitContextCardLinkButton.react","BizKitContextCardManageLabelsSection.react","BizKitContextCardNewLabelSection.react","BizKitContextCardSectionHeader.react","BizKitContextCardSuggestedLabelsSection.react","BizKitContextCardTooltipConsts","BizKitContextCardUtils","ContactGraphManageLabelsClickFalcoEvent","ContextCardLabelUtils","LeftRight.react","RelayHooks","filterNulls","gkx","immutable","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useContext,l=e.useState,m=i!==void 0?i:i=b("BizKitContextCardLabelsSection_contactLabels.graphql");function a(a){var b,e,f,g,i=d("RelayHooks").useRelayEnvironment(),n=a.businessAssets,o=a.className,p=a.contactIdentity,q=a.contactLabels,r=a.pageID,s=a.onSelectLabel,t=a.surface,u=a.readOnly,v=a.onShowContactCardTosModal,w=a.shouldShowContactCardTos,x=a.shouldDisableBizInput;a=a.assetData;q=d("RelayHooks").useFragment(m,q);var y=q==null?void 0:(b=q.shared_attributes)==null?void 0:b.page_contact_id;b=(a==null?void 0:(b=a.custom_labels)==null?void 0:b.edges)||[];a=(a==null?void 0:(a=a.corp_labels)==null?void 0:a.edges)||[];b=d("ContextCardLabelUtils").parsePageLabelNode(t,b);a=d("ContextCardLabelUtils").parsePageLabelNode(t,a);b=b.concat(a);a=c("immutable").Map(b.map(function(a){return[a.name,a]}));b=l(!1);var z=b[0];b=b[1];var A=l(!1),B=A[0],C=A[1],D=q==null?void 0:(A=q.business_attributes)==null?void 0:(A=A.customer_labels)==null?void 0:(A=A.label_list)==null?void 0:A.__id;A=q==null?void 0:(A=q.shared_attributes)==null?void 0:(A=A.suggested_labels)==null?void 0:A.__id;var E=function(a,b){d("ContextCardLabelUtils").onUnsetLabel(i,D,p,a,b,t)},F=function(a,b,e,f,g){d("ContextCardLabelUtils").onAddLabel(i,c("filterNulls")([D]),p,e,a,g,r,f,t,b,y,"bizkit_context_card","add_label_contact_button")},G=k(c("BizInboxStateContext"));G=G.isWAOnly;e=(q==null?void 0:(e=q.business_attributes)==null?void 0:(e=e.customer_labels)==null?void 0:(e=e.label_list)==null?void 0:e.edges)||[];f=(q==null?void 0:(f=q.business_attributes)==null?void 0:(f=f.customer_labels)==null?void 0:(f=f.customer_custom_tags)==null?void 0:f.edges)||[];e=d("ContextCardLabelUtils").parsePageLabelNode(t,d("ContextCardLabelUtils").mergeContactAndCustomerLabels(e,f));f=d("ContextCardLabelUtils").parseSuggestedLabelNode((q==null?void 0:(f=q.shared_attributes)==null?void 0:(f=f.suggested_labels)==null?void 0:f.edges)||[]);g=(q==null?void 0:(g=q.shared_attributes)==null?void 0:(g=g.corp_label_list)==null?void 0:g.edges)||[];g=d("ContextCardLabelUtils").parsePageLabelNode(t,g);var H=e.concat(g);g=function(){return j.jsx(c("BizKitContextCardLabelsList.react"),{allLabels:H,onRemoveLabel:E,onSelectLabel:s,readOnly:u,pageID:p.business_id,onShowContactCardTosModal:v,shouldShowContactCardTos:w,pageContactID:y,surface:t})};return j.jsxs("div",{className:o,"data-testid":void 0,ref:d("BizInboxOffsiteEmailTourRefs").bizKitContextCardNewLabelSectionRef,children:[j.jsxs(c("LeftRight.react"),{children:[j.jsx(c("BizKitContextCardSectionHeader.react"),{sectionTitle:h._("u6807u7b7e"),tooltipsText:c("BizKitContextCardTooltipConsts").LABEL_TOOLTIP_TEXT,learnMoreLink:c("BizKitContextCardTooltipConsts").CONTACT_CARD_TOOLTIP_HELP_LINK,testid:void 0}),!x&&!G&&j.jsx(c("BizKitContextCardLinkButton.react"),{readOnly:u,"data-testid":void 0,label:h._("u7ba1u7406u6807u7b7e"),onClick:function(){c("ContactGraphManageLabelsClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(t),page_id:r,page_contact_id:y,event_data:{},is_server_log:!1}}),w?v():C(!B)}})]}),c("gkx")("1495")?j.jsx(c("BizKitContextCardLabelsList.react"),{allLabels:H,onRemoveLabel:E,onSelectLabel:s,readOnly:u,pageID:p.business_id,onShowContactCardTosModal:v,shouldShowContactCardTos:w,pageContactID:y,surface:t}):g(),!u&&!x&&!G&&j.jsx(c("BizKitContextCardNewLabelSection.react"),{isAddLabelToggle:z,setIsAddLabelToggle:b,onAddorCreateLabel:F,pageLabels:a,labels:q,onShowContactCardTosModal:v,shouldShowContactCardTos:w,surface:t,pageID:r,pageContactID:y}),!u&&!x&&!G&&j.jsx(c("BizKitContextCardSuggestedLabelsSection.react"),{contactIdentity:p,connectionID:A,conversationLabels:e,suggestedLabels:f,onCreateAndAddLabel:F,onShowContactCardTosModal:v,shouldShowContactCardTos:w,surface:t,pageID:r,pageContactID:y}),j.jsx(c("BizKitContextCardManageLabelsSection.react"),{pageID:r,labels:a,isShown:B,onToggle:C,surface:t,contactID:G?p.contact_id:null,businessAssets:n})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardSectionWrapper.react",["BizKitContextCardAboutDetailSection.react","BizKitContextCardAboutSectionFacebook.react","BizKitContextCardAboutSectionInstagram.react","BizKitContextCardActivitySection.react","BizKitContextCardAddLeadSection.react","BizKitContextCardMediaSection.react","BizKitContextCardNotesSection.react","BizKitContextCardProfileSection.react","BizKitContextLabelsWrapper.react","JSResource","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardOrdersSection.react").__setRef("BizKitContextCardSectionWrapper.react")),j=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardMessageSection.react").__setRef("BizKitContextCardSectionWrapper.react")),k=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardPaymentSection.react").__setRef("BizKitContextCardSectionWrapper.react"));function a(a){var b=a.data,d=a.sectionName,e=a.surface,f=a.pageID,g=a.bpnID,l=a.contactID,m=a.contactIdentity,n=a.onSelectLabel,o=a.onActivityListUpdated,p=a.isInKBankRollout,q=a.activitiesQueryReference,r=a.onBanUser,s=a.isBlockedInIG,t=a.readOnly,u=a.onShowContactCardTosModal,v=a.shouldShowContactCardTos,w=a.shouldDisableBizInput,x=a.pageContactID,y=a.mbsBusinessAssetsRef,z=a.pageRef,A=a.businessAssets,B=a.isPageEnabledForWAM,C=a.shouldShowPaymentOnboardingContextCard;switch(d){case"ABOUT":return h.jsx(c("BizKitContextCardAboutDetailSection.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",about:b,contactIdentity:m,pageID:f,bpnID:g,surface:e,readOnly:t,onShowContactCardTosModal:u,shouldShowContactCardTos:v,shouldDisableBizInput:w,isPageEnabledForWAM:B});case"FACEBOOK_PROFILE":return h.jsx(c("BizKitContextCardAboutSectionFacebook.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",details:b,pageID:f});case"INSTAGRAM_PROFILE":return h.jsx(c("BizKitContextCardAboutSectionInstagram.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",details:b});case"ACTIVITY":return e==="INBOX_MESSAGING_WA"?h.jsx(h.Fragment,{}):h.jsx(c("BizKitContextCardActivitySection.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",contactID:l,contactIdentity:m,pageID:f,isInKBankRollout:p,onActivityListUpdated:o,activitiesQueryReference:q,readOnly:t,surface:e,onShowContactCardTosModal:u,shouldShowContactCardTos:v,shouldDisableBizInput:w});case"LABEL":return h.jsx(c("BizKitContextLabelsWrapper.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",contactID:l,contactIdentity:m,pageID:f,contactLabels:b,onSelectLabel:n,surface:e,readOnly:t,onShowContactCardTosModal:u,shouldShowContactCardTos:v,shouldDisableBizInput:w,pageRef:z,mbsBusinessAssetsRef:y,businessAssets:A});case"MEDIA":return h.jsx(c("BizKitContextCardMediaSection.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",media:b,pageID:f,readOnly:t});case"MESSAGE":return h.jsx(j,{details:b,pageID:f,surface:e});case"NOTE":return h.jsx(c("BizKitContextCardNotesSection.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",contactID:l,contactIdentity:m,pageID:f,notes:b,surface:e,readOnly:t,onShowContactCardTosModal:u,shouldShowContactCardTos:v});case"PROFILE":return h.jsx(c("BizKitContextCardProfileSection.react"),{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",surface:e,profile:b,pageID:f,onBanUser:r,isBlockedInIG:s,shouldShowCloseButton:a.shouldShowCloseButton,onClose:a.onClose,readOnly:t});case"ORDER":return h.jsx(i,{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",pageID:f,orders:b,readOnly:t,surface:e,onShowContactCardTosModal:u,shouldShowContactCardTos:v});case"THIRD_PARTY_DATA":return h.jsx(h.Fragment,{});case"LEAD_STAGE":return h.jsx(c("BizKitContextCardAddLeadSection.react"),{pageID:f,contactID:x,surface:e,businessAssets:A});case"PAYMENT":return h.jsx(k,{className:"x1tciwvm xyamay9 xn6708d x1l90r2v x1ye3gou",data:b,pageID:f,shouldShowPaymentOnboardingContextCard:C});default:return h.jsx(h.Fragment,{})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivitySection.react",["fbt","BIZInboxClientLogger","BizInboxAYMTTipContext","BizInboxAYMTTipNames","BizInboxChannelTipRenderer.react","BizInboxConfigUtils","BizInboxFeatureTipRenderer.react","BizInboxNavChannel","BizInboxOmnichannelFeatureTourRefs.react","BizInboxStateContext","BizKitContextCardActivityDropDown.react","BizKitContextCardActivityListSection.react","BizKitContextCardActivitySectionQuery.graphql","BizKitContextCardActivitySection_contact.graphql","BizKitContextCardSectionHeader.react","BizKitContextCardTooltipConsts","GeoSpinner.react","LeftRight.react","RelayHooks","bizInboxStateShowOffsiteEmailOnboardingIntroModalReducer","cr:4615","getBizInboxUnifiedThreadsQuery","react","useBizInboxAYMTTipValidator","useBizInboxStateReducers"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react");e=d("react");var l=e.Suspense,m=e.useContext,n=e.useEffect,o=e.useState,p=i!==void 0?i:i=b("BizKitContextCardActivitySection_contact.graphql"),q=j!==void 0?j:j=b("BizKitContextCardActivitySectionQuery.graphql");function a(a){var e=a.activitiesQueryReference;a=babelHelpers.objectWithoutPropertiesLoose(a,["activitiesQueryReference"]);var f=m(c("BizInboxStateContext"));f=f.selectedThreadID;var g=a.contactIdentity;f=(g=b("cr:4615")==null?void 0:b("cr:4615").shouldUseUnifiedQuery("context_card_details",{selected_thread_item_id:(f=f)!=null?f:"",business_id:(f=g==null?void 0:g.business_id)!=null?f:""}))!=null?g:!1;if(d("getBizInboxUnifiedThreadsQuery").getShouldUnifyContextCardQueries()&&f)return k.jsx(r,babelHelpers["extends"]({activitiesQueryReference:e},a));return e==null?k.jsx(k.Fragment,{children:" "}):k.jsx(s,babelHelpers["extends"]({activitiesQueryReference:e},a))}a.displayName=a.name+" [from "+f.id+"]";function r(a){var c=a.className,d=a.pageID,e=a.isInKBankRollout,f=a.contactID,g=a.contactIdentity,h=a.onActivityListUpdated,i=a.readOnly,j=a.surface,l=a.onShowContactCardTosModal,m=a.shouldShowContactCardTos;a=a.shouldDisableBizInput;var p=o(null),q=p[0],r=p[1];n(function(){b("cr:4615")&&b("cr:4615").execUnifiedQuery("context_card_details",function(a){r(a==null?void 0:a.activitiesRef)})},[]);if(b("cr:4615")){return k.jsx(t,{canAddActivities:(p=q==null?void 0:q.can_add_activities)!=null?p:!1,className:c,contactID:f,contactIdentity:g,pageID:d,isInKBankRollout:e,onActivityListUpdated:h,readOnly:i,surface:j,onShowContactCardTosModal:l,shouldShowContactCardTos:m,shouldDisableBizInput:a,contactRef:q==null?void 0:q.selected_biz_crm_contact,dropDownPageRef:q==null?void 0:q.page.dropdownRef,dropDownBizAssetRef:q==null?void 0:q.xfb_mbs_business_assets.dropdownRef,listItemPageRef:q==null?void 0:q.page.listItemRef,listItemBizAssetRef:q==null?void 0:q.xfb_mbs_business_assets.listItemRef})}return k.jsx(k.Fragment,{children:" "})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var b,c=a.className,e=a.pageID,f=a.isInKBankRollout,g=a.contactID,h=a.contactIdentity,i=a.onActivityListUpdated,j=a.activitiesQueryReference,l=a.readOnly,m=a.surface,n=a.onShowContactCardTosModal,o=a.shouldShowContactCardTos;a=a.shouldDisableBizInput;j=d("RelayHooks").usePreloadedQuery(q,j);return k.jsx(t,{canAddActivities:(b=j==null?void 0:(b=j.biz_crm_contact_card_config)==null?void 0:b.can_add_activities)!=null?b:!1,className:c,contactID:g,contactIdentity:h,pageID:e,isInKBankRollout:f,onActivityListUpdated:i,readOnly:l,surface:m,onShowContactCardTosModal:n,shouldShowContactCardTos:o,shouldDisableBizInput:a,contactRef:j==null?void 0:j.retrieve_biz_crm_contact,dropDownPageRef:j==null?void 0:j.page,dropDownBizAssetRef:j==null?void 0:j.xfb_mbs_business_assets,listItemPageRef:j==null?void 0:j.page,listItemBizAssetRef:j==null?void 0:j.xfb_mbs_business_assets})}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b,e,g=a.canAddActivities,i=a.className,j=a.pageID,n=a.isInKBankRollout,q=a.contactID,r=a.contactIdentity,s=a.onActivityListUpdated,t=a.readOnly,u=a.surface,v=a.onShowContactCardTosModal,w=a.shouldShowContactCardTos,x=a.shouldDisableBizInput,y=a.contactRef,z=a.dropDownPageRef,A=a.dropDownBizAssetRef,B=a.listItemPageRef;a=a.listItemBizAssetRef;y=d("RelayHooks").useFragment(p,y);b=y==null?void 0:(b=y.fb_attributes)==null?void 0:b.user_id;e=y==null?void 0:(e=y.shared_attributes)==null?void 0:e.page_contact_id;var C=o(null),D=C[0],E=C[1];C=m(c("BizInboxStateContext"));var F=C.navChannel;C=C.pageID;var G=function(a){E(a),s(a)};C=C!=null?k.jsx(c("BizInboxChannelTipRenderer.react"),{tipPosition:"contact-card-activity-section"}):null;var H=c("useBizInboxStateReducers")([c("bizInboxStateShowOffsiteEmailOnboardingIntroModalReducer")]),I=m(c("BizInboxAYMTTipContext"));I=c("useBizInboxAYMTTipValidator")(I,"contact-card-activity-section");I=I==null?void 0:I.tipSpec.tip_name;var J=F===c("BizInboxNavChannel").MESSENGER&&I===c("BizInboxAYMTTipNames").BIZ_INBOX_OFFSITE_CONTACT_CARD_ACTIVITY_UPSELL_TIP;function K(){if(!J)return null;var a=d("BizInboxConfigUtils").parseDefaultPlatform(F),b=function(){var b="contact_card_activity_section_upsell";H({shouldShowOffsiteEmailOnboardingIntroModal:!0,offsiteEmailOnboardingSourceFeature:b,type:"show_offsite_email_onboarding_intro_modal.update"});d("BIZInboxClientLogger").logOffsiteEmailStartOnboard(j,a,b)};return k.jsx(c("BizInboxFeatureTipRenderer.react"),{contextRef:{current:d("BizInboxOmnichannelFeatureTourRefs.react").bizInboxContactCardActivitySectionRef.current},tipPosition:"contact-card-activity-section",onComplete:b,align:"middle",tourCompletionLabel:"try_it"})}K.displayName=K.name+" [from "+f.id+"]";return k.jsxs("div",{className:i,"data-testid":void 0,ref:d("BizInboxOmnichannelFeatureTourRefs.react").bizInboxContactCardActivitySectionRef,children:[k.jsxs(c("LeftRight.react"),{children:[k.jsx(c("BizKitContextCardSectionHeader.react"),{sectionTitle:h._("u52a8u6001"),tooltipsText:c("BizKitContextCardTooltipConsts").ACTIVITY_TOOLTIP_TEXT,learnMoreLink:c("BizKitContextCardTooltipConsts").CONTACT_CARD_TOOLTIP_HELP_LINK,testid:void 0}),!x&&g===!0&&k.jsx(c("BizKitContextCardActivityDropDown.react"),{contactID:q,page:z,mbsBusinessAssets:A,pageID:j,readOnly:t,userID:b,connectionID:D,contactIdentity:r,surface:u,pageContactID:e,onShowContactCardTosModal:v,shouldShowContactCardTos:w})]}),C,k.jsx(l,{fallback:k.jsx(c("GeoSpinner.react"),{center:!0}),children:k.jsx(c("BizKitContextCardActivityListSection.react"),{activity:y,page:B,mbsBusinessAssets:a,pageID:j,userID:b,surface:u,pageContactID:e,onActivityListUpdated:G,isInKBankRollout:n,onShowContactCardTosModal:v,shouldShowContactCardTos:w})}),K()]})}t.displayName=t.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardNewLabelSection.react",["fbt","ix","BizInboxLabelSearchSource","BizInboxLabelSearchableEntry","BizKitContextCardUtils","ClickableArea.react","ContactGraphAddLabelClickFalcoEvent","ContextCardLabelUtils","FlexLayout.react","GeoBaseTypeaheadItem.react","GeoMediaItem.react","GeoTokenLabel.react","GeoTokenLabelColorEnum","GeoTypeahead.react","Image.react","PagesManagerInboxContextCardLabelsTypeaheadRenderer.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useState,l={"#90949C":j.jsx(c("Image.react"),{src:i("1278101")}),"#8A73C9":j.jsx(c("Image.react"),{src:i("1631086")}),"#F65569":j.jsx(c("Image.react"),{src:i("1278102")}),"#5291FF":j.jsx(c("Image.react"),{src:i("294498")}),"#FB9240":j.jsx(c("Image.react"),{src:i("294500")}),"#72A737":j.jsx(c("Image.react"),{src:i("294499")})};function a(a){var b=a.isAddLabelToggle,e=a.setIsAddLabelToggle,f=a.pageLabels,g=a.labels,m=a.onAddorCreateLabel,n=a.onShowContactCardTosModal,o=a.shouldShowContactCardTos,p=a.surface,q=a.pageID,r=a.pageContactID,s=(g==null?void 0:(a=g.business_attributes)==null?void 0:(g=a.customer_labels)==null?void 0:(a=g.label_list)==null?void 0:a.edges)||[];g=f.toArray();g=g.filter(function(a){return a.data_silo!=="DC_SILO_CORPORATION"});a=g.filter(function(a){return!s.find(function(b){return((b=b.node)==null?void 0:b.name)===a.name})});g=new(c("BizInboxLabelSearchSource"))(a);a=k("");var t=a[0],u=a[1];a=k(null);var v=a[0],w=a[1],x=d("ContextCardLabelUtils").genIfPageExceedLabelLimit(f);b?a=j.jsx(c("Image.react"),{src:i("656611")}):a=j.jsx(c("Image.react"),{src:i("497293")});f=h._("u6dfbu52a0u6807u7b7e");var y=h._("u6dfbu52a0u6807u7b7e"),z=h._("u65b0u6807u7b7eu540du79f0u4e0du80fdu53eau5305u542bu7a7au683c"),A=function(){w(null);if(t.trim()===""){w(z);return}x?w(d("ContextCardLabelUtils").TAG_REACH_LIMIT_ERROR_MSG):m(t,!1);u("")},B=function(a){u("");w(null);if(a instanceof c("BizInboxLabelSearchableEntry")){var b=a.getData().id,d=a.getData().name;a=a.getData().color;m(d,!1,b,a)}};function C(a){a.length
BizKitContextCardActivityDropDown.react",["cx","fbt","ix","BizKitContextCardActivityDropDown_mbsBusinessAssets.graphql","BizKitContextCardActivityDropDown_page.graphql","BizKitContextCardAddActivityMutation","BizKitContextCardLinkButton.react","BizKitContextCardUtils","CRMEventsTypedLogger","ContactGraphAddActivityClickFalcoEvent","ContextualDialogArrow","ContextualLayerShowAndHideOnScrollOut","ContextualLayerUpdateOnScroll","Image.react","JSResource","MessengerAdsConversionFunnelTypedLogger","MessengerConversionEvent","PmaThreadActionSystemEventFalcoEvent","PopoverMenu.react","QE2Logger","QPLUserFlow","ReactXUIMenu","RelayHooks","ThreadActionSystemQPLConstants","getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils","lazyLoadComponent","react","useSimpleNUX_LEGACY"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l,m=d("react");e=d("react");var n=e.useEffect,o=e.useRef,p=e.useState,q=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardActivityOrderDialog.react").__setRef("BizKitContextCardActivityDropDown.react")),r=c("lazyLoadComponent")(c("JSResource")("PagesManagerInboxOrderShippedActivitySendDetailsDialog.react").__setRef("BizKitContextCardActivityDropDown.react")),s=c("lazyLoadComponent")(c("JSResource")("XUIAmbientNUX.react").__setRef("BizKitContextCardActivityDropDown.react"));function t(a){var b=c("useSimpleNUX_LEGACY")("290161645875967"),d=b[0],e=b[1];b=p(!1);var f=b[0],g=b[1];n(function(){if(!d)return;var a=window.setTimeout(function(){g(!0)},1e3);return function(){return window.clearTimeout(a)}},[d]);return f&&m.jsx(s,{alignment:"right",behaviors:{ContextualLayerUpdateOnScroll:c("ContextualLayerUpdateOnScroll"),ContextualLayerShowAndHideOnScrollOut:c("ContextualLayerShowAndHideOnScrollOut")},contextRef:function(){return a.contextRef.current},onCloseButtonClick:function(){e(),g(!1)},position:"below",shown:!0,width:"auto",children:i._("u5728 Messenger u4e2du7ba1u7406u548cu8ffdu8e2au8ba2u5355u4ee5u53cau8fdbu884cu9884u7ea6u3002")},"clips_button_nux")}t.displayName=t.name+" [from "+f.id+"]";function a(a){var e=d("RelayHooks").useRelayEnvironment(),f=p(null),g=f[0],h=f[1];f=d("RelayHooks").useFragment(k!==void 0?k:k=b("BizKitContextCardActivityDropDown_page.graphql"),a.page);var n=d("RelayHooks").useFragment(l!==void 0?l:l=b("BizKitContextCardActivityDropDown_mbsBusinessAssets.graphql"),a.mbsBusinessAssets),s=d("getIsDependencyOfRemovePageDependencyEnabledTool.entrypointutils").getIsDependencyOfRemovePageDependencyEnabledToolForContactCard(a.surface);s=s?n:f;var u=(s==null?void 0:(n=s.ctm_www_tas_order_integration_gk)==null?void 0:n.is_order_integration_enabled)===!0;f=o(null);var v=function(b){c("ContactGraphAddActivityClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(a.surface),page_id:x,page_contact_id:a.pageContactID,event_data:{activity_type:b},is_server_log:!1}}),c("QPLUserFlow").addPoint(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT,b),d("BizKitContextCardAddActivityMutation").commit(e,z,{interactionType:b,identity:A,entrypoint:"CONTACT_CARD"},{onSuccess:function(e){e=e==null?void 0:(e=e.biz_crm_contact_add_action)==null?void 0:(e=e.action_new)==null?void 0:e.interaction_id;e!=null&&(b==="PAYMENT_RECEIVED"||b==="ORDER_SHIPPED")&&(d("QE2Logger").logExposureForPage("ctm_www_tas_order_integration_universe",x),u&&h({orderStatus:b,interactionId:e}));c("PmaThreadActionSystemEventFalcoEvent").log(function(){var c;return{page_id:a.pageID,consumer_id:(c=y)!=null?c:w,interaction_type:b,has_details:!1,entrypoint:"CONTACT_CARD"}});c("QPLUserFlow").endSuccess(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT)},onFailure:function(){return c("QPLUserFlow").endFailure(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT,d("ThreadActionSystemQPLConstants").ADD_ACTIVITY_MUTATION_FAILED)}})},w=a.contactID,x=a.pageID;s=a.readOnly;var y=a.userID,z=a.connectionID,A=a.contactIdentity;n=a.onShowContactCardTosModal;var B=a.shouldShowContactCardTos,C=p(!1),D=C[0],E=C[1];C=function(){var a;new(c("MessengerAdsConversionFunnelTypedLogger"))().setName(c("MessengerConversionEvent").PAGE_CLICK_ADD_ACTIVITY).setPageID(x).setConsumerID((a=y)!=null?a:w).log();new(c("CRMEventsTypedLogger"))().setPageID(x).setEvent("page_click_add_activity").setUISurface("contact_card_activity").setIsServerLog(!1).log();c("QPLUserFlow").start(d("ThreadActionSystemQPLConstants").THREAD_ACTION_SYSTEM_QPL_EVENT)};var F=m.jsxs(c("ReactXUIMenu"),{children:[m.jsx(c("ReactXUIMenu").Item,{onClick:function(){v("APPOINTMENT_BOOKED")},icon:m.jsx(c("Image.react"),{src:j("961923")}),"data-testid":void 0,children:"Appointment Booked"}),m.jsx(c("ReactXUIMenu").Item,{onClick:function(){v("ORDER_PLACED")},icon:m.jsx(c("Image.react"),{src:j("961939")}),"data-testid":void 0,children:"Order Placed"}),m.jsx(c("ReactXUIMenu").Item,{onClick:function(){v("PAYMENT_RECEIVED")},icon:m.jsx(c("Image.react"),{src:j("961932")}),"data-testid":void 0,children:"Payment Received"}),m.jsx(c("ReactXUIMenu").Item,{onClick:function(){v("ORDER_SHIPPED")},icon:m.jsx(c("Image.react"),{src:j("961946")}),"data-testid":void 0,children:"Order Shipped"})]});return m.jsxs("div",{className:"uiContextualLayerParent",children:[B?m.jsx(c("BizKitContextCardLinkButton.react"),{readOnly:s,label:i._("u6dfbu52a0u52a8u6001"),onClick:n}):m.jsx(c("PopoverMenu.react"),{alignh:"right",alignv:"baseline",layerBehaviors:[c("ContextualDialogArrow")],menu:F,"data-testid":void 0,ref:f,children:m.jsx(c("BizKitContextCardLinkButton.react"),{readOnly:s,label:i._("u6dfbu52a0u52a8u6001"),onClick:C})}),f.current!=null&&m.jsx(t,{contextRef:f}),u&&y!=null&&m.jsxs(m.Fragment,{children:[g!=null&&m.jsx(m.Suspense,{fallback:null,children:m.jsx(q,{attachOrderModalType:g.orderStatus,interactionId:g.interactionId,pageID:x,userID:y,hideModal:function(){h(null)},setShowOrderShippedDialog:E})}),D&&m.jsx(m.Suspense,{fallback:null,children:m.jsx(r,{onHide:function(){E(!1)},onSuccess:function(){E(!1)},pageID:x,userID:y})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardAboutDetailSection.react",["fbt","BizKitContextCardAboutDetailSection_about.graphql","BizKitContextCardAboutSectionOffline.react","GeoHeading.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");function a(a){var e=a.about,f=a.className,g=a.contactIdentity,k=a.pageID,l=a.bpnID,m=a.surface,n=a.readOnly,o=a.onShowContactCardTosModal,p=a.shouldShowContactCardTos,q=a.shouldDisableBizInput;a=a.isPageEnabledForWAM;e=d("RelayHooks").useFragment(i!==void 0?i:i=b("BizKitContextCardAboutDetailSection_about.graphql"),e);return j.jsxs("div",{className:f,"data-testid":void 0,children:[j.jsx(c("GeoHeading.react"),{level:3,children:q?h._("u8bbfu5ba2u7528u6237"):h._("u7b80u4ecb")}),j.jsx(c("BizKitContextCardAboutSectionOffline.react"),{details:e,contactIdentity:g,pageID:k,bpnID:l,surface:m,isPageEnabledForWAM:a,readOnly:n,onShowContactCardTosModal:o,shouldShowContactCardTos:p})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardAboutSectionOffline.react",["fbt","ix","BIZInboxClientLogger","BizEmailSubscriptionConsts","BizInboxFbtUtils","BizInboxOmnichannelFeatureTourRefs.react","BizInboxStateContext","BizKitContactCardOmnichannelContext.react","BizKitContextCardAboutSectionLoggingUtils","BizKitContextCardAboutSectionOfflineRow.react","BizKitContextCardAboutSectionOffline_details.graphql","BizKitContextCardConstants","BizKitContextCardEditProfileMutation","BizKitContextCardLinkButton.react","CountryNames","GeoBaseText.react","GeoButton.react","GeoLink.react","GeoToast.react","ISOCountryCode","Image.react","JSResource","LeftRight.react","RelayHooks","RelayModern","WhatsAppMarketingFbtUtils","geoMargin","isTruthy","lazyLoadComponent","react","stylex","useGeoToaster"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useContext,m=e.useEffect,n=e.useState,o=c("lazyLoadComponent")(c("JSResource")("BizKitContextCardEditProfileDialog.react").__setRef("BizKitContextCardAboutSectionOffline.react")),p="https://www.facebook.com/business/help/925702697860930";function q(a){a=((a=a.shared_attributes)==null?void 0:a.profile)||{};var b=a.phone;a=a.fallback_phone_number;b=(b==null?void 0:b.phoneNumber)||a;return{icon:k.jsx(c("Image.react"),{src:i("972302")}),value:(a=b)!=null?a:h._("+ u624bu673au53f7")}}function r(a,b){var e,f,g;b=b==="CRM_DESTINATION";e=(e=a.shared_attributes)==null?void 0:(e=e.profile)==null?void 0:e.email;f=(f=a.shared_attributes)==null?void 0:(f=f.profile)==null?void 0:f.suggested_email_address;g=((g=a.wa_attributes)==null?void 0:g.wa_customer_id)!=null;var j=null,l=!1;e!=null?j=e:f!=null?(j=f,l=!0):j=h._("+ u90aeu7bb1");e={icon:k.jsx(c("Image.react"),{src:i("569294")}),value:j,"data-testid":"context_card_details_email",showSuggestionOptions:l};if(g)return e;g=(l=a==null?void 0:(f=a.business_attributes)==null?void 0:(j=f.communication_preference)==null?void 0:j.email_subscription_status)!=null?l:"UNCONFIRMED";a=d("BizEmailSubscriptionConsts").getEmailSubscriptionStatusConsts(g);f={iconSecondLine:b?k.jsx(c("Image.react"),{src:a.icon_size_8}):null,valueSecondLine:b?a.label:null};return babelHelpers["extends"]({},e,f)}function s(a){return{icon:k.jsx(c("Image.react"),{src:i("972294")}),value:((a=a.shared_attributes)==null?void 0:(a=a.profile)==null?void 0:a.formatted_birthday)||h._("+ u751fu65e5"),"data-testid":"context_card_details_birthday"}}function t(a,b){var d,e;b=b==="CRM_DESTINATION";d=a==null?void 0:(d=a.shared_attributes)==null?void 0:(d=d.profile)==null?void 0:d.country_code;return{icon:k.jsx(c("Image.react"),{src:i("820011")}),value:((e=a.shared_attributes)==null?void 0:(e=e.profile)==null?void 0:e.address)||h._("+ u5730u5740"),valueSecondLine:(e=a.shared_attributes)==null?void 0:(a=e.profile)==null?void 0:a.city_state,valueThirdLine:b&&c("isTruthy")(d)?c("CountryNames")[c("ISOCountryCode")[d]]:null,"data-testid":"context_card_details_address"}}function u(){return k.jsxs("div",{children:[k.jsx("div",{className:"xz9dl7a x4uap5 xsag5q8 xkhd6sd",children:k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("u8fd9u4f4du7528u6237u6b63u4ee5u8bbfu5ba2u8eabu4efdu4f7fu7528u4f60u7684u7f51u7ad9u804au5929u63d2u4ef6u3002u5728u7ed9u8fd9u4f4du7528u6237u53d1u7b2cu4e00u6761u6d88u606fu540eu7684 24 u5c0fu65f6u5185uff0cu4f60u53efu4ee5u4e0eu4e4bu4e92u53d1u6d88u606fuff1b24 u5c0fu65f6u540eu5219u65e0u6cd5u518du5411u5bf9u65b9u53d1u6d88u606fu3002")})}),k.jsx("div",{className:"xz9dl7a x4uap5 xsag5q8 xkhd6sd",children:k.jsxs(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:[h._("u4f46u662fuff0cu4f60u4ecdu53efu5728u6536u4ef6u7bb1u4e2du67e5u770bu804au5929u8bb0u5f55u3002"),k.jsx(c("GeoLink.react"),{href:p,target:"_blank",children:"Learn More"})]})})]})}u.displayName=u.name+" [from "+f.id+"]";function v(a){var b=a.onEditButtonClicked,d=a.readOnly;a=a.editButtonDataTestID;return k.jsxs("div",{className:"xz9dl7a x4uap5 xsag5q8 xkhd6sd",children:[k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("u8bf7u6dfbu52a0u8054u7cfbu65b9u5f0fu7b49u7528u6237u4fe1u606fu3002")}),k.jsx("div",{className:c("stylex")(c("geoMargin").top12),children:k.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:d,disabledMessage:c("BizKitContextCardConstants").CONTACT_CARD_READ_ONLY_MODE_DISABLE_BUTTON_HOVER_OVER_TEXT,label:h._("u6dfbu52a0u4fe1u606f"),onClick:b})})]})}v.displayName=v.name+" [from "+f.id+"]";function a(a){var e,f,g,p,w=a.pageID,x=a.contactIdentity,y=a.surface,z=a.readOnly,A=a.onShowContactCardTosModal,B=a.shouldShowContactCardTos,C=a.bpnID,D=a.isPageEnabledForWAM,E=n(!1),F=E[0],G=E[1];E=l(c("BizInboxStateContext"));E=E.isWAOnly;var H=d("RelayHooks").useFragment(j!==void 0?j:j=b("BizKitContextCardAboutSectionOffline_details.graphql"),a.details),I=H==null?void 0:(a=H.shared_attributes)==null?void 0:a.page_contact_id;a=function(){G(!0),d("BizKitContextCardAboutSectionLoggingUtils").logAddContactDetailsClick(w,I,y)};var J=function(){G(!0),d("BizKitContextCardAboutSectionLoggingUtils").logEditContactDetailsClick(w,I,y)},K=function(){G(!1)},L=d("RelayHooks").useRelayEnvironment(),M=d("BizKitContactCardOmnichannelContext.react").useBizKitContactCardOmnichannelContext(),N=c("useGeoToaster")(),O=N.add,P=k.jsx(c("GeoToast.react"),{heading:d("BizInboxFbtUtils").getContactUpdateSuccessToastHeading()}),Q=function(a){((a=a.biz_crm_contact_update_profile_fields)==null?void 0:a.success)===!0&&(d("RelayModern").commitLocalUpdate(L,function(a){if(M.activityConnectionID!=null){a=a.get(M.activityConnectionID);a!=null&&a.invalidateRecord()}}),O(P))};N=function(){var a;if(B){A();return}a=H==null?void 0:(a=H.shared_attributes)==null?void 0:(a=a.profile)==null?void 0:a.suggested_email_address;d("BizKitContextCardEditProfileMutation").commit(L,{identity:x,update_fields:{email:a,should_delete_email_suggestion:!0},surface:y},{onSuccess:Q,onFailure:function(){}});d("BIZInboxClientLogger").logEmailContactInfoSuggestionAccept(w)};var R=function(){d("BizKitContextCardEditProfileMutation").commit(L,{identity:x,update_fields:{should_delete_email_suggestion:!0},surface:y}),d("BIZInboxClientLogger").logEmailContactInfoSuggestionReject(w)},S=H==null?void 0:(e=H.shared_attributes)==null?void 0:(e=e.profile)==null?void 0:e.email,T=H==null?void 0:(e=H.shared_attributes)==null?void 0:(e=e.profile)==null?void 0:e.suggested_email_address;m(function(){S==null&&T!=null&&d("BIZInboxClientLogger").logEmailContactInfoSuggestionImpression(w)},[S,T,w]);e=H==null?void 0:(e=H.shared_attributes)==null?void 0:(e=e.profile)==null?void 0:e.guest_id;f=Object.entries((H==null?void 0:(f=H.shared_attributes)==null?void 0:f.profile)||{}).every(function(a){return a[0]==="guest_id"||a[1]==null||a[1]===""});g=(H==null?void 0:(g=H.wa_attributes)==null?void 0:g.wa_customer_id)!=null;p=d("WhatsAppMarketingFbtUtils").getLabelForStatus(H==null?void 0:(p=H.wa_attributes)==null?void 0:p.opt_in_status);if(e!=null)return k.jsx(u,{});e=F&&k.jsx(k.Suspense,{fallback:null,children:k.jsx(o,{pageID:w,bpnID:C,hideContactCardProfileSectionEditDialog:K,contactIdentity:x,contact:H,surface:y,isPageEnabledForWAM:D})});return f||H==null?k.jsxs(k.Fragment,{children:[e,k.jsx(v,{onEditButtonClicked:B?A:a,readOnly:z,editButtonDataTestID:"context_card_details_edit"})]}):k.jsxs("div",{className:"xz9dl7a xn6708d xsag5q8 x1ye3gou",children:[k.jsxs(c("LeftRight.react"),{children:[k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("u5df2u6dfbu52a0u7684u4fe1u606f")}),!E&&k.jsx(c("BizKitContextCardLinkButton.react"),{"data-testid":void 0,readOnly:z,label:h._("u7f16u8f91"),onClick:B?A:J})]}),e,k.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},q(H))),g&&D?k.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,{icon:k.jsx(c("Image.react"),{src:i("617781")}),value:p}):null,k.jsx("div",{ref:d("BizInboxOmnichannelFeatureTourRefs.react").bizInboxContactCardEmailFieldRef,children:k.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},r(H,y),{onTakeSuggestion:N,onRejectSuggestion:R}))}),k.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},s(H))),k.jsx(d("BizKitContextCardAboutSectionOfflineRow.react").BizKitContextCardAboutSectionOfflineRow,babelHelpers["extends"]({},t(H,y)))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivityListSection.react",["fbt","BizKitContactCardOmnichannelContext.react","BizKitContextCardActivityListItem3DWrapper.react","BizKitContextCardActivityListSection_activity.graphql","BizKitContextCardMoreSection.react","BizKitContextCardUtils","ContactGraphSeeMoreActivityClickFalcoEvent","GeoBaseText.react","JSResource","PagesContextCardHistoryStoryViewer.react","RelayHooks","lazyLoadComponent","nullthrows","react","useToggle"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.startTransition,l=e.useEffect,m=e.useState,n=c("lazyLoadComponent")(c("JSResource")("BizInboxOmnichannelEmailThreadDetailViewModal.react").__setRef("BizKitContextCardActivityListSection.react")),o=5,p=i!==void 0?i:i=b("BizKitContextCardActivityListSection_activity.graphql");function a(a){var b=a.activity,e=a.pageID,f=a.userID,g=a.surface,i=a.pageContactID,q=a.isInKBankRollout,r=a.onActivityListUpdated,s=a.onShowContactCardTosModal,t=a.shouldShowContactCardTos;b=d("RelayHooks").usePaginationFragment(p,b);var u=b.data,v=b.loadNext,w=b.hasNext,x=b.refetch;b=m(null);var y=b[0],z=b[1];b=c("useToggle")(!1);var A=b[0],B=b[1];b=m({threadID:"",title:""});var C=b[0],D=b[1],E=u==null?void 0:(b=u.all_actions)==null?void 0:(b=b.interaction_count)==null?void 0:b.count,F=u==null?void 0:(b=u.all_actions)==null?void 0:(b=b.actions)==null?void 0:(b=b.edges)==null?void 0:b.length,G=d("BizKitContactCardOmnichannelContext.react").useBizKitContactCardOmnichannelContext(),H=u==null?void 0:(b=u.all_actions)==null?void 0:(b=b.actions)==null?void 0:b.__id;l(function(){H!=null&&(r(H),G.setActivityConnectionID(H))},[r,H,G]);d("RelayHooks").useSubscribeToInvalidationState([H].filter(Boolean),function(){var a=u==null?void 0:u.id;a!=null&&k(function(){x({count:o,id:a})})});var I=function(){c("ContactGraphSeeMoreActivityClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(g),page_id:e,page_contact_id:i,event_data:{},is_server_log:!1}}),w&&v(o)},J=function(a){a=(a=a.contact_action)==null?void 0:(a=a.story)==null?void 0:a.id;a!=null&&z(a)};b=function(){if(E==null||F==null)return null;return E<=F?null:j.jsx(c("BizKitContextCardMoreSection.react"),{className:"x1tciwvm x1rm44br xug08bp x14vqqas xz9dl7a x2b8uid",onClick:I})};var K=function(){var b;b=u==null?void 0:(b=u.all_actions)==null?void 0:(b=b.actions)==null?void 0:b.edges;if(b==null||b.length===0)return j.jsx("div",{className:"x17ddzgb x14vqqas",children:j.jsx(c("GeoBaseText.react"),{color:"value",size:"accent",isDisabled:!0,display:"block","data-testid":void 0,children:h._("u8ffdu8e2au91cdu8981u7684u5ba2u6237u4e92u52a8u3002")})});b=b.map(function(b,d){var h;return((h=b.node)==null?void 0:h.codeSplitWrapper)!=null&&j.jsx(c("BizKitContextCardActivityListItem3DWrapper.react"),{wrapperRef:(h=b.node)==null?void 0:h.codeSplitWrapper,isInKBankRollout:q,page:a.page,mbsBusinessAssets:a.mbsBusinessAssets,pageID:e,surface:g,pageContactID:i,selectInteraction:J,onShowContactCardTosModal:s,shouldShowContactCardTos:t,userID:f,toggleShouldShowOmnichannelEmailDetailView:B,setActiveEmailThread:D},"interaction_"+d)});return j.jsx("div",{className:"x14vqqas",children:b})},L=function(){return y!=null?j.jsx(c("PagesContextCardHistoryStoryViewer.react"),{pageID:e,storyToken:y,userID:c("nullthrows")(f),onClose:function(){return z(null)}}):null},M=function(){return j.jsx(j.Suspense,{fallback:null,children:j.jsx(n,{toggleShouldShow:B,activeEmailThread:C})})};return j.jsxs("div",{children:[L(),K(),b(),A&&M()]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardSuggestedLabelsSection.react",["fbt","BizInboxFeatureTipRenderer.react","BizInboxStateContext","BizKitContextCardLabel.react","BizKitContextCardUtils","CRMContextCardSuggestedLabels","ContactGraphSuggestedLabelDismissFalcoEvent","ContextCardLabelUtils","GeoText.react","LeftRight.react","RelayHooks","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useContext,k=b.useRef;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=a.contactIdentity,f=a.conversationLabels,g=a.connectionID,l=a.suggestedLabels,m=a.onCreateAndAddLabel,n=a.onShowContactCardTosModal,o=a.shouldShowContactCardTos,p=a.surface,q=a.pageID,r=a.pageContactID;a=j(c("BizInboxStateContext"));var s=a.shouldShowPriorityInbox;a=a.shouldShowMLSuggestedLabel;var t=k(null),u=i.jsx(c("BizInboxFeatureTipRenderer.react"),{contextRef:t,tipPosition:"suggested-label",contextualLayerPosition:"start"}),v,w=a?function(a,f,h,i){d("ContextCardLabelUtils").onDismissSuggestedLabel(b,g,e,a,f,p),c("ContactGraphSuggestedLabelDismissFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(p),page_id:q,page_contact_id:r,event_data:{label_name:f,is_bulk_action:!1,is_suggested_label:!0,content_type:i,label_color:h},is_server_log:!1}})}:null;a=l.filter(function(a){return!f.find(function(b){return b.name.toLocaleLowerCase()===a.name.toLocaleLowerCase()})});s&&(a=a.filter(function(a){return a.name.toLocaleLowerCase()!==c("CRMContextCardSuggestedLabels")[1].name.toString().toLocaleLowerCase()}));a.length!==0&&(v=a.map(function(a,b){return a&&i.jsxs("div",{ref:d("ContextCardLabelUtils").genUpsellSuggestedLabel(b,a,q,p,r)===!0?t:null,className:"x1rg5ohu",children:[i.jsx(c("BizKitContextCardLabel.react"),{color:c("nullthrows")(a.color),name:c("nullthrows")(a.display_name.toString()),contentType:c("nullthrows")(a.content_type),createName:c("nullthrows")(a.name),id:c("nullthrows")(a.id),onDismissLabel:w,isSuggestedLabel:!0,onAddorCreateLabel:m,readOnly:!1,onShowContactCardTosModal:n,shouldShowContactCardTos:o}),d("ContextCardLabelUtils").genUpsellSuggestedLabel(b,a,q,p,r)===!0?u:null]},c("nullthrows")(a.name))}));return i.jsxs("div",{"data-testid":void 0,children:[i.jsx(c("LeftRight.react"),{children:i.jsx("div",{className:"xod5an3 x14vqqas",children:i.jsx(c("GeoText.react"),{children:h._("u63a8u8350u6807u7b7e")})})}),v]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardActivityListItem3DWrapper.react",["BizKitContextCardActivityListItem3DWrapper_BizCRMContactAction3DWrapper.graphql","CometRelay","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").Suspense;function a(a){var c=a.wrapperRef,e=a.isInKBankRollout,f=a.selectInteraction,g=a.page,k=a.mbsBusinessAssets,l=a.pageID,m=a.onShowContactCardTosModal,n=a.shouldShowContactCardTos,o=a.userID,p=a.surface,q=a.pageContactID,r=a.toggleShouldShowOmnichannelEmailDetailView;a=a.setActiveEmailThread;c=d("CometRelay").useFragment(h!==void 0?h:h=b("BizKitContextCardActivityListItem3DWrapper_BizCRMContactAction3DWrapper.graphql"),c);return i.jsx(j,{fallback:null,children:i.jsx(d("CometRelay").MatchContainer,{match:c,props:{data:c,isInKBankRollout:e,page:g,mbsBusinessAssets:k,pageID:l,surface:p,pageContactID:q,selectInteraction:f,onShowContactCardTosModal:m,shouldShowContactCardTos:n,shouldRemovePageVCDependency:!0,userID:o,toggleShouldShowOmnichannelEmailDetailView:r,setActiveEmailThread:a}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCard.react",["BizCRMContactCardPermission","BizCRMContactCardSection","BizKitContactCardOmnichannelContext.react","BizKitContextCardConstants","BizKitContextCardErrorBoundary.react","BizKitContextCardTOSModal.react","BizKitContextCardTosLoggingUtils","BizKitContextCard_config.graphql","BizKitContextCard_detail.graphql","GeoToast.react","RelayHooks","cr:4922","getJSEnumSafe","getShould3DBizInboxContextCardSections.entrypointutils","react","useGeoToaster"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react"),k=d("react").useState;function a(a){var e,f,g,l=d("RelayHooks").useFragment(h!==void 0?h:h=b("BizKitContextCard_detail.graphql"),a.contactDetails),m=d("RelayHooks").useFragment(i!==void 0?i:i=b("BizKitContextCard_config.graphql"),a.contactConfig),n=a.contactID,o=a.contactIdentity,p=a.pageID,q=a.onSelectLabel,r=a.onActivityListUpdated,s=a.activitiesQueryReference,t=a.onBanUser,u=a.isBlockedInIG,v=a.surface,w=a.businessAssets,x=a.isDependencyOfRemovePageDependencyEnabledTool;x=x===void 0?!1:x;var y=(m==null?void 0:m.permission)?c("getJSEnumSafe")(c("BizCRMContactCardPermission"),m==null?void 0:m.permission)!=="READ_WRITE":!1,z=(e=l==null?void 0:(e=l.shared_attributes)==null?void 0:e.is_guest_chat)!=null?e:!1,A=(e=l==null?void 0:(e=l.shared_attributes)==null?void 0:e.page_contact_id)!=null?e:"";e=(e=l==null?void 0:l.has_consented_to_contact_card_tos)!=null?e:!1;var B=["CRM_DESTINATION","INBOX_CONTACT_LIST","INBOX_LEAD_EMAIL"].includes(v),C=!B&&!e;B=x?l==null?void 0:l.mbs_business_assets:l==null?void 0:l.page;x=x?(l==null?void 0:(x=l.mbs_business_assets)==null?void 0:x.page_if_viewer_can_manage_permissions)!=null:(l==null?void 0:(x=l.page)==null?void 0:x.if_viewer_can_manage_permissions)!=null;var D=(l==null?void 0:(f=l.page)==null?void 0:(f=f.is_page_enabled_for_wam)==null?void 0:f.passes_gk)===!0,E=B==null?void 0:(f=B.business_presence_node)==null?void 0:f.id,F=(B==null?void 0:(f=B.is_in_kbank_rollout)==null?void 0:f.passes)===!0,G=(l==null?void 0:(B=l.page)==null?void 0:(f=B.show_payment_onboarding_context_card)==null?void 0:f.passes_gk)===!0;B=k(!1);f=B[0];var H=B[1];B=c("useGeoToaster")();var I=B.add,J=function(a){var b=null;a==="error"?b=c("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_ERROR_TEXT:a==="success"&&(b=c("BizKitContextCardConstants").CONTACT_CARD_TOS_SIGN_SUCCESS_TEXT);b!==null&&I(j.jsx(c("GeoToast.react"),{heading:b,status:a}),{duration:"standard"})},K=function(){H(!0),d("BizKitContextCardTosLoggingUtils").logTosModalEnterFlow(p,A,v)};B=k(null);var L=B[0];B=B[1];m=d("getShould3DBizInboxContextCardSections.entrypointutils").getShould3DBizInboxContextCardSections()?m==null?void 0:(g=m.sections_renderers)==null?void 0:g.map(function(d){return j.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:p,section:c("getJSEnumSafe")(c("BizCRMContactCardSection"),d.section_enum),children:j.jsx(b("cr:4922"),{surface:v,data:l,sectionName:d.section_enum,pageID:p,bpnID:E,contactID:n,pageContactID:A,contactIdentity:o,onSelectLabel:q,isPageEnabledForWAM:D,onActivityListUpdated:r,onBanUser:t,isInKBankRollout:F,activitiesQueryReference:s,isBlockedInIG:u,readOnly:y,shouldShowCloseButton:a.shouldShowCloseButton,onClose:a.onClose,onShowContactCardTosModal:K,shouldShowContactCardTos:C,shouldDisableBizInput:z,pageRef:l==null?void 0:l.page,mbsBusinessAssetsRef:l==null?void 0:l.mbs_business_assets,rendererRef:d,businessAssets:w,shouldShowPaymentOnboardingContextCard:G})},d.section_enum)}):m==null?void 0:(g=m.sections)==null?void 0:g.map(function(d){return j.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:p,section:c("getJSEnumSafe")(c("BizCRMContactCardSection"),d),children:j.jsx(b("cr:4922"),{surface:v,data:l,sectionName:d,pageID:p,bpnID:E,contactID:n,pageContactID:A,contactIdentity:o,onSelectLabel:q,isPageEnabledForWAM:D,onActivityListUpdated:r,onBanUser:t,isInKBankRollout:F,activitiesQueryReference:s,isBlockedInIG:u,readOnly:y,shouldShowCloseButton:a.shouldShowCloseButton,onClose:a.onClose,onShowContactCardTosModal:K,shouldShowContactCardTos:C,shouldDisableBizInput:z,pageRef:l==null?void 0:l.page,mbsBusinessAssetsRef:l==null?void 0:l.mbs_business_assets,rendererRef:null,businessAssets:w,shouldShowPaymentOnboardingContextCard:G})},d)});return j.jsx(d("BizKitContactCardOmnichannelContext.react").BizKitContactCardOmnichannelContext.Provider,{value:{activityConnectionID:L,setActivityConnectionID:B},children:j.jsxs("div",{className:"xdpxx8g","data-testid":void 0,children:[m,!e&&E!=null?j.jsx(c("BizKitContextCardErrorBoundary.react"),{pageID:p,children:j.jsx(c("BizKitContextCardTOSModal.react"),{bpnID:E,pageID:p,contactIdentity:o,pageContactID:A,surface:v,isShown:f,isAdmin:x,onHide:function(){H(!1),d("BizKitContextCardTosLoggingUtils").logTosModalCancelFlow(p,A,v)},onAcceptSuccess:function(){H(!1),J("success")},onAcceptFailure:function(){H(!1),J("error")}})}):null]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardTOSModal.react",["fbt","BizKitContextCardAcceptToSMutation","BizKitContextCardConstants","BizKitContextCardTosLoggingUtils","CRMConsentToTOSDialog.react","GeoButton.react","GeoCancelButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","RelayHooks","err","geoMargin","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useState;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=a.pageID,f=a.contactIdentity,g=a.pageContactID,k=a.surface,l=a.isShown,m=a.isAdmin,n=a.onHide,o=a.onAcceptSuccess,p=a.onAcceptFailure;a=j(!1);var q=a[0],r=a[1];a=j(!1);var s=a[0],t=a[1];a=function(){r(!0),d("BizKitContextCardTosLoggingUtils").logTosReviewButtonClick(e,g,k)};var u=function(){d("BizKitContextCardAcceptToSMutation").commit(b,{actor_id:e,identity:f},{onSuccess:function(a){a=(a=a.biz_crm_contact_sign_tos)==null?void 0:(a=a.biz_crm_contact)==null?void 0:a.has_consented_to_contact_card_tos;a===!0?(o(),d("BizKitContextCardTosLoggingUtils").logTosAcceptSuccess(e,g,k)):(p(),t(!1),d("BizKitContextCardTosLoggingUtils").logTosAcceptFailure(e,g,k,c("err")("unexpected tos signing failure")))},onFailure:function(a){p(),t(!1),d("BizKitContextCardTosLoggingUtils").logTosAcceptFailure(e,g,k,a)}})},v=function(){window.open("https://www.facebook.com/legal/page_contact_terms","_blank"),n()};return i.jsxs("span",{children:[i.jsx(c("GeoModal.react"),{footer:i.jsx(c("GeoModalFooter.react"),{primaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,label:m?h._("u67e5u770b"):h._("u67e5u770bu6761u6b3e"),onClick:m?a:v,isLoading:s,variant:"primary"}),secondaryButton:i.jsx(c("GeoCancelButton.react"),{"data-testid":void 0})}),header:i.jsx(c("GeoModalHeader.react"),{heading:m?c("BizKitContextCardConstants").CONTACT_CARD_TOS_HEADER_TEXT:c("BizKitContextCardConstants").CONTACT_CARD_TOS_NON_ADMIN_HEADER_TEXT}),isShown:l,onHide:n,children:i.jsxs(c("GeoSection.react"),{children:[i.jsx("div",{children:i.jsx(c("GeoText.react"),{xstyle:c("geoMargin").vert16,children:m?c("BizKitContextCardConstants").CONTACT_CARD_TOS_FIRST_SECTION_TEXT:c("BizKitContextCardConstants").CONTACT_CARD_TOS_NON_ADMIN_FIRST_SECTION_TEXT})}),i.jsx("div",{className:c("stylex")(c("geoMargin").top16),children:i.jsx(c("GeoLink.react"),{xstyle:c("geoMargin").vert16,onClick:m?a:v,children:i.jsx("strong",{children:m?c("BizKitContextCardConstants").CONTACT_CARD_TOS_CONTINUE_REVIEW_TEXT:h._("u67e5u770bu6761u6b3e")})})})]})}),i.jsx(c("CRMConsentToTOSDialog.react"),{isShown:q,onConfirm:function(){t(!0),d("BizKitContextCardTosLoggingUtils").logTosAcceptClick(e,g,k),u()},onHide:function(){n(),r(!1)},isLoading:s,alwaysAllowConfirm:!0})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitContextCardTosLoggingUtils",["BizKitContextCardUtils","ContactGraphTosAcceptClickFalcoEvent","ContactGraphTosAcceptFailureFalcoEvent","ContactGraphTosAcceptSuccessFalcoEvent","ContactGraphTosModalCancelFlowFalcoEvent","ContactGraphTosModalEnterFlowFalcoEvent","ContactGraphTosReviewButtonClickFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e){c("ContactGraphTosModalEnterFlowFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function b(a,b,e){c("ContactGraphTosModalCancelFlowFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function e(a,b,e){c("ContactGraphTosReviewButtonClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function f(a,b,e){c("ContactGraphTosAcceptClickFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function h(a,b,e){c("ContactGraphTosAcceptSuccessFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{},is_server_log:!1}})}function i(a,b,e,f){c("ContactGraphTosAcceptFailureFalcoEvent").log(function(){return{event_location:d("BizKitContextCardUtils").convertSurfaceToEventLocation(e),page_id:a,page_contact_id:b,event_data:{error_type:f.name,error_message:f.message,error_trace:f.stack},is_server_log:!1}})}g.logTosModalEnterFlow=a;g.logTosModalCancelFlow=b;g.logTosReviewButtonClick=e;g.logTosAcceptClick=f;g.logTosAcceptSuccess=h;g.logTosAcceptFailure=i}),98);
-----
ContactGraphTosModalEnterFlowFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("792");c=b("FalcoLoggerInternal").create("contact_graph_tos_modal_enter_flow",a);e.exports=c}),null);
-----
ContactGraphTosModalCancelFlowFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("791");c=b("FalcoLoggerInternal").create("contact_graph_tos_modal_cancel_flow",a);e.exports=c}),null);
-----
AudienceManagerCreateAudienceFlatDialogContainer.react",["cx","AdsAMAccountAcceptedTosAddAction","AdsAMCreateAudienceServerActions","AdsAMCreateAudienceStore","AdsAMCreateAudienceViewActions","AdsAMEngagementAudienceCreatedActionFlux","AdsAMFileImportCheckFileActionFlux","AdsAMFileImportCreateAudienceCompleteAction","AdsAMMailChimpFetchCompleteActionFlux","AdsAMMailChimpUploadCompleteActionFlux","AdsAMViewCloseMoveAdAccoutToBusinessDialogAction","AdsAccountStore","AdsAccountUtils","AdsAudienceCreationDialogConstants","AdsAudienceUploaderFlowNextSteps.react","AdsCustomAudienceType","AdsEngagementAudienceUILogger","AdsGeodesicAdoption","AdsGraphAPI","AdsInterfacesLogger","AdsManagerUserPermissions","AdsMgmtPerfScenarioController","AdsTargetingAudienceEditorGKSelectors","AdsTargetingBootloadDialog.react","AdsTargetingIosSignalLossSelectors","AudienceManagerCompleteUploadMessage.react","AudienceManagerCreateAudienceCompleteDialogContent.react","AudienceManagerCreateAudienceFlatDialogConstants","AudienceManagerCreateAudienceFlatDialogMainMenu.react","AudienceManagerCreateAudienceFlatDialogUtils","AudienceManagerCustomerListAudienceStepperModal.react","AudienceManagerErrorDialogContent.react","AudienceManagerLoggingEvents","AudienceManagerMailChimpInitDialogContent.react","AudienceManagerMailChimpSelectListDialogContent.react","AudienceManagerNextStepDialogContent.react","AudienceManagerShouldDisableMACAAsLookalikeSourceProvider","AudienceManagerSubscriberListAudienceStepperModal.react","AudienceManagerTieredLookalikeDialog.react","AudienceManagerUIConstants","AudienceManagerUploadDialogContent.react","BusinessManagerUpsellContainer.brands","CometPlaceholder.react","CreateCAStages","CustomAudienceTosUtils","CustomAudienceUtils","DataFileCustomAudienceUserLevelTOSModal.react","FluxContainer","GeoSpinner.react","JSResource","PopupWindow","XUIDialogTitle.react","lazyLoadComponent","promiseDone","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=c("AudienceManagerShouldDisableMACAAsLookalikeSourceProvider").toFluxSelector(),k="",l=c("lazyLoadComponent")(c("JSResource")("AudienceManagerCreateMultikeyAudienceImportDialogContainer.react").__setRef("AudienceManagerCreateAudienceFlatDialogContainer.react")),m=c("lazyLoadComponent")(c("JSResource")("AdsCreatePlatformAudienceDialogContainer.react").__setRef("AudienceManagerCreateAudienceFlatDialogContainer.react"));a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var g=arguments.length,h=new Array(g),i=0;i
-----
DataFileCustomAudienceUserLevelTOSModal.react",["fbt","ix","BUIButton.react","BUIModal.react","BUIModalFooter.react","BUISection.react","BUIText.react","FlexLayout.react","Image.react","ImageBlock.react","Link.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=j.jsx(c("Image.react"),{src:i("396621")}),l=h._("u81eau5b9au4e49u53d7u4f17u7684u4f7fu7528u8981u6c42"),m=h._("u4ef7u503cu5bfcu5411u578bu81eau5b9au4e49u53d7u4f17u7684u4f7fu7528u8981u6c42"),n=h._("u53eau6709u4ee5u4e0bu4ebau5458u53efu4ee5u4f7fu7528u81eau5b9au4e49u53d7u4f17uff1au5e7fu544au4e3bu3001u4ee3u8868u5e7fu544au4e3bu6267u884cu64cdu4f5cu7684u7ecfu9500u5546u6216u6570u636eu63d0u4f9bu65b9u3001u5e02u573au8425u9500 API u6216u81eau5b9au4e49u53d7u4f17 API u5408u4f5cu4f19u4f34u3002"),o=h._("Advertisers and those who run ads on their behalf are ultimately responsible for acknowledging their permission to share and use people"s data."),p=function(a){return h._("You are accepting terms on behalf of {business_name}",[h._param("business_name",j.jsx("strong",{children:a}))])},q=function(a,b){b=b===!0?j.jsx(c("Link.react"),{href:"/customaudiences/value_based/tos.php?act="+a,target:"_blank",children:h._("Meta u4e1au52a1u5de5u5177u6761u6b3e")}):j.jsx(c("Link.react"),{href:"/ads/manage/customaudiences/tos.php?act="+a,target:"_blank",children:h._("Custom Audience terms")});return h._("u70b9u51fbu201cu6211u540cu610fu201duff0cu5373u8868u793au4f60u63a5u53d7{custom_audience_terms}u3002",[h._param("custom_audience_terms",b)])};a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f
AdsTargetingAudienceEditorContainer.react",["cx","fbt","AdsAPISpec","AdsAudienceFilterEnum","AdsAutomationRenamingUtils","AdsCommonTargetingConstants","AdsCustomAudienceSharingConstants","AdsDetailedTargetingRelaxationUtils","AdsEditingCampaignEditorContext","AdsFluxContainer","AdsInterfacesLogger","AdsLookalikeContainerConstants","AdsMessengerPlacementUtils","AdsPEFluxCreateAudienceActionFlux","AdsStaticGuidanceCard.react","AdsTargetingAsASignalGuidanceCardImpressionsAction","AdsTargetingAudienceActions","AdsTargetingAudienceCreationPopoverMenu.react","AdsTargetingAudienceEditorSelector","AdsTargetingAudienceLoggingEvents","AdsTargetingAudienceNewVBLALAddedAction","AdsTargetingAudienceTokenizer.react","AdsTargetingAudienceUtils","AdsTargetingBootloadDialog.react","AdsTargetingConnectionCountriesMisalignmentAction","AdsTargetingCustomAudienceExpansionUtils","AdsTargetingDFCABMRequirementMTCNotice.react","AdsTargetingLookalikeContainerSeedSizeStatusAction","AdsTargetingLookalikeRelaxationConstants","AdsTargetingLookalikeRelaxationUtils","AdsTargetingSharedAudienceAgreementNotAcceptedMTCNotice.react","AdsTargetingSignalLossUtils","AdsTargetingSpecHasAppEventSegmentsAudienceFetchAction","AdsTargetingUntrustedAccountUsingDFCANotice.react","AdsTargetingVBLALUpsellUtils","AdsTargetingValueBasedLookalikeUpsellContainer.react","AdsUtils","AsyncRequest","AudienceManagerCreateAudienceFlatDialogSuspense.react","BUIGuidanceCard.react","BUIGuidanceCardCloseButton.react","BUIGuidanceCardContent.react","BUIGuidanceCardContentLink.react","BUIGuidanceCardContentText.react","BUIGuidanceCardHeader.react","BizSiteIdentifier.brands","ContextualLayerUpdateOnScroll","CustomAudienceTosUtils","CustomAudienceUtils","DataFileCustomAudienceUserLevelTOSModal.react","DatafileCustomAudienceSharingStatus","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardFooter.react","GeoGuidanceCardHeader.react","GeoLink.react","GeoSpinner.react","JSResource","LayerHideOnBlur","LetterboxEnumUtils","Link.react","LoadingMarkerArea.react","SimpleNUXMessage","TargetingEUPrivacyDirectiveConstants","URI","XAdsCampaignHasDeletedConnectionsSavedAuidenceController","XAdsTargetingAsASignalImpressionsController","XAdsTargetingConnectionsCountriesMisalignmentController","XAdsTargetingLookalikeContainerLowSeedsController","XHasDeprecatedAppEventSegmentsAudienceController","XUIAmbientNUX.react","adsTargetingCreateLookalikeContainers","adsUEditorSelectedCampaignsSelector","cachedGraphAPI","geoMargin","immutable","prop-types","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");a=d("react").Component;var k=600,l=d("AdsAPISpec").CUSTOM_AUDIENCE_FIELDS.map(d("AdsUtils").underscoreKey),m=310,n=new(c("URI"))("/business/help/917879191754763");function o(){return j.jsx("div",{className:"_2piv",children:j.jsx(c("LoadingMarkerArea.react"),{name:"AdsTargetingAudienceEditorContainer",owner:"admarket_targeting_oncalls",children:j.jsx(c("GeoSpinner.react"),{})})},"spinner")}o.displayName=o.name+" [from "+f.id+"]";function p(a){return(a.customAudiences||[]).concat(a.excludedCustomAudiences||[])}function q(a,b,e){return!a?null:j.jsx("div",{className:"_3-8i",id:"accept_dfca_user_tos_notice",children:j.jsx(c("AdsStaticGuidanceCard.react"),{ccCardProps:{category:"ERROR",messageID:"accept_dfca_user_tos_notice",textData:[{type:"PARAGRAPH",data:{text:d("AdsCustomAudienceSharingConstants").DFCA_TOS_NOT_ACCEPTED(b,e)}}],ctaData:[{type:"BUTTON_GROUP",data:{buttonsData:[{dataTestID:"audience-editor-container-dfca-tos-notice-button",text:"Next",onCallToAction:function(){d("AdsTargetingAudienceActions").showUserTosDialog(b)}}]}}]}})})}q.displayName=q.name+" [from "+f.id+"]";function r(a){var b=a.seedSizeStatus,e=a.isRegulated;a=a.hasLegacyLookalikes;return b==null||b.status!="LOW_SEEDS"||a==!0?null:j.jsxs(c("BUIGuidanceCard.react"),{category:"error",children:[j.jsx(c("BUIGuidanceCardHeader.react"),{children:d("AdsLookalikeContainerConstants").LOOKALIKE_SOURCE_TOO_SMALL_MESSAGE(e)}),j.jsx(c("BUIGuidanceCardContent.react"),{children:j.jsx(c("BUIGuidanceCardContentText.react"),{children:b.message})})]})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var b=a.isRegulated,e=a.spinnerStatus,f=a.audiencesLength,g=a.creationSource;a=a.onClose;if(e!=y.LOADED_SUCCESS||f===0)return null;e=d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_SUCCESS_BODY(g,b);return j.jsxs(c("BUIGuidanceCard.react"),{action:j.jsx(c("BUIGuidanceCardCloseButton.react"),{onPress:a}),category:"success",margin:"_3-8x _3-95",children:[j.jsx(c("BUIGuidanceCardHeader.react"),{children:d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_SUCCESS_HEADER(b)}),j.jsx(c("BUIGuidanceCardContent.react"),{children:j.jsx(c("BUIGuidanceCardContentText.react"),{children:e})})]})}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b=a.creationSource,e=a.hasLegacyLookalikes,f=a.spinnerStatus,g=a.isRegulated;a=a.onClick;if(f===y.LOADING)return j.jsx(c("GeoSpinner.react"),{label:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_SPINNER_TEXT(g)});return!e||f===y.LOADED_ERROR?null:j.jsx("div",{className:"_2pio",children:j.jsx(c("AdsStaticGuidanceCard.react"),{ccCardProps:{category:"ERROR",messageID:"convert_lookalike_to_lookalike_container_notice",header:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_BANNER_HEADER(g),textData:[{type:"PARAGRAPH",data:{text:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_BANNER_BODY(b,g)}}],ctaData:[{type:"BUTTON_GROUP",data:{buttonsData:[{text:d("AdsLookalikeContainerConstants").REMOVE_LOCATIONS_FROM_LOOKALIKES_BUTTON_TEXT(g),onCallToAction:a}]}}]}})})}t.displayName=t.name+" [from "+f.id+"]";function u(){return j.jsx(c("GeoGuidanceCard.react"),{footer:j.jsx(c("GeoGuidanceCardFooter.react"),{children:j.jsx(c("GeoLink.react"),{href:d("TargetingEUPrivacyDirectiveConstants").EU_PRIVACY_DIRECTIVE_AUDIENCE_MANAGER_LEARN_MORE_LINK,target:"_blank",children:d("TargetingEUPrivacyDirectiveConstants").EU_PRIVACY_DIRECTIVE_AUDIENCE_MANAGER_LEARN_MORE})}),header:j.jsx(c("GeoGuidanceCardHeader.react"),{heading:d("TargetingEUPrivacyDirectiveConstants").REMOVE_EU_PRIVACY_DIRECTIVE_AUDIENCES_ERROR_HEADER}),status:"error",xstyle:[c("geoMargin").top8,c("geoMargin").bottom8],children:j.jsx(c("GeoGuidanceCardContent.react"),{children:d("TargetingEUPrivacyDirectiveConstants").REMOVE_EU_PRIVACY_DIRECTIVE_AUDIENCES_ERROR_BODY_POST_DEC_9})})}u.displayName=u.name+" [from "+f.id+"]";function v(a){var b=a.hasLegacyLookalikes,e=a.spinnerStatus,f=a.audiencesLength,g=a.isRegulated;a=a.creationSource;if(e!=y.LOADED_ERROR||f==0)return null;if(!b)return null;e=d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_ERROR_BODY(a,g);return j.jsxs(c("BUIGuidanceCard.react"),{category:"error",margin:"_3-8x _3-95",children:[j.jsx(c("BUIGuidanceCardHeader.react"),{children:d("AdsLookalikeContainerConstants").LOOKALIKE_LOCATIONS_REMOVED_ERROR_HEADER(g)}),j.jsx(c("BUIGuidanceCardContent.react"),{children:j.jsx(c("BUIGuidanceCardContentText.react"),{children:e})})]})}v.displayName=v.name+" [from "+f.id+"]";function w(a){a=a.badAudiences;a=i._("u4f60u4fddu5b58u7684u53d7u4f17u65e0u6cd5u4f7fu7528uff0cu56e0u4e3au5b83u5305u542bu81f3u5c11u4e00u4e2au5df2u7981u7528u7684u53d7u4f17u3002u4e0eu4f60u5171u4eabu7981u7528u53d7u4f17u7684u5e10u6237u5df2u505cu7528u3002u5982u9700u7ee7u7eedu4f7fu7528u4fddu5b58u7684u53d7u4f17uff0cu8bf7u79fbu9664u4ee5u4e0bu53d7u5f71u54cdu7684u53d7u4f17uff1a{bad audiences}",[i._param("bad audiences",a.join(","))]);return j.jsx("div",{className:"_2pio",id:"saved_audience_owner_account_disabled_notice",children:j.jsx(c("AdsStaticGuidanceCard.react"),{ccCardProps:{category:"ERROR",messageID:"saved_audience_owner_disabled_notice",textData:[{type:"PARAGRAPH",data:{text:a}}]}})})}w.displayName=w.name+" [from "+f.id+"]";function x(a,b){return a===!0&&b===!0}var y=Object.freeze({LOADING:"LOADING",LOADED_SUCCESS:"LOADED_SUCCESS",LOADED_ERROR:"LOADED_ERROR",NONE:"NONE"});b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
-----
LeadsManagerViewReducer",[],(function(a,b,c,d,e,f){"use strict";function a(a){return{settingsViewShown:!1,showCSVImportSection:!1,isShowingToS:!a.isToSAccepted}}function b(a,b){switch(b.type){case"LEADS_MANAGER_SETTINGS_VIEW":return babelHelpers["extends"]({},a,{showCSVImportSection:!1,settingsViewShown:b.settingsViewShown});case"LEADS_MANAGER_TOGGLE_CSV_IMPORT_SECTION":return babelHelpers["extends"]({},a,{settingsViewShown:!1,showCSVImportSection:b.showCSVImportSection});case"LEADS_MANAGER_TOGGLE_TOS_MODAL":return babelHelpers["extends"]({},a,{isShowingToS:b.showToSModal,settingsViewShown:!1,showCSVImportSection:!1});default:return a}}f.getInitialViewState=a;f.viewReducer=b}),66);
-----
LeadsManagerMainView.react",["cx","fbt","ix","$InternalEnum","BasicFBNux","BizKitDefaultPage.react","BizKitPageHeader.react","BizKitPageHeaderStrings","ErrorBoundary.react","FlexLayout.react","GeoCard.react","GeoFlexbox.react","GeoHeading.react","GeoPageHeader.react","GeoSection.react","GeoTab.react","GeoTabGroup.react","GeoToolbar.react","GeoTour.react","GeoTourFeatureStep.react","LeadsCenterAYMTRefs.react","LeadsCenterDigestNotificationClickFalcoEvent","LeadsCenterLeadsTabClickFalcoEvent","LeadsCenterMarketingEmailUpsellBanner.react","LeadsCenterOnboardingDismissFalcoEvent","LeadsCenterOnboardingEnterFlowFalcoEvent","LeadsCenterOnboardingExitFlowFalcoEvent","LeadsCenterPopUpTipRenderer.react","LeadsCenterQPLLogger","LeadsManagerActionBar.react","LeadsManagerCSVImportToast.react","LeadsManagerConstants","LeadsManagerContext","LeadsManagerLeadDetailsContainer.react","LeadsManagerSearchRoot.react","LeadsManagerSearchRootNew.react","LeadsManagerStagesBarRoot.react","LeadsManagerTableRoot.react","LeadsManagerTypes","LeadsManagerViewContext","RelayHooks","fbicon","geoMargin","isTruthy","nullthrows","qpl","react","stylex"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=d("react");e=d("react");var l=e.useContext,m=e.useEffect,n=e.useState,o=b("$InternalEnum").Mirrored(["NOT_READY","SHOW_NUX","DISABLED"]),p="paid_digest",q={workArea:{marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",paddingLeft:"xnm25rq",paddingRight:"xyfqnmn",$$css:!0},tableSplit:{alignItems:"x1qjc9v5",boxSizing:"x9f619",display:"x78zum5",$$css:!0},workAreaRedesignMVP:{marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",$$css:!0},tableSplitRedesignMVP:{boxSizing:"x9f619",$$css:!0},leadsManagerMainViewRedesignMVP:{display:"x78zum5",flexDirection:"x1q0g3np",width:"xh8yej3",$$css:!0},leadsManagerMainViewWithTableRedesignMVP:{display:"x78zum5",flexDirection:"xdt5ytf",width:"xh8yej3",$$css:!0},leadsManagerContactCardRedesignMVP:{width:"xh8yej3",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},mainContentRootMVP:{overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},contextCardContainerMVP:{width:"xh8yej3",height:"x5yr21d",position:"x1n2onr6",bottom:"x1ey2m1c",left:"xu96u03",right:"x3m8u43",top:"x13vifvy",overflowX:"x6ikm8r",$$css:!0},fullWidth:{width:"xh8yej3",$$css:!0}},r=d("fbicon")._(j("531311"),16),s=d("fbicon")._(j("875309"),16);function a(a){var b,e,f=a.pageID,g=a.response,h=l(c("LeadsManagerContext")),j=h.dispatch,w=h.state;h=l(c("LeadsManagerViewContext"));var x=h.dispatchForView;h=d("RelayHooks").useRelayEnvironment();var y=new URLSearchParams(window.location.search),z=y.get("entry_exp")===p,A=k.createRef();m(function(){z&&w.selectedSource!=="Paid"&&(j({type:"LEADS_MANAGER_SELECT_SOURCE",source:"Paid"}),A.current==null&&(A.current=!0,c("LeadsCenterDigestNotificationClickFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{notification_use_case:"PAID_NEW_LEAD"},event_location:"leads_center",page_id:f}}))),d("LeadsCenterQPLLogger").logEventStart(c("qpl")._(793518510,"1087"),!0)},[j,z]);y=n(c("isTruthy")((y=g.onboarding_nux)==null?void 0:y.should_show)?o.NOT_READY:o.DISABLED);var B=y[0],C=y[1],D=w.currentTableState,E=w.isInBizKit,F=w.shouldShowLeadCenterIntegration;y=w.isPageInLeadsCenterQualTest;var G=w.shouldShowLeadManagementMVP,H=w.isPageInLeadsCenterPipelineViewTest,I=w.selectedLeadIDs,J=w.openLeadsCenterDetailView;I=I.toArray();B===o.NOT_READY&&D===d("LeadsManagerTypes").LeadsManagerTableStates.LEADS_LOADED&&C(o.SHOW_NUX);m(function(){(D===d("LeadsManagerTypes").LeadsManagerTableStates.LEADS_LOADED||D===d("LeadsManagerTypes").LeadsManagerTableStates.NULL_STATE)&&d("LeadsCenterQPLLogger").logEventEndSuccess(c("qpl")._(793516600,"692"))},[D]);var K=function(b){c("LeadsCenterOnboardingDismissFalcoEvent").log(function(){return{event_location:"leads_center",page_id:a.pageID,client_timestamp_ms:Date.now(),event_data:{step_id:b}}})},L=function(){var b;b=B===o.SHOW_NUX&&c("isTruthy")((b=g.onboarding_nux)==null?void 0:b.should_show);b&&(d("BasicFBNux").onView(d("LeadsManagerConstants").ONBOARDING_NUX_ID),c("LeadsCenterOnboardingEnterFlowFalcoEvent").log(function(){return{event_location:"leads_center",page_id:a.pageID,client_timestamp_ms:Date.now(),event_data:{}}}));return k.jsxs(c("GeoTour.react"),{isActive:b,onHide:function(){C(o.DISABLED)},onComplete:function(){c("LeadsCenterOnboardingExitFlowFalcoEvent").log(function(){return{event_location:"leads_center",page_id:a.pageID,client_timestamp_ms:Date.now(),event_data:{}}})},children:[k.jsx(c("GeoTourFeatureStep.react"),{content:i._("u7ef4u62a4u7ebfu7d22u5e7fu544au4e92u52a8u7528u6237u7684u4fe1u606fu3002u8f7bu677eu7ec4u7ec7u7ba1u7406u6f5cu5728u5ba2u6237uff0cu6216u4e0eu4e4bu5b9eu65f6u4e92u52a8uff0cu4eceu800cu62c9u8fd1u4e0eu4ed6u4eecu7684u8dddu79bbu3002"),position:"above",heading:i._("u57f9u517bu6f5cu5728u5ba2u6237"),image:k.jsx(k.Fragment,{}),contextRef:d("LeadsCenterAYMTRefs.react").tableRef,onHide:function(){K("table")}}),k.jsx(c("GeoTourFeatureStep.react"),{content:i._("u67e5u770bu6f5cu5728u5ba2u6237u8be6u60c5uff0cu4e86u89e3u4f60u7684u6f5cu5728u5ba2u6237u3002u4f60u53efu4ee5u6307u5b9au6240u6709u8005u3001u8bbeu7f6eu63d0u9192u6216u8005u6dfbu52a0u5907u6ce8u548cu6807u7b7euff0cu4ee5u4fbfu4e0eu6f5cu5728u5ba2u6237u8fdbu884cu66f4u591au4e92u52a8u3002"),position:"above",heading:i._("u7f16u8f91u6f5cu5728u5ba2u6237u8be6u60c5"),image:k.jsx(k.Fragment,{}),contextRef:d("LeadsCenterAYMTRefs.react").detailRef,onHide:function(){K("contact")}}),k.jsx(c("GeoTourFeatureStep.react"),{content:i._("u6309u9636u6bb5u5bf9u6f5cu5728u5ba2u6237u8fdbu884cu5206u7c7bu5e76u8ffdu8e2au8f6cu5316u8fdbu5ea6u3002u4f60u53efu4ee5u5728u8bbeu7f6eu4e2du521bu5efau3001u5220u9664u3001u91cdu65b0u6392u5217u6216u91cdu547du540du9636u6bb5uff0cu8fdbu4e00u6b65u5b9au5236u6f5cu5728u5ba2u6237u6f0fu6597u3002"),heading:i._("u5206u9636u6bb5u7ba1u7406u6f5cu5728u5ba2u6237"),image:k.jsx(k.Fragment,{}),contextRef:d("LeadsCenterAYMTRefs.react").stageRef,onHide:function(){K("stage")}}),k.jsx(c("GeoTourFeatureStep.react"),{content:i._("u5229u7528u81eau5b9au4e49u53d7u4f17u529fu80fduff0cu5728 Facebook u7528u6237u4e2du627eu5230u73b0u6709u53d7u4f17uff0cu6216u8005u501fu52a9u7c7bu4f3cu53d7u4f17u529fu80fduff0cu5438u5f15u4e0eu73b0u6709u6f5cu5728u5ba2u6237u7c7bu4f3cu7684u65b0u53d7u4f17u3002"),heading:i._("u5229u7528u53d7u4f17u5de5u5177u5438u5f15u65b0u7684u6f5cu5728u5ba2u6237"),image:k.jsx(k.Fragment,{}),contextRef:d("LeadsCenterAYMTRefs.react").audienceRef,onHide:function(){K("audience")}})]})},M=t(g),N=u(g),O=v(g);O={owners:M,pageDetails:O,pageID:f,stages:N};var P=n("table"),Q=P[0];P=P[1];b=(b=a==null?void 0:(b=a.response.page)==null?void 0:(b=b.business_presence_node)==null?void 0:(b=b.biz_crm_config)==null?void 0:(b=b.crm_feature_gating)==null?void 0:b.should_show_audience_tool)!=null?b:!1;var R=k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("LeadsManagerActionBar.react"),{pageID:f,audienceExpansionLWI:c("nullthrows")(g.lwi),crmConfig:(e=g.page)==null?void 0:(e=e.business_presence_node)==null?void 0:e.biz_crm_config,shouldShowAudienceTool:b,audienceButtonRef:d("LeadsCenterAYMTRefs.react").audienceRef})});e=k.jsxs("div",{className:"x1qjc9v5 x9f619 x78zum5",children:[k.jsx("div",{style:{width:1400},children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").tableRef,children:k.jsx(c("LeadsManagerTableRoot.react"),babelHelpers["extends"]({},O,{environment:h,showToSModal:function(){x({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})},leadsCenterView:"table"}))})})}),k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").detailRef,children:k.jsx(c("LeadsManagerLeadDetailsContainer.react"),babelHelpers["extends"]({},O,{shouldShowLeadCenterIntegration:F}))})}),w.shouldShowCSVImportToast&&k.jsx(c("LeadsManagerCSVImportToast.react"),{})]});b=k.jsxs("div",{className:"x9f619",children:[k.jsx("div",{className:"xh8yej3",children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").tableRef,children:k.jsx(c("LeadsManagerTableRoot.react"),babelHelpers["extends"]({},O,{environment:h,showToSModal:function(){x({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})},leadsCenterView:"table"}))})})}),w.shouldShowCSVImportToast&&k.jsx(c("LeadsManagerCSVImportToast.react"),{})]});var S=k.jsxs(c("GeoCard.react"),{children:[E&&k.jsx(c("GeoSection.react"),{children:k.jsxs(c("FlexLayout.react"),{justify:"all",align:"center",children:[k.jsx(c("GeoHeading.react"),{level:1,children:d("LeadsManagerConstants").OPPORTUNITIES}),R]})}),k.jsxs("div",{children:[k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").stageRef,children:k.jsx(c("LeadsManagerStagesBarRoot.react"),{pageID:f,stages:N})})})}),k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("LeadsManagerSearchRoot.react"),{pageID:f,owners:M,leadsCenterView:Q})})})]}),k.jsx("div",{className:"clearfix"}),e]});h=k.jsxs("div",{className:"x1qjc9v5 x9f619 x78zum5",children:[k.jsx("div",{style:{width:1400},children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").tableRef,children:k.jsx(c("LeadsManagerTableRoot.react"),babelHelpers["extends"]({},O,{environment:h,showToSModal:function(){x({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})},leadsCenterView:"pipeline"}))})})}),w.shouldShowCSVImportToast&&k.jsx(c("LeadsManagerCSVImportToast.react"),{})]});P=k.jsx("div",{style:{maxWidth:"400"},className:c("stylex")(c("geoMargin").top16,c("geoMargin").start12),children:k.jsxs(c("GeoTabGroup.react"),{onChange:P,value:Q,children:[k.jsx(c("GeoTab.react"),{icon:r,label:d("LeadsManagerConstants").PIPELINE_VIEW_TAB_LABEL,value:"pipeline",onActivate:Q==="table"?U:void 0}),k.jsx(c("GeoTab.react"),{icon:s,label:d("LeadsManagerConstants").TABLE_VIEW_TAB_LABEL,value:"table",onActivate:Q==="pipeline"?U:void 0})]})});U=k.jsxs("div",{children:[k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").filterToolRef,className:c("stylex")(c("geoMargin").bottom12),children:k.jsx(c("GeoCard.react"),{children:k.jsxs("div",{children:[P,k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("LeadsManagerSearchRootNew.react"),{pageID:f,owners:M,leadsCenterView:Q})})})]})})}),k.jsx("div",{className:"clearfix"}),h]});h=k.jsxs("div",{className:"xh8yej3",children:[k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").filterToolRef,className:c("stylex")(c("geoMargin").bottom12),children:k.jsx(c("GeoCard.react"),{children:k.jsxs("div",{children:[P,k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("LeadsManagerSearchRootNew.react"),{pageID:f,owners:M,leadsCenterView:Q})})}),k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").stageRef,children:k.jsx(c("LeadsManagerStagesBarRoot.react"),{pageID:f,stages:N})})})})]})})}),k.jsx("div",{className:"clearfix"}),b]});P=k.jsxs(c("GeoCard.react"),{children:[k.jsxs("div",{ref:d("LeadsCenterAYMTRefs.react").filterToolRef,children:[k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("LeadsManagerSearchRootNew.react"),{pageID:f,owners:M,leadsCenterView:Q})})}),k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").stageRef,children:k.jsx(c("LeadsManagerStagesBarRoot.react"),{pageID:f,stages:N})})})})]}),k.jsx("div",{className:"clearfix"}),e]});e=k.jsxs("div",{children:[k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").filterToolRef,className:c("stylex")(c("geoMargin").bottom12),children:k.jsx(c("GeoCard.react"),{children:k.jsxs("div",{children:[k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("LeadsManagerSearchRootNew.react"),{pageID:f,owners:M,leadsCenterView:Q})})}),k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").stageRef,children:k.jsx(c("LeadsManagerStagesBarRoot.react"),{pageID:f,stages:N})})})})]})})}),k.jsx("div",{className:"clearfix"}),e]});M=k.jsxs("div",{className:"xh8yej3",children:[k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").filterToolRef,className:c("stylex")(c("geoMargin").bottom12),children:k.jsx(c("GeoCard.react"),{children:k.jsxs("div",{children:[k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx(c("LeadsManagerSearchRootNew.react"),{pageID:f,owners:M,leadsCenterView:Q})})}),k.jsx(c("GeoSection.react"),{children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").stageRef,children:k.jsx(c("LeadsManagerStagesBarRoot.react"),{pageID:f,stages:N})})})})]})})}),k.jsx("div",{className:"clearfix"}),b]});N=k.jsx("div",{children:Q==="pipeline"?U:Q==="table"?h:e});var T=F?d("BizKitPageHeaderStrings").LEADS:d("BizKitPageHeaderStrings").CUSTOMER;function U(){c("LeadsCenterLeadsTabClickFalcoEvent").log(function(){return{client_timestamp_ms:Date.now(),event_data:{leads_center_view_type:Q==="table"?"pipeline":"table"},event_location:"leads_center",page_id:f}}),j({type:"LEADS_MANAGER_CLEAR_FILTERS"})}b=k.jsx("div",{className:["xr1yuqi xkrivgy x4ii5y1 x1gryazu","x78zum5 x1q0g3np xh8yej3"],children:k.jsxs("div",{className:["x78zum5 xdt5ytf xh8yej3"],children:[L(),(F||G)&&k.jsx(c("LeadsCenterPopUpTipRenderer.react"),{}),H?N:G?M:y?e:F?P:S]})});U=k.jsx("div",{className:"xh8yej3 x5yr21d x1n2onr6 x1ey2m1c xu96u03 x3m8u43 x13vifvy x6ikm8r",children:k.jsx(c("ErrorBoundary.react"),{children:k.jsx("div",{ref:d("LeadsCenterAYMTRefs.react").detailRef,className:"xh8yej3 x5yr21d x6ikm8r x10wlt62",children:k.jsx(c("LeadsManagerLeadDetailsContainer.react"),babelHelpers["extends"]({},O,{shouldShowLeadCenterIntegration:F}))})})});var V=k.jsx(k.Fragment,{children:E&&k.jsx(c("LeadsCenterMarketingEmailUpsellBanner.react"),{query:a==null?void 0:a.response,pageID:f,bpnID:c("nullthrows")((h=g.page)==null?void 0:(M=h.business_presence_node)==null?void 0:M.id)})});O=function(){return k.jsx(c("GeoPageHeader.react"),{heading:T,toolbar:k.jsx(c("GeoToolbar.react"),{children:k.jsxs(k.Fragment,{children:[E||R,E&&k.jsx(c("FlexLayout.react"),{justify:"all",align:"center",children:F&&R}),V]})})})};return k.jsx(k.Fragment,{children:G||H?k.jsx(c("BizKitDefaultPage.react"),{initShowLocalNav:!1,hideHeader:!0,header:O(),contextualObject:I.length===0&&J===!1?null:k.jsx(c("GeoCard.react"),{children:U}),isFullwidth:!0,children:k.jsx(c("GeoCard.react"),{children:k.jsxs(c("GeoFlexbox.react"),{direction:"row",xstyle:Q==="pipeline"?{}:q.mainContentRootMVP,children:[k.jsx(c("GeoFlexbox.react"),{basis:"0",grow:1,shrink:1}),b]})})}):k.jsxs("div",{className:["xr1yuqi xkrivgy x4ii5y1 x1gryazu xnm25rq xyfqnmn"],style:{maxWidth:d("LeadsManagerConstants").MAX_SCREEN_WIDTH+"px"},children:[L(),(F||G)&&k.jsx(c("LeadsCenterPopUpTipRenderer.react"),{}),E||R,E&&k.jsx("div",{className:c("stylex")(c("geoMargin").bottom16,c("geoMargin").top24),children:k.jsxs(c("FlexLayout.react"),{justify:"all",align:"center",children:[k.jsx(c("BizKitPageHeader.react"),{heading:T}),F&&R]})}),V,H?N:y?e:F?P:S]})})}a.displayName=a.name+" [from "+f.id+"]";function t(a){var b=[];a=(a=a.page)==null?void 0:a.possible_lead_owners;a!=null&&a.map(function(a){b.push(a)});return b}function u(a){return(a=a.page)==null?void 0:a.page_opportunity_stages}function v(a){a=a.page;return{id:(a==null?void 0:a.id)||"",name:(a==null?void 0:a.name)||"",pictureURL:(a==null?void 0:(a=a.profile_picture)==null?void 0:a.uri)||""}}g["default"]=a}),98);
-----
LeadsManagerToSDialog.react",["cx","fbt","CRMConsentToTOSDialog.react","GeoButton.react","GeoCancelButton.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoSpinner.react","GeoText.react","LeadsCenterTosDismissFalcoEvent","LeadsCenterTosImpressionFalcoEvent","LeadsCenterTosSubmitFlowFalcoEvent","LeadsManagerAcceptToSMutation","LeadsManagerContext","LeadsManagerViewContext","RelayHooks","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");b=d("react");var k=b.useContext,l=b.useState;function a(a){var b=k(c("LeadsManagerViewContext")),e=b.stateForView,f=b.dispatchForView;b=k(c("LeadsManagerContext"));var g=b.dispatch;b=l(!1);var h=b[0],n=b[1];b=l(!1);var o=b[0],p=b[1];b=e.isShowingToS;var q=d("RelayHooks").useRelayEnvironment();e=k(c("LeadsManagerContext"));e=e.state;var r=e.isInBizKit?"BIZWEB_LEAD_CENTER":"PAGE_LEAD_CENTER";if(!a||h)return j.jsx(c("GeoSpinner.react"),{});b&&c("LeadsCenterTosImpressionFalcoEvent").log(function(){return{page_id:a.pageID,event_location:"leads_center",event_data:{}}});return j.jsxs("span",{children:[j.jsxs(c("GeoModal.react"),{footer:j.jsx(c("GeoModalFooter.react"),{primaryButton:j.jsx(c("GeoButton.react"),{"data-testid":void 0,label:e.shouldShowLeadCenterIntegration?i._("u786eu8ba4"):i._("u540cu610f"),onClick:function(){f({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!1}),m(a.pageID,r,n,q,g)},variant:"primary"}),secondaryButton:j.jsx(c("GeoCancelButton.react"),{})}),header:j.jsx(c("GeoModalHeader.react"),{heading:e.shouldShowLeadManagementMVP?i._("u7ebfu7d22u5e7fu544au670du52a1u6761u6b3e"):i._("u6f5cu5728u5ba2u6237u7ba1u7406u4e2du5fc3u670du52a1u6761u6b3e")}),isShown:b&&e.shouldShowLeadManagementMVP&&!e.shouldShowLeadsCenterMVPWelcomeModal||b&&!e.shouldShowLeadManagementMVP,label:i._("u6f5cu5728u5ba2u6237u7ba1u7406u4e2du5fc3u670du52a1u6761u6b3e"),onHide:function(){c("LeadsCenterTosDismissFalcoEvent").log(function(){return{page_id:a.pageID,event_location:"leads_center",event_data:{}}}),f({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!1})},width:560,children:[j.jsx(c("GeoSection.react"),{children:j.jsx("div",{children:j.jsxs("div",{className:"_96mo",children:[j.jsx("div",{children:j.jsx(c("GeoText.react"),{children:i._("u4f60u7684u6f5cu5728u5ba2u6237u76f8u4fe1u4f60u4f1au4ee5u8d1fu8d23u4efbu7684u6001u5ea6u5904u7406u4ed6u4eecu7684u4fe1u606fu3002u70b9u51fbu201cu786eu8ba4u201duff0cu5373u8868u793au4f60u540cu610fu4e0bu5217u4e8bu9879uff1a")})}),j.jsx("div",{className:"_96mp",children:j.jsx(c("GeoText.react"),{children:i._("u4f60u6709u6743u9650u50a8u5b58u548cu4f7fu7528u6f5cu5728u5ba2u6237u4fe1u606fu53d1u9001u4ea4u6613u548cu63a8u5e7fu6d88u606fu3002")})}),j.jsx("div",{className:"_96mp",children:j.jsx(c("GeoText.react"),{children:i._("u4f60u7684u8054u7cfbu4ebau9009u62e9u5141u8bb8u51fau4e8eu8425u9500u76eeu7684u5206u4eabu6216u4f7fu7528u5176u6570u636eu3002")})}),j.jsx("div",{className:"_96mp",children:j.jsx(c("GeoText.react"),{children:i._("u5982u679cu8054u7cfbu4ebau9009u62e9u7981u6b62u5206u4eabu5176u4fe1u606fuff0cu65e0u8bbau4f55u65f6uff0cu4f60u90fdu5c06u7acbu5373u79fbu9664u76f8u5173u4fe1u606fu3002")})}),e.shouldShowLeadManagementMVP&&j.jsx("div",{className:"_96mp",children:j.jsx(c("GeoText.react"),{children:i._("u62e5u6709u6d88u606fu6536u53d1u6743u9650u7684u6536u4ef6u7bb1u7528u6237u5c06u81eau52a8u83b7u5f97u6f5cu5728u5ba2u6237u6743u9650u3002")})}),a.leadCount===0&&j.jsx(c("GeoLink.react"),{onClick:function(){p(!0)},children:i._("u67e5u770bu6211u4eecu7684u516cu5171u4e3bu9875u8054u7cfbu4ebau529fu80fdu670du52a1u6761u6b3e")})]})})}),a.leadCount>0&&j.jsx(c("GeoSection.react"),{children:j.jsx("div",{children:j.jsx("div",{className:"_96mo",children:j.jsx(c("GeoText.react"),{children:e.shouldShowLeadManagementMVP?(h=i._plural(a.leadCount,"number"),i._({"*":"u4f60u901au8fc7u5e7fu544au83b7u5f97{number}u4f4du53efu5bfcu5165u201cu6f5cu5728u5ba2u6237u201du7248u5757u7684u6f5cu5728u5ba2u6237u3002u70b9u51fbu4e0bu65b9u7684u201cu786eu8ba4u201duff0cu5373u8868u793au4f60u540cu610f{=m4}u5e76u4f1au5f00u59cbu5bfcu5165u6f5cu5728u5ba2u6237u4fe1u606fu3002u4f60u8fd8u53efu4ee5u901au8fc7{=m8}u4e0bu8f7du548cu67e5u770bu6f5cu5728u5ba2u6237u4fe1u606fu3002","_1":"u4f60u901au8fc7u5e7fu544au83b7u5f97 1 u4f4du53efu5bfcu5165u201cu6f5cu5728u5ba2u6237u201du7248u5757u7684u6f5cu5728u5ba2u6237u3002u70b9u51fbu4e0bu65b9u7684u201cu786eu8ba4u201duff0cu5373u8868u793au4f60u540cu610f{=m4}u5e76u4f1au5f00u59cbu5bfcu5165u6f5cu5728u5ba2u6237u4fe1u606fu3002u4f60u8fd8u53efu4ee5u901au8fc7{=m8}u4e0bu8f7du548cu67e5u770bu6f5cu5728u5ba2u6237u4fe1u606fu3002"},[h,i._implicitParam("=m4",j.jsx(c("GeoLink.react"),{onClick:function(){p(!0)},children:i._({"*":"u516cu5171u4e3bu9875u8054u7cfbu4ebau529fu80fdu670du52a1u6761u6b3e"},[h])})),i._implicitParam("=m8",j.jsx(c("GeoLink.react"),{href:"../publishing_tools/?section=LEAD_ADS_FORMS",children:i._({"*":"u53d1u5e03u5de5u5177"},[h])}))])):(h=i._plural(a.leadCount,"number"),i._({"*":"u4f60u901au8fc7u7ebfu7d22u5e7fu544au83b7u5f97{number}u4f4du53efu5bfcu5165u6f5cu5728u5ba2u6237u7ba1u7406u4e2du5fc3u7684u6f5cu5728u5ba2u6237u3002u70b9u51fbu4e0bu65b9u7684u201cu786eu8ba4u201duff0cu5373u8868u793au4f60u540cu610f{=m4}u5e76u4f1au5f00u59cbu5bfcu5165u6f5cu5728u5ba2u6237u4fe1u606fu3002u4f60u8fd8u53efu4ee5u901au8fc7{=m8}u4e0bu8f7du548cu67e5u770bu6f5cu5728u5ba2u6237u4fe1u606f","_1":"u4f60u901au8fc7u7ebfu7d22u5e7fu544au83b7u5f97 1 u4f4du53efu5bfcu5165u6f5cu5728u5ba2u6237u7ba1u7406u4e2du5fc3u7684u6f5cu5728u5ba2u6237u3002u70b9u51fbu4e0bu65b9u7684u201cu786eu8ba4u201duff0cu5373u8868u793au4f60u540cu610f{=m4}u5e76u4f1au5f00u59cbu5bfcu5165u6f5cu5728u5ba2u6237u4fe1u606fu3002u4f60u8fd8u53efu4ee5u901au8fc7{=m8}u4e0bu8f7du548cu67e5u770bu6f5cu5728u5ba2u6237u4fe1u606f"},[h,i._implicitParam("=m4",j.jsx(c("GeoLink.react"),{onClick:function(){p(!0)},children:i._({"*":"u516cu5171u4e3bu9875u8054u7cfbu4ebau529fu80fdu670du52a1u6761u6b3e"},[h])})),i._implicitParam("=m8",j.jsx(c("GeoLink.react"),{href:"../publishing_tools/?section=LEAD_ADS_FORMS",children:i._({"*":"u53d1u5e03u5de5u5177"},[h])}))]))})})})})]}),j.jsx(c("CRMConsentToTOSDialog.react"),{isShown:o,onConfirm:function(){p(!1)},onHide:function(){p(!1)}})]})}a.displayName=a.name+" [from "+f.id+"]";function m(a,b,e,f,g){c("LeadsCenterTosSubmitFlowFalcoEvent").log(function(){return{page_id:a,event_location:"leads_center",event_data:{}}}),e(!0),d("LeadsManagerAcceptToSMutation").commit(f,{actor_id:a,signature_surface:b},{onSuccess:function(a){var b;b=(b=a.lead_gen_tos_consent)==null?void 0:b.success;if(b===!0){g({type:"LEADS_MANAGER_ACCEPT_TOS_ACTION",isBackFillJobsRunning:((b=a.lead_gen_tos_consent)==null?void 0:(a=b.page)==null?void 0:a.has_leads_center_back_fill_job_running)||!1});g({type:"LEADS_MANAGER_SELECT_STAGE",stageID:null})}else e(!1)},onFailure:function(){e(!1)}})}g["default"]=a}),98);
-----
LeadsManagerTableNullState.react",["fbt","BUIButton.react","BUIText.react","FlexLayout.react","LeadsManagerLeadDetailsEditContactDialog.react","LeadsManagerViewContext","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useContext,k=b.useState;function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=j(c("LeadsManagerViewContext")),f=e.dispatchForView;e=k(!1);var g=e[0],l=e[1];e=a.nullStateType;a=a.pageID;switch(e){case"TOS":return i.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[i.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center",children:h._("u8bf7u63a5u53d7u516cu5171u4e3bu9875u8054u7cfbu4ebau6761u6b3euff0cu4ee5u4fbfu4f7fu7528u6f5cu5728u5ba2u6237u7ba1u7406u5de5u5177u3002")}),i.jsx(c("BUIButton.react"),{label:h._("u67e5u770bu6761u6b3e"),use:"primary",onClick:function(){f({type:"LEADS_MANAGER_TOGGLE_TOS_MODAL",showToSModal:!0})}})]});case"NO_LEADS":return i.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[g&&i.jsx(c("LeadsManagerLeadDetailsEditContactDialog.react"),{environment:b,lead:null,pageID:a,onClose:function(){l(!1)}}),i.jsx(c("BUIText.react"),{size:"header2","data-testid":void 0,children:h._("You don"t have any leads yet")}),i.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center","data-testid":void 0,children:h._("u901au8fc7u4f60u7684u7ebfu7d22u5e7fu544au83b7u5f97u7684u6f5cu5728u5ba2u6237u4f1au81eau52a8u663eu793au5728u8fd9u91ccu3002u4f60u4e5fu53efu4ee5u624bu52a8u521bu5efau6f5cu5728u5ba2u6237uff0cu6216u4eceu7535u5b50u8868u683cu4e0au4f20u6f5cu5728u5ba2u6237u540du5355u3002")}),i.jsxs("div",{margin:"_3-8x",children:[i.jsx(c("BUIButton.react"),{label:h._("u521bu5efau6f5cu5728u5ba2u6237"),use:"default",onClick:function(){l(!0)},"data-testid":void 0}),i.jsx(c("BUIButton.react"),{margin:"_3-9a",label:h._("u4e0au4f20u6f5cu5728u5ba2u6237"),use:"primary",onClick:function(){f({type:"LEADS_MANAGER_TOGGLE_CSV_IMPORT_SECTION",showCSVImportSection:!0})},"data-testid":void 0})]})]});case"NO_SEARCH_RESULTS":return i.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[i.jsx(c("BUIText.react"),{size:"header2",children:h._("u6ca1u6709u7ed3u679c")}),i.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center",children:h._("u5c1du8bd5u79fbu9664u7b5bu9009u6761u4ef6u6216u9009u62e9u5176u4ed6u9636u6bb5u3002")})]});case"DATA_PROPAGATING":return i.jsxs(c("FlexLayout.react"),{align:"center",direction:"vertical",children:[i.jsx(c("BUIText.react"),{size:"header2",children:h._("u6b63u5728u52a0u8f7du4f60u7684u6f5cu5728u5ba2u6237u6570u636euff01")}),i.jsx(c("BUIText.react"),{margin:"_3-95",textAlign:"center",children:h._("We are working on fetching leads generated from your Lead Ads campaigns. It will take a while for the first time, please come back later.")})]});default:e;throw new Error("exhaustive switch case")}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----