MDCAppStoreV2AppPurchaseFlyout.react",["CometRelay","DDSFlexbox.react","DDSFlyOut.react","DDSSpinner.react","MDCAppStoreStoreAPI","MDCAppStoreV2AppPurchaseContent.react","MDCAppStoreV2AppPurchaseFlyoutQuery.graphql","MDCAppStoreV2AppPurchaseFreePurchaseContent.react","MDCAppStoreV2AppPurchasePrePurchaseContent.react","MDCAppStoreV2AppPurchaseState","MDCAppStoreV2SubscriptionSelectionContent.react","Placeholder.react","emptyArray","react","translatedServerString","useMDCAppStoreV2PurchaseSubscriptionList"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useMemo,m=e.useState,n={spinner:{width:"xh8yej3",$$css:!0}};function a(a){var e=a.props,f=e.modalProps,g=f.initialState,i=f.isTrialOffer,o=f.setIsLoading,p=e.onClose;f=a.queries.MDCAppStoreV2AppPurchaseFlyoutQueryRef;e=d("CometRelay").useQueryLoader(c("MDCAppStoreV2AppPurchaseFlyoutQuery.graphql"),f);a=e[0];var q=e[1];a=d("CometRelay").usePreloadedQuery(h!==void 0?h:h=b("MDCAppStoreV2AppPurchaseFlyoutQuery.graphql"),(e=a)!=null?e:f);var r=a.app_store_item;e=m(g);var s=e[0],t=e[1];f=m(null);a=f[0];var u=f[1];g=m(null);e=g[0];var v=g[1];f=m(c("translatedServerString")(""));g=f[0];var w=f[1],x=c("useMDCAppStoreV2PurchaseSubscriptionList")((f=(f=r.subscription_items)==null?void 0:f.nodes)!=null?f:c("emptyArray"));f=m(Array.from(x.keys())[0]);var y=f[0],z=f[1],A=k(function(){var a;q({itemId:(a=(a=x.get(y))==null?void 0:a.itemId)!=null?a:"",hmdType:d("MDCAppStoreStoreAPI").getSelectedHmdType()});t(c("MDCAppStoreV2AppPurchaseState").PRE_PURCHASE)},[q,y,x]);f=l(function(){var a=i===!0?r.current_trial_offer:r.current_offer;switch(s){case c("MDCAppStoreV2AppPurchaseState").SUBSCRIBE:return j.jsx(c("MDCAppStoreV2SubscriptionSelectionContent.react"),{itemId:r.id,purchaseFlyoutProps:{setDescription:u,setFooter:v,setTitle:w},setSku:z,sku:y,subscriptions:x,onSubmit:A});case c("MDCAppStoreV2AppPurchaseState").PRE_PURCHASE:return j.jsx(c("MDCAppStoreV2AppPurchasePrePurchaseContent.react"),{item:r,offerRef:a,purchaseFlyoutProps:{setDescription:u,setFooter:v,setTitle:w},setState:t,onClose:p});case c("MDCAppStoreV2AppPurchaseState").PURCHASE_FREE:return j.jsx(c("MDCAppStoreV2AppPurchaseFreePurchaseContent.react"),{closeModal:p,hasAvailableSubscriptions:x.size>0,item:r,offerId:a==null?void 0:a.id,purchaseFlyoutProps:{setDescription:u,setFooter:v,setTitle:w},setIsLoading:o,setState:t});case c("MDCAppStoreV2AppPurchaseState").PURCHASE_PAID:return j.jsx(c("MDCAppStoreV2AppPurchaseContent.react"),{item:r,offer:a,purchaseFlyoutProps:{setDescription:u,setFooter:v,setTitle:w},sku:y,onDismiss:p});case c("MDCAppStoreV2AppPurchaseState").NOT_PURCHASING:return null}},[i,r,s,y,x,A,p,o]);var B=k(function(){t(c("MDCAppStoreV2AppPurchaseState").NOT_PURCHASING),p()},[p]);g=(g=g)!=null?g:c("translatedServerString")("");return j.jsx(c("DDSFlyOut.react"),{ariaLabel:g,description:(a=a)!=null?a:void 0,footer:e,title:g,onClose:B,children:j.jsx(c("Placeholder.react"),{fallback:j.jsx(c("DDSFlexbox.react"),{justifyContent:"center",xstyle:n.spinner,children:j.jsx(c("DDSSpinner.react"),{})}),children:f})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MDCAppStoreV2AppPurchaseContent.react",["fbt","invariant","CometRelay","MDCAppStoreHttpError","MDCAppStoreLocalUserContext","MDCAppStoreLocalUserErrorUtils","MDCAppStoreOculusEngagementEventsContext.react","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStoreV2AppPurchaseContent_item.graphql","MDCAppStoreV2AppPurchaseContent_offer.graphql","MDCAppStoreV2PurchaseAddPaymentMethod.react","MDCAppStoreV2PurchaseAddPinForm.react","MDCAppStoreV2PurchaseConfirmOrder.react","MDCAppStoreV2PurchaseCreateOrder.react","MDCAppStoreV2PurchaseCreateOrderForSku.react","MDCAppStoreV2PurchaseError.react","MDCAppStoreV2UpdateBillingAddressForm.react","isTruthy","react","requireDeferred","translatedServerString","useMDCAppStoreV2PurchaseItemRating","useMDCUrlAndReferrer"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react"));e=l;var n=e.useContext,o=e.useEffect,p=e.useState,q=c("requireDeferred")("DollyAppStorePurchaseAddPaymentViewEvent.log").__setRef("MDCAppStoreV2AppPurchaseContent.react"),r=c("requireDeferred")("DollyAppStorePurchaseClickEvent.log").__setRef("MDCAppStoreV2AppPurchaseContent.react"),s=c("requireDeferred")("DollyAppStorePurchaseViewEvent.log").__setRef("MDCAppStoreV2AppPurchaseContent.react");function a(a){var e,g=a.item,l=a.offer,t=a.onDismiss,u=a.purchaseFlyoutProps;a=a.sku;var v=d("CometRelay").useFragment(j!==void 0?j:j=b("MDCAppStoreV2AppPurchaseContent_item.graphql"),g),w=d("CometRelay").useFragment(k!==void 0?k:k=b("MDCAppStoreV2AppPurchaseContent_offer.graphql"),l),x=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useClickLogging("AppPurchaseButton");g=c("useMDCUrlAndReferrer")();var y=g.referrer,z=g.url,A=c("useMDCAppStoreV2PurchaseItemRating")(v);o(function(){x("LAUNCH_PURCHASE_FLOW",{content_id:v.id,subsurface:"PDP"}),r.onReady(function(a){return a.DollyAppStorePurchaseClickEvent.log({url:z,referrer:y,placement:"side_box",category:"app",english_name:(a=v.display_name)!=null?a:"Purchase",price:(w==null?void 0:(a=w.price)==null?void 0:a.offset_amount)!=null?Number(w==null?void 0:(a=w.price)==null?void 0:a.offset_amount):0,striked_price:(w==null?void 0:(a=w.strikethrough_price)==null?void 0:a.offset_amount)!=null?Number(w==null?void 0:(a=w.strikethrough_price)==null?void 0:a.offset_amount):0,currency:(a=w==null?void 0:(a=w.price)==null?void 0:a.currency)!=null?a:"USD",sku:v.id,rating:(a=A())!=null?a:0})})},[]);l=p(null);g=l[0];var B=l[1];l=p(null);var C=l[0],D=l[1];l=p("create_order");var E=l[0],F=l[1];l=p(null);var G=l[0],H=l[1],I=c("useMDCUrlAndReferrer")();l=n(c("MDCAppStoreLocalUserContext"));var J=l.userID,K=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("PurchaseModal");o(function(){E==="confirm_order"&&s.onReadyImmediately(function(a){return a.DollyAppStorePurchaseViewEvent.log(babelHelpers["extends"]({placement:"app_store.purchase"},I))})},[E,I]);l=u.setDescription;var L=u.setFooter,M=u.setTitle,N=function(){F("create_order"),K("ADD_CREDIT_CARD_SUCCESS")},O=function(){F("add_payment_method"),q.onReadyImmediately(function(a){return a.DollyAppStorePurchaseAddPaymentViewEvent.log(babelHelpers["extends"]({english_text:"Add Payment Method",placement:"app_store.purchase"},I))})},P=function(){F("add_pin")},Q=function(a){if(a&&d("MDCAppStoreLocalUserErrorUtils").isLoginRequiredError(a,J)){t();return}F("error");B(a)},R=function(a,b){var c,d=a.create_order;if(d&&((c=d.order)==null?void 0:c.id)!==null&&b!==!0&&((c=d.order)==null?void 0:(b=c.payment_method)==null?void 0:b.is_billing_address_update_required)===!0){D(d.order.id);H(a);F("billing_address_update");return}D(d==null?void 0:(c=d.order)==null?void 0:c.id);H(a);F("confirm_order")},S=function(){K("CANCEL_PURCHASE"),t()};e=(e=v.parent_application)==null?void 0:e.id;switch(E){case"create_order":l(null);L(null);M(h._("Creating your order"));return e!=null&&a!=null?m.jsx(c("MDCAppStoreV2PurchaseCreateOrderForSku.react"),{appID:e,logEvent:K,sku:a,onCancel:S,onError:Q,onErrorMissingPaymentMethod:O,onErrorMissingPin:P,onSuccess:function(a,b){D(a),H(b),F("confirm_order")}}):m.jsx(c("MDCAppStoreV2PurchaseCreateOrder.react"),{logEvent:K,offerId:(l=w==null?void 0:w.id)!=null?l:"",onCancel:S,onErrorPayment:O,onErrorPin:P,onErrorUnhandled:Q,onSuccess:R});case"add_payment_method":M(h._("Add payment method"));return m.jsx(c("MDCAppStoreV2PurchaseAddPaymentMethod.react"),{purchaseFlyoutProps:u,onError:Q,onSuccess:N});case"billing_address_update":l=G==null?void 0:(e=G.create_order)==null?void 0:(a=e.order)==null?void 0:a.payment_method;l&&l.id!=null||i(0,71885);O=l.billing_address;P=l.display_name;e=l.id;L(null);M(h._("Update billing address"));return e&&P!=null&&O&&O.country!=null&&m.jsx(c("MDCAppStoreV2UpdateBillingAddressForm.react"),{paymentMethodId:e,paymentMethodName:P,postalCodeInitialValue:O.zip,purchaseFlyoutProps:u,stateInitialValue:O.state,onError:Q,onSuccess:function(){var a;(G==null?void 0:G.create_order)&&((a=G.create_order)==null?void 0:(a=a.order)==null?void 0:a.id)!=null&&R(G,!0)}});case"add_pin":L(null);M(h._("Create your Meta Quest PIN"));return m.jsx(c("MDCAppStoreV2PurchaseAddPinForm.react"),{onSubmitSuccess:N});case"confirm_order":C!=null||i(0,71886);L(null);M(h._("Confirm purchase"));return m.jsx(d("MDCAppStoreOculusEngagementEventsContext.react").MDCAppStoreOculusEngagementEventsContextProvider,{value:{store_order_id:C},children:m.jsx(c("MDCAppStoreV2PurchaseConfirmOrder.react"),{orderId:C,purchaseFlyoutProps:u,onError:Q,onHide:S})});case"error":M(g instanceof c("MDCAppStoreHttpError")&&c("isTruthy")(g.getHttpErrorTitle())?c("translatedServerString")((a=g.getHttpErrorTitle())!=null?a:""):h._("Purchase error"));return m.jsx(c("MDCAppStoreV2PurchaseError.react"),{error:(l=g)!=null?l:new Error(),setFooter:L,onDismiss:S})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2AppPurchaseFlyoutQuery.graphql",["MDCAppStoreV2AppPurchaseFlyoutQuery_oculusRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"hmdType"},c={defaultValue:null,kind:"LocalArgument",name:"itemId"},d=[{kind:"Variable",name:"hmd_type",variableName:"hmdType"},{kind:"Variable",name:"id",variableName:"itemId"}],e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},f=[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchaseContent_offer"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchasePrePurchaseContent_offer"},e],g=[{kind:"Literal",name:"only_sold_in_store",value:!0},{kind:"Literal",name:"status",value:"PUBLISHED"}],h={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null};j={kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},j],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"strikethrough_price",plural:!1,selections:[j],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offer_type",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"descriptions",storageKey:null}],type:"AppStoreTrialOffer",abstractKey:null}],type:"PurchasableOfferWithApp",abstractKey:"__isPurchasableOfferWithApp"};var k=[e];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"MDCAppStoreV2AppPurchaseFlyoutQuery",selections:[{kind:"RequiredField",field:{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchaseContent_item"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchaseFreePurchaseContent_item"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchasePrePurchaseContent_item"},{kind:"RequiredField",field:e,action:"THROW",path:"app_store_item.id"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:f,storageKey:null},{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:f,storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:g,concreteType:"ApplicationSubscriptionItemsConnection",kind:"LinkedField",name:"subscription_items",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"useMDCAppStoreV2PurchaseSubscriptionList_subscriptions"}],storageKey:null}],storageKey:"subscription_items(only_sold_in_store:true,status:"PUBLISHED")"}],type:"Application",abstractKey:null}],storageKey:null},action:"THROW",path:"app_store_item"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"MDCAppStoreV2AppPurchaseFlyoutQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[h,{kind:"TypeDiscriminator",abstractKey:"__isAppStoreItem"},e,i,{alias:null,args:null,kind:"ScalarField",name:"is_linked_fb_account_required",storageKey:null},{alias:null,args:null,concreteType:"AppStoreItemPurchaseAlertInfo",kind:"LinkedField",name:"purchase_alerts",plural:!0,selections:[h,{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:[h,e,j],storageKey:null},{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:[e,j],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"parent_application",plural:!1,selections:k,storageKey:null}],type:"IAPItem",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"OCEntAppStoreItemWithQualityRatingsQualityRatingHistogramAggregate",kind:"LinkedField",name:"quality_rating_histogram_aggregate_all",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"star_rating",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"quality_rating_aggregate",storageKey:null},{alias:null,args:g,concreteType:"ApplicationSubscriptionItemsConnection",kind:"LinkedField",name:"subscription_items",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[h,{kind:"InlineFragment",selections:[e,{alias:null,args:null,kind:"ScalarField",name:"sku",storageKey:null},{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},e],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offers",plural:!0,selections:[h,e,i,{alias:null,args:null,kind:"ScalarField",name:"price_with_formatted_term_and_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price_with_formatted_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subscription_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"strikethrough_price_with_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"strikethrough_price_with_formatted_term",storageKey:null},{alias:null,args:null,concreteType:"AppCouponCampaign",kind:"LinkedField",name:"current_campaign",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"promo_offer_text",storageKey:null},e],storageKey:null}],storageKey:null}],type:"IAPItem",abstractKey:null},{kind:"InlineFragment",selections:k,type:"Node",abstractKey:"__isNode"}],storageKey:null}],storageKey:"subscription_items(only_sold_in_store:true,status:"PUBLISHED")"}],type:"Application",abstractKey:null}],storageKey:null}]},params:{id:b("MDCAppStoreV2AppPurchaseFlyoutQuery_oculusRelayOperation"),metadata:{},name:"MDCAppStoreV2AppPurchaseFlyoutQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
MDCAppStoreV2AppPurchaseContent_item.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2AppPurchaseContent_item",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"RequiredField",field:a,action:"THROW",path:"id"},{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"parent_application",plural:!1,selections:[a],storageKey:null}],type:"IAPItem",abstractKey:null},{args:null,kind:"FragmentSpread",name:"useMDCAppStoreV2PurchaseItemRating_item"}],type:"AppStoreItem",abstractKey:"__isAppStoreItem"}}();e.exports=a}),null);
-----
MDCAppStoreV2AppPurchaseContent_offer.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2AppPurchaseContent_offer",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},a],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"strikethrough_price",plural:!1,selections:[a],storageKey:null}],type:"PurchasableOfferWithApp",abstractKey:"__isPurchasableOfferWithApp"}}();e.exports=a}),null);
-----
MDCAppStoreV2AppPurchaseFlyout.react",["CometRelay","DDSFlexbox.react","DDSFlyOut.react","DDSSpinner.react","MDCAppStoreStoreAPI","MDCAppStoreV2AppPurchaseContent.react","MDCAppStoreV2AppPurchaseFlyoutQuery.graphql","MDCAppStoreV2AppPurchaseFreePurchaseContent.react","MDCAppStoreV2AppPurchasePrePurchaseContent.react","MDCAppStoreV2AppPurchaseState","MDCAppStoreV2SubscriptionSelectionContent.react","Placeholder.react","emptyArray","react","translatedServerString","useMDCAppStoreV2PurchaseSubscriptionList"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useMemo,m=e.useState,n={spinner:{width:"xh8yej3",$$css:!0}};function a(a){var e=a.props,f=e.modalProps,g=f.initialState,i=f.isTrialOffer,o=f.setIsLoading,p=e.onClose;f=a.queries.MDCAppStoreV2AppPurchaseFlyoutQueryRef;e=d("CometRelay").useQueryLoader(c("MDCAppStoreV2AppPurchaseFlyoutQuery.graphql"),f);a=e[0];var q=e[1];a=d("CometRelay").usePreloadedQuery(h!==void 0?h:h=b("MDCAppStoreV2AppPurchaseFlyoutQuery.graphql"),(e=a)!=null?e:f);var r=a.app_store_item;e=m(g);var s=e[0],t=e[1];f=m(null);a=f[0];var u=f[1];g=m(null);e=g[0];var v=g[1];f=m(c("translatedServerString")(""));g=f[0];var w=f[1],x=c("useMDCAppStoreV2PurchaseSubscriptionList")((f=(f=r.subscription_items)==null?void 0:f.nodes)!=null?f:c("emptyArray"));f=m(Array.from(x.keys())[0]);var y=f[0],z=f[1],A=k(function(){var a;q({itemId:(a=(a=x.get(y))==null?void 0:a.itemId)!=null?a:"",hmdType:d("MDCAppStoreStoreAPI").getSelectedHmdType()});t(c("MDCAppStoreV2AppPurchaseState").PRE_PURCHASE)},[q,y,x]);f=l(function(){var a=i===!0?r.current_trial_offer:r.current_offer;switch(s){case c("MDCAppStoreV2AppPurchaseState").SUBSCRIBE:return j.jsx(c("MDCAppStoreV2SubscriptionSelectionContent.react"),{itemId:r.id,purchaseFlyoutProps:{setDescription:u,setFooter:v,setTitle:w},setSku:z,sku:y,subscriptions:x,onSubmit:A});case c("MDCAppStoreV2AppPurchaseState").PRE_PURCHASE:return j.jsx(c("MDCAppStoreV2AppPurchasePrePurchaseContent.react"),{item:r,offerRef:a,purchaseFlyoutProps:{setDescription:u,setFooter:v,setTitle:w},setState:t,onClose:p});case c("MDCAppStoreV2AppPurchaseState").PURCHASE_FREE:return j.jsx(c("MDCAppStoreV2AppPurchaseFreePurchaseContent.react"),{closeModal:p,hasAvailableSubscriptions:x.size>0,item:r,offerId:a==null?void 0:a.id,purchaseFlyoutProps:{setDescription:u,setFooter:v,setTitle:w},setIsLoading:o,setState:t});case c("MDCAppStoreV2AppPurchaseState").PURCHASE_PAID:return j.jsx(c("MDCAppStoreV2AppPurchaseContent.react"),{item:r,offer:a,purchaseFlyoutProps:{setDescription:u,setFooter:v,setTitle:w},sku:y,onDismiss:p});case c("MDCAppStoreV2AppPurchaseState").NOT_PURCHASING:return null}},[i,r,s,y,x,A,p,o]);var B=k(function(){t(c("MDCAppStoreV2AppPurchaseState").NOT_PURCHASING),p()},[p]);g=(g=g)!=null?g:c("translatedServerString")("");return j.jsx(c("DDSFlyOut.react"),{ariaLabel:g,description:(a=a)!=null?a:void 0,footer:e,title:g,onClose:B,children:j.jsx(c("Placeholder.react"),{fallback:j.jsx(c("DDSFlexbox.react"),{justifyContent:"center",xstyle:n.spinner,children:j.jsx(c("DDSSpinner.react"),{})}),children:f})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MDCAppStoreV2AppPurchaseContent.react",["fbt","invariant","CometRelay","MDCAppStoreHttpError","MDCAppStoreLocalUserContext","MDCAppStoreLocalUserErrorUtils","MDCAppStoreOculusEngagementEventsContext.react","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStoreV2AppPurchaseContent_item.graphql","MDCAppStoreV2AppPurchaseContent_offer.graphql","MDCAppStoreV2PurchaseAddPaymentMethod.react","MDCAppStoreV2PurchaseAddPinForm.react","MDCAppStoreV2PurchaseConfirmOrder.react","MDCAppStoreV2PurchaseCreateOrder.react","MDCAppStoreV2PurchaseCreateOrderForSku.react","MDCAppStoreV2PurchaseError.react","MDCAppStoreV2UpdateBillingAddressForm.react","isTruthy","react","requireDeferred","translatedServerString","useMDCAppStoreV2PurchaseItemRating","useMDCUrlAndReferrer"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react"));e=l;var n=e.useContext,o=e.useEffect,p=e.useState,q=c("requireDeferred")("DollyAppStorePurchaseAddPaymentViewEvent.log").__setRef("MDCAppStoreV2AppPurchaseContent.react"),r=c("requireDeferred")("DollyAppStorePurchaseClickEvent.log").__setRef("MDCAppStoreV2AppPurchaseContent.react"),s=c("requireDeferred")("DollyAppStorePurchaseViewEvent.log").__setRef("MDCAppStoreV2AppPurchaseContent.react");function a(a){var e,g=a.item,l=a.offer,t=a.onDismiss,u=a.purchaseFlyoutProps;a=a.sku;var v=d("CometRelay").useFragment(j!==void 0?j:j=b("MDCAppStoreV2AppPurchaseContent_item.graphql"),g),w=d("CometRelay").useFragment(k!==void 0?k:k=b("MDCAppStoreV2AppPurchaseContent_offer.graphql"),l),x=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useClickLogging("AppPurchaseButton");g=c("useMDCUrlAndReferrer")();var y=g.referrer,z=g.url,A=c("useMDCAppStoreV2PurchaseItemRating")(v);o(function(){x("LAUNCH_PURCHASE_FLOW",{content_id:v.id,subsurface:"PDP"}),r.onReady(function(a){return a.DollyAppStorePurchaseClickEvent.log({url:z,referrer:y,placement:"side_box",category:"app",english_name:(a=v.display_name)!=null?a:"Purchase",price:(w==null?void 0:(a=w.price)==null?void 0:a.offset_amount)!=null?Number(w==null?void 0:(a=w.price)==null?void 0:a.offset_amount):0,striked_price:(w==null?void 0:(a=w.strikethrough_price)==null?void 0:a.offset_amount)!=null?Number(w==null?void 0:(a=w.strikethrough_price)==null?void 0:a.offset_amount):0,currency:(a=w==null?void 0:(a=w.price)==null?void 0:a.currency)!=null?a:"USD",sku:v.id,rating:(a=A())!=null?a:0})})},[]);l=p(null);g=l[0];var B=l[1];l=p(null);var C=l[0],D=l[1];l=p("create_order");var E=l[0],F=l[1];l=p(null);var G=l[0],H=l[1],I=c("useMDCUrlAndReferrer")();l=n(c("MDCAppStoreLocalUserContext"));var J=l.userID,K=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("PurchaseModal");o(function(){E==="confirm_order"&&s.onReadyImmediately(function(a){return a.DollyAppStorePurchaseViewEvent.log(babelHelpers["extends"]({placement:"app_store.purchase"},I))})},[E,I]);l=u.setDescription;var L=u.setFooter,M=u.setTitle,N=function(){F("create_order"),K("ADD_CREDIT_CARD_SUCCESS")},O=function(){F("add_payment_method"),q.onReadyImmediately(function(a){return a.DollyAppStorePurchaseAddPaymentViewEvent.log(babelHelpers["extends"]({english_text:"Add Payment Method",placement:"app_store.purchase"},I))})},P=function(){F("add_pin")},Q=function(a){if(a&&d("MDCAppStoreLocalUserErrorUtils").isLoginRequiredError(a,J)){t();return}F("error");B(a)},R=function(a,b){var c,d=a.create_order;if(d&&((c=d.order)==null?void 0:c.id)!==null&&b!==!0&&((c=d.order)==null?void 0:(b=c.payment_method)==null?void 0:b.is_billing_address_update_required)===!0){D(d.order.id);H(a);F("billing_address_update");return}D(d==null?void 0:(c=d.order)==null?void 0:c.id);H(a);F("confirm_order")},S=function(){K("CANCEL_PURCHASE"),t()};e=(e=v.parent_application)==null?void 0:e.id;switch(E){case"create_order":l(null);L(null);M(h._("Creating your order"));return e!=null&&a!=null?m.jsx(c("MDCAppStoreV2PurchaseCreateOrderForSku.react"),{appID:e,logEvent:K,sku:a,onCancel:S,onError:Q,onErrorMissingPaymentMethod:O,onErrorMissingPin:P,onSuccess:function(a,b){D(a),H(b),F("confirm_order")}}):m.jsx(c("MDCAppStoreV2PurchaseCreateOrder.react"),{logEvent:K,offerId:(l=w==null?void 0:w.id)!=null?l:"",onCancel:S,onErrorPayment:O,onErrorPin:P,onErrorUnhandled:Q,onSuccess:R});case"add_payment_method":M(h._("Add payment method"));return m.jsx(c("MDCAppStoreV2PurchaseAddPaymentMethod.react"),{purchaseFlyoutProps:u,onError:Q,onSuccess:N});case"billing_address_update":l=G==null?void 0:(e=G.create_order)==null?void 0:(a=e.order)==null?void 0:a.payment_method;l&&l.id!=null||i(0,71885);O=l.billing_address;P=l.display_name;e=l.id;L(null);M(h._("Update billing address"));return e&&P!=null&&O&&O.country!=null&&m.jsx(c("MDCAppStoreV2UpdateBillingAddressForm.react"),{paymentMethodId:e,paymentMethodName:P,postalCodeInitialValue:O.zip,purchaseFlyoutProps:u,stateInitialValue:O.state,onError:Q,onSuccess:function(){var a;(G==null?void 0:G.create_order)&&((a=G.create_order)==null?void 0:(a=a.order)==null?void 0:a.id)!=null&&R(G,!0)}});case"add_pin":L(null);M(h._("Create your Meta Quest PIN"));return m.jsx(c("MDCAppStoreV2PurchaseAddPinForm.react"),{onSubmitSuccess:N});case"confirm_order":C!=null||i(0,71886);L(null);M(h._("Confirm purchase"));return m.jsx(d("MDCAppStoreOculusEngagementEventsContext.react").MDCAppStoreOculusEngagementEventsContextProvider,{value:{store_order_id:C},children:m.jsx(c("MDCAppStoreV2PurchaseConfirmOrder.react"),{orderId:C,purchaseFlyoutProps:u,onError:Q,onHide:S})});case"error":M(g instanceof c("MDCAppStoreHttpError")&&c("isTruthy")(g.getHttpErrorTitle())?c("translatedServerString")((a=g.getHttpErrorTitle())!=null?a:""):h._("Purchase error"));return m.jsx(c("MDCAppStoreV2PurchaseError.react"),{error:(l=g)!=null?l:new Error(),setFooter:L,onDismiss:S})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2AppPurchaseFlyoutQuery.graphql",["MDCAppStoreV2AppPurchaseFlyoutQuery_oculusRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"hmdType"},c={defaultValue:null,kind:"LocalArgument",name:"itemId"},d=[{kind:"Variable",name:"hmd_type",variableName:"hmdType"},{kind:"Variable",name:"id",variableName:"itemId"}],e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},f=[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchaseContent_offer"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchasePrePurchaseContent_offer"},e],g=[{kind:"Literal",name:"only_sold_in_store",value:!0},{kind:"Literal",name:"status",value:"PUBLISHED"}],h={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},k={alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},j],storageKey:null};j={alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"strikethrough_price",plural:!1,selections:[j],storageKey:null};var l={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"descriptions",storageKey:null}],type:"AppStoreTrialOffer",abstractKey:null},m={alias:null,args:null,kind:"ScalarField",name:"offer_type",storageKey:null},n=[e];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"MDCAppStoreV2AppPurchaseFlyoutQuery",selections:[{kind:"RequiredField",field:{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchaseContent_item"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchaseFreePurchaseContent_item"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchasePrePurchaseContent_item"},{kind:"RequiredField",field:e,action:"THROW",path:"app_store_item.id"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:f,storageKey:null},{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:f,storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:g,concreteType:"ApplicationSubscriptionItemsConnection",kind:"LinkedField",name:"subscription_items",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"useMDCAppStoreV2PurchaseSubscriptionList_subscriptions"}],storageKey:null}],storageKey:"subscription_items(only_sold_in_store:true,status:"PUBLISHED")"}],type:"Application",abstractKey:null}],storageKey:null},action:"THROW",path:"app_store_item"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"MDCAppStoreV2AppPurchaseFlyoutQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[h,{kind:"TypeDiscriminator",abstractKey:"__isAppStoreItem"},e,i,{alias:null,args:null,kind:"ScalarField",name:"is_linked_fb_account_required",storageKey:null},{alias:null,args:null,concreteType:"AppStoreItemPurchaseAlertInfo",kind:"LinkedField",name:"purchase_alerts",plural:!0,selections:[h,{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:[h,{kind:"TypeDiscriminator",abstractKey:"__isPurchasableOfferWithApp"},e,k,j,l,m],storageKey:null},{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:[e,{kind:"InlineFragment",selections:[k,j,m,l],type:"PurchasableOfferWithApp",abstractKey:"__isPurchasableOfferWithApp"}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"parent_application",plural:!1,selections:n,storageKey:null}],type:"IAPItem",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"OCEntAppStoreItemWithQualityRatingsQualityRatingHistogramAggregate",kind:"LinkedField",name:"quality_rating_histogram_aggregate_all",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"star_rating",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"quality_rating_aggregate",storageKey:null},{alias:null,args:g,concreteType:"ApplicationSubscriptionItemsConnection",kind:"LinkedField",name:"subscription_items",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[h,{kind:"InlineFragment",selections:[e,{alias:null,args:null,kind:"ScalarField",name:"sku",storageKey:null},{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},e],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offers",plural:!0,selections:[h,e,i,{alias:null,args:null,kind:"ScalarField",name:"price_with_formatted_term_and_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price_with_formatted_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subscription_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"strikethrough_price_with_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"strikethrough_price_with_formatted_term",storageKey:null},{alias:null,args:null,concreteType:"AppCouponCampaign",kind:"LinkedField",name:"current_campaign",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"promo_offer_text",storageKey:null},e],storageKey:null}],storageKey:null}],type:"IAPItem",abstractKey:null},{kind:"InlineFragment",selections:n,type:"Node",abstractKey:"__isNode"}],storageKey:null}],storageKey:"subscription_items(only_sold_in_store:true,status:"PUBLISHED")"}],type:"Application",abstractKey:null}],storageKey:null}]},params:{id:b("MDCAppStoreV2AppPurchaseFlyoutQuery_oculusRelayOperation"),metadata:{},name:"MDCAppStoreV2AppPurchaseFlyoutQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
MDCAppStoreV2AppPurchaseContent_item.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2AppPurchaseContent_item",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"RequiredField",field:a,action:"THROW",path:"id"},{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"parent_application",plural:!1,selections:[a],storageKey:null}],type:"IAPItem",abstractKey:null},{args:null,kind:"FragmentSpread",name:"useMDCAppStoreV2PurchaseItemRating_item"}],type:"AppStoreItem",abstractKey:"__isAppStoreItem"}}();e.exports=a}),null);
-----
MDCAppStoreV2AppPurchaseContent_offer.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2AppPurchaseContent_offer",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},a],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"strikethrough_price",plural:!1,selections:[a],storageKey:null}],type:"PurchasableOfferWithApp",abstractKey:"__isPurchasableOfferWithApp"}}();e.exports=a}),null);
-----
-----
MDCAppStoreV2AppPurchaseContent.react",["fbt","invariant","CometRelay","MDCAppStoreHttpError","MDCAppStoreLocalUserContext","MDCAppStoreLocalUserErrorUtils","MDCAppStoreOculusEngagementEventsContext.react","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStoreV2AppPurchaseContent_item.graphql","MDCAppStoreV2AppPurchaseContent_offer.graphql","MDCAppStoreV2PurchaseAddPaymentMethod.react","MDCAppStoreV2PurchaseAddPinForm.react","MDCAppStoreV2PurchaseConfirmOrder.react","MDCAppStoreV2PurchaseCreateOrder.react","MDCAppStoreV2PurchaseCreateOrderForSku.react","MDCAppStoreV2PurchaseError.react","MDCAppStoreV2UpdateBillingAddressForm.react","isTruthy","react","requireDeferred","translatedServerString","useMDCAppStoreV2PurchaseItemRating","useMDCUrlAndReferrer"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react"));e=l;var n=e.useContext,o=e.useEffect,p=e.useState,q=c("requireDeferred")("DollyAppStorePurchaseAddPaymentViewEvent.log").__setRef("MDCAppStoreV2AppPurchaseContent.react"),r=c("requireDeferred")("DollyAppStorePurchaseClickEvent.log").__setRef("MDCAppStoreV2AppPurchaseContent.react"),s=c("requireDeferred")("DollyAppStorePurchaseViewEvent.log").__setRef("MDCAppStoreV2AppPurchaseContent.react");function a(a){var e,g=a.item,l=a.offer,t=a.onDismiss,u=a.purchaseFlyoutProps;a=a.sku;var v=d("CometRelay").useFragment(j!==void 0?j:j=b("MDCAppStoreV2AppPurchaseContent_item.graphql"),g),w=d("CometRelay").useFragment(k!==void 0?k:k=b("MDCAppStoreV2AppPurchaseContent_offer.graphql"),l),x=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useClickLogging("AppPurchaseButton");g=c("useMDCUrlAndReferrer")();var y=g.referrer,z=g.url,A=c("useMDCAppStoreV2PurchaseItemRating")(v);o(function(){x("LAUNCH_PURCHASE_FLOW",{content_id:v.id,subsurface:"PDP"}),r.onReady(function(a){return a.DollyAppStorePurchaseClickEvent.log({url:z,referrer:y,placement:"side_box",category:"app",english_name:(a=v.display_name)!=null?a:"Purchase",price:(w==null?void 0:(a=w.price)==null?void 0:a.offset_amount)!=null?Number(w==null?void 0:(a=w.price)==null?void 0:a.offset_amount):0,striked_price:(w==null?void 0:(a=w.strikethrough_price)==null?void 0:a.offset_amount)!=null?Number(w==null?void 0:(a=w.strikethrough_price)==null?void 0:a.offset_amount):0,currency:(a=w==null?void 0:(a=w.price)==null?void 0:a.currency)!=null?a:"USD",sku:v.id,rating:(a=A())!=null?a:0})})},[]);l=p(null);g=l[0];var B=l[1];l=p(null);var C=l[0],D=l[1];l=p("create_order");var E=l[0],F=l[1];l=p(null);var G=l[0],H=l[1],I=c("useMDCUrlAndReferrer")();l=n(c("MDCAppStoreLocalUserContext"));var J=l.userID,K=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("PurchaseModal");o(function(){E==="confirm_order"&&s.onReadyImmediately(function(a){return a.DollyAppStorePurchaseViewEvent.log(babelHelpers["extends"]({placement:"app_store.purchase"},I))})},[E,I]);l=u.setDescription;var L=u.setFooter,M=u.setTitle,N=function(){F("create_order"),K("ADD_CREDIT_CARD_SUCCESS")},O=function(){F("add_payment_method"),q.onReadyImmediately(function(a){return a.DollyAppStorePurchaseAddPaymentViewEvent.log(babelHelpers["extends"]({english_text:"Add Payment Method",placement:"app_store.purchase"},I))})},P=function(){F("add_pin")},Q=function(a){if(a&&d("MDCAppStoreLocalUserErrorUtils").isLoginRequiredError(a,J)){t();return}F("error");B(a)},R=function(a,b){var c,d=a.create_order;if(d&&((c=d.order)==null?void 0:c.id)!==null&&b!==!0&&((c=d.order)==null?void 0:(b=c.payment_method)==null?void 0:b.is_billing_address_update_required)===!0){D(d.order.id);H(a);F("billing_address_update");return}D(d==null?void 0:(c=d.order)==null?void 0:c.id);H(a);F("confirm_order")},S=function(){K("CANCEL_PURCHASE"),t()};e=(e=v.parent_application)==null?void 0:e.id;switch(E){case"create_order":l(null);L(null);M(h._("Creating your order"));return e!=null&&a!=null?m.jsx(c("MDCAppStoreV2PurchaseCreateOrderForSku.react"),{appID:e,logEvent:K,sku:a,onCancel:S,onError:Q,onErrorMissingPaymentMethod:O,onErrorMissingPin:P,onSuccess:function(a,b){D(a),H(b),F("confirm_order")}}):m.jsx(c("MDCAppStoreV2PurchaseCreateOrder.react"),{logEvent:K,offerId:(l=w==null?void 0:w.id)!=null?l:"",onCancel:S,onErrorPayment:O,onErrorPin:P,onErrorUnhandled:Q,onSuccess:R});case"add_payment_method":M(h._("Add payment method"));return m.jsx(c("MDCAppStoreV2PurchaseAddPaymentMethod.react"),{purchaseFlyoutProps:u,onError:Q,onSuccess:N});case"billing_address_update":l=G==null?void 0:(e=G.create_order)==null?void 0:(a=e.order)==null?void 0:a.payment_method;l&&l.id!=null||i(0,71885);O=l.billing_address;P=l.display_name;e=l.id;L(null);M(h._("Update billing address"));return e&&P!=null&&O&&O.country!=null&&m.jsx(c("MDCAppStoreV2UpdateBillingAddressForm.react"),{paymentMethodId:e,paymentMethodName:P,postalCodeInitialValue:O.zip,purchaseFlyoutProps:u,stateInitialValue:O.state,onError:Q,onSuccess:function(){var a;(G==null?void 0:G.create_order)&&((a=G.create_order)==null?void 0:(a=a.order)==null?void 0:a.id)!=null&&R(G,!0)}});case"add_pin":L(null);M(h._("Create your Meta Quest PIN"));return m.jsx(c("MDCAppStoreV2PurchaseAddPinForm.react"),{onSubmitSuccess:N});case"confirm_order":C!=null||i(0,71886);L(null);M(h._("Confirm purchase"));return m.jsx(d("MDCAppStoreOculusEngagementEventsContext.react").MDCAppStoreOculusEngagementEventsContextProvider,{value:{store_order_id:C},children:m.jsx(c("MDCAppStoreV2PurchaseConfirmOrder.react"),{orderId:C,purchaseFlyoutProps:u,onError:Q,onHide:S})});case"error":M(g instanceof c("MDCAppStoreHttpError")&&c("isTruthy")(g.getHttpErrorTitle())?c("translatedServerString")((a=g.getHttpErrorTitle())!=null?a:""):h._("Purchase error"));return m.jsx(c("MDCAppStoreV2PurchaseError.react"),{error:(l=g)!=null?l:new Error(),setFooter:L,onDismiss:S})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2AppPurchaseFlyoutQuery.graphql",["MDCAppStoreV2AppPurchaseFlyoutQuery_oculusRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"hmdType"},c={defaultValue:null,kind:"LocalArgument",name:"itemId"},d=[{kind:"Variable",name:"hmd_type",variableName:"hmdType"},{kind:"Variable",name:"id",variableName:"itemId"}],e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},f=[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchaseContent_offer"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchasePrePurchaseContent_offer"},e],g=[{kind:"Literal",name:"only_sold_in_store",value:!0},{kind:"Literal",name:"status",value:"PUBLISHED"}],h={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null};j={kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},j],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"strikethrough_price",plural:!1,selections:[j],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offer_type",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"descriptions",storageKey:null}],type:"AppStoreTrialOffer",abstractKey:null}],type:"PurchasableOfferWithApp",abstractKey:"__isPurchasableOfferWithApp"};var k=[e];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"MDCAppStoreV2AppPurchaseFlyoutQuery",selections:[{kind:"RequiredField",field:{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchaseContent_item"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchaseFreePurchaseContent_item"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchasePrePurchaseContent_item"},{kind:"RequiredField",field:e,action:"THROW",path:"app_store_item.id"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:f,storageKey:null},{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:f,storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:g,concreteType:"ApplicationSubscriptionItemsConnection",kind:"LinkedField",name:"subscription_items",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"useMDCAppStoreV2PurchaseSubscriptionList_subscriptions"}],storageKey:null}],storageKey:"subscription_items(only_sold_in_store:true,status:"PUBLISHED")"}],type:"Application",abstractKey:null}],storageKey:null},action:"THROW",path:"app_store_item"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"MDCAppStoreV2AppPurchaseFlyoutQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[h,{kind:"TypeDiscriminator",abstractKey:"__isAppStoreItem"},e,i,{alias:null,args:null,kind:"ScalarField",name:"is_linked_fb_account_required",storageKey:null},{alias:null,args:null,concreteType:"AppStoreItemPurchaseAlertInfo",kind:"LinkedField",name:"purchase_alerts",plural:!0,selections:[h,{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:[h,e,j],storageKey:null},{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:[e,j],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"parent_application",plural:!1,selections:k,storageKey:null}],type:"IAPItem",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"OCEntAppStoreItemWithQualityRatingsQualityRatingHistogramAggregate",kind:"LinkedField",name:"quality_rating_histogram_aggregate_all",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"star_rating",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"quality_rating_aggregate",storageKey:null},{alias:null,args:g,concreteType:"ApplicationSubscriptionItemsConnection",kind:"LinkedField",name:"subscription_items",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[h,{kind:"InlineFragment",selections:[e,{alias:null,args:null,kind:"ScalarField",name:"sku",storageKey:null},{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},e],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offers",plural:!0,selections:[h,e,i,{alias:null,args:null,kind:"ScalarField",name:"price_with_formatted_term_and_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price_with_formatted_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subscription_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"strikethrough_price_with_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"strikethrough_price_with_formatted_term",storageKey:null},{alias:null,args:null,concreteType:"AppCouponCampaign",kind:"LinkedField",name:"current_campaign",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"promo_offer_text",storageKey:null},e],storageKey:null}],storageKey:null}],type:"IAPItem",abstractKey:null},{kind:"InlineFragment",selections:k,type:"Node",abstractKey:"__isNode"}],storageKey:null}],storageKey:"subscription_items(only_sold_in_store:true,status:"PUBLISHED")"}],type:"Application",abstractKey:null}],storageKey:null}]},params:{id:b("MDCAppStoreV2AppPurchaseFlyoutQuery_oculusRelayOperation"),metadata:{},name:"MDCAppStoreV2AppPurchaseFlyoutQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
MDCAppStoreV2AppPurchaseContent_item.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2AppPurchaseContent_item",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"RequiredField",field:a,action:"THROW",path:"id"},{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"parent_application",plural:!1,selections:[a],storageKey:null}],type:"IAPItem",abstractKey:null},{args:null,kind:"FragmentSpread",name:"useMDCAppStoreV2PurchaseItemRating_item"}],type:"AppStoreItem",abstractKey:"__isAppStoreItem"}}();e.exports=a}),null);
-----
MDCAppStoreV2AppPurchaseContent_offer.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2AppPurchaseContent_offer",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},a],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"strikethrough_price",plural:!1,selections:[a],storageKey:null}],type:"PurchasableOfferWithApp",abstractKey:"__isPurchasableOfferWithApp"}}();e.exports=a}),null);
-----
MDCAppStoreV2AppPurchaseFlyout.react",["CometRelay","DDSFlexbox.react","DDSFlyOut.react","DDSSpinner.react","MDCAppStoreStoreAPI","MDCAppStoreV2AppPurchaseContent.react","MDCAppStoreV2AppPurchaseFlyoutQuery.graphql","MDCAppStoreV2AppPurchaseFreePurchaseContent.react","MDCAppStoreV2AppPurchasePrePurchaseContent.react","MDCAppStoreV2AppPurchaseState","MDCAppStoreV2SubscriptionSelectionContent.react","Placeholder.react","emptyArray","react","translatedServerString","useMDCAppStoreV2PurchaseSubscriptionList"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useMemo,m=e.useState,n={spinner:{width:"xh8yej3",$$css:!0}};function a(a){var e=a.props,f=e.modalProps,g=f.initialState,i=f.isTrialOffer,o=f.setIsLoading,p=e.onClose;f=a.queries.MDCAppStoreV2AppPurchaseFlyoutQueryRef;e=d("CometRelay").useQueryLoader(c("MDCAppStoreV2AppPurchaseFlyoutQuery.graphql"),f);a=e[0];var q=e[1];a=d("CometRelay").usePreloadedQuery(h!==void 0?h:h=b("MDCAppStoreV2AppPurchaseFlyoutQuery.graphql"),(e=a)!=null?e:f);var r=a.app_store_item;e=m(g);var s=e[0],t=e[1];f=m(null);a=f[0];var u=f[1];g=m(null);e=g[0];var v=g[1];f=m(c("translatedServerString")(""));g=f[0];var w=f[1],x=c("useMDCAppStoreV2PurchaseSubscriptionList")((f=(f=r.subscription_items)==null?void 0:f.nodes)!=null?f:c("emptyArray"));f=m(Array.from(x.keys())[0]);var y=f[0],z=f[1],A=k(function(){var a;q({itemId:(a=(a=x.get(y))==null?void 0:a.itemId)!=null?a:"",hmdType:d("MDCAppStoreStoreAPI").getSelectedHmdType()});t(c("MDCAppStoreV2AppPurchaseState").PRE_PURCHASE)},[q,y,x]);f=l(function(){var a=i===!0?r.current_trial_offer:r.current_offer;switch(s){case c("MDCAppStoreV2AppPurchaseState").SUBSCRIBE:return j.jsx(c("MDCAppStoreV2SubscriptionSelectionContent.react"),{itemId:r.id,purchaseFlyoutProps:{setDescription:u,setFooter:v,setTitle:w},setSku:z,sku:y,subscriptions:x,onSubmit:A});case c("MDCAppStoreV2AppPurchaseState").PRE_PURCHASE:return j.jsx(c("MDCAppStoreV2AppPurchasePrePurchaseContent.react"),{item:r,offerRef:a,purchaseFlyoutProps:{setDescription:u,setFooter:v,setTitle:w},setState:t,onClose:p});case c("MDCAppStoreV2AppPurchaseState").PURCHASE_FREE:return j.jsx(c("MDCAppStoreV2AppPurchaseFreePurchaseContent.react"),{closeModal:p,hasAvailableSubscriptions:x.size>0,item:r,offerId:a==null?void 0:a.id,purchaseFlyoutProps:{setDescription:u,setFooter:v,setTitle:w},setIsLoading:o,setState:t});case c("MDCAppStoreV2AppPurchaseState").PURCHASE_PAID:return j.jsx(c("MDCAppStoreV2AppPurchaseContent.react"),{item:r,offer:a,purchaseFlyoutProps:{setDescription:u,setFooter:v,setTitle:w},sku:y,onDismiss:p});case c("MDCAppStoreV2AppPurchaseState").NOT_PURCHASING:return null}},[i,r,s,y,x,A,p,o]);var B=k(function(){t(c("MDCAppStoreV2AppPurchaseState").NOT_PURCHASING),p()},[p]);g=(g=g)!=null?g:c("translatedServerString")("");return j.jsx(c("DDSFlyOut.react"),{ariaLabel:g,description:(a=a)!=null?a:void 0,footer:e,title:g,onClose:B,children:j.jsx(c("Placeholder.react"),{fallback:j.jsx(c("DDSFlexbox.react"),{justifyContent:"center",xstyle:n.spinner,children:j.jsx(c("DDSSpinner.react"),{})}),children:f})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MDCAppStoreV2AppPurchaseContent.react",["fbt","invariant","CometRelay","MDCAppStoreHttpError","MDCAppStoreLocalUserContext","MDCAppStoreLocalUserErrorUtils","MDCAppStoreOculusEngagementEventsContext.react","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStoreV2AppPurchaseContent_item.graphql","MDCAppStoreV2AppPurchaseContent_offer.graphql","MDCAppStoreV2PurchaseAddPaymentMethod.react","MDCAppStoreV2PurchaseAddPinForm.react","MDCAppStoreV2PurchaseConfirmOrder.react","MDCAppStoreV2PurchaseCreateOrder.react","MDCAppStoreV2PurchaseCreateOrderForSku.react","MDCAppStoreV2PurchaseError.react","MDCAppStoreV2UpdateBillingAddressForm.react","isTruthy","react","requireDeferred","translatedServerString","useMDCAppStoreV2PurchaseItemRating","useMDCUrlAndReferrer"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react"));e=l;var n=e.useContext,o=e.useEffect,p=e.useState,q=c("requireDeferred")("DollyAppStorePurchaseAddPaymentViewEvent.log").__setRef("MDCAppStoreV2AppPurchaseContent.react"),r=c("requireDeferred")("DollyAppStorePurchaseClickEvent.log").__setRef("MDCAppStoreV2AppPurchaseContent.react"),s=c("requireDeferred")("DollyAppStorePurchaseViewEvent.log").__setRef("MDCAppStoreV2AppPurchaseContent.react");function a(a){var e,g=a.item,l=a.offer,t=a.onDismiss,u=a.purchaseFlyoutProps;a=a.sku;var v=d("CometRelay").useFragment(j!==void 0?j:j=b("MDCAppStoreV2AppPurchaseContent_item.graphql"),g),w=d("CometRelay").useFragment(k!==void 0?k:k=b("MDCAppStoreV2AppPurchaseContent_offer.graphql"),l),x=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useClickLogging("AppPurchaseButton");g=c("useMDCUrlAndReferrer")();var y=g.referrer,z=g.url,A=c("useMDCAppStoreV2PurchaseItemRating")(v);o(function(){x("LAUNCH_PURCHASE_FLOW",{content_id:v.id,subsurface:"PDP"}),r.onReady(function(a){return a.DollyAppStorePurchaseClickEvent.log({url:z,referrer:y,placement:"side_box",category:"app",english_name:(a=v.display_name)!=null?a:"Purchase",price:(w==null?void 0:(a=w.price)==null?void 0:a.offset_amount)!=null?Number(w==null?void 0:(a=w.price)==null?void 0:a.offset_amount):0,striked_price:(w==null?void 0:(a=w.strikethrough_price)==null?void 0:a.offset_amount)!=null?Number(w==null?void 0:(a=w.strikethrough_price)==null?void 0:a.offset_amount):0,currency:(a=w==null?void 0:(a=w.price)==null?void 0:a.currency)!=null?a:"USD",sku:v.id,rating:(a=A())!=null?a:0})})},[]);l=p(null);g=l[0];var B=l[1];l=p(null);var C=l[0],D=l[1];l=p("create_order");var E=l[0],F=l[1];l=p(null);var G=l[0],H=l[1],I=c("useMDCUrlAndReferrer")();l=n(c("MDCAppStoreLocalUserContext"));var J=l.userID,K=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("PurchaseModal");o(function(){E==="confirm_order"&&s.onReadyImmediately(function(a){return a.DollyAppStorePurchaseViewEvent.log(babelHelpers["extends"]({placement:"app_store.purchase"},I))})},[E,I]);l=u.setDescription;var L=u.setFooter,M=u.setTitle,N=function(){F("create_order"),K("ADD_CREDIT_CARD_SUCCESS")},O=function(){F("add_payment_method"),q.onReadyImmediately(function(a){return a.DollyAppStorePurchaseAddPaymentViewEvent.log(babelHelpers["extends"]({english_text:"Add Payment Method",placement:"app_store.purchase"},I))})},P=function(){F("add_pin")},Q=function(a){if(a&&d("MDCAppStoreLocalUserErrorUtils").isLoginRequiredError(a,J)){t();return}F("error");B(a)},R=function(a,b){var c,d=a.create_order;if(d&&((c=d.order)==null?void 0:c.id)!==null&&b!==!0&&((c=d.order)==null?void 0:(b=c.payment_method)==null?void 0:b.is_billing_address_update_required)===!0){D(d.order.id);H(a);F("billing_address_update");return}D(d==null?void 0:(c=d.order)==null?void 0:c.id);H(a);F("confirm_order")},S=function(){K("CANCEL_PURCHASE"),t()};e=(e=v.parent_application)==null?void 0:e.id;switch(E){case"create_order":l(null);L(null);M(h._("Creating your order"));return e!=null&&a!=null?m.jsx(c("MDCAppStoreV2PurchaseCreateOrderForSku.react"),{appID:e,logEvent:K,sku:a,onCancel:S,onError:Q,onErrorMissingPaymentMethod:O,onErrorMissingPin:P,onSuccess:function(a,b){D(a),H(b),F("confirm_order")}}):m.jsx(c("MDCAppStoreV2PurchaseCreateOrder.react"),{logEvent:K,offerId:(l=w==null?void 0:w.id)!=null?l:"",onCancel:S,onErrorPayment:O,onErrorPin:P,onErrorUnhandled:Q,onSuccess:R});case"add_payment_method":M(h._("Add payment method"));return m.jsx(c("MDCAppStoreV2PurchaseAddPaymentMethod.react"),{purchaseFlyoutProps:u,onError:Q,onSuccess:N});case"billing_address_update":l=G==null?void 0:(e=G.create_order)==null?void 0:(a=e.order)==null?void 0:a.payment_method;l&&l.id!=null||i(0,71885);O=l.billing_address;P=l.display_name;e=l.id;L(null);M(h._("Update billing address"));return e&&P!=null&&O&&O.country!=null&&m.jsx(c("MDCAppStoreV2UpdateBillingAddressForm.react"),{paymentMethodId:e,paymentMethodName:P,postalCodeInitialValue:O.zip,purchaseFlyoutProps:u,stateInitialValue:O.state,onError:Q,onSuccess:function(){var a;(G==null?void 0:G.create_order)&&((a=G.create_order)==null?void 0:(a=a.order)==null?void 0:a.id)!=null&&R(G,!0)}});case"add_pin":L(null);M(h._("Create your Meta Quest PIN"));return m.jsx(c("MDCAppStoreV2PurchaseAddPinForm.react"),{onSubmitSuccess:N});case"confirm_order":C!=null||i(0,71886);L(null);M(h._("Confirm purchase"));return m.jsx(d("MDCAppStoreOculusEngagementEventsContext.react").MDCAppStoreOculusEngagementEventsContextProvider,{value:{store_order_id:C},children:m.jsx(c("MDCAppStoreV2PurchaseConfirmOrder.react"),{orderId:C,purchaseFlyoutProps:u,onError:Q,onHide:S})});case"error":M(g instanceof c("MDCAppStoreHttpError")&&c("isTruthy")(g.getHttpErrorTitle())?c("translatedServerString")((a=g.getHttpErrorTitle())!=null?a:""):h._("Purchase error"));return m.jsx(c("MDCAppStoreV2PurchaseError.react"),{error:(l=g)!=null?l:new Error(),setFooter:L,onDismiss:S})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2AppPurchaseFlyoutQuery.graphql",["MDCAppStoreV2AppPurchaseFlyoutQuery_oculusRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"hmdType"},c={defaultValue:null,kind:"LocalArgument",name:"itemId"},d=[{kind:"Variable",name:"hmd_type",variableName:"hmdType"},{kind:"Variable",name:"id",variableName:"itemId"}],e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},f=[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchaseContent_offer"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchasePrePurchaseContent_offer"},e],g=[{kind:"Literal",name:"only_sold_in_store",value:!0},{kind:"Literal",name:"status",value:"PUBLISHED"}],h={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},k={alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},j],storageKey:null};j={alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"strikethrough_price",plural:!1,selections:[j],storageKey:null};var l={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"descriptions",storageKey:null}],type:"AppStoreTrialOffer",abstractKey:null},m={alias:null,args:null,kind:"ScalarField",name:"offer_type",storageKey:null},n=[e];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"MDCAppStoreV2AppPurchaseFlyoutQuery",selections:[{kind:"RequiredField",field:{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchaseContent_item"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchaseFreePurchaseContent_item"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2AppPurchasePrePurchaseContent_item"},{kind:"RequiredField",field:e,action:"THROW",path:"app_store_item.id"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:f,storageKey:null},{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:f,storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:g,concreteType:"ApplicationSubscriptionItemsConnection",kind:"LinkedField",name:"subscription_items",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"useMDCAppStoreV2PurchaseSubscriptionList_subscriptions"}],storageKey:null}],storageKey:"subscription_items(only_sold_in_store:true,status:"PUBLISHED")"}],type:"Application",abstractKey:null}],storageKey:null},action:"THROW",path:"app_store_item"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"MDCAppStoreV2AppPurchaseFlyoutQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[h,{kind:"TypeDiscriminator",abstractKey:"__isAppStoreItem"},e,i,{alias:null,args:null,kind:"ScalarField",name:"is_linked_fb_account_required",storageKey:null},{alias:null,args:null,concreteType:"AppStoreItemPurchaseAlertInfo",kind:"LinkedField",name:"purchase_alerts",plural:!0,selections:[h,{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:[h,{kind:"TypeDiscriminator",abstractKey:"__isPurchasableOfferWithApp"},e,k,j,l,m],storageKey:null},{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:[e,{kind:"InlineFragment",selections:[k,j,m,l],type:"PurchasableOfferWithApp",abstractKey:"__isPurchasableOfferWithApp"}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"parent_application",plural:!1,selections:n,storageKey:null}],type:"IAPItem",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"OCEntAppStoreItemWithQualityRatingsQualityRatingHistogramAggregate",kind:"LinkedField",name:"quality_rating_histogram_aggregate_all",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"star_rating",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"quality_rating_aggregate",storageKey:null},{alias:null,args:g,concreteType:"ApplicationSubscriptionItemsConnection",kind:"LinkedField",name:"subscription_items",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[h,{kind:"InlineFragment",selections:[e,{alias:null,args:null,kind:"ScalarField",name:"sku",storageKey:null},{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},e],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offers",plural:!0,selections:[h,e,i,{alias:null,args:null,kind:"ScalarField",name:"price_with_formatted_term_and_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price_with_formatted_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subscription_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"strikethrough_price_with_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"strikethrough_price_with_formatted_term",storageKey:null},{alias:null,args:null,concreteType:"AppCouponCampaign",kind:"LinkedField",name:"current_campaign",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"promo_offer_text",storageKey:null},e],storageKey:null}],storageKey:null}],type:"IAPItem",abstractKey:null},{kind:"InlineFragment",selections:n,type:"Node",abstractKey:"__isNode"}],storageKey:null}],storageKey:"subscription_items(only_sold_in_store:true,status:"PUBLISHED")"}],type:"Application",abstractKey:null}],storageKey:null}]},params:{id:b("MDCAppStoreV2AppPurchaseFlyoutQuery_oculusRelayOperation"),metadata:{},name:"MDCAppStoreV2AppPurchaseFlyoutQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
MDCAppStoreV2AppPurchaseContent_item.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2AppPurchaseContent_item",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"RequiredField",field:a,action:"THROW",path:"id"},{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"parent_application",plural:!1,selections:[a],storageKey:null}],type:"IAPItem",abstractKey:null},{args:null,kind:"FragmentSpread",name:"useMDCAppStoreV2PurchaseItemRating_item"}],type:"AppStoreItem",abstractKey:"__isAppStoreItem"}}();e.exports=a}),null);
-----
MDCAppStoreV2AppPurchaseContent_offer.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2AppPurchaseContent_offer",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},a],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"strikethrough_price",plural:!1,selections:[a],storageKey:null}],type:"PurchasableOfferWithApp",abstractKey:"__isPurchasableOfferWithApp"}}();e.exports=a}),null);
-----