SupportAILedResolutionNextStepsStageContainer.react",["fbt","GeoFlexbox.react","GeoText.react","RelayHooks","SimpleInterfaceTreatmentUtils","SimpleInterfaceTreatmentV2.react","SupportAILedResolutionNextStepsStageContainerQuery.graphql","SupportAILedResolutionStageContainerCard.react","SupportAIWebUXLogger","XsChatbotFalcoEvent","err","geoMargin","justknobx","nullthrows","react","react-compiler-runtime","useGeoTheme"],(function(oe,J,o,y,re,X,F,H){"use strict";var T,b,I=b||(b=y("react")),j=b,z=j.useEffect,q=j.useState,B=T!==void 0?T:T=J("SupportAILedResolutionNextStepsStageContainerQuery.graphql"),V=["AI_LED_RESOLUTION","LBD_RESOLUTION"],W=o("justknobx")._("2047");function N(t){var e=t.conversationFlowID,a=t.onResolutionRouteReceived,r=t.predictedSymptoms,u=t.selectedAsset,n=t.selectedGranularAsset,s=t.selectedSymptomID,i=t.setArticleID,_=t.userQueryData,p=y("RelayHooks").useLazyLoadQuery(B,{asset_id:y("SimpleInterfaceTreatmentUtils").getMostGranularSelectedAsset(u,n).id,symptom_id:s,conversation_flow_id:e});z(function(){a(p)},[a,p]);try{var c=k(p),v=c.planID,R=c.resolutionRouteType,m=c.treatmentID;return I.jsx($,{conversationFlowID:e,planID:v,predictedSymptoms:r,resolutionRouteInformation:p,resolutionRouteType:R,selectedAsset:u,selectedGranularAsset:n,selectedSymptomID:s,setArticleID:i,treatmentID:m,userQueryData:_})}catch(l){o("XsChatbotFalcoEvent").log(function(){return{event:"SUPPORT_AI_IMPRESSION",support_ai_conversation_flow_id:e,entry_point:"support_ai",usecase:"support_ai",additional_message:JSON.stringify({widget:"resolution",error:l==null?void 0:l.message,error_stack:l==null?void 0:l.stack,error_name:l==null?void 0:l.name})}});return}}N.displayName=N.name+" [from "+X.id+"]";function $(t){var e=y("react-compiler-runtime").c(30),a=t.conversationFlowID,r=t.planID,u=t.predictedSymptoms,n=t.resolutionRouteInformation,s=t.resolutionRouteType,i=t.selectedAsset,_=t.selectedGranularAsset,p=t.selectedSymptomID,c=t.setArticleID,v=t.treatmentID,R=t.userQueryData,m=o("useGeoTheme")(),l=m.selectSpacing,O=m.selectBorderRadius,Q=m.selectElevation,A;e[0]!==l?(A=l({bounds:"internal",context:"container",relation:"page"}),e[0]=l,e[1]=A):A=e[1];var E=A,g=s==="AI_LED_RESOLUTION",M=q(g),G=M[0],Z=M[1],P=q(!1),d=P[0],ee=P[1],x;e[2]!==r||e[3]!==s?(x={widget:"resolution",extraData:{resolution_route_type:s,plan_id:r}},e[2]=r,e[3]=s,e[4]=x):x=e[4];var w=o("SupportAIWebUXLogger").useImpressionLoggerRef(x),U=v!=null?v:void 0,f;e[5]!==a||e[6]!==g||e[7]!==d||e[8]!==G||e[9]!==r||e[10]!==u||e[11]!==n||e[12]!==i||e[13]!==_||e[14]!==p||e[15]!==c||e[16]!==U||e[17]!==R?(f=I.jsx(o("SimpleInterfaceTreatmentV2.react"),{conversationFlowID:a,flowJoinID:null,isAILedResolution:g,isRoutedToAILedResolution:d,issueInstanceId:null,needsContactSupportOrCanAppeal:G,predictedSymptoms:u,requestContext:null,resolutionRouteInformation:n,routeTo:Y,selectedAsset:i,selectedGranularAsset:_,selectedGranularPlanID:r,selectedPlanID:r,selectedSymptomID:p,setArticleID:c,setIsRoutedToAILedResolution:ee,setNeedsContactSupportOrCanAppeal:Z,setRequestContext:K,treatmentID:U,userQueryData:R}),e[5]=a,e[6]=g,e[7]=d,e[8]=G,e[9]=r,e[10]=u,e[11]=n,e[12]=i,e[13]=_,e[14]=p,e[15]=c,e[16]=U,e[17]=R,e[18]=f):f=e[18];var L=f,h;e[19]===Symbol.for("react.memo_cache_sentinel")?(h=H._(/*BTDS*/"Recommended next steps"),e[19]=h):h=e[19];var D;e[20]===Symbol.for("react.memo_cache_sentinel")?(D=I.jsx(o("GeoText.react"),{xstyle:o("geoMargin").bottom16,children:H._(/*BTDS*/"Based on what we found, here is our best recommendation for resolving your issue.")}),e[20]=D):D=e[20];var S;e[21]!==d||e[22]!==L||e[23]!==O||e[24]!==Q||e[25]!==E?(S=d?L:I.jsx(o("GeoFlexbox.react"),{element:"section",isFlexItemOnly:!0,justifyContent:"center",xstyle:[O({context:"layer"}),Q({level:1}),E],children:L}),e[21]=d,e[22]=L,e[23]=O,e[24]=Q,e[25]=E,e[26]=S):S=e[26];var C;return e[27]!==w||e[28]!==S?(C=I.jsxs(o("SupportAILedResolutionStageContainerCard.react"),{containerRef:w,title:h,xstyle:o("geoMargin").vert12,children:[D,S]}),e[27]=w,e[28]=S,e[29]=C):C=e[29],C}function K(){}function Y(){}function k(t){var e,a=(e=t.xfb_business_support_home_resolution_routing)!=null?e:{},r=a.type,u=a.plan_id,n=a.resolution_metadata,s={noIssueFound:W&&(n==null?void 0:n.is_hide_issue)===!0,planID:o("nullthrows")(u),resolutionRouteType:o("nullthrows")(r),treatmentID:n==null?void 0:n.treatment_id};if(!V.includes(s.resolutionRouteType)){var i;throw o("err")("Unsupported resolution route type: "+((i=s.resolutionRouteType)!=null?i:"null"))}return s}F.SupportAILedResolutionNextStepsStageContainer=N,F.getValidatedResolutionRouteInformation=k}),226);
-----
SupportAILedResolutionNextStepsStageContainerQuery.graphql",[],(function(K,f,L,v,k,b){"use strict";var F=(function(){var i={defaultValue:null,kind:"LocalArgument",name:"asset_id"},s={defaultValue:null,kind:"LocalArgument",name:"conversation_flow_id"},r={defaultValue:null,kind:"LocalArgument",name:"symptom_id"},u=[{kind:"Variable",name:"asset_id",variableName:"asset_id"},{kind:"Variable",name:"conversation_flow_id",variableName:"conversation_flow_id"},{kind:"Variable",name:"symptom_id",variableName:"symptom_id"}],t={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"plan_id",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"is_hide_issue",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"treatment_id",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"channel_button_name",storageKey:null},m=[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],y={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},_={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{fragment:{argumentDefinitions:[i,s,r],kind:"Fragment",metadata:null,name:"SupportAILedResolutionNextStepsStageContainerQuery",selections:[{alias:null,args:u,concreteType:"BusinessSupportHomeResolutionRouteMetadata",kind:"LinkedField",name:"xfb_business_support_home_resolution_routing",plural:!1,selections:[t,o,{alias:null,args:null,concreteType:"XFBTResolutionMetadata",kind:"LinkedField",name:"resolution_metadata",plural:!1,selections:[d,g],storageKey:null},{args:null,kind:"FragmentSpread",name:"SimpleInterfaceTreatmentV2_cases"},{args:null,kind:"FragmentSpread",name:"SimpleInterfaceTreatmentV2_quidance"},{args:null,kind:"FragmentSpread",name:"SimpleInterfaceTreatmentV2_metadata"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[i,r,s],kind:"Operation",name:"SupportAILedResolutionNextStepsStageContainerQuery",selections:[{alias:null,args:u,concreteType:"BusinessSupportHomeResolutionRouteMetadata",kind:"LinkedField",name:"xfb_business_support_home_resolution_routing",plural:!1,selections:[t,o,{alias:null,args:null,concreteType:"XFBTResolutionMetadata",kind:"LinkedField",name:"resolution_metadata",plural:!1,selections:[d,g,{alias:null,args:null,concreteType:"XFBTResolutionGuidanceMetadata",kind:"LinkedField",name:"guidance",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"guidance_engine",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"interstitial_cms_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"unicorn_object_id",storageKey:null},{alias:null,args:null,concreteType:"CMSObject",kind:"LinkedField",name:"help_center_articles",plural:!0,selections:[l,e,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBLBDAdsIntegrityJobChannelConfiguration",kind:"LinkedField",name:"ads_integrity_job",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"appeal_source",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"appeal_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"appeal_destination",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBLBDOutcomeAvailableChannelsAndForm",kind:"LinkedField",name:"available_channels_and_form",plural:!1,selections:[{alias:null,args:null,concreteType:"LBDTreatmentChannel",kind:"LinkedField",name:"channels",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"channel",storageKey:null},c,{alias:null,args:null,kind:"ScalarField",name:"channel_reroute_uri",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"channel_sla_message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"channel_sla_message_header",storageKey:null},{alias:null,args:null,concreteType:"XFBSISTimeSlot",kind:"LinkedField",name:"timeslots",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"agent_id",storageKey:null},{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"start_time",plural:!1,selections:m,storageKey:null},{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"end_time",plural:!1,selections:m,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"LBDForm",kind:"LinkedField",name:"form",plural:!1,selections:[e,{alias:null,args:null,concreteType:"LBDFormFieldDefinition",kind:"LinkedField",name:"fields",plural:!0,selections:[e,y,a,{alias:null,args:null,kind:"ScalarField",name:"react_component",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_required",storageKey:null},{alias:null,args:null,concreteType:"LBDFormFieldOptionType",kind:"LinkedField",name:"options",plural:!0,selections:[n,y],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBLBDGlobalSupportForm",kind:"LinkedField",name:"custom_fields_v2",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBLBDGlobalSupportFormField",kind:"LinkedField",name:"form_fields",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"order",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"form_field_key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"form_field_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"form_field_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"form_field_information",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"form_field_mandatory",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"form_field_translatable",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"form_field_depends_on_field_key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"form_field_placeholder",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"form_field_gatekeeper_project",storageKey:null},{alias:null,args:null,concreteType:"GlobalSupportFormFieldVisibilityCondition",kind:"LinkedField",name:"form_field_visibility_conditions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"field",storageKey:null},n],storageKey:null},{alias:null,args:null,concreteType:"GlobalSupportFormFieldSetting",kind:"LinkedField",name:"form_field_settings",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},n],storageKey:null},l],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"error_code",storageKey:null},l],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_oe_appeal",storageKey:null},{alias:null,args:null,concreteType:"XFBLBDOutcomeLiveCallAvailabilityResponse",kind:"LinkedField",name:"live_call_availability_status",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},p,c],storageKey:null},{alias:null,args:null,concreteType:"XFBLBDOutcomeUserActiveChatDataResponse",kind:"LinkedField",name:"user_active_chat_data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"user_has_active_chat_session",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"active_thread_id",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"LBDCaseDetails",kind:"LinkedField",name:"cases",plural:!0,selections:[p,{alias:null,args:null,kind:"ScalarField",name:"creation_date",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"updated_date",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"asset",plural:!1,selections:[_,a,e,l],storageKey:null},l,{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"routing_methodology",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"asset_info",plural:!1,selections:[_,{kind:"TypeDiscriminator",abstractKey:"__isILBDAsset"},e,a,l],storageKey:null}],storageKey:null}]},params:{id:"10054451207942652",metadata:{},name:"SupportAILedResolutionNextStepsStageContainerQuery",operationKind:"query",text:null}}})();k.exports=F}),null);
-----