OCDevManageOrganizationSalesTable.react",["fbt","GeoCard.react","GeoCardHeader.react","GeoDropdownMenu.react","GeoMenuItem.react","GeoTable.react","GeoTableRowAction.react","GeoTableWidth","OCAppStoreOfferStatus","OCDevManageOrganizationSaleEventsRoute","OCDevManageOrganizationSaleRoute","OCDevManageOrganizationSaleStatus.react","OCDevManageOrganizationSalesTableCancelMenuItem.react","OCDevManageOrganizationSalesTableDeleteMenuItem.react","OCDevManageOrganizationSalesTable_organization.graphql","OCNavigatorHooks","RelayHooks","createGeoTableDataSource","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;a=a.organization;a=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageOrganizationSalesTable_organization.graphql"),a);var f=d("OCNavigatorHooks").useNavigate(),g=(e=a==null?void 0:a.id)!=null?e:"",j=(e=a.name)!=null?e:"--";e=m(function(){var a;return[{cell:function(a){a=a.item.name;return k.jsx(c("GeoTableRowAction.react"),{children:(a=a)!=null?a:"--"})},header:h._("u540du5b57/u540du79f0"),key:"Name",width:(a=d("GeoTableWidth")).proportional(1,{minWidth:185})},{cell:function(a){a=a.item;return k.jsx(c("OCDevManageOrganizationSaleStatus.react"),{storeSaleItem:a})},header:h._("Status"),key:"Status",width:a.pixel(190)},{cell:function(a){a=a.item.app_store_item;return(a=a==null?void 0:a.display_name)!=null?a:"--"},header:h._("App"),key:"Product",width:a.pixel(190)},{cell:function(a){a=a.item.was_created_internally;return a===!0?"Meta":j},header:h._("Initiated by"),key:"Initiated By",width:a.pixel(160)},{cell:function(a){a=a.item;var b=a.cancelled_time,d=a.offer_status,e=a.reviewable_offer_group;a=a.start_time;a=(e==null?void 0:e.start_time)!==null&&(e==null?void 0:e.start_time)!==0?(e=e==null?void 0:e.start_time)!=null?e:0:(e=a)!=null?e:0;b=(e=b)!=null?e:Number.POSITIVE_INFINITY;e=a!==0?c("formatDate")(a,"M d, Y g:ia"):"--";return d===c("OCAppStoreOfferStatus").CANCELLED&&bb?k.jsxs("div",{children:[k.jsx("strike",{children:a}),k.jsx("br",{}),f]}):k.jsx("strike",{children:a})}return a},header:h._("Ends"),key:"Completion Date",width:a.proportional(1,{minWidth:180})},{cell:function(a){var b=a.item;return k.jsxs(c("GeoDropdownMenu.react"),{buttonVariant:"flat",useEllipsisIcon:!0,children:[k.jsx(c("GeoMenuItem.react"),{label:h._("View History"),onClick:function(){var a;return f(c("OCDevManageOrganizationSaleEventsRoute").getURI({organizationID:g,storeSaleItemID:(a=b.id)!=null?a:""}))}}),k.jsx(c("OCDevManageOrganizationSalesTableCancelMenuItem.react"),{storeSaleItem:b}),k.jsx(c("OCDevManageOrganizationSalesTableDeleteMenuItem.react"),{storeSaleItem:b})]})},header:null,key:"context_menu",width:a.pixel(75)}]},[f,g,j]);var o=c("useGeoTableRowActivation")({activeItemIDs:new Set(),getIDForItem:l(function(){},[]),onActivate:l(function(a){a=a.item.id;return f(c("OCDevManageOrganizationSaleRoute").getURI({organizationID:g,storeSaleItemID:(a=a)!=null?a:""}))},[f,g])});return k.jsxs(c("GeoCard.react"),{children:[k.jsx(c("GeoCardHeader.react"),{heading:h._("Your Promotions")}),k.jsx(c("GeoTable.react"),{columns:e,dataSource:c("createGeoTableDataSource")((a=(e=a.store_sale_items)==null?void 0:e.nodes)!=null?a:[],{getStableUniqueID:function(){return null}}),label:h._("Promotions"),plugins:{activation:o},xstyle:n.table})]})}a.displayName=a.name+" [from "+f.id+"]";var n={table:{maxHeight:"x179dxpb",$$css:!0}};g["default"]=a}),226);
-----
OCDevManageApplicationReleaseTimeline.react",["fbt","OCAppStoreOfferStatus","OCDevManageApplicationReleaseTimelineEvents","OCDevManageApplicationReleaseTimeline_application.graphql","OCDevUITimeline.react","OCDevUITimelineItem.react","RelayHooks","react","useOCDevManageApplicationReleaseLatestCompletedTimelineEvent"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){a=a.application;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationReleaseTimeline_application.graphql"),a),f=c("useOCDevManageApplicationReleaseLatestCompletedTimelineEvent")(e),g=f===d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.APPROVED&&((a=e.scheduled_offers)==null?void 0:(a=a.nodes)==null?void 0:a.filter(function(a){a=a.offer_type;return a==="APPSTORE_OFFER"}).some(function(a){a=a.status;return a===c("OCAppStoreOfferStatus").PUBLISHED}))===!0,j=g&&e.release_date!=null&&e.release_date<=Date.now();function l(a){switch(a){case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.APPROVED:return{label:h._("Approved")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.READY_TO_SUBMIT:return{label:h._("Ready to submit")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.RELEASED:return{date:g&&!j?e.release_date:null,datePrefix:h._("Scheduled"),label:j?h._("Delisted"):h._("Released")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.SUBMISSION_STARTED:return{label:h._("Submission started")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.SUBMITTED:return{label:h._("Submitted")}}}return k.jsx(c("OCDevUITimeline.react"),{children:d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvents.map(function(a){return k.jsx(c("OCDevUITimelineItem.react"),babelHelpers["extends"]({isCompleted:d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvents.indexOf(a)<=d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvents.indexOf(f)},l(a)),a)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCAppStoreOfferStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({PENDING:"PENDING",PUBLISHED:"PUBLISHED",CANCELLED:"CANCELLED"});f["default"]=a}),66);
-----
OCDevManageApplicationReleaseStatus.react",["fbt","GeoText.react","OCAppStoreOfferStatus","OCDevManageApplicationReleaseStatus_application.graphql","OCDevManageStatusIndicator.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){a=a.application;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationReleaseStatus_application.graphql"),a),f=(a=e.lastRevision)==null?void 0:(a=a.nodes)==null?void 0:(a=a[0])==null?void 0:a.status;function g(){var a;if(f==="APPROVED"&&e.release_status==="RELEASED")return{label:h._("Released"),status:"active"};a=(a=(a=e.firstOffer)==null?void 0:(a=a.nodes)==null?void 0:a[0])!=null?a:{};var b=a.start_time;a=a.status;return f==="APPROVED"&&a===c("OCAppStoreOfferStatus").PUBLISHED&&b!=null&&b>Date.now()/1e3?{label:h._("Scheduled"),status:"warning"}:{label:h._("Not Released"),status:"inactive"}}a=g();g=a.label;a=a.status;return k.jsx(c("OCDevManageStatusIndicator.react"),{status:a,children:k.jsx(c("GeoText.react"),{children:g})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCAppStoreOfferStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({PENDING:"PENDING",PUBLISHED:"PUBLISHED",CANCELLED:"CANCELLED"});f["default"]=a}),66);
-----
OCDevManageOrganizationSaleStatus.react",["fbt","ix","GeoFlexbox.react","GeoIcon.react","GeoText.react","OCAppStoreOfferStatus","OCDevManageOrganizationSaleStatus_storeSaleItem.graphql","RelayHooks","XOCAppStoreOfferTimeStatusEnum.oculus","fbicon","geoMargin","getOCDevManageReviewAndReleaseStatusRenderParameters","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");function a(a){a=a.storeSaleItem;var e=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageOrganizationSaleStatus_storeSaleItem.graphql"),a);function f(){if(e.is_initial_invitation===!0)return{color:"warning",displayName:h._("Invitation"),icon:d("fbicon")._(i("1147504"),16)};if(e.offer_status===c("OCAppStoreOfferStatus").CANCELLED)return{color:"error",displayName:h._("Cancelled"),icon:d("fbicon")._(i("494413"),16)};var a=e.offer_time_status;if(a===c("XOCAppStoreOfferTimeStatusEnum.oculus").ACTIVE)return{color:"success",displayName:h._("Running"),icon:d("fbicon")._(i("621398"),16)};return a===c("XOCAppStoreOfferTimeStatusEnum.oculus").EXPIRED?{color:"success",displayName:h._("Completed"),icon:d("fbicon")._(i("1147504"),16)}:c("getOCDevManageReviewAndReleaseStatusRenderParameters")({isConcept:!1,isLiveInStore:!1,releaseStatus:null,reviewStatus:e.review_status})}a=f();f=a.color;var g=a.displayName;a=a.icon;return k.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[k.jsx(c("GeoIcon.react"),{color:f,icon:a,xstyle:c("geoMargin").end8}),k.jsx(c("GeoText.react"),{children:g})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevManageOrganizationSalesTable.react",["fbt","GeoDropdownMenu.react","GeoMenuItem.react","GeoTable.react","GeoTableRowAction.react","GeoTableWidth","OCAppStoreOfferStatus","OCDevManageOrganizationSaleEventsRoute","OCDevManageOrganizationSaleRoute","OCDevManageOrganizationSaleStatus.react","OCDevManageOrganizationSalesTableCancelMenuItem.react","OCDevManageOrganizationSalesTableDeleteMenuItem.react","OCDevManageOrganizationSalesTable_organization.graphql","OCNavigatorHooks","RelayHooks","createGeoTableDataSource","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;a=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageOrganizationSalesTable_organization.graphql"),a);e=(e=d("OCNavigatorHooks").useNullableContextRouter())!=null?e:{};var f=e.history,g=(e=a==null?void 0:a.id)!=null?e:"",n=(e=a.name)!=null?e:"--";e=l(function(){return[{cell:function(a){a=a.item.name;return j.jsx(c("GeoTableRowAction.react"),{children:(a=a)!=null?a:"--"})},header:h._("u540du79f0uff08u5b57uff09"),key:"Name",width:d("GeoTableWidth").proportional(1,{minWidth:185})},{cell:function(a){a=a.item;return j.jsx(c("OCDevManageOrganizationSaleStatus.react"),{storeSaleItem:a})},header:h._("Status"),key:"Status",width:d("GeoTableWidth").pixel(190)},{cell:function(a){a=a.item.app_store_item;return(a=a==null?void 0:a.display_name)!=null?a:"--"},header:h._("Product"),key:"Product",width:d("GeoTableWidth").pixel(190)},{cell:function(a){a=a.item.was_created_internally;return a===!0?"Meta":n},header:h._("Initiated By"),key:"Initiated By",width:d("GeoTableWidth").pixel(160)},{cell:function(a){a=a.item;var b=a.cancelled_time,d=a.offer_status;a=a.reviewable_offer_group;a=(a=a==null?void 0:a.start_time)!=null?a:0;b=(b=b)!=null?b:Number.POSITIVE_INFINITY;var e=a!==0?c("formatDate")(a,"M d, Y g:ia"):"--";return d===c("OCAppStoreOfferStatus").CANCELLED&&ba?j.jsxs("div",{children:[j.jsx("strike",{children:g}),j.jsx("br",{}),f]}):j.jsx("strike",{children:g})}return g},header:h._("Completion Date"),key:"Completion Date",width:d("GeoTableWidth").proportional(1,{minWidth:180})},{cell:function(a){var b=a.item;return j.jsxs(c("GeoDropdownMenu.react"),{buttonVariant:"flat",useEllipsisIcon:!0,children:[j.jsx(c("GeoMenuItem.react"),{label:h._("View History"),onClick:function(){var a;return f==null?void 0:f.push(c("OCDevManageOrganizationSaleEventsRoute").getURI({organizationID:g,storeSaleItemID:(a=b.id)!=null?a:""}).getPath())}}),j.jsx(c("OCDevManageOrganizationSalesTableCancelMenuItem.react"),{storeSaleItem:b}),j.jsx(c("OCDevManageOrganizationSalesTableDeleteMenuItem.react"),{storeSaleItem:b})]})},header:null,key:"context_menu",width:d("GeoTableWidth").pixel(75)}]},[f,g,n]);var o=c("useGeoTableRowActivation")({activeItemIDs:new Set(),getIDForItem:k(function(){},[]),onActivate:k(function(a){a=a.item.id;return f==null?void 0:f.push(c("OCDevManageOrganizationSaleRoute").getURI({organizationID:g,storeSaleItemID:(a=a)!=null?a:""}).getPath())},[f,g])});return j.jsx(c("GeoTable.react"),{columns:e,dataSource:c("createGeoTableDataSource")((a=(e=a.store_sale_items)==null?void 0:e.nodes)!=null?a:[],{getStableUniqueID:function(){return null}}),label:h._("Promotions"),plugins:{activation:o},xstyle:m.table})}a.displayName=a.name+" [from "+f.id+"]";var m={table:{maxHeight:"x114jws4",$$css:!0}};g["default"]=a}),98);
-----
OCDevManageApplicationPDPCardFooter.react",["fbt","GeoCardFooter.react","OCAppStoreOfferStatus","OCApplicationPlatform","OCDevManageApplicationPDPCardFooter_application.graphql","OCDevManageApplicationReleaseTimelineEvents","OCDevManageApplicationScheduleReleaseModal.react","OCDevManageApplicationSubmissionRoute","OCDevUILinkButton.react","RelayHooks","XOCReleaseType.oculus","react","useOCDevManageApplicationReleaseLatestCompletedTimelineEvent","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");function a(a){a=a.application;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationPDPCardFooter_application.graphql"),a),f=(a=e.lastRevision)==null?void 0:(a=a.nodes)==null?void 0:a[0],g=c("useOCDevManageApplicationReleaseLatestCompletedTimelineEvent")(e);a=c("useOCDevUIModal")();var k=a.openModal;a=(a=e.id)!=null?a:"";var l=c("OCDevManageApplicationSubmissionRoute").getURI({applicationID:a,submissionID:(a=f==null?void 0:f.id)!=null?a:""}).getPath();function m(){var a;if(g==null)return{label:h._("Start Submission"),to:l};var b=(e==null?void 0:e.platform)===c("OCApplicationPlatform").values.ANDROID_6DOF&&(e==null?void 0:e.is_concept)!==!0?c("XOCReleaseType.oculus").MANAGED:c("XOCReleaseType.oculus").ON_APPROVAL;b=((a=f==null?void 0:f.release_type)!=null?a:b)===c("XOCReleaseType.oculus").MANAGED||((a=e.scheduled_offers)==null?void 0:a.count)!==1?h._("Please contact submissionsu0040oculus.com to schedule your release."):null;switch(g){case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.APPROVED:return{disabledMessage:b,isDisabled:b!=null,label:((a=e.scheduled_offers)==null?void 0:(b=a.nodes)==null?void 0:b.some(function(a){a=a.status;return a===c("OCAppStoreOfferStatus").PUBLISHED}))===!0&&e.release_date!=null?h._("Update Release"):h._("Schedule Release"),onClick:function(){return k(j.jsx(c("OCDevManageApplicationScheduleReleaseModal.react"),{application:e}))},variant:"primary"};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.READY_TO_SUBMIT:return{label:h._("Submit App"),to:l};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.RELEASED:return null;case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.SUBMISSION_STARTED:return{label:h._("Continue Submission"),to:l};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.SUBMITTED:return{label:h._("View Submission"),to:l}}}a=m();return a!=null?j.jsx(c("GeoCardFooter.react"),{primaryButton:j.jsx(c("OCDevUILinkButton.react"),babelHelpers["extends"]({},a))}):null}g["default"]=a}),98);
-----
OCDevManageApplicationReleaseStatus.react",["fbt","GeoText.react","OCAppStoreOfferStatus","OCDevManageApplicationReleaseStatus_application.graphql","OCDevManageApplicationReleaseTimelineEvents","OCDevManageStatusIndicator.react","RelayHooks","react","useOCDevManageApplicationReleaseLatestCompletedTimelineEvent"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");function a(a){a=a.application;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationReleaseStatus_application.graphql"),a),f=c("useOCDevManageApplicationReleaseLatestCompletedTimelineEvent")(e);function g(){var a;if(f===d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.RELEASED)return{label:h._("Released"),status:"active"};a=(a=(a=e.firstOffer)==null?void 0:(a=a.nodes)==null?void 0:a[0])!=null?a:{};var b=a.start_time;a=a.status;return f===d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.APPROVED&&a===c("OCAppStoreOfferStatus").PUBLISHED&&b!=null&&b>Date.now()/1e3?{label:h._("Scheduled"),status:"warning"}:{label:h._("Not Released"),status:"inactive"}}a=g();g=a.label;a=a.status;return j.jsx(c("OCDevManageStatusIndicator.react"),{status:a,children:j.jsx(c("GeoText.react"),{children:g})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevManageApplicationReleaseTimeline.react",["fbt","OCAppStoreOfferStatus","OCDevManageApplicationReleaseTimelineEvents","OCDevManageApplicationReleaseTimeline_application.graphql","OCDevUITimeline.react","OCDevUITimelineItem.react","RelayHooks","react","useOCDevManageApplicationReleaseLatestCompletedTimelineEvent"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");function a(a){a=a.application;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationReleaseTimeline_application.graphql"),a),f=c("useOCDevManageApplicationReleaseLatestCompletedTimelineEvent")(e);function g(a){switch(a){case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.APPROVED:return{label:h._("Approved")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.READY_TO_SUBMIT:return{label:h._("Ready to submit")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.RELEASED:return{date:f===d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.APPROVED&&((a=e.scheduled_offers)==null?void 0:(a=a.nodes)==null?void 0:a.some(function(a){a=a.status;return a===c("OCAppStoreOfferStatus").PUBLISHED}))===!0?e.release_date:null,datePrefix:h._("Scheduled"),label:h._("Released")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.SUBMISSION_STARTED:return{label:h._("Submission started")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.SUBMITTED:return{label:h._("Submitted")}}}return j.jsx(c("OCDevUITimeline.react"),{children:d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvents.map(function(a){return j.jsx(c("OCDevUITimelineItem.react"),babelHelpers["extends"]({isCompleted:d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvents.indexOf(a)<=d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvents.indexOf(f)},g(a)),a)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
-----
OCDevManageApplicationReleaseTimeline.react",["fbt","OCAppStoreOfferStatus","OCDevManageApplicationReleaseTimelineEvents","OCDevManageApplicationReleaseTimeline_application.graphql","OCDevUITimeline.react","OCDevUITimelineItem.react","RelayHooks","react","useOCDevManageApplicationReleaseLatestCompletedTimelineEvent"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){a=a.application;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationReleaseTimeline_application.graphql"),a),f=c("useOCDevManageApplicationReleaseLatestCompletedTimelineEvent")(e),g=f===d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.APPROVED&&((a=e.scheduled_offers)==null?void 0:(a=a.nodes)==null?void 0:a.filter(function(a){a=a.offer_type;return a==="APPSTORE_OFFER"}).some(function(a){a=a.status;return a===c("OCAppStoreOfferStatus").PUBLISHED}))===!0,j=g&&e.release_date!=null&&e.release_date<=Date.now();function l(a){switch(a){case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.APPROVED:return{label:h._("Approved")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.READY_TO_SUBMIT:return{label:h._("Ready to submit")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.RELEASED:return{date:g&&!j?e.release_date:null,datePrefix:h._("Scheduled"),label:j?h._("Delisted"):h._("Released")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.SUBMISSION_STARTED:return{label:h._("Submission started")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.SUBMITTED:return{label:h._("Submitted")}}}return k.jsx(c("OCDevUITimeline.react"),{children:d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvents.map(function(a){return k.jsx(c("OCDevUITimelineItem.react"),babelHelpers["extends"]({isCompleted:d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvents.indexOf(a)<=d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvents.indexOf(f)},l(a)),a)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCAppStoreOfferStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({PENDING:"PENDING",PUBLISHED:"PUBLISHED",CANCELLED:"CANCELLED"});f["default"]=a}),66);
-----
OCDevManageApplicationReleaseStatus.react",["fbt","GeoText.react","OCAppStoreOfferStatus","OCDevManageApplicationReleaseStatus_application.graphql","OCDevManageStatusIndicator.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){a=a.application;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationReleaseStatus_application.graphql"),a),f=(a=e.lastRevision)==null?void 0:(a=a.nodes)==null?void 0:(a=a[0])==null?void 0:a.status;function g(){var a;if(f==="APPROVED"&&e.release_status==="RELEASED")return{label:h._("Released"),status:"active"};a=(a=(a=e.firstOffer)==null?void 0:(a=a.nodes)==null?void 0:a[0])!=null?a:{};var b=a.start_time;a=a.status;return f==="APPROVED"&&a===c("OCAppStoreOfferStatus").PUBLISHED&&b!=null&&b>Date.now()/1e3?{label:h._("Scheduled"),status:"warning"}:{label:h._("Not Released"),status:"inactive"}}a=g();g=a.label;a=a.status;return k.jsx(c("OCDevManageStatusIndicator.react"),{status:a,children:k.jsx(c("GeoText.react"),{children:g})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCAppStoreOfferStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({PENDING:"PENDING",PUBLISHED:"PUBLISHED",CANCELLED:"CANCELLED"});f["default"]=a}),66);
-----
OCDevManageOrganizationSaleStatus.react",["fbt","ix","GeoFlexbox.react","GeoIcon.react","GeoText.react","OCAppStoreOfferStatus","OCDevManageOrganizationSaleStatus_storeSaleItem.graphql","RelayHooks","XOCAppStoreOfferTimeStatusEnum.oculus","fbicon","geoMargin","getOCDevManageReviewAndReleaseStatusRenderParameters","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");function a(a){a=a.storeSaleItem;var e=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageOrganizationSaleStatus_storeSaleItem.graphql"),a);function f(){if(e.is_initial_invitation===!0)return{color:"warning",displayName:h._("Invitation"),icon:d("fbicon")._(i("1147504"),16)};if(e.offer_status===c("OCAppStoreOfferStatus").CANCELLED)return{color:"error",displayName:h._("Cancelled"),icon:d("fbicon")._(i("494413"),16)};var a=e.offer_time_status;if(a===c("XOCAppStoreOfferTimeStatusEnum.oculus").ACTIVE)return{color:"success",displayName:h._("Running"),icon:d("fbicon")._(i("621398"),16)};return a===c("XOCAppStoreOfferTimeStatusEnum.oculus").EXPIRED?{color:"success",displayName:h._("Completed"),icon:d("fbicon")._(i("1147504"),16)}:c("getOCDevManageReviewAndReleaseStatusRenderParameters")({isConcept:!1,isLiveInStore:!1,releaseStatus:null,reviewStatus:e.review_status})}a=f();f=a.color;var g=a.displayName;a=a.icon;return k.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[k.jsx(c("GeoIcon.react"),{color:f,icon:a,xstyle:c("geoMargin").end8}),k.jsx(c("GeoText.react"),{children:g})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevManageOrganizationSalesTable.react",["fbt","GeoDropdownMenu.react","GeoMenuItem.react","GeoTable.react","GeoTableRowAction.react","GeoTableWidth","OCAppStoreOfferStatus","OCDevManageOrganizationSaleEventsRoute","OCDevManageOrganizationSaleRoute","OCDevManageOrganizationSaleStatus.react","OCDevManageOrganizationSalesTableCancelMenuItem.react","OCDevManageOrganizationSalesTableDeleteMenuItem.react","OCDevManageOrganizationSalesTable_organization.graphql","OCNavigatorHooks","RelayHooks","createGeoTableDataSource","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;a=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageOrganizationSalesTable_organization.graphql"),a);e=(e=d("OCNavigatorHooks").useNullableContextRouter())!=null?e:{};var f=e.history,g=(e=a==null?void 0:a.id)!=null?e:"",n=(e=a.name)!=null?e:"--";e=l(function(){return[{cell:function(a){a=a.item.name;return j.jsx(c("GeoTableRowAction.react"),{children:(a=a)!=null?a:"--"})},header:h._("u540du79f0uff08u5b57uff09"),key:"Name",width:d("GeoTableWidth").proportional(1,{minWidth:185})},{cell:function(a){a=a.item;return j.jsx(c("OCDevManageOrganizationSaleStatus.react"),{storeSaleItem:a})},header:h._("Status"),key:"Status",width:d("GeoTableWidth").pixel(190)},{cell:function(a){a=a.item.app_store_item;return(a=a==null?void 0:a.display_name)!=null?a:"--"},header:h._("Product"),key:"Product",width:d("GeoTableWidth").pixel(190)},{cell:function(a){a=a.item.was_created_internally;return a===!0?"Meta":n},header:h._("Initiated By"),key:"Initiated By",width:d("GeoTableWidth").pixel(160)},{cell:function(a){a=a.item;var b=a.cancelled_time,d=a.offer_status;a=a.reviewable_offer_group;a=(a=a==null?void 0:a.start_time)!=null?a:0;b=(b=b)!=null?b:Number.POSITIVE_INFINITY;var e=a!==0?c("formatDate")(a,"M d, Y g:ia"):"--";return d===c("OCAppStoreOfferStatus").CANCELLED&&ba?j.jsxs("div",{children:[j.jsx("strike",{children:g}),j.jsx("br",{}),f]}):j.jsx("strike",{children:g})}return g},header:h._("Completion Date"),key:"Completion Date",width:d("GeoTableWidth").proportional(1,{minWidth:180})},{cell:function(a){var b=a.item;return j.jsxs(c("GeoDropdownMenu.react"),{buttonVariant:"flat",useEllipsisIcon:!0,children:[j.jsx(c("GeoMenuItem.react"),{label:h._("View History"),onClick:function(){var a;return f==null?void 0:f.push(c("OCDevManageOrganizationSaleEventsRoute").getURI({organizationID:g,storeSaleItemID:(a=b.id)!=null?a:""}).getPath())}}),j.jsx(c("OCDevManageOrganizationSalesTableCancelMenuItem.react"),{storeSaleItem:b}),j.jsx(c("OCDevManageOrganizationSalesTableDeleteMenuItem.react"),{storeSaleItem:b})]})},header:null,key:"context_menu",width:d("GeoTableWidth").pixel(75)}]},[f,g,n]);var o=c("useGeoTableRowActivation")({activeItemIDs:new Set(),getIDForItem:k(function(){},[]),onActivate:k(function(a){a=a.item.id;return f==null?void 0:f.push(c("OCDevManageOrganizationSaleRoute").getURI({organizationID:g,storeSaleItemID:(a=a)!=null?a:""}).getPath())},[f,g])});return j.jsx(c("GeoTable.react"),{columns:e,dataSource:c("createGeoTableDataSource")((a=(e=a.store_sale_items)==null?void 0:e.nodes)!=null?a:[],{getStableUniqueID:function(){return null}}),label:h._("Promotions"),plugins:{activation:o},xstyle:m.table})}a.displayName=a.name+" [from "+f.id+"]";var m={table:{maxHeight:"x114jws4",$$css:!0}};g["default"]=a}),98);
-----
OCDevManageApplicationPDPCardFooter.react",["fbt","GeoCardFooter.react","OCAppStoreOfferStatus","OCApplicationPlatform","OCDevManageApplicationPDPCardFooter_application.graphql","OCDevManageApplicationReleaseTimelineEvents","OCDevManageApplicationScheduleReleaseModal.react","OCDevManageApplicationSubmissionRoute","OCDevUILinkButton.react","RelayHooks","XOCReleaseType.oculus","react","useOCDevManageApplicationReleaseLatestCompletedTimelineEvent","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");function a(a){a=a.application;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationPDPCardFooter_application.graphql"),a),f=(a=e.lastRevision)==null?void 0:(a=a.nodes)==null?void 0:a[0],g=c("useOCDevManageApplicationReleaseLatestCompletedTimelineEvent")(e);a=c("useOCDevUIModal")();var k=a.openModal;a=(a=e.id)!=null?a:"";var l=c("OCDevManageApplicationSubmissionRoute").getURI({applicationID:a,submissionID:(a=f==null?void 0:f.id)!=null?a:""}).getPath();function m(){var a;if(g==null)return{label:h._("Start Submission"),to:l};var b=(e==null?void 0:e.platform)===c("OCApplicationPlatform").values.ANDROID_6DOF&&(e==null?void 0:e.is_concept)!==!0?c("XOCReleaseType.oculus").MANAGED:c("XOCReleaseType.oculus").ON_APPROVAL;b=((a=f==null?void 0:f.release_type)!=null?a:b)===c("XOCReleaseType.oculus").MANAGED||((a=e.scheduled_offers)==null?void 0:a.count)!==1?h._("Please contact submissionsu0040oculus.com to schedule your release."):null;switch(g){case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.APPROVED:return{disabledMessage:b,isDisabled:b!=null,label:((a=e.scheduled_offers)==null?void 0:(b=a.nodes)==null?void 0:b.some(function(a){a=a.status;return a===c("OCAppStoreOfferStatus").PUBLISHED}))===!0&&e.release_date!=null?h._("Update Release"):h._("Schedule Release"),onClick:function(){return k(j.jsx(c("OCDevManageApplicationScheduleReleaseModal.react"),{application:e}))},variant:"primary"};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.READY_TO_SUBMIT:return{label:h._("Submit App"),to:l};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.RELEASED:return null;case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.SUBMISSION_STARTED:return{label:h._("Continue Submission"),to:l};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.SUBMITTED:return{label:h._("View Submission"),to:l}}}a=m();return a!=null?j.jsx(c("GeoCardFooter.react"),{primaryButton:j.jsx(c("OCDevUILinkButton.react"),babelHelpers["extends"]({},a))}):null}g["default"]=a}),98);
-----
OCDevManageApplicationReleaseStatus.react",["fbt","GeoText.react","OCAppStoreOfferStatus","OCDevManageApplicationReleaseStatus_application.graphql","OCDevManageApplicationReleaseTimelineEvents","OCDevManageStatusIndicator.react","RelayHooks","react","useOCDevManageApplicationReleaseLatestCompletedTimelineEvent"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");function a(a){a=a.application;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationReleaseStatus_application.graphql"),a),f=c("useOCDevManageApplicationReleaseLatestCompletedTimelineEvent")(e);function g(){var a;if(f===d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.RELEASED)return{label:h._("Released"),status:"active"};a=(a=(a=e.firstOffer)==null?void 0:(a=a.nodes)==null?void 0:a[0])!=null?a:{};var b=a.start_time;a=a.status;return f===d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.APPROVED&&a===c("OCAppStoreOfferStatus").PUBLISHED&&b!=null&&b>Date.now()/1e3?{label:h._("Scheduled"),status:"warning"}:{label:h._("Not Released"),status:"inactive"}}a=g();g=a.label;a=a.status;return j.jsx(c("OCDevManageStatusIndicator.react"),{status:a,children:j.jsx(c("GeoText.react"),{children:g})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevManageApplicationReleaseTimeline.react",["fbt","OCAppStoreOfferStatus","OCDevManageApplicationReleaseTimelineEvents","OCDevManageApplicationReleaseTimeline_application.graphql","OCDevUITimeline.react","OCDevUITimelineItem.react","RelayHooks","react","useOCDevManageApplicationReleaseLatestCompletedTimelineEvent"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");function a(a){a=a.application;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationReleaseTimeline_application.graphql"),a),f=c("useOCDevManageApplicationReleaseLatestCompletedTimelineEvent")(e);function g(a){switch(a){case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.APPROVED:return{label:h._("Approved")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.READY_TO_SUBMIT:return{label:h._("Ready to submit")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.RELEASED:return{date:f===d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.APPROVED&&((a=e.scheduled_offers)==null?void 0:(a=a.nodes)==null?void 0:a.some(function(a){a=a.status;return a===c("OCAppStoreOfferStatus").PUBLISHED}))===!0?e.release_date:null,datePrefix:h._("Scheduled"),label:h._("Released")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.SUBMISSION_STARTED:return{label:h._("Submission started")};case d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.SUBMITTED:return{label:h._("Submitted")}}}return j.jsx(c("OCDevUITimeline.react"),{children:d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvents.map(function(a){return j.jsx(c("OCDevUITimelineItem.react"),babelHelpers["extends"]({isCompleted:d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvents.indexOf(a)<=d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvents.indexOf(f)},g(a)),a)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----