OCDevManageWorldsWorldBroadcastView.react",["fbt","ix","$InternalEnum","GeoButton.react","GeoCardFooter.react","GeoEmptyState.react","GeoFlexbox.react","GeoHStack.react","GeoPageCard.react","GeoPageItem.react","GeoPageSection.react","GeoSection.react","GeoStep.react","GeoStepper.react","GeoText.react","Image.react","OCDevManagePage.react","OCDevManagePageHeader.react","OCDevManageWorldBroadcastVideoPlayer.react","OCDevManageWorldMetadataWorldBroadcastSaveCompleteModal.react","OCDevManageWorldMetadataWorldBroadcastSaveConfirmationModal.react","OCDevManageWorldsWorldBroadcastViewSaveMutation.graphql","OCDevManageWorldsWorldBroadcastView_application.graphql","OCDevManageWorldsWorldBroadcastView_world.graphql","OCDevUIAsyncButton.react","OCXMetaDevelopersHorizonWorldsCMSControllerRouteBuilder","XOCOrganizationPermissionUtils.oculus","asyncToGeneratorRuntime","fbicon","getDisabledProps","gkx","react","react-relay","useGeoTheme","useOCDevUICommitMutation","useOCDevUIModal"],(function(t,n,r,o,a,i,l,s,u){"use strict";var e,c,d,m,p=m||(m=o("react")),_=n("$InternalEnum").Mirrored(["PREVIEW","LIVE"]);function f(t){var a,i,l,m,f,h,y,C,b,v=t.application,S=t.world,R=o("react-relay").useFragment(e!==void 0?e:e=n("OCDevManageWorldsWorldBroadcastView_world.graphql"),S),L=o("react-relay").useFragment(c!==void 0?c:c=n("OCDevManageWorldsWorldBroadcastView_application.graphql"),v),E=(a=R==null?void 0:R.world_broadcast_status)!=null?a:"UNPUBLISHED",k=r("gkx")("9272")&&(i=L==null||(l=L.viewer_permissions)==null?void 0:l.map(o("XOCOrganizationPermissionUtils.oculus").toJSEnum).includes("PUBLISH_UNITY_WORLD"))!=null?i:!1,I=k||R.is_viewer_owner===!0||R.is_viewer_collaborator===!0,T=r("useOCDevUIModal")(),D=T.openModal,x=r("OCXMetaDevelopersHorizonWorldsCMSControllerRouteBuilder").buildUri({doc_root:"learn",cms_object_alias:"documentation/typescript/api-references-and-examples/world-broadcast/overview"}).toString(),$=r("useOCDevUICommitMutation")(d!==void 0?d:d=n("OCDevManageWorldsWorldBroadcastViewSaveMutation.graphql"));function P(){return N.apply(this,arguments)}function N(){return N=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(R.id!=null){var e=yield $({input:{social_vr_custom_world_id:R.id,published_privacy:q}},{closeModalOnSuccess:!0,successToast:{heading:s._(/*BTDS*/"Changes saved")}});e!=null&&q!=="DRAFT"&&D(p.jsx(r("OCDevManageWorldMetadataWorldBroadcastSaveCompleteModal.react"),{newWorldBroadcastStatus:q}))}}),N.apply(this,arguments)}var M=(R==null||(m=R.world_broadcast_video)==null?void 0:m.uri)!=null&&(R==null||(f=R.world_broadcast_video)==null?void 0:f.video_id)!=null,w=s._(/*BTDS*/"You do not have permissions to change this setting"),A=s._(/*BTDS*/"Note: Preview stream lets creators and collaborators test the feed before going live.");function F(){return E==="PUBLISHED"?{buttonLabel:s._(/*BTDS*/"Stop livestream"),disabledMessage:I?null:s._(/*BTDS*/"You do not have permissions to change this setting"),nextWorldBroadcastStatus:"UNPUBLISHED",showDescriptionSubtext:!1,showVideoPlayer:!0}:E==="DRAFT"?{buttonLabel:M?s._(/*BTDS*/"Go live"):s._(/*BTDS*/"Loading..."),disabledMessage:I?M?null:s._(/*BTDS*/"Livestream is still loading. Please wait a few minutes, then refresh the page to try again."):w,nextWorldBroadcastStatus:"PUBLISHED",showDescriptionSubtext:!0,showVideoPlayer:!0}:{buttonLabel:s._(/*BTDS*/"Preview stream"),disabledMessage:I?null:w,nextWorldBroadcastStatus:"DRAFT",showDescriptionSubtext:!0,showVideoPlayer:!1}}var O=F(),B=O.buttonLabel,W=O.disabledMessage,q=O.nextWorldBroadcastStatus,U=O.showDescriptionSubtext,V=O.showVideoPlayer;function H(){return G.apply(this,arguments)}function G(){return G=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){R.id==null||q==null||(q==="DRAFT"?yield P():D(p.jsx(r("OCDevManageWorldMetadataWorldBroadcastSaveConfirmationModal.react"),{newWorldBroadcastStatus:q,onConfirm:P})))}),G.apply(this,arguments)}var z=r("useGeoTheme")(),j=z.selectElevation,K=z.selectStaticBackgroundColor;return p.jsx(r("OCDevManagePage.react"),{columns:12,header:p.jsx(r("OCDevManagePageHeader.react"),{description:s._(/*BTDS*/"Livestream your world directly to the Meta Horizon app feed and across Metau2019s family of apps. Real-time camera views offer potential players a sneak peek inside your world."),heading:s._(/*BTDS*/"World Broadcast")}),children:p.jsxs(r("GeoPageSection.react"),{children:[U&&p.jsx(r("GeoPageItem.react"),{columns:12,children:p.jsx(r("GeoText.react"),{children:A})}),p.jsx(r("GeoPageCard.react"),{columns:12,footer:p.jsx(r("GeoCardFooter.react"),{primaryButton:p.jsx(r("OCDevUIAsyncButton.react"),babelHelpers.extends({"data-testid":void 0},r("getDisabledProps")(W),{label:B,variant:"primary",onClick:H})),secondaryButton:p.jsx(r("GeoButton.react"),{"data-testid":void 0,href:x,icon:o("fbicon")._(u("509932"),16),label:s._(/*BTDS*/"Need help?"),target:"_blank"})}),children:p.jsx(r("GeoSection.react"),{children:p.jsxs(r("GeoHStack.react"),{children:[p.jsxs(r("GeoStepper.react"),{value:-1,onChange:function(){},children:[p.jsx(r("GeoStep.react"),{id:_.PREVIEW,label:s._(/*BTDS*/"Preview stream"),status:E==="DRAFT"||E==="PUBLISHED"?"completed":"pending"}),p.jsx(r("GeoStep.react"),{id:_.LIVE,label:s._(/*BTDS*/"Go live"),status:E==="PUBLISHED"?"completed":"pending"})]}),V?M?p.jsx(r("OCDevManageWorldBroadcastVideoPlayer.react"),{uri:(h=(y=R.world_broadcast_video)==null?void 0:y.uri)!=null?h:"",videoId:(C=(b=R.world_broadcast_video)==null?void 0:b.video_id)!=null?C:""}):p.jsx(r("GeoFlexbox.react"),{"data-testid":void 0,xstyle:[g.container,j({level:1}),K({surface:"content"})]}):p.jsx(r("GeoFlexbox.react"),{"data-testid":void 0,xstyle:[g.container,j({level:1}),K({surface:"content"})],children:p.jsx(r("GeoEmptyState.react"),{heading:s._(/*BTDS*/"Something not quite right? Click below for help."),media:p.jsx(r("Image.react"),{src:u("939103")})})})]})})})]})})}f.displayName=f.name+" [from "+i.id+"]";var g={container:{borderStartStartRadius:"x1obq294",borderStartEndRadius:"x5a5i1n",borderEndEndRadius:"xde0f50",borderEndStartRadius:"x15x8krk",height:"x16nrsnc",width:"xh8yej3",$$css:!0}};l.default=f}),226);
-----
OCDevManageOrganizationBundleCopyTestMetadataButton.react",["fbt","GeoButton.react","OCDevManageOrganizationBundleCopyModal.react","OCDevManageOrganizationBundleCopyTestMetadataButton_pdpMetadata.graphql","RelayHooks","XOCReviewStatus.oculus","getDisabledProps","react","useOCDevUIModal"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=e!==void 0?e:e=n("OCDevManageOrganizationBundleCopyTestMetadataButton_pdpMetadata.graphql");function m(e){var t=e.pdpMetadata,n=o("RelayHooks").useFragment(d,t),a=r("useOCDevUIModal")(),i=a.openModal,l=n==null?void 0:n.id;return n==null||l==null?null:c.jsx(r("GeoButton.react"),babelHelpers.extends({},r("getDisabledProps")((n==null?void 0:n.status)!==r("XOCReviewStatus.oculus").DRAFT?s._(/*BTDS*/"Metadata must be in draft state to copy test metadata."):null),{label:s._(/*BTDS*/"[INTERNAL] Copy Test Assets"),onClick:function(){i(c.jsx(r("OCDevManageOrganizationBundleCopyModal.react"),{destMetadataID:l}))}}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226);
-----
OCDevManageApplicationSubmissionPricingIncludedPreorderItemsSelectorV2.react",["fbt","ix","GeoBaseSearchableSelectorItem.react","GeoFlexbox.react","GeoPill.react","GeoSearchableMultiSelector.react","OCDevManageApplicationSubmissionPricingIncludedPreorderItemsSelectorV2_submission.graphql","OCDevManagePlatformServicesAddOnsRoute","OCDevUIFormInputValidator.react","OCDevUILinkButton.react","RelayHooks","SearchableEntry","StaticSearchSource","fbicon","getDisabledProps","intlList","react","useOCDevManageIsInternal"],(function(t,n,r,o,a,i,l,s,u){"use strict";var e,c,d=c||(c=o("react")),m=c.useMemo,p=10;function _(t){var a,l,c,_=t.disabledMessage,f=t.onChange,g=t.submission,h=t.value,y=o("RelayHooks").useFragment(e!==void 0?e:e=n("OCDevManageApplicationSubmissionPricingIncludedPreorderItemsSelectorV2_submission.graphql"),g),C=m(function(){var e,t;return(e=(t=y.application)==null||(t=t.platform_services)==null||(t=t.iap_items_2)==null?void 0:t.nodes)!=null?e:[]},[(a=y.application)==null||(a=a.platform_services)==null||(a=a.iap_items_2)==null?void 0:a.nodes]),b=m(function(){return new(r("StaticSearchSource"))(C.map(function(e){var t,n,o=e.baseline_offer,a=e.display_name,i=e.id,l=(t=o==null||(n=o.price)==null?void 0:n.offset_amount)!=null?t:"0",s=parseFloat(l)/100;return new(r("SearchableEntry"))({auxiliaryData:{price:s},title:a!=null?a:"Unnamed Add-on",uniqueID:i!=null?i:""})}))},[C]),v=r("useOCDevManageIsInternal")();function S(){if(C.length===0)return s._(/*BTDS*/"No items available.");if(!v)return _}var R=r("getDisabledProps")(S());function L(e){if(e===0)return s._(/*BTDS*/"Free");var t=e.toFixed(2);return s._(/*BTDS*/"${price}",[s._param("price",t)])}return L.displayName=L.name+" [from "+i.id+"]",d.jsxs(r("GeoFlexbox.react"),{alignItems:"end",gap:8,children:[d.jsx(r("OCDevUIFormInputValidator.react"),{validateField:function(){if(h.length>p){var e=h.length-p,t=e===1?"item":"items";return s._(/*BTDS*/"You can only select up to 10 items. Please remove {count} {itemText}.",[s._param("count",e),s._param("itemText",t)])}},children:d.jsx(r("GeoSearchableMultiSelector.react"),babelHelpers.extends({},R,{buttonLabelRenderer:function(t){return r("intlList")(t.map(function(e){return e.getTitle()}))},"data-testid":void 0,description:s._(/*BTDS*/"Create a pre-order bundle with up to 10 in-app purchases. A free app must have at lease one item with a price."),label:s._(/*BTDS*/"In-app purchase items"),placeholder:s._(/*BTDS*/"Select items"),searchSource:b,tooltip:s._(/*BTDS*/"Additional content that can be purchased in your app, including IAPs (in-app purchases) and DLCs (downloadable content)."),value:h.map(function(e){var t,n,o,a=C.find(function(t){var n=t.id;return n===e.itemID}),i=(t=a==null?void 0:a.display_name)!=null?t:"Unnamed Add-on",l=(n=a==null||(o=a.baseline_offer)==null||(o=o.price)==null?void 0:o.offset_amount)!=null?n:"0",s=parseFloat(l)/100;return new(r("SearchableEntry"))({auxiliaryData:{price:s},title:i,uniqueID:e.itemID})}),warningMessage:v?_:null,onChange:function(t){return f(t.map(function(e){return{fulfillmentType:"ENTITLE_ON_PAYMENT_COMPLETION",itemID:e.getUniqueID()}}))},children:function(t){var e,n=t.getAuxiliaryData(),o=(e=n==null?void 0:n.price)!=null?e:0,a=L(o);return d.jsx(r("GeoBaseSearchableSelectorItem.react"),{badge:d.jsx(r("GeoPill.react"),{label:a,value:a}),label:t.getTitle()})}}))}),R.isDisabled!==!0?d.jsx(r("OCDevUILinkButton.react"),{href:r("OCDevManagePlatformServicesAddOnsRoute").getURI({applicationID:(l=y==null||(c=y.application)==null?void 0:c.id)!=null?l:""}),icon:o("fbicon")._(u("483768"),16),label:s._(/*BTDS*/"Create Add-on")}):null]})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226);
-----
OCDevManageWorldMetadataWorldBroadcastView",["fbt","GeoDivider.react","GeoLink.react","GeoSelector.react","GeoSelectorItem.react","GeoTextPairing.react","GeoToast.react","GeoVStack.react","OCDevManageWorldBroadcastVideoPlayer.react","OCDevManageWorldMetadataWorldBroadcastSaveConfirmationModal.react","OCDevManageWorldMetadataWorldBroadcastView_application.graphql","OCDevManageWorldMetadataWorldBroadcastView_world.graphql","OCDevUIAsyncButton.react","OCXMetaDevelopersHorizonWorldsCMSControllerRouteBuilder","XOCOrganizationPermissionUtils.oculus","geoMargin","getDisabledProps","gkx","react","react-relay","useGeoToaster","useOCDevUIModal"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react")),m=c.useState;function p(t){var a,i,l,c,p,_,f,g,h,y=t.application,C=t.world,b=o("react-relay").useFragment(e!==void 0?e:e=n("OCDevManageWorldMetadataWorldBroadcastView_world.graphql"),C),v=o("react-relay").useFragment(u!==void 0?u:u=n("OCDevManageWorldMetadataWorldBroadcastView_application.graphql"),y),S=(a=b==null?void 0:b.world_broadcast_status)!=null?a:"UNPUBLISHED",R=m(S),L=R[0],E=R[1],k=L!==S,I=r("useGeoToaster")(),T=I.add,D=r("gkx")("9272")&&(i=v==null||(l=v.viewer_permissions)==null?void 0:l.map(o("XOCOrganizationPermissionUtils.oculus").toJSEnum).includes("PUBLISH_UNITY_WORLD"))!=null?i:!1,x=D||b.is_viewer_owner===!0||b.is_viewer_collaborator===!0,$=r("useOCDevUIModal")(),P=$.openModal,N=r("OCXMetaDevelopersHorizonWorldsCMSControllerRouteBuilder").buildUri({doc_root:"learn",cms_object_alias:"documentation/typescript/api-references-and-examples/world-broadcast/overview"}).toString(),M=x?k?null:s._(/*BTDS*/"Noting to save"):s._(/*BTDS*/"You do not have permissions to change this setting");function w(){T(d.jsx(r("GeoToast.react"),{hasIcon:!0,heading:s._(/*BTDS*/"Changes saved")}))}function A(){T(d.jsx(r("GeoToast.react"),{hasIcon:!0,heading:s._(/*BTDS*/"Failed to save changes"),status:"error"}))}function F(){var e=b.id;if(e!=null){var t=L!==S;t&&P(d.jsx(r("OCDevManageWorldMetadataWorldBroadcastSaveConfirmationModal.react"),{newWorldBroadcastStatus:L,oldWorldBroadcastStatus:S,worldID:e,onFailure:A,onSuccess:w}))}}var O=(S==="PUBLISHED"||S==="DRAFT")&&(b==null||(c=b.world_broadcast_video)==null?void 0:c.uri)!=null&&(b==null||(p=b.world_broadcast_video)==null?void 0:p.video_id)!=null;return d.jsxs(r("GeoVStack.react"),{context:"container",grow:1,relation:"unrelated",xstyle:r("geoMargin").all16,children:[d.jsx(r("GeoTextPairing.react"),{description:s._(/*BTDS*/"Implement World Broadcast to showcase your world. This feature helps users preview and discover your experience. Add World Broadcast to bring your world to life. For more details about how this tool works and where your broadcast will be served, please refer to the {worldBroadcastToolLink}.",[s._param("worldBroadcastToolLink",d.jsx(r("GeoLink.react"),{href:N,target:"_blank",children:"Developer Documentation"}))]),heading:s._(/*BTDS*/"World Broadcast u2219 Optional"),size:"header3"}),d.jsx(r("GeoDivider.react"),{}),d.jsxs(r("GeoSelector.react"),{"data-testid":void 0,label:s._(/*BTDS*/"Status"),message:s._(/*BTDS*/"Set to Draft to allow you and your collaborators to preview your World Broadcast. When youu2019re ready, set to Live to allow users to see your World Broadcast."),placeholder:s._(/*BTDS*/"Select an Item"),value:L,onChange:E,children:[d.jsx(r("GeoSelectorItem.react"),{label:s._(/*BTDS*/"Off"),value:"UNPUBLISHED"}),d.jsx(r("GeoSelectorItem.react"),{label:s._(/*BTDS*/"Draft"),value:"DRAFT"}),d.jsx(r("GeoSelectorItem.react"),{label:s._(/*BTDS*/"Live"),value:"PUBLISHED"})]}),O&&d.jsx(r("OCDevManageWorldBroadcastVideoPlayer.react"),{uri:(_=(f=b.world_broadcast_video)==null?void 0:f.uri)!=null?_:"",videoId:(g=(h=b.world_broadcast_video)==null?void 0:h.video_id)!=null?g:""}),d.jsx("div",{className:"x8x9d4c",children:d.jsx(r("OCDevUIAsyncButton.react"),babelHelpers.extends({"data-testid":void 0},r("getDisabledProps")(M),{label:s._(/*BTDS*/"Save Changes"),variant:"primary",onClick:F}))})]})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226);
-----
OCDevManageEventAddToSeriesEventButton.react",["fbt","GeoMenuItem.react","OCDevManageEventAddToSeriesDialog.react","OCDevManageEventAddToSeriesEventButton_event.graphql","OculusEventSeriesFilled24.svg.react","RelayHooks","getDisabledProps","react","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=h._(/*BTDS*/"Add to series");function a(a){var e;a=a.event;a=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageEventAddToSeriesEventButton_event.graphql"),a);var f=(e=a.id)!=null?e:"";e=c("useOCDevUIModal")();var g=e.closeModal,j=e.openModal;function m(){j(k.jsx(c("OCDevManageEventAddToSeriesDialog.react"),{closeModal:g,eventID:f}))}return a.event_type!=="USER_CREATED"||a.can_viewer_edit!==!0||a.is_series_main_event===!0?null:k.jsx(c("GeoMenuItem.react"),babelHelpers["extends"]({},c("getDisabledProps")(((e=a.event_set)==null?void 0:e.id)!=null?h._(/*BTDS*/"Already part of a series"):null),{icon:[c("OculusEventSeriesFilled24.svg.react"),16],label:l,onClick:m}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageOrganizationCrossOrgBundleProductSelector.react",["fbt","GeoMultiSelector.react","GeoMultiSelectorItem.react","OCDevManageOrganizationCrossOrgBundleProductSelector_reviewableOfferGroup.graphql","OCDevManageOrganizationCrossOrgBundleTestUtils","RelayHooks","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var e,f,g,j,l,m,n=a.formState,o=a.isReadOnly,p=a.onUpdateFormState;a=a.reviewableOfferGroup;a=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageOrganizationCrossOrgBundleProductSelector_reviewableOfferGroup.graphql"),a);var q=a==null||(e=a.revision)==null?void 0:e.app_item_bundle;f=(f=q==null||(g=q.invitee_org_app_store_items)==null?void 0:g.nodes)!=null?f:[];var r=n.appStoreItems;q=(n=q==null||(j=q.developer_org)==null||(j=j.applications)==null||(j=j.nodes)==null||(j=j.concat(q==null||(l=q.developer_org)==null||(l=l.allApplications)==null||(l=l.nodes)==null?void 0:l.flatMap(function(a){return(a=a.platform_services)==null||(a=a.iap_items_2)==null?void 0:a.nodes})))==null?void 0:j.concat(f).filter(Boolean))!=null?n:[];n=!o&&((f=a==null||(m=a.revision)==null||(m=m.revision_events)==null?void 0:m.count_up_to)!=null?f:0)>1?h._(/*BTDS*/"Please create a new bundle if you want to change your bundle items."):null;function s(a){return a?null:h._(/*BTDS*/"This item is not live on the store")}function t(a,b){var c=b.filter(function(b){return a.includes(b.id)});b=a.filter(function(a){return!c.map(function(a){return a.id}).includes(a)}).map(function(a){return{id:a,ratio:0}});return c.concat(b).sort(function(a,b){return b.id.localeCompare(a.id)})}function u(a){return[].concat(a).sort(function(a,b){a=a.display_name;b=b.display_name;return(a=a==null?void 0:a.localeCompare(b!=null?b:""))!=null?a:0}).map(function(a){var b;b=((b=a.baseline_offer)==null?void 0:b.time_status)==="ACTIVE";return a.id!=null?k.createElement(c("GeoMultiSelectorItem.react"),babelHelpers["extends"]({"data-testid":void 0},c("getDisabledProps")(s(b)),{key:a.id,label:(b=a.display_name)!=null?b:h._(/*BTDS*/"Missing Display Name"),value:a.id})):null})}return k.jsx(c("GeoMultiSelector.react"),babelHelpers["extends"]({"data-testid":void 0,description:h._(/*BTDS*/"Which products would you like to include in the bundle? Only Meta Horizon Store apps are supported. Currently, bundles are limited to 40 items or fewer."),displayValueType:"list"},c("getDisabledProps")(n),{label:h._(/*BTDS*/"Products"),placeholder:h._(/*BTDS*/"Choose products"),ratio:"circle",value:r.map(function(a){a=a.id;return a}),onChange:function(a){var b=t(a,r);p(function(a){return babelHelpers["extends"]({},a,{appStoreItems:b})})},children:u(q)}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageOrganizationCrossOrgBundleExpireAtEndTimeToggle.react",["fbt","GeoCheckboxInput.react","OCDevManageOrganizationBundleUtils.react","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a["data-testid"];b=a.formState;var e=a.isReadOnly,f=a.onChange;a=b.bundleType;var g=b.endTime,i=b.startTime;b=a==="SEASON_PASS";return j.jsx(c("GeoCheckboxInput.react"),babelHelpers["extends"]({"data-testid":void 0},c("getDisabledProps")(b?h._(/*BTDS*/"Season pass bundles must have an end date."):null),{description:h._(/*BTDS*/"If checked, the bundle will expire after the end time has passed."),isReadOnly:e,label:h._(/*BTDS*/"Expire at End Time"),value:g>0||b,onChange:function(a){f(a?d("OCDevManageOrganizationBundleUtils.react").calculateDefaultEndTime(i):0)}}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageOrganizationBundleInviteeActionButton",["OCDevManageOrganizationBundleInviteeActionButtonMutation.graphql","OCDevUIAsyncButton.react","asyncToGeneratorRuntime","getDisabledProps","react","useOCDevUICommitMutation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var d=a.acceptingStatus,e=a.bundleId,f=a.crossOrgBundlePreReviewStatus,g=a.disabledMessage,i=a.label,k=a.organizationId,l=a.successToast;a=a.variant;var m=c("useOCDevUICommitMutation")(h!==void 0?h:h=b("OCDevManageOrganizationBundleInviteeActionButtonMutation.graphql"));function n(){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield m({input:{bundle_id:e,organization_id:k,accepting_status:d}},{successToast:babelHelpers["extends"]({},l)})});return o.apply(this,arguments)}return j.jsx(c("OCDevUIAsyncButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(g),{isDisabled:f!=="LOCKED",label:i,variant:a,onClick:n}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevManageOrganizationBundleCreatorLockButton.react",["fbt","OCDevManageOrganizationBundleCreatorLockButtonMutation.graphql","OCDevUIAsyncButton.react","XOCCrossOrgBundlePreReviewStatusEnum.oculus","asyncToGeneratorRuntime","getDisabledProps","react","useOCDevUICommitMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var d=a.bundleId,e=a.crossOrgBundlePreReviewStatus;a=a.disabledMessage;var f=c("useOCDevUICommitMutation")(i!==void 0?i:i=b("OCDevManageOrganizationBundleCreatorLockButtonMutation.graphql"));e=e==="LOCKED"?h._(/*BTDS*/"Waiting for Acceptances"):h._(/*BTDS*/"Lock");function g(){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield f({input:{bundle_id:d,status:c("XOCCrossOrgBundlePreReviewStatusEnum.oculus").LOCKED}},{successToast:{heading:h._(/*BTDS*/"Bundle Locked"),description:h._(/*BTDS*/"You have successfully locked the bundle.")}})});return j.apply(this,arguments)}return k.jsx(c("OCDevUIAsyncButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(a),{label:e,variant:"primary",onClick:g}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManagePlatformServiceItemApplicationSelector.react",["fbt","GeoBaseSearchableSelectorItem.react","GeoMultiSelector.react","GeoMultiSelectorItem.react","GeoSearchableMultiSelector.react","OCDevManageAppPlatformLabel","OCDevManageApplicationIconImageWithFallback.react","OCDevManagePlatformServiceItemApplicationSelector_organization.graphql","OCDevUIFormInputValidator.react","RelayHooks","SearchableEntry","StaticSearchSource","getDisabledProps","intlList","react","useOCDevManageRouteParams"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useMemo;function a(a){var e,f,g=a.allowDeselectSidenavApp,j=g===void 0?!1:g;g=a.description;var m=a.label,n=a.onChange,o=a.organization,p=a.validateField,q=a.value,r=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManagePlatformServiceItemApplicationSelector_organization.graphql"),o),s=l(function(){var a,b;return(a=r==null||(b=r.applications)==null||(b=b.nodes)==null||(b=b.filter(Boolean))==null?void 0:b.sort(function(a,b){a=a.display_name;b=b.display_name;return(a=a==null?void 0:a.localeCompare(b!=null?b:""))!=null?a:0}))!=null?a:[]},[r==null||(e=r.applications)==null?void 0:e.nodes]);a=l(function(){var a;return new(c("StaticSearchSource"))((a=(a=s.map(function(a){var b;return new(c("SearchableEntry"))({auxiliaryData:a,title:(b=a.display_name)!=null?b:"Missing Name",uniqueID:(b=a==null?void 0:a.id)!=null?b:""})}))==null?void 0:a.filter(Boolean))!=null?a:[])},[s]);o=c("useOCDevManageRouteParams")();var t=o.applicationID;function u(a){a=a.id;if(!j&&t===a&&q.includes(a))return h._(/*BTDS*/"This application is currently selected in the site navigation and cannot be removed.")}function v(a){var b=a.display_name,d=a.icon_image,e=a.is_concept,f=a.is_quest_for_business,g=a.is_test;a=a.platform;return{description:c("OCDevManageAppPlatformLabel")({isConcept:e,isTestApp:g,isQ4B:f,platform:a}),label:b!=null?b:"Missing Name",media:k.jsx(c("OCDevManageApplicationIconImageWithFallback.react"),{imageURI:d==null?void 0:d.uri})}}o={"data-testid":"applications-selector",description:g,label:m!=null?m:h._(/*BTDS*/"Applications")};g=s.length>5?k.jsx(c("GeoSearchableMultiSelector.react"),babelHelpers["extends"]({},o,{buttonLabelRenderer:function(a){return c("intlList")(a.map(function(a){return a.getTitle()}))},searchPlaceholder:h._(/*BTDS*/"Search"),searchSource:a,value:a.getSearchableEntries().filter(function(a){return q.includes(a.getUniqueID())}),onChange:function(a){return n(a.map(function(a){return a.getUniqueID()}))},children:function(a){var b=a.getAuxiliaryData(),d=u(b);return k.createElement(c("GeoBaseSearchableSelectorItem.react"),babelHelpers["extends"]({},v(b),{isDisabled:d!=null,key:a.getUniqueID(),tooltip:d}))}})):k.jsx(c("GeoMultiSelector.react"),babelHelpers["extends"]({},o,{displayValueType:"list",value:q,onChange:n,children:s==null||(f=s.filter(Boolean))==null||(f=f.map(function(a){var b;return k.createElement(c("GeoMultiSelectorItem.react"),babelHelpers["extends"]({},v(a),c("getDisabledProps")(u(a)),{"data-testid":void 0,key:a.id,value:a.id}))}))==null?void 0:f.filter(Boolean)}));return p!=null?k.jsx(c("OCDevUIFormInputValidator.react"),{validateField:p,children:g}):g}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManagePlatformServicesMigrationToolExclusionsSelector.react",["fbt","AbstractRelaySearchSource","GeoBaseSearchableSelectorItem.react","GeoPill.react","GeoSearchableMultiSelector.react","OCDevManagePlatformServices","OCDevManagePlatformServicesMigrationToolExclusionsSelectorCurrentSelectedItemsSearchSourceQuery.graphql","OCDevManagePlatformServicesMigrationToolExclusionsSelectorPlatformServiceItemsSearchSourceQuery.graphql","RelayHooks","SearchableEntry","XOCPlatformService.oculus","getDisabledProps","react","sumOfArray"],(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.useMemo,n=e.useState;function a(a){var b=a.excludedItemIDs,e=a.onChangeExcludedItemIDs,f=a.servicesToMigrate,g=a.sourceApplicationIDs;a=n("");var i=a[0],j=a[1],k=d("RelayHooks").useRelayEnvironment();a=m(function(){return new q(k,g,f)},[k,f,g]);var o=m(function(){return new r(k,b)},[k,b]);function p(){if(f.length===0)return h._(/*BTDS*/"Select a service before adding exclusions");if(g.length===0)return h._(/*BTDS*/"Select at least one source application before adding exclusions")}return l.jsx(c("GeoSearchableMultiSelector.react"),babelHelpers["extends"]({},c("getDisabledProps")(p()),{buttonLabelRenderer:function(){return h._(/*BTDS*/{"*":"{count} items selected","_1":"{count} item selected"},[h._plural(b.length),h._param("count",b.length)])},description:h._(/*BTDS*/"Search across all selected services for items that you wish to exclude from the migration"),emptySearchResultsContent:h._(/*BTDS*/"No results"),isOptional:!0,label:h._(/*BTDS*/"Excluded items"),searchSource:i===""?o:a,value:b.map(function(a){return new(c("SearchableEntry"))({title:"",uniqueID:a})}),onChange:function(a){return e(a.map(function(a){return a.getUniqueID()}))},onClose:function(){return j("")},onQueryChange:j,children:function(a){var b=c("XOCPlatformService.oculus").cast(a.getType());return l.jsx(c("GeoBaseSearchableSelectorItem.react"),{badge:b!=null?l.jsx(c("GeoPill.react"),{label:"",value:d("OCDevManagePlatformServices").getPlatformServiceConfiguration(b).displayNameSingular}):null,description:a.getSubtitle(),label:a.getTitle()})}}))}a.displayName=a.name+" [from "+f.id+"]";function o(a){var b=a.nodes;a=a.xoc_platform_service_item_search;return(a=((a=a==null?void 0:a.nodes)!=null?a:[]).concat(b!=null?b:[]).map(function(a){var b=a.api_name,d=a.display_name,e=a.id;a=a.platform_service;return e!=null&&a!=null?new(c("SearchableEntry"))({subtitle:(b!=null?b:"")!==""?h._(/*BTDS*/"{prefix}: {api-name}",[h._param("prefix",a==="ADD_ONS"?"SKU":"API Name"),h._param("api-name",b)]):null,title:(b=d!=null?d:b)!=null?b:"--",type:a,uniqueID:e,order:c("sumOfArray")(Array.from(d!=null?d:"").map(function(a){return a.charCodeAt(0)}))}):null}).filter(Boolean))!=null?a:[]}var p={debounceAmount:500,getAllForEmptyQuery:!1,packageFn:o},q=function(c){function a(a,d,e){var f=function(a){return{query:i!==void 0?i:i=b("OCDevManagePlatformServicesMigrationToolExclusionsSelectorPlatformServiceItemsSearchSourceQuery.graphql"),variables:{applicationIDs:d,queryString:a,services:e}}};return c.call(this,a,babelHelpers["extends"]({},p,{bootstrapRequests:[{gen:f}],queryRequests:[{gen:f}]}),o)||this}babelHelpers.inheritsLoose(a,c);return a}(c("AbstractRelaySearchSource")),r=function(c){function a(a,d){var e=function(a){return{query:j!==void 0?j:j=b("OCDevManagePlatformServicesMigrationToolExclusionsSelectorCurrentSelectedItemsSearchSourceQuery.graphql"),variables:{excludedItemIDs:d}}};return c.call(this,a,babelHelpers["extends"]({},p,{bootstrapRequests:[{gen:e}],queryRequests:[{gen:e}]}),o)||this}babelHelpers.inheritsLoose(a,c);return a}(c("AbstractRelaySearchSource"));g["default"]=a}),226);
-----
OCDevManageOrganizationPromoCodeCodeInput.react",["fbt","GeoFlexbox.react","GeoTextInput.react","OCDevManageOrganizationPromoCodeTestUtils","OCDevUICopyToClipboardButton.react","OCDevUIFormInputValidator.react","emptyFunction","getDisabledProps","react","useOCDevManageOrganizationPromoCodeFieldValidator"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.code,d=a.codeSuffix,e=a.developerOrgID,f=a.disabledMessage,g=a.onChange;a=a.promotionalCodeID;e=c("useOCDevManageOrganizationPromoCodeFieldValidator")({code:b,codeSuffix:d,developerOrgID:e,promotionalCodeID:a});a=(b!=null?b:"")+"-"+d;return j.jsxs(c("GeoFlexbox.react"),{alignItems:"end",columnGap:8,children:[j.jsx(c("OCDevUIFormInputValidator.react"),{validateField:e,children:j.jsx(c("GeoTextInput.react"),babelHelpers["extends"]({},c("getDisabledProps")(f),{"data-testid":void 0,description:h._(/*BTDS*/"Customer enters this code, including preset suffix, at checkout."),label:h._(/*BTDS*/"Code"),value:b,onChange:g}))}),j.jsxs(c("GeoFlexbox.react"),{alignItems:"center",columnGap:8,xstyle:k.codeSuffixContainer,children:["-",j.jsx(c("GeoTextInput.react"),{"data-testid":void 0,isDisabled:!0,isLabelHidden:!0,label:h._(/*BTDS*/"Code Suffix"),value:d,onChange:c("emptyFunction")}),j.jsx(c("OCDevUICopyToClipboardButton.react"),{copyText:a})]})]})}a.displayName=a.name+" [from "+f.id+"]";var k={codeSuffixContainer:{height:"xdmi676",marginTop:"x1tfhste",$$css:!0}};g["default"]=a}),226);
-----
OCDevManageOrganizationPromoCodeDateInput.react",["fbt","DateTime","GeoDatePicker.react","LocalDate","OCDevManageOrganizationPromoCodeTestUtils","OCDevUIFormInputValidator.react","OCDevUIValidatorCommonErrors","Timezone","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.disabledMessage,e=a.endTime,f=a.onEndTimeChange,g=a.onStartTimeChange,i=a.promoCodeCreationTime,k=a.promoCodeEndTime;a=a.startTime;var l=c("DateTime").localNow().toLocalDate(),m=i!=null?c("DateTime").localCreate(i).toLocalDate():l,n=k!=null?c("DateTime").localCreate(k).toLocalDate():c("DateTime").localNow().toLocalDate();return j.jsxs(j.Fragment,{children:[j.jsx(c("GeoDatePicker.react"),babelHelpers["extends"]({},c("getDisabledProps")(b),{"data-testid":void 0,description:h._(/*BTDS*/"Enter the start time for this promo code. If not set, the promo code will start on creation."),isOptional:!0,label:h._(/*BTDS*/"Start Time"),restraint:function(a){return!a.isBefore(l)&&(e==null||a.isBeforeOrEqual(c("LocalDate").fromInstant(e,d("Timezone").PST8PDT)))},value:a!=null?c("LocalDate").fromInstant(a,d("Timezone").PST8PDT):null,onChange:function(a){return g(a==null?void 0:a.toInstant(d("Timezone").PST8PDT))}})),j.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return e==null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:j.jsx(c("GeoDatePicker.react"),{"data-testid":void 0,description:h._(/*BTDS*/"Enter the end time for this promo code."),isPagerLimitRestrained:!1,label:h._(/*BTDS*/"End Time"),restraint:function(a){return!(a.isBeforeOrEqual(l)||a.isBeforeOrEqual(n)||a.isAfterOrEqual(m.addYears(1)))},tooltip:h._(/*BTDS*/"End time can be extended after creation"),value:e!=null&&e>0?c("LocalDate").fromInstant(e,d("Timezone").PST8PDT):null,onChange:function(a){return f(a==null?void 0:a.toInstant(d("Timezone").PST8PDT))}})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageOrganizationPromoCodeNameInput.react",["fbt","GeoTextInput.react","OCDevManageOrganizationPromoCodeTestUtils","OCDevUIFormInputValidator.react","OCDevUIValidatorCommonErrors","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.disabledMessage,e=a.name;a=a.onNameChange;return j.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return(e!=null?e:"")===""?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:j.jsx(c("GeoTextInput.react"),babelHelpers["extends"]({},c("getDisabledProps")(b),{"data-testid":void 0,description:h._(/*BTDS*/"Give your promo code a unique name. This name is not visible to the public."),label:h._(/*BTDS*/"Name"),value:e,onChange:a}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageOrganizationPromoCodeTypeInput.react",["fbt","GeoSelector.react","GeoSelectorItem.react","OCDevManageOrganizationPromoCodeTestUtils","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.codeType,d=a.disabledMessage,e=a.onChange,f=a.promoCodeTypes;return j.jsx(c("GeoSelector.react"),babelHelpers["extends"]({},c("getDisabledProps")(d),{"data-testid":void 0,description:h._(/*BTDS*/"Select the type of promo code that you are creating."),label:h._(/*BTDS*/"Type"),placeholder:h._(/*BTDS*/"MSRP"),ratio:"circle",value:b,onChange:e,children:Object.keys(f).map(function(a){return j.jsx(c("GeoSelectorItem.react"),{label:f[a],value:f[a]},f[a])})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageOrganizationPromoCodeDiscountInput.react",["fbt","GeoNumericInput.react","OCDevManageOrganizationPromoCodeTestUtils","OCDevUIFormInputValidator.react","OCDevUIValidatorCommonErrors","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.disabledMessage,e=a.discountPercent,f=a.onChange;return j.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return e==null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:j.jsx(c("GeoNumericInput.react"),babelHelpers["extends"]({},c("getDisabledProps")(b),{"data-testid":void 0,description:h._(/*BTDS*/"Enter percent off (u0025) of MSRP."),label:h._(/*BTDS*/"Discount Percent"),max:99,min:1,value:e!=null?+parseFloat(e*100).toFixed(0):null,onChange:function(a){return f(a!=null?a/100:null)}}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageOrganizationPromoCodeNumberOfTermsInput.react",["fbt","GeoNumericInput.react","OCDevManageOrganizationPromoCodeTestUtils","OCDevUIFormInputValidator.react","OCDevUIValidatorCommonErrors","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.disabledMessage,e=a.numberOfTerms,f=a.onNumberOfTermsChange;a=a.promoCodeNumberOfTerms;return j.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return e===null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:j.jsx(c("GeoNumericInput.react"),babelHelpers["extends"]({},c("getDisabledProps")(b),{"data-testid":void 0,description:h._(/*BTDS*/"Enter number of billing terms that discount should be applied for."),label:h._(/*BTDS*/"Number of terms"),max:99,min:1,value:a!=null?a:e,onChange:f}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageOrganizationPromoCodeRedemptionLimitInput.react",["fbt","GeoFlexbox.react","GeoHeading.react","GeoNumericInput.react","GeoSelectableList.react","GeoSelectableListTextItem.react","OCDevManageOrganizationPromoCodeTestUtils","OCDevUIFormInputValidator.react","geoMargin","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useState;function a(a){var b=a.disabledMessage,d=a.onRedemptionLimitChange,e=a.redemptionLimit;a=k((e!=null?e:0)!==0);var f=a[0],g=a[1];return j.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[j.jsx(c("GeoHeading.react"),{level:4,children:h._(/*BTDS*/"Limit Total Uses")}),j.jsxs(c("GeoSelectableList.react"),{"data-testid":void 0,isSelectionRequired:!0,itemStyle:"radio",selectedItemIDs:[f],selectionType:"single",xstyle:c("geoMargin").top4,onSelectionChange:function(a){a=a[0];a||d(0);g(a)},children:[j.jsx(c("GeoSelectableListTextItem.react"),babelHelpers["extends"]({"data-testid":void 0},c("getDisabledProps")(b),{itemID:!1,label:h._(/*BTDS*/"Unlimited Uses")})),j.jsx(c("GeoSelectableListTextItem.react"),babelHelpers["extends"]({"data-testid":void 0},c("getDisabledProps")(b),{itemID:!0,label:h._(/*BTDS*/"Limited Uses")}))]}),f?j.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return(e!=null?e:0)<=0||(e!=null?e:0)>=5e3?h._(/*BTDS*/"The redemption limit must be between 1 - 5000"):null},children:j.jsx(c("GeoNumericInput.react"),{"data-testid":void 0,description:h._(/*BTDS*/"Must be between 1 - 5000"),label:h._(/*BTDS*/"Redemption Limit"),max:5e3,min:1,value:e,xstyle:c("geoMargin").top12,onChange:function(a){a=a!=null?a:0;d(a)}})}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageOrganizationPromoCodeStatusInput.react",["fbt","GeoFlexbox.react","GeoHeading.react","GeoSelectableList.react","GeoSelectableListTextItem.react","OCDevManageOrganizationPromoCodeTestUtils","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.disabledMessage,d=a.isActive,e=a.onChange;return j.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[j.jsx(c("GeoHeading.react"),{level:4,children:h._(/*BTDS*/"Status")}),j.jsxs(c("GeoSelectableList.react"),{"data-testid":void 0,itemStyle:"radio",selectedItemIDs:[d],selectionType:"single",onSelectionChange:function(a){return e(a[0])},children:[j.jsx(c("GeoSelectableListTextItem.react"),babelHelpers["extends"]({"data-testid":void 0},c("getDisabledProps")(b),{itemID:!0,label:h._(/*BTDS*/"Active")})),j.jsx(c("GeoSelectableListTextItem.react"),babelHelpers["extends"]({"data-testid":void 0},c("getDisabledProps")(b),{itemID:!1,label:h._(/*BTDS*/"Inactive")}))]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManagePlatformServicesAddOnInventoryItemsFields.react",["fbt","GeoButton.react","GeoSelector.react","GeoSelectorItem.react","GeoText.react","GeoTextInput.react","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useState;function l(a){var b=a.formState,d=a.onUpdateFormState,e=b.inventoryItemGrants;a=k([]);var f=a[0],g=a[1];b=k("");var i=b[0],l=b[1];a=k("");var m=a[0],n=a[1];b=k("");var o=b[0],p=b[1];a=function(){if(m&&o){var a={name:m,sku:i,quantity:o};g([].concat(f,[a]));l("");n("");p("");d(function(b){var c=babelHelpers["extends"]({},b.inventoryItemGrants);c[a.sku]=(c[a.sku]||0)+a.quantity;return babelHelpers["extends"]({},b,{inventoryItemGrants:c})})}};var q=function(a){var b=babelHelpers["extends"]({},e);delete b[a];d(function(a){return babelHelpers["extends"]({},a,{inventoryItemGrants:b})})};b=[{label:"Item selector option 1",value:"item_selector_option_01"},{label:"Item selector option 2",value:"item_selector_option_02"}];return j.jsxs("div",{children:[j.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"flex-end"},children:[j.jsx(c("GeoSelector.react"),{description:h._(/*BTDS*/"{=m0}",[h._implicitParam("=m0",j.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"Choose an inventory item to add to the listing")}))]),label:h._(/*BTDS*/"Listing Type"),value:m,onChange:function(a){d(function(b){return babelHelpers["extends"]({},b,{inventoryItemGrants:babelHelpers["extends"]({},b.inventoryItemGrants,(b={},b[a]=a,b))})})},children:b.map(function(a,b){return j.jsx(c("GeoSelectorItem.react"),{label:h._(/*BTDS*/"{my-option-label}",[h._param("my-option-label",a.label)]),value:a.value},b)})}),j.jsx(c("GeoTextInput.react"),{label:h._(/*BTDS*/"Quantity"),placeholder:h._(/*BTDS*/"quantity"),value:o,onChange:function(a){return p(a)}}),j.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(null),{label:h._(/*BTDS*/"Add Item"),onClick:a}))]}),j.jsx("ul",{children:Object.keys(e).map(function(a,b){return j.jsxs("li",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[j.jsx("div",{style:{flex:1},children:a}),j.jsx("div",{style:{flex:1},children:e[a]}),j.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(null),{label:h._(/*BTDS*/"Delete"),onClick:function(){return q(a)}}))]},b)})})]})}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b=a.formState;a=a.onUpdateFormState;return j.jsxs("div",{style:{marginTop:"20px"},children:[j.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"Add inventory items to your listing below:")}),j.jsx(l,{formState:b,onUpdateFormState:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationRelistButton.react",["fbt","GeoButton.react","OCDevManageApplicationReleaseTimelineEvents","OCDevManageApplicationRelistButton_application.graphql","OCDevManageApplicationRelistModal.react","RelayHooks","getDisabledProps","react","useOCDevManageApplicationReleaseLatestCompletedTimelineEvent","useOCDevUIModal"],(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=c("useOCDevUIModal")(),f=e.openModal,g=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationRelistButton_application.graphql"),a),j=(e=g.revisionsIncludingVariantMetadataRevisions)==null?void 0:(a=e.nodes)==null?void 0:a[0],l=c("useOCDevManageApplicationReleaseLatestCompletedTimelineEvent")(g);e=function(){var a;if(((a=g.organization)==null?void 0:a.is_viewer_org_admin)!==!0)return h._(/*BTDS*/"You do not have permission to remove the app listing");if(g.is_approved!==!0)return h._(/*BTDS*/"This application is not approved");if((j==null?void 0:j.status)!=="APPROVED")return h._(/*BTDS*/"This application has changes pending review");if(g.item_bundles.length>0)return h._(/*BTDS*/"Please make sure this application is not part of a bundle before removing its listing");a=(a=(a=g.scheduled_offers)==null?void 0:(a=a.nodes)==null?void 0:a.filter(function(a){return a.offer_type==="XBUY_OFFER"}))!=null?a:[];if(a.length>0)return h._(/*BTDS*/"Please make sure this application does not have cross buy offers");return l!==d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.RELEASED?h._(/*BTDS*/"Application is not yet released"):null};return k.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(e()),{label:h._(/*BTDS*/"Put app listing back"),tooltip:h._(/*BTDS*/"Put your app listing back on the Meta Horizon Store"),variant:"flat",onClick:function(){return f(k.jsx(c("OCDevManageApplicationRelistModal.react"),{application:g}))}}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationSubmissionsTableUnscheduleReleaseMenuItem.react",["fbt","GeoMenuItem.react","OCDevManageApplicationSubmissionUnscheduleReleaseDateModal.react","OCDevManageApplicationSubmissionsTableUnscheduleReleaseMenuItem_submission.graphql","RelayHooks","XOCReleaseStatus.oculus","XOCReleaseType.oculus","getDisabledProps","react","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){a=a.submission;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationSubmissionsTableUnscheduleReleaseMenuItem_submission.graphql"),a);a=c("useOCDevUIModal")();var f=a.openModal;function g(){if((e==null?void 0:e.release_status)!==c("XOCReleaseStatus.oculus").SCHEDULED)return h._(/*BTDS*/"Your submission is not scheduled.");if((e==null?void 0:e.release_type)===c("XOCReleaseType.oculus").MANAGED)return h._(/*BTDS*/"Please contact submissionsu0040oculus.com to unschedule your submission.");if((e==null?void 0:e.is_blocked_by_pre_order)===!0)return h._(/*BTDS*/"Your app is being released. This submission cannot be changed at this time.")}return k.jsx(c("GeoMenuItem.react"),babelHelpers["extends"]({},c("getDisabledProps")(g()),{label:h._(/*BTDS*/"Unschedule"),onClick:function(){return f(k.jsx(c("OCDevManageApplicationSubmissionUnscheduleReleaseDateModal.react"),{submission:e}))}}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationReleaseChannelViewTabs.react",["fbt","ix","GeoButton.react","GeoButtonGroup.react","GeoFlexbox.react","GeoTab.react","GeoTabGroup.react","GeoTabStatusIndicator.react","OCApplicationPlatform","OCDevManageApplicationCreateScheduledBuildReleaseModal.react","OCDevManageApplicationReleaseChannelChangeCurrentBinaryModal.react","OCDevManageApplicationReleaseChannelCopyTestBinaryModal.react","OCDevManageApplicationReleaseChannelInviteButton.react","OCDevManageApplicationReleaseChannelInviteOrganizationModal.react","OCDevManageApplicationReleaseChannelRoute","OCDevManageApplicationReleaseChannelViewSection","OCDevManageApplicationReleaseChannelViewTabs_releaseChannel.graphql","OCDevManageBinaryUploadBuildUseCLI.react","OCDevManagePermissionButton.react","OCDevManageReleaseChannelOneTimeURLDownloadAllButton.react","OCDevManageReleaseChannelOneTimeURLGenerateButton.react","OCDevManageReleaseChannelShareButton.react","OCNavigatorHooks","RelayHooks","fbicon","geoMargin","getDisabledProps","gkx","react","useOCDevManageAddUsersToReleaseChannelDisabledMessage","useOCDevManageScheduledBuildReleaseDisabledMessage","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react")),m=k.useMemo;function a(a){var e,f,g,k,n=a.releaseChannel,o=a.section,p=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageApplicationReleaseChannelViewTabs_releaseChannel.graphql"),n);a=c("useOCDevUIModal")();var q=a.openModal,r=p.application,s=(n=r==null?void 0:r.platform)!=null?n:"",t=m(function(){var a;return s===c("OCApplicationPlatform").values.ANDROID_XROS&&p.latest_supported_binary!=null&&(r==null?void 0:(a=r.linked_ar_experience)==null?void 0:a.id)!=null},[r,s,p.latest_supported_binary]),u=c("useOCDevManageScheduledBuildReleaseDisabledMessage")(r),v=c("useOCDevManageAddUsersToReleaseChannelDisabledMessage")(p),w=d("OCNavigatorHooks").useNavigate();a=p.group==="ENTERPRISE";n=p.group==="Q4B";e=(e=p.is_user_invite_enabled)!=null?e:!1;var x=(f=p.id)!=null?f:"",y=(f=(f=p.application)==null?void 0:f.id)!=null?f:"";f=(f=r.is_device_targeting_enabled)!=null?f:!1;var z=r==null?void 0:r.organization,A=p.is_live===!0,B=p==null?void 0:p.phased_releases;g=(g=(g=B==null?void 0:B.nodes[0])!=null?g:null)==null?void 0:g.status;k=(k=r.has_phased_release_access)!=null?k:!1;function C(a){w(c("OCDevManageApplicationReleaseChannelRoute").getURI({applicationID:y,releaseChannelID:x,releaseChannelViewSection:a}))}function D(){if(p.is_locked===!0)return h._("This channel is locked. Updating the channel binary is not allowed at this time.");if(p.is_binary_upload_allowed===!1)return h._("You cannot update your production channel binary while your app is under review.")}var E=D();function F(){switch(o){case c("OCDevManageApplicationReleaseChannelViewSection").CURRENT_BINARY:return l.jsxs(c("GeoButtonGroup.react"),{children:[c("gkx")("25684")||c("gkx")("4481")?l.jsx(c("GeoButton.react"),{disabledMessage:"This feature is only available to Quest applications",isDisabled:x===""||s!=="ANDROID_6DOF",label:"[INTERNAL] Attach Test Binary",tooltip:"Attach a test binary to this release channel",onClick:function(){return q(l.jsx(c("OCDevManageApplicationReleaseChannelCopyTestBinaryModal.react"),{appMode:r.app_mode,releaseChannelID:x,runMode:r.app_run_mode}))}}):null,t&&r!=null&&p.channel_name!=null?l.jsx(c("OCDevManageReleaseChannelShareButton.react"),{application:r,channelName:p.channel_name}):null,c("gkx")("25741")&&A?l.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(u),{label:h._("Schedule Build Release"),onClick:function(){return q(l.jsx(c("OCDevManageApplicationCreateScheduledBuildReleaseModal.react"),{application:r,surfaceName:"release_channel_view"}))}})):null,l.jsx(c("GeoButton.react"),{disabledMessage:E,icon:d("fbicon")._(i("568448"),16),isDisabled:E!=null,label:h._("Upload New Build"),onClick:function(){return q(l.jsx(c("OCDevManageBinaryUploadBuildUseCLI.react"),{releaseChannel:p}))}}),l.jsx(c("OCDevManagePermissionButton.react"),{"data-testid":void 0,disabledMessage:E,isDisabled:E!=null,label:h._("Change Current Build"),organization:z,permissions:["MANAGE_BINARIES","MANAGE_RELEASE_CHANNELS","VIEW_APPLICATION"],onClick:function(){return q(l.jsx(c("OCDevManageApplicationReleaseChannelChangeCurrentBinaryModal.react"),{releaseChannel:p}))}})]});case c("OCDevManageApplicationReleaseChannelViewSection").USERS:return l.jsxs(c("GeoButtonGroup.react"),{children:[t&&r!=null&&p.channel_name!=null?l.jsx(c("OCDevManageReleaseChannelShareButton.react"),{application:r,channelName:p.channel_name}):null,l.jsx(c("OCDevManageApplicationReleaseChannelInviteButton.react"),{releaseChannel:p})]});case c("OCDevManageApplicationReleaseChannelViewSection").SHARING:return l.jsxs(c("GeoButtonGroup.react"),{children:[l.jsx(c("OCDevManageReleaseChannelOneTimeURLDownloadAllButton.react"),{releaseChannel:p}),l.jsx(c("OCDevManageReleaseChannelOneTimeURLGenerateButton.react"),{releaseChannel:p})]});case c("OCDevManageApplicationReleaseChannelViewSection").ORGANIZATIONS:return l.jsxs(c("GeoButtonGroup.react"),{children:[t&&r!=null&&p.channel_name!=null?l.jsx(c("OCDevManageReleaseChannelShareButton.react"),{application:r,channelName:p.channel_name}):null,l.jsx(c("OCDevManagePermissionButton.react"),{"data-testid":void 0,disabledMessage:v,icon:d("fbicon")._(i("497889"),16),isDisabled:v!=null,label:h._("Add Organizations"),organization:z,permissions:["MANAGE_RELEASE_CHANNELS"],onClick:function(){return q(l.jsx(c("OCDevManageApplicationReleaseChannelInviteOrganizationModal.react"),{releaseChannel:p}))}})]});default:return null}}return l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",xstyle:e?void 0:c("geoMargin").bottom16,children:[l.jsxs(c("GeoTabGroup.react"),{value:o,onChange:C,children:[l.jsx(c("GeoTab.react"),{"data-testid":void 0,label:f?h._("Current builds"):h._("Current build"),value:c("OCDevManageApplicationReleaseChannelViewSection").CURRENT_BINARY}),A?null:l.jsx(c("GeoTab.react"),{"data-testid":void 0,label:a?h._("Customers"):h._("Users"),value:c("OCDevManageApplicationReleaseChannelViewSection").USERS}),n?l.jsx(c("GeoTab.react"),{"data-testid":void 0,label:h._("Organizations"),value:c("OCDevManageApplicationReleaseChannelViewSection").ORGANIZATIONS}):null,c("gkx")("3015")?l.jsx(c("GeoTab.react"),{"data-testid":void 0,label:h._("Sharing"),value:c("OCDevManageApplicationReleaseChannelViewSection").SHARING}):null,l.jsx(c("GeoTab.react"),{"data-testid":void 0,label:h._("Build history"),value:c("OCDevManageApplicationReleaseChannelViewSection").BINARY_HISTORY}),!A||k?l.jsx(c("GeoTab.react"),{"data-testid":void 0,label:h._("Channel settings"),value:c("OCDevManageApplicationReleaseChannelViewSection").SETTINGS}):null,(p==null?void 0:p.is_phased_release_enabled)===!0||((D=B==null?void 0:B.count)!=null?D:0)>0?l.jsx(c("GeoTab.react"),{badge:["IN_PROGRESS","PAUSED"].includes(g)&&l.jsx(c("GeoTabStatusIndicator.react"),{}),"data-testid":void 0,label:h._("Phased releases"),value:c("OCDevManageApplicationReleaseChannelViewSection").PHASED_RELEASES}):null]}),F()]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationReleaseChannelUsersTableToolbar.react",["fbt","GeoDropdownMenu.react","GeoToolbar.react","OCDevUIDebouncedTextInput.react","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.children,d=a.onSearchTermChange,e=a.searchInputPlaceholder,f=a.searchTerm;a=a.selectedRows;a=a.size;return j.jsxs(c("GeoToolbar.react"),{children:[j.jsx(c("OCDevUIDebouncedTextInput.react"),{autoComplete:"off",isLabelHidden:!0,label:h._("__JHASH__NDaoIS8uX15__JHASH__"),placeholder:(e=e)!=null?e:h._("__JHASH__ex6IEalHobP__JHASH__"),value:f,onChange:d}),j.jsx(c("GeoDropdownMenu.react"),babelHelpers["extends"]({},c("getDisabledProps")(a===0?h._("__JHASH__SrK5Un6z_WI__JHASH__"):null),{label:a===0?h._("__JHASH__1Aw3yFflWfw__JHASH__"):h._("__JHASH__Qyev6Cktuo6__JHASH__",[h._param("num_rows_selected",a)]),children:b}))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationSubmissionSubmitAdsAttestationSelector.react",["fbt","GeoSelector.react","GeoSelectorItem.react","OCDevManageApplicationSubmissionSubmitAdsAttestationSelector_appBinary.graphql","OCDevUIFormInputValidator.react","OCDevUILink.react","OCDevUIValidatorCommonErrors","RelayHooks","URI","XOCOCAppAdsAttestation.oculus","XOCReviewStatus.oculus","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react");function a(a){var e=a.appBinary,f=a.onChange,g=a.submissionStatus,k=a.value,m=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationSubmissionSubmitAdsAttestationSelector_appBinary.graphql"),e);e=(a=m)!=null?a:{};var n=e.app_mode;function o(a){switch(a){case"NO_ADS":return h._("Does not contain ads");case"HAS_ADS":return h._("Contains ads");default:return""}}function p(){if([c("XOCReviewStatus.oculus").APPROVED,c("XOCReviewStatus.oculus").SUBMITTED,c("XOCReviewStatus.oculus").UNDER_REVIEW].includes(g))return h._("You cannot change ads field after submitting for review.");if(m==null)return h._("You need to select a build before you can select an ads status.");if(n==="IMMERSIVE")return h._("This build cannot contain ads because it is a 3D app.")}return l.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return n!=="IMMERSIVE"&&k==null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:l.jsx(c("GeoSelector.react"),babelHelpers["extends"]({"data-testid":void 0},c("getDisabledProps")(p()),{description:h._("Your app must follow the {=m2} if it contains ads.",[h._implicitParam("=m2",l.jsx(c("OCDevUILink.react"),{href:new(j||(j=c("URI")))("/policy/app-policies/#advertising").setSubdomain("developer"),children:h._("App Advertising Policy")}))]),label:h._("Contains ads"),value:k,onChange:f,children:Array.from((a=c("XOCOCAppAdsAttestation.oculus").members())!=null?a:[]).map(function(a){return l.jsx(c("GeoSelectorItem.react"),{label:o(a),value:a},a)})}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationRevertPDPMetadataModal.react",["fbt","GeoMediaItem.react","GeoSelector.react","GeoSelectorItem.react","GeoText.react","OCDevManageApplicationPDPMetadataStatusIcon.react","OCDevManageApplicationRevertPDPMetadataModalMutation.graphql","OCDevManageApplicationRevertPDPMetadataModal_application.graphql","OCDevManageApplicationSubmissionScheduleReleaseDateField.react","OCDevManageApplicationSubmissionsRoute","OCDevUIFormInputValidator.react","OCDevUIFormModalCard.react","OCDevUISpacedLayout.react","OCDevUIValidatorCommonErrors","OCNavigatorHooks","RelayHooks","XOCReleaseStatus.oculus","XOCReviewStatus.oculus","asyncToGeneratorRuntime","getDisabledProps","react","useOCDevUICommitMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useState,n=Date.now()/1e3;function a(a){var e;a=a.application;var f=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationRevertPDPMetadataModal_application.graphql"),a);a=(a=(a=f.revisions)==null?void 0:(a=a.nodes)==null?void 0:(a=a[0])==null?void 0:a.release_date)!=null?a:0;var g=m(a>=n),k=g[0];g=g[1];var o=m(),p=o[0];o=o[1];var q=m(),r=q[0];q=q[1];var s=c("useOCDevUICommitMutation")(j!==void 0?j:j=b("OCDevManageApplicationRevertPDPMetadataModalMutation.graphql")),t=d("OCNavigatorHooks").useNavigate();function u(){return v.apply(this,arguments)}function v(){v=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;a=(yield s({input:{application_pdp_metadata_id:(a=r)!=null?a:"",release_date:p}},{refetchOnSuccess:!0}));if(a!=null){t(c("OCDevManageApplicationSubmissionsRoute").getURI({applicationID:(a=f.id)!=null?a:""}))}});return v.apply(this,arguments)}e=(e=(e=f.pdp_metadatas)==null?void 0:(e=e.nodes)==null?void 0:e.filter(function(a){a=a.status;return a===c("XOCReviewStatus.oculus").APPROVED}))!=null?e:[];function w(a){var b=a.id;a=a.release_status;if(b===((b=f.latest_released_pdp_metadata)==null?void 0:b.id))return h._("This metadata is already live.");if(a!==c("XOCReleaseStatus.oculus").RELEASED)return h._("This metadata has not released yet.")}return l.jsx(c("OCDevUIFormModalCard.react"),{heading:h._("Revert Metadata"),onSubmit:u,children:l.jsxs(c("OCDevUISpacedLayout.react"),{children:[l.jsx(c("GeoText.react"),{children:h._("This tool allows you to revert back to an older, approved metadata version. Clicking submit will create a copy your old metadata and attach it to a new submission, which you can either release now or at a future date.")}),l.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return r==null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:l.jsx(c("GeoSelector.react"),{label:h._("App Metadata"),value:r,onChange:q,children:e.map(function(a){var b;return l.createElement(c("GeoSelectorItem.react"),babelHelpers["extends"]({},c("getDisabledProps")(w(a)),{key:a.id,label:"v"+((b=a.version)!=null?b:""),media:l.jsx(c("GeoMediaItem.react"),{fit:"cover",media:l.jsx(c("OCDevManageApplicationPDPMetadataStatusIcon.react"),{pdpMetadata:a}),ratio:"circle",size:16}),value:a.id}))})})}),l.jsx(c("OCDevManageApplicationSubmissionScheduleReleaseDateField.react"),{description:h._("Choose a date and time to publish your metadata revert"),isInitialReleaseAfterPreorder:!1,isScheduled:k,nextSubmissionReleaseDate:null,previousSubmissionReleaseDate:a,releaseDate:p,onIsScheduledChange:g,onReleaseDateChange:o})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationSubmissionScheduleReleaseDateField.react",["fbt","GeoDateTimeInput.react","GeoFlexbox.react","GeoSwitch.react","LocalDate","LocalDateTime","OCDevUIDateTimeInputValidator.react","OCDevUIValidatorCommonErrors","Timezone","TimezoneNamesData","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");d("Timezone").registerNamesModule(c("TimezoneNamesData"));var k=Date.now()/1e3;function a(a){var b=a.description,e=a.isInitialReleaseAfterPreorder,f=a.isScheduled,g=a.nextSubmissionReleaseDate,i=a.onIsScheduledChange,l=a.onReleaseDateChange,m=a.previousSubmissionReleaseDate,n=a.releaseDate;a=a.usePST;a=a===void 0?!1:a;var o=a?d("Timezone").PST8PDT:d("Timezone").getEnvironmentTimezoneID();function p(){var a;if(n==null)return d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE;if(n((a=g)!=null?a:Infinity)){return h._("Please choose a date before your next submission release date ({date}).",[h._param("date",c("LocalDateTime").fromInstant((a=g)!=null?a:Infinity,o).format("M d, Y g:ia"))])}}return j.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:12,children:[j.jsx(c("GeoSwitch.react"),babelHelpers["extends"]({},c("getDisabledProps")(((a=m)!=null?a:0)>=k?h._("This submission must be scheduled because a previous submission has not released yet."):null),{description:b,label:h._("{=m0}",[h._implicitParam("=m0",j.jsx("b",{children:h._("Schedule release")}))]),labelPosition:"prefix",value:f,onChange:i})),f&&j.jsx(c("OCDevUIDateTimeInputValidator.react"),{validateDateField:p,children:j.jsx(c("GeoDateTimeInput.react"),{dateRestraint:function(a){return a.isAfterOrEqual(c("LocalDate").fromInstant(Date.now()/1e3,o))&&a.isBeforeOrEqual(c("LocalDate").today(o).addYears(5))&&(n!=null&&e?a.isAfterOrEqual(c("LocalDate").today(o).addWeeks(2)):!0)},isPagerLimitRestrained:!1,label:h._("Release date"),timezoneLabel:d("Timezone").getName(o),value:n!=null?c("LocalDateTime").fromInstant(n,o):null,onChange:function(a){return l(a==null?void 0:a.toInstant(o))}})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationRevertPDPMetadataModal.react",["fbt","GeoMediaItem.react","GeoSelector.react","GeoSelectorItem.react","GeoText.react","OCDevManageApplicationPDPMetadataStatusIcon.react","OCDevManageApplicationRevertPDPMetadataModalMutation.graphql","OCDevManageApplicationRevertPDPMetadataModal_application.graphql","OCDevManageApplicationSubmissionScheduleReleaseDateField.react","OCDevManageApplicationSubmissionsRoute","OCDevUIFormInputValidator.react","OCDevUIFormModalCard.react","OCDevUISpacedLayout.react","OCDevUIValidatorCommonErrors","OCNavigatorHooks","RelayHooks","XOCReleaseStatus.oculus","XOCReviewStatus.oculus","asyncToGeneratorRuntime","getDisabledProps","react","useOCDevUICommitMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useState,n=Date.now()/1e3;function a(a){var e;a=a.application;var f=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationRevertPDPMetadataModal_application.graphql"),a);a=(a=(a=f.revisions)==null?void 0:(a=a.nodes)==null?void 0:(a=a[0])==null?void 0:a.release_date)!=null?a:0;var g=m(a>=n),k=g[0];g=g[1];var o=m(),p=o[0];o=o[1];var q=m(),r=q[0];q=q[1];var s=c("useOCDevUICommitMutation")(j!==void 0?j:j=b("OCDevManageApplicationRevertPDPMetadataModalMutation.graphql")),t=d("OCNavigatorHooks").useNavigate();function u(){return v.apply(this,arguments)}function v(){v=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;a=(yield s({input:{application_pdp_metadata_id:(a=r)!=null?a:"",release_date:p}},{refetchOnSuccess:!0}));if(a!=null){t(c("OCDevManageApplicationSubmissionsRoute").getURI({applicationID:(a=f.id)!=null?a:""}))}});return v.apply(this,arguments)}e=(e=(e=f.pdp_metadatas)==null?void 0:(e=e.nodes)==null?void 0:e.filter(function(a){a=a.status;return a===c("XOCReviewStatus.oculus").APPROVED}))!=null?e:[];function w(a){var b=a.id;a=a.release_status;if(b===((b=f.latest_released_pdp_metadata)==null?void 0:b.id))return h._("This metadata is already live.");if(a!==c("XOCReleaseStatus.oculus").RELEASED)return h._("This metadata has not released yet.")}return l.jsx(c("OCDevUIFormModalCard.react"),{heading:h._("Revert Metadata"),onSubmit:u,children:l.jsxs(c("OCDevUISpacedLayout.react"),{children:[l.jsx(c("GeoText.react"),{children:h._("This tool allows you to revert back to an older, approved metadata version. Clicking submit will create a copy your old metadata and attach it to a new submission, which you can either release now or at a future date.")}),l.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return r==null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:l.jsx(c("GeoSelector.react"),{label:h._("App Metadata"),value:r,onChange:q,children:e.map(function(a){var b;return l.createElement(c("GeoSelectorItem.react"),babelHelpers["extends"]({},c("getDisabledProps")(w(a)),{key:a.id,label:"v"+((b=a.version)!=null?b:""),media:l.jsx(c("GeoMediaItem.react"),{fit:"cover",media:l.jsx(c("OCDevManageApplicationPDPMetadataStatusIcon.react"),{pdpMetadata:a}),ratio:"circle",size:16}),value:a.id}))})})}),l.jsx(c("OCDevManageApplicationSubmissionScheduleReleaseDateField.react"),{description:h._("Choose a date and time to publish your metadata revert"),isInitialReleaseAfterPreorder:!1,isScheduled:k,nextSubmissionReleaseDate:null,previousSubmissionReleaseDate:a,releaseDate:p,onIsScheduledChange:g,onReleaseDateChange:o})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationSubmissionScheduleReleaseDateField.react",["fbt","GeoDateTimeInput.react","GeoFlexbox.react","GeoSwitch.react","LocalDate","LocalDateTime","OCDevUIDateTimeInputValidator.react","OCDevUIValidatorCommonErrors","Timezone","TimezoneNamesData","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");d("Timezone").registerNamesModule(c("TimezoneNamesData"));var k=Date.now()/1e3;function a(a){var b=a.description,e=a.isInitialReleaseAfterPreorder,f=a.isScheduled,g=a.nextSubmissionReleaseDate,i=a.onIsScheduledChange,l=a.onReleaseDateChange,m=a.previousSubmissionReleaseDate,n=a.releaseDate;a=a.usePST;a=a===void 0?!1:a;var o=a?d("Timezone").PST8PDT:d("Timezone").getEnvironmentTimezoneID();function p(){var a;if(n==null)return d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE;if(n((a=g)!=null?a:Infinity)){return h._("Please choose a date before your next submission release date ({date}).",[h._param("date",c("LocalDateTime").fromInstant((a=g)!=null?a:Infinity,o).format("M d, Y g:ia"))])}}return j.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:12,children:[j.jsx(c("GeoSwitch.react"),babelHelpers["extends"]({},c("getDisabledProps")(((a=m)!=null?a:0)>=k?h._("This submission must be scheduled because a previous submission has not released yet."):null),{description:b,label:h._("{=m0}",[h._implicitParam("=m0",j.jsx("b",{children:h._("Schedule release")}))]),labelPosition:"prefix",value:f,onChange:i})),f&&j.jsx(c("OCDevUIDateTimeInputValidator.react"),{validateDateField:p,children:j.jsx(c("GeoDateTimeInput.react"),{dateRestraint:function(a){return a.isAfterOrEqual(c("LocalDate").fromInstant(Date.now()/1e3,o))&&a.isBeforeOrEqual(c("LocalDate").today(o).addYears(5))&&(n!=null&&e?a.isAfterOrEqual(c("LocalDate").today(o).addWeeks(2)):!0)},isPagerLimitRestrained:!1,label:h._("Release date"),timezoneLabel:d("Timezone").getName(o),value:n!=null?c("LocalDateTime").fromInstant(n,o):null,onChange:function(a){return l(a==null?void 0:a.toInstant(o))}})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevUserSuspensionOnboardingView.react",["fbt","ix","GeoButton.react","GeoFlexbox.react","GeoHeading.react","GeoText.react","Image.react","OCDevManagePlatformServicesAbuseReportingCustomizeRoute","OCDevUserSuspensionOnboardingView_application.graphql","OCDevWebClientEventsBaseLogger.log","OCDevWebClientEventsLogger","OCNavigatorHooks","RelayHooks","geoMargin","getDisabledProps","react","useOCDevManagePermissionDisabledMessage"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m=h._("u4f60u6ca1u6709u66f4u65b0u7684u6743u9650");function a(a){a=a.application;a=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevUserSuspensionOnboardingView_application.graphql"),a);var e=d("OCNavigatorHooks").useNavigate(),f=c("useOCDevManagePermissionDisabledMessage")(a==null?void 0:a.organization,["PLATFORM_SERVICES","MANAGE_APPLICATION"])===null;if((a==null?void 0:a.id)==null)return null;var g=a.id;c("OCDevWebClientEventsBaseLogger.log")({action:d("OCDevWebClientEventsLogger").OCDevWebActionEnum.PLATFORM_SERVICES_USER_SUSPENSION_ONBOARDING_VIEW_SEEN,target_id:g});return l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"column",xstyle:n.emptyState,children:[l.jsx(c("Image.react"),{className:"xdj266r x11i5rnm x13ihpsm x1mh8g0r x1lq5wgf xgqcy7u x5pf9jr xo71vjh",src:i("339173"),width:"100%"}),l.jsx(c("GeoHeading.react"),{level:1,children:h._("u7ba1u7406u7528u6237")}),l.jsx(c("GeoText.react"),{children:h._("u5ba1u6838u7528u6237u63d0u4ea4u7684u4e3eu62a5u5e76u9650u5236u8fddu89c4u7528u6237u3002")}),l.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(f?null:m),{label:h._("u5f00u59cb"),variant:"primary",xstyle:[c("geoMargin").top24,c("geoMargin").end8],onClick:function(){e(c("OCDevManagePlatformServicesAbuseReportingCustomizeRoute").getURI({applicationID:g}),{state:{shouldIgnoreNavigationBlock:!0}})}}))]})}a.displayName=a.name+" [from "+f.id+"]";var n={emptyState:{height:"x1gnyf4w",$$css:!0}};g["default"]=a}),226);
-----
OCDevManagePlatformServicesAddOnView.react",["fbt","GeoButton.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoPageCard.react","GeoPageGroup.react","GeoPageHeader.react","GeoPageItem.react","GeoPageSection.react","GeoText.react","GeoToolbar.react","OCDevManageAddOnMetadataCopyModal.react","OCDevManageAddOnPendingUpdatesBanner.react","OCDevManageAddOnSection","OCDevManageApplicationDataUseCheckupRoute","OCDevManagePage.react","OCDevManagePlatformServices","OCDevManagePlatformServicesAddOnAdvancedMetadataSection.react","OCDevManagePlatformServicesAddOnDetailsSection.react","OCDevManagePlatformServicesAddOnPricingSection.react","OCDevManagePlatformServicesAddOnSimpleMetadataSection.react","OCDevManagePlatformServicesAddOnView_addOn.graphql","OCDevManagePlatformServicesAddOnsRoute","OCDevUIBreadcrumb.react","OCDevUIBreadcrumbs.react","OCDevUILink.react","RelayHooks","XOCReleaseStatus.oculus","XOCReviewStatus.oculus","getDisabledProps","gkx","react","useOCDevManageRouteParams","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var e;a=a.addOn;var f=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManagePlatformServicesAddOnView_addOn.graphql"),a);a=c("useOCDevUIModal")();var g=a.openModal;a=c("useOCDevManageRouteParams")();var j=a.addOnSection;a=a.applicationID;var l=c("OCDevManageAddOnSection").cast((j=j)!=null?j:"");j=(j=f.latest_revision)==null?void 0:j.pdp_metadata_with_fallback;var m=j==null?void 0:j.id;function n(){if(l==null)return k.jsx(c("OCDevManagePlatformServicesAddOnDetailsSection.react"),{addOn:f});var a=f.latest_revision;switch(l){case c("OCDevManageAddOnSection").METADATA:return(a==null?void 0:a.show_in_store)===!0||(a==null?void 0:(a=a.pdp_metadata_with_fallback)==null?void 0:a.advanced_mode_is_enabled)===!0?k.jsx(c("OCDevManagePlatformServicesAddOnAdvancedMetadataSection.react"),{addOn:f}):k.jsx(c("OCDevManagePlatformServicesAddOnSimpleMetadataSection.react"),{addOn:f});case c("OCDevManageAddOnSection").PRICING:return k.jsx(c("OCDevManagePlatformServicesAddOnPricingSection.react"),{addOn:f})}}return k.jsxs(c("OCDevManagePage.react"),{columns:12,grow:"fill",header:k.jsx(c("GeoPageHeader.react"),{heading:k.jsxs(c("OCDevUIBreadcrumbs.react"),{children:[k.jsx(c("OCDevUIBreadcrumb.react"),{label:d("OCDevManagePlatformServices").getPlatformServiceConfiguration(d("OCDevManagePlatformServices").OCDevManagePlatformServices.AddOns).displayName,to:c("OCDevManagePlatformServicesAddOnsRoute").getURI({applicationID:(e=a)!=null?e:""}).getPath()}),k.jsx(c("OCDevUIBreadcrumb.react"),{label:((e=f.display_name)!=null?e:"")+" v"+((e=(e=f.latest_revision)==null?void 0:e.version)!=null?e:"")})]}),toolbar:(c("gkx")("25684")||c("gkx")("4481"))&&m!=null&&(f==null?void 0:f.is_test)===!0?k.jsx(c("GeoToolbar.react"),{children:k.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")((j==null?void 0:j.status)!==c("XOCReviewStatus.oculus").DRAFT?h._("Metadata must be in draft state to copy test metadata."):(f==null?void 0:(e=f.latest_revision)==null?void 0:e.show_in_store)!==!0?h._("Only show in store add-on can copy test metadata."):null),{label:"[INTERNAL] Copy Test Metadata",onClick:function(){return g(k.jsx(c("OCDevManageAddOnMetadataCopyModal.react"),{destMetadataID:m}))}}))}):null}),children:[k.jsx(c("GeoPageSection.react"),{children:k.jsxs(c("GeoPageGroup.react"),{columns:12,children:[c("gkx")("3420")&&((j=f.pending_revisions)==null?void 0:(e=j.nodes)==null?void 0:e.some(function(a){a=a.release_status;return a===c("XOCReleaseStatus.oculus").PENDING}))?k.jsx(c("OCDevManageAddOnPendingUpdatesBanner.react"),{addOn:f,columns:12}):null,((j=f.app_grouping)==null?void 0:(e=j.full_applications)==null?void 0:(j=e.nodes)==null?void 0:j.some(function(a){return((a=a.can_access_feature_keys)!=null?a:[]).includes("IAP")}))?null:k.jsx(c("GeoPageCard.react"),{columns:12,children:k.jsx(c("GeoGuidanceCard.react"),{header:k.jsx(c("GeoGuidanceCardHeader.react"),{heading:h._("Data Use Checkup Notice")}),status:"warning",children:k.jsx(c("GeoGuidanceCardContent.react"),{children:k.jsx(c("GeoText.react"),{children:h._("In order to access user data via our Platform Features, your application must certify through the Data Use Checkup program. {link}",[h._param("link",k.jsx(c("OCDevUILink.react"),{display:"block",href:c("OCDevManageApplicationDataUseCheckupRoute").getURI({applicationID:a}),target:"_blank",children:"Certify for access here"}))])})})})})]})}),k.jsx(c("GeoPageSection.react"),{grow:"fill",children:k.jsx(c("GeoPageGroup.react"),{columns:12,children:k.jsx(c("GeoPageItem.react"),{columns:12,children:n()})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManagePlatformServicesCustomItemsTable.react",["fbt","GeoDropdownMenu.react","GeoMenuItem.react","GeoTable.react","GeoTableWidth","OCDevManageEmptyState.react","OCDevManagePlatformServices","OCDevManagePlatformServicesCustomItemAssignments.react","OCDevManagePlatformServicesCustomItemDeleteModal.react","OCDevManagePlatformServicesCustomItemModal.react","OCDevManagePlatformServicesCustomItemReviewStatus.react","OCDevManagePlatformServicesCustomItemSubmitForReviewModal.react","OCDevManagePlatformServicesCustomItemsTable_grouping.graphql","OCDevUILink.react","OCWorldsDeveloperItemDefinitionReviewStatus","RelayHooks","createGeoTableDataSource","emptyFunction","formatDate","getDisabledProps","react","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useMemo;function a(a){var e;a=a.grouping;a=d("RelayHooks").usePaginationFragment(i!==void 0?i:i=b("OCDevManagePlatformServicesCustomItemsTable_grouping.graphql"),a);var f=a.data,g=a.hasNext,j=a.isLoadingNext;a=a.loadNext;var m=c("useOCDevUIModal")(),n=m.openModal;function o(a){var b=a.achievements;a=a.purchasable_items;return[].concat((b=b==null?void 0:(b=b.nodes)==null?void 0:(b=b.map(function(a){a=a.id;return a}))==null?void 0:b.filter(Boolean))!=null?b:[],(b=a==null?void 0:(b=a.nodes)==null?void 0:(a=b.map(function(a){a=a.id;return a}))==null?void 0:a.filter(Boolean))!=null?b:[]).length}m=l(function(){var a;return[{cell:function(a){a=a.item;var b=a.name;a=a.submissions;return(a=(a=a==null?void 0:(a=a.nodes)==null?void 0:(a=a[0])==null?void 0:a.name)!=null?a:b)!=null?a:"--"},header:h._("u540du5b57/u540du79f0"),key:"Name",width:(a=d("GeoTableWidth")).proportional(1)},{cell:function(){return h._("Oculus Home 3D Object")},header:h._("Type"),key:"Type",width:a.proportional(1)},{cell:function(a){a=a.item;var b=a.last_updated;a=a.submissions;return c("formatDate")((a=a==null?void 0:(a=a.nodes)==null?void 0:(a=a[0])==null?void 0:a.last_updated)!=null?a:b,"m/d/Y g:ia")},header:h._("Last Updated"),key:"Last Updated",width:a.proportional(1)},{cell:function(a){a=a.item;return k.jsx(c("OCDevManagePlatformServicesCustomItemReviewStatus.react"),{customItem:a})},header:h._("Status"),key:"Status",width:a.proportional(1)},{cell:function(a){var b=a.item;return o(b)>0&&b.review_status===c("OCWorldsDeveloperItemDefinitionReviewStatus").AVAILABLE?k.jsx(c("OCDevUILink.react"),{onClick:function(){return n(k.jsx(c("OCDevManagePlatformServicesCustomItemAssignments.react"),{customItem:b,grouping:f}))},children:o(b)}):h._("None")},header:h._("Assignment"),key:"Assignment",width:a.proportional(1)},{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/Edit Details"),onClick:function(){return n(k.jsx(c("OCDevManagePlatformServicesCustomItemModal.react"),{application:null,customItem:b}))}}),k.jsx(c("GeoMenuItem.react"),babelHelpers["extends"]({},c("getDisabledProps")(b.review_status!==c("OCWorldsDeveloperItemDefinitionReviewStatus").DRAFT?h._("Only drafts can be submitted for review."):null),{label:h._("Submit for Review"),onClick:function(){var a;return n(k.jsx(c("OCDevManagePlatformServicesCustomItemSubmitForReviewModal.react"),{customItemID:(a=b.id)!=null?a:"",groupingID:(a=f.id)!=null?a:""}))}})),k.jsx(c("GeoMenuItem.react"),babelHelpers["extends"]({},c("getDisabledProps")(b.review_status!==c("OCWorldsDeveloperItemDefinitionReviewStatus").AVAILABLE?h._("Only approved items can be edited."):null),{label:h._("View/Edit Assignments"),onClick:function(){return n(k.jsx(c("OCDevManagePlatformServicesCustomItemAssignments.react"),{customItem:b,grouping:f}))}})),k.jsx(c("GeoMenuItem.react"),{isDisabled:o(b)!==0||b.review_status===c("OCWorldsDeveloperItemDefinitionReviewStatus").IN_REVIEW,label:h._("Delete"),onClick:function(){var a;return n(k.jsx(c("OCDevManagePlatformServicesCustomItemDeleteModal.react"),{customItemID:(a=b.id)!=null?a:""}))}})]})},header:null,key:"menu",width:a.pixel(80)}]},[f,n]);e=(e=f==null?void 0:(e=f.worlds_custom_developer_item_definitions)==null?void 0:(e=e.edges)==null?void 0:(e=e.map(function(a){a=a.node;return a}))==null?void 0:e.filter(Boolean))!=null?e:[];return k.jsx("div",{children:e.length>0?k.jsx(c("GeoTable.react"),{columns:m,dataSource:c("createGeoTableDataSource")(e,{getStableUniqueID:c("emptyFunction")}),label:h._("Items"),pagination:{loadNext:a,isLoadingNext:j,hasNext:g,pageSize:100}}):k.jsx(c("OCDevManageEmptyState.react"),{heading:h._("No Custom Items found"),icon:d("OCDevManagePlatformServices").getPlatformServiceConfiguration(d("OCDevManagePlatformServices").OCDevManagePlatformServices.CustomItems).icon})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationReleaseChannelView.react",["fbt","ix","GeoButton.react","GeoButtonGroup.react","GeoCard.react","GeoFlexbox.react","GeoPageCard.react","GeoPageHeader.react","GeoPageSection.react","GeoSection.react","GeoTab.react","GeoTabGroup.react","OCApplicationPlatform","OCDevManageApplicationCreateScheduledBuildReleaseModal.react","OCDevManageApplicationReleaseChannelBinaryHistoryQueryRenderer.react","OCDevManageApplicationReleaseChannelChangeCurrentBinaryModal.react","OCDevManageApplicationReleaseChannelCopyTestBinaryModal.react","OCDevManageApplicationReleaseChannelCurrentBinary.react","OCDevManageApplicationReleaseChannelEnterpriseCustomers.react","OCDevManageApplicationReleaseChannelEnterpriseCustomersInviteModal.react","OCDevManageApplicationReleaseChannelInviteOrganizationModal.react","OCDevManageApplicationReleaseChannelInviteUserModal.react","OCDevManageApplicationReleaseChannelOrganizations.react","OCDevManageApplicationReleaseChannelRoute","OCDevManageApplicationReleaseChannelSettings.react","OCDevManageApplicationReleaseChannelUsers.react","OCDevManageApplicationReleaseChannelViewSection","OCDevManageApplicationReleaseChannelView_releaseChannel.graphql","OCDevManageApplicationReleaseChannelsRoute","OCDevManageAudienceAttestationNotice.react","OCDevManageBinaryUploadBuildUseCLI.react","OCDevManageDDANotice.react","OCDevManagePage.react","OCDevManagePermissionButton.react","OCDevManageReleaseChannelLabel","OCDevManageReleaseChannelShareButton.react","OCDevUIBreadcrumb.react","OCDevUIBreadcrumbs.react","OCNavigatorHooks","RelayHooks","fbicon","geoMargin","getDisabledProps","gkx","react","useOCDevManageScheduledReleaseDisabledMessage","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react")),m=k.useMemo;function a(a){var e=a.releaseChannel,f=a.section,g=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageApplicationReleaseChannelView_releaseChannel.graphql"),e),k=g.group==="ENTERPRISE";a=g.group==="Q4B";var n=(e=g.id)!=null?e:"",o=g.application,p=(e=o==null?void 0:o.platform)!=null?e:"",q=o==null?void 0:o.organization,r=(q==null?void 0:q.has_signed_dda)===!0;e=(e=o.is_device_targeting_enabled)!=null?e:!1;var s=m(function(){var a;return p===c("OCApplicationPlatform").values.ANDROID_XROS&&g.latest_supported_binary!=null&&(o==null?void 0:(a=o.linked_ar_experience)==null?void 0:a.id)!=null},[o,p,g.latest_supported_binary]);function t(){switch(f){case c("OCDevManageApplicationReleaseChannelViewSection").BINARY_HISTORY:return l.jsx(c("OCDevManageApplicationReleaseChannelBinaryHistoryQueryRenderer.react"),{releaseChannelID:n});case c("OCDevManageApplicationReleaseChannelViewSection").CURRENT_BINARY:return l.jsx(c("OCDevManageApplicationReleaseChannelCurrentBinary.react"),{releaseChannel:g});case c("OCDevManageApplicationReleaseChannelViewSection").SETTINGS:return l.jsx(c("OCDevManageApplicationReleaseChannelSettings.react"),{releaseChannel:g});case c("OCDevManageApplicationReleaseChannelViewSection").USERS:return k?l.jsx(c("OCDevManageApplicationReleaseChannelEnterpriseCustomers.react"),{releaseChannel:g}):l.jsx(c("OCDevManageApplicationReleaseChannelUsers.react"),{releaseChannel:g});case c("OCDevManageApplicationReleaseChannelViewSection").ORGANIZATIONS:return l.jsx(c("OCDevManageApplicationReleaseChannelOrganizations.react"),{releaseChannel:g})}}var u=c("useOCDevUIModal")(),v=u.openModal;function w(){var a;if((g==null?void 0:(a=g.latest_supported_binary)==null?void 0:a.id)==null)return h._("Upload a build to get started");return!k&&!r?h._("You must first sign the {=m1} (DDA) in order to make changes to the release channel.",[h._implicitParam("=m1",l.jsx("b",{children:h._("Developer Distribution Agreement")}))]):null}function x(){if(g.is_locked===!0)return h._("This channel is locked. Updating the channel binary is not allowed at this time.");if(g.is_binary_upload_allowed===!1)return h._("You cannot update your production channel binary while your app is under review.")}var y=x(),z=w(),A=c("useOCDevManageScheduledReleaseDisabledMessage")(o);function B(){switch(f){case c("OCDevManageApplicationReleaseChannelViewSection").CURRENT_BINARY:return l.jsxs(c("GeoButtonGroup.react"),{children:[c("gkx")("25684")||c("gkx")("4481")?l.jsx(c("GeoButton.react"),{disabledMessage:"This feature is only available to Quest applications",isDisabled:n===""||p!=="ANDROID_6DOF",label:"[INTERNAL] Attach Test Binary",tooltip:"Attach a test binary to this release channel",onClick:function(){return v(l.jsx(c("OCDevManageApplicationReleaseChannelCopyTestBinaryModal.react"),{releaseChannelID:n}))}}):null,s&&o!=null&&g.channel_name!=null?l.jsx(c("OCDevManageReleaseChannelShareButton.react"),{applicationKey:o,channelName:g.channel_name}):null,c("gkx")("25741")&&F?l.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(A),{label:h._("Schedule Build Release"),onClick:function(){return v(l.jsx(c("OCDevManageApplicationCreateScheduledBuildReleaseModal.react"),{application:o,surfaceName:"release_channel_view"}))}})):null,l.jsx(c("GeoButton.react"),{disabledMessage:y,icon:d("fbicon")._(i("568448"),16),isDisabled:y!=null,label:h._("Upload New Build"),onClick:function(){return v(l.jsx(c("OCDevManageBinaryUploadBuildUseCLI.react"),{releaseChannel:g}))}}),l.jsx(c("OCDevManagePermissionButton.react"),{"data-testid":void 0,disabledMessage:y,isDisabled:y!=null,label:h._("Change Current Build"),organization:q,permissions:["MANAGE_BINARIES","MANAGE_RELEASE_CHANNELS","VIEW_APPLICATION"],onClick:function(){return v(l.jsx(c("OCDevManageApplicationReleaseChannelChangeCurrentBinaryModal.react"),{releaseChannel:g}))}})]});case c("OCDevManageApplicationReleaseChannelViewSection").USERS:return l.jsxs(c("GeoButtonGroup.react"),{children:[s&&o!=null&&g.channel_name!=null?l.jsx(c("OCDevManageReleaseChannelShareButton.react"),{applicationKey:o,channelName:g.channel_name}):null,l.jsx(c("OCDevManagePermissionButton.react"),{"data-testid":void 0,disabledMessage:z,icon:d("fbicon")._(i("497889"),16),isDisabled:z!=null,label:k?h._("Invite Customers"):h._("Email Invite Users"),organization:q,permissions:["MANAGE_RELEASE_CHANNELS"],onClick:function(){return v(k?l.jsx(c("OCDevManageApplicationReleaseChannelEnterpriseCustomersInviteModal.react"),{releaseChannel:g}):l.jsx(c("OCDevManageApplicationReleaseChannelInviteUserModal.react"),{releaseChannel:g}))}})]});case c("OCDevManageApplicationReleaseChannelViewSection").ORGANIZATIONS:return l.jsxs(c("GeoButtonGroup.react"),{children:[s&&o!=null&&g.channel_name!=null?l.jsx(c("OCDevManageReleaseChannelShareButton.react"),{applicationKey:o,channelName:g.channel_name}):null,l.jsx(c("OCDevManagePermissionButton.react"),{"data-testid":void 0,disabledMessage:z,icon:d("fbicon")._(i("497889"),16),isDisabled:z!=null,label:h._("Add Organizations"),organization:q,permissions:["MANAGE_RELEASE_CHANNELS"],onClick:function(){return v(l.jsx(c("OCDevManageApplicationReleaseChannelInviteOrganizationModal.react"),{releaseChannel:g}))}})]});default:return null}}var C=(x=(u=g.application)==null?void 0:u.id)!=null?x:"",D=d("OCNavigatorHooks").useNavigate();function E(a){D(c("OCDevManageApplicationReleaseChannelRoute").getURI({applicationID:C,releaseChannelID:n,releaseChannelViewSection:a}),{skipBrowserHistory:!0})}var F=g.is_live===!0;return l.jsx(c("OCDevManagePage.react"),{columns:12,header:l.jsx(c("GeoPageHeader.react"),{heading:l.jsxs(c("OCDevUIBreadcrumbs.react"),{children:[l.jsx(c("OCDevUIBreadcrumb.react"),{label:h._("Release Channels"),to:c("OCDevManageApplicationReleaseChannelsRoute").getURI({applicationID:C}).getPath()}),l.jsx(c("OCDevUIBreadcrumb.react"),{"data-testid":void 0,label:c("OCDevManageReleaseChannelLabel")({channelName:g.channel_name,isConcept:(w=g.application)==null?void 0:w.is_concept})})]})}),children:l.jsxs(c("GeoPageSection.react"),{children:[F?l.jsx(c("OCDevManageAudienceAttestationNotice.react"),{application:g.application,binary:g.latest_supported_binary}):null,l.jsx(c("OCDevManageDDANotice.react"),{organization:q}),l.jsx(c("GeoPageCard.react"),{columns:12,children:l.jsx(c("GeoCard.react"),{children:l.jsxs(c("GeoSection.react"),{children:[l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",xstyle:c("geoMargin").bottom16,children:[l.jsxs(c("GeoTabGroup.react"),{value:f,onChange:E,children:[l.jsx(c("GeoTab.react"),{"data-testid":void 0,label:e?h._("Current Builds"):h._("Current Build"),value:c("OCDevManageApplicationReleaseChannelViewSection").CURRENT_BINARY}),F?null:l.jsx(c("GeoTab.react"),{"data-testid":void 0,label:k?h._("Customers"):h._("Users"),value:c("OCDevManageApplicationReleaseChannelViewSection").USERS}),a?l.jsx(c("GeoTab.react"),{"data-testid":void 0,label:h._("Organizations"),value:c("OCDevManageApplicationReleaseChannelViewSection").ORGANIZATIONS}):null,l.jsx(c("GeoTab.react"),{"data-testid":void 0,label:h._("Build History"),value:c("OCDevManageApplicationReleaseChannelViewSection").BINARY_HISTORY}),F?null:l.jsx(c("GeoTab.react"),{"data-testid":void 0,label:h._("Channel Settings"),value:c("OCDevManageApplicationReleaseChannelViewSection").SETTINGS})]}),B()]}),t()]})})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageOrganizationShortlinksCreateModal.react",["fbt","GeoCancelButton.react","GeoHStack.react","GeoModalCard.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoSelector.react","GeoSelectorItem.react","GeoTextInput.react","Image.react","OCDevManageOrganizationShortlinksCreateModalMutation.graphql","OCDevManageOrganizationShortlinksCreateModal_organization.graphql","OCDevManageOrganizationShortlinksUtils","OCDevUIForm.react","OCDevUIFormInputValidator.react","OCDevUIFormSubmitButton.react","OCDevUILink.react","OCDevUILinkButton.react","OCDevUISpacedLayout.react","OCDevUIValidateStringLength","OCDevUIValidatorCommonErrors","RelayHooks","asyncToGeneratorRuntime","getDisabledProps","gkx","react","useOCDevUICommitMutation","useOCDevUIFormState"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react"),m="https://developer.oculus.com/resources/shortlinks/#managing-short-links",n=100,o=(e={},e[86400]="DAILY",e[259200]="THREE_DAYS",e[604800]="WEEKLY",e[2592e3]="THIRTY_DAYS",e);function a(a){a=a.organization;a=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageOrganizationShortlinksCreateModal_organization.graphql"),a);var e=c("useOCDevUIFormState")({selectedApp:null,shortlinkName:"",targetType:null,targetURL:null,timeWindow:null,conversionObjective:"ENTITLEMENT_SUCCESS"}),f=e[0],g=e[1];function k(a,b){return b==="LAUNCH_APP"?d("OCDevManageOrganizationShortlinksUtils").getMetaportURL((b=a==null?void 0:(b=a.grouping)==null?void 0:b.id)!=null?b:""):(b=a==null?void 0:a.store_url_including_unpublished)!=null?b:""}var p=c("gkx")("25714");e=((a=a==null?void 0:(e=a.applications)==null?void 0:e.nodes)!=null?a:[]).slice().sort(function(a,b){a=a.display_name;b=b.display_name;return(b=a==null?void 0:a.localeCompare((a=b)!=null?a:""))!=null?b:0}).filter(function(a){return a.id!=null});var q=c("useOCDevUICommitMutation")(j!==void 0?j:j=b("OCDevManageOrganizationShortlinksCreateModalMutation.graphql"));function r(){return s.apply(this,arguments)}function s(){s=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=f.conversionObjective,b=f.selectedApp,c=f.shortlinkName,d=f.targetType,e=f.targetURL,g=f.timeWindow;yield q({input:{application:(b=b==null?void 0:b.id)!=null?b:"",name:c,partner_visibility:"THIRD_PARTY_ONLY",resolved_url:(b=e)!=null?b:"",target_type:(c=d)!=null?c:"LAUNCH_APP",time_window:(e=g)!=null?e:"THIRTY_DAYS",conversion_objective:a}},{closeModalOnSuccess:!0,refetchOnSuccess:!0,successToast:{heading:"Your short link has been created"}})});return s.apply(this,arguments)}return l.jsx(c("OCDevUIForm.react"),{onSubmit:r,children:l.jsx(c("GeoModalCard.react"),{footer:l.jsx(c("GeoModalFooter.react"),{primaryButton:l.jsx(c("OCDevUIFormSubmitButton.react"),{label:h._("Create")}),secondaryButton:l.jsx(c("GeoCancelButton.react"),{}),startContent:!p&&l.jsx(c("OCDevUILinkButton.react"),{disabledMessage:h._("Please select an app and destination"),href:(a=f.targetURL)!=null?a:"https://www.meta.com/",isDisabled:f.targetURL==null,label:h._("Preview link"),minWidth:100,target:"_blank"})}),header:l.jsx(c("GeoModalHeader.react"),{description:h._("Complete this form to create a short link to track user activity within a defined time period. {=m1}",[h._implicitParam("=m1",l.jsx(c("OCDevUILink.react"),{href:m,target:"_blank",children:h._("Learn more")}))]),heading:h._("Create short link")}),children:l.jsx(c("GeoSection.react"),{children:l.jsxs(c("OCDevUISpacedLayout.react"),{children:[l.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return d("OCDevUIValidateStringLength").validateStringLength({value:f.shortlinkName,maxLength:n})},children:l.jsx(c("GeoTextInput.react"),{label:h._("Name"),placeholder:h._("Enter unique name"),value:f.shortlinkName,onChange:function(a){return g(function(b){return babelHelpers["extends"]({},b,{shortlinkName:a})})}})}),l.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return f.selectedApp==null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:l.jsx(c("GeoSelector.react"),{label:h._("App"),placeholder:h._("Select app"),value:f.selectedApp,onChange:function(a){g(function(b){return babelHelpers["extends"]({},b,{selectedApp:a,targetURL:p?f.targetType!=null?k(a,f.targetType):null:d("OCDevManageOrganizationShortlinksUtils").getMetaportURL((b=a==null?void 0:(b=a.grouping)==null?void 0:b.id)!=null?b:"")})})},children:e.map(function(a){var b;return l.jsx(c("GeoSelectorItem.react"),{label:a.display_name==null?h._("Missing App Name"):h._("{app name}",[h._param("app name",a.display_name)]),media:l.jsx(c("Image.react"),{src:(b=a.icon_image)==null?void 0:b.uri}),value:a},a==null?void 0:a.id)})})}),p&&l.jsxs(c("GeoHStack.react"),{alignItems:"end",children:[l.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return f.targetType==null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:l.jsxs(c("GeoSelector.react"),{label:h._("Destination"),placeholder:"Select destination",value:f.targetType,onChange:function(a){return g(function(b){return babelHelpers["extends"]({},b,{targetType:a,targetURL:f.selectedApp!=null?k(f.selectedApp,a):null})})},children:[l.jsx(c("GeoSelectorItem.react"),{description:h._("Opens the Quest Store to launch the app"),label:h._("Launch page"),value:"LAUNCH_APP"}),l.jsx(c("GeoSelectorItem.react"),{description:h._("Opens the Quest Store to your app"s product page"),label:h._("Store page"),value:"OPEN_STORE_PDP"})]})}),l.jsx(c("OCDevUILinkButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(f.targetURL==null?h._("Please select an app and destination"):null),{href:(r=f.targetURL)!=null?r:"https://www.meta.com/",label:h._("Preview Link"),minWidth:115,target:"_blank"}))]}),p&&l.jsxs(c("GeoSelector.react"),{description:h._("Default conversion goal for your link. Other metrics will be tracked and shown."),label:h._("Default conversion metric"),placeholder:h._("Select a conversion metric"),value:f.conversionObjective,onChange:function(a){return g(function(b){return babelHelpers["extends"]({},b,{conversionObjective:a})})},children:[l.jsx(c("GeoSelectorItem.react"),{label:h._("App purchases"),value:"ENTITLEMENT_SUCCESS"}),l.jsx(c("GeoSelectorItem.react"),{label:h._("App subscriptions"),value:"SUBSCRIPTION"}),l.jsx(c("GeoSelectorItem.react"),{label:h._("Add-on purchases"),value:"IAP_PURCHASE"}),l.jsx(c("GeoSelectorItem.react"),{label:h._("App installs"),value:"INSTALL_APP"}),l.jsx(c("GeoSelectorItem.react"),{label:h._("App launches"),value:"LAUNCH_APP"})]}),l.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return f.timeWindow==null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:l.jsxs(c("GeoSelector.react"),{description:h._("Defined time period for tracking conversions to short links"),label:h._("Attribution setting"),placeholder:h._("Select time period"),value:f.timeWindow,onChange:function(a){return g(function(b){return babelHelpers["extends"]({},b,{timeWindow:a})})},children:[l.jsx(c("GeoSelectorItem.react"),{label:h._("1 day"),value:o[86400]}),l.jsx(c("GeoSelectorItem.react"),{label:h._("3 days"),value:o[259200]}),l.jsx(c("GeoSelectorItem.react"),{label:h._("7 days"),value:o[604800]}),l.jsx(c("GeoSelectorItem.react"),{label:h._("30 days"),value:o[2592e3]})]})})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationPricingExperimentFormFields.react",["fbt","GeoFlexbox.react","GeoHeading.react","GeoSection.react","GeoSelector.react","GeoSelectorItem.react","GeoText.react","GeoTextInput.react","GeoVStack.react","OCDevManageApplicationPricingExperimentEndDateField.react","OCDevManageApplicationPricingExperimentFormFields_application.graphql","OCDevManageApplicationPricingExperimentStartDateField.react","OCDevManagePriceObjectKeyField.react","OCDevUIFormInputValidator.react","OCDevUIValidateStringLength","RelayHooks","geoMargin","getDisabledProps","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.app,f=a.currentPriceAmount,g=a.currentPriceKey,j=a.formState,m=a.onUpdateFormState,n=j.experimentType,o=j.externalName,p=j.incrementalPriceKey,q=j.lowerBoundPriceKey;a=j.status;var r=j.upperBoundPriceKey;e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationPricingExperimentFormFields_application.graphql"),e);var s=h._("u5b9eu9a8cu8be6u60c5u4e00u65e6u53d1u5e03u5c31u65e0u6cd5u66f4u6539u3002u5982u6709u5fc5u8981uff0cu4f60u53efu80fdu53efu4ee5u5220u9664u8fd9u4e2au5b9eu9a8cuff0cu518du65b0u5efau4e00u4e2au3002");function t(a){return a==="DRAFT"||a===null?null:s}return k.jsx(c("GeoSection.react"),{children:k.jsxs(c("GeoVStack.react"),{children:[k.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return d("OCDevUIValidateStringLength").validateStringLength({value:o})},children:k.jsx(c("GeoTextInput.react"),babelHelpers["extends"]({description:h._("Give your test a unique name. This name is not visible to the public.")},c("getDisabledProps")(t(a)),{label:h._("u540du5b57/u540du79f0"),value:o,onChange:function(a){return m(function(b){return babelHelpers["extends"]({},b,{externalName:a})})}}))}),k.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return n!=null?null:h._("u5fc5u987bu9009u62e9u5b9eu9a8cu7c7bu578bu3002")},children:k.jsxs(c("GeoSelector.react"),babelHelpers["extends"]({},c("getDisabledProps")(t(a)),{label:h._("u5b9eu9a8cu7c7bu578b"),value:n,onChange:function(a){return m(function(b){return babelHelpers["extends"]({},b,{experimentType:a,incrementalPriceKey:null,upperBoundPriceKey:null,lowerBoundPriceKey:null})})},children:[k.jsx(c("GeoSelectorItem.react"),{description:h._("u5bf9u6bd4u65b0u4ef7u683cu6765u6d4bu8bd5u4f60u7684u5f53u524du4ef7u683c"),label:h._("Price Incrementality Test"),value:"PRICE_TEST"}),k.jsx(c("GeoSelectorItem.react"),{description:h._("u628au5f53u524du4ef7u683cu63d0u9ad8u6216u964du4f4eu4e00u4e2au4ef7u683cu70b9u6765u8fdbu884cu6d4bu8bd5u3002"),disabledMessage:g===""?h._("u4f60u4e0du80fdu5bf9u514du8d39u5e94u7528u7a0bu5e8fu8fdbu884cu8fb9u754cu6d4bu8bd5u3002"):null,isDisabled:g==="",label:h._("u4ef7u683cu8fb9u754cu6d4bu8bd5"),value:"PRICE_BOUNDARY_TEST"})]}))}),k.jsxs(c("GeoFlexbox.react"),{columnGap:16,direction:"row",children:[k.jsx(c("OCDevManageApplicationPricingExperimentStartDateField.react"),{app:e,disabledMessage:t(a),formState:j,onChange:function(a){return m(function(b){return babelHelpers["extends"]({},b,{experimentStartDate:a})})}}),k.jsx(c("OCDevManageApplicationPricingExperimentEndDateField.react"),{disabledMessage:t(a),formState:j,onChange:function(a){return m(function(b){return babelHelpers["extends"]({},b,{experimentEndDate:a})})}})]}),k.jsxs(c("GeoFlexbox.react"),{direction:"row",children:[n==="PRICE_BOUNDARY_TEST"?k.jsx(c("GeoFlexbox.react"),{xstyle:l.boundaryPriceSelector,children:k.jsx(c("OCDevManagePriceObjectKeyField.react"),{disabledItemMessage:s,disabledPriceObjectKey:q,excludeFreeOption:!0,isReadOnly:a!=="DRAFT",label:h._("u8f83u4f4eu4ef7u683cu70b9"),maximumPriceKey:(e=g)!=null?e:"",validateField:function(){return q==null?h._("u5fc5u987bu9009u62e9u4ef7u683c"):null},value:q,onChange:function(a){return m(function(b){return babelHelpers["extends"]({},b,{lowerBoundPriceKey:a})})}})}):null,k.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:[l.currentPrice,n==="PRICE_BOUNDARY_TEST"?l.boundaryCurrentPrice:null],children:[k.jsx(c("GeoHeading.react"),{level:4,children:"Current Price"}),k.jsx(c("GeoText.react"),{xstyle:c("geoMargin").top12,children:f})]}),n==="PRICE_TEST"?k.jsx(c("GeoFlexbox.react"),{xstyle:l.incrementalPriceSelector,children:k.jsx(c("OCDevManagePriceObjectKeyField.react"),{disabledItemMessage:s,disabledPriceObjectKey:p,excludeFreeOption:!0,isReadOnly:a!=="DRAFT",label:h._("u7528u4e8eu6d4bu8bd5u7684u65b0u4ef7u683cu70b9"),validateField:function(){return p==null?h._("u5fc5u987bu9009u62e9u4ef7u683c"):null},value:p,onChange:function(a){return m(function(b){return babelHelpers["extends"]({},b,{incrementalPriceKey:a})})}})}):null,n==="PRICE_BOUNDARY_TEST"?k.jsx(c("GeoFlexbox.react"),{xstyle:l.boundaryPriceSelector,children:k.jsx(c("OCDevManagePriceObjectKeyField.react"),{disabledItemMessage:s,disabledPriceObjectKey:r,excludeFreeOption:!0,isReadOnly:a!=="DRAFT",label:h._("u8f83u9ad8u4ef7u683cu70b9"),minimumPriceKey:(t=g)!=null?t:"",validateField:function(){return r==null?h._("u5fc5u987bu9009u62e9u4ef7u683c"):null},value:r,onChange:function(a){return m(function(b){return babelHelpers["extends"]({},b,{upperBoundPriceKey:a})})}})}):null]})]})})}a.displayName=a.name+" [from "+f.id+"]";var l={incrementalPriceSelector:{width:"xktia5q",$$css:!0},currentPrice:{width:"x8yj6t5",$$css:!0},boundaryCurrentPrice:{paddingLeft:"xnm25rq",paddingStart:null,paddingEnd:null,$$css:!0},boundaryPriceSelector:{width:"xz84dc7",$$css:!0}};g["default"]=a}),226);
-----
OCDevManageApplicationPricingExperimentEndDateField.react",["fbt","GeoDatePicker.react","OCDevUIFormInputValidator.react","OCDevUIValidatorCommonErrors","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=30,l=h._("u5b9eu9a8cu7ed3u675fu65e5u671f");function a(a){var b=a.disabledMessage,e=a.formState;a=a.onChange;var f=e.experimentEndDate,g=e.experimentStartDate;e=e.minimumExperimentLength;var h=(e=e)!=null?e:k;return j.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return f==null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:j.jsx(c("GeoDatePicker.react"),babelHelpers["extends"]({},c("getDisabledProps")(b),{focusDate:g!=null?g.addDays(h):null,label:l,restraint:function(a){return a!=null&&(g!=null?a.isAfter(g.addDays(h))&&a.isBeforeOrEqual(g.addDays(90)):!0)},value:f,onChange:a}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationPricingExperimentStartDateField.react",["fbt","GeoDatePicker.react","LocalDate","OCDevManageApplicationPricingExperimentStartDateField_application.graphql","OCDevManageApplicationPricingExperimentViewUtils","OCDevUIFormInputValidator.react","RelayHooks","Timezone","getDisabledProps","react","useOCContentInfraStoreGetPriceChangeEligibility.react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=30,m=h._("u5b9eu9a8cu5f00u59cbu65e5u671f");function n(a){var e=a.app,f=a.disabledMessage,g=a.formState;a=a.onChange;e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationPricingExperimentStartDateField_application.graphql"),e);var j=g.experimentEndDate,n=g.experimentStartDate;g=g.minimumExperimentLength;var o=(g=g)!=null?g:l;function p(a,b){return a==null||b==null?!1:a.addDays(o).isAfter(b)}var q=c("useOCContentInfraStoreGetPriceChangeEligibility.react")({appID:(g=e==null?void 0:e.id)!=null?g:"",event_start_ts:n!=null?n.toInstant(d("Timezone").PST8PDT):null,event_end_ts:j!=null?j.toInstant(d("Timezone").PST8PDT):null,changeType:"MSRP_EXPERIMENT"});e=e==null?void 0:(g=e.price_change_eligibility)==null?void 0:g.next_eligible_timestamp;g=c("LocalDate").today(d("Timezone").PST8PDT).addDays(3);var r=e!=null&&e>g.toInstant(d("Timezone").PST8PDT)?c("LocalDate").fromInstant(e,d("Timezone").PST8PDT):g;return k.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){if(n==null)return h._("u5fc5u987bu9009u62e9u5f00u59cbu65e5u671fu3002");return p(n,j)?h._("u5b9eu9a8cu5f00u59cbu65e5u671fu6bd4u7ed3u675fu65e5u671fu5fc5u987bu81f3u5c11u65e9{minimum-days}u5929u3002",[h._param("minimum-days",o)]):d("OCDevManageApplicationPricingExperimentViewUtils").getDateSelectorErrorMessage(q)},children:k.jsx(c("GeoDatePicker.react"),babelHelpers["extends"]({},c("getDisabledProps")(f),{focusDate:r,label:m,restraint:function(a){return a!=null&&a.toInstant(d("Timezone").PST8PDT)>r.toInstant(d("Timezone").PST8PDT)},value:n,onChange:a}))})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=a.app,d=a.disabledMessage,e=a.formState;a=a.onChange;return k.jsx(k.Suspense,{fallback:k.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return"Loading"},children:k.jsx(c("GeoDatePicker.react"),{isDisabled:!0,label:m,value:e.experimentStartDate,onChange:function(){}})}),children:k.jsx(n,{app:b,disabledMessage:d,formState:e,onChange:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageOrganizationCampaignsTable.react",["fbt","ix","GeoDropdownMenu.react","GeoFlexbox.react","GeoMediaItem.react","GeoSection.react","GeoTable.react","GeoTableRowAction.react","GeoTableWidth","GeoText.react","Image.react","OCDevManageEmptyState.react","OCDevManageOrganizationCampaignConversionProgressBar.react","OCDevManageOrganizationCampaignRoute","OCDevManageOrganizationCampaignSection","OCDevManageOrganizationCampaignStatus.react","OCDevManageOrganizationCampaignsTableDeleteMenuItem.react","OCDevManageOrganizationCampaignsTablePauseResumeMenuItem.react","OCDevManageOrganizationCampaignsTable_organization.graphql","OCNavigatorHooks","RelayHooks","createGeoTableDataSource","fbicon","formatDate","geoMargin","getDisabledProps","react","useGeoTableRowActivation"],(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.Suspense,n=e.useEffect,o=e.useMemo,p=50,q=120;function r(a){var e=a.organization,f=a.statusFilter;a=d("RelayHooks").usePaginationFragment(j!==void 0?j:j=b("OCDevManageOrganizationCampaignsTable_organization.graphql"),e);var g=a.data;e=a.hasNext;var k=a.isLoadingNext,m=a.loadNext,r=a.refetch;a=(a=g==null?void 0:(a=g.tableCampaigns)==null?void 0:(a=a.edges)==null?void 0:(a=a.map(function(a){a=a.node;return a}))==null?void 0:a.filter(Boolean))!=null?a:[];var t=d("OCNavigatorHooks").useNavigate();n(function(){var a=g==null?void 0:g.id;a!=null&&r({id:a,statusFilter:((a=f==null?void 0:f.length)!=null?a:0)===0?null:f})},[g,r,f]);var u=c("useGeoTableRowActivation")({activeItemIDs:new Set(),getIDForItem:function(){},onActivate:function(a){var b;a=a.item;var d=a.id;a=a.review_status;return t(c("OCDevManageOrganizationCampaignRoute").getURI({organizationID:(b=g==null?void 0:g.id)!=null?b:"",campaignID:(b=d)!=null?b:"",campaignSection:a==="APPROVED"?c("OCDevManageOrganizationCampaignSection").RESULTS:c("OCDevManageOrganizationCampaignSection").SETUP}))}}),v=o(function(){var a;return[{key:"Name",header:h._("Name"),cell:function(a){a=a.item.display_name_with_fallback;return l.jsx(c("GeoTableRowAction.react"),{children:a})},width:(a=d("GeoTableWidth")).proportional(1)},{key:"App",header:h._("App"),cell:function(a){var b;a=a.item.item;return l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[l.jsx(c("GeoMediaItem.react"),{fit:"contain",media:l.jsx(c("Image.react"),{src:a==null?void 0:(b=a.icon_image)==null?void 0:b.uri}),ratio:"circle",size:24,xstyle:c("geoMargin").end8}),l.jsx(c("GeoText.react"),{children:(b=a==null?void 0:a.display_name)!=null?b:"--"})]})},width:a.proportional(1)},{key:"Status",header:h._("Status"),cell:function(a){a=a.item;return l.jsx(c("OCDevManageOrganizationCampaignStatus.react"),{campaign:a})},width:a.pixel(q)},{key:"Start Time",header:h._("Start Time"),cell:function(a){a=a.item.start_time;return a!=null&&a>0?c("formatDate")(a,"M d, Y"):"--"},width:a.proportional(.5,{minWidth:q})},{key:"End Time",header:h._("End Time"),cell:function(a){a=a.item.end_time;return a!=null&&a>0?c("formatDate")(a,"M d, Y"):"--"},width:a.proportional(.5,{minWidth:q})},{key:"Codes sent",header:h._("Codes sent"),cell:function(a){a=a.item.analytics;return((a=a==null?void 0:a.reach)!=null?a:"--").toString()},width:a.pixel(q)},{key:"Conversions",header:h._("Conversions"),cell:function(a){a=a.item;return a!=null?l.jsx(c("OCDevManageOrganizationCampaignConversionProgressBar.react"),{campaign:a}):"--"},width:a.proportional(.7)},{cell:function(a){a=a.item;return l.jsxs(c("GeoDropdownMenu.react"),babelHelpers["extends"]({buttonVariant:"flat"},c("getDisabledProps")(a.release_status==="COMPLETED"?h._("Completed campaigns cannot be changed"):null),{useEllipsisIcon:!0,children:[l.jsx(c("OCDevManageOrganizationCampaignsTablePauseResumeMenuItem.react"),{campaign:a}),l.jsx(c("OCDevManageOrganizationCampaignsTableDeleteMenuItem.react"),{campaign:a})]}))},header:null,key:"context_menu",width:a.pixel(80)}]},[]);return a.length===0&&g!=null?l.jsx(c("GeoSection.react"),{children:l.jsx(c("GeoFlexbox.react"),{alignItems:"center",direction:"column",justifyContent:"center",xstyle:s.card,children:l.jsx(c("OCDevManageEmptyState.react"),{heading:h._("You do not have any campaigns that match the selected filters."),icon:d("fbicon")._(i("491287"),24)})})}):l.jsx(c("GeoTable.react"),{columns:v,dataSource:c("createGeoTableDataSource")(a,{getStableUniqueID:function(a){return a.id}}),label:h._("Campaigns"),pagination:{loadNext:m,hasNext:e,isLoadingNext:g==null?!0:k,pageSize:p},plugins:{activation:u}})}r.displayName=r.name+" [from "+f.id+"]";function a(a){return l.jsx(m,{fallback:l.jsx(r,{organization:null,statusFilter:null}),children:l.jsx(r,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";var s={card:{minHeight:"xz65tgg",$$css:!0}};g["default"]=a}),226);
-----
OCDevManageOrganizationPromoCodeUpsertCard.react",["fbt","DateTime","GeoCard.react","GeoCardFooter.react","GeoDatePicker.react","GeoFlexbox.react","GeoHeading.react","GeoMultiSelector.react","GeoMultiSelectorHeader.react","GeoMultiSelectorItem.react","GeoNumericInput.react","GeoSection.react","GeoSelectableList.react","GeoSelectableListTextItem.react","GeoSelector.react","GeoSelectorItem.react","GeoTextInput.react","Image.react","LocalDate","OCDevManageOrganizationPromoCodeUpsertCardMutation.graphql","OCDevManageOrganizationPromoCodeUpsertCard_organization.graphql","OCDevManageOrganizationPromoCodeUpsertCard_promo_code.graphql","OCDevManageOrganizationPromoCodesRoute","OCDevUICopyToClipboardButton.react","OCDevUIForm.react","OCDevUIFormInputValidator.react","OCDevUIFormSubmitButton.react","OCDevUILinkButton.react","OCDevUISpacedLayout.react","OCDevUIValidatorCommonErrors","OCNavigatorHooks","RelayHooks","Timezone","asyncToGeneratorRuntime","emptyFunction","geoMargin","getDisabledProps","gkx","react","useOCDevManageOrganizationPromoCodeFieldValidator","useOCDevManageOrganizationPromoCodeInitialFormState","useOCDevUICommitMutation","useOCDevUIFormState"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react")),n=l.useState,o={MSRP:"MSRP",SUBSCRIPTION:"Subscription"},p=[{term:"NONE",description:h._("u4f18u60e0u7801u6ca1u6709u671fu9650u3002")},{term:"ANNUAL"},{term:"BIWEEKLY"},{term:"MONTHLY"},{term:"QUARTERLY"},{term:"SEMIANNUAL"},{term:"WEEKLY"}];function a(a){var e,f,g,l,r,s,t=a.organization;a=a.promoCode;var u=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageOrganizationPromoCodeUpsertCard_organization.graphql"),t);t=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageOrganizationPromoCodeUpsertCard_promo_code.graphql"),a);a=c("useOCDevUIFormState")(c("useOCDevManageOrganizationPromoCodeInitialFormState")(t));var v=a[0],w=a[1];a=n(t===null||(t==null?void 0:t.subscription_promo_data)===null?o.MSRP:o.SUBSCRIPTION);var x=a[0],y=a[1],z=v.code;a=(a=(a=t==null?void 0:t.code_suffix)!=null?a:u.promo_code_suffix)!=null?a:"";e=((e=z)!=null?e:"")+"-"+a;f=n(((f=v.redemptionLimit)!=null?f:0)!==0);var A=f[0],B=f[1];f=c("useOCDevManageOrganizationPromoCodeFieldValidator")({code:z,codeSuffix:a,developerOrgID:u==null?void 0:u.id,promotionalCodeID:t==null?void 0:t.id});var C=d("OCNavigatorHooks").useForceHistoryReplace(),D=c("DateTime").localNow().toLocalDate(),E=c("useOCDevUICommitMutation")(k!==void 0?k:k=b("OCDevManageOrganizationPromoCodeUpsertCardMutation.graphql")),F=function(a){return"ocdm-promo-code-upsert-form-"+a};function G(){return H.apply(this,arguments)}function H(){H=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;a=(yield E({input:{code:(a=z)!=null?a:"",discount_percent:(a=v.discountPercent)!=null?a:0,end_time:v.endTime,is_active:v.isActive,item_ids:v.itemIDs,name:(a=v.name)!=null?a:"",organization_id:(a=u.id)!=null?a:"",redemption_limit:v.redemptionLimit,start_time:v.startTime,number_of_terms:v.numberOfTerms,term_restriction:v.termRestriction}},{refetchOnSuccess:!0}));if(a!=null){C(c("OCDevManageOrganizationPromoCodesRoute").getURI({organizationID:(a=u.id)!=null?a:""}).getPath())}});return H.apply(this,arguments)}var I=t!=null?h._("This field cannot be changed once a promo code has been created"):null,J=t!=null&&x===o.SUBSCRIPTION?h._("This field cannot be changed once a promo code has been created"):null;g=((g=u==null?void 0:(g=u.applications)==null?void 0:g.nodes)!=null?g:[]).slice().filter(function(a){return((a=a.baseline_offer)==null?void 0:a.is_free)===!1}).sort(function(a,b){a=a.display_name;b=b.display_name;return(b=a==null?void 0:a.localeCompare((a=b)!=null?a:""))!=null?b:0}).filter(function(a){return a.id!=null});l=((l=u==null?void 0:(l=u.applications)==null?void 0:l.nodes)!=null?l:[]).slice().filter(function(a){return a.id!=null}).map(function(a){return(a=(a=a.grouping)==null?void 0:(a=a.add_ons)==null?void 0:a.nodes)!=null?a:[]}).flat().filter(function(a){return a.id!=null&&((a=a.baseline_offer)==null?void 0:a.is_free)===!1});r=((r=u==null?void 0:(r=u.applications)==null?void 0:r.nodes)!=null?r:[]).slice().filter(function(a){return a.id!=null}).map(function(a){return(a=(a=a.subscription_items)==null?void 0:a.nodes)!=null?a:[]}).flat();var K=g.length===0?h._("You do not have any eligible apps to select"):null,L=c("gkx")("25704"),M=c("gkx")("25705");s=m.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return v.itemIDs.length===0?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:m.jsxs(c("GeoMultiSelector.react"),{"data-button-testid":F("app-and-iap-selector-button"),"data-select-all-testid":F("app-and-iap-selector-select-all"),"data-testid":void 0,description:h._("Select one or more items that this promo code applies to. Free items are not eligible."),disabledMessage:(s=I)!=null?s:K,displayValueType:"list",hasSelectAll:!0,isDisabled:I!=null||K!=null,label:h._("Items"),placeholder:h._("Choose Items"),ratio:"circle",value:v.itemIDs,onChange:function(a){w(function(b){return babelHelpers["extends"]({},b,{itemIDs:a})})},children:[m.jsx(c("GeoMultiSelectorHeader.react"),{label:h._("Apps")}),g.map(function(a){var b;return m.jsx(c("GeoMultiSelectorItem.react"),{label:(b=a.display_name)!=null?b:h._("Unknown App"),media:m.jsx(c("Image.react"),{src:(b=a.icon_image)==null?void 0:b.uri}),value:a.id},a.id)}),m.jsx(c("GeoMultiSelectorHeader.react"),{label:h._("Add-Ons")}),l.map(function(a){var b;return m.jsx(c("GeoMultiSelectorItem.react"),{label:(b=a.display_name)!=null?b:h._("Unknown Add-on"),media:m.jsx(c("Image.react"),{src:(b=a.icon_image)==null?void 0:b.uri}),value:a.id},a.id)})]})});l=m.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return v.itemIDs.length===0?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:m.jsx(c("GeoMultiSelector.react"),{"data-button-testid":F("app-selector-button"),"data-select-all-testid":F("app-selector-select-all"),description:h._("Select one or more apps that this promo code applies to. Free apps are not eligible."),disabledMessage:(l=I)!=null?l:K,displayValueType:"list",hasSelectAll:!0,isDisabled:I!=null||K!=null,label:h._("Items"),placeholder:h._("Choose Items"),ratio:"circle",value:v.itemIDs,onChange:function(a){w(function(b){return babelHelpers["extends"]({},b,{itemIDs:a})})},children:g.map(function(a){var b;return m.jsx(c("GeoMultiSelectorItem.react"),{label:(b=a.display_name)!=null?b:h._("Unknown App"),media:m.jsx(c("Image.react"),{src:(b=a.icon_image)==null?void 0:b.uri}),value:a.id},a.id)})})});K=m.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return v.itemIDs.length===0?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:m.jsx(c("GeoSelector.react"),babelHelpers["extends"]({"data-testid":void 0},c("getDisabledProps")(J),{description:h._("u9009u62e9u8ba2u9605 SKU u6765u4e3au4e4bu521bu5efau4f18u60e0u7801u3002"),label:h._("u8ba2u9605"),placeholder:h._("u9009u62e9u8ba2u9605"),ratio:"circle",value:v.itemIDs[0],onChange:function(a){w(function(b){return babelHelpers["extends"]({},b,{itemIDs:[a]})})},children:r.map(function(a){var b;return m.createElement(c("GeoSelectorItem.react"),babelHelpers["extends"]({},c("getDisabledProps")(I),{key:a.id,label:(b=a.display_name)!=null?b:"label",value:a.id}))})}))});return m.jsx(c("OCDevUIForm.react"),{testID:F("parent-form"),onSubmit:G,children:m.jsxs(c("GeoCard.react"),{footer:m.jsx(c("GeoCardFooter.react"),{primaryButton:m.jsx(c("OCDevUIFormSubmitButton.react"),{label:t!=null?h._("Update"):h._("Publish"),testID:F("submit-button")}),secondaryButton:m.jsx(c("OCDevUILinkButton.react"),{href:c("OCDevManageOrganizationPromoCodesRoute").getURI({organizationID:(g=u.id)!=null?g:""}),label:h._("u53d6u6d88")})}),xstyle:q.maxHeight,children:[m.jsx(c("GeoSection.react"),{children:m.jsxs(c("OCDevUISpacedLayout.react"),{xstyle:q.maxWidth,children:[m.jsx(c("GeoHeading.react"),{level:2,children:h._("Details")}),M&&r.length>0&&m.jsx(c("GeoSelector.react"),babelHelpers["extends"]({},c("getDisabledProps")(I),{"data-testid":void 0,description:h._("u9009u62e9u8981u521bu5efau7684u4f18u60e0u7801u7c7bu578bu3002"),label:h._("u7c7bu578b"),placeholder:h._("u5382u5546u5efau8baeu96f6u552eu4ef7"),ratio:"circle",value:x,onChange:function(a){y(a),w(function(a){return babelHelpers["extends"]({},a,{itemIDs:[]})})},children:Object.keys(o).map(function(a){return m.jsx(c("GeoSelectorItem.react"),{label:o[a],value:o[a]},o[a])})})),m.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[m.jsx(c("GeoHeading.react"),{level:4,children:h._("Status")}),m.jsxs(c("GeoSelectableList.react"),{"data-testid":void 0,itemStyle:"radio",selectedItemIDs:[v.isActive],selectionType:"single",onSelectionChange:function(a){return w(function(b){return babelHelpers["extends"]({},b,{isActive:a[0]})})},children:[m.jsx(c("GeoSelectableListTextItem.react"),babelHelpers["extends"]({"data-testid":void 0},c("getDisabledProps")(J),{itemID:!0,label:h._("Active")})),m.jsx(c("GeoSelectableListTextItem.react"),babelHelpers["extends"]({"data-testid":void 0},c("getDisabledProps")(J),{itemID:!1,label:h._("Inactive")}))]})]}),m.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){var a;return((a=v.name)!=null?a:"")===""?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:m.jsx(c("GeoTextInput.react"),babelHelpers["extends"]({"data-testid":void 0,description:h._("Give your promo code a unique name. This name is not visible to the public."),label:h._("Name")},c("getDisabledProps")(J),{value:v.name,onChange:function(a){return w(function(b){return babelHelpers["extends"]({},b,{name:a})})}}))}),m.jsxs(c("GeoFlexbox.react"),{alignItems:"end",columnGap:8,children:[m.jsx(c("OCDevUIFormInputValidator.react"),{validateField:f,children:m.jsx(c("GeoTextInput.react"),babelHelpers["extends"]({"data-testid":void 0,description:h._("u987eu5ba2u5728u7ed3u8d26u65f6u8f93u5165u6b64u4f18u60e0u7801uff0cu5305u62ecu9884u8bbeu540eu7f00u3002")},c("getDisabledProps")(I),{label:h._("Code"),value:z,onChange:function(a){return w(function(b){return babelHelpers["extends"]({},b,{code:a})})}}))}),m.jsxs(c("GeoFlexbox.react"),{alignItems:"center",columnGap:8,xstyle:q.codeSuffixContainer,children:["-",m.jsx(c("GeoTextInput.react"),{"data-testid":void 0,isDisabled:!0,isLabelHidden:!0,label:h._("Code Suffix"),value:a,onChange:c("emptyFunction")}),m.jsx(c("OCDevUICopyToClipboardButton.react"),{copyText:e})]})]}),x===o.SUBSCRIPTION?K:L?s:l]})}),m.jsx(c("GeoSection.react"),{children:m.jsxs(c("OCDevUISpacedLayout.react"),{xstyle:q.maxWidth,children:[m.jsx(c("GeoHeading.react"),{level:2,children:h._("Management")}),m.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return v.discountPercent==null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:m.jsx(c("GeoNumericInput.react"),babelHelpers["extends"]({"data-testid":void 0,description:h._("Enter percent off (u0025) of MSRP.")},c("getDisabledProps")(I),{label:h._("Discount Percent"),max:99,min:1,value:v.discountPercent!=null?+parseFloat(v.discountPercent*100).toFixed(0):null,onChange:function(a){return w(function(b){return babelHelpers["extends"]({},b,{discountPercent:a!=null?a/100:null})})}}))}),x===o.SUBSCRIPTION&&m.jsxs(m.Fragment,{children:[m.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return v.numberOfTerms===null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:m.jsx(c("GeoNumericInput.react"),babelHelpers["extends"]({"data-testid":void 0,description:h._("u8f93u5165u6298u6263u53efu7528u4e8eu591au5c11u4e2au8d26u5355u5468u671fu3002")},c("getDisabledProps")(I),{label:h._("u8d26u5355u5468u671fu6570u91cf"),max:99,min:1,value:(t==null?void 0:t.subscription_promo_data)!=null?t.subscription_promo_data.number_of_terms:v.numberOfTerms,onChange:function(a){return w(function(b){return babelHelpers["extends"]({},b,{numberOfTerms:a})})}}))}),m.jsx(c("GeoSelector.react"),babelHelpers["extends"]({"data-testid":void 0,description:h._("u9009u62e9u8fd9u4e00u4f18u60e0u7801u9002u7528u7684u8ba2u9605u5468u671fuff08u975eu5fc5u9009uff09u3002")},c("getDisabledProps")(I),{label:h._("u5468u671fu9650u5236"),placeholder:h._("u9009u62e9u5468u671f"),ratio:"circle",value:(t==null?void 0:t.subscription_promo_data)!=null?t.subscription_promo_data.subscription_term:v.termRestriction,onChange:function(a){return w(function(b){return babelHelpers["extends"]({},b,{termRestriction:a})})},children:p.map(function(a){return m.jsx(c("GeoSelectorItem.react"),{description:a.description,label:a.term,value:a.term},a.term)})}))]}),m.jsx(c("GeoDatePicker.react"),babelHelpers["extends"]({"data-testid":void 0,description:h._("Enter the start time for this promo code. If not set, the promo code will start on creation.")},c("getDisabledProps")(I),{isOptional:!0,label:h._("Start Time"),restraint:function(a){return a.isBefore(D)?!1:(v==null?void 0:v.endTime)==null||a.isBeforeOrEqual(c("LocalDate").fromInstant(v==null?void 0:v.endTime,d("Timezone").PST8PDT))},value:(v==null?void 0:v.startTime)!=null?c("LocalDate").fromInstant(v==null?void 0:v.startTime,d("Timezone").PST8PDT):null,onChange:function(a){return w(function(b){return babelHelpers["extends"]({},b,{startTime:a==null?void 0:a.toInstant(d("Timezone").PST8PDT)})})}})),m.jsx(c("GeoDatePicker.react"),{"data-testid":void 0,description:h._("Enter the end time for this promo code. If not set, the promo code will never expire."),isOptional:!0,isPagerLimitRestrained:!1,label:h._("End Time"),restraint:function(a){return a.isBeforeOrEqual(D)?!1:(v==null?void 0:v.startTime)==null||a.isAfterOrEqual(c("LocalDate").fromInstant(v==null?void 0:v.startTime,d("Timezone").PST8PDT))},tooltip:h._("End time can be changed after creation"),value:(v==null?void 0:v.endTime)!=null&&(v==null?void 0:v.endTime)>0?c("LocalDate").fromInstant(v==null?void 0:v.endTime,d("Timezone").PST8PDT):null,onChange:function(a){return w(function(b){return babelHelpers["extends"]({},b,{endTime:a==null?void 0:a.toInstant(d("Timezone").PST8PDT)})})}}),m.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[m.jsx(c("GeoHeading.react"),{level:4,children:h._("Limit Total Uses")}),m.jsxs(c("GeoSelectableList.react"),{"data-testid":void 0,isSelectionRequired:!0,itemStyle:"radio",selectedItemIDs:[A],selectionType:"single",xstyle:c("geoMargin").top4,onSelectionChange:function(a){a=a[0];a||w(function(a){return babelHelpers["extends"]({},a,{redemptionLimit:0})});B(a)},children:[m.jsx(c("GeoSelectableListTextItem.react"),babelHelpers["extends"]({"data-testid":void 0},c("getDisabledProps")(J),{itemID:!1,label:h._("Unlimited Uses")})),m.jsx(c("GeoSelectableListTextItem.react"),babelHelpers["extends"]({"data-testid":void 0},c("getDisabledProps")(J),{itemID:!0,label:h._("Limited Uses")}))]}),A?m.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return v.redemptionLimit<=0||v.redemptionLimit>=5e3?h._("The redemption limit must be between 1 - 5000"):null},children:m.jsx(c("GeoNumericInput.react"),{"data-testid":void 0,description:h._("Must be between 1 - 5000"),label:h._("Redemption Limit"),max:5e3,min:1,value:v.redemptionLimit,xstyle:c("geoMargin").top12,onChange:function(a){return w(function(b){return babelHelpers["extends"]({},b,{redemptionLimit:(b=a)!=null?b:0})})}})}):null]})]})})]})})}a.displayName=a.name+" [from "+f.id+"]";var q={maxHeight:{maxHeight:"xhd83ik",$$css:!0},maxWidth:{maxWidth:"x1j9u4d2",$$css:!0},codeSuffixContainer:{height:"xdmi676",marginTop:"x1tfhste",$$css:!0}};g["default"]=a}),226);
-----
OCDevManageOrganizationCampaignsTablePauseResumeMenuItem.react",["fbt","GeoMenuItem.react","OCDevManageOrganizationCampaignsTablePauseResumeMenuItemMutation.graphql","OCDevManageOrganizationCampaignsTablePauseResumeMenuItem_campaign.graphql","RelayHooks","asyncToGeneratorRuntime","getDisabledProps","react","useOCDevManageOrganizationCampaignOverlappingCampaignsDisabledMessage","useOCDevUICommitMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react");function a(a){a=a.campaign;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageOrganizationCampaignsTablePauseResumeMenuItem_campaign.graphql"),a),f=c("useOCDevUICommitMutation")(j!==void 0?j:j=b("OCDevManageOrganizationCampaignsTablePauseResumeMenuItemMutation.graphql")),g=e.release_status,k=g==="ACTIVE"||g==="SCHEDULED",m=c("useOCDevManageOrganizationCampaignOverlappingCampaignsDisabledMessage")({campaign:e}),n=k?{label:h._("Pause"),loadingToast:h._("Pausing the campaign"),onSuccessToastHeading:h._("Campaign is inactive"),onSuccessToastDescription:h._("The campaign is paused. Coupon codes are not being distributed.")}:{label:h._("Resume"),loadingToast:h._("Resuming the campaign"),onSuccessToastHeading:h._("Campaign is active"),onSuccessToastDescription:g==="PAUSED"?h._("The campaign is running. Coupon codes are being distributed."):h._("The campaign has not yet started. Coupon codes will be distributed when it does.")};function o(){return p.apply(this,arguments)}function p(){p=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;yield f({input:{campaign_id:(a=e.id)!=null?a:"",is_active:!((a=e.is_active)!=null?a:!0)}},{closeModalOnSuccess:!0,loadingToast:{heading:n.loadingToast},refetchOnSuccess:!0,successToast:{heading:n.onSuccessToastHeading,description:n.onSuccessToastDescription}})});return p.apply(this,arguments)}function q(){if(g==="DRAFT"||g==="COMPLETED")return h._("You cannot pause/resume a draft or completed campaign.");return!k&&m!=null?m:null}return l.jsx(c("GeoMenuItem.react"),babelHelpers["extends"]({},c("getDisabledProps")(q()),{label:n.label,onClick:o}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationSubmissionPricingFields.react",["fbt","GeoCheckboxInput.react","GeoDivider.react","GeoNotice.react","GeoSelector.react","GeoSelectorItem.react","GeoText.react","OCApplicationPlatform","OCDevManageApplicationPricingCountrySpecificPricingFields.react","OCDevManageApplicationReleaseDatePicker.react","OCDevManageApplicationSubmissionPricingDiscountSelector.react","OCDevManageApplicationSubmissionPricingFields_submission.graphql","OCDevManageApplicationSubmissionPricingIncludedPreorderItemsSelector.react","OCDevManageCountryPricingTable.react","OCDevManageDocsLinks","OCDevManageOrganizationPaymentInfoRoute","OCDevManagePriceObjectKeyField.react","OCDevUIFormInputValidator.react","OCDevUILink.react","OCDevUISpacedLayout.react","OCDevUIValidatorCommonErrors","OCPurchasableOfferWithApp","RelayHooks","geoMargin","getDisabledProps","gkx","react","useOCDevManageGetAppStoreItemPriceObjectKeyDisabledMessage"],(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 e,f=a.formState,g=a.onUpdateFormState,j=a.onUpdateLegalBypassReason,m=a.setShowCountrySpecificPricingInfo,n=a.showCountrySpecificPricingInfo,o=a.showDiscountField;a=a.submission;var p=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationSubmissionPricingFields_submission.graphql"),a);a=l(f.discountWorldwidePriceObjectKey!=null);var q=a[0];a=a[1];var r=f.additionalItemGrants,s=f.countrySpecificPriceObjectKeys,t=f.discountWorldwidePriceObjectKey,u=f.offerType,v=f.releaseTime,w=f.releaseTimeType,x=f.worldwidePriceObjectKey,y=p.application,z=y==null?void 0:y.organization,A=(z==null?void 0:z.has_financial_entity)===!0,B=(y==null?void 0:y.is_concept)===!1&&(y==null?void 0:y.platform)===c("OCApplicationPlatform").values.ANDROID_6DOF;e=y==null?void 0:(e=y.scheduled_offers)==null?void 0:e.nodes[0];e=e==null?void 0:e.offer_type;var C=c("OCPurchasableOfferWithApp").APPSTORE_OFFER,D=c("OCPurchasableOfferWithApp").APPSTORE_PREORDER_OFFER,E=c("useOCDevManageGetAppStoreItemPriceObjectKeyDisabledMessage")(y,u)(null),F=c("gkx")("1956");D=F===!0?[C,D]:[C];C=c("gkx")("2554");function G(){if(p.status==="SUBMITTED")return h._("Please {=m1} to make a change to your app"s Listing Type, then resubmit your Submission.",[h._implicitParam("=m1",k.jsx("b",{children:h._("Cancel Submission")}))])}function H(a,b){return a!==((a=p.application.current_revision)==null?void 0:(a=a.reviewable_offer_group_with_fallback)==null?void 0:(a=a.worldwide_offer)==null?void 0:a.price_object_key)&&b==="APPSTORE_OFFER"&&c("gkx")("2704")===!0&&p.application.should_prompt_for_msrp_exp_holdout===!0}return k.jsxs(c("OCDevUISpacedLayout.react"),{children:[B?k.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){if(u==null)return d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE;if(u!=="APPSTORE_OFFER"&&p.is_blocked_by_pre_order===!0)return h._("Your app is being released. Your Pre-Order listing can no longer be updated.")},children:k.jsxs(c("GeoSelector.react"),babelHelpers["extends"]({"data-testid":void 0,description:C?h._("{=m0}",[h._implicitParam("=m0",k.jsx(c("GeoText.react"),{children:h._("Choose the listing type for your submission. This cannot be changed after submission. {=m1}",[h._implicitParam("=m1",k.jsx(c("OCDevUILink.react"),{href:c("OCDevManageDocsLinks").PRE_LAUNCH_LISTINGS,target:"_blank",children:h._("Learn more")}))])}))]):null},c("getDisabledProps")(G()),{label:h._("Listing Type"),message:C?u==="APPSTORE_OFFER"?"By choosing Full Release now, you cannot submit as Coming Soon or Pre-Order later.":u==="APPSTORE_PREORDER_OFFER"?"By choosing Pre-Order now, you cannot submit as Coming Soon later.":null:null,value:u,onChange:function(a){g(function(b){return babelHelpers["extends"]({},b,{additionalItemGrants:a!=="APPSTORE_PREORDER_OFFER"?[]:b.additionalItemGrants,countrySpecificPriceObjectKeys:a!=="APPSTORE_OFFER"?{}:b.countrySpecificPriceObjectKeys,discountWorldwidePriceObjectKey:null,offerType:a,releaseTime:a==="APPSTORE_OFFER"?0:b.releaseTime,releaseTimeType:a==="APPSTORE_OFFER"?null:b.releaseTimeType,worldwidePriceObjectKey:a==="APPSTORE_COMINGSOON_OFFER"?"":b.worldwidePriceObjectKey,msrpExperimentHoldoutElection:H(b.worldwidePriceObjectKey,a)?(b=b.msrpExperimentHoldoutElection)!=null?b:"OPTED_IN_DRAFT":null})})},children:[k.jsx(c("GeoSelectorItem.react"),{"data-testid":void 0,description:"Allow users to instantly purchase the app for download",label:h._("Full Release"),tooltip:h._("Full release listings allow consumers to instantly purchase the app for download."),value:"APPSTORE_OFFER"}),k.jsx(c("GeoSelectorItem.react"),{"data-testid":void 0,description:"Allow users to place orders for your app before release",isDisabled:e!=null&&!["APPSTORE_COMINGSOON_OFFER","APPSTORE_PREORDER_OFFER"].includes(e),label:h._("Pre-Order"),tooltip:e!=null&&!["APPSTORE_COMINGSOON_OFFER","APPSTORE_PREORDER_OFFER"].includes(e)?h._("Listing may not be reverted to a more limited type"):h._("Pre-order listings allow users to place orders for your app before release."),value:"APPSTORE_PREORDER_OFFER"}),k.jsx(c("GeoSelectorItem.react"),{"data-testid":void 0,description:"Generate awareness and allow users to wishlist your app before release",isDisabled:e!=null&&e!=="APPSTORE_COMINGSOON_OFFER",label:h._("Coming Soon"),tooltip:e!=null&&e!=="APPSTORE_COMINGSOON_OFFER"?h._("Listing may not be reverted to a more limited type"):h._("Coming soon listings generate awareness, allowing users to wishlist your app before release."),value:"APPSTORE_COMINGSOON_OFFER"})]}))}):null,F&&k.jsxs(k.Fragment,{children:[k.jsx(c("GeoNotice.react"),{status:"info",children:u==="APPSTORE_OFFER"&&h._("Prices are locked on approval and cannot be changed for 30 days.")}),k.jsx(c("GeoNotice.react"),{status:"info",children:u==="APPSTORE_PREORDER_OFFER"&&h._("Prices are locked on approval and cannot be changed for 30 days. MSRP prices for pre-order listings cannot be changed after submission.")})]}),["APPSTORE_OFFER","APPSTORE_PREORDER_OFFER"].includes(u)?k.jsxs(k.Fragment,{children:[k.jsx(c("OCDevManagePriceObjectKeyField.react"),{"data-testid":void 0,description:A?null:h._("To create a paid application, you need to set up your {=m2}.",[h._implicitParam("=m2",k.jsx(c("OCDevUILink.react"),{href:c("OCDevManageOrganizationPaymentInfoRoute").getURI({organizationID:(B=z==null?void 0:z.id)!=null?B:""}),children:h._("payment info")}))]),disabledMessage:E,hidePaidOptions:!A,priceAmount:p==null?void 0:(G=p.reviewable_offer_group_with_fallback)==null?void 0:(C=G.worldwide_offer)==null?void 0:(z=C.price)==null?void 0:z.formatted_for_lwi,validateField:function(){return x==null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},value:x,onChange:function(a){return g(function(b){return babelHelpers["extends"]({},b,{discountWorldwidePriceObjectKey:null,worldwidePriceObjectKey:a,countryPriceOverrides:a!==""?b.countryPriceOverrides:{},countrySpecificPriceObjectKeys:a!==""?b.countrySpecificPriceObjectKeys:{},msrpExperimentHoldoutElection:H(a,b.offerType)?(b=b.msrpExperimentHoldoutElection)!=null?b:"OPTED_IN_DRAFT":null})})}}),H(f.worldwidePriceObjectKey,f.offerType)?k.jsx(c("GeoCheckboxInput.react"),{description:h._("u53c2u4e0eu6781u5c0fu8303u56f4u7684u5bf9u7167u7ec4u5b9eu9a8cuff0cu83b7u5f97u5173u4e8eu4ef7u683cu53d8u66f4u5f71u54cdu7684u989du5916u5206u6790u6570u636eu3002u6211u4eecu5c06u5206u4eabu6bcfu6708u66f4u65b0uff0cu8bf4u660eu4f60u7684u4ef7u683cu66f4u6539u5bf9u6536u5165u548cu4e92u52a8u7684u5f71u54cdu53d8u5316u60c5u51b5u3002u5728u5bf9u7167u7ec4u5b9eu9a8cu4e2duff0cu5f88u5c0fu6bd4u4f8bu7684 Meta Quest u7528u6237u5c06u770bu5230u4f60u7684u65e7u4ef7u683cu3002u7cfbu7edfu5c06u6bcf 3 u4e2au6708u968fu673au62bdu53d6u8fd9u7fa4u7528u6237uff0cu53efu80fdu6709u4efbu4f55u7528u6237u770bu5230u65e7u4ef7u683cu7684u603bu65f6u957fu5c06u6301u7eed 9 u4e2au6708u3002u8fd9u4e0du4ec5u5141u8bb8u4f60u8fdbu4e00u6b65u4e86u89e3u4ef7u683cu66f4u6539u5bf9u4e1au52a1u6210u529fu7684u5f71u54cduff0cu8fd8u80fdu652fu6301u6211u4eecu7684u5e73u53f0u6301u7eedu6539u8fdbu5de5u5177u53cau5176u6548u7387u3002"),disabledMessage:h._("u4f60u4e4bu524du5df2u4e3au8fd9u4e2au5bf9u7167u7ec4u505au51fau9009u62e9u3002"),isDisabled:["OPTED_IN","OPTED_OUT"].includes(f.msrpExperimentHoldoutElection),label:h._("u83b7u53d6u5176u4ed6u6210u6548u5206u6790"),value:["OPTED_IN","OPTED_IN_DRAFT",null].includes(f.msrpExperimentHoldoutElection),onChange:function(a){return g(function(b){return babelHelpers["extends"]({},b,{msrpExperimentHoldoutElection:a?"OPTED_IN_DRAFT":"OPTED_OUT_DRAFT"})})}}):null,((B=x)!=null?B:"")!==""&&A&&D.includes(u)?F?k.jsx(c("OCDevManageCountryPricingTable.react"),{appStoreItemID:(G=y==null?void 0:y.id)!=null?G:"",countryOverrides:f.countryPriceOverrides,priceObjectKey:x,showSuggestedConversions:!0,submissionID:(C=p.id)!=null?C:"",onChangeCountryEntry:function(a){return g(function(b){return babelHelpers["extends"]({},b,{countryPriceOverrides:a(b.countryPriceOverrides)})})}}):k.jsxs(k.Fragment,{children:[k.jsx(c("GeoCheckboxInput.react"),{"data-testid":void 0,disabledMessage:h._("u4f60u65e0u6cd5u901au8fc7u8fd9u6b3eu5de5u5177u66f4u6539u5177u4f53u56fdu5bb6/u5730u533au7684u5b9au4ef7u3002u5982u9700u66f4u6539u5177u4f53u56fdu5bb6/u5730u533au7684u5b9au4ef7uff0cu8bf7u8054u7cfbu4f60u7684 Meta Quest u5546u5e97u652fu6301u4f19u4f34u3002"),isDisabled:y.msrp_offer_is_country_restricted===!0,label:h._("u4e3au5404u4e2au56fdu5bb6/u5730u533au8c03u6574u4ef7u683c"),value:n===!0,onChange:function(a){m&&m(a),a||g(function(a){return babelHelpers["extends"]({},a,{countrySpecificPriceObjectKeys:{}})})}}),n===!0?k.jsx(c("OCDevManageApplicationPricingCountrySpecificPricingFields.react"),{appStoreItem:y,countrySpecificPriceObjectKeys:s,selectedGlobalPriceObjectKey:f.worldwidePriceObjectKey,onUpdateCountrySpecificPriceObjectKeys:function(a){return g(function(b){return babelHelpers["extends"]({},b,{countrySpecificPriceObjectKeys:a(b.countrySpecificPriceObjectKeys)})})},onUpdateLegalBypassReason:j}):null]}):null]}):null,u==="APPSTORE_PREORDER_OFFER"?k.jsxs(k.Fragment,{children:[k.jsx(c("GeoDivider.react"),{xstyle:c("geoMargin").vert0}),o===!0?k.jsx(c("OCDevManageApplicationSubmissionPricingDiscountSelector.react"),{discountWorldwidePriceObjectKey:t,hasDiscountPrice:q,priceObjectKeyDisabledMessage:E,setHasDiscountPrice:a,submissionForCustomTiers:p.status==="DRAFT"?(z=y.current_revision)==null?void 0:z.id:p.id,worldwidePriceObjectKey:x,onUpdateFormState:g}):null]}):null,["APPSTORE_COMINGSOON_OFFER","APPSTORE_PREORDER_OFFER"].includes(u)?k.jsxs(c("OCDevUISpacedLayout.react"),{spacing:"medium",children:[k.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return w==null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:k.jsxs(c("GeoSelector.react"),{"data-testid":void 0,description:h._("Define how your app release date is shown to users."),label:h._("Release Date Granularity"),placeholder:h._("Select release date granularity"),value:w,onChange:function(a){return g(function(b){return babelHelpers["extends"]({},b,{releaseTimeType:a})})},children:[k.jsx(c("GeoSelectorItem.react"),{disabledMessage:h._("Pre-Order intended release date must have a visible granularity setting"),isDisabled:u==="APPSTORE_PREORDER_OFFER",label:h._("Unspecified"),value:"NONE"}),k.jsx(c("GeoSelectorItem.react"),{label:h._("Day"),value:"DAY"}),k.jsx(c("GeoSelectorItem.react"),{label:h._("Month"),value:"MONTH"}),k.jsx(c("GeoSelectorItem.react"),{label:h._("Season"),value:"SEASON"})]})}),k.jsx(c("OCDevManageApplicationReleaseDatePicker.react"),{"data-testid":void 0,offerType:u,releaseTime:(B=v)!=null?B:0,releaseTimeType:(A=w)!=null?A:"DAY",onUpdateFormState:g}),u==="APPSTORE_PREORDER_OFFER"?k.jsxs(k.Fragment,{children:[k.jsx(c("GeoDivider.react"),{xstyle:c("geoMargin").vert0}),k.jsx(c("OCDevManageApplicationSubmissionPricingIncludedPreorderItemsSelector.react"),{isDisabled:e==="APPSTORE_PREORDER_OFFER",submission:p,value:r,onChange:function(a){return g(function(b){return babelHelpers["extends"]({},b,{additionalItemGrants:a})})}})]}):null]}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationSubmissionMetadataPreview.react",["fbt","GeoButton.react","GeoButtonGroup.react","GeoCancelButton.react","GeoFlexbox.react","GeoLink.react","GeoModalCard.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","GeoTextPairing.react","OCDevManageApplicationSubmissionMetadataPreviewEndMutation.graphql","OCDevManageApplicationSubmissionMetadataPreviewStartMutation.graphql","OCDevManageApplicationSubmissionMetadataPreview_pdpMetadata.graphql","OCDevManageConfirmationModal.react","OCDevUIAsyncButton.react","OCDevUICountdownTimer.react","OCDevUISpacedLayout.react","OCDevWebClientEventsLogger","OCExperiencesProductTypeHelper","OCNavigatorHooks","OCXWwwExperiencesPDPController","RelayHooks","URI","asyncToGeneratorRuntime","geoMargin","getDisabledProps","react","useOCDevUICommitMutation","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n=m||(m=d("react")),o=m.useState,p="rocksteady_pdp_preview";function a(a){var e;a=a.pdpMetadata;a=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationSubmissionMetadataPreview_pdpMetadata.graphql"),a);var g=c("useOCDevUICommitMutation")(j!==void 0?j:j=b("OCDevManageApplicationSubmissionMetadataPreviewStartMutation.graphql")),m=c("useOCDevUICommitMutation")(k!==void 0?k:k=b("OCDevManageApplicationSubmissionMetadataPreviewEndMutation.graphql")),q=d("OCDevWebClientEventsLogger").useClickLogger({type:p,name:"web_instructions_modal_click"}),r=d("OCDevWebClientEventsLogger").useClickLogger({type:p,name:"web_go_to_webpage_click"}),s=d("OCDevWebClientEventsLogger").useClickLogger({type:p,name:"mobile_instructions_modal_click"}),t=d("OCDevWebClientEventsLogger").useClickLogger({type:p,name:"headset_instructions_modal_click"}),u=d("OCDevWebClientEventsLogger").useClickLogger({type:p,name:"start_preview_modal_open_click"}),v=d("OCDevWebClientEventsLogger").useClickLogger({type:p,name:"start_preview_mutation_click"}),w=d("OCDevWebClientEventsLogger").useClickLogger({type:p,name:"end_preview_mutation_click"}),x=c("useOCDevUIModal")(),y=x.openModal;x=o(!1);var z=x[0],A=x[1],B=(x=a==null?void 0:a.id)!=null?x:"";x=a==null?void 0:a.application;var C=(x==null?void 0:x.is_concept)===!0?"App Lab":"Store";e=((e=a==null?void 0:a.pdp_preview_expiration_time)!=null?e:0)*1e3;var D=e>Date.now(),E=(a=a==null?void 0:(a=a.application_pdp_override_for_user)==null?void 0:a.id)!=null?a:"";a=(a=x==null?void 0:x.platform)!=null?a:"";x=(x=x==null?void 0:x.id)!=null?x:"";var F=a!==""&&x!==""?c("OCXWwwExperiencesPDPController").getURIBuilder().setEnum("store",d("OCExperiencesProductTypeHelper").platformToProductType(a)).setParams({require_login:!0}).setFBID("item_id",x).getURI().setSubdomain("www").toString():"",G=d("OCNavigatorHooks").useIsNavigationBlocked();function H(){if(B==="")return h._("Please make and save a change to your App Metadata before previewing it");if(D)return h._("This metadata is already being previewed");return G?h._("You must {=m1} before starting a preview",[h._implicitParam("=m1",n.jsx("b",{children:h._("Save Changes")}))]):null}function I(){return J.apply(this,arguments)}function J(){J=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield g({input:{pdp_id:B}},{closeModalOnSuccess:!0}),v()});return J.apply(this,arguments)}function K(){return L.apply(this,arguments)}function L(){L=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield m({input:{application_pdp_override_id:E}}),w()});return L.apply(this,arguments)}return n.jsxs(c("OCDevUISpacedLayout.react"),{spacing:"small",children:[n.jsx(c("GeoTextPairing.react"),{description:h._("Preview your PDP changes on the Quest {=m1}, {=m3}, and {=m5} for the next {=m8}. This preview is only visible to your Meta account.",[h._implicitParam("=m1",n.jsx(c("GeoLink.react"),{onClick:function(){y(M()),q()},children:h._("Web Store")})),h._implicitParam("=m3",n.jsx(c("GeoLink.react"),{onClick:function(){y(N()),s()},children:h._("Mobile App")})),h._implicitParam("=m5",n.jsx(c("GeoLink.react"),{onClick:function(){y(O()),t()},children:h._("Headset")})),h._implicitParam("=m8",n.jsx("b",{children:h._("1 hour")}))]),heading:h._("Metadata Preview"),size:"header2"}),n.jsxs(c("GeoFlexbox.react"),{alignItems:"center",xstyle:c("geoMargin").bottom16,children:[n.jsxs(c("GeoButtonGroup.react"),{xstyle:c("geoMargin").end16,children:[n.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(H()),{label:h._("Start Preview"),variant:"creation",onClick:function(){y(n.jsx(c("OCDevManageConfirmationModal.react"),{heading:h._("Start Metadata Preview"),submitButtonLabel:h._("Start Preview"),onSubmit:I,children:n.jsx(c("GeoText.react"),{children:h._("To preview your app"s PDP, you {=m1} to the Meta Quest website, Mobile App, and headset with the {=m4} as your Developer Dashboard. The preview will last for 1 hour or until you end it. It is {=m7}, and will override any other ongoing previews for this application. You can only have 1 active preview per application, and can end or restart previews at any time.",[h._implicitParam("=m1",n.jsx("b",{children:h._("must be logged into")})),h._implicitParam("=m4",n.jsx("b",{children:h._("same account")})),h._implicitParam("=m7",n.jsx("b",{children:h._("only visible to you")}))])})})),u()}})),D?n.jsx(c("OCDevUIAsyncButton.react"),{label:h._("End"),variant:"default",onClick:K}):null]}),D?n.jsx(c("OCDevUICountdownTimer.react"),{expirationDate:e,onExpire:function(){return A(!z)}}):null]})]});function M(){return n.jsx(c("GeoModalCard.react"),{footer:n.jsx(c("GeoModalFooter.react"),{primaryButton:n.jsx(c("GeoButton.react"),{label:h._("View PDP"),variant:"primary",onClick:function(){(l||(l=c("URI"))).goURIOnNewWindow(F),r()}})}),header:n.jsx(c("GeoModalHeader.react"),{heading:h._("Web Preview")}),children:n.jsx(c("GeoSection.react"),{children:n.jsx(c("GeoText.react"),{children:h._("Preview your application"s PDP on the Quest {store name} website. Once you Start Preview, to see your changes reflected you must {=m5} here on the Developer Dashboard. Then, refresh your {store name} webpage to see the updates applied.",[h._param("store name",C),h._implicitParam("=m5",n.jsx("b",{children:h._("Save Changes")}))])})})})}M.displayName=M.name+" [from "+f.id+"]";function N(){return n.jsx(c("GeoModalCard.react"),{footer:n.jsx(c("GeoModalFooter.react"),{primaryButton:n.jsx(c("GeoCancelButton.react"),{})}),header:n.jsx(c("GeoModalHeader.react"),{heading:h._("Mobile Preview")}),children:n.jsxs(c("GeoSection.react"),{children:[n.jsx(c("GeoText.react"),{display:"block",children:h._("View your application"s PDP on the Meta Quest App by finding your app in your {=m1}. You can also search for your app in the Store if it has already been published. Once you Start Preview, to see your new metadata changes reflected, make sure to {=m4}, and refresh your preview.",[h._implicitParam("=m1",n.jsx("b",{children:h._("Library")})),h._implicitParam("=m4",n.jsx("b",{children:h._("Save Changes")}))])}),n.jsx(c("GeoText.react"),{display:"block",xstyle:c("geoMargin").top8,children:h._("Starting from {=m1} of the Quest Mobile App, you can pull-to-refresh your app listing"s preview.",[h._implicitParam("=m1",n.jsx("b",{children:h._("Version 253")}))])}),n.jsx(c("GeoText.react"),{display:"block",xstyle:c("geoMargin").top8,children:h._("On older versions, you can refresh your app"s listing by either closing and re-opening the Meta Quest app, or searching for your application in the Store again.")})]})})}N.displayName=N.name+" [from "+f.id+"]";function O(){return n.jsx(c("GeoModalCard.react"),{footer:n.jsx(c("GeoModalFooter.react"),{primaryButton:n.jsx(c("GeoCancelButton.react"),{})}),header:n.jsx(c("GeoModalHeader.react"),{heading:h._("Headset Preview")}),children:n.jsx(c("GeoSection.react"),{children:n.jsx(c("GeoText.react"),{children:h._("View your application"s PDP on a Quest headset by searching for its {store name} listing if it has already been published. If not, you can find your app in your {=m3}, and select the option to {=m6} (you may have to set the search filter to "All" if your app isn"t showing up). Once you Start Preview, to see your metadata changes reflected, you must {=m8} then refresh your app"s PDP by either closing and re-opening your App Library, or searching for your application"s {store name} listing again.",[h._param("store name",C),h._implicitParam("=m3",n.jsx("b",{children:h._("App Library")})),h._implicitParam("=m6",n.jsx("b",{children:h._("See Details")})),h._implicitParam("=m8",n.jsx("b",{children:h._("Save Changes")}))])})})})}O.displayName=O.name+" [from "+f.id+"]"}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageComplianceActionResolutionButtonBase.react",["ix","GeoButton.react","GeoTooltip.react","OCDevManageComplianceContext","fbicon","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useContext;function a(a){var b=a.actionItemId,e=a.buttonDestination,f=e===void 0?d("OCDevManageComplianceContext").OverlayType.PROGRAM:e;e=a.disabledMessage;var g=a.href,i=a.variant;i=i===void 0?"primary":i;var m=a.label,n=a.onClickCallback;a=a.tooltipContent;var o=l(d("OCDevManageComplianceContext").OCDevManageComplianceContext),p=o.setActionItemOverlay,q=k(function(a){p({actionItemId:b,overlayType:a}),n&&n()},[b,n,p]);return g!=null?j.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(e),{href:g,icon:d("fbicon")._(h("509930"),16),label:m,target:"_blank",tooltip:a==null?null:j.jsx(c("GeoTooltip.react"),{content:a}),variant:i,onClick:function(){return q(d("OCDevManageComplianceContext").OverlayType.PROGRAM)}})):j.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(e),{label:m,tooltip:a==null?null:j.jsx(c("GeoTooltip.react"),{content:a}),variant:i,onClick:function(){return q(f)}}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevManageApplicationSubmissionMetadataNameFields.react",["fbt","AbstractSearchSource","GeoTextArea.react","GeoTextInput.react","GeoTokenizer.react","OCDevManageApplicationSubmissionMetadataNameFields_pdpMetadata.graphql","OCDevManageApplicationSubmissionSubmitValidationContext","OCDevManageApplicationSubmissionTranslatedStringsAndAssetsValidationFunctions","OCDevManageLongDescriptionFieldWithOptionalMarkdown.react","OCDevUIFormInputValidator.react","OCDevUISpacedLayout.react","OculusDashboardAppFieldValidatorsSitevarConfig","RelayHooks","SearchableEntry","XOCDisplayNameValidityIssue.oculus","asyncToGeneratorRuntime","getDisabledProps","react","useQueryAreDisplayNamesValid"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useContext;function a(a){var e=a.isReadOnly,f=a.onUpdateTranslatedStringsAndAssets,g=a.pdpMetadata,j=a.selectedLocale;a=a.translatedStringsAndAssets;g=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationSubmissionMetadataNameFields_pdpMetadata.graphql"),g);var n=c("useQueryAreDisplayNamesValid")(),o=l(c("OCDevManageApplicationSubmissionSubmitValidationContext"));o=o.allowEmptyFields;var p=a.displayName,q=a.keywords,r=a.shortDescription;o=d("OCDevManageApplicationSubmissionTranslatedStringsAndAssetsValidationFunctions").getTranslatedStringsAndAssetsValidationFunctions({allowEmptyFields:o,translatedStringsAndAssets:a});var s=o.validateDisplayName,t=o.validateKeywords,u=o.validateLongDescription;o=o.validateShortDescription;var v=g.application,w=v.id,x=v.platform;function y(){return z.apply(this,arguments)}function z(){z=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=s();if(a!=null)return a;a=(yield n({displayNameLocalePairs:[{display_name:p,locale:j}],excludedAppID:w,organizationID:(a=(a=v.organization)==null?void 0:a.id)!=null?a:"",platform:x}));if(a===c("XOCDisplayNameValidityIssue.oculus").ALREADY_IN_USE)return h._("u5df2u6709u4e00u6b3eu5e94u7528u5728u540cu4e00u5e73u53f0u4e2du4f7fu7528u8fd9u4e2au540du79f0u3002");if(a===c("XOCDisplayNameValidityIssue.oculus").CONTAINS_PROFANITY)return h._("This name contains profanity.")});return z.apply(this,arguments)}return k.jsxs(c("OCDevUISpacedLayout.react"),{children:[k.jsx(c("OCDevUIFormInputValidator.react"),{validateField:y,validationKey:j,children:k.jsx(c("GeoTextInput.react"),{isReadOnly:e,label:h._("u540du5b57/u540du79f0"),maxLength:c("OculusDashboardAppFieldValidatorsSitevarConfig").display_name.max_length,value:p,onChange:function(a){return f(function(b){return babelHelpers["extends"]({},b,{displayName:a})})}})}),k.jsx(c("OCDevUIFormInputValidator.react"),{validateField:o,validationKey:j,children:k.jsx(c("GeoTextArea.react"),{description:h._("This will be shown throughout the platform, primarily in VR."),isDisabled:e,label:h._("Short Description"),maxLength:c("OculusDashboardAppFieldValidatorsSitevarConfig").short_description.max_length,value:r,onChange:function(a){return f(function(b){return babelHelpers["extends"]({},b,{shortDescription:a})})}})}),k.jsx(c("OCDevManageLongDescriptionFieldWithOptionalMarkdown.react"),{application:v,isReadOnly:e,translatedStringsAndAssets:a,translationID:g==null?void 0:(y=g.translations)==null?void 0:(o=y.nodes)==null?void 0:(r=o.find(function(a){a=a.locale;return a===j}))==null?void 0:r.id,validateLongDescription:u,onDescriptionUpdate:function(a){return f(function(b){return babelHelpers["extends"]({},b,{longDescription:a(b.longDescription)})})},onImageUpload:function(a){return f(function(b){return babelHelpers["extends"]({},b,{longDescriptionImages:b.longDescriptionImages.concat([a])})})},onLongDescriptionUsesMarkdownChange:function(a){return f(function(b){return babelHelpers["extends"]({},b,{longDescriptionUsesMarkdown:a})})},onVideoUpload:function(a){return f(function(b){return babelHelpers["extends"]({},b,{longDescriptionVideos:b.longDescriptionVideos.concat([a])})})}},j),k.jsx(c("OCDevUIFormInputValidator.react"),{validateField:t,validationKey:j,children:k.jsx(c("GeoTokenizer.react"),babelHelpers["extends"]({},c("getDisabledProps")((v==null?void 0:v.is_concept)===!0?h._("An app published through the App Lab can only be discovered through search when a user searches for its exact name."):null),{description:h._("Enter up to 5 keywords in this language that will help users find your app. Please enter alpha and numeric characters only."),isOptional:!0,label:h._("Search Keywords"),searchSource:m,value:q.map(function(a){return new(c("SearchableEntry"))({title:a,uniqueID:a})}),onChange:function(a){return f(function(b){return babelHelpers["extends"]({},b,{keywords:a.map(function(a){return a.getTitle()})})})}}))})]})}a.displayName=a.name+" [from "+f.id+"]";e=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var d=b.prototype;d.searchImpl=function(a,b){b([new(c("SearchableEntry"))({title:a,uniqueID:a})],a)};return b}(c("AbstractSearchSource"));var m=new e();g["default"]=a}),226);
-----
OCDevManageLongDescriptionFieldWithOptionalMarkdown.react",["fbt","GeoFlexbox.react","GeoSwitch.react","GeoTextArea.react","GeoTextPairing.react","OCApplicationPlatform","OCDevManageAssetUploader.react","OCDevManageLongDescriptionFieldWithOptionalMarkdown_application.graphql","OCDevUIFormInputValidator.react","OCDevUITextAreaWithMarkdownPreview.react","RelayHooks","XOCUploadedAssetType.oculus","getDisabledProps","gkx","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.application,f=a.disabledMessage,g=a.isReadOnly,j=a.onDescriptionUpdate,l=a.onImageUpload,m=a.onLongDescriptionUsesMarkdownChange,n=a.onVideoUpload,o=a.translatedStringsAndAssets,p=o.longDescription,q=o.longDescriptionImages,r=o.longDescriptionUsesMarkdown;o=o.longDescriptionVideos;var s=a.translationID;a=a.validateLongDescription;e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageLongDescriptionFieldWithOptionalMarkdown_application.graphql"),e);var t=h._("Long Description");g=babelHelpers["extends"]({},c("getDisabledProps")(f),{isLabelHidden:!0,isReadOnly:(f=g)!=null?f:void 0,label:t,rows:8,value:p,onChange:function(a){return j(function(b){return a})}});return k.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:8,children:[k.jsx(c("GeoTextPairing.react"),{description:h._("This will be shown throughout the platform, including the store."),heading:t,size:"header4"}),c("gkx")("25686")?k.jsx(c("GeoSwitch.react"),babelHelpers["extends"]({},c("getDisabledProps")(!r&&(e==null?void 0:e.platform)!==c("OCApplicationPlatform").values.ANDROID_6DOF?h._("Markdown is only available for Quest apps"):null),{description:h._("Add rich text formatting and inline media."),label:h._("Use Markdown"),labelPosition:"suffix",value:r,onChange:m})):null,r?k.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:16,children:[k.jsx(c("OCDevManageAssetUploader.react"),{allowMultiple:!0,appID:e==null?void 0:e.id,imageAssetType:c("XOCUploadedAssetType.oculus").APP_IMG_MARKDOWN_INLINE,label:h._("Upload Embedded Media"),targetObjectID:(f=s)!=null?f:"",videoAssetType:c("XOCUploadedAssetType.oculus").APP_VIDEO_MARKDOWN_INLINE,onUploadComplete:function(a,b){b===c("XOCUploadedAssetType.oculus").APP_VIDEO_MARKDOWN_INLINE?n(a):l(a),j(function(b){return b+(" {"+((b=a.id)!=null?b:"")+"}")})}}),k.jsx(c("OCDevUITextAreaWithMarkdownPreview.react"),babelHelpers["extends"]({},g,{assets:q.concat(o),renderDarkModeToggle:!0,validateField:a}))]}):k.jsx(c("OCDevUIFormInputValidator.react"),{validateField:a,children:k.jsx(c("GeoTextArea.react"),babelHelpers["extends"]({},g))})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationSubmissionSubmitBinarySelector.react",["fbt","GeoMediaItem.react","GeoSelector.react","GeoSelectorItem.react","OCDevManageApplicationBinaryStatusIcon.react","OCDevManageApplicationBinarySupportedDevices","OCDevManageApplicationReleaseChannelRoute","OCDevManageApplicationSubmissionSubmitBinarySelector_submission.graphql","OCDevUIFormInputValidator.react","OCDevUILink.react","RelayHooks","XOCReleaseStatus.oculus","XOCReviewStatus.oculus","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var e,f=a.onChange,g=a.submission,j=a.useLiveBinary,l=a.validateField,m=a.value,n=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationSubmissionSubmitBinarySelector_submission.graphql"),g);a=n.application;g=a==null?void 0:a.live_release_channel;var o=g==null?void 0:(e=g.first100Binaries)==null?void 0:(e=e.nodes)==null?void 0:e.slice(),p=n.binary;p!=null&&(o==null?void 0:o.every(function(a){a=a.id;return a!==(p==null?void 0:p.id)}))&&(o==null?void 0:o.push(p));function q(a){var b;if((a==null?void 0:a.id)===m)return null;if((a==null?void 0:a.status)!==c("XOCReviewStatus.oculus").DRAFT)return h._("Only draft builds can be attached to a submission.");if(![n.id,null].includes((b=a==null?void 0:(b=a.submission)==null?void 0:b.id)!=null?b:null))return h._("This binary is already attached to another submission.");if(!((b=a==null?void 0:a.targeted_devices)!=null?b:[]).includes("FUTURE_DEVICES"))return h._("Only forward-compatible builds can be attached to a submission. Ensure the build has "{future_device_label}" in its list of supported devices.",[h._param("future_device_label",d("OCDevManageApplicationBinarySupportedDevices").getSupportedDeviceLabel("FUTURE_DEVICES"))])}function r(){var a,b=(a=o==null?void 0:o.findIndex(function(a){a=a.id;return a!=null&&a===m}))!=null?a:-1;if(n.release_status!==c("XOCReleaseStatus.oculus").RELEASED&&(o==null?void 0:o.some(function(a,d){a=a.release_status;return d-----
getDisabledProps",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a!=null?{disabledMessage:a,isDisabled:!0}:{}}f["default"]=a}),66);
-----
OCDevManageApplicationDelistButton.react",["fbt","GeoButton.react","OCDevManageApplicationDelistButton_application.graphql","OCDevManageApplicationDelistModal.react","OCDevManageApplicationReleaseTimelineEvents","RelayHooks","getDisabledProps","react","useOCDevManageApplicationReleaseLatestCompletedTimelineEvent","useOCDevUIModal"],(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=c("useOCDevUIModal")(),f=e.openModal,g=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationDelistButton_application.graphql"),a),j=(e=g.revisionsIncludingVariantMetadataRevisions)==null?void 0:(a=e.nodes)==null?void 0:a[0],l=c("useOCDevManageApplicationReleaseLatestCompletedTimelineEvent")(g);e=function(){var a;if(((a=g.organization)==null?void 0:a.is_viewer_org_admin)!==!0)return h._("u4f60u6ca1u6709u79fbu9664u5e94u7528u4fe1u606fu7684u6743u9650");if(g.is_approved!==!0)return h._("u8fd9u4e2au5e94u7528u7a0bu5e8fu672au83b7u6279");if((j==null?void 0:j.status)!=="APPROVED")return h._("u8fd9u4e2au5e94u7528u7a0bu5e8fu6709u5f85u5ba1u6838u7684u66f4u6539");if(g.item_bundles.length>0)return h._("u8bf7u786eu4fddu8fd9u4e2au5e94u7528u7a0bu5e8fu4e0du662fu6346u7ed1u5305u7684u4e00u90e8u5206uff0cu7136u540eu79fbu9664u5e94u7528u4fe1u606f");a=(a=(a=g.scheduled_offers)==null?void 0:(a=a.nodes)==null?void 0:a.filter(function(a){return a.offer_type==="XBUY_OFFER"}))!=null?a:[];if(a.length>0)return h._("u8bf7u786eu4fddu8fd9u4e2au5e94u7528u7a0bu5e8fu6ca1u6709u8de8u5e73u53f0u8d2du4e70u4f18u60e0");return l!==d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.RELEASED?h._("u5e94u7528u7a0bu5e8fu5c1au672au53d1u5e03"):null};return k.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(e()),{label:h._("u79fbu9664u5e94u7528u4fe1u606f"),tooltip:h._("u4ece Meta Quest u5546u5e97u79fbu9664u4f60u7684u5e94u7528u4fe1u606f"),variant:"flat",onClick:function(){return f(k.jsx(c("OCDevManageApplicationDelistModal.react"),{application:g}))}}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageBinaryExpansionFilesOBBTable.react",["fbt","ix","GeoButton.react","GeoTable.react","GeoTableWidth","OCCoreBytesUtils","OCDevManageBinaryExpansionFilesOBBTable_obbBinary.graphql","RelayAPIConfig","RelayHooks","URI","createGeoTableDataSource","emptyFunction","fbicon","getDisabledProps","gkx","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react")),n=l.useMemo;function a(a){a=a.obbBinary;a=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageBinaryExpansionFilesOBBTable_obbBinary.graphql"),a);var e=n(function(){var a;return[{cell:function(a){a=a.item.id;return(a=a)!=null?a:"--"},header:"ID",key:"ID",width:(a=d("GeoTableWidth")).proportional(1)},{cell:function(a){a=a.item.file_name;return(a=a)!=null?a:"--"},header:h._("File Name"),key:"File Name",width:a.proportional(1)},{cell:function(a){a=a.item.size;return d("OCCoreBytesUtils").formatSize(Number(a))},header:h._("File Size"),key:"File Size",width:a.proportional(1)},{cell:function(a){a=a.item;var b=a.intern_uri,e=a.is_segmented;a=a.uri;return m.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(e!==!1?h._("Segmented files cannot be downloaded"):null),{href:c("gkx")("25681")?(b=b)!=null?b:"":new(k||(k=c("URI")))(a).addQueryData({access_token:c("RelayAPIConfig").accessToken}),icon:d("fbicon")._(i("489717"),16),isDisabled:e!==!1,isLabelHidden:!0,label:h._("u4e0bu8f7d"),variant:"flat"}))},header:null,key:"menu",width:a.pixel(80)}]},[]);return m.jsx(c("GeoTable.react"),{columns:e,dataSource:c("createGeoTableDataSource")([a],{getStableUniqueID:c("emptyFunction")}),label:h._("Files")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationBinaryScheduleReleaseMenuItem.react",["fbt","GeoMenuItem.react","OCDevManageApplicationBinaryScheduleReleaseMenuItem_application.graphql","OCDevManageApplicationBinaryScheduleReleaseMenuItem_binary.graphql","OCDevManageApplicationCreateScheduledBuildReleaseModal.react","RelayHooks","getDisabledProps","getOCDevManageScheduledReleaseBinaryDisabledMessage","react","useOCDevManageScheduledReleaseDisabledMessage","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react");function a(a){var e=a.application;a=a.binary;var f=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationBinaryScheduleReleaseMenuItem_application.graphql"),e),g=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageApplicationBinaryScheduleReleaseMenuItem_binary.graphql"),a);e=c("useOCDevManageScheduledReleaseDisabledMessage")(f);a=c("getOCDevManageScheduledReleaseBinaryDisabledMessage")(g);var k=c("useOCDevUIModal")(),m=k.openModal;return l.jsx(c("GeoMenuItem.react"),babelHelpers["extends"]({},c("getDisabledProps")((k=e)!=null?k:a),{label:h._("Schedule build release"),onClick:function(){return m(l.jsx(c("OCDevManageApplicationCreateScheduledBuildReleaseModal.react"),{application:f,binary:g,surfaceName:"build_management_view"}))}}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationDataUseCheckupRequestListItem.react",["fbt","ix","GeoButton.react","GeoFlexbox.react","GeoHeading.react","GeoIcon.react","GeoLink.react","GeoPill.react","GeoSection.react","GeoTextPairing.react","GeoTooltip.react","OCDevManageApplicationDataUseCheckupClickLogger.react","OCDevManageApplicationDataUseCheckupCreateOrEditModal.react","OCDevManageApplicationDataUseCheckupRemoveFeatureModal.react","OCDevManageApplicationDataUseCheckupRequestListItem_application.graphql","OCDevManageApplicationDataUseCheckupRequestListItem_feature.graphql","RelayHooks","fbicon","geoMargin","getDisabledProps","getOCDevManageApplicationDataUseCheckupReviewableFeatureIcon","isStringNullOrEmpty","react","stylex","useOCDevManageApplicationDataUseCheckupDisabledMessage","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n=m||d("react"),o="https://app.dataprotocol.com/courses/185?utm_source=DUC&utm_medium=Landing_Page&utm_campaign=Meta_Quest_TDE";function a(a){var e,g=a.application;a=a.feature;var m=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageApplicationDataUseCheckupRequestListItem_application.graphql"),g),q=d("RelayHooks").useFragment(k!==void 0?k:k=b("OCDevManageApplicationDataUseCheckupRequestListItem_feature.graphql"),a);g=c("useOCDevUIModal")();var r=g.openModal;a=q.description;g=q.display_name;var s=q.id;e=(e=m.api_access_requests)==null?void 0:e.nodes[0];var t=e==null?void 0:(e=e.request_items)==null?void 0:e.nodes.find(function(a){return((a=a.reviewable_feature)==null?void 0:a.id)===s}),u=(e=m.reviewed_request_items)==null?void 0:(e=e.nodes[0])==null?void 0:(e=e.request_items)==null?void 0:e.nodes.find(function(a){return((a=a.reviewable_feature)==null?void 0:a.id)===s}),v=(e=t)!=null?e:u,w=Object.fromEntries(m.requestable_reviewable_features_details.map(function(a){var b=a.access_status;a=a.reviewable_feature;return(a==null?void 0:a.id)!=null?[a.id,b]:null}).filter(Boolean)),x=c("useOCDevManageApplicationDataUseCheckupDisabledMessage")(m,{feature:q});function y(a){r(n.jsx(c("OCDevManageApplicationDataUseCheckupCreateOrEditModal.react"),{application:m,disableFormPrefill:a,feature:q}))}function z(){var a,b,e,f;function g(){if(u!=null&&t==null&&c("isStringNullOrEmpty")(u==null?void 0:u.additional_comments))return{label:h._("Incomplete"),icon:n.jsx(c("GeoIcon.react"),{color:"warning",icon:d("fbicon")._(i("502060"),12)})};switch(t==null?void 0:t.item_type){case"ADD":return{label:h._("Added"),icon:n.jsx(c("GeoIcon.react"),{color:"success",icon:d("fbicon")._(i("487085"),12)})};case"UPDATE":return{label:h._("Changed"),icon:n.jsx(c("GeoIcon.react"),{color:"info",icon:d("fbicon")._(i("648667"),12)})};case"REMOVE":return{label:h._("Removed"),icon:n.jsx(c("GeoIcon.react"),{color:"error",icon:d("fbicon")._(i("494412"),12)})}}return null}g=g();var j=v!=null&&(v==null?void 0:v.item_type)!=="REMOVE";return n.jsxs(c("GeoFlexbox.react"),{gap:8,children:[g!=null&&n.jsxs(c("GeoFlexbox.react"),{alignItems:"center",gap:4,children:[g.icon,n.jsx(c("GeoHeading.react"),{"data-testid":void 0,level:4,children:g.label})]}),j?n.jsx(c("GeoButton.react"),babelHelpers["extends"]({"data-testid":void 0},c("getDisabledProps")(x),{label:h._("Edit"),onClick:function(){return y(!1)}})):n.jsx(c("GeoButton.react"),babelHelpers["extends"]({"data-testid":void 0},c("getDisabledProps")(x),{label:h._("u6dfbu52a0"),onClick:function(){return y(!0)}})),n.jsx(c("GeoButton.react"),babelHelpers["extends"]({"data-testid":void 0},c("getDisabledProps")(((g=x)!=null?g:!j)?h._("Only added features can be removed."):null),{icon:d("fbicon")._(i("483825"),16),isLabelHidden:!0,label:"Remove",onClick:function(){var a;d("OCDevManageApplicationDataUseCheckupClickLogger.react").logOCDataUseCheckupButtonClick({appID:(a=m.id)!=null?a:"",orgID:(a=(a=m.organization)==null?void 0:a.id)!=null?a:"",action:d("OCDevManageApplicationDataUseCheckupClickLogger.react").OCDataUseCheckupLoggerAction.DELETE_PROMPT,reviewableFeature:{id:(a=v==null?void 0:(a=v.reviewable_feature)==null?void 0:a.id)!=null?a:"",display_name:(a=v==null?void 0:(a=v.reviewable_feature)==null?void 0:a.display_name)!=null?a:""}});r(n.jsx(c("OCDevManageApplicationDataUseCheckupRemoveFeatureModal.react"),{application:m,featureID:s}))}}))]})}z.displayName=z.name+" [from "+f.id+"]";function A(){var a,b;a=w[(a=q.id)!=null?a:""];switch(a){case"APPROVED":return n.jsx(c("GeoPill.react"),{"data-testid":void 0,label:"Feature is active",status:"success",value:h._("Active")},"active");case"TEMPORARILY_GRANTED":return n.jsx(c("GeoTooltip.react"),{content:h._("Access to this feature is temporary for application development purposes. Once you submit your application for review, your Data Use Checkup Feature Requests will be reviewed simultaneously."),heading:h._("Temporary Access Granted"),children:n.jsx(c("GeoPill.react"),{label:"This feature is temporarily granted",status:"warning",value:h._("Temporarily Granted")},"temporarily_granted")});case"REVOKED":return n.jsx(c("GeoTooltip.react"),{content:h._("Access to this feature is revoked. To regain access, submit a new Data Use Checkup. Click to see more information on Data Use Checkups {course_link}.",[h._param("course_link",n.jsx(c("GeoLink.react"),{href:o,children:"here"}))]),heading:h._("Feature Access Revoked"),children:n.jsx(c("GeoPill.react"),{label:"Feature is revoked",status:"error",value:h._("Revoked")},"revoked")});default:return null}}return n.jsx(c("GeoSection.react"),{children:n.jsxs(c("GeoFlexbox.react"),{alignItems:"center",xstyle:c("geoMargin").vert8,children:[n.jsxs(c("GeoFlexbox.react"),{alignItems:"center",grow:1,children:[n.jsx("div",{className:(l||(l=c("stylex")))(c("geoMargin").end16),children:n.jsx(c("GeoIcon.react"),{icon:c("getOCDevManageApplicationDataUseCheckupReviewableFeatureIcon")(s)})}),n.jsx(c("GeoTextPairing.react"),{description:a,heading:h._("{Name of feature request item}",[h._param("Name of feature request item",n.jsxs(n.Fragment,{children:[g," ",A()]}))]),size:"header3"})]}),n.jsx("div",{className:l(p.buttonContainer,c("geoMargin").start12),children:z()})]})})}a.displayName=a.name+" [from "+f.id+"]";var p={buttonContainer:{whiteSpace:"xuxw1ft",$$css:!0}};g["default"]=a}),226);
-----
OCDevManageApplicationDataUseCheckupOptOutModalButton.react",["fbt","GeoButton.react","OCDevManageApplicationDataUseCheckupOptOutModal.react","OCDevManageApplicationDataUseCheckupOptOutModalButton_application.graphql","RelayHooks","getDisabledProps","react","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var e=a.application;a=a.label;var f=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationDataUseCheckupOptOutModalButton_application.graphql"),e);e=c("useOCDevUIModal")();var g=e.openModal;function j(){var a;if((f==null?void 0:(a=f.latest_duc_submission)==null?void 0:a.feedback_status)==="IN_REVIEW")return h._("Your Data Use Checkup is currently being reviewed. Please try again later to opt out of requested features.");else if((f==null?void 0:f.can_duc_opt_out)!==!0)return h._("u6839u636eu4f60u76eeu524du7684u529fu80fdu8bbfu95eeu6743u9650uff0cu4f60u7684u5e94u7528u4e0du7b26u5408u9000u51fau6570u636eu4f7fu7528u60c5u51b5u68c0u67e5u7684u8d44u683cu3002u8bf7u786eu4fddu4f60u7684u5e94u7528u6709u7b26u5408u8d44u683cu7684u529fu80fdu3002");return null}return k.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(j()),{label:(e=a)!=null?e:h._("u9009u62e9u9000u51fa"),variant:"default",onClick:function(){return f!=null&&g(k.jsx(c("OCDevManageApplicationDataUseCheckupOptOutModal.react"),{application:f}))}}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationCreateScheduledBuildReleaseModal.react",["fbt","GeoCheckboxInput.react","GeoDateTimeInput.react","GeoFlexbox.react","GeoMediaItem.react","GeoSelector.react","GeoSelectorItem.react","LocalDate","LocalDateTime","OCDevManageApplicationBinaryStatusIcon.react","OCDevManageApplicationCreateScheduledBuildReleaseModalMutation.graphql","OCDevManageApplicationCreateScheduledBuildReleaseModal_application.graphql","OCDevManageApplicationCreateScheduledBuildReleaseModal_binary.graphql","OCDevManageAudienceAttestationNotice.react","OCDevUIFormModalCard.react","OCDevWebClientEventsLogger","RelayHooks","Timezone","TimezoneNamesData","asyncToGeneratorRuntime","getDisabledProps","getOCDevManageScheduledReleaseBinaryDisabledMessage","gkx","react","useOCDevManageAppAudienceAttestation","useOCDevUICommitMutation","useOCDevWebClientEventsBaseLogger.react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react"));e=l;var n=e.useEffect,o=e.useState;d("Timezone").registerNamesModule(c("TimezoneNamesData"));function a(a){var e=a.application,f=a.binary,g=a.surfaceName,l=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationCreateScheduledBuildReleaseModal_application.graphql"),e),p=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageApplicationCreateScheduledBuildReleaseModal_binary.graphql"),f);f=l==null?void 0:(a=l.all_revisions)==null?void 0:(e=a.nodes)==null?void 0:e.find(function(a){a=a.release_type;return a==="SCHEDULED"});a=l==null?void 0:(a=l.all_revisions)==null?void 0:(e=a.nodes)==null?void 0:e.find(function(a){a=a.release_status;return a==="RELEASED"});var q=l==null?void 0:(e=l.live_release_channel)==null?void 0:e.latest_supported_binary;function r(){var a;return p!=null?[p]:(l==null?void 0:(a=l.live_release_channel)==null?void 0:(a=a.possible_binaries)==null?void 0:a.nodes)||[]}e=r();var s=d("Timezone").getEnvironmentTimezoneID();r=d("Timezone").getName(s);var t=o(),u=t[0],v=t[1];t=o((t=f==null?void 0:(t=f.binary)==null?void 0:t.is_pre_download_enabled)!=null?t:!1);var w=t[0];t=t[1];function x(){if((p==null?void 0:p.id)!=null)return p.id;if((q==null?void 0:q.status)==="DRAFT")return q==null?void 0:q.id}x=o(x());var y=x[0];x=x[1];var z=e.find(function(a){a=a.id;return a===y}),A=c("useOCDevManageAppAudienceAttestation")(l,{binary:z});A=A.attachedAttestation;var B=c("useOCDevUICommitMutation")(k!==void 0?k:k=b("OCDevManageApplicationCreateScheduledBuildReleaseModalMutation.graphql")),C=c("useOCDevWebClientEventsBaseLogger.react")();n(function(){var a;C({action:d("OCDevWebClientEventsLogger").OCDevWebActionEnum.CREATE_SCHEDULED_BUILD_RELEASE_MODAL_VIEW,target_name:g,extra_data:{app_id:(a=l.id)!=null?a:""}})},[l.id,C,g]);if((f==null?void 0:f.release_status)==="SCHEDULED")return null;if(a==null)return null;function D(){return E.apply(this,arguments)}function E(){E=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;C({action:d("OCDevWebClientEventsLogger").OCDevWebActionEnum.CREATE_SCHEDULED_BUILD_RELEASE_MODAL_SUBMIT,target_name:g,extra_data:{app_id:(a=l.id)!=null?a:"",build_id:(a=y)!=null?a:"",is_pre_download_enabled:w?"true":"false"}});yield B({input:{release_date:(a=u)!=null?a:0,binary_id:(a=y)!=null?a:"",is_predownload_enabled:w}},{closeModalOnSuccess:!0,successToast:{heading:h._("Your build has been scheduled for release on {date}",[h._param("date",c("LocalDateTime").fromInstant((a=u)!=null?a:0,s).format("M d, Y g:ia"))])}})});return E.apply(this,arguments)}f=c("gkx")("25678");a=f?m.jsx(c("GeoCheckboxInput.react"),{description:h._("When enabled, the build may be automatically downloaded in the background prior to the scheduled release date. This will allow users to skip the download phase and instantly install once released."),label:h._("Allow pre-downloading this build"),value:w,onChange:t}):null;f=l.requires_audience_attestation===!0&&A==null;t=y===null?h._("Please select a build to schedule."):f?h._("Please complete the self-certification survey before publishing your build."):null;return m.jsx(c("OCDevUIFormModalCard.react"),{description:h._("Select a date and time at which your build will be released to the Production channel."),disabledTooltip:t,forceSubmitDisabled:t!=null,heading:h._("Schedule Build Release"),onSubmit:D,children:m.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:16,children:[m.jsx(c("OCDevManageAudienceAttestationNotice.react"),{application:l,binary:z}),m.jsx(c("GeoSelector.react"),{isReadOnly:p!=null,label:h._("Build"),placeholder:h._("Select a build for release"),value:y,onChange:x,children:e==null?void 0:e.map(function(a){var b;return m.createElement(c("GeoSelectorItem.react"),babelHelpers["extends"]({},c("getDisabledProps")(c("getOCDevManageScheduledReleaseBinaryDisabledMessage")(a)),{description:h._("Code: {version_code}",[h._param("version_code",a.version_code)]),key:a.id,label:(b=a.version)!=null?b:"",media:m.jsx(c("GeoMediaItem.react"),{fit:"cover",media:m.jsx(c("OCDevManageApplicationBinaryStatusIcon.react"),{binary:a}),ratio:"circle",size:16}),value:a.id}))})}),m.jsx(c("GeoDateTimeInput.react"),{dateRestraint:function(a){return a.isAfterOrEqual(c("LocalDate").fromInstant(Date.now()/1e3,s))},label:h._("u53d1u5e03u65e5u671f"),timezoneLabel:r,value:u!=null?c("LocalDateTime").fromInstant(u,s):null,onChange:function(a){return v(a==null?void 0:a.toInstant(s))}}),a]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationSubmissionScheduleReleaseDateModal.react",["fbt","GeoCheckboxInput.react","GeoDateTimeInput.react","GeoFlexbox.react","GeoHeading.react","GeoNotice.react","GeoSelector.react","GeoSelectorItem.react","GeoStatusIndicator.react","GeoSwitch.react","LocalDate","LocalDateTime","OCDevManageApplicationBinaryTableCell.react","OCDevManageApplicationSubmissionName.react","OCDevManageApplicationSubmissionScheduleReleaseDateModalMutation.graphql","OCDevManageApplicationSubmissionScheduleReleaseDateModalSetPredownloadMutation.graphql","OCDevManageApplicationSubmissionScheduleReleaseDateModal_application.graphql","OCDevManageApplicationSubmissionScheduleReleaseDisabledMessage","OCDevUIDateTimeInputValidator.react","OCDevUIFormModalCard.react","OCDevUIValidatorCommonErrors","RelayHooks","Timezone","TimezoneNamesData","XOCReleaseStatus.oculus","asyncToGeneratorRuntime","geoMargin","getDisabledProps","gkx","react","stylex","useOCDevUICommitMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n=m||(m=d("react")),o=m.useState;d("Timezone").registerNamesModule(c("TimezoneNamesData"));function a(a){var e,f=a.application,g=a.chosenSubmissionID;g=g===void 0?"":g;var m=a.useInternal;m=m===void 0?!1:m;a=a.usePST;a=a===void 0?!1:a;var p=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationSubmissionScheduleReleaseDateModal_application.graphql"),f),q=((f=p==null?void 0:(f=p.revisions)==null?void 0:f.nodes)!=null?f:[]).filter(function(a){a=a.review_status;return a==="APPROVED"});f=q.find(function(a){var b=a.is_blocked_by_pre_order,d=a.release_status,e=a.release_type;a=a.status;return c("OCDevManageApplicationSubmissionScheduleReleaseDisabledMessage")(d,e,a,b)==null});f=o(g!==""?g:f==null?void 0:f.id);var r=f[0],s=f[1],t=q.find(function(a){a=a.id;return a===r}),u=(f=t==null?void 0:t.is_initial_release)!=null?f:!1;f=c("OCDevManageApplicationSubmissionScheduleReleaseDisabledMessage")(t==null?void 0:t.release_status,t==null?void 0:t.release_type,t==null?void 0:t.status,t==null?void 0:t.is_blocked_by_pre_order);var v=t==null?void 0:t.release_status,w=(e=t==null?void 0:(e=t.previous_revision)==null?void 0:e.release_date)!=null?e:0,x=(e=t==null?void 0:(e=t.previous_revision)==null?void 0:e.offer_type)!=null?e:null,y=(e=t==null?void 0:(e=t.next_revision)==null?void 0:e.release_date)!=null?e:Infinity,z=a?d("Timezone").PST8PDT:d("Timezone").getEnvironmentTimezoneID();e=d("Timezone").getName(z);a=Date.now()/1e3;a=a<=w?h._("This submission must be scheduled because a previous submission has not released yet."):null;function A(b){var a=q.find(function(a){a=a.id;return a===b});a=(a=a==null?void 0:a.release_date)!=null?a:0;if(a!==0)return a;a=(a=p==null?void 0:(a=p.reviewable_offer_groups)==null?void 0:(a=a.nodes)==null?void 0:(a=a.find(function(a){a=a.is_coming_soon_or_preorder;return a===!0}))==null?void 0:(a=a.worldwide_offer)==null?void 0:a.release_time)!=null?a:0;return u&&a!==0?a:null}function B(b){var a=q.find(function(a){a=a.id;return a===b});return(a=a==null?void 0:(a=a.binary)==null?void 0:a.is_pre_download_enabled)!=null?a:!1}var C=o(A(r)),D=C[0],E=C[1];C=o(v===c("XOCReleaseStatus.oculus").SCHEDULED||a!=null);var F=C[0],G=C[1];C=o(B(r));var H=C[0],I=C[1],J=t==null?void 0:t.binary,K=c("gkx")("25678");function L(){var a;switch((a=t==null?void 0:t.offer_type)!=null?a:null){case"APPSTORE_COMINGSOON_OFFER":return h._("Choose a date and time to publish your coming soon listing");case"APPSTORE_PREORDER_OFFER":return h._("Choose a date and time to publish your pre-order listing");case"APPSTORE_OFFER":return h._("Choose a date and time to publish your app");default:return h._("Choose a date and time to publish your listing")}}var M=c("useOCDevUICommitMutation")(j!==void 0?j:j=b("OCDevManageApplicationSubmissionScheduleReleaseDateModalMutation.graphql")),N=c("useOCDevUICommitMutation")(k!==void 0?k:k=b("OCDevManageApplicationSubmissionScheduleReleaseDateModalSetPredownloadMutation.graphql"));function O(){return P.apply(this,arguments)}function P(){P=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=!1;if(J!=null&&K){var b;a=!0;yield N({input:{app_binary_id:(b=J.id)!=null?b:"",is_enabled:H}})}yield M({input:{application_submission_id:(b=t==null?void 0:t.id)!=null?b:"",release_date:F?(b=D)!=null?b:0:Math.floor(Date.now()/1e3)}},{closeModalOnSuccess:!0,refetchOnSuccess:a,successToast:{heading:F?h._("{=m0} was scheduled",[h._implicitParam("=m0",n.jsx("b",{children:h._("{submission name}",[h._param("submission name",(b=t==null?void 0:t.name_with_fallback)!=null?b:"Submission")])}))]):h._("{=m0} was released",[h._implicitParam("=m0",n.jsx("b",{children:h._("{submission name}",[h._param("submission name",(a=t==null?void 0:t.name_with_fallback)!=null?a:"Submission")])}))]),description:F?h._("Your submission release has been scheduled for {date}",[h._param("date",c("LocalDateTime").fromInstant((b=D)!=null?b:0,z).format("M d, Y g:ia"))]):h._("Your app submission has been published to the Meta Quest Store.")}})});return P.apply(this,arguments)}function Q(){if(D==null)return d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE;if(Dy)return h._("Please choose a date before your next submission release date ({date}).",[h._param("date",c("LocalDateTime").fromInstant(y,z).format("M d, Y g:ia"))])}C=t!=null?n.jsxs("div",{className:(l||(l=c("stylex")))(c("geoMargin").bottom16),children:[n.jsx(c("GeoHeading.react"),{level:4,children:h._("u540du79f0")}),n.jsx(c("OCDevManageApplicationSubmissionName.react"),{showFullRelease:!0,submission:t})]}):null;var R=J!=null?n.jsx("div",{className:(l||(l=c("stylex")))(c("geoMargin").bottom16),children:n.jsx(c("OCDevManageApplicationBinaryTableCell.react"),{binary:J})}):null,S=J!=null&&K?n.jsx("div",{className:(l||(l=c("stylex")))(c("geoMargin").top16),children:n.jsx(c("GeoCheckboxInput.react"),{description:h._("When enabled, the build may be automatically downloaded in the background prior to the scheduled release date. This will allow users to skip the download phase and instantly install once released."),label:h._("Allow pre-downloading this build"),value:H,onChange:I})}):null,T=F?v===c("XOCReleaseStatus.oculus").SCHEDULED?h._("Update release"):h._("Schedule release"):h._("Release now");return n.jsxs(c("OCDevUIFormModalCard.react"),{disabledTooltip:m?null:f,forceSubmitDisabled:f!=null&&!m,heading:v===c("XOCReleaseStatus.oculus").PENDING?h._("Set up release"):h._("Update release"),submitButtonLabel:T,onSubmit:O,children:[g===""?n.jsx(c("GeoSelector.react"),{label:h._("Select a submission."),value:r,xstyle:c("geoMargin").bottom8,onChange:function(a){s(a),E(A(a)),I(B(a))},children:q.map(function(a){var b;return n.createElement(c("GeoSelectorItem.react"),babelHelpers["extends"]({},c("getDisabledProps")(c("OCDevManageApplicationSubmissionScheduleReleaseDisabledMessage")(a.release_status,a.release_type,a.status,a.is_blocked_by_pre_order)),{key:a.id,label:(b=a.name_with_fallback)!=null?b:"",statusIndicator:n.jsx(c("GeoStatusIndicator.react"),{status:a.release_status===c("XOCReleaseStatus.oculus").SCHEDULED?"warning":a.release_status===c("XOCReleaseStatus.oculus").RELEASED?"active":"inactive"}),value:a.id}))})}):null,C,R,n.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:12,children:[n.jsx(c("GeoSwitch.react"),{description:L(),disabledMessage:a,isDisabled:a!=null,label:h._("{=m0}",[h._implicitParam("=m0",n.jsx("b",{children:h._("Schedule release")}))]),labelPosition:"prefix",value:F,onChange:function(a){G(a)}}),F&&n.jsx(c("OCDevUIDateTimeInputValidator.react"),{validateDateField:Q,children:n.jsx(c("GeoDateTimeInput.react"),{dateRestraint:function(a){return a.isAfterOrEqual(c("LocalDate").fromInstant(Date.now()/1e3,z))&&a.isBeforeOrEqual(c("LocalDate").today(z).addYears(5))&&(D!=null&&u&&x==="APPSTORE_PREORDER_OFFER"?a.isAfterOrEqual(c("LocalDate").today(z).addWeeks(2)):!0)},description:D!=null?h._("Release date can"t be moved to an earlier date."):null,label:h._("Release date"),timezoneLabel:e,value:D!=null?c("LocalDateTime").fromInstant(D,z):null,onChange:function(a){return E(a==null?void 0:a.toInstant(z))}})})]}),S,u?n.jsx(c("GeoNotice.react"),{status:"warning",xstyle:c("geoMargin").top12,children:h._("Users can currently add your application to their wishlist. Choose the date and time your application will be available for download.")}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationSubmissionsTableScheduleReleaseMenuItem.react",["fbt","GeoMenuItem.react","OCDevManageApplicationSubmissionScheduleReleaseDateModal.react","OCDevManageApplicationSubmissionScheduleReleaseDisabledMessage","OCDevManageApplicationSubmissionsTableScheduleReleaseMenuItem_submission.graphql","RelayHooks","getDisabledProps","react","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){a=a.submission;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationSubmissionsTableScheduleReleaseMenuItem_submission.graphql"),a);a=c("useOCDevUIModal")();var f=a.openModal;a=e.release_status==="PENDING"?h._("Set up release"):h._("Update release");return k.jsx(c("GeoMenuItem.react"),babelHelpers["extends"]({},c("getDisabledProps")(c("OCDevManageApplicationSubmissionScheduleReleaseDisabledMessage")(e==null?void 0:e.release_status,e==null?void 0:e.release_type,e==null?void 0:e.status,e==null?void 0:e.is_blocked_by_pre_order)),{label:a,onClick:function(){var a;return f(k.jsx(c("OCDevManageApplicationSubmissionScheduleReleaseDateModal.react"),{application:e.application,chosenSubmissionID:(a=e.id)!=null?a:""}))}}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationPricingExperimentEndDateField.react",["fbt","GeoDatePicker.react","OCDevUIFormInputValidator.react","OCDevUIValidatorCommonErrors","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=30,l=h._("u5b9eu9a8cu7ed3u675fu65e5u671f");function a(a){var b=a.disabledMessage,e=a.formState;a=a.onChange;var f=e.experimentEndDate,g=e.experimentStartDate;e=e.minimumExperimentLength;var h=(e=e)!=null?e:k;return j.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return f==null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:j.jsx(c("GeoDatePicker.react"),babelHelpers["extends"]({},c("getDisabledProps")(b),{focusDate:g!=null?g.addDays(h):null,label:l,restraint:function(a){return a!=null&&(g!=null?a.isAfter(g.addDays(h))&&a.isBeforeOrEqual(g.addDays(90)):!0)},value:f,onChange:a}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationPricingExperimentStartDateField.react",["fbt","GeoDatePicker.react","LocalDate","OCDevManageApplicationPricingExperimentStartDateField_application.graphql","OCDevManageApplicationPricingExperimentViewUtils","OCDevUIFormInputValidator.react","RelayHooks","Timezone","getDisabledProps","react","useOCContentInfraStoreGetPriceChangeEligibility.react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=30,m=h._("u5b9eu9a8cu5f00u59cbu65e5u671f");function n(a){var e=a.app,f=a.disabledMessage,g=a.formState;a=a.onChange;e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationPricingExperimentStartDateField_application.graphql"),e);var j=g.experimentEndDate,n=g.experimentStartDate;g=g.minimumExperimentLength;var o=(g=g)!=null?g:l;function p(a,b){return a==null||b==null?!1:a.addDays(o).isAfter(b)}var q=c("useOCContentInfraStoreGetPriceChangeEligibility.react")({appID:(g=e==null?void 0:e.id)!=null?g:"",event_start_ts:n!=null?n.toInstant(d("Timezone").PST8PDT):null,event_end_ts:j!=null?j.toInstant(d("Timezone").PST8PDT):null,changeType:"MSRP_EXPERIMENT"});e=e==null?void 0:(g=e.price_change_eligibility)==null?void 0:g.next_eligible_timestamp;g=c("LocalDate").today(d("Timezone").PST8PDT).addDays(3);var r=e!=null&&e>g.toInstant(d("Timezone").PST8PDT)?c("LocalDate").fromInstant(e,d("Timezone").PST8PDT):g;return k.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){if(n==null)return h._("u5fc5u987bu9009u62e9u5f00u59cbu65e5u671fu3002");return p(n,j)?h._("u5b9eu9a8cu5f00u59cbu65e5u671fu6bd4u7ed3u675fu65e5u671fu5fc5u987bu81f3u5c11u65e9{minimum-days}u5929u3002",[h._param("minimum-days",o)]):d("OCDevManageApplicationPricingExperimentViewUtils").getDateSelectorErrorMessage(q)},children:k.jsx(c("GeoDatePicker.react"),babelHelpers["extends"]({},c("getDisabledProps")(f),{focusDate:r,label:m,restraint:function(a){return a!=null&&a.toInstant(d("Timezone").PST8PDT)>r.toInstant(d("Timezone").PST8PDT)},value:n,onChange:a}))})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=a.app,d=a.disabledMessage,e=a.formState;a=a.onChange;return k.jsx(k.Suspense,{fallback:k.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return"Loading"},children:k.jsx(c("GeoDatePicker.react"),{isDisabled:!0,label:m,value:e.experimentStartDate,onChange:function(){}})}),children:k.jsx(n,{app:b,disabledMessage:d,formState:e,onChange:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationDelistButton.react",["fbt","GeoButton.react","OCDevManageApplicationDelistButton_application.graphql","OCDevManageApplicationDelistModal.react","OCDevManageApplicationReleaseTimelineEvents","RelayHooks","getDisabledProps","react","useOCDevManageApplicationReleaseLatestCompletedTimelineEvent","useOCDevUIModal"],(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=c("useOCDevUIModal")(),f=e.openModal,g=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationDelistButton_application.graphql"),a),j=(e=g.revisionsIncludingVariantMetadataRevisions)==null?void 0:(a=e.nodes)==null?void 0:a[0],l=c("useOCDevManageApplicationReleaseLatestCompletedTimelineEvent")(g);e=function(){var a;if(((a=g.organization)==null?void 0:a.is_viewer_org_admin)!==!0)return h._("You do not have permission to remove the app listing");if(g.is_approved!==!0)return h._("This application is not approved");if((j==null?void 0:j.status)!=="APPROVED")return h._("This application has changes pending review");if(g.item_bundles.length>0)return h._("Please make sure this application is not part of a bundle before removing its listing");a=(a=(a=g.scheduled_offers)==null?void 0:(a=a.nodes)==null?void 0:a.filter(function(a){return a.offer_type==="XBUY_OFFER"}))!=null?a:[];if(a.length>0)return h._("Please make sure this application does not have cross buy offers");return l!==d("OCDevManageApplicationReleaseTimelineEvents").OCDevManageApplicationReleaseTimelineEvent.RELEASED?h._("Application is not yet released"):null};return k.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(e()),{label:h._("Remove app listing"),tooltip:h._("Remove your app listing from the Meta Quest Store"),variant:"flat",onClick:function(){return f(k.jsx(c("OCDevManageApplicationDelistModal.react"),{application:g}))}}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageComplianceActionResolutionButtonBase.react",["ix","GeoButton.react","GeoTooltip.react","OCDevManageComplianceContext","fbicon","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useContext;function a(a){var b=a.actionItemId,e=a.buttonDestination,f=e===void 0?d("OCDevManageComplianceContext").OverlayType.PROGRAM:e;e=a.disabledMessage;var g=a.href,i=a.variant;i=i===void 0?"primary":i;var m=a.label,n=a.onClickCallback;a=a.tooltipContent;var o=l(d("OCDevManageComplianceContext").OCDevManageComplianceContext),p=o.setActionItemOverlay,q=k(function(a){p({actionItemId:b,overlayType:a}),n&&n()},[b,n,p]);return g!=null?j.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(e),{href:g,icon:d("fbicon")._(h("509930"),16),label:m,target:"_blank",tooltip:a==null?null:j.jsx(c("GeoTooltip.react"),{content:a}),variant:i,onClick:function(){return q(d("OCDevManageComplianceContext").OverlayType.PROGRAM)}})):j.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(e),{label:m,tooltip:a==null?null:j.jsx(c("GeoTooltip.react"),{content:a}),variant:i,onClick:function(){return q(f)}}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevManageApplicationBinaryScheduleReleaseMenuItem.react",["fbt","GeoMenuItem.react","OCDevManageApplicationBinaryScheduleReleaseMenuItem_application.graphql","OCDevManageApplicationBinaryScheduleReleaseMenuItem_binary.graphql","OCDevManageApplicationCreateScheduledBuildReleaseModal.react","RelayHooks","getDisabledProps","getOCDevManageScheduledReleaseBinaryDisabledMessage","react","useOCDevManageScheduledReleaseDisabledMessage","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react");function a(a){var e=a.application;a=a.binary;var f=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationBinaryScheduleReleaseMenuItem_application.graphql"),e),g=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageApplicationBinaryScheduleReleaseMenuItem_binary.graphql"),a);e=c("useOCDevManageScheduledReleaseDisabledMessage")(f);a=c("getOCDevManageScheduledReleaseBinaryDisabledMessage")(g);var k=c("useOCDevUIModal")(),m=k.openModal;return l.jsx(c("GeoMenuItem.react"),babelHelpers["extends"]({},c("getDisabledProps")((k=e)!=null?k:a),{label:h._("Schedule build release"),onClick:function(){return m(l.jsx(c("OCDevManageApplicationCreateScheduledBuildReleaseModal.react"),{application:f,binary:g,surfaceName:"build_management_view"}))}}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevUserSuspensionOnboardingView.react",["fbt","ix","GeoButton.react","GeoFlexbox.react","GeoHeading.react","GeoText.react","Image.react","OCDevManagePlatformServicesAbuseReportingCustomizeRoute","OCDevUserSuspensionOnboardingView_application.graphql","OCDevWebClientEventsBaseLogger.log","OCDevWebClientEventsLogger","OCNavigatorHooks","RelayHooks","geoMargin","getDisabledProps","react","useOCDevManagePermissionDisabledMessage"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m=h._("u4f60u6ca1u6709u66f4u65b0u7684u6743u9650");function a(a){a=a.application;a=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevUserSuspensionOnboardingView_application.graphql"),a);var e=d("OCNavigatorHooks").useContextRouter(),f=e.history;e=c("useOCDevManagePermissionDisabledMessage")(a==null?void 0:a.organization,["PLATFORM_SERVICES","MANAGE_APPLICATION"])===null;if((a==null?void 0:a.id)==null)return null;var g=a.id;c("OCDevWebClientEventsBaseLogger.log")({action:d("OCDevWebClientEventsLogger").OCDevWebActionEnum.PLATFORM_SERVICES_USER_SUSPENSION_ONBOARDING_VIEW_SEEN,target_id:g});return l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"column",xstyle:n.emptyState,children:[l.jsx(c("Image.react"),{className:"xdj266r x11i5rnm x13ihpsm x1mh8g0r x1lq5wgf xgqcy7u x5pf9jr xo71vjh",src:i("339173"),width:"100%"}),l.jsx(c("GeoHeading.react"),{level:1,children:h._("u7ba1u7406u7528u6237")}),l.jsx(c("GeoText.react"),{children:h._("u5ba1u6838u7528u6237u63d0u4ea4u7684u4e3eu62a5u5e76u9650u5236u8fddu89c4u7528u6237u3002")}),l.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(e?null:m),{label:h._("u5f00u59cb"),variant:"primary",xstyle:[c("geoMargin").top24,c("geoMargin").end8],onClick:function(){f.push(c("OCDevManagePlatformServicesAbuseReportingCustomizeRoute").getURI({applicationID:g}).getPath(),{shouldIgnoreNavigationBlock:!0})}}))]})}a.displayName=a.name+" [from "+f.id+"]";var n={emptyState:{height:"x1gnyf4w",$$css:!0},image:{marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"x13ihpsm",marginStart:"x1mh8g0r",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x5pf9jr",borderBottomStartRadius:"xo71vjh",$$css:!0}};g["default"]=a}),226);
-----
OCDevManageAddOnSubmissionReleaseTypeField.react",["fbt","GeoSelector.react","GeoSelectorItem.react","OCDevManageAddOnSubmissionReleaseTypeField_addOn.graphql","RelayHooks","XOCReleaseType.oculus","geoMargin","getDisabledProps","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.addOn,f=a.onChange;a=a.value;e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageAddOnSubmissionReleaseTypeField_addOn.graphql"),e);return k.jsx(c("GeoSelector.react"),{description:h._("Determines how your submission will be released to your users once approved by our team."),label:h._("Release Type"),value:a,xstyle:c("geoMargin").bottom8,onChange:f,children:a===c("XOCReleaseType.oculus").MANAGED?k.jsx(c("GeoSelectorItem.react"),{description:h._("Our team will work with you to set a release date for your add-on. You can indicate your preferred date in the "Notes for the Reviewer" field."),label:h._("Meta Managed Release"),value:c("XOCReleaseType.oculus").MANAGED}):[k.createElement(c("GeoSelectorItem.react"),babelHelpers["extends"]({},c("getDisabledProps")(((a=(f=e.pending_revisions)==null?void 0:f.count_up_to)!=null?a:0)!==0?h._("You cannot select this release type until your previous submission has released."):null),{description:h._("Allow users to download your add-on as soon as it is approved."),key:"approval",label:h._("Release on Approval"),value:c("XOCReleaseType.oculus").ON_APPROVAL})),k.jsx(c("GeoSelectorItem.react"),{description:h._("After your add-on is approved, choose a release date from your add-on dashboard."),label:h._("Developer Scheduled Release"),value:c("XOCReleaseType.oculus").SCHEDULED},"scheduled")]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevManageApplicationSubmissionMetadataPreview.react",["fbt","GeoButton.react","GeoButtonGroup.react","GeoFlexbox.react","GeoLink.react","GeoText.react","GeoTextPairing.react","OCDevManageApplicationSubmissionMetadataPreviewEndMutation.graphql","OCDevManageApplicationSubmissionMetadataPreviewStartMutation.graphql","OCDevManageApplicationSubmissionMetadataPreview_pdpMetadata.graphql","OCDevManageConfirmationModal.react","OCDevUIAsyncButton.react","OCDevUICountdownTimer.react","OCDevUISpacedLayout.react","OCExperiencesProductTypeHelper","OCXWwwExperiencesPDPController","RelayHooks","URI","asyncToGeneratorRuntime","geoMargin","getDisabledProps","react","useOCDevUICommitMutation","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n=m||(m=d("react")),o=m.useState;function a(a){var e;a=a.pdpMetadata;a=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationSubmissionMetadataPreview_pdpMetadata.graphql"),a);var f=c("useOCDevUICommitMutation")(j!==void 0?j:j=b("OCDevManageApplicationSubmissionMetadataPreviewStartMutation.graphql")),g=c("useOCDevUICommitMutation")(k!==void 0?k:k=b("OCDevManageApplicationSubmissionMetadataPreviewEndMutation.graphql")),m=c("useOCDevUIModal")(),p=m.openModal;m=o(!1);var q=m[0],r=m[1],s=(m=a==null?void 0:a.id)!=null?m:"";m=a==null?void 0:a.application;var t=(m==null?void 0:m.is_concept)===!0;e=(e=a==null?void 0:a.pdp_preview_expiration_time)!=null?e:0;var u=e>Date.now()/1e3,v=(a=a==null?void 0:(a=a.application_pdp_override_for_user)==null?void 0:a.id)!=null?a:"";a=(a=m==null?void 0:m.platform)!=null?a:"";m=(m=m==null?void 0:m.id)!=null?m:"";var w=a!==""&&m!==""?c("OCXWwwExperiencesPDPController").getURIBuilder().setEnum("store",d("OCExperiencesProductTypeHelper").platformToProductType(a)).setParams({require_login:!0}).setFBID("item_id",m).getURI().setSubdomain("www").toString():"";function x(){if(s==="")return h._("Please make and save a change to your App Metadata before previewing it");return u?h._("This submission"s metadata is already being previewed"):null}function y(){return z.apply(this,arguments)}function z(){z=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield f({input:{pdp_id:s}},{closeModalOnSuccess:!0}),w!==""&&(l||(l=c("URI"))).goURIOnNewWindow(w)});return z.apply(this,arguments)}function A(){return B.apply(this,arguments)}function B(){B=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield g({input:{application_pdp_override_id:v}})});return B.apply(this,arguments)}return n.jsxs(c("OCDevUISpacedLayout.react"),{children:[n.jsx(c("GeoTextPairing.react"),{description:h._("Preview what your metadata looks like in {app lab} for the next 3 hours. {=m6} to visit your app"s webpage.",[h._param("app lab",t?"App lab":"the Store"),h._implicitParam("=m6",n.jsx(c("GeoLink.react"),{href:w,target:"_blank",children:h._("Click here")}))]),heading:h._("Metadata Preview"),size:"header2"}),n.jsxs(c("GeoFlexbox.react"),{alignItems:"center",xstyle:c("geoMargin").bottom8,children:[n.jsxs(c("GeoButtonGroup.react"),{xstyle:c("geoMargin").end16,children:[n.jsx(c("GeoButton.react"),babelHelpers["extends"]({},c("getDisabledProps")(x()),{label:h._("Start Preview"),variant:"creation",onClick:function(){return p(n.jsx(c("OCDevManageConfirmationModal.react"),{heading:h._("Start Metadata Preview"),submitButtonLabel:h._("Start Preview"),onSubmit:y,children:n.jsx(c("GeoText.react"),{children:h._("You {=m1} to the Meta Quest website with the {=m3} you are currently logged into this Developer Dashboard with. Save your metadata changes here and refresh your app"s webpage to see it updated. Only changes made in the {=m5} tab of this submission will be reflected in the preview (no {=m8} or {=m10} changes). This preview is only visible to you, and starting it will end your other ongoing previews for this application.",[h._implicitParam("=m1",n.jsx("b",{children:h._("must be logged-in")})),h._implicitParam("=m3",n.jsx("b",{children:h._("same account")})),h._implicitParam("=m5",n.jsx("b",{children:h._("App Metadata")})),h._implicitParam("=m8",n.jsx("b",{children:h._("Pricing")})),h._implicitParam("=m10",n.jsx("b",{children:h._("Build")}))])})}))}})),u?n.jsx(c("OCDevUIAsyncButton.react"),{label:h._("End"),variant:"default",onClick:A}):null]}),u&&n.jsx(c("OCDevUICountdownTimer.react"),{expirationTime:u?e:0,isRunning:u,showLeadingZeros:!1,onExpire:function(){r(!q)}})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevManageOrganizationCampaignsTable.react",["fbt","GeoDropdownMenu.react","GeoFlexbox.react","GeoMediaItem.react","GeoTable.react","GeoTableRowAction.react","GeoTableWidth","GeoText.react","Image.react","OCDevManageOrganizationCampaignConversionProgressBar.react","OCDevManageOrganizationCampaignRoute","OCDevManageOrganizationCampaignSection","OCDevManageOrganizationCampaignStatus.react","OCDevManageOrganizationCampaignsTableDeleteMenuItem.react","OCDevManageOrganizationCampaignsTablePauseResumeMenuItem.react","OCDevManageOrganizationCampaignsTable_organization.graphql","OCNavigatorHooks","RelayHooks","createGeoTableDataSource","formatDate","geoMargin","getDisabledProps","react","useGeoTableRowActivation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useMemo,m=50,n=120;function a(a){var e,f;a=a.organization;a=d("RelayHooks").usePaginationFragment(i!==void 0?i:i=b("OCDevManageOrganizationCampaignsTable_organization.graphql"),a);var g=a.data,j=a.hasNext,o=a.isLoadingNext;a=a.loadNext;e=(e=(e=g.campaigns)==null?void 0:(e=e.edges)==null?void 0:(e=e.map(function(a){a=a.node;return a}))==null?void 0:e.filter(Boolean))!=null?e:[];f=(f=d("OCNavigatorHooks").useNullableContextRouter())!=null?f:{};var p=f.history;f=c("useGeoTableRowActivation")({activeItemIDs:new Set(),getIDForItem:function(){},onActivate:function(a){var b;a=a.item;var d=a.id;a=a.review_status;return p==null?void 0:p.push(c("OCDevManageOrganizationCampaignRoute").getURI({organizationID:(b=g==null?void 0:g.id)!=null?b:"",campaignID:(b=d)!=null?b:"",campaignSection:a==="APPROVED"?c("OCDevManageOrganizationCampaignSection").RESULTS:c("OCDevManageOrganizationCampaignSection").SETUP}).getPath())}});var q=l(function(){var a;return[{key:"Name",header:h._("Name"),cell:function(a){a=a.item.display_name_with_fallback;return k.jsx(c("GeoTableRowAction.react"),{children:a})},width:(a=d("GeoTableWidth")).proportional(1)},{key:"App",header:h._("App"),cell:function(a){var b;a=a.item.item;return k.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[k.jsx(c("GeoMediaItem.react"),{fit:"contain",media:k.jsx(c("Image.react"),{src:a==null?void 0:(b=a.icon_image)==null?void 0:b.uri}),ratio:"circle",size:24,xstyle:c("geoMargin").end8}),k.jsx(c("GeoText.react"),{children:(b=a==null?void 0:a.display_name)!=null?b:"--"})]})},width:a.proportional(1)},{key:"Status",header:h._("Status"),cell:function(a){a=a.item;return k.jsx(c("OCDevManageOrganizationCampaignStatus.react"),{campaign:a})},width:a.pixel(n)},{key:"Start Time",header:h._("Start Time"),cell:function(a){a=a.item.start_time;return a!=null&&a>0?c("formatDate")(a,"M d, Y"):"--"},width:a.proportional(.5,{minWidth:n})},{key:"End Time",header:h._("End Time"),cell:function(a){a=a.item.end_time;return a!=null&&a>0?c("formatDate")(a,"M d, Y"):"--"},width:a.proportional(.5,{minWidth:n})},{key:"Codes sent",header:h._("Codes sent"),cell:function(a){a=a.item.analytics;return((a=a==null?void 0:a.reach)!=null?a:"--").toString()},width:a.pixel(n)},{key:"Conversions",header:h._("Conversions"),cell:function(a){a=a.item;return a!=null?k.jsx(c("OCDevManageOrganizationCampaignConversionProgressBar.react"),{campaign:a}):"--"},width:a.proportional(.7)},{cell:function(a){a=a.item;return k.jsxs(c("GeoDropdownMenu.react"),babelHelpers["extends"]({buttonVariant:"flat"},c("getDisabledProps")(a.release_status==="COMPLETED"?h._("Completed campaigns cannot be changed"):null),{useEllipsisIcon:!0,children:[k.jsx(c("OCDevManageOrganizationCampaignsTablePauseResumeMenuItem.react"),{campaign:a}),k.jsx(c("OCDevManageOrganizationCampaignsTableDeleteMenuItem.react"),{campaign:a})]}))},header:null,key:"context_menu",width:a.pixel(80)}]},[]);return k.jsx(c("GeoTable.react"),{columns:q,dataSource:c("createGeoTableDataSource")(e,{getStableUniqueID:function(a){return a.id}}),label:h._("Campaigns"),pagination:{loadNext:a,hasNext:j,isLoadingNext:g==null?!0:o,pageSize:m},plugins:{activation:f}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
getDisabledProps",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a!=null?{disabledMessage:a,isDisabled:!0}:{}}f["default"]=a}),66);
-----
OCDevManageApplicationPricingExperimentFormFields.react",["fbt","GeoDatePicker.react","GeoSection.react","GeoSelector.react","GeoSelectorItem.react","GeoTextInput.react","GeoVStack.react","LocalDate","OCDevManagePriceObjectKeyField.react","OCDevUIFormInputValidator.react","OCDevUIValidateStringLength","OCDevUIValidatorCommonErrors","Timezone","emptyFunction","getDisabledProps","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=7;function a(a){var b=a.currentPriceKey,e=a.formState,f=a.onUpdateFormState,g=e.experimentEndDate,i=e.experimentStartDate,l=e.experimentType,m=e.externalName,n=e.incrementalPriceKey,o=e.lowerBoundPriceKey;a=e.minimumExperimentLength;var p=e.status,q=e.upperBoundPriceKey,r=(e=a)!=null?e:k;function s(a,b){return a==null||b==null?!1:a.addDays(r).isAfter(b)}var t=h._("u5b9eu9a8cu8be6u60c5u4e00u65e6u53d1u5e03u5c31u65e0u6cd5u66f4u6539u3002u5982u6709u5fc5u8981uff0cu4f60u53efu80fdu53efu4ee5u5220u9664u8fd9u4e2au5b9eu9a8cuff0cu518du65b0u5efau4e00u4e2au3002");function u(a){return a==="DRAFT"||a===null?null:t}return j.jsx(c("GeoSection.react"),{children:j.jsxs(c("GeoVStack.react"),{children:[j.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return d("OCDevUIValidateStringLength").validateStringLength({value:m})},children:j.jsx(c("GeoTextInput.react"),babelHelpers["extends"]({description:h._("Give your test a unique name. This name is not visible to the public.")},c("getDisabledProps")(u(p)),{label:h._("u540du5b57/u540du79f0"),value:m,onChange:function(a){return f(function(b){return babelHelpers["extends"]({},b,{externalName:a})})}}))}),j.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return l!=null?null:h._("u5fc5u987bu9009u62e9u5b9eu9a8cu7c7bu578bu3002")},children:j.jsxs(c("GeoSelector.react"),babelHelpers["extends"]({},c("getDisabledProps")(u(p)),{label:h._("u5b9eu9a8cu7c7bu578b"),value:l,onChange:function(a){return f(function(b){return babelHelpers["extends"]({},b,{experimentType:a,incrementalPriceKey:null,upperBoundPriceKey:null,lowerBoundPriceKey:null})})},children:[j.jsx(c("GeoSelectorItem.react"),{description:h._("u5bf9u6bd4u65b0u4ef7u683cu6765u6d4bu8bd5u4f60u7684u5f53u524du4ef7u683c"),label:h._("u4ef7u683cu589eu51cfu53d8u5316u6d4bu8bd5"),value:"PRICE_TEST"}),j.jsx(c("GeoSelectorItem.react"),{description:h._("u628au5f53u524du4ef7u683cu63d0u9ad8u6216u964du4f4eu4e00u4e2au4ef7u683cu70b9u6765u8fdbu884cu6d4bu8bd5u3002"),disabledMessage:b===""?h._("u4f60u4e0du80fdu5bf9u514du8d39u5e94u7528u7a0bu5e8fu8fdbu884cu8fb9u754cu6d4bu8bd5u3002"):null,isDisabled:b==="",label:h._("u4ef7u683cu8fb9u754cu6d4bu8bd5"),value:"PRICE_BOUNDARY_TEST"})]}))}),j.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return i==null?h._("u5fc5u987bu9009u62e9u5f00u59cbu65e5u671fu3002"):s(i,g)?h._("u5b9eu9a8cu5f00u59cbu65e5u671fu6bd4u7ed3u675fu65e5u671fu5fc5u987bu81f3u5c11u65e9{minimum-days}u5929u3002",[h._param("minimum-days",r)]):null},children:j.jsx(c("GeoDatePicker.react"),babelHelpers["extends"]({},c("getDisabledProps")(u(p)),{focusDate:c("LocalDate").today(d("Timezone").PST8PDT).addDays(3),label:h._("u5b9eu9a8cu5f00u59cbu65e5u671f"),restraint:function(a){return a!=null&&a.toInstant(d("Timezone").PST8PDT)>c("LocalDate").today(d("Timezone").PST8PDT).addDays(3).toInstant(d("Timezone").PST8PDT)},value:i,onChange:function(a){return f(function(b){return babelHelpers["extends"]({},b,{experimentStartDate:a})})}}))}),j.jsx(c("OCDevUIFormInputValidator.react"),{validateField:function(){return g==null?d("OCDevUIValidatorCommonErrors").REQUIRED_FIELD_ERROR_MESSAGE:null},children:j.jsx(c("GeoDatePicker.react"),babelHelpers["extends"]({},c("getDisabledProps")(u(p)),{focusDate:i!=null?i.addDays(r):null,label:h._("u5b9eu9a8cu7ed3u675fu65e5u671f"),restraint:function(a){return a!=null&&(i!=null?a.isAfter(i.addDays(r))&&a.isBeforeOrEqual(i.addDays(90)):!0)},value:g,onChange:function(a){return f(function(b){return babelHelpers["extends"]({},b,{experimentEndDate:a})})}}))}),l==="PRICE_BOUNDARY_TEST"?j.jsx(c("OCDevManagePriceObjectKeyField.react"),{disabledItemMessage:t,disabledPriceObjectKey:o,isReadOnly:p!=="DRAFT",label:h._("u8f83u4f4eu4ef7u683cu70b9"),maximumPriceKey:(a=b)!=null?a:"",validateField:function(){return o==null?h._("u5fc5u987bu9009u62e9u4ef7u683c"):null},value:o,onChange:function(a){return f(function(b){return babelHelpers["extends"]({},b,{lowerBoundPriceKey:a})})}}):null,j.jsx(c("OCDevManagePriceObjectKeyField.react"),{disabledPriceObjectKey:n,isReadOnly:!0,label:h._("u5f53u524du4ef7u683c"),value:b,onChange:c("emptyFunction")}),l==="PRICE_TEST"?j.jsx(c("OCDevManagePriceObjectKeyField.react"),{disabledItemMessage:t,disabledPriceObjectKey:n,isReadOnly:p!=="DRAFT",label:h._("u7528u4e8eu6d4bu8bd5u7684u65b0u4ef7u683cu70b9"),validateField:function(){return n==null?h._("u5fc5u987bu9009u62e9u4ef7u683c"):null},value:n,onChange:function(a){return f(function(b){return babelHelpers["extends"]({},b,{incrementalPriceKey:a})})}}):null,l==="PRICE_BOUNDARY_TEST"?j.jsx(c("OCDevManagePriceObjectKeyField.react"),{disabledItemMessage:t,disabledPriceObjectKey:q,excludeFreeOption:!0,isReadOnly:p!=="DRAFT",label:h._("u8f83u9ad8u4ef7u683cu70b9"),minimumPriceKey:(e=b)!=null?e:"",validateField:function(){return q==null?h._("u5fc5u987bu9009u62e9u4ef7u683c"):null},value:q,onChange:function(a){return f(function(b){return babelHelpers["extends"]({},b,{upperBoundPriceKey:a})})}}):null]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevManageLongDescriptionFieldWithOptionalMarkdown.react",["fbt","GeoFlexbox.react","GeoSwitch.react","GeoTextArea.react","GeoTextPairing.react","OCDevManageAssetUploader.react","OCDevUIFormInputValidator.react","OCDevUITextAreaWithMarkdownPreview.react","OculusDashboardAppFieldValidatorsSitevarConfig","XOCUploadedAssetType.oculus","getDisabledProps","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.applicationID,d=a.disabledMessage,e=a.isReadOnly,f=a.onDescriptionUpdate,g=a.onImageUpload,i=a.onLongDescriptionUsesMarkdownChange,k=a.onVideoUpload,l=a.translatedStringsAndAssets,m=l.longDescription,n=l.longDescriptionImages,o=l.longDescriptionUsesMarkdown;l=l.longDescriptionVideos;var p=a.translationID;a=a.validateLongDescription;var q=h._("Long Description");e=babelHelpers["extends"]({},c("getDisabledProps")(d),{isLabelHidden:!0,isReadOnly:(d=e)!=null?d:void 0,label:q,maxLength:c("OculusDashboardAppFieldValidatorsSitevarConfig").long_description.max_length,rows:8,value:m,onChange:function(a){return f(function(b){return a})}});return j.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:8,children:[j.jsx(c("GeoTextPairing.react"),{description:h._("This will be shown throughout the platform, including the store."),heading:q,size:"header4"}),c("gkx")("4841")?j.jsx(c("GeoSwitch.react"),{description:h._("Add rich text formatting and inline media."),label:h._("Use Markdown"),labelPosition:"suffix",value:o,onChange:i}):null,o?j.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:16,children:[j.jsx(c("OCDevManageAssetUploader.react"),{allowMultiple:!0,appID:b,imageAssetType:c("XOCUploadedAssetType.oculus").APP_IMG_MARKDOWN_INLINE,label:h._("Upload Embedded Media"),targetObjectID:(d=p)!=null?d:"",videoAssetType:c("XOCUploadedAssetType.oculus").APP_VIDEO_MARKDOWN_INLINE,onUploadComplete:function(a,b){b===c("XOCUploadedAssetType.oculus").APP_VIDEO_MARKDOWN_INLINE?k(a):g(a),f(function(b){return b+(" {"+((b=a.id)!=null?b:"")+"}")})}}),j.jsx(c("OCDevUITextAreaWithMarkdownPreview.react"),babelHelpers["extends"]({},e,{assets:n.concat(l),validateField:a}))]}):j.jsx(c("OCDevUIFormInputValidator.react"),{validateField:a,children:j.jsx(c("GeoTextArea.react"),babelHelpers["extends"]({},e))})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----