OCDevManageApplicationSubmissionMetadataSpecsContentRatingModal.react",["OCDevManageApplicationSubmissionMetadataSpecsContentRatingModalMutation.graphql","OCDevManageApplicationSubmissionMetadataSpecsContentRatingModalQuery.graphql","OCDevManageApplicationSubmissionMetadataSpecsContentRatingStepperModal.react","OCDevManageApplicationSubmissionMetadataSpecsContentRatingSurveyGeoModalCard.react","OCDevUIForm.react","XFBHorizonContentRatingSurveyLevelsUtils.oculus","asyncToGeneratorRuntime","gkx","react","useOCDevUICommitMutation","useOCDevUIQuery"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u,c=u||(u=o("react")),d=u.useState;function m(t){var a=t.pdpMetadataID,i=r("useOCDevUIQuery")(e!==void 0?e:e=n("OCDevManageApplicationSubmissionMetadataSpecsContentRatingModalQuery.graphql"),{}),l=i.xfb_horizon_content_rating_config,u=d({}),m=u[0],p=u[1],_=r("useOCDevUICommitMutation")(s!==void 0?s:s=n("OCDevManageApplicationSubmissionMetadataSpecsContentRatingModalMutation.graphql"));function f(){return g.apply(this,arguments)}function g(){return g=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=l.map(function(e){return e.survey_descriptor}),t=e.filter(function(e){return e!=null&&m[e]!=null}).flatMap(function(e){var t=m[e];return t.length===0?{Descriptor:e,Level:null}:t.map(function(t){return{Descriptor:e,Level:o("XFBHorizonContentRatingSurveyLevelsUtils.oculus").fromJSEnum(t)}})});yield _({input:{horizon_content_with_rating_id:a,rating_survey_response:t}},{closeModalOnSuccess:!0,refetchOnSuccess:!0})}),g.apply(this,arguments)}var h=r("gkx")("14131");return c.jsx(r("OCDevUIForm.react"),{onSubmit:f,children:h?c.jsx(r("OCDevManageApplicationSubmissionMetadataSpecsContentRatingStepperModal.react"),{config:l,currentAnswers:m,setCurrentAnswers:p}):c.jsx(o("OCDevManageApplicationSubmissionMetadataSpecsContentRatingSurveyGeoModalCard.react").OCDevManageApplicationSubmissionMetadataSpecsContentRatingSurveyGeoModalCard,{config:l,currentAnswers:m,setCurrentAnswers:p})})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98);
-----
OCDevManageApplicationSubmissionMetadataSpecsContentRatingModalMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{kind:"Variable",name:"data",variableName:"input"}],c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCDevManageApplicationSubmissionMetadataSpecsContentRatingModalMutation",selections:[{alias:null,args:b,concreteType:"XOCUpdateContentRatingHorizonContentWithRatingResponsePayload",kind:"LinkedField",name:"xoc_update_content_rating_horizon_content_with_rating",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"horizon_content_with_rating",plural:!1,selections:[c],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCDevManageApplicationSubmissionMetadataSpecsContentRatingModalMutation",selections:[{alias:null,args:b,concreteType:"XOCUpdateContentRatingHorizonContentWithRatingResponsePayload",kind:"LinkedField",name:"xoc_update_content_rating_horizon_content_with_rating",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"horizon_content_with_rating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c],storageKey:null}],storageKey:null}]},params:{id:"9056599757775722",metadata:{},name:"OCDevManageApplicationSubmissionMetadataSpecsContentRatingModalMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----