PageSourceSearch

https://www.edcentro.org/static/js/8112.9f0f82c8.min.js

js edcentro.org collected 2026-09-28 18:59:19 UTC 529,143 bytes, 96 lines download raw bytes

1"use strict";(self.webpackChunkclient_v2=self.webpackChunkclient_v2||[]).push([[8112],{9033:(q,N,t)=>{t.d(N,{A:()=>A});var e=t(715621),s=t(768835),l=t(839050);const a={bgImage:"bgImage__SEdOC",box:"box__tx281",arc:"arc__bgoWv",mobile:"mobile__I78wE"},A=({className:C=""})=>{const o=(0,l.al)();return(0,e.jsxs)("div",{className:(0,s.A)(a.bgImage,{[a.mobile]:o},C),children:[(0,e.jsx)("div",{className:a.box}),(0,e.jsx)("div",{className:a.arc})]})}},10459:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(715621),s=t(537953),l=t(872655),a=t(243130),h=t.n(a),A=t(768835);const C=({className:g,"aria-label":x,ariaLabel:p,...c},v)=>{const[n]=(0,s.useState)(h().generate()),[i]=(0,s.useState)(x||p);return(0,s.useEffect)(()=>{const{value:f,defaultValue:y,max:m,min:b}=c,u=document.getElementsByClassName(n)[0];if(u){const d=u.getElementsByClassName("ant-input-number-input-wrap")[0];d&&(d.setAttribute("aria-valuenow",f||y||0),m?d.setAttribute("aria-valuemax",m):d.removeAttribute("aria-valuemax"),b?d.setAttribute("aria-valuemin",b):d.removeAttribute("aria-valuemin"))}},[]),(0,e.jsx)(l.A,{className:(0,A.A)(n,!!g&&g),"aria-label":i,...c,ref:v})},o=s.memo(s.forwardRef(C))},31592:(q,N,t)=>{t.d(N,{A:()=>b});var e=t(715621),s=t(537953),l=t(145926),a=t(665790),h=t(90570),A=t(939291),C=t(838097),o=t(535032),g=t(425170),x=t(236066),p,c;function v(){return v=Object.assign?Object.assign.bind():function(u){for(var d=1;d<arguments.length;d++){var I=arguments[d];for(var E in I)({}).hasOwnProperty.call(I,E)&&(u[E]=I[E])}return u},v.apply(null,arguments)}const n=(u,d)=>{let{title:I,titleId:E,...M}=u;return s.createElement("svg",v({id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 32 32",style:{enableBackground:"new 0 0 32 32",width:24,height:24},xmlSpace:"preserve",ref:d,"aria-labelledby":E},M),I?s.createElement("title",{id:E},I):null,p||(p=s.createElement("style",{type:"text/css"},`
2	.st0{fill:none;}
3	.st1{fill:#FFFFFF;}
4`)),c||(c=s.createElement("g",{id:"Page-1"},s.createElement("g",{id:"Group-4"},s.createElement("rect",{id:"Rectangle",className:"st0",width:32,height:32}),s.createElement("path",{id:"ios-share",className:"st1",d:"M16.2,19.7c0.3,0,0.6-0.3,0.6-0.6V9l0-1.4l0.8,0.9l1.6,1.7c0.1,0.1,0.3,0.2,0.4,0.2 c0.3,0,0.5-0.2,0.5-0.5c0-0.2-0.1-0.3-0.2-0.4l-3.3-3.2C16.5,6,16.4,6,16.2,6S16,6,15.8,6.2l-3.3,3.2c-0.1,0.1-0.2,0.2-0.2,0.4 c0,0.3,0.2,0.5,0.5,0.5c0.1,0,0.3-0.1,0.4-0.2l1.6-1.7l0.8-0.9l0,1.4v10.2C15.6,19.5,15.9,19.7,16.2,19.7z M21.7,27 c1.8,0,2.8-0.9,2.8-2.8v-9.7c0-1.8-0.9-2.8-2.8-2.8H19V13h2.7c1,0,1.6,0.6,1.6,1.7v9.5c0,1.1-0.6,1.7-1.6,1.7H10.8 c-1.1,0-1.6-0.6-1.6-1.7v-9.5c0-1.1,0.6-1.7,1.6-1.7h2.7v-1.2h-2.7c-1.8,0-2.8,0.9-2.8,2.8v9.7c0,1.8,0.9,2.8,2.8,2.8H21.7z"})))))},f=(0,s.forwardRef)(n),y={pwa_prompt:"pwa_prompt__0rHeF",pwa_prompt__container:"pwa_prompt__container__ydVY6","ios-prompt":"ios-prompt__MHRTO",cross__container:"cross__container__RIq1Y","cross-btn":"cross-btn__f1XkA",pwa_prompt__logo:"pwa_prompt__logo__yXtal",logo:"logo__MItdV",pwa_prompt__content:"pwa_prompt__content__fwzDo",title:"title__KsXo3",action:"action__b43J_",text:"text__ktpgM","ios-text":"ios-text__EZdp5",btn__container:"btn__container__ojEug",button:"button__Grqxi"},b=({cluster:u,user:d,trackEvent:I,isPWA:E})=>{const M=!(0,h.A)(d),[S,P,H,L]=(0,C.A)(),[O,K,T]=(0,o.A)(),D=(0,l.zy)(),[W,B]=(0,s.use
4State)(!1),k=(0,A.A)(u,"hasMobileApp",!1);(0,s.useEffect)(()=>{const oe=/signup/.test(D.pathname),Q=/inbox\//.test(D.pathname),ne=/ftu-v2/.test(D.pathname),Oe=/video-chat/.test(D.pathname),je=E&&!k&&M&&!oe&&!Q&&!ne&&!Oe;B(xe=>xe===je?xe:je)},[D.pathname,M,E,k]);const _=(0,A.A)(u,"settings.coreSettings.branding",null);if(!_)return null;const{name:F,pageTitle:U}=_,V=(0,g.HAb)(u,!0),Z=(0,g.c5u)("misc","associatedSchoolShortname",u,"School Name"),$=F||U||Z,G=H||O;if(!M||!G||!W)return null;const ie=oe=>{oe==="accepted"?(I({pgAnalytics:"PWA Installation Accepted - Android",pgAnalyticsDownload_Screen_Path:window.location.pathname,pgAnalyticsCategory:"PWA Event"}),T()):oe==="declined"&&(I({pgAnalytics:"PWA Installation Declined - Android",pgAnalyticsReject_Screen_Path:window.location.pathname,pgAnalyticsCategory:"PWA Event"}),K())},le=()=>{I({pgAnalytics:"PWA Installation Declined - IOS",pgAnalyticsReject_Screen_Path:window.location.pathname,pgAnalyticsCategory:"PWA Event"}),L()},ce=oe=>{const Q=(0,e.jsxs)(e.Fragment,{children:["Connect faster with our free app! To install, tap",(0,e.jsx)(f,{width:"24",height:"24"})," and then \u201CAdd to Home Screen.\u201D"]}),ne=(0,e.jsxs)(e.Fragment,{children:["Connect faster with our free app! To install, open this site in Safari and tap",(0,e.jsx)(f,{width:"24",height:"24"})," and then \u201CAdd to Home Screen.\u201D"]});return oe?Q:ne};return(0,e.jsxs)(e.Fragment,{children:[P&&H&&(0,e.jsx)("div",{className:y.pwa_prompt,children:(0,e.jsxs)("div",{className:`${y.pwa_prompt__container} ${y["ios-prompt"]}`,children:[(0,e.jsx)("div",{className:y.pwa_prompt__logo,children:(0,e.jsx)("img",{src:V,alt:"Logo",className:y.logo})}),(0,e.jsxs)("div",{className:y.pwa_prompt__content,children:[(0,e.jsx)("span",{className:y.title,children:$}),(0,e.jsx)("div",{className:y.action,children:(0,e.jsx)("span",{className:y["ios-text"],styles:$?{}:{marginRight:"32px"},children:ce(S)})})]}),(0,e.jsx)("div",{className:y.cross__container,children:(0,e.jsx)(a.A,{shape:"circle",className:y["cross-btn"],onClick:le,children:(0,e.jsx)(x.A,{size:16,fill:"#FFF"})})})]})}),O&&(0,e.jsx)("div",{className:y.pwa_prompt,children:(0,e.jsxs)("div",{className:y.pwa_prompt__container,children:[(0,e.jsx)("div",{className:y.pwa_prompt__logo,children:(0,e.jsx)("img",{src:V,alt:"Logo",className:y.logo})}),(0,e.jsxs)("div",{className:y.pwa_prompt__content,children:[(0,e.jsx)("span",{className:y.title,children:$}),(0,e.jsxs)("div",{className:y.action,children:[(0,e.jsx)("span",{className:y.text,children:"Connect faster with our free app!"}),(0,e.jsx)("span",{className:y.btn__container,children:(0,e.jsx)(a.A,{className:y.button,onClick:()=>ie("accepted"),children:"Download Now"})})]})]}),(0,e.jsx)("div",{className:y.cross__container,children:(0,e.jsx)(a.A,{shape:"circle",className:y["cross-btn"],onClick:()=>ie("declined"),children:(0,e.jsx)(x.A,{size:16,fill:"#FFF"})})})]})})]})}},33256:(q,N,t)=>{t.d(N,{A:()=>W});var e=t(715621),s=t(537953),l=t(248883),a=t(768835),h=t(839050),A=t(90570),C=Object.defineProperty,o=(B,k,_)=>k in B?C(B,k,{enumerable:!0,configurable:!0,writable:!0,value:_}):B[k]=_,g=(B,k,_)=>o(B,typeof k!="symbol"?k+"":k,_);class x extends s.Component{constructor(k){super(k),g(this,"handleToggle",()=>{const{expanded:_}=this.state;this.setState({expanded:!_})}),g(this,"getClassName",_=>{const{selected:F}=this.props,{didShowFade:U}=this.state;if(F){const V=`${_}--selected`,Z=U?`${_}--fade`:"";return`${_} ${V} ${Z}`}else return _}),this.state={expanded:!0,didShowFade:!1},this.timerId=null}componentDidMount(){const{selected:k,parentVisible:_}=this.props;k&&_&&(this.timerId=setTimeout(()=>{this.setState({didShowFade:!0})},3e3))}componentWillUnmount(){clearTimeout(this.timerId)}render(){const{title:k,definition:_,className:F,isCollapsible:U=!0}
4=this.props,{expanded:V}=this.state,Z=V?"up":"down",$=V?"Collapse":"Expand";return(0,e.jsxs)("div",{className:(0,a.A)(this.getClassName("glossary__item"),F),children:[(0,e.jsxs)("div",{className:"glossary__item--left",children:[(0,e.jsx)("div",{className:this.getClassName("glossary__item__title"),children:k}),(0,e.jsx)("div",{className:this.getClassName("glossary__item__definition"),children:V&&(0,e.jsx)("div",{className:"glossary__item__definition--expanded",children:_})})]}),U?(0,e.jsx)("div",{className:"glossary__item__right",children:(0,e.jsx)(l.m_,{content:$,getPopupContainer:G=>G&&G.parentNode?G.parentNode:document.body,direction:"left",children:(0,e.jsx)(l.K0,{className:this.getClassName("glossary__item__toggle"),icon:`pg-cheveron-${Z}-o`,onClick:this.handleToggle,"aria-label":`${$} Glossary Definition`})})}):null]})}}const p=x;var c=t(736608);const v=(B,k)=>(0,c.A)(B,{key:k}),n=(B,k)=>(0,c.A)(B,{dictionary:[{key:k}]}),i=(B,k)=>{const{dictionary:_=[]}=B,F=_.reduce((U,V)=>V.key===k?[V,...U]:[...U,V],[]);return{...B,dictionary:F}};var f=t(686993),y=t(30249);const m=(0,f.eU)(null);m.debugLabel="selectedSubsection";const b=()=>(0,y.fp)(m),u=()=>useSetAtom(m),d=()=>useAtomValue(m),E=({dictionary:B,selectedKey:k,selectedHeading:_,parentVisible:F})=>{const[U,V]=b(),Z=!(0,A.A)(U)&&U.key,$=Z?[i(U,k)]:B;return(0,s.useEffect)(()=>{if(!k&&!_){V(null);return}const G=k?n(B,k):v(B,_);G&&V(G)},[k,_]),(0,A.A)($)?(0,e.jsx)("div",{children:"No sections found"}):(0,e.jsx)("div",{className:"glossary__items",children:$.map((G,ie)=>(0,e.jsxs)("div",{className:"glossary__section",children:[(0,e.jsxs)("div",{className:"glossary__section__header",children:[(0,e.jsx)("div",{className:"glossary__section__title",children:G.label}),Z?null:(0,e.jsx)(l.$n,{type:"link",size:"small","aria-label":`Go to ${G.label}`,onClick:()=>V(G),children:"View section"})]}),G.description?(0,e.jsx)("p",{children:G.description}):null,(0,e.jsx)("div",{className:"glossary__section__items",children:(G.dictionary||[]).map((le,ce)=>{var oe;return(0,e.jsx)(p,{selected:le.key===k&&Z,title:le.label,parentVisible:F,definition:le.definition,className:le.className,isCollapsible:le.isCollapsible},(oe=le.key)!=null?oe:ce)})})]},ie))})},S=({title:B,rootLabel:k="Glossary"})=>{const[_,F]=b(),U=!(0,A.A)(_)&&_.key,V=(0,e.jsx)(l.Qp.Item,{...U?{className:"glossary__breadcrumb__item--homepage",onClick:()=>F(null),tooltipProps:{direction:"bottom",content:`Go to ${B} Glossary Homepage`,getContainer:$=>$&&$.parentNode?$.parentNode:document.body}}:{},children:B}),Z=(0,e.jsx)(l.Qp.Item,{hidden:!U,className:"glossary__breadcrumb__item--subsection",children:_==null?void 0:_.label});return(0,e.jsx)("div",{className:"glossary__header",children:k?(0,e.jsxs)(l.Qp,{separator:"/",className:"glossary__breadcrumb",children:[(0,e.jsx)(l.Qp.Item,{children:k}),V,Z]}):(0,e.jsxs)(l.Qp,{separator:"/",className:"glossary__breadcrumb",children:[V,Z]})})},H=({title:B,visible:k,width:_,onClose:F,dictionary:U,selectedKey:V,selectedHeading:Z,contentClassName:$,rootLabel:G})=>{const ie=(0,h.al)();return(0,e.jsx)(l.aF,{id:"glossary-content-drawer",className:(0,a.A)("glossary__content-drawer",{[$]:$.length}),title:(0,e.jsx)(S,{title:B,rootLabel:G}),titleProps:{className:"drawer-title"},open:k,behaviour:ie?"bottom-up":"right-to-left",onClose:F,surfaceProps:{style:{width:_}},children:(0,e.jsx)(E,{dictionary:U,selectedKey:V,selectedHeading:Z,parentVisible:k})})},L={};var O=Object.defineProperty,K=(B,k,_)=>k in B?O(B,k,{enumerable:!0,configurable:!0,writable:!0,value:_}):B[k]=_,T=(B,k,_)=>K(B,typeof k!="symbol"?k+"":k,_);class D extends s.Component{constructor(k){super(k),T(this,"showGlossary",_=>{const{hideTooltip:F,callParent:U}=this.props;this.setState({visible:_}),_?(F&&F(),this.lastActiveElement=document.activeElement):this.lastActiveElement&&this.lastActiveElement.focus(),U&&_&&U()}),this.state={visible:!1,afterVisibleChange:!1},this.lastActiveElement=null}render(){var k;const{dictionary:_=[],title:F="",selectedKey:U=null,selectedHeading:V=null,icon:Z=null,label:$="",width:G=660,ariaLabel:ie="",customIcon:le=null,contentClassName:ce="",buttonClassName:oe="",renderButtonAs:Q="link",rootLabel:ne}=this.props,{visible:Oe}=this.state,je=(k=n(_,U))==null?void 0:k.label,xe=je?`${je}'s Glossary`:"Open Glossary";let dt=null;return le?dt=le:Z&&(dt=(0,e.jsx)(l.C0,{icon:Z,size:16})),(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)(l.$n,{type:Q,noPadding:!0,size:"small",className:(0,a.A)("glossary__button",oe),"aria-label":ie||$||xe,onClick:()=>this.showGlossary(!0),icon:dt,children:$}),(0,e.jsx)(H,{title:F,dictionary:_,selectedKey:U,selectedHeading:V,visible:Oe,width:G,onClose:()=>this.showGlossary(!1),contentClassName:ce,rootLabel:ne})]})}}const W=D},37140:(q,N,t)=>{t.d(N,{A:()=>a});var e=t(839050),s=t(710366);const a=()=>{const h=(0,e.er)();if(h&&h.id)try{(0,s.SO)("cluster",JSON.stringify(h))}catch(A){}return window.location.reload(),null}},44260:(q,N,t)=>{t.d(N,{Z:()=>v,A:()=>n});var e=t(715621),s=t(537953),l=t(992972),a=t.n(l),h=t(665790),A=t(278975);const C={};var o=Object.defineProperty,g=(i,f,y)=>f in i?o(i,f,{enumerable:!0,configurable:!0,writable:!0,value:y}):i[f]=y,x=(i,f,y)=>g(i,typeof f!="symbol"?f+"":f,y);const{log:p}=console;class c extends s.PureComponent{constructor(){super(...arguments),x(this,"handleOnClick",f=>{const{onClick:y,href:m,external:b}=this.props;m&&!b?(f.preventDefault(),A.A.push(m)):y(f)}),x(this,"generateClasses",()=>{const{whitebackground:f,noborder:y,nopadding:m,xFit:b,yFit:u,className:d,type:I}=this.props;return a()({"pg-button":!0,"pg-button--no-border":y,"pg-button--w
4hite-background":f,"pg-button--no-padding":m,"pg-button--fit-width":b,"pg-button--fit-height":u,"pg-button--link":I==="link",[d]:!!d})})}render(){const{children:f,icon:y,href:m,nopadding:b,noborder:u,whitebackground:d,xFit:I,yFit:E,external:M,...S}=this.props,P=(0,e.jsxs)("div",{className:"pg-button__inner",children:[y&&(0,e.jsx)("em",{className:`${y} pg-button__icon`}),f]});return m?(0,e.jsx)(h.A,{...S,className:this.generateClasses(),onClick:this.handleOnClick,href:m,children:P}):(0,e.jsx)(h.A,{...S,className:this.generateClasses(),onClick:this.handleOnClick,children:P})}}c.defaultProps={onClick:()=>{p("default action")},noborder:!1,nopadding:!1,whitebackground:!1,xFit:!1,yFit:!1,external:!1,href:void 0};class v extends s.PureComponent{constructor(){super(...arguments),x(this,"handleOnClick",f=>{const{item:y,onClick:m}=this.props;f.preventDefault(),m(y)})}render(){const{handleOnClick:f,props:y}=this;return(0,e.jsx)(c,{...y,onClick:f})}}v.defaultProps={...c.defaultProps};const n=c},51479:(q,N,t)=>{t.d(N,{A:()=>A});var e=t(715621),s=t(537953);const a=({width:C="18px",height:o="30px",className:g="",fillClassName:x="",fillColor:p,backgroundClassName:c="",focusable:v=!0,isBookmarked:n=!1})=>(0,e.jsx)("span",{className:c,style:{display:"inline-flex"},children:n?(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:C,height:o,className:g,viewBox:"0 0 18 30",version:"1.1",xlink:"http://www.w3.org/1999/xlink",...v?{focusable:v}:{},children:(0,e.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,e.jsx)("g",{transform:"translate(-1149.000000, -316.000000)",fill:p,className:x,children:(0,e.jsx)("g",{transform:"translate(250.000000, 249.000000)",children:(0,e.jsx)("g",{transform:"translate(893.000000, 65.000000)",children:(0,e.jsxs)("g",{children:[(0,e.jsx)("text",{fontFamily:"mentor-icons",fontSize:"30",fontWeight:"normal"}),(0,e.jsx)("path",{d:"M23.75 1.937V31.37c0 .25-.122.438-.367.563-.184.125-.49.062-.673-.063L15 24.31l-7.71 7.56c-.183.125-.49.188-.673.063-.245-.125-.367-.313-.367-.563V1.937C6.25.875 7.045 0 8.086 0h13.828c1.04 0 1.836.875 1.836 1.937z"})]})})})})})}):(0,e.jsx)("svg",{width:C,height:o,className:g,viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...v?{focusable:v}:{},children:(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.68781 0H1.31252C0.757739 0 0.333496 0.4375 0.333496 0.96875V15.6875C0.333496 15.75 0.36613 15.8438 0.431398 15.9063C0.496666 15.9688 0.561934 16 0.659836 16C0.725104 16 0.823007 15.9688 0.888275 15.9375L5.00016 12.1563L9.11205 15.9375C9.17732 15.9688 9.27522 16 9.34049 16C9.43839 16 9.50366 15.9688 9.56893 15.9063C9.6342 15.8438 9.66683 15.75 9.66683 15.6875V0.96875C9.66683 0.4375 9.24259 0 8.68781 0ZM9.01415 14.9375L5.45704 11.6875L5.00016 11.2813L4.54329 11.6875L0.986177 14.9375V0.96875C0.986177 0.78125 1.14935 0.625 1.31252 0.625H8.68781C8.85098 0.625 9.01415 0.78125 9.01415 0.96875V14.9375Z",fill:"#4D535E",className:x})})});class h extends s.PureComponent{render(){const{isV2:o=!1,width:g=20,height:x=24,isBookmarked:p,...c}=this.props,v=c.fill?c.fill:"#e4e6eb",n=p?"#096DD9":v;return o?(0,e.jsx)("svg",{width:g,height:x,viewBox:"0 0 20 24",fill:p?"#096DD9":"#E4E6EB",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M14.6611 3.32241C15.5783 3.45014 16.25 4.399 16.25 5.50699V21L10 17.25L3.75 21V5.50699C3.75 4.399 4.42173 3.45014 5.3389 3.32241C6.86797 3.10947 8.42333 3 10 3C11.5767 3 13.132 3.10947 14.6611 3.32241Z",fill:p?"#096DD9":"#E4E6EB",stroke:"#696F7A",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,e.jsx)(a,{width:g,height:x,fillColor:n,...c,isBookmarked:p})}}const A=h},56557:(q,N,t)=>{t.d(N,{A:()=>e.A});var e=t(411486)},66312:(q,N,t)=>{t.d(N,{A:()=>h});var e=t(715621),s=t(537953);const l={containerAttachments:"containerAttachments__tRYbE",attachment:"attachment__fYZTW",name:"name___s_2a",paperclip:"paperclip__nr_3p",delete:"delete__aAj7D"},h=({attachments:A,removeAttachment:C})=>!A||!A.length?null:(0,e.jsx)("div",{className:l.containerAttachments,children:A.map(o=>(0,e.jsxs)("span",{className:l.attachment,children:[(0,e.jsx)("span",{className:`${l.paperclip} campuskudos-paperclip`}),(0,e.jsxs)("span",{className:l.name,children:[(0,e.jsx)("span",{className:"sr-only",children:"Attached File:"}),o.name]}),(0,e.jsx)("button",{className:`${l.delete} campuskudos-delete-1`,role:"button","aria-label":`click to remove ${o.name.split("_").pop()?o.name.split("_").pop():"file"}`,onClick:()=>C(o.url)})]},o.url))})},90282:(q,N,t)=>{t.d(N,{A:()=>n});var e=t(715621),s=t(537953),l=t(248883),a=t(50391),h=t(69943),A=t(939291),C=t(938055),o=t(356029),g=t(839050),x=t(425170);const p={feedbackModal:"feedbackModal__Ex237",modalActions:"modalActions__T_3O2",submitBtn:"submitBtn__M25Lj",description:"description__IYCMn",dontShowCheckbox:"dontShowCheckbox__BG5Jr"},c={opportunities:"Tell us about your experience finding relevant opportunities. Your feedback will help us improve your experience. Thanks!",connections:"Tell us about your experience finding helpful connections. Your feedback will help us improve your experience. Thanks!"},n=({open:i,careerPathTitle:f,onClose:y,onSubmit:m,subModule:b})=>{const u=(0,g.lx)(),d=(0,g.iZ)(),I=(0,o.E)(),E=(0,x.mRd)(d,u),M=(0,A.A)(E,"settings.dontShowCareerPathFeedback",!1),[S,P]=(0,s.use
4State)(""),[H,L]=(0,s.useState)(!1),K=(0,g.al)()?"bottom-up":"grow";(0,s.useEffect)(()=>{i||(P(""),L(!1))},[i]);const T=()=>{if(!S)return;m({feedback:S,dontShowAgain:H,subModule:b,liked:!1}),I({pgAnalytics:"career_path_interaction",pgAnalyticsCategory:"Career Path Interaction",pgAnalyticsSection:(0,C.A)(b),pgAnalyticsCta_Name:"Submit",pgAnalyticsCareer_Path_Title:f})},D=()=>{y(),I({pgAnalytics:"career_path_interaction",pgAnalyticsCategory:"Career Path Interaction",pgAnalyticsSection:(0,C.A)(b),pgAnalyticsCta_Name:"Not Now",pgAnalyticsCareer_Path_Title:f})};return(0,e.jsxs)(l.aF,{open:!M&&i,behaviour:K,onClose:()=>y(),id:"recommendation-feedback-modal",title:"Provide your feedback",className:p.feedbackModal,footer:(0,e.jsxs)("div",{className:p.modalActions,children:[(0,e.jsx)(l.$n,{onClick:()=>D(),type:"tertiary",children:"Not now"}),(0,e.jsx)(l.$n,{onClick:()=>T(),className:p.submitBtn,disabled:!S,children:"Submit"})]}),children:[(0,e.jsx)("div",{className:p.description,children:c[b]}),(0,e.jsx)(a.A.TextArea,{placeholder:"Share your feedback here",value:S,onChange:W=>P(W.target.value)}),(0,e.jsx)(h.A,{className:p.dontShowCheckbox,checked:H,onChange:W=>L(W.target.checked),children:"Don\u2019t show again"})]})}},90486:(q,N,t)=>{t.d(N,{P:()=>h,R:()=>a});var e=t(686993),s=t(30249);const l=(0,e.eU)({isVerified:!0,hasError:!1});l.debugLabel="emailVerificationStatus";const a=()=>(0,s.fp)(l),h=()=>(0,s.Xr)(l)},91611:(q,N,t)=>{t.d(N,{A:()=>m});var e=t(715621),s=t(537953),l=t(251981),a=t(595526),h=t(839392),A=t(90570),C=t(972185),o=t(551471),g=t.n(o),x=t(246239),p=t(829080);const c={};var v=Object.defineProperty,n=(b,u,d)=>u in b?v(b,u,{enumerable:!0,configurable:!0,writable:!0,value:d}):b[u]=d,i=(b,u,d)=>n(b,typeof u!="symbol"?u+"":u,d);class f extends s.PureComponent{constructor(){super(...arguments),i(this,"state",{currentMonth:null,initialSlotCapture:!1}),i(this,"handleChange",(u,d)=>{const{onChange:I,multiple:E=!1,value:M}=this.props;E?M.find(S=>S.format("YYYY-MM-DD")===u.format("YYYY-MM-DD"))?I(u,d,(0,a.A)(M)?M.filter(S=>S.format("YYYY-MM-DD")!==u.format("YYYY-MM-DD")):[]):I(u,d,(0,a.A)(M)?[...M,u]:[u]):I(u,d,u)}),i(this,"handleMonthChange",(0,h.A)(u=>{const{onMonthChange:d}=this.props;this.setState({currentMonth:u},()=>d&&d(u))},100))}render(){const{className:u,value:d,disabledDate:I,defaultPickerValue:E,isLoading:M,loadingText:S,useWeekdaysShort:P,isFontScaledUp:H}=this.props;if(H){const T=d?g()(d):null;T&&T.isValid()&&!this.state.initialSlotCapture&&(this.setState({initialSlotCapture:!0}),this.handleMonthChange(T));const D=T&&T.isValid()?T.format("YYYY-MM-DD"):"",W=g()().format("YYYY-MM-DD");return(0,e.jsx)("div",{className:"pg-calendar-container pg-calendar-container--native",children:(0,e.jsx)("input",{type:"date",value:D,min:W,onChange:B=>{const k=B.target.value?g()(B.target.value,"YYYY-MM-DD"):null;!k||!k.isValid()||k.isBefore(g()(),"day")||(this.handleChange(k,B.target.value),this.handleMonthChange(k))},"aria-label":"Select meeting date",style:{width:"100%"}})})}const L=Array.isArray(E)?E:[E].filter(Boolean),O=Array.isArray(d)?d:[d].filter(Boolean),K=(0,A.A)(O)?L:O;return(0,e.jsxs)("div",{className:"pg-calendar-container",children:[(0,e.jsx)(x.lr,{inline:!0,value:d,onChange:this.handleChange,useMoment:!0,highlightDates:(0,C.A)(K,T=>new Date(T.format())),filterDate:T=>{var D;const W=g()(T),B=W.format("YYYY-MM");return W.date()===15&&B!==((D=this.state.currentMonth)==null?void 0:D.format("YYYY-MM"))&&this.handleMonthChange(W),!I(W)},className:`pg-calendar pg-calendar--hide--other-month-dates ${u}`,calendarIcon:null,useWeekdaysShort:P}),M&&(0,e.jsxs)("div",{className:"pg-calendar-loading-overlay",children:[(0,e.jsx)(l.A,{}),S&&(0,e.jsx)("div",{className:"pg-calendar-loading-overlay__text",children:S})]})]})}}const m=b=>{const u=(0,p.MU)();return(0,e.jsx)(f,{...b,isFontScaledUp:u})}},96345:(q,N,t)=>{t.d(N,{A:()=>h});var e=t(715621),s=t(248883);const l={},h=({loaderLabel:A=""})=>(0,e.jsx)("div",{className:"loader-block",role:"progressbar","aria-label":A||"Page Loader",children:(0,e.jsx)(s.Rh,{size:40})})},102020:(q,N,t)=>{t.d(N,{A:()=>v});var e=t(715621),s=t(537953),l=t(878246),a=t(69943),h=t(98404),A=t(829080);const C={};var o=Object.defineProperty,g=(n,i,f)=>i in n?o(n,i,{enumerable:!0,configurable:!0,writable:!0,value:f}):n[i]=f,x=(n,i,f)=>g(n,typeof i!="symbol"?i+"":i,f);class p extends s.PureComponent{constructor(){super(...arguments),x(this,"state",{callOnMeetingStartVal:!1,phoneVal:!1,phoneError:!1}),x(this,"handleCallOnMeetingStartChange",i=>{const{onCallOnMeetingStartChange:f=()=>{}}=this.props,y=i.target.checked;this.setState({callOnMeetingStartVal:y},()=>f(y))}),x(this,"handlePhoneChange",i=>{const{isMobile:f,onPhoneChange:y=()=>{}}=this.props;this.setState({phoneVal:i},()=>{f||y(i)})}),x(this,"handlePhoneErrorChange",i=>{const{onPhoneErrorChange:f=()=>{}}=this.props;this.setState({phoneError:i},()=>f(i))})}render(){const{callOnMeetingStart:i,phone:f,callPin:y,defaultBridge:m=null,twilioTelUrl:b=null,handlePhoneDataChange:u=()=>{},isMobile:d,isFontScaledUp:I}=this.props,{callOnMeetingStartVal:E,phoneVal:M}=this.state,S=i||E,P=f||M;return(0,e.jsxs)("div",{className:"meeting-bridge__input__phone",children:[(0,e.jsx)(l.A,{}),(0,e.jsx)("div",{className:"meeting-bridge__input__bridge-details",children:m?(0,e.jsxs)("ul",{children:[(0,e.jsxs)("li",{children:[(0,e.jsx)("strong",{children:"Dial-in:"})," (",m.abbr,")"," ",m.bridge]}),y?(0,e.jsxs)("li",{children:[(0,e.jsx)("strong",{children:"PIN:"})," ",y]}):null]}):null}),b&&(0,e.jsx)("div",{className:"meeting-bridge__tels",children:(0,e.jsx)("a",{href:`/email-response/${b}`,target:"_blank",rel:"noreferrer",children:"More dial-in numbers"})}),(0,e.jsx)(a.A,{checked:S,onChange:this.handleCallOnMeetingStartChange,className:"meeting-bridge__input__phone__checkbox",children:"Call me when the meeting starts"}),S?(0,e.jsx)(h.A,{onChange:this.handlePhoneChange,onErrorChange:this.handlePhoneErrorChange,value:P,style:I?{display:"inline-grid"}:{},className:I?"font-scaled-up":"",placeholder:"Phone number",required:!0,...d&&{onContainerBlur:()=>u(P)}}):null]})}}const v=n=>{const i=(0,A.MU)();return(0,e.jsx)(p,{...n,isFontScaledUp:i}
4)}},106324:(q,N,t)=>{t.d(N,{A:()=>l});var e=t(715621),s=t(537953);function l({size:a,color:h,ariaLabel:A,ariaLabelBy:C,focusable:o=!1,title:g=""}){const x={};return A&&(x["aria-label"]=A),C&&(x["aria-labelledby"]=C),g&&(x.title=g),(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 16 13",role:"img",focusable:o,...x,children:(0,e.jsx)("path",{fill:h,fillRule:"evenodd",d:"M15.813 4.179c.124.065.187.162.187.293 0 .162-.063.26-.188.325L13.345 6.13v2.894c0 .911-.5 1.561-1.5 2.374-1.031.846-2.313 1.269-3.844 1.269-.719 0-1.531-.13-2.406-.358-.25-.098-.344-.228-.25-.423.062-.227.187-.325.406-.26.781.195 1.531.325 2.25.325 1.406 0 2.531-.358 3.375-1.073.844-.683 1.281-1.17 1.281-1.854V6.488l-4.5 2.439c-.031.032-.093.032-.156.032s-.125 0-.156-.032l-4.5-2.44V9.48c.281.065.531.227.719.487.187.228.28.52.28.846 0 .358-.124.683-.374.943A1.275 1.275 0 0 1 3 12.18c-.375 0-.688-.13-.938-.423a1.24 1.24 0 0 1-.406-.943c0-.325.094-.618.282-.846.187-.26.437-.422.718-.487V6.13L.187 4.797C.063 4.732 0 4.634 0 4.472c0-.13.062-.228.188-.293L7.843.049a.275.275 0 0 1 .312 0l7.656 4.13zM3.655 10.846a.676.676 0 0 0-.187-.488c-.125-.13-.281-.228-.469-.228-.188 0-.344.098-.469.228a.676.676 0 0 0-.187.488c0 .195.062.325.187.487.125.13.281.195.469.195a.623.623 0 0 0 .469-.195c.125-.162.187-.292.187-.487zM8 8.34l7.063-3.837L8 .7.937 4.504l2 1.106 4.97-1.431c.218-.065.374.032.406.26.093.195.03.325-.22.423l-4.28 1.203L8 8.341z"})})}l.defaultProps={size:"16px",color:"#006D75"}},110252:(q,N,t)=>{t.d(N,{A:()=>i});var e=t(715621),s=t(537953),l=t(768835),a=t(90570),h=t(939291),A=t(389315),C=t(158312),o=t(706157),g=t(246239);const x={};var p=Object.defineProperty,c=(f,y,m)=>y in f?p(f,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):f[y]=m,v=(f,y,m)=>c(f,typeof y!="symbol"?y+"":y,m);class n extends s.PureComponent{constructor(y){super(y),v(this,"handleChange",m=>{const{showCount:b,getCount:u}=this.props;(!m||m==="<p></p>")&&(m="");let d=0;!(0,a.A)(m)&&b==="char"&&(0,h.A)(this.froalaRef,"editor.charCounter.count")?d=this.froalaRef.editor.charCounter.count():b&&u&&(d=u({value:m,type:b,isRichText:!0})),this.setState({text:m,count:d})}),v(this,"handleBlur",m=>{const{onBlur:b}=this.props,{text:u}=this.state;if(u&&u!=="<p></p>"){const d=(0,C.G)(u,!0,!0);d!==d.trimEnd()&&(0,o.A)(u,this.handleChange)}b==null||b(m)}),v(this,"triggerChange",(0,A.A)(m=>{const b=this.props.onChange;b&&this.mounted&&b(m)},300)),v(this,"handleRef",m=>{const{showCount:b,setEditorRef:u}=this.props,{count:d,text:I}=this.state;this.froalaRef=m,u&&u(m),d===0&&b==="char"&&this.handleChange(I)}),this.mounted=!1,this.state={text:"",count:0}}componentDidMount(){const{value:y}=this.props;this.handleChange(y),this.mounted=!0}componentDidUpdate(y,m){const{value:b}=this.props,{text:u}=this.state;m.text!==u?this.triggerChange(u):y.value!==b&&this.handleChange(b)}componentWillUnmount(){this.mounted=!1}render(){const{id:y="",placeholder:m,"aria-label":b,toolbarType:u="default",toolbarOptions:d={},disabled:I=!1,mentionTribute:E,showCount:M=!1,maxCount:S=null,focusOnInit:P,addHtmlAllowedTags:H=[],onKeyDown:L,froalaEditorConfig:O={},hideToolbar:K=!1,"aria-labelledby":T,hideButtons:D=[]}=this.props,{count:W,text:B}=this.state,k=M&&S&&W>S;return(0,e.jsxs)("div",{className:(0,l.A)({"rich-text-field":!0,"has-error":k}),children:[(0,e.jsx)(g.xt,{id:y,"aria-labelledby":T,focusOnInit:P,addHtmlAllowedTags:H,value:B,onKeyDown:L,placeholderText:m,ariaLabel:b,onChange:this.handleChange,onBlur:this.handleBlur,readOnly:I,toolbarType:u,mentionTribute:E,toolbarOptions:d,handleRef:this.handleRef,customConfig:O,hideToolbar:K,hideButtons:D}),M?(0,e.jsx)("div",{className:"rich-text-field__count",children:`${W}${S?` / ${S}`:""}`}):null]})}}const i=n},113443:(q,N,t)=>{t.d(N,{z:()=>n});var e=t(715621),s=t(537953),l=t(248883),a=t(992972),h=t.n(a),A=t(979509),C=t(994257),o=t(961530),g=t(124362),x=t(595526),p=t(90570),c=t(545549);const v=({data:i,handleOnChange:f,isBlockView:y,selectedItems:m,limit:b,selectionLimitReached:u,dismissiblePill:d,enableAlphabeticalGrouping:I=!1})=>{const E=(0,s.useMemo)(()=>
4{if(!I)return i;const S=(0,o.A)(i,"label"),P=(0,C.A)(S,({label:H})=>{var L;return(L=H.charAt(0))==null?void 0:L.toLowerCase()});return Object.entries(P).map(([H,L])=>({label:H,children:L}))},[i,I]),M=S=>(0,e.jsx)(c.w,{item:S,isBlockView:y,handleOnChange:P=>{f({item:S,isSelected:P})},limit:b,isLocked:(m==null?void 0:m.length)===b&&!m.includes(S),isSelected:(0,x.A)(m)?m==null?void 0:m.some(P=>P.id===S.id):!1,selectionLimitReached:u,dismissiblePill:d},S.id);return(0,p.A)(i)?null:I?(0,e.jsx)("div",{className:"capsule-group-alphabetical-sorting",children:E.map(S=>(0,e.jsxs)("div",{id:`capsule-group-alphabetical-sorting-group-${S.label}`,className:"capsule-group-alphabetical-sorting__group",children:[(0,e.jsx)("h2",{children:(0,A.A)(S.label)}),(0,e.jsx)("div",{className:"capsule-group-alphabetical-sorting__group__children",children:S.children.map(M)})]},S.label))}):E==null?void 0:E.map(M)},n=({data:i=[],isBlockView:f=!1,handleOnUpdate:y,limit:m=99999999,showLimitMessage:b=!1,selectedItemsFromParent:u=null,dismissiblePill:d=!1,customClassName:I="",labelledBy:E,describedBy:M,id:S,role:P="group",dontShowParentDiv:H=!1,maxCapsulesToShowOnUI:L,enableAlp
4habeticalGrouping:O=!1})=>{const[K,T]=(0,s.useState)(!1),[D,W]=(0,s.useState)([]),[B,k]=(0,s.useState)((u==null?void 0:u.length)===m);(0,s.useEffect)(()=>{(0,x.A)(u)&&W(u)},[u]);const _=({item:F,isSelected:U})=>{let V=[...D||[]];if(U)V=[F,...V];else{const Z=(0,g.A)(V,$=>$.id===F.id);V.splice(Z,1)}y(V),W(V),k((V==null?void 0:V.length)===m)};return(0,e.jsxs)(e.Fragment,{children:[b&&(0,e.jsxs)("p",{className:"max-limit-msg",children:["Select upto ",m," options"]}),H?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{data:L>0&&!K?i.slice(0,L):i,handleOnChange:_,isBlockView:f,selectedItems:D,limit:m,selectionLimitReached:B,dismissiblePill:d,enableAlphabeticalGrouping:O}),L>0&&i.length>L&&!K?(0,e.jsxs)(l.$n,{type:"link",id:"show-more-capsule-items-info-cta",onClick:()=>{T(!0)},children:["+",i.length-L," more items"]}):null,L>0&&i.length>L&&K?(0,e.jsx)(l.$n,{type:"link",id:"show-more-capsule-items-info-cta",onClick:()=>{T(!1)},children:"Show less"}):null]}):(0,e.jsxs)("div",{className:h()("pills",{"pills__block-view":f},{[I]:!!I}),role:P,"aria-label":E?void 0:"Select Applicable options","aria-labelledby":E,"aria-describedby":M,id:S,children:[(0,e.jsx)(v,{data:L>0&&!K?i.slice(0,L):i,handleOnChange:_,isBlockView:f,selectedItems:D,limit:m,selectionLimitReached:B,dismissiblePill:d,enableAlphabeticalGrouping:O}),L>0&&i.length>L&&!K?(0,e.jsxs)(l.$n,{type:"link",id:"show-more-capsule-items-info-cta",onClick:()=>{T(!0)},children:["+",i.length-L," more items"]}):null,L>0&&i.length>L&&K?(0,e.jsx)(l.$n,{type:"link",id:"show-more-capsule-items-info-cta",onClick:()=>{T(!1)},children:"Show less"}):null]})]})}},121657:(q,N,t)=>{t.d(N,{A:()=>m});var e=t(715621),s=t(537953),l=t(50391),a=t(665790),h=t(560109),A=t(371495),C=t(69943),o=t(62644),g=t(839392);const x={AutocompletePlacesWrapper:"AutocompletePlacesWrapper__yEZOj",icon:"icon__BhyWo"};var p=t(246239),c=t(158167),v=Object.defineProperty,n=(b,u,d)=>u in b?v(b,u,{enumerable:!0,configurable:!0,writable:!0,value:d}):b[u]=d,i=(b,u,d)=>n(b,typeof u!="symbol"?u+"":u,d);const f=l.A.Group;class y extends s.Component{constructor(){super(...arguments),i(this,"state",{dataSource:[],inputVal:"",lastSelectDeselectAnnouncement:""}),i(this,"getLocationNameFromProps",()=>{const{value:u}=this.props;if(u.value&&u.value.length>0)return u.value[0].name}),i(this,"setLocation",(u=[])=>{var d;const{changeOnUpdate:I=!1}=this.props;u.length>0?this.handleOptionClick((d=u[0].placePrediction)==null?void 0:d.placeId):I&&this.setState({inputVal:this.getLocationNameFromProps()})}),i(this,"autocompleteCallback",u=>{this.setState({dataSource:u})}),i(this,"getPlaceSuggestions",(u,d=this.autocompleteCallback)=>{const{changeOnUpdate:I=!1}=this.props;if(u){let E=[];this.props.type!=="matchingQuiz"&&(this.props.type!=="network"?E=c.h.PLACES_CITY_TYPES:E=c.h.PLACES_REGION_TYPES),this.debouncedGetPlaceSuggestions({input:u,includedPrimaryTypes:E},d)}else I&&this.setState({inputVal:u})}),i(this,"handleSearch",u=>{u.length>=3?(this.getPlaceSuggestions(u),this.setState({inputVal:u})):u.length<3&&this.setState({inputVal:u,dataSource:[]})}),i(this,"handleOptionClick",u=>{const{clearOnSelect:d=!0,onOptionClick:I}=this.props,E=["ChIJW-T2Wt7Gt4kRmKFUAsCO4tY"];I&&I(),new window.google.maps.Geocoder().geocode({placeId:u},(S,P)=>{if(P==="OK"){let H="all";S[0].types.indexOf("country")>-1&&(H="country"),S[0].types.indexOf("administrative_area_level_1")>-1&&!E.includes(S[0].place_id)&&(H="state"),S[0].types.indexOf("postal_code")>-1&&(H="zipcode");const L={name:S[0].formatted_address,latitude:S[0].geometry.location.lat(),longitude:S[0].geometry.location.lng(),locationType:H};H==="zipcode"&&(L[H]=S[0].address_components[0].long_name,L.country=S[0].address_components[S[0].address_components.length-1].long_name),this.setState({inputVal:d?"":S[0].formatted_address,lastSelectDeselectAnnouncement:`Selected ${S[0].formatted_address}`}),this.props.onChange(L)}})}),i(this,"announceOnRemove",u=>{this.setState({lastSelectDeselectAnnouncement:`Removed ${u}`})}),i(this,"onClose",(u,d)=>{u.preventDefault(),this.announceOnRemove(d),this.props.onChange(d)}),i(this,"handleRemoteClick",u=>{this.props.onRemoteChange(u.target.checked)}),i(this,"renderInput",()=>{const{autofocus:u,style:d={width:"99.5%",borderWidth:0},size:I="large",placeholder:E,"aria-label":M,type:S}=this.props,P=this.state.dataSource.map(L=>{var O,K,T;return{value:(O=L.placePrediction)==null?void 0:O.placeId,text:(T=(K=L.placePrediction)==null?void 0:K.text)==null?void 0:T.toString()}}),H=E||(S==="network"?"Enter a city, state, country or zip code":"Enter a city");return(0,e.jsx)(p.j9,{autoFocus:!!u,style:d,size:I,onSearch:this.handleSearch,value:this.state.inputVal,placeholder:H,onSelect:this.handleOptionClick,getPopupContainer:L=>L.parentNode,dataSource:P,"aria-label":M||H,notFoundContent:this.state.inputVal&&this.state.inputVal.trim().length<3?"Enter at least 3 characters to search":"No results found"})}),i(this,"renderField",()=>{const{addonBefore:u,addOnBeforeButtonLabel:d=""}=this.props;return u?(0,e.jsxs)(f,{compact:!0,className:"input-group autocomplete-places",children:[u&&(0,e.jsx)(a.A,{style:{cursor:"default"}
4,disabled:!0,"aria-label":d,"aria-hidden":!0,children:u}),this.renderInput()]}):this.renderInput()})}componentDidMount(){const u=c.h.getInstance();this.debouncedGetPlaceSuggestions=(0,g.A)((...d)=>u.getPlaceSuggestions(...d),250)}componentDidUpdate(u,d){const{value:I,changeOnUpdate:E=!1}=this.props;if(E&&I!==u.value){const M=this.getLocationNameFromProps();this.getPlaceSuggestions(M,this.setLocation)}}render(){const{value:u,type:d,ruleObj:I,showTags:E=!0,hideInfo:M}=this.props,{lastSelectDeselectAnnouncement:S}=this.state;return(0,e.jsxs)("div",{className:x.AutocompletePlacesWrapper,children:[!M&&(0,e.jsx)("div",{className:"location-text",children:"Searches within a 20 mile radius of location(s)"}),E&&(0,e.jsx)("div",{className:"tags-container","aria-live":"polite","aria-atomic":"true",children:u.map((P,H)=>this.props.type==="network"?(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)(h.A,{title:P.locationType!=="all"?`Searches within ${P.name}`:"Searches within a 20 mile radius of this location.",getPopupContainer:L=>L&&L.parentNode?L.parentNode:document.body,children:(0,e.jsx)(A.A,{closable:!0,onClose:L=>this.onClose(L,P),"aria-label":`Click to remove ${P.name} from selected locations`,tabIndex:"0",onKeyDown:L=>L.key==="Enter"&&this.onClose(L,P),onClick:L=>this.onClose(L,P),children:P.name})},H),u.length-1!==H&&(0,e.jsx)("span",{className:"or-text",children:"OR"})]}):(0,e.jsx)(A.A,{closable:!0,onClose:L=>this.onClose(L,P),tabIndex:"0","aria-label":`Click to remove ${P.name} from selected locations`,onKeyDown:L=>L.key==="Enter"&&this.onClose(L,P),onClick:L=>this.onClose(L,P),children:P.name},H))}),this.renderField(),d==="job"&&(0,e.jsx)(C.A,{checked:I&&I.remote,className:"location-remote-checkbox",onChange:this.handleRemoteClick,children:"Virtual / Remote"}),(0,e.jsx)(o.A,{type:"environment-o",className:x.icon}),(0,e.jsx)("div",{className:"sr-only","aria-live":"polite","aria-atomic":"true",children:S})]})}}const m=y},125518:(q,N,t)=>{t.d(N,{A:()=>y});var e=t(715621),s=t(537953),l=t(248883),a=t(972185),h=t(960998);function A({tag:m,index:b,removeValue:u}){return(0,e.jsx)(l.vu,{color:"blue",text:m.name,button:"icon",icon:"pg-close",iconPosition:"right",onClick:()=>u(b)},m.name)}const C=A,o={};function g({type:m,label:b,description:u,placeholder:d,currentValue:I,multiple:E,json:M,setValue:S}){const P=O=>{I=I||[],I.some(K=>K.name===O.name)||S(I.concat(O))},H=O=>{S(I.filter((K,T)=>T!==O))},L=O=>{S(O)};switch(m){case"text":case"link":case"number":case"paragraph":case"date":return(0,e.jsx)(l.pd,{type:m==="paragraph"?"textarea":m,label:b,helperText:u,placeholder:d,onChange:L,defaultValue:I,value:m==="date"?new Date(I):I,"aria-label":`Enter ${m}`});case"checkbox":return(0,e.jsx)("div",{children:(0,e.jsx)(l.Sc.Group,{label:b,helperText:u,children:(0,e.jsx)(l.Sc,{onChange:L,defaultChecked:!!I,value:I,children:d})})});case"list":return E?(0,e.jsx)(l.cJ,{label:b,helperText:u,value:I,onChange:L,options:M,placeholder:d,checkboxLayout:"pill"}):(0,e.jsx)(l.l6,{label:b,helperText:u,value:I,onChange:L,options:M,placeholder:d});case"location":return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h.A,{value:I,onChange:P,"aria-label":"Search Location",usePGFormField:!0,label:b,helperText:u}),(0,e.jsx)("div",{className:"matching-quiz-location-tags",children:(0,a.A)(I,(O,K)=>(0,e.jsx)(C,{tag:O,index:K,removeValue:H},O.name))})]});default:return null}}const x=g;var p=t(174811),c=t(672316),v=t(89669);function n({id:m,currentValue:b,setValue:u,label:d,helperText:I}){const E=(0,s.useCallback)(M=>{u(M)},[u]);switch(m){case"standardIndustries":return(0,e.jsx)(c.A,{selectedIndustries:b,handleOnChange:E,label:d,helperText:I});case"standardHelpTopics":return(0,e.jsx)(p.A,{selectedHelpTopics:b,handleOnChange:E,label:d,helperText:I});case"standardJobFunctions":return(0,e.jsx)(v.A,{selectedJobFunctions:b,handleOnChange:E,label:d,helperText:I});default:return null}}const i=n;class f extends s.Component{render(){const{id:b,label:u,description:d,type:I,currentValue:E,json:M=[],multiple:S=!1,placeholder:P,onLocationOptionClick:H,isDefault:L,setValue:O}=this.props;return L?(0,e.jsx)(i,{id:b,currentValue:E,setValue:O,label:u,helperText:d}):(0,e.jsx)(x,{type:I,label:u,description:d,placeholder:P,currentValue:E,multiple:S,json:M,setValue:O})}}const y=f},131028:(q,N,t)=>{t.d(N,{A:()=>a});var e=t(226898);const s={alertHistory:[],alertIsSaving:!1,alertVisible:!1,alertType:"fromFilter",alertHistoryIsLoading:!1,alertApiFailed:!1},a=(h=s,A)=>{const{type:C,data:o}=A;switch(C){case e.mtm:return{...h,alertIsSaving:o.loading,alertApiFailed:o.failed};case e.pso:return{...h,alertHistory:o};case e.BkQ:return{...h,alertHistoryIsLoading:o};case e.D_2:return{...h,alertVisible:o};case e.$K0:return{...h,alertType:o};case e.W_y:return{...h,alertHistory:[]};default:return h}}},133798:(q,N,t)=>{t.d(N,{A:()=>p});var e=t(715621),s=t(537953),l=t(766652),a=t(665790),h=t(246239),A=t(102736),C=t.n(A);const o={"delete-confirm__modal":"delete-confirm__modal__kFqz7",noTitle:"noTitle__Lidk6",cancel__btn:"cancel__btn__mL04H",content:"content__Op7QT"},{Meta:g}=l.A;class x extends s.PureComponent{render(){const{title:v,metaTitle:n,metaDescription:i,confirmText:f,cancelText:y,showModal:m,confirmAction:b,cancelAction:u,content:d,c
4onfirmButtonLoading:I,closable:E=!0,confirmProps:M={},className:S}=this.props;return(0,e.jsxs)(h.aF,{title:v,visible:m,onOk:b,onCancel:u,closable:E,footer:[(0,e.jsx)(a.A,{className:o.cancel__btn,onClick:u,children:y||"Cancel"},"back"),(0,e.jsx)(a.A,{className:"ant-btn",type:"primary",onClick:b,loading:I,...M,children:f||"Confirm"},"submit")],className:`${o["delete-confirm__modal"]} ${v?"":o.noTitle} ${S||""}`,children:[n?(0,e.jsx)(g,{title:n,description:i||null}):null,d&&(0,e.jsx)("div",{className:o.content,children:d})]})}}x.propTypes={title:C().oneOfType([C().string,C().node]).isRequired,metaTitle:C().node,metaDescription:C().node,confirmText:C().string,cancelText:C().string,showModal:C().bool,confirmAction:C().func,cancelAction:C().func,confirmButtonLoading:C().bool};const p=x},134555:(q,N,t)=>{t.d(N,{y:()=>n});var e=t(61886),s=t(939291),l=t(967489),a=t(226898),h=t(425170),A=t(527510),C=t(727363),o=t(184461);function*g({origin:i,keywordName:f}){try{yield(0,e.yJ)((0,a.xrH)({pgAnalytics:"keyword_alert_added",pgAnalyticsCategory:"Keyword Alert",pgAnalyticsKeyword_Name:f,pgAnalyticsOrigin:i}))}catch(y){console.error("Error in trackNotificationAlert: ",y)}}function*x(i){var f;const{obj:y}=i,m=yield(0,e.Lt)(a.JDV);try{yield(0,e.yJ)({type:"SET_ALERT_IS_SAVING",data:{loading:!0,failed:!1}});const{filters:b}=y;if(((f=b==null?void 0:b.rules)==null?void 0:f.length)>0||y.type==="keyword"){const u=yield(0,e.T1)(l.Xz3,y),d=m.concat(u.data);yield(0,e.yJ)({type:"SET_ALERT_VISIBLE",data:!1}),yield(0,e.yJ)({type:"SET_ALERT_HISTORY",data:d}),yield(0,e.yJ)({type:"SET_ALERT_IS_SAVING",data:{loading:!1,failed:!1}}),(0,s.A)(y,"type")==="jobPostV2"&&A.A.invalidateQueries([C.A.homePageBanner]),(0,o.sk)(),(0,h.mei)("New Alert Created","success"),y.type==="keyword"&&(yield(0,e.T1)(g,{origin:y.origin,keywordName:y.name}))}else(0,h.mei)("Please Select Valid Filters","error"),yield(0,e.yJ)({type:"SET_ALERT_IS_SAVING",data:{loading:!1,failed:!0}})}catch(b){(0,h.UGb)(b,!1,"Error Saving Alert"),yield(0,e.yJ)({type:"SET_ALERT_IS_SAVING",data:{loading:!1,failed:!0}})}}function*p(i){const{data:{type:f,matchIndex:y}}=i;try{yield(0,e.yJ)({type:"SET_ALERT_HISTORY_IS_LOADING",data:!0});const m=yield(0,e.T1)(l.KCe,{type:f,matchIndex:y});yield(0,e.yJ)({type:"SET_ALERT_HISTORY",data:m.data}),yield(0,e.yJ)({type:"SET_ALERT_HISTORY_IS_LOADING",data:!1})}catch(m){(0,h.mei)("Error Fetching Alert","error")}}function*c(i){const{id:f}=i,y=yield(0,e.Lt)(a.JDV);try{yield(0,e.yJ)({type:"SET_ALERT_HISTORY_IS_LOADING",data:!0});const m=yield(0,e.T1)(l.I5u,f),b=y.filter(u=>u.id!==f);yield(0,e.yJ)({type:"SET_ALERT_HISTORY",data:b}),yield(0,e.yJ)({type:"SET_ALERT_HISTORY_IS_LOADING",data:!1}),(0,h.mei)("Alert Deleted","success")}catch(m){(0,h.mei)("Error Deleting Alert","error"),yield(0,e.yJ)({type:"SET_ALERT_HISTORY_IS_LOADING",data:!1})}}function*v(i){const{obj:f}=i,y=yield(0,e.Lt)(a.JDV);try{yield(0,e.yJ)({type:"SET_ALERT_IS_SAVING",data:{loading:!0,failed:!1}});const m=yield(0,e.T1)(l.wWq,f),b=y.filter(u=>u.id!==f.id);b.unshift(m.data),yield(0,e.yJ)({type:"SET_ALERT_HISTORY",data:b}),yield(0,e.yJ)({type:"SET_ALERT_IS_SAVING",data:{loading:!1,failed:!1}}),(0,h.mei)("Alert Updated","success")}catch(m){(0,h.UGb)(m,!1,"Error Updating Alert"),yield(0,e.yJ)({type:"SET_ALERT_IS_SAVING",data:{loading:!1,failed:!0}})}}const n=[(0,e.jP)("HANDLE_SAVE_ALERT",x),(0,e.jP)("HANDLE_NOTIFICATION_ALERT_HISTORY",p),(0,e.jP)("HANDLE_DELETE_ALERT",c),(0,e.jP)("HANDLE_UPDATE_ALERT",v)]},140919:(q,N,t)=>{t.d(N,{A:()=>i});var e=t(715621),s=t(537953),l=t(877699),a=t(631354),h=t.n(a),A=t(768835),C=t(744899),o=t(551471),g=t.n(o),x=t(243130),p=t.n(x),c=t(463454);const v={},n=({src:f,autoplay:y=!1,hideBoxShadow:m=!1,showTranscript:b=!1,transcriptURL:u=null,audioLastUpdatedAt:d=null,isPersonalView:I},E)=>{const M=(0,s.useRef)(),S=(0,s.useRef)(),[P,H]=(0,s.useState)(!1),[L,O]=(0,s.useState)({}
4),[K,T]=(0,s.useState)(""),[D]=(0,s.useState)(p()()),W={LOADING:"Loading transcript...",NOT_AVAILABLE:"No transcript available!"},B=async()=>{let F={isAvailable:!1};try{const{data:U}=await h().get(u);F={isAvailable:!0,data:U}}catch(U){U.status==404&&(F={isAvailable:!1,data:"Transcript not found"}),console.error("Error in fetching the transcript --- ",U)}return F},k=F=>{var U,V;let Z="";(0,C.A)(F,"results")?Z=(V=(U=F.results)==null?void 0:U.map($=>$.alternatives[0].transcript))==null?void 0:V.join(`
5`):Z=`A transcript ${I?"can't be processed":"is unavailable"} due to a lack of or incomprehensible audio.${I?" Please try recording again.":""}`,T(Z)},_=async()=>{const{isAvailable:F,data:U}=await B();if(F)return k(U);const V=g()().subtract(10,"minutes");if(g()(d).isAfter(V)){const Z=setInterval(async()=>{const{isAvailable:G,data:ie}=await B();G&&(k(ie),clearInterval(Z),clearTimeout($))},3e3),$=setTimeout(()=>{Z&&(K===""&&T(W.NOT_AVAILABLE),clearInterval(Z))},6e4)}else T(W.NOT_AVAILABLE)};return(0,s.useEffect)(async()=>{T(""),u&&await _()},[u,d]),(0,s.useEffect)(()=>{var F;O({height:P?"100%":"40px"}),P&&((F=S.current)==null||F.focus())},[P]),(0,e.jsxs)("div",{className:"pg-audio-player-wrapper",children:[(0,e.jsx)("div",{className:"pg-audio-player",children:(0,e.jsx)(l.A,{className:(0,A.A)(m&&"hide-box-shadow"),ref:M,src:f,autoPlay:y,layout:"horizontal-reverse",showJumpControls:!1,customAdditionalControls:[],customVolumeControls:[],customProgressBarSection:[l.n.PROGRESS_BAR,l.n.CURRENT_LEFT_TIME],autoPlayAfterSrcChange:!1,onPlay:()=>{var F,U;(F=E==null?void 0:E.current)!=null&&F.onAudioPlay&&((U=E==null?void 0:E.current)==null||U.onAudioPlay())}})}),b&&(0,e.jsxs)("div",{className:"pg-audio-transcript",style:L,children:[(0,e.jsx)("div",{ref:S,className:(0,A.A)("pg-audio-transcript-content",{hidden:!P}),id:`${D}_transcript_content`,tabIndex:"0",children:P&&(K||W.LOADING)}),(0,e.jsxs)("button",{onClick:()=>{var F,U;(F=E==null?void 0:E.current)!=null&&F.onTranscriptClick&&((U=E==null?void 0:E.current)==null||U.onTranscriptClick(P)),H(V=>!V)},className:"pg-audio-transcript-toggle","aria-expanded":P,"aria-controls":`${D}_transcript_content`,children:[(0,e.jsx)(c.A,{className:(0,A.A)("downArrowIcon",{rotate:P}),"aria-hidden":!0}),P?"Close":"Read"," Transcript"]})]})]})},i=s.memo(s.forwardRef(n))},144600:(q,N,t)=>{t.d(N,{VG:()=>a,xG:()=>h,cO:()=>o,AW:()=>C});var e=t(686993),s=t(30249);const l=(0,e.eU)([]);l.debugLabel="moreFiltersAtom";const a=()=>(0,s.fp)(l),h=()=>(0,s.Xr)(l),A=(0,e.eU)({}),C=()=>(0,s.fp)(A),o=()=>(0,s.Xr)(A)},146364:(q,N,t)=>{t.d(N,{A:()=>c});var e=t(715621),s=t(537953),l=t(177859),a=t(939291),h=t(415155);const A={};var C=Object.defineProperty,o=(v,n,i)=>n in v?C(v,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):v[n]=i,g=(v,n,i)=>o(v,typeof n!="symbol"?n+"":n,i);class x extends s.PureComponent{render(){const{overlay:n,wrappedComponentRef:i,...f}=this.props;return(0,e.jsx)("div",{ref:i,children:(0,e.jsx)(n,{...f})})}}class p extends s.PureComponent{constructor(){super(...arguments),g(this,"state",{isMenuVisible:!1,currentIndex:0}),g(this,"menuRef",null),g(this,"buttonRef",null),g(this,"setMenuRef",n=>{this.menuRef=n,n&&this.setMenuItems()}),g(this,"setButtonRef",n=>{this.buttonRef=n}),g(this,"captureMenuVisibility",async n=>{const{onVisibleChange:i}=this.props;i&&i(n),await this.setState({isMenuVisible:n}),n&&(this.setMenuItems(),this.setMenuItemFocus()),(0,a.A)(this.buttonRef,"children.0")&&this.buttonRef.children[0].setAttribute("aria-expanded",this.state.isMenuVisible)}),g(this,"setMenuItemFocus",async n=>{const i=this.getMenuItems(),f=i[this.state.currentIndex];if(!f)return;f.blur(),await f.classList.remove("ant-dropdown-menu-item-active");let y=0;if(n==="next")this.state.currentIndex===i.length-1?(y=0,await this.setState({currentIndex:0})):(y=this.state.currentIndex+1,await this.setState({currentIndex:this.state.currentIndex+1}));else if(n=="prev")this.state.currentIndex===0?(y=i.length-1,await this.setState({currentIndex:i.length-1})):(y=this.state.currentIndex-1,await this.setState({currentIndex:this.state.currentIndex-1}));else if(n==="first")y=0,await this.setState({currentIndex:0});else if(n==="last")y=i.length-1,await this.setState({currentIndex:i.length-1});else if(n){const b=i.findIndex(u=>u.textContent.startsWith(n));b>-1&&(y=b,await this.setState({currentIndex:b}))}else y=0,await this.setState({currentIndex:0});const m=i[y];if(getComputedStyle(m).display==="none"){let b=n;if(n==="first"&&(b="next"),n==="last"&&(b="prev"),["prev","next"].includes(b))return this.setMenuItemFocus(b)}setTimeout(()=>{const b=this.getMenuItems(),u=b[this.state.currentIndex];b.forEach(d=>d.classList.remove("ant-dropdown-menu-item-active")),u.classList.add("ant-dropdown-menu-item-active"),u.focus()},0)}),g(this,"getMenuItems",()=>Array.from(this.menuRef.getElementsByTagName("li")).filter(f=>window.getComputedStyle(f).display!=="none")),g(this,"setMenuItems",async()=>
5{this.getMenuItems().forEach(i=>{i.setAttribute("tabIndex","0"),i.addEventListener("keydown",this.handleKeyPress)}),this.setState({currentIndex:0})}),g(this,"removeMenuItems",async()=>{this.getMenuItems().forEach(i=>{i.removeEventListener("keydown",this.handleKeyPress)}),this.setState({isMenuVisible:!1,currentIndex:0})}),g(this,"handleKeyPress",n=>{const i=this.getMenuItems();if(this.state.isMenuVisible&&i&&i.length>0)switch(n.preventDefault(),n.key){case"Escape":case"Tab":this.closeMenu();break;case"ArrowUp":this.setMenuItemFocus("prev");break;case"ArrowDown":this.setMenuItemFocus("next");break;case"Home":this.setMenuItemFocus("first");break;case"End":this.setMenuItemFocus("last");break;case"Enter":n.target.firstChild?n.target.firstChild.click():n.target.click(),n.stopPropagation(),this.closeMenu(n);break;default:this.setMenuItemFocus(String.fromCharCode(n.keyCode));break}}),g(this,"closeMenu",async()=>{this.captureMenuVisibility(!1),this.removeMenuItems(),setTimeout(()=>{(0,a.A)(this.buttonRef,"children.0")&&(this.buttonRef.children[0].focus(),this.buttonRef.children[0].setAttribute("aria-expanded",!1))},300)}),g(this,"getMenuVisibilityClasses",()=>{const{className:n}=this.props,{isMenuVisible:i}=this.state;return n?n.split(" ").map(m=>`${m}--${i?"open":"closed"}`).join(" "):""})}componentDidUpdate(n){(0,h.A)(this.props.visible)&&n.visible!==this.props.visible&&this.setState({isMenuVisible:this.props.visible})}render(){const{children:n,overlay:i,className:f,...y}=this.props,{isMenuVisible:m}=this.state,{setMenuRef:b,setButtonRef:u,getMenuVisibilityClasses:d,captureMenuVisibility:I}=this;return(0,e.jsx)(l.A,{...y,overlay:(0,e.jsx)(x,{overlay:i,wrappedComponentRef:b,onClick:this.closeMenu}),onVisibleChange:I,visible:m,getPopupContainer:E=>E&&E.parentNode?E.parentNode:document.body,children:(0,e.jsx)("div",{className:`${f} ${d()}`,ref:u,children:n})})}}const c=p},165e3:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(715621),s=t(537953),l=t(560109),a=t(768835),h=t(51479);const A={},C=({className:g="",bookmarkClassName:x="",bookmarkClick:p,bookmarkName:c="",label:v="",preAriaLabel:n="",isBookmarked:i,tooltipPlacement:f="bottom",tabIndex:y=0,showNoTooltip:m=!1,overlayClassName:b="",popupContainerSelector:u="#main",...d})=>{const I=i?"Remove bookmark from":"Bookmark",E=`${c}'s profile`,M=v.length?v:`${I} ${E}`;return(0,e.jsx)("div",{className:(0,a.A)(g,{"pg-bookmark-icon-v2":d==null?void 0:d.isV2,bookmarked:i}),tabIndex:p?y:void 0,role:p?"button":"presentation",onClick:p,onKeyPress:S=>{S.preventDefault(),S.stopPropagation(),(S.code==="Enter"||S.keyCode===13)&&p&&p(S)},"aria-label":p?v||`${n?`${n} `:""}${I} ${E}`:void 0,style:{cursor:"pointer"},children:(0,e.jsx)("div",{"aria-hidden":"true",children:m?(0,e.jsx)(h.A,{isBookmarked:i,...d,className:x}):(0,e.jsx)(l.A,{placement:f,title:M,overlayClassName:b,getPopupContainer:S=>{const P=document.querySelector(u);return P||(S&&S.parentNode?S.parentNode:document.body)},overlayStyle:{minWidth:"100px"},children:(0,e.jsx)("div",{children:(0,e.jsx)(h.A,{isBookmarked:i,...d,className:x})})})})})},o=s.memo(C)},177587:(q,N,t)=>{t.d(N,{A:()=>y});var e=t(715621),s=t(537953),l=t(619224),a=t.n(l),h=t(768835),A=t(532153),C=t(90570),o=t(778402);const g={},x=m=>{const b=m.getElementsByTagName("img")||[];for(const[u,d]of Array.from(b).entries()){const I=d.getAttribute("alt");(!I||I==="")&&d.setAttribute("alt",`Asset ${u}`)}},p=m=>{const b=m.getElementsByTagName("iframe")||[];for(const[u,d]of Array.from(b).entries()){const I=d.getAttribute("title");(!I||I==="")&&d.setAttribute("title",`Video ${u}`)}},c=(m,b)=>{const u=d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),m.click())};m.addEventListener("keydown",u),b.set(m,u)},v=(m,b)=>{m.hasAttribute("tabindex")||m.setAttribute("tabindex","0"),m.getAttribute("target")==="#createTicket"&&!m.hasAttribute("aria-label")&&(m.setAttribute("aria-label","Create ticket"),m.setAttribute("role","link")),m.hasAttribute("data-keyboard-handlers-added")||(m.setAttribute("data-keyboard-handlers-added","true"),c(m,b))},n=(m,b)=>{if(!(m!=null&&m.current))return;const u=m.current;x(u),p(u);const d=u.getElementsByTagName("a")||[];for(const I of Array.from(d))v(I,b)},i=m=>{m&&(m.forEach((b,u)=>{u!=null&&u.removeEventListener&&(u.removeEventListener("keydown",b),u.removeAttribute("data-keyboard-handlers-added"))}),m.clear())},y=({text:m,children:b,className:u,skipAccessibleCheck:d=!1,removeQuillClass:I=!1,extraTags:E=[],attrsForExtraTags:M=[],enableAccessibility:S=!1,...P})=>{const H=(0,s.useRef)(null),L=(0,s.useRef)(new Map);if((0,s.useEffect)(()=>{const T=L.current;return m&&!d&&S&&(i(T),n(H,T)),()=>{i(T)}},[m,d,S]),!m&&!b)return null;const O={className:(0,h.A)("rich-text",!I&&"ql-editor",u),ref:H,...(0,A.A)(P,["aria-label","aria-labelledby","aria-describedby"])};if(b)return(0,e.jsx)("div",{...O,children:b});let K={};return(0,C.A)(E)||(K={ADD_TAGS:E}),(0,C.A)(M)||(K={...K,ADD_ATTR:M}),(0,e.jsx)("div",{...O,children:(0,e.jsx)(a(),{model:(0,o.a)((String(m)||"").replace(/\n/g,"<br />"),K)})})}},179665:(q,N,t)=>{t.d(N,{$:()=>f,A:()=>m});var e=t(715621),s=t(537953),l=t(248883),a=t(768835),h=t(926952),A=t(551471),C=t.n(A),o=t(246239);const g={};var x=Object.defineProperty,p=(b,u,d)=>u in b?x(b,u,{enumerable:!0,configurable:!0,writable:!0,value:d}):b[u]=d,c=(b,u,d)=>p(b,typeof u!="symbol"?u+"":u,d);const v=C().tz.names(),n=["CET","CST6CDT","EET","EST","EST5EDT","Etc
5/GMT","Etc/GMT+1","Etc/GMT+10","Etc/GMT+11","Etc/GMT+12","Etc/GMT+2","Etc/GMT+3","Etc/GMT+4","Etc/GMT+5","Etc/GMT+6","Etc/GMT+7","Etc/GMT+8","Etc/GMT+9","Etc/GMT-1","Etc/GMT-10","Etc/GMT-11","Etc/GMT-12","Etc/GMT-13","Etc/GMT-14","Etc/GMT-2","Etc/GMT-3","Etc/GMT-4","Etc/GMT-5","Etc/GMT-6","Etc/GMT-7","Etc/GMT-8","Etc/GMT-9","Etc/UTC","Factory","HST","MET","MST","MST7MDT","PST8PDT","WET"],i=b=>{const u=(0,h.A)(v,n);return n.includes(b)&&u.push(b),u},f=({placeholder:b="Select Timezone",className:u="",value:d,onChange:I=S=>{},showClear:E=!0,...M})=>{const S=s.useMemo(()=>i(d).map(O=>{const K=C().tz(O).format("Z");return{label:`${O} (GMT${K})`,value:O}}),[]),[P,H]=s.useState(d);s.useEffect(()=>{d!==P&&H(d)},[P,d]);const L=O=>{H(O),I(O)};return(0,e.jsx)(l.jT,{value:P,placeholder:b,className:(0,a.A)("timezone-select",u),...M,options:S,onChange:L,showClear:E})};class y extends s.Component{constructor(){super(...arguments),c(this,"state",{options:[]}),c(this,"handleChange",u=>{const{onChange:d}=this.props;this.setState({value:u}),d&&d(u)}),c(this,"handleFilterOption",(u,d)=>d.props.children.join(":").toLowerCase().indexOf(u.toLowerCase())>=0)}componentDidMount(){const{value:u}=this.props,d=i(u).map(I=>({name:`${I}`,value:I}));this.setState({options:d})}componentDidUpdate(u){const{value:d}=this.props;d!==u.value&&this.setState({value:d})}render(){const{options:u,value:d}=this.state,{placeholder:I="Select Timezone",className:E,...M}=this.props;return(0,e.jsx)(o.l6,{showSearch:!0,value:d,defaultActiveFirstOption:!1,placeholder:I,...M,filterOption:this.handleFilterOption,onChange:this.handleChange,className:`timezone-select ${E}`,options:u})}}const m=y},185846:(q,N,t)=>{t.d(N,{A:()=>p});var e=t(715621),s=t(537953),l=t(939291),a=t(839392),h=t(329182);const A={};var C=Object.defineProperty,o=(c,v,n)=>v in c?C(c,v,{enumerable:!0,configurable:!0,writable:!0,value:n}):c[v]=n,g=(c,v,n)=>o(c,typeof v!="symbol"?v+"":v,n);class x extends s.Component{constructor(v){super(v),g(this,"player",null),g(this,"videoNode",null),g(this,"currentVideoPlayedOnce",!1),g(this,"dataSetup",'{"fluid": true}'),g(this,"loadVideoJsPlayer",async()=>{var n;try{const{default:i}=await Promise.all([t.e(1748),t.e(7225)]).then(t.bind(t,191748));if(!i){console.error("failed to load videojs");return}if(!this.mounted||!this.videoNode)return;const f=(0,l.A)(this.props,"videoJsOptions.tracks",[]);(n=i==null?void 0:i.Vhs)!=null&&n.xhr&&(i.Vhs.xhr.beforeRequest=function(m){return m.headers={...m.headers},m}),this.player=i(this.videoNode,{...this.props.videoJsOptions,preload:"none",textTracks:void 0,html5:{vhs:{overrideNative:!0},nativeTextTracks:!1}},function(){var b=this.el();b.removeAttribute("role"),b.removeAttribute("aria-label")}),this.addTextTracks(f);const y=this.props.onError||(m=>{console.error(m)});this.player.on("error",y),this.player.on("play",this.onVideoPlay),this.player.on("pause",this.onVideoPause),this.player.on("ended",this.onVideoEnd),this.player.on("touchstart",this.onMobileTouch),this.props.handleRef&&typeof this.props.handleRef=="function"&&this.props.handleRef(this.player),this.props&&this.props.currentTimeGetter&&this.props.currentTimeGetter(this.getCurrentTime)}catch(i){console.error(i)}}),g(this,"pauseVideoOnStart",()=>{if(this.props&&this.props.pauseOnStart)try{this.player&&this.player.pause()}catch(n){console.error(n)}}),g(this,"addTextTracks",(n=[])=>{const i=this.player.remoteTextTracks();if(i&&i.length)for(let f=0;f<i.length;f++)this.player.removeRemoteTextTrack(i[f]);n.forEach(f=>{f&&f.src&&this.player.addRemoteTextTrack(f,!1)})}),g(this,"onVideoStart",()=>{this.currentVideoPlayedOnce=!0,this.props&&this.props.onVideoStart&&this.props.onVideoStart(),this.props.showReplayOnVideoEnd&&this.hideReplay()}),g(this,"onVideoPlay",(0,a.A)(()=>{this.pauseVideoOnStart(),this.currentVideoPlayedOnce||this.onVideoStart(),this.props&&this.props.onVideoPlay&&this.props.onVideoPlay(),this.props.showReplayOnVideoEnd&&this.hideReplay()},100)),g(this,"onVideoPause",(0,a.A)(()=>{this.props&&this.props.onVideoPause&&this.props.onVideoPause(),this.props.showReplayOnVideoEnd&&this.hideReplay()},100)),g(this,"onVideoEnd",(0,a.A)(()=>{const{showReplayOnVideoEnd:n}=this.props;this.props&&this.props.onVideoEnd&&this.props.onVideoEnd(),this.currentVideoPlayedOnce=!1,n&&this.showReplay()},100)),g(this,"onMobileTouch",n=>{n.target.nodeName==="VIDEO"&&(this.player.paused()?this.player.play():this.player.pause())}),g(this,"hideReplay",()=>{const n=this.player.bigPlayButton.el_;this.player.textTrackDisplay.el_.classList.remove("overlay-effect"),n.classList.remove("show-replay"),n.classList.add("hide-replay")}),g(this,"showReplay",()=>{const n=this.player.bigPlayButton.el_;this.player.textTrackDisplay.el_.classList.add("overlay-effect"),n.classList.add("show-replay"),n.classList.remove("hide-replay")}),g(this,"getCurrentTime",()=>{var n;return((n=this.player)==null?void 0:n.currentTime())||0}),this.dataSetup=JSON.stringify({fluid:this.props.isFluid}),this.mounted=!0}async componentDidMount(){var v;this.videoNode&&!((v=this.props)!=null&&v.isVideoSourceLoading)&&await this.loadVideoJsPlayer()}async componentDidUpdate(v,n){var i,f;!this.player&&this.videoNode&&!((i=this.props)!=null&&i.isVideoSourceLoading)&&await this.loadVideoJsPlayer();const y=(0,l.A)(v,"videoJsOptions.thumbnail",null),m=(0,l.A)(this.props,"videoJsOptions.thumbnail",null);y!==m&&((f=this.player)==null||f.poster(m));const b=(0,l.A)(v,"videoJsOptions.sources[0].src",null),u=(0,l.A)(this.props,"videoJsOptions.sources[0].src",null),d=(0,l.A)(this.props,"videoJsOptions.sources[0].type",null);u!==b&&this.player&&u&&(this.currentVideoPlayedOnce=!1,this.player&&(this.player.src({src:u,type:d}),this.addTextTracks((0,l.A)(this.props,"videoJsOptions.tracks",[]))))}componentWillUnmount(){this.mounted=!1,this.player&&this.player.dis
5pose()}render(){var v,n,i,f,y;const{videoClassName:m}=this.props;return(0,e.jsx)("div",{"data-vjs-player":!0,className:"video-js video-js-player",children:(0,l.A)(this.props,"videoJsOptions.sources[0].src",null)?(0,e.jsx)("video",{ref:b=>this.videoNode=b,className:`video-js ${m}`,"data-setup":this.dataSetup,preload:"none",poster:(v=this.props.videoJsOptions)==null?void 0:v.thumbnail,playsInline:!0}):(0,e.jsx)("div",{className:`video-js ${m}`,children:(n=this.props.videoJsOptions)!=null&&n.thumbnail?(0,e.jsx)("div",{className:"thumbnail-only",style:{background:`url('${(i=this.props.videoJsOptions)==null?void 0:i.thumbnail}') no-repeat`,backgroundSize:"cover",...(y=(f=this.props.videoJsOptions)==null?void 0:f.thumbnailStyles)!=null?y:{}}}):(0,e.jsx)("div",{className:"no-thumbnail"})})})}}const p=x},186824:(q,N,t)=>{t.d(N,{A:()=>x});var e=t(715621);const s={};var l=t(537953),a=t(883991),h=t(246239),A=Object.defineProperty,C=(p,c,v)=>c in p?A(p,c,{enumerable:!0,configurable:!0,writable:!0,value:v}):p[c]=v,o=(p,c,v)=>C(p,typeof c!="symbol"?c+"":c,v);class g extends l.PureComponent{constructor(){super(...arguments),o(this,"state",{iframeHeight:"auto",isIframeLoading:!0}),o(this,"handleSetIframeRef",c=>{this.iframeRef=c}),o(this,"handleIframeLoaded",()=>{setTimeout(()=>{const{onIFrameLoad:c}=this.props;this.setState({isIframeLoading:!1}),c&&c()},1e3)}),o(this,"handlePostMessage",(c,v)=>{const n={source:"PG_REACT_CLIENT",type:v,payload:c,identifier:this.props.identifier,group:this.props.group};console.log("messageData***************",n),this.iframeRef.contentWindow.postMessage(n,"*")}),o(this,"handleReceiveMessage",c=>{const v=window.location.hostname===c.origin.match(/:\/\/([0-9]?\.)?(.[^/:]+)/i)[2],n=c.data.source==="PG_ANGULAR_CLIENT";if(v&&n)switch(c.data.type){case"NOTIFY_PARENT_CHILD_READY":this.handlePostMessage(this.props.value,"SET_CHILD_INITIAL_VALUE"),this.handleIframeLoaded();break;case"SET_PARENT_VALUE":(0,a.A)(c.data.payload,this.props.value)||this.props.onChange(c.data.payload);break;case"SET_PARENT_IFRAME_HEIGHT":this.setState({iframeHeight:c.data.payload});break;case"FILTER_USER_CALLBACK":this.props.identifier===c.data.eventIdentifier&&this.props.onChange(c.data);break;case"NOTIFY_PARENT_CHILD_ERROR":this.props.onChange(c.data.payload);default:break}}),o(this,"iframeRef",null)}componentDidMount(){window.addEventListener("message",this.handleReceiveMessage),this.setState({iframeHeight:this.props.defaultHeight||"auto"})}componentDidUpdate(c,v){const n={source:"PG_REACT_CLIENT",type:"TOGGLE_ELEMENT",loading:this.props.loading};c.loading!==this.props.loading&&this.iframeRef.contentWindow.postMessage(n,"*")}componentWillUnmount(){window.removeEventListener("message",this.handleReceiveMessage)}render(){const{props:{iframeURL:c},state:{iframeHeight:v,isIframeLoading:n},handleSetIframeRef:i}=this;return(0,e.jsxs)(l.Fragment,{children:[n&&(0,e.jsx)(h.z2,{}),(0,e.jsx)("div",{className:"iframe-input",style:{height:v,visibility:n?"hidden":"visible"},children:(0,e.jsx)("iframe",{ref:i,src:c,scrolling:"no"})})]})}}g.defaultProps={value:{},onChange:()=>console.log("onChange")};const x=g},205792:()=>{var q={}},207688:(q,N,t)=>{t.d(N,{A:()=>p});var e=t(715621);const s={};var l=t(537953),a=t(205369),h=t(251981),A=Object.defineProperty,C=(c,v,n)=>v in c?A(c,v,{enumerable:!0,configurable:!0,writable:!0,value:n}):c[v]=n,o=(c,v,n)=>C(c,typeof v!="symbol"?v+"":v,n);const{Option:g}=a.A;class x extends l.PureComponent{constructor(){super(...arguments),o(this,"handleFilterOption",(v,n)=>n.props.children.toLowerCase().indexOf(v.toLowerCase())>=0),o(this,"handleFetch",v=>{console.log("handleFetch: ",v);const{rowValueKey:n,fetchAction:i}=this.props;i(v,n)})}render(){const{handleFetch:v,handleFilterOption:n}=this,{rowLabelKey:i,rowValueKey:f,options:y,isFetching:m,antConfig:b}=this.props;return(0,e.jsx)(a.A,{labelInValue:!0,showSearch:!0,filterOption:n,onSearch:v,notFoundContent:m?(0,e.jsx)(h.A,{size:"small"}):null,...b,children:y.map((u,d)=>(0,e.jsx)(g,{value:u[f],children:u[i]},d))})}}x.defaultProps={antConfig:{},options:[],rowLabelKey:"label",rowValueKey:"value",isFetching:!1};const p=x},210187:(q,N,t)=>{t.d(N,{Dx:()=>M,Hm:()=>I,N7:()=>b,Tm:()=>E,Wj:()=>d,XJ:()=>S,jS:()=>y,je:()=>u});var e=t(715621),s=t(537953),l=t(736608),a=t(164620),h=t(939291),A=t(849084),C=t(932792),o=t(750586),g=t(325294),x=t(972185),p=t(938055),c=t(114683),v=t(442967),n=t(248883);const i=navigator.userAgent.includes("Firefox"),f=(L,O)=>{if(!L.firstChild||!O)return;(0,c.A)((0,x.A)(L.firstChild.attributes,"name"),"class").forEach(T=>{O.setAttribute(T,L.firstChild.getAttribute(T)),L.firstChild.removeAttribute(T)})},y=(L,O)=>{const K=document.getElementById(L);if(K||m(L)&&y(L,O),!K||!K.firstChild||!O)return;const T=K.getElementsByClassName("ant-select-dropdown-menu-item-active")[0];if(!T){O.setAttribute("aria-activedescendant","");return}O.setAttribute("aria-activedescendant",T.getAttribute("id"))},m=L=>{const O=document.getElementsByClassName(L)[0];if(!O)return!1;const K=O.getElementsByTagName("ul")[0]||O;return K?(K.setAttribute("id",L),K.setAttribute("aria-labelledby",L.replace("-popup","")),!0):!1},b=(L,O)=>{if(!(L&&O))return;const K=document.getElementById(L);K&&K.setAttribute("aria-required",O)},u=(L,O,K,{value:T="",options:D=[],inputHidden:W=!1}={})=>
5{if(!O||!L)return;const B=(0,A.A)(O)&&((0,h.A)(O,"props.children.0")||(0,h.A)(O,"props.field.header"))?O.props.children?O.props.children[0]:O.props.field.header?O.props.field.header:"":(0,o.A)(O)?O:"",k=document.getElementById(K),_=W&&(0,l.A)(D,F=>F.value===T);_&&(_.name||_.value)?(L.setAttribute("aria-label",`${B}, ${_.name||_.value} Selected`),k&&k.setAttribute("aria-label",`${B}, ${_.name||_.value} Selected`)):(L.setAttribute("aria-label",B),k&&k.setAttribute("aria-label",B))},d=(L,O,K,{hasInput:T=!0,inputHidden:D=!1,otherProps:W={}}={})=>{const B=W["aria-required"]||!1,k=W["aria-describedby"]||"",_=W["aria-label"],F=W["aria-owns"],U=W.role||"listbox";if(f(L,O),O.removeAttribute("aria-expanded"),O.setAttribute("id",K),k&&O.setAttribute("aria-describedby",k),T){window.safari||O.removeAttribute("role"),O.setAttribute("aria-required",B),O.setAttribute("aria-haspopup","listbox");const Z=L.getElementsByClassName("ant-select-selection__placeholder")[0];if(Z&&Z.setAttribute("aria-hidden",!0),D){const $=L.firstChild.firstChild;$.setAttribute("tabindex",0),$.setAttribute("role","combobox"),$.setAttribute("aria-expanded",!1),$.setAttribute("aria-haspopup","listbox"),$.setAttribute("aria-required",B),k&&$.setAttribute("aria-describedby",k),O.setAttribute("id",`${K}-controller`),$.setAttribute("id",K),!_&&!i&&$.setAttribute("aria-labelledby",`${K}-controller`)}else O.setAttribute("role",U),U==="combobox"&&O.setAttribute("aria-expanded",!1)}else O.setAttribute("role","combobox"),O.removeAttribute("aria-autocomplete"),O.setAttribute("aria-required",B);F&&O.setAttribute("aria-owns",F);const V=`${K}-popup`;return O.getAttribute("role")==="combobox"&&O.setAttribute("aria-controls",V),H(L.firstChild,O,V,{inputHidden:D})},I=(L,O)=>{if(!L)return;const K=L.getElementsByClassName("ant-select-selection__choice__content");for(let T=0;T<K.length;T++){const D=K[T],W=D.nextElementSibling;if(D&&W){const B=`tag-${T}-${O}`;D.setAttribute("id",B),W.setAttribute("role","button"),W.setAttribute("describedby",`${B}`),W.setAttribute("aria-label","remove"),W.setAttribute("tabindex",0),W.addEventListener("keydown",v.Qx)}}},E=(L,O,K,T)=>{const{value:D,text:W,name:B,className:k,icon:_,disabled:F,iconUrl:U,iconAlt:V,iconAriaHidden:Z,imgClassName:$="",extraContent:G=null,...ie}=T,le=F||D===K;return(0,s.createElement)(L,{...ie,id:(0,g.A)(`${O}-option-${(D==null?void 0:D.toString()[0])==="-"?`minus-${D}`:D}`),value:D,key:`${O}-${D}`,disabled:le,className:k||"",role:"option"},U&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.C0,{src:U,alt:V,className:$,...Z?{"aria-hidden":Z}:{}})," "]}),_&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("em",{className:_})," "]}),B||W||(0,p.A)(D),G)},M=(L,O,K,T,D,W=!1)=>(0,C.A)(K)?(0,x.A)(K,(B,k)=>(0,e.jsx)(O,{label:B.label,children:(0,x.A)(B.options||[],_=>E(L,T,D,_))},k)):(K||[]).map(B=>E(L,T,D,B)),S=L=>(0,C.A)(L)?(0,a.A)(L,O=>O.options||[]):L||[],P=(L,O,K)=>T=>{T.forEach(D=>{if(!(!D.target||D.type!=="attributes")&&D.attributeName==="aria-expanded"){const W=D.target.getAttribute("aria-expanded"),B=D.target.firstChild,k=L.getAttribute("role");if(k==="searchbox")return;K&&B.setAttribute("aria-expanded",W),k&&L.setAttribute("aria-expanded",W),W==="true"?(L.setAttribute("aria-controls",O),B.setAttribute("aria-owns",O),y(O,L)):(L.removeAttribute("aria-activedescendant"),L.removeAttribute("aria-controls"),B.removeAttribute("aria-owns"))}})},H=(L,O,K,{inputHidden:T=!1})=>{window.MutationObserver=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;const D=new MutationObserver(P(O,K,T));return D.observe(L,{attributes:!0}),D}},236066:(q,N,t)=>{t.d(N,{A:()=>A});var e=t(715621),s=t(537953),l=t(102736),a=t.n(l);function h({size:C,fill:o}){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:C,height:C,viewBox:"0 0 24 24","aria-hidden":"true",role:"img",children:(0,e.jsx)("path",{fill:o,fillRule:"evenodd",d:"M23.684 22.452a.854.854 0 0 1 0 1.267.85.85 0 0 1-1.264 0L11.977 13.308 1.581 23.718a.904.904 0 0 1-1.311 0c-.328-.328-.328-.937 0-1.266l10.396-10.457L.27 1.584C.036 1.349-.058 1.02.036.692A.796.796 0 0 1 .69.036a.89.89 0 0 1 .89.234l10.396 10.411L22.42.271c.234-.235.561-.329.89-.235.327.047.561.328.655.656a.827.827 0 0 1-.281.892l-10.396 10.41 10.396 10.458z"})})}
5h.propTypes={fill:a().string,size:a().oneOfType([a().string,a().number])},h.defaultProps={fill:"#CF1322",size:24};const A=h},246239:(q,N,t)=>{t.d(N,{w$:()=>Le,Cl:()=>he.A,j9:()=>Ls.j9,HH:()=>u.A,hR:()=>me.A,XT:()=>Ls.XT,cF:()=>H.A,$n:()=>Je.A,dT:()=>Xt,Zp:()=>v,$Q:()=>ye.A,vu:()=>L.A,uy:()=>le.A,vE:()=>W.A,GO:()=>y.A,gT:()=>_t,lr:()=>$e.A,ms:()=>M.A,Td:()=>gn.A,Wc:()=>_.A,k5:()=>nt,XU:()=>E.A,kp:()=>St.A,xt:()=>i.A,FY:()=>n.A,jr:()=>oe.A,DZ:()=>ne.A,rU:()=>tt.A,kq:()=>K.A,YI:()=>Ls.YI,My:()=>nn,A0:()=>P.A,aF:()=>Ls.aF,T4:()=>Zs.T,wA:()=>Q.A,WL:()=>h.A,t7:()=>ie.A,oX:()=>Dn,Ns:()=>ws.A,v$:()=>Te.A,z2:()=>a.A,tD:()=>Rs,h2:()=>Ze.A,n6:()=>js,Y4:()=>Ms.A,sD:()=>ce.A,Rz:()=>Vs.A,_4:()=>l.A,l6:()=>Ls.l6,dN:()=>G,Ke:()=>Fs,ub:()=>at,Zi:()=>T.A,pz:()=>D.A,Lw:()=>ht,EY:()=>I.A,v4:()=>Oe.A,m_:()=>e.A,Yl:()=>O.A,Ms:()=>vn});var e=t(660452),s=t(858894),l=t(939064),a=t(96345),h=t(419611),A=t(37140),C=t(886427),o=t(715621);const g={};var x=t(537953),p=t(766652);const v=({className:Ae="",shadow:te=!0,antConfig:fe={},children:ze})=>{const It="pg-card "+{true:"pg-card--shadow ",false:" "}[te]+Ae;return(0,o.jsx)(p.A,{className:It,...fe,children:ze})};var n=t(804904),i=t(290731),f=t(517764),y=t(493300),m=t(627219),b=t(533692),u=t(253429),d=t(121657),I=t(299899),E=t(283815),M=t(146364),S=t(574189),P=t(922109),H=t(165e3),L=t(712167),O=t(407494),K=t(249331),T=t(783848),D=t(521460),W=t(930726),B=t(111772),k=t(939291),_=t(641500),F=Object.defineProperty,U=(Ae,te,fe)=>te in Ae?F(Ae,te,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Ae[te]=fe,V=(Ae,te,fe)=>U(Ae,typeof te!="symbol"?te+"":te,fe);const Z=[{id:"sendMessageForm",type:"div",fields:[{id:"subject",label:"Subject",placeholder:"Subject",rules:{required:{value:!0}},field:"text"},{id:"message",label:"Message",placeholder:"Message",rules:{required:{value:!0}},field:"textarea"}]}];class $ extends x.PureComponent{constructor(){super(...arguments),V(this,"state",{formData:{}}),V(this,"setFormData",te=>{const{formData:fe}=this.state;this.setState({formData:{...fe,...te}})}),V(this,"handleModalOk",()=>{const{onSubmit:te}=this.props;if(this.formRef){const fe=(0,k.A)(this.formRef,"props.form");fe&&fe.validateFieldsAndScroll((ze,Qe)=>{ze||te&&te(Qe)})}})}componentDidUpdate(te){const{sendMessageUser:fe}=this.props;(0,k.A)(fe,"id")!==(0,k.A)(te,"sendMessageUser.id")&&this.setState({formData:{}})}render(){const{sendMessageUser:te,...fe}=this.props,{formData:ze}=this.state,Qe=te&&(te.fullName||te.name);return(0,o.jsx)(B.A,{title:`Send Message${Qe?` to ${Qe}`:""}${te&&te.userTypeTitle?` (${te.userTypeTitle})`:""}`,className:"manage-interactions__modal__send-message",okText:"Send",...fe,onOk:this.handleModalOk,children:(0,o.jsx)(_.A,{wrappedComponentRef:It=>{this.formRef=It},fieldSets:Z,data:ze,onChange:this.setFormData,formTail:null,formItemLayout:{labelCol:{xs:{span:24},sm:{span:24}},wrapperCol:{xs:{span:24},sm:{span:24}},labelAlign:"left"}})})}}const G=$;var ie=t(510343),le=t(704681),ce=t(177587),oe=t(33256),Q=t(483150),ne=t(598993),Oe=t(850042),je=t(71595),xe=t(50391),dt=t(102736),We=t.n(dt);function Pe({open:Ae,onClose:te,onSubmit:fe,creatingFolder:ze}){const[Qe,It]=(0,x.useState)(""),[Rt,et]=(0,x.useState)({}),rs=Qt=>{const ps=new RegExp("^([a-zA-Z0-9][^*/><?|:]*)$");et({}),ps.test(Qe)?fe(Qt,Qe):et({folderName:"Invalid folder name!"})},Jt=()=>{It(""),et({})};return(0,x.useEffect)(()=>(Ae||Jt(),()=>{Jt()}),[Ae]),(0,o.jsx)(B.A,{visible:Ae,okText:"Add folder",onCancel:te,onOk:rs,okButtonProps:{loading:ze},children:(0,o.jsx)(je.A,{onSubmit:rs,children:(0,o.jsx)(je.A.Item,{label:"Folder Name",required:!0,validateStatus:Rt.folderName?"error":void 0,help:Rt.folderName,children:(0,o.jsx)(xe.A,{value:Qe,onChange:Qt=>It(Qt.target.value)})})})})}Pe.propTypes={open:We().bool.isRequired,onClose:We().func.isRequired,onSubmit:We().func.isRequired,creatingFolder:We().bool.isRequired};const Le=Pe;var Me=t(768193),ct=t(207688),we=t(428460),be=t(263775),ye=t(969134),tt=t(186824),Te=t(804273),Je=t(44260);const Ue={};var _e=t(637260),bt=Object.defineProperty,wt=(Ae,te,fe)=>te in Ae?bt(Ae,te,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Ae[te]=fe,ls=(Ae,te,fe)=>wt(Ae,typeof te!="symbol"?te+"":te,fe);class us extends x.PureComponent{constructor(){super(...arguments),ls(this,"state",{tableRef:void 0}),ls(this,"handleSetRef",te=>{this.setState({tableRef:te})})}render(){const{columns:te,rows:fe,rowKey:ze,loading:Qe,pagination:It,antConfig:Rt,striped:et}=this.props,{handleSetRef:rs}=this,{rowClassName:Jt,...Qt}=Rt,ps=(an,Hs)=>{const Nn=et?Hs%2===0?"pg-crud-table__row--striped-even":"pg-crud-table__row--striped-odd":"",In=Jt?Jt(an,Hs):"";
5return[Nn,In].filter(Boolean).join(" ")};return(0,o.jsx)(_e.A,{className:"pg-crud-table",rowClassName:ps,columns:te,dataSource:fe,rowKey:ze,loading:Qe,ref:rs,pagination:It,...Qt})}}us.defaultProps={rowKey:"id",rows:[],columns:[],loading:!1,striped:!1,antConfig:{},pagination:{position:"bottom"}};const Xt=us;var ut=t(811348),$t=t(230803),As=t(633861),kt=t(595526),Wt=t(444110),pt=Object.defineProperty,Yt=(Ae,te,fe)=>te in Ae?pt(Ae,te,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Ae[te]=fe,qt=(Ae,te,fe)=>Yt(Ae,typeof te!="symbol"?te+"":te,fe);const{Item:Bt}=je.A,{log:Kt}=console;class Ot extends x.PureComponent{constructor(){super(...arguments),qt(this,"handleSubmit",async()=>{const{form:te}=this.props,{dispatchSuccess:fe,dispatchError:ze}=this.props;let Qe,It;if(te.validateFields((Rt,et)=>{Rt&&(Kt(Rt),Qe=Rt),It=et}),Qe)return ze(Qe);fe(It),te.resetFields()})}render(){const{handleSubmit:te}=this,{className:fe,formFields:ze,isLoading:Qe,form:{getFieldDecorator:It},gutter:Rt,noSubmit:et,antConfig:rs}=this.props;return(0,o.jsxs)(je.A,{className:`pg-form ${fe}`,...rs,children:[Qe&&(0,o.jsx)(a.A,{}),!Qe&&ze.map((Jt,Qt)=>Jt.hidden?null:(0,kt.A)(Jt)?(0,o.jsx)($t.A,{gutter:Rt,children:Jt.map(({grid:ps,...an},Hs)=>(0,x.createElement)(As.A,{...ps,key:`row-${Qt}-col-${Hs}`},(0,o.jsx)(Wt.A,{getFieldDecorator:It,...an},`${Qt}.${Hs}`)))},`row-${Qt}`):(0,o.jsx)($t.A,{children:(0,o.jsx)(Wt.A,{getFieldDecorator:It,...Jt},Qt)},`row-${Qt}`)),!Qe&&!et&&(0,o.jsx)(Bt,{children:(0,o.jsx)($t.A,{type:"flex",justify:"end",children:(0,o.jsx)(Je.A,{type:"primary",onClick:te,children:"Submit"})})})]})}}Ot.defaultProps={className:"",formFields:[],isLoading:!1,antConfig:{layout:"vertical"},dispatchError:Ae=>Kt(Ae),dispatchSuccess:Ae=>(Kt(JSON.stringify(Ae,null,2)),Ae),noSubmit:!1,gutter:0};class hs extends x.PureComponent{render(){const{onFieldsChange:te,innerRef:fe}=this.props,ze=je.A.create({onFieldsChange:te})(Ot);return(0,o.jsx)(ze,{ref:fe,...this.props})}}const Es=hs;var ft=Object.defineProperty,Ne=(Ae,te,fe)=>te in Ae?ft(Ae,te,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Ae[te]=fe,Re=(Ae,te,fe)=>Ne(Ae,typeof te!="symbol"?te+"":te,fe);const{log:Pt}=console;class Mt extends x.PureComponent{constructor(){super(...arguments),Re(this,"state",{formRef:void 0}),Re(this,"handleRef",async te=>{await this.setState({formRef:te})}),Re(this,"handleLocalSubmit",()=>{const{state:{formRef:te},props:{handleSubmit:fe}}=this;te.validateFields((ze,Qe)=>{if(ze)return Pt(ze),ze;fe(Qe),te.resetFields()})}),Re(this,"handleLocalCancel",()=>{const{state:{formRef:te},props:{handleCancel:fe}}=this;te.resetFields(),fe()})}render(){const{handleLocalSubmit:te,handleLocalCancel:fe,handleRef:ze,props:{visible:Qe,title:It,okText:Rt,cancelText:et,formFields:rs,isLoading:Jt,gutter:Qt,modalConfig:ps,formConfig:an,className:Hs}}=this;return(0,o.jsx)(B.A,{className:`pg-form-modal ${Hs}`,visible:Qe,title:It,okText:Rt,cancelText:et,onCancel:fe,onOk:te,confirmLoading:Jt,...ps,children:(0,o.jsx)(Es,{formFields:rs,isLoading:Jt,noSubmit:!0,gutter:Qt,innerRef:ze,...an})})}}Mt.defaultProps={visible:!1,title:"",okText:"Ok",cancelText:"Cancel",formFields:[],isLoading:!1,formConfig:{layout:"vertical"},modalConfig:{},handleCancel:()=>Pt("handleCancel"),handleSubmit:Ae=>{Pt("handleSubmit",JSON.stringify(Ae,null,2))}};const nt=Mt,as=null;var is=Object.defineProperty,ts=(Ae,te,fe)=>te in Ae?is(Ae,te,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Ae[te]=fe,cs=(Ae,te,fe)=>ts(Ae,typeof te!="symbol"?te+"":te,fe);class os extends x.Component{constructor(){super(...arguments),cs(this,"state",{isToggled:!1}),cs(this,"setToggled",te=>{const{isToggled:fe}=this.state;te.preventDefault(),this.setState({isToggled:!fe})})}render(){const{limit:te,rowKey:fe,options:ze}=this.props,{isToggled:Qe}=this.state,It=te||2,Rt=fe?ze.map(et=>et[fe]):ze;return(0,o.jsxs)("div",{children:[!Qe&&Rt.length<=It&&(0,o.jsx)("div",{children:Rt.slice(0,It).join(" | ")}),!Qe&&Rt.length>It&&(0,o.jsxs)("div",{children:[Rt.slice(0,It).join(" | "),"...",(0,o.jsxs)("a",{onClick:this.setToggled,children:["+ ",ze.length-2," more"]})]}),Qe&&(0,o.jsxs)("div",{children:[Rt.map((et,rs)=>(0,o.jsxs)("div",{children:[" ",et," "]},rs)),(0,o.jsx)("a",{onClick:this.setToggled,children:"Show Less"})]}),(0,o.jsx)("div",{})]})}}const Fs=os;var Js=t(256421),Ns=t(106324),St=t(831852),gn=t(471378),ln=t(988705),tn=t(154429),Gs=t(442967),Tn=Object.defineProperty,pn=(Ae,te,fe)=>te in Ae?Tn(Ae,te,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Ae[te]=fe,ae=(Ae,te,fe)=>pn(Ae,typeof te!="symbol"?te+"":te,fe);class de extends x.PureComponent{constructor(te){super(te),ae(this,"addEventListeners",()=>{if(!this.DatePickerRef)return;(0,ln.findDOMNode)(this.DatePickerRef).addEventListener("keydown",Gs.Qx)}),ae(this,"removeEventListeners",()=>{if(!this.DatePickerRef)return;(0,ln.findDOMNode)(this.DatePickerRef).removeEventListener("keydown",Gs.Qx)}),ae(this,"handleOnOpenChange",fe=>{typeof this.props.onOpenChange=="function"&&this.props.onOpenChange(fe),fe?setTimeout(()=>{const ze=document.getElementsByClassName(this.popupId)[0];if(!ze)return;const Qe=ze.getElementsByTagName("input")[0];Qe&&(setTimeout(()=>{Qe.focus(),Qe.select()},0),Qe.addEventListener("keydown",Rt=>{const et=()=>{if(!ze.firstChild)return;const rs={altKey:!1,bubbles:!0,cancelBubble:!1,cancelable:!0,charCode:0,code:"Escape",composed:!0,ctrlKey:!1,isTrusted:!0,key:"Escape",keyCode:27,metaKey:!1,shiftKey:!1},Jt=new KeyboardEvent("keydown",rs);setTimeout(()=>ze.firstChild.dispatchEvent(Jt),0)};switch(Rt.keyCode){case 27:case 9:Rt.stopPropagation();case 13:et(),this.DatePickerRef&&this.DatePickerRef.focus();default:break}}));const It=ze.getElementsByClassName("ant-calendar-date-panel")[0];It&&It.setAttribute("aria-hidden",!0)},0):this.DatePickerRef&&this.DatePickerRef.focus()}),this.popupId="datepicker-"+Math.random().toString(32).slice(2,8)}componentDidMount(){this.addEventListeners()}componentWillUnmount(){this.removeEventListeners()}render(){let te=this.props.dropdownClassName||"";return te&&(te+=" "),te+=this.popupId,(0,o.jsx)(tn.A,{ref:fe=>this.DatePickerRef=fe,...this.props,onOpenChange:this.handleOnOpenChange,dropdownClassName:te})}}const Ke=null;var $e=t(955402),Ze=t(640431),ue=t(925079),he=t(607714),me=t(395928),ge=t(248883),De=t(778402);const He={},Ye=({text:Ae="",initialLength:te=200,hideInitially:fe=!0,useRichText:ze=!1,showMoreText:Qe="show more",showLessText:It="show less",onShowMore:Rt=void 0})=>{const[et,rs]=(0,x.useState)(!fe),[Jt,Qt]=(0,x.useState)(Ae),ps=()=>
5{if(et&&Rt&&typeof Rt=="function")return Rt(et);Qt(et?Ae:Ae.substr(0,te)),rs(!et)};return(0,x.useEffect)(()=>{ps()},[]),(0,o.jsxs)(o.Fragment,{children:[ze?(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,De.a)(Jt)}}):Jt,Ae.length>te?(0,o.jsxs)(o.Fragment,{children:[et?"... ":" ",(0,o.jsx)(ge.$n,{type:"link",onClick:ps,children:et?Qe:It})]}):null]})},at=(0,x.memo)(Ye);var Se=t(205369),Xe=t(560109),ot=t(62644),Ge=t(722259);const At={},qe=({className:Ae="",placeholder:te,setTags:fe,setSearchText:ze,hasError:Qe,value:It,errorMessage:Rt,searchText:et,showHelpText:rs,helpTooltipText:Jt,...Qt})=>(0,o.jsxs)("div",{className:"pg-tag-select",children:[(0,o.jsx)(Se.A,{mode:"tags",placeholder:te,value:It,onChange:fe,onSearch:ze,className:`pg-tag-select--input${Qe?" pg-tag-select--err":""} ${Ae}`,dropdownClassName:"pg-tag-select--dropdown",searchValue:et,"aria-label":te,...Qt}),Qe&&Rt&&(0,o.jsxs)("div",{className:"pg-tag-select--err-label",children:[(0,o.jsx)(Ge.A,{}),(0,o.jsx)("label",{children:Rt})]}),rs&&et&&!Qe&&(0,o.jsx)("span",{className:"pg-tag-select--help",children:(0,o.jsxs)(Xe.A,{title:Jt,getPopupContainer:ps=>ps&&ps.parentNode?ps.parentNode:document.body,children:[(0,o.jsx)(ot.A,{type:"enter"}),(0,o.jsx)("span",{children:"Enter to add"})]})})]});qe.propTypes={value:We().arrayOf(We().string),placeholder:We().string,errorMessage:We().string,hasError:We().bool,className:We().string,setTags:We().func.isRequired,setSearchText:We().func.isRequired};const ht=qe;var rt=t(341266);class ke extends x.Component{render(){const{width:te,height:fe,speed:ze=2,primaryColor:Qe="#eeeff1",secondaryColor:It="#ffffff"}=this.props;return(0,o.jsx)(rt.Ay,{width:te,height:fe,speed:ze,primaryColor:Qe,secondaryColor:It,style:{width:"100%",height:"100%"},children:this.props.children})}}const _t=ke;var ms=t(700440),Ms=t(539041),Zs=t(528393),fs=t(90570),Bs=t(120942);const sn={},_s=Ae=>Ae==="date"?[{text:"Exactly on",value:"equal"},{text:"Before",value:"less"},{text:"After",value:"greater"},{text:"Between",value:"between"}]:["integer","number","float"].includes(Ae)?[{text:"Exactly",value:"equal"},{text:"Lesser than",value:"less"},{text:"Greater than",value:"greater"},{text:"Between",value:"between"}]:null,Is=Ae=>{switch(Ae){case"integer":case"number":return{className:"range-field-v1__input range-field-v1__input_number"};case"float":return{className:"range-field-v1__input range-field-v1__input_number range-field-v1__input_float",step:1};case"date":return{className:"range-field-v1__input range-field-v1__input_date",calendarIcon:"left",dateFormat:"dd MMM, yyyy"};default:return null}},js=x.forwardRef(({className:Ae="",type:te,onChange:fe,disabled:ze,...Qe},It)=>{const Rt=(0,k.A)(Qe,"value",{}),[et,rs]=(0,x.useState)({...Rt}),Jt=_s(te);if(!Jt)return null;const Qt=Is(te);if(!Qt)return null;const ps=Sn=>{const yn={type:Sn};rs(yn),fe(yn)},an=Sn=>yn=>{const bn={...et,[Sn]:yn};rs(bn),fe(bn)},Hs=Sn=>yn=>{const bn={...et,[Sn]:(0,Bs.GP)(yn,"yyyy-MM-dd")};rs(bn),fe(bn)},Nn="Add value",In="Pick a date",Ln="From",Pn="To";return(0,o.jsxs)("div",{className:`range-field-v1 ${Ae}`,ref:It,children:[(0,o.jsx)(Ls.l6,{className:"range-field-v1__select",placeholder:"Select a value...",options:Jt,value:et.type,onChange:ps,disabled:ze}),!(0,fs.A)(et)&&et.type?(0,o.jsxs)(o.Fragment,{children:[et.type!=="between"&&["integer","float","number"].includes(te)?(0,o.jsx)(Ls.YI,{placeholder:Nn,value:et.option,min:0,onChange:an("option"),disabled:ze,...Qt}):null,et.type==="between"&&["integer","float","number"].includes(te)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Ls.YI,{placeholder:Ln,value:et.optionFrom,min:0,onChange:an("optionFrom"),disabled:ze,...Qt}),(0,o.jsx)(Ls.YI,{placeholder:Pn,value:et.optionTo,onChange:an("optionTo"),disabled:ze,...Qt})]}):null,et.type!=="between"&&te==="date"?(0,o.jsx)($e.A,{"aria-label":In,placeholderText:In,selected:et.option&&new Date(et.option),onChange:Hs("option"),disabled:ze,...Qt}):null,et.type==="between"&&te==="date"?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)($e.A,{placeholderText:Ln,"aria-label":"From Date",selected:et.optionFrom&&new Date(et.optionFrom),onChange:Hs("optionFrom"),maxDate:et.optionTo&&new Date(et.optionTo),disabled:ze,...Qt}),(0,o.jsx)($e.A,{placeholderText:Pn,"aria-label":"To Date",selected:et.optionTo&&new Date(et.optionTo),onChange:Hs("optionTo"),minDate:et.optionFrom&&new Date(et.optionFrom),disabled:ze,...Qt})]}):null]}):null]})}),Ie={},Os=Ae=>Ae>80?"#00875a":Ae>40&&Ae<=80?"#531dab":Ae>0&&Ae<=40?"#d4380d":null,cn=(Ae,te)=>{if(Ae>0){const fe=Ae/100*te;return Math.ceil(fe)}return 0},Rs=({percent:Ae,pillCount:te=5})=>{const fe=Os(Ae),ze=cn(Ae,te);return(0,o.jsx)("div",{className:"progress-bar-v2",children:[...Array(te)].map((Qe,It)=>{const Rt=It<ze&&ze>0?{backgroundColor:fe}:{};return(0,o.jsx)("span",{className:"progress-bar-v2__pill",style:Rt},It)})})};function vn({size:Ae,color:te}){return(0,o.jsx)("svg",{width:Ae,height:Ae,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:(0,o.jsx)("path",{fill:te,fillRule:"evenodd",d:"M8 0c2.125 0 4.156.844 5.656 2.344A7.994 7.994 0 0 1 16 8c0 4.406-3.594 8-8 8-4.406 0-8-3.594-8-8 0-4.406 3.594-8 8-8zm0 .625C3.938.625.625 3.938.625 8c0 4.063 3.313 7.375 7.375 7.375A7.43 7.43 0 0 0 15.375 8C15.375 3.938 12.062.625 8 .625zm.762 10.223v1.47H7.238v-1.47h1.524zm-.174-7.165V7.47l-.122 1.775h-.932l-.122-1.775V3.683h1.176z"})})}vn.defaultProps={size:"16px",color:"#CF1322"};var ws=t(384204),Vs=t(597411),xs=t(665790),xn=t(768835),Cn=t(829080),Cs=t(376996),Ds=t(447139),dn=t(922939);const vs={introPostModal:"introPostModal__rzhkW",header:"header__tarIT",illustration:"illustration__ozJZg",greetingTitle:"greetingTitle__Bbhat",greetingWrapper:"greetingWrapper__ncYJk",errorMessage:"errorMessage___tfTe",welcomeText:"welcomeText__U5Eq2",label:"label__zEZZK",formWrapper:"formWrapper__f2Ct3",modalBtn:"modalBtn__iddyv",fullModalLoader:"fullModalLoader___g9Ez",introPostModalScaledUp:"introPostModalScaledUp__A_7OQ"},nn=({visible:Ae,toggle:te,isLoading:fe,newPost:ze={},modalCopy:Qe,setNewPost:It,onClickprimaryCTA:Rt=()=>{},hashtagOptions:et,setPost:rs=()=>{},post:Jt,isError:Qt=null,isModalLoading:ps=!1})=>{const{header:{title:an="",titleEmoji:Hs={},welcomeText:Nn=""},intro:{text:In,introEmoji:Ln={}},primaryCTA:Pn,preFilledTemplate:Sn,illustration:yn}=Qe,bn=(0,Cn.MU)();return(0,x.useEffect)(()=>{Ae&&rs(Sn)},[Ae,Sn]),(0,o.jsx)(dn.A,{className:(0,xn.A)(vs.introPostModal,bn&&vs.introPostModalScaledUp),visible:Ae,closable:!0,keyboard:!0,maskClosable:!1,getContainer:()=>{var Mn;return((Mn=document.getElementsByClassName("functional-group"))==null?void 0:Mn[0])||document.body},onCancel:()=>
5{te("Dismiss")},footer:[(0,o.jsx)(xs.A,{onClick:()=>{te("Cancel")},className:vs.modalBtn,disabled:fe||ps,children:"Cancel"},"exit"),(0,o.jsx)(xs.A,{type:"primary",loading:!ps&&fe,className:vs.modalBtn,disabled:!(0,Ds.Me)(Jt)||ps,onClick:Rt,children:Pn},"save")],children:ps?(0,o.jsx)($t.A,{type:"flex",align:"middle",justify:"center",className:vs.fullModalLoader,children:(0,o.jsx)(Cs.A,{className:"loader-animation"})}):(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:vs.header,children:[(0,o.jsxs)("div",{className:vs.greetingWrapper,children:[(0,o.jsx)("h2",{className:vs.greetingTitle,children:an}),(0,o.jsx)("p",{className:vs.welcomeText,children:Nn})]}),(0,o.jsx)("div",{className:vs.illustration,children:(0,o.jsx)("img",{src:yn.url,alt:yn.altText})})]}),(0,o.jsxs)("div",{className:vs.formWrapper,children:[(0,o.jsx)("label",{className:vs.label,children:In}),(0,o.jsx)(Ds.Ay,{trackHashTagEvents:!0,setAttachments:It,onChange:Mn=>rs(Mn),value:Jt,disabled:fe,attachments:ze.attachments,hashtagOptions:et}),Qt&&(0,o.jsx)("p",{className:vs.errorMessage,children:Qt})]})]})})};var zs=t(315913),ys=t(321658),$s=t.n(ys),un=t(124916),Ys=t(415155),Ps=t(19694),jn=Object.defineProperty,st=(Ae,te,fe)=>te in Ae?jn(Ae,te,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Ae[te]=fe,ss=(Ae,te,fe)=>st(Ae,typeof te!="symbol"?te+"":te,fe);const{WeekPicker:gs}=tn.A,Ss=({onClick:Ae,content:te="Go to",disabled:fe})=>(0,o.jsx)(ge.$n,{type:"tertiary",className:"periodselect__datedisplay",onClick:Ae,disabled:(0,Ys.A)(fe)?fe:!1,children:te});class Rn extends x.PureComponent{constructor(){super(...arguments),ss(this,"state",{isWeekPickerOpen:!1,containerRef:(0,x.createRef)()}),ss(this,"handleWeekPickerToggle",te=>{this.setState(fe=>({isWeekPickerOpen:(0,Ys.A)(te)?te:!fe.isWeekPickerOpen}))}),ss(this,"handleWeekPickerChange",te=>{const{periodType:fe,handlePeriodChange:ze}=this.props;fe===un.l8.WEEK&&this.handleWeekPickerToggle(),ze(te,!1)}),ss(this,"getPeriodPicker",()=>{const{state:{isWeekPickerOpen:te,containerRef:fe},props:{unresolved:ze,period:Qe,periodType:It,containerRef:Rt=null},handleWeekPickerChange:et}=this,rs={dropdownClassName:"periodselect__calendar",disabled:ze,defaultPickerValue:Qe,value:Qe,onChange:et,open:te,onOpenChange:Jt=>this.setState({isWeekPickerOpen:Jt}),getCalendarContainer:()=>(0,Ps.A)(Rt)?document.body:Rt.current};return It===un.l8.WEEK?(0,o.jsx)(gs,{...rs}):(0,o.jsx)($e.A,{useMoment:!0,value:Qe,onChange:et,showMonthYearPicker:!0,triggerContainerRef:fe,customInput:(0,o.jsx)(Ss,{content:this.getJumpButtonContent(),disabled:ze}),portalId:"react-datepicker-portal",showCustomHeader:!1,showPopperArrow:!0})}),ss(this,"getJumpButtonContent",()=>{const{now:te,unresolved:fe,period:ze,periodType:Qe,changePeriodLabel:It=null}=this.props,Rt=te.isSame(ze,Qe),et=!It&&!fe;return(0,o.jsxs)(o.Fragment,{children:[It&&(0,o.jsx)("span",{children:It}),Rt&&et&&(0,o.jsxs)("span",{children:["Current ",Qe]}),!Rt&&et&&(0,o.jsx)("span",{children:Qe==="week"?`${$s()(ze).format("MMM D, YYYY")} - ${$s()(ze).endOf("week").format("MMM D, YYYY")}`:$s()(ze).format("MMM, YYYY")})]})})}render(){const{unresolved:te,handlePrevPeriod:fe,handleNextPeriod:ze,periodType:Qe}=this.props,{containerRef:It}=this.state;return(0,o.jsxs)("div",{className:`periodselect ${te?"periodselect--disabled":""}`,ref:It,children:[(0,o.jsx)(ge.K0,{size:"small",className:"periodselect__actionButtons",icon:"pg-cheveron-left-o","aria-label":`Previous ${Qe}`,onClick:fe,disabled:te}),Qe===un.l8.WEEK&&(0,o.jsx)(ge.$n,{type:"tertiary",disabled:te,className:"periodselect__datedisplay",onClick:this.handleWeekPickerToggle,children:this.getJumpButtonContent()}),this.getPeriodPicker(),(0,o.jsx)(ge.K0,{size:"small",className:"periodselect__actionButtons",icon:"pg-cheveron-right-o","aria-label":`Next ${Qe}`,onClick:ze,disabled:te})]})}}const Dn=Rn;var Ls=t(888713)},249331:(q,N,t)=>{t.d(N,{A:()=>h});var e=t(715621),s=t(537953);const l={},a=A=>{const{fallback:C}=A,o=g=>{g.target.src=C||"https://s3.amazonaws.com/campuskudos-images/generic_avatar.jpg"};return(0,e.jsx)("img",{src:A.url,onError:o,className:A.style,alt:A.alt})};a.defaultProps={style:"fallback",alt:""};const h=a},250561:(q,N,t)=>{t.d(N,{$K:()=>g,Bk:()=>h,D_:()=>o,G2:()=>p,JD:()=>b,Jy:()=>y,NN:()=>i,Nb:()=>f,SQ:()=>m,Sf:()=>v,W_:()=>x,ge:()=>c,kj:()=>n,mt:()=>s,ps:()=>a});const e="HANDLE_SAVE_ALERT",s="SET_ALERT_IS_SAVING",l="HANDLE_NOTIFICATION_ALERT_HISTORY",a="SET_ALERT_HISTORY",h="SET_ALERT_HISTORY_IS_LOADING",A="HANDLE_DELETE_ALERT",C="HANDLE_UPDATE_ALERT",o="SET_ALERT_VISIBLE",g="SET_ALERT_TYPE",x="CLEAR_ALERT_HISTORY",p=u=>({type:e,obj:u}),c=u=>({type:l,data:u}),v=u=>({type:A,id:u}),n=u=>({type:C,obj:u}),i=u=>({type:o,data:u}),f=u=>({type:g,data:u}),y=u=>({type:a,data:u}),m=()=>({type:x}),b=u=>u.notificationAlert.alertHistory},253429:(q,N,t)=>{t.d(N,{A:()=>g});var e=t(715621);const s={};
5var l=t(102736),a=t.n(l),h=t(537953),A=t(230803),C=t(246239);const o=({layout:x,size:p,className:c,url:v,block:n,alt:i})=>{const f={row:"",column:"pg-avatar-block--column "},y={icon:"pg-avatar-block__header--icon ",small:"pg-avatar-block__header--small ",medium:"pg-avatar-block__header--medium ",large:"pg-avatar-block__header--large ",crm:"pg-avatar-block__header--crm "},m="pg-avatar-block "+f[x]+c,b="pg-avatar-block__header "+y[p];return(0,e.jsxs)(A.A,{className:m,type:"flex",children:[(0,e.jsx)("div",{className:b,children:(0,e.jsx)(C.kq,{url:v,alt:i})}),n&&(0,e.jsx)("div",{className:"pg-avatar-block__desc",children:n})]})};o.propTypes={layout:a().oneOf(["row","column"]),size:a().oneOf(["icon","small","medium","large","crm"]),className:a().string,url:a().string.isRequired,block:a().node.isRequired,alt:a().string},o.defaultProps={layout:"row",size:"small",className:"",alt:"image of a person"};const g=o},255968:(q,N,t)=>{t.d(N,{A:()=>d});var e=t(715621),s=t(537953),l=t(988705),a=t(205369),h=t(992972),A=t.n(h),C=t(939291),o=t(932792),g=t(595526),x=t(102736),p=t.n(x),c=t(69914),v=t(210187);const n={};var i=Object.defineProperty,f=(I,E,M)=>E in I?i(I,E,{enumerable:!0,configurable:!0,writable:!0,value:M}):I[E]=M,y=(I,E,M)=>f(I,typeof E!="symbol"?E+"":E,M);const{Option:m,OptGroup:b}=a.A;class u extends s.PureComponent{constructor(E){super(E),y(this,"handleKeyPress",M=>{let S=!1,{parentElement:P=null}=this.selectController;P=P?P.parentElement:null,P&&(S=P.classList.contains("ant-select-open"),S||M&&M.code==="Escape"&&(this.props.value&&(M.stopImmediatePropagation(),M.stopPropagation()),this.props.resetField&&this.props.resetField())),setTimeout(()=>{(0,v.jS)(this.popupId,this.selectController)},0)}),y(this,"focus",()=>{this.SelectRef&&this.SelectRef.focus&&this.SelectRef.focus()}),y(this,"isSearchTextExist",M=>{let{options:S=[]}=this.props,P=!1;return S=(0,v.XJ)(S),S.forEach(H=>{const L=(0,C.A)(H,"value");if(L&&typeof L=="string"&&typeof M=="string"&&L.trim().toLowerCase()===M.trim().toLowerCase())return P=!0,!1}),P}),y(this,"handleSearch",M=>{const{onSearch:S}=this.props;this.setState({searchText:M}),S&&S(M)}),y(this,"handleChange",(M,S)=>{const{onSelectNotFound:P,onChange:H}=this.props,{searchText:L}=this.state;P&&!this.isSearchTextExist(M)?P(L.trim()):H&&H(M,S),this.setState({searchText:""})}),y(this,"cookOptions",()=>{const{searchText:M}=this.state;let{searchTextAsOption:S,searchTextAsOptionContent:P,options:H=[]}=this.props;return!M||!M.trim()?H:S&&(H=(0,v.XJ)(H),!this.isSearchTextExist(M))?[...H,{text:P?P(M):`+ Add '${M.trim()}' as a new option`,value:M}]:(0,o.A)(H)?H:H.sort((O,K)=>{var T,D,W,B;return((D=(T=O.value)==null?void 0:T.length)!=null?D:0)-((B=(W=K.value)==null?void 0:W.length)!=null?B:0)})}),this.selectDOM=null,this.selectId=this.props.id||"select-"+(0,c.A)(),this.popupId=`${this.selectId}-popup`,this.isIdSet=!1,this.popupObserver=null,this.handleRemoveButtonClick=this.handleRemoveButtonClick.bind(this),this.state={searchText:"",removalMessage:""}}componentDidMount(){if(this.selectDOM=(0,l.findDOMNode)(this.SelectRef),!this.selectDOM||!this.selectDOM.firstChild||!this.selectDOM.firstChild.firstChild)return;const E=this.selectDOM.getElementsByTagName("input")[0];if(this.selectController=E||this.selectDOM.firstChild.firstChild,!this.selectController)return;const{options:M,mode:S,value:P,...H}=this.props,L=["multiple","tags"].includes(S),O=!!E,K=!L;this.popupObserver=(0,v.Wj)(this.selectDOM,this.selectController,this.selectId,{hasInput:O,inputHidden:K,otherProps:H}),(0,v.je)(this.selectController,H["aria-label"],this.selectId,{options:M,value:P,inputHidden:K}),L&&(0,v.Hm)(this.selectDOM,this.selectId),this.selectDOM.addEventListener("keyup",this.handleKeyPress)}componentDidUpdate(){const{options:E,mode:M,value:S,...P}=this.props;["multiple","tags"].includes(M)?(this.popupObserver&&this.popupObserver.disconnect(),this.selectController=this.selectDOM.getElementsByTagName("input")[0],this.popupObserver=(0,v.Wj)(this.selectDOM,this.selectController,this.selectId,{hasInput:!0,inputHidden:!1,otherProps:P}),(0,v.Hm)(this.selectDOM,this.selectId)):(0,v.je)(this.selectController,P["aria-label"],this.selectId,{options:E,value:S,inputHidden:!0}),this.setupRemoveIconEventListeners()}componentWillUnmount(){this.selectDOM&&this.selectDOM.removeEventListener("keyup",this.handleKeyPress),this.popupObserver&&this.popupObserver.disconnect(),this.cleanRemoveIconEventListeners()}setRemovalMessage(E){this.setState({removalMessage:`${E} has been removed`})}handleRemoveButtonClick(E){const S=E.target.getAttribute("describedBy"),P=document.getElementById(S).textContent;this.setRemovalMessage(null),setTimeout(()=>{this.setRemovalMessage(P)},300)}setupRemoveIconEventListeners(){this.removeSelectedItemButtons=document.querySelectorAll('span.ant-select-selection__choice__remove[role="button"]'),this.removeSelectedItemButtons.forEach(E=>{E.addEventListener("click",this.handleRemoveButtonClick)})}cleanRemoveIconEventListeners(){this.removeSelectedItemButtons&&this.removeSelectedItemButtons.forEach(E=>{E.addEventListener("click",this.handleRemoveButtonClick)})}render(){let{value:E,...M}=this.props;E&&(0,g.A)(E)&&(E!=null&&E[0])&&(0,o.A)(E[0])&&(Object.hasOwn(E==null?void 0:E[0],"value")||Object.hasOwn(E==null?void 0:E[0],"name"))&&(E=E.map(K=>K.value||K.name));const{shortId:S,dropdownClassName:P,showOptionTooltip:H}=this.props,L=this.cookOptions(),{removalMessage:O}=this.state;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:"sr-only",role:"status","aria-live":"polite",children:O!=null?O:""}),(0,e.jsx)(a.A,{getPopupContainer:K=>K&&K.parentNode?K.parentNode:document.body,...M,value:E,onChange:this.handleChange,onSearch:this.handleSearch,ref:K=>this.SelectRef=K,dropdownClassName:A()(this.popupId,{[P]:!!P}),children:(0,v.Dx)(m,b,L,this.selectId,S,H)})]})}}
5u.propTypes={...a.A.propTypes,options:p().oneOfType([p().arrayOf(p().shape({name:p().oneOfType([p().string,p().number,p().node]),value:p().oneOfType([p().string,p().number]).isRequired,text:p().node,icon:p().string,disabled:p().bool,className:p().string,label:p().string})),p().object]).isRequired,shortId:p().string,value:p().oneOfType([p().string,p().arrayOf(p().oneOfType([p().string,p().object]))])},u.defaultProps={...a.A.defaultProps};const d=u},256421:(q,N,t)=>{t.d(N,{A:()=>l});var e=t(715621),s=t(537953);function l({size:a,color:h}){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 16 16",children:(0,e.jsx)("path",{fill:h,fillRule:"evenodd",d:"M15.031 3.65h-3.5v-.848c0-.819-.719-1.44-1.625-1.469H6.094c-.907.029-1.625.65-1.625 1.47v.847h-3.5c-.532 0-.969.395-.969.875v9.266c0 .48.437.876.969.876H15.03c.531 0 .969-.396.969-.876V4.525c0-.48-.438-.875-.969-.875zm-9.906-.848c0-.48.438-.875.969-.875h3.812c.531 0 .969.395.969.875v.848h-5.75v-.848zm10.25 10.989c0 .141-.156.282-.344.282H.97c-.188 0-.344-.14-.344-.282V7.463a27.98 27.98 0 0 0 5.781 2.09V10.6c0 .31.282.593.625.593H8.97c.343 0 .625-.282.625-.593V9.554c2-.48 3.937-1.187 5.781-2.09v6.327zM7.031 9.667c.313.028.656.056.969.056.313 0 .656-.028.969-.056v.932H7.03v-.932zm8.344-2.853l-.156.056c-.063.028-4.594 2.288-7.219 2.288S.844 6.898.781 6.87l-.156-.056V4.525c0-.17.156-.282.344-.282H15.03c.188 0 .344.113.344.282v2.289z"})})}l.defaultProps={size:"16px",color:"#096DD9"}},257329:(q,N,t)=>{t.d(N,{zw:()=>s.z,_G:()=>M});var e=t(545549),s=t(113443),l=t(715621),a=t(348861),h=t(736608),A=t(90570),C=t(972185),o=t(989949),g=t(9139),x=t(124362),p=t(436492),c=t(537953),v=t(50391),n=t(248883),i=t(839392);const f={};function y({wrapperClass:O,handleOnUpdate:K,placeholder:T,...D}){(0,c.useEffect)(()=>()=>{W.cancel()},[]);const W=(0,i.A)(B=>{let k=B.target.value;K(k)},300);return(0,l.jsx)("div",{className:`search-input ${O||""}`,children:(0,l.jsx)(v.A,{placeholder:T||"Search...",prefix:(0,l.jsx)(n.C0,{src:"https://cdn.peoplegrove.com/admin/1683135891382search-icon.svg"}),onChange:B=>{B.persist(),W(B)},...D})})}var m=t(878246),b=t(866946),u=t(899388),d=t(839050),I=t(425170);const E=({data:O=[],isBlockView:K,handleOnUpdate:T=G=>{},isSearchable:D=!1,showSelectedOptions:W=!1,placeholder:B="Search...",selectedItemsFromParent:k=[],labelledBy:_="",describedBy:F="",featureSectionTitle:U="",allCapsulesSectionTitle:V="",loading:Z=!1,enableAlphabeticalGrouping:$=!1})=>{const G=(0,d.er)(),ie=(0,I.c5u)("misc","associatedSchoolShortname",G,null),[le]=(0,c.useState)((0,a.A)("selected-options-label")),[ce,oe]=(0,c.useState)([]),[Q,ne]=(0,c.useState)(O),[Oe,je]=(0,c.useState)(!!Q.find(ye=>(0,h.A)(ye==null?void 0:ye.children,tt=>tt.feature))),[xe,dt]=(0,c.useState)(!!Q.find(ye=>(0,h.A)(ye==null?void 0:ye.children,tt=>!tt.feature))),[We,Pe]=(0,c.useState)(!1);let Le=(0,c.useRef)([]);(0,c.useEffect)(()=>{(0,A.A)(k)||oe(k)},[k]),(0,c.useEffect)(()=>{(0,A.A)(Le.current)&&(0,A.A)(Q)&&!(0,A.A)(O)&&(ne(O),Le.current=O)},[O,Q]),(0,c.useEffect)(()=>{(0,A.A)(Q)?(je(!1),dt(!1)):(je(!!Q.find(ye=>(0,h.A)(ye==null?void 0:ye.children,tt=>tt.feature))),dt(!!Q.find(ye=>(0,h.A)(ye==null?void 0:ye.children,tt=>!tt.feature))))},[Q]);const Me=(ye,tt)=>{const Te=(0,C.A)(tt,_e=>(_e.groupId=ye,_e)),Je=(0,o.A)(ce,_e=>_e.groupId===ye),[Ue]=(0,g.A)(Je,Te);if(Ue){const _e=(0,x.A)(ce,wt=>wt.id===Ue.id&&wt.groupId===Ue.groupId),bt=[...ce];_e>-1?bt.splice(_e,1):bt.push(Ue),T(bt),oe(bt)}},ct=ye=>{if(!ye)return ne(O);const Te=(0,p.A)(O).filter(Je=>{if(Je.label&&Je.label.toLowerCase().includes(ye.toLowerCase()))return!0;const Ue=Je.children;if(Ue){const _e=Ue.filter(bt=>bt.label&&bt.label.toLowerCase().includes(ye.toLowerCase()));return _e.length>0?(Je.children=_e,!0):!1}});ne(Te)},we=()=>(0,l.jsxs)("div",{className:"no-results",children:[(0,l.jsx)(n.C0,{src:"https://cdn.peoplegrove.com/admin/1683135186628empty-result-icon.svg"}),(0,l.jsx)("h2",{children:"Oops! no results found..."}),(0,l.jsx)("p",{children:"Please try another search"})]}),be=W&&Array.isArray(ce)&&!(0,A.A)(ce);return(0,c.useEffect)(()=>{Pe(!!be)},[be]),(0,l.jsxs)(l.Fragment,{children:[D?(0,l.jsx)(y,{autoComplete:"on",wrapperClass:`capsule-group__search ${D?"has-search":""}`,handleOnUpdate:ct,placeholder:B,"aria-label":B,"aria-labelledby":_||void 0,"aria-describedby":F||void 0}):null,(0,l.jsx)("div",{className:`capsule-group-nested ${D||W?"has-search":""}`,role:"group","aria-labelledby":_||void 0,"aria-describedby":F||void 0,children:Z?(0,l.jsx)(n.Rh,{}):(0,l.jsx)(l.Fragment,{children:!Q||(0,A.A)(Q)?(0,l.jsx)(we,{}):(0,l.jsxs)("div",{className:"capsule-group-wrapper",children:[(0,l.jsx)(b.A,{timeout:3e3,classNames:"move",appear:!0,unmountOnExit:!0,in:We,children:be?(0,l.jsxs)("div",{className:"nested-capsules-selected-data move",children:[(0,l.jsx)("h2",{id:le,children:"Selected Options"}),(0,l.jsx)(s.z,{data:ce,role:"group",labelledBy:le,handleOnUpdate:ye=>{T(ye),oe(ye)},isBlockView:!1,selectedItemsFromParent:ce,dismissiblePill:!0})]}):(0,l.jsx)(l.Fragment,{})},"selected-item"),W?(0,l.jsx)(m.A,{className:`capsule-divider ${be?"has-selection":""}`}):null,Oe?(0,l.jsxs)("div",{className:"featured-section",children:[(0,l.jsxs)("div",{className:"section-title",children:["Featured ",U," ",ie?`by ${ie}`:""]}),(0,l.jsx)("div",{className:"featured-list pills",children:Q.map(ye=>{const{children:tt}=ye,Te=`cpsule-nested-group-${ye.id}`,Je=tt==null?void 0:tt.filter(Ue=>Ue==null?void 0:Ue.feature);return Je!=null&&Je.length?(0,l.jsx)(s.z,{data:Je,handleOnUpdate:Ue=>{Me(ye.id,Ue)},role:"group",isBlockView:!1,labelledBy:Te+"-label",dontShowParentDiv:!0,selectedItemsFromParent:Array.isArray(ce)?ce.filter(Ue=>Ue.groupId===ye.id):[]},Te):""})}),xe?(0,l.jsx)("div",{className:"section-title margin-bottom-0",children:V}):null]}):null,Q.map(ye=>{const{label:tt,children:Te}=ye,Je=`cpsule-nested-group-${ye.id}`,Ue=Te==null?void 0:Te.filter(_e=>!(_e!=null&&_e.feature));return Ue!=null&&Ue.length?(0,l.jsxs)("div",{className:"capsule-group",children:[(0,l.jsx)("h2",{className:"capsule-group__heading",id:Je+"-label",children:(0,l.jsxs)("span",{className:"text",children:[tt," ",$?`(${Ue.length})`:""]})}),(0,l.jsx)(s.z,{data:Te==null?void 0:Te.filter(_e=>!(_e!=null&&_e.feature)),handleOnUpdate:_e=>{Me(ye.id,_e)},role:"group",isBlockView:K,labelledBy:Je+"-label",selectedItemsFromParent:Array.isArray(ce)?ce.filter(_e=>
5_e.groupId===ye.id):[],enableAlphabeticalGrouping:$&&Q.length===1})]},ye.id):""})]})})})]})},M=c.memo(E),S="https://cdn.peoplegrove.com/admin/1672739538737empty-result-icon.svg",P=()=>(0,l.jsxs)("div",{className:"no-results",children:[(0,l.jsx)("img",{src:S,alt:"No Results"}),(0,l.jsx)("h2",{children:"Oops! no results found..."}),(0,l.jsx)("p",{children:"Please try another search"})]}),H=({data:O=[],isBlockView:K,handleOnUpdate:T=k=>{},showSelectedOptions:D=!1,placeholder:W="Search...",selectedItemsFromParent:B=[]})=>{const[k,_]=(0,c.useState)(O);let F=(0,c.useRef)([]);(0,c.useEffect)(()=>{(0,A.A)(F.current)&&(0,A.A)(k)&&!(0,A.A)(O)&&(_(O),F.current=O)},[O,k]);const U=c.useCallback(Z=>{if(!Z)return _(O);const G=(0,p.A)(O).filter(ie=>{if(ie.label&&ie.label.toLowerCase().includes(Z.toLowerCase()))return!0});_(G)},[O]),V=D&&Array.isArray(B)&&!(0,A.A)(B);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(y,{wrapperClass:"capsule-group__search has-search",handleOnUpdate:U,placeholder:W}),(0,l.jsx)("div",{className:"capsule-group-nested has-search",children:(0,A.A)(k)?(0,l.jsx)(P,{}):(0,l.jsxs)("div",{className:"capsule-group-wrapper",children:[(0,l.jsx)(b.A,{timeout:3e3,classNames:"move",appear:!0,unmountOnExit:!0,in:V,children:V?(0,l.jsxs)("div",{className:"nested-capsules-selected-data move",children:[(0,l.jsx)("h2",{children:"Selected Options"}),(0,l.jsx)(s.z,{data:B,handleOnUpdate:Z=>{T(Z)},isBlockView:!1,selectedItemsFromParent:B,dismissiblePill:!0})]}):(0,l.jsx)(l.Fragment,{})},"selected-item"),D?(0,l.jsx)(m.A,{className:`capsule-divider ${V?"has-selection":""}`}):null,(0,l.jsx)("div",{className:"capsule-group",style:{marginTop:"24px"},children:(0,l.jsx)(s.z,{data:k,handleOnUpdate:T,isBlockView:K,selectedItemsFromParent:B})})]})})]})},L=c.memo(H)},263775:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(715621);const s={};var l=t(537953),a=t(205369),h=t(939291);const{Option:A}=a.A,o=({options:g,onChange:x,rowLabelKey:p,rowValueKey:c,allowSearchByLabel:v=!1,...n})=>{const i=(f,y)=>{const{children:m}=y.props;return!!m.toLowerCase().includes(f.toLowerCase())};return v?(0,e.jsx)(a.A,{mode:"multiple",placeholder:"Please select",onChange:x,filterOption:i,...n,children:g.map((f,y)=>(0,e.jsx)(A,{value:(0,h.A)(f,c),children:(0,h.A)(f,p)},y))}):(0,e.jsx)(a.A,{mode:"multiple",placeholder:"Please select",onChange:x,...n,children:g.map((f,y)=>(0,e.jsx)(A,{value:(0,h.A)(f,c),children:(0,h.A)(f,p)},y))})}},264303:(q,N,t)=>{t.d(N,{A:()=>B});var e=t(715621),s=t(537953),l=t(163081),a=t(145926),h=t(248883),A=t(90570),C=t(226898),o=t(882653),g=t(447691),x=t(356029),p=t(839050),c=t(127122),v=t(875379),n=t(425170),i=t(56454),f=t(289607),y=t(106034),m=t(418357),b=t(704422),u=t(34910);const d={tertiary_cta:"tertiary_cta__gu14b",mobile_footer:"mobile_footer__Vsxtb",mobile_footer_single_button:"mobile_footer_single_button__uOU87"},E=({buttonConfig:k})=>{const{submit:_,cancel:F}=k,U=(0,p.al)();let V="";return U&&F?V=d.mobile_footer:U&&!F&&(V=d.mobile_footer_single_button),(0,e.jsxs)("div",{className:V,children:[F&&(0,e.jsx)(h.$n,{type:"tertiary",onClick:F.onClick,"aria-label":F.ariaLabel,className:d.tertiary_cta,children:F.label}),(0,e.jsx)(h.$n,{type:"primary",color:"blue",onClick:_.onClick,disabled:_.disabled,"aria-label":_.ariaLabel,children:_.label})]})};var M=t(866388),S=t(98404);const P={"bg-primary-xlight":"bg-primary-xlight__eA48n","bg-primary-light":"bg-primary-light__qLfF8","bg-primary":"bg-primary__8GpkP","bg-primary-dark":"bg-primary-dark__eKLxP","bg-primary-xdark":"bg-primary-xdark__iQyvm","bg-secondary-xlight":"bg-secondary-xlight__rQpsh","bg-secondary-light":"bg-secondary-light__PYche","bg-secondary":"bg-secondary__ZVfF9","bg-secondary-dark":"bg-secondary-dark__bjbPk","bg-secondary-xdark":"bg-secondary-xdark__de5v0","bg-success-xlight":"bg-success-xlight__Hr0Ip","bg-success-light":"bg-success-light__qE2vr","bg-success":"bg-success___WQhQ","bg-success-dark":"bg-success-dark__UqCv2","bg-success-xdark":"bg-success-xdark__o0dVL","bg-info-xlight":"bg-info-xlight__E6qhf","bg-info-light":"bg-info-light__hN1si","bg-info":"bg-info__H9zci","bg-info-dark":"bg-info-dark__csKw7","bg-info-xdark":"bg-info-xdark__bpC2B","bg-warning-xlight":"bg-warning-xlight__J_4gG","bg-warning-light":"bg-warning-light__aYHxC","bg-warning":"bg-warning__ktqc6","bg-warning-dark":"bg-warning-dark__B4JsS","bg-warning-xdark":"bg-warning-xdark__w7xrt","bg-alert-xlight":"bg-alert-xlight__N3m4l","bg-alert-light":"bg-alert-light__ETRvh","bg-alert":"bg-alert__VPkzL","bg-alert-dark":"bg-
5alert-dark__nPRdJ","bg-alert-xdark":"bg-alert-xdark__QnojN","bg-danger-xlight":"bg-danger-xlight__xazhe","bg-danger-light":"bg-danger-light__BsmzT","bg-danger":"bg-danger__RQShY","bg-danger-dark":"bg-danger-dark__RQnZd","bg-danger-xdark":"bg-danger-xdark__U_vtn",modalContent:"modalContent__yavUT",phoneInputHeading:"phoneInputHeading__VSIdZ"},L=({onPhoneChange:k=()=>{},onPhoneErrorChange:_=()=>{}})=>{const F=(0,p.iZ)(),[U,V]=(0,s.useState)(F.smsNumber),[Z,$]=(0,s.useState)(!1),G=le=>{k(le),V(le)},ie=le=>{_(le),$(le)};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("h2",{className:P.modalContent,tabIndex:0,"aria-label":"Verify your phone number to receive notifications and important updates.",children:"Verify your phone number to receive notifications and important updates."}),(0,e.jsx)(S.A,{onChange:G,value:U,defaultCountry:"US",error:Z,onErrorChange:ie}),(0,e.jsx)(M.r,{className:P.recaptchaDisclosure,marginTop:"md",size:"sm"})]})},O={modalContentIcon:"modalContentIcon__eOJVE",modalContent:"modalContent__FuSnf",modalNumber:"modalNumber__qVks1"},T=({message:k,showHeading:_,ctaLink:F})=>{const U=(0,p.iZ)();return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:O.modalContent,children:[(0,e.jsx)(h.C0,{alt:"green checkmark icon for text notification",className:O.modalContentIcon,src:"https://cdn.peoplegrove.com/admin/1653650796810green-check.svg"}),_&&(0,e.jsxs)("p",{tabIndex:0,role:"main","aria-label":U.smsNumber+" is now verified. "+k,children:[(0,e.jsx)("span",{className:O.modalNumber,children:U.smsNumber})," ","is now verified!"]}),(0,e.jsxs)("p",{children:[k," ",F&&(0,e.jsx)(h.$n,{type:"link",onClick:F.onClick,children:F.label}),"."]})]})})},D={verify_modal_layot:"verify_modal_layot__Y5Vuo",verify_modal_message:"verify_modal_message__l90RH",modal_title:"modal_title__wxZgO"},B=({isFullScreen:k=!1,noPadding:_=!1,otpInput:F=6,id:U,onClose:V=()=>{},onPhoneSubmit:Z=G=>{},onVerifyOTP:$=G=>{}})=>{const[G,ie]=(0,g.r)(),[le]=(0,g.F)(),[ce,oe]=(0,s.useState)(!1),[Q,ne]=(0,s.useState)(""),[Oe,je]=(0,s.useState)(!1),[xe,dt]=(0,s.useState)(""),[We,Pe]=(0,s.useState)(1),[Le,Me]=(0,s.useState)(!1),ct=(0,s.useRef)(),we=(0,a.W6)(),be=(0,y.A)(),ye=(0,x.E)(),tt=(0,l.useDispatch)(),Te=(0,p.iZ)(),Je=(0,f.A)(),Ue=(0,p.al)(),_e=(0,b.A)(),bt=(0,m.A)({handleSuccess:()=>{ie(u.NY.SMS_NUMBER_ACTIVE),oe(!1)}}),{mutate:wt}=(0,c.i)({onSuccess:(Bt,Kt)=>{const{isResend:Ot}=Kt||{isResend:!1};Ot&&(Pe(hs=>hs<3?hs+1:hs),Me(!0)),Z(Q)},onError:Bt=>{var Kt,Ot;const hs=Bt==null?void 0:Bt.response,Es=(Kt=hs==null?void 0:hs.data)==null?void 0:Kt.message;(Ot=Es==null?void 0:Es.includes)!=null&&Ot.call(Es,"Needs to be a valid phone number")||(Es==="OTP already sent!"?dt(Es):(0,i.L2)(Es)&&(dt(Es),(0,n.mei)(i.QZ,"error",Es)))}}),{mutate:ls}=(0,c.x)({onSuccess:(Bt,Kt)=>{$(Kt.otp),ye({pgAnalytics:"Secondary Contact: Added Successfully",pgAnalyticsFromPage:"Inbox",pgAnalyticsContactType:"PhoneNumber"}),!Object.keys(_e).every(hs=>!!_e[hs].sms)||(0,A.A)(_e)?ie(u.NY.SMS_NUMBER_NOTIFICATION_DISABLED):ut()},onError:Bt=>{var Kt;const Ot=Bt==null?void 0:Bt.response,hs=(Kt=Ot==null?void 0:Ot.data)==null?void 0:Kt.message;dt(hs)}}),{mutate:us,isLoading:Xt}=(0,v.Q)({onSuccess:(Bt,Kt)=>{ye({pgAnalytics:"Secondary Contact: Enter Contact",pgAnalyticsFromPage:"Inbox",pgAnalyticsContactType:"PhoneNumber"}),tt((0,C.oaM)(Q)),ie(u.NY.SMS_NUMBER_NOT_VERIFIED)},onError:Bt=>{je(!0)}});(0,s.useEffect)(()=>{const Bt={SMS_NUMBER_MISSING:u.NY.SMS_NUMBER_MISSING,SMS_NUMBER_NOT_VERIFIED:u.NY.SMS_NUMBER_NOT_VERIFIED,SMS_NUMBER_NOTIFICATION_DISABLED:u.NY.SMS_NUMBER_NOTIFICATION_DISABLED,SMS_NUMBER_NOTIFICATION_ENABLED:u.NY.SMS_NUMBER_NOTIFICATION_ENABLED};oe(!!Object.values(Bt).includes(G||"")),ne(Te.smsNumber?Te.smsNumber:""),Te.smsNumber&&G===u.NY.SMS_NUMBER_NOT_VERIFIED&&(ye({pgAnalytics:"Secondary Contact: Send Code",pgAnalyticsFromPage:"Inbox"}),wt({isResend:!1,type:"sms",value:Te.smsNumber}))},[G,Te.smsNumber,wt]);const ut=(Bt=!1)=>{if(Bt){oe(!1);return}V(),G===u.NY.SMS_NUMBER_NOTIFICATION_DISABLED?ye({pgAnalytics:"Secondary Contact: Opt In",pgAnalyticsFromPage:"Inbox",pgAnalyticsIsOpted:!1}):ye({pgAnalytics:"Secondary Contact: Decline Contact",pgAnalyticsFromPage:"Inbox",pgAnalyticsContactType:"PhoneNumber"}),le==="inbox"&&be(),ie(u.NY.SMS_NUMBER_TEMPLATE_TIP_DISMISSED),oe(!1)},$t=()=>{ye({pgAnalytics:"Secondary Contact: Verify Contact",pgAnalyticsFromPage:"Inbox",pgAnalyticsContactType:"PhoneNumber",pgAnalyticsCTA:"Resend"}
5),wt({isResend:!0,type:"sms",value:Q})},As=()=>{Oe||us({smsNumber:Q,source:"inboxSmsTip",hubId:Je==null?void 0:Je.hub})},kt=()=>{var Bt;if(xe)return;const Kt=(Bt=ct==null?void 0:ct.current)==null?void 0:Bt.getOTP();if(Kt.length!==F){dt("Invalid OTP");return}ls({otp:Kt})},Wt=()=>({submit:{onClick:()=>{ut()},label:"Submit",disabled:!1},cancel:{onClick:()=>{ut()},label:"Cancel"}});let pt,Yt,qt=Wt();switch(G){case u.NY.SMS_NUMBER_NOT_VERIFIED:Yt="Verify phone number",pt=(0,e.jsxs)("div",{className:D.verify_modal_layot,children:[(0,e.jsxs)("h2",{className:D.verify_modal_message,children:[(0,e.jsxs)("span",{role:"log",children:["Enter the verification code sent to ",(0,e.jsx)("b",{children:Q}),"."]})," ",(0,e.jsx)(h.$n,{type:"link",onClick:()=>{ye({pgAnalytics:"Secondary Contact: Verify Contact",pgAnalyticsFromPage:"Inbox",pgAnalyticsContactType:"PhoneNumber",pgAnalyticsCTA:"Wrong Phone Number"}),ie(u.NY.SMS_NUMBER_MISSING)},children:"Try another number"})]}),(0,e.jsx)(o.A,{ref:ct,inputs:F,isLoading:Xt,verifyOTP:()=>{},error:xe,setError:dt,resendConfig:{resendOtpCall:$t,setOtpResent:Me,otpResendAttempts:We,otpResent:Le,MaxOtpResendAttempts:i.Ay.MaxOtpResendAttempts},header:{title:""},isModal:!1,showRecaptchaDisclosure:!0})]}),qt={submit:{onClick:kt,ariaLabel:"Click to verify otp",label:"Verify"},cancel:{onClick:()=>{ut()},label:"Cancel",ariaLabel:"Close verify otp modal"}};break;case u.NY.SMS_NUMBER_NOTIFICATION_DISABLED:pt=(0,e.jsx)(T,{message:"To receive SMS (text) notifications and important updates, turn on your preferences. You can change this later in My Preferences",showHeading:!0}),Yt="Turn on SMS Notification",qt={submit:{onClick:bt,label:"Turn on",ariaLabel:"Turn on sms notifications"},cancel:{onClick:()=>{ut()},label:"Not now",ariaLabel:"Close sms notification modal"}};break;case u.NY.SMS_NUMBER_NOTIFICATION_ENABLED:pt=(0,e.jsx)(T,{message:"You\u2019ll now receive SMS (text) notifications for messages, upcoming meetings, and other updates. You can change this later in",showHeading:!1,ctaLink:{label:"My Preferences",onClick:()=>{ut(!0),ie(u.NY.SMS_NUMBER_ACTIVE),we.push("/preferences/notifications")}}}),Yt="Notifications turned on",qt={submit:{onClick:()=>{ut(!0),ie(u.NY.SMS_NUMBER_ACTIVE)},label:"OK",ariaLabel:"Close sms notification modal"}};break;case u.NY.SMS_NUMBER_MISSING:pt=(0,e.jsx)(L,{onPhoneChange:ne,onPhoneErrorChange:je}),Yt="Add Phone Number",qt={submit:{onClick:As,label:Ue?"Verify":"Send verification code",disabled:!Q,ariaLabel:`Send verification code to ${Q}`},cancel:{onClick:()=>{ut()},label:"Cancel",ariaLabel:"Close phone number modal"}};break}return(0,e.jsx)(h.aF,{title:(0,e.jsx)("div",{className:D.modal_title,children:Yt}),onClose:()=>{ut()},open:ce,id:U,behaviour:Ue?"bottom-up":"grow",isFullScreen:k,noPadding:_,role:"dialog",tabIndex:-1,disableBackdropClose:!0,footer:(0,e.jsx)(E,{buttonConfig:qt}),children:pt})}},265348:(q,N,t)=>{t.d(N,{X:()=>A,h:()=>C});var e=t(145926),s=t(686993),l=t(30249),a=t(90486);const h=(0,s.eU)(!1);h.debugLabel="isSupportWidgetOpen";const A=()=>(0,l.fp)(h),C=()=>{const o=(0,l.Xr)(h),[g]=(0,a.R)(),x=(0,e.W6)();return p=>{if(p&&g.hasError&&!g.isVerified){const c=new URLSearchParams(window.location.search);c.set("modal","emailVerify"),x.push({search:c.toString()});return}o(p)}}},272159:(q,N,t)=>{t.d(N,{A:()=>u});var e=t(715621),s=t(537953),l=t(248883),a=t(768835),h=t(442967),A=t(407512),C=t(839050),o=t(425170),g=t(40415),x=t(89486),p=t(384964);const v=({item:d,setShowKey:I})=>{const{id:E,title:M,slug:S,isSkipped:P}=d,H=(0,x.N)(),L=(0,C.al)(),O=(0,C.er)(),K=(0,C.Ww)(),T=(0,A.j)(),W=(0,o.XNF)(L,O)||K,B=g.F[S],{secondaryClickAction:k}=B||{},_=T(k,d),F=P?"Restore":"Skip for now",{mutate:U}=(0,p.V)({onSuccess:()=>{setTimeout(()=>{I("")},200)}}),V=(0,s.useCallback)(G=>{const ie=P?"Restore":"Skip";return I(G),H({pgAnalyticsCTA:`${ie}: ${M}`}),U({actionId:G,action:ie})},[P,I,M,H,U]),Z=(0,s.useMemo)(()=>({type:"ghost","aria-label":`${M} - Options`,style:{padding:"0px",minWidth:"unset",height:"28px"}}),[M]),$=(0,s.useMemo)(()=>{const G=[{label:F,key:F,onClick:()=>V(E),icon:P?"pg-reply":"pg-clock-arrow"}],ie="Mark as done";return d.slug==="custom_manual_action"&&G.push({label:ie,key:ie,onClick:()=>_(),icon:"pg-check"}),G},[F,P,d.slug,V,E,_]);return(0,e.jsx)(l.TE,{items:$,buttonProps:Z,position:"right",...W?{getContainer:G=>G&&G.parentNode?G.parentNode:document.body}:{},children:(0,e.jsx)(l.C0,{src:"https://cdn.peoplegrove.com/admin/1697454756832dots-vertical.svg","aria-hidden":!0})})},n={checklistItem:"checklistItem__Pe8hI",checked:"checked__gcgXx",container:"container__LSHvr",mainContainer:"mainContainer__zDig4",flexContainer:"flexContainer__SkWcB",labelWrapper:"labelWrapper__R2DLM",itemTitle:"itemTitle__wPOk_",itemDescription:"itemDescription__FVyfl",isCompleted:"isCompleted__xRian",checkMarkWrapper:"checkMarkWrapper__COnto",unChecked:"unChecked__zdYtM",skipMenu:"skipMenu__F72Oy",skipMenuItem:"skipMenuItem__Rg1yG",transition:"transition__yYxJs",start:"start__UkV2k",end:"end__KhuCc",checklist:"checklist__NYkUB",transitionLeave:"transitionLeave__Nk92n",divider:"divider__KwqbW"},i=({onClick:d,item:I})=>{const{id:E,isCompleted:M,title:S,description:P,isSkipped:H}=I;return(0,e.jsxs)("div",{className:n.container,onClick:d,onKeyPress:h.Qx,children:[M?(0,e.jsx)("div",{className:n.checkMarkWrapper,children:(0,e.jsx)(l.C0,{src:"https://cdn.peoplegrove.com/admin/1638166726396checkmark.svg",alt:"completed"})}):(0,e.jsx)("span",{className:n.unChecked}),(0,e.jsxs)("div",{className:(0,a.A)(n.labelWrapper,{[n.skippedItemLabel]:H}),children:[(0,e.jsx)("span",{className:n.itemTitle,role:M?void 0:"button",tabIndex:M?-1:0,"aria-label":`${S} - ${H?"skipped":"pending"} `,children:S}),P&&(0,e.jsx)("span",{className:n.itemDescription,children:P})]})]})},y=({item:d,showKey:I,setShowKey:E,mounted:M})=>{const{id:S,isCompleted:P,onClick:H,isSkipped:L}=d,O={enter:(0,a.A)(n.transition,{[n.checklist]:!P&&!L}),enterFrom:n.start,enterTo:n.end,leave:(0,a.A)(n.transitionLeave,{[n.checklist]:!P&&!L}),leaveFrom:n.start,leaveTo:n.end};return(0,e.jsxs)(l.eB,{as:"li",show:I!==S,appear:M,...P?{}:O,className:(0,a.A)(n.checklistItem,{[n.checked]:P,[n.skippedItem]:L}),children:[(0,e.jsx)(i,{onClick:H,item:d}),!P&&(0,e.jsx)(v,{item:d,setShowKey:E})]},P?`${S}-completed`:S)};var m=t(537953);function b({checkListItems:d}){const[I,E]=m.useState(0),[M,S]=m.useState(!1);return(0,s.useEffect)(()=>{setTimeout(()=>S(!0),0)},[]),(0,e.jsx)(e.Fragment,{children:d.map((P,H)=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(y,{item:P,showKey:I,setShowKey:E,mounted:M},P.id),H<d.length-1&&(0,e.jsx)(l.cG,{className:n.divider})]}))})}const u=b},281308:(q,N,t)=>{t.d(N,{A:()=>C});var e=t(715621),s=t(537953),l=t(248883),a=t(768835);const h={wrapper:"wrapper__F8Kc8",tracks:"tracks__DzbLb",track:"track__RFweb",slideBtn:"slideBtn__wQQn0"},C=({children:o,className:g,length:x})=>
5{const[p,c]=(0,s.useState)(0),[v,n]=(0,s.useState)(!1),[i,f]=(0,s.useState)(!1),y=(0,s.useRef)(null),m=12;(0,s.useEffect)(()=>{const d=y.current;d&&d.scrollWidth>d.clientWidth&&n(!0)},[x]);const b=()=>{var d;const I=(d=y.current)==null?void 0:d.children[p],E=y.current;f(!0),I&&(c(M=>M+1),E==null||E.scroll({left:E.scrollLeft+I.clientWidth+m,behavior:"smooth"})),E&&E.scrollWidth-E.scrollLeft-E.clientWidth-E.children[0].clientWidth<m&&n(!1)},u=()=>{var d;const I=(d=y.current)==null?void 0:d.children[p-1],E=y.current;n(!0),I&&(c(M=>M-1),E==null||E.scroll({left:E.scrollLeft-I.clientWidth-m,behavior:"smooth"})),E&&E.scrollLeft-E.children[0].clientWidth<=m&&(c(0),f(!1))};return(0,e.jsx)("div",{className:(0,a.A)([h.wrapper,g,"slider-wrapper"]),children:Array.isArray(o)?(0,e.jsxs)(e.Fragment,{children:[i&&(0,e.jsx)("button",{className:`${h.slideBtn} slider-slideBtn`,"aria-label":"Previous",onClick:u,children:(0,e.jsx)(l.C0,{src:"https://cdn.peoplegrove.com/admin/1669816588653Scroll%20Arrow.svg"})}),(0,e.jsx)("div",{className:`${h.tracks} slider-tracks`,ref:y,children:o.map((d,I)=>(0,e.jsx)("div",{className:h.track,children:d},I))}),v&&(0,e.jsx)("button",{className:`${h.slideBtn} slider-slideBtn`,onClick:b,"aria-label":"Next",children:(0,e.jsx)(l.C0,{src:"https://cdn.peoplegrove.com/admin/1669816637653Scroll%20Arrow%20(1).svg"})})]}):(0,e.jsx)("div",{className:h.track,children:o})})}},283815:(q,N,t)=>{t.d(N,{A:()=>h});var e=t(163081),s=t(425170);const l=({clusterInfo:A,currentUser:C,date:o,type:g,returnFomat:x,addTime:p,timezone:c,addTimezone:v,endDate:n})=>{const i=c||(0,s.Mdf)(C,A);return(0,s.poE)(o,A,g,x,p,i,v,n)},a=({appReducer:{clusterInfo:A,currentUser:C}})=>({clusterInfo:A,currentUser:C}),h=(0,e.connect)(a)(l)},290731:(q,N,t)=>{t.d(N,{A:()=>l});var e=t(698879);const l=(0,e.A)(()=>Promise.all([t.e(2685),t.e(3206),t.e(4217)]).then(t.bind(t,20301)))},299899:(q,N,t)=>{t.d(N,{A:()=>h});var e=t(715621);const s={};var l=t(537953);const h=({className:A="",children:C="",weight:o="default",size:g="default",color:x="default",disabled:p=!1,inline:c=!1,italic:v=!1,capitalize:n=!1,boldspans:i=!1})=>{const f={size:{small:"pg-text--small",default:"",large:"pg-text--large",xlarge:"pg-text--xlarge",xxlarge:"pg-text--xxlarge",xxxlarge:"pg-text--xxxlarge",xxxxlarge:"pg-text--xxxxlarge"},weight:{light:"pg-text--light",default:"",medium:"pg-text--medium",bold:"pg-text--bold",heavy:"pg-text--heavy"},color:{"dark-gray":"pg-text--dark-gray",default:"","light-gray":"pg-text--light-gray",white:"pg-text--white",black:"pg-text--black"},italic:{true:"pg-text--italic ",false:""},disabled:{true:"pg-text--disabled ",false:""},inline:{true:"pg-text--inline ",false:""},capitalize:{true:"pg-text--capitalize ",false:""},boldspans:{true:"pg-text--boldspans ",false:""}},y=`
6    pg-text
7    ${f.color[x]}
8    ${f.size[g]}
9    ${f.weight[o]}
10    ${f.disabled[p]}
11    ${f.italic[v]}
12    ${f.inline[c]}
13    ${f.capitalize[n]}
14    ${f.boldspans[i]}
15    ${A}`;return(0,e.jsx)("p",{className:y,children:C})}},315913:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(715621),s=t(768835),l=t(243130),a=t.n(l);const h={root:"root__u6JcL",itemList:"itemList__CUfo2"};var A=t(537953);const o=({className:g,children:x,id:p,...c})=>{const v=A.useRef(0),n=A.useRef(p||a()());return A.useEffect(()=>{const i=A.Children.toArray(x).filter(Boolean).length;if(i<2)return()=>{};const f=setInterval(()=>{v.current=(v.current+1)%i;const y=document.getElementById(n.current);if(y){const m=v.current*y.getBoundingClientRect().height;y.style.setProperty("--slide",`-${m}px`)}},4e3);return()=>{clearInterval(f)}},[x]),(0,e.jsx)("div",{id:n.current,className:(0,s.A)(h.root,g),...c,children:(0,e.jsx)("div",{className:h.itemList,children:A.Children.map(x,i=>i?(0,e.jsx)("div",{className:h.item,children:i}):null)})})}},330688:(q,N,t)=>{t.d(N,{A:()=>h});var e=t(715621),s=t(248883);const l="https://cdn.peoplegrove.com/admin/1716889785945user-group-v2.svg",h=({width:A=24,height:C=24})=>(0,e.jsx)(s.C0,{src:l,width:A,height:C})},350483:(q,N,t)=>{t.d(N,{A:()=>h});var e=t(715621),s=t(537953);const l={},h=A=>{const{user:C={}}=A,g=C&&C.isAdmin&&(!localStorage.getItem("is_prod_login")||localStorage.getItem("is_prod_login")&&JSON.parse(localStorage.getItem("is_prod_login"))),[x,p]=(0,s.use
15State)(g);(0,s.useEffect)(()=>{g&&localStorage.setItem("is_prod_login",!0)},[]);const c=()=>{localStorage.setItem("is_prod_login",!1),p(!1)};return x?(0,e.jsxs)("div",{className:"alert-ribbon",children:[(0,e.jsx)("div",{className:"close-icon",role:"button",onClick:c,children:(0,e.jsx)("em",{className:"campuskudos-cross"})}),"Superadmin on Prod Site"]}):null}},354666:(q,N,t)=>{t.d(N,{hY:()=>A,_g:()=>a,y4:()=>x,aG:()=>p,gR:()=>o});var e=t(686993),s=t(30249);const l=(0,e.eU)("");l.debugLabel="searchAlertName";const a=()=>(0,s.fp)(l),h=(0,e.eU)(null);h.debugLabel="searchAlertFrequency";const A=()=>(0,s.fp)(h),C=(0,e.eU)(!1);C.debugLabel="showSearchAlert";const o=()=>(0,s.fp)(C),g=(0,e.eU)("create-new-alert");g.debugLabel="searchAlertTab";const x=()=>(0,s.fp)(g),p=()=>(0,s.Xr)(g)},365739:(q,N,t)=>{t.d(N,{I:()=>l});var e=t(537953);const s='textarea[name="g-recaptcha-response"]',l=a=>{(0,e.useEffect)(()=>{if(a)return;const h=()=>{document.querySelectorAll(s).forEach(o=>{o.hasAttribute("aria-label")||o.hasAttribute("aria-labelledby")||o.id&&!!document.querySelector(`label[for="${o.id}"]`)||o.setAttribute("aria-label","reCAPTCHA verification response")})};h();const A=new MutationObserver(h);return A.observe(document.body,{childList:!0,subtree:!0}),()=>A.disconnect()},[a])}},367803:(q,N,t)=>{t.d(N,{A:()=>x});var e=t(715621),s=t(248883),l=t(768835),a=t(442967),h=t(950633);const A={[h.GI]:{connections:{liked:"You liked this recommendation!",default:p=>`Is this connection a helpful recommendation for the ${p} Career Path?`,success:"Thanks for your feedback! We'll continue to recommend similar connections.",error:"Thanks for your feedback! We won't recommend this connection for this Career Path."},opportunities:{liked:"You liked this recommendation!",default:p=>`Is this a relevant opportunity for the ${p} Career Path?`,success:"Thanks for your feedback! We'll continue to recommend similar connections.",error:"Thanks for your feedback! We'll remove this specific opportunity for this Career Path."}},[h.te]:{connections:{liked:"You liked this recommendation!",default:(p,c)=>`Is this ${(c==null?void 0:c.toLowerCase())||"student"} relevant to you?`,success:"Thanks for your feedback! We'll continue to recommend similar students.",error:"Thanks for your feedback! We'll not recommend this student in the future."}},[h._3]:{question:{liked:"You liked this question!",default:p=>"Is this question relevant?",success:"Thanks for your feedback! We'll continue to recommend similar questions.",error:"Thanks for your feedback! We'll not recommend this question in the future."}},[h.MY]:{careerSuggestions:{liked:"You liked this career suggestion!",default:p=>"Is this career suggestion relevant?",success:"Thanks for your feedback! We'll continue to recommend similar career suggestions.",error:"Thanks for your feedback! We'll not recommend this career suggestion in the future."}}};var C=t(617041);const o={feedbackBar:"feedbackBar__sA4nf",success:"success__SyklM",questionText:"questionText__JVLcR",error:"error__JYllf",contentWrapper:"contentWrapper__c8o9k",happyResultIcon:"happyResultIcon__MNZj5",actions:"actions__VDxkQ",disabledButton:"disabledButton__Adrtw",undoAction:"undoAction__OfqMr",divider:"divider__Ea5BY"},x=({onVoteSubModule:p,subModuleId:c,subModule:v,isLiked:n,voteStatus:i,careerPathTitle:f,subModuleType:y,className:m="",id:b="",module:u=h.GI,showEmojis:d=!0,mlRank:I,userType:E=""})=>{const M=(0,C.E)(i),S=M===!0,P=M===!1,H={subModule:v,subModuleId:c,...y?{subModuleType:y}:{},mlRank:I},L=W=>{const B=()=>d?S?(0,e.jsx)(s.C0,{src:"https://cdn.peoplegrove.com/admin/1666949508737smiley.svg",className:o.happyResultIcon}):P?(0,e.jsx)(s.C0,{src:"https://cdn.peoplegrove.com/admin/1676539382969Icon.svg"}):null:null;return(0,e.jsxs)("div",{className:o.contentWrapper,children:[B(),W]})},O=()=>{const W=!(S||P);return n&&W?A[u][v].liked:W?A[u][v].default(f!=null?f:"",E):S?A[u][v].success:P?A[u][v].error:""},K=(0,e.jsx)("div",{className:o.questionText,children:O()}),T=S||P?(0,e.jsx)("button",{className:o.undoAction,onClick:()=>{p({...H,liked:null})},children:"Undo"}):null,D=S||P?null:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n,{"aria-label":"Yes",size:"small",className:(0,l.A)({[o.disabledButton]:n||S}),onKeyDown:a.Qx,onClick:()=>{n||S||p({...H,liked:!0})},disabled:n||S,useIconStroke:!1,type:"ghost",children:"Yes"}),(0,e.jsx)("div",{className:o.divider}),(0,e.jsx)(s.$n,{"aria-label":"No",size:"small",onKeyDown:a.Qx,onClick:()=>{p({...H,liked:!1}
15)},type:"ghost",children:"No"})]});return(0,e.jsxs)("fieldset",{id:b,className:(0,l.A)([o.feedbackBar],{[o.success]:S,[o.error]:P},m),children:[(0,e.jsx)("legend",{className:"sr-only",children:O()}),L(K),(0,e.jsxs)("div",{className:o.actions,children:[T,D]})]})}},377565:(q,N,t)=>{t.d(N,{A:()=>A});var e=t(715621),s=t(248883),l=t(768835);const a={"bg-primary-xlight":"bg-primary-xlight__Gqn6N","bg-primary-light":"bg-primary-light__uDpxA","bg-primary":"bg-primary__CHpzu","bg-primary-dark":"bg-primary-dark__XE6Yu","bg-primary-xdark":"bg-primary-xdark__gKlnP","bg-secondary-xlight":"bg-secondary-xlight__jczHU","bg-secondary-light":"bg-secondary-light__dp6qf","bg-secondary":"bg-secondary__LLAQT","bg-secondary-dark":"bg-secondary-dark__fPep2","bg-secondary-xdark":"bg-secondary-xdark__ipjgw","bg-success-xlight":"bg-success-xlight__cB9iE","bg-success-light":"bg-success-light__D8Ljq","bg-success":"bg-success__yzyXV","bg-success-dark":"bg-success-dark__LbtA5","bg-success-xdark":"bg-success-xdark__xCMdN","bg-info-xlight":"bg-info-xlight__gyBOI","bg-info-light":"bg-info-light__YwWxG","bg-info":"bg-info__D7oM8","bg-info-dark":"bg-info-dark__eaI16","bg-info-xdark":"bg-info-xdark__uC7NG","bg-warning-xlight":"bg-warning-xlight__YLq6K","bg-warning-light":"bg-warning-light__bRzZY","bg-warning":"bg-warning__CeyAg","bg-warning-dark":"bg-warning-dark__yF6JO","bg-warning-xdark":"bg-warning-xdark__CGm1A","bg-alert-xlight":"bg-alert-xlight__Kl4BA","bg-alert-light":"bg-alert-light__Lx44a","bg-alert":"bg-alert__HXaHL","bg-alert-dark":"bg-alert-dark__tJV1a","bg-alert-xdark":"bg-alert-xdark__jm1sp","bg-danger-xlight":"bg-danger-xlight__Cn2Uv","bg-danger-light":"bg-danger-light___O9as","bg-danger":"bg-danger__R0VC9","bg-danger-dark":"bg-danger-dark__XX0aS","bg-danger-xdark":"bg-danger-xdark__AFPgE",bookmarkIcon:"bookmarkIcon__lNjWi",rootIcon:"rootIcon__B5zAC",dark:"dark___iNfy",active:"active__hZGfc",light:"light__L8A4q",mobileIcon:"mobileIcon__YxYHC"};function h({isBookmarked:C,onBookmarkClick:o,className:g,ariaLabel:x="Bookmark Icon",isMobile:p,tabIndex:c,theme:v="dark"}){return(0,e.jsx)(s.K0,{className:(0,l.A)(a.bookmarkIcon,a[v],p&&a.mobileIcon,g,{[a.active]:C}),onClick:o,"aria-label":x,"aria-pressed":C,tabIndex:c,icon:"pg-bookmark-o",iconProps:{size:16,className:a.rootIcon}})}const A=h},380367:(q,N,t)=>{t.d(N,{A:()=>e});const e={"bg-primary-xlight":"bg-primary-xlight__j4Vvc","bg-primary-light":"bg-primary-light__oNF9q","bg-primary":"bg-primary__u649s","bg-primary-dark":"bg-primary-dark__l2LPh","bg-primary-xdark":"bg-primary-xdark__eo3lk","bg-secondary-xlight":"bg-secondary-xlight__O3Y36","bg-secondary-light":"bg-secondary-light__kDpuL","bg-secondary":"bg-secondary__OsJiq","bg-secondary-dark":"bg-secondary-dark__j8hlO","bg-secondary-xdark":"bg-secondary-xdark__d3PIz","bg-success-xlight":"bg-success-xlight__TGL85","bg-success-light":"bg-success-light__Pt7er","bg-success":"bg-success__QbGv6","bg-success-dark":"bg-success-dark__ihaJX","bg-success-xdark":"bg-success-xdark__TtJlL","bg-info-xlight":"bg-info-xlight__IQWJC","bg-info-light":"bg-info-light__ZRuuI","bg-info":"bg-info__Fjpsy","bg-info-dark":"bg-info-dark__17K3P","bg-info-xdark":"bg-info-xdark__jhBUx","bg-warning-xlight":"bg-warning-xlight__NTq7k","bg-warning-light":"bg-warning-light__AfMUu","bg-warning":"bg-warning__b6Rwa","bg-warning-dark":"bg-warning-dark__kX_pF","bg-warning-xdark":"bg-warning-xdark__UYw0T","bg-alert-xlight":"bg-alert-xlight__JxUL_","bg-alert-light":"bg-alert-light__t1_Qz","bg-alert":"bg-alert__z3hTH","bg-alert-dark":"bg-alert-dark__tLxvz","bg-alert-xdark":"bg-alert-xdark__ofaeK","bg-danger-xlight":"bg-danger-xlight__GvzQK","bg-danger-light":"bg-danger-light__oo_0y","bg-danger":"bg-danger__yrZqN","bg-danger-dark":"bg-danger-dark__okMqH","bg-danger-xdark":"bg-danger-xdark__gBGeE",title:"title__avdte",subTitle:"subTitle__lmiHL",description:"description__w59jD",questionHeader:"questionHeader__OVv9r",charLimit:"charLimit__pkCuz",submitBtn:"submitBtn__C71Bl",error:"error__bQ2ov",errorMsg:"errorMsg__rv2fm",textAreaEnhancing:"textAreaEnhancing__h1z0q",textArea:"textArea__ihSDr",textAreaFooter:"textAreaFooter__UWi_8",textAreaLoader:"textAreaLoader__HHF_K",
15icon:"icon__shoKn",text:"text__yriZw",dotty:"dotty__ku4af",textAreaFooterWrapper:"textAreaFooterWrapper__QIvMu",root:"root__OoUBn",charCounter:"charCounter__QKVIF",charCounter__gtMaxLimit:"charCounter__gtMaxLimit__lbsZB",enhanceBtn:"enhanceBtn__eLW_n",undoBtn:"undoBtn__yNwVL",enhanceBtnContainer:"enhanceBtnContainer__HsJCD",enhanceBtnTooltip:"enhanceBtnTooltip__CX7GN",subText:"subText__T425k",note:"note__MFD9S",radioButtons:"radioButtons__lVW_I",charCount:"charCount__p3tgp",textAreaWrapper:"textAreaWrapper___iKOt",linkButton:"linkButton__CRlfP",templatesContainer:"templatesContainer__K3mwq",chip:"chip__i9RDq",chip__selected:"chip__selected__uE4rI",active:"active__lyovg"}},384204:(q,N,t)=>{t.d(N,{A:()=>g});var e=t(715621),s=t(537953),l=t(768835),a=t(939291),h=t(496292);const A={"bg-primary-xlight":"bg-primary-xlight__NyISA","bg-primary-light":"bg-primary-light__mqPwR","bg-primary":"bg-primary__S3FGu","bg-primary-dark":"bg-primary-dark__NtNsz","bg-primary-xdark":"bg-primary-xdark__dPOo2","bg-secondary-xlight":"bg-secondary-xlight__Mxa7z","bg-secondary-light":"bg-secondary-light__u8Tll","bg-secondary":"bg-secondary__GSy_f","bg-secondary-dark":"bg-secondary-dark__MpRVV","bg-secondary-xdark":"bg-secondary-xdark__IF91j","bg-success-xlight":"bg-success-xlight__DBY60","bg-success-light":"bg-success-light__vUTQ5","bg-success":"bg-success__YG9Cm","bg-success-dark":"bg-success-dark__O7a3A","bg-success-xdark":"bg-success-xdark__yRStV","bg-info-xlight":"bg-info-xlight__nL9UT","bg-info-light":"bg-info-light__qVZU_","bg-info":"bg-info__ygeLn","bg-info-dark":"bg-info-dark__nqnHB","bg-info-xdark":"bg-info-xdark__xsaz9","bg-warning-xlight":"bg-warning-xlight__EVlcV","bg-warning-light":"bg-warning-light___pxU1","bg-warning":"bg-warning__QX5qk","bg-warning-dark":"bg-warning-dark__V1UAf","bg-warning-xdark":"bg-warning-xdark__sb7e4","bg-alert-xlight":"bg-alert-xlight__tzQA7","bg-alert-light":"bg-alert-light__qx794","bg-alert":"bg-alert__mG2uT","bg-alert-dark":"bg-alert-dark__UVA0s","bg-alert-xdark":"bg-alert-xdark__xVMRm","bg-danger-xlight":"bg-danger-xlight__vGoYs","bg-danger-light":"bg-danger-light__sTi8P","bg-danger":"bg-danger__EOg46","bg-danger-dark":"bg-danger-dark__uNpgY","bg-danger-xdark":"bg-danger-xdark__OEEUw",previewCardContainer:"previewCardContainer__pgtGL",previewIframe:"previewIframe__uF54m",previewCard:"previewCard__G6t6k",imageBlock:"imageBlock__R_wA5",textBlock:"textBlock__0x38b",textWebsite:"textWebsite__IGLCN",textTitle:"textTitle__O982r"};var C=t(537953);const o=({preview:x={},className:p=""})=>{const[c,v]=(0,s.useState)(null),[n,i]=(0,s.useState)(!1);if((0,s.useEffect)(()=>{x.iframe&&window.iframely&&window.iframely.load()},[x]),(0,s.useEffect)(()=>{try{const I=new URL(x.url).hostname;v(I.toUpperCase())}catch(I){}},[x.url]),!(0,h.X)(x))return null;const f=(0,a.A)(x,"url"),y=(0,a.A)(x,"iframe"),m=(0,a.A)(x,"socialSharingImage"),b=(0,a.A)(x,"socialSharingTitle"),u=(0,a.A)(x,"socialSharingText"),d=()=>{if(f){const I=window.open(f,"_blank","noopener");I&&I.focus()}};return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("div",{className:(0,l.A)(A.previewCardContainer,p),children:y?(0,e.jsx)("div",{className:A.previewIframe,dangerouslySetInnerHTML:{__html:y}}):(0,e.jsxs)("div",{className:A.previewCard,onClick:d,children:[m&&!n&&(0,e.jsx)("div",{className:A.imageBlock,children:(0,e.jsx)("img",{src:m,alt:b,onError:()=>i(!0)})}),(0,e.jsxs)("div",{className:A.textBlock,children:[c&&(0,e.jsx)("div",{className:A.textWebsite,children:c}),(0,e.jsx)("div",{className:A.textTitle,children:b}),(0,e.jsx)("div",{children:u})]})]})})})},g=C.memo(o)},385672:(q,N,t)=>{t.d(N,{J:()=>a});var e=t(686993),s=t(30249);const l=(0,e.eU)(!1);l.debugLabel="hasAiSupportWidgetAccess";const a=()=>(0,s.fp)(l)},394662:(q,N,t)=>{t.d(N,{NM:()=>h,bp:()=>C,n5:()=>o,zF:()=>A});var e=t(686993),s=t(30249);const l=(0,e.eU)(null);l.debugLabel="zendeskToken";const a=(0,e.eU)(!1);a.debugLabel="zendeskTokenValidated";const h=()=>(0,s.fp)(l),A=()=>(0,s.Xr)(l),C=()=>(0,s.fp)(a),o=()=>(0,s.Xr)(a)},395928:(q,N,t)=>{t.d(N,{A:()=>C});var e=t(715621),s=t(537953),l=t(665790),a=t(62644);const h={},A=o=>
15{const{title:g="",navBarTheme:x="light",navBackgroundColor:p="#0050b3",showNav:c=!0,native:v=!1,backButtonOnClick:n}=o,i=v?(0,e.jsx)("div",{className:"native-back-button",role:"navigation",children:(0,e.jsx)(l.A,{onClick:n,className:"nbb__btn",children:"Back"})}):(0,e.jsxs)("nav",{className:`back-button-nav ${x}`,style:{background:p},role:"navigation",children:[(0,e.jsx)(l.A,{className:"btn-link bbn__btn",onClick:n,"aria-label":"Back",children:(0,e.jsx)(a.A,{type:"left"})}),(0,e.jsx)("div",{className:"bbn__title",children:g})]});return c?i:null},C=s.memo(A)},406747:(q,N,t)=>{t.d(N,{A:()=>C});var e=t(715621),s=t(248883),l=t(243130),a=t.n(l);const h={},C=({value:o,id:g=`${a()()}-search-input`,onChange:x,applyFilter:p,title:c,placeholder:v,isMobile:n,hideTitle:i=!1,descriptionText:f="",hideDescriptionText:y=!1,disableAutoApply:m=!1,...b})=>{const u=!i&&c;return(0,e.jsxs)("div",{className:"container__search-forum",children:[u?(0,e.jsx)("label",{className:"main__forum-filter__label",htmlFor:g,id:`${g}-label`,children:c}):null,(0,e.jsx)(s.pd,{id:g,value:o,role:"searchbox",placeholder:v,onChange:x,icon:"pg-search",autocomplete:"on",onKeyUp:d=>d.key==="Enter"&&!m&&p(d),...b}),!y&&f&&(0,e.jsx)("p",{className:"description-text",children:f})]})}},407494:(q,N,t)=>{t.d(N,{A:()=>p});var e=t(715621),s=t(537953),l=t(766652),a=t(560109),h=t(805569),A=t(778402);const C={};var o=t(922109);const{Meta:g}=l.A,p=({anonymous:c=!1,description:v=null,href:n="#",line1:i=null,line2:f=null,line3:y=null,newTab:m=!1,photoUrl:b="",title:u=null,user:d=null,showHeadline:I=!1,autoBgColor:E,shape:M="circle",size:S="small",avatarClassName:P="",html:H=!1,onClickAvatar:L=()=>{},id:O})=>{c?(b="",n="#",i="Anonymous",f=null,y=null):d&&(b=d.photoUrl,i=d.fullName||d.fullname||`${d.firstName||""} ${d.lastName||""}`,f=I?d.headline:d.role?(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)("strong",{children:"Role: "}),d.role]}):null,y=d.startMonth||d.startYear?(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)("strong",{children:"Worked here: "}),d.startYear?d.startYear:null,d.endYear?` - ${d.endYear}`:d.current?" - Present":null]}):d.current?(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)("strong",{children:"Worked here: "}),"Present"]}):null);const K=(0,e.jsx)(o.A,{src:b,alt:i,autoBgColor:E,shape:M,size:S,onClick:L,className:P,id:O||d.id,user:d});return i=H?(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,A.a)(i)}}):i,f=H?(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,A.a)(f)}}):f,y=H?(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,A.a)(y)}}):y,(0,e.jsx)(g,{className:"avatar-block",avatar:n&&n!=="#"&&n!==""?(0,e.jsx)(h.N_,{to:n,role:"button","aria-label":`${i} profile`,children:K}):K,title:u?(0,e.jsx)(a.A,{title:u,getPopupContainer:T=>T&&T.parentNode?T.parentNode:document.body,children:u}):m?(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)(a.A,{title:i,getPopupContainer:T=>T&&T.parentNode?T.parentNode:document.body,children:i})," ","-"," ",(0,e.jsx)("small",{children:(0,e.jsx)(h.N_,{target:"_blank",to:n,"aria-label":`${i} profile`,className:"new-tab-link",children:(0,e.jsx)("em",{children:"Open profile in new tab"})})})]}):(0,e.jsx)(a.A,{title:i,getPopupContainer:T=>T&&T.parentNode?T.parentNode:document.body,children:n&&n!=="#"&&n!==""?(0,e.jsx)(h.N_,{to:n,role:"button","aria-label":`${i} profile`,children:i}):i}),description:v||(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)(a.A,{title:f,getPopupContainer:T=>T&&T.parentNode?T.parentNode:document.body,children:(0,e.jsx)("div",{className:"line2",children:f})}),(0,e.jsx)(a.A,{title:y,getPopupContainer:T=>T&&T.parentNode?T.parentNode:document.body,children:(0,e.jsx)("div",{className:"line3",children:y})})]})})}},411486:(q,N,t)=>{t.d(N,{A:()=>g,G:()=>C});var e=t(715621),s=t(248883),l=t(768835),a=t(839050),h=t(425170);const A={"bg-primary-xlight":"bg-primary-xlight__Vzvrw","bg-primary-light":"bg-primary-light__aQff4","bg-primary":"bg-primary__T0x0z","bg-primary-dark":"bg-primary-dark__ZQnCX","bg-primary-xdark":"bg-primary-xdark__LSplV","bg-secondary-xlight":"bg-secondary-xlight__GKGlc","bg-secondary-light":"bg-secondary-light__zG51h","bg-secondary":"bg-secondary__voyCQ","bg-secondary-dark":"bg-secondary-dark__HAjWk","bg-secondary-xdark":"bg-secondary-xdark__qXTU_","bg-success-xlight":"bg-success-xlight__sgC9Y","bg-success-light":"bg-success-light__QPrJ_","bg-success":"bg-success__icnPJ","bg-success-dark":"bg-success-dark__krpnF","bg-success-xdark":"bg-success-xdark__vIbRI","bg-info-xlight":"bg-info-xlight__TneNk","bg-info-light":"bg-info-light__tnrSc","bg-info":"bg-info__R7GfK","bg-info-dark":"bg-info-dark__a3Ta_","bg-info-xdark":"bg-info-xdark__JcmK3","bg-warning-xlight":"bg-warning-xlight__LcOTE","bg-warning-light":"bg-warning-light__oXYJj","bg-warning":"bg-warning__vtgiT","bg-warning-dark":"bg-warning-dark__mfs6O","bg-warning-xdark":"bg-warning-xdark__caioW","bg-alert-xlight":"bg-alert-xlight__nl8Bf","bg-alert-light":"bg-alert-light__sLEpV","bg-alert":"bg-alert__i81FY","bg-alert-dark":"bg-
15alert-dark__X24BF","bg-alert-xdark":"bg-alert-xdark__pnB6l","bg-danger-xlight":"bg-danger-xlight__KHtRR","bg-danger-light":"bg-danger-light__UXmHQ","bg-danger":"bg-danger__okAN5","bg-danger-dark":"bg-danger-dark__DBDO7","bg-danger-xdark":"bg-danger-xdark__IGeL7",root:"root__U04v1",toFullWidth:"toFullWidth__eLuBK",green:"green__RoIyo",grey:"grey__l0c4A",expandable:"expandable__Xid6y",chipIcon:"chipIcon__ILuTo",mobile:"mobile__xSOqu"},C={Student:"pg-book-open","Graduate Student":"pg-book-open",Alumni:"pg-academic-cap","Faculty & Staff":"pg-building-library","Corporate Partner & Employer":"pg-briefcase","Friend of":"pg-user-group"},g=({user:x,expandable:p,chipClassName:c="",theme:v="green",toFullWidth:n=!1})=>{const i=(0,a.lx)(),{standardUserType:f,title:y}=(0,h.$zv)(i,x),m=(0,a.al)();return!f||!y?null:(0,e.jsx)(s.vu,{size:"xsmall",text:y,color:"black",className:(0,l.A)(A.root,A[v],c,{[A.expandable]:p,[A.mobile]:m,[A.toFullWidth]:n}),icon:(0,e.jsx)(s.C0,{icon:C[f]||"pg-book-open",className:A.chipIcon,width:"12",height:"12"})})}},419611:(q,N,t)=>{t.d(N,{A:()=>A});var e=t(715621),s=t(537953),l=t(427781);const a={container:"container__RQPLc",spinner:"spinner__E1MFO"},A=({className:C=""})=>(0,e.jsx)("div",{className:`${a.container} ${C}`,children:(0,e.jsx)("div",{className:a.spinner,children:(0,e.jsx)(l.A,{className:"loader-animation"})})})},425420:(q,N,t)=>{t.d(N,{A:()=>A});const e=t(266250),{h:s,Component:l}=t(493008),a=e.__esModule?e.default:e;class h extends l{constructor(o){super(o),this.save=()=>{const{opts:g,save:x,currentImage:p}=this.props;this.cropper.getCroppedCanvas(g.cropperOptions.croppedCanvasOptions).toBlob(c=>x(c),p.type,g.quality)},this.granularRotateOnChange=g=>{const{rotationAngle:x,rotationDelta:p}=this.state,c=Number(g.target.value)-p;if(cancelAnimationFrame(this.granularRotateOnInputNextFrame),c!==0){const v=x+c;this.granularRotateOnInputNextFrame=requestAnimationFrame(()=>{this.cropper.rotateTo(v)})}},this.state={rotationAngle:0,rotationDelta:0}}componentDidMount(){const{opts:o,storeCropperInstance:g}=this.props;this.cropper=new a(this.imgElement,o.cropperOptions),g(this.cropper),o.actions.granularRotate&&this.imgElement.addEventListener("crop",x=>{const p=x.detail.rotate;this.setState({rotationAngle:p,rotationDelta:(p+405)%90-45})})}componentWillUnmount(){this.cropper.destroy()}renderGranularRotate(){const{i18n:o}=this.props,{rotationDelta:g,rotationAngle:x}=this.state;return s("label",{"data-microtip-position":"top",role:"tooltip","aria-label":`${x}\xBA`,className:"uppy-ImageCropper-rangeWrapper uppy-u-reset"},s("input",{className:"uppy-ImageCropper-range uppy-u-reset",type:"range",onInput:this.granularRotateOnChange,onChange:this.granularRotateOnChange,value:g,min:"-45",max:"44","aria-label":o("rotate")}))}renderRevert(){const{i18n:o}=this.props;return s("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":o("revert"),"data-microtip-position":"top",onClick:()=>{this.cropper.reset(),this.cropper.setAspectRatio(0)}},s("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},s("path",{d:"M0 0h24v24H0z",fill:"none"}),s("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"})))}renderRotate(){const{i18n:o}=this.props;return s("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>this.cropper.rotate(-90),"aria-label":o("rotate"),"data-microtip-position":"top"},s("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},s("path",{d:"M0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"}),s("path",{d:"M14 10a2 2 0 012 2v7a2 2 0 01-2 2H6a2 2 0 01-2-2v-7a2 2 0 012-2h8zm0 1.75H6a.25.25 0 00-.243.193L5.75 12v7a.25.25 0 00.193.243L6 19.25h8a.25.25 0 00.243-.193L14.25 19v-7a.25.25 0 00-.193-.243L14 11.75zM12 .76V4c2.3 0 4.61.88 6.36 2.64a8.95 8.95 0 012.634 6.025L21 13a1 1 0 01-1.993.117L19 13h-.003a6.979 6.979 0 00-2.047-4.95 6.97 6.97 0 00-4.652-2.044L12 6v3.24L7.76 5 12 .76z"})))}renderFlip(){const{i18n:o}=this.props;return s("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":o("flipHorizontal"),"data-microtip-position":"top",onClick:()=>this.cropper.scaleX(-this.cropper.getData().scaleX||-1)},s("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},s("path",{d:"M0 0h24v24H0z",fill:"none"}),s("path",{d:"M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v2zm4 8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2z"})))}renderZoomIn(){const{i18n:o}=this.props;return s("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":o("zoomIn"),"data-microtip-position":"top",onClick:()=>this.cropper.zoom(.1)},s("svg",{"aria-hidden":"true",className:"uppy-c-icon",height:"24",viewBox:"0 0 24 24",width:"24"},s("path",{d:"M0 0h24v24H0V0z",fill:"none"}),s("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),s("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"})))}renderZoomOut(){const{i18n:o}=this.props;return s("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":o("zoomOut"),"data-microtip-position":"top",onClick:()=>this.cropper.zoom(-.1)},s("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},s("path",{d:"M0 0h24v24H0V0z",fill:"none"}),s("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"})))}renderCropSquare(){const{i18n:o}=this.props;return s("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":o("aspectRatioSquare"),"data-microtip-position":"top",onClick:()=>this.cropper.setAspectRatio(1)},s("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},s("path",{d:"M0 0h24v24H0z",fill:"none"}),s("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})))}renderCropWidescreen(){const{i18n:o}=this.props;return s("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":o("aspectRatioLandscape"),"data-microtip-position":"top",onClick:()=>this.cropper.setAspectRatio(16/9)},s("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},s("path",{d:"M 19,4.9999992 V 17.000001 H 4.9999998 V 6.9999992 H 19 m 0,-2 H 4.9999998 c -1.0999999,0 -1.9999999,0.9000001 -1.9999999,2 V 17.000001 c 0,1.1 0.9,2 1.9999999,2 H 19 c 1.1,0 2,-0.9 2,-2 V 6.9999992 c 0,-1.0999999 -0.9,-2 -2,-2 z"}),s("path",{fill:"none",d:"M0 0h24v24H0z"})))}renderCropWidescreenVertical(){const{i18n:o}=this.props;return s("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":o("aspectRatioPortrait"),"data-microtip-position":"top",onClick:()=>this.cropper.setAspectRatio(9/16)},s("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},s("path",{d:"M 19.000001,19 H 6.999999 V 5 h 10.000002 v 14 m 2,0 V 5 c 0,-1.0999999 -0.9,-1.9999999 -2,-1.9999999 H 6.999999 c -1.1,0 
15-2,0.9 -2,1.9999999 v 14 c 0,1.1 0.9,2 2,2 h 10.000002 c 1.1,0 2,-0.9 2,-2 z"}),s("path",{d:"M0 0h24v24H0z",fill:"none"})))}render(){const{currentImage:o,opts:g}=this.props,{actions:x}=g,p=URL.createObjectURL(o.data);return s("div",{className:"uppy-ImageCropper"},s("div",{className:"uppy-ImageCropper-container"},s("img",{className:"uppy-ImageCropper-image",alt:o.name,src:p,ref:c=>{this.imgElement=c}})),s("div",{className:"uppy-ImageCropper-controls"},x.revert&&this.renderRevert(),x.rotate&&this.renderRotate(),x.granularRotate&&this.renderGranularRotate(),x.flip&&this.renderFlip(),x.zoomIn&&this.renderZoomIn(),x.zoomOut&&this.renderZoomOut(),x.cropSquare&&this.renderCropSquare(),x.cropWidescreen&&this.renderCropWidescreen(),x.cropWidescreenVertical&&this.renderCropWidescreenVertical()))}}const A=h},428460:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(715621);const s={};var l=t(537953),a=t(205369),h=t(939291);const{Option:A}=a.A,o=({options:g,rowValueKey:x="value",rowLabelKey:p="label",onChange:c,...v})=>(0,e.jsx)(a.A,{onChange:c,...v,children:g.map((n,i)=>(0,e.jsx)(A,{value:(0,h.A)(n,x),children:(0,h.A)(n,p)},i))})},431419:(q,N,t)=>{t.d(N,{A:()=>M});var e=t(715621),s=t(537953),l=t(251981),a=t(62644),h=t(665790),A=t(595526),C=t(750586),o=t(839392),g=t(436492),x=t(558007),p=t(294097),c=t(246239);const v={};var n=Object.defineProperty,i=(S,P,H)=>P in S?n(S,P,{enumerable:!0,configurable:!0,writable:!0,value:H}):S[P]=H,f=(S,P,H)=>i(S,typeof P!="symbol"?P+"":P,H);const y=()=>(0,e.jsx)(l.A,{indicator:(0,e.jsx)(a.A,{type:"loading",style:{fontSize:24},spin:!0})}),m=({handleChange:S})=>(0,e.jsx)("span",{className:"form-field__multiselect__control-button",onClick:()=>S&&S("clear"),children:"De-select All"}),b=({handleChange:S})=>(0,e.jsx)("span",{className:"form-field__multiselect__control-button",onClick:()=>S&&S("all"),children:"Select All"}),u=({showSelected:S,handleChange:P})=>(0,e.jsx)("span",{className:`form-field__multiselect__control-button ${S?"":"form-field__multiselect__control-button-selected"}`,onClick:()=>P&&P("showAll"),children:"Show All"}),d=({showSelected:S,handleChange:P})=>(0,e.jsx)("span",{className:`form-field__multiselect__control-button ${S?"form-field__multiselect__control-button-selected":""}`,onClick:()=>P&&P("showSelected"),children:"Show Selected"}),I=({showSelected:S,handleChange:P,value:H})=>(0,e.jsxs)("div",{className:"form-field__multiselect__controls",children:[(0,e.jsxs)("span",{className:"left",children:[(0,e.jsx)("strong",{children:"Select:"})," ",(0,e.jsx)(m,{handleChange:P})," |"," ",(0,e.jsx)(b,{handleChange:P})]}),(0,A.A)(H)&&H.length?(0,e.jsxs)("span",{className:"right",children:[(0,e.jsx)("strong",{children:"Show:"})," ",(0,e.jsx)(d,{handleChange:P,showSelected:S})," ","| ",(0,e.jsx)(u,{handleChange:P,showSelected:S})]}):null]});class E extends s.PureComponent{constructor(P){super(P),f(this,"triggerChange",L=>{const O=this.props.onChange;O&&O(L?[...L]:void 0)}),f(this,"handleChange",L=>{const{dataSource:O}=this.props,K={searchText:void 0,searchOptions:[]};switch((0,A.A)(L)&&(L=L.filter(T=>(0,C.A)(T)?T.trim()!=="":!0)),L){case"all":const T=O.map(D=>D.value);"value"in this.props||(K.value=T),this.triggerChange(T);break;case"clear":"value"in this.props||(K.value=[]),K.showSelected=!1,this.triggerChange([]);break;case"showAll":K.showSelected=!1;break;case"showSelected":K.showSelected=!0;break;default:"value"in this.props||(K.value=L),(!(0,A.A)(L)||L.length===0)&&(K.showSelected=!1),this.triggerChange(L);break}this.setState(K)}),f(this,"getOptions",()=>{if(this.props.url)return this.getSearchOptions();const{dataSource:L,notFoundContent:O,hideControls:K=!1}=this.props,{showSelected:T,value:D,searchText:W}=this.state,B=[],k=!!(T&&(0,A.A)(D)&&D.length>0);return L&&L.length>0&&L.forEach((_,F)=>{typeof _=="object"&&_.hasOwnProperty("text")&&_.hasOwnProperty("value")?(!k||D.indexOf(_.value)>-1)&&B.push(_):(!k||D.indexOf(_)>-1)&&B.push({value:_,text:_})}),(!B||B.length===0)&&W&&W!==""&&B.push({key:"notFoundContent",value:"",disabled:!0,text:O||"No Options Available"}),K?B:{controlGroup:{label:(0,e.jsx)(I,{showSelected:k,handleChange:this.handleChange,value:D}),options:B}}}),f(this,"getSearchOptions",()=>{const{notFoundContent:L}=this.props,{searchOptions:O,loading:K,searchText:T}=this.state;return K?[{key:"loading",value:"",disabled:!0,text:(0,e.jsx)(y,{})}]:(!K&&(!O||O.length===0)&&T&&T!==""&&O.push({key:"notFoundContent",value:"",disabled:!0,text:L||"No Options Available"}),O)}),f(this,"requestData",(0,o.A)(L=>{const{url:O,getParams:K,renderOptions:T,minQueryLength:D=0}=this.props;let W=[];O&&O!==""&&K&&T&&L&&L!==""&&L.length>=D?p.E.get(O,{params:K(L)}).then(B=>{this.setState({searchOptions:T(B),loading:!1})}).catch(function(B){console.error(B)}):this.setState({searchOptions:W,loading:!1})},300)),f(this,"handleSearch",L=>{const{url:O,minQueryLength:K=0,onSearch:T}=this.props;T&&T(L);const D=L&&L.trim();if(O&&O!==""&&D&&D!==""){if(D.length<K){this.requestData.cancel(),this.setState({searchText:D,searchOptions:[],loading:!1});return}this.setState({searchText:D,searchOptions:[],loading:!0},()=>this.requestData(D))}}),f(this,"handleOnClearClick",()=>{this.setState({...this.initialState},()=>this.triggerChange([]))});const H=P.value||[];this.state={value:H,showSelected:!1,searchOptions:[],loading:!1,searchText:void 0},this.initialState=(0,g.A)(this.state)}static getDerivedStateFromProps(P){return"value"in P?{value:P.value||[]}:null}render(){const{mode:P="multiple",allowClear:H,showClearCount:L=!1}=this.props,{value:O,loading:K}=this.state,T=(O||[]).length,D=H&&L?!1:H,W=H&&L&&T>0;return(0,e.jsxs)("div",{className:`form-field__multiselect ${W?"form-field__multiselect--clear-count":""}`,children:[(0,e.jsx)(c.l6,{...this.props,mode:P||"multiple",value:O,onChange:this.handleChange,onSearch:this.handleSearch,allowClear:D,notFoundContent:K?(0,e.jsx)(y,{}):null,options:this.getOptions()}),(0,e.jsxs)("div",{className:"form-field__multiselect__postfix",children:[K&&P==="tags"?(0,e.jsx)(y,{}):null,W?(0,e.jsxs)(h.A,{className:"btn-link",onClick:this.handleOnClearClick,"aria-label":`clear ${this.props["aria-label"]}`,children:[(0,e.jsx)(x.A,{})," Clear (",T,")"]}):null]})]})}}const M=E},441131:(q,N,t)=>{t.d(N,{A:()=>e.A});var e=t(483430)},444110:(q,N,t)=>{t.d(N,{A:()=>Es});var e=t(715621);const s={};
15var l=t(537953),a=t(71595),h=t(50391),A=t(529477),C=t(69943),o=t(154429),g=t(750586);const x={};var p=t(888864),c=Object.defineProperty,v=(ft,Ne,Re)=>Ne in ft?c(ft,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Re}):ft[Ne]=Re,n=(ft,Ne,Re)=>v(ft,typeof Ne!="symbol"?Ne+"":Ne,Re);const{Button:i,Group:f}=p.Ay,y={width:100,lineHeight:30,borderTopLeftRadius:0,borderBottomLeftRadius:0,borderLeft:0},m=({options:ft,onChange:Ne,...Re})=>{const{isToggled:Pt,isChecked:Mt,toggleOn:nt,toggleOff:as}=Re;return(0,e.jsx)(f,{onChange:Ne,...Re,children:ft.map(({label:is,value:ts},cs)=>is==="custom"?Pt?(0,e.jsx)(h.A,{autoFocus:!0,value:Re.value,className:"ant-radio-button-wrapper-checked",style:y,onChange:Ne},cs):(0,e.jsx)(i,{onClick:nt,value:ts.toString(),onChange:Ne,children:"custom"},cs):(0,e.jsx)(i,{onClick:as,className:Mt(ts)?"ant-radio-button-wrapper-checked":"",value:ts.toString(),checked:Mt(ts),onChange:Ne,children:is},cs))})};class b extends l.PureComponent{constructor(){super(...arguments),n(this,"state",{isToggled:!1}),n(this,"componentDidMount",()=>{const{options:Ne,value:Re}=this.props,Pt=parseInt(Re),Mt=!Ne.map(({value:as})=>parseInt(as)).includes(Pt),nt=Pt&&Mt;this.setState({isToggled:nt})}),n(this,"isChecked",Ne=>{const{value:Re}=this.props;return Re&&parseInt(Re)===parseInt(Ne)}),n(this,"toggleOn",()=>{this.setState({isToggled:!0})}),n(this,"toggleOff",()=>{this.setState({isToggled:!1})})}render(){const{...Ne}=this.props,{isToggled:Re}=this.state;return(0,e.jsx)(m,{isToggled:Re,isChecked:this.isChecked,toggleOn:this.toggleOn,toggleOff:this.toggleOff,...Ne})}}const u=b,d={};var I=t(205369),E=t(939291);const{Option:M}=I.A,P=({options:ft,onChange:Ne,rowLabelKey:Re,rowValueKey:Pt,placeholder:Mt,defaultValue:nt=[],isStandardProfile:as=!1,...is})=>(0,e.jsx)(I.A,{mode:"multiple",className:`${as?"multiple-select-option":""}`,placeholder:Mt||"Please select",defaultValue:nt||[],onChange:Ne,...is,children:ft.map((ts,cs)=>(0,e.jsx)(M,{value:(0,E.A)(ts,Pt),children:(0,E.A)(ts,Re)},cs))});var H=t(448820),L=t(630530);const O={};var K=t(230803),T=t(665790),D=t(243130),W=t.n(D),B=Object.defineProperty,k=(ft,Ne,Re)=>Ne in ft?B(ft,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Re}):ft[Ne]=Re,_=(ft,Ne,Re)=>k(ft,typeof Ne!="symbol"?Ne+"":Ne,Re);const{Option:F}=I.A,{log:U}=console;class V extends l.PureComponent{constructor(){super(...arguments),_(this,"state",{isLoading:!1,options:this.props.options}),_(this,"handleLoadAction",async()=>{const{loadAction:Ne}=this.props;await this.setState({isLoading:!0});try{const Re=await Ne();await this.setState({isLoading:!1,options:Re})}catch(Re){throw Re}})}render(){const{handleLoadAction:Ne}=this,{isLoading:Re,options:Pt}=this.state,{itemText:Mt,rowLabelKey:nt,rowValueKey:as,shortId:is,disabled:ts,filterOption:cs,...os}=this.props;return(0,e.jsxs)(K.A,{className:"pg-load-select-container",gutter:8,children:[(0,e.jsx)(I.A,{...os,showSearch:!0,className:"pg-load-select",placeholder:`Select an ${Mt}`,optionFilterProp:as,filterOption:cs,disabled:ts||Re,children:Pt.map((Fs,Js)=>Fs.label==="custom"?(0,e.jsx)(F,{className:"pg-load-select__options--create",disabled:!0,children:(0,e.jsxs)(T.A,{onClick:Fs.value,children:["Create New ",Mt]})},is):(0,e.jsx)(F,{className:"pg-load-select__options",value:Fs[as],children:Fs[nt]},Js))}),(0,e.jsx)(T.A,{type:"primary",className:"pg-load-select__reload",disabled:ts||Re,onClick:Ne,icon:"sync"})]})}}V.defaultProps={itemText:"Item",options:[],rowLabelKey:"label",rowValueKey:"value",shortId:W().generate(),disabled:!1};const Z=V,$={},{Group:G}=C.A;class ie extends l.PureComponent{render(){return(0,e.jsx)(G,{className:"bubble-select",...this.props})}}const ce=ie,oe={},Q=({icon:ft})=>(0,e.jsx)("em",{className:ft});class ne extends l.PureComponent{render(){const{options:Ne,rowLabelKey:Re,rowValueKey:Pt,...Mt}=this.props;return(0,e.jsx)(C.A.Group,{...Mt,children:Ne.filter(({show:nt})=>nt!==!1).map(({icon:nt,...as},is)=>(0,e.jsxs)(C.A,{value:as[Pt],children:[nt&&(0,e.jsx)(Q,{icon:nt}),"\xA0",as[Re]]},is))})}}ne.defaultProps={rowLabelKey:"label",rowValueKey:"value"};const je=ne;var xe=t(768193);const dt={};var We=t(633861),Pe=t(317181),Le=t(551471),Me=t.n(Le),ct=t(209539),we=Object.defineProperty,be=(ft,Ne,Re)=>
15Ne in ft?we(ft,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Re}):ft[Ne]=Re,ye=(ft,Ne,Re)=>be(ft,typeof Ne!="symbol"?Ne+"":Ne,Re);const{log:tt}=console,Te={gutter:0,date:{span:12},time:{span:12}};class Je extends l.PureComponent{constructor(){super(...arguments),ye(this,"state",{defaultDate:this.props.defaultValue?Me()(this.props.defaultValue).format(this.props.dateFormat):void 0,defaultTime:this.props.defaultValue?Me()(this.props.defaultValue).format(this.props.timeFormat):void 0,grid:(0,ct.A)(Te,this.props.grid),dateStr:"",timeStr:""}),ye(this,"handleTimeChange",async Ne=>{tt("handleTimeChange: ",Ne);const{_handleChange:Re,props:{timeFormat:Pt}}=this,Mt=Me()(Ne,Pt,!0);Mt.isValid()&&await this.setState({timeStr:Mt}),await Re()}),ye(this,"handleDateChange",async Ne=>{tt("handleDateChange: ",Ne);const{_handleChange:Re,props:{dateFormat:Pt}}=this,Mt=Me()(Ne,Pt,!0);Mt.isValid()&&await this.setState({dateStr:Mt}),await Re()}),ye(this,"_handleChange",async()=>{tt("_handleChange");const{onChange:Ne,dateFormat:Re,timeFormat:Pt}=this.props,{defaultDate:Mt,defaultTime:nt,dateStr:as,timeStr:is}=this.state,ts=as||Mt,cs=is||nt;if(ts&&cs){tt("both dates are set");const os=Me()(new Date(`${ts.format(Re)} ${cs.format(Pt)}`));return tt("formattedDateTime: ",os),Ne(os)}tt("dates not yet set")})}render(){const{handleTimeChange:Ne,handleDateChange:Re}=this,{dateFormat:Pt,timeFormat:Mt,timeConfig:nt,dateConfig:as,size:is}=this.props,{defaultTime:ts,defaultDate:cs,grid:{gutter:os,date:Fs,time:Js}}=this.state;return(0,e.jsxs)(K.A,{gutter:os,children:[(0,e.jsx)(We.A,{...Fs,children:(0,e.jsx)(o.A,{size:is,format:Pt,defaultValue:cs,onChange:Re,...as})}),(0,e.jsx)(We.A,{...Js,children:(0,e.jsx)(Pe.A,{size:is,format:Mt,defaultValue:ts,onChange:Ne,...nt})})]})}}Je.defaultProps={dateFormat:"YYYY/MM/DD",timeFormat:"h:mm A",dateConfig:{},timeConfig:{},grid:Te,size:"default"};const Ue=Je;var _e=t(186824),bt=t(804273),wt=t(574189);const ls={};var us=t(246239);class Xt extends l.PureComponent{render(){const{value:Ne,...Re}=this.props;return(0,g.A)(Ne)?(0,e.jsx)(us.EY,{className:"pg-form-text-display",...Re,children:Ne}):(0,e.jsx)("div",{className:"pg-form-text-display",children:Ne})}}const ut=Xt,$t={};var As=t(595526),kt=Object.defineProperty,Wt=(ft,Ne,Re)=>Ne in ft?kt(ft,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Re}):ft[Ne]=Re,pt=(ft,Ne,Re)=>Wt(ft,typeof Ne!="symbol"?Ne+"":Ne,Re);class Yt extends l.PureComponent{constructor(Ne){super(Ne),pt(this,"handleTimeChange",(Pt,Mt)=>{this.setState({[Pt]:Mt})}),pt(this,"handleTimerVisibility",(Pt,Mt)=>{this.setState({[Pt]:Mt}),Mt||this.saveTimePicker()}),pt(this,"saveTimePicker",()=>{const{startTime:Pt,endTime:Mt}=this.state;this.setState({startTimePickerVisible:!1},()=>this.props.onChange([Pt&&Pt.toISOString(),Mt&&Mt.toISOString()]))}),pt(this,"timePickerAddon",()=>(0,e.jsx)(l.Fragment,{children:(0,e.jsx)("div",{className:"pg-durationselect__okdiv",children:(0,e.jsx)(T.A,{size:"small",type:"primary",onClick:()=>this.saveTimePicker(),children:"Ok"})})}));const{value:Re}=this.props;this.state={startTimeVisible:!1,endTimeVisible:!1,startTime:(0,As.A)(Re)&&Re.length>0&&Re[0]?Me()(Re[0]):void 0,endTime:(0,As.A)(Re)&&Re.length>1&&Re[1]?Me()(Re[1]):void 0}}render(){const{className:Ne,use12Hours:Re,minuteStep:Pt,allowEmpty:Mt,format:nt,disabled:as}=this.props,{handleTimeChange:is,handleTimerVisibility:ts}=this,{startTimeVisible:cs,endTimeVisible:os,startTime:Fs,endTime:Js}=this.state;return(0,e.jsx)("div",{className:`pg-durationselect ${Ne||""}`,children:(0,e.jsxs)(K.A,{children:[(0,e.jsx)(We.A,{span:10,children:(0,e.jsx)(Pe.A,{open:cs,onOpenChange:Ns=>ts("startTimeVisible",Ns),value:Fs,onChange:Ns=>is("startTime",Ns),addon:this.timePickerAddon,use12Hours:Re,minuteStep:Pt,allowEmpty:Mt,format:nt,disabled:as})}),(0,e.jsx)(We.A,{span:4,children:(0,e.jsx)("div",{className:"pg-durationselect__to",children:"to"})}),(0,e.jsx)(We.A,{span:10,children:(0,e.jsx)(Pe.A,{open:os,onOpenChange:Ns=>ts("endTimeVisible",Ns),value:Js,onChange:Ns=>is("endTime",Ns),addon:this.timePickerAddon,use12Hours:Re,minuteStep:Pt,allowEmpty:Mt,format:nt,disabled:as})})]})})}}Yt.defaultProps={timeFormat:"h:mm a",value:void 0,config:{}};const qt=Yt,{Item:Bt}=a.A,{TextArea:Kt}=h.A,Ot={input:h.A,textarea:Kt,radiobuttongroup:u,radiogroup:wt.A,select:xe.A,multipleselect:P,singleselect:H.A,searchselect:L.A,loadselect:Z,bubbleselect:ce,switch:A.A,checkbox:C.A,checkboxgroup:je,datepicker:o.A,datetimepicker:Ue,iframeinput:_e.A,previewusers:bt.A,textdisplay:ut,durationselect:qt};class hs extends l.Component{render(){const{id:Ne,rules:Re,type:Pt,label:Mt,value:nt,valuePropName:as,options:is,config:ts,disabled:cs,getFieldDecorator:os,labelCol:Fs,wrapperCol:Js,formItemClassName:Ns,antConfig:St}=this.props,gn=(0,g.A)(Pt)?Ot[Pt]:Pt;return(0,e.jsx)(Bt,{className:`custom-form-item ${Ns}`,label:Mt,labelCol:Fs,wrapperCol:Js,children:os(Ne,{rules:Re,initialValue:nt,valuePropName:as})((0,e.jsx)(gn,{options:is,disabled:cs,...ts,antConfig:St}))})}}hs.defaultProps={label:"",labelCol:{span:24},wrapperCol:{span:24},config:{},valuePropName:"value",rules:[],disabled:!1,grid:{span:24}};const Es=hs},447139:(q,N,t)=>{t.d(N,{Ay:()=>u,Me:()=>y,Rq:()=>f});var e=t(715621),s=t(537953),l=t(102736),a=t.n(l),h=t(301894),A=t.n(h),C=t(163081),o=t(246239),g=t(110252),x=t(526610),p=t(419096),c=t(66312),v=t(870052),n=t(403461);const i={postEditor:"postEditor__jhak2",tagItem:"tagItem__vmFEs",showTextOptions:"showTextOptions__uWkXM",hideTextOptions:"hideTextOptions__DD3sB"},f=(d,I)=>{const E=document.createElement("div");E.innerHTML=d;const M=E.querySelectorAll(I),S=[];return M.forEach(P=>{S.push({id:P.dataset.expId})}),S},y=d=>{const I=document.createElement("div");return I.innerHTML=d,I.innerText},m=({id:d,value:I,onChange:E,hashtagOptions:M=[],disabled:S,attachments:P,placeholder:H,setAttachments:L,trackHashTagEvents:O,currentUser:K,hubInfo:T,clusterInfo:D})=>{const W=(0,s.useRef)(null),B=(0,s.useRef)(window.innerWidth<575),[k,_]=(0,s.use
15State)(!1),F=(0,s.useRef)(new(A())({allowSpaces:!1,itemClass:i.tagItem,trigger:"#",values:[],selectTemplate:function(ce){return`<span contenteditable="false" data-exp-id=${ce.original.id} data-type='hashtag' class='fr-deletable' style="color: blue">#${ce.original.value}</span>`}}));(0,s.useEffect)(()=>{M.length&&!k&&(F.current.append(0,M.map(({name:ce,id:oe})=>{const Q=ce.toLowerCase().replace(/\s\/\s/g,"/").replace(/\s+/g,"_");return{key:Q,id:oe,value:Q}})),_(!0))},[M,k]);const U=ce=>{const oe=document.querySelectorAll(".fr-btn-grp")[1],Q=document.querySelector('button[id^="textFromat"]');if(B.current){const ne=document.querySelectorAll(".fr-btn-grp")[0];ne&&(ce?ne.style.display="none":ne.style.display="block")}if(Q&&!B.current&&(ce?Q.style.display="none":Q.style.display="block"),oe){const ne=ce?i.showTextOptions:i.hideTextOptions;oe.classList.remove(i.showTextOptions),oe.classList.remove(i.hideTextOptions),oe.classList.add(ne)}},V=({filesUploaded:ce})=>{const oe=[...P];(ce||[]).forEach(Q=>{const ne=(0,x.x)(Q),Oe=Q.filename,je=Q.mimetype.startsWith("image");je?(0,p.jf)(ne,W.current):oe.push({name:Oe,url:ne,isImage:je})}),oe.length>0&&L({attachments:oe})},Z=ce=>{W.current=ce},$=ce=>{const oe=P.filter(({url:Q})=>Q!==ce);L({attachments:oe})},G=ce=>{ce.key==="#"&&O&&ie("Hashtag_added_without_the_button_click")},ie=(ce="Hashtag_Click")=>{const oe={pgAnalytics:ce,pgAnalyticsCategory:"Groups / Programs V2"};v.A.trackEvent(oe,{currentUser:K,hubInfo:T,clusterInfo:D,PageURL:window.location.pathname})},le={toolbarBottom:!0,height:B.current?132:112};return(0,e.jsxs)("div",{className:i.postEditor,children:[(0,e.jsx)(o.Td,{path:"/functional-groups/posts/",container:"campuskudos-uploads",render:({onPick:ce})=>(0,e.jsx)("span",{onClick:ce,id:"openFileUploader"}),onSuccess:V,access:"public",type:"any"}),(0,e.jsx)(g.A,{id:d,disabled:S,value:I,addHtmlAllowedTags:["a","span","img"],onChange:E,onKeyDown:G,setEditorRef:Z,placeholder:H,"aria-label":H,toolbarType:"NULL",mentionTribute:F.current,focusOnInit:!0,froalaEditorConfig:le,toolbarOptions:{customButtonFunctions:{insertFile:()=>{const ce=document.getElementById("openFileUploader");ce&&ce.click()}},additionalButtons:[["hastag","insertFile","insertLink","emojis","textFormat","help"],["editorBack","bold","italic","underline","align"]],customButtons:{hastag:{type:"text",name:"hastag",defineIcon:!0,icon:"hashtag",iconSrc:"https://cdn.peoplegrove.com/admin/1637742155280hashtag.svg",iconTemplate:"image",tooltip:"Hash tag",customFunction:({ref:ce})=>{ce&&(O&&ie("Hashtag_Click"),F.current.showMenuForCollection(ce.editor.el))}},textFormat:{type:"button",name:"textFormat",defineIcon:!0,icon:"textFormat",iconSrc:"https://cdn.peoplegrove.com/admin/1637741607327pg-text-format.svg",iconTemplate:"image",tooltip:"Text options",customFunction:({ref:ce})=>{ce&&U(!0)}},editorBack:{type:"button",name:"editorBack",defineIcon:!0,icon:"editorBack",iconSrc:"https://cdn.peoplegrove.com/admin/1637741750776editor-back.svg",iconTemplate:"image",tooltip:"Collapse",customFunction:({ref:ce})=>{ce&&U(!1)}}}}}),(0,e.jsx)(c.A,{attachments:P,removeAttachment:$})]})};m.propTypes={id:a().string,value:a().string,onChange:a().func.isRequired,disabled:a().bool},m.defaultProps={id:"group_introduction_post",value:"",onChange:()=>{},setAttachments:()=>{},disabled:!1,attachments:[]};const b=({appReducer:{currentUser:d,hubInfo:I,clusterInfo:E}})=>({currentUser:d,hubInfo:I,clusterInfo:E}),u=(0,C.connect)(b,{})(m)},447691:(q,N,t)=>{t.d(N,{F:()=>A,r:()=>h});var e=t(686993),s=t(30249);const l=(0,e.eU)("");l.debugLabel="callSmsNumberVerificationModal";const a=(0,e.eU)("inbox"),h=()=>(0,s.fp)(l),A=()=>(0,s.fp)(a)},448820:(q,N,t)=>{t.d(N,{A:()=>g});var e=t(715621);const s={};var l=t(537953),a=t(205369),h=t(939291);const{Option:A}=a.A,{log:C}=console;class o extends l.PureComponent{render(){const{options:p,className:c,rowValueKey:v,rowLabelKey:n,onChange:i,antConfig:f,...y}=this.props;return(0,e.jsx)(a.A,{className:`pg-select ${c}`,onChange:i,...f,...y,children:p.map((m,b)=>(0,e.jsx)(A,{value:(0,h.A)(m,v,b),children:(0,h.A)(m,n,b)},b))})}}o.defaultProps={options:[],className:"",rowValueKey:"value",rowLabelKey:"label",onCh
15ange:x=>C(x)};const g=o},461817:(q,N,t)=>{t.d(N,{A:()=>C});var e=t(715621),s=t(698879),l=t(839050),a=t(425170);const h=(0,s.A)(()=>t.e(5308).then(t.bind(t,206709))),A=(0,s.A)(()=>t.e(8412).then(t.bind(t,263293)));function C(o){const g=(0,l.lx)();return(0,a.xn7)(g)?(0,e.jsx)(A,{...o}):(0,e.jsx)(h,{...o})}},471378:(q,N,t)=>{t.d(N,{A:()=>V});var e=t(715621),s=t(537953),l=t(163081),a=t(369313),h=t(881640),A=t(880803),C=t(809381),o=t(196008),g=t(301801),x=t(292615),p=t(97556),c=t(817989),v=t(16708),n=t(90570),i=t(990454),f=t(970806),y=t(662180),m=t(425170),b=t(294097),u=t(69914),d,I;const{UIPlugin:E}=t(881640),{h:M}=t(493008),S=t(425420).A,P=(I=d=class extends E{constructor($,G){super($,G),this.save=()=>{const oe=ne=>{const{currentImage:Oe}=this.getPluginState();this.uppy.setFileState(Oe.id,{data:ne,size:ne.size,preview:null});const je=this.uppy.getFile(Oe.id);this.uppy.emit("thumbnail:request",je),this.setPluginState({currentImage:je}),this.uppy.emit("file-editor:complete",je),G.autoUploadAfterCrop&&this.uppy.upload()},{currentImage:Q}=this.getPluginState();(0,n.A)(this.opts.cropperOptions.croppedCanvasOptions)?this.cropper.getCroppedCanvas().toBlob(oe,Q.type,this.opts.quality):this.cropper.getCroppedCanvas(this.opts.cropperOptions.croppedCanvasOptions).toBlob(oe,Q.type,this.opts.quality)},this.storeCropperInstance=oe=>{this.cropper=oe},this.selectFile=oe=>{this.uppy.emit("file-editor:start",oe),this.setPluginState({currentImage:oe})},this.id=this.opts.id||"ImageEditor",this.title="Image Editor",this.type="editor",this.defaultLocale={strings:{revert:"Revert",rotate:"Rotate",zoomIn:"Zoom in",zoomOut:"Zoom out",flipHorizontal:"Flip horizontal",aspectRatioSquare:"Crop square",aspectRatioLandscape:"Crop landscape (16:9)",aspectRatioPortrait:"Crop portrait (9:16)"}};const ie={viewMode:1,background:!1,autoCropArea:1,responsive:!0,croppedCanvasOptions:{}},le={revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!0,cropWidescreen:!0,cropWidescreenVertical:!0},ce={quality:.8};this.opts={...ce,...G,actions:{...le,...G.actions},cropperOptions:{...ie,...G.cropperOptions}},this.i18nInit()}canEditFile($){if(!$.type||$.isRemote)return!1;const G=$.type.split("/")[1];return!!/^(jpe?g|gif|png|bmp|webp)$/.test(G)}install(){this.setPluginState({currentImage:null});const{target:$}=this.opts;$&&this.mount($,this)}uninstall(){this.unmount()}render(){const{currentImage:$}=this.getPluginState();return $===null||$.isRemote?null:M(S,{currentImage:$,storeCropperInstance:this.storeCropperInstance,save:this.save,opts:this.opts,i18n:this.i18n})}},d.VERSION="1.0.4",I);var H=t(26823),L=t(863844),O=t(712393),K=t(998681),T=t(746482),D=t(129877);const W={};var B=t(829080),k=t(537953);class _ extends k.Component{constructor($){super($),this.focusToTarget=()=>{this.state.currentTarget&&(this.state.currentTarget.focus&&this.state.currentTarget.focus(),this.setState({currentTarget:null}))},this.addFontScaledUp=()=>{if((0,B.F1)()){const G=document.body;if(!G)return;G.classList.add("body__font-scaled")}},this.removeUploaderBodyClass=()=>{this.props.uploaderClassName&&document.body.classList.remove(this.props.uploaderClassName)},this.handleClose=()=>{const{onClose:G}=this.props;this.removeUploaderBodyClass(),this.uppy&&this.uppy.close(),this.focusToTarget(),this.setState({showPicker:!1}),G&&G()},this.getFileRestrictions=G=>{var ie,le,ce,oe;let Q={},ne=((ie=this.props)==null?void 0:ie.transformations)||{};switch(Q.maxFileSize=(le=this.props)==null?void 0:le.maxFileSize,Q.maxNumberOfFiles=1,Q.minFileSize=8,G){case"resume":case"doc":case"doc_v2":Q.allowedFileTypes=[".pdf",".doc",".docx",".ppt",".pptx"],G==="doc_v2"&&Q.allowedFileTypes.push(".xls",".xlsx",".csv",".jpeg",".heic"),Q.maxFileSize=Q.maxFileSize||10*1024*1024,(0,c.A)(this.plugins,["Webcam","ScreenCapture","Url"]);break;case"thumbnail":Q.allowedFileTypes=["image/*"],Q.maxFileSize=Q.maxFileSize||10*1024*1024,ne.aspectRatio=1,ne.autoCrop=ne.autoCrop||!0,ne.croppedCanvasOptions=ne.croppedCanvasOptions||{maxWidth:500,maxHeight:500},(0,c.A)(this.plugins,["ScreenCapture"]);break;case"image":Q.allowedFileTypes=["image/*"],Q.maxFileSize=Q.maxFileSize||10*1024*1024,(0,c.A)(this.plugins,["ScreenCapture"]);break;case"cover":Q.allowedFileTypes=["image/*"],Q.maxFileSize=Q.maxFileSize||10*1024*1024,ne.aspectRatio=ne.aspectRatio||1.5,ne.autoCrop=ne.autoCrop||!0,(0,c.A)(this.plugins,["ScreenCapture"]);break;case"media":Q.allowedFileTypes=[".pdf",".doc",".docx","image/*"],(0,c.A)(this.plugins,["ScreenCapture"]);break;case"profile-photo":Q.allowedFileTypes=[".png",".jpg",".jpeg"],Q.maxFileSize=Q.maxFileSize||10*1024*1024,Q.minFileSize=100*1024,ne.aspectRatio=1,ne.autoCrop=!0,ne.dragMode="move",ne.zoomable=!0,ne.toggleDragModeOnDblclick=!1,ne.touch=!0,ne.zoomOnTouch=!0,ne.zoomOnWheel=!1,ne.touchEvents=!0,ne.minCropBoxWidth=250,ne.minCropBoxHeight=250,ne.croppedCanvasOptions={maxWidth:1080,maxHeight:1080},ne={...ne,...(0,v.A)(this.props.transformations,["autoCrop","dragMode","zoomable","toggleDragModeOnDblclick","touch","zoomOnTouch","zoomOnWheel","touchEvents","minCropBoxWidth","minCropBoxHeight","croppedCanvasOptions"])},(0,c.A)(this.plugins,["ScreenCapture","Url"]);break;case"logo":Q.allowedFileTypes=[".png",".jpg",".jpeg"],Q.maxFileSize=Q.maxFileSize||5*1024*1024,ne.aspectRatio=ne.aspectRatio||1,ne.autoCrop=ne.autoCrop||!0,ne.croppedCanvasOptions=ne.croppedCanvasOptions||{maxWidth:200,maxHeight:200},(0,c.A)(this.plugins,["ScreenCapture","Webcam"]);break;case"audio":Q.allowedFileTypes=[".mp3",".wav"],Q.maxFileSize=Q.maxFileSize||200*1024*1024,(0,c.A)(this.plugins,["Webcam","ScreenCapture"]);break;case"video":Q.allowedFileTypes=[".mp4",".webm",".ogg",".mkv"],Q.maxFileSize=Q.maxFileSize||200*1024*1024;break;case"embed-video":Q.allowedFileTypes=[".mp4",".webm",".ogg"],Q.maxFileSize=Q.maxFileSize||200*1024*1024,(0,c.A)(this.plugins,["ScreenCapture"]);break;case"csv":Q.allowedFileTypes=[".csv"],(0,c.A)(this.plugins,["Webcam","ScreenCapture"]);break;case"icon":Q.allowedFileTypes=[".png",".svg"],Q.maxFileSize=Q.maxFileSize||10*1024*1024,ne.aspectRatio=1,ne.autoCrop=ne.autoCrop||!0,ne.croppedCanvasOptions=ne.croppedCanvasOptions||{maxWidth:192,maxHeight:192},(0,c.A)(this.plugins,["ScreenCapture","Webcam","Url"]);break;case"banner-image":Q.allowedFileTypes=["image/*"],ne.autoCrop=!0,ne.dragMode="move",ne.zoomable=!0,ne.toggleDragModeOnDblclick=!1,ne.touch=!0,ne.zoomOnTouch=!0,ne.zoomOnWheel=!1,ne.touchEvents=!0,ne.minCropBoxHeight=100,ne={...ne,...(0,v.A)(this.props.transformations,["aspectRatio","autoCrop","dragMode","zoomable","toggleDragModeOnDblclick","touch","zoomOnTouch","zoomOnWheel","touchEvents","minCropBoxHeight"])},(0,c.A)(this.plugins,["ScreenCapture","Webcam"]);break;case"font":Q.allowedFileTypes=[".woff2",".woff",".ttf",".otf"],Q.maxFileSize=Q.maxFileSize||2*1024*1024,(0,c.A)(this.plugins,["Webcam","ScreenCapture","Url"]);break;case"any":(ce=this.props)!=null&&ce.allowedFileTypes&&(Q.allowedFileTypes=(oe=this.props)==null?void 0:oe.allowedFileTypes);break;default:break}return Q.maxFileSize=Q.maxFileSize||50*1024*1024,this.autoOpenFileEditor=!(0,n.A)(ne),{restrictions:Q,transformations:ne}},this.getCameraModes=G=>{switch(G){case"image":case"thumbnail":case"cover":case"profile-photo":case"icon":return["picture"];case"audio":return["audio-only"];case"video":case"embed-video":return["video-audio","video-only"];default:return["picture","audio-only","video-only","video-audio"]}},this.initUppyPlugins=(G,ie=this.getCameraModes(this.props.type))=>{var le,ce;G.croppedCanvasOptions={...G.croppedCanvasOptions,fillColor:"#fff",imageSmoothingEnabled:!0,imageSmoothingQuality:"high"};const{autoUploadAfterCrop:oe=!1,isMobile:Q}=this.props;(le=this.uppy)==null||le.use(x.A,{...this.companionCreds,locale:{strings:{}}}).use(p.A,{modes:ie}
15).use(P,{quality:1,cropperOptions:{viewMode:1,background:!1,responsive:!0,...G},actions:{revert:!(G&&G.aspectRatio),rotate:!0,flip:!0,granularRotate:!0,zoomIn:!Q,zoomOut:!Q,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},autoUploadAfterCrop:oe}),(0,y.tN)()||(ce=this.uppy)==null||ce.use(g.A)},this.isUnsupportedFileType=G=>{const ie=["text/html","text/javascript","application/javascript","application/x-msdownload","application/x-rar-compressed"];return(0,i.A)(ie,function(le){return(0,f.A)(G,le)})},this.convertToMb=G=>G/(1024*1024),this.initializeUppy=()=>{var G,ie,le,ce,oe,Q;try{if(this.uppy=new h.default({logger:console,debug:!1,allowMultipleUploads:!1,allowMultipleUploadBatches:!1,onBeforeFileAdded:(Ue,_e)=>{var bt,wt,ls,us;if(!Ue.type||this.isUnsupportedFileType(Ue.type))return(0,m.mei)("Unsupported file format","error"),!1;if(!Ue.size)return(bt=this.uppy)==null||bt.info("Invalid Url, Please download the file and upload"),!1;if((wt=this.props)!=null&&wt.maxFileLength&&((ls=this.props)==null?void 0:ls.maxFileLength)<Ue.name.length)return{...Ue,name:Ue.name.slice(0,(us=this.props)==null?void 0:us.maxFileLength)}}}),!this.uppy){console.error("Failed to initialize Uppy instance");return}const{type:ne="any",path:Oe="/uploads/",location:je="s3",container:xe="ck-file-uploads",region:dt="us-east-1",clusterId:We,hubId:Pe,access:Le,resourceType:Me,onFileUpload:ct,onSuccess:we,cameraModes:be,onUploadProgress:ye,transformFileName:tt}=this.props,{restrictions:Te,transformations:Je}=this.getFileRestrictions(ne);if(this.uppy){this.uppy.setOptions({debug:!1,restrictions:{...Te}}),this.initUppyPlugins(Je,be);const Ue=Le==="public";this.uppy.use(a.A,{id:`AwsS3-${(0,u.A)()}`,getUploadParameters:async _e=>{const bt={location:je,container:xe,path:Oe,filename:typeof tt=="function"?tt(_e.name):_e.name,contentType:_e.type,cluster:We,hub:Pe,isPublic:Ue,region:dt,type:Me,fileSize:_e.size},{data:wt}=await b.E.post("/admin/file-upload",bt);return wt}})}ye&&((G=this.uppy)==null||G.on("progress",ye)),(ie=this.uppy)==null||ie.on("upload-success",(Ue,_e)=>{var bt,wt;this.removeUploaderBodyClass(),this.uppy&&this.uppy.close(),this.focusToTarget(),this.setState({showPicker:!1});const ls=Ue==null?void 0:Ue.type,us=(Ue==null?void 0:Ue.size)||0;if(je==="gcs"){const Xt=(bt=_e.uploadURL)==null?void 0:bt.split("/"),ut=Xt?Xt[Xt.length-1]:"";ct?ct({file:Ue,response:_e}):we({filesFailed:[],filesUploaded:[{filename:ut,size:us,mimetype:ls,url:_e.uploadURL}],file:Ue,response:_e})}else{const Xt=(wt=_e==null?void 0:_e.body)==null?void 0:wt.key;if(!Xt){console.error("FileUploaderV2: Missing key in response.body",{response:_e,file:Ue}),(0,m.mei)(`Error: File upload response is missing required data,
16               please try again and if the problem persists, please contact support.`,"error");return}const ut=Xt.split("/"),$t=ut.length>1?ut[ut.length-1]:ut[0];we({filesFailed:[],filesUploaded:[{filename:$t,size:us,mimetype:ls,key:Xt,url:_e.uploadURL}],file:Ue,response:_e}),this.uppy&&this.uppy.close(),this.initializeUppy()}}),(le=this.uppy)==null||le.on("error",Ue=>{console.log("FileUploaderV2:",Ue),(0,m.mei)(Ue.message,"error")}),(ce=this.uppy)==null||ce.on("upload-error",(Ue,_e,bt)=>{console.log("FileUploaderV2:",_e),(0,m.mei)(_e.message,"error")}),(oe=this.uppy)==null||oe.on("restriction-failed",(Ue,_e)=>{console.log("FileUploaderV2:",_e),(0,m.mei)("Error Uploading!","error",_e.message)}),(Q=this.uppy)==null||Q.on("dashboard:modal-open",()=>{setTimeout(()=>{const Ue=document.querySelectorAll('.uppy-DashboardTab-btn[role="tab"]');for(let _e=0;_e<Ue.length;_e++)Ue[_e].setAttribute("role","button");this.props.uploaderClassName&&document.body.classList.add(this.props.uploaderClassName)},0)})}catch(ne){console.error("Initializing uppy error",ne,this.props)}},this.showPicker=G=>{this.removeUploaderBodyClass(),this.uppy&&this.uppy.close(),this.initializeUppy(),this.setState({showPicker:!0,currentTarget:(G==null?void 0:G.currentTarget)||(G==null?void 0:G.target)})},this.renderUppyWidget=()=>{if(this.uppy)switch(this.props.widgetType){case"DashboardModal":case void 0:return(0,e.jsx)(o.KG,{uppy:this.uppy,open:this.state.showPicker,proudlyDisplayPoweredByUppy:!1,onRequestClose:this.handleClose,autoOpenFileEditor:this.autoOpenFileEditor,plugins:this.plugins,closeAfterFinish:!0,target:document.body,disablePageScrollWhenModalOpen:!0});case"DashboardInline":return(0,e.jsx)(o.xh,{uppy:this.uppy,proudlyDisplayPoweredByUppy:!1,autoOpenFileEditor:this.autoOpenFileEditor,plugins:this.plugins});
16case"FileInput":return(0,e.jsx)("div",{id:"uppy-file-input-target"});case"DropTarget":return(0,e.jsx)("div",{id:"uppy-drop-target",children:this.props.children});default:break}},this.state={showPicker:!1,currentTarget:null},this.plugins=["Url","Webcam","ScreenCapture","ImageEditor"],this.companionCreds={companionUrl:"https://pg-fileservice.prod.pg.services/companion",companionHeaders:{"uppy-auth-token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJQZW9wbGVHcm92ZSIsImlhdCI6MTYyNjI3MDE0MCwiZXhwIjoyNTQxNDE4OTQwLCJhdWQiOiJwZW9wbGVncm92ZS5jb20iLCJzdWIiOiJwZW9wbGVncm92ZS5jb20ifQ.gUTzy612MkVYUV4DVp99ghovgoU8-EMHF6wyxUPsUng",Authorization:"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJQZW9wbGVHcm92ZSIsImlhdCI6MTYyNjI3MDE0MCwiZXhwIjoyNTQxNDE4OTQwLCJhdWQiOiJwZW9wbGVncm92ZS5jb20iLCJzdWIiOiJwZW9wbGVncm92ZS5jb20ifQ.gUTzy612MkVYUV4DVp99ghovgoU8-EMHF6wyxUPsUng"}};try{this.props.widgetType!=="DashboardModal"&&this.initializeUppy()}catch(G){console.error("Error initializing Uppy in constructor:",G)}this.autoOpenFileEditor=!1}componentDidMount(){var $,G;if(this.props.widgetType==="FileInput"){const{uploadButtonText:le}=this.props;($=this.uppy)==null||$.use(C.A,{target:"#uppy-file-input-target",locale:{strings:{chooseFiles:le||"browse device"}}}).on("file-added",ce=>{var oe;(oe=this.uppy)==null||oe.upload()})}if(this.props.widgetType==="DropTarget"){const{onDragAction:le}=this.props;(G=this.uppy)==null||G.use(A.A,{target:"#uppy-drop-target",onDragOver:()=>{le&&le("dragOver")},onDragLeave:()=>{le&&le("dragLeave")}}).on("file-added",ce=>{var oe;(oe=this.uppy)==null||oe.upload()})}this.addFontScaledUp();const{getShowPicker:ie}=this.props;ie&&ie(this.showPicker)}componentWillUnmount(){try{this.removeUploaderBodyClass(),this.uppy&&(this.uppy.close(),this.uppy=void 0)}catch($){console.error("Error cleaning up Uppy instance:",$)}}render(){return(0,e.jsxs)(s.Fragment,{children:[this.props.render&&this.props.render({onPick:this.showPicker}),this.renderUppyWidget()]})}}const F=({appReducer:{isMobile:Z=!1}})=>({isMobile:Z}),V=(0,l.connect)(F,null)(_)},483150:(q,N,t)=>{t.d(N,{A:()=>C});var e=t(715621),s=t(537953),l=t(102736),a=t.n(l);const h={"pg-admin__header":"pg-admin__header__WpotQ",text:"text__VhTHM",title:"title____X5R","action--btn":"action--btn__N80It"},A=({titleNode:o,actionNode:g,className:x})=>(0,e.jsxs)("div",{className:`${h["pg-admin__header"]} ${x}`,children:[(0,e.jsx)("div",{className:h.text,children:(0,e.jsx)("div",{className:h.title,children:o})}),(0,e.jsx)("div",{className:h["action--btn"],children:g})]});A.propTypes={titleNode:a().element.isRequired,actionNode:a().element.isRequired,className:a().string};const C=A},483430:(q,N,t)=>{t.d(N,{A:()=>C});var e=t(715621),s=t(768835),l=t(814247);const a={root:"root__RfR2b"};var h=t(537953);const C=({className:o,loop:g=!1})=>{const x=h.useRef(),[p,c]=h.useState(g);return h.useEffect(()=>(g||(c(!0),x.current=setTimeout(()=>{c(!1),x.current=void 0},3e3)),()=>{x.current&&(clearTimeout(x.current),x.current=void 0)}),[g]),(0,e.jsx)(l.A,{className:(0,s.A)(a.root,o),path:"https://cdn.peoplegrove.com/admin/1680591610653animation.json",loop:p})}},484373:(q,N,t)=>{t.d(N,{A:()=>g});var e=t(715621),s=t(537953),l=t(248883),a=t(768835),h=t(816190),A=t(829080);const C={matchingQuizModal:"matchingQuizModal__ythWR",matchingQuizModalBody:"matchingQuizModalBody__CrOFq",matchingQuizModal_fontScaledUp:"matchingQuizModal_fontScaledUp__xWwQy"},g=x=>{const{open:p=!1,modalId:c="matching-quiz-modal",hideClose:v=!1,onClose:n=()=>{},source:i,onFinish:f=()=>{}}=x,y=(0,A.MU)(),m=(0,s.useCallback)(()=>{n(),f&&f()},[n,f]);return(0,e.jsx)(l.aF,{id:c,open:p,noPadding:!0,hideClose:v,title:"Matching Quiz",className:"login-block login-block__matching-quiz",surfaceClassName:(0,a.A)(C.matchingQuizModal,y&&C.matchingQuizModal_fontScaledUp),bodyProps:{className:C.matchingQuizModalBody},onClose:n,isFullScreen:y,children:(0,e.jsx)(h.A,{closeModal:n,source:i,onFinish:m})})}},493300:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(715621),s=t(537953),l=t(248883),a=t(50391),h=t(407572);const{TextArea:A}=a.A,o=g=>{var x;
16const[p,c]=(0,s.useState)((x=g.value)!=null?x:"");(0,s.useEffect)(()=>{var f;g.show||c((f=g.value)!=null?f:"")},[g.show,g.value]);const v=(0,s.useCallback)(f=>{var y;const m=g.useRichText?f:f.target.value;c(m),(y=g.onChange)==null||y.call(g,m)},[g.useRichText,g.onChange]),n=(0,s.useCallback)(()=>{var f;(f=g.onBlur)==null||f.call(g)},[g.onBlur]),i=(0,s.useMemo)(()=>{const f=g.placeholder||"";return g.value?g.useRichText?(0,h.T)({html:g.value,fallbackValue:f}):g.value.trim().length>0?g.value:f:f},[g.placeholder,g.useRichText,g.value]);return(0,e.jsxs)("div",{className:"pg-preline",children:[g.show?null:(0,e.jsx)("span",{...typeof g.makeEditable=="function"?{onClick:()=>g.makeEditable()}:{},children:i}),g.show&&(g.useRichText?(0,e.jsx)(l.sD,{placeholder:g.placeholder,value:p,onChange:v,onBlur:n,focusOnInit:!0,...g.textAreaProps},"rich-text-editor"):(0,e.jsx)(A,{rows:2,value:p,placeholder:g.placeholder,onChange:v,onBlur:n,autoFocus:!0,...g.textAreaProps},"text-area-editor"))]})}},497754:(q,N,t)=>{t.d(N,{A:()=>l});var e=t(715621),s=t(537953);
16function l({size:a,color:h}){return(0,e.jsx)("svg",{width:a,height:a,viewBox:"0 0 58 58",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,e.jsx)("g",{transform:"translate(-535.000000, -258.000000)",children:(0,e.jsx)("g",{transform:"translate(117.000000, 206.000000)",children:(0,e.jsx)("g",{transform:"translate(312.000000, 0.000000)",children:(0,e.jsx)("g",{transform:"translate(8.000000, 8.000000)",children:(0,e.jsxs)("g",{transform:"translate(100.000000, 46.000000)",children:[(0,e.jsx)("circle",{stroke:h,strokeWidth:"4",fillOpacity:"0.14",fill:"#000000",cx:"27",cy:"27",r:"27"}),(0,e.jsx)("polygon",{fill:h,transform:"translate(28.687500, 27.421875) rotate(90.000000) translate(-28.687500, -27.421875) ",points:"28.6875 20.25 39.65625 34.59375 17.71875 34.59375"})]})})})})})})})}l.defaultProps={size:"58px",color:"#FFFFFF"}},501904:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(715621),s=t(537953),l=t(768835),a=t(140919),h=t(770506);const A={"bg-primary-xlight":"bg-primary-xlight__UjIJY","bg-primary-light":"bg-primary-light__l_enb","bg-primary":"bg-primary__Yv6L6","bg-primary-dark":"bg-primary-dark__Nlfnq","bg-primary-xdark":"bg-primary-xdark__l13QN","bg-secondary-xlight":"bg-secondary-xlight__Ji3dy","bg-secondary-light":"bg-secondary-light__KMEm3","bg-secondary":"bg-secondary__XtpTI","bg-secondary-dark":"bg-secondary-dark__QdjKV","bg-secondary-xdark":"bg-secondary-xdark__CUsB9","bg-success-xlight":"bg-success-xlight__HVaJZ","bg-success-light":"bg-success-light__AIt_X","bg-success":"bg-success__GZi9e","bg-success-dark":"bg-success-dark__A5wYj","bg-success-xdark":"bg-success-xdark__CBntc","bg-info-xlight":"bg-info-xlight__gDEnS","bg-info-light":"bg-info-light__jzLpd","bg-info":"bg-info__RO_UC","bg-info-dark":"bg-info-dark__Iqppv","bg-info-xdark":"bg-info-xdark__Z_1D7","bg-warning-xlight":"bg-warning-xlight__JWyGE","bg-warning-light":"bg-warning-light__uCMAG","bg-warning":"bg-warning__B1A6e","bg-warning-dark":"bg-warning-dark__H1zWn","bg-warning-xdark":"bg-warning-xdark__WMWmP","bg-alert-xlight":"bg-alert-xlight__qyG1o","bg-alert-light":"bg-alert-light__xPLI0","bg-alert":"bg-alert__QwGTS","bg-alert-dark":"bg-alert-dark__nszDA","bg-alert-xdark":"bg-alert-xdark__GnPQv","bg-danger-xlight":"bg-danger-xlight__Cjw1Z","bg-danger-light":"bg-danger-light__ZBI1o","bg-danger":"bg-danger__IXZte","bg-danger-dark":"bg-danger-dark__i27cc","bg-danger-xdark":"bg-danger-xdark__BipTe",audioRecorder:"audioRecorder__H_vq4"},C=({questionId:g,answerData:x,editMode:p,onChange:c,dispatchPrompt:v,hidePrompt:n,qnaObj:i,isPersonalView:f,playerRef:y})=>{const{audioSrc:m,transcriptURL:b}=x,{updatedAt:u,createdAt:d}=i,I=u!=null?u:d,E=P=>{const H={audioSrc:P};P===null&&(H.recorded=!1),c({...x,...H})},M=P=>{c({...x,recorded:P})},S=P=>{c({...x,isRecording:P})};return p?(0,e.jsx)("div",{className:(0,l.A)(A.audioRecorder,"cj-qa-record-audio"),children:(0,e.jsx)(h.A,{audioSrc:m,onChangeAudioSrc:E,onAudioRecorded:M,prefixFileName:`cj_${g}`,isStandardProfileV2:!0,dispatchPrompt:v,hidePrompt:n,onAudioRecordInProgress:S})}):(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(a.A,{src:m,showTranscript:!0,transcriptURL:b,audioLastUpdatedAt:I,isPersonalView:f,hideBoxShadow:!0,ref:y})})},o=s.memo(C)},510343:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(715621),s=t(537953),l=t(595526),a=t(246239);const h={},A=[{value:"10",name:"10"},{value:"20",name:"20"},{value:"50",name:"50"},{value:"100",name:"100"}],o=({total:g=0,current:x=1,pageSize:p=10,onChange:c=f=>{},label:v="Items per page:",pageSizeOptions:n=[],className:i=""})=>g>0?(0,e.jsxs)("div",{className:`page-size-select ${i}`,children:[(0,e.jsx)("div",{className:"page-size-select__text",children:v}),(0,e.jsx)(a.l6,{defaultValue:"10",onChange:c,value:p.toString(),options:(0,l.A)(n)&&n.length>0?n:A}),(0,e.jsxs)("div",{className:"page-size-select__text",children:[(x-1)*p+1," -"," ",x*p>g?g:x*p," of"," ",(0,e.jsx)("strong",{children:g})]})]}):null},511807:(q,N,t)=>{t.d(N,{A:()=>W});var e=t(715621),s=t(537953),l=t(768835),a=t(939291),h=t(972185),A=t(829080),C=t(69914);const o={"bg-primary-xlight":"bg-primary-xlight__zoqS0","bg-primary-light":"bg-primary-light__bN7Ky","bg-primary":"bg-primary__QEXUB","bg-primary-dark":"bg-primary-dark__wwwb1","bg-primary-xdark":"bg-primary-xdark__ymDWX","bg-secondary-xlight":"bg-secondary-xlight__kiQqi","bg-secondary-light":"bg-secondary-light__Dt6wu","bg-secondary":"bg-secondary__FdH_i","bg-secondary-dark":"bg-secondary-dark__pfm8B","bg-secondary-xdark":"bg-secondary-xdark__HPP1k","bg-success-xlight":"bg-success-xlight__E7fjf","bg-success-light":"bg-success-light__sThzC","bg-success":"bg-success__JT_Ab","bg-success-dark":"bg-success-dark__XDuJF","bg-success-xdark":"bg-success-xdark__Mmh0v","bg-info-xlight":"bg-info-xlight__W7ohT","bg-info-light":"bg-info-light__KsJJN","bg-info":"bg-info__pm4hj","bg-info-dark":"bg-info-dark__M7waM","bg-info-xdark":"bg-info-xdark__VFrsD","bg-warning-xlight":"bg-warning-xlight__sswGn","bg-warning-light":"bg-warning-light__VhlpP","bg-warning":"bg-warning__H9S86","bg-warning-dark":"bg-warning-dark__gDK35","bg-warning-xdark":"bg-warning-xdark__qsCbg","bg-alert-xlight":"bg-alert-xlight__iyNrv","bg-alert-light":"bg-alert-light__kRPrO","bg-alert":"bg-alert__x7xMZ","bg-alert-dark":"bg-
16alert-dark__ETKxi","bg-alert-xdark":"bg-alert-xdark__vd8j9","bg-danger-xlight":"bg-danger-xlight__VYxB7","bg-danger-light":"bg-danger-light__gHTXu","bg-danger":"bg-danger__IdWLA","bg-danger-dark":"bg-danger-dark__VOPqj","bg-danger-xdark":"bg-danger-xdark__OmA3v",ratingItem:"ratingItem__pImwD",ratingItemContainer:"ratingItemContainer__SzfXX",active:"active__BYe7Z",selectedItem:"selectedItem__ucJ3B",question:"question__AI56w",flexColumn:"flexColumn__cRgru",ratingScaleFontScaled:"ratingScaleFontScaled__p_n3I"},x=({answerData:B,editMode:k,onChange:_,questionId:F,qnaObj:U,className:V="",ratingItemClassName:Z="",additionalTitleComponent:$,answerDivId:G,disabled:ie,questionAsTitle:le=!0})=>{const ce=(0,A.MU)(),oe=(0,a.A)(B,"value",null),Q=[1,2,3,4,5],ne=(0,s.useRef)(null),[Oe]=(0,s.useState)((0,C.A)()),[je,xe]=(0,s.useState)(!1),dt=()=>{var be;if(!je){xe(!0);const ye=document.getElementById(((be=ne.current)==null?void 0:be.getAttribute("aria-activedescendant"))||Pe(Q[0]));ye&&ye!==document.activeElement&&ye.focus()}},We=be=>{const ye=be.relatedTarget;if(be.target===ne.current){if((ye==null?void 0:ye.parentElement)===be.target)return xe(!0);xe(!1)}},Pe=be=>Oe+"-radio-item-"+be,Le=be=>{_({...B,value:be});const ye=document.getElementById(Pe(be));ye&&ye.focus()},ct=(()=>{switch(F){case 4:return{1:"Never",2:"Rarely",3:"Occasionally",4:"Very Frequently",5:"Always"};case 9:return{1:"Very Easy",2:"Easy",3:"Okay",4:"Hard",5:"Very hard"};case 15:return{1:"Very Poor",2:"Poor",3:"Acceptable",4:"Good",5:"Very Good"};default:return{}}})();if(!k)return(0,e.jsx)("div",{id:G,children:(0,e.jsxs)("div",{className:o.ratingItem,children:[Q.includes(oe)&&ct[oe]," "]})});const we=be=>{let ye=!1;const tt=be.currentTarget;if(ie)return;const Te=parseInt(tt.getAttribute("data-rating")||oe||"0",10);switch(be.key){case" ":case"Enter":Le(Te),ye=!0;break;case"Up":case"ArrowUp":case"Left":case"ArrowLeft":Te>Q[0]?Le(Te-1):Le(Q.slice(-1)[0]),ye=!0;break;case"Down":case"ArrowDown":case"Right":case"ArrowRight":Te<Q.slice(-1)[0]?Le(Te+1):Le(Q[0]),ye=!0;break;default:break}ye&&(be.stopPropagation(),be.preventDefault())};return(0,e.jsxs)("div",{className:(0,l.A)(V,{[o.ratingScaleFontScaled]:ce}),children:[(0,e.jsxs)("div",{children:[le?(0,e.jsx)("div",{className:o.question,children:U.question}):null,$||null]}),(0,e.jsx)("div",{className:o.ratingItemContainer,role:"radiogroup","aria-labelledby":Oe,onKeyDown:we,onFocus:dt,onBlur:We,tabIndex:je?-1:0,ref:ne,"aria-activedescendant":oe?Pe(oe):void 0,children:(0,h.A)(Q,(be,ye)=>(0,e.jsx)("div",{className:(0,l.A)([1,5].includes(oe)&&o.flexColumn),id:Pe(be),onClick:()=>{ie||Le(be)},tabIndex:!oe&&ye===0||oe===be?0:-1,role:"radio","aria-checked":be===parseInt(oe||0)?"true":"false","data-rating":be,onKeyDown:we,children:(0,e.jsxs)("label",{children:[(0,e.jsx)("span",{className:(0,l.A)(oe===be&&o.selectedItem,o.ratingItem,oe!==be&&Z),children:be}),(0,e.jsx)("span",{children:[1,5].includes(be)?ct[be]:""})]})},be))})]})};var p=t(248883),c=t(90570),v=t(704681),n=t(177587),i=t(257111),f=t(869248);const y={"bg-primary-xlight":"bg-primary-xlight__Gl3bS","bg-primary-light":"bg-primary-light____fuq","bg-primary":"bg-primary__pDpF1","bg-primary-dark":"bg-primary-dark__edQNO","bg-primary-xdark":"bg-primary-xdark__wk_JD","bg-secondary-xlight":"bg-secondary-xlight___3I6E","bg-secondary-light":"bg-secondary-light__oVedF","bg-secondary":"bg-secondary__pNiOq","bg-secondary-dark":"bg-secondary-dark__NX1Lg","bg-secondary-xdark":"bg-secondary-xdark__guhj5","bg-success-xlight":"bg-success-xlight__het_l","bg-success-light":"bg-success-light__W36pr","bg-success":"bg-success___keVm","bg-success-dark":"bg-success-dark__b9Acb","bg-success-xdark":"bg-success-xdark__gYqoP","bg-info-xlight":"bg-info-xlight__Hyrde","bg-info-light":"bg-info-light__d5tYh","bg-info":"bg-info__SF6qF","bg-info-dark":"bg-info-dark__rhysL","bg-info-xdark":"bg-info-xdark__YwvpB","bg-warning-xlight":"bg-warning-xlight__Qu9y7","bg-warning-light":"bg-warning-light__rL1NI","bg-warning":"bg-warning__PzYAz","bg-warning-dark":"bg-warning-dark__HPtrk","bg-warning-xdark":"bg-warning-xdark__Galg3","bg-alert-xlight":"bg-alert-xlight__kBtK5","bg-alert-light":"bg-alert-light__PDuAb","bg-alert":"bg-alert__ACL9w","bg-alert-dark":"bg-
16alert-dark__RBRS2","bg-alert-xdark":"bg-alert-xdark__Bhd3B","bg-danger-xlight":"bg-danger-xlight__MVuB3","bg-danger-light":"bg-danger-light__ZW34J","bg-danger":"bg-danger__aonXf","bg-danger-dark":"bg-danger-dark__T_tx3","bg-danger-xdark":"bg-danger-xdark__lQ27Y",annotationContainer:"annotationContainer__iAuCG",annotationContainerFontScaled:"annotationContainerFontScaled__chbcv"},b=({value:B,count:k,trackData:_})=>{const F=(0,A.MU)();return(0,e.jsx)("div",{className:(0,l.A)(y.annotationContainer,{[y.annotationContainerFontScaled]:F}),children:(0,e.jsx)(f.A,{value:B,count:k,trackData:_})})};var u=t(501904);const d={"bg-primary-xlight":"bg-primary-xlight__uKtkg","bg-primary-light":"bg-primary-light__oLDD3","bg-primary":"bg-primary__ZFVoY","bg-primary-dark":"bg-primary-dark__RwY0U","bg-primary-xdark":"bg-primary-xdark__iQB6f","bg-secondary-xlight":"bg-secondary-xlight__oiZE_","bg-secondary-light":"bg-secondary-light__LoVzq","bg-secondary":"bg-secondary__lbtEP","bg-secondary-dark":"bg-secondary-dark__Fq2oO","bg-secondary-xdark":"bg-secondary-xdark__FVIXX","bg-success-xlight":"bg-success-xlight__nmne3","bg-success-light":"bg-success-light__ephPh","bg-success":"bg-success__O_IUw","bg-success-dark":"bg-success-dark__ohmCR","bg-success-xdark":"bg-success-xdark__Xhc3A","bg-info-xlight":"bg-info-xlight__p0jo7","bg-info-light":"bg-info-light__cRIWm","bg-info":"bg-info__rvagG","bg-info-dark":"bg-info-dark__GyQM2","bg-info-xdark":"bg-info-xdark__sOM5M","bg-warning-xlight":"bg-warning-xlight__U1cti","bg-warning-light":"bg-warning-light__i5Uc4","bg-warning":"bg-warning__saKZX","bg-warning-dark":"bg-warning-dark__H9br3","bg-warning-xdark":"bg-warning-xdark__vtWE8","bg-alert-xlight":"bg-alert-xlight__SsnKM","bg-alert-light":"bg-alert-light__Jagg0","bg-alert":"bg-alert__MbLOM","bg-alert-dark":"bg-alert-dark__paIpe","bg-alert-xdark":"bg-alert-xdark__qEkR8","bg-danger-xlight":"bg-danger-xlight__CAgML","bg-danger-light":"bg-danger-light__Qw9xP","bg-danger":"bg-danger__icD_B","bg-danger-dark":"bg-danger-dark__CAJea","bg-danger-xdark":"bg-danger-xdark__xPaNY",textInput:"textInput__eqvvI",question:"question__ntbAi",promptButtonGroup:"promptButtonGroup__C9ETz",textInputFontScaled:"textInputFontScaled__5iZUi",promptButtonGroupFontScaled:"promptButtonGroupFontScaled__JbiCn"},{Group:I}=p.$n,M=B=>{var k;const{answerData:_,editMode:F,onChange:U,mode:V,qnaObj:Z,SwitchInputComponent:$,className:G="",feedbackMessages:ie,showPrompt:le,hidePrompt:ce,trackData:oe,initiallyShowAudio:Q,additionalTitleComponent:ne,answerDivId:Oe,disabled:je,error:xe="",warning:dt="",showAnnotation:We=!0,questionAsTitle:Pe=!0}=B,Le=(0,A.MU)(),Me=!!((k=Z==null?void 0:Z.answerData)!=null&&k.audioSrc)||Q,[ct,we]=(0,s.useState)(Me),be=We&&V!=="view"&&!ct&&!(0,c.A)(ie),ye=(0,s.useRef)(null),tt=(0,a.A)(_,"value",""),Te=(0,a.A)(_,"answerType"),Je=(0,a.A)(_,"count",0),Ue=Xt=>{var ut;const $t=((ut=ye==null?void 0:ye.current)==null?void 0:ut.getCharCount())||0;U({..._,value:Xt,count:$t})},_e=Xt=>{Xt?(U({..._,answerType:"audio",value:"",count:0}),we(!0)):(U({..._,answerType:void 0,audioSrc:void 0,recorded:void 0,isRecording:!1}),we(!1)),ce()},bt=Xt=>{const ut=Xt==="audio";ct!==ut&&(_&&!(0,i.wR)(_)?le({type:"showPrompt",title:"Are you sure?",body:(0,e.jsxs)(e.Fragment,{children:[`If you switch to ${ut?"an audio recording":"a text response"} you'll lose what you ${ut?"wrote":"recorded"}.`,(0,e.jsx)("br",{}),"Are you sure you want to discard it?"]}),cancelBtnText:"No",onCancel:()=>{},okBtnText:"Yes",onOk:()=>_e(ut)}):(we(ut),_e(ut)))},wt={...B,dispatchPrompt:le,hidePrompt:ce};if(Te==="audio"&&!F)return(0,e.jsx)(u.A,{...wt});if(!F)return(0,e.jsx)("div",{id:Oe,children:(0,e.jsx)(v.A,{children:(0,e.jsx)(n.A,{text:tt})})});const ls=50,us=1e3;return(0,e.jsxs)("div",{className:(0,l.A)(d.textInput,G,{[d.textInputFontScaled]:Le}),children:[(0,e.jsxs)("div",{children:[Pe?(0,e.jsx)("div",{className:d.question,children:Z.question}):null,ne||null]}),be&&(0,e.jsx)(b,{value:tt,count:Je,trackData:oe}),$?null:(0,e.jsxs)(I,{className:(0,l.A)(d.promptButtonGroup,{[d.promptButtonGroupFontScaled]:Le}),children:[(0,e.jsx)(p.$n,{onClick:()=>bt("text"),type:ct?"secondary":"primary",children:"Text Response"}),(0,e.jsx)(p.$n,{onClick:()=>bt("audio"),type:ct?"primary":"secondary",children:"Audio Response"})]}),ct?(0,e.jsx)("div",{children:(0,e.jsx)(u.A,{...wt})}):(0,e.jsx)("div",{children:(0,e.jsx)(p.sD,{id:`${Oe}
16-input`,ref:ye,toolbarType:"least",value:tt,onChange:Ue,customConfig:{charCounterCount:!0,charCounterMin:ls,charCounterMax:us},disabled:je,placeholder:"Share your thoughts",warning:dt,error:xe,ariaLabel:Pe?Z.question:"Share your thoughts"})}),$?(0,e.jsx)($,{disabled:je,audioSection:ct,switchAnswerType:bt}):null]})};var S=t(62644),P=t(384204),H=t(68183);const L={"bg-primary-xlight":"bg-primary-xlight__AUfHR","bg-primary-light":"bg-primary-light__azVs3","bg-primary":"bg-primary__USpdX","bg-primary-dark":"bg-primary-dark__y12ix","bg-primary-xdark":"bg-primary-xdark__pQCB4","bg-secondary-xlight":"bg-secondary-xlight__Yeq7k","bg-secondary-light":"bg-secondary-light__i_wQM","bg-secondary":"bg-secondary__ggFAY","bg-secondary-dark":"bg-secondary-dark__Q0e1X","bg-secondary-xdark":"bg-secondary-xdark__LDYlS","bg-success-xlight":"bg-success-xlight__q1f6f","bg-success-light":"bg-success-light__VNqa3","bg-success":"bg-success__Zrmec","bg-success-dark":"bg-success-dark__kbNfW","bg-success-xdark":"bg-success-xdark__b16Qj","bg-info-xlight":"bg-info-xlight__bJg6O","bg-info-light":"bg-info-light__JOCtH","bg-info":"bg-info__NL5rq","bg-info-dark":"bg-info-dark__xFRMP","bg-info-xdark":"bg-info-xdark__Zn5BO","bg-warning-xlight":"bg-warning-xlight__X47C6","bg-warning-light":"bg-warning-light__vCtJu","bg-warning":"bg-warning__Q63uU","bg-warning-dark":"bg-warning-dark__W9vZ3","bg-warning-xdark":"bg-warning-xdark__m69GI","bg-alert-xlight":"bg-alert-xlight__Okrsb","bg-alert-light":"bg-alert-light__DyLyo","bg-alert":"bg-alert__AiOHZ","bg-alert-dark":"bg-alert-dark__u75qo","bg-alert-xdark":"bg-alert-xdark__YQfLL","bg-danger-xlight":"bg-danger-xlight__B7pOj","bg-danger-light":"bg-danger-light__eNZ9h","bg-danger":"bg-danger__xuqD9","bg-danger-dark":"bg-danger-dark__SYl0z","bg-danger-xdark":"bg-danger-xdark__bIukX",textInputWithLinkPreview:"textInputWithLinkPreview__Xcao5",question:"question__LfgjZ",questionLink:"questionLink__S_0w5",promptButtonGroup:"promptButtonGroup__fCPHk"},{Group:O}=p.$n,W={text:M,textLink:B=>{var k;const{answerData:_,editMode:F,onChange:U,mode:V,qnaObj:Z,SwitchInputComponent:$,className:G="",feedbackMessages:ie,showPrompt:le,hidePrompt:ce,trackData:oe,initiallyShowAudio:Q,additionalTitleComponent:ne,answerDivId:Oe,disabled:je,error:xe="",warning:dt="",showAnnotation:We=!0,questionAsTitle:Pe=!0}=B,Le=!!((k=Z==null?void 0:Z.answerData)!=null&&k.audioSrc)||Q,[Me,ct]=(0,s.useState)(Le),we=We&&V!=="view"&&!Me&&!(0,c.A)(ie),be=(0,a.A)(_,"count",0),ye=(0,s.useRef)(null),tt=(0,a.A)(_,"answerType"),Te=(0,a.A)(_,"value",""),Je=(0,a.A)(_,"link",""),Ue=(0,a.A)(_,"linkPreview"),_e=(ut,$t)=>{var As;const kt=((As=ye==null?void 0:ye.current)==null?void 0:As.getCharCount())||0;U({..._,[ut]:$t,count:kt})},bt=ut=>{ut?(U({..._,answerType:"audio",value:"",count:0}),ct(!0)):(U({..._,answerType:void 0,audioSrc:void 0,recorded:void 0,isRecording:!1}),ct(!1)),ce()},wt=ut=>{const $t=ut==="audio";Me!==$t&&(_&&!(0,i.wR)(_)?le({type:"showPrompt",title:"Are you sure?",body:(0,e.jsxs)(e.Fragment,{children:[`If you switch to ${$t?"an audio recording":"a text response"} you'll lose what you ${$t?"wrote":"recorded"}.`,(0,e.jsx)("br",{}),"Are you sure you want to discard it?"]}),cancelBtnText:"No",onCancel:()=>{},okBtnText:"Yes",onOk:()=>bt($t)}):(ct($t),bt($t)))},ls={...B,dispatchPrompt:le,hidePrompt:ce};return tt==="audio"&&!F?(0,e.jsx)(u.A,{...ls}):F?(0,e.jsxs)("div",{className:(0,l.A)(L.textInputWithLinkPreview,G),children:[(0,e.jsxs)("div",{children:[Pe?(0,e.jsx)("div",{className:L.question,children:Z.question}):null,ne||null]}),we&&(0,e.jsx)(b,{value:Te,count:be,trackData:oe}),$?null:(0,e.jsxs)(O,{className:L.promptButtonGroup,children:[(0,e.jsx)(p.$n,{onClick:()=>wt("text"),type:Me?"secondary":"primary",children:"Text Response"}),(0,e.jsx)(p.$n,{onClick:()=>wt("audio"),type:Me?"primary":"secondary",children:"Audio Response"})]}),!Me&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p.sD,{id:`${Oe}-input`,ref:ye,toolbarType:"least",value:Te,onChange:ut=>_e("value",ut),customConfig:{charCounterCount:!0,charCounterMin:50,charCounterMax:1e3},disabled:je,placeholder:"Share your thoughts",error:xe,warning:dt,ariaLabel:Pe?Z.question:"Share your thoughts"}),(0,e.jsx)(p.pd,{type:"text",size:"small",label:(0,e.jsxs)("div",{children:[(0,e.jsx)(p.C0,{src:"https://cdn.peoplegrove.com/icons/link-o.svg",size:16}),(0,e.jsx)("span",{children:"Add Link Preview"})]}),disabled:je,placeholder:"Share a book, twitter feed, or other helpful resource",value:Je,onChange:ut=>_e("link",ut),className:L.questionLink}),(0,e.jsx)(H.A,{previewCard:Ue,textToCheck:Je,setPreviewCard:ut=>_e("linkPreview",ut),enforceSmallCard:!0})]}),Me&&(0,e.jsx)("div",{children:(0,e.jsx)(u.A,{...ls})}),$?(0,e.jsx)($,{disabled:je,audioSection:Me,switchAnswerType:wt}):null]}):(0,e.jsxs)("div",{id:Oe,children:[(0,e.jsx)(v.A,{children:(0,e.jsx)(n.A,{text:Te})}),Je&&(0,e.jsx)("div",{children:(0,c.A)(Ue)?(0,e.jsxs)("a",{href:Je,target:"_blank",rel:"noopener noreferrer",children:[(0,e.jsx)(p.K0,{type:"secondary",size:"xsmall",icon:(0,e.jsx)(S.A,{type:"link"}),tabIndex:-1,"aria-label":"link"}),Je]}):(0,e.jsx)(P.A,{preview:Ue})})]})},rating:x}},517764:(q,N,t)=>{t.d(N,{A:()=>E});var e=t(715621),s=t(537953),l=t(71595),a=t(50391),h=t(888864),A=t(529477),C=t(69943),o=t(154429),g=t(533692),x=t(969134),p=t(768193),c=t(428460),v=t(263775),n=t(207688),i=t(186824),f=t(804273),y=t(574189);const{Item:m}=l.A,{TextArea:b}=a.A,u={input:a.A,textarea:b,radio:h.Ay,radiogroup:y.A,multipleselect:v.A,select:p.A,singleselect:c.A,searchselect:n.A,switch:A.A,checkbox:C.A,checkboxgroup:x.A,datepicker:o.A,bubbleselect:g.A,iframeinput:i.A,previewusers:f.A};class d extends s.Component{render(){const{id:S,rules:P,type:H,label:L,value:O,valuePropName:K="value",options:T,config:D={},disabled:W,getFieldDecorator:B}=this.props,k=typeof H=="string"?u[H]:H;return(0,e.jsx)(m,{label:L,children:B(S,{rules:P,initialValue:O,valuePropName:K})((0,e.jsx)(k,{options:T,disabled:W,...D}))})}}const E=d},521460:(q,N,t)=>{t.d(N,{A:()=>p});var e=t(715621),s=t(537953),l=t(539104);const a={};var h=t(988705),A=t(442967),C=Object.defineProperty,o=(c,v,n)=>v in c?C(c,v,{enumerable:!0,configurable:!0,writable:!0,value:n}
16):c[v]=n,g=(c,v,n)=>o(c,typeof v!="symbol"?v+"":v,n);class x extends s.PureComponent{constructor(v){super(v),g(this,"componentDidMount",()=>{const{visibility:i,isMobile:f}=this.props;f||this.handleDialogFocus(),i&&this.toggleBodyOverflow(i)}),g(this,"toggleBodyOverflow",i=>{setTimeout(i?()=>{const f=document.getElementsByClassName("ckbg");f&&f.length&&f[0].classList.add("overflow-hidden")}:()=>{const f=document.getElementsByClassName("ckbg");f&&f.length&&f[0].classList.remove("overflow-hidden")},100)}),g(this,"handleDialogFocus",()=>{setTimeout(()=>{this.cleanup=(0,l.A)({id:"slideup-dialog"})},50)});const{visibility:n=!1}=v;this.state={isMounted:!!n,isOpen:!!n},this.cleanup=!1}componentDidUpdate(v){const{visibility:n,loading:i,destroyOnClose:f=!1,isMobile:y}=this.props;n!==v.visibility&&this.toggleBodyOverflow(n),n&&!i&&!y&&this.handleDialogFocus(),f&&(n&&!v.visibility?(this.setState({isMounted:!!n}),setTimeout(()=>this.setState({isOpen:!!n}),300)):!n&&v.visibility&&(this.setState({isOpen:!!n}),setTimeout(()=>this.setState({isMounted:!!n}),300)))}componentWillUnmount(){this.toggleBodyOverflow(!1),this.cleanup&&typeof this.cleanup=="function"&&this.cleanup()}render(){const{visibility:v,className:n="",icon:i=null,focusIcon:f=!0,destroyOnClose:y=!1,toggleVisibility:m,title:b=null,footer:u=null,children:d}=this.props,{isMounted:I,isOpen:E}=this.state,M={};f&&(M.tabIndex="0");const S=y?E:v;return h.createPortal((!y||I)&&(0,e.jsx)("div",{id:"slideup-dialog",role:"dialog","aria-modal":"true","aria-label":b,className:`${S?"slide-up-overlay-container":""} ${n}`,children:(0,e.jsxs)("div",{className:S?"slide-up-overlay slide-up-overlay__full-height":"slide-up-overlay",children:[i||(0,e.jsx)("i",{role:"button",className:"campuskudos-delete-1 slide-up-overlay__icon",onClick:m,onKeyDown:A.A6,"aria-label":"Close Drawer",...M}),b?(0,e.jsx)("div",{className:"slide-up-overlay__title",children:b}):null,u?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"slide-up-overlay__body",children:d}),(0,e.jsx)("div",{className:"slide-up-overlay__footer",children:u})]}):d]})}),document.body)}}const p=x},523603:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(939291),s=t(551471),l=t.n(s),a=t(425170),h=t(294097),A=t(870052);const o={track:({hub:g,cluster:x,location:p,user:c})=>{let v="",n="",i=null,f="";const y=(0,a.vAc)(p.search),m=p.pathname;if(m.includes("discussion")&&(v="Question",m.includes("question")&&(i=m.split("/")[5]),n="discussion"),(m.includes("job")||m.includes("projects"))&&(v=m.includes("projects")?"Project":"JobPost",n=m.includes("projects")?"project":"job",m.includes("detail")&&(f=m.split("/")[5])),m.includes("person")&&(v="Person",n="recommendation"),m.includes("profile")&&(v="User",n="recommendation",f=m.split("/")[2]),m.includes("resources")&&(v="CareerResource",n="resource",m.includes("post")&&(f=m.split("/")[5])),m.includes("events")){v="HubEvent",n="event";const u=m.split("/");u.length===5&&(i=u[4])}if(m.includes("home-v3")){const u=(0,e.A)(y,"viewAnnouncement",!1);u&&(n="announcement",v="Announcement",u!=="all"&&(i=u))}const b={objectType:v,objectId:i?parseInt(i,10):null,slug:f,hub:g.id,sourceId:y.utm_source_id};Promise.all([h.E.get(`/hub-news-letter/${y.utm_source_id}`),h.E.post("/user-view-history/track",b)]).then(u=>{const[{data:d},I]=u,E={currentUser:c,hubInfo:g,clusterInfo:x,PageURL:p.pathname},M={pgAnalytics:"Newsletter_click",pgAnalyticsClickedCategory:n.charAt(0).toUpperCase()+n.slice(1),pgAnalyticsCategory:"Newsletter V2",pgAnalyticsCreatedAt:l()().format("YYYY-MM-DDTHH:MM:SS"),pgAnalyticsRecipientId:c.id,pgAnalyticsNewsletterName:d.name,pgAnalyticsClickedUrl:p.href};A.A.trackEvent(M,E)}).catch(u=>console.log("Error while track",u))}}},526579:(q,N,t)=>{t.d(N,{xr:()=>g,GS:()=>a,Me:()=>A,GL:()=>x,Vh:()=>C});var e=t(686993),s=t(30249);const l=(0,e.eU)({});l.debugLabel="mentorMessages";const a=()=>(0,s.fp)(l),h=(0,e.eU)(-1);h.debugLabel="selectedMessageTemplateId";const A=()=>(0,s.fp)(h),C=()=>(0,s.Xr)(h),o=(0,e.eU)(-1);o.debugLabel="askingQuestionToAtom";const g=()=>(0,s.fp)(o),x=()=>(0,s.Xr)(o)},528251:(q,N,t)=>{t.d(N,{A:()=>g});var e=t(939291),s=t(551471),l=t.n(s),a=t(425170),h=t(294097),A=t(401644),C=t(870052);const g={track:({hub:x,cluster:p,location:c,user:v})=>{let n="",i="",f=null,y="";const m=(0,a.vAc)(c.search),b=c.pathname;if(b.includes("preferences/notifications")&&(n="NotificationPreferences",i="notification_preferences"),b.includes("preferences/hubs-availability")&&(n="HubsAvailabilityPreferences",i="hubs_availability_preferences"),b.includes("preferences/manage-calendar")&&(n="Manage
16CalendarPreferences",i="manage_calendar_preferences"),b.includes("inbox")){n="Inbox",i="inbox";const d=b.split("/");d.length===3&&(n="MessageThread",i="message_thread",y=d[2])}if(b.includes("profile")&&(n="User",i="profile",(0,A.Z9)(x,c)?y=b.split("/")[4]:y=b.split("/")[2]),b.includes("pathways")&&(n="Pathway",i="pathway",y=b.split("/")[4]),b.includes("career-paths")&&(n="CareerPaths",i="career_paths",b.includes("career-paths/career")&&(n="CareerPath",i="career_path",y=b.split("/")[5])),b.includes("events")){n="HubEvent",i="event";const d=b.split("/");d.length===5&&(f=d[4])}if(b.includes("job/list/all-job")&&(n="JobPosts",i="job_posts"),b.includes("job/detail")&&(n="JobPost",i="job_post",y=b.split("/")[5]),b.includes("projects/create")&&(n="CreateProject",i="create_project"),b.includes("groups")&&(n="Groups",i="groups"),b.includes("person")&&(n="Person",i="network"),b.includes("home-v3")){n="HomePage",i="home_page";const d=(0,e.A)(m,"viewAnnouncement",!1);d&&(i="announcement",n="Announcement",d!=="all"&&(f=d))}const u={objectType:n,objectId:f?parseInt(f,10):null,slug:y,hub:x.id,sourceId:m.utm_source_id,source:"dynamic_newsletter"};Promise.all([h.E.get(`/hub-news-letter/${m.utm_source_id}`),h.E.post("/user-view-history/track",u)]).then(d=>{const[{data:I}]=d,E={currentUser:v,hubInfo:x,clusterInfo:p,PageURL:c.pathname},M={pgAnalytics:"DynamicNewsletter_click",pgAnalyticsClickedCategory:i.charAt(0).toUpperCase()+i.slice(1),pgAnalyticsCategory:"Dynamic Newsletter",pgAnalyticsCreatedAt:l()().format("YYYY-MM-DDTHH:MM:SS"),pgAnalyticsRecipientId:v.id,pgAnalyticsNewsletterName:I.name,pgAnalyticsClickedUrl:window.location.href};C.A.trackEvent(M,E)}).catch(d=>console.error("Erorr while tracking newsletter events:",d))}}},528393:(q,N,t)=>{t.d(N,{T:()=>c,A:()=>v});var e=t(715621),s=t(537953),l=t(69943),a=t(972185),h=t(785665),A=t(246239);const C={};var o=Object.defineProperty,g=(n,i,f)=>i in n?o(n,i,{enumerable:!0,configurable:!0,writable:!0,value:f}):n[i]=f,x=(n,i,f)=>g(n,typeof i!="symbol"?i+"":i,f);const p=(n,i,f)=>{for(let y=0;y<n.length;y++)if(n[y][i.key]===i.value)return n[y][f];return""};class c extends s.PureComponent{constructor(){super(...arguments),x(this,"handleChange",i=>{const{addNewItem:f,onChange:y}=this.props;f&&i.includes(f.value)||y&&y(i)}),x(this,"getUpdatedOptions",()=>{const{options:i=[],value:f=[],allOptionKeyword:y,addNewItem:m}=this.props;let b="",u="";y&&f.indexOf(y)!==-1?u=p(i,{key:"value",value:y},"label"):u=(0,h.A)(i,(I,E)=>(f.indexOf(E.value)!==-1&&(E.override&&(b=E.label),I.push(E.label)),I),[]).join(", ");const d=(0,a.A)(i,({override:I,...E})=>{const M=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l.A,{checked:(f||[]).includes(E.value),className:"multi-select-v1__checkbox",disabled:E.disabled}),(0,e.jsx)("span",{className:"multi-select-v1__checkbox-text",children:E.name})]});return{...E,name:M,label:b||u}});return m&&d.push(m),d})}render(){const{options:i,onChange:f,addNewItem:y,className:m="",...b}=this.props;return(0,e.jsx)(A.l6,{className:`multi-select-v1 multi-select-v1 ${m}`,mode:"multiple",dropdownClassName:`multi-select-v1__dropdown ${y?"multi-select-v1__dropdown--new-item":""}`,placeholder:"Select options...",optionLabelProp:"label",options:this.getUpdatedOptions(),onChange:this.handleChange,...b})}}const v=c},533538:(q,N,t)=>{t.d(N,{A:()=>h});var e=t(715621),s=t(537953),l=t(341266);class a extends s.PureComponent{render(){const{height:C,speed:o=2,primaryColor:g="#eeeff1",secondaryColor:x="#ffffff",ariaLabel:p="loading"}=this.props;return(0,e.jsxs)("span",{children:[(0,e.jsx)(l.Ay,{height:C,speed:o,primaryColor:g,secondaryColor:x,style:{width:"100%",height:"100%"},children:this.props.children}),(0,e.jsx)("span",{id:"contentloaderwrapper",style:{display:"none"},"aria-label":p})]})}}const h=a},533692:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(715621);const s={};var l=t(537953),a=t(69943);const{Group:h}=a.A;class A extends l.PureComponent{render(){return(0,e.jsx)(h,{className:"bubble-select",...this.props})}}const o=A},539041:(q,N,t)=>{t.d(N,{A:()=>p});var e=t(715621),s=t(537953),l=t(107042),a=t(50391),h=t(665790);const A={};var C=Object.defineProperty,o=(c,v,n)=>v in c?C(c,v,{enumerable:!0,configurable:!0,writable:!0,value:n}
16):c[v]=n,g=(c,v,n)=>o(c,typeof v!="symbol"?v+"":v,n);class x extends s.Component{constructor(){super(...arguments),g(this,"state",{note:"",visible:!1}),g(this,"closePopOverConfirm",()=>{this.setState({visible:!1,note:""})}),g(this,"handleVisibleChange",v=>{this.setState({visible:v})}),g(this,"handleConfirm",()=>{const{record:v,onReject:n}=this.props,{note:i}=this.state;n({record:v,note:i}),this.closePopOverConfirm()}),g(this,"handleInputChange",v=>{this.setState({note:v.target.value})}),g(this,"getDefaultPopupContainer",v=>v.parentNode.parentNode)}render(){const{visible:v,note:n}=this.state,{text:i,styles:f,popoverTitle:y="",promptMessage:m="",getPopupContainer:b=this.getDefaultPopupContainer}=this.props;return(0,e.jsx)(l.A,{title:y,overlayClassName:"reject-button-popover",trigger:"click",visible:v,placement:"bottom",onVisibleChange:this.handleVisibleChange,getPopupContainer:b,content:(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)(a.A,{placeholder:m,value:n,onChange:this.handleInputChange}),(0,e.jsxs)("div",{className:"ant-popover-actions",children:[(0,e.jsx)(h.A,{onClick:this.closePopOverConfirm,children:"Cancel"}),(0,e.jsx)(h.A,{onClick:this.handleConfirm,children:"Confirm"})]})]}),children:(0,e.jsx)(h.A,{className:f?f["reject-btn"]:"reject-btn",children:i})})}}const p=x},545549:(q,N,t)=>{t.d(N,{w:()=>p});var e=t(715621),s=t(537953),l=t(992972),a=t.n(l),h=t(560109),A=t(248883),C=t(829080),o=t(961620),g=t(442967);const x={};function p({item:{label:c,image:v},isBlockView:n,handleOnChange:i,isLocked:f=!1,limit:y,isSelected:m=!1,selectionLimitReached:b=!1,dismissiblePill:u=!1}){const[d,I]=(0,s.useState)(m),E=(0,C.MU)();(0,s.useEffect)(()=>{I(m)},[m]);const M=()=>{const H=d;f&&!m||(i(!H),I(!H))},S=a()("capsule",{"large-capsule":n,"large-capsule--font-scaled":n&&E,"is-checked":d,"is-locked":f&&!d,"is-dismissible-filled":u}),P=()=>{f&&!m||(I(!d),M())};return(0,e.jsx)(h.A,{title:f&&!m?`Remember: ${y} max! You need to unselect options to change your choices`:null,overlayClassName:"capsule-tooltip",children:(0,e.jsxs)("div",{onClick:P,onKeyDown:g.A6,className:S,role:"checkbox",tabIndex:d||!f?"0":"-1","aria-checked":d,children:[(0,e.jsx)("div",{className:"capsule-image",children:(0,e.jsx)(A.C0,{src:v,wrapper:"svg",height:"32",width:"32",beforeInjection:H=>{H.setAttribute("aria-label",c)}})}),(0,e.jsxs)("span",{className:"capsule-text",children:[(0,e.jsx)("span",{className:"capsule-text--info",children:c}),b?(0,e.jsx)("span",{className:"screen-reader-only",children:"; Maximum options selected. Please unselect current option to explore more options!"}):null,u?(0,e.jsx)(o.A,{}):null]})]})})}},550585:(q,N,t)=>{t.d(N,{A:()=>l});var e=t(715621);const l=({size:a=24})=>(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",role:"img","aria-hidden":!0,focusable:!1,children:[(0,e.jsx)("path",{d:"M9.8132 15.9038L9 18.75L8.1868 15.9038C7.75968 14.4089 6.59112 13.2403 5.09619 12.8132L2.25 12L5.09619 11.1868C6.59113 10.7597 7.75968 9.59112 8.1868 8.09619L9 5.25L9.8132 8.09619C10.2403 9.59113 11.4089 10.7597 12.9038 11.1868L15.75 12L12.9038 12.8132C11.4089 13.2403 10.2403 14.4089 9.8132 15.9038Z",stroke:"url(#paint0_linear_942_65045)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.jsx)("path",{d:"M18.2589 8.71454L18 9.75L17.7411 8.71454C17.4388 7.50533 16.4947 6.56117 15.2855 6.25887L14.25 6L15.2855 5.74113C16.4947 5.43883 17.4388 4.49467 17.7411 3.28546L18 2.25L18.2589 3.28546C18.5612 4.49467 19.5053 5.43883 20.7145 5.74113L21.75 6L20.7145 6.25887C19.5053 6.56117 18.5612 7.50533 18.2589 8.71454Z",stroke:"url(#paint1_linear_942_65045)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.jsx)("path",{d:"M16.8942 20.5673L16.5 21.75L16.1058 20.5673C15.8818 19.8954 15.3546 19.3682 14.6827 19.1442L13.5 18.75L14.6827 18.3558C15.3546 18.1318 15.8818 17.6046 16.1058 16.9327L16.5 15.75L16.8942 16.9327C17.1182 17.6046 17.6454 18.1318 18.3173 18.3558L19.5 18.75L18.3173 19.1442C17.6454 19.3682 17.1182 19.8954 16.8942 20.5673Z",stroke:"url(#paint2_linear_942_65045)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.jsxs)("defs",{children:[(0,e.jsxs)("linearGradient",{id:"paint0_linear_942_65045",x1:"22.5",y1:"4.625",x2:"22.5",y2:"40.375",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{stopColor:"#BD00FF"}),(0,e.jsx)("stop",{offset:"1",stopColor:"#FF9900"})]}),(0,e.jsxs)("linearGradient",{id:"paint1_linear_942_65045",x1:"22.5",y1:"4.625",x2:"22.5",y2:"40.375",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{stopColor:"#BD00FF"}),(0,e.jsx)("stop",{offset:"1",stopColor:"#FF9900"})]}),(0,e.jsxs)("linearGradient",{id:"paint2_linear_942_65045",x1:"22.5",y1:"4.625",x2:"22.5",y2:"40.375",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{stopColor:"#BD00FF"}),(0,e.jsx)("stop",{offset:"1",stopColor:"#FF9900"})]})]})]})},563669:(q,N,t)=>{t.d(N,{N:()=>l});var e=t(869274),s=t.n(e);function l(){if(s().__colorsA11yPatched)return;s().__colorsA11yPatched=!0;const a=s().PLUGINS.colors;s().PLUGINS.colors=function(h){const A=a(h),C=g=>{g._froalaA11yKeydownHandler&&g.removeEventListener("keydown",g._froalaA11yKeydownHandler,!0),g.querySelectorAll(".fr-select-color").forEach(v=>{v.setAttribute("tabindex","0")}),g.querySelectorAll('.fr-select-color[data-param1="REMOVE"]').forEach(v=>{v.setAttribute("tabindex","0")});const x=g.querySelectorAll('[tabindex="0"], input, button'),p=Array.from(x);p.length>0&&p[0].focus();const c=v=>{if(v.key==="Tab"){const n=p.indexOf(document.activeElement),i=v.shiftKey?(n-1+p.length)%p.length:(n+1)%p.length;v.preventDefault(),v.stopPropagation(),p[i].focus()}};g._froalaA11yKeydownHandler=c,g.addEventListener("keydown",c,!0)},o=A.showColorsPopup;
16return A.showColorsPopup=function(...g){const p=`${g[0]}.picker`;return setTimeout(()=>{var c;const v=(c=h.popups.get(p))==null?void 0:c.get(0);v&&C(v)},0),o.apply(this,g)},A}}},570427:(q,N,t)=>{t.d(N,{I:()=>h,i:()=>a});var e=t(686993),s=t(30249);const l=(0,e.eU)(!1);l.debugLabel="isEnhancing";const a=()=>(0,s.fp)(l),h=()=>(0,s.Xr)(l)},571304:(q,N,t)=>{t.d(N,{A:()=>g});var e=t(651904),s=t.n(e),l=t(960257),a=t.n(l),h=t(671535),A=t(662180);const C={initialize:()=>{try{"production"==="production"&&(s().init("iuthtp/peoplegrove-prod",{network:{requestSanitizer:function(p){return p.headers=p.headers&&o(p.headers),p.body&&(p.body.token||p.body.password||p.body.resetCode)&&(p.body=o(p.body)),p},responseSanitizer:function(p){return p.headers=p.headers&&o(p.headers),p.body&&(p.body.token||p.body.password||p.body.resetCode)&&(p.body=o(p.body)),p}}}),a()(s()))}catch(x){console.log("logrocket error",x.message)}},identify:(x,p,c,v)=>{const n=v&&v.isAdmin||c.isClusterAdmin;s().identify(c.id,{domain_str:window.location.host,hubId:x.id,clusterId:p.id,isAdmin:n,isMobileApp:(0,A.tN)()})}},o=x=>{const p=["Authorization","authorization","x-pg-token","token","password","resetCode"];return(0,h.A)(x,function(c,v){if(p.indexOf(v)<=-1)return c})},g=C},574189:(q,N,t)=>{t.d(N,{A:()=>c});var e=t(715621);const s={};var l=t(537953),a=t(888864),h=t(575076),A=t(393418),C=Object.defineProperty,o=(v,n,i)=>n in v?C(v,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):v[n]=i,g=(v,n,i)=>o(v,typeof n!="symbol"?n+"":n,i);const{Group:x}=a.Ay;class p extends l.PureComponent{constructor(){super(...arguments),g(this,"state",{isToggled:!1,isRadioGroupAttributesSet:!1}),g(this,"componentDidMount",()=>{const{options:n,value:i}=this.props,f=parseInt(i),y=n&&!n.map(({value:b})=>parseInt(b)).includes(f),m=f&&y;this.setState({isToggled:m})}),g(this,"componentDidUpdate",()=>{this.state.isRadioGroupAttributesSet||this.setRadioGroupAttributes(),this.setRadioOptionsTabIndex()}),g(this,"toggleOn",()=>{this.setState({isToggled:!0})}),g(this,"toggleOff",()=>{this.setState({isToggled:!1})}),g(this,"setRadioOptionsTabIndex",()=>{const{setInitialFocus:n=!0}=this.props,i=[...this.radioGroupRef.children[0].children];if(i.length>1){i.forEach(y=>{y.children[0].children[0].setAttribute("tabindex","-1")});const f=i.find(y=>y.classList.contains("ant-radio-wrapper-checked"));f?(f.children[0].children[0].setAttribute("tabindex","0"),n&&f.children[0].children[0].focus()):(i[0].children[0].children[0].setAttribute("tabindex","0"),n&&i[0].children[0].children[0].focus())}}),g(this,"setRadioGroupAttributes",()=>{const{"aria-labelledby":n,"aria-describedby":i}=this.props,f=this.radioGroupRef.children[0];f.setAttribute("role","radiogroup"),n&&f.setAttribute("aria-labelledby",n),i&&f.setAttribute("aria-describedby",i),this.setState({isRadioGroupAttributesSet:!0})}),g(this,"setRadioGroupRef",n=>this.radioGroupRef=n),g(this,"radioGroupRef",null)}render(){const{options:n=null,children:i,onChange:f,value:y,...m}=this.props,{isToggled:b}=this.state;return(0,e.jsx)("div",{ref:this.setRadioGroupRef,children:(0,e.jsx)(x,{className:"pg-radiogroup",onChange:f,isToggled:b,toggleOn:this.toggleOn,toggleOff:this.toggleOff,value:!(0,h.A)(y)&&!(0,A.A)(y)?y.toString():y,...m,children:n?n.map(({label:u,value:d},I)=>(0,e.jsx)(a.Ay,{value:!(0,h.A)(d)&&!(0,A.A)(d)?d.toString():d,children:u},I)):i})})}}const c=p},578162:(q,N,t)=>{t.d(N,{M:()=>a});var e=t(715621),s=t(537953),l=t(665790);class a extends s.Component{render(){const{children:A,icon:C,className:o,...g}=this.props;return(0,e.jsxs)(l.A,{...g,className:`${o} ${!A&&C?" ant-btn-icon-only ":""}`,children:[C?(0,e.jsx)(s.Fragment,{children:(0,e.jsx)("em",{className:`anticon anticon-${C}`})}):null,A]})}}},588173:(q,N,t)=>{t.d(N,{A:()=>h});var e=t(715621),s=t(537953);const l={},h=({message:A})=>(0,e.jsx)("div",{className:"message-error__container",children:(0,e.jsxs)("div",{className:"error",children:[(0,e.jsx)("div",{className:"icon__container",children:(0,e.jsx)("img",{src:"https://cdn.peoplegrove.com/admin/1634620395319pg-warning-circle-o.svg",alt:""})}),(0,e.jsx)("div",{className:"msg__container",children:(0,e.jsx)("p",{className:"msg",role:"alert","aria-live":"assertive",children:A})})]})})},590438:(q,N,t)=>{t.d(N,{A:()=>C});var e=t(715621),s=t(560109),l=t(248883),a=t(972185);const h={"bg-primary-xlight":"bg-primary-xlight__hhRte","bg-primary-light":"bg-primary-light__k_MoR","bg-primary":"bg-primary__O7p5o","bg-primary-dark":"bg-primary-dark__xv5gr","bg-primary-xdark":"bg-primary-xdark__cJMRc","bg-secondary-xlight":"bg-secondary-xlight__CYVmq","bg-secondary-light":"bg-secondary-light__tNVw6","bg-secondary":"bg-secondary__UQeNf","bg-secondary-dark":"bg-secondary-dark__MNbx3","bg-secondary-xdark":"bg-secondary-xdark__lKFNc","bg-success-xlight":"bg-success-xlight__vSh1q","bg-success-light":"bg-success-light__zqYaj","bg-success":"bg-success__xgwyO","bg-success-dark":"bg-success-dark__MCusR","bg-success-xdark":"bg-success-xdark__fMh2t","bg-info-xlight":"bg-info-xlight__p1S9N","bg-info-light":"bg-info-light__hKZf7","bg-info":"bg-info__vxe7h","bg-info-dark":"bg-info-dark__wkhvM","bg-info-xdark":"bg-info-xdark__rnHId","bg-warning-xlight":"bg-warning-xlight__me9a4","bg-warning-light":"bg-warning-light__TzHrA","bg-warning":"bg-warning__bUfWF","bg-warning-dark":"bg-warning-dark__jgCvo","bg-warning-xdark":"bg-warning-xdark__I0qic","bg-alert-xlight":"bg-alert-xlight__D8Z25","bg-alert-light":"bg-alert-light__QPQs1","bg-alert":"bg-alert__bTsFG","bg-alert-dark":"bg-
16alert-dark__ibwDm","bg-alert-xdark":"bg-alert-xdark__rE64G","bg-danger-xlight":"bg-danger-xlight__VAMbl","bg-danger-light":"bg-danger-light__dSx8W","bg-danger":"bg-danger__tROky","bg-danger-dark":"bg-danger-dark__tR0wm","bg-danger-xdark":"bg-danger-xdark__II9yC",moreItemsTooltip:"moreItemsTooltip__Pxnep"},C=({plusCount:o,options:g,sliceIdx:x,chipClassName:p=""})=>{const c=(0,e.jsx)("ul",{children:(0,a.A)(g.slice(x),v=>(0,e.jsx)("li",{children:v},v))});return(0,e.jsx)(s.A,{overlayClassName:h.moreItemsTooltip,title:c,placement:"bottomRight",children:(0,e.jsx)(l.vu,{className:`cursor-pointer ${p}`,text:`+ ${o}`})},"moreItems")}},597411:(q,N,t)=>{t.d(N,{A:()=>A});var e=t(715621),s=t(537953),l=t(102736),a=t.n(l);const h=({loading:C,loadingMessage:o="Loading",postLoadingMessage:g})=>(0,e.jsx)("span",{className:"sr-only","aria-live":"polite","aria-atomic":"true",children:C?o:g});h.propTypes={loading:a().bool.isRequired,loadingMessage:a().string,postLoadingMessage:a().string.isRequired};const A=h},598993:(q,N,t)=>{t.d(N,{A:()=>l});var e=t(715621);const l=({title:a,id:h="upperHeading",headingLevel:A="h1"})=>{const C=["h1","h2","h3","h4","h5","h6"],o=A?A.toLowerCase():"",g=C.includes(o)?o:"p";return(0,e.jsx)(g,{id:h,style:{position:"absolute",top:"-199px",left:"-199px",opacity:0,margin:0},tabIndex:"-1","aria-hidden":!0,children:a})}},605098:(q,N,t)=>{t.d(N,{A:()=>C});var e=t(715621),s=t(839050),l=t(939291);const a={signup_help_text:"signup_help_text__dA88J"};var h=t(778402);const C=({toShowInOneLine:o=!1})=>{const g=(0,s.lx)(),x=(0,l.A)(g,"settings.coreSettings.signup.signupHelpText","");return x!=null&&x.length?(0,e.jsx)("div",{className:a.signup_help_text,dangerouslySetInnerHTML:{__html:(0,h.a)(`${o?x.replace("</br>"," "):x}`)}}):null}},607714:(q,N,t)=>{t.d(N,{A:()=>v});var e=t(715621),s=t(537953),l=t(248883),a=t(828333),h=t(102736),A=t.n(h),C=t(243130),o=t.n(C),g=Object.defineProperty,x=(n,i,f)=>i in n?g(n,i,{enumerable:!0,configurable:!0,writable:!0,value:f}):n[i]=f,p=(n,i,f)=>x(n,typeof i!="symbol"?i+"":i,f);class c extends s.Component{constructor(i){super(i),p(this,"clearInitialTimeout",()=>{this.initialTimeoutId&&(clearImmediate(this.initialTimeoutId),this.initialTimeoutId=null)}),p(this,"componentWillUnmount",()=>{this.clearInitialTimeout(),this.clearCloseButtonAccessibility()}),this.elementId=o()(),this.state={initialRender:!0},this.initialTimeoutId=null}handleCloseIconKeyDown(i){(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),i.currentTarget.click())}makeCloseButtonAccessible(){document.querySelectorAll(".ant-alert-close-icon").forEach(i=>{i.setAttribute("tabindex",0),i.setAttribute("role","button");const{closeIconLabel:f}=this.props;f&&i.setAttribute("aria-label",f),i.addEventListener("keydown",this.handleCloseIconKeyDown)})}clearCloseButtonAccessibility(){document.querySelectorAll(".ant-alert-close-icon").forEach(i=>{i.removeEventListener("keydown",this.handleCloseIconKeyDown)})}componentDidMount(){this.initialTimeoutId=setImmediate(()=>{this.setState({initialRender:!1}),this.clearInitialTimeout()}),this.makeCloseButtonAccessible()}render(){const{message:i,description:f,type:y,showIcon:m=!0,className:b="",style:u={},closable:d=!1,onClose:I=()=>{},usePGAlert:E=!1}=this.props,{initialRender:M}=this.state,S=E?l.Fc:a.A;return(0,e.jsx)("span",{role:"status",children:(0,e.jsx)(S,{style:u,className:`alert-icon-accessible ${this.elementId} ${b}`,message:M?"":i,description:M?"":f,type:y,showIcon:m,closable:d,onClose:I})})}}c.propTypes={closeIconLabel:A().string};const v=c},607769:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(715621),s=t(778402);const l={};var a=t(662180),h=t(537953);const A=({description:g})=>h.isValidElement(g)?(0,e.jsx)("span",{children:g}):(0,e.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,a.Qo)((0,s.a)(g))}}),o=({title:g="",description:x="",closeCTA:p=null,className:c=null,link:v=null,otpInputGroupLabelId:n})=>(0,e.jsxs)("div",{className:`otp-verify-header ${c||""}`,children:[(0,e.jsx)("h4",{className:"header-heading",id:n,children:g||null}),p||null,x&&(0,e.jsxs)("p",{className:"header-description",children:[(0,e.jsx)(A,{description:x}),v&&(0,e.jsx)("span",{className:"header-link",onClick:v.actionHandler,children:v.text})]})]})},617041:(q,N,t)=>{t.d(N,{E:()=>e});const e=s=>{if(s===!0||s==="true")return!0;
16if(s===!1||s==="false")return!1;if(s===null)return null}},627219:(q,N,t)=>{t.d(N,{A:()=>p});var e=t(715621),s=t(537953),l=t(248883),a=t(768835),h=t(575076),A=t(750586),C=t(544731),o=t(407572);const g={},x=c=>{const v=f=>!!((0,h.A)(f)||(0,A.A)(f)&&f.trim().length===0),n=()=>{var f;return c.viewType==="preview"&&c.class?!0:c.class&&!((f=c.value)!=null&&f.trim())},i=(0,s.useMemo)(()=>{const f=c.placeholder||"";return c.value?c.useRichText?(0,o.T)({html:c.value,fallbackValue:f}):v(c.value)?f:`${c.prefix?`${c.prefix} `:""}${c.value}`:f},[c.placeholder,c.prefix,c.useRichText,c.value]);return c.selectedType==="address"?(0,e.jsx)("div",{children:c.value}):(0,e.jsxs)("div",{className:(0,a.A)("content-editable-container",c.containerClass),children:[!c.show&&!c.type&&(0,e.jsxs)("span",{onClick:()=>c.makeEditable(),className:n()?c.class:"content-editable-text",children:[i,c.isRequired&&(0,e.jsx)("span",{className:"required-asterisk",children:" *"})]}),!c.show&&["advising","meetingFeedback"].includes(c.type)&&(0,e.jsx)("h3",{className:(0,a.A)({"align-center":c.type==="advising"}),children:c.value}),c.show&&(0,e.jsxs)("div",{className:"content-editable-input",children:[c.useRichText?(0,e.jsx)(l.sD,{placeholder:c.placeholder,value:(0,C.A)(c.value),onChange:f=>c.onChange(f),onBlur:()=>c.onBlur(),focusOnInit:!0,className:c.errorText?"input-error":""}):(0,e.jsx)(l.pd,{placeholder:c.placeholder,value:(0,C.A)(c.value),onChange:f=>c.onChange(f),onBlur:()=>
16c.onBlur(),autoFocus:!0,type:c.inputType||"text",className:c.errorText?"input-error":""}),c.errorText&&(0,e.jsx)("span",{className:"input-error",children:c.errorText})]})]})},p=s.memo(x)},630530:(q,N,t)=>{t.d(N,{A:()=>c});var e=t(715621);const s={};var l=t(537953),a=t(205369),h=t(251981),A=t(425170),C=Object.defineProperty,o=(v,n,i)=>n in v?C(v,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):v[n]=i,g=(v,n,i)=>o(v,typeof n!="symbol"?n+"":n,i);const{Option:x}=a.A;class p extends l.PureComponent{constructor(){super(...arguments),g(this,"state",{isLoading:!1,isNoResults:!1,options:this.props.options,value:this.props.value}),g(this,"handleFilterOption",(n,i)=>i.props.children.toLowerCase().indexOf(n.toLowerCase())>=0),g(this,"handleSearchAction",async n=>{const{fetchAction:i}=this.props;if(clearTimeout(this.searchTimeout),!n||n.length===0){this.setState({value:void 0,options:[],isLoading:!1,isNoResults:!1});return}n&&n.length>0&&(this.setState({value:n}),this.searchTimeout=setTimeout(async()=>{await this.setState({isLoading:!0,options:[]});try{const f=await i(n);f.length&&f.length>0?await this.setState({isLoading:!1,isNoResults:!1,options:f}):await this.setState({isLoading:!1,isNoResults:!0,options:[]})}catch(f){(0,A.mei)("Error searching for record.",f.message)}},500))}),g(this,"handleOnChange",n=>{n||this.setState({value:n,isLoading:!1,isNoResults:!1,options:[]})}),g(this,"handleOnSelect",n=>{const{onChange:i}=this.props;this.setState({value:n,isLoading:!1,isNoResults:!1}),i&&i(n)}),g(this,"searchTimeout",null)}render(){const{handleSearchAction:n,handleFilterOption:i,handleOnChange:f,handleOnSelect:y}=this,{options:m,isLoading:b,isNoResults:u,value:d}=this.state,{className:I,filterBy:E,rowLabelKey:M,rowValueKey:S,rowLabelFunction:P,antConfig:H,defaultActiveFirstOption:L}=this.props,O=E===void 0?i:E;return(0,e.jsx)(a.A,{value:d,className:I,showSearch:!0,filterOption:O,onSearch:n,onSelect:y,onChange:f,defaultActiveFirstOption:L,notFoundContent:b||u?(0,e.jsxs)(l.Fragment,{children:[b&&(0,e.jsx)(h.A,{size:"small"}),!b&&u&&"No results matching your search."]}):"Enter some text to search",...H,children:m.map((K,T)=>(0,e.jsx)(x,{value:K[S],children:P?P(K):K[M]},T))})}}p.defaultProps={antConfig:{},options:[],rowLabelKey:"label",rowValueKey:"value",isFetching:!1,className:"",rowLabelFunction:void 0,defaultActiveFirstOption:!0};const c=p},640431:(q,N,t)=>{t.d(N,{A:()=>n});var e=t(715621),s=t(537953),l=t(766652),a=t(888864),h=t(50391),A=t(736608),C=t(939291),o=t(972185),g=t(992972),x=t.n(g),p=t(442967);const c={},n=({id:i,value:f,onChange:y,options:m,useCards:b=!0,"aria-label":u="","aria-labelledby":d="","aria-describedby":I="","aria-required":E=!1,className:M="",containerClass:S="",groupName:P=Math.random().toString(16).slice(10),showError:H,enableTabNavigation:L=!1,onOtherInputValueChange:O=()=>{},otherOptionInputLabel:K="Others",...T})=>{const D=b?l.A:s.Fragment,W={};b&&(W.className=x()("radio-buttons__card",{"radio-buttons__card--enabled":!T.disabled}),W.onClick=_=>{if(!_.target||_.target.tagName==="INPUT")return;const F=_.target.getElementsByTagName("input")[0];F&&F.click()});const B=`${i}-input`,k=_=>{if((0,A.A)(m,U=>U.isOther&&U.value===_)){const U=document.getElementById(B);setTimeout(()=>{U&&U.focus()},500)}return y&&y(_)};return(0,e.jsxs)(a.Ay.Group,{id:i,value:f,onChange:_=>{const F=(0,C.A)(_,"target.value");k(F)},className:x()("radio-buttons",{[M]:!!M}),name:P,...T,children:[(0,e.jsx)("div",{role:"radiogroup","aria-label":u||void 0,"aria-labelledby":d||void 0,"aria-describedby":I||void 0,"aria-required":E,className:S,children:(0,o.A)(m,_=>{const{className:F,...U}=W,V=b&&_.value===f,{label:Z,onKeyDown:$,disabled:G=!1,...ie}=_;_.name&&(ie.name=_.name),L&&(ie.tabIndex=-1),ie["aria-checked"]=_.value===f;let le={key:JSON.stringify(_.value)};return b&&(le.className=x()({[F]:!!F,"radio-buttons__card--selected":V,"radio-buttons__card--disabled":G}),le.onKeyDown=$,le={...le,...U},L&&!T.disabled&&(le={...le,...ie,tabIndex:0,role:"radio",onClick:()=>{y(_.value)},onKeyDown:p.Qx})),(0,e.jsx)(D,{...le,children:(0,e.jsx)(a.Ay,{...ie,disabled:_.disabled,children:_.isOther?(0,e.jsxs)("span",{className:"radio-buttons__card__input",children:[K,":"," ",(0,e.jsx)(h.A,{id:B,"aria-label":K,className:_.value!==f?"radio-buttons__card__input__unselected":"",placeholder:"Start typing your response here",value:_.text,onChange:ce=>{_.value===f&&O((0,C.A)(ce,"target.value"))},onClick:()=>{_.value!==f&&k(_.value)},onKeyDown:p.Qx})]}):_.label||_.text})})})}),H?(0,e.jsx)("div",{id:i?`${i}-alert`:void 0,role:"alert",className:"radio-buttons__alert",children:"Please select an option"}):null]})}},641500:(q,N,t)=>{t.d(N,{A:()=>E});var e=t(715621),s=t(537953),l=t(71595),a=t(230803),h=t(633861),A=t(665790),C=t(766652),o=t(860129),g=t(961530),x=t(124362),p=t(939291),c=t(405460),v=t(698879),n=t(425170),i=t(779102);const f={};var y=Object.defineProperty,m=(M,S,P)=>
16S in M?y(M,S,{enumerable:!0,configurable:!0,writable:!0,value:P}):M[S]=P,b=(M,S,P)=>m(M,typeof S!="symbol"?S+"":S,P);const u=(0,v.A)(()=>Promise.all([t.e(1119),t.e(41),t.e(9101),t.e(3874),t.e(9924)]).then(t.bind(t,179101))),d=l.A.Item;class I extends s.PureComponent{constructor(){super(...arguments),b(this,"handleSubmit",S=>{const{form:P,onSubmit:H,fieldSets:L,data:O,onChange:K}=this.props;S.preventDefault(),["jobRequirements","jobDescription"].forEach(D=>{var W;const B=(W=O[D])==null?void 0:W.value,k=(0,i.I)(B||"");B&&k!==B&&(O[D]={...O[D],value:k},K({[D]:O[D]}))}),setTimeout(()=>{P.validateFieldsAndScroll((D,W)=>{if(!D)H&&H();else{let B=Object.keys(D);const k=[];L.forEach(F=>{k.push(...(0,o.A)(F.fields))}),B=(0,g.A)(B,F=>(0,x.A)(k,U=>String(U.id)===F));const _=document.getElementById(B[0]);if(!_)return;_.setAttribute("aria-describedby",`${B[0]}-error`),_.focus(),setTimeout(()=>{if(_.scrollIntoView(),this.formRef){const F=(0,n.pkg)(this.formRef);F&&(F.scrollTop-=65)}},0),console.error({err:D,errorField:_})}})},10)}),b(this,"getFormField",({field:S})=>{const{formItemLayout:P={labelCol:{xs:{span:24},sm:{span:8,gutter:15}},wrapperCol:{xs:{span:24},sm:{span:16}}},form:H}=this.props;return S.hasOwnProperty("component")&&S.field!=="component"?(0,e.jsx)("div",{children:S.component},"FormField"+S.id):(0,e.jsx)(u,{form:H,details:S,formItemLayout:S.formItemLayout||P},"FormField"+S.id)}),b(this,"renderField",({field:S,key:P})=>{if(S.visible===!1)return null;const{data:H,form:L}=this.props;return typeof S.visible=="function"&&S.visible(H)===!1?(L.getFieldError(S.id)&&L.setFields({[S.id]:{errors:null}}),null):S.field==="group"?(0,e.jsxs)("fieldset",{className:"ant-row ant-form-item",children:[(0,e.jsx)("legend",{className:"ant-form-item-label",children:S.label}),(0,e.jsx)("div",{className:"form-item-group",id:S.id,children:S.groupFields.map((O,K)=>{const T=O.hasOwnProperty("midLabel")?O.midLabel:"or";return(0,e.jsxs)(s.Fragment,{children:[this.getFormField({field:O}),T&&K<S.length-1?(0,e.jsx)("div",{className:"ant-row ant-form-item flex-shrink",children:(0,e.jsx)("div",{className:"ant-form-item-label",children:T})}):null]},"frag"+K)})})]},P):S.constructor===Array?(0,e.jsx)("div",{className:"form-item-group",children:S.map((O,K)=>{const T=O.hasOwnProperty("midLabel")?O.midLabel:"or";return(0,e.jsxs)(s.Fragment,{children:[this.getFormField({field:O}),T&&K<S.length-1?(0,e.jsx)("div",{className:"ant-row ant-form-item flex-shrink",children:(0,e.jsx)("div",{className:"ant-form-item-label",children:T})}):null]},"frag"+K)})},P):this.getFormField({field:S})})}render(){const{submitText:S="Submit",fieldSets:P=[],formStyle:H="form-factory",formTail:L=(0,e.jsx)(a.A,{gutter:15,children:(0,e.jsx)(h.A,{span:24,className:"text-center",children:(0,e.jsx)(d,{children:(0,e.jsx)(A.A,{type:"primary",loading:this.props.loading,onClick:this.handleSubmit,children:S})})})}),hiddenSections:O=[],autoComplete:K="on","aria-labelledby":T,"aria-describedby":D}=this.props;return(0,e.jsx)("div",{ref:W=>this.formRef=W,children:(0,e.jsxs)(l.A,{className:H,onSubmit:this.handleSubmit,name:(0,p.A)(P,"0.id"),id:(0,p.A)(P,"0.id"),autoComplete:K,"aria-labelledby":T,"aria-describedby":D,children:[P.map((W,B)=>W.fields.length>0&&O.indexOf(W.id)===-1?(0,p.A)(W,"type","card")==="card"?(0,e.jsx)(C.A,{title:W.title,children:W.fields.map((k,_)=>this.renderField({field:k,key:`formItem${_}`}))},"FormCard"+B):(0,e.jsx)(s.Fragment,{children:W.fields.map((k,_)=>this.renderField({field:k,key:`formItem${_}`}))},"FormDiv"+B):null),L]})})}}const E=l.A.create({onFieldsChange(M,S){M.onChange(S)},mapPropsToFields(M){let S={};const P=({field:O,id:K})=>{if(O!=="integer"&&O!=="number")return(0,p.A)(M,`data.${K}.value`,void 0);{const T=(0,p.A)(M,`data.${K}.value`,void 0);if(T!==void 0){const D=`${T}`,W=parseInt(D.replace(/\D+/g,""));return(0,c.A)(W)?W:void 0}}},H=O=>S[O.id]=l.A.createFormField({...M.data[O.id],value:P(O)}),L=O=>(O.field==="group"?O.groupFields.map(K=>H(K)):O.constructor===Array&&O.map(K=>H(K)),H(O));return M.fieldSets.map(O=>O.fields.map(K=>L(K))),S}})(I)},645525:(q,N,t)=>{t.d(N,{A:()=>C});var e=t(715621),s=t(248883),l=t(768835),a=t(575076);const h={"bg-primary-xlight":"bg-primary-xlight__pZ4mN","bg-primary-light":"bg-primary-light__UkQpD","bg-primary":"bg-primary__LQI0B","bg-primary-dark":"bg-primary-dark__Z7k97","bg-primary-xdark":"bg-primary-xdark__Xgize","bg-secondary-xlight":"bg-secondary-xlight__r8U0S","bg-secondary-light":"bg-secondary-light__Z2cIc","bg-secondary":"bg-secondary__yBIRq","bg-secondary-dark":"bg-secondary-dark__IClmq","bg-secondary-xdark":"bg-secondary-xdark__LosgH","bg-success-xlight":"bg-success-xlight__nG1ft","bg-success-light":"bg-success-light__qJI_F","bg-success":"bg-success__kc2LH","bg-success-dark":"bg-success-dark__lrbfH","bg-success-xdark":"bg-success-xdark__zncyE","bg-info-xlight":"bg-info-xlight__UjBml","bg-info-light":"bg-info-light__G2K7S","bg-info":"bg-info__WuB5c","bg-info-dark":"bg-info-dark__Ys3wn","bg-info-xdark":"bg-info-xdark__vjfHc","bg-warning-xlight":"bg-warning-xlight__e_dt7","bg-warning-light":"bg-warning-light__jwCDA","bg-warning":"bg-warning__TLNKY","bg-warning-dark":"bg-warning-dark__VesNg","bg-warning-xdark":"bg-warning-xdark__E7Zq4","bg-alert-xlight":"bg-alert-xlight__RDpST","bg-alert-light":"bg-alert-light__WaVLM","bg-alert":"bg-alert__ZEFQu","bg-alert-dark":"bg-
16alert-dark__NBxJe","bg-alert-xdark":"bg-alert-xdark__zB1wD","bg-danger-xlight":"bg-danger-xlight__AcCAD","bg-danger-light":"bg-danger-light__vJh4L","bg-danger":"bg-danger__PJhcP","bg-danger-dark":"bg-danger-dark__gfcZe","bg-danger-xdark":"bg-danger-xdark__HxVUC",feedbackBanner:"feedbackBanner__OyH3c",feedbackBannerCompact:"feedbackBannerCompact__xBdZp",feedbackBannerNudge:"feedbackBannerNudge__uX9u7",feedbackBannerLabel:"feedbackBannerLabel__jCFaW",feedbackBannerButtons:"feedbackBannerButtons__NY2Wg",feedbackBannerButton:"feedbackBannerButton__G0IxI",feedbackBannerButtonHelpful:"feedbackBannerButtonHelpful__cFSqj",feedbackBannerButtonHelpfulClicked:"feedbackBannerButtonHelpfulClicked__e5T6N",feedbackBannerButtonNotHelpful:"feedbackBannerButtonNotHelpful__CEriV",feedbackBannerButtonNotHelpfulClicked:"feedbackBannerButtonNotHelpfulClicked__HjfOt"},C=({label:o="Was this helpful?",onHelpful:g,onNotHelpful:x,feedbackValue:p,disabled:c=!1,id:v,className:n,helpfulButtonClassName:i,notHelpfulButtonClassName:f,variant:y="default",iconSize:m=16,showNudge:b=!1})=>{const u=v||`feedback-${Math.random().toString(36).substr(2,9)}`,d=p===!0,I=p===!1,E=!(0,a.A)(p);return(0,e.jsxs)("div",{className:(0,l.A)(h.feedbackBanner,{[h.feedbackBannerCompact]:y==="compact",[h.feedbackBannerNudge]:b},n),role:"group","aria-labelledby":`${u}-label`,children:[(0,e.jsx)("span",{id:`${u}-label`,className:h.feedbackBannerLabel,children:o}),(0,e.jsxs)("div",{role:"group","aria-label":"Feedback buttons",className:h.feedbackBannerButtons,children:[(0,e.jsx)(s.K0,{onClick:g,icon:`pg-thumbs-up${d?"":"-o"}`,iconProps:{width:m,height:m},className:(0,l.A)(h.feedbackBannerButton,h.feedbackBannerButtonHelpful,{[h.feedbackBannerButtonHelpfulClicked]:d},i),disabled:c||E,"aria-label":`Mark as helpful${d?" (selected)":""}`,"aria-describedby":`${u}-label`,title:"Mark as helpful",size:"xsmall"}),(0,e.jsx)(s.K0,{onClick:x,icon:`pg-thumbs-down${I?"":"-o"}`,iconProps:{width:m,height:m},className:(0,l.A)(h.feedbackBannerButton,h.feedbackBannerButtonNotHelpful,{[h.feedbackBannerButtonNotHelpfulClicked]:I},f),disabled:c||E,"aria-label":`Mark as not helpful${I?" (selected)":""}`,"aria-describedby":`${u}-label`,title:"Mark as not helpful",size:"xsmall"})]})]})}},645744:(q,N,t)=>{t.d(N,{o:()=>a});var e=t(715621),s=t(537953);const l={__cache:{},read(h){if(h){if(this.__cache[h]||(this.__cache[h]=new Promise(A=>{const C=new Image;C.onload=()=>{this.__cache[h]=!0,A(this.__cache[h])},C.src=h,setTimeout(()=>A({}),7e3)}).then(A=>{this.__cache[h]=!0})),this.__cache[h]instanceof Promise)throw this.__cache[h];return this.__cache[h]}},clearImg:h=>{delete(void 0).__cache}},a=({src:h,background:A,...C})=>(l.read(h),A?(0,e.jsx)("div",{...C,style:{backgroundImage:`url(${h})`}}):(0,e.jsx)("img",{src:h,...C}))},660452:(q,N,t)=>{t.d(N,{A:()=>x});var e=t(715621),s=t(537953),l=t(988705),a=t(248883),h=t(839392),A=Object.defineProperty,C=(p,c,v)=>c in p?A(p,c,{enumerable:!0,configurable:!0,writable:!0,value:v}):p[c]=v,o=(p,c,v)=>C(p,typeof c!="symbol"?c+"":c,v);function g(p){return p&&(p.offsetWidth<p.scrollWidth||p.offsetHeight<p.scrollHeight)}class x extends s.Component{constructor(c){super(c),o(this,"rsObserver",null),o(this,"updateOverflow",()=>{this.checkOverflow(!0)}),o(this,"checkOverflow",()=>{try{const v=l.findDOMNode(this),n=g(v);n!==this.state.overflow&&this.setState({overflow:n})}catch(v){console.log("Error in checkOverflow -",v)}}),this.state={overflow:!1}}componentDidMount(){this.checkOverflow();const c=l.findDOMNode(this);c&&c instanceof Element&&(this.rsObserver=new ResizeObserver((0,h.A)(()=>{this.checkOverflow()},0)),this.rsObserver.observe(c)),window.addEventListener("resize",this.checkOverflow)}componentWillReceiveProps(){this.setState({overflow:!1})}componentDidUpdate(){this.checkOverflow()}componentWillUnmount(){this.rsObserver&&(this.rsObserver.disconnect(),this.rsObserver=null),window.removeEventListener("resize",this.checkOverflow)}render(){const{className:c,trigger:v=["hover"],getContainer:n}=this.props;return(0,e.jsx)(a.m_,{direction:this.props.placement,content:this.state.overflow?this.props.title:void 0,trigger:v,overlayClassName:c,getContainer:n,children:this.props.children})}}x.defaultProps={placement:"bottom"},x.displayName="OverflowTooltip"},697316:(q,N,t)=>{t.d(N,{A:()=>u});var e=t(715621),s=t(805569),l=t(248883),a=t(768835),h=t(922109),A=t(516033),C=t(832196),o=t(839050),g=t(829080),x=t(354350),p=t(719164);const c={recommendedUserCard:"recommendedUserCard__PIzrK",userDetails:"userDetails__LsTmR",avatar:"avatar__OgyHD",fontScaledUpAvatar:"fontScaledUpAvatar__Ig9_S",userBio:"userBio__jKxfe",topContainer:"topContainer__uqwKp",onlineIconWrapper:"onlineIconWrapper__cp00U",nameContainer:"nameContainer__D7lTT",fullname:"fullname__G8_BR",bookmarkIcon:"bookmarkIcon__Xx1KF",headline:"headline__J_Zwg",helpTopicsContainer:"helpTopicsContainer__o7Wxq",title:"title__NQETv",pillsWrapper:"pillsWrapper__AeGyR",pills:"pills__XqDML",fontScaledUpPillsWrapper:"fontScaledUpPillsWrapper__Qc_Ds",sendMessageBtn:"sendMessageBtn__cBydB"};function v({helpTopicsSelectedOptions:d,isFontScaledUp:I=!1}){return(0,e.jsxs)("div",{className:c.helpTopicsContainer,children:[(0,e.jsx)("div",{className:c.title,children:"I can help with"}),(0,e.jsx)("div",{className:(0,a.A)(c.pillsWrapper,{[c.fontScaledUpPillsWrapper]:I}),children:d==null?void 0:d.map(E=>(0,e.jsx)(l.vu,{text:E==null?void 0:E.optionTitle,size:"xsmall",className:c.pills},E.optionId))})]})}const n=v;function i({industriesSelectedOptions:d,isFontScaledUp:I=!1}){return!d||(d==null?void 0:d.length)===0?null:(0,e.jsxs)("div",{className:c.helpTopicsContainer,children:[(0,e.jsx)("div",{className:c.title,children:"Industries I am experienced in"}),(0,e.jsx)("div",{className:(0,a.A)(c.pillsWrapper,{[c.fontScaledUpPillsWrapper]:I}),children:d==null?void 0:d.map(E=>(0,e.jsx)(l.vu,{text:E==null?void 0:E.optionTitle,size:"xsmall",className:c.pills},E.optionId))})]})}const f=i,y=({recommendedUser:d,userFullName:I,handleBookmarkClick:E})=>{const{isBookmarked:M}=d,P=`${M?"Remove bookmark from":"Bookmark"} ${I}'s profile `;return(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:c.topContainer,children:[(0,e.jsxs)("div",{className:c.onlineIconWrapper,children:[(0,e.jsxs)("div",{className:c.nameContainer,children:[(0,e.jsx)("span",{children:"Hi, I\u2019m "}),(0,e.jsx)("span",{className:c.fullname,children:d.name})]}),(0,e.jsx)(A.A,{user:d,size:"small"})]}),(0,e.jsx)(l.K0,{icon:M?"pg-bookmark":"pg-bookmark-o",onClick:E,"aria-label":P,className:c.bookmarkIcon})]}),(0,e.jsx)("div",{className:c.headline,children:d.headline})]})},m=({recommendedUser:d,onSendMsgClick:I,ctaText:E,isFontScaledUp:M=!1})=>{var S,P;const H=(S=d.standardData["help-topics"])==null?void 0:S.selectedOptions,L=(P=d.standardData["job-industries"])==null?void 0:P.selectedOptions,O=E.replace("{userFirstName}",d.firstName);return(0,e.jsxs)("div",{children:[H?(0,e.jsx)(n,{helpTopicsSelectedOptions:H,isFontScaledUp:M}):(0,e.jsx)(f,{industriesSelectedOptions:L,isFontScaledUp:M}),(0,e.jsx)(l.$n,{className:c.sendMessageBtn,onClick:I,size:"medium","aria-label":O,children:O},"sendMessage")]})};
16function b({recommendedUser:d,onSendMsgClick:I,onBookmarkClick:E,ctaText:M,messageOrigin:S}){const P=(0,o.al)(),H=(0,o.er)(),L=(0,o.lx)(),O=(0,g.MU)(),{mutate:K}=(0,x.F)(),T=(0,C.ID)({moduleName:"profile",clusterInfo:H,hubInfo:L,params:{userIdentifier:d==null?void 0:d.identifier,openInModal:!0,showBack:!0,hubId:L==null?void 0:L.id,messageOrigin:S}}),D=()=>{K(d),E()};if(!d)return null;const{firstName:W,lastName:B}=d,k=(0,p.Ii)(W,B);return(0,e.jsxs)("div",{className:c.recommendedUserCard,children:[(0,e.jsxs)("div",{className:c.userDetails,children:[(0,e.jsx)(s.N_,{to:T,"aria-label":`${W}'s profile`,children:(0,e.jsx)(h.A,{className:(0,a.A)(c.avatar,{[c.fontScaledUpAvatar]:O}),src:d.photoUrl,alt:W,onClick:()=>{},id:d.id})}),(0,e.jsxs)("div",{className:c.userBio,children:[(0,e.jsx)(y,{recommendedUser:d,userFullName:k,handleBookmarkClick:D}),P?null:(0,e.jsx)(m,{recommendedUser:d,onSendMsgClick:I,ctaText:M,isFontScaledUp:O})]})]}),P?(0,e.jsx)(m,{recommendedUser:d,onSendMsgClick:I,ctaText:M,isFontScaledUp:O}):null]})}const u=b},698879:(q,N,t)=>{t.d(N,{A:()=>a});var e=t(715621),s=t(537953);function l(h,{withoutSuspense:A=!1,fallback:C=null,name:o}={}){let g;return o?g=(0,s.lazy)(()=>h().then(x=>({default:x[o]}))):g=(0,s.lazy)(h),A?g:(0,s.forwardRef)((x,p)=>(0,e.jsx)(s.Suspense,{fallback:C,children:(0,e.jsx)(g,{ref:p,...x})}))}const a=l},700440:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(715621),s=t(537953),l=t(102736),a=t.n(l),h=t(107042);const A={},C=({children:g,content:x="",ctaText:p="",handleClick:c=()=>{},placement:v="bottom",trigger:n="hover",visibleCallback:i=()=>{}})=>{const[f,y]=(0,s.useState)(!1),m=b=>{i(b),y(b)};return(0,e.jsx)(h.A,{placement:v,trigger:n,overlayClassName:"upsell-popover",content:(0,e.jsxs)("div",{className:"upsell-popover--content",children:[(0,e.jsx)("div",{className:"upsell-popover--text",children:x}),(0,e.jsx)("button",{type:"button",className:"upsell-popover--btn",onClick:c,children:p})]}),visible:f,onVisibleChange:m,arrowPointAtCenter:!0,children:g})};C.propTypes={children:a().node.isRequired,content:a().string.isRequired,ctaText:a().string.isRequired,handleClick:a().func.isRequired,placement:a().string,trigger:a().string};const o=C},704681:(q,N,t)=>{t.d(N,{A:()=>x});var e=t(715621),s=t(537953),l=t(248883);const a={};var h=Object.defineProperty,A=(p,c,v)=>c in p?h(p,c,{enumerable:!0,configurable:!0,writable:!0,value:v}):p[c]=v,C=(p,c,v)=>A(p,typeof c!="symbol"?c+"":c,v);const o=({minHeight:p=100,backgroundColor:c="#FFF",height:v,isOpen:n})=>{const i={background:`linear-gradient(rgba(255,255,255,0), ${c})`};return v>p&&!n?(0,e.jsx)("div",{className:"collapse-overflow-fade-out",style:i}):null};class g extends s.Component{constructor(){super(...arguments),C(this,"state",{height:0,isOpen:!1}),C(this,"observer",null),C(this,"handleResize",()=>{const c=this.getContentHeight();c!==this.state.height&&this.setState({height:c})}),C(this,"toggleCollapse",c=>{c.stopPropagation();const{isOpen:v}=this.state;this.setState({isOpen:!v})})}getContentHeight(){return this.childElement?Math.ceil(this.childElement.scrollHeight):0}componentDidMount(){const{openOnMount:c=!1}=this.props;typeof ResizeObserver!="undefined"&&this.childElement&&(this.observer=new ResizeObserver(this.handleResize),this.observer.observe(this.childElement));const v=this.getContentHeight();this.setState({height:v,isOpen:c})}componentDidUpdate(c,v){const n=this.getContentHeight();n!==this.state.height&&this.setState({height:n}),v.isOpen!==this.state.isOpen&&n>(this.props.minHeight||100)&&this.props.onToggle&&this.props.onToggle(this.state.isOpen)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}render(){const{children:c,minHeight:v=100,openText:n="view more",closeText:i="view less",handleOnClick:f,disableBtn:y=!1,className:m="",backgroundColor:b,showToggleButton:u=!0,handleToggle:d}=this.props,{height:I,isOpen:E}=this.state;return(0,e.jsxs)("div",{ref:M=>this.divElement=M,className:"collapse-overflow"+(E?" is-open":"")+" "+m,children:[(0,e.jsxs)("div",{className:"collapse-overflow-content",style:I>v&&!E?{height:v}:{height:"auto"},children:[(0,e.jsx)("div",{ref:M=>this.childElement=M,children:c}),(0,e.jsx)(o,{minHeight:v,backgroundColor:b,height:I,isOpen:E})]}),u&&I>v?(0,e.jsx)("div",{className:"collapse-overflow-buttons",children:(0,e.jsx)(l.$n,{type:"link",onClick:f||this.toggleCollapse,disabled:y,"aria-expanded":E,children:(0,e.jsx)("em",{children:E?i:n})})}):null,!u&&(0,e.jsx)(l.$n,{ref:M=>d&&d(M),className:"hidden-btn",size:"small","aria-hidden":"true",tabIndex:"-1",onClick:this.toggleCollapse,"aria-expanded":!!E})]})}}const x=g},712167:(q,N,t)=>{t.d(N,{A:()=>h});var e=t(715621),s=t(537953),l=t(768835);const a={};function h({children:A,color:C,type:o,className:g,...x}){return(0,e.jsx)("div",{className:(0,l.A)("chip",{[g]:g,[`chip_type-${o}`]:!!o}),...x,children:(0,e.jsx)("span",{children:A})})}},713796:(q,N,t)=>{t.d(N,{b:()=>a});var e=t(686993),s=t(30249);const l=(0,e.eU)(!1);
16l.debugLabel="redDotState";const a=()=>(0,s.fp)(l)},721764:(q,N,t)=>{t.d(N,{A:()=>pn});var e=t(715621),s=t(537953),l=t(145926),a=t(248883),h=t(768835),A=t(367803),C=t(832196),o=t(839050),g=t(901),x=t(425170),p=t(778402),c=t(348861),v=t(177587),n=t(565095),i=t(356029),f=t(829080),y=t(719164),m=t(939291);const b=ae=>(0,s.useMemo)(()=>{const de=(0,m.A)(ae,"socialProofList",[]),Ke=[],$e=[];de.forEach(me=>{["SameMajor","SameIndustry","SameMajorAndIndustry"].includes(me.type)?Ke.push(me):$e.push(me)}),Ke.push(...$e);const ue=Ke.map(me=>({spEntity:me,compProps:{}})),he=ue.slice(0,2).map(me=>me.spEntity.type).join(",")||"Absent";return{socialProofObjs:ue,pgAnalyticsSocialProof:he}},[ae]);var u=t(90570),d=t(972185),I=t(660452),E=t(569713),M=t(55374);const S={"bg-primary-xlight":"bg-primary-xlight__ILtD7","bg-primary-light":"bg-primary-light__MLUVR","bg-primary":"bg-primary__d0DBY","bg-primary-dark":"bg-primary-dark__bBLB8","bg-primary-xdark":"bg-primary-xdark__kwiW2","bg-secondary-xlight":"bg-secondary-xlight__lWYne","bg-secondary-light":"bg-secondary-light__h5Jog","bg-secondary":"bg-secondary__WyME5","bg-secondary-dark":"bg-secondary-dark__NPo0x","bg-secondary-xdark":"bg-secondary-xdark__Fr8D_","bg-success-xlight":"bg-success-xlight__FLbdq","bg-success-light":"bg-success-light__ku5Gg","bg-success":"bg-success__8N4hg","bg-success-dark":"bg-success-dark__BDKDL","bg-success-xdark":"bg-success-xdark__mMaO6","bg-info-xlight":"bg-info-xlight__dN23t","bg-info-light":"bg-info-light__DU6zG","bg-info":"bg-info__msMPy","bg-info-dark":"bg-info-dark__P3qvd","bg-info-xdark":"bg-info-xdark__pdHZY","bg-warning-xlight":"bg-warning-xlight__x1jtM","bg-warning-light":"bg-warning-light__W_EN4","bg-warning":"bg-warning__iYYNN","bg-warning-dark":"bg-warning-dark__DY6xy","bg-warning-xdark":"bg-warning-xdark__N0rT5","bg-alert-xlight":"bg-alert-xlight__TY93r","bg-alert-light":"bg-alert-light__cbVYy","bg-alert":"bg-alert__VXyFe","bg-alert-dark":"bg-alert-dark__U36bs","bg-alert-xdark":"bg-alert-xdark__WDRvu","bg-danger-xlight":"bg-danger-xlight__YnTol","bg-danger-light":"bg-danger-light___H_mw","bg-danger":"bg-danger__K4Cly","bg-danger-dark":"bg-danger-dark__qlREZ","bg-danger-xdark":"bg-danger-xdark__mbwgc",root:"root__B24P6",reqAboutContainer:"reqAboutContainer__Zu69D",reqAboutTitle:"reqAboutTitle__Vw9bq",reqAboutDesc:"reqAboutDesc__s5KlI",requestAboutBtn:"requestAboutBtn__XDqq2",about:"about__TCRrq",questionsContainer:"questionsContainer____dM8",questionsContainerTitle:"questionsContainerTitle__pcGxH",questions:"questions__fyLUO",questionButton:"questionButton__Nsgpt",mobile:"mobile__vKkMG",tab:"tab__kQtZw",active:"active__qlgEc",tabPane:"tabPane__ZeP3H",tabDataItem:"tabDataItem__Otcwb",tabsDataSeparator:"tabsDataSeparator__upF2j",tabsSection:"tabsSection__AZvht",tabList:"tabList__Kah2m",tabListFontScaledUp:"tabListFontScaledUp__o4_Zz",isParentJobPosts:"isParentJobPosts__KyJJy",isV2:"isV2__TJBQo",overFlowTooltip:"overFlowTooltip__X5hmG"},H=({activeTab:ae,tabKey:de,emptyText:Ke,person:$e,tabData:Ze,isV2:ue,parentModuleName:he})=>{const me=(0,l.W6)(),ge=(0,o.lx)(),De=(0,d.A)(Ze,"value"),{containerRef:He,options:Ye=[],plusCount:at}=(0,M.I)({allOptions:De,charWidth:6.6,optionPadding:22,totalRows:1}),Se=ue&&he==="network"&&Ye.length?Ye:De,Xe=(0,s.useCallback)(()=>{const ot=(0,E.K)({userIdentifier:$e.identifier,hubInfo:ge});me.push(ot)},[me,ge,$e.identifier]);return(0,e.jsx)("div",{id:`${de}-tab-${$e.id}`,tabIndex:-1,hidden:ae!==de,"aria-labelledby":de,className:(0,h.A)(S.tabPane,{[S.active]:de===ae}),ref:He,children:Se!=null&&Se.length?(0,e.jsx)(I.A,{title:Se.join(", "),className:S.overFlowTooltip,useDefaultPopupContainer:!0,children:(0,e.jsxs)("div",{role:"list",className:S.tabData,children:[Se.map((ot,Ge)=>(0,e.jsxs)("div",{role:"listitem",className:S.tabDataItem,children:[(0,e.jsx)("span",{children:ot}),Ge!==Se.length-1?(0,e.jsx)("span",{className:S.tabsDataSeparator}):null]},`${Ge}_${ot}`)),at>0&&(0,e.jsxs)("span",{children:[(0,e.jsx)("span",{className:S.tabsDataSeparator}),(0,e.jsxs)(a.$n,{type:"link",onClick:Xe,role:"listitem",children:["+ ",at]})]})]})}):(0,e.jsx)("span",{children:`${$e.firstName} hasn't indicated any ${Ke} yet!`})})};var L=t(332531),O=t(537953);const K=ae=>new RegExp(/(_)\1{4,}/gi).exec(ae),T={industries:{title:"Industries",key:"industries",emptyText:"industries of interest"},education:{title:"Education",key:"education",emptyText:"education"},location:{title:"Location",key:"location",emptyText:"location"},topics:{title:"Topics",key:"topics",emptyText:"help topics"},passions:{title:"Passions",key:"passions",emptyText:"passions"}},D=ae=>{const de=[],{education:Ke,topics:$e,industries:Ze,passions:ue}=T;switch(ae){case"job-posts":return de;case"network":return de.push(Ke),de;case"career-paths":case"company-page":de.push($e);break;default:break}return de.push(Ze,ue),de},W=({person:ae,key:de,isV2:Ke})=>{switch(de){case"passions":return(0,m.A)(ae,"standardData.passion.selectedOptions",[]).map(({optionId:ge,optionTitle:De})=>({id:ge,value:De}));case"industries":return(0,m.A)(ae,"standardData.job-industries.selectedOptions",[]).map(({optionId:ge,optionTitle:De})=>({id:ge,value:De}));case"topics":const ue=(0,L.i$)(ae,"help-topics");return ue?(0,d.A)(ue,({optionId:ge,optionTitle:De})=>({id:ge,value:De})):[];case"areas-of-study":return(0,m.A)(ae,"standardData.areas-of-study.selectedOptions",[]).map(({optionId:ge,optionTitle:De})=>({id:ge,value:De}));case"location":const me=(0,m.A)(ae,"location","");return me?[{id:`${ae.id}_location`,value:me}]:[];default:return[]}},B=ae=>{let de="",Ke="";switch(ae){case"job-posts":de="JOB_POSTS",Ke="Jobs";break;case"career-paths":de="CAREER_PATHS",Ke="Career Path";break;case"network":de="NETWORK",Ke="Network";break;case"company-page":de="COMPANY_PAGE",Ke="Company Page";break}return{messageOrigin:de,profileOrigin:Ke}},k=({tabsData:ae,sectionRef:de})=>{const Ke={};for(let[$e,Ze]of Object.entries(ae)){if(!de)return Ke;
16const{width:ue}=de.getBoundingClientRect(),he=map(Ze,at=>{var Se;return(((Se=at==null?void 0:at.value)==null?void 0:Se.length)|0)*6.5+12});let me=0,ge=0;const De=[[]],He=ue-100;let Ye=1;forEach(he,(at,Se)=>{me+=at,me<He?De[ge].push(Ze[Se]):--Ye?(me=at,De[ge].push(Ze[Se])):(me=at,Ye=1,ge++,De.push([Ze[Se]]))}),Ke[$e]=De}return Ke},_=({tabsData:ae,sectionRef:de})=>{const Ke=useWindowWidth(),[$e,Ze]=O.useState(k({tabsData:ae,sectionRef:de}));return O.useEffect(()=>{setTimeout(()=>{Ze(k({tabsData:ae,sectionRef:de}))},60)},[Ke,de,ae]),$e},F=({person:ae,isV2:de,parentModuleName:Ke,uniqueId:$e})=>{var Ze;const ue=(0,o.er)(),he=(0,o.lx)(),me=(0,x.jIN)(he,ae),ge=["Student","Graduate Student"].includes(me),De=(0,s.useRef)(),He=(0,s.useCallback)((qe,ht)=>{const rt=`tab_${qe.id}_${ht}`,ke={...De.current||{}};if(ke[rt])return ke[rt];const _t=W({person:qe,key:ht,isV2:de});return De.current={...ke,[rt]:_t},_t},[de]),Ye=(0,s.useMemo)(()=>{const qe=D(Ke);if(Ke==="network"){const ht=He(ae,"industries"),{industries:rt,location:ke,topics:_t}=T;(0,u.A)(ht)||qe.unshift(rt),qe.push(ge?ke:_t)}return qe},[He,ge,Ke,ae]),at=Ye.some(({key:qe})=>He(ae,qe).length),Se=qe=>qe+"-"+$e,[Xe,ot]=(0,s.useState)(Se((Ze=Ye[0])==null?void 0:Ze.key)),Ge=(0,s.useMemo)(()=>Ye.reduce((qe,{key:ht})=>{const rt={...qe};if(ht==="education"){const ke=(0,n.i5)({schools:ae.schools,clusterInfo:ue,isEditable:!1,standardUserType:me});Object.assign(rt,{education:ke?[{id:`${ae.id}_education`,value:ke}]:[]})}else Object.assign(rt,{[ht]:He(ae,ht)});return rt},{}),[ue,He,ae,me,Ye]);return{tabsObj:Ye.map(({key:qe,title:ht,emptyText:rt})=>{const ke=Se(qe);return{key:ke,label:ht,active:Xe===ke,content:(0,e.jsx)(H,{tabKey:ke,activeTab:Xe,emptyText:rt,person:ae,tabData:Ge[qe],isV2:de,parentModuleName:Ke})}}),atleastOneTabDataPresent:at,setActiveTab:ot,tabsToDisplay:Ye}};var U=t(526579);const Z=({person:ae,isV2:de,templates:Ke,careerPathTitle:$e,parentModuleName:Ze,cardType:ue,sideEffectOnSelectMessageTemplate:he})=>{const me=(0,o.al)(),ge=(0,U.Vh)(),De=(0,U.GL)(),He=(0,i.E)(),{pgAnalyticsSocialProof:Ye}=b(ae),at=(0,s.useCallback)((Se,Xe)=>{ge(Se),De(ae.id),he==null||he(Xe),He((0,y.QO)({action:`Select template - ${Xe}`,origin:origin||(Ze==="job-posts"?"Jobs":"Career Paths"),extra:{pgAnalyticsCardType:ue,pgAnalyticsSocialProof:Ye}}))},[Ye,ue,Ze,ae.id,De,ge,he,He]);return(0,e.jsxs)("div",{className:S.questionsContainer,children:[(0,e.jsx)("div",{className:S.questionsContainerTitle,children:de?"Conversation starters":"Pick a conversation starter"}),(0,e.jsx)("div",{className:(0,h.A)(S.questions,{[S.mobile]:me}),children:Ke.map(Se=>{var Xe;return(0,e.jsx)(a.$n,{type:de?"tertiary":"secondary",className:(0,h.A)(S.questionButton,de&&S.V2),onClick:()=>{var ot;return at(Se==null?void 0:Se.key,((ot=Se==null?void 0:Se.search)==null?void 0:ot.surface)||(Se==null?void 0:Se.surface))},children:(0,u.A)($e)&&((Xe=Se==null?void 0:Se.search)==null?void 0:Xe.surface)||(Se==null?void 0:Se.surface)},Se==null?void 0:Se.key)})})]})},G=({person:ae,parentModuleName:de,isV2:Ke,messageAddress:$e,disableSecondaryCTA:Ze,careerPathTitle:ue,sideEffectOnSelectMessageTemplate:he,cardType:me,templates:ge})=>{const[De]=(0,s.useState)((0,c.A)(`person-card-${ae.id}`)),He=(0,o.al)(),Ye=(0,o.iZ)(),at=(0,o.er)(),Se=(0,o.lx)(),{tabsObj:Xe,atleastOneTabDataPresent:ot,setActiveTab:Ge,tabsToDisplay:At}=F({person:ae,isV2:Ke,parentModuleName:de,uniqueId:De}),{pgAnalyticsSocialProof:qe}=b(ae),ht=(0,f.MU)(),rt=(0,x.jIN)(Se,ae),ke=(0,i.E)(),_t=de==="job-posts",ms=de==="company-page",Ms=de==="career-paths",Zs=(0,s.useCallback)(Is=>{ke((0,y.QO)({action:`${Is} tag`,origin:origin||(de==="job-posts"?"Jobs":"Career Paths"),extra:{pgAnalyticsSocialProof:qe,pgAnalyticsCardType:me,pgAnalyticsMlRank:ae.mlRank}})),Is&&Ge(Is)},[me,de,ae.mlRank,qe,Ge,ke]),fs=(0,s.useCallback)(()=>{const Is=(0,e.jsx)("span",{children:`${ae.firstName} hasn't indicated any ${At.map(cn=>cn.emptyText).join(" / ")} yet!`});if(!_t)return Is;const{schools:Us,location:js=""}=ae,{renderEducation:Ie,renderLocation:Os}=(0,n.vu)({schools:Us,location:js,standardUserType:rt,clusterInfo:at,isEditable:!1});return Ie||Os?(0,e.jsx)(v.A,{text:`${Ie||""} ${Os||""}`}):Is},[at,_t,ae,rt,At]),sn=ae.id===Ye.id||$e||Ze,_s=ot&&At.length?(0,e.jsx)(a.tU,{onChange:Zs,design:"capsule",className:(0,h.A)(S.tabsSection,{[S.isParentJobPosts]:_t||Ke,[S.mobile]:He,[S.isV2]:Ke}),tabListClassName:(0,h.A)(S.tabList,{[S.tabListFontScaledUp]:ht}),tabs:Xe}):(0,e.jsx)("div",{className:S.tabsSection,children:fs()});return!_t&&!ms&&!Ms&&!Ke?null:(0,e.jsxs)(e.Fragment,{children:[_t?null:_s,!Ms&&!sn?(0,e.jsx)(Z,{person:ae,careerPathTitle:ue,isV2:Ke,parentModuleName:de,templates:ge,cardType:me,sideEffectOnSelectMessageTemplate:he}):null]})};var ie=t(283766),le=t(967489),ce=t(184461),oe=t(527510),Q=t(35235),ne=t(187720),Oe=t(785513),je=t(503605);const xe=async({msgToSend:ae,msgOrigin:de,mlRank:Ke,mentorMessages:$e,setMentorMessages:Ze,userInfo:ue,hub
16:he,sideEffectOnSendMessageToMentor:me,trackPGAnalytics:ge})=>{var De;try{const{requestToFillAboutSection:He,messageAddressFromApi:Ye,jobConnectionRequest:at,preConnectionTemplateIdentifier:Se}=ae;Ze({...$e,[ae==null?void 0:ae.toUser]:{...$e[ae==null?void 0:ae.toUser]||{},...He?{sendingAboutRequest:!0}:{sendingMessage:!0}}});const{hasNoJobsLinked:Xe}=at||{},ot="message";let Ge={toUser:ae.toUser,message:ae.message,requestToFillAboutSection:He,jobConnectionRequest:Xe?{}:at,subject:`New Message from ${ue.firstName} on ${he.name}`,hub:he.id,messageType:ot,messageOrigin:de,preConnectionTemplate:Se,isJobConnectionsRequest:(!(0,u.A)(at)||Xe)&&de==="JOB_POSTS"},At;const qe=((De=$e[ae==null?void 0:ae.toUser])==null?void 0:De.messageAddress)||Ye;if(qe){const ht=(0,Oe.fb)();Ge={...Ge,messageObj:{otherUsers:[{id:ae.toUser}],requestToFillAboutSection:He},trackingId:ht},await(0,le.u1m)({address:qe,data:Ge})}else At=(await(0,le.guv)(Ge)).data;return Ze({...$e,[ae==null?void 0:ae.toUser]:{...$e[ae==null?void 0:ae.toUser]||{},...He?{sendingAboutRequest:!1,aboutRequestSent:!0}:{sendingMessage:!1,messageSent:!0},messageAddress:qe||(At==null?void 0:At.relayMessageAddress),sentAt:new Date().toString()}}),me(),ge({pgAnalytics:"MessageV2 - Message Sent",pgAnalyticsCategory:"Connection Flow",pgAnalyticsMessageType:ot,pgAnalyticsMessageOrigin:de,pgAnalyticsMlRank:Ke}),At}catch(He){Ze({...$e,[ae==null?void 0:ae.toUser]:{...$e[ae==null?void 0:ae.toUser]||{},...ae.requestToFillAboutSection?{sendingAboutRequest:!1,aboutRequestSent:!1}:{sendingMessage:!1,messageSent:!1}}})}},dt=()=>{const ae=(0,o.iZ)(),de=(0,o.lx)(),[Ke,$e]=(0,U.GS)(),Ze=(0,i.E)();return(0,ie.useMutation)(({msgToSend:ue,msgOrigin:he,mlRank:me,sideEffectOnSendMessageToMentor:ge})=>xe({msgToSend:ue,msgOrigin:he,mlRank:me,mentorMessages:Ke,setMentorMessages:$e,userInfo:ae,hub:de,sideEffectOnSendMessageToMentor:ge,trackPGAnalytics:Ze}),{onSuccess:async(ue,he)=>{var me;const{msgToSend:ge,msgOrigin:De,onMessageSentSuccess:He=()=>{}}=he,Ye=!((me=ge==null?void 0:ge.jobConnectionRequest)!=null&&me.hasNoJobsLinked);if(!(0,u.A)(ge.jobConnectionRequest)&&Ye){const{relayMessageAddress:at}=ue;let Se={toUser:ge.toUser,message:ge.message,jobConnectionRequest:ge.jobConnectionRequest,subject:`New Message from ${ae.firstName} on ${de.name}`,hub:de.id,messageType:"message",messageOrigin:De};const Xe=(0,Oe.fb)(),ot={...Se,messageObj:{otherUsers:[{id:ge.toUser}]},trackingId:Xe};await(0,le.u1m)({address:at,data:ot}),oe.A.invalidateQueries([ne.A.user,ge.toUserIdentifier])}(0,ce.sk)(),oe.A.invalidateQueries({queryKey:[Q.A.userConnections]}),oe.A.invalidateQueries([je.A.recommendedAlumni]),He(),(0,u.A)(ge.requestToFillAboutSection)&&(0,x.mei)("Message sent.","success")},onError:()=>{(0,x.mei)("Failed to send message","error")}})},We=ae=>{const{person:de,currentUser:Ke}=ae;return`
17    <p>
18      Hi, ${de.firstName}.
19      <br>I came across your profile and am interested in learning about your career journey. I'd love to connect and hear more about your background and work experience.
20      <br>Looking forward to hearing from you. Thanks!
21      <br>${Ke.firstName}
22    </p>
23`},Le=({person:ae,chatCtaText:de,parentModuleName:Ke,isAboutRequested:$e,context:Ze})=>{const ue=(0,o.iZ)(),{mutate:he}=dt(),me=Ke==="job-posts",De=me||Ke==="company-page",He=()=>{var Ye;const at={toUser:ae.id,toUserIdentifier:ae.identifier,message:We({person:ae,currentUser:ue}),requestToFillAboutSection:{...me?{jobUrl:Ze==null?void 0:Ze.jobUrl,jobId:Ze==null?void 0:Ze.jobId}:{}},messageAddressFromApi:(Ye=ae==null?void 0:ae.message)==null?void 0:Ye.address};he({msgToSend:at,msgOrigin:{"job-posts":"JOB_POSTS","company-page":"COMPANY_PAGE","career-paths":"CAREER_PATHS"}[Ke]||"CAREER_PATHS",mlRank:ae.mlRank,sideEffectOnSendMessageToMentor:()=>{}})};return De?null:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:(0,h.A)({[S.reqAboutContainer]:$e}),"aria-live":"polite","aria-atomic":"true",children:$e?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("p",{className:S.reqAboutTitle,children:`You've messaged ${ae.firstName}.`}),(0,e.jsxs)("p",{className:S.reqAboutDesc,children:['To review messages or send another message, select "',de,'" or go to your inbox.']})]}):null}),$e?null:(0,e.jsxs)("div",{className:S.reqAboutContainer,children:[(0,e.jsx)("p",{className:S.reqAboutTitle,children:"This profile doesn't have an introduction yet."}),(0,e.jsxs)("p",{className:S.reqAboutDesc,children:["Reach out to ",ae.firstName," and start a conversation. Pick a conversation starter below or automatically send our default introductory message.\xA0",(0,e.jsx)(a.$n,{className:S.requestAboutBtn,onClick:He,type:"ghost",children:"Send default message now."})]})]})]})},ct=({isV2:ae,person:de,isAboutRequested:Ke,careerPathTitle:$e="",messageTemplateForMentors:Ze,parentModuleName:ue,messageAddress:he,context:me={},chatCtaText:ge,sideEffectOnSelectMessageTemplate:De=at=>{},disableSecondaryCTA:He=!1,cardType:Ye})=>(0,e.jsxs)("div",{className:S.root,children:[!ae&&(de.about?(0,e.jsx)("p",{className:S.about,dangerouslySetInnerHTML:{__html:(0,p.a)(de.about)}}):(0,e.jsx)(Le,{person:de,chatCtaText:ge,isAboutRequested:Ke,parentModuleName:ue,context:me})),(0,e.jsx)(G,{person:de,careerPathTitle:$e,isV2:ae,messageAddress:he,parentModuleName:ue,templates:Ze,cardType:Ye,disableSecondaryCTA:He,sideEffectOnSelectMessageTemplate:De})]});var we=t(988705),be=t(560109),ye=t(736608),tt=t(290731),Te=t(588173),Je=t(102736),Ue=t.n(Je);function _e({size:ae,fill:de}){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:ae,height:ae,viewBox:"0 0 40 40",fill:"none",children:(0,e.jsx)("path",{d:"M16.4726 22.1135C16.0821 22.504 16.0821 23.1372 16.4726 23.5277C16.8631 23.9182 17.4963 23.9182 17.8868 23.5277L16.4726 22.1135ZM25.9637 15.4508C26.3542 15.0602 26.3542 14.4271 25.9637 14.0365C25.5732 13.646 24.94 13.646 24.5495 14.0365L25.9637 15.4508ZM17.8868 23.5277L25.9637 15.4508L24.5495 14.0365L16.4726 22.1135L17.8868 23.5277Z M22.8842 34.6126L21.9898 35.0598L22.8842 34.6126ZM25.9679 34.3574L25.0121 34.0633L25.9679 34.3574ZM16.5554 22.7002L16.1081 23.5946L16.5554 22.7002ZM17.3007 23.4455L18.1951 22.9983L17.3007 23.4455ZM5.64352 14.033L5.93761 14.9887L5.64352 14.033ZM5.38831 17.1166L4.9411 18.0111L5.38831 17.1166ZM31.992 5.92572L32.2861 6.8815L31.992 5.92572ZM34.0752 8.00883L35.0309 8.30291L34.0752 8.00883ZM31.698 4.96994L5.34943 13.0772L5.93761 14.9887L32.2861 6.8815L31.698 4.96994ZM4.9411 18.0111L16.1081 23.5946L17.0026 21.8057L5.83552 16.2222L4.9411 18.0111ZM16.4063 23.8927L21.9898 35.0598L23.7787 34.1654L18.1951 22.9983L16.4063 23.8927ZM26.9237 34.6514L35.0309 8.30291L33.1194 7.71474L25.0121 34.0633L26.9237 34.6514ZM21.9898 35.0598C23.0657 37.2116 26.2162 36.9508 26.9237 34.6514L25.0121 34.0633C24.8353 34.6381 24.0476 34.7033 23.7787 34.1654L21.9898 35.0598ZM16.1081 23.5946C16.2372 23.6591 16.3418 23.7637 16.4063 23.8927L18.1951 22.9983C17.9371 22.4822 17.5186 22.0638 17.0026 21.8057L16.1081 23.5946ZM5.34943 13.0772C3.05006 13.7847 2.78932 
2316.9352 4.9411 18.0111L5.83552 16.2222C5.29758 15.9532 5.36277 15.1656 5.93761 14.9887L5.34943 13.0772ZM32.2861 6.8815C32.7977 6.72411 33.2768 7.20323 33.1194 7.71474L35.0309 8.30291C35.6605 6.25684 33.744 4.34038 31.698 4.96994L32.2861 6.8815Z",fill:de})})}_e.propTypes={fill:Ue().string,size:Ue().oneOfType([Ue().string,Ue().number])},_e.defaultProps={fill:"#fff",size:24};const bt=_e;var wt=t(854340),ls=t(312279),us=t(718922),Xt=t(69914),ut=t(871717),$t=t(686993),As=t(30249);const kt=(0,$t.eU)("");kt.debugLabel="message";const Wt=()=>(0,As.fp)(kt),pt=(0,$t.eU)(!1);pt.debugLabel="templateHasUnderscores";const Yt=()=>(0,As.fp)(pt),qt=()=>(0,As.Xr)(pt);var Bt=t(922109),Kt=t(516033);const Ot={rootWrapper:"rootWrapper__W_mqP",root:"root__VxMfJ",fontScaledUp:"fontScaledUp__kczOL",jobDetail:"jobDetail__JYXi0",companyPage:"companyPage__sVmOI",top:"top__r3p0H",avatar:"avatar__C73NK",topMiddle:"topMiddle__SXMeM",name:"name__C13uI",topActions:"topActions__bBtR2",expectText:"expectText__W4fkx",questionsContainer:"questionsContainer__eadbV",questionTag:"questionTag__QFri5",messageWidgetBody:"messageWidgetBody__oAle1",froalaError:"froalaError___G8ak",sendMessageBtn:"sendMessageBtn__NhCjS",mobile:"mobile__aSTns",errorWrapper:"errorWrapper__mfIdN"},Es=({person:ae,parentModuleName:de,cardType:Ke,isActionsDisabled:$e,selectedTemplateSurface:Ze,onClose:ue,sideEffectOnDeselectTemplate:he})=>{const me=(0,o.al)(),[ge,De]=Wt(),He=(0,i.E)(),Ye=(0,U.Vh)(),at=qt(),{pgAnalyticsSocialProof:Se}=b(ae),{profileOrigin:Xe}=B(de),ot=(At,qe)=>{He((0,y.QO)({action:At,origin:origin||Xe,extra:{...qe,pgAnalyticsSocialProof:Se,pgAnalyticsCardType:Ke,pgAnalyticsMlRank:ae.mlRank}}))},Ge=()=>{Ye(-1),De("")};return(0,e.jsxs)("div",{className:Ot.top,children:[(0,e.jsx)(Kt.A,{user:ae,allowedStates:["online","offline-away","away"],children:(0,e.jsx)(Bt.A,{className:Ot.avatar,src:ae.photoUrl,alt:ae.firstName,id:ae.id})}),(0,e.jsxs)("div",{className:Ot.topMiddle,children:[(0,e.jsxs)("h4",{className:Ot.name,children:["Ask ",ae.name," a question"]}),me?null:(0,e.jsx)("p",{className:Ot.expectText,children:"Expect a response within 48 hours."})]}),(0,e.jsxs)("div",{className:Ot.topActions,children:[ge&&(0,e.jsx)(a.K0,{type:"ghost","aria-label":"back",onClick:()=>{at(!1),ot("Back to templates",{}),he(Ze),Ge()},disabled:$e,icon:"pg-reply-o"}),(0,e.jsx)(a.K0,{type:"ghost","aria-label":"close",onClick:()=>{ot("Cancel ask a question",{}),he(Ze),Ge(),ue()},disabled:$e,icon:"pg-cross-o"})]})]})},ft=["QuestionCount","ShowGratitude","WordCount"],Ne=()=>{const ae=window.pageYOffset||document.documentElement.scrollTop,de=window.pageXOffset||document.documentElement.scrollLeft;window.onscroll=()=>{window.scrollTo(de,ae),window.onscroll=()=>{}}};function Re({person:ae,onClose:de,careerPathTitle:Ke="",mentorMessage:$e,messageTemplateForMentors:Ze,parentModuleName:ue,context:he={},maxNumberOfMessageTips:me,customOrderedRules:ge,customAlwaysShowRules:De,onMessageSentSuccess:He=()=>{},messageTipsParentContainerSelector:Ye,messageTipsScrollableParentSelector:at=".job-detail-body",messageTipsPosition:Se="left",sideEffectOnSendMessageToMentor:Xe,sideEffectOnDeselectTemplate:ot=ht=>{},sideEffectOnSelectMessageTemplate:Ge=ht=>{},origin:At,cardType:qe}){const ht=(0,o.al)(),rt=(0,s.useRef)(null),[ke,_t]=Wt(),[ms,Ms]=(0,U.Me)(),[Zs,fs]=(0,s.useState)(""),[Bs,sn]=(0,s.useState)(!1),[_s,Is]=(0,s.use
23State)(!1),Us=(0,i.E)(),[js,Ie]=Yt(),{mutate:Os}=dt(),cn=(0,ls.d)(({messageWidget:st})=>st.messageWidgetFeedbacks),fn=(0,us.ZC)(ms),[Rs,vn]=(0,s.useState)(null),[ws,Vs]=(0,s.useState)({}),{pgAnalyticsSocialProof:xs}=b(ae),xn=(0,f.MU)(),{messageOrigin:Cn,profileOrigin:Cs}=B(ue),Ds=_s||js,dn=()=>{un("Help",{}),setTimeout(()=>{sn(st=>!st)},0)},vs={defaultButtons:{moreText:{buttons:["bold","italic","underline","align","formatOL","formatUL","outdent","indent","clearFormatting"],buttonsVisible:0},moreMisc:{buttons:["emojis","helpModal"],buttonsVisible:2}},customButtonFunctions:{helpModal:dn}},Xs={heightMin:80,toolbarBottom:!0};(0,s.useEffect)(()=>{var st,ss;const gs=Ze.find(({key:Ss})=>Ss===ms);if(gs){const Ss=ue==="career-paths"&&(0,u.A)(Ke)?(st=gs==null?void 0:gs.search)==null?void 0:st.template:gs==null?void 0:gs.template;fs(((ss=gs==null?void 0:gs.search)==null?void 0:ss.surface)||(gs==null?void 0:gs.surface)),_t(Ss||"")}else ke&&_t("")},[Ke,ue,Ze,ms,_t]),(0,s.useEffect)(()=>{const st=Ye?document.querySelector(at):null;return st&&st.addEventListener("scroll",nn),()=>{var ss;(ss=st==null?void 0:st.removeEventListener)==null||ss.call(st,"scroll",nn),vn(null),Ms(-1)}},[]);const nn=()=>{if(!Ye||ht)return;const st=document.getElementById("message-widget-edit-container");if(!st)return;const ss=Ye?document.querySelector(at):null,gs=ss==null?void 0:ss.getBoundingClientRect(),Ss=st==null?void 0:st.getBoundingClientRect();let Dn=Ss.top-(((gs==null?void 0:gs.top)||0)+50)>50?1:0;const Ls={top:`calc(${Ss.top}px - 100px)`,left:`calc(${Ss.left}px - 250px)`,opacity:`${Dn}`,transition:"opacity 0.5s"};Se==="right"&&(Ls.top=`calc(${Ss.top}
23px - 50px)`,Ls.left=`calc(${Ss.right}px + 25px )`,Ls.right="auto"),Vs(Ls)};(0,s.useEffect)(()=>{if(ht&&Vs({bottom:"68px",top:"auto",left:"0",width:"100%"}),Rs||!ke){ke||vn(null);return}const st=document.querySelector(Ye||"#message-widget-edit-container");vn(st),nn()},[ke]);const zs=st=>{var ss,gs;if((0,u.A)(st))return;const Ss=(0,ye.A)(st,{name:"WordCount"});((ss=Ss==null?void 0:Ss.match)==null?void 0:ss.wordCount)>125&&!_s?Is(!0):!(((gs=Ss==null?void 0:Ss.match)==null?void 0:gs.wordCount)>125)&&_s&&Is(!1)},ys=st=>{Ne(),Ie(!1),_t(st)},$s=()=>{K(ke)?Ie(!0):jn({message:ke,toUser:ae.id,toUserIdentifier:ae.identifier})},un=(st,ss)=>{Us((0,y.QO)({action:st,origin:At||Cs,extra:{...ss,pgAnalyticsSocialProof:xs,pgAnalyticsCardType:qe,pgAnalyticsMlRank:ae.mlRank}}))},Ys=st=>{var ss;return(0,u.A)(Ke)&&((ss=st==null?void 0:st.search)==null?void 0:ss.surface)||(st==null?void 0:st.surface)},Ps=st=>{Ms(st==null?void 0:st.key),Ge(Ys(st)),un(`Select template - ${Ys(st)}`,{pgAnalyticsTemplateKey:st==null?void 0:st.key})},jn=st=>{var ss;if(un("Send Question",{}),st.message=(ss=st.message)==null?void 0:ss.replace(/\n/g,""),$e!=null&&$e.sendingMessage)return;const gs=(0,m.A)(Ze.find(({key:Ss})=>Ss===ms),"identifier");Os({msgToSend:{...st,...ue==="job-posts"?{jobConnectionRequest:{jobUrl:he==null?void 0:he.jobUrl,jobId:he==null?void 0:he.jobId,jobSlug:he==null?void 0:he.jobSlug,hasNoJobsLinked:he==null?void 0:he.hasNoJobsLinked,factor:he==null?void 0:he.factor,companyName:he==null?void 0:he.companyName,jobTitle:he==null?void 0:he.jobTitle,location:he==null?void 0:he.location,jobPostedDate:he==null?void 0:he.jobPostedDate,jobTags:he==null?void 0:he.jobTags,companyLogo:he==null?void 0:he.companyLogo,currentUserHeadline:he==null?void 0:he.currentUserHeadline}}:{},preConnectionTemplateIdentifier:gs},msgOrigin:At||Cn,mlRank:ae.mlRank,onMessageSentSuccess:He,sideEffectOnSendMessageToMentor:()=>Xe({selectedTemplate:Zs})})};return(0,e.jsxs)("div",{className:Ot.rootWrapper,children:[(0,e.jsxs)("div",{className:(0,h.A)(Ot.root,{[Ot.mobile]:ht,[Ot.jobDetail]:ue==="job-posts",[Ot.companyPage]:ue==="company-page",[Ot.fontScaledUp]:xn}),children:[(0,e.jsx)(Es,{person:ae,cardType:qe,isActionsDisabled:$e==null?void 0:$e.sendingMessage,onClose:de,parentModuleName:ue,selectedTemplateSurface:Zs,sideEffectOnDeselectTemplate:ot}),ht?(0,e.jsx)("p",{className:Ot.expectText,children:"Expect a response within 48 hours."}):null,!ke&&(0,e.jsx)("div",{className:Ot.questionsContainer,children:Ze.map(st=>(0,e.jsx)(a.$n,{className:Ot.questionTag,onClick:()=>Ps(st),children:Ys(st)},st==null?void 0:st.key))}),(0,e.jsxs)("div",{className:(0,h.A)(Ot.messageWidgetBody,Ds&&Ot.froalaError,xn&&Ot.fontScaledUp),children:[(0,e.jsx)(tt.A,{handleRef:st=>{rt.current||(rt.current=st)},value:ke,onChange:ys,toolbarType:"custom",toolbarOptions:vs,customConfig:Xs,placeholder:"Type your message here",...fn!==-1&&ms===-1?{key:(0,Xt.A)()}:{}}),(0,e.jsx)(ut.A,{feedbackMessages:cn,displayState:Bs,toggleHelpModal:dn}),Rs&&!ht?(0,we.createPortal)((0,e.jsx)(wt.A,{message:ke,widgetExpanded:!0,alwaysShowRule:De||ft,processFeedbacks:zs,customStyle:ws,customOrderedRules:ge||[],maxNumberOfMessageTips:me,sourceModule:ue,position:Se,toUserInfo:ae}),Rs,"feedback-message-tips"):ht?(0,e.jsx)(wt.A,{message:ke,alwaysShowRule:De||ft,processFeedbacks:zs,customStyle:ws,customOrderedRules:ge||[],maxNumberOfMessageTips:me,sourceModule:ue,position:Se,toUserInfo:ae}):(0,e.jsx)(wt.A,{message:ke,widgetExpanded:!1,alwaysShowRule:ft,processFeedbacks:zs,customStyle:ws,customOrderedRules:ge||[],maxNumberOfMessageTips:me,sourceModule:ue,position:Se,toUserInfo:ae}),(0,e.jsx)("div",{className:(0,h.A)(Ot.sendMessageBtn,{[Ot.fontScaledUp]:xn}),children:(0,e.jsx)(be.A,{title:"The message text exceeds the maximum character count of 125! We strongly recommend sending a shorter text.",visible:_s,children:(0,e.jsx)(a.$n,{type:"primary",onClick:$s,disabled:!ke||_s||js,loading:$e==null?void 0:$e.sendingMessage,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{children:"\xA0 Send \xA0"}),(0,e.jsx)(bt,{})]})})})})]})]}),js&&(0,e.jsx)("div",{className:Ot.errorWrapper,children:(0,e.jsx)(Te.A,{message:"Please modify your template to make it your own!"})})]})}const Pt=Re;var Mt=t(377565),nt=t(56557),as=t(315913),is=t(935336),ts=t(973391),cs=t(406559),os=t(600386),Fs=t(354350),Js=t(850504),Ns=t(736611);const St={"bg-primary-xlight":"bg-primary-xlight___sVLh","bg-primary-light":"bg-primary-light__Oanwt","bg-primary":"bg-primary__PpTcu","bg-primary-dark":"bg-primary-dark__k9ZP_","bg-primary-xdark":"bg-primary-xdark__TMqQT","bg-secondary-xlight":"bg-secondary-xlight__ymNHQ","bg-secondary-light":"bg-secondary-light__Ia0mD","bg-secondary":"bg-secondary__wEgUc","bg-secondary-dark":"bg-secondary-dark__iCGG5","bg-secondary-xdark":"bg-secondary-xdark__GhmjN","bg-success-xlight":"bg-success-xlight__MAe8m","bg-success-light":"bg-success-light__UgUCy","bg-success":"bg-success__W3wqa","bg-success-dark":"bg-success-dark__a4mgT","bg-success-xdark":"bg-success-xdark__aX0jp","bg-info-xlight":"bg-info-xlight__q429B","bg-info-light":"bg-info-light__0lx3j","bg-info":"bg-info__OH4p0","bg-info-dark":"bg-info-dark__YMBU6","bg-info-xdark":"bg-info-xdark__yD3Gr","bg-warning-xlight":"bg-warning-xlight__now9b","bg-warning-light":"bg-warning-light__tnoZD","bg-warning":"bg-warning__KmZQX","bg-warning-dark":"bg-warning-dark__GAm6i","bg-warning-xdark":"bg-warning-xdark__tRavK","bg-alert-xlight":"bg-alert-xlight__CSeHg","bg-alert-light":"bg-alert-light__zxBdw","bg-alert":"bg-alert__TAs1Q","bg-alert-dark":"bg-
23alert-dark__gLaE3","bg-alert-xdark":"bg-alert-xdark__UdLLG","bg-danger-xlight":"bg-danger-xlight__PEC5G","bg-danger-light":"bg-danger-light__wgUNC","bg-danger":"bg-danger__UY34D","bg-danger-dark":"bg-danger-dark__KgmzM","bg-danger-xdark":"bg-danger-xdark__rTL0s",root:"root__YmxZV",socialProofContainer:"socialProofContainer__nCsfb",inner:"inner__wLR4p",avatar:"avatar__q_852",personDetailsRight:"personDetailsRight__biKnj",nameWrapper:"nameWrapper__IrWxm",fullName:"fullName__Yw9VK",selfChip:"selfChip__OJYW3",headlineContainer:"headlineContainer__dkIc5",headline:"headline__nonLh",pronouns:"pronouns__p9XFV",block:"block__zu8pI",invisible:"invisible__mCW7W",messageSentDisplay:"messageSentDisplay__buI4n",ctaContainer:"ctaContainer__totDE",cta:"cta__XUl3v",secondary:"secondary__iTCfK",bookmarkIcon:"bookmarkIcon__vJjo4",inactive:"inactive__HrMfm",matchingLabel:"matchingLabel__y5IhN",matchingTag:"matchingTag__AlNOn",jobDetail:"jobDetail__FKAWy",mobile:"mobile__AfS6B",manageRecommendation:"manageRecommendation__saZty",tablet:"tablet__ewEhd",nameText:"nameText__usyVY"},gn=({firstName:ae,messageSentAt:de,messageResponded:Ke})=>{if(!de)return"";if(Ke)return`You're already connected with ${ae}! Go to inbox?`;const $e=new Date(de),Ze=Math.abs(Date.now()-$e.getTime());return Math.ceil(Ze/(1e3*60*60*24))<5?`You'll get an email when ${ae} responds.`:`You sent ${ae} a message on ${$e.toLocaleDateString(navigator.language,{dateStyle:"long"})}. They'll likely respond soon!`};function ln({isV2:ae,person:de,isDynamicProfile:Ke,onUserProfileClick:$e,onAskQuestionClick:Ze,sideEffectOnClickAskQuestion:ue,isMobile:he,messageAddress:me,messageSentAt:ge,messageResponded:De,parentModuleName:He,chatCtaText:Ye,context:at,disableSecondaryCTA:Se,announceMessageSentText:Xe,origin:ot="Career Path",cardType:Ge}){const[At,qe]=(0,s.useState)(Xe),[ht,rt]=(0,s.useState)("offline"),ke=(0,s.useRef)(null),_t=(0,l.W6)(),ms=(0,o.iZ)(),Ms=(0,o.Yo)(),Zs=(0,l.zy)(),fs=(at==null?void 0:at.matchingExperienceLabels)||[],{isPronounsShown:Bs,userPronouns:sn}=(0,os.A)(de),_s=(0,i.E)(),{mutate:Is}=(0,Fs.F)(),{isBookmarked:Us,firstName:js,lastName:Ie}=de,Os=(0,y.Ii)(js,Ie);(0,s.useEffect)(()=>()=>{ke.current&&window.clearTimeout(ke.current)},[]),(0,s.useEffect)(()=>{Xe&&(qe(!0),ke.current=window.setTimeout(()=>{qe(!1),ke.current=null},1e3))},[Xe]);const{socialProofObjs:cn,pgAnalyticsSocialProof:fn}=b(de),Rs=ys=>{_s((0,y.QO)({action:ys,origin:ot,extra:{pgAnalyticsCardType:Ge,pgAnalyticsMlRank:de.mlRank,pgAnalyticsSocialProof:fn}}))},vn=()=>{Rs("Ask a question");const $s=new URLSearchParams(Zs.search).get("assessment")||void 0;if($s&&Number($s)!==(ms==null?void 0:ms.user)){(0,Js.A)("Counselors are not permitted to perform this action.","error");return}else me?_t.push(`/inbox/${me}`):Ze();ue({isContinued:!!me})},ws=(0,s.useMemo)(()=>(0,Ns.pj)(de,ae),[de]),Vs=(0,cs.hM)({user:de}),xs=(0,s.useMemo)(()=>gn({firstName:de.firstName,messageSentAt:ge,messageResponded:De}),[de.firstName,ge,De]),xn=["company-page","job-posts"].includes(He),Cn=["company-page","job-posts"].includes(He)&&de.id===ms.id,Cs=Cn;let Ds=["company-page","job-posts"].includes(He)?"primary":"tertiary";ae&&(Ds="primary");const dn=Xe||!xs,vs=He!=="job-posts"?(0,e.jsx)(Mt.A,{isMobile:!0,className:(0,h.A)(St.bookmarkIcon,!Us&&St.inactive),isBookmarked:!!Us,onBookmarkClick:()=>{Rs(Us?"Unbookmark":"Bookmark"),Is(de)},ariaLabel:Us?`Remove ${Os}'s profile from bookmarks`:`Bookmark ${Os}'s profile`}):null,Xs=()=>{Rs("View Profile"),$e()},nn=(0,e.jsxs)(e.Fragment,{children:[(fs==null?void 0:fs.length)>0?(0,e.jsx)("div",{className:St.matchingLabel,children:fs==null?void 0:fs.map(ys=>(0,e.jsx)("div",{className:St.matchingTag,children:(0,e.jsx)("span",{children:ys})},ys))}):null,(0,e.jsx)("p",{className:(0,h.A)(St.messageSentDisplay,{"sr-only":dn}),...At||Xe?{role:"region","aria-live":"polite"}:{},children:!Xe&&xs}),(0,e.jsxs)("div",{className:St.ctaContainer,children:[ae&&he&&vs,!xn&&!ae&&(0,e.jsx)(a.$n,{className:St.cta,onClick:Xs,children:"View Profile"}),Cs?null:(0,e.jsx)(a.$n,{className:(0,h.A)(St.cta,Ds==="primary"?null:St.secondary,{[St.dynamicProfile]:Ke}),type:Ds,onClick:vn,disabled:Se,...!me&&{icon:"pg-chat-bubble-left-ellipsis-o"},children:Ye}),ae&&!he&&vs]})]}),zs=Vs.richTextHeadline?(0,e.jsx)(v.A,{text:Vs.headline}):Vs.headline;return(0,e.jsxs)("div",{className:(0,h.A)(St.root,{[St.mobile]:he,[St.jobDetail]:He==="job-posts",[St.tablet]:Ms}),children:[(0,e.jsxs)("div",{className:St.socialProofContainer,children:[(0,e.jsx)(nt.A,{user:de,theme:"grey",expandable:!he,toFullWidth:!0}),(0,u.A)(cn)?null:(0,d.A)(cn.slice(0,2),ys=>{const $s=ys.spEntity;return(0,e.jsx)(ts.A,{socialProof:$s,showViewBtn:!0,onClick:()=>{Xs(),Rs(is.rO.clickSocialProof)},origin:ot,cardType:Ge,...ys.compProps},$s.type)})]}),(0,e.jsxs)("div",{className:St.inner,children:[(0,e.jsx)(Bt.A,{className:St.avatar,src:de.photoUrl,alt:de.firstName,id:de.id,onClick:Xs}
23),(0,e.jsxs)("div",{className:St.personDetailsRight,children:[(0,e.jsxs)("div",{className:St.nameWrapper,children:[(0,e.jsx)(I.A,{title:Os,children:(0,e.jsxs)("div",{className:`${St.fullName}`,children:[(0,e.jsx)("span",{tabIndex:0,role:"button","aria-label":`Go to ${Os}'s profile, currently ${ht}`,onClick:Xs,onKeyPress:ys=>{ys.key==="Enter"&&Xs()},className:St.nameText,children:Os}),Bs?(0,e.jsxs)("span",{className:(0,h.A)(St.pronouns,{[St.invisible]:de.name.length+sn.length>=30}),children:["(",sn,")"]}):null,Cn&&(0,e.jsx)(a.vu,{text:"Self",size:"xsmall",className:St.selfChip},"self-chip"),(0,e.jsx)(Kt.A,{user:de,setUserStatus:ys=>rt(ys),allowedStates:["online","offline-away","away"]}),Bs?(0,e.jsxs)("span",{className:(0,h.A)([St.pronouns,St.block],{[St.invisible]:de.name.length+sn.length<30}),children:["(",sn,")"]}):null]})}),!ae&&ws.contextualHeadline&&Vs.headline?(0,e.jsxs)(as.A,{className:St.headlineContainer,children:[(0,e.jsx)(I.A,{title:ws.contextualHeadline,useDefaultPopupContainer:!0,children:(0,e.jsx)("span",{className:St.headline,children:ws.contextualHeadline})}),(0,e.jsx)(I.A,{title:zs,useDefaultPopupContainer:!0,children:(0,e.jsx)("span",{className:St.headline,children:zs})})]}):(0,e.jsx)("div",{className:St.headlineContainer,children:(0,e.jsx)("div",{className:St.headline,children:zs})})]}),he?null:nn]})]}),he?nn:null]})}ln.propTypes={};const tn=ln,Gs={root:"root__QPggo",person:"person__VbNTG",person__fontScaledUp:"person__fontScaledUp__GOtPr",personCardSectionWrapper:"personCardSectionWrapper__LtfOH",personCardSectionWrapper__fontScaledUp:"personCardSectionWrapper__fontScaledUp__RXvSD",mobile:"mobile__m5vJX",jobPost:"jobPost__jwaqU",companyPage:"companyPage__w0gm0"};function Tn({className:ae,person:de,careerPathTitle:Ke="",jobTitle:$e="",parentModuleName:Ze="career-paths",messageOrigin:ue,context:he={},messageTipsParentContainerSelector:me,maxNumberOfMessageTips:ge,customOrderedRules:De=[],customAlwaysShowRules:He=[],onMessageSentSuccess:Ye=()=>{},sideEffectOnClickAskQuestion:at=()=>{},sideEffectOnSendMessageToMentor:Se=()=>{},sideEffectOnCloseAskQuestionModule:Xe=()=>{},sideEffectOnSelectMessageTemplate:ot=Ms=>{},sideEffectOnDeselectTemplate:Ge=Ms=>{},onVoteSubModule:At=()=>{},messageTipsScrollableParentSelector:qe,messageTipsPosition:ht,hideFeedbackBar:rt=!1,origin:ke,cardType:_t="Profile card",messageTemplates:ms=[]}){var Ms,Zs,fs,Bs;
23const sn=(0,l.W6)(),[_s,Is]=(0,s.useState)(!1),Us=(0,s.useRef)(null),js=Ze==="job-posts",[Ie,Os]=(0,U.xr)(),[cn]=(0,U.GS)(),[,fn]=(0,U.Me)(),Rs=(0,o.lx)(),vn=(0,o.iZ)(),ws=(0,o.er)(),Vs=(0,o.al)(),xs=(0,x.xn7)(Rs)||ke==="FTU connection prompt",xn=(0,x.DQF)(ws,de),Cn=(0,g.A)({user:de}),Cs=cn[de.id],Ds=(Cs==null?void 0:Cs.messageAddress)||((Ms=de==null?void 0:de.message)==null?void 0:Ms.address)||"",dn=(Cs==null?void 0:Cs.sentAt)||((Zs=de==null?void 0:de.message)==null?void 0:Zs.created_at)||"",vs=((fs=de==null?void 0:de.message)==null?void 0:fs.responded)||!1,Xs=(de==null?void 0:de.isAboutRequested)||((Bs=de==null?void 0:de.message)==null?void 0:Bs.isAboutRequested)||(Cs==null?void 0:Cs.sendingAboutRequest)||(Cs==null?void 0:Cs.aboutRequestSent)||!1,nn=(0,f.MU)();let zs="Message";Ds&&(Ze==="job-posts"&&(zs="Keep the Convo Going!"),zs="Go to Inbox");const ys=(0,x.xn7)(Rs)&&js?Cn:!0;(0,s.useEffect)(()=>()=>{Os(-1),Us.current&&window.clearTimeout(Us.current)},[]),(0,s.useEffect)(()=>{_s&&dn&&(Us.current=window.setTimeout(()=>{Is(!1),Us.current=null},10))},[_s,dn]);const $s=()=>{const Ps=js?btoa(window.encodeURIComponent(JSON.stringify({jobConnectionCtx:{...he&&he}}))):"",jn=(0,C.ID)({moduleName:"profile",hubInfo:Rs,clusterInfo:ws,params:{userIdentifier:de.identifier,openInModal:!0,showBack:!0,messageOrigin:ue,...js&&{referer:"job-detail",messageOrigin:"JOB_POSTS"},context:Ps,mr:de.mlRank}});sn.push(jn)},un=()=>{Os(de.id)},Ys=()=>{Os(-1),Is(!0),Xe()};return(0,e.jsxs)("div",{className:(0,h.A)(Gs.root,{[Gs.mobile]:Vs,[Gs.jobPost]:js,[Gs.companyPage]:Ze==="company-page"},ae),children:[!Vs&&Ie===de.id&&!Ds?(0,e.jsx)(Pt,{person:de,onClose:Ys,careerPathTitle:Ke,mentorMessage:Cs,messageTemplateForMentors:ms,parentModuleName:Ze,context:he,messageTipsParentContainerSelector:me,messageTipsScrollableParentSelector:qe,messageTipsPosition:ht,customOrderedRules:De,customAlwaysShowRules:He,maxNumberOfMessageTips:ge,onMessageSentSuccess:()=>{Is(!0),Ys(),fn(-1),Ye()},sideEffectOnDeselectTemplate:(Ps="")=>{Ge(Ps)},sideEffectOnSelectMessageTemplate:(Ps="")=>{ot(Ps)},sideEffectOnSendMessageToMentor:({selectedTemplate:Ps})=>Se({selectedTemplate:Ps,isIntroductionRequested:Xs}),origin:ke,cardType:_t}):(0,e.jsxs)("div",{className:(0,h.A)(Gs.person,{[Gs.jobDetail]:js,[Gs.person__fontScaledUp]:nn}),children:[(0,e.jsxs)("div",{className:(0,h.A)(Gs.personCardSectionWrapper,{[Gs.personCardSectionWrapper__fontScaledUp]:nn}),children:[(0,e.jsx)(tn,{isV2:xs,onUserProfileClick:$s,person:de,isDynamicProfile:xn,onAskQuestionClick:un,sideEffectOnClickAskQuestion:at,announceMessageSentText:_s,isMobile:Vs,messageAddress:Ds,messageSentAt:dn,messageResponded:vs,parentModuleName:Ze,chatCtaText:zs,context:he,disableSecondaryCTA:!ys,origin:ke,cardType:_t}),(0,e.jsx)(ct,{isV2:xs,person:de,isAboutRequested:Xs,careerPathTitle:Ke,messageTemplateForMentors:ms,parentModuleName:Ze,messageAddress:Ds,context:he,chatCtaText:zs,sideEffectOnSelectMessageTemplate:(Ps="")=>{ot(Ps)},disableSecondaryCTA:!ys,cardType:_t})]}),!rt&&Ze==="career-paths"?(0,e.jsx)(A.A,{onVoteSubModule:At,subModuleId:de.id,subModule:"connections",isLiked:de.likedByTheCurrentUser||!1,voteStatus:de.voteStatus,careerPathTitle:Ke,mlRank:de.mlRank}):null]}),Vs&&Ie===de.id?(0,e.jsx)(a.aF,{open:Ie===de.id,behaviour:"bottom-up",isFullScreen:!0,noPadding:!0,id:"ask-question-career-path-modal",disableBackdropClose:!0,onTouchMove:Ps=>{Ps.stopPropagation()},onClose:Ys,children:(0,e.jsx)(Pt,{person:de,onClose:Ys,careerPathTitle:Ke,mentorMessage:Cs,messageTemplateForMentors:ms,parentModuleName:Ze,context:he,messageTipsParentContainerSelector:me,messageTipsScrollableParentSelector:qe,messageTipsPosition:ht,customOrderedRules:De,customAlwaysShowRules:He,maxNumberOfMessageTips:ge,onMessageSentSuccess:()=>{Ys(),fn(-1),Ye()},sideEffectOnSendMessageToMentor:({selectedTemplate:Ps})=>Se({selectedTemplate:Ps,isIntroductionRequested:Xs}),origin:ke,cardType:_t})}):null]})}Tn.propTypes={};const pn=(0,s.memo)(Tn)},739047:(q,N,t)=>{t.d(N,{A:()=>u});var e=t(715621),s=t(537953),l=t(145926),a=t(163081),h=t(457082);const A=(d=[])=>d.map(I=>(0,e.jsx)(h.Variant,{name:I.name,children:I.component},I.name)),o=({experimentName:d,variants:I})=>(0,e.jsx)(h.Experiment,{name:d,children:A(I)});var g=t(283129),x=t(870052);const p=({experimentName:d,variantName:I,analyticsAttr:E,props:M})=>{const S=find(M.currentUser.hubs,{hub:M.hubInfo.id})||{};return{HubId:M.hubInfo.id||"",ClusterId:M.clusterInfo.id||"",UserId:M.currentUser.id||"",UserType:S.userType||"",PageURL:M.PageURL||get(M,"match.path")||"Unable to get url",experiment:d,variant:I,...E}},c=d=>d.charAt(0).toUpperCase()+d.slice(1),v=({experiment:d,analyticsAttr:I,callBackFunc:E=()=>{},setUserABExperiment:M,...S})=>{let P=h.emitter.addPlayListener(d,(H,L)=>{console.log(`Displaying experiment ${H} variant ${L}`),M&&M({[H]:{variant:L}});const O={};(0,g.A)(I,(K,T)=>{O[c(T)]=K}),x.A.trackEvent({pgAnalytics:H,pgAnalyticsExperiment:H,pgAnalyticsVariant:L,...O},S),E(),P&&P.remove&&typeof P.remove=="function"&&P.remove()})},n=({experimentName:d,variantName:I,analyticsAttr:E,callBackFunc:M=()=>{},subscription:S={},...P})=>{console.log(`Win experiment ${d} variant ${I}`);const H={};(0,g.A)(E,(L,O)=>{H[c(O)]=L}),x.A.trackEvent({pgAnalytics:`${d}-win`,pgAnalyticsExperiment:d,pgAnalyticsVariant:I,...H},P),M(),S.remove&&typeof S.remove=="function"&&S.remove()},i=({experiment:d,analyticsAttr:I,callBackFunc:E=()=>{},...M})=>{let S=h.emitter.addWinListener(d,(P,H)=>{n({experimentName:P,variantName:H,analyticsAttr:I,callBackFunc:E,subscription:S,...M})})};var f=t(226898);class y extends s.PureComponent{constructor(I){super(I);const{experimentName:E,attachWinListener:M=!0,variantList:S=[]}=I;S&&S.length&&h.emitter.defineVariants(E,S),v({experiment:E,...I}),M&&i({experiment:E,...I})}render(){const{experimentName:I,variants:E}=this.props;return(0,e.jsx)(o,{experimentName:I,variants:E})}}const m=d=>({currentUser:d.appReducer.currentUser,hubInfo:d.appReducer.hubInfo,clusterInfo:d.appReducer.clusterInfo}),b={setUserABExperiment:f.esp},u=(0,l.y)((0,a.connect)(m,b)(y))},768193:(q,N,t)=>{t.d(N,{A:()=>A});var e=t(715621),s=t(537953),l=t(205369);const{Option:a}=l.A;class h extends s.Component{render(){return(0,e.jsx)(l.A,{...this.props,children:this.props.options.map((o,g)=>(0,e.jsx)(a,{value:o.value,children:o.label},g))})}}const A=h},770506:(q,N,t)=>{t.d(N,{A:()=>T});var e=t(715621),s=t(537953),l=t(163081),a=t(883991),h=t(283129),A=t(797026),C=t(560687),o=t(881640),g=t(196008),x=t(369313),p=t(248883),c=t(768835),v=t(140919),n=t(133798),i=t(785783),f=t(399344),y=t(294097),m=t(69914),b=t(425170),u=t(701197),d=t(389601),I=t(226729),E=t(545423);const M={},S={bufferLen:4096,bitRate:192,numChannels:2,mimeType:"audio/mpeg"},P={HIDE:!1,SHOW:!0,UPLOADING:"UPLOADING",COMPLETED:"COMPLETED"},H=D=>{const W=[];for(let B=0;B<2;++B)W[B]=D.inputBuffer.getChannelData(B);return W},L=({audioSrc:D,onChangeAudioSrc:W,onAudioRecorded:B,prefixFileName:k="",uploadFileToHub:_=!1,minBlobDuration:F=15,maxBlobDuration:U=300,minDurationText:V="15 seconds",maxDurationText:Z="5 minutes",isStandardProfileV2:$=!1,dispatchPrompt:G,hidePrompt:ie,onAudioRecordInProgress:le})=>{const{clusterInfo:ce,userId:oe,hubId:Q}=(0,l.useSelector)(({appReducer:kt,userProfileReducer:Wt})=>{var pt,Yt,qt;return{clusterInfo:kt.clusterInfo,userId:((pt=Wt.user)==null?void 0:pt.id)||((Yt=kt.currentUser)==null?void 0:Yt.id),hubId:(qt=kt.hubInfo)==null?void 0:qt.id}}
23,l.shallowEqual),[ne,Oe]=(0,s.useState)(D),[je,xe]=(0,s.useState)(!1),[dt,We]=(0,s.useState)({}),[Pe,Le]=(0,s.useState)(!1),[Me,ct]=(0,s.useState)(P.HIDE),[we,be]=(0,s.useState)(!1),[ye,tt]=(0,s.useState)(!1),Te=(0,s.useRef)(),Je=(0,s.useRef)(),Ue=(0,s.useRef)(),_e=(0,s.useRef)();(0,s.useEffect)(()=>(_e.current=new Worker(d.A),_e.current.onmessage=kt=>{const{data:Wt}=kt;if(Wt.command==="finished"){const{blob:pt}=Wt,Yt=URL.createObjectURL(pt);We({blob:pt,blobURL:Yt}),B==null||B(!0),Le(!1),ct(P.SHOW)}},()=>{ls(!0),_e.current.terminate()}),[]),(0,s.useEffect)(()=>{(0,a.A)(D,ne)||Oe(D)},[D]),(0,s.useEffect)(()=>{le&&le(je)},[je]);const bt=()=>(0,b.mei)("Unsupported Browser","error","Please switch to the latest version of Chrome, Firefox or Safari browser to use this feature."),wt=async()=>{var kt;const Wt=window.AudioContext||window.webkitAudioContext;Te.current=new Wt;const pt=Te.current;pt.createJavaScriptNode?Je.current=pt.createJavaScriptNode(S.bufferLen,S.numChannels,S.numChannels):pt.createScriptProcessor?Je.current=pt.createScriptProcessor(S.bufferLen,S.numChannels,S.numChannels):(console.error("WebAudio API has no support on this browser."),bt());const Yt=Je.current;Yt.connect(pt.destination),(kt=navigator==null?void 0:navigator.mediaDevices)!=null&&kt.getUserMedia?navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(qt=>{Ue.current=qt,pt.createMediaStreamSource(qt).connect(Yt);let Kt=1;(0,u.nr)()&&(Kt=1e3),setTimeout(()=>{xe(!0),_e.current.postMessage({command:"start",process:"separate",sampleRate:pt.sampleRate,numChannels:S.numChannels,bitRate:S.bitRate}),Yt.onaudioprocess=function(Ot){_e.current.postMessage({command:"record",buffers:H(Ot)})}},Kt)}).catch(qt=>console.error("Error while fetching MediaStream:",qt)):(console.error("MediaDevices API has no support on this browser."),bt())},ls=(kt=!1)=>{var Wt,pt,Yt;Le(!0),xe(!1);try{(Wt=Te.current)==null||Wt.close().catch(()=>{}),(pt=Je.current)==null||pt.disconnect(),_e.current.postMessage({command:kt?"cancel":"finish"});const qt=(Yt=Ue.current)==null?void 0:Yt.getTracks();(0,h.A)(qt,Bt=>Bt==null?void 0:Bt.stop())}catch(qt){}},us=()=>{W==null||W(null),We({}),ct(P.HIDE)},Xt=(0,g.Sj)(()=>{const kt=new o.default({id:`uploader-${(0,m.A)()}`,allowMultipleUploads:!1,autoProceed:!0,debug:!0,restrictions:{maxFileSize:10485760,maxNumberOfFiles:1,minNumberOfFiles:1,allowedFileTypes:[S.mimeType]}}).use(i.A,{id:`validation-plugin-${(0,m.A)()}`,maxBlobDuration:U,minBlobDuration:F,maxDurationText:Z,minDurationText:V}).use(x.A,{id:`AwsS3-video-${(0,m.A)()}`,async getUploadParameters(Wt){try{let pt={};_?pt={hub:Q,region:(0,f.XR)(Q,!0),container:(0,f.S0)(Q,!0,!1)}:pt={cluster:ce.id,region:(0,f.a2)(ce,!0),container:(0,f.lc)(ce,!0,!1)},Object.assign(pt,{location:"gcs",filename:Wt.name,contentType:Wt.type,isPublic:!1,type:"audio",fileSize:Wt.size});const{data:Yt}=await y.E.post("/admin/file-upload",pt);return Yt}catch(pt){console.error("Error while getting upload parameters:",pt)}}});return kt.on("error",Wt=>{(0,b.mei)("Error","error",Wt.message),us()}),kt.on("upload-error",(Wt,pt)=>{(0,b.mei)("Error","error","An error has occurred while uploading your recording over the network"),kt.removeFile(Wt.id),ct(P.SHOW)}),kt.on("upload-success",(Wt,pt)=>{if(pt&&pt.status===200&&pt.uploadURL){const Yt=(0,f.dh)({clusterId:ce.id,type:"audio"}),qt=pt.uploadURL.split("/"),Bt=`${Yt}${qt[qt.length-1]}`;W==null||W(Bt),ct(P.COMPLETED)}}),kt},[]),ut=async()=>{if(D&&!(0,A.A)(D,"https://"))try{const kt=(0,C.A)((0,C.A)(D,"?")[0],"/"),Wt={fileName:kt[kt.length-1]};await y.E.post("/files/remove-audio-file",Wt)}catch(kt){console.error(kt)}Xt.cancelAll(),tt(!1),be(!1),us()},$t=()=>{const{blob:kt}=dt;ct(P.UPLOADING),Xt.addFile({name:`${k}_${oe}.audio.mp3`,type:kt.type?kt.type:"audio/mpeg",data:kt})},As=dt.blobURL||ne;return(0,e.jsxs)("div",{className:"pg-audio-recorder",children:[As?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"header header-text",children:["Recorded Audio",(0,e.jsx)(p.$n,{type:"tertiary",color:"red",className:"pg-trashcan-icon",onClick:()=>{$?G({type:"showPrompt",title:"Are you Sure?",body:"Once you delete the recording, you can't get it back.",cancelBtnText:"Cancel",onCancel:()=>{},okBtnText:"Delete",onOk:()=>{tt(!0),ut(),ie()}}):be(!0)},disabled:Me===P.UPLOADING,children:(0,e.jsx)(p.C0,{src:"https://cdn.peoplegrove.com/admin/1655979339858trash.svg"})})]}),(0,e.jsx)(v.A,{src:As,autoplay:dt==null?void 0:dt.blobURL}),(0,e.jsx)(n.A,{className:"career-journey-modal",title:"Are you sure?",metaTitle:"Once you delete the recording, you can't get it back.",showModal:we,confirmAction:()=>{tt(!0),ut()},cancelAction:()=>be(!1),confirmText:"Delete",confirmProps:{type:"danger"},confirmButtonLoading:ye})]}):(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:"recorder-container",children:[Pe?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:"header-text",children:"Processing..."}),(0,e.jsx)(p.K0,{className:"record-btn",size:"large",type:"primary",loading:!0})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:"header-text",children:je?"Recording...":"Record Audio Response"}),(0,e.jsx)(p.K0,{className:"record-btn",size:"large",type:je?"danger":"primary",onClick:je?()=>ls():wt,children:je?(0,e.jsx)("div",{className:"pg-stop-btn"}):(0,e.jsx)("img",{src:"https://cdn.peoplegrove.com/admin/1643379583814pg-microphone.svg",alt:""})})]}),(0,e.jsx)(O,{recording:je,maxBlobDuration:U,recorderStop:ls})]})}),(0,e.jsx)(K,{showUploadButton:Me,uploadAudio:$t})]})}
23,O=s.memo(({recording:D,maxBlobDuration:W,recorderStop:B})=>{const[k,_]=(0,s.useState)(null),[F,U]=(0,s.useReducer)(ie=>ie+1,0);(0,s.useEffect)(()=>{if(D){const ie=Date.now();_(ie);const le=setInterval(()=>{Math.floor((Date.now()-ie)/1e3)>=W?B():U()},200);return()=>clearInterval(le)}},[D]);let V=0;k&&(V=Math.floor((Date.now()-k)/1e3));const Z=W-V,$=Math.floor(Z)%60,G=`${Math.floor(Z/60)} : ${$<10?"0":""}${$}`;return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("span",{className:"header-text",children:G})})}),K=s.memo(({showUploadButton:D,uploadAudio:W})=>{if(D===P.HIDE)return null;let B="blue",k=!1,_=(0,e.jsx)(I.A,{className:"pg-upload-icon"}),F="Upload";return D===P.COMPLETED?(B="green",_=(0,e.jsx)(E.A,{}),F="Uploaded"):D===P.UPLOADING&&(k=!0,F="Uploading"),(0,e.jsx)("div",{className:"upload-btn-container",children:(0,e.jsx)(p.$n,{className:(0,c.A)("upload-btn",D!==P.SHOW&&"disable-btn"),onClick:W,type:"tertiary",color:B,loading:k,icon:_,children:F})})}),T=s.memo(L)},774632:(q,N,t)=>{t.d(N,{A:()=>D});var e=t(715621),s=t(537953),l=t(248883),a=t(768835),h=t(860129),A=t(96345),C=t(829080),o=t(539467),g=t(569143),x=t(527510),p=t(727363),c=t(828333),v=t(736608),n=t(354666);const i=[{id:"createAlertForm",fields:[{id:"searchAlertName",label:"Alert",placeholder:"Add alert name",rules:{required:{value:!0,message:"Please enter alert name!"}},field:"text"},{id:"searchAlertFrequency",label:"How often would you like to receive alerts?",placeholder:"Choose frequency",rules:{required:{value:!0,message:"Please select frequency of getting alert"}},options:[{value:"daily",label:"Daily"},{value:"weekly",label:"Weekly"},{value:"monthly",label:"Monthly"}],field:"select"}]}],f={infoAlert:"infoAlert__PI2bx",infoHeader:"infoHeader__MR46M",createAlertForm:"createAlertForm__ulfDu",createAlertDescription:"createAlertDescription__iQPym"};var y=t(537953);const b=y.forwardRef(({rules:W,filterData:B},k)=>{const[_,F]=(0,n._g)(),[U,V]=(0,n.hY)();return(0,s.useEffect)(()=>{if(W.length>0){const Z=W.map($=>(0,v.A)(B,G=>G.slug===$.slug).header);F(`Selected ${Z.join(", ")}`)}},[]),W.length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("p",{className:f.createAlertDescription,children:["Get notified when a match becomes available.",(0,e.jsx)("br",{})," Note: Alerts remain active for 6 months."]}),(0,e.jsx)(l.lV,{id:"create-alert-form",className:f.createAlertForm,ref:k,fieldSets:i,data:{searchAlertName:{value:_},searchAlertFrequency:{value:U}},onChange:Z=>{const{searchAlertName:$,searchAlertFrequency:G}=Z;F($.value),V(G.value)}})]}):(0,e.jsx)(c.A,{message:"Add a search term and/or select filters in order to create an alert.",type:"info",className:f.infoAlert})});var u=t(637260),d=t(939291),I=t(938055),E=t(97921);const M=()=>{const W=(0,n.aG)(),[,B]=(0,n._g)(),[,k]=(0,n.hY)(),[,_]=(0,n.gR)();return()=>{B(""),k(null),_(!1),W("create-new-alert")}};function S({open:W,onClose:B,onOk:k}){return(0,e.jsx)(l.aF,{id:"delete-alert-modal",open:W,title:"Delete Alert",okText:"Yes, Confirm",cancelText:"Cancel",onClose:B,onOk:k,disableBackdropClose:!0,okType:"danger",children:"Are you sure you want to delete the alert ?"})}const P=S,H={infoAlert:"infoAlert__TuZbI",infoHeader:"infoHeader__CwSD9",actions:"actions__BNR1s",center:"center__n46rO",alertList:"alertList__y0aRs",title:"title__Mv3Sx",minWidth:"minWidth__lEF8V"},O=({data:W,applySavedFilters:B})=>{const[k,_]=(0,s.useState)(),[F,U]=(0,s.useState)(),[V,Z]=(0,s.use
23State)(""),[$,G]=(0,s.useState)(),[ie,le]=(0,s.useState)(!1),ce=(0,g.L5)(),oe=(0,g.gN)(),Q=(0,o.z)(),ne=M();if(!(W!=null&&W.length))return(0,e.jsx)(c.A,{message:"You haven\u2019t set up any alerts yet. Once you create an alert, you can access and edit them here.",type:"info",className:H.infoAlert});const Oe=()=>{_(void 0),Z(""),G(void 0)},je=()=>{ce.mutate({frequency:$,name:V,id:k},{onSettled:()=>{Oe()}})},xe=({name:Le,frequency:Me})=>{const ct=W.find(({id:we})=>we===F);Q({pgAnalytics:"Network Tab: Interact",pgAnalyticsCTA:"Created Alerts: Confirm Delete",pgAnalyticsCategory:"Network"}),F&&oe.mutate({searchAlertId:F,name:Le,frequency:Me,filters:ct}),le(!1)},dt=({key:Le,name:Me,frequency:ct})=>{if(Le===k)return(0,e.jsxs)("div",{className:(0,a.A)(H.actions,H.center),children:[(0,e.jsx)(l.$n,{onClick:je,type:"link",children:"Save"}),"|",(0,e.jsx)(l.$n,{type:"link",onClick:Oe,children:"Cancel"})]});const we=()=>{const be=W.find(({id:tt})=>tt===Le);if(!be)return;Q({pgAnalytics:"Network Tab: Interact",pgAnalyticsCTA:"Created Alerts: Apply",pgAnalyticsCategory:"Network"});const ye=(0,d.A)(be,"filters.rules",[]);B(ye)};return(0,e.jsxs)("div",{className:(0,a.A)(H.actions,H.minWidth),children:[(0,e.jsx)(l.$n,{type:"link",onClick:()=>{we(),ne()},children:"Apply"}),(0,e.jsxs)("div",{children:[(0,e.jsx)(l.K0,{icon:"pg-pencil-o",onClick:()=>{_(Le),Z(Me),G(ct),Q({pgAnalytics:"Network Tab: Interact",pgAnalyticsCTA:"Created Alerts: Edit",pgAnalyticsCategory:"Network"})},"aria-label":"Edit"}),(0,e.jsx)(l.K0,{icon:"pg-trash-o",onClick:()=>{le(!0),Q({pgAnalytics:"Network Tab: Interact",pgAnalyticsCTA:"Created Alerts: Delete",pgAnalyticsCategory:"Network"}),U(Le)},"aria-label":"Delete"}),(0,e.jsx)(P,{open:ie,onClose:()=>le(!1),onOk:()=>xe({name:Me,frequency:ct})})]})]})},We=W.sort((Le,Me)=>Me.id-Le.id).map(({id:Le,name:Me,frequency:ct})=>{const we=k===Le;return{key:Le,name:we?(0,e.jsx)(l.pd,{value:V,onChange:be=>Z(be),size:"small",width:150,className:H.minWidth}):(0,e.jsx)("div",{className:H.title,children:Me}),frequency:we?(0,e.jsx)(l.l6,{placeholder:"Select a frequency",size:"small",value:$,onChange:be=>{G(be)},options:[{value:"daily",label:"Daily"},{value:"weekly",label:"Weekly"},{value:"monthly",label:"Monthly"}]}):(0,e.jsx)("div",{className:H.minWidth,children:(0,I.A)((0,E.A)(ct))}),action:dt({key:Le,name:Me,frequency:ct})}}),Pe=[{title:"Name",dataIndex:"name",key:"name",width:150},{title:"Frequency",dataIndex:"frequency",key:"frequency",width:150},{title:"Action",dataIndex:"action",key:"action"}];return(0,e.jsx)(u.A,{dataSource:We,columns:Pe,bordered:!0,loading:ce.isLoading||oe.isLoading,className:H.alertList})},K={ctaFooter_fontScaledUp:"ctaFooter_fontScaledUp__r6MU9"},D=({type:W,rules:B,applySavedFilters:k,filterData:_=[]})=>{const F=(0,C.MU)(),[U,V]=(0,n.y4)(),[Z]=(0,n._g)(),[$]=(0,n.hY)(),[G]=(0,n.gR)(),ie=(0,s.useRef)(null),le=(0,o.z)(),ce=(0,g.x2)(),{data:oe,isLoading:Q}=(0,g.vG)({options:{enabled:G},type:W}),ne=M(),Oe=(0,h.A)(_.map(xe=>xe!=null&&xe.subFilters?xe.subFilters:xe)),je=()=>{var xe;ie!=null&&ie.current&&((xe=ie==null?void 0:ie.current)!=null&&xe.validateForm())&&$&&(le({pgAnalytics:"Network Tab: Interact",pgAnalyticsCTA:"Search Alerts: Created",pgAnalyticsCategory:"Network"}),ce.mutate({frequency:$,name:Z,notifiedByEmail:!0,type:W,filters:{condition:W==="jobPostV2"?"AND":"UNION ALL",matchIndex:{},rules:B}},{onSettled:()=>{x.A.invalidateQueries([p.A.homePageBanner]),ne()}}))};return G?(0,e.jsx)(l.aF,{title:"Search Alerts",open:G,onClose:ne,footerProps:{className:(0,a.A)(F&&K.ctaFooter_fontScaledUp)},footer:U==="existing-alert"||!B.length?void 0:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l.$n,{type:"tertiary",onClick:()=>ne(),children:"Cancel"},"back"),(0,e.jsx)(l.$n,{onClick:()=>je(),loading:ce.isLoading,children:"Create Alert"},"submit")]}),children:(0,e.jsx)(l.tU,{tabs:[{label:"Create New Alerts",key:"create-new-alert",content:(0,e.jsx)(b,{rules:B,ref:ie,filterData:Oe})},{label:"Existing Alerts",key:"existing-alert",content:Q?(0,e.jsx)(A.A,{}):(0,e.jsx)(O,{data:oe,applySavedFilters:k})}],onChange:xe=>{xe&&V(xe)}})}):null}},783848:(q,N,t)=>{t.d(N,{A:()=>x});var e=t(715621),s=t(537953),l=t(102736),a=t.n(l),h=t(805569),A=t(766652);const C={},{Meta:o}=A.A,g=p=>{const{title:c,description:v,buttonText:n,url:i,internalRedirect:f,cardStyle:y,buttonStyle:m}=p,b="side-bar-card-block ",u="ant-btn ant-btn-primary ant-btn-lg full-width ";return(0,e.jsxs)(A.A,{className:y?b.concat(y).trim():b.trim(),children:[(0,e.jsx)("p",{className:"side-bar-card-block__title",children:c}),v?(0,e.jsx)(o,{className:"side-bar-card-block__description",description:v}):null,f?(0,e.jsx)(h.N_,{className:m?u.concat(m).trim():u.trim(),to:i,children:n}):(0,e.jsx)("a",{className:m?u.concat(m).trim():u.trim(),href:i,target:"__blank",children:n})]})};g.propTypes={title:a().string.isRequired,description:a().string,buttonText:a().string.isRequired,url:a().oneOfType([a().string,a().object]).isRequired,internalRedirect:a().bool.isRequired,cardStyle:a().string,buttonStyle:a().string};const x=g},785783:(q,N,t)=>{t.d(N,{A:()=>a});var e=t(476098),s=t(881640);class l extends s.UIPlugin{constructor(A,C){super(A,C),this.id=C.id||"BlobValidationPlugin",this.type="validator",this.maxDurationText=C.maxDurationText,this.minDurationText=C.minDurationText,this.maxBlobDuration=C.maxBlobDuration,this.minBlobDuration=C.minBlobDuration,this.validateDuration=this.validateDuration.bind(this)}validateDuration(A){const C=this.uppy.getFile(A),o=new Blob([C.data],{type:C.type});return(0,e.A)(o).then(g=>{const x=Math.floor(g);if(x<this.minBlobDuration||x>
23this.maxBlobDuration)throw this.uppy.removeFile(A),new Error(`The recording length should be at least ${this.minDurationText} and no longer than ${this.maxDurationText}.`)})}install(){this.uppy.addPreProcessor(this.validateDuration)}}const a=l},801777:(q,N,t)=>{t.d(N,{A:()=>p});var e=t(715621),s=t(537953),l=t(609917),a=t(163081),h=t(425170),A=t(662180),C=t(365739);const o=c=>(0,h.c5u)("security","disableGoogleRecaptcha",c,!1),g={},p=(0,s.forwardRef)((c,v)=>{const{onSuccess:n,onError:i,onExpired:f}=c,y=(0,s.useRef)(null),m=(0,a.useSelector)(({appReducer:E})=>E.clusterInfo),b=o(m);if((0,C.I)(b),(0,s.useImperativeHandle)(v,()=>({start:()=>b?n==null?void 0:n("true"):setTimeout(()=>{var E;return(E=y.current)==null?void 0:E.execute()},(0,A.tN)()?100:0),startAsync:()=>{var E;return b?(n==null||n("true"),Promise.resolve("true")):(E=y.current)==null?void 0:E.executeAsync()},reset:()=>{var E;return(E=y.current)==null?void 0:E.reset()}})),b)return null;const u=()=>{(0,h.mei)("Failed to load ReCaptcha!","error",(0,e.jsx)("p",{children:"If the issue persists, kindly try again later or contact the admin!"}),{},{showForAllPaths:!0}),i==null||i()},d=(0,A.tN)()?"?openInAppBrowser=true":"",I=(0,A.tN)()?(0,e.jsx)("span",{className:"sr-only",children:"opens in a modal browser"}):null;return(0,e.jsxs)("div",{className:"invisible-recaptcha",children:[(0,e.jsx)(l.A,{ref:y,sitekey:"6LccQbUcAAAAAOk36nyejPdjZseSPzuVra2oPPNU",onChange:n,size:"invisible",onErrored:u,onExpired:f}),(0,e.jsxs)("p",{children:["This site is protected by reCAPTCHA and the Google \xA0",(0,e.jsxs)("a",{href:`https://policies.google.com/privacy${d}`,children:["Privacy Policy",I]})," ","and \xA0",(0,e.jsxs)("a",{href:`https://policies.google.com/terms${d}`,children:["Terms of Service",I]})," ","apply."]})]})})},804273:(q,N,t)=>{t.d(N,{A:()=>g});var e=t(715621),s=t(537953),l=t(736608),a=t(425170),h=t(637260),A=t(560109);const{Column:C}=h.A;class o extends s.PureComponent{render(){const{value:p,userCount:c,limit:v,page:n,tableHeight:i,handlePageChange:f,filterCriteria:y,hubInfo:m}=this.props,b=(u,d)=>{const I=(0,a.Gr)(u,d),E=[];return y.forEach(M=>{const S=(0,l.A)(u,(L,O)=>O.toLowerCase()===M.value),P=(0,l.A)(I,(L,O)=>O.toLowerCase()===M.value),H=S||P;E.push(`${M.name}: ${H}`)}),E.join(`
24`)};return(0,e.jsx)(h.A,{dataSource:p,rowKey:"id",rowClassName:(u,d)=>`user-row-${d}`,scroll:{y:!1},pagination:{simple:!0,total:Math.floor(c/v)*v,pageSize:v,current:n},onChange:({current:u})=>f(u),children:(0,e.jsx)(C,{title:"",width:"100%",render:(u,d)=>(0,e.jsx)(A.A,{title:b(d,m),getPopupContainer:I=>I&&I.parentNode?I.parentNode:document.body,children:(0,e.jsxs)("div",{style:{width:"100%"},children:[d.firstName," ",d.lastName," "]})})},"id")})}}o.defaultProps={value:[],filterCriteria:[],userCount:0,limit:0,page:1,tableHeight:200,filterCriteria:[],handlePageChange:()=>console.log("handlePageChange"),hubInfo:{}};const g=o},804904:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(715621),s=t(537953),l=t(230803),a=t(768835),h=t(376996);const A={},o=({translucent:g=!1,absolute:x=!1})=>(0,e.jsx)("div",{className:(0,a.A)({"pg-full-loading":!0,"translucent-cover":g,"position-absolute":x}),children:(0,e.jsx)(l.A,{type:"flex",align:"middle",justify:"center",className:"pg-full-loading--full-height",children:(0,e.jsx)(h.A,{className:"loader-animation"})})})},811348:()=>{var q={}},814247:(q,N,t)=>{t.d(N,{A:()=>g});var e=t(715621),s=t(537953),l=t(988705),a=t(537953);const h=(0,s.lazy)(()=>t.e(2308).then(t.bind(t,32308))),{useRef:A,useEffect:C}=a,g=({className:x,loop:p=!1,path:c,...v})=>{const n=A(),i=A();return C(()=>{i.current=setInterval(()=>{if(n.current){const f=(0,l.findDOMNode)(n.current);f&&(f.setAttribute("role","presentation"),f.removeAttribute("tabindex"),f.removeAttribute("aria-label")),clearInterval(i.current)}},500)},[]),(0,e.jsx)("div",{className:x,children:(0,e.jsx)(s.Suspense,{fallback:(0,e.jsx)(e.Fragment,{}),children:(0,e.jsx)(h,{ref:n,eventListeners:[],role:"presentation",tabindex:"-1",options:{loop:p,autoplay:!0,path:c,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}},...v},p?"loop":"noloop")})})}},831852:(q,N,t)=>{t.d(N,{A:()=>_});var e=t(715621),s=t(537953),l=t(248883),a=t(768835),h=t(829080),A=t(279435),C=t(425170),o=t(665790),g=t(251981),x=t(406747),p=t(348861);const c={},n=({options:F,title:U,onChange:V,value:Z,srOnlyLegend:$})=>
24{const[G]=(0,s.useState)((0,p.A)("forum_filter_checkbox_group_")),ie=`${G}-legend`,le=U||$,ce=!!($&&!U);return(0,e.jsxs)("fieldset",{className:(0,a.A)("container__checkbox-forum"),children:[le?(0,e.jsx)("legend",{id:ie,className:(0,a.A)({"sr-only":ce,"checkbox-group-legend":!ce}),children:le}):null,(0,e.jsx)(l.Sc.Group,{onChange:V,name:U,value:Z,options:F,id:G,"aria-labelledby":le?ie:void 0})]})},i={},y=({options:F,onChange:U,title:V,placeholder:Z,value:$,disabled:G})=>(0,e.jsx)("div",{className:"container__select-forum",children:(0,e.jsx)(l.l6,{label:V,placeholder:Z,options:F,onChange:U,value:$,disabled:G})});var m=t(744899),b=t(551471),u=t.n(b);const d={};var I=Object.defineProperty,E=(F,U,V)=>U in F?I(F,U,{enumerable:!0,configurable:!0,writable:!0,value:V}):F[U]=V,M=(F,U,V)=>E(F,typeof U!="symbol"?U+"":U,V);class S extends s.Component{constructor(){super(...arguments),M(this,"handleStartDateChange",U=>{const{id:V,onChange:Z,value:$}=this.props,G={...$};u()(U).isValid()?G.startDate=u()(U).format("yyyy-MM-DD"):(0,m.A)(G,"startDate")&&delete G.startDate,Z&&Z(V,G)}),M(this,"handleEndDateChange",U=>{const{id:V,onChange:Z,value:$}=this.props,G={...$};u()(U).isValid()?G.endDate=u()(U).format("yyyy-MM-DD"):(0,m.A)(G,"endDate")&&delete G.endDate,Z&&Z(V,G)})}render(){const{title:U,value:V={}}=this.props,{startDate:Z,endDate:$}=V;return(0,e.jsxs)("fieldset",{className:"container__daterange-forum",children:[U?(0,e.jsx)("legend",{className:"daterange-legend",children:U}):null,(0,e.jsxs)("div",{className:"daterange-group",children:[(0,e.jsx)(l.pd,{className:"start-date",type:"date",useMoment:!1,value:Z||"",max:$,onChange:this.handleStartDateChange,label:"Start Date"}),(0,e.jsx)(l.pd,{className:"end-date",type:"date",useMoment:!1,value:$||"",min:Z,onChange:this.handleEndDateChange,label:"End Date"})]})]})}}const P=S;var H=t(960998),L=t(431419);const K=({clearFilters:F,filters:U,applyFilter:V,isMobile:Z,isTablet:$,toggleFilters:G,isFilterApplied:ie,onChange:le,loading:ce,className:oe,hideTitle:Q=!1,isFunctionalGroup:ne=!1,hideActions:Oe=!1,hideDescriptionText:je,isClearAllDisabled:xe=!1,disableAutoApply:dt=!1})=>{const We=document.body.clientHeight,Pe=731,Me=We-(Z||$?225:280),ct=Math.min(Pe,Me),we=()=>{F(),G()},be=()=>{V(),G()},ye=Te=>{switch(Te.type){case"search":return(0,e.jsx)(x.A,{id:Te.id,value:Te.value,onChange:Je=>le(Te.id,Je),applyFilter:V,title:Te.title,placeholder:Te.placeholderText,isMobile:Z,hideTitle:Q,descriptionText:Te.descriptionText,hideDescriptionText:je,disableAutoApply:dt},Te.id);case"checkbox":return(0,e.jsx)(n,{options:Te.options,onChange:Je=>le(Te.id,Je),value:Te.value,title:Te.title,srOnlyLegend:Te.srOnlyLegend},Te.id);case"select":return(0,e.jsx)(y,{options:Te.options,value:Te.value,title:Te.title,placeholder:Te.placeholderText,onChange:Je=>le(Te.id,Je),disabled:Te.disabled},Te.id);case"dateRange":return(0,e.jsx)(P,{id:Te.id,value:Te.value,title:Te.title,onChange:le},Te.id);case"component":return(0,e.jsx)("div",{className:"container__component-filter-forum",children:Te.renderComponent&&Te.renderComponent(le)},Te.id);case"location":return(0,e.jsxs)("div",{className:"container__search-forum",children:[!Q&&Te.title?(0,e.jsx)("p",{children:Te.title}):null,(0,e.jsx)(H.A,{...Te,onChange:Je=>le(Te.id,Je)})]},Te.id);case"multiselect":return(0,e.jsxs)("fieldset",{className:"container__search-forum",children:[(0,e.jsxs)("legend",{children:[" ",Te.label&&(0,e.jsx)("p",{children:Te.label})]}),(0,e.jsx)(L.A,{optionFilterProp:"children",getPopupContainer:Je=>Je.parentNode,...Te,onChange:Je=>le(Te.id,Je)})]},Te.id);default:return null}},tt=()=>(0,e.jsxs)("div",{className:`container__forum-filter ${$&&!ne?"tablet":""} ${Z?"mobile":""} ${oe||""}`,children:[$&&!ne&&!Oe?(0,e.jsx)(o.A,{type:"default",className:"forum-filter-close",onClick:G,children:(0,e.jsx)("span",{className:"campuskudos-delete-1"})}):null,(0,e.jsxs)("div",{className:"forum-filter",children:[!(!Z&&ne)&&!Oe&&(0,e.jsxs)("div",{className:"header__forum-filter",children:[(0,e.jsx)("h2",{className:"header__forum-filter-heading",children:"Filters"}),!Z&&ie&&!ne&&!xe?(0,e.jsx)(o.A,{className:"button__clear-filter",onClick:we,type:"link",children:"Clear Filters"}):null,Z?(0,e.jsx)(o.A,{type:"default",className:"forum-filter-close forum-filter-close-mobile",onClick:G,children:(0,e.jsx)("span",{className:"campuskudos-delete-1"})}):null]}),(0,e.jsx)("div",{className:"main__forum-filter",style:{maxHeight:`${ct}px`},children:ce?(0,e.jsx)(g.A,{}):U.map(Te=>ye({...Te}))}),Z&&!Oe?(0,e.jsxs)("div",{className:"footer__forum-filter",children:[(0,e.jsx)(o.A,{className:"button__clear-filter",onClick:we,type:"default",children:"Clear"}),(0,e.jsx)(o.A,{className:"button__clear-filter",onClick:be,type:"primary",children:"Update"})]}):null]})]});return(0,e.jsx)(e.Fragment,{children:tt()})},T={};var D=Object.defineProperty,W=(F,U,V)=>U in F?D(F,U,{enumerable:!0,configurable:!0,writable:!0,value:V}
24):F[U]=V,B=(F,U,V)=>W(F,typeof U!="symbol"?U+"":U,V);class k extends s.Component{constructor(){super(...arguments),B(this,"state",{showFilters:!1}),B(this,"elementToLock",null),B(this,"toggleShowFilters",()=>{const{closeFilter:U=null}=this.props;this.setState({showFilters:!this.state.showFilters},()=>{const{showFilters:V}=this.state;V?(this.elementToLock=document.querySelector(".main__forum-filter"),this.elementToLock&&(0,A.mh)(this.elementToLock)):(0,A.qY)()}),U&&U()})}componentWillUnmount(){this.elementToLock=null,(0,A.qY)()}render(){const{windowWidth:U,clearFilters:V,applyFilter:Z,onChange:$,filters:G,isFilterApplied:ie,loading:le=!1,currentUser:ce,isFunctionalGroup:oe,hideTitle:Q=!1,hideFilterButton:ne=!1,hideActions:Oe=!1,showFilters:je=!1,hideDescriptionText:xe=!1,isBusinessDirectoryV2Filters:dt,isClearAllDisabled:We=!1,hubInfo:Pe,disableAutoApply:Le=!1}=this.props,{showFilters:Me}=this.state,ct=U<C.MJO.screen_sm,we=U<C.MJO.screen_lg&&U>=C.MJO.screen_sm,be=(0,C.qwl)(Pe),ye=(0,h.F1)();return(0,e.jsxs)(e.Fragment,{children:[!oe&&!ne&&(0,e.jsx)("div",{className:(0,a.A)("container__filters-mobile",{"nav-bar-v2":be,"nav-bar-v1":!be,"logged-out":!ce.id}),children:(0,e.jsx)(l.$n,{type:"tertiary",size:"small",onClick:this.toggleShowFilters,className:(0,a.A)({"filter-button__font-scaled":ye}),children:"Filters"})}),!ct&&!we||oe||Me||je?(0,e.jsx)(K,{clearFilters:V,filters:G,className:this.props.className||"",applyFilter:Z,onChange:$,isMobile:ct,isTablet:we,toggleFilters:this.toggleShowFilters,isBusinessDirectoryV2Filters:dt,isFilterApplied:ie,loading:le,isFunctionalGroup:oe,hideTitle:Q,hideActions:Oe,hideDescriptionText:xe,isClearAllDisabled:We,disableAutoApply:Le}):null]})}}const _=k},843064:(q,N,t)=>{t.d(N,{A:()=>p});var e=t(715621),s=t(537953),l=t(145926),a=t(839392),h=t(839050),A=t(425170),C=t(870052),o=t(962428);const g={},p=()=>{const[c,v]=(0,s.useState)(!1),n=(0,l.zy)(),i=(0,h.iZ)(),f=(0,h.lx)(),y=(0,h.er)(),m=()=>{const E=n.pathname.match(/^\/inbox\/([^/]+)(?:\/([^/]+))?/);if(!E)return!1;const[,M,S]=E;return M&&S&&S!=="communication"},b=()=>{if(!f||!i)return!1;const{isGroupAdmin:E,isHubAdmin:M,isClusterAdmin:S,isSuperAdmin:P}=(0,A.MDA)(i,f.id);v(P||S||M||E)},u=()=>{C.A.trackEvent({pgAnalytics:"click support button",pgAnalyticsCurrentUrl:window.location.href,pgAnalyticsDomainUrl:window.location.hostname},{currentUser:i,hubInfo:f,clusterInfo:y}),(0,o.X)({cluster:y})},d=(0,a.A)(u,4e3,{leading:!0,trailing:!0}),I=E=>{E.key==="Enter"&&d()};return(0,s.useEffect)(()=>{b()},[f,i]),!c||m()?null:(0,e.jsx)("div",{className:"support-widget-container",role:"complementary","aria-label":"support",children:(0,e.jsx)("div",{id:"support-button",role:"button",tabIndex:0,onClick:d,onKeyPress:I,className:"support-widget",layout:"row","layout-align":"center center","aria-label":"Support",children:(0,e.jsx)("em",{className:"campuskudos-question"})})})}},846476:(q,N,t)=>{t.d(N,{A:()=>x});var e=t(715621),s=t(537953),l=t(768835),a=t(243130),h=t.n(a);const A={LOADING:"Loading transcript...",NOT_AVAILABLE:"No transcript available!"},C={};var o=t(248883);const x=({transcriptContent:p,onTranscriptClick:c,isLoading:v=!1,customTranscriptId:n})=>{const[i,f]=(0,s.useState)(!1),y=s.useRef(null),[m,b]=(0,s.useState)({}),[u]=(0,s.useState)(h()());(0,s.useEffect)(()=>{b({height:i?"100%":"40px"}),i&&setTimeout(()=>{y.current&&y.current.focus()},0)},[i]);let d=A.LOADING;return v?d=A.LOADING:p===null?d=A.NOT_AVAILABLE:typeof p=="function"?d=p(i):p&&(d=p),(0,e.jsxs)("div",{className:"pg-audio-transcript",style:m,children:[(0,e.jsx)("div",{className:(0,l.A)("pg-audio-transcript-content",{hidden:!i}),id:n!=null?n:`${u}_transcript_content`,tabIndex:i?0:-1,role:"region",ref:y,"aria-hidden":!i,children:d}),(0,e.jsxs)("button",{onClick:()=>{c&&c(i),f(I=>!I)},className:"pg-audio-transcript-toggle","aria-expanded":i,"aria-controls":n!=null?n:`${u}_transcript_content`,children:[(0,e.jsx)(o.C0,{icon:"pg-cheveron-down",className:(0,l.A)("downArrowIcon",{rotate:i}),"aria-hidden":!0}),i?"Close":"Read"," Transcript"]})]})}},850042:(q,N,t)=>{t.d(N,{A:()=>C});var e=t(715621),s=t(537953),l=t(248883);const a={};var h=t(425170);class A extends s.PureComponent{render(){const{isVisible:g=!1,fieldName:x,onClick:p=()=>{},isLoading:c=!1,ariaDescribedBy:v="",renderEyeIconLabel:n=!1,className:i}=this.props,f="Show on profile",y="Hide from profile",m=(0,h.p2b)({fieldName:x,isHidden:!g,toShowInSearchResult:!0}),b={onClick:p,"aria-describedby":v||m,loading:c,className:i};return(0,e.jsx)(l.m_,{content:m,children:n?(0,e.jsx)(l.$n,{size:"small",type:"ghost",icon:g?"pg-eye-o":"pg-eye-slash-o",noPadding:!0,...b,children:g?y:f}):(0,e.jsx)(l.K0,{icon:g?"pg-eye-o":"pg-eye-slash-o","aria-label":g?"Hide":"Show",size:"xsmall",...b})})}}const C=A},855375:(q,N,t)=>{t.d(N,{P:()=>e});const e={Alumni:{"Career path insights":`Hi,
25
26My name is [add first or full name] and I\u2019m currently a [add current title] at [add organization/employer]. I\u2019m interested in learning more about [add career path, e.g., product management, communications, engineering, etc.] and would appreciate your insights.
27
28Thanks for your response!
29
30[Your name]`,"Topic-specific guidance":`Hi,
31
32My name is [add first or full name] and I\u2019m currently a [add current title] at [add\xA0organization/employer], with about [add years of experience if applicable].
33
34 I\u2019m very interested in learning about [add topic/category] and would love to learn about any sights or general guidance you might have.
35
36Would you be open to scheduling some time to chat? If yes, please send me some dates and times that work for you. Otherwise, it would be great to hear back.
37
38Thanks for your response!
39
40[Your name]`,"Tips for securing a job":`Hi,
41
42My name is [add first or full name] and I\u2019m a recent graduate of [add school name] with a [add degree type] in [add major].
43
44I\u2019m currently seeking full-time job opportunities in [add career path or field, e.g.,product management, communications, engineering, etc.]. I\u2019d greatly appreciate any insights or advice you might have for applying for jobs in this field.
45
46Would you be open to scheduling some time to chat? If yes, please send me some dates and times that work for you. Otherwise, it would be great to hear back.
47
48Thanks for your support!
49
50[Your name]`},Student:{"Career guidance":`Hi,
51
52My name is [add first or full name] and I\u2019m currently a [add class year, e.g., sophomore]\xA0studying [add major] at [add school name]. I\u2019m currently exploring career options in [add career path, e.g., product management, communications, engineering, etc.] and looking for guidance.
53
54I\u2019d love to ask you some questions and hear about your work experience. Would you be open to scheduling some time to chat? If yes, please send me some dates and times that work for you. Otherwise, would be great to hear back.
55
56Thanks for your consideration!
57
58[Your name]`,"Industry expertise":`Hi,
59
60My name is [add first or full name] and I\u2019m currently a [add class year, e.g., sophomore]\xA0studying [add major] at [add school name]. I\u2019m currently looking to connect with people who have experience in [add career path or field, e.g., product management, communications, engineering, etc.], specifically with [add specific topic or category, if applicable]. I\u2019m looking for [add what you are looking to re
60ceive, e.g., guidance, advice, specific question].
61
62If you\u2019re open to scheduling some time to chat, please send me some dates and times that work for you. I can also send you specific questions here if that works better.
63
64Thanks for your consideration!
65
66[Your name]`,"Internship advice":`Hi,
67
68My name is [add first or full name] and I\u2019m currently a [add class year, e.g.,sophomore] studying [add major] at [add school name].
69
70I\u2019m in the process of applying for internships and would love to hear about any tips or guidance on getting an internship at [add company name or company type/category, e.g., large tech companies].
71
72Thanks for your consideration!
73
74[Your name]`},Generic:{"Moving to a new location":`Hi! I am [insert a short intro here].
75
76I'm planning to move to [location name] around [date or general time]. I'm interested in learning about the area and what kinds of things I should keep in mind during the transition.
77
78Would you be open to connecting when you have time?
79
80Thank you so much!`,"Industry insights":`Hi! I am [insert a short intro here].
81
82I'm interested in learning more about [insert specific industry] and would greatly appreciate your insights. Would you be willing to share your experience and insights?
83
84Thanks in advance for your response.`,"Networking advice":`Hi! I am [insert a short intro here].
85
86I'm reaching out to learn more about effective strategies for networking with professionals in my areas of interest such as [insert an interest or interests here]. Any insights or advice you could share would be greatly appreciated.
87
88Thanks for your time!`}}},858894:(q,N,t)=>{t.d(N,{A:()=>i});var e=t(715621),s=t(537953),l=t(163081),a=t(972185),h=t(849084),A=t(595526),C=t(407572);const o={};var g=t(48248),x=Object.defineProperty,p=(f,y,m)=>y in f?x(f,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):f[y]=m,c=(f,y,m)=>p(f,typeof y!="symbol"?y+"":y,m);class v extends s.Component{constructor(){super(...arguments),c(this,"state",{collapsed:!1}),c(this,"componentDidMount",()=>{const y=document.getElementById(`response-block-${this.props.record.key}`);y&&y.offsetHeight>45&&this.setState({collapsed:!0})}),c(this,"showMore",()=>{this.setState({collapsed:!1})}),c(this,"getSubQuestionOptionLabel",(y,m)=>{if(!y.options||!Array.isArray(y.options))return m?String(m):"\u2014";const b=y.options.find(u=>u.value===m);return b?b.name:m?String(m):"\u2014"}),c(this,"renderGuestResponse",(y,m)=>{var b,u;const d=((b=y.response)==null?void 0:b.value)||y.response,I=(d==null?void 0:d.guestValues)||[],E=((u=y.options)==null?void 0:u.subQuestions)||[];return I.length===0?(0,e.jsx)("div",{className:"table-response-text",children:"A: No guests added"}):(0,e.jsx)(s.Fragment,{children:(0,a.A)(I,(M,S)=>(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"response-block",children:(0,e.jsxs)("div",{className:"table-response-text",children:["(Guest ",S+1,")"]})}),(0,a.A)(E,P=>{var H;const L=(H=M.responses)==null?void 0:H[P.id];let O=(0,g.J)(L,P.selectedType,m);return P.selectedType==="multiple"&&P.options?O=this.getSubQuestionOptionLabel(P,L):P.selectedType==="checkboxes"&&P.options&&Array.isArray(L)&&(O=L.map(K=>this.getSubQuestionOptionLabel(P,K)).join(", ")),(0,e.jsxs)("div",{className:"response-block",children:["Q: ",P.title,(0,e.jsxs)("div",{className:"table-response-text",children:["A: ",O||"\u2014"]})]},`${M.id}-${P.id}`)})]},M.id||S))})}),c(this,"renderAddressResponse",y=>{var m,b;const u=((m=y.response)==null?void 0:m.value)||y.response,d=((b=y.options)==null?void 0:b.addressSubType)||"streetAddress";if(d==="streetAddress"){const I=[{key:"streetName",label:"Street Name"},{key:"city",label:"City"},{key:"state",label:"State"},{key:"zipCode",label:"Zip Code"}];return(0,e.jsx)(s.Fragment,{children:(0,a.A)(I,E=>{const M=u==null?void 0:u[E.key];return(0,e.jsxs)("div",{className:"response-block",children:["Q: ",E.label,(0,e.jsxs)("div",{className:"table-response-text",children:["A: ",M||"\u2014"]})]},E.key)})})}else if(d==="cityAddress"){const I=(u==null?void 0:u.name)||(typeof u=="string"?u:"\u2014");return(0,e.jsxs)("div",{className:"response-block",children:["Q: City",(0,e.jsxs)("div",{className:"table-response-text",children:["A: ",I]})]})}return null})}render(){const{record:y,clusterInfo:m}=this.props,{collapsed:b}=this.state,u=E=>(0,h.A)(E)?(0,A.A)(E.value)?E.value.join():E.value:E,d=E=>E.selectedType==="guest",I=E=>E.selectedType==="address";return(0,e.jsxs)("div",{id:`response-block-${y.key}`,className:b?"table-response-block collapsed":"table-response-block",children:[y.response.map((E,M)=>{var S;return d(E)?(0,e.jsx)(s.Fragment,{children:this.renderGuestResponse(E,m)},M):I(E)?(0,e.jsx)(s.Fragment,{children:this.renderAddressResponse(E)},M):(0,e.jsxs)("div",{className:"response-block",children:["Q:"," ",(0,C.T)({html:((S=E.formQuestion)==null?void 0:S.title)||E.formQuestion}),(0,e.jsxs)("div",{className:"table-response-text",children:["A: ",u(E.response)]})]},M)}),b&&(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"fade-out"}),(0,e.jsx)("div",{className:"show-more",onClick:this.showMore,children:"Show More"})]})]})}}const n=({appReducer:{clusterInfo:f}})=>({clusterInfo:f}),i=(0,l.connect)(n)(v)},866388:(q,N,t)=>{t.d(N,{r:()=>v});var e=t(715621),s=t(768835),l=t(939291),a=t(312279),h=t(425170),A=t(662180);const C={recaptchaDisclosure:"recaptchaDisclosure__P4Ung",recaptchaDisclosureSm:"recaptchaDisclosureSm__
88Ce3z3",recaptchaDisclosureMd:"recaptchaDisclosureMd__Z3YHv",marginTopNone:"marginTopNone__ecZoy",marginTopSm:"marginTopSm__CIjdm",marginTopMd:"marginTopMd__KrLbY",marginTopLg:"marginTopLg__AyVKH",marginBottomNone:"marginBottomNone___kbq0",marginBottomSm:"marginBottomSm__MXy9w",marginBottomMd:"marginBottomMd__J32lZ",marginBottomLg:"marginBottomLg__n7EB1"},o="https://policies.google.com/privacy",g="https://policies.google.com/terms",x={none:C.marginTopNone,sm:C.marginTopSm,md:C.marginTopMd,lg:C.marginTopLg},p={none:C.marginBottomNone,sm:C.marginBottomSm,md:C.marginBottomMd,lg:C.marginBottomLg};function c({className:n,size:i="sm",marginTop:f,marginBottom:y,style:m,...b}){const u=(0,a.d)(M=>(0,l.A)(M,"appReducer.clusterInfo",{}));if((0,h.i0p)(u))return null;const d=(0,A.tN)()?"?openInAppBrowser=true":"",I=(0,A.tN)()?(0,e.jsx)("span",{className:"sr-only",children:"opens in a modal browser"}):(0,e.jsx)("span",{className:"sr-only",children:"opens in new tab"}),E=(0,s.A)(C.recaptchaDisclosure,i==="md"?C.recaptchaDisclosureMd:C.recaptchaDisclosureSm,f!==void 0&&x[f],y!==void 0&&p[y],n);return(0,e.jsxs)("p",{...b,className:E,style:m,children:["This site is protected by reCAPTCHA and the Google \xA0",(0,e.jsxs)("a",{href:`${o}${d}`,rel:"noopener noreferrer",target:(0,A.tN)()?void 0:"_blank",children:["Privacy Policy",I]})," ","and \xA0",(0,e.jsxs)("a",{href:`${g}${d}`,rel:"noopener noreferrer",target:(0,A.tN)()?void 0:"_blank",children:["Terms of Service",I]})," ","apply."]})}const v=c},869248:(q,N,t)=>{t.d(N,{A:()=>k});var e=t(715621),s=t(537953),l=t(140875),a=t(90570),h=t(246239),A=t(248883),C=t(44260);const g=({message:_,dismissFeedback:F})=>(0,e.jsxs)("div",{className:"feedback-container",children:[(0,e.jsx)("span",{className:"icon",children:(0,e.jsx)(A.C0,{src:"https://cdn.peoplegrove.com/admin/1742458368220help-tube.svg",alt:"Feedback Help Icon"})}),(0,e.jsxs)("div",{className:"feedback-message-container",children:[(0,e.jsx)("span",{className:"message",children:_==null?void 0:_.messageText}),(_==null?void 0:_.showDismiss)&&(0,e.jsx)(C.A,{type:"link",onClick:()=>F(_==null?void 0:_.messageKey),nopadding:!0,children:"Dismiss"})]})]});var x=t(537953);const p=({messages:_,trackData:F})=>{const U=x.useRef({});x.useEffect(()=>{_.forEach(V=>{U.current[V.messageKey]||(F==null||F({pgAnalyticsAnnotation_Tip:V.messageText}),U.current[V.messageKey]=!0)})},[_])};var c=t(736608),v=t(479208),n=t(809350),i=t(257111),f=t(215462),y=t(430805),m=t(755542),b=t(972185),u=t(785665);const d=_=>{let F=(0,f.A)(_);F=F.replace(/<\/p>/g,` 
89 `).replace(/&nbsp;/g," ");const U=F.replace(/(<[^>]*>)|[^\w\s.,]/g," ");F=F.replace(/(<[^>]*>)|[^\w\s]/g," ");const V=(F.match(/\S+/g)||[]).length;return{wordString:U,wordsCount:V}},I=({messages:_,updatedMessages:F,manualDismissed:U})=>{const V=(0,y.A)(F,"messageKey"),Z=[n.S.COMPLETED_RESPONSE],$=(0,m.A)(Object.keys(V),Z)[0];return $&&!U.includes($)?[V[$]]:[..._,...F].filter(ie=>!U.includes(ie.messageKey))},E=_=>{let F=!1,U=!1;return(0,b.A)(_.split(`
90`),V=>{const Z=V.match(/\S+/g)||[];(0,u.A)(Z,(G,ie)=>G+(ie||"").length,Z.length-1)>500&&(F=!0)}),(0,b.A)(_.split("."),V=>{(V.match(/\S+/g)||[]).length>30&&(U=!0)}),{showNoParagraphBreak:F,showNoSentenceBreak:U}},M=i.sS,{HAS_LESS_WORDS:S,ADD_PARAGRAPH_BREAK:P,ADD_SENTENCE_BREAK:H,COMPLETED_RESPONSE:L}=n.S,O=({wordString:_,wordsCount:F,lettersCount:U,manualDismissed:V})=>{const[Z,$]=(0,s.useState)([]),{showNoParagraphBreak:G,showNoSentenceBreak:ie}=(0,s.useMemo)(()=>E(_),[_]),le=(0,s.useCallback)(({messageKey:ce,showFeedback:oe,canBeManuallyDismissed:Q=!1,spreadWithExisting:ne=!0})=>{const Oe={messageKey:ce},je=(0,c.A)(Z,Oe);oe?!je&&(!Q||!V.includes(ce))&&$(xe=>[(0,c.A)(M,Oe),...ne?xe:[]]):je&&$(xe=>(0,v.A)(xe,Oe))},[Z,V]);return(0,s.useEffect)(()=>{const ce=(0,c.A)(Z,{messageKey:S}),oe=V.includes(S);U>=50&&F<10&&!ce&&!oe?$(Q=>[...Q,(0,c.A)(M,{messageKey:S})]):(U<50||F>=10)&&$((0,v.A)(Z,{messageKey:S}))},[U]),(0,s.useEffect)(()=>{le({messageKey:P,showFeedback:G})},[G]),(0,s.useEffect)(()=>{le({messageKey:H,showFeedback:ie})},[ie]),(0,s.useEffect)(()=>{le({messageKey:L,showFeedback:U>=800,canBeManuallyDismissed:!0})},[U]),Z}
90,K=i.sS,{TIMER_30_SECS:T,TIMER_120_SECS:D}=n.S,W=({value:_,count:F})=>{const[U,V]=(0,s.useState)([]),[Z,$]=(0,s.useState)([]),{wordsCount:G,wordString:ie}=(0,s.useMemo)(()=>d(_),[_]),le=(0,s.useCallback)(oe=>{$(Q=>[...Q,oe])},[]);(0,s.useEffect)(()=>{const oe=setTimeout(()=>{G<30&&V(Q=>{const ne=!!(0,c.A)(Q,{messageKey:T}),Oe=!!(0,c.A)(Q,{messageKey:D});return ne||Oe?Q:[...Q,(0,c.A)(K,{messageKey:T})]})},3e4);return()=>{oe&&clearTimeout(oe)}},[]),(0,s.useEffect)(()=>{(0,c.A)(i.sS,{messageKey:T})&&G>=30&&V(Q=>(0,v.A)(Q,{messageKey:T}))},[G]);const ce=O({wordsCount:G,wordString:ie,lettersCount:F,manualDismissed:Z});return{messages:I({messages:U,updatedMessages:ce,manualDismissed:Z}),dismissFeedback:le}},k=({value:_,count:F,trackData:U})=>{const{messages:V,dismissFeedback:Z}=W({value:_,count:F}),$=(0,s.useMemo)(()=>(0,l.A)(V,"messageKey").slice(0,2)||[],[V]);return p({messages:$,trackData:U}),(0,a.A)(V)||!V.length?null:(0,e.jsx)("div",{className:"feedback-message",children:$.map(G=>(0,e.jsx)(h.Cl,{message:(0,e.jsx)(g,{message:G,dismissFeedback:Z}),showIcon:!1},G.messageKey))})}},870052:(q,N,t)=>{t.d(N,{A:()=>K});var e=t(843871),s=t.n(e),l=t(283129),a=t(86430),h=t(989949),A=t(736608),C=t(939291),o=t(90570),g=t(304428),x=t(945889),p=t(651904),c=t.n(p),v=t(662180),n=t(425170),i=t(569713),f=t(278975);const y="signupOriginPathwayU",m=["Signup - Step Interaction","Signup - Completed","Signup - Step Redirection","Signup - Step View","Browse Hubs Signup","Browse Hubs Page","Sign Up: Signup Successful","Sign Up: Signup step completed","Sign Up: Account Creation Successful","Sign Up: Add Flow","Light Signup - Completed","auth_signup"],b=T=>{try{intercom||(intercom=window.intercom);let D=localStorage.getItem("intercomLastUpdated");if(!T&&D&&D>new Date().getTime()-12e4)return;setTimeout(()=>{intercom("update"),localStorage.setItem("intercomLastUpdated",new Date().getTime())},5e3)}catch(D){}},u=(T,D,W,B,k)=>{try{D=O.addDefaultEvents(D,B),mixpanel.track(T,D),k&&s().track(T);let _=["Bookmarked User"];return(D==null?void 0:D.utm_source)==="SMS"&&(0,n.b7U)(f.A,["utm_source"]),_.indexOf(T)>-1?b(!0):b()}catch(_){(D==null?void 0:D.utm_source)==="SMS"&&(0,n.b7U)(f.A,["utm_source"]),console.log("mixpanel error 2",_.message)}try{W&&intercom("trackEvent",T,D)}catch(_){console.log("intercom error",_.message)}},d=(T,D,W={})=>{const{userId:B,hubIdentifier:k,clusterInfo:_,userHub:F,user:U}=T;if(B==="NA"||U.isAdmin)return;const V=O.addDefaultEvents(W,D,!0);s().identify(B,{...V,uid_hash:(0,C.A)(U,"chameleonVerificationHash"),name:U.firstName,clusterId:_.id,clusterDomain:_.domain,hubIdentifier:k,userType:(0,C.A)(F,"userType",null),userHubId:(0,C.A)(F,"id",null),userIdentifier:U.identifier})},I=T=>{let D=T.userId;try{mixpanel.identify(D)}catch(W){console.log("mixpanel error 3",W.message)}try{T.intercomId&&D&&D!=="NA"&&intercom("boot",{app_id:T.intercomId,user_id:D+"-"+T.hubId})}catch(W){console.log("intercom error",W.message)}T.chameleonEnabled&&d(T,T.props,T.eventData)},E=T=>{const D={standard:"V2 | PG Essentials | New | Client",opt_in:"Classic | Client",sales:"Classic | Sales & CS",internal:"Classic | Internal",non_fpu_v2:"V2 | PG Essentials | Upgraded | Client",internal_v2:"V2 | PG Essentials | New | Internal",sales_v2:"V2 | PG Essentials | New | Sales & CS",trial_v2:"V2 PG | Client Trials",plus_v2:"V2 | PG + | New | Client",plus_fpu_v2:"V2 | PG + | Upgraded | Client",plus_internal_v2:"V2 | PG + | New | Internal",plus_sales_v2:"V2 | PG + | New | Sales & CS",non_profit_v2:"V2 | PG Non-Profit | New | Client",non_profit_upgrade_v2:"V2 | PG Non-Profit | Upgraded | Client",to_be_deleted:"To Be Deleted",v2_automation:"V2 | Automation | Internal | Do Not Delete",v2_automation_1:"V2 | Automation | Internal 1 | Do Not Delete",classic_automation:"Classic | Automation | Do Not Delete",student_success:"Student Success Suite | Client",alumni_community:"Alumni Community Suite | Client",all_in_one:"All in one Suite | Client",enrollment:"Enrollment | Client",student_success_internal:"Student Success Suite | Internal",alumni_community_internal:"Alumni Community Suite | Internal",all_in_one_internal:"All in one Suite | Internal",enrollment_internal:"Enrollment | Internal",student_success_sales:"Student Success Suite | Sales & CS",alumni_community_sales:"Alumni Community Suite | Sales & CS",all_in_one_sales:"All in one Suite | Sales & CS",enrollment_sales:"Enrollment | Sales & CS",pathwayu_standalone_client:"PathwayU Standalone| Client",pathwayu_standalone_internal:"PathwayU Standalone| Internal"},W=(0,C.A)(T,"defaultSetting"),B=(0,C.A)(D,W);return B||"none"},M=T=>(0,o.A)(T)?null:(0,C.A)(T,"standardData.archetype.selectedOptions.0.optionTitle",null),S=T=>{let D,W;const B=(0,C.A)(T,"standardPlatformType","enterprise"),k={standard:"V2 | PG Essentials | New","transitioned-standard":"V2 | PG Essentials | Upgraded","standard-plus":"V2 | PG + | New","standard-plus-fpu":"V2 | PG + | Upgraded"};switch(B){case"enterprise":D="Classic",W="-";break;case"standard":case"transitioned-standard":case"transitioned-standard-fpu":case"standard-plus":case"standard-plus-fpu":D="V2",W=k[B];break;default:break}return{hubPlatformType:D,v2ClientType:W}},P=()=>{const T=(0,C.A)(window,"location.search","").split("?");if(T.length<1)return null;let D=null;return T.forEach(W=>{const[B,k]=W.split("=");B==="utm_source"&&(D=k)}),D},H=()=>{const T="production";let D=null;if(T==="production")try{D=c().sessionURL}catch(W){console.log("LogRocket URL not found")}return D},L=T=>{if(T==null)return T;const D=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,W="peoplegrove.com";if(Array.isArray(T))return T.map(B=>L(B));if(typeof T=="object"&&T.constructor===Object){const B={};for(const[k,_]of Object.entries(T))typeof _=="string"&&D.test(_)?_.toLowerCase().endsWith(`@${W}`)&&(B[k]=_):B[k]=L(_);return B}if(!(typeof T=="string"&&D.test(T)&&!T.toLowerCase().endsWith(`@${W}`)))return T},O={initialize:T=>{try{(typeof T=="undefined"||T==null)&&(T=0),mixpanel.init("dfdcc461caa5b279eab322a99fcc0762"),mixpanel.register({client:"web"})}catch(D){console.log("mixpanel error 1",D.message);const W=10;T++,T<W&&setTimeout(function(){O.initialize(T)},1e3)}},trackEvent:(T,D)=>{if((0,C.A)(D,"currentUser.isAdmin",!1))return;const W=(0,A.A)(D.currentUser.hubs,{hub:D.hubInfo.id})||{};T.identity={HubId:D.hubInfo.id||"",ClusterId:D.clusterInfo.id||"",UserId:D.currentUser.id||D.loggedOutUserId||T.userId||"",UserType:T.userType||W.userType||"",AccessedFromPWA:(0,n.qn)(),PG_Is_LightUser:(0,n.KOD)(W)||"",PageURL:D.PageURL||(0,C.A)(D,"match.path")||"Unable to get url",PG_Is_LoggedIn:!!(0,C.A)(D,"currentUser.id"),LogRocketUrl:H()};let k=O.analyticsRulesInit(T)[T.pgAnalytics].functionCall,_=(0,C.A)(D.hubInfo,"settings.coreSettings.pgTesting.enableIntercom"),F=(0,C.A)(D.hubInfo,"settings.coreSettings.pgTesting.intercomAppId"),{ClusterId:U,UserId:V}=k.eventData;const Z=P();if(k!=null&&k.eventData&&Z&&(k.eventData.utm_source=Z),k!=null&&k.eventData&&m.includes(T.pgAnalytics)&&sessionStorage.getItem(y)&&(k.eventData.Origin="PathwayU",T.pgAnalytics==="Sign Up: Signup Successful"&&sessionStorage.removeItem(y)),k&&k.eventData&&U||k&&k.eventData&&k.eventData.SignedOut){const $=L(k.eventData),G=(0,C.A)(D,"clusterInfo.settings.coreSettings.analytics.enableChameleon");I({userId:V||D.loggedOutUserId||"NA",hubId:(0,C.A)(D,"hubInfo.id"),hubIdentifier:(0,C.A)(D,"hubInfo.identifier"),intercomId:_?F:null,cluster:D.clusterInfo.id||"",clusterInfo:D.clusterInfo||{},user:D.currentUser,userHub:(0,A.A)(D.currentUser.hubs,{hub:(0,C.A)(D,"hubInfo.id")}),props:D,chameleonEnabled:G,eventData:$}),u(T.pgAnalytics,$,_,D,G)}},analyticsRulesInit:T=>{let D=T.identity;const W=k=>{let _=(0,g.A)(k);return(0,l.A)(_,F=>{let U=F.split("pgAnalytics")[1];U&&["pgAnalyticsEventbind"].indexOf(F)===-1&&(D[U]=k[F])}),D};return(k=>{if(!k.pgAnalytics){console.log("Error , Please bind events ");return}k.pgAnalyticsEventbind="functionCall";let _={};return _[k.pgAnalytics]={},_[k.pgAnalytics][k.pgAnalyticsEventbind]={eventData:W(k)},_})(T)},pgPopulateUserEducationData:({eventData:T,userSchools:D})=>((0,l.A)(D,W=>{W.graduationYear===null||W.graduationYear<0||W.graduationYear<=new Date().getFullYear()?T.PG_C
90ompleted_Majors=T.PG_Completed_Majors.concat(W.majors):(T.PG_In_Progress_Majors=T.PG_In_Progress_Majors.concat(W.majors),T.PG_Current_Degree_Type.push(W.degreeType),T.PG_Current_Standard_Degree_Type.push(W.standardDegreeType)),T.PG_All_Majors=T.PG_All_Majors.concat(W.majors),T.PG_Degree_Types.push(W.degreeType),T.PG_Standard_Degree_Types.push(W.standardDegreeType),T.PG_All_Majors=(0,a.A)(T.PG_All_Majors),T.PG_Completed_Majors=(0,a.A)(T.PG_Completed_Majors),T.PG_In_Progress_Majors=(0,a.A)(T.PG_In_Progress_Majors),T.PG_Degree_Types=(0,a.A)(T.PG_Degree_Types),T.PG_Standard_Degree_Types=(0,a.A)(T.PG_Standard_Degree_Types),T.PG_Current_Degree_Type=(0,a.A)(T.PG_Current_Degree_Type),T.PG_Current_Standard_Degree_Type=(0,a.A)(T.PG_Current_Standard_Degree_Type),W.standardDegreeType==="Bachelors"&&W.graduationYear&&W.graduationYear>0&&(T.PG_Bachelor_Years_Remaining=(0,x.A)([W.graduationYear-new Date().getFullYear(),0,T.PG_Bachelor_Years_Remaining]),T.PG_Bachelor_Years_After=(0,x.A)([0,new Date().getFullYear()-W.graduationYear,T.PG_Bachelor_Years_After])),W.standardDegreeType==="Graduate"&&W.graduationYear&&W.graduationYear>0&&(T.PG_Graduate_Years_Remaining=(0,x.A)([W.graduationYear-new Date().getFullYear(),T.PG_Graduate_Years_Remaining,0]),T.PG_Graduate_Years_After=(0,x.A)([0,new Date().getFullYear()-W.graduationYear,T.PG_Graduate_Years_After]))}),T),getLimit:function({currentUser:T,hubInfo:D,messageType:W}){const B=W==="longTermMentorship"?"mentorshipLimit":"connectLimit",k=(0,A.A)(T[B],{hub:D.id});return k?k.limit:0},pgPopulateUserMentorshipSettings:({eventData:T,hubSettings:D,currentUserHub:W,hubInfo:B,currentUser:k})=>{const _=["longTermMentorship","flashMentorship","adviserMeeting","message"];return(0,l.A)(_,F=>{(0,C.A)(D,`userTypes.${T.UserType}.messageTypes.${F}.enabled`,!1)&&T.PG_Can_Send_Connection_Types.push(F)}),T.PG_Can_Send_Any_Connection=T.PG_Can_Send_Connection_Types.length>0,T.PG_Available_For_Longterm=O.getLimit({currentUser:k,hubSettings:D,hubInfo:B,messageType:"longTermMentorship"})!==0&&T.PG_Can_Send_Connection_Types.indexOf("longTermMentorship")!==-1,T.PG_Available_For_Flash=O.getLimit({currentUser:k,hubSettings:D,hubInfo:B,messageType:"flashMentorship"})!==0&&T.PG_Can_Send_Connection_Types.indexOf("flashMentorship")!==-1,T},isCompletedSignUp:({currentUserHub:T})=>!!(T&&T.signupStage===null&&T.approved&&T.importStatus==="joined"&&T.userType),pgPopulateIsAdminStatus:({eventData:T,currentUser:D,currentUserHub:W,userGroups:B})=>{const k=O.isCompletedSignUp({currentUserHub:W}),_=(0,A.A)(B,{approved:!0,isAdmin:!0,importStatus:"joined",groupType:"group"}),F=(0,A.A)(B,{approved:!0,isAdmin:!0,importStatus:"joined",groupType:"mentorshipProgram"});return T.PG_Is_Hub_Admin=(0,C.A)(W,"isAdmin",!1)&&k,T.PG_Is_Cluster_Admin=(0,C.A)(D,"isClusterAdmin",!1),T.PG_Is_Group_Admin=(0,C.A)(_,"isAdmin",!1)&&k,T.PG_Is_Program_Admin=(0,C.A)(F,"isAdmin",!1)&&k,T.PG_Is_Admin=T.PG_Is_Hub_Admin||T.PG_Is_Cluster_Admin,T.PG_Is_Hub_Admin===null&&T.PG_Is_Cluster_Admin===null&&(T.PG_Is_Admin=null),T.PG_Is_SuperAdmin=(0,C.A)(D,"isAdmin",!1),T.PG_Hub_Admin_Added_On=k&&(0,C.A)(W,"adminAddedOn",null)?new Date(W.adminAddedOn).toDateString():null,T},pgPopulateUserData:function({eventData:T={},hubInfo:D={},clusterInfo:W={},currentUser:B={}}){T.UserType&&(T.PG_Standard_User_Type=(0,C.A)(D,`settings.userTypes.${T.UserType}.standardUserType`,null));const k=(0,i.K)({userIdentifier:B.identifier,hubInfo:D,openInModal:!1,showBack:!1});k&&(T.PG_Profile_URL=`${(0,o.A)(D)?(0,n.eIr)(W,!1):(0,n.hKy)(!0,D,!1)}${k}`);const[_={}]=(0,h.A)(B.hubs,F=>F.hub===D.id);return T.PG_Signup_Status=(0,n.NgI)(_),T.PG_Timezone=B.timezone,T.PG_Hubs_Joined=(0,h.A)(B.hubs,F=>(0,n.NgI)(F)==="completed").length,T.PG_Hub_Joined_Rank=_.joinedRank,T.PG_Hubs_Joined=B.hubs&&B.hubs.length&&B.hubs.filter(F=>(0,n.NgI)(F)==="completed").length,T.PG_Is_Calendar_Synced=(0,C.A)(B,"calanderSynced",!1),T.PG_User_Approved=(0,n.YoE)(_.approved),(0,n.xn7)(D)&&(T.PG_Is_Announcement_Present=B.isAnnouncementPresent),T},getTypeOfDevice:function(T=!1){return(0,v.tN)()?"Mobile app":T?"PWA":"Web"},addDefaultEvents:(T,D,W)=>{const B=D.currentUser.schools,k=D.hubInfo.settings,_=(0,n.Gr)(D.currentUser,D.hubInfo),{hubPlatformType:F="-",v2ClientType:U="-"}=S(D.hubInfo);let V;D.hubInfo&&(V=(0,C.A)(D.hubInfo,"isProduction",!1));const Z=W?{UserType:T.UserType}:T,$=O.getTypeOfDevice(T.AccessedFromPWA);
90let G={...Z,PG_Standard_User_Type:null,PG_Completed_Majors:[],PG_In_Progress_Majors:[],PG_All_Majors:[],PG_Degree_Types:[],PG_Standard_Degree_Types:[],PG_Current_Degree_Type:[],PG_Current_Standard_Degree_Type:[],PG_Bachelor_Years_Remaining:null,PG_Bachelor_Years_After:null,PG_Graduate_Years_Remaining:null,PG_Graduate_Years_After:null,PG_Is_Hub_Admin:null,PG_Admin_Logged_In_As:(0,C.A)(D,"isLoginAs",!1),PG_Is_Cluster_Admin:null,PG_Is_Group_Admin:null,PG_Is_Program_Admin:null,PG_Is_Admin:null,PG_Is_SuperAdmin:null,PG_Can_Send_Any_Connection:!1,PG_Can_Send_Connection_Types:[],PG_Available_For_Flash:!1,PG_Available_For_Longterm:!1,PG_Hub_Launch_Group:E((0,C.A)(D,"hubInfo")),PG_Cluster_Launch_Group:E((0,C.A)(D,"clusterInfo")),Archetype:(0,C.A)(T,"Archetype",null)||M((0,C.A)(D,"currentUser",{})),"Enablement Group":E((0,C.A)(D,"hubInfo")),PlatformType:F,V2ClientType:U,PG_Is_Live_Hub:V,PG_Device:$};return G=O.pgPopulateUserEducationData({eventData:G,userSchools:B}),G=O.pgPopulateUserMentorshipSettings({eventData:G,hubSettings:k,currentUser:D.currentUser,currentUserHub:_,hubInfo:D.hubInfo}),G=O.pgPopulateIsAdminStatus({eventData:G,currentUser:D.currentUser,currentUserHub:_,userGroups:D.currentUser.groups}),G=O.pgPopulateUserData({eventData:G,hubInfo:D.hubInfo,clusterInfo:D.clusterInfo,currentUser:D.currentUser}),G}},K=O},870070:(q,N,t)=>{t.d(N,{A:()=>a});var e=t(715621),s=t(973391);const a=({className:h,socialProof:A})=>A?(0,e.jsx)(s.A,{socialProof:A,showViewBtn:!0,otherTrackData:{},origin:"Avatar",iconOnly:!0,className:h},1):null},880277:(q,N,t)=>{t.d(N,{M:()=>a,c:()=>h});var e=t(686993),s=t(30249);const l=(0,e.eU)(!1);l.debugLabel="isQuestionEnhanced";const a=()=>(0,s.fp)(l),h=()=>(0,s.Xr)(l)},881839:(q,N,t)=>{t.d(N,{A:()=>po});var e=t(715621),s=t(537953),l=t(145926),a=t(248883),h=t(939291),A=t(814247),C=t(356029),o=t(839050),g=t(425170),x=t(343734),p=t(69914);const c=`**Session ended**
91
92Chat saved to history. Start a new chat any time`,v=["TICKET_CREATION_SUCCESS","MESSAGE_MARKED_HELPFUL","MESSAGE_MARKED_UNHELPFUL","THANKS_SESSION_FEEDBACK_CARD","START_NEW_CHAT_CONFIRMATION","SESSION_ENDED_TIMEOUT","CHAT_END_INDICATOR","COLLECT_FEEDBACK_CONFIRMATION","COLLECT_FEEDBACK"],n=["SESSION_ENDED_TIMEOUT","CHAT_END_INDICATOR","COLLECT_FEEDBACK_CONFIRMATION","COLLECT_FEEDBACK"],i=()=>({message:c,messageId:(0,p.A)(),messageType:"SESSION_ENDED_TIMEOUT",requiresFeedback:!1,createdAt:new Date,viewedAt:void 0}),f=r=>({message:"We'd love your feedback!",messageId:(0,p.A)(),messageType:"COLLECT_FEEDBACK_CONFIRMATION",requiresFeedback:!1,isHelpful:!1,createdAt:new Date,...r?{metadata:{postSessionTimeoutIntent:r}}:{}}),y=r=>({message:"Leave feedback",messageId:(0,p.A)(),messageType:"COLLECT_FEEDBACK",requiresFeedback:!1,isHelpful:!1,createdAt:new Date,...r?{metadata:{postSessionTimeoutIntent:r}}:{}}),m=(r,j,R)=>{const w=r.map(z=>z.messageId===j&&z.messageType==="SESSION_ENDED_TIMEOUT"?{...z,metadata:{...z.metadata,sessionEndedActionTaken:!0}}:z);return w.some(z=>z.messageType==="COLLECT_FEEDBACK")?w:[...w,y(R)]},b=(r,j)=>{const R=(j==null?void 0:j.prependSessionEndedTimeout)===!0,w=(j==null?void 0:j.afterMoveFailure)===!0;r(z=>{const Y=w?n:v,ee=z.filter(se=>!Y.includes(se.messageType));return(R||w)&&ee.push(i()),!R&&!w&&ee.push(f()),ee})};var u=t(312279),d=t(527510),I=t(422338),E=t(266793),M=t(283766),S=t(967489);const P=async r=>{const{data:j}=await(0,S.Mbt)(r);return j},H=r=>(0,M.useMutation)({mutationFn:P,...r}),L=async r=>{const{data:j}=await(0,S.ioN)(r);return j},O=r=>(0,M.useMutation)({mutationFn:j=>L(j),...r});var K=t(686993),T=t(30249);const D=(0,K.eU)(!1);D.debugLabel="hasWidgetBeenOpened";const W=()=>(0,T.fp)(D),B=(0,K.eU)({phase:"none",lastActivityTime:Date.now(),firstReminderTime:null,secondReminderTime:null,sessionEndTime:null});B.debugLabel="inactivityState";const k=()=>(0,T.fp)(B),_=(0,K.eU)({});_.debugLabel="inactivityTasks";const F=()=>useAtom(_),U=()=>(0,T.Xr)(_),V=(r,j)=>j[r]||null,Z=(r,j,R)=>{R(w=>({...w,[r]:j}))},$=(r,j)=>{j(R=>{const w={...R};return delete w[r],w})};var G=t(713796);const ie=(0,K.eU)("");ie.debugLabel="sessionAddress";const le=()=>(0,T.fp)(ie),ce=()=>(0,T.Xr)(ie),oe=(0,K.eU)([]);oe.debugLabel="supportChatMessages";const Q=()=>(0,T.fp)(oe),ne=()=>(0,T.Xr)(oe),Oe=5*60*1e3,je=[{content:"Ask a question",messageType:"INITIAL_USER_PROMPT",isBotMessage:!1},{content:"How can I help you today?",messageType:"INITIAL_BOT_PROMPT",isBotMessage:!0}
92],xe={FEEDBACK_NUDGE_STORAGE_KEY:"ai_support_feedback_nudge_shown",FEEDBACK_NUDGE_DURATION_MS:5e3,ASSETS:{CHATBOT_ICON:"https://cdn.peoplegrove.com/admin/1775814825321sage-support-plain.svg",WIDGET_ICON:"https://cdn.peoplegrove.com/admin/1752568823188pg-widget-icon.svg",RED_DOT_LOTTIE_JSON:"https://cdn.peoplegrove.com/admin/1751376481711pg-red-dot-ripple-2.json",START_NEW_CHAT_ICON:"https://cdn.peoplegrove.com/admin/1751455058194pg-new-message-o.svg",TICKET_ICON:"https://cdn.peoplegrove.com/admin/1752569479706pg-ticket-o.svg",MESSAGE_MARKED_HELPFUL_ICON:"https://cdn.peoplegrove.com/icons/face-smile-o.svg",MESSAGE_MARKED_UNHELPFUL_ICON:"https://cdn.peoplegrove.com/admin/1753159515330information-circle.svg",EXCLAMATION_TRIANGLE_ICON:"https://cdn.peoplegrove.com/admin/1698904846179exclamation-triangle.svg",DOCUMENT_TEXT_ICON:"https://cdn.peoplegrove.com/icons/document-text-o.svg",BROWSE_ALL_ARTICLES_ICON:"https://cdn.peoplegrove.com/admin/1673536538440Icon.svg",COLLECT_FEEDBACK_CONFIRMATION_ICON:"https://cdn.peoplegrove.com/admin/1758629534677pg-review-o.svg",FEEDBACK_STAR_ICON:"https://cdn.peoplegrove.com/icons/star-o.svg",FEEDBACK_COMMENT_ICON:"https://cdn.peoplegrove.com/admin/1689334824014pg-chat-bubble-bottom-center-text-o.svg",FILE_FORMATS:{csv:"https://cdn.peoplegrove.com/admin/1750856671504pg-csv-o.svg",doc:"https://cdn.peoplegrove.com/admin/1750856671504pg-doc-o.svg",docx:"https://cdn.peoplegrove.com/admin/1750856671504pg-docx-o.svg",generic:"https://cdn.peoplegrove.com/admin/1750856671504pg-file-o.svg",gif:"https://cdn.peoplegrove.com/admin/1750856671504pg-gif-o.svg",jpeg:"https://cdn.peoplegrove.com/admin/1750856671504pg-jpeg-o.svg",jpg:"https://cdn.peoplegrove.com/admin/1750856671504pg-jpg-o.svg",json:"https://cdn.peoplegrove.com/admin/1750856671504pg-json-o.svg",mov:"https://cdn.peoplegrove.com/admin/1750856671504pg-mov-o.svg",mp4:"https://cdn.peoplegrove.com/admin/1750856671504pg-mp4-o.svg",pdf:"https://cdn.peoplegrove.com/admin/1750919661315pg-pdf-o.svg",png:"https://cdn.peoplegrove.com/admin/1750856671504pg-png-o.svg",ppt:"https://cdn.peoplegrove.com/admin/1750856671504pg-ppt-o.svg",pptx:"https://cdn.peoplegrove.com/admin/1750856671504pg-pptx-o.svg",txt:"https://cdn.peoplegrove.com/admin/1750856671504pg-txt-o.svg",xls:"https://cdn.peoplegrove.com/admin/1750856671504pg-xls-o.svg",xlsx:"https://cdn.peoplegrove.com/admin/1750856671504pg-xlsx-o.svg",zip:"https://cdn.peoplegrove.com/admin/1750856671504pg-zip-o.svg"}},TRANSIENT_MESSAGE_TYPES_TO_CLEAR:["TICKET_CREATION_SUCCESS","MESSAGE_MARKED_HELPFUL","MESSAGE_MARKED_UNHELPFUL","THANKS_SESSION_FEEDBACK_CARD","INACTIVITY_FEEDBACK_PROMPT","SESSION_ENDED_TIMEOUT","CONVERSATION_CLOSED"],MESSAGES_WITH_HIDDEN_INPUTS:["TICKET_CREATION_SUCCESS","CONVERSATION_CLOSED","MESSAGE_MARKED_HELPFUL","MESSAGE_MARKED_UNHELPFUL","THANKS_SESSION_FEEDBACK_CARD","SESSION_ENDED_TIMEOUT","START_NEW_CHAT_CONFIRMATION","COLLECT_FEEDBACK_CONFIRMATION","COLLECT_FEEDBACK","FEEDBACK_AFTER_THANKS"],MESSAGES_THAT_DISABLE_TICKET_LINK:["TICKET_CREATION_SUCCESS"],USER_MESSAGE_TOP_OFFSET_PX:16,SUPPORT_MODAL_FOCUS_DELAY_MS:500,SUPPORT_WIDGET_CLOSE_FOCUS_DELAY_MS:550},dt="Sage Support Assistant",We=r=>`<strong>Hi, ${r}! I'm Sage, your AI assistant.</strong><p style="margin:0;">I can help answer questions about the platform, features, and troubleshooting.</p>`,Pe={CHAT:"chat",CREATE_TICKET:"create-ticket",CHAT_HISTORY:"chat-history",CHAT_HISTORY_SINGLE:"chat-history-single",HELP_ARTICLES:"help-articles"},Le=r=>`${startCase(r)} section`,Me=r=>{const j=new Date;return r.map(R=>({...R,viewedAt:R.viewedAt||j}))},ct=r=>(r.messageType==="SYSTEM_REMINDER"||r.messageType==="SESSION_ENDED_TIMEOUT"||r.messageType==="INACTIVITY_FEEDBACK_PROMPT"||r.messageType==="FEEDBACK_AFTER_THANKS")&&!r.viewedAt,we=xe.TRANSIENT_MESSAGE_TYPES_TO_CLEAR,be=r=>r.filter(j=>!we.includes(j.messageType)),ye=r=>{const[j,R]=(0,G.b)(),[w]=Q();return(0,s.useEffect)(()=>{r&&j&&R(!1)},[r,j,R]),(0,s.useEffect)(()=>{if(!r){const z=w.some(ct);R(!!z)}},[w,r,R]),{redDot:j,setRedDot:R}},tt=(r,j)=>{const R=(0,o.iZ)(),[w,z]=k(),[Y,ee]=Q(),[se]=le(),[X]=W(),re=(0,u.w)(),J=(0,s.useRef)(Y),Ee=(0,s.useRef)(X),pe=(0,s.useRef)(se),Ce=(0,s.useRef)(!1),ve=(0,s.useRef)(null);(0,s.useEffect)(()=>{J.current=Y},[Y]),(0,s.useEffect)(()=>{Ee.current=X},[X]),(0,s.useEffect)(()=>{pe.current=se},[se]),(0,s.useEffect)(()=>{Ce.current=!1},[se]),ye(j);const Fe=(0,s.useCallback)(()=>J.current.some(lt=>lt.messageType==="COLLECT_FEEDBACK_CONFIRMATION"||lt.messageType==="COLLECT_FEEDBACK"),[]),Be=(0,s.useCallback)(()=>{const lt=J.current.filter(gt=>gt.requiresFeedback===!0&&(gt.isHelpful===null||gt.isHelpful===void 0));return lt.length>0?lt[lt.length-1]:null},[]),it=(0,s.useCallback)(lt=>{J.current.some(gt=>gt.messageType==="INACTIVITY_FEEDBACK_PROMPT")||ee(gt=>[...gt,{message:"Did this help answer your question?",messageId:(0,p.A)(),messageType:"INACTIVITY_FEEDBACK_PROMPT",requiresFeedback:!1,createdAt:new Date,viewedAt:void 0,metadata:{pendingFeedbackMessageId:lt}}])},[ee]),Tt=(0,s.useCallback)(lt=>{J.current.some(gt=>gt.messageType==="SYSTEM_REMINDER"&&gt.message===lt)||ee(gt=>[...gt,{message:lt,messageId:(0,p.A)(),messageType:"SYSTEM_REMINDER",requiresFeedback:!1,createdAt:new Date,viewedAt:void 0}])},[ee]),xt=U(),{mutate:jt}=H({onSuccess:()=>
92{if(b(ee,{prependSessionEndedTimeout:!0}),pe.current){$(pe.current,xt);const lt=pe.current;d.A.invalidateQueries([I.w.chatHistoryForSession,lt])}R!=null&&R.user&&(d.A.invalidateQueries([I.w.chatHistory,"user",R.user]),d.A.invalidateQueries([I.w.activeSession,R.user]))},onError:lt=>{(0,g.mei)("Unable to move to feedback stage","error"),console.error("[Inactivity Tracking] moveToFeedback failed:",lt),b(ee,{afterMoveFailure:!0})},onSettled:()=>{Ce.current=!1}}),{mutate:Et}=O();(0,s.useEffect)(()=>{if(!r||!se||se==="")return;(async()=>{try{const gt=await(0,x.cf)(se);gt!=null&&gt.data&&Z(se,gt.data,xt)}catch(gt){console.error("[Inactivity Tracking] Failed to fetch task names:",gt)}})()},[r,se,xt]);const Lt=(0,u.d)(lt=>{var gt;return(gt=lt.supportWidget)==null?void 0:gt.latestInactivityNotification});return(0,s.useEffect)(()=>{if(!r||!Lt)return;const{type:lt,sessionAddress:gt,createdAt:es}=Lt,Ht=`${lt}::${gt!=null?gt:""}::${es!=null?es:""}`;if(ve.current===Ht){re((0,E.kk)());return}if(gt!==pe.current){re((0,E.kk)());return}switch(ve.current=Ht,lt){case"FIRST_REMINDER":if(Fe())break;const Gt=J.current.some(ns=>ns.isBotMessage===!1),Ve=Be();if(Ve&&Ve.messageId)it(Ve.messageId);else{let ns=null;Gt?ns="Are you still there? Checking in to see if that was helpful.":Ee.current&&(ns="Still with us? Ask us anything when you're ready!"),ns&&Tt(ns)}z(ns=>({...ns,phase:"first_reminder",firstReminderTime:Date.now()}));break;case"SESSION_ENDED_TIMEOUT":if(Fe())break;if(pe.current&&pe.current!==""){if(J.current.some(bs=>bs.messageType==="SESSION_ENDED_TIMEOUT")||Ce.current)return;Ce.current=!0,z(bs=>({...bs,phase:"session_ended",sessionEndTime:Date.now()})),jt({sessionAddress:pe.current})}break;default:console.warn("[Inactivity Tracking] Unknown notification type:",lt);break}re((0,E.kk)())},[r,Lt,se,Fe,Tt,re,z,ee,jt]),{resetInactivityTimer:(0,s.useCallback)(lt=>{var gt;const es=(lt==null?void 0:lt.sendHeartbeat)!==!1,Ht=(gt=lt==null?void 0:lt.sessionAddressOverride)!=null?gt:pe.current;if(ee(Gt=>Gt.map(Ve=>Ve.messageType==="SYSTEM_REMINDER"||Ve.messageType==="INACTIVITY_FEEDBACK_PROMPT"?{...Ve,messageType:"SYSTEM_REMINDER_IGNORED",viewedAt:Ve.viewedAt}:Ve)),z(Gt=>({...Gt,phase:"none",lastActivityTime:Date.now(),firstReminderTime:null,secondReminderTime:null,sessionEndTime:null})),es&&Ht&&Ht!==""){Et({sessionAddress:Ht});const Gt=Ht;setTimeout(async()=>{try{const Ve=await(0,x.cf)(Gt);Ve!=null&&Ve.data&&Z(Gt,Ve.data,xt)}catch(Ve){console.error("[Inactivity Tracking] Failed to fetch updated task names:",Ve)}},500)}},[ee,z,Et,xt]),inactivityState:w}},Te=async()=>{const{data:r}=await(0,S.LDV)();return r},Je=r=>[I.w.activeSession,r],Ue=({userId:r,enabled:j=!0})=>{const R=(0,o.iZ)(),w=ce(),[z,Y]=Q(),ee=(0,s.useCallback)(se=>{var X;if(!se||!(R!=null&&R.firstName))return;const re=We(R.firstName);se.status==="active"&&((X=se.messages)==null?void 0:X.length)>z.length?(w(se.address),Y([{message:re,messageType:"WELCOME_MESSAGE",requiresFeedback:!1,disableInteraction:!0},...se.messages])):se.status==="not_found"&&z.length===0&&Y([{message:re,messageType:"WELCOME_MESSAGE",requiresFeedback:!1,disableInteraction:!1}])},[R==null?void 0:R.firstName,z.length,w,Y]);return(0,M.useQuery)({queryFn:()=>Te(),queryKey:Je(r),enabled:j,staleTime:5*60*1e3,cacheTime:10*60*1e3,refetchOnWindowFocus:!1,onSuccess:ee,onError:se=>{console.error("[Active Session] Error fetching active session:",se)}})};var _e=t(90486),bt=t(394662);const wt=async()=>{const{data:r}=await(0,S.cGk)();return r},ls=({userId:r,enabled:j})=>{const R=(0,o.lx)(),w=(0,o.iZ)(),z=(0,bt.zF)(),Y=(0,_e.P)(),{isSuperAdmin:ee}=(0,g.MDA)(w,R==null?void 0:R.id);return(0,M.useQuery)({queryFn:()=>wt(),queryKey:[I.w.zendeskToken,r],enabled:!!r&&j,staleTime:10*60*1e3,cacheTime:15*60*1e3,refetchOnWindowFocus:!1,onSuccess:se=>{z(se.token),Y({isVerified:!0,hasError:!1})},onError:se=>{var X,re;((re=(X=se.response)==null?void 0:X.data)==null?void 0:re.message)==="Email not verified"&&!ee&&Y({isVerified:!1,hasError:!0})}})};var us=t(651904),Xt=t.n(us);const ut=(0,K.eU)(null),$t=()=>(0,T.fp)(ut),As=()=>(0,T.Xr)(ut);var kt=t(190515);const Wt="/api/",pt=async r=>{const{data:j}=await(0,x.wm)(r);return j},Yt=()=>{const r=As(),j=(0,o.er)(),R=(0,bt.zF)(),w=(0,bt.n5)();return(0,M.useMutation)({mutationFn:z=>pt(z),onSuccess:(z,Y)=>{const ee="production",se=(0,g.c5u)("support","supportHeaderText",j,"Help"),X=(0,h.A)(kt.M.getState(),"auth.authToken",null),re=(0,g.F25)(j);let J=null;if(ee==="production")try{J=Xt().sessionURL}catch(ve){console.error("Error getting logRocket url ",ve)}let Ee=Wt,pe=RegExp("^(http|https)://.*$");pe.test(Ee)||(Ee=window.location.protocol+"//"+window.location.host+Ee),z.token&&R(z.token);const Ce={...z,PGSupportToken:Y.authorization,PGSupportUrl:Ee,logRocket:J&&pe.test(J)?J:null,header:se,currentUrl:window.location.href,domainUrl:window.location.hostname,appError:!1,appToken:X,initialPage:null,isStandardHub:re};r(Ce),w(!0)},onError:z=>{console.error("Error validating zendesk token",z),w(!1)}})};var qt=t(385672),Bt=t(265348);const Kt=(0,K.eU)(null);
92Kt.debugLabel="currentChatHistory";const Ot=()=>(0,T.fp)(Kt),hs=()=>(0,T.Xr)(Kt),Es=(0,K.eU)(null),ft=()=>(0,T.fp)(Es),Ne=()=>(0,T.Xr)(Es),Re=r=>{const[j]=ft(),[R]=Ot(),w=hs();return{handleBackToChat:(0,s.useCallback)(()=>{if((j==null?void 0:j.openedFromChatHistory)===!0&&R){r(Pe.CHAT_HISTORY_SINGLE);return}w(null),r(Pe.CHAT)},[R,r,w,j==null?void 0:j.openedFromChatHistory])}},{SUPPORT_MODAL_FOCUS_DELAY_MS:Pt}=xe,Mt=(r,j,R)=>{(0,s.useEffect)(()=>{if(!r||!j)return;const w=window.setTimeout(()=>{const z=R.current;if(!z)return;const Y=z.querySelector(["button:not([disabled])","a[href]","textarea:not([disabled])","input:not([disabled])","select:not([disabled])"].join(", "));Y==null||Y.focus()},Pt);return()=>{window.clearTimeout(w)}},[r,j,R])},nt={"support-widget-container":"support-widget-container__T_psi","support-widget":"support-widget__Oy5H3",widgetContainer:"widgetContainer__w4RuR",widgetButton:"widgetButton__JNJ4q",redDot:"redDot__QiBIZ",aiSupportWidget:"aiSupportWidget__IJM6G",modalView:"modalView__Ju8fq",aiSupportWidgetContent:"aiSupportWidgetContent__Ma5dc",aiSupportWidgetContentNoTabs:"aiSupportWidgetContentNoTabs__qpdsb",messageHistoryListContainer:"messageHistoryListContainer__onlpR",helpArticlesSection:"helpArticlesSection__Utj4H",messageHistoryContentModalView:"messageHistoryContentModalView__FzFKS",aiSupportWidgetMobileOverlay:"aiSupportWidgetMobileOverlay__R_qho",aiSupportWidgetMeta:"aiSupportWidgetMeta__gE1aj",aiSupportWidgetTabs:"aiSupportWidgetTabs__lGSs_",aiSupportWidgetTabsPanel:"aiSupportWidgetTabsPanel__LmAfQ",aiSupportWidgetTabsList:"aiSupportWidgetTabsList__RP9U7",aiSupportWidgetTabsSlider:"aiSupportWidgetTabsSlider__u0NWX",tabLabel:"tabLabel__MDi3h",tabButton:"tabButton__hihf3",widgetContentOverlay:"widgetContentOverlay__XxMwi",cardEnter:"cardEnter__Pblgi",fadeIn:"fadeIn__hnaQP",cardExit:"cardExit__l7gQ5",fadeOut:"fadeOut__BzuHh"},as=r=>(0,s.useMemo)(()=>[{label:(0,e.jsxs)("div",{className:nt.tabLabel,children:[(0,e.jsx)(a.C0,{icon:`pg-chat-bubble-bottom-center-text${r!==Pe.CHAT?"-o":""}`,width:20,"aria-hidden":"true"}),"Chat"]}),key:Pe.CHAT,ariaLabel:"Chat with support assistant",className:nt.tabButton,active:r===Pe.CHAT},{label:(0,e.jsxs)("div",{className:nt.tabLabel,children:[(0,e.jsx)(a.C0,{icon:`pg-chat-alt${r!==Pe.CHAT_HISTORY?"-o":""}`,width:20,"aria-hidden":"true"}),"Chat history"]}),key:Pe.CHAT_HISTORY,ariaLabel:"View chat history",className:nt.tabButton,active:r===Pe.CHAT_HISTORY},{label:(0,e.jsxs)("div",{className:nt.tabLabel,children:[(0,e.jsx)(a.C0,{icon:`pg-question-mark-circle${r!==Pe.HELP_ARTICLES?"-o":""}`,width:20}),"Help articles"]}),key:Pe.HELP_ARTICLES,ariaLabel:"Browse help articles",className:nt.tabButton,active:r===Pe.HELP_ARTICLES}],[r]),is=async r=>{const{data:j}=await(0,S.Qb2)(r);return j},ts=r=>(0,M.useMutation)({mutationFn:is,...r}),{SUPPORT_WIDGET_CLOSE_FOCUS_DELAY_MS:cs}=xe,os=(0,K.eU)(null);os.debugLabel="supportWidgetReturnFocusTarget";const Fs=()=>useSetAtom(os),Js=r=>{(0,s.useEffect)(()=>{if(r)return;const j=(0,K.zp)(),R=j.get(os);if(!R)return;j.set(os,null);let w=!1;const z=window.setTimeout(()=>{w=!0,R.isConnected&&R.focus({preventScroll:!0})},cs);return()=>{window.clearTimeout(z),w||j.set(os,R)}},[r])},Ns=(0,K.eU)(Pe.CHAT);Ns.debugLabel="widgetView";const St=()=>(0,T.fp)(Ns),gn=()=>(0,T.Xr)(Ns);var ln=t(860129),tn=t(972185);const Gs=5e3,Tn=6;let pn=null,ae=0;const de=()=>{pn!==null&&(clearInterval(pn),pn=null)},Ke=()=>{de(),ae+=1},$e=(r,j,R)=>{var w,z;const Y=r.getQueryData([I.w.chatHistory,"user",j]);if(!(Y!=null&&Y.pages))return 0;const se=(0,ln.A)((0,tn.A)(Y.pages,"results")).find(X=>X.address===R);return(z=(w=se==null?void 0:se.tickets)==null?void 0:w.length)!=null?z:0},Ze=({queryClient:r,userId:j,sessionAddress:R,baselineTicketCount:w})=>{de(),ae+=1;const z=ae;let Y=0,ee=!1;const se=async()=>{if(z===ae&&!ee){ee=!0;try{try{await r.invalidateQueries([I.w.chatHistory,"user",j],{refetchActive:!0,refetchInactive:!0})}catch(re){}if(z!==ae)return;if($e(r,j,R)>w){Ke();return}Y+=1,Y>=Tn&&Ke()}finally{ee=!1}}};pn=setInterval(()=>{se()},Gs)};var ue=t(768835);const he=({onComplete:r,duration:j=3})=>
92{const[R,w]=(0,s.useState)(null),z=(0,s.useRef)(null),Y=(0,s.useRef)(null),ee=(0,s.useCallback)(()=>{z.current=Date.now(),w(j);const X=()=>{if(!z.current)return;const re=Math.floor((Date.now()-z.current)/1e3),J=Math.max(0,j-re);if(J<=0){r();return}w(J),Y.current=setTimeout(X,1e3)};X()},[j,r]),se=(0,s.useCallback)(()=>{Y.current&&clearTimeout(Y.current),w(null),z.current=null},[]);return(0,s.useEffect)(()=>()=>{Y.current&&clearTimeout(Y.current)},[]),{countdown:R,startCountdown:ee,clearCountdown:se}},me=()=>{const r=(0,o.iZ)(),[,j]=le(),R=ne(),w=hs();return{startNewChat:(0,s.useCallback)(()=>{w(null),j(""),R([{message:We(r.firstName),createdAt:new Date,messageType:"WELCOME_MESSAGE",requiresFeedback:!1,disableInteraction:!1}]),r!=null&&r.user&&d.A.invalidateQueries([I.w.activeSession,r.user])},[r.firstName,r.user,w,j,R])}},ge=(0,K.eU)(null);ge.debugLabel="postCloseCountdownIntent";const De=()=>(0,T.Xr)(ge),He=()=>{const r=(0,o.iZ)(),j=ce(),R=ne(),w=hs(),{startNewChat:z}=me();return{goToChatFromHistoryTab:(0,s.useCallback)(async(ee,se)=>{w(null);const X=r==null?void 0:r.firstName;let re=ee;return re&&(re==null?void 0:re.status)==="active"&&re.address&&Array.isArray(re.messages)&&re.messages.length>0&&X?(j(re.address),{activeAddress:re.address}):{}},[r==null?void 0:r.firstName,w,R,j,z])}},Ye=({activeView:r,setActiveViewProp:j,activeSession:R,isActiveSessionLoading:w,resetInactivityTimer:z,clearCountdown:Y})=>{const{goToChatFromHistoryTab:ee}=He();return{wrappedSetActiveView:(0,s.useCallback)(X=>{r===Pe.CHAT_HISTORY&&X===Pe.CHAT&&(Y(),(0,K.zp)().set(ge,null),z({sendHeartbeat:!1}),ee(R,w!=null?w:!1).then(({activeAddress:re})=>{re&&z({sendHeartbeat:!0,sessionAddressOverride:re})}).catch(()=>{})),j(X)},[R,r,Y,ee,w,z,j])}},at=r=>{const j=(0,s.useRef)(null),R=(0,s.useRef)(null),w=(0,s.useCallback)(()=>{const ee=j.current,se=R.current;if(!ee||!se)return;const X=ee.querySelectorAll("[data-user-message]"),re=X[X.length-1];if(!re)return;const J=ee.getBoundingClientRect(),Ee=re.getBoundingClientRect(),pe=Math.max(0,ee.scrollTop+(Ee.top-J.top)-xe.USER_MESSAGE_TOP_OFFSET_PX),Ce=ee.scrollHeight-ee.clientHeight,ve=Math.max(0,Math.ceil(pe-Ce));se.style.height=`${ve}px`;const Fe=ee.scrollHeight-ee.clientHeight,Be=Math.min(pe,Fe);ee.scrollTo({top:Be,behavior:"smooth"})},[]),z=(0,s.useCallback)(()=>{const ee=j.current,se=R.current;if(!ee||!se)return;const X=ee.scrollTop;se.style.height="0px";const re=Math.max(0,ee.scrollHeight-ee.clientHeight);ee.scrollTop=Math.min(X,re)},[]),Y=(0,s.useCallback)(()=>{r.isGeneratingResponse||r.isCreatingSession||j.current&&(0,g.kXs)(j.current,j.current.scrollHeight,800)},[r.isGeneratingResponse,r.isCreatingSession]);return{messagesContainerRef:j,bottomSpacerRef:R,scrollLatestUserMessageToTop:w,clearBottomSpacerPreserveViewport:z,scrollToBottomAndFocus:Y}},Se=()=>{const r=(0,C.E)();return j=>{const{cta:R,...w}=j;r({...w,pgAnalyticsCTA:R,pgAnalytics:"AI Support assistant"})}};var Xe=t(778402);const ot=async r=>{const{data:j}=await(0,S.lXv)(r);return j},Ge=r=>(0,M.useMutation)({mutationFn:j=>ot(j),...r}),At=async r=>{const{data:j}=await(0,S.x0T)(r);return j},qe=r=>(0,M.useMutation)({mutationFn:j=>At(j),...r}),ht=(0,K.eU)({isCreatingSession:!1,isGeneratingResponse:!1});ht.debugLabel="chatLoadingStates";const rt=()=>(0,T.fp)(ht),ke=r=>!!(r&&typeof r.pendingFeedbackMessageId=="string"),_t=r=>r!=null&&r.metadata&&ke(r.metadata)?r.metadata.pendingFeedbackMessageId:void 0,ms=r=>!!(r&&typeof r=="object"&&r.thanksSessionFollowUp===!0),fs={WITH_ACTIONS:"<!-- FEEDBACK_AFTER_THANKS_WITH_ACTIONS -->",ACK:"<!-- FEEDBACK_AFTER_THANKS_ACK -->"},Bs={WITH_ACTIONS:"<p>Happy to help! Would you be open to sharing feedback?</p>",ACK:"<p>You're welcome. Is there anything else I can assist you with regarding PeopleGrove?</p>"};function sn(r){return typeof r=="object"&&r!==null&&"actionTaken"in r&&r.actionTaken===!0}const _s=r=>ms(r),Is=r=>typeof r=="string"&&r.includes(fs.ACK),Us=r=>!r||typeof r!="string"?"":Is(r)?Bs.ACK:r,js=(r,j)=>{if(r.messageType!=="FEEDBACK_AFTER_THANKS")return!1;if(sn(r.metadata))return!0;const R=j.findIndex(w=>w===r||r.messageId!=null&&w.messageId===r.messageId&&w.messageType==="FEEDBACK_AFTER_THANKS");return R<0?!1:R<j.length-1}
92,Ie={"support-widget-container":"support-widget-container__LnDsp","support-widget":"support-widget__wxuCM","bg-primary-xlight":"bg-primary-xlight__z6Wer","bg-primary-light":"bg-primary-light__L5CNi","bg-primary":"bg-primary__d3A7t","bg-primary-dark":"bg-primary-dark__CdEMe","bg-primary-xdark":"bg-primary-xdark__QwTll","bg-secondary-xlight":"bg-secondary-xlight__RYytP","bg-secondary-light":"bg-secondary-light__xeY3t","bg-secondary":"bg-secondary__G3luH","bg-secondary-dark":"bg-secondary-dark__GR3m5","bg-secondary-xdark":"bg-secondary-xdark__TIBfs","bg-success-xlight":"bg-success-xlight__flWKx","bg-success-light":"bg-success-light__FqLRP","bg-success":"bg-success__lAO08","bg-success-dark":"bg-success-dark__WzAbT","bg-success-xdark":"bg-success-xdark__zqQcq","bg-info-xlight":"bg-info-xlight__Ed8qm","bg-info-light":"bg-info-light__mMvll","bg-info":"bg-info__UwFtf","bg-info-dark":"bg-info-dark__HQ5FU","bg-info-xdark":"bg-info-xdark__hJ7_G","bg-warning-xlight":"bg-warning-xlight__bx3Es","bg-warning-light":"bg-warning-light__KwGwz","bg-warning":"bg-warning__Borox","bg-warning-dark":"bg-warning-dark__vZfuD","bg-warning-xdark":"bg-warning-xdark__cEvMH","bg-alert-xlight":"bg-alert-xlight__uSjv8","bg-alert-light":"bg-alert-light__xpjQi","bg-alert":"bg-alert__WdYWv","bg-alert-dark":"bg-alert-dark__kc4Nt","bg-alert-xdark":"bg-alert-xdark__nMkD2","bg-danger-xlight":"bg-danger-xlight__kAWmT","bg-danger-light":"bg-danger-light__nFSYp","bg-danger":"bg-danger__xaKfq","bg-danger-dark":"bg-danger-dark__n_FIw","bg-danger-xdark":"bg-danger-xdark__ll7HN",actions:"actions__Tea0E",actionsInputContainer:"actionsInputContainer__xJbeX",actionsDisclaimer:"actionsDisclaimer__bvJMK",actionsInput:"actionsInput__rL1W2",actionsButton:"actionsButton__Mvpid",messages:"messages__hutSc",messagesBottomSpacer:"messagesBottomSpacer__rPacp",chatClosedCountdownDescription:"chatClosedCountdownDescription__ctxNh",chatMessage:"chatMessage__dtrAO",messageBody:"messageBody__wKf7g",messageSentAt:"messageSentAt__sM32_",chatMessageResponse:"chatMessageResponse__Rc_3J",supportRequestCta:"supportRequestCta__nyerE",supportRequestCtaButton:"supportRequestCtaButton__Ckpim",helpArticleLinks:"helpArticleLinks__mmtv4",helpArticleLinksLabel:"helpArticleLinksLabel__TUSpQ",helpArticleLink:"helpArticleLink__WsHus",helpArticleLinkTitle:"helpArticleLinkTitle__yadOb",messageBodyFooter:"messageBodyFooter__POjRM",responseFeedback:"responseFeedback__wH_Uo",responseFeedbackIconButtonHelpful:"responseFeedbackIconButtonHelpful__kInn4",responseFeedbackIconButtonHelpfulClicked:"responseFeedbackIconButtonHelpfulClicked__xy3e5",responseFeedbackIconButtonNotHelpful:"responseFeedbackIconButtonNotHelpful__PLemw",responseFeedbackIconButtonNotHelpfulClicked:"responseFeedbackIconButtonNotHelpfulClicked__tgP6n",responseFeedbackNudge:"responseFeedbackNudge__YCgIh",chatMessageWithCTA:"chatMessageWithCTA__ZHahM",messageBodyContent:"messageBodyContent__AGa4j",messageBodyContentLeft:"messageBodyContentLeft__ZIZMA",messageBodyContentRight:"messageBodyContentRight__hMeLU",messageBodyContentRightTitle:"messageBodyContentRightTitle__BXOZq",messageBodyContentRightDescription:"messageBodyContentRightDescription__Ry_3V",messageBodyFooterPrimaryCta:"messageBodyFooterPrimaryCta___Pq6V",messageBodyFooterSecondaryCta:"messageBodyFooterSecondaryCta__u6AAb",chatMessageWithCTAWarning:"chatMessageWithCTAWarning__z_YjW",chatMessageWithCTAWarningSecond:"chatMessageWithCTAWarningSecond__j_eR7",chatMessageWithCTANeutral:"chatMessageWithCTANeutral__jFHdN",chatMessageCollectFeedback:"chatMessageCollectFeedback__t6Y3y",messageBodyTitle:"messageBodyTitle__K7Lsb",messageBodyDescription:"messageBodyDescription__qH88R",messageBodyDescriptionAfterThanksFlow:"messageBodyDescriptionAfterThanksFlow__I47vL",messageBodyRatings:"messageBodyRatings__biR2R",messageBodyRatingsItem:"messageBodyRatingsItem__qCcjh",ratingButton:"ratingButton__nxh0w",ratingButtonSelected:"ratingButtonSelected__nmdDw",messageBodyRatingsDescription:"messageBodyRatingsDescription__v_PFH",messageBodyRatingsTextArea:"messageBodyRatingsTextArea__QSfMc",messageBodyAction:"messageBodyAction__v4PPW",messageBodyActionPrimaryCta:"messageBodyActionPrimaryCta__Dzoad",messageBodyActionSecondaryCta:"messageBodyActionSecondaryCta__hmoL1",chatMessageFeedback:"chatMessageFeedback__ezCPM",messageBodyRating:"messageBodyRating__hbVaT",messageBodyComment:"messageBodyComment__CAjVg",chatEndIndicatorText:"chatEndIndicatorText__xZSXX",chatEndIndicatorDivider:"chatEndIndicatorDivider__YCKGF",messageLoading:"messageLoading__PwF6O",loadingContainer:"loadingContainer__F9icZ",loadingDot:"loadingDot__g4y9o",loadingAnimation:"loadingAnimation__RRFUQ"},cn=()=>(0,e.jsx)("div",{className:Ie.loadingContainer,children:(0,e.jsxs)("div",{className:Ie.messageLoading,children:[(0,e.jsx)("div",{className:Ie.loadingDot}),(0,e.jsx)("div",{className:Ie.loadingDot}),(0,e.jsx)("div",{className:Ie.loadingDot})]})});var fn=t(662180);const Rs="peoplegroveSupportZendeskSso",vn=async r=>{var j;const{queryStr:R,payload:w}=r;if((0,fn.tN)()){if(!w){window.location.href=(0,fn.A4)(R);return}const Y=await(0,x.Jl)({authorization:w.PGSupportToken,redirectUrl:R,json:!0});if((j=Y==null?void 0:Y.data)!=null&&j.link){window.location.href=(0,fn.A4)(Y.data.link);return}throw new Error("Error submitting response")}if(!w){window.open(R,"_blank");return}const z=window.open("about:blank",Rs);if(!z)throw new Error("Pop-up blocked: allow pop-ups to open support requests.");try{const Y=await(0,x.Jl)({authorization:w.PGSupportToken,redirectUrl:R,json:!0});if(Y!=null&&Y.data){const ee=Y.data,se=document.createElement("form");se.method="POST",se.target=Rs,se.action=ee.link,document.body.appendChild(se),se.submit(),document.body.removeChild(se)}else throw z==null||z.close(),new Error("Error submitting response")}catch(Y){throw z==null||z.close(),Y}},ws=()=>(0,M.useMutation)({mutationFn:vn,onError:r=>{console.error("Error getting zendesk link - ",r)}}),xs=({message:r,loading:j,isPrimaryActionLoading:R,isSecondaryActionLoading:w,showCTA:z,icon:Y,iconSrc:ee,title:se,description:X,primaryActionText:re,secondaryActionText:J,primaryActionClassName:Ee="",secondaryActionClassName:pe="",isWarningState:Ce,isSecondWarningState:ve,useNeutralBackgroun
92d:Fe,reduceIconSize:Be,handlePrimaryAction:it,handleSecondaryAction:Tt})=>{const[xt]=Q(),jt=["MESSAGE_MARKED_HELPFUL","THANKS_SESSION_FEEDBACK_CARD","TICKET_CREATION_SUCCESS","MESSAGE_MARKED_UNHELPFUL"].includes(r.messageType)&&xt.some(Lt=>["SESSION_ENDED_TIMEOUT","CHAT_END_INDICATOR","CONVERSATION_CLOSED"].includes(Lt.messageType)),Et=Be?20:24;return(0,e.jsx)("div",{className:(0,ue.A)(Ie.chatMessageResponse,Ie.chatMessageWithCTA,{[Ie.chatMessageWithCTAWarning]:Ce,[Ie.chatMessageWithCTAWarningSecond]:ve,[Ie.chatMessageWithCTANeutral]:Fe}),children:(0,e.jsxs)("div",{className:Ie.messageBody,children:[(0,e.jsxs)("div",{className:Ie.messageBodyContent,children:[(Y||ee)&&(0,e.jsxs)("div",{className:Ie.messageBodyContentLeft,children:[Y&&(0,e.jsx)(a.C0,{icon:Y,size:Et}),ee&&(0,e.jsx)(a.C0,{src:ee,size:Et})]}),(0,e.jsxs)("div",{className:Ie.messageBodyContentRight,children:[(0,e.jsx)("div",{className:Ie.messageBodyContentRightTitle,children:se}),X&&(0,e.jsx)("div",{className:Ie.messageBodyContentRightDescription,children:X})]})]}),z&&!jt&&(0,e.jsxs)("div",{className:Ie.messageBodyFooter,children:[(0,e.jsx)(a.$n,{type:"tertiary",onClick:()=>r.messageId&&(Tt==null?void 0:Tt(r.messageId,r.messageType)),loading:w,disabled:j,className:pe,children:J}),(0,e.jsx)(a.$n,{type:"primary",onClick:()=>r.messageId&&(it==null?void 0:it(r.messageId,r.messageType)),loading:R,disabled:j,className:Ee,children:re})]})]})})},Cn=({message:r,countdown:j,startCountdown:R,clearCountdown:w})=>{(0,s.useEffect)(()=>{w&&w(),R()},[R,w]);const z=r.metadata,Y=(z==null?void 0:z.afterCloseIntent)==="view_chat_history",se=Y?j===null?"Opening chat history...":`Opening chat history in ${j} second${j!==1?"s":""}`:j===null?"Starting new chat...":`Starting a new chat in ${j} second${j!==1?"s":""}`;return(0,e.jsx)(xs,{message:r,loading:!1,showCTA:!1,icon:"pg-check-circle-o",title:"Conversation saved to chat history",description:(0,e.jsx)("span",{className:Ie.chatClosedCountdownDescription,children:se})})},Cs=(0,K.eU)(5);Cs.debugLabel="selectedRating";const Ds=(0,K.eU)("");Ds.debugLabel="feedbackText";const dn=()=>(0,T.fp)(Cs),vs=()=>(0,T.Xr)(Cs),Xs=()=>(0,T.fp)(Ds),nn=()=>(0,T.Xr)(Ds),zs=[{label:"Very satisfied",value:5},{label:"Satisfied",value:4},{label:"Neutral",value:3},{label:"Dissatisfied",value:2},{label:"Very dissatisfied",value:1}];function ys({handleSubmitFeedback:r,isSubmittingFeedback:j,interactionDisabled:R=!1,showThanksSessionCard:w=!1,onSkip:z,showSkip:Y=!1,skipText:ee="Skip",isSkipLoading:se=!1}){const[X,re]=dn(),[J,Ee]=Xs(),pe=Se(),Ce=Be=>{R||re(Be)},ve=()=>{R||X&&(pe({cta:"Feedback submitted successfully",pgAnalyticsRating:X}),r(X,J,w))},Fe=(Be,it)=>{R||(Be.key==="Enter"||Be.key===" ")&&(Be.preventDefault(),Ce(it))};return(0,e.jsx)("div",{className:(0,ue.A)(Ie.chatMessageResponse,Ie.chatMessageCollectFeedback),children:(0,e.jsxs)("div",{className:Ie.messageBody,children:[!w&&(0,e.jsx)("div",{className:Ie.messageBodyTitle,children:"Before you go, we'd love to hear about your experience."}),(0,e.jsx)("div",{className:(0,ue.A)(Ie.messageBodyDescription,w&&Ie.messageBodyDescriptionAfterThanksFlow),children:"How satisfied are you with your experience today?"}),(0,e.jsx)("div",{className:Ie.messageBodyRatings,role:"group","aria-label":"Satisfaction rating",children:zs.map(Be=>(0,e.jsxs)("div",{className:Ie.messageBodyRatingsItem,children:[(0,e.jsx)("button",{type:"button",className:(0,ue.A)(Ie.ratingButton,X===Be.value&&Ie.ratingButtonSelected),onClick:()=>Ce(Be.value),onKeyDown:it=>Fe(it,Be.value),disabled:R,"aria-pressed":X===Be.value,"aria-label":`Rate ${Be.value}: ${Be.label}`,children:Be.value}),(0,e.jsx)("span",{children:Be.label})]},Be.label))}),(0,e.jsx)("div",{className:Ie.messageBodyRatingsDescription,children:"Tell us how your experience was in this session."}),(0,e.jsx)("label",{htmlFor:"ai-support-widget-collect-feedback-textarea",className:"sr-only",children:"Additional feedback (optional)"}),(0,e.jsx)(a.fs,{id:"ai-support-widget-collect-feedback-textarea",placeholder:"Provide details about your experience here",className:Ie.messageBodyRatingsTextArea,rows:2,autoComplete:"off",onChange:Be=>Ee(Be),value:J,readOnly:R,"aria-disabled":R,resizeNone:!0}),(0,e.jsxs)("div",{className:Ie.messageBodyAction,children:[Y&&(0,e.jsx)(a.$n,{onClick:z,loading:se,"aria-label":ee,type:"tertiary",className:Ie.messageBodyActionSecondaryCta,disabled:R,children:ee}),(0,e.jsx)(a.$n,{onClick:ve,disabled:!X||R,loading:j,"aria-label":"Submit feedback",type:"primary",className:Ie.messageBodyActionPrimaryCta,children:"Submit feedback"})]})]})})}const $s=ys;var un=t(442534),Ys=t(120942);const jn=({message:r})=>{var j,R,w;return(0,e.jsx)("div",{className:(0,ue.A)(Ie.chatMessage,Ie.chatMessageFeedback),children:(0,e.jsxs)("div",{className:Ie.messageBody,children:[(0,e.jsxs)("div",{className:Ie.messageBodyRating,children:[(0,e.jsx)(a.C0,{src:xe.ASSETS.FEEDBACK_STAR_ICON,size:16}),(0,e.jsx)("span",{children:(j=r.metadata)==null?void 0:j.feedbackScore})]}),((R=r.metadata)==null?void 0:R.feedbackComment)&&(0,e.jsxs)("div",{className:Ie.messageBodyComment,children:[(0,e.jsx)(a.C0,{src:xe.ASSETS.FEEDBACK_COMMENT_ICON,size:16}),(0,e.jsx)("span",{children:(w=r.metadata)==null?void 0:w.feedbackComment})]}),r.createdAt&&(0,e.jsx)("time",{className:Ie.messageSentAt,dateTime:(0,un.x)(r.createdAt),children:(0,Ys.GP)(r.createdAt,"hh:mm aa")})]})})};var st=t(575076);const ss=r=>{if(!Array.isArray(r))return[];const j=[];for(const R of r){if(!R||typeof R!="object")continue;const{sourceType:w,sourceUrl:z}=R;w==="HELP_ARTICLE"&&z&&j.push({url:z,title:gs(z)})}return j},gs=r=>{try{return(r.split("/").pop()||"").split("-").slice(1).join(" ")||"Guide"}catch(j){return"Guide"}},Ss=r=>ss(r).length>0,Rn="<!-- SUPPORT_REQUEST_CTA -->",Dn=/<a\s+[^>]*target\s*=\s*["']#createTicket["'][^>]*>[\s\S]*?<\/a>/gi,Ls=r=>!r||typeof r!="string"?!1:r.includes(Rn)||/target\s*=\s*["']#createTicket["']/i.test(r),Ae=r=>{if(!r||typeof r!="string")return r;let j=r.split(Rn).join("").trim();return j=j.replace(Dn,"support request"),j};var te=t(645525),fe=t(177587);const Qe=({message:r,handleMessageFeedback:j,isRegisteringFeedback:R,disableActions:w=!1,newMessageLoading:z=!1,onSubmitSupportRequest:Y,shouldNudge:ee=!1,onNudgeShown:se,ctaConfig:X,suppressInteractiveCtas:re=!1})=>{const J=Se(),Ee=r.messageType!=="USER_MESSAGE"&&Ls(r.message),pe=Ee?Ae(r.message):r.message,Ce=r.messageType!=="USER_MESSAGE"&&Ss(r.sources),ve=Ce?ss(r.sources):[],[Fe,Be]=(0,s.use
92State)(ee),it=Tt=>{w||J({cta:"Help article click",pgAnalyticsOrigin:"Chat"}),window.open(Tt,"_blank")};return(0,s.useEffect)(()=>{if(ee){Be(!0),r.messageId&&(se==null||se(r.messageId));const Tt=setTimeout(()=>{Be(!1)},xe.FEEDBACK_NUDGE_DURATION_MS);return()=>{clearTimeout(Tt)}}else Be(!1)},[r.messageId,ee,se]),(0,e.jsxs)("div",{className:["USER_MESSAGE","INITIAL_USER_PROMPT"].includes(r.messageType)?Ie.chatMessage:Ie.chatMessageResponse,...r.messageType==="USER_MESSAGE"?{"data-user-message":"true"}:{},children:[(0,e.jsxs)("div",{className:Ie.messageBody,children:[(0,e.jsx)(fe.A,{text:pe,extraTags:["a"],attrsForExtraTags:["target"],enableAccessibility:!0}),Ee&&!w&&(0,e.jsx)("div",{className:Ie.supportRequestCta,children:(0,e.jsx)(a.$n,{type:"primary",onClick:()=>Y==null?void 0:Y(),"aria-label":"Submit a support request",className:Ie.supportRequestCtaButton,disabled:re,children:"Submit a support request"})}),Ce&&ve.length>0&&(0,e.jsxs)("div",{className:Ie.helpArticleLinks,children:[(0,e.jsx)("p",{className:Ie.helpArticleLinksLabel,children:"See help articles for more details:"}),(0,e.jsx)("div",{className:Ie.helpArticleLinksContainer,children:ve.map((Tt,xt)=>(0,e.jsx)(a.$n,{onClick:()=>it(Tt.url),rel:"noopener noreferrer","aria-label":`${Tt.title} (opens in new tab)`,className:Ie.helpArticleLink,type:"link",icon:"pg-arrow-top-right-on-square",children:(0,e.jsx)("div",{className:Ie.helpArticleLinkTitle,children:Tt.title})},`${Tt.url}-${xt}`))})]}),X&&(X.primary||X.secondary)?(0,e.jsxs)("div",{className:Ie.messageBodyFooter,children:[X.primary?(0,e.jsx)(a.$n,{type:X.primary.type,onClick:X.primary.onClick,disabled:X.disabled,icon:X.primary.icon,className:Ie.messageBodyFooterCTA,children:X.primary.text}):null,X.secondary?(0,e.jsx)(a.$n,{type:X.secondary.type,onClick:X.secondary.onClick,disabled:X.disabled,icon:X.secondary.icon,className:Ie.messageBodyFooterCTA,children:X.secondary.text}):null]}):null]}),r.createdAt&&(0,e.jsx)("time",{className:Ie.messageSentAt,dateTime:(0,un.x)(r.createdAt),children:(0,Ys.GP)(r.createdAt,"hh:mm aa")}),!w&&r.requiresFeedback&&(0,e.jsx)(te.A,{label:"Was this helpful?",onHelpful:()=>j(!0,r.messageId),onNotHelpful:()=>j(!1,r.messageId),feedbackValue:r.isHelpful,disabled:R||!(0,st.A)(r.isHelpful)||z||re,id:`feedback-${r.messageId}`,className:Ie.responseFeedback,helpfulButtonClassName:Ie.responseFeedbackIconButtonHelpful,notHelpfulButtonClassName:Ie.responseFeedbackIconButtonNotHelpful,variant:"compact",iconSize:20,showNudge:Fe})]})},Rt=({message:r,handleAskQuestion:j,handleReportIssue:R,showCTA:w=!0,disableInteraction:z})=>{const Y=z;return(0,e.jsx)("div",{className:(0,ue.A)(Ie.chatMessageResponse,Ie.chatMessageWithCTA,Ie.chatMessageWithCTANeutral),children:(0,e.jsxs)("div",{className:Ie.messageBody,children:[(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,Xe.a)(r)}}),w&&(0,e.jsxs)("div",{className:Ie.messageBodyFooter,style:{borderTop:"none",marginTop:8,paddingTop:0},children:[(0,e.jsx)(a.$n,{type:"tertiary",onClick:R,disabled:Y,children:"Report an issue"}),(0,e.jsx)(a.$n,{type:"primary",onClick:j,disabled:Y,children:"Ask a question"})]})]})})},rs=({message:r,allMessages:j,isLatestInteractiveCtaMessage:R,isRecordingActionTaken:w,isClosingSession:z,isSubmittingFeedback:Y,isMovingToFeedbackStage:ee,isGeneratingResponse:se,isCreatingSession:X,disableActions:re,handleMessageFeedback:J,handleContinueChat:Ee,handleCloseConversation:pe,handleViewChatHistory:Ce,handleSessionEndedStartNewChat:ve,handleSessionEndedViewHistory:Fe,handleOpenCreateTicket:Be,handleSubmitTicket:it,handleConfirmFeedback:Tt,handleSubmitFeedback:xt,handleSkipFeedback:jt,countdown:Et,startCountdown:Lt,clearCountdown:Vt,handleAskQuestion:lt,handleReportIssue:gt,showWelcomeCTA:es=!0,shouldNudge:Ht,onNudgeShown:Gt,handleInactivityFeedbackYes:Ve,handleInactivityFeedbackNo:ns,handleFeedbackAfterThanksSure:bs,handleFeedbackAfterThanksNotSure:ks})=>{var Qs;const{mutate:rn,isLoading:hn}=ws(),[vt]=$t(),yt=!re,Ct=yt&&R,Ut=Ct&&r.historical!==!0,Ft=!hn;switch(r.messageType){case"TICKET_CREATION_SUCCESS":return(0,e.jsx)(xs,{message:r,loading:w||z||ee,isPrimaryActionLoading:w,isSecondaryActionLoading:z||ee,handlePrimaryAction:Ee,handleSecondaryAction:pe,primaryActionText:"Continue chat",secondaryActionText:"Start new chat",icon:"pg-check-circle-o",title:"Support request submitted!",description:(0,e.jsxs)(e.Fragment,{children:["Your support request is in! You\u2019ll get an email confirmation shortly. Someone from our team will get back to you in 24 hours.",(0,e.jsx)("br",{}),(0,e.jsxs)("a",{href:"https://support.peoplegrove.com/hc/en-us/requests",target:"_blank",rel:"noopener noreferrer","aria-disabled":!Ft,onClick:Nt=>{Nt.preventDefault(),Ft&&rn({queryStr:"https://support.peoplegrove.com/hc/en-us/requests",payload:vt})},children:[(0,e.jsxs)("span",{className:"sr-only",children:[hn?"
92Loading...":"Opens in new tab","\xA0"]}),"View your support requests."]})]}),showCTA:Ut});case"MESSAGE_MARKED_HELPFUL":return(0,e.jsx)(xs,{message:r,loading:w||z||ee,isPrimaryActionLoading:w,isSecondaryActionLoading:ee||z,handlePrimaryAction:Ee,handleSecondaryAction:pe,primaryActionText:"Continue chat",secondaryActionText:"Start new chat",iconSrc:xe.ASSETS.MESSAGE_MARKED_HELPFUL_ICON,title:"Glad that helped!",description:"Would you like to start a new chat? This session will close, but you can revisit it anytime in your chat history.",showCTA:Ct});case"THANKS_SESSION_FEEDBACK_CARD":return(0,e.jsx)(xs,{message:r,loading:w||z||ee,isPrimaryActionLoading:w,isSecondaryActionLoading:ee||z,handlePrimaryAction:Ee,handleSecondaryAction:pe,primaryActionText:"Continue chat",secondaryActionText:"Start new chat",iconSrc:xe.ASSETS.MESSAGE_MARKED_HELPFUL_ICON,title:"Thanks for your feedback",description:"Would you like to start a new chat? This session will close, but you can revisit it anytime in your chat history.",showCTA:Ct});case"MESSAGE_MARKED_UNHELPFUL":return(0,e.jsx)(xs,{message:r,loading:w||z||ee,isPrimaryActionLoading:w,isSecondaryActionLoading:w||ee||z,handlePrimaryAction:it,handleSecondaryAction:Ee,primaryActionText:"Submit support request",primaryActionClassName:Ie.messageBodyFooterPrimaryCta,secondaryActionClassName:Ie.messageBodyFooterSecondaryCta,secondaryActionText:"Continue chat",iconSrc:xe.ASSETS.MESSAGE_MARKED_UNHELPFUL_ICON,title:"Thanks for your feedback",description:"Still need help? Our support team is here to assist you.",showCTA:Ct,isSecondWarningState:!0});case"START_NEW_CHAT_CONFIRMATION":return(0,e.jsx)(xs,{message:r,loading:z||ee,isPrimaryActionLoading:z,isSecondaryActionLoading:ee,handlePrimaryAction:pe,handleSecondaryAction:Ee,primaryActionText:"Start new chat",secondaryActionText:"Cancel",iconSrc:xe.ASSETS.EXCLAMATION_TRIANGLE_ICON,title:"Start a new chat?",description:"This will end and clear your current conversation, but you can revisit it anytime in chat history.",showCTA:Ct,isSecondWarningState:!0});case"SESSION_ENDED_TIMEOUT":{const Nt=r.metadata;return Nt!=null&&Nt.sessionEndedActionTaken?(0,e.jsx)(xs,{message:r,loading:!1,iconSrc:xe.ASSETS.EXCLAMATION_TRIANGLE_ICON,title:"Session ended",description:"Chat ended due to inactivity. Start a new chat any time",showCTA:!1,isWarningState:!0}):(0,e.jsx)(xs,{message:r,loading:!1,iconSrc:xe.ASSETS.EXCLAMATION_TRIANGLE_ICON,title:"Session ended",description:"Chat ended due to inactivity. Start a new chat any time",showCTA:Ct,handlePrimaryAction:ve,handleSecondaryAction:Fe,primaryActionText:"Start new chat",secondaryActionText:"View chat history",isWarningState:!0})}case"COLLECT_FEEDBACK_CONFIRMATION":return(0,e.jsx)(xs,{message:r,loading:z,handlePrimaryAction:Tt,handleSecondaryAction:pe,isSecondaryActionLoading:z,primaryActionText:"Give feedback",secondaryActionText:"Maybe later",iconSrc:xe.ASSETS.COLLECT_FEEDBACK_CONFIRMATION_ICON,title:"How was your session?",description:"Your feedback helps us improve and takes just a few seconds.",showCTA:Ct,useNeutralBackground:!0,reduceIconSize:!0});case"COLLECT_FEEDBACK":{const Nt=(Qs=r.metadata)==null?void 0:Qs.postSessionTimeoutIntent,Dt={handleSubmitFeedback:xt,isSubmittingFeedback:Y,interactionDisabled:!yt||!R,showThanksSessionCard:_s(r.metadata),showSkip:!!Nt,skipText:"Skip",isSkipLoading:z,onSkip:()=>{r.messageId&&(jt==null||jt(r.messageId,r.messageType))}};return(0,e.jsx)($s,{...Dt})}case"CONVERSATION_CLOSED":return(0,e.jsx)(Cn,{message:r,countdown:Et,startCountdown:Lt,clearCountdown:Vt});case"CHAT_END_INDICATOR":return(0,e.jsx)(a.cG,{text:"Chat Closed",className:Ie.chatEndIndicator,textClassName:Ie.chatEndIndicatorText,dividerClassName:Ie.chatEndIndicatorDivider});case"FEEDBACK_COLLECTED":return(0,e.jsx)(jn,{message:r});case"INACTIVITY_FEEDBACK_PROMPT":{const Nt=ke(r.metadata)&&r.metadata.actionTaken===!0,Dt={primary:{type:"tertiary",icon:"pg-thumbs-up-o",text:"Yes, it helped",onClick:()=>{r.messageId&&(Ve==null||Ve(r.messageId,r.messageType))}},secondary:{type:"tertiary",icon:"pg-thumbs-down-o",text:"No, I need more help",onClick:()=>{r.messageId&&(ns==null||ns(r.messageId,r.messageType))}},disabled:Nt||!yt||!R};return(0,e.jsx)(Qe,{message:r,handleMessageFeedback:J,isRegisteringFeedback:!1,disableActions:re,newMessageLoading:se||X,onSubmitSupportRequest:Be,ctaConfig:Dt,suppressInteractiveCtas:!R})}case"FEEDBACK_AFTER_THANKS":{const Nt=js(r,j),Dt={primary:{type:"tertiary",text:"Not now",onClick:()=>{r.messageId&&(ks==null||ks(r.messageId))}},secondary:{type:"primary",text:"Provide feedback",onClick:()=>{r.messageId&&(bs==null||bs(r.messageId))}},disabled:Nt||!yt||!R};return(0,e.jsx)(Qe,{message:{...r,message:Bs.WITH_ACTIONS},handleMessageFeedback:J,isRegisteringFeedback:!1,disableActions:re,newMessageLoading:se||X,ctaConfig:Dt,suppressInteractiveCtas:!R})}case"WELCOME_MESSAGE":return(0,e.jsx)(Rt,{message:r.message,handleAskQuestion:()=>{lt==null||lt()},handleReportIssue:()=>{gt==null||gt()},showCTA:es,disableInteraction:r.disableInteraction});case"SYSTEM_REMINDER":default:{const Nt=Us(r.message);return(0,e.jsx)(Qe,{message:{...r,message:Nt},handleMessageFeedback:J,isRegisteringFeedback:!1,disableActions:re,newMessageLoading:se||X,onSubmitSupportRequest:Be,shouldNudge:Ht,onNudgeShown:Gt,suppressInteractiveCtas:!R})}}};var Jt=t(436492);const Qt=async r=>{const{data:j}=await(0,S.i4K)(r);return j},ps=r=>(0,M.useMutation)({mutationFn:j=>Qt(j),...r}),an=({messagesContainerRef:r})=>{const j=ne(),R=(0,o.iZ)(),{mutate:w,isLoading:z}=ps({onSuccess:Y=>{j(se=>{var X,re;const{feedbackFor:J="",messageType:Ee}=Y;if(Ee==="MESSAGE_MARKED_HELPFUL_TEMP")return se;const pe=se.findIndex(ve=>ve.messageId===J);if(pe===-1)return[...se,Y];const Ce=(X=se.map((ve,Fe)=>({message:ve,index:Fe})).filter(({message:ve})=>ve.requiresFeedback===!0).pop())==null?void 0:X.index;if(Ce!==void 0&&pe===Ce){const ve=(0,Jt.A)(se),Fe=se.findIndex(it=>it.messageType==="INACTIVITY_FEEDBACK_PROMPT"&&_t(it)===J),Be=Fe!==-1?Fe:pe;return ve.splice(Be+1,0,Y),r.current&&(0,g.kXs)(r.current,(re=r.current)==null?void 0:re.scrollHeight,800),ve}return se});const ee=R==null?void 0:R.user;
92d.A.invalidateQueries(Je(ee))},onError:()=>{(0,g.mei)("Error occurred while registering feedback","error")}});return{giveResponseFeedback:w,isRegisteringFeedback:z}};var Hs=t(741863);const Nn=async r=>{const{data:j}=await(0,S.Rt8)({sessionAddress:r.sessionAddress});return j},In=r=>(0,M.useMutation)({mutationFn:j=>Nn(j),...r}),Ln=async r=>{const{messageId:j,actionTaken:R}=r,{data:w}=await(0,S.ETd)({messageId:j,actionTaken:R});return w},Pn=r=>(0,M.useMutation)({mutationFn:j=>Ln(j),...r}),Sn=async r=>{const{data:j}=await(0,S.kn_)(r);return j},yn=r=>(0,M.useMutation)({mutationFn:Sn,...r}),bn=(r,j)=>be(r).flatMap(R=>!!j&&R.messageId===j?[]:[R]),Mn=r=>{d.A.invalidateQueries([I.w.chatHistory,"user",r]),d.A.invalidateQueries([I.w.activeSession,r])},kn=r=>r.some(j=>j.messageType==="FEEDBACK_COLLECTED"),Qn=(r,j)=>j===!0||kn(r),vo=r=>kn(r),Jn=()=>{const r=Se(),j=ne(),R=(0,o.iZ)(),[w]=le(),z=ce(),Y=vs(),ee=nn(),se=De(),X=(0,s.useRef)("start_new_chat"),{mutate:re,isLoading:J}=In({onSuccess:(it,Tt)=>{var xt;const jt=Tt,Et=(xt=jt.afterCloseIntent)!=null?xt:"start_new_chat";se(Et),z(""),jt.sessionAddress&&d.A.invalidateQueries([I.w.chatHistoryForSession,jt.sessionAddress]),j(Lt=>{const Vt=Lt.filter(lt=>!["TICKET_CREATION_SUCCESS","MESSAGE_MARKED_HELPFUL","MESSAGE_MARKED_UNHELPFUL","THANKS_SESSION_FEEDBACK_CARD","START_NEW_CHAT_CONFIRMATION","COLLECT_FEEDBACK_CONFIRMATION","COLLECT_FEEDBACK"].includes(lt.messageType));return Vt.push({message:"Conversation saved",messageId:(0,p.A)(),messageType:"CONVERSATION_CLOSED",requiresFeedback:!1,isHelpful:!1,createdAt:new Date,metadata:{afterCloseIntent:Et}}),Vt}),R!=null&&R.user&&Mn(R.user)},onError:it=>{(0,g.mei)("Unable to close session","error"),console.error("Unable to close session",it)}}),{mutate:Ee,isLoading:pe}=yn({onSuccess:(it,Tt)=>{const xt=Tt,{feedbackScore:jt,feedbackComment:Et}=xt,Lt=xt.showThanksSessionCard===!0,Vt=it==null?void 0:it.thanksSessionFeedbackCardMessageId;if(Y(5),ee(""),j(lt=>{var gt;const es=lt.find(Ve=>Ve.messageType==="COLLECT_FEEDBACK"),Ht=es==null?void 0:es.metadata;X.current=(gt=Ht==null?void 0:Ht.postSessionTimeoutIntent)!=null?gt:"start_new_chat";const Gt=lt.filter(Ve=>Ve.messageType!=="COLLECT_FEEDBACK_CONFIRMATION"&&Ve.messageType!=="COLLECT_FEEDBACK");if(kn(Gt)||Gt.push({message:Et!=null?Et:"",messageId:(0,p.A)(),messageType:"FEEDBACK_COLLECTED",requiresFeedback:!1,isHelpful:!1,createdAt:new Date,metadata:{feedbackScore:jt,feedbackComment:Et!=null?Et:""}}),Lt){if(!Vt)return Gt;Gt.push({message:"Thanks for your feedback",messageId:Vt,messageType:"THANKS_SESSION_FEEDBACK_CARD",requiresFeedback:!1,isHelpful:!1,createdAt:new Date})}return Gt}),Lt&&!Vt){(0,g.mei)("Unable to show thanks confirmation","error");return}!Lt&&w&&re({sessionAddress:w,afterCloseIntent:X.current})},onError:it=>{(0,g.mei)("Unable to submit feedback","error"),console.error("Unable to submit feedback",it)}}),{mutate:Ce,isLoading:ve}=H({onSuccess:()=>{b(j)},onError:it=>{(0,g.mei)("Unable to move to feedback stage","error"),console.error("Unable to move to feedback stage",it)}}),{mutate:Fe,isLoading:Be}=Pn({onSuccess:(it,Tt)=>{const{actionTaken:xt,skipMoveToFeedbackStage:jt}=Tt;if(xt==="conversation_closed"&&(r({cta:"Close conversation"}),w)){const Et=(0,K.zp)().get(oe);Qn(Et,jt)?re({sessionAddress:w}):Ce({sessionAddress:w})}if(xt==="chat_continued"){const{messageId:Et}=Tt;j(Lt=>bn(Lt,Et))}xt==="submit_ticket"&&j(Et=>be(Et))},onError:(it,Tt)=>{const{actionTaken:xt}=Tt;if(xt==="conversation_closed"&&(0,g.mei)("Error occurred while closing conversation","error"),xt==="chat_continued"){(0,g.mei)("Error occurred while continuing chat","error");const{messageId:jt}=Tt;j(Et=>bn(Et,jt))}xt==="submit_ticket"&&((0,g.mei)("Error occurred while submitting support request","error"),j(jt=>be(jt)))}});return{closeSession:re,moveToFeedbackStage:Ce,submitFeedback:Ee,recordActionTakenOnSystemMessage:Fe,isRecordingActionTaken:Be,isClosingSession:J,isMovingToFeedbackStage:ve,isSubmittingFeedback:pe,supportWidgetTracking:r}},Zn=({messages:r,sessionAddress:j,closeSession:R,isSubmittingFeedback:w,isClosingSession:z})=>{const Y=(0,s.useMemo)(()=>r.some(ee=>ee.messageType==="FEEDBACK_COLLECTED"||ee.messageType==="CONVERSATION_CLOSED")?null:r.some(ee=>ee.messageType==="COLLECT_FEEDBACK")?"form":r.some(ee=>ee.messageType==="COLLECT_FEEDBACK_CONFIRMATION")?"confirmation":null,[r]);(0,s.useEffect)(()=>
92{if(!j||!Y||w||z)return;const ee=window.setTimeout(()=>{R({sessionAddress:j})},Oe);return()=>window.clearTimeout(ee)},[R,Y,z,w,j])},Xn=(r,j,R,w,z)=>{const Y=ne(),ee=gn(),[se]=ft(),X=Se(),{closeSession:re,moveToFeedbackStage:J,submitFeedback:Ee,recordActionTakenOnSystemMessage:pe,isRecordingActionTaken:Ce,isClosingSession:ve,isMovingToFeedbackStage:Fe,isSubmittingFeedback:Be}=Jn();Zn({messages:r,sessionAddress:j,closeSession:re,isSubmittingFeedback:Be,isClosingSession:ve});const it=(0,s.useCallback)((vt,yt,Ct=!1)=>{const Ut=r==null?void 0:r.map(Ft=>Ft.messageId===yt?{...Ft,isHelpful:vt}:Ft);X({cta:vt?"Answer marked as helpful":"Answer marked as unhelpful",...Ct&&{pgAnalyticsOrigin:"Nudge"}}),Y(Ut)},[r,Y,X]),Tt=(0,s.useCallback)((vt,yt)=>{if(yt==="START_NEW_CHAT_CONFIRMATION"&&j){Y(Ut=>Ut.filter(Ft=>Ft.messageType!=="START_NEW_CHAT_CONFIRMATION"));return}(yt==="TICKET_CREATION_SUCCESS"||yt==="MESSAGE_MARKED_HELPFUL"||yt==="MESSAGE_MARKED_UNHELPFUL"||yt==="THANKS_SESSION_FEEDBACK_CARD")&&(X({cta:"Continue chat"}),j||Y(Ut=>bn(Ut,vt))),j?pe({messageId:vt,actionTaken:"chat_continued"}):Y(Ut=>Ut.filter(Ft=>Ft.messageType!=="TICKET_CREATION_SUCCESS"&&Ft.messageType!=="MESSAGE_MARKED_HELPFUL"&&Ft.messageType!=="MESSAGE_MARKED_UNHELPFUL"))},[pe,j,Y,X]),xt=(0,s.useCallback)((vt,yt)=>{var Ct,Ut;const Ft=kn(r);if(yt==="COLLECT_FEEDBACK_CONFIRMATION"){if(X({cta:"Maybe later"}),j){const Nt=r.find(mt=>mt.messageId===vt&&mt.messageType==="COLLECT_FEEDBACK_CONFIRMATION"),Dt=(Ut=(Ct=Nt==null?void 0:Nt.metadata)==null?void 0:Ct.postSessionTimeoutIntent)!=null?Ut:"start_new_chat";re({sessionAddress:j,afterCloseIntent:Dt})}return}if(Ft&&j&&yt==="START_NEW_CHAT_CONFIRMATION"){re({sessionAddress:j});return}if(yt==="START_NEW_CHAT_CONFIRMATION"&&j){J({sessionAddress:j});return}j&&pe({messageId:vt,actionTaken:"conversation_closed"})},[re,J,pe,j,r,X]),jt=(0,s.useCallback)((vt,yt)=>{if(R){(0,g.mei)("A support request has already been created.","error","Please close or continue the conversation to create a new one.");return}X({cta:"Submit a support request"});const{messageId:Ct,recordAction:Ut=!1}=yt!=null?yt:{};Ut&&j&&Ct?pe({messageId:Ct,actionTaken:"submit_ticket"}):Y(Ft=>be(Ft)),(0,st.A)(se)&&vt(),ee("create-ticket")},[R,j,se,Y,ee,pe,X]),Et=(0,s.useCallback)(vt=>{jt(vt)},[jt]),Lt=(0,s.useCallback)((vt,yt)=>{X({cta:"Submit a support request"}),jt(vt,{messageId:yt,recordAction:!0})},[jt]),Vt=(0,s.useCallback)((vt,yt)=>{if(w){vt.preventDefault();return}vt.target.closest('a[target="#createTicket"]')&&(vt.preventDefault(),Et(yt))},[w,Et]),lt=(0,s.useCallback)(()=>{ee(Pe.CHAT_HISTORY)},[ee]),gt=(0,s.useCallback)((vt,yt)=>{yt==="SESSION_ENDED_TIMEOUT"&&(X({cta:"Start new chat"}),Y(Ct=>m(Ct,vt,"start_new_chat")),(0,Hs.A)(z)&&z())},[Y,z,X]),es=(0,s.useCallback)((vt,yt)=>{yt==="SESSION_ENDED_TIMEOUT"&&(X({cta:"View chat history"}),Y(Ct=>m(Ct,vt,"view_chat_history")),(0,Hs.A)(z)&&z())},[Y,z,X]),Ht=(0,s.useCallback)(vt=>{X({cta:"Give feedback"}),Y(yt=>{let Ct=yt;vt&&(Ct=yt.map(Dt=>Dt.messageId===vt?{...Dt,metadata:{...Dt.metadata,actionTaken:!0}}:Dt));const Ut=Ct.filter(Dt=>Dt.messageType!=="COLLECT_FEEDBACK_CONFIRMATION"),Ft=Ct.find(Dt=>Dt.messageType==="COLLECT_FEEDBACK_CONFIRMATION"),Nt=Ft!=null&&Ft.metadata&&typeof Ft.metadata=="object"&&"postSessionTimeoutIntent"in Ft.metadata&&Ft.metadata.postSessionTimeoutIntent?Ft.metadata.postSessionTimeoutIntent:void 0;return Ut.push({message:"Leave feedback",messageId:(0,p.A)(),messageType:"COLLECT_FEEDBACK",requiresFeedback:!1,isHelpful:!1,createdAt:new Date,...vt?{metadata:{thanksSessionFollowUp:!0}}:Nt?{metadata:{postSessionTimeoutIntent:Nt}}:{}}),Ut}),(0,Hs.A)(z)&&z()},[Y,z,X]),Gt=(0,s.useCallback)(()=>{Ht(void 0)},[Ht]),Ve=(0,s.useCallback)(vt=>{Ht(vt)},[Ht]),ns=(0,s.useCallback)(vt=>{Y(yt=>{const Ct=yt.map(Ut=>Ut.messageType==="FEEDBACK_AFTER_THANKS"&&Ut.messageId===vt?{...Ut,metadata:{...Ut.metadata,actionTaken:!0}}:Ut);return Ct.push({message:"<p>No problem. What can I help you with next?</p>",messageId:(0,p.A)(),messageType:"BOT_RESPONSE",requiresFeedback:!1,isHelpful:!1,createdAt:new Date,isBotMessage:!0}),Ct})},[Y]),bs=(0,s.useCallback)((vt,yt,Ct)=>{j&&Ee({sessionAddress:j,feedbackScore:vt,feedbackComment:yt,...Ct?{showThanksSessionCard:!0}:{}})},[j,Ee]),ks=(0,s.useCallback)((vt,yt)=>{if(!j||yt!=="COLLECT_FEEDBACK")return;const Ct=r.find(Nt=>Nt.messageId===vt&&Nt.messageType==="COLLECT_FEEDBACK"),Ut=Ct==null?void 0:Ct.metadata,Ft=Ut==null?void 0:Ut.postSessionTimeoutIntent;Ft&&(X({cta:"Maybe later"}),re({sessionAddress:j,afterCloseIntent:Ft}))},[re,r,j,X]),Qs=(0,s.useCallback)((vt,yt,Ct,Ut)=>{const Ft=r==null?void 0:r.map(Nt=>Nt.messageId===Ct?{...Nt,isHelpful:vt}
92:Nt.messageId===yt?{...Nt,metadata:{...Nt.metadata,actionTaken:!0}}:Nt);X({cta:vt?"Answer marked as helpful":"Answer marked as unhelpful"}),Y(Ft),Ut({isHelpful:vt,messageId:Ct})},[r,Y,X]),rn=(0,s.useCallback)((vt,yt,Ct)=>Qs(!0,vt,yt,Ct),[Qs]),hn=(0,s.useCallback)((vt,yt,Ct)=>Qs(!1,vt,yt,Ct),[Qs]);return{handleMessageFeedback:it,handleContinueChat:Tt,handleCloseConversation:xt,handleOpenCreateTicketFromMessage:Et,handleSupportRequestLinkClick:Vt,handleViewChatHistory:lt,handleSessionEndedStartNewChat:gt,handleSessionEndedViewHistory:es,handleSubmitTicketCTA:Lt,handleConfirmFeedback:Gt,handleSubmitFeedback:bs,handleSkipFeedback:ks,handleFeedbackAfterThanksSure:Ve,handleFeedbackAfterThanksNotSure:ns,handleInactivityFeedbackYes:rn,handleInactivityFeedbackNo:hn,isRecordingActionTaken:Ce,isSubmittingFeedback:Be,isMovingToFeedbackStage:Fe,isClosingSession:ve}},qn=(r,j)=>{const[R,w]=Q(),z=(0,s.useRef)(0),Y=(0,s.useRef)(R);(0,s.useEffect)(()=>{Y.current=R},[R]);const ee=(0,s.useCallback)(()=>{const se=Y.current;se.length>0&&se.some(re=>!re.viewedAt)&&w(Me(se))},[w]);return(0,s.useEffect)(()=>{j&&R.length>0&&ee()},[j,R.length,ee]),(0,s.useEffect)(()=>{const se=r.current;if(!se||!j)return;const X=()=>{const{scrollTop:re,scrollHeight:J,clientHeight:Ee}=se,pe=re+Ee>=J-10,ve=re-z.current>50;(pe||ve)&&ee(),z.current=re};return se.addEventListener("scroll",X,{passive:!0}),()=>se.removeEventListener("scroll",X)},[j,ee,r]),{markMessagesAsViewedIfNeeded:ee}},ea=new Set(["SESSION_ENDED_TIMEOUT","CHAT_END_INDICATOR","CONVERSATION_CLOSED"]),ta=new Set(["TICKET_CREATION_SUCCESS","MESSAGE_MARKED_HELPFUL","THANKS_SESSION_FEEDBACK_CARD","MESSAGE_MARKED_UNHELPFUL"]);function sa(r){return r.some(j=>ea.has(j.messageType))}function na(r,j){return ta.has(r.messageType)&&sa(j)}const aa=(r,j,R)=>{if(r.disableInteraction)return!1;const w=(R==null?void 0:R.showWelcomeCTA)!==!1;switch(r.messageType){case"TICKET_CREATION_SUCCESS":case"MESSAGE_MARKED_HELPFUL":case"THANKS_SESSION_FEEDBACK_CARD":case"MESSAGE_MARKED_UNHELPFUL":return!na(r,j);case"START_NEW_CHAT_CONFIRMATION":case"COLLECT_FEEDBACK_CONFIRMATION":return!0;case"SESSION_ENDED_TIMEOUT":{const z=r.metadata;return!(z!=null&&z.sessionEndedActionTaken)}case"COLLECT_FEEDBACK":return!0;case"CONVERSATION_CLOSED":case"CHAT_END_INDICATOR":case"FEEDBACK_COLLECTED":return!1;case"INACTIVITY_FEEDBACK_PROMPT":return!(ke(r.metadata)&&r.metadata.actionTaken===!0);case"FEEDBACK_AFTER_THANKS":return!js(r,j);case"WELCOME_MESSAGE":return w;case"USER_MESSAGE":case"INITIAL_USER_PROMPT":return!1;default:{const z=r.messageType!=="USER_MESSAGE"&&typeof r.message=="string"&&Ls(r.message),Y=r.requiresFeedback===!0&&(0,st.A)(r.isHelpful);return!!(z||Y)}}},oa=(r,j)=>{for(let R=r.length-1;R>=0;R-=1)if(aa(r[R],r,j))return R;return-1};var ra=t(537953);const{FEEDBACK_NUDGE_STORAGE_KEY:Wn}=xe,ia=({messages:r,isActiveSessionLoading:j,isCreatingSession:R,isGeneratingResponse:w,messagesContainerRef:z,disableTicketHyperlink:Y,disableActions:ee,handleGenerateZendeskFormData:se,countdown:X,startCountdown:re,clearCountdown:J,scrollToBottomAndFocus:Ee,bottomSpacerRef:pe,handleAskQuestion:Ce,handleReportIssue:ve,showWelcomeCTA:Fe=!0})=>{const[Be]=le(),[it]=(0,Bt.X)(),Tt=R||w||j,{giveResponseFeedback:xt}=an({messagesContainerRef:z});qn(z,it);const{handleMessageFeedback:jt,handleContinueChat:Et,handleCloseConversation:Lt,handleOpenCreateTicketFromMessage:Vt,handleSupportRequestLinkClick:lt,handleViewChatHistory:gt,handleSessionEndedStartNewChat:es,handleSessionEndedViewHistory:Ht,handleSubmitTicketCTA:Gt,handleConfirmFeedback:Ve,handleSubmitFeedback:ns,handleSkipFeedback:bs,handleFeedbackAfterThanksSure:ks,handleFeedbackAfterThanksNotSure:Qs,handleInactivityFeedbackYes:rn,handleInactivityFeedbackNo:hn,isRecordingActionTaken:vt,isClosingSession:yt,isSubmittingFeedback:Ct,isMovingToFeedbackStage:Ut}=Xn(r,Be,Y,ee,Ee),Ft=(zt,qs)=>{const en=qs===An.current;jt(zt,qs,en),en&&(An.current=null),xt({isHelpful:zt,messageId:qs})},Nt=(0,s.useCallback)(zt=>_t(r.find(qs=>qs.messageId===zt)),[r]),Dt=(0,s.useCallback)((zt,qs)=>{const en=Nt(zt);en&&rn(zt,en,xt)},[Nt,rn,xt]),mt=(0,s.useCallback)((zt,qs)=>{const en=Nt(zt);en&&hn(zt,en,xt)},[Nt,hn,xt]),Zt=(0,s.useRef)(!1),An=(0,s.useRef)(null),mn=(0,s.useMemo)(()=>{var zt,qs;if(Zt.current)return null;try{if(localStorage.getItem(Wn))return null}catch(Hn){return null}return(qs=(zt=r.filter(Hn=>Hn.requiresFeedback===!0&&Hn.isHelpful===void 0).at(-1))==null?void 0:zt.messageId)!=null?qs:null},[r]),On=(0,s.useMemo)(()=>oa(r,{showWelcomeCTA:Fe}),[r,Fe]),fo=(0,s.useCallback)(zt=>{Zt.current=!0,An.current=zt;try{localStorage.setItem(Wn,"true")}catch(qs){}},[]);return(0,e.jsxs)("div",{className:Ie.messages,ref:z,role:"log","aria-label":"Chat conversation","aria-live":"polite","aria-atomic":"false",onClick:zt=>lt(zt,se),onKeyDown:zt=>
92{if(zt.target.tagName!=="TEXTAREA"&&(zt.key==="Enter"||zt.key===" ")){zt.preventDefault();const en={target:zt.target,preventDefault:()=>zt.preventDefault(),stopPropagation:()=>zt.stopPropagation()};lt(en,se)}},tabIndex:0,children:[r==null?void 0:r.map((zt,qs)=>{var en;return(0,e.jsx)(s.Fragment,{children:(0,e.jsx)(rs,{message:zt,allMessages:r,isLatestInteractiveCtaMessage:On>=0&&qs===On,isRecordingActionTaken:vt,isClosingSession:yt,isSubmittingFeedback:Ct,isMovingToFeedbackStage:Ut,isGeneratingResponse:w,isCreatingSession:R,disableActions:!!ee||!!zt.disableInteraction,handleMessageFeedback:Ft,handleContinueChat:Et,handleCloseConversation:Lt,countdown:X,startCountdown:re,handleViewChatHistory:gt,handleSessionEndedStartNewChat:es,handleSessionEndedViewHistory:Ht,clearCountdown:J,handleOpenCreateTicket:()=>Vt(se),handleSubmitTicket:()=>Gt(se,zt.messageId||""),handleConfirmFeedback:Ve,handleSubmitFeedback:ns,handleSkipFeedback:bs,shouldNudge:zt.messageId===mn,onNudgeShown:fo,handleInactivityFeedbackYes:Dt,handleInactivityFeedbackNo:mt,handleFeedbackAfterThanksSure:ks,handleFeedbackAfterThanksNotSure:Qs,handleAskQuestion:Ce,handleReportIssue:ve,showWelcomeCTA:Fe})},zt.messageId||`${(en=zt.createdAt)==null?void 0:en.toString()}-${(0,p.A)()}`)}),Tt&&(0,e.jsx)("div",{className:Ie.chatMessageResponse,role:"status","aria-label":"Assistant is typing",children:(0,e.jsx)(cn,{})}),(0,e.jsx)("div",{ref:pe,className:Ie.messagesBottomSpacer,"aria-hidden":!0})]})},Kn=ra.memo(ia),la=({handleGenerateZendeskFormData:r,activeSession:j,isActiveSessionLoading:R,resetInactivityTimer:w,countdown:z,startCountdown:Y,clearCountdown:ee})=>{const[se]=(0,Bt.X)(),[X,re]=Q(),[J,Ee]=(0,s.useState)(""),[pe,Ce]=le(),[ve,Fe]=rt(),{messagesContainerRef:Be,bottomSpacerRef:it,scrollLatestUserMessageToTop:Tt,clearBottomSpacerPreserveViewport:xt,scrollToBottomAndFocus:jt}=at(ve),Et=(0,s.useRef)(null),Lt=(0,s.useRef)(!1),Vt=(0,s.useRef)(!1),lt=(0,s.useRef)(!1),gt=(0,o.iZ)(),es=Ne(),Ht=gn(),Gt=(0,s.useRef)(!1),Ve=Se(),ns=(0,s.useCallback)(()=>{Gt.current=!0,re(mt=>[...mt.map(Zt=>Zt.messageType==="WELCOME_MESSAGE"?{...Zt,disableInteraction:!0}:Zt),...je.map(Zt=>({message:Zt.content,messageType:Zt.messageType,createdAt:new Date,isBotMessage:Zt.isBotMessage,requiresFeedback:!1}))]),Ve({cta:"Ask a Question"}),setTimeout(()=>{var mt;jt(),(mt=Et.current)==null||mt.focus()},100)},[jt,re,Ve]),bs=(0,s.useCallback)(()=>{Ve({cta:"Report Issue"}),Ht(Pe.CREATE_TICKET)},[Ht,Ve]),ks=()=>{Vt.current=!0},{mutate:Qs}=Ge({onSuccess:mt=>{const{address:Zt,...An}=mt;Ce(Zt),re(mn=>[...mn,An]),es(null),Fe(mn=>({...mn,isCreatingSession:!1})),gt!=null&&gt.user&&d.A.invalidateQueries([I.w.chatHistory,"user",gt.user]),d.A.invalidateQueries([I.w.activeSession]),d.A.invalidateQueries([I.w.chatHistoryForSession,Zt]),ks()},onError:mt=>{var Zt,An;const mn=(An=(Zt=mt.response)==null?void 0:Zt.data)==null?void 0:An.address;mn&&Ce(mn),re(On=>[...On,{message:"I apologize, but I encountered an error processing your request. Please ask the question again or submit a support request. Our team usually responds within 24 hours.<!-- SUPPORT_REQUEST_CTA -->",createdAt:new Date,messageType:"ERROR",requiresFeedback:!1}]),es(null),Fe(On=>({...On,isCreatingSession:!1})),ks()}}),{mutate:rn}=qe({onSuccess:(mt,Zt)=>{const{sessionAddress:An}=Zt;re(mn=>[...mn,{...mt,content:mt.message}]),es(null),Fe(mn=>({...mn,isGeneratingResponse:!1})),An&&(d.A.invalidateQueries([I.w.activeSession]),d.A.invalidateQueries([I.w.chatHistoryForSession,An])),gt!=null&&gt.user&&d.A.invalidateQueries([I.w.chatHistory,"user",gt.user]),ks()},onError:()=>{re(mt=>[...mt,{message:"I apologize, but I encountered an error processing your request. Please ask the question again or submit a support request. Our team usually responds within 24 hours.<!-- SUPPORT_REQUEST_CTA -->",createdAt:new Date,messageType:"ERROR",requiresFeedback:!1}]),es(null),Fe(mt=>({...mt,isGeneratingResponse:!1})),ks()}}),hn=()=>{if(J.trim().length!==0){if((j==null?void 0:j.status)==="not_found"&&pe===""){Fe(Zt=>({...Zt,isCreatingSession:!0}));const mt=Gt.current?je:void 0;Qs({userQuestion:(0,Xe.a)(J),initialMessages:mt}),Gt.current=!1}else Fe(mt=>({...mt,isGeneratingResponse:!0}
92)),rn({userQuestion:(0,Xe.a)(J),sessionAddress:pe});re(mt=>[...be(mt).map(Zt=>Zt.messageType==="WELCOME_MESSAGE"?{...Zt,disableInteraction:!0}:Zt),{message:J,messageType:"USER_MESSAGE",createdAt:new Date,isBotMessage:!1}]),lt.current=!0,Ee(""),w(),Ve({cta:"Question sent"})}},vt=mt=>{(mt.key==="Enter"||mt.code==="Enter")&&!mt.shiftKey&&J.trim().length>0&&hn()},yt=(0,s.useMemo)(()=>X.some(mt=>mt.messageType==="CONVERSATION_CLOSED"),[X]);(0,s.useEffect)(()=>{yt&&jt()},[z,yt,jt]);const Ct=(R!=null?R:!1)||ve.isGeneratingResponse||ve.isCreatingSession||J.trim().length===0,Ut=xe.MESSAGES_WITH_HIDDEN_INPUTS,Ft=X.some(mt=>{var Zt;return Ut.includes(mt.messageType)?mt.messageType==="TICKET_CREATION_SUCCESS"?!((Zt=mt.metadata)!=null&&Zt.chatContinued):mt.messageType==="FEEDBACK_AFTER_THANKS"?!js(mt,X):!0:!1}),Nt=X.some(mt=>xe.MESSAGES_THAT_DISABLE_TICKET_LINK.includes(mt.messageType)),Dt=(0,s.useMemo)(()=>ve.isGeneratingResponse||ve.isCreatingSession,[ve.isCreatingSession,ve.isGeneratingResponse]);return(0,s.useLayoutEffect)(()=>{Vt.current&&(Vt.current=!1,xt()),lt.current&&(lt.current=!1,(ve.isGeneratingResponse||ve.isCreatingSession)&&Tt());const mt=X[X.length-1];mt&&mt.messageType!=="USER_MESSAGE"&&xt()},[X,ve.isGeneratingResponse,ve.isCreatingSession,xt,Tt]),(0,s.useLayoutEffect)(()=>{var mt;Ft||Dt||(mt=Et.current)==null||mt.focus({preventScroll:!0})},[Ft,Dt]),(0,s.useEffect)(()=>{se&&!Lt.current&&X.length>0&&jt(),Lt.current=se},[se,X.length,jt]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Kn,{messages:X,isActiveSessionLoading:R!=null?R:!1,isCreatingSession:ve.isCreatingSession,isGeneratingResponse:ve.isGeneratingResponse,messagesContainerRef:Be,disableTicketHyperlink:Nt,handleGenerateZendeskFormData:r,disableActions:!1,countdown:z,startCountdown:Y,clearCountdown:ee,scrollToBottomAndFocus:jt,handleAskQuestion:ns,handleReportIssue:bs,bottomSpacerRef:it}),!Ft&&(0,e.jsxs)("div",{className:Ie.actions,children:[(0,e.jsxs)("div",{role:"group","aria-label":"Message input area",className:Ie.actionsInputContainer,children:[(0,e.jsx)("label",{htmlFor:"ai-support-widget-message-input",className:"sr-only",children:"Enter your message here"}),(0,e.jsx)(a.fs,{id:"ai-support-widget-message-input",ref:Et,className:Ie.actionsInput,placeholder:"What would you like help with?",readOnly:Dt,"aria-disabled":Dt,onChange:mt=>Ee(mt),value:J,onKeyDown:vt,autoFocus:!0,autoComplete:"off",rows:3,resizeNone:!0}),(0,e.jsx)(a.K0,{icon:"pg-send-message-o",className:Ie.actionsButton,iconProps:{size:16,color:"#ffffff"},onClick:hn,disabled:Ct,"aria-label":"Send message",type:"primary"})]}),(0,e.jsx)("span",{className:Ie.actionsDisclaimer,children:"AI can make mistakes. Please double-check the responses."})]})]})},ds={createTicket:"createTicket___0N1Z",createTicketContent:"createTicketContent__Ucxnk",createTicketHeader:"createTicketHeader__Sx8tp",createTicketHeaderTitle:"createTicketHeaderTitle__iTIAu",createTicketBody:"createTicketBody__KdiVZ",createTicketSelect:"createTicketSelect__n2tkD",fileUpload:"fileUpload__rB2kM",fileUploadLabel:"fileUploadLabel__QJWkG",uploadedFiles:"uploadedFiles__rvrKJ",fileCard:"fileCard__I4uxx",fileCardContent:"fileCardContent__OzRq6",fileCardName:"fileCardName__J3Y0y",fileCardSize:"fileCardSize__qZXWa",fileCardRemoveButton:"fileCardRemoveButton__r2zjV",emailFollowupLabel:"emailFollowupLabel__z_7Cf",emailFollowupRadioButtons:"emailFollowupRadioButtons__KmdM5",emailFollowupRadioInput:"emailFollowupRadioInput__NZrE3",createTicketFooter:"createTicketFooter__uGCsA",createTicketSubmitButton:"createTicketSubmitButton__GE6wI",loadingOverlay:"loadingOverlay__GUfVI",confirmationOverlay:"confirmationOverlay__VGVDy",cardEnter:"cardEnter__Gdy7_",fadeIn:"fadeIn__pdBzk",cardExit:"cardExit__qAjIr",fadeOut:"fadeOut__ON33U",confirmationModal:"confirmationModal__il0OH",confirmationModalIcon:"confirmationModalIcon__OLwij",confirmationModalBody:"confirmationModalBody__dzICG",confirmationModalTitle:"confirmationModalTitle__t3QaS",confirmationModalText:"confirmationModalText__gEEBA",confirmationModalFooter:"confirmationModalFooter__FDq3U"},ca=(r,j,R,w,z)=>{(0,s.useEffect)(()=>
92{if(!r)return;z(document.activeElement);const Y=()=>{w.current&&w.current.focus()},ee=X=>{var re;if(r)switch(X.key){case"Escape":X.preventDefault(),j();break;case"Tab":{const J=(re=R.current)==null?void 0:re.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(!J||J.length===0)return;const Ee=J[0],pe=J[J.length-1];X.shiftKey?document.activeElement===Ee&&(X.preventDefault(),pe.focus()):document.activeElement===pe&&(X.preventDefault(),Ee.focus());break}}};document.addEventListener("keydown",ee);const se=setTimeout(Y,100);return()=>{document.removeEventListener("keydown",ee),clearTimeout(se)}},[r,j,R,w,z])},da=({onConfirm:r,onCancel:j,show:R})=>{const[w,z]=(0,s.useState)(!1),Y=(0,s.useRef)(null),ee=(0,s.useRef)(null),se=(0,s.useRef)(null),X=(0,s.useRef)(null),re=(0,s.useRef)(null),J=()=>{z(!0),re.current=setTimeout(()=>{X.current&&X.current.focus(),j()},300)};ca(R,J,Y,ee,pe=>{X.current=pe});const Ee=()=>{X.current&&X.current.focus(),r()};return(0,s.useEffect)(()=>()=>{re.current&&clearTimeout(re.current)},[]),!R&&!w?null:(0,e.jsx)("dialog",{className:(0,ue.A)(ds.confirmationOverlay,{[ds.cardExit]:w,[ds.cardEnter]:!w}),"aria-modal":"true","aria-labelledby":"confirmation-modal-title","aria-describedby":"confirmation-modal-description",children:(0,e.jsxs)("div",{ref:Y,className:ds.confirmationModal,tabIndex:-1,children:[(0,e.jsxs)("div",{className:ds.confirmationModalBody,children:[(0,e.jsx)(a.C0,{src:xe.ASSETS.EXCLAMATION_TRIANGLE_ICON,size:49,className:ds.confirmationModalIcon,"aria-hidden":"true"}),(0,e.jsx)("h3",{id:"confirmation-modal-title",className:ds.confirmationModalTitle,children:"Are you sure?"}),(0,e.jsx)("p",{id:"confirmation-modal-description",className:ds.confirmationModalText,children:"This will clear the form and take you back to the main chat."})]}),(0,e.jsxs)("div",{className:ds.confirmationModalFooter,children:[(0,e.jsx)(a.$n,{ref:ee,onClick:J,type:"tertiary","aria-label":"Cancel and stay on current form",children:"Cancel"}),(0,e.jsx)(a.$n,{ref:se,onClick:Ee,type:"primary","aria-label":"Confirm and go back to chat",children:"Go back"})]})]})})};var ua=t(471378);const ha=r=>{const{FILE_FORMATS:j}=xe.ASSETS,R=(0,h.A)(r,"file.extension","generic");return j[R]||j.generic},ma=r=>{const j=(0,o.lx)(),{value:R=[],onChange:w,label:z,disabled:Y,scrollableContainerRef:ee}=r,se=(0,s.useRef)(R==null?void 0:R.length);(0,s.useEffect)(()=>{R&&se.current<R.length&&ee!=null&&ee.current&&ee.current.scrollTo({top:ee.current.scrollHeight,behavior:"smooth"}),se.current=R==null?void 0:R.length},[R,ee]);const X=J=>{const{filesUploaded:Ee=[],file:pe}=J;if(Ee.length>0){const ve=[{...Ee[0],file:pe},...R];w(ve)}else(0,g.mei)("Error uploading file! Please try again.","error")},re=J=>{const Ee=[...R];Ee.splice(J,1),w(Ee)};return(0,e.jsxs)("div",{className:ds.fileUpload,children:[(0,e.jsx)("div",{id:"ticket-file-uploader",className:ds.fileUploadLabel,children:z}),(0,e.jsx)(ua.A,{path:"/support/ticket/",render:({onPick:J})=>(0,e.jsx)(a.$n,{onClick:J,type:"secondary",icon:"pg-plus-o","aria-labelledby":"ticket-file-uploader",disabled:Y,children:"Add File(s)"}),onSuccess:X,access:"private",hubId:j.id,resourceType:"support",container:"pg-support-files",location:"gcs",type:"any"}),R&&R.length>0&&(0,e.jsx)("div",{className:ds.uploadedFiles,children:R.map((J,Ee)=>(0,e.jsxs)("span",{className:ds.fileCard,children:[(0,e.jsx)(a.C0,{src:ha(J),height:24,width:24}),(0,e.jsxs)("div",{className:ds.fileCardContent,children:[(0,e.jsx)("span",{className:ds.fileCardName,title:J.file.name,children:J.file.name}),(0,e.jsxs)("span",{className:ds.fileCardSize,children:[Math.round(J.file.size/1024),"KB"]})]}),(0,e.jsx)(a.K0,{className:ds.fileCardRemoveButton,title:`Remove file ${J.file.name}`,"aria-label":`Remove file ${J.file.name}`,icon:"pg-trash-o",onClick:()=>re(Ee),style:{height:"16px",width:"16px",minWidth:"16px"},iconProps:{height:16,width:16}})]},J.file.id||Ee))})]})},ga=(r,j)=>[{field:"input",id:"title",label:"Subject",placeholder:"Brief Summary",disabled:r,rules:{validator:{value:(R,w)=>w.trim()!=="",message:"Subject is a required field."},required:{value:!0}}},{field:"textarea",id:"description",label:"How can we help?",placeholder:"What are you trying to do? Where are you getting stuck?",disabled:r,rules:{validator:{value:(R,w)=>w.trim()!=="",message:"How can we help? is a required field."},required:{value:!0}}},{field:"input",id:"userEmails",label:"Users affected (if applicable)",placeholder:"Enter the names and emails of 2-3 affected users",disabled:r},{field:"input",id:"issuePage",label:"Relevant page on the site",placeholder:"Example: https://myuniversity.peoplegrove.com/hub/myu/programs-v2",disabled:r},{field:"component",id:"files",label:"Add a screenshot or video (recommended)",component:R=>(0,e.jsx)(ma,{...R,scrollableContainerRef:j}),disabled:r}],pa=({isLoading:r,scrollableContainerRef:j})=>(0,s.useMemo)(()=>[{id:"ticket-creation-form-bug",fields:[...ga(r,j)]}],[r,j]),fa=(0,K.eU)(!1),va=()=>(0,T.fp)(fa),ya=r=>{var j,R;const{description:w,issuePage:z}={description:(j=r.description)==null?void 0:j.value,issuePage:(R=r.issuePage)==null?void 0:R.value};let Y=`Description:
93${w}`;return z&&(Y+=`
94
95On what page did you encounter this issue?:
96${z}`),Y},ba=()=>"no",Aa=(r,j)=>{var R;return((R=r.userEmails)==null?void 0:R.value)||""},xa=(r,j)=>{var R,w,z,Y,ee;const{title:se,files:X}={title:(R=r.title)==null?void 0:R.value,files:(w=r.files)==null?void 0:w.value},re="Bug / Technical Issue",J="",Ee=se,{description:pe,issuePage:Ce,problemNature:ve}={description:(z=r.description)==null?void 0:z.value,issuePage:(Y=r.issuePage)==null?void 0:Y.value,problemNature:(ee=r.problemNature)==null?void 0:ee.value};return{files:X,title:Ee,body:ya(r),userEmails:Aa(r,j),type:re,issueType:J,priority:void 0,issueField:{description:pe,issuePage:Ce,problemNature:ve,accessibilityFollowUp:ba()}}},Ca=(r,j,R)=>({handleBackClick:()=>{r?R(!0):j()},handleConfirmBack:()=>{R(!1),j()},handleCancelBack:()=>{R(!1)}});var Sa=t(883991);const Ta=r=>{const j={};
96return r[0].fields.flat().forEach(R=>{R.id&&(j[R.id]={value:R.id==="files"?[]:""})}),j.issuePage&&(j.issuePage.value=window.location.href),j},Ea=(r,j,R,w,z,Y)=>{var ee,se;if(!R||w!=="bug"||Y.current.has(z))return{currentFormData:r,currentInitialData:j,hasChanges:!1};const{title:X,description:re}=R;let J=!1;return X&&X.length>0&&X!=="ERROR_TITLE"&&((ee=r.title)==null?void 0:ee.value)===""&&(r={...r,title:{...r.title,value:X}},j={...j,title:{...j.title,value:X}},J=!0),re&&re.length>0&&re!=="ERROR_DESCRIPTION"&&((se=r.description)==null?void 0:se.value)===""&&(r={...r,description:{...r.description,value:re}},j={...j,description:{...j.description,value:re}},J=!0),J&&Y.current.add(z),{currentFormData:r,currentInitialData:j,hasChanges:J}},Ia=({fieldSets:r,zendeskFormData:j,ticketType:R,allFormsData:w,setAllFormsData:z,initialFormsData:Y,setInitialFormsData:ee})=>{const se=(0,s.useRef)(new Set),X=(0,s.useRef)(j);(0,s.useEffect)(()=>{X.current===null&&j!==null&&se.current.delete(R),X.current=j},[j,R]),(0,s.useEffect)(()=>{const pe=R;if(!r[0])return;let Ce=w[pe],ve=Y[pe],Fe=!1;Ce||(Ce=Ta(r),Fe=!0),ve||(ve=JSON.parse(JSON.stringify(Ce)));const Be=Ea(Ce,ve,j,R,pe,se);Be.hasChanges&&(Ce=Be.currentFormData,ve=Be.currentInitialData,Fe=!0),Fe&&(z(it=>({...it,[pe]:Ce})),ee(it=>({...it,[pe]:ve})))},[r,j,R]);const re=(0,s.useMemo)(()=>w[R]||{},[w,R]),J=(0,s.useMemo)(()=>Y[R]||{},[Y,R]),Ee=(0,s.useMemo)(()=>{const pe=Object.keys(re).reduce((ve,Fe)=>(ve[Fe]=re[Fe].value,ve),{}),Ce=Object.keys(J).reduce((ve,Fe)=>(ve[Fe]=J[Fe].value,ve),{});return!(0,Sa.A)(pe,Ce)},[re,J]);return{formData:re,isDirty:Ee}},ja=async r=>{const{openedFromChatHistory:j,...R}=r,{data:w}=await(0,S.baF)(R);return w},Na=r=>(0,M.useMutation)({mutationFn:ja,...r});var Gn=t(850504);const Pa=({onBack:r,setMessages:j,setZendeskFormData:R,setAllFormsData:w})=>{const z=(0,M.useQueryClient)(),Y=(0,o.iZ)(),ee=hs(),se=Se();return Na({onSuccess:(X,re)=>{const J=re;se({cta:"Support request submitted successfully"});const Ee=()=>{R(null),w({}),r()};if(J.openedFromChatHistory){const pe=Y==null?void 0:Y.user,Ce=pe!=null?$e(z,pe,J.sessionAddress):0;(0,Gn.A)("Support request submitted","success","Your support ticket was created successfully."),ee(ve=>{var Fe;if(!ve||ve.address!==J.sessionAddress)return ve;const Be={ticketURL:X.url,subject:J.title,createdAt:Date.now()};return{...ve,tickets:[...(Fe=ve.tickets)!=null?Fe:[],Be]}}),pe!=null&&(z.invalidateQueries([I.w.chatHistory,"user",pe]),Ze({queryClient:z,userId:pe,sessionAddress:J.sessionAddress,baselineTicketCount:Ce})),z.invalidateQueries([I.w.chatHistoryForSession,J.sessionAddress]),Ee();return}j(pe=>[...pe.map(Ce=>Ce.messageType==="WELCOME_MESSAGE"?{...Ce,disableInteraction:!0}:Ce),{message:"Support request submitted successfully",messageId:X.messageId||(0,p.A)(),messageType:"TICKET_CREATION_SUCCESS",requiresFeedback:!1,isHelpful:!1,createdAt:X.createdAt||new Date}]),Ee()},onError:()=>{(0,Gn.A)("Error","error","Something went wrong. Please try again.")}})},Ma=({onBack:r,isLoading:j,scrollableContainerRef:R})=>{const w=(0,s.useRef)(null),z="bug",[Y,ee]=(0,s.useState)({}),[se,X]=(0,s.useState)({}),re=(0,o.iZ)(),[J]=le(),[Ee]=$t(),[,pe]=Q(),[Ce,ve]=va(),[Fe,Be]=ft(),{mutate:it,isLoading:Tt}=Pa({onBack:r,setMessages:pe,setZendeskFormData:Be,setAllFormsData:ee}),xt=pa({isLoading:j||Tt,scrollableContainerRef:R}),{formData:jt,isDirty:Et}=Ia({fieldSets:xt,zendeskFormData:Fe,ticketType:z,allFormsData:Y,setAllFormsData:ee,initialFormsData:se,setInitialFormsData:X}),{handleBackClick:Lt,handleConfirmBack:Vt,handleCancelBack:lt}=Ca(Et,r,ve);return{formRef:w,showConfirmation:Ce,isCreatingTicket:Tt,fieldSets:xt,formData:jt,handleFormData:Ht=>{w&&(w.current={...w.current||{},...Ht}),ee(Gt=>({...Gt,[z]:Ht}))},handleSubmit:()=>{var Ht,Gt,Ve;if(!((Ht=w.current)==null?void 0:Ht.validateForm()))return;const bs=xa(jt,re),ks=(Gt=Fe==null?void 0:Fe.sessionAddress)!=null?Gt:J;it({...bs,sessionAddress:ks,openedFromChatHistory:(Ve=Fe==null?void 0:Fe.openedFromChatHistory)!=null?Ve:!1,authorization:Ee==null?void 0:Ee.PGSupportToken,currentUrl:window.location.href,domainUrl:Ee==null?void 0:Ee.domainUrl,logRocket:Ee==null?void 0:Ee.logRocket})},handleBackClick:Lt,handleConfirmBack:Vt,handleCancelBack:lt}},_a=({onBack:r,isLoading:j})=>{const R=(0,s.useRef)(null),{formRef:w,showConfirmation:z,isCreatingTicket:Y,fieldSets:ee,formData:se,handleFormData:X,handleSubmit:re,handleBackClick:J,handleConfirmBack:Ee,handleCancelBack:pe}=Ma({onBack:r,isLoading:j,scrollableContainerRef:R});return(0,e.jsxs)(e.Fragment,{children:[j&&(0,e.jsx)("div",{className:ds.loadingOverlay,children:(0,e.jsx)(a.Rh,{})}),z&&(0,e.jsx)(da,{onConfirm:Ee,onCancel:pe,show:z}),(0,e.jsxs)("div",{className:ds.createTicket,id:"create-ticket",children:[(0,e.jsxs)("div",{className:ds.createTicketHeader,children:[(0,e.jsx)(a.K0,{onClick:J,icon:"pg-cheveron-left",iconProps:{size:24},style:{height:"24px",width:"24px",minWidth:"24px"},"aria-label":"Back to chat",title:"Back to chat",disabled:Y||j}),(0,e.jsx)("span",{className:ds.createTicketHeaderTitle,children:"Submit a support request"})]}),(0,e.jsxs)("div",{className:ds.createTicketContent,children:[(0,e.jsx)("div",{className:ds.createTicketBody,id:"create-ticket-body",ref:R,children:(0,e.jsx)(a.lV,{id:"create-ticket-form",fieldSets:ee,data:se,onChange:X,ref:w,onSubmit:Ce=>{Ce.preventDefault()}})}),(0,e.jsx)("div",{className:ds.createTicketFooter,children:(0,e.jsx)(a.$n,{type:"primary",onClick:re,className:ds.createTicketSubmitButton,loading:Y,disabled:j,children:"Submit a support request"})})]})]})]})};var Oa=t(839392);const Ra=({search:r})=>{const[j]=(0,bt.NM)(),[R]=(0,bt.bp)();return(0,M.useQuery)({queryKey:["help-articles",r],queryFn:async()=>{const{data:w}=await(0,S.TVr)({search:r,authorization:j});return w},enabled:!!j&&R})},Vn=(0,K.eU)("");Vn.debugLabel="helpArticlesSearchTerm";const zn=(0,K.eU)("");zn.debugLabel="helpArticlesDebouncedSearchTerm";const Da=()=>(0,T.fp)(Vn),La=()=>(0,T.fp)(zn),ka=()=>{const[r,j]=Da(),[R,w]=La(),z=(0,s.useMemo)(()=>(0,Oa.A)(Ce=>{w(Ce)},300),[w]),Y=(0,s.useCallback)(Ce=>{j(Ce),z(Ce)},[j,z]),ee=(0,s.useCallback)(()=>{j(""),w("")},[j,w]),{data:se,isLoading:X,isFetching:re}=Ra({search:R}),J=!!R&&re;return{articles:se?"articles"in se?se.articles:se.results:[],isLoading:X&&!R,debouncedSearchTerm:R,isFetching:re,isSearching:J,searchArticles:Y,clearSearch:ee,searchTerm:r}},on={helpArticlesSection:"helpArticlesSection__dolry",searchContainer:"searchContainer__cQOlh",popularArticlesTitle:"popularArticlesTitle__FGx_X",articlesContainer:"articlesContainer__ZXRk2",articlesList:"articlesList__TttG6",justifyCenter:"justifyCenter__qEoC6",browseAllLink:"browseAllLink__o3SHx",articleItem:"articleItem__u3RKq",articleContent:"articleContent__VvIjp",articleTitle:"articleTitle__JDnDX",emptyContainer:"emptyContainer__IuzyF",emptyMessage:"emptyMessage__J953e",widgetContentOverlay:"widgetContentOverlay__K3yOJ",articlesListOverlay:"articlesListOverlay__q_S2u"},$n=60,Fa=({article:r})=>{var j;const R=Se(),w=z=>{R({cta:"Help article click",pgAnalyticsTitle:z.title,pgAnalyticsOrigin:"Help article tab"})};return(0,e.jsx)("a",{className:on.articleItem,href:r.html_url,target:"_blank",rel:"noopener noreferrer","aria-label":`${r.title} (opens in new tab)`,onClick:()=>w(r),children:(0,e.jsxs)("div",{className:on.articleContent,children:[(0,e.jsx)(a.C0,{src:xe.ASSETS.DOCUMENT_TEXT_ICON,width:16,height:16,"aria-hidden":"true"}),(0,e.jsx)("p",{className:on.articleTitle,children:((j=r.title)==null?void 0:j.length)>$n?r.title.slice(0,$n)+"...":r.title})]})})},Ba=({articles:r,isSearching:j})=>{const R=Se(),w=()=>{R({cta:"Browse all articles",pgAnalyticsTitle:"NA",pgAnalyticsOrigin:"Help article tab"})};return(0,e.jsxs)("ul",{className:on.articlesList,"aria-label":"Help articles list",children:[r.map(z=>(0,e.jsx)("li",{children:(0,e.jsx)(Fa,{article:z})},z.id)),j?(0,e.jsx)("div",{className:on.articlesListOverlay,role:"status","aria-label":"Searching articles",children:(0,e.jsx)(a.Rh,{})}):(0,e.jsx)("li",{children:(0,e.jsxs)("a",{className:on.browseAllLink,"aria-label":"Browse all articles (opens in new tab)",target:"_blank",rel:"noopener noreferrer",href:"https://peoplegrove.zendesk.com/hc/en-us",onClick:w,children:[(0,e.jsx)("p",{children:"Browse all articles"}),(0,e.jsx)(a.C0,{src:xe.ASSETS.BROWSE_ALL_ARTICLES_ICON,width:16,height:16,"aria-hidden":"true"})]})})]})},Ua=({searchTerm:r})=>(0,e.jsxs)("div",{className:on.emptyContainer,role:"status","aria-label":"No articles found",children:[(0,e.jsx)(a.C0,{src:xe.ASSETS.EXCLAMATION_TRIANGLE_ICON,width:48,height:48,"aria-hidden":"true"}),(0,e.jsx)("p",{className:on.emptyMessage,children:r?"Looks like we don't have any articles that match your search yet. Try a different term or check back later.":"No help articles available."})]}),wa=({searchTerm:r,onSearchChange:j,onClearSearch:R,isLoading:w})=>(0,e.jsxs)("div",{className:on.searchContainer,children:[(0,e.jsx)("label",{htmlFor:"help-articles-search",className:"sr-only",children:"Search help articles"}),(0,e.jsx)(a.pd,{id:"help-articles-search",placeholder:"Search help articles",value:r,onChange:j,icon:"pg-search",suffixNode:r?(0,e.jsx)(a.K0,{icon:"pg-x-circle",onMouseDown:z=>{z.button===0&&R()},onClick:R,"aria-label":"Clear search",iconProps:{size:16}}):null,disabled:w,autoFocus:!0,autoComplete:"off"})]}),Ha=()=>{const[r]=(0,bt.NM)(),[j]=(0,bt.bp)(),R=(0,s.useRef)(null),{articles:w,isLoading:z,isFetching:Y,isSearching:ee,searchArticles:se,clearSearch:X,searchTerm:re,debouncedSearchTerm:J}=ka(),Ee=pe=>{se(pe)};return(0,s.useEffect)(()=>{const pe=ve=>{var Fe;(Fe=R.current)!=null&&Fe.contains(document.activeElement)&&(ve.key==="ArrowDown"||ve.key==="ArrowUp")&&(document.body.style.overflow="hidden")},Ce=ve=>{(ve.key==="ArrowDown"||ve.key==="ArrowUp")&&(document.body.style.overflow="")};return document.addEventListener("keydown",pe),document.addEventListener("keyup",Ce),()=>{document.removeEventListener("keydown",pe),document.removeEventListener("keyup",Ce),document.body.style.overflow=""}},[]),(0,e.jsxs)("section",{className:(0,ue.A)(on.helpArticlesSection,nt.helpArticlesSection),"aria-label":"Help articles",children:[(z&&!re||!r||!j)&&(0,e.jsx)("div",{className:on.widgetContentOverlay,role:"status","aria-label":"Loading help articles",children:(0,e.jsx)(a.Rh,{})}),(0,e.jsx)(wa,{searchTerm:re,onSearchChange:Ee,onClearSearch:X,isLoading:z}),!Y&&(0,e.jsx)("h4",{className:on.popularArticlesTitle,children:J?`Search results (${w.length})`:"Popular help articles"}),(0,e.jsx)("div",{ref:R,className:on.articlesContainer,children:!Y&&r&&j&&w.length===0?(0,e.jsx)(Ua,{searchTerm:re}):(0,e.jsx)(Ba,{articles:w,isSearching:ee})})]})};var Wa=t(348861),Ka=t(595526);const Ga=({open:r,onCancel:j,isResuming:R})=>
96{const[w,z]=(0,s.useState)(!1),[Y,ee]=(0,s.useState)(!1),se=(0,s.useRef)(!1),X=(0,s.useRef)(null),re=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(r){z(!0),se.current=!1;const pe=requestAnimationFrame(()=>{requestAnimationFrame(()=>ee(!0))});return()=>cancelAnimationFrame(pe)}},[r]),(0,s.useEffect)(()=>{!r&&w&&ee(!1)},[r,w]);const J=(0,s.useCallback)(()=>{R||(se.current=!0,ee(!1))},[R]);return(0,s.useEffect)(()=>{if(!w||!Y)return;const pe=ve=>{ve.key==="Escape"&&(ve.preventDefault(),J())};document.addEventListener("keydown",pe);const Ce=window.setTimeout(()=>{var ve;(ve=re.current)==null||ve.focus({preventScroll:!0})},50);return()=>{document.removeEventListener("keydown",pe),window.clearTimeout(Ce)}},[w,Y,J]),{mounted:w,entered:Y,sheetRef:X,cancelButtonRef:re,handleUserDismiss:J,handleSheetTransitionEnd:pe=>{pe.target!==X.current||pe.propertyName!=="transform"||Y||(se.current&&(se.current=!1,j()),z(!1))}}},En={root:"root__mt2V4",rootOpen:"rootOpen__HtoNV",backdrop:"backdrop__BkmSr",backdropVisible:"backdropVisible___Puhj",sheet:"sheet__E1RzZ",sheetVisible:"sheetVisible__YPu03",title:"title__jeYdi",body:"body__SQHHB",actions:"actions__gu3h3"},Va=({open:r,onCancel:j,onConfirm:R,isResuming:w=!1})=>{const{mounted:z,entered:Y,sheetRef:ee,cancelButtonRef:se,handleUserDismiss:X,handleSheetTransitionEnd:re}=Ga({open:r,onCancel:j,isResuming:w});return z?(0,e.jsxs)("div",{className:(0,ue.A)(En.root,Y&&En.rootOpen),role:"presentation",children:[(0,e.jsx)("div",{className:(0,ue.A)(En.backdrop,Y&&En.backdropVisible),"aria-hidden":"true",onClick:X}),(0,e.jsxs)("div",{ref:ee,className:(0,ue.A)(En.sheet,Y&&En.sheetVisible),role:"dialog","aria-modal":"true","aria-labelledby":"resume-chat-sheet-title","aria-describedby":"resume-chat-sheet-desc",onTransitionEnd:re,children:[(0,e.jsx)("h2",{id:"resume-chat-sheet-title",className:En.title,children:"Resume another chat?"}),(0,e.jsx)("p",{id:"resume-chat-sheet-desc",className:En.body,children:"Your current chat will close and you'll be redirected to the selected chat."}),(0,e.jsxs)("div",{className:En.actions,children:[(0,e.jsx)(a.$n,{ref:se,type:"tertiary",onClick:X,disabled:w,"aria-label":"Cancel and stay on current screen",children:"Cancel"}),(0,e.jsx)(a.$n,{type:"primary",onClick:R,loading:w,disabled:w,"aria-label":"Resume selected chat",children:"Resume chat"})]})]})]}):null},Bn={stillNeedHelpContainer:"stillNeedHelpContainer__ngrMe",title:"title__XqRyK",buttonGroup:"buttonGroup__esZy9"},za=({onReopenChat:r,onSubmitTicket:j,isReopening:R=!1,isSubmittingTicket:w=!1})=>{const z=Se(),Y=()=>{z({cta:"Submit a support request",pgAnalyticsOrigin:"Chat history"}),j()};return(0,e.jsxs)("div",{className:Bn.stillNeedHelpContainer,children:[(0,e.jsx)("h3",{className:Bn.title,children:"Still need help?"}),(0,e.jsxs)("div",{className:Bn.buttonGroup,children:[(0,e.jsx)(a.$n,{type:"tertiary",onClick:Y,loading:w,disabled:w,"aria-label":"Submit a support request",children:"Submit a support request"}),(0,e.jsx)(a.$n,{type:"primary",onClick:r,loading:R,disabled:R||w,"aria-label":"Reopen chat",children:"Resume chat"})]})]})},Un=({ticketsCount:r,className:j})=>(0,e.jsx)(a.vu,{icon:"pg-ticket-xs",text:`${r} support request${r>1?"s":""} submitted`,color:"grey",size:"xsmall",className:j}),$a=async r=>{const{data:j}=await(0,S.Asn)({params:{address:r}}),R=j!=null?j:[];return be(R)},Ya=r=>(0,M.useQuery)({queryFn:()=>$a(r),queryKey:[I.w.chatHistoryForSession,r],enabled:!!r,staleTime:0}),Qa=async r=>{const{data:j}=await(0,S._l$)(r);return j&&Array.isArray(j.messages)?{...j,messages:be(j.messages)}:j},Ja=r=>{const j=(0,M.useQueryClient)();return(0,M.useMutation)({mutationFn:R=>Qa(R),...r,onSuccess:(R,w,z)=>{var Y;j.invalidateQueries([I.w.activeSession]),j.invalidateQueries([I.w.chatHistory]),j.invalidateQueries([I.w.chatHistoryForSession,w.sessionAddress]),(Y=r==null?void 0:r.onSuccess)==null||Y.call(r,R,w,z)}})};var Za=t(551471),_n=t.n(Za);const Fn=(r,j)=>`${r} ${j}${r===1?"":"s"} ago`,Xa=r=>{const j=_n()(),R=_n()(r),w=j.diff(R,"minutes");if(w<1)return"just now";if(w<60)return Fn(w,"minute");const z=j.diff(R,"hours");if(z<24)return Fn(z,"hour");const Y=j.diff(R,"days");if(Y<7)return Fn(Y,"day");const ee=j.diff(R,"weeks");return j.diff(R,"months")<1&&ee>0?Fn(ee,"week"):R.format("MMM D, YYYY")},qa=r=>{if(!r)return!1;const j=_n()(r);return _n()().diff(j,"days")<=7},eo=r=>{const j=_n()(r),R=_n()(),w=R.diff(j,"minutes"),z=R.diff(j,"hours"),Y=R.diff(j,"days");return w<60?`Reopened ${w} ${w===1?"min":"mins"}
96 ago`:z<24?`Reopened ${z} ${z===1?"hour":"hours"} ago`:Y<7?`Reopened ${Y} ${Y===1?"day":"days"} ago`:`Reopened on ${j.format("MMM D, YYYY")}`},Ts={"bg-primary-xlight":"bg-primary-xlight__Aiiby","bg-primary-light":"bg-primary-light__wNBrK","bg-primary":"bg-primary__Jo74e","bg-primary-dark":"bg-primary-dark__yCYxz","bg-primary-xdark":"bg-primary-xdark__Oy6Ga","bg-secondary-xlight":"bg-secondary-xlight__D0Ofz","bg-secondary-light":"bg-secondary-light__g55Sr","bg-secondary":"bg-secondary__xaoEQ","bg-secondary-dark":"bg-secondary-dark__loVva","bg-secondary-xdark":"bg-secondary-xdark__UrSmW","bg-success-xlight":"bg-success-xlight__KWOyR","bg-success-light":"bg-success-light__adkxN","bg-success":"bg-success__Yopqq","bg-success-dark":"bg-success-dark__rcmH1","bg-success-xdark":"bg-success-xdark__w_M42","bg-info-xlight":"bg-info-xlight__oLohk","bg-info-light":"bg-info-light__PD4u5","bg-info":"bg-info__ezljK","bg-info-dark":"bg-info-dark__nUJWI","bg-info-xdark":"bg-info-xdark__v6BvA","bg-warning-xlight":"bg-warning-xlight__pV_yy","bg-warning-light":"bg-warning-light__jMbNz","bg-warning":"bg-warning__WlqBR","bg-warning-dark":"bg-warning-dark__oEoJj","bg-warning-xdark":"bg-warning-xdark__ya0rS","bg-alert-xlight":"bg-alert-xlight__ddomZ","bg-alert-light":"bg-alert-light__K9ULU","bg-alert":"bg-alert__MbFUd","bg-alert-dark":"bg-alert-dark__VkRAT","bg-alert-xdark":"bg-alert-xdark__C7G_n","bg-danger-xlight":"bg-danger-xlight__Jeyno","bg-danger-light":"bg-danger-light__QYkZS","bg-danger":"bg-danger__ANWPH","bg-danger-dark":"bg-danger-dark__GccRx","bg-danger-xdark":"bg-danger-xdark__hGmad",messageHistory:"messageHistory__cEKJd",messageHistorySheetHost:"messageHistorySheetHost__mLSob",messageHistoryContent:"messageHistoryContent__clnzN",messageHistoryHeader:"messageHistoryHeader__Ej2lY",messageHistoryHeaderBackButton:"messageHistoryHeaderBackButton__XAtGW",messageHistoryHeaderTitle:"messageHistoryHeaderTitle__vpVlq",messageHistoryRaisedTickets:"messageHistoryRaisedTickets__Ip0jS",messageHistoryRaisedTicketHeader:"messageHistoryRaisedTicketHeader__rtxHR",messageHistoryRaisedTicketHeaderTicketChip:"messageHistoryRaisedTicketHeaderTicketChip___e0AG",messageHistoryRaisedTicketHeaderNonInteractive:"messageHistoryRaisedTicketHeaderNonInteractive__cAnEO",messageHistoryRaisedTicketBody:"messageHistoryRaisedTicketBody__GX2dq",messageHistoryContentBody:"messageHistoryContentBody__QSZjU",chatEndIndicator:"chatEndIndicator__hJqhY",chatEndIndicatorText:"chatEndIndicatorText__jOIKY",chatEndIndicatorDivider:"chatEndIndicatorDivider__NbKQc",loadingOverlay:"loadingOverlay__UReYQ"},to=()=>{var r,j,R;const[w]=(0,s.useState)((0,Wa.A)("messageHistoryRaisedTicketBody")),z=(0,s.useRef)(null),Y=(0,s.useRef)(null),[ee,se]=(0,s.useState)(!0),[X,re]=(0,s.useState)(!1),[J,Ee]=Ot(),pe=gn(),Ce=(0,o.iZ)(),ve=Se(),{data:Fe}=(0,M.useQuery)({queryKey:[I.w.activeSession,Ce.user],queryFn:async()=>{const{data:Dt}=await(0,S.LDV)();return Dt},enabled:!!(Ce!=null&&Ce.user),staleTime:5*60*1e3,cacheTime:10*60*1e3,refetchOnWindowFocus:!1}),[Be]=$t(),[,it]=Q(),[,Tt]=le(),xt=Ne(),{mutate:jt,isLoading:Et}=ws(),{data:Lt,isLoading:Vt}=Ya((r=J==null?void 0:J.address)!=null?r:""),{mutate:lt,isLoading:gt}=ts({onSuccess:Dt=>{Dt&&(J!=null&&J.address)&&xt({...Dt,sessionAddress:J.address,openedFromChatHistory:!0}),pe(Pe.CREATE_TICKET)}}),{mutate:es,isLoading:Ht}=Ja({onSuccess:Dt=>{if(re(!1),Dt&&Dt.messages&&(Ce!=null&&Ce.firstName)){Tt(Dt.address);const mt=We(Ce.firstName);it([{message:mt,messageType:"WELCOME_MESSAGE",requiresFeedback:!1,disableInteraction:!0},...Dt.messages.map(Zt=>({...Zt,disableInteraction:!0})),{message:mt,messageType:"WELCOME_MESSAGE",requiresFeedback:!1,disableInteraction:!1}]),pe(Pe.CHAT)}}}),Gt=(0,s.useMemo)(()=>(Fe==null?void 0:Fe.status)==="active"&&!!Fe.address&&!!(J!=null&&J.address)&&Fe.address!==J.address,[Fe,J==null?void 0:J.address]),Ve=(0,s.useCallback)(()=>{J!=null&&J.address&&(ve({cta:"Reopen chat",pgAnalyticsOrigin:"Chat history"}),es({sessionAddress:J.address}))},[J==null?void 0:J.address,es,ve]),ns=()=>{if(Gt){re(!0);return}Ve()},bs=()=>{re(!1)},ks=()=>{Ve()},Qs=()=>{Ee(null),pe(Pe.CHAT_HISTORY)},rn=()=>{J!=null&&J.address&&lt({sessionAddress:J.address})},hn=(J==null?void 0:J.endedAt)&&qa(J.endedAt),vt=Vt||!(J!=null&&J.address),yt=(0,s.useMemo)(()=>
96!Lt||!(Ce!=null&&Ce.firstName)?Lt!=null?Lt:[]:[{message:We(Ce.firstName),messageType:"WELCOME_MESSAGE",requiresFeedback:!1,disableInteraction:!0},...Lt!=null?Lt:[]],[Lt,Ce==null?void 0:Ce.firstName]),Ct=J==null?void 0:J.tickets,Ut=(j=Ct==null?void 0:Ct.length)!=null?j:0,Ft=Ut>1,Nt=Ft&&ee;return(0,e.jsx)("div",{className:Ts.messageHistory,children:vt?(0,e.jsx)("div",{className:Ts.loadingOverlay,children:(0,e.jsx)(a.Rh,{})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:Ts.messageHistoryHeader,children:[(0,e.jsx)(a.K0,{onClick:()=>Qs(),icon:"pg-cheveron-left",iconProps:{size:24},className:Ts.messageHistoryHeaderBackButton,"aria-label":"Back to chat history",title:"Back to chat history",disabled:Vt}),(0,e.jsx)("span",{className:Ts.messageHistoryHeaderTitle,children:(J==null?void 0:J.summary)||((R=yt[1])==null?void 0:R.message)||(J==null?void 0:J.firstUserMessageContent)})]}),(0,e.jsxs)("div",{className:Ts.messageHistorySheetHost,children:[(0,e.jsxs)("div",{className:(0,ue.A)(Ts.messageHistoryContent,nt.messageHistoryContentModalView),children:[(0,Ka.A)(Ct)&&Ut>0&&(0,e.jsxs)("div",{className:Ts.messageHistoryRaisedTickets,children:[Ft?(0,e.jsxs)("div",{className:Ts.messageHistoryRaisedTicketHeader,"aria-controls":w,"aria-expanded":!Nt,role:"button",tabIndex:0,onClick:()=>se(!ee),onKeyDown:Dt=>{(Dt.key==="Enter"||Dt.key===" ")&&se(!ee)},children:[(0,e.jsx)(Un,{className:Ts.messageHistoryRaisedTicketHeaderTicketChip,ticketsCount:Ut}),(0,e.jsx)("span",{"aria-hidden":"true",children:"view"}),"\xA0",(0,e.jsx)(a.C0,{icon:"pg-cheveron-down-o",role:"img",size:16,style:{transform:Nt?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.3s ease-in-out"},"aria-label":Nt?"Show support requests":"Hide support requests",title:Nt?"Show support requests":"Hide support requests"})]}):(0,e.jsx)("div",{className:(0,ue.A)(Ts.messageHistoryRaisedTicketHeader,Ts.messageHistoryRaisedTicketHeaderNonInteractive),children:(0,e.jsx)(Un,{className:Ts.messageHistoryRaisedTicketHeaderTicketChip,ticketsCount:Ut})}),(0,e.jsx)("div",{className:Ts.messageHistoryRaisedTicketBody,id:w,style:{maxHeight:Nt?"0":"unset",opacity:Nt?0:1,marginTop:Nt?"0":"16px",transition:Ft?"max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin-top 0.3s ease-in-out":void 0},children:Ct.map(Dt=>(0,e.jsx)("div",{className:Ts.messageHistoryRaisedTicket,style:{visibility:Nt?"hidden":"visible"},children:(0,e.jsxs)("a",{href:Dt.ticketURL,className:Ts.messageHistoryRaisedTicketTitle,target:"_blank",rel:"noopener noreferrer","aria-disabled":Et,onClick:mt=>{mt.preventDefault(),!Et&&(ve({cta:"Click on ticket link"}),jt({queryStr:Dt.ticketURL,payload:Be}))},children:[(0,e.jsxs)("span",{className:"sr-only",children:[Et?"Loading...":"Opens in new tab","\xA0"]}),Dt.subject]})},Dt.ticketURL))})]}),(0,e.jsx)("div",{className:Ts.messageHistoryContentBody,ref:z,children:(0,e.jsx)(Kn,{messages:yt,isActiveSessionLoading:!1,isCreatingSession:!1,isGeneratingResponse:!1,messagesContainerRef:z,disableTicketHyperlink:!1,handleGenerateZendeskFormData:()=>{},countdown:null,startCountdown:()=>{},clearCountdown:()=>{},disableActions:!0,bottomSpacerRef:Y,showWelcomeCTA:!1})}),(0,e.jsx)(a.cG,{text:"End of conversation",className:Ts.chatEndIndicator,textClassName:Ts.chatEndIndicatorText,dividerClassName:Ts.chatEndIndicatorDivider}),hn&&(J==null?void 0:J.address)&&(0,e.jsx)(za,{onReopenChat:ns,onSubmitTicket:rn,isReopening:Ht,isSubmittingTicket:gt})]}),(0,e.jsx)(Va,{open:X,onCancel:bs,onConfirm:ks,isResuming:Ht})]})]})})},so=async r=>{const{data:j}=await(0,S.ra1)({params:{page:r,limit:10}});return j},no=({userId:r,enabled:j=!0})=>(0,M.useInfiniteQuery)([I.w.chatHistory,"user",r],({pageParam:R=1})=>so(R),{retry:!1,enabled:j,getNextPageParam:(R,w)=>R.hasMore?w.length+1:!1,onError:()=>{}});var ao=t(939064),oo=t(158312);const Ws={messageHistoryListContainer:"messageHistoryListContainer__BY8zt",messageHistoryList:"messageHistoryList__jCngN",messageHistoryListItem:"messageHistoryListItem__zkwyV",messageHistoryListEmpty:"messageHistoryListEmpty__StV70",messageHistoryListEmptyText:"messageHistoryListEmptyText__CRrdi",messageHistoryListEmptyIcon:"messageHistoryListEmptyIcon__GAfTO",messageHistoryListItemContent:"messageHistoryListItemContent__mSex8",messageHistoryListItemContentHeader:"messageHistoryListItemContentHeader__PWtJu",messageHistoryListItemContentHeaderTitle:"messageHistoryListItemContentHeaderTitle__CtVFT",messageHistoryListItemContentHeaderDate:"messageHistoryListItemContentHeaderDate__KhyQr",messageHistoryListItemContentBody:"messageHistoryListItemContentBody__oDvUG",chatEndIndicator:"chatEndIndicator__WmPhe",chatEndIndicatorText:"chatEndIndicatorText__vJfkf",chatEndIndicatorDivider:"chatEndIndicatorDivider__qiHnj",loadingOverlay:"loadingOverlay__DTbFb"},ro=()=>(0,e.jsxs)("output",{className:Ws.messageHistoryListEmpty,"aria-label":"No chat history",children:[(0,e.jsx)(a.C0,{src:xe.ASSETS.EXCLAMATION_TRIANGLE_ICON,size:49,className:Ws.messageHistoryListEmptyIcon,"aria-hidden":"true"}),(0,e.jsx)("p",{className:Ws.messageHistoryListEmptyText,children:"No chat history found"})]}),io=()=>{const r=(0,o.iZ)(),j=hs(),R=gn(),{data:w,fetchNextPage:z,hasNextPage:Y,isLoading:ee,isFetchingNextPage:se}=no({userId:r.user}),X=(0,s.useMemo)(()=>(0,ln.A)((0,tn.A)(w==null?void 0:w.pages,"results")),[w]),re=J=>{j(J),R("chat-history-single")};return(0,e.jsx)("section",{className:Ws.messageHistoryListContainer,id:"message-history-container",children:ee?(0,e.jsx)("output",{className:Ws.loadingOverlay,"aria-label":"Loading chat history",children:(0,e.jsx)(a.Rh,{})}):(0,e.jsx)("div",{className:(0,ue.A)(Ws.messageHistoryList,nt.messageHistoryListContainer),id:"message-history-list",children:(X==null?void 0:X.length)===0?(0,e.jsx)(ro,{}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ao.A,{hasMore:Y,handleInfiniteOnLoad:()=>{!se&&Y&&z()}
96,useWindow:!1,getScrollParent:()=>{var J;return(J=document.querySelector("#message-history-list"))!=null?J:document.body},children:X==null?void 0:X.map(J=>{var Ee,pe;return(0,e.jsx)("button",{className:Ws.messageHistoryListItem,onClick:()=>re(J),"aria-label":`${J.summary||J.firstUserMessageContent}`,children:(0,e.jsxs)("div",{className:Ws.messageHistoryListItemContent,children:[(0,e.jsxs)("div",{className:Ws.messageHistoryListItemContentHeader,children:[(0,e.jsx)("div",{className:Ws.messageHistoryListItemContentHeaderTitle,children:J.summary||J.firstUserMessageContent}),(0,e.jsx)("div",{className:Ws.messageHistoryListItemContentHeaderDate,children:J.reopenHistory&&J.reopenHistory.length>0?(0,e.jsx)("span",{children:eo(J.reopenHistory[J.reopenHistory.length-1].reopenedAt)}):Xa(J.endedAt||J.updatedAt)})]}),(0,e.jsx)("div",{className:Ws.messageHistoryListItemContentBody,children:(0,e.jsx)("p",{dangerouslySetInnerHTML:{__html:(0,Xe.a)((0,oo.G)(J.firstMessageContent))}})}),(Ee=J.tickets)!=null&&Ee.length?(0,e.jsx)("div",{className:Ws.messageHistoryListItemContentFooter,children:(0,e.jsx)(Un,{ticketsCount:((pe=J.tickets)==null?void 0:pe.length)||0})}):null]})},J.address)})}),!Y&&(0,e.jsx)(a.cG,{text:"End of list",className:Ws.chatEndIndicator,textClassName:Ws.chatEndIndicatorText,dividerClassName:Ws.chatEndIndicatorDivider})]})})})},lo=({activeView:r,widgetTabs:j,setActiveView:R,onBackToChat:w,isLoading:z,handleGenerateZendeskFormData:Y,activeSession:ee,isActiveSessionLoading:se,resetInactivityTimer:X,countdown:re,startCountdown:J,clearCountdown:Ee})=>{const pe=Se(),Ce=()=>{switch(r){case Pe.CREATE_TICKET:return(0,e.jsx)(_a,{onBack:w,isLoading:z});case Pe.HELP_ARTICLES:return(0,e.jsx)(Ha,{});case Pe.CHAT_HISTORY:return(0,e.jsx)(io,{});case Pe.CHAT_HISTORY_SINGLE:return(0,e.jsx)(to,{});case Pe.CHAT:default:return(0,e.jsx)(la,{handleGenerateZendeskFormData:Y,activeSession:ee,isActiveSessionLoading:se,resetInactivityTimer:X,countdown:re,startCountdown:J,clearCountdown:Ee})}},ve=Be=>{let it="";switch(Be){case Pe.CHAT:it="Chat";break;case Pe.CHAT_HISTORY:it="Chat history";break;case Pe.HELP_ARTICLES:it="Help articles";break}pe({cta:it}),R(Be)},Fe=[Pe.CREATE_TICKET,Pe.CHAT_HISTORY_SINGLE].includes(r);return(0,e.jsxs)(e.Fragment,{children:[![Pe.CREATE_TICKET,Pe.CHAT_HISTORY_SINGLE].includes(r)&&(0,e.jsx)(a.tU,{tabs:j,position:"top",className:nt.aiSupportWidgetTabs,tabListClassName:nt.aiSupportWidgetTabsList,sliderClassName:nt.aiSupportWidgetTabsSlider,onChange:Be=>ve(Be),growTabs:!0}),(0,e.jsx)("div",{className:(0,ue.A)(nt.aiSupportWidgetContent,{[nt.aiSupportWidgetContentNoTabs]:Fe}),children:Fe?(0,e.jsx)(e.Fragment,{children:Ce()}):(0,e.jsx)(a.tU.TabPanel,{tabKey:r,className:nt.aiSupportWidgetTabsPanel,children:Ce()})})]})},Ks={aiSupportWidgetHeader:"aiSupportWidgetHeader__x8t5O",closeIcon:"closeIcon__QQpYn",aiSupportWidgetHeaderIcon:"aiSupportWidgetHeaderIcon__x1Bw1",aiSupportWidgetHeaderIconButton:"aiSupportWidgetHeaderIconButton__oV9_Y",aiSupportWidgetHeaderTitle:"aiSupportWidgetHeaderTitle__o_uie",aiSupportWidgetHeaderLeft:"aiSupportWidgetHeaderLeft__UvFbR",aiSupportWidgetHeaderRight:"aiSupportWidgetHeaderRight__wJRIe",aiSupportWidgetHeaderDivider:"aiSupportWidgetHeaderDivider__ctFhR",aiSupportWidgetHeaderTooltip:"aiSupportWidgetHeaderTooltip__elrjM",aiSupportWidgetHeaderMenuDropdown:"aiSupportWidgetHeaderMenuDropdown__wC1uq"},co=({sessionAddress:r,onClose:j,onStartNewChat:R,getTooltipContainer:w=()=>document.body})=>{const[z]=Q(),[Y]=$t(),ee=(0,C.E)(),se=(0,o.al)(),X=Se(),{mutate:re,isLoading:J}=ws(),Ee=z.some(Tt=>["START_NEW_CHAT_CONFIRMATION","CHAT_END_INDICATOR","SESSION_ENDED_TIMEOUT","CONVERSATION_CLOSED","TICKET_CREATION_SUCCESS","MESSAGE_MARKED_HELPFUL","THANKS_SESSION_FEEDBACK_CARD","MESSAGE_MARKED_UNHELPFUL","COLLECT_FEEDBACK_CONFIRMATION","COLLECT_FEEDBACK"].includes(Tt.messageType)),pe=(0,st.A)(Y),Ce=r.length===0||Ee,ve=Ce?Ee?"Restart chat from the prompt below":"Start a new chat after asking your first question":"Start New Chat",Fe=()=>{X({cta:"Your support request(s)"}),re({queryStr:"https://support.peoplegrove.com/hc/en-us/requests",payload:Y})},Be=()=>{X({cta:"Start new chat"}),R()},it=()=>{X({cta:"Close"}),j()};return se?(0,e.jsxs)("div",{className:Ks.aiSupportWidgetHeaderRight,children:[(0,e.jsx)(a.TE,{position:"bottomRight",popperProps:{className:Ks.aiSupportWidgetHeaderMenuDropdown},buttonProps:{type:"ghost","aria-label":"More options",className:Ks.aiSupportWidgetHeaderIconButton},items:[...pe?[]:[{label:"Your support request(s)",key:"your-tickets",disabled:J,onClick:Fe}],{label:"Start a new chat",key:"start-new-chat",disabled:Ce,onClick:Be}],children:(0,e.jsx)(a.C0,{icon:"pg-ellipsis-horizontal",size:24,style:{color:"white"}})}),(0,e.jsx)(a.cG,{className:Ks.aiSupportWidgetHeaderDivider,vertical:!0}),(0,e.jsx)(a.m_,{content:"Close",direction:"top",getContainer:w,children:(0,e.jsx)(a.K0,{onClick:it,className:Ks.aiSupportWidgetHeaderIconButton,"aria-label":"Close Support Assistant",iconProps:{size:24},icon:"pg-close"})})]}):(0,e.jsxs)("div",{className:Ks.aiSupportWidgetHeaderRight,children:[pe?null:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.m_,{content:"Your support request(s)",direction:"top",getContainer:w,children:(0,e.jsx)(a.K0,{iconProps:{width:24,height:24},className:Ks.aiSupportWidgetHeaderIconButton,"aria-label":"Access your support request(s)",onClick:Fe,disabled:J,children:(0,e.jsx)(a.C0,{src:xe.ASSETS.TICKET_ICON,size:24,style:{color:"white"}})})}),(0,e.jsx)(a.cG,{className:Ks.aiSupportWidgetHeaderDivider,vertical:!0})]}),(0,e.jsx)(a.m_,{content:ve,direction:"top",getContainer:w,handleDisabled:Ce,overlayClassName:Ks.aiSupportWidgetHeaderTooltip,children:(0,e.jsx)(a.K0,{iconProps:{width:24,height:24},className:Ks.aiSupportWidgetHeaderIconButton,"aria-label":"Start new chat",onClick:Be,disabled:Ce,children:(0,e.jsx)(a.C0,{src:xe.ASSETS.START_NEW_CHAT_ICON,size:24,style:{color:"white"}})})}),(0,e.jsx)(a.cG,{className:Ks.aiSupportWidgetHeaderDivider,vertical:!0}),(0,e.jsx)(a.m_,{content:"Close",direction:"top",getContainer:w,children:(0,e.jsx)(a.K0,{onClick:it,className:Ks.aiSupportWidgetHeaderIconButton,iconProps:{width:24,height:24,color:"white"},"aria-label":"Close Support Assistant",children:(0,e.jsx)(a.C0,{icon:"pg-close",size:24,style:{color:"white"}})})})]})},uo=({sessionAddress:r,onClose:j,onStartNewChat:R,getTooltipContainer:w=()=>document.body})=>(0,e.jsxs)("div",{className:Ks.aiSupportWidgetHeader,children:[(0,e.jsxs)("div",{className:Ks.aiSupportWidgetHeaderLeft,children:[(0,e.jsx)("div",{className:Ks.aiSupportWidgetHeaderIcon,children:(0,e.jsx)(a.C0,{size:24,src:xe.ASSETS.CHATBOT_ICON})}),(0,e.jsx)("span",{className:Ks.aiSupportWidgetHeaderTitle,children:dt})]}),(0,e.jsx)(co,{sessionAddress:r,onClose:j,onStartNewChat:R,getTooltipContainer:w}
96)]}),{Meta:ho}=a.Zp,Yn=(0,s.forwardRef)(({isMobile:r,isWidgetOpen:j,isModalView:R=!1,onAnimationEnd:w,onClose:z,activeView:Y,onBackToChat:ee,isLoading:se,handleGenerateZendeskFormData:X,widgetTabs:re,setActiveView:J,activeSession:Ee,isActiveSessionLoading:pe,resetInactivityTimer:Ce},ve)=>{const[Fe]=le(),Be=ne(),{startNewChat:it}=me(),Tt=(0,s.useCallback)(()=>{it(),Ce()},[it,Ce]),xt=(0,s.useCallback)(()=>{const es=(0,K.zp)(),Ht=es.get(ge);if(es.set(ge,null),Ht==="view_chat_history"){J(Pe.CHAT_HISTORY);return}Tt()},[Tt,J]),{countdown:jt,startCountdown:Et,clearCountdown:Lt}=he({onComplete:xt}),{wrappedSetActiveView:Vt}=Ye({activeView:Y,setActiveViewProp:J,activeSession:Ee,isActiveSessionLoading:pe,resetInactivityTimer:Ce,clearCountdown:Lt}),lt=(0,s.useCallback)(()=>{Be(es=>[...es,{messageId:(0,p.A)(),message:"Start a new chat?",createdAt:new Date,messageType:"START_NEW_CHAT_CONFIRMATION",requiresFeedback:!1}]),J("chat")},[J,Be]),gt=(0,s.useCallback)(()=>ve!=null&&typeof ve=="object"&&"current"in ve&&ve.current?ve.current:document.body,[ve]);return(0,e.jsxs)(a.Zp,{ref:ve,className:(0,ue.A)(nt.aiSupportWidget,{[nt.cardEnter]:!r&&!R&&j,[nt.cardExit]:!r&&!R&&!j,[nt.modalView]:R}),onAnimationEnd:R?void 0:w,bodyProps:{className:nt.widgetBody,noPadding:!0},fullWidth:r,children:[(0,e.jsx)(ho,{title:(0,e.jsx)(uo,{sessionAddress:Fe,onClose:z,onStartNewChat:lt,getTooltipContainer:gt}),description:"",className:nt.aiSupportWidgetMeta}),(0,e.jsx)(lo,{activeView:Y,widgetTabs:re,setActiveView:Vt,onBackToChat:ee,isLoading:se,handleGenerateZendeskFormData:X,activeSession:Ee,isActiveSessionLoading:pe,resetInactivityTimer:Ce,countdown:jt,startCountdown:Et,clearCountdown:Lt})]})});Yn.displayName="RenderSupportWidget";const mo=Yn,wn=({activeSession:r,isActiveSessionLoading:j,resetInactivityTimer:R})=>{const[w,z]=St(),[Y,ee]=(0,Bt.X)();Js(Y);const[se,X]=(0,s.useState)(Y),re=(0,s.useRef)(null),J=(0,o.al)(),[Ee]=le(),pe=Ne(),Ce=as(w),{handleBackToChat:ve}=Re(z),Fe=(0,o.iZ)(),Be=(0,o.lx)(),it=!J&&(0,g.fSb)(Fe,Be),{mutate:Tt,isLoading:xt}=ts({onSettled:lt=>{lt&&pe({...lt,sessionAddress:Ee,openedFromChatHistory:!1})}});(0,s.useEffect)(()=>{Y&&X(!0)},[Y]),Mt(Y,it,re),(0,s.useEffect)(()=>()=>{Ke(),X(!1)},[]);const jt=()=>{ee(!1)},Et=()=>{Tt({sessionAddress:Ee})},Lt=()=>{Y||X(!1)};if(!se)return null;const Vt=(0,e.jsx)(mo,{ref:re,isMobile:J,isWidgetOpen:Y,isModalView:it,onAnimationEnd:Lt,onClose:jt,activeView:w,onBackToChat:ve,isLoading:xt,handleGenerateZendeskFormData:Et,widgetTabs:Ce,setActiveView:z,activeSession:r,isActiveSessionLoading:j,resetInactivityTimer:R});return J?(0,e.jsx)(a.aF,{id:"ai-support-widget-modal",open:Y,behaviour:"bottom-up",bodyProps:{style:{padding:0}},hideClose:!0,children:Vt}):it?(0,e.jsx)(a.aF,{id:"ai-support-widget-modal",open:Y,behaviour:"grow",bodyProps:{style:{padding:0}},hideClose:!0,children:Vt}):(0,e.jsx)(e.Fragment,{children:Vt})},go=()=>{const[r,j]=(0,Bt.X)(),[R,w]=(0,qt.J)(),[z,Y]=W(),[ee,se]=(0,G.b)(),[X]=(0,_e.R)(),re=(0,bt.n5)(),J=Se(),[Ee,pe]=(0,s.useState)(!1),Ce=(0,o.al)(),ve=(0,o.er)(),Fe=(0,o.lx)(),Be=(0,o.iZ)(),it=(0,C.E)(),Tt=(0,l.W6)(),xt=(0,l.zy)(),{mutate:jt}=Yt(),{data:Et,isLoading:Lt}=Ue({userId:Be==null?void 0:Be.user,enabled:!0}),{resetInactivityTimer:Vt}=tt(!0,r),{data:lt}=ls({userId:Be==null?void 0:Be.id,enabled:R&&!!(Be!=null&&Be.id)});(0,s.useEffect)(()=>{const Ve=lt==null?void 0:lt.token;Ve&&(re(!1),jt({authorization:Ve}))},[lt,jt,re]),(0,s.useEffect)(()=>{if(!Fe||!Be||!ve)return;const Ve=(0,g.MDA)(Be,Fe.id),ns=[{roleActive:Ve.isSuperAdmin,settingKey:"superadmin"},{roleActive:Ve.isHubAdmin,settingKey:"admin"},{roleActive:Ve.isClusterAdmin,settingKey:"admin"},{roleActive:Ve.isAdminOnClusterHub,settingKey:"admin"},{roleActive:Ve.isApprovedUser&&!Ve.isSuperAdmin&&!Ve.isHubAdmin&&!Ve.isClusterAdmin&&!Ve.isAdminOnClusterHub&&!Ve.isLightUser,settingKey:"endUser"}],bs=(0,h.A)(ve,"settings.moduleSettings.aiSupportWidget",{}),ks=ns.some(rn=>rn.roleActive===!0&&bs[rn.settingKey]===!0);w(ks);const Qs=Ve.isApprovedUser&&!Ve.isSuperAdmin&&!Ve.isHubAdmin&&!Ve.isClusterAdmin&&!Ve.isAdminOnClusterHub&&!Ve.isLightUser;pe(Qs)},[ve,Be,Fe,w,pe]);const gt=(0,s.useMemo)(()=>!r&&!Ce&&ee,[r,Ce,ee]),es=(0,s.useMemo)(()=>{const Ve=xt.pathname.match(/^\/inbox\/([^/]+)(?:\/([^/]+))?/);if(!Ve)return!1;const[,ns,bs]=Ve;return ns&&bs&&bs!=="communication"},[xt.pathname]);(0,s.useEffect)(()=>()=>{j(!1),se(!1),re(!1)},[j,se,re]);const Ht=(0,s.useMemo)(()=>r?{width:32,height:32,icon:"pg-close"}:{width:16,height:28,src:xe.ASSETS.WIDGET_ICON},[r]),Gt=()=>{if(!r&&X.hasError&&!X.isVerified){const ns=new URLSearchParams(window.location.search);ns.set("modal","emailVerify"),Tt.push({search:ns.toString()});return}const Ve=!r;j(Ve),Ve&&!z&&Y(!0),J(Ve?{cta:"Access AI through icon"}:{cta:"Close widget"})};return!R||es?null:Ce?(0,e.jsx)(wn,{activeSession:Et,isActiveSessionLoading:Lt,resetInactivityTimer:Vt}):Ee?(0,e.jsx)(wn,{activeSession:Et,isActiveSessionLoading:Lt,resetInactivityTimer:Vt}):(0,e.jsxs)("div",{className:nt.widgetContainer,children:[(0,e.jsx)(wn,{activeSession:Et,isActiveSessionLoading:Lt,resetInactivityTimer:Vt}),(0,e.jsx)("div",{className:nt.widgetButtonContainer,children:(0,e.jsx)(a.K0,{id:"ai-support-widget-button",type:"ghost",className:nt.widgetButton,"aria-label":"Support Assistant",onClick:Gt,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.C0,{...Ht}),gt&&(0,e.jsx)(A.A,{path:xe.ASSETS.RED_DOT_LOTTIE_JSON,className:nt.redDot,loop:!0})]})})})]})},po=(0,s.memo)(go)},882154:(q,N,t)=>{t.d(N,{A:()=>a});var e=t(715621),s=t(259303),l=t.n(s);function a(h,A){const C=Array.isArray(A)?A:[A];function o(x){return(0,e.jsx)(s.DynamicModuleLoader,{modules:C,strictMode:!0,children:(0,e.jsx)(h,{...x})})}const{displayName:g=""}=h;return o.displayName=`withDynamicModuleLoader(${g})`,o}},882653:(q,N,t)=>{t.d(N,{A:()=>B});var e=t(715621),s=t(537953),l=t(348861),a=t(866388),h=t(653321);const A={},o=({isLoading:k,isDisabled:_,onSubmit:F,buttonConfig:U})=>(0,e.jsxs)(e.Fragment,{children:[(U==null?void 0:U.secondary)&&(0,e.jsx)(h.Y0,{onClick:U==null?void 0:U.secondary.handleFn,children:U==null?void 0:U.secondary.text}),(0,e.jsx)(h.jn,{disabled:_,className:"primary-button",form:"otp-verification-form",htmlType:"submit",onClick:F,loading:k,children:U==null?void 0:U.primary.text},"submit")]});var g=t(607769);const p=({children:k,header:_,buttonConfig:F,isNextDisabled:U,isLoading:V,onSubmit:Z,otpInputGroupLabelId:$,showRecaptchaDisclosure:G})=>(0,e.jsxs)("div",{className:"classic-layout",children:[(0,e.jsx)(g.A,{otpInputGroupLabelId:$,..._}),k,F&&(0,e.jsx)("div",{className:`button-container ${F!=null&&F.landscapeOnMobile?"":"landscape"}`,children:(0,e.jsx)(o,{buttonConfig:F,isDisabled:U,isLoading:V,onSubmit:Z})}),(0,e.jsx)("h2",{className:"otp-verification-subtext center",children:"The verification code will expire in 10 minutes."}),G&&(0,e.jsx)(a.r,{size:"md"})]});var c=t(248883);const v={},i=({header:k,isLoading:_,isNextDisabled:F,onSubmit:U,setVisibility:V,visibility:Z,buttonConfig:$,children:G,wrapperClass:ie,contentText:le,isClosable:ce,otpInputGroupLabelId:oe,showRecaptchaDisclosure:Q})=>{const ne=(0,l.A)();return(0,e.jsxs)(c.aF,{id:ne,open:Z,onClose:()=>V(!1),className:"modal-layout",title:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("span",{id:oe,children:k.title})}),titleProps:{className:"modal-title"},footer:$&&(0,e.jsx)(o,{buttonConfig:$,isDisabled:F,isLoading:_,onSubmit:U}),surfaceClassName:ie||"",hideClose:!ce,children:[(0,e.jsx)("span",{className:"verification-modal-desc",children:k.description}),G,(0,e.jsx)("h2",{className:"otp-verification-subtext code-validity",children:(le==null?void 0:le.expiryText)||"The verification code will expire in 10 minutes."}),Q&&(0,e.jsx)(a.r,{size:"md"})]})},y=k=>k.isModal?(0,e.jsx)(i,{...k}):(0,e.jsx)(p,{...k});var m=t(90570),b=t(768835);function u(k){const _=(0,s.useRef)();return(0,s.useEffect)(()=>{_.current=k},[k]),_.current}const d=u,I=k=>
96{const{focus:_,autoFocus:F,...U}=k,V=(0,s.useRef)(null),Z=d(!!_);return(0,s.useEffect)(()=>{V.current&&(_&&F&&V.current.focus(),_&&F&&_!==Z&&(V.current.focus(),V.current.select()))},[F,_,Z]),(0,e.jsx)("input",{ref:V,...U})},E=s.memo(I),M={},P=k=>{const{length:_,autoFocus:F,onChangeOTP:U,error:V,otpInputGroupLabelId:Z}=k,[$,G]=(0,s.useState)(0),[ie,le]=(0,s.useState)(Array(_).fill(""));(0,s.useEffect)(()=>{const Le=ie.join("");U(Le)},[ie]),(0,s.useEffect)(()=>{k.reset&&le(Array(_).fill(""))},[k.reset]);const ce=Le=>{let Me=Le;return Number(Me)>=0?Me:""},oe=(0,s.useCallback)(Le=>{const Me=[...ie];Me[$]=Le[0]||"",le(Me)},[$,ie]),Q=(0,s.useCallback)(Le=>{const Me=Math.max(Math.min(_-1,Le),0);G(Me)},[_]),ne=(0,s.useCallback)(()=>{Q($-1)},[$,Q]),Oe=(0,s.useCallback)(()=>{Q($+1)},[$,Q]),je=(0,s.useCallback)(Le=>()=>{Q(Le)},[Q]),xe=(0,s.useCallback)(Le=>{const Me=ce(Le.currentTarget.value);if(!Me){Le.preventDefault();return}oe(Me),Oe()},[oe,Oe,ce]),dt=(0,s.useCallback)(()=>{G(-1)},[]),We=(0,s.useCallback)(Le=>{const Me=Le.key;switch(Me){case"e":{Le.preventDefault();break}case"Backspace":case"Delete":{Le.preventDefault(),ie[$]?oe(""):ne();break}case"ArrowLeft":{Le.preventDefault(),ne();break}case"ArrowRight":{Le.preventDefault(),Oe();break}default:{Me.match(/^[^a-zA-Z0-9]$/)&&Le.preventDefault();break}}},[$,oe,Oe,ne,ie]),Pe=(0,s.useCallback)(Le=>{Le.preventDefault();const Me=Le.clipboardData.getData("text/plain").trim().slice(0,_-$).split("");if(Me){let ct=0;const we=[...ie];we.forEach((be,ye)=>{if(ye>=$){const tt=ce(Me.shift()||be);tt&&(we[ye]=tt,ct=ye)}}),le(we),G(Math.min(ct+1,_-1))}},[$,ce,_,ie]);return(0,e.jsxs)("div",{className:"otp",role:"group","aria-describedby":V?"otp-error":void 0,"aria-labelledby":Z,"aria-invalid":!!V,children:[Array(_).fill("").map((Le,Me)=>(0,e.jsx)(E,{type:"text",inputMode:"numeric",autoComplete:"one-time-code",focus:$===Me,value:ie&&ie[Me],autoFocus:F,onFocus:je(Me),onChange:xe,onKeyDown:We,onBlur:dt,onPaste:Pe,className:`otpInput ${V?"error":""}`,"aria-label":`otp input ${Me+1}`,"aria-invalid":!!V},`SingleInput-${Me}`)),(0,e.jsx)("p",{id:"otp-error",className:(0,b.A)("danger-error-message",{"sr-only":!V}),role:"alert",children:V&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(c.C0,{src:"https://cdn.peoplegrove.com/admin/1663755615636Icon.svg"}),V]})})]})},H={},O=({maxOtpResendAttempts:k,isTimerFinished:_,otpResendAttempts:F})=>{const[U,V]=(0,s.useState)(60);(0,s.useEffect)(()=>{if(U<=0)return _(!0);_(!1);const G=setInterval(()=>{V(ie=>ie-1)},1e3);return()=>clearInterval(G)},[U]),(0,s.useEffect)(()=>{V(F*60)},[F]);const Z=Math.floor(U/60),$=U-Z*60;return(0,e.jsx)("span",{className:"otp-resend-timer",children:U>0&&F<=k?`in ${Z<10?"0"+Z:Z} : ${$<10?"0"+$:$}`:""})},T=({inputs:k,error:_,setError:F,resendConfig:U,onOTPReset:V,otpReset:Z,onChangeOtp:$,contentText:G,otpInputGroupLabelId:ie})=>{const[le,ce]=(0,s.useState)(!1),{resendOtpCall:oe,otpResendAttempts:Q,otpResent:ne,setOtpResent:Oe,MaxOtpResendAttempts:je}=U;(0,s.useEffect)(()=>{_&&Oe(!1)},[_]);const xe=()=>{F(""),V(),Oe(!1),oe()};return(0,e.jsxs)("form",{className:"otp-verification-form",children:[(0,e.jsx)(P,{autoFocus:!0,length:k,onChangeOTP:$,reset:Z,error:_||"",otpInputGroupLabelId:ie}),!(0,m.A)(U)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("h2",{className:"otp-verification-subtext",children:[(G==null?void 0:G.resendText)||"Didn't receive code?"," ",(0,e.jsx)(h.N_,{className:"otp-verification-resend",disabled:!le||Q===je+1,onClick:xe,children:"Resend"})," ",Q===je+1?"( max attempts reached )":(0,e.jsx)(O,{maxOtpResendAttempts:je,isTimerFinished:ce,otpResendAttempts:Q})]}),ne&&(0,e.jsx)("h3",{children:"Verification code sent"})]})]})},D={},W=({header:k,buttonConfig:_,inputs:F,verifyOTP:U,isLoading:V,error:Z,setError:$,setIsOtpValid:G,resendConfig:ie,contentText:le,showRecaptchaDisclosure:ce,...oe},Q)=>{const[ne,Oe]=(0,s.useState)(""),[je,xe]=(0,s.useState)(!1),[dt]=(0,s.useState)((0,l.A)("otp-input-group-label-id")),We=Me=>{Me||xe(!1),G&&G((Me==null?void 0:Me.length)===F),Oe(Me),$("")},Pe=async()=>{$(""),U({otp:ne})},Le=oe.isModal?{...oe}:{isModal:oe.isModal};
96return(0,s.useImperativeHandle)(Q,()=>({getOTP:()=>ne}),[ne]),(0,e.jsx)(y,{header:k,buttonConfig:_,isLoading:V,isNextDisabled:ne.length<F,onSubmit:Pe,contentText:le,showRecaptchaDisclosure:ce,...Le,otpInputGroupLabelId:dt,children:(0,e.jsx)("div",{className:"otp-verify",children:(0,e.jsx)(T,{inputs:F,error:Z,setError:$,resendConfig:ie,onChangeOtp:We,onOTPReset:()=>{xe(!0)},otpReset:je,contentText:le,otpInputGroupLabelId:dt})})})},B=s.forwardRef(W)},886427:(q,N,t)=>{t.d(N,{A:()=>C});var e=t(715621),s=t(537953),l=t(839050),a=t(710366);const h={link:"link__HIEtG"},C=({children:o,to:g,target:x="_blank",onClick:p=()=>{}})=>{const c=(0,l.er)(),v=n=>{n.preventDefault(),c&&c.id&&(0,a.SO)("cluster",JSON.stringify(c)),p&&p(),window.open(g,x)};return(0,e.jsx)("a",{target:x,href:g,onClick:v,className:h.link,children:o})}},888713:(q,N,t)=>{t.d(N,{j9:()=>d,XT:()=>P,YI:()=>D.A,aF:()=>T.A,dK:()=>K,l6:()=>e.A});var e=t(255968),s=t(715621),l=t(537953),a=t(988705),h=t(91601),A=t(932792),C=t(972185),o=t(805237),g=t(768835),x=t(102736),p=t.n(x),c=t(69914),v=t(210187);const n={};var i=Object.defineProperty,f=(_,F,U)=>F in _?i(_,F,{enumerable:!0,configurable:!0,writable:!0,value:U}):_[F]=U,y=(_,F,U)=>f(_,typeof F!="symbol"?F+"":F,U);const{Option:m,OptGroup:b}=h.A;class u extends l.Component{constructor(F){super(F),y(this,"handleClearSearchBtnKeyPress",U=>{(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),this.clearSearchBtn.click())}),y(this,"handleKeyPress",()=>{setTimeout(()=>{(0,v.jS)(this.popupId,this.inputComponent)},0)}),this.acRef=l.createRef(),this.componentDOM=null,this.acId=this.props.id||"autocomplete-"+(0,c.A)(),this.popupId=`${this.acId}-popup`,this.isIdSet=!1,this.popupObserver=null}componentDidMount(){this.componentDOM=(0,a.findDOMNode)(this.acRef.current),!(!this.componentDOM||!this.componentDOM.firstChild)&&(this.inputComponent=this.componentDOM.getElementsByTagName("input")[0],this.inputComponent&&(this.popupObserver=(0,v.Wj)(this.componentDOM,this.inputComponent,this.acId,{otherProps:this.props}),(0,v.je)(this.inputComponent,this.props["aria-label"],this.acId),(0,v.N7)(this.acId,this.props["aria-required"]),this.componentDOM.addEventListener("keydown",this.handleKeyPress)))}componentDidUpdate(){this.clearSearchBtn=this.componentDOM.querySelector(".ant-select-selection__clear"),this.clearSearchBtn&&(this.clearSearchBtn.setAttribute("tabIndex","0"),this.clearSearchBtn.setAttribute("aria-label","Clear Search"),this.clearSearchBtn.setAttribute("role","button"),this.clearSearchBtn.hasAttribute("data-keydown-listener")||(this.clearSearchBtn.addEventListener("keydown",this.handleClearSearchBtnKeyPress),this.clearSearchBtn.setAttribute("data-keydown-listener","true")))}componentWillUnmount(){this.componentDOM&&this.componentDOM.removeEventListener("keydown",this.handleKeyPress),this.popupObserver&&this.popupObserver.disconnect(),this.clearSearchBtn&&this.clearSearchBtn.removeEventListener("keydown",this.handleClearSearchBtnKeyPress)}render(){const{dataSource:F,dropdownClassName:U,...V}=this.props;return(0,A.A)(F)||(V.dataSource=(0,C.A)(F,Z=>(0,v.Tm)(m,null,this.acId,Z))),(0,s.jsx)(h.A,{ref:this.acRef,...V,dropdownClassName:(0,g.A)(this.popupId,!!U&&U),children:(0,A.A)(F)?(0,v.Dx)(m,b,F,this.acId):V.children})}}u.propTypes=(0,o.A)({...h.A.propTypes,dataSource:p().arrayOf(p().shape({name:p().oneOfType([p().string,p().number]),value:p().oneOfType([p().string,p().number]).isRequired,text:p().node,icon:p().string,disabled:p().bool,className:p().string,extraContent:p().node})).isRequired}),u.defaultProps={...h.A.defaultProps};const d=u;var I=t(626432),E=t(442967);const M={},P=({className:_="",...F})=>(0,s.jsx)(I.A,{role:"button","aria-label":"Back to top",tabIndex:"0",onKeyDown:E.Qx,className:`pg__back-top ${_}`,...F});var H=t(812154),L=t(696736);class O extends l.PureComponent{componentDidMount(){setTimeout(()=>{(0,L.A)()},0)}render(){return(0,s.jsx)(H.A,{...this.props})}}O.propTypes={...H.A.propTypes};const K=O;var T=t(922939),D=t(10459),W=t(243130);const B=({className:_,children:F,...U})=>{const[V]=useState(`carousel-${shortid.generate()}`);return useEffect(()=>{const{"aria-label":Z}=U,$=document.getElementsByClassName(V)[0];
96$&&($.setAttribute("role","region"),$.setAttribute("aria-roledescription","carousel"),Z&&$.setAttribute("aria-label",Z))},[]),jsx(AntCarousel,{...U,className:clsx(V,!!_&&_),children:F})},k=null},890777:(q,N,t)=>{t.d(N,{N:()=>a});var e=t(715621),s=t(665790);const l={},a=({children:h,className:A="",...C})=>(0,e.jsx)(s.A,{className:`${A||""} custom-btn-link`,...C,children:h})},921708:(q,N,t)=>{t.d(N,{A:()=>v});var e=t(715621),s=t(537953),l=t(248883),a=t(768835),h=t(279848),A=t(839050),C=t(425170),o=t(662180);const g={"bg-primary-xlight":"bg-primary-xlight__Ju_ok","bg-primary-light":"bg-primary-light__vbNe1","bg-primary":"bg-primary__Ru3NH","bg-primary-dark":"bg-primary-dark__in1Vn","bg-primary-xdark":"bg-primary-xdark__BHs2c","bg-secondary-xlight":"bg-secondary-xlight__D0DdV","bg-secondary-light":"bg-secondary-light__xxBCm","bg-secondary":"bg-secondary__x0piP","bg-secondary-dark":"bg-secondary-dark__EA41q","bg-secondary-xdark":"bg-secondary-xdark__ramEB","bg-success-xlight":"bg-success-xlight__VNyvI","bg-success-light":"bg-success-light__yKXmG","bg-success":"bg-success__oEDfJ","bg-success-dark":"bg-success-dark__nExaZ","bg-success-xdark":"bg-success-xdark__DYqJO","bg-info-xlight":"bg-info-xlight__ZvPDp","bg-info-light":"bg-info-light__lXs3S","bg-info":"bg-info__GjqDw","bg-info-dark":"bg-info-dark__7Ur5k","bg-info-xdark":"bg-info-xdark__U0Bff","bg-warning-xlight":"bg-warning-xlight__oTl6l","bg-warning-light":"bg-warning-light__V9cqC","bg-warning":"bg-warning__xBNCy","bg-warning-dark":"bg-warning-dark__uiMYs","bg-warning-xdark":"bg-warning-xdark__r_duI","bg-alert-xlight":"bg-alert-xlight__gvIqR","bg-alert-light":"bg-alert-light__K0a_Q","bg-alert":"bg-alert__K5qSI","bg-alert-dark":"bg-alert-dark___1jsr","bg-alert-xdark":"bg-alert-xdark__Y3adu","bg-danger-xlight":"bg-danger-xlight__vEkQE","bg-danger-light":"bg-danger-light__cantb","bg-danger":"bg-danger__aquHY","bg-danger-dark":"bg-danger-dark__npzDX","bg-danger-xdark":"bg-danger-xdark__TCUk0",shareOptionsPopover:"shareOptionsPopover__Zg1Qc",shareOptions:"shareOptions__wMcmQ",shareOptionBtn:"shareOptionBtn__dXOLi",shareButtonV2:"shareButtonV2__evCCQ",showBorders:"showBorders__VG4it",mobile:"mobile__xH5Sl",showText:"showText__um_g1"},p=({onClick:n,icon:i,ariaLabel:f})=>(0,e.jsx)(l.K0,{type:"ghost",className:g.shareOptionBtn,"aria-label":f,onClick:n,children:(0,e.jsx)(l.C0,{src:i})}),v=({config:n={},tracker:i,getPopupContainer:f,showText:y=!1,showBorders:m=!1,className:b,position:u="right"})=>{const[d,I]=(0,s.useState)(!1),[E,M]=(0,s.useState)(!1),S=(0,A.al)(),{copyLink:P,emailQuery:H,linkedin:L,facebook:O}=n,K=[];if(P){const{link:T,successText:D}=P;K.push((0,e.jsx)(p,{ariaLabel:"copy url",icon:"https://cdn.peoplegrove.com/admin/1662462522337link-filled-circle.svg",onClick:()=>{navigator.clipboard.writeText(T).then(()=>{(0,C.mei)(D)}),i({pgAnalyticsSharingPlatform:"CopyLink"})}},"copy-link"))}if(H&&K.push((0,e.jsx)(p,{icon:"https://cdn.peoplegrove.com/admin/1662462539909mail-filled-circled.svg",ariaLabel:"share via mail",onClick:()=>{window.open(`mailto: ''?${(0,h.stringify)(H)}`),i({pgAnalyticsSharingPlatform:"Email"})}},"email")),L){const{url:T,title:D,summary:W}=L;K.push((0,e.jsx)(p,{onClick:()=>{window.open((0,o.Jr)(`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(T)}&title=${encodeURIComponent(D)}&summary=${encodeURIComponent(W)}`)),i({pgAnalyticsSharingPlatform:"Linkedin"})},ariaLabel:"share via linkedin",icon:"https://cdn.peoplegrove.com/admin/1662462482084linkedin-filled-circle.svg"},"linkedin"))}if(O){const{url:T}=O;K.push((0,e.jsx)(p,{ariaLabel:"share via facebook",onClick:()=>{window.open((0,o.Jr)(`https://www.facebook.com/sharer.php?u=${encodeURIComponent(T)}`)),i({pgAnalyticsSharingPlatform:"Facebook"})},icon:"https://cdn.peoplegrove.com/admin/1662462460105fb-filled-circle.svg"},"facebook"))}return(0,s.useEffect)(()=>{const T=setTimeout(()=>{I(E)},0);return()=>{clearTimeout(T)}},[E]),(0,e.jsx)(l.AM,{content:(0,e.jsx)("div",{className:g.shareOptions,children:K}),position:u,className:g.shareOptionsPopover,panelFocus:d,popperProps:{getContainer:f},onVisibleChange:T=>{M(T)},renderAs:l.$n,buttonProps:{icon:"pg-share-o",type:"ghost",className:(0,a.A)(g.shareButtonV2,"share-btn",{[g.mobile]:S,[g.showText]:y,[g.showBorders]:m},b),"aria-label":"share",iconProps:{size:S||y?18:24}},children:y&&"Share"})}},922109:(q,N,t)=>{t.d(N,{A:()=>b});var e=t(715621),s=t(537953),l=t(248883),a=t(560109),h=t(768835),A=t(393418),C=t(102736),o=t.n(C),g=t(870070),x=t(425170),p=t(442967),c=t(328895),v=t(797721);const n={};var i=Object.defineProperty,f=(u,d,I)=>
96d in u?i(u,d,{enumerable:!0,configurable:!0,writable:!0,value:I}):u[d]=I,y=(u,d,I)=>f(u,typeof d!="symbol"?d+"":d,I);class m extends s.PureComponent{constructor(d){super(d),y(this,"checkIfValidImg",async S=>{if(!S||S!=null&&S.includes("generic_avatar.jpg")){this.mounted&&this.setState({src:null});return}if(S&&!S.includes("generic_avatar.jpg")&&!this.props.hidden){const P=new Image;let H;P.src=S,P.onload=()=>{this.mounted&&(H=!1,this.setState({error:H,src:S}))},P.onerror=()=>{this.mounted&&(H=!0,this.setState({error:H,src:S}))}}S&&S.includes("generic_avatar.jpg")&&this.mounted&&this.setState({src:S})}),y(this,"Avatar",()=>{const{shape:S,size:P,icon:H,alt:L,className:O,onClick:K,responsive:T,addCameraText:D,renderAddPhoto:W,children:B,showToolTip:k=!1,toolTipText:_,toolTipPlacement:F="bottom",maintainAspectRatio:U=!1,showDynamicProfileIndicator:V=!1,innerTextDivClassName:Z="",useAltInImage:$=!1,zoomOnHover:G=!1,bordered:ie=!1,isStandard:le=!1,socialProof:ce}=this.props,{error:oe,bgColorClass:Q,src:ne}=this.state;let Oe;const je="lazy-avatar",xe=(0,h.A)(je,`${je}__shape-${S}`,Q,O,{[`${je}__has-hover-eff`]:G,[`${je}__size`]:T,[`${je}__add-photo`]:D,[`${je}__standard`]:le,bordered:ie}),dt=P&&(0,A.A)(P)?{height:P,width:P,lineHeight:`${P}px`,fontSize:P/2}:{};if((!ne||ne.includes("generic_avatar.jpg")||oe)&&(Oe=(0,e.jsxs)("div",{className:(0,h.A)(xe,`lazy-avatar-${P}`),style:dt,...!!K&&{onClick:K},children:[D?(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)(c.A,{"aria-label":"add photo",role:"img",focusable:"false",className:"lazy-avatar__add-photo__icon"}),W?W():(0,e.jsx)("span",{className:"lazy-avatar__add-photo__text",tabIndex:"0",onKeyDown:We=>(0,p.Qx)(We),role:"button",children:"Add Photo"})]}):H?(0,e.jsx)(l.C0,{icon:H,size:P/1.7}):L?(0,e.jsx)("div",{className:Z,"aria-hidden":"true",children:L.trim().charAt(0)}):null,B,(0,e.jsx)(g.A,{className:"lazy-avatar__social-proof__icon",socialProof:ce})]})),Oe||(Oe=(0,e.jsxs)("div",{...!!K&&{onClick:K},className:(0,h.A)(xe,"lazy-avatar__img",`lazy-avatar-${P}`,U&&"lazy-avatar__img-contain"),style:dt,children:[ne?(0,e.jsx)("img",{src:ne,alt:$?L:"",loading:"lazy"}):B,(0,e.jsx)(g.A,{className:"lazy-avatar__social-proof__icon",socialProof:ce})]})),V&&(Oe=(0,e.jsxs)("span",{className:"dynamic-profile-indicator",children:[(0,e.jsx)(v.A,{className:"dynamic-profile-indicator-icon"}),Oe,(0,e.jsx)(g.A,{className:"lazy-avatar__social-proof__icon",socialProof:ce})]})),G){const We=`${je}__hover-container`;Oe=(0,e.jsx)("div",{className:(0,h.A)(We,`hc-${P}`,`${We}__shape-${S}`,{[`${We}__size`]:T}),style:dt,children:Oe})}return k?(0,e.jsx)(a.A,{placement:F,title:_,getPopupContainer:We=>We&&We.parentNode?We.parentNode:document.body,children:Oe}):Oe});const{id:I,hidden:E}=d;let M="";E&&(M="https://d29j6mv5ylc4kb.cloudfront.net/admin/brVzcV84QfaOd2zYAnNF_ic_hidden-profile-avatar.svg"),this.state={error:!1,src:M,bgColorClass:I?(0,x.e$_)(I):(0,x.Iqr)()},this.mounted=!0,setTimeout(()=>{this.checkIfValidImg(d.src)},0)}componentDidUpdate(d){const{id:I,src:E}=this.props;E!==this.state.src&&this.checkIfValidImg(E),I&&d.id!==I&&this.setState({bgColorClass:(0,x.e$_)(I)})}componentWillUnmount(){this.mounted=!1}render(){return this.Avatar()}}m.propTypes={id:o().oneOfType([o().number,o().string]),shape:o().string,size:o().oneOfType([o().oneOf(["default","tiny","tiny-1","small","medium","large","medium-2"]),o().number]),icon:o().string,alt:o().string,className:o().string,onClick:o().func,responsive:o().bool,hidden:o().bool,addCameraText:o().bool,children:o().node},m.defaultProps={shape:"circle",size:"default",icon:"",alt:"",className:"",responsive:!1,hidden:!1,addCameraText:!1,children:null};const b=m},922939:(q,N,t)=>{t.d(N,{A:()=>g});var e=t(715621),s=t(537953),l=t(111772),a=t(243130),h=t.n(a),A=t(768835),C=t(539104);const g=({id:x,className:p,loading:c,previousActive:v,initialFocus:n=!0,shouldTrapFocus:i=!0,fullScreen:f,dialogLabel:y="",...m})=>{const[b]=s.useState(x||h().generate());return s.useEffect(()=>()=>{v&&typeof v.focus=="function"&&v.focus()},[]),s.useEffect(()=>{setTimeout(()=>{const u=document.getElementsByClassName(b)[0],d=u&&u.closest(".ant-modal-wrap");if(d){const I=y||m.title;
96d.setAttribute("aria-label",typeof I=="string"?I:""),d.setAttribute("aria-modal",!0)}if(u){const I=u.getElementsByClassName("ant-modal-content")[0];if(I){const P=I.getElementsByTagName("main")[0];P||I.setAttribute("role","complementary"),P&&P.setAttribute("aria-labelledby",b)}u.setAttribute("id",b);const E=u.children||[];if(!i){const P=E[E.length-1];P&&P.textContent==="sentinel"&&(P.setAttribute("role","complementary"),P.setAttribute("aria-label","sentinel"),P.setAttribute("tabindex",-1));return}const M=E[0];M&&M.setAttribute("tabindex",-1);const S=E[E.length-1];S&&S.textContent==="sentinel"&&u.removeChild(S),(0,C.A)({id:b,initialFocus:n})}},0)},[m.visible,c,m.title,y]),(0,e.jsx)(l.A,{className:(0,A.A)(b,{[p]:!!p}),...m})}},925079:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(715621),s=t(537953),l=t(243130),a=t.n(l),h=t(246239);const A={},o=g=>{const[x]=s.useState(a().generate());s.useEffect(()=>{if(g.visible){const c=document.getElementById("root"),v=c.getElementsByClassName("app-container")[0],n=v&&v.getElementsByTagName("main")[0],i=n&&n.parentElement,f=c.getElementsByClassName("skip-to-content")[0];let y="";return i&&(n&&i.removeChild(n),f&&(y=f.getAttribute("href"),f.setAttribute("href",`#${x}`))),()=>{i&&(n&&i.appendChild(n),f&&y&&f.setAttribute("href",y))}}},[g.visible]);const{children:p}=g;return(0,e.jsx)(h.aF,{closable:!1,footer:null,...g,className:"modal-fullscreen "+g.className,fullScreen:!0,children:(0,e.jsx)("main",{id:x,"aria-labelledby":x,children:p})})}},930726:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(715621),s=t(537953),l=t(939291),a=t(922109);const h={};var A=t(425170);class C extends s.PureComponent{render(){const{jobObj:x,className:p="",firstNamekey:c="firstName",lastNameKey:v="lastName"}=this.props;let n="";const i=(0,l.A)(x,"company"),f=(0,l.A)(x,"jobIcon",null);return i&&(n=(0,A.D1d)(i.logoUrl,i.website)),f&&(n=f),(0,e.jsx)(a.A,{src:n,alt:(0,l.A)(x,"company.title")||`${(0,l.A)(x,`owner.${c}`,"")} ${(0,l.A)(x,`owner.${v}`,"")}`,shape:"square",maintainAspectRatio:!0,id:(0,l.A)(x,"company.id")||(0,l.A)(x,"owner.id"),className:f?"project-template-icon":p})}}const o=C},932922:(q,N,t)=>{t.d(N,{A:()=>p});var e=t(715621),s=t(537953),l=t(248883),a=t(768835),h=t(855375),A=t(281308),C=t(839050),o=t(14365),g=t(380367);const p=({handleOnChipClick:c,standardUserType:v,question:n,hideSlider:i,template:f,setTemplate:y,dataSource:m="dynamic"})=>{const b=(0,s.useCallback)(H=>{d(H),y==null||y(H),c(H)},[c,y]);(0,s.useEffect)(()=>{n||(d(""),y==null||y(""))},[n,y]),(0,s.useEffect)(()=>{f&&d(f)},[f]);
96const[u,d]=(0,s.useState)(""),I=(0,C.iZ)(),{data:E,isLoading:M}=(0,o.B)(I,"ask_anything",{enabled:m==="dynamic"}),S=(0,s.useCallback)((H,L)=>(0,e.jsx)(l.vu,{text:H,className:(0,a.A)([g.A.chip,{[g.A.active]:H===u}]),role:"button","aria-pressed":H===u,tabIndex:0,onClick:()=>b(H),onKeyDown:O=>{(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),b(H))}},H),[b,u]),P=(0,s.useMemo)(()=>{if(m==="dynamic")return!E||M?[]:E.map(({name:L},O)=>S(L,O));const H=h.P[v]||h.P.Generic;return Object.keys(H).map((L,O)=>S(L,O))},[m,E,M,v,S]);return i?(0,e.jsx)(e.Fragment,{children:P}):(0,e.jsx)(A.A,{className:g.A.templates,length:3,children:P})}},939064:(q,N,t)=>{t.d(N,{A:()=>x});var e=t(715621),s=t(537953),l=t(480634),a=t.n(l),h=t(96345),A=t(662180),C=Object.defineProperty,o=(p,c,v)=>c in p?C(p,c,{enumerable:!0,configurable:!0,writable:!0,value:v}):p[c]=v,g=(p,c,v)=>o(p,typeof c!="symbol"?c+"":c,v);class x extends s.Component{constructor(){super(...arguments),g(this,"getNextPage",()=>{const{callbackParams:c,handleInfiniteOnLoad:v,hasMore:n}=this.props;n&&v(c)}),g(this,"hasVScroll",()=>{const{useWindow:c=!0,getScrollParent:v}=this.props;if(c)return document.body.scrollHeight>=document.body.clientHeight;if(v){const n=v();if(n)return n.scrollHeight>n.clientHeight}return!1})}componentDidMount(){const{prefill:c=!1,page:v=-1,source:n="",hasMore:i}=this.props;(c&&v>-1||i)&&!this.hasVScroll()&&this.getNextPage(),(0,A.tN)()&&n==="resources"&&setTimeout(()=>{document.documentElement.scrollTop=0})}componentDidUpdate(c){const{prefill:v=!1,page:n=-1}=this.props;v&&n>c.page&&!this.hasVScroll()&&this.getNextPage()}render(){const{hasMore:c,children:v,useWindow:n=!0,getScrollParent:i,announceToSR:f=!1,itemAliasSingular:y="item",itemAliasPlural:m="items",totalCount:b,itemCount:u=0,hideLoaderView:d=!1,"aria-live-id":I,role:E="list",loaderLabel:M,initialLoad:S=!1,parentClassName:P,threshold:H,hideRole:L=!1,isReverse:O=!1}=this.props,K=`${b>1?`${m}`:`${y}`}`;let T=b>0&&!d?`${u?`${u} new ${K} added. `:""}Showing ${b} ${K}`:"";d&&(T=`Loading ${m}`);const D=f&&d?{"aria-busy":"true"}:{};return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)("span",{"aria-live":"polite",role:"status","aria-atomic":"true",className:"sr-only",id:I,children:f?T:""}),(0,e.jsx)("div",{className:`scroll-pagination ${this.props.className||""}`,children:(0,e.jsx)(a(),{initialLoad:S,isReverse:O,pageStart:0,loader:(0,e.jsx)("div",{style:{marginTop:10,marginBottom:10},children:(0,e.jsx)(h.A,{loaderLabel:M})},0),hasMore:c,useWindow:n,getScrollParent:i,loadMore:this.getNextPage,...H?{threshold:H}:{},children:(0,e.jsx)("div",{role:L?void 0:E,...D,className:P,children:v})})})]})}}},950633:(q,N,t)=>{t.d(N,{GI:()=>e,MY:()=>a,_3:()=>l,te:()=>s});const e="career-path",s="alum-student-outreach",l="ask-anything-widget",a="career-suggestions"},951749:(q,N,t)=>{t.d(N,{A:()=>h});var e=t(715621),s=t(441131);const l={},h=A=>{const{primaryText:C,secondaryText:o,imgAlt:g}=A;return(0,e.jsxs)("div",{className:"success-banner",children:[(0,e.jsx)(s.A,{className:"lottie-player"}),(0,e.jsx)("div",{className:"round-check",children:(0,e.jsx)("img",{src:"https://cdn.peoplegrove.com/admin/1647431511256blue-bg-round-check.svg",alt:g||"Success"})}),C&&(0,e.jsx)("h3",{children:C}),o&&(0,e.jsx)("p",{children:o})]})}},955402:(q,N,t)=>{t.d(N,{A:()=>H});var e=t(715621),s=t(537953),l=t(287355),a=t.n(l),h=t(992972),A=t.n(h),C=t(211881),o=t(886304),g=t(277599),x=t(219222),p=t(74405),c=t(120942),v=t(67118),n=t(741863),i=t(551471),f=t.n(i),y=t(565504),m=t(829080),b=t(246239),u=t(161222);const d={},I=(0,C.C)(new Date),E=(0,v.A)(I-100,I+100,1),M=["January","February","March","April","May","June","July","August","September","October","November","December"],S=({date:L,changeYear:O,changeMonth:K,decreaseMonth:T,increaseMonth:D,prevMonthButtonDisabled:W,nextMonthButtonDisabled:B,decreaseYear:k,increaseYear:_,prevYearButtonDisabled:F,nextYearButtonDisabled:U,showYearHeader:V=!1})=>(0,e.jsxs)("div",{className:"pg-datepicker-calendar__header",children:[(0,e.jsx)(b.$n,{className:"pg-datepicker-calendar__header__month-cta previous",noborder:!0,nopadding:!0,icon:"campuskudos-arrow-67-1",onClick:V?k:T,"aria-label":"previous month",disabled:V?F:W}),(0,e.jsxs)("div",{className:"pg-datepicker-calendar__header__select",children:[!V&&(0,e.jsx)(b.l6,{className:"pg-datepicker-calendar__header__select__month",dropdownClassName:"pg-datepicker-calendar__header__select__month__dropdown",value:M[(0,o.t)(L)],onChange:K,options:M.map((Z,$)=>({value:$,name:Z,label:Z})),optionFilterProp:"label",showSearch:!0}),(0,e.jsx)(b.l6,{className:"pg-datepicker-calendar__header__select__year",dropdownClassName:"pg-datepicker-calendar__header__select__year__dropdown",value:(0,C.C)(L),onChange:O,options:E.map(Z=>({value:Z,label:String(Z)})),optionFilterProp:"label",showSearch:!0})]}),(0,e.jsx)(b.$n,{className:"pg-datepicker-calendar__header__month-cta",noborder:!0,nopadding:!0,icon:"campuskudos-arrow-68-1",onClick:V?_:D,"aria-label":"next month",disabled:V?U:B})]}),H=s.forwardRef(({className:L,popperClassName:O,calendarClassName:K,showToday:T=!0,calendarIcon:D="right",useMoment:W=!1,value:B,containerProps:k={},onCalendarOpen:_,onCalendarClose:F,showCustomHeader:U=!0,highlightDates:V,onMonthChange:Z,dateFormat:$,useWeekdaysShort:G=!1,inputReadOnly:ie=!1,customInput:le,portalId:ce,...oe},Q)=>
96{const ne=(0,m.MU)(),[Oe,je]=(0,s.useState)(null),xe=(0,s.useRef)(null),dt=(0,s.useRef)(null),We=(0,s.useRef)(null);(0,s.useEffect)(()=>{setImmediate(()=>{var we,be,ye,tt,Te,Je;if(!xe.current)return;const Ue=(ye=(be=(we=xe.current)==null?void 0:we.calendar)==null?void 0:be.instanceRef)==null?void 0:ye.monthContainer.querySelectorAll(".react-datepicker__day--highlighted, .react-datepicker__day--selected"),_e=(Je=(Te=(tt=xe.current)==null?void 0:tt.calendar)==null?void 0:Te.instanceRef)==null?void 0:Je.monthContainer.querySelectorAll(".react-datepicker__day");_e==null||_e.forEach(bt=>{bt.setAttribute("aria-selected","false")}),Ue==null||Ue.forEach(bt=>{bt.setAttribute("aria-selected","true")})})},[V,Oe]),(0,s.useImperativeHandle)(Q,()=>dt.current),(0,s.useEffect)(()=>{var we;const be=(we=xe.current)==null?void 0:we.input;!be||!(be instanceof HTMLInputElement)||(be.readOnly=!!ie,ie?be.setAttribute("inputmode","none"):be.removeAttribute("inputmode"))},[ie,B,Oe]);const Pe={};T&&(Pe.renderDayContents=(we,be)=>(0,e.jsx)("span",{className:A()({"pg-datepicker-calendar__today":(0,g.c)(be)}),children:(0,x.p)(be)})),W&&(Pe.selected=B&&new Date(f()(B).toDate()),(0,p.f)(Pe.selected)||(Pe.selected=null),Pe.onChange=we=>
96{we&&oe.onChange(f()(we),(0,c.GP)(we,"dd-MM-yyyy"))},oe.format&&(Pe.dateFormat=oe.format.replace(/d/g,"E").replace(/D/g,"d").replace(/Y/g,"y"))),U&&(Pe.renderCustomHeader=we=>(0,e.jsx)(S,{...we,showYearHeader:oe.showMonthYearPicker}));const Le=(0,s.useCallback)(()=>{le&&ce&&(We.current=document.activeElement,setTimeout(()=>{const we=document.querySelector(".pg-datepicker-calendar"),be=we==null?void 0:we.querySelector("button");(0,n.A)(be==null?void 0:be.focus)&&be.focus()},0))},[le,ce]),Me=(0,s.useCallback)(()=>{var we;le&&ce&&(0,n.A)((we=We==null?void 0:We.current)==null?void 0:we.focus)&&We.current.focus()},[le,ce]),ct=we=>{je(we),typeof Z=="function"&&Z(we)};return(0,s.useEffect)(()=>{const we=V&&V.length>0?`0${f()(V[0]).format("DD")}`:"today",be=document.querySelector(`.react-datepicker__day--${we}`);be&&(be.setAttribute("aria-selected",!0),be.setAttribute("aria-current",!0))},[V]),(0,e.jsxs)("div",{className:A()("pg-datepicker",{[L]:!!L,"pg-datepicker--custom":!!le,"font-scaled":ne}),ref:dt,onBlur:we=>{var be;typeof((be=xe.current)==null?void 0:be.setOpen)=="function"&&xe.current.input===we.target&&setImmediate(()=>{var ye;dt.current.contains(document.activeElement)||(ye=xe.current)==null||ye.setOpen(!1)})},...k,children:[!le&&(0,e.jsx)("div",{className:"pg-datepicker__icon-wrapper",children:["left","right"].includes(D)&&(0,e.jsx)("span",{className:`pg-datepicker__icon-${D}`,onClick:oe.onClick,children:(0,e.jsx)(y.A,{focusable:!1,"aria-hidden":!0})})}),(0,e.jsx)(a(),{ref:xe,customInput:le,className:A()("pg-datepicker__input",{"pg-datepicker__input--left-icon":D==="left","pg-datepicker__input--right-icon":D==="right"}),popperClassName:A()("pg-datepicker-popper",{[O]:!!O,"font-scaled":ne}),calendarClassName:A()("pg-datepicker-calendar",{[K]:!!K,monthYearCalendar:!!oe.showMonthYearPicker}),showPopperArrow:!1,useWeekdaysShort:G,onSelect:(we,be)=>{const ye=be.target;document.querySelectorAll('.react-datepicker__day[aria-selected="true"]').forEach(Te=>{Te.setAttribute("aria-selected",!1),Te.setAttribute("aria-current",!1)}),ye&&(ye.setAttribute("aria-selected",!0),ye.setAttribute("aria-current",!0))},dateFormat:$,placeholderText:"DD/MM/YYYY",autoComplete:"off",onCalendarOpen:()=>{Le(),(0,n.A)(_)&&_()},onCalendarClose:()=>{Me(),(0,n.A)(F)&&F()},highlightDates:V,onMonthChange:ct,portalId:ce,...oe,...Pe})]})})},960998:(q,N,t)=>{t.d(N,{A:()=>f});var e=t(715621),s=t(537953),l=t(248883),a=t(62644),h=t(839392),A=t(736608),C=t(939291),o=t(883991),g=t(246239);const x={};var p=t(158167),c=Object.defineProperty,v=(y,m,b)=>m in y?c(y,m,{enumerable:!0,configurable:!0,writable:!0,value:b}):y[m]=b,n=(y,m,b)=>v(y,typeof m!="symbol"?m+"":m,b);class i extends s.PureComponent{constructor(){super(...arguments),n(this,"state",{dataSource:[],searchValue:"",inputValue:{name:void 0,latitude:null,longitude:null},loadingOptions:!1}),n(this,"initialized",!1),n(this,"initialInputValue",Object.assign({},this.state.inputValue)),n(this,"triggerChange",(0,h.A)(m=>{const b=this.props.onChange;b&&(this.getName(m)?b(Object.assign({},this.state.inputValue,m)):b(void 0))},300)),n(this,"getName",m=>{const{labelKey:b="name"}=this.props;return typeof m=="object"?m&&m[b]:m}),n(this,"getMetaInfoReverseGeocode",({location:m})=>{const{latitude:b,longitude:u}=m;if(b&&u){const d=new window.google.maps.LatLng(b,u);this.geocoder.geocode({latLng:d},(I,E)=>{if(E==="OK"&&I[0]){const M=I[0].address_components,S=(0,A.A)(M,L=>{if(L.types.indexOf("administrative_area_level_1")!==-1)return L}),P=(0,A.A)(M,L=>{if(L.types.indexOf("country")!==-1)return L}),H=(0,A.A)(M,L=>{if(L.types.indexOf("postal_code")!==-1)return L});this.setState({inputValue:{...m,locationMetadata:{state:S==null?void 0:S.long_name,country:P==null?void 0:P.long_name,zipcode:H==null?void 0:H.long_name}}})}})}}),n(this,"getLatLngFromId",m=>{const{getLocationMetadata:b=!1}=this.props;this.geocoder&&this.geocoder.geocode({placeId:m,language:"en"},(u,d)=>{if(d==="OK"&&u&&u.length>0){const I={name:u[0].formatted_address,latitude:u[0].geometry.location.lat(),longitude:u[0].geometry.location.lng(),fullObject:u[0],description:u[0].formatted_address,place_id:m};b?this.getMetaInfoReverseGeocode({location:I}):this.setState({inputValue:I})}setTimeout(()=>{this.initialized=!0},0)})}),n(this,"onSelect",m=>{m?this.getLatLngFromId(m):this.setState({inputValue:this.initialInputValue})}),n(this,"autocompleteCallback",m=>{this.setState({dataSource:m,loadingOptions:!1}),setTimeout(()=>{this.initialized=!0},0)}),n(this,"getPredictionAndSetValue",m=>{var b;this.setState({dataSource:m}),m.length>0&&this.getLatLngFromId((b=m[0].placePrediction)==null?void 0:b.placeId)}),n(this,"getPlaceSuggestions",(m,b=this.autocompleteCallback)=>{const u=p.h.getInstance(),{googleAutoCompletePlaceTypes:d=p.h.PLACES_REGION_TYPES}=this.props;m&&this.getName(m)!=="Remote / Virtual"?(this.setState({loadingOptions:!0}),u.getPlaceSuggestions({input:m,includedPrimaryTypes:d},b)):(this.setState({inputValue:{...this.initialInputValue,name:this.getName(m)},dataSource:[]}),setTimeout(()=>{this.initialized=!0},0))}),n(this,"debouncedGetPlaceSuggestions",(0,h.A)(m=>{this.getPlaceSuggestions(m)},500)),n(this,"handleSearch",m=>{this.props.usePGFormField||this.setState({inputValue:{...this.initialInputValue,name:m}}),m&&m.trimEnd().length>=3?(this.setState({searchValue:m}),this.debouncedGetPlaceSuggestions(m)):(!m||m.trimEnd().length<3)&&(this.debouncedGetPlaceSuggestions.cancel(),this.setState({dataSource:[],searchValue:m,loadingOptions:!1}))}),n(this,"renderOption",m=>{var b,u,d,I,E,M;const{usePGFormField:S}=this.props;return S?{label:(u=(b=m.placePrediction)==null?void 0:b.text)==null?void 0:u.toString(),value:(d=m.placePrediction)==null?void 0:d.placeId}:{name:(E=(I=m.placePrediction)==null?void 0:I.text)==null?void 0:E.toString(),value:(M=m.placePrediction)==null?void 0:M.placeId}})}componentDidMount(){this.geocoder=window.google?new window.google.maps.Geocoder:null;const{value:m}=this.props;this.getPlaceSuggestions(this.getName(m),this.getPredictionAndSetValue)}componentDidUpdate(m,b){var u;const{value:d,initialVal:I=void 0,labelKey:E="name"}=this.props,{inputValue:M}=this.state;this.getName(d)!==this.getName(m.value)&&this.getName(d)!==M[E]&&this.getPlaceSuggestions(this.getName(d),this.getPredictionAndSetValue),(0,C.A)(b,["inputValue",E])===null&&(b.inputValue[E]=void 0),(0,C.A)(M,E)===null&&(M[E]=void 0),(M[E]!==I||(0,o.A)(M,this.initialInputValue))&&!(0,o.A)(M==null?void 0:M[E],(u=b.inputValue)==null?void 0:u[E])&&this.triggerChange(M)}componentWillUnmount(){this.debouncedGetPlaceSuggestions&&this.debouncedGetPlaceSuggestions.cancel(),this.triggerChange&&this.triggerChange.cancel()}render(){const{id:m,placeholder:b,disabled:u=!1,style:d={},usePGFormField:I,forwardedRef:E,labelKey:M="name",getLocationMetadata:S=!1,formData:P,...H}=this.props,{dataSource:L,inputValue:O,loadingOptions:K,searchValue:T}=this.state;if(I)return(0,e.jsx)(l.jT,{ref:E,...H,id:m,loadingOptions:K,options:L.map(this.renderOption),value:O[M],selectedLabel:O[M],onChange:this.onSelect,onSearch:this.handleSearch,placeholder:b||"Enter a city",disabled:u,showClear:!H.required,icon:"pg-location-marker",className:"pg-form-location-auto-complete",notFoundContent:T&&T.trim().length<3?"Enter at least 3 characters to search":"No results found"});const D=this.props["aria-label"]?{"aria-label":this.props["aria-label"]}:{},W=this.props["aria-required"]?{"aria-required":this.props["aria-required"]}:{},B=this.props["aria-describedby"]?{"aria-describedby":this.props["aria-describedby"]}:{};return(0,e.jsxs)("div",{className:"location-field",children:[(0,e.jsx)(g.j9,{id:m,value:O[M],dataSource:L.map(this.renderOption),onSelect:this.onSelect,onSearch:this.handleSearch,placeholder:b||"Enter a city",disabled:u,getPopupContainer:k=>k.parentNode,role:"combobox",notFoundContent:O[M]&&O[M].trim().length<3?"Enter at least 3 characters to search":"No results found",...D,...W,...B,autoComplete:H.autoComplete,style:d,onFocus:()=>{const k=document.getElementById(m);k&&k.setAttribute("autocomplete","off")}}),(0,e.jsx)(a.A,{type:"environment-o",className:"certain-category-icon"})]})}}const f=i},962428:(q,N,t)=>{t.d(N,{L:()=>v,X:()=>c});var e=t(839392),s=t(939291),l=t(651904),a=t.n(l),h=t(278975),A=t(190515),C=t(967489),o=t(425170);const g="/api/",x=n=>{const{signedJWT:i,cluster:f,appError:y,initialPage:m}=n;if(i&&window.PGSupportWidget&&typeof window.PGSupportWidget.showModal=="function"){let b=(0,o.c5u)("support","supportHeaderText",f,"Help");const u=(0,o.F25)(f),d="production";let I=g,E=RegExp("^(http|https)://.*$");
96E.test(I)||(I=window.location.protocol+"//"+window.location.host+I);const M=(0,s.A)(A.M.getState(),"auth.authToken",null);let S={jwt:i,url:I,header:b,currentUrl:window.location.href,domainUrl:window.location.hostname,appError:y,appToken:M,initialPage:m,isStandardHub:u},P=null;if(d==="production")try{P=a().sessionURL,console.log("logRocket session callback returned with ",P)}catch(H){console.error("Error getting logRocket url ",H)}S.logRocketUrl=P&&E.test(P)?P:null,window.PGSupportWidget.showModal(S,H=>{H?localStorage.setItem("supportJwtToken",i):(0,o.mei)("Error opening support widget 1","error")})}else(0,o.mei)("Error opening support widget 2","error")};function p(){return new Promise(n=>{const i=document.createElement("script");i.src="https://support-widget.prod.static.pg.services/service.js?v4",i.onload=()=>n(),i.onerror=()=>{throw new Error},document.head.appendChild(i)})}const c=async({cluster:n,appError:i=!1,initialPage:f=null})=>{var y;try{await p();const m=await(0,C.KKN)(),{data:b}=m,u=b.token;x({signedJWT:u,cluster:n,appError:i,initialPage:f})}catch(m){if(console.error("Error Fetching Support Token - ",m),((y=m.response.data)==null?void 0:y.message)==="Email not verified"){const b=new URLSearchParams(window.location.search);b.set("modal","emailVerify"),h.A.push({search:b.toString()})}else(0,o.mei)("Error opening support widget 3","error");window.PGSupportWidget.isTokenApiCalling=!1}},v=({cluster:n,appError:i=!1,initialPage:f=null})=>(0,e.A)(()=>c({cluster:n,appError:i,initialPage:f}),4e3,{leading:!0,trailing:!0})},966720:(q,N,t)=>{t.d(N,{A:()=>l});var e=t(715621);const l=({size:a=8})=>{const h=Math.ceil(a/2);return(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:`0 0 ${a} ${a}`,fill:"none","aria-hidden":!0,children:[(0,e.jsx)("circle",{cx:h,cy:h,r:h,fill:"#D4380D"}),(0,e.jsx)("circle",{cx:h,cy:h,r:h-.5,stroke:"white","stroke-opacity":"0.6"})]})}},969134:(q,N,t)=>{t.d(N,{A:()=>c});var e=t(715621),s=t(537953),l=t(766652),a=t(69943),h=t(992972),A=t.n(h),C=t(970806),o=t(205792);const g=({icon:v})=>(0,e.jsx)("em",{className:v}),c=({options:v,"aria-label":n=null,"aria-labelledby":i=null,"aria-describedby":f=null,useCards:y=!1,className:m="",...b})=>{const u=y?l.A:s.Fragment,d={};return y&&(d.className=A()("checkbox-group__card",{"checkbox-group__card--enabled":!b.disabled}),d.onClick=I=>{if(!I.target||I.target.tagName==="INPUT")return;const E=I.target.getElementsByTagName("input")[0];E&&E.click()}),(0,e.jsx)(a.A.Group,{className:A()("checkbox-group",{[m]:!!m}),...b,children:(0,e.jsx)("div",{role:"group","aria-label":n,"aria-labelledby":i,"aria-describedby":f,children:v.map(({label:I,value:E,icon:M,className:S,disabled:P=!1},H)=>{const{className:L,...O}=d,K=y&&(0,C.A)(b.value,E);return(0,s.createElement)(u,{...O,key:JSON.stringify(E)||H,className:A()({[L]:!!L,[S]:!!S,"checkbox-group__card--selected":K})},(0,e.jsxs)(a.A,{value:E,disabled:P,children:[M&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{icon:M}),"\xA0"]}),I]}))})})})}},970801:(q,N,t)=>{t.d(N,{A:()=>A});var e=t(715621),s=t(537953),l=t(698879),a=t(710366);const h=(0,l.A)(()=>t.e(405).then(t.bind(t,10405)),{name:"ReactQueryDevtools",fallback:null});function A({isSuperAdmin:C=!1}){const[o,g]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{g(!1)},[]),(0,s.useEffect)(()=>{window.toggleRQDevtools=()=>{(C||(0,a.Gq)("reactQueryDevtoolsOpen"))&&g(x=>!x)}},[C]),o?(0,e.jsx)(h,{}):null}},975030:(q,N,t)=>{t.d(N,{A:()=>o});var e=t(715621),s=t(248883),l=t(768835),a=t(226898),h=t(312279);const A={"bg-primary-xlight":"bg-primary-xlight__CumsT","bg-primary-light":"bg-primary-light__S2Gei","bg-primary":"bg-primary__pdB7a","bg-primary-dark":"bg-primary-dark__UlaiX","bg-primary-xdark":"bg-primary-xdark__NR8YC","bg-secondary-xlight":"bg-secondary-xlight__OIKkS","bg-secondary-light":"bg-secondary-light__VvIjJ","bg-secondary":"bg-secondary__inPQl","bg-secondary-dark":"bg-secondary-dark__jW7KT","bg-secondary-xdark":"bg-secondary-xdark__llK73","bg-success-xlight":"bg-success-xlight__yCgQq","bg-success-light":"bg-success-light__WxK1k","bg-success":"bg-success__r1eUN","bg-success-dark":"bg-success-dark__IrXVO","bg-success-xdark":"bg-success-xdark__VFdCp","bg-info-xlight":"bg-info-xlight__bb0WS","bg-info-light":"bg-info-light__XydcM","bg-info":"bg-info__IW4iB","bg-info-dark":"bg-info-dark__SlLUv","bg-info-xdark":"bg-info-xdark__dEYb2","bg-warning-xlight":"bg-warning-xlight__QjlJF","bg-warning-light":"bg-warning-light__HmHhk","bg-warning":"bg-warning__iU26d","bg-warning-dark":"bg-warning-dark__s_Tq7","bg-warning-xdark":"bg-warning-xdark__Z_554","bg-alert-xlight":"bg-alert-xlight__bX2Yn","bg-alert-light":"bg-alert-light__k0MN2","bg-alert":"bg-alert__i2bFs","bg-alert-dark":"bg-
96alert-dark__KTwHj","bg-alert-xdark":"bg-alert-xdark__JyjYe","bg-danger-xlight":"bg-danger-xlight__FT7pv","bg-danger-light":"bg-danger-light__Oa7sf","bg-danger":"bg-danger__SQmeG","bg-danger-dark":"bg-danger-dark__s8h3s","bg-danger-xdark":"bg-danger-xdark__vQGhM",container:"container__V0Nzy","container-slim":"container-slim___CIdr","body--mobile":"body--mobile__nQyJW","hidden-mobile":"hidden-mobile__C9DFi","body--user-agent--mobile":"body--user-agent--mobile__cjesj","hidden-xs":"hidden-xs__dQwfe","hidden-sm":"hidden-sm__zh7vw","hidden-md":"hidden-md__Rs9nY","hidden-lg":"hidden-lg__xQvwU","hidden-xl":"hidden-xl__dLNzj","show-mobile":"show-mobile__DiUnx","show-xs":"show-xs__L4zXk","show-sm":"show-sm__sY36Y","show-md":"show-md__ZEzRV","show-lg":"show-lg__MKWUH","show-xl":"show-xl__neS6h","text-center":"text-center___af8b","text-left":"text-left__b45ZU","text-right":"text-right__TbtDf","float-right":"float-right__CjbwY","float-left":"float-left__TLF9W","font-sm":"font-sm__rX4Ng","text-small":"text-small__uZ1_d","font-lg":"font-lg__jLxZ4","font-base":"font-base__VPBtv","font-bold":"font-bold__f2DOC","font-light":"font-light__X5PWo","text-muted":"text-muted__q9mA6",h1:"h1__GeQuW",h2:"h2__FlkQI",h3:"h3__sS0nM",h4:"h4__qMGt_",h5:"h5__zoVps",h6:"h6__Q2Gdx",title:"title__Xinzl","font-normal":"font-normal__DGQvy","text-primary":"text-primary__p4Y3X","text-secondary":"text-secondary__iyFVy","text-success":"text-success__JvAaW","text-info":"text-info__wY2Mm","text-warning":"text-warning__i2lML","text-alert":"text-alert__ueoBf","text-danger":"text-danger__mxNBK","gradient-grey":"gradient-grey__wUAus","ant-card":"ant-card__PnxxO","ant-card-default":"ant-card-default__bIbdK","ant-card-head":"ant-card-head__jqICQ","ant-tooltip-inner":"ant-tooltip-inner__n_DEL","overflow-ellipsis":"overflow-ellipsis__T5A4P","cursor-pointer":"cursor-pointer__OG5fY","list-unstyled":"list-unstyled__rUw5D","list-inline":"list-inline__S49z1","ant-select-selection__rendered":"ant-select-selection__rendered__hdGE8","ant-dropdown-menu-item":"ant-dropdown-menu-item__wirdm","ant-menu":"ant-menu__r9GWx","ant-menu-item":"ant-menu-item__Ko1VZ","mobile-slide-up":"mobile-slide-up__lTUJ4","slide-up-overlay":"slide-up-overlay__ZrA1j","slide-up-overlay__icon":"slide-up-overlay__icon__fFnej","slide-up-overlay__full-height":"slide-up-overlay__full-height__jHfRA","slide-up-overlay__title":"slide-up-overlay__title__EPkA1","slide-up-overlay__body":"slide-up-overlay__body___GNWc","slide-up-overlay__footer":"slide-up-overlay__footer__lbHqP","ant-btn":"ant-btn__bzUIP","slide-up-overlay-container":"slide-up-overlay-container__IUhx0","ant-tooltip":"ant-tooltip__KCdsA",ckbg:"ckbg__UNgzB",backdrop:"backdrop__AnwWh",backdrop__active:"backdrop__active__om3K4","overflow-hidden":"overflow-hidden__OKu5n","no-script":"no-script__gAibb","set-spotlight":"set-spotlight__JxgTZ","flex-container":"flex-container__T4tp3","flex-grow":"flex-grow__XFJv_","app-container":"app-container__gKzpe","full-main-height":"full-main-height__gpJdm","app-container--hub-nav":"app-container--hub-nav__YUf_h","pg-loader":"pg-loader__hzplE","iframely-responsive":"iframely-responsive__Rib0p","fr-popup":"fr-popup__uLmtZ","fr-desktop":"fr-desktop__WutZ9","fr-active":"fr-active__nyYT9","froala-editor":"froala-editor__xIYwQ","fr-toolbar":"fr-toolbar__sWSfj","fr-command":"fr-command__VvwL0","fr-btn":"fr-btn__L2ZlR","fr-action-buttons":"fr-action-buttons__gQbon","fr-checkbox":"fr-checkbox__VkJLn",iconContainer:"iconContainer__WpYO7",badgeIcon:"badgeIcon__LCE2l",default:"default__i19yL",large:"large__JcSPt",eyeIcon:"eyeIcon__BJCs4",multipleBadgesCount:"multipleBadgesCount__AAIbw"},o=({userBadge:g,badgeGroup:x,className:p,additionalElement:c=null,size:v="default",isClickable:n=!0})=>{const i=(0,h.w)(),f=g.badge;return(0,e.jsxs)("div",{className:(0,l.A)(p,A.iconContainer),style:n?{}:{cursor:"text"},children:[(0,e.jsxs)(s.$n,{className:(0,l.A)(A.badgeIcon,{[A.large]:v==="large",[A.default]:v!=="large"}),type:"ghost",style:n?{}:{pointerEvents:"none"},tabIndex:n?0:-1,onClick:y=>{n&&i((0,a.X9$)({show:!0,showAnimation:!1,userBadge:g}))},children:[(0,e.jsx)("img",{src:f.icon,alt:f.title}),n&&(0,e.jsx)(s.C0,{icon:"pg-eye",className:A.eyeIcon,size:16}),c]}),x.length>1&&(0,e.jsx)("div",{className:(0,l.A)(A.multipleBadgesCount,{[A.large]:v==="large",[A.default]:v!=="large"}),children:x.length})]})}},999987:(q,N,t)=>{t.d(N,{A:()=>Ze});var e=t(715621),s=t(537953),l=t(145926),a=t(248883),h=t(839050),A=t(107024),C=t(425170),o=t(140451);const g=()=>{const ue=(0,l.zy)();return(0,s.useMemo)(()=>(0,C.UCY)(ue.pathname),[ue])};var x=t(686993),p=t(30249);const c=(0,x.eU)(!1);c.debugLabel="startAskingEventSent";const v=()=>(0,p.fp)(c),n=()=>(0,p.Xr)(c),i=(0,x.eU)(!1);i.debugLabel="hasHarmfulContent";const f=()=>(0,p.fp)(i),y=()=>(0,p.Xr)(i),m=(0,x.eU)(!1);
96m.debugLabel="hasSuccessfullySubmitted";const b=()=>(0,p.fp)(m),u=()=>(0,p.Xr)(m),d=2e3,I=50,E=(0,x.eU)("");E.debugLabel="questionAtom";const M=()=>(0,p.fp)(E),S=()=>(0,p.Xr)(E),P=(0,x.eU)(ue=>ue(E).length>d);P.debugLabel="isQuestionCharLimitExceededAtom";const H=()=>(0,p.fp)(P),L=(0,x.eU)(ue=>ue(E).length<I),O=()=>(0,p.fp)(L);var K=t(356029);const T=(0,x.eU)("");T.debugLabel="targetAudienceAtom";const D=()=>(0,p.fp)(T),W=ue=>ue.split("/").slice(3).join("/"),B=()=>{const ue=(0,K.E)(),[he]=D(),me=(0,l.zy)(),ge=W(me.pathname);return(0,s.useCallback)(De=>ue({pgAnalyticsModule:"Ask Anything",pgAnalyticsReceiverUserType:he,pgAnalyticsPageLocation:ge,pgAnalyticsOrigin:"platform",...De}),[ge,he,ue])};var k=t(768835),_=t(939291),F=t(90570),U=t(570427);const V=(0,x.eU)("");V.debugLabel="undoState";const Z=()=>(0,p.fp)(V),$=()=>(0,p.Xr)(V);var G=t(380367);const ie=s.lazy(()=>t.e(2308).then(t.bind(t,32308)));function le(){const ue=he=>{const me=document.querySelector(`div[title=${he}]`);me&&(me.tabIndex=-1)};return(0,e.jsxs)("div",{className:G.A.textAreaLoader,children:[(0,e.jsx)(s.Suspense,{fallback:(0,e.jsx)(e.Fragment,{}),children:(0,e.jsx)("div",{className:G.A.lottie,children:(0,e.jsx)(ie,{eventListeners:[{eventName:"complete",callback:()=>ue("lottie-button")}],title:"lottie-button",options:{loop:!0,autoplay:!0,path:"https://cdn.peoplegrove.com/admin/1691144039357sparkles-loading.json",rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}})})}),(0,e.jsx)("div",{className:G.A.text,children:"Enhancing"})]})}const ce=()=>(0,e.jsx)("div",{className:G.A.note,children:"Your name and question will be visible to users from the community as well as platform admins."}),oe=(0,x.eU)(!1);oe.debugLabel="isEnhancedUsingAI";const Q=()=>useAtom(oe),ne=()=>(0,p.Xr)(oe),Oe=(0,x.eU)({});Oe.debugLabel="lastAskedQuestion";const je=()=>(0,p.fp)(Oe),xe=()=>(0,p.Xr)(Oe);var dt=t(355462),We=t(689857),Pe=t(850504),Le=t(880277);const Me=(0,x.eU)("");Me.debugLabel="errorMessageAtom";const ct=()=>(0,p.fp)(Me),we=()=>(0,p.Xr)(Me);function be(){const ue=y(),he=u(),[me]=H(),[ge]=M(),[De]=O(),[He]=D(),Ye=(0,h.iZ)(),at=ne(),Se=xe(),Xe=we(),[ot]=(0,Le.M)(),Ge=$(),At=B(),{mutate:qe,isLoading:ht}=(0,We.X)({onSuccess:ke=>{Se((ke==null?void 0:ke.createdQuestion)||{}),Ge("");const _t=(0,_.A)(ke,"approved");if(ke.isHarmfulContent)ue(!0),At({pgAnalytics:"Ask Anything: Question Contains Harmful Content",pgAnalyticsQuestion:ge,pgAnalyticsIsEnhancedUsingAI:ot});else if(_t)he(!0),at(!1);else{const ms=ke.prompt;Xe(ms);return}}}),rt=(0,s.useCallback)(ke=>{if(!ke.trim())return;const _t=(0,dt.r)(ke),ms=Number((Ye==null?void 0:Ye.enhanceCount)||0)===0;_t?(At({pgAnalytics:"Ask Anything: Submit Question",pgAnalyticsContent:ke,pgAnalyticsIsEnhancedUsingAI:ot,pgAnalyticsIsAILimitReached:ms,pgAnalyticsQuestion:ke}),qe({question:ke,targetAudience:[He]})):(0,Pe.A)("Please make sure to replace all template placeholders","error")},[qe,He,At]);return(0,e.jsx)(a.$n,{className:G.A.submitBtn,size:"medium",onClick:()=>rt(ge),loading:ht,disabled:ht||me||De||!ge,children:"Submit"})}var ye=t(855375),tt=t(932922);const Je=()=>{const[ue,he]=M(),me=(0,C.XD1)(),ge=(0,s.useCallback)(De=>{console.log({standardUserType:me,templateKey:De});const He=(ye.P[me]||ye.P.Generic)[De];he(He)},[he,me]);return(0,e.jsx)("div",{className:G.A.templatesContainer,children:(0,e.jsx)(tt.A,{handleOnChipClick:ge,standardUserType:me,question:ue,dataSource:"static"})})};var Ue=t(226898),_e=t(312279),bt=t(468272),wt=t(550585);const us=()=>{const[ue]=H(),[he]=O(),[me,ge]=M(),De=(0,h.iZ)(),He=(0,_e.w)(),Ye=B(),at=ne(),[Se,Xe]=Z(),{mutate:ot,isLoading:Ge}=(0,bt.g)({onSuccess:({enhancedQuestion:ke})=>{ge(ke),He((0,Ue.ltL)({...De,enhanceCount:De.enhanceCount?De.enhanceCount-1:void 0}))}}),At=ut-(De.enhanceCount===void 0?ut:De.enhanceCount),qe=(0,s.useMemo)(()=>Ge||ue||he||At>=ut,[Ge,ue,he,At]),ht=(0,s.useCallback)(ke=>{ke.trim()&&(Xe(ke),ot({question:ke}))},[ot,Xe]),rt=(0,s.useCallback)(()=>{ge(Se),Xe("")},[ge,Xe,Se]);return(0,e.jsxs)("span",{className:G.A.enhanceBtnContainer,children:[Se?(0,e.jsx)(a.$n,{"aria-label":"Undo",className:G.A.undoBtn,type:"ghost",onClick:rt,children:(0,e.jsx)(a.C0,{src:"https://cdn.peoplegrove.com/icons/arrow-uturn-left.svg",height:16})}):null,(0,e.jsx)(a.m_,{content:qe?null:(0,e.jsxs)("div",{className:G.A.enhanceBtnTooltip,children:["Enhance writing using AI",(0,e.jsx)("span",{className:G.A.subText,children:`(${At}/${ut})`})]}),direction:"left",children:(0,e.jsxs)("button",{className:(0,k.A)(G.A.root,G.A.enhanceBtn),onClick:()=>{at(!0),ht(me),Ye({pgAnalytics:"Ask Anything: Click on Enhance with AI",pgAnalyticsQuestion:me})},disabled:qe,children:[(0,e.jsx)(wt.A,{size:16}),(0,e.jsx)("span",{className:G.A.text,children:"AI"})]})})]})};function Xt(){const[ue]=H(),[he]=O(),[me]=M(),ge=(0,s.useMemo)(()=>`${me==null?void 0:me.trim().length}/${he?`${I} min. chars`:d}`,[he,me]);return(0,e.jsxs)("div",{className:G.A.textAreaFooter,children:[(0,e.jsx)("div",{className:(0,k.A)(G.A.root,G.A.charCounter,{[G.A.charCounter__gtMaxLimit]:ue}),children:(0,e.jsx)("div",{className:G.A.charProgressText,children:ge})}),(0,e.jsx)(us,{})]})}const ut=20,As=()=>{const ue=(0,h.al)(),he=(0,h.iZ)(),me=(0,h.lx)(),ge=(0,C.Sr9)(he,me),De=(0,_.A)(me,"settings.userTypes",{}),He=(0,C.Djo)({poseQuestionUserTypes:ge,hubUserTypes:De}),[Ye,at]=M(),[Se,Xe]=ct(),[ot,Ge]=D(),At=B(),qe=(0,s.useRef)(null),[ht]=(0,U.i)();(0,s.useEffect)(()=>{ot||(ge.includes("alumni")&&ge.length>1?Ge("alumni"):Ge(ge[0])),qe.current&&qe.current.focus()},[ot,ge,Ge]);const[rt,ke]=v(),_t=$(),ms=(0,s.useCallback)(fs=>{_t(""),Xe(""),at(fs.trim()),rt||(ke(!0),At({pgAnalytics:"Ask Anything: Start Typing/Editing Question"}))},[At,at,ke,_t,rt]),Ms=()=>
96{if(ue){const Bs=document.getElementById("mobile-support-button");Bs&&Bs.click();return}const fs=document.getElementById("support-button");fs&&fs.click()},Zs=()=>(0,e.jsx)("div",{className:G.A.error,children:(0,e.jsx)("div",{className:G.A.errorMsg,children:(0,C.HIO)(Se)})});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:G.A.description,children:["Ask a career question and it will be sent to real professionals with relevant expertise and insights. You'll get an email when someone responds.",(0,e.jsxs)("span",{children:[" ","For other help, please"," ",(0,e.jsx)("span",{role:"link",className:G.A.linkButton,onClick:Ms,children:"submit a ticket to the admin"})," ","instead."]})]}),ge.length>1&&(0,e.jsx)(a.l6,{optionsContainerId:"poseQuestionPopover",label:(0,e.jsx)("p",{className:G.A.subTitle,children:"Select responder"}),placeholder:"Select an option",value:ot,onChange:fs=>{Ge(fs)},options:He}),(0,e.jsx)("div",{className:G.A.questionHeader,children:(0,e.jsx)("span",{children:"Ask your question"})}),(0,e.jsxs)("div",{className:(0,k.A)(G.A.textAreaWrapper,{[G.A.textAreaEnhancing]:ht}),children:[(0,e.jsx)(a.fs,{ref:qe,className:G.A.textArea,onChange:ms,value:Ye,disabled:ht,resizeNone:!0,placeholder:"Don\u2019t forget to include a short intro!",footer:(0,e.jsx)(Xt,{}),footerClassName:G.A.textAreaFooterWrapper}),ht?(0,e.jsx)(le,{}):null]}),!(0,F.A)(Se)&&Zs(),ue?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Je,{}),(0,e.jsx)(ce,{}),(0,e.jsx)(be,{})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Je,{}),(0,e.jsx)(be,{}),(0,e.jsx)(ce,{})]})]})};var kt=t(998141),Wt=t(960998),pt=t(294097);const qt=({value:ue,onChange:he,label:me})=>(0,e.jsx)(Wt.A,{value:ue,onChange:ge=>he(ge),usePGFormField:!0,request:pt.E,getLocationMetadata:!0,placeholder:"Type here",googleAutoCompletePlaceTypes:[],labelKey:"description","aria-label":"Address",label:me,optionsContainerId:"poseQuestionPopover"});var Bt=t(140875),Kt=t(632496),Ot=t(238891),hs=t(953165);const Es=()=>{const ue=(0,h.iZ)(),he=(0,h.lx)(),me=(0,Ot.A)(ue,he).id,ge=(0,Kt.So)(!0,me),De=(0,s.useMemo)(()=>ge==null?void 0:ge.options.map(rt=>({value:rt,label:rt.text||""})),[ge==null?void 0:ge.options]),He=(0,Kt.FQ)(!0,me),Ye=(0,s.useMemo)(()=>He==null?void 0:He.options.map(rt=>({value:rt,label:rt.text||""})),[He==null?void 0:He.options]),at=(0,h.er)(),Se=(0,C.c5u)("misc","associatedSchoolId",at,null),{majorsList:Xe,...ot}=(0,hs.U_)(Se),[Ge,At]=(0,s.useState)([]);(0,s.useEffect)(()=>{(0,F.A)(Xe)||At((0,Bt.A)([...Xe||[],...Ge],"value"))},[Xe]);const qe=(0,Kt.C2)(!0,me),ht=qe==null?void 0:qe.options.map(rt=>({value:rt,label:rt.text||""}));return{industriesOptions:De,jobFunctionsOptions:Ye,majorsData:{majorsList:Ge,...ot},helpTopicsOptions:ht}},ft=()=>{const{helpTopicsOptions:ue,industriesOptions:he,jobFunctionsOptions:me,majorsData:ge}=Es();return(0,s.useMemo)(()=>[{id:"secondaryPoseQuestionForm",fields:[{field:"input",id:"jobTitlesAndHeadlines",placeholder:"Type here",label:"Keywords for job titles and headlines"},{field:"autocomplete",id:"industries",placeholder:"Select Industries",multiple:!0,label:"Industries",options:he,optionsContainerId:"poseQuestionPopover"},{field:"autocomplete",id:"jobFunctions",placeholder:"Select Job Functions",multiple:!0,label:"Job functions",options:me,optionsContainerId:"poseQuestionPopover"},{field:"autocomplete",id:"majors",placeholder:"Type here",multiple:!0,label:"Areas of study/majors",optionsContainerId:"poseQuestionPopover",options:ge.majorsList,query:ge.searchText,onSearch:ge.setSearchText,loadingOptions:ge.isMajorsLoading},{field:"autocomplete",id:"helpTopics",placeholder:"Select Help Topics",multiple:!0,label:"Help topics",optionsContainerId:"poseQuestionPopover",options:ue},{field:"component",id:"location",component:qt,label:"Location"}]}],[ue,he,me,ge.isMajorsLoading,ge.majorsList,ge.searchText,ge.setSearchText])},Ne={secondaryDataForm:"secondaryDataForm__NbmVE",secondaryDataFormDescription:"secondaryDataFormDescription__elriD",saveButton:"saveButton__HNxzP"};var Re=t(537953);const Pt=({closeWidget:ue})=>{const he=ft(),me=(0,s.useRef)(),[ge,De]=je(),{mutate:He}=(0,kt.p)({onSuccess(ot,Ge,At){De({}),ue()}}),Ye=(0,s.useCallback)(()=>
96{if(!ge.id||!me.current)return;const ot={};Object.keys(me.current).forEach(Ge=>{var At;(At=me.current)!=null&&At[Ge]&&(ot[Ge]=me.current[Ge].value)}),He({questionId:ge.id,secondaryData:ot})},[He,ge]),[at,Se]=(0,s.useState)(!0),Xe=(0,s.useCallback)((ot,Ge)=>{var At,qe,ht,rt,ke,_t;me.current=ot,!(0,F.A)((At=Ge==null?void 0:Ge.jobTitlesAndHeadlines)==null?void 0:At.value)||!(0,F.A)((qe=Ge==null?void 0:Ge.industries)==null?void 0:qe.value)||!(0,F.A)((ht=Ge==null?void 0:Ge.jobFunctions)==null?void 0:ht.value)||!(0,F.A)((rt=Ge==null?void 0:Ge.majors)==null?void 0:rt.value)||!(0,F.A)((ke=Ge==null?void 0:Ge.helpTopics)==null?void 0:ke.value)||!(0,F.A)((_t=Ge==null?void 0:Ge.location)==null?void 0:_t.value)?Se(!1):Se(!0)},[]);return(0,e.jsxs)("div",{className:Ne.secondaryDataForm,children:[(0,e.jsx)("div",{className:Ne.secondaryDataFormDescription,children:"Want better answers? Use keywords and dropdowns to describe who you\u2019d like to answer your question."}),(0,e.jsx)(a.lV,{fieldSets:he,onChange:Xe,data:me.current}),(0,e.jsx)(a.$n,{className:Ne.saveButton,size:"medium",onClick:Ye,disabled:at,children:"Save"})]})},Mt=Re.memo(Pt),nt={successMain:"successMain__nPZoj",lottie:"lottie__roWfz",header:"header__FTjfJ",description:"description__FEOId",submitBtn:"submitBtn__mOVB1",closeBtn:"closeBtn__zDWuZ"},as=s.lazy(()=>t.e(2308).then(t.bind(t,32308))),is=ue=>{const he=document.querySelector(`div[title=${ue}]`);he&&(he.tabIndex=-1)},cs=({closeWidget:ue,reset:he})=>{const me=B();return(0,e.jsxs)("div",{className:nt.successMain,children:[(0,e.jsx)(s.Suspense,{fallback:(0,e.jsx)(e.Fragment,{}),children:(0,e.jsx)("div",{className:nt.lottie,children:(0,e.jsx)(as,{eventListeners:[{eventName:"complete",callback:()=>is("lottie-button")}],title:"lottie-button",options:{loop:!1,autoplay:!0,path:"https://cdn.peoplegrove.com/admin/1680591610653animation.json",rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}})})}),(0,e.jsx)("div",{className:nt.header,children:"Did you notice?"}),(0,e.jsx)("div",{className:nt.description,children:"Your message was submitted! You should receive a response between 3 to 5 days from someone who can help."}),(0,e.jsx)(Mt,{closeWidget:ue}),(0,e.jsx)(a.$n,{className:nt.closeBtn,size:"medium",type:"secondary",onClick:()=>(me({pgAnalytics:"Ask Anything: Ask Another Question"}),he()),children:"Ask another question"})]})},os={alertCircle:"alertCircle__dwk2J",title:"title__Quj1T",errorDescription:"errorDescription__smygJ",actions:"actions__jZawV",editBtn:"editBtn__Sl6hY",closeBtn:"closeBtn__fGoqS"},Js=({editQuestion:ue,closeWidget:he})=>{const me=(0,h.al)();return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:os.alertCircle,children:(0,e.jsx)(a.C0,{src:"https://cdn.peoplegrove.com/admin/1690484394728exclamation-outlined.svg",size:me?48:32})}),(0,e.jsx)("div",{className:os.title,children:"Inappropriate content"}),(0,e.jsx)("div",{className:os.errorDescription,children:"Your question can\u2019t be submitted because it contains keywords considered inappropriate, including, but not limited to, abusive content, explicit language, harassment, or insults."}),(0,e.jsxs)("div",{className:os.actions,children:[(0,e.jsx)(a.$n,{className:os.editBtn,size:"medium",onClick:()=>ue(),children:"Edit question"}),(0,e.jsx)(a.$n,{className:os.closeBtn,size:"medium",onClick:()=>he(),type:"secondary",children:"Close"})]})]})};var Ns=t(330688);const St={root:"root__wMBQq",widgetButton:"widgetButton__IM8Zd",active:"active__ft6Nh",showLabel:"showLabel__DoVk6",toolName:"toolName__y39c5",toolHeader:"toolHeader__ln1B7",popoverContent:"popoverContent__kZH54"},ln=()=>{const ue=(0,h.lx)(),he=(0,C.Z5M)(ue);return(0,e.jsxs)("div",{className:St.toolHeader,children:[(0,e.jsx)(Ns.A,{width:20,height:20}),(0,e.jsx)("div",{className:St.toolName,children:he})]})},tn={regularMain:"regularMain__OTGRL",harmfulMain:"harmfulMain__HcMmZ",successMain:"successMain__qR0KP",toolHeader:"toolHeader__xNkb7",closeBtn:"closeBtn__vG_CA"},Tn=({closeWidget:ue,close:he})=>{const[me,ge]=f(),De=S(),[He,Ye]=b(),at=(0,Le.c)(),Se=(0,h.al)();s.useEffect(()=>()=>{ue(!1)},[]);const Xe=B(),ot=n(),Ge=()=>{Xe({pgAnalytics:"Ask Anything: Click Close Question Widget"}),ue(!1),ge(!1),De(""),Ye(!1),typeof he=="function"&&he()},At=()=>He?(0,e.jsx)("div",{className:tn.successMain,children:(0,e.jsx)(cs,{closeWidget:Ge,reset:()=>{De(""),at(!1),Ye(!1)}})}):me?(0,e.jsx)("div",{className:tn.harmfulMain,children:(0,e.jsx)(Js,{editQuestion:()=>{ot(!1),ge(!1)},closeWidget:Ge})}):(0,e.jsx)("div",{className:tn.regularMain,children:(0,e.jsx)(As,{})});return(0,e.jsxs)("div",{id:"poseQuestionPopover",children:[(0,e.jsxs)("div",{className:tn.toolHeader,children:[(0,e.jsx)(ln,{}),(me||He)&&!Se?null:(0,e.jsx)(a.C0,{className:tn.closeBtn,onClick:()=>Ge(),icon:"pg-cross",width:"16",height:"16",color:"white"})]}),At()]})},pn=(0,x.eU)(!1);pn.debugLabel="widgetActive";const ae=()=>(0,p.fp)(pn),de=()=>{var ue;const he=(0,l.W6)(),me=(0,s.useRef)(null),ge=48,[De,He]=(0,s.use
96State)(0),[Ye,at]=(0,s.useState)(he.location.pathname.includes("/home-v3")),[Se,Xe]=ae(),ot=y(),Ge=S(),At=u(),qe=B();(0,s.useEffect)(()=>{var rt,ke;if((rt=me==null?void 0:me.current)!=null&&rt.clientWidth){const _t=-((((ke=me==null?void 0:me.current)==null?void 0:ke.clientWidth)||2*ge)-ge);He(_t)}},[(ue=me==null?void 0:me.current)==null?void 0:ue.clientWidth]),(0,s.useEffect)(()=>{he.listen(rt=>{rt.pathname.includes("/home-v3")?at(!0):at(!1)})},[he]),(0,s.useEffect)(()=>{if(Ye&&!Se){const rt=me.current;rt==null||rt.classList.add(St.showLabel),setTimeout(()=>{rt==null||rt.classList.remove(St.showLabel)},5*1e3)}},[Ye,Se]);const ht=(0,s.useCallback)(()=>{qe({pgAnalytics:"Ask Anything: Click Ask Anything"}),Se&&(ot(!1),Ge(""),At(!1)),Xe(!Se)},[qe,ot,At,Ge,Xe,Se]);return{className:(0,k.A)(St.root,St.widgetButton,{[St.active]:Se}),onClick:ht,style:Se?{}:{right:De},ref:me}},Ke=()=>{const ue=(0,l.zy)();return(0,s.useMemo)(()=>(0,C.NZl)(ue.pathname),[ue])},Ze=({onClose:ue})=>{const he=(0,o.O)(),me=g(),ge=Ke(),De=(0,l.W6)(),He=(0,h.lx)(),Ye=(0,h.iZ)(),[at,Se]=ae(),{showPoseQuestion:Xe}=(0,A.Y)(),ot=B(),[Ge,At]=(0,s.useState)(De.location.pathname.includes(`/hub/${He.identifier}`)),qe=(0,C.yFj)(Ye),ht=(0,h.al)(),rt=de();(0,s.useEffect)(()=>{De.listen(_t=>{_t.pathname.includes(`/hub/${He.identifier}`)?At(!0):At(!1)})},[De,He.identifier]);const ke=(0,s.useCallback)(_t=>{_t||ot({pgAnalytics:"Ask Anything: Close Question Widget"})},[ot]);return he||me||ge||!Ge||!qe||!Xe?null:(0,e.jsxs)(e.Fragment,{children:[ht?(0,e.jsx)(a.$n,{size:"medium",...rt,children:(0,e.jsx)(ln,{})}):(0,e.jsx)(a.AM,{position:"bottomRight",content:(0,e.jsx)(Tn,{closeWidget:Se}),className:St.popoverContent,buttonProps:rt,onVisibleChange:ke,children:(0,e.jsx)(ln,{})}),(0,e.jsx)(a.aF,{id:"pose-question-modal",open:ht&&at,hideClose:!0,children:(0,e.jsx)(Tn,{closeWidget:Se,close:()=>{ke(!1),ue&&ue()}})})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.