CandidatePortalChatbotContentV3View.react",["fbt","CPChatbotHeaderV4.react","CandidatePortalChatbotContentV3ViewQuery.graphql","CandidatePortalChatbotContentV4.react","CandidatePortalChatbotMetaIcon.react","CandidatePortalUploadResumeButtonContext","ClickableArea.react","GeoBottomSheet.react","GeoGenericBottomSheetHeader.react","MCDSFlexbox.react","MCDSIcon.react","MCDSIconArrowsInUpperRightLowerLeftFilled.svg.react","MCDSIconButton.react","MCDSIconCaretLeftFilled.svg.react","MCDSVerticalStack.react","RelayHooks","mcdsHeight","mcdsMargin","react","useBoolean","useCandidatePortalMobileBreakpoint","useIsCPClassicView","useIsCPUserEligibleForAI","useMCDSStyles"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.startTransition,_=d.unstable_addTransitionType,f=d.unstable_ViewTransition,g=64,h=32,y={stickyContainer:{height:"x3nertt",marginBottom:"x1iymm2a",$$css:!0},chatContainer:{width:"xht4xr3",borderStartStartRadius:"x1rl75mt",borderStartEndRadius:"x19t5iym",borderEndEndRadius:"xz7t8uv",borderEndStartRadius:"x13xmedi",overflowX:"x6ikm8r",overflowY:"x10wlt62",height:"x5yr21d",boxShadow:"xoz2iak",$$css:!0},fullScreenContainer:{position:"x1n2onr6",overflowX:"x6ikm8r",overflowY:"x10wlt62",height:"x5yr21d",$$css:!0},chatbotButtonIconMobile:{alignItems:"x6s0dn4",display:"x78zum5",justifyContent:"xl56j7k",marginLeft:"x1gh5o4n",marginInlineStart:null,marginInlineEnd:null,$$css:!0},chatbotButtonContainer:{alignItems:"xuk3077",height:"x1uzzr1v",$$css:!0}},C="xz54rnv",b="x11wz674";function v(t){var a,i=t.props,l=t.queries,u=i.hasFullScreenBackButton,c=u===void 0?!1:u,d=i.isFullScreen,g=i.onHideChat,b=r("useCandidatePortalMobileBreakpoint")(),v=o("RelayHooks").usePreloadedQuery(e!==void 0?e:e=n("CandidatePortalChatbotContentV3ViewQuery.graphql"),l.chatbotContentQueryRef),R=b,L=r("useBoolean")(R&&!d),E=L.set,k=L.value,I=v.fetch__XCPCandidateChatbotConversationExport,T=v.viewer,D=I!=null?I:T==null||(a=T.user)==null?void 0:a.latest_chat_bot_conversation,x=D==null?void 0:D.consideration,$=x!=null&&x.has_chatbot_eligibility_post_matching===!1,P=o("useIsCPClassicView").useIsCPClassicView(x),N=o("useIsCPUserEligibleForAI").useIsCPUserEligibleForAI(),M=P||!N||$;if(M||D==null)return null;if(k&&!d)return m.jsx(r("MCDSFlexbox.react"),{xstyle:[y.stickyContainer,y.chatbotButtonContainer],children:m.jsx(r("MCDSVerticalStack.react"),{children:m.jsx(r("ClickableArea.react"),{onClick:function(){p(function(){_("minimizeChat"),E(!1)})},children:m.jsx("div",{className:"x6s0dn4 x2izyaf x120xd9q x1k4ovr2 xdfaw6k xefzod x1bn8t5w x1ypdohk x78zum5 xng8ra xl56j7k x7wzq59 x1mqng3n xsp74vb xg2r6jc x1247r65 x14g40p9",style:{bottom:"calc("+h+"px + var(--cp-footer-offset, 0px))"},children:m.jsx("div",{className:"x6s0dn4 x78zum5 xl56j7k",children:m.jsx(r("CandidatePortalChatbotMetaIcon.react"),{conversation:D,overrideSpin:!1,spinOnLoad:!0})})})})})});if(b)return m.jsx(r("GeoBottomSheet.react"),{header:m.jsx(r("GeoGenericBottomSheetHeader.react"),{children:m.jsx(r("MCDSFlexbox.react"),{alignContent:"center",alignItems:"center",direction:"row",grow:1,justifyContent:"center",xstyle:y.chatbotButtonIconMobile,children:m.jsx(r("CandidatePortalChatbotMetaIcon.react"),{conversation:D})})}),height:window.innerHeight,isShown:!k,onHide:function(){E(!0),g&&g()},children:m.jsx(r("MCDSFlexbox.react"),{direction:"column",gap:0,xstyle:r("mcdsHeight").fullHeight,children:m.jsx(o("CandidatePortalUploadResumeButtonContext").CandidatePortalUploadResumeButtonContextProvider,{conversation:D,children:m.jsx(r("CandidatePortalChatbotContentV4.react"),{conversation:D,isFullScreenChat:!0})})})});var w=m.jsx(S,{isFullScreen:d,children:m.jsx(o("CandidatePortalUploadResumeButtonContext").CandidatePortalUploadResumeButtonContextProvider,{conversation:D,children:m.jsxs(m.Fragment,{children:[m.jsx(r("CPChatbotHeaderV4.react"),{endContent:!d&&m.jsx(r("MCDSIconButton.react"),{"aria-label":s._(/*BTDS*/"Minimize chat"),icon:m.jsx(r("MCDSIcon.react"),{icon:r("MCDSIconArrowsInUpperRightLowerLeftFilled.svg.react")}),onClick:function(){p(function(){_("minimizeChat"),E(!0),g&&g()})},size:"medium",type:"plain_secondary"}),startContent:d&&c&&m.jsx(r("MCDSIconButton.react"),{"aria-label":s._(/*BTDS*/"Back"),icon:m.jsx(r("MCDSIcon.react"),{icon:r("MCDSIconCaretLeftFilled.svg.react")}),onClick:function(){E(!0),g&&g()},size:"medium-large",type:"border"})}),m.jsx(r("CandidatePortalChatbotContentV4.react"),{conversation:D,isFullScreenChat:!0})]})})});return m.jsx(f,{default:{minimizeChat:C,default:"none"},name:"CP_AI_SIDECHAT",children:w})}v.displayName=v.name+" [from "+i.id+"]";function S(e){var t=e.children,n=e.isFullScreen,o=r("useMCDSStyles")(),a=o.selectBoxBorder;return n?m.jsx(f,{default:{makeChatSmall:b,default:"none"},name:"CP_AI_FUll_SIDECHAT",children:m.jsx(r("MCDSVerticalStack.react"),{gap:0,grow:1,xstyle:y.fullScreenContainer,children:t})}):m.jsx("div",{className:"x3nertt x1iymm2a",children:m.jsx(f,{default:{makeChatSmall:b,default:"none"},name:"CP_AI_FUll_SIDECHAT",children:m.jsx(r("MCDSVerticalStack.react"),{gap:0,grow:0,xstyle:[y.chatContainer,r("mcdsMargin").vert32,a({all:!0})],children:t})})})}S.displayName=S.name+" [from "+i.id+"]",l.default=v}),226);
-----
CandidatePortalChatbotContentV3View.entrypoint",["CandidatePortalChatbotContentV3ViewQuery$Parameters","JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var b;return{queries:{chatbotContentQueryRef:{parameters:c("CandidatePortalChatbotContentV3ViewQuery$Parameters"),variables:{considerationID:(b=a.considerationID)!=null?b:"",hasConsideration:a.considerationID!=null}}}}},root:c("JSResourceForInteraction")("CandidatePortalChatbotContentV3View.react").__setRef("CandidatePortalChatbotContentV3View.entrypoint")};b=a;g["default"]=b}),98);
-----
CandidatePortalChatbotContentV3ViewQuery$Parameters",["CandidatePortalChatbotContentV3ViewQuery_candidate_portalRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CandidatePortalChatbotContentV3ViewQuery_candidate_portalRelayOperation"),metadata:{},name:"CandidatePortalChatbotContentV3ViewQuery",operationKind:"query",text:null}};e.exports=a}),null);
-----
CandidatePortalChatbotContentV3ViewQuery_candidate_portalRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24065785503097315"}),null);
-----