CometDevDocsFeedbackSurveyModal.react",["fbt","CometDevDocsFeedbackSurveyModalMutation.graphql","DeveloperDocsTestIDs","DeveloperDocumentationLoggerUtils","MCDSButton.react","MCDSHeading.react","MCDSRadioItem.react","MCDSRadioList.react","MCDSRow.react","MCDSRowItem.react","MCDSTextArea.react","MCDSVerticalStack.react","RelayHooks","XFBDevDocsFeedbackReason.facebook","mcdsMargin","react","translatedServerString"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u.useState,m=15,p=5e3,_="INCOMPLETE_INFORMATION",f=e!==void 0?e:e=n("CometDevDocsFeedbackSurveyModalMutation.graphql");function g(e){var t=e.metadata_id,n=e.metadataPath,a=e.onClose,i=d(_),l=i[0],u=i[1],m=d(""),g=m[0],C=m[1],b=o("RelayHooks").useMutation(f),v=b[0],S=function(){o("DeveloperDocumentationLoggerUtils").logDeveloperDocumentationOpsAndUserDataEvent({event:"dev_doc_freeform_feedback_submit",doc_metadata_path:n});var e=r("XFBDevDocsFeedbackReason.facebook").cast(l);e==null||t==null||(v({variables:{input:{metadata_id:t,comment:g,reasons:[e]}},onError:function(t){o("DeveloperDocumentationLoggerUtils").logDeveloperDocumentationError(t,{code_location:"CometDevDocsFeedbackSurveyModal.react.js",event:"dev_doc_freeform_feedback_error"})}}),a())};return c.jsxs(r("MCDSVerticalStack.react"),{children:[c.jsx(r("MCDSHeading.react"),{color:"primary",responsive:"responsive",type:"mcds_title_large_emphasized",xstyle:r("mcdsMargin").bottom56,children:s._(/*BTDS*/"What led to your choice?")}),c.jsx(r("MCDSRadioList.react"),{isLabelHidden:!0,label:s._(/*BTDS*/"What led to your choice?"),onChange:function(t){return u(t)},value:l,xstyle:r("mcdsMargin").bottom24,children:y.map(function(e){return c.jsx(r("MCDSRadioItem.react"),{label:e.label,value:e.value},e.value)})}),c.jsx(r("MCDSTextArea.react"),{autoFocus:!1,"data-testid":void 0,errorMessage:h(g),label:s._(/*BTDS*/"Tell us more (Optional)"),maxLength:p,onValueChange:C,shouldAutoGrow:!1,value:g,xstyle:r("mcdsMargin").bottom16}),c.jsxs(r("MCDSRow.react"),{children:[c.jsx(r("MCDSRowItem.react"),{span:{mobile:6,desktop:6},children:c.jsx(r("MCDSButton.react"),{"data-testid":void 0,display:"block",label:s._(/*BTDS*/"Cancel"),onClick:function(){C(""),u(_),a()},type:"secondary",xstyle:r("mcdsMargin").end16})}),c.jsx(r("MCDSRowItem.react"),{span:{mobile:6,desktop:6},children:c.jsx(r("MCDSButton.react"),{"data-testid":void 0,display:"block",isDisabled:h(g)!=null&&g!=="",label:s._(/*BTDS*/"Submit"),onClick:S,type:"primary"})})]})]})}g.displayName=g.name+" [from "+i.id+"]";function h(e){return e.trim().length>0&&e.trim().lengthp?r("translatedServerString")("Maximum limit "+p+" characters"):null}var y=[{label:s._(/*BTDS*/"Information is incomplete"),value:"INCOMPLETE_INFORMATION"},{label:s._(/*BTDS*/"Too complex or too many steps"),value:"TOO_COMPLEX_OR_TOO_MANY_STEPS"},{label:s._(/*BTDS*/"Outdated information"),value:"OUT_OF_DATE_INFORMATION"},{label:s._(/*BTDS*/"Code or sample issue"),value:"CODE_OR_SAMPLE_ISSUE"}];l.default=g}),226);
-----
CometDevDocsFeedbackSurveyModalMutation.graphql",["CometDevDocsFeedbackSurveyModalMutation_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XFBDfcSubmitFeedbackCommentResponsePayload",kind:"LinkedField",name:"xfb_dfc_submit_feedback_comment",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"CometDevDocsFeedbackSurveyModalMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"CometDevDocsFeedbackSurveyModalMutation",selections:t},params:{id:n("CometDevDocsFeedbackSurveyModalMutation_facebookRelayOperation"),metadata:{},name:"CometDevDocsFeedbackSurveyModalMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
CometDevDocsFeedbackSurveyModalMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24762709186739925"}),null);
-----
-----
CometDevDocsFeedbackSurveyModalMutation.graphql",["CometDevDocsFeedbackSurveyModalMutation_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XFBDfcSubmitFeedbackCommentResponsePayload",kind:"LinkedField",name:"xfb_dfc_submit_feedback_comment",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"CometDevDocsFeedbackSurveyModalMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"CometDevDocsFeedbackSurveyModalMutation",selections:t},params:{id:n("CometDevDocsFeedbackSurveyModalMutation_facebookRelayOperation"),metadata:{},name:"CometDevDocsFeedbackSurveyModalMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
CometDevDocsFeedbackSurveyModalMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24762709186739925"}),null);
-----