BizWebCometOmniAICustomSkillsContainer.react",["fbt","BizGenAIGatingContext","BizWebCometImpressionLoggingWrapper.react","BizWebCometOmniAICustomSkillsContainerDeleteTopicMutation.graphql","BizWebCometOmniAICustomSkillsContainerImproveInstructionMutation.graphql","BizWebCometOmniAICustomSkillsContainerMutation.graphql","BizWebCometOmniAICustomSkillsContainer_query.graphql","BizWebCometOmniAiSkillsWorkflowContainer.react","BizWebCometOmniAiTopicsConsts","BusinessAiLayoutContext","CometRelay","CometRouteParams","GeoBaseText.react","GeoButton.react","GeoCard.react","GeoDivider.react","GeoFlexbox.react","GeoHeading.react","GeoIcon.react","GeoLink.react","GeoSection.react","GeoSwitch.react","GeoTextInput.react","GeoToast.react","MessagingAIOnboardingFlowLoggingUtils","RelayHooks","deferredLoadComponent","err","geoMargin","gkx","isStringNullOrWhitespaceOnly","meta-brand-arrow-left-filled-16","meta-brand-container-with-lid-outline-16","meta-brand-question-circle-outline-16","react","react-compiler-runtime","requireDeferredForDisplay","useBizAIChatInstanceResetConversation","useBizAISalesConciergeHasPublishedPlugin","useBizWebCometOmniAiCustomSkillPlugin","useBizWebCometOmniAiNavigation","useGeoToaster"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d,m,p=m||(m=o("react")),_=m,f=_.useContext,g=_.useMemo,h=_.useState,y=e!==void 0?e:e=n("BizWebCometOmniAICustomSkillsContainer_query.graphql"),C=u!==void 0?u:u=n("BizWebCometOmniAICustomSkillsContainerMutation.graphql"),b=c!==void 0?c:c=n("BizWebCometOmniAICustomSkillsContainerDeleteTopicMutation.graphql"),v=d!==void 0?d:d=n("BizWebCometOmniAICustomSkillsContainerImproveInstructionMutation.graphql"),S=r("deferredLoadComponent")(r("requireDeferredForDisplay")("BizWebCometOmniAiShowInstructionTipsModal.react").__setRef("BizWebCometOmniAICustomSkillsContainer.react")),R=r("deferredLoadComponent")(r("requireDeferredForDisplay")("BizWebCometOmniAiSkillDeletionModal.react").__setRef("BizWebCometOmniAICustomSkillsContainer.react")),L=r("deferredLoadComponent")(r("requireDeferredForDisplay")("BizWebCometOmniAiSkillUnsavedChangesModal.react").__setRef("BizWebCometOmniAICustomSkillsContainer.react"));function E(e){var t,n,a,i,l,u,c=o("react-compiler-runtime").c(137),d=e.data,m=e.onClickBackCallback,_=o("CometRouteParams").useRouteParams(),g=String(_.business_id),E=String(_.asset_id),k=o("CometRelay").useFragment(y,d),I=o("useBizWebCometOmniAiNavigation").useBizWebCometOmniAiNavigation(),T=r("gkx")("20812"),D=k==null?void 0:k.page,x=k==null?void 0:k.topic,$=r("useBizWebCometOmniAiCustomSkillPlugin")(D,k),P=$.actionMapData,N=$.connectedPluginsID,M=$.partnersMapData;x==null||x.workflow,x==null||x.agent_instructions;var w=x==null?void 0:x.workflow,A=T?x==null?void 0:x.agent_instructions:w==null?void 0:w.workflow_instructions,F=(t=w==null?void 0:w.id)!=null?t:"",O=A!=null?A:o("BizWebCometOmniAiTopicsConsts").SKILL_INSTRUCTION_INITIAL_STRUCTURE_GUIDE,B=(n=w==null?void 0:w.instructions_source)!=null?n:"USER_CUSTOMIZED",W=(a=w==null?void 0:w.suggested_instructions)!=null?a:"",q;c[0]!==F||c[1]!==O||c[2]!==B||c[3]!==W?(q={hasBusinessReviewedWorkflow:!0,id:F,instructions:O,instructionsSource:B,suggestedInstructions:W},c[0]=F,c[1]=O,c[2]=B,c[3]=W,c[4]=q):q=c[4];var U=q,V=f(r("BizGenAIGatingContext")),H=V.isBizAIDraftStateRemovalKSEnabled,G=h(U),z=G[0],j=G[1],K=h((i=x==null?void 0:x.topic_name)!=null?i:""),Q=K[0],X=K[1],Y=h(Q),J=Y[0],Z=Y[1],ee=h(!1),te=ee[0],ne=ee[1],re=h((l=x==null?void 0:x.enabled)!=null?l:!1),oe=re[0],ae=re[1],ie=h((u=x==null?void 0:x.id)!=null?u:""),le=ie[0],se=ie[1],ue;c[5]!==le?(ue=r("isStringNullOrWhitespaceOnly")(le),c[5]=le,c[6]=ue):ue=c[6];var ce=ue,de;c[7]!==ce||c[8]!==J||c[9]!==Q?(de=JSON.stringify(Q)!==JSON.stringify(J)&&!ce,c[7]=ce,c[8]=J,c[9]=Q,c[10]=de):de=c[10];var me=h(de),pe=me[0],_e=me[1],fe=h(!1),ge=fe[0],he=fe[1],ye=h(!0),Ce=ye[0],be=ye[1],ve=h(!1),Se=ve[0],Re=ve[1],Le=h(z),Ee=Le[0],ke=Le[1],Ie;c[11]===Symbol.for("react.memo_cache_sentinel")?(Ie=new Map([]),c[11]=Ie):Ie=c[11];var Te=h(Ie),De=Te[0],xe=Te[1],$e=f(o("BusinessAiLayoutContext").BusinessAiLayoutContext),Pe=$e.setShouldShowConfirmationModal,Ne=h(!1),Me=Ne[0],we=Ne[1],Ae=h(!1),Fe=Ae[0],Oe=Ae[1],Be=h(!1),We=Be[0],qe=Be[1],Ue=J!==""&&Ee.instructions!=="",Ve=o("useBizAISalesConciergeHasPublishedPlugin").useBizAISalesConciergeHasPublishedPlugin(D),He=Ve.isBizAIAppInstalledInShopify,Ge=h((x==null?void 0:x.enabled)==null?!1:x==null?void 0:x.enabled),ze=Ge[0],je=Ge[1],Ke=r("useGeoToaster")(),Qe=Ke.add,Xe;c[12]!==Qe?(Xe=function(){Qe(p.jsx(r("GeoToast.react"),{description:o("BizWebCometOmniAiTopicsConsts").SUCCESS_DESCRIPTION,hasIcon:!0,heading:o("BizWebCometOmniAiTopicsConsts").SUCCESS_TITLE,status:"success"}))},c[12]=Qe,c[13]=Xe):Xe=c[13];var Ye=Xe,Je;c[14]!==Qe?(Je=function(t){Qe(p.jsx(r("GeoToast.react"),{hasIcon:!0,heading:t,status:"error"}))},c[14]=Qe,c[15]=Je):Je=c[15];var Ze=Je,et=f(r("BizGenAIGatingContext")),tt=et.isMWPSandboxEnabled,nt=r("useBizAIChatInstanceResetConversation")(E),rt=nt.callback,ot=o("RelayHooks").useMutation(C),at=ot[0],it=ot[1],lt=o("RelayHooks").useMutation(b),st=lt[0],ut=lt[1],ct=o("RelayHooks").useMutation(v),dt=ct[0],mt=ct[1],pt;c[16]!==H||c[17]!==E||c[18]!==J||c[19]!==Ee||c[20]!==(x==null?void 0:x.ability_type)||c[21]!==(x==null?void 0:x.topic_source)||c[22]!==le||c[23]!==z?(pt=function(t,n){var e,r,o=n?Ee:z,a={id:o.id,instructions:o.instructions,instructions_source:o.instructionsSource,suggested_instructions:o.suggestedInstructions};return{ability_type:(e=x==null?void 0:x.ability_type)!=null?e:"SHARE_BUSINESS_INFORMATION",description:"",id:le,is_enabled:t,name:J,page_id:E,should_publish_upsert:H,topic_source:(r=x==null?void 0:x.topic_source)!=null?r:"USER_CREATED",workflow:a}},c[16]=H,c[17]=E,c[18]=J,c[19]=Ee,c[20]=x==null?void 0:x.ability_type,c[21]=x==null?void 0:x.topic_source,c[22]=le,c[23]=z,c[24]=pt):pt=c[24];var _t=pt,ft;c[25]!==_t||c[26]!==g||c[27]!==rt||c[28]!==te||c[29]!==tt||c[30]!==E||c[31]!==Pe||c[32]!==Ze||c[33]!==Ye||c[34]!==J||c[35]!==Ee.instructions||c[36]!==(x==null?void 0:x.enabled)||c[37]!==le||c[38]!==Q||c[39]!==at||c[40]!==z.instructions?(ft=function(t){o("MessagingAIOnboardingFlowLoggingUtils").logEvents("click_save_omniagent_custom_skill",E,g,null,null,{cur_instructions:Ee.instructions,cur_name:J,enabled:t.toString(),pre_instructions:z.instructions,pre_name:Q,topic_id:le});var e={input:_t(t,te)};at({onCompleted:function(t){var e,n,r,a,i,l=(e=t.xfb_upsert_business_ai_topic)==null?void 0:e.topic;o("MessagingAIOnboardingFlowLoggingUtils").logEvents("success_skill_upsert",E,g,null,null,{cur_description:(n=l==null?void 0:l.topic_description)!=null?n:"",cur_instructions:(r=T?l==null?void 0:l.agent_instructions:l==null||(a=l.workflow)==null?void 0:a.workflow_instructions)!=null?r:"",cur_name:(i=l==null?void 0:l.topic_name)!=null?i:"",enabled:String(l==null?void 0:l.enabled),is_custom_skill:String(!0),pre_instructions:z.instructions,pre_name:Q,topic_id:le});var s=l==null?void 0:l.workflow;if(s){var u,c,d,m,p=T?l==null?void 0:l.agent_instructions:s.workflow_instructions,_={hasBusinessReviewedWorkflow:(u=s.has_business_reviewed_workflow)!=null?u:!1,id:s.id,instructions:p!=null?p:"",instructionsSource:(c=s.instructions_source)!=null?c:"USER_CUSTOMIZED",suggestedInstructions:(d=s.suggested_instructions)!=null?d:""};if(se((m=l==null?void 0:l.id)!=null?m:""),(l==null?void 0:l.enabled)!=null&&je(l.enabled),te&&(j(_),xe(new Map),ne(!1)),(l==null?void 0:l.topic_name)!==Q){var f,h;o("MessagingAIOnboardingFlowLoggingUtils").logEvents("skills_update_skill_title",E,g,null,null,{is_custom_skill:String(!0),topic_id:le,workflow_id:(f=_.id)!=null?f:""}),X((h=l==null?void 0:l.topic_name)!=null?h:"")}_e(!1),he(!1),be(!0),Re(!1),Pe(!1),Ye()}tt&&rt()},onError:function(t){var e;je((e=x==null?void 0:x.enabled)!=null?e:!1),Ze(o("BizWebCometOmniAiTopicsConsts").FAILURE_TITLE),o("MessagingAIOnboardingFlowLoggingUtils").logExceptions("error_skill_upsert",E,g,null,null,t,{is_custom_skill:String(!1)})},variables:e})},c[25]=_t,c[26]=g,c[27]=rt,c[28]=te,c[29]=tt,c[30]=E,c[31]=Pe,c[32]=Ze,c[33]=Ye,c[34]=J,c[35]=Ee.instructions,c[36]=x==null?void 0:x.enabled,c[37]=le,c[38]=Q,c[39]=at,c[40]=z.instructions,c[41]=ft):ft=c[41];var gt=ft,ht;c[42]!==oe||c[43]!==gt?(ht=function(){je(oe),gt(oe)},c[42]=oe,c[43]=gt,c[44]=ht):ht=c[44];var yt=ht,Ct;c[45]!==g||c[46]!==E||c[47]!==ze||c[48]!==oe||c[49]!==le||c[50]!==Q?(Ct=function(t){o("MessagingAIOnboardingFlowLoggingUtils").logEvents(t===!0?"click_turn_on_skill":"click_turn_off_skill",E,g,null,null,{name:Q,topic_id:le}),ae(!oe),Re(oe===ze)},c[45]=g,c[46]=E,c[47]=ze,c[48]=oe,c[49]=le,c[50]=Q,c[51]=Ct):Ct=c[51];var bt=Ct,vt;c[52]!==g||c[53]!==E||c[54]!==le?(vt=function(){o("MessagingAIOnboardingFlowLoggingUtils").logEvents("click_delete_omniagent_skill",E,g,null,null,{topic_id:le})},c[52]=g,c[53]=E,c[54]=le,c[55]=vt):vt=c[55];var St=vt,Rt,Lt;c[56]!==g||c[57]!==Se||c[58]!==pe||c[59]!==ge||c[60]!==I||c[61]!==m||c[62]!==E||c[63]!==le?(Lt=function(){o("MessagingAIOnboardingFlowLoggingUtils").logEvents("skills_l2_custom_skills_click_back",E,g,null,null,{topic_id:le}),Se||pe||ge?(o("MessagingAIOnboardingFlowLoggingUtils").logEvents("skills_l2_custom_skills_show_unsaved_changes_modal",E,g,null,null,{topic_id:le}),qe(!0)):Rt()},Rt=function(){m!=null?m():I("SKILLS")},c[56]=g,c[57]=Se,c[58]=pe,c[59]=ge,c[60]=I,c[61]=m,c[62]=E,c[63]=le,c[64]=Rt,c[65]=Lt):(Rt=c[64],Lt=c[65]);var Et;c[66]!==Se||c[67]!==pe||c[68]!==ge||c[69]!==Rt||c[70]!==le?(Et=function(){r("isStringNullOrWhitespaceOnly")(le)?Se||pe||ge?qe(!0):Rt():Oe(!0)},c[66]=Se,c[67]=pe,c[68]=ge,c[69]=Rt,c[70]=le,c[71]=Et):Et=c[71];var kt=Et,It;c[72]!==st||c[73]!==St||c[74]!==rt||c[75]!==H||c[76]!==tt||c[77]!==I||c[78]!==m||c[79]!==Rt||c[80]!==Ze||c[81]!==Ye||c[82]!==le?(It=function(){r("isStringNullOrWhitespaceOnly")(le)?(Oe(!1),m!=null?m():I("SKILLS"),St()):st({onCompleted:function(){Rt(),St(),Oe(!1),Ye(),tt&&rt()},onError:function(){Ze(o("BizWebCometOmniAiTopicsConsts").FAILURE_TITLE)},variables:{shouldPublishDeletion:H,topicID:le}})},c[72]=st,c[73]=St,c[74]=rt,c[75]=H,c[76]=tt,c[77]=I,c[78]=m,c[79]=Rt,c[80]=Ze,c[81]=Ye,c[82]=le,c[83]=It):It=c[83];var Tt=It,Dt;c[84]!==g||c[85]!==dt||c[86]!==E||c[87]!==Ze||c[88]!==Ye?(Dt=function(t,n){dt({onCompleted:function(t){var e,a=(e=t.sanitize_prompt)==null?void 0:e.sanitized_prompt;if(a==null||r("isStringNullOrWhitespaceOnly")(a)){Ze(o("BizWebCometOmniAiTopicsConsts").FAILURE_TITLE_GENERIC),o("MessagingAIOnboardingFlowLoggingUtils").logExceptions("error_skill_improve_instruction_failure",E,g,null,null,r("err")("Sanitized prompt is null"));return}n(a),Ye()},onError:function(t){Ze(o("BizWebCometOmniAiTopicsConsts").FAILURE_TITLE_GENERIC),o("MessagingAIOnboardingFlowLoggingUtils").logExceptions("error_skill_improve_instruction_failure",E,g,null,null,t)},variables:{prompt:t}})},c[84]=g,c[85]=dt,c[86]=E,c[87]=Ze,c[88]=Ye,c[89]=Dt):Dt=c[89];var xt=Dt,$t=it||ut||mt,Pt;c[90]!==P||c[91]!==g||c[92]!==N||c[93]!==He||c[94]!==ce||c[95]!==Ce||c[96]!==xt||c[97]!==E||c[98]!==M||c[99]!==De||c[100]!==$t||c[101]!==Ee||c[102]!==z?(Pt={actionMapData:P,businessID:g,connectedPluginsID:N,isBizAIAppInstalledInShopify:He,isCreatingTopic:ce,isDefaultTopic:!1,isInitialWorkflowChange:Ce,isMutationInFlight:$t,needReview:!1,onClickImproveInstructions:xt,pageID:E,partnersMapData:M,selectedActionsWithPlugin:De,setHasWorkflowChanged:he,setIsEditWorkflows:ne,setIsInitialWorkflowChange:be,setSelectedActionsWithPlugin:xe,setTempWorkflow:ke,tempWorkflow:Ee,workflow:z},c[90]=P,c[91]=g,c[92]=N,c[93]=He,c[94]=ce,c[95]=Ce,c[96]=xt,c[97]=E,c[98]=M,c[99]=De,c[100]=$t,c[101]=Ee,c[102]=z,c[103]=Pt):Pt=c[103];var Nt=Pt,Mt=!(pe||ge||Se)||it||ut||mt||!Ue,wt;c[104]!==g||c[105]!==E||c[106]!==le?(wt=function(){o("MessagingAIOnboardingFlowLoggingUtils").logEvents("skills_l2_custom_skills_impression",E,g,null,null,{topic_id:le})},c[104]=g,c[105]=E,c[106]=le,c[107]=wt):wt=c[107];var At;c[108]!==g||c[109]!==Ue||c[110]!==ce||c[111]!==ut||c[112]!==mt||c[113]!==it||c[114]!==Rt||c[115]!==Lt||c[116]!==kt||c[117]!==Tt||c[118]!==yt||c[119]!==bt||c[120]!==E||c[121]!==Mt||c[122]!==Me||c[123]!==Fe||c[124]!==We||c[125]!==J||c[126]!==Ee.instructions||c[127]!==oe||c[128]!==le||c[129]!==Q||c[130]!==Nt||c[131]!==z.id||c[132]!==z.instructions?(At=function(t){return p.jsxs(r("GeoCard.react"),{containerRef:t,"data-testid":void 0,children:[p.jsx(r("GeoFlexbox.react"),{direction:"column",xstyle:r("geoMargin").horiz4,children:p.jsxs(r("GeoSection.react"),{children:[p.jsxs(r("GeoFlexbox.react"),{direction:"column",gap:20,children:[p.jsxs(r("GeoFlexbox.react"),{alignItems:"center",direction:"row",justifyContent:"space-between",children:[p.jsxs(r("GeoFlexbox.react"),{alignItems:"center",direction:"row",gap:8,children:[p.jsx(r("GeoButton.react"),{"data-testid":void 0,grow:"auto",icon:o("meta-brand-arrow-left-filled-16").metaBrandArrowLeftArrowLeftFilled16,isDisabled:it||ut||mt,isLabelHidden:!0,label:s._(/*BTDS*/"Back"),onClick:Lt,variant:"flat"}),p.jsx(r("GeoHeading.react"),{level:1,children:s._(/*BTDS*/"Viewing skill")})]}),p.jsxs(r("GeoFlexbox.react"),{gap:8,children:[p.jsx(r("GeoButton.react"),{"data-testid":void 0,icon:o("meta-brand-container-with-lid-outline-16").metaBrandContainerWithLidTrashOutline16,isDisabled:it||ut||mt,label:s._(/*BTDS*/"Delete skill"),onClick:kt,variant:"default"}),p.jsx(r("GeoButton.react"),{"data-testid":void 0,isDisabled:Mt,label:s._(/*BTDS*/"Save skill"),onClick:function(){var e,t,n;o("MessagingAIOnboardingFlowLoggingUtils").logEvents("click_save_skill",E,g,null,null,{cur_input_workflow_instructions:(e=Ee.instructions)!=null?e:"",pre_saved_workflow_instructions:(t=z.instructions)!=null?t:"",topic_id:le,workflow_id:(n=z.id)!=null?n:""}),yt()},variant:"primary"})]})]}),p.jsx(r("GeoTextInput.react"),{"data-testid":void 0,isDisabled:it||ut||mt,isLabelHidden:!1,label:s._(/*BTDS*/"Skill name"),onChange:function(t){Z(t),_e(JSON.stringify(t)!==JSON.stringify(Q))},value:J}),p.jsxs(r("GeoFlexbox.react"),{alignItems:"center",direction:"row",justifyContent:"space-between",children:[p.jsx(r("GeoBaseText.react"),{color:"heading",size:"header4",children:s._(/*BTDS*/"Skill status")}),p.jsx(r("GeoSwitch.react"),{"data-testid":void 0,isDisabled:it||ut||mt||ce||!Ue,label:oe?s._(/*BTDS*/"On"):s._(/*BTDS*/"Off"),onChange:bt,value:oe})]}),p.jsx(r("GeoBaseText.react"),{color:"value",size:"value",children:s._(/*BTDS*/"Your AI will use this skill in customer chats")})]}),p.jsx(r("GeoDivider.react"),{direction:"horizontal"}),p.jsxs(r("GeoFlexbox.react"),{direction:"column",gap:8,children:[p.jsxs(r("GeoFlexbox.react"),{alignItems:"center",direction:"row",justifyContent:"space-between",children:[p.jsx(r("GeoBaseText.react"),{color:"heading",size:"header2",children:s._(/*BTDS*/"Instructions")}),p.jsxs(r("GeoFlexbox.react"),{alignItems:"center",direction:"row",gap:4,children:[p.jsx(r("GeoIcon.react"),{color:"blue",icon:o("meta-brand-question-circle-outline-16").metaBrandQuestionCircleQuestionCircleOutline16}),p.jsx(r("GeoLink.react"),{"data-testid":void 0,onClick:function(){o("MessagingAIOnboardingFlowLoggingUtils").logEvents("skills_l2_custom_skills_click_instruction_tips_modal",E,g,null,null,{topic_id:le}),we(!0)},children:s._(/*BTDS*/"Get tips on writing instructions")})]})]}),p.jsx(o("BizWebCometOmniAiSkillsWorkflowContainer.react").BizWebCometOmniAiSkillsWorkflowContainer,babelHelpers.extends({},Nt))]})]})}),Fe&&p.jsx(R,{isMutationInFlight:ut,onDelete:Tt,onHide:function(){Oe(!1)}}),Me&&p.jsx(S,{onHide:function(){we(!1)}}),We&&p.jsx(L,{onConfirm:Rt,onHide:function(){qe(!1)}})]})},c[108]=g,c[109]=Ue,c[110]=ce,c[111]=ut,c[112]=mt,c[113]=it,c[114]=Rt,c[115]=Lt,c[116]=kt,c[117]=Tt,c[118]=yt,c[119]=bt,c[120]=E,c[121]=Mt,c[122]=Me,c[123]=Fe,c[124]=We,c[125]=J,c[126]=Ee.instructions,c[127]=oe,c[128]=le,c[129]=Q,c[130]=Nt,c[131]=z.id,c[132]=z.instructions,c[133]=At):At=c[133];var Ft;return c[134]!==wt||c[135]!==At?(Ft=p.jsx(r("BizWebCometImpressionLoggingWrapper.react"),{onImpression:wt,children:At}),c[134]=wt,c[135]=At,c[136]=Ft):Ft=c[136],Ft}l.default=E}),226);/*FB_PKG_DELIM*/
-----
BizWebCometOmniAICustomSkillsContainerMutation.graphql",["BizWebCometOmniAICustomSkillsContainerMutation_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{kind:"Variable",name:"topic_input",variableName:"input"}],r={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"topic_name",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"topic_description",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"enabled",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"agent_instructions",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"workflow_instructions",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"instructions_source",storageKey:null},c={alias:null,args:null,concreteType:"XFBBusinessAIAgentTopic",kind:"LinkedField",name:"topic",plural:!1,selections:[r,o,a,i,l,{alias:null,args:null,concreteType:"XFBBusinessAIAgentWorkflow",kind:"LinkedField",name:"workflow",plural:!1,selections:[r,s,{alias:null,args:null,kind:"ScalarField",name:"suggested_instructions",storageKey:null},u,{alias:null,args:null,kind:"ScalarField",name:"has_business_reviewed_workflow",storageKey:null}],storageKey:null}],storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"number_of_edits",storageKey:null},m=[{alias:null,args:null,kind:"ScalarField",name:"field",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"updated_time",storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"BizWebCometOmniAICustomSkillsContainerMutation",selections:[{alias:null,args:t,concreteType:"XFBBusinessAiTopicDataUpsertResponse",kind:"LinkedField",name:"xfb_upsert_business_ai_topic",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBOmniAIAgentConfiguration",kind:"LinkedField",name:"omni_ai_agent_configuration",plural:!1,selections:[r,{args:null,kind:"FragmentSpread",name:"BizWebCometOmniAISkillsContainer_topicsRefetchable"},{args:null,kind:"FragmentSpread",name:"BizWebCometOmniAiDefaultPageV3_agentConfigDraftStateExistence"}],storageKey:null},c],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"BizWebCometOmniAICustomSkillsContainerMutation",selections:[{alias:null,args:t,concreteType:"XFBBusinessAiTopicDataUpsertResponse",kind:"LinkedField",name:"xfb_upsert_business_ai_topic",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBOmniAIAgentConfiguration",kind:"LinkedField",name:"omni_ai_agent_configuration",plural:!1,selections:[r,{alias:null,args:null,concreteType:"XFBBusinessAIAgentTopic",kind:"LinkedField",name:"topics",plural:!0,selections:[r,{alias:null,args:null,kind:"ScalarField",name:"ability_type",storageKey:null},i,o,a,{alias:null,args:null,kind:"ScalarField",name:"visibility",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"topic_source",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"topic_type",storageKey:null},l,{alias:null,args:null,concreteType:"XFBBusinessAIAgentWorkflow",kind:"LinkedField",name:"workflow",plural:!1,selections:[r,s,u],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBBusinessAITopicUnpublishedEditsQueryResponse",kind:"LinkedField",name:"unpublished_topic_edits",plural:!1,selections:[d,{alias:null,args:null,concreteType:"XFBBusinessAITopicUnpublishedEditsFieldData",kind:"LinkedField",name:"edited_fields",plural:!0,selections:m,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBBusinessAIPersonalityUnpublishedEditsResponse",kind:"LinkedField",name:"unpublished_personality_edits",plural:!1,selections:[d,{alias:null,args:null,concreteType:"XFBBusinessAIPersonalityUnpublishedEditsFieldData",kind:"LinkedField",name:"edited_fields",plural:!0,selections:m,storageKey:null}],storageKey:null}],storageKey:null},c],storageKey:null}]},params:{id:n("BizWebCometOmniAICustomSkillsContainerMutation_facebookRelayOperation"),metadata:{},name:"BizWebCometOmniAICustomSkillsContainerMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
BizWebCometOmniAICustomSkillsContainerMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="25479041595116706"}),null);
-----