UGCAgentsVersionHistoryDialog.react",["fbt","CDSButton.react","CDSDialog.react","CDSDialogHeader.react","CDSIcon.react","CDSIconButton.react","CDSList.react","CDSListCellWithButtons.react","CDSText.react","CometColumn.react","CometColumnItem.react","CometRelay","MetaBrandCaretRightFilled24.svg.react","UGCAgentsVersionChanges.entrypoint","UGCAgentsVersionHistoryDialogQuery.graphql","UGCAgentsVersionHistoryDialog_versions.graphql","UGCCharacterVersionStatusTextBadge.react","formatDate","react","usePushPage"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react"),m=i!==void 0?i:i=b("UGCAgentsVersionHistoryDialog_versions.graphql"),n=j!==void 0?j:j=b("UGCAgentsVersionHistoryDialogQuery.graphql");function o(a){var b=a.editorName,d=a.id,e=a.isLast,f=a.lastUpdatedTime,g=a.onClose,i=a.onRevert,j=a.personaID;a=a.status;j=c("usePushPage")(c("UGCAgentsVersionChanges.entrypoint"),{personaID:j,versionID:d});var k=j[0];j[1];return l.jsx(c("CDSListCellWithButtons.react"),{addOnEnd:l.jsx(c("CDSIconButton.react"),{"aria-label":h._(/*BTDS*/"View version changes"),onPress:function(){k({onClose:g,onRevert:i})},children:l.jsx(c("CDSIcon.react"),{icon:c("MetaBrandCaretRightFilled24.svg.react"),size:24})}),badge:a==="PUBLISHED"?l.jsx(c("UGCCharacterVersionStatusTextBadge.react"),{status:a}):null,hasBottomDivider:!e,subtitle:h._(/*BTDS*/"by {username}",[h._param("username",b)]),title:c("formatDate")(f,"M j, Y"),titleColor:"primaryText"},d)}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.props,e=b.onClose,f=b.onRevert,g=a.queries.queryReference;b=d("CometRelay").usePreloadedQuery(n,g);a=d("CometRelay").usePaginationFragment(m,b);var i=a.data,j=a.hasNext,k=a.isLoadingNext,p=a.loadNext;return l.jsx(c("CDSDialog.react"),{footer:null,header:l.jsx(c("CDSDialogHeader.react"),{onClose:e,title:"",titleHidden:!0}),onClose:e,children:l.jsxs(c("CometColumn.react"),{paddingHorizontal:20,spacing:20,children:[l.jsx(c("CometColumnItem.react"),{children:l.jsx(c("CDSText.react"),{textStyle:"headline1",children:h._(/*BTDS*/"{name} version history",[h._param("name",b.xfb_fetch_genai_persona.version.name)])})}),l.jsx(c("CometColumnItem.react"),{children:l.jsx(c("CDSList.react"),{children:(a=i.xfb_fetch_genai_persona.persona_versions)==null?void 0:a.edges.map(function(a,b,c){var d;a=a.node;return a==null?null:l.jsx(o,{editorName:(d=(d=(d=a.editor)==null?void 0:d.username)!=null?d:(d=a.editor)==null?void 0:d.name)!=null?d:"",id:(d=a.id)!=null?d:"",isLast:b===c.length-1,lastUpdatedTime:(d=a.last_updated_time)!=null?d:0,onClose:e,onRevert:f,personaID:g.variables.personaID,status:a.status},a.id)})})}),j&&l.jsx(c("CometColumnItem.react"),{children:l.jsx(c("CDSButton.react"),{label:h._(/*BTDS*/"See more"),loading:k,onPress:function(){p(20)},type:"secondary"})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
UGCAgentsVersionHistoryDialog.entrypoint",["JSResourceForInteraction","UGCAgentsVersionHistoryDialogQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){return{queries:{queryReference:{options:{fetchPolicy:"store-and-network"},parameters:c("UGCAgentsVersionHistoryDialogQuery$Parameters"),variables:{personaID:a.personaID}}}}},root:c("JSResourceForInteraction")("UGCAgentsVersionHistoryDialog.react").__setRef("UGCAgentsVersionHistoryDialog.entrypoint")};g["default"]=a}),98);
-----
UGCAgentsVersionHistoryDialogQuery$Parameters",["KirbyIsCharacterModelTypeEnabled.relayprovider","KirbyIsIPCharacterAvoidedTopicsEnabled.relayprovider","KirbyIsIPCharacterKnowledgeUploadDocsEnabled.relayprovider","KirbyIsIPCharacterLinksEnabled.relayprovider","KirbyIsIPCharacterReelsEnabled.relayprovider","KirbyIsIPCharacterVoiceEnabled.relayprovider","UGCAgentsVersionHistoryDialogQuery_facebookRelayOperation","WebPixelRatio.relayprovider"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("UGCAgentsVersionHistoryDialogQuery_facebookRelayOperation"),metadata:{},name:"UGCAgentsVersionHistoryDialogQuery",operationKind:"query",text:null,providedVariables:{__relay_internal__pv__KirbyIsIPCharacterAvoidedTopicsEnabledrelayprovider:b("KirbyIsIPCharacterAvoidedTopicsEnabled.relayprovider"),__relay_internal__pv__KirbyIsIPCharacterKnowledgeUploadDocsEnabledrelayprovider:b("KirbyIsIPCharacterKnowledgeUploadDocsEnabled.relayprovider"),__relay_internal__pv__KirbyIsIPCharacterLinksEnabledrelayprovider:b("KirbyIsIPCharacterLinksEnabled.relayprovider"),__relay_internal__pv__KirbyIsIPCharacterReelsEnabledrelayprovider:b("KirbyIsIPCharacterReelsEnabled.relayprovider"),__relay_internal__pv__KirbyIsIPCharacterVoiceEnabledrelayprovider:b("KirbyIsIPCharacterVoiceEnabled.relayprovider"),__relay_internal__pv__KirbyIsCharacterModelTypeEnabledrelayprovider:b("KirbyIsCharacterModelTypeEnabled.relayprovider"),__relay_internal__pv__WebPixelRatiorelayprovider:b("WebPixelRatio.relayprovider")}}};e.exports=a}),null);
-----
UGCAgentsVersionHistoryDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24177462875251822"}),null);
-----