CPRecruitingAgentLandingPageComposer.react",["fbt","ix","CPRecruitingAgentLandingPageComposer_user.graphql","CandidatePortalBrowserSession","CandidatePortalCreateNewRecruitingAgentConversationWithPromptMutation","CandidatePortalLoggingUtils","CandidatePortalRouteConfigs","CandidatePortalUpdateExistingRecruitingAgentConversationMutation","GeoFlexbox.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoIcon.react","GeoSelectableList.react","GeoSelectableListGenericItem.react","KDSComposer.react","KDSLink.react","KDSText.react","MetaBrandVerticalLinesSpeechBubbleStackedOutline24.svg.react","RelayHooks","emptyFunction","fbicon","formatDate","geoMargin","geoWidth","react","useCPNavigate","useCandidatePortalImpressionLog","useCandidatePortalMobileBreakpoint"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react")),m=k.useState,n={composerWidth:{maxWidth:"x11gisft",$$css:!0}},o=j!==void 0?j:j=b("CPRecruitingAgentLandingPageComposer_user.graphql");function a(a){var b;a=a.user;var e=c("useCandidatePortalMobileBreakpoint")(),f=d("RelayHooks").useFragment(o,a);a=f.latest_chat_bot_conversation!=null;b=(b=f.latest_chat_bot_conversation)==null?void 0:b.date_created;var g=d("RelayHooks").useMutation(d("CandidatePortalCreateNewRecruitingAgentConversationWithPromptMutation").mutation),j=g[0];g=g[1];var k=d("RelayHooks").useMutation(d("CandidatePortalUpdateExistingRecruitingAgentConversationMutation").mutation),q=k[0];k=k[1];var r=m(null),s=r[0],t=r[1];r=m("");var u=r[0],v=r[1];r=c("useCPNavigate")();var w=r.cpNavigate,x=function(){w(d("CandidatePortalRouteConfigs").routes.FIND_A_ROLE)},y=function(a){var b;q({variables:{input:{conversation_id:(b=(b=f.latest_chat_bot_conversation)==null?void 0:b.id)!=null?b:"",prompt:a,session_id:d("CandidatePortalBrowserSession").getSessionKey()}},onCompleted:function(){return x()},onError:function(a){t(h._(/*BTDS*/"Something went wrong. Please try again later or submit a bug.").toString())}})},z=function(a){j({onCompleted:function(){return x()},onError:function(a){t(h._(/*BTDS*/"Something went wrong. Please try again later or submit a bug.").toString())},variables:{input:{prompt:a,session_id:d("CandidatePortalBrowserSession").getSessionKey()}}})},A=function(a){var b;d("CandidatePortalLoggingUtils").logCriticalAction("CANDIDATE_CHATBOT_LANDING_PAGE","CAREER_PROFILE_USE_AI_CLICK");((b=f.latest_chat_bot_conversation)==null?void 0:b.id)==null?z(a):y(a)};c("useCandidatePortalImpressionLog")("CANDIDATE_CHATBOT_LANDING_PAGE");r=a&&b!=null;a=r?c("formatDate")(b,"F j"):null;b=r?c("formatDate")(b,"g:i A"):null;return l.jsxs(l.Fragment,{children:[l.jsx(c("GeoFlexbox.react"),{gap:16,grow:0,justifyContent:"center",wrap:"wrap",xstyle:[c("geoWidth").fullWidth,c("geoMargin").top16,c("geoMargin").bottom24],children:l.jsx(c("KDSComposer.react"),{attachments:[],description:r?l.jsx(c("KDSLink.react"),{linkProps:{url:d("CandidatePortalRouteConfigs").routes.FIND_A_ROLE},variant:"secondary",children:h._(/*BTDS*/"Last message sent on {last message sent Date} at {last message sent time}",[h._param("last message sent Date",a),h._param("last message sent time",b)])}):void 0,disclaimerIcon:c("MetaBrandVerticalLinesSpeechBubbleStackedOutline24.svg.react"),inputState:g||k?"LOADING":void 0,isMultiline:!0,onChange:function(a){v(a)},onFilesSelected:c("emptyFunction"),onSubmit:function(){return A(u)},placeholder:r?"Continue conversation with the assistant...":"Ask about roles or ask a question...",showUploadAttachmentButton:!1,supportedFiles:[],value:u,xstyle:e?null:n.composerWidth})}),l.jsx(c("GeoFlexbox.react"),{gap:16,grow:0,justifyContent:"center",wrap:"wrap",children:l.jsxs(c("GeoSelectableList.react"),{onSelectionChange:function(a){return A(a[0])},selectionType:"single",variant:"divided",children:[l.jsx(p,{icon:d("fbicon")._(i("827321"),16),itemID:"Use my resume to help me find matching roles at Meta",label:h._(/*BTDS*/"Use my resume to help me find matching roles at Meta")}),l.jsx(p,{icon:d("fbicon")._(i("562528"),16),itemID:"Can you tell me about the recruiting process at Meta?",label:h._(/*BTDS*/"Can you tell me about the recruiting process at Meta?")}),l.jsx(p,{icon:d("fbicon")._(i("520627"),16),itemID:"How should I prepare for an interview at Meta?",label:h._(/*BTDS*/"How should I prepare for an interview at Meta?")})]})}),s!=null&&l.jsx(c("GeoGuidanceCard.react"),{header:l.jsx(c("GeoGuidanceCardHeader.react"),{heading:"Error"}),status:"error",xstyle:c("geoMargin").horiz24,children:l.jsx(c("GeoGuidanceCardContent.react"),{children:s})})]})}a.displayName=a.name+" [from "+f.id+"]";function p(a){var b=a.icon,d=a.itemID;a=a.label;return l.jsx(c("GeoSelectableListGenericItem.react"),{itemID:d,children:l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[l.jsx(c("GeoIcon.react"),{icon:b,isDisabled:!0,xstyle:c("geoMargin").end16}),l.jsx(c("KDSText.react"),{color:"secondary",children:a})]})})}p.displayName=p.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
CandidatePortalCreateNewRecruitingAgentConversationWithPromptMutation",["CandidatePortalCreateNewRecruitingAgentConversationWithPromptMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h!==void 0?h:h=b("CandidatePortalCreateNewRecruitingAgentConversationWithPromptMutation.graphql");g.mutation=a}),98);
-----
-----
CandidatePortalCreateNewRecruitingAgentConversationWithPromptMutation",["CandidatePortalCreateNewRecruitingAgentConversationWithPromptMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h!==void 0?h:h=b("CandidatePortalCreateNewRecruitingAgentConversationWithPromptMutation.graphql");g.mutation=a}),98);
-----