OCDevManageOrganizationBundlesTableByType.react",["fbt","GeoDropdownMenu.react","GeoTable.react","GeoTableRowAction.react","GeoTableWidth","OCDevManageOrganizationBundleRoute","OCDevManageOrganizationBundleStatus.react","OCDevManageOrganizationBundlesGenerateShortlinkMenuItem.react","OCDevManageOrganizationBundlesTableByType_organization.graphql","OCDevManageOrganizationBundlesTableCancelMenuItem.react","OCDevManageOrganizationBundlesTableDeleteMenuItem.react","OCNavigatorHooks","RelayHooks","createGeoTableDataSource","emptyFunction","formatDate","react","useGeoTableRowActivation"],(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.useMemo;function a(a){var e,f,g=a.isCrossOrgBundle;a=a.organization;var j=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageOrganizationBundlesTableByType_organization.graphql"),a);a=g?(a=j==null||(e=j.cross_org_bundles)==null?void 0:e.nodes)!=null?a:[]:(g=j==null||(f=j.single_org_bundles)==null?void 0:f.nodes)!=null?g:[];g=m(function(){var a;return[{cell:function(a){a=a.item.name_with_fallback;return k.jsx(c("GeoTableRowAction.react"),{children:a!=null?a:"--"})},header:h._(/*BTDS*/"Name"),key:"Name",width:(a=d("GeoTableWidth")).proportional(1,{minWidth:200})},{cell:function(a){a=a.item;return k.jsx(c("OCDevManageOrganizationBundleStatus.react"),{bundle:a})},header:h._(/*BTDS*/"Status"),key:"Status",width:a.pixel(200)},{cell:function(a){var b;a=a.item.bundle_revisions;a=(a=a==null||(b=a.nodes[0])==null||(b=b.reviewable_offer_group)==null||(b=b.worldwide_offer)==null?void 0:b.start_time)!=null?a:0;return a!==0?c("formatDate")(a,"M d, Y g:ia"):"--"},header:h._(/*BTDS*/"Start Date"),key:"Start Date",width:a.proportional(1,{minWidth:180})},{cell:function(a){var b;a=a.item.bundle_revisions;a=(a=a==null||(b=a.nodes[0])==null||(b=b.reviewable_offer_group)==null||(b=b.worldwide_offer)==null?void 0:b.end_time)!=null?a:0;return a!==0?c("formatDate")(a,"M d, Y g:ia"):"--"},header:h._(/*BTDS*/"Completion Date"),key:"Completion Date",width:a.proportional(1,{minWidth:180})},{cell:function(a){a=a.item;return k.jsxs(c("GeoDropdownMenu.react"),{buttonVariant:"flat",useEllipsisIcon:!0,children:[k.jsx(c("OCDevManageOrganizationBundlesTableCancelMenuItem.react"),{appItemBundle:a}),k.jsx(c("OCDevManageOrganizationBundlesTableDeleteMenuItem.react"),{appItemBundle:a}),k.jsx(c("OCDevManageOrganizationBundlesGenerateShortlinkMenuItem.react"),{bundle:a})]})},header:null,key:"context_menu",width:a.pixel(80)}]},[]);var o=d("OCNavigatorHooks").useNavigate(),p=c("useGeoTableRowActivation")({activeItemIDs:new Set(),getIDForItem:l(c("emptyFunction"),[]),onActivate:l(function(a){var b;a=a.item.id;return o(c("OCDevManageOrganizationBundleRoute").getURI({organizationID:(b=j==null?void 0:j.id)!=null?b:"",bundleID:a!=null?a:""}))},[o,j==null?void 0:j.id])});return k.jsx(c("GeoTable.react"),{columns:g,"data-testid":void 0,dataSource:c("createGeoTableDataSource")(a,{getStableUniqueID:function(){return null}}),label:h._(/*BTDS*/"Submissions"),plugins:{activation:p},xstyle:n.table})}a.displayName=a.name+" [from "+f.id+"]";var n={table:{maxHeight:"x114jws4",$$css:!0}};g["default"]=a}),226);
-----
OCDevManageOrganizationBundlesTableByType_organization.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},b=[{alias:null,args:null,concreteType:"AppItemBundle",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"AppItemBundleBundleRevisionsConnection",kind:"LinkedField",name:"bundle_revisions",plural:!1,selections:[{alias:null,args:null,concreteType:"AppItemBundleRevision",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"XOCReviewableOfferGroup",kind:"LinkedField",name:"reviewable_offer_group",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"worldwide_offer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"start_time",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"name_with_fallback",storageKey:null},{args:null,kind:"FragmentSpread",name:"OCDevManageOrganizationBundleStatus_bundle"},{args:null,kind:"FragmentSpread",name:"OCDevManageOrganizationBundlesGenerateShortlinkMenuItem_bundle"},{args:null,kind:"FragmentSpread",name:"OCDevManageOrganizationBundlesTableCancelMenuItem_appItemBundle"},{args:null,kind:"FragmentSpread",name:"OCDevManageOrganizationBundlesTableDeleteMenuItem_appItemBundle"}],storageKey:null}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevManageOrganizationBundlesTableByType_organization",selections:[{alias:null,args:null,concreteType:"OrganizationCrossOrgBundlesConnection",kind:"LinkedField",name:"cross_org_bundles",plural:!1,selections:b,storageKey:null},a,{alias:null,args:null,concreteType:"OrganizationSingleOrgBundlesConnection",kind:"LinkedField",name:"single_org_bundles",plural:!1,selections:b,storageKey:null}],type:"Organization",abstractKey:null}}();e.exports=a}),null);
-----
OCDevManageOrganizationBundlesTable.react",["fbt","GeoDropdownMenu.react","GeoTable.react","GeoTableRowAction.react","GeoTableWidth","OCDevManageOrganizationBundleRoute","OCDevManageOrganizationBundleStatus.react","OCDevManageOrganizationBundlesTableCancelMenuItem.react","OCDevManageOrganizationBundlesTableDeleteMenuItem.react","OCDevManageOrganizationBundlesTable_organization.graphql","OCNavigatorHooks","RelayHooks","createGeoTableDataSource","emptyFunction","formatDate","react","useGeoTableRowActivation"],(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.useMemo;function a(a){a=a.organization;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageOrganizationBundlesTable_organization.graphql"),a);a=m(function(){var a;return[{cell:function(a){a=a.item.name_with_fallback;return k.jsx(c("GeoTableRowAction.react"),{children:(a=a)!=null?a:"--"})},header:h._("u540du5b57/u540du79f0"),key:"Name",width:(a=d("GeoTableWidth")).proportional(1,{minWidth:200})},{cell:function(a){a=a.item;return k.jsx(c("OCDevManageOrganizationBundleStatus.react"),{bundle:a})},header:h._("Status"),key:"Status",width:a.pixel(200)},{cell:function(a){a=a.item.bundle_revisions;a=(a=a==null?void 0:(a=a.nodes[0])==null?void 0:(a=a.reviewable_offer_group)==null?void 0:(a=a.worldwide_offer)==null?void 0:a.start_time)!=null?a:0;return a!==0?c("formatDate")(a,"M d, Y g:ia"):"--"},header:h._("Start Date"),key:"Start Date",width:a.proportional(1,{minWidth:180})},{cell:function(a){a=a.item.bundle_revisions;a=(a=a==null?void 0:(a=a.nodes[0])==null?void 0:(a=a.reviewable_offer_group)==null?void 0:(a=a.worldwide_offer)==null?void 0:a.end_time)!=null?a:0;return a!==0?c("formatDate")(a,"M d, Y g:ia"):"--"},header:h._("Completion Date"),key:"Completion Date",width:a.proportional(1,{minWidth:180})},{cell:function(a){a=a.item;return k.jsxs(c("GeoDropdownMenu.react"),{buttonVariant:"flat",useEllipsisIcon:!0,children:[k.jsx(c("OCDevManageOrganizationBundlesTableCancelMenuItem.react"),{appItemBundle:a}),k.jsx(c("OCDevManageOrganizationBundlesTableDeleteMenuItem.react"),{appItemBundle:a})]})},header:null,key:"context_menu",width:a.pixel(80)}]},[]);var f=d("OCNavigatorHooks").useNavigate(),g=c("useGeoTableRowActivation")({activeItemIDs:new Set(),getIDForItem:l(c("emptyFunction"),[]),onActivate:l(function(a){var b;a=a.item.id;return f(c("OCDevManageOrganizationBundleRoute").getURI({organizationID:(b=e==null?void 0:e.id)!=null?b:"",bundleID:(b=a)!=null?b:""}))},[f,e==null?void 0:e.id])});return k.jsx(c("GeoTable.react"),{columns:a,dataSource:c("createGeoTableDataSource")((a=(a=e.app_item_bundles)==null?void 0:a.nodes)!=null?a:[],{getStableUniqueID:function(){return null}}),label:h._("Submissions"),plugins:{activation:g},xstyle:n.table})}a.displayName=a.name+" [from "+f.id+"]";var n={table:{maxHeight:"x114jws4",$$css:!0}};g["default"]=a}),226);
-----
OCDevManageOrganizationBundlesTableCancelMenuItem.react",["fbt","GeoMenuItem.react","GeoText.react","OCDevManageConfirmationModal.react","OCDevManageOrganizationBundlesTableCancelMenuItemMutation.graphql","OCDevManageOrganizationBundlesTableCancelMenuItem_appItemBundle.graphql","RelayHooks","XOCAppStoreOfferTimeStatusEnum.oculus","asyncToGeneratorRuntime","react","useOCDevUICommitMutation","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react");function a(a){a=a.appItemBundle;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageOrganizationBundlesTableCancelMenuItem_appItemBundle.graphql"),a),f=c("useOCDevUICommitMutation")(j!==void 0?j:j=b("OCDevManageOrganizationBundlesTableCancelMenuItemMutation.graphql"));function g(){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;yield f({input:{bundle_id:(a=e.id)!=null?a:""}},{closeModalOnSuccess:!0})});return k.apply(this,arguments)}function m(){var a;if(!["PUBLISHED","SCHEDULED"].includes(e.status)||((a=e.bundle_revisions)==null?void 0:(a=a.nodes[0])==null?void 0:(a=a.reviewable_offer_group)==null?void 0:a.start_time)==null)return h._("Only approved bundles which have an upcoming start date, or are currently active, can be canceled.");if(e.offer_time_status===c("XOCAppStoreOfferTimeStatusEnum.oculus").EXPIRED)return h._("This bundle has already completed and cannot be canceled.")}a=m();m=c("useOCDevUIModal")();var n=m.openModal;return l.jsx(c("GeoMenuItem.react"),{disabledMessage:a,isDisabled:a!=null,label:h._("u53d6u6d88"),onClick:function(){return n(l.jsx(c("OCDevManageConfirmationModal.react"),{heading:h._("Cancel Bundle"),onSubmit:g,children:l.jsx(c("GeoText.react"),{children:h._("Are you sure you want to cancel "{=m1}"? This action will cancel the bundle permanently and cannot be undone.",[h._implicitParam("=m1",l.jsx("strong",{children:h._("{sale name}",[h._param("sale name",e.name_with_fallback)])}))])})}))}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageOrganizationBundlesTable_organization.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevManageOrganizationBundlesTable_organization",selections:[a,{alias:null,args:null,concreteType:"OrganizationAppItemBundlesConnection",kind:"LinkedField",name:"app_item_bundles",plural:!1,selections:[{alias:null,args:null,concreteType:"AppItemBundle",kind:"LinkedField",name:"nodes",plural:!0,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"name_with_fallback",storageKey:null},{alias:null,args:null,concreteType:"AppItemBundleBundleRevisionsConnection",kind:"LinkedField",name:"bundle_revisions",plural:!1,selections:[{alias:null,args:null,concreteType:"AppItemBundleRevision",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"XOCReviewableOfferGroup",kind:"LinkedField",name:"reviewable_offer_group",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"worldwide_offer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"start_time",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"OCDevManageOrganizationBundleStatus_bundle"},{args:null,kind:"FragmentSpread",name:"OCDevManageOrganizationBundlesTableCancelMenuItem_appItemBundle"},{args:null,kind:"FragmentSpread",name:"OCDevManageOrganizationBundlesTableDeleteMenuItem_appItemBundle"}],storageKey:null}],storageKey:null}],type:"Organization",abstractKey:null}}();e.exports=a}),null);
-----
OCDevManageOrganizationBundlesTableCancelMenuItemMutation.graphql",["OCDevManageOrganizationBundlesTableCancelMenuItemMutation_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=[{kind:"Literal",name:"max",value:1}],e={alias:"countUpToOne",args:d,kind:"ScalarField",name:"count_up_to",storageKey:"count_up_to(max:1)"},f={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"start_time",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"review_status",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCDevManageOrganizationBundlesTableCancelMenuItemMutation",selections:[{alias:null,args:c,concreteType:"XOCOrganizationBundleCancelResponsePayload",kind:"LinkedField",name:"xoc_organization_bundle_cancel",plural:!1,selections:[{alias:null,args:null,concreteType:"AppItemBundle",kind:"LinkedField",name:"app_item_bundle",plural:!1,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"developer_org",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"OCDevManageOrganizationBundlesView_organization"}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCDevManageOrganizationBundlesTableCancelMenuItemMutation",selections:[{alias:null,args:c,concreteType:"XOCOrganizationBundleCancelResponsePayload",kind:"LinkedField",name:"xoc_organization_bundle_cancel",plural:!1,selections:[{alias:null,args:null,concreteType:"AppItemBundle",kind:"LinkedField",name:"app_item_bundle",plural:!1,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"developer_org",plural:!1,selections:[{alias:null,args:null,concreteType:"OrganizationAppItemBundlesConnection",kind:"LinkedField",name:"app_item_bundles",plural:!1,selections:[e,{alias:null,args:null,concreteType:"AppItemBundle",kind:"LinkedField",name:"nodes",plural:!0,selections:[f,{alias:null,args:null,kind:"ScalarField",name:"name_with_fallback",storageKey:null},{alias:null,args:null,concreteType:"AppItemBundleBundleRevisionsConnection",kind:"LinkedField",name:"bundle_revisions",plural:!1,selections:[{alias:null,args:null,concreteType:"AppItemBundleRevision",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"XOCReviewableOfferGroup",kind:"LinkedField",name:"reviewable_offer_group",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"worldwide_offer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"end_time",storageKey:null},g,f],storageKey:null},f,g,h],storageKey:null},f],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offer_time_status",storageKey:null},h,{alias:null,args:[{kind:"Literal",name:"offer_statuses",value:"CANCELLED"}],concreteType:"AppItemBundleScheduledOffersConnection",kind:"LinkedField",name:"scheduled_offers",plural:!1,selections:[{alias:null,args:d,kind:"ScalarField",name:"count_up_to",storageKey:"count_up_to(max:1)"}],storageKey:"scheduled_offers(offer_statuses:"CANCELLED")"},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"is_concept",value:!1},{kind:"Literal",name:"platform",value:"ANDROID_6DOF"},{kind:"Literal",name:"release_status",value:"RELEASED"}],concreteType:"OrganizationToApplicationsConnection",kind:"LinkedField",name:"applications",plural:!1,selections:[e],storageKey:"applications(is_concept:false,platform:"ANDROID_6DOF",release_status:"RELEASED")"},f,{alias:null,args:null,kind:"ScalarField",name:"is_store_restriction_enforced",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"viewer_permissions",storageKey:null}],storageKey:null},f],storageKey:null}],storageKey:null}]},params:{id:b("OCDevManageOrganizationBundlesTableCancelMenuItemMutation_oculusRelayOperation"),metadata:{},name:"OCDevManageOrganizationBundlesTableCancelMenuItemMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCDevManageOrganizationBundlesTableCancelMenuItem_appItemBundle.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevManageOrganizationBundlesTableCancelMenuItem_appItemBundle",selections:[{alias:null,args:null,concreteType:"AppItemBundleBundleRevisionsConnection",kind:"LinkedField",name:"bundle_revisions",plural:!1,selections:[{alias:null,args:null,concreteType:"AppItemBundleRevision",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"XOCReviewableOfferGroup",kind:"LinkedField",name:"reviewable_offer_group",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"start_time",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name_with_fallback",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offer_time_status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],type:"AppItemBundle",abstractKey:null};e.exports=a}),null);
-----
OCDevManageOrganizationBundlesTableCancelMenuItemMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6825277814204331"}),null);
-----
OCDevManageOrganizationBundlesTable.react",["fbt","GeoDropdownMenu.react","GeoTable.react","GeoTableRowAction.react","GeoTableWidth","OCDevManageOrganizationBundleRoute","OCDevManageOrganizationBundleStatus.react","OCDevManageOrganizationBundlesTableCancelMenuItem.react","OCDevManageOrganizationBundlesTableDeleteMenuItem.react","OCDevManageOrganizationBundlesTable_organization.graphql","OCNavigatorHooks","RelayHooks","createGeoTableDataSource","emptyFunction","formatDate","react","useGeoTableRowActivation"],(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.useMemo;function a(a){var e;a=a.organization;var f=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageOrganizationBundlesTable_organization.graphql"),a);a=l(function(){return[{cell:function(a){a=a.item.name_with_fallback;return j.jsx(c("GeoTableRowAction.react"),{children:(a=a)!=null?a:"--"})},header:h._("u540du79f0uff08u5b57uff09"),key:"Name",width:d("GeoTableWidth").proportional(1,{minWidth:200})},{cell:function(a){a=a.item;return j.jsx(c("OCDevManageOrganizationBundleStatus.react"),{bundle:a})},header:h._("Status"),key:"Status",width:d("GeoTableWidth").pixel(200)},{cell:function(a){a=a.item.bundle_revisions;a=(a=a==null?void 0:(a=a.nodes[0])==null?void 0:(a=a.reviewable_offer_group)==null?void 0:(a=a.offers[0])==null?void 0:a.start_time)!=null?a:0;return a!==0?c("formatDate")(a,"M d, Y g:ia"):"--"},header:h._("Start Date"),key:"Start Date",width:d("GeoTableWidth").proportional(1,{minWidth:180})},{cell:function(a){a=a.item.bundle_revisions;a=(a=a==null?void 0:(a=a.nodes[0])==null?void 0:(a=a.reviewable_offer_group)==null?void 0:(a=a.offers[0])==null?void 0:a.end_time)!=null?a:0;return a!==0?c("formatDate")(a,"M d, Y g:ia"):"--"},header:h._("Completion Date"),key:"Completion Date",width:d("GeoTableWidth").proportional(1,{minWidth:180})},{cell:function(a){a=a.item;return j.jsxs(c("GeoDropdownMenu.react"),{buttonVariant:"flat",useEllipsisIcon:!0,children:[j.jsx(c("OCDevManageOrganizationBundlesTableCancelMenuItem.react"),{appItemBundle:a}),j.jsx(c("OCDevManageOrganizationBundlesTableDeleteMenuItem.react"),{appItemBundle:a})]})},header:null,key:"context_menu",width:d("GeoTableWidth").pixel(80)}]},[]);e=(e=d("OCNavigatorHooks").useNullableContextRouter())!=null?e:{};var g=e.history;e=c("useGeoTableRowActivation")({activeItemIDs:new Set(),getIDForItem:k(c("emptyFunction"),[]),onActivate:k(function(a){var b;a=a.item.id;return g==null?void 0:g.push(c("OCDevManageOrganizationBundleRoute").getURI({organizationID:(b=f==null?void 0:f.id)!=null?b:"",bundleID:(b=a)!=null?b:""}).getPath())},[g,f==null?void 0:f.id])});return j.jsx(c("GeoTable.react"),{columns:a,dataSource:c("createGeoTableDataSource")((a=(a=f.app_item_bundles)==null?void 0:a.nodes)!=null?a:[],{getStableUniqueID:function(){return null}}),label:h._("Submissions"),plugins:{activation:e},xstyle:m.table})}a.displayName=a.name+" [from "+f.id+"]";var m={table:{maxHeight:"x114jws4",$$css:!0}};g["default"]=a}),98);
-----
OCDevManageOrganizationBundlesTableCancelMenuItem.react",["fbt","GeoMenuItem.react","GeoText.react","OCDevManageConfirmationModal.react","OCDevManageOrganizationBundlesTableCancelMenuItemMutation.graphql","OCDevManageOrganizationBundlesTableCancelMenuItem_appItemBundle.graphql","RelayHooks","XOCAppStoreOfferTimeStatusEnum.oculus","react","regeneratorRuntime","useOCDevManageCommitMutation","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react");function a(a){a=a.appItemBundle;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageOrganizationBundlesTableCancelMenuItem_appItemBundle.graphql"),a),f=c("useOCDevManageCommitMutation")(j!==void 0?j:j=b("OCDevManageOrganizationBundlesTableCancelMenuItemMutation.graphql"));function g(){var a;return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:c.next=2;return b("regeneratorRuntime").awrap(f({input:{bundle_id:(a=e.id)!=null?a:""}},{closeModalOnSuccess:!0}));case 2:case"end":return c.stop()}},null,this)}function l(){var a;if(!["PUBLISHED","SCHEDULED"].includes(e.status)||((a=e.bundle_revisions)==null?void 0:(a=a.nodes[0])==null?void 0:(a=a.reviewable_offer_group)==null?void 0:a.start_time)==null)return h._("Only approved bundles which have an upcoming start date, or are currently active, can be canceled.");if(e.offer_time_status===c("XOCAppStoreOfferTimeStatusEnum.oculus").EXPIRED)return h._("This bundle has already completed and cannot be canceled.")}a=l();l=c("useOCDevUIModal")();var m=l.openModal;return k.jsx(c("GeoMenuItem.react"),{disabledMessage:a,isDisabled:a!=null,label:h._("u53d6u6d88"),onClick:function(){return m(k.jsx(c("OCDevManageConfirmationModal.react"),{heading:h._("Cancel Bundle"),onSubmit:g,children:k.jsx(c("GeoText.react"),{children:h._("Are you sure you want to cancel "{=m1}"? This action will cancel the bundle permanently and cannot be undone.",[h._implicitParam("=m1",k.jsx("strong",{children:h._("{sale name}",[h._param("sale name",e.name_with_fallback)])}))])})}))}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevManageOrganizationBundlesTable_organization.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevManageOrganizationBundlesTable_organization",selections:[a,{alias:null,args:null,concreteType:"OrganizationAppItemBundlesConnection",kind:"LinkedField",name:"app_item_bundles",plural:!1,selections:[{alias:null,args:null,concreteType:"AppItemBundle",kind:"LinkedField",name:"nodes",plural:!0,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"name_with_fallback",storageKey:null},{alias:null,args:null,concreteType:"AppItemBundleBundleRevisionsConnection",kind:"LinkedField",name:"bundle_revisions",plural:!1,selections:[{alias:null,args:null,concreteType:"AppItemBundleRevision",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"XOCReviewableOfferGroup",kind:"LinkedField",name:"reviewable_offer_group",plural:!1,selections:[{alias:null,args:null,concreteType:"AppStoreOffer",kind:"LinkedField",name:"offers",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"start_time",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"OCDevManageOrganizationBundleStatus_bundle"},{args:null,kind:"FragmentSpread",name:"OCDevManageOrganizationBundlesTableCancelMenuItem_appItemBundle"},{args:null,kind:"FragmentSpread",name:"OCDevManageOrganizationBundlesTableDeleteMenuItem_appItemBundle"}],storageKey:null}],storageKey:null}],type:"Organization",abstractKey:null}}();e.exports=a}),null);
-----
OCDevManageOrganizationBundlesTableCancelMenuItemMutation.graphql",["OCDevManageOrganizationBundlesTableCancelMenuItemMutation_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=[{kind:"Literal",name:"max",value:1}],e={alias:"countUpToOne",args:d,kind:"ScalarField",name:"count_up_to",storageKey:"count_up_to(max:1)"},f={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"start_time",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"review_status",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCDevManageOrganizationBundlesTableCancelMenuItemMutation",selections:[{alias:null,args:c,concreteType:"XOCOrganizationBundleCancelResponsePayload",kind:"LinkedField",name:"xoc_organization_bundle_cancel",plural:!1,selections:[{alias:null,args:null,concreteType:"AppItemBundle",kind:"LinkedField",name:"app_item_bundle",plural:!1,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"developer_org",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"OCDevManageOrganizationBundlesView_organization"}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCDevManageOrganizationBundlesTableCancelMenuItemMutation",selections:[{alias:null,args:c,concreteType:"XOCOrganizationBundleCancelResponsePayload",kind:"LinkedField",name:"xoc_organization_bundle_cancel",plural:!1,selections:[{alias:null,args:null,concreteType:"AppItemBundle",kind:"LinkedField",name:"app_item_bundle",plural:!1,selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"developer_org",plural:!1,selections:[{alias:null,args:null,concreteType:"OrganizationAppItemBundlesConnection",kind:"LinkedField",name:"app_item_bundles",plural:!1,selections:[e,{alias:null,args:null,concreteType:"AppItemBundle",kind:"LinkedField",name:"nodes",plural:!0,selections:[f,{alias:null,args:null,kind:"ScalarField",name:"name_with_fallback",storageKey:null},{alias:null,args:null,concreteType:"AppItemBundleBundleRevisionsConnection",kind:"LinkedField",name:"bundle_revisions",plural:!1,selections:[{alias:null,args:null,concreteType:"AppItemBundleRevision",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"XOCReviewableOfferGroup",kind:"LinkedField",name:"reviewable_offer_group",plural:!1,selections:[{alias:null,args:null,concreteType:"AppStoreOffer",kind:"LinkedField",name:"offers",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_time",storageKey:null},g,f],storageKey:null},f,g,h],storageKey:null},f],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offer_time_status",storageKey:null},h,{alias:null,args:[{kind:"Literal",name:"offer_statuses",value:"CANCELLED"}],concreteType:"AppItemBundleScheduledOffersConnection",kind:"LinkedField",name:"scheduled_offers",plural:!1,selections:[{alias:null,args:d,kind:"ScalarField",name:"count_up_to",storageKey:"count_up_to(max:1)"}],storageKey:"scheduled_offers(offer_statuses:"CANCELLED")"},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"is_concept",value:!1},{kind:"Literal",name:"platform",value:"ANDROID_6DOF"},{kind:"Literal",name:"release_status",value:"RELEASED"}],concreteType:"OrganizationToApplicationsConnection",kind:"LinkedField",name:"applications",plural:!1,selections:[e],storageKey:"applications(is_concept:false,platform:"ANDROID_6DOF",release_status:"RELEASED")"},f,{alias:null,args:null,kind:"ScalarField",name:"viewer_permissions",storageKey:null}],storageKey:null},f],storageKey:null}],storageKey:null}]},params:{id:b("OCDevManageOrganizationBundlesTableCancelMenuItemMutation_oculusRelayOperation"),metadata:{},name:"OCDevManageOrganizationBundlesTableCancelMenuItemMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCDevManageOrganizationBundlesTableCancelMenuItem_appItemBundle.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevManageOrganizationBundlesTableCancelMenuItem_appItemBundle",selections:[{alias:null,args:null,concreteType:"AppItemBundleBundleRevisionsConnection",kind:"LinkedField",name:"bundle_revisions",plural:!1,selections:[{alias:null,args:null,concreteType:"AppItemBundleRevision",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"XOCReviewableOfferGroup",kind:"LinkedField",name:"reviewable_offer_group",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"start_time",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name_with_fallback",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offer_time_status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],type:"AppItemBundle",abstractKey:null};e.exports=a}),null);
-----
OCDevManageOrganizationBundlesTableCancelMenuItemMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6192079430856582"}),null);
-----