PageSourceSearch

https://static.operabase.com/df813371-27c1-4826-a09c-81b153392cc9/_next/static/chunks/4463.65b92900e69b5905.js

js operabase.com collected 2026-10-02 02:32:27 UTC 62,771 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c5b9a9f2-0f3d-4ce5-af59-e3589f257699",e._sentryDebugIdIdentifier="sentry-dbid-c5b9a9f2-0f3d-4ce5-af59-e3589f257699")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4463],{3812:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=i(92298).default},9161:e=>{e.exports={entityCell:"ob_yHn8rj",entityCell__imageContainer:"ob_snnZvQ",entityCell__image:"ob_oUdxsG",entityCell__content:"ob_0A3Yo8",entityCell__name:"ob_iCDUZl",entityCell__designation:"ob_afxNax",entityCell__dateRange:"ob_D6QRJ5",entityCell__employmentRecord:"ob_XNaEua"}},9427:e=>{e.exports={root:"ob_vBXxTm",root__wrapper:"ob_88OCpD",root__wrapper_left:"ob_xw863g",root__wrapper_right:"ob_aWpAK4",root__tabSwitch:"ob_2OInYm",root__tabContent_container:"ob_vkTZfG",testimonialsPositionMarker:"ob_CzQc5M",customersPositionMarker:"ob_0Prt7i",tabSwitchStickyContainer:"ob_JMlVgU",customerList:"ob_0y9xWt",customerList__item:"ob_n0Zypk",container:"ob_K8Pfgr",containerMobile:"ob_ZJo52Y",rootMobile:"ob_EG7ASr",landingPage:"ob_jMnQz5",testimonials:"ob_2CgZlG",mobileRoot:"ob_KMetoe",mobileHeader:"ob_yGO0jn",mobileBody:"ob_jRxAtG",mobileCustomerList:"ob_35sSHo",mobileCustomerList__item:"ob_B21hwu",mobileCustomerList__itemSkeleton:"ob_cXNLLo"}},14748:(e,t,i)=>{"use strict";i.d(t,{J6:()=>n,M1:()=>a,sW:()=>l});let a={EMAIL_LOGIN:"EMAIL_LOGIN",EMAIL_VERIFICATION:"EMAIL_VERIFICATION",VERIFY_ADD_EMAIL:"VERIFY_ADD_EMAIL",CHANGE_PRIMARY_EMAIL:"CHANGE_PRIMARY_EMAIL",CHANGE_PASSWORD:"CHANGE_PASSWORD"},n=a.EMAIL_VERIFICATION,l=[a.EMAIL_LOGIN,a.EMAIL_VERIFICATION]},18290:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var a=i(95155),n=i(22544);let l=e=>{let{control:t,name:i,rules:l,shouldUnregister:s,defaultValue:o,disabled:r,field:d,bind:c="value",fieldProps:m,groupPosition:_}=e,{field:u,fieldState:b,formState:h}=(0,n.as)({control:t,name:i,rules:l,shouldUnregister:s,defaultValue:o,disabled:r}),p=!!u.value,A=()=>u.onBlur(),T=e=>u.onChange(e),N={bind:c,groupPosition:_,name:i,field:u,fieldState:b,formState:h,value:u.value,checked:p,onValueChange:T,onBlur:A},y=m?m(N):void 0,x={name:u.name,onBlur:A,disabled:u.disabled,groupPosition:_,inputRef:u.ref},E="checked"===c?{checked:p,onValueChange:T}:{value:u.value,onValueChange:T},f={...x,...E,...y};return(0,a.jsx)(d,{...f})};l.__arcAcceptsGroupPosition=!0;let s=l},24626:e=>{e.exports={root:"ob_Gx4oOe",link:"ob_BZHohq",radioLabel:"ob_KsVncz",radioLabel__isSelected:"ob_XyCOxI",toggleBtn:"ob_u0NUow",selectedLabel:"ob_H3i374",radioButton:"ob_sXcwOz",selectedOption:"ob_QfbN8E",selectedOption__dropdown:"ob_Q7n3Ju",selectedOption__withoutLabel:"ob_2cb3ji",selectedOption__isActive:"ob_S1jizO",darkTheme:"ob_TDt7MY",toggleBtn__isSelected:"ob_WC13Xd",drawer:"ob_y4cIMW",drawer__header:"ob_5vkVB0",drawer__header_darkTheme:"ob_xZPBat",drawer__title:"ob_HyvVym",header_closeIcon:"ob_KfRZGD",optionsList:"ob_jhwjvo",isDropdown:"ob_MyDO7I",isOpen:"ob_HKrzGl"}},28572:(e,t,i)=>{"use strict";i.d(t,{A:()=>f});var a=i(95155),n=i(12115),l=i(86194),s=i(93614),o=i(96286),r=i(48158),d=i(74906),c=i(19420),m=i(6097),_=i(61634),u=i(29011),b=i(38042),h=i(2019),p=i(22377),A=i(42732),T=i(87913),N=i.n(T);let y={section:d.bP.TESTIMONIALS,component:d.$j.TESTIMONIAL_CARD},x={section:d.bP.TESTIMONIAL_MODAL},E=e=>{let{data:t,inLine:i,hideBorder:d=!1,variant:_="outlined",columns:u=2}=e,{t:b}=(0,p.useTranslation)("NS_APP_GLOBALS"),T=(0,r.A)(),E=(0,c.j3)(y),{user:f,userName:g,description:C,organization:I,userTitle:j,id:S}=t||{},[v,P]=(0,n.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:(0,l.default)(N().testimonialCard,E,{[N().hideBorder]:d,[N().testimonialCardGhost]:"ghost"===_,[N().testimonialCardSingleColumn]:1===u}),onClick:()=>{P(!0),T.click({...y,entityId:S,meta:{organizationId:I?.id}})},children:(0,a.jsxs)("blockquote",{className:N().quoteBlock,children:[(0,a.jsxs)("footer",{className:N().testimonialInfo,children:[(0,a.jsx)(h.A,{data:{...y,entityId:I?.id,entityName:I?.name,entityType:A.ENTITY_TYPES.ORGANIZATION},children:(0,a.jsx)("cite",{className:N().company,children:(0,a.jsx)(o.Ay,{variant:"p",size:i?12:14,weight:i?"bold":"medium",className:N().organizationName,...i&&{truncate:!0},children:I?.name})})}),(0,a.jsx)("cite",{className:N().author,children:(0,a.jsx)(o.Ay,{variant:"p",size:12,weight:"medium",...i&&{truncate:!0},color:"orange",children:f?.name||g})}),(0,a.jsx)(o.Ay,{variant:"p",size:12,className:N().userTitle,...i&&{truncate:!0},children:j})]}),(0,a.jsx)(o.Ay,{variant:"p",size:12,className:N().description,color:"secondary",children:C})]})}),(0,a.jsx)(s.A,{isOpen:v,onClose:()=>P(!1),styles:{title:N().modalTitle},title:b(`${m.TP}.FN_CUSTOMER_SAYS`),allowMobileDrawer:!0,className:N().testimonialModal,children:(0,a.jsx)("div",{className:N().testimonialModal__body,children:(0,a.jsxs)("blockquote",{className:N().testimonialModalQuote,children:[(0,a.jsx)(o.Ay,{variant:"p",size:14,color:"secondary",className:N().testimonialModal__body_description,children:C}),(0,a.jsxs)("footer",{className:N().testimonialModal__body_otherText,children:[(0,a.jsx)(h.A,{data:{...x,entity
1Id:I?.id,entityName:I?.name,entityType:A.ENTITY_TYPES.ORGANIZATION},children:(0,a.jsx)("cite",{className:N().company,children:(0,a.jsx)(o.Ay,{variant:"p",size:14,weight:"bold",children:I?.name})})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("cite",{className:N().author,children:(0,a.jsx)(o.Ay,{variant:"p",size:14,weight:"medium",color:"orange",children:f?.name||g})}),(0,a.jsx)(o.Ay,{variant:"p",size:14,color:"secondary",children:j})]})]})]})})})]})},f=(0,n.memo)(e=>{let{startOffset:t=0,limit:i,hideTitle:s=!1,inLine:r=!1,italic:d=!0,titleWeight:c="bold",className:h,hideBorder:A=!1,variant:T="outlined",columns:y=2,withSeparator:x=!1,minimized:f=!1,style:g}=e,{t:C}=(0,p.useTranslation)("NS_APP_GLOBALS"),{data:I}=(0,_.IT)((0,b.testimonialsList)({limit:b.TESTIMONIALS_POOL_SIZE},{select:(0,u.selectDataSlice)(t,i)})),j=(0,n.useMemo)(()=>I?.sort((e,t)=>{let i=e.organization&&Object.keys(e.organization).length>0,a=t.organization&&Object.keys(t.organization).length>0;return i&&!a?-1:!i&&a?1:0}),[I]);return s?(0,a.jsx)("ul",{className:(0,l.default)(N().testimonials,{[N().testimonialsHorizontal]:!!r,[N().testimonialsWithSeparator]:x,[N().minimized]:f,[h]:!!h}),style:g,children:I?.map((e,t)=>(0,a.jsxs)("li",{children:[(0,a.jsx)(E,{data:e,inLine:r,hideBorder:A,variant:T,columns:y}),x&&t<I.length-1&&(0,a.jsx)("div",{className:N().separator})]},e.id))}):(0,a.jsxs)("div",{className:N().root,children:[(0,a.jsx)(o.Ay,{variant:"p",size:16,weight:c,align:"center",italic:d,secondaryFont:!0,children:C(`${m.TP}.LP_WHAT_CUSTOMERS_SAY`)}),(0,a.jsx)("div",{className:(0,l.default)(N().testimonials,{[N().testimonialsWithSeparator]:x}),style:g,children:j?.map((e,t)=>(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(E,{data:e,hideBorder:A,variant:T,columns:y}),x&&t<j.length-1&&(0,a.jsx)("div",{className:N().separator})]},e.id))})]})})},30264:e=>{e.exports={filterContainer:"ob_9NZUNO",headerRow:"ob_a8dSYC",searchAndButtonContainer:"ob_0s48y6",searchField:"ob_PXliSt","Mui-focused":"ob_FwTHUJ",iconWrapper:"ob_aF2luz",searchIcon:"ob_LwMxGy",clearIcon:"ob_a9jUo1",officeDropdown:"ob_0MnlZv",addButton:"ob_ftozCG",addButtonIcon:"ob_gttDts",tabs:"ob_v7VvE4",tab:"ob_zU3uKB",tab__selected:"ob_hpGwnL",loading:"ob_M0Sit1"}},31599:e=>{e.exports={titleSection:"ob_QCTzBj",titleText:"ob_0r7GQA",subtitleText:"ob_igIGsU",teamMember:"ob_WtSSGK",entityCardContainer:"ob_lo7aU5",linkButtonPerPay:"ob_ewQYbL",name:"ob_QK19J5",editIcon:"ob_4Eu3JQ",shareButton:"ob_Uglkn3",deleteButton:"ob_Fk1NLD",mainTable:"ob_M3b23h",mainTableRoot:"ob_gLYkWL",bullets:"ob_TfZOwy",categorySections:"ob_FdMycL"}},32397:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a=i(95155);i(12115);var n=i(11348);let l=e=>{let{children:t,onClick:i,variant:l,leftIcon:s,rightIcon:o,disabled:r,type:d,className:c,iconClassName:m,isLoading:_,shape:u,isV4:b,trackingData:h={},skipTracking:p=!1}=e;return(0,a.jsx)(n.Ay,{onClick:i,variant:l,leftIcon:s,rightIcon:o,disabled:r,type:d,styles:{root:c,icon:m},loading:_,shape:u,isV4:b,trackingData:h,skipTracking:p,children:t})}},33352:(e,t,i)=>{"use strict";i.d(t,{A:()=>y});var a=i(95155),n=i(12115),l=i(86194),s=i(83786),o=i(68883),r=i(96286),d=i(48158),c=i(28554),m=i(55719),_=i(22377),u=i(11348),b=i(17413),h=i(92905),p=i(24626),A=i.n(p);let T=e=>{let{option:t,alwaysDropdown:i,isSelected:n,isEmbedded:s,onChange:d,enabledDarkMode:c=!1,styles:m,trackingData:u}=e,{t:h}=(0,_.useTranslation)("NS_APP_GLOBALS");return t?.label?t.radio?(0,a.jsx)(b.s,{checked:!!n,onChange:()=>d(t),label:t?.label,size:"small",styles:{radio:(0,l.default)(A().toggleBtn,A().radioButton,{[A().darkTheme]:!!c,[m?.radioBtn]:!!m?.radioBtn}),radioInput:(0,l.default)({[A().toggleBtn__isSelected]:!!n}),radioLabel:(0,l.default)(A().radioLabel,{[A().radioLabel__isSelected]:!!n})}}):t?.asLink?(0,a.jsx)(o.A,{...t.linkProps,external:s,disableUnderline:!0,trackingData:u?{...u,meta:{type:t?.type}}:void 0,children:(0,a.jsxs)("button",{className:(0,l.default)(A().toggleBtn,A().linkBtn,{[A().darkTheme]:!!c}),children:[t?.icon,(0,a.jsx)(r.Ay,{size:"12",color:"inherit",children:h(t?.label)})]},t?.value)},t?.value):(0,a.jsxs)("button",{className:(0,l.default)(A().toggleBtn,{[A().toggleBtn__isSelected]:n,[A().isDropdown]:i,[A().darkTheme]:!!c,[m?.toggleBtn]:!!m?.toggleBtn}),onClick:()=>d(t),children:[t?.icon,(0,a.jsx)(r.Ay,{size:"12",color:"inherit",children:h(t?.label)})]},t?.value):null},N=e=>{let{title:t,options:i,value:n,onChange:o,onCloseDrawer:d,isMobile:c,isOpen:m,alwaysDropdown:_,icon:b,isEmbedded:p,enableDarkMode:N,styles:y,trackingData:x}=e,E=(0,a.jsx)("div",{className:(0,l.default)(A().optionsList,{[A().isOpen]:m,[A().isDropdown]:_,[A().darkTheme]:N,[y?.optionsList]:!!y?.optionsList}),children:i?.map(e=>{let t=n===e?.value;return(0,a.jsx)(T,{option:e,onChange:o,isSelected:t,isEmbedded:p,alwaysDropdown:_,enabledDarkMode:N,styles:y,trackingData:x},e?.value)})});return c?(0,a.jsxs)(s.A,{isOpen:m,onClose:d,className:A().drawer,children:[(0,a.jsxs)("div",{className:(0,l.default)(A().drawer__header,{[A().drawer__header_darkTheme]:!!N}),children:[b,(0,a.jsx)(r.Ay,{size:"16",className:A().drawer__title,weight:"bold",children:t}),(0,a.jsx)(u.Ay,{variant:"text",styles:{icon:A().header_closeIcon},leftIcon:(0,a.jsx)(h.Ay,{icon:"close",size:14}),onClick:d})]}),E]}):E},y=e=>{let{title:t,options:i,value:s,onChange:o,label:u,leftIcon:b,rightIcon:h,alwaysDropdown:p,isEmbedded:T,enableDarkMode:y=!1,hideLeftIcon:x=!1,onOpen:E,styles:f,trackingData:g}=e,{isMobile:C}=(0,c.Ay)(),{t:I}=(0,_.useTranslation)("NS_APP_GLOBALS"),j=(0,n.useRef)(),S=(0,d.A)(),[v,P]=(0,n.use
1State)(!1),L=i?.find(e=>e?.value===s),O={label:u||!L?.icon&&I(L?.label)||"",leftIcon:b||L?.icon||null,rightIcon:h||null};(0,n.useEffect)(()=>{E&&E(v)},[E,v]);let w=(0,n.useCallback)(()=>{!C&&v&&P(!1)},[C,v]),M=(0,n.useCallback)(()=>{P(!1)},[]),k=(0,n.useCallback)(e=>{o(e),P(!1)},[o]);return(0,m.A)(j,w),(0,a.jsxs)("div",{ref:j,className:A().root,children:[(O?.icon||O?.label)&&(0,a.jsxs)("button",{className:(0,l.default)(A().toggleBtn,A().selectedOption,{[A().selectedOption__dropdown]:p,[A().selectedOption__isActive]:v,[A().selectedOption__withoutLabel]:!O?.label,[A().darkTheme]:y,[f?.selectedOption]:!!f?.selectedOption}),onClick:()=>{!v&&g&&S.click(g),P(!v)},children:[!x&&O?.leftIcon,O?.label&&(0,a.jsx)(r.Ay,{size:"12",color:"inherit",className:A().selectedLabel,children:O?.label}),O?.rightIcon]}),(0,a.jsx)(N,{title:t,icon:O?.leftIcon,options:i,value:s,onChange:k,isOpen:v,alwaysDropdown:p,isEmbedded:T,isMobile:C,onCloseDrawer:M,enableDarkMode:y,styles:f,trackingData:g})]})}},42365:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>eI});var a=i(95155),n=i(12115),l=i(90176),s=i.n(l),o=i(2818),r=i(33567),d=i(10043),c=i(64956),m=i(87123),_=i(46826),u=i(65062),b=i(27955),h=i(96286),p=i(77188),A=i(99363),T=i(72572),N=i(53976),y=i(48158),x=i(74906),E=i(92380),f=i(37090),g=i(24918),C=i(6097),I=i(45089),j=i(61634),S=i(46510),v=i(27822),P=i(12634),L=i(84441),O=i(11932),w=i(22377),M=i(42732),k=i(99944),R=i(33625),z=i(88989),D=i(95143),F=i(11348),$=i(93614),B=i(92905),G=i(67660),U=i.n(G);let Y=e=>{let{isOpen:t,onClose:i,employee:l,organization:s,onInviteSuccess:o,onAddWorkEmail:r,onProceedWithPersonalEmail:d,onSkip:c,isLoadingInvite:m=!1,isLoadingPayment:_=!1}=e,{t:u}=(0,w.useTranslation)("NS_APP_GLOBALS"),b=(l?.contacts?.filter(e=>e.contactType?.id===1)||[]).sort((e,t)=>"work"===e.category&&"personal"===t.category?-1:+("personal"===e.category&&"work"===t.category)),p=l?.lastInvitation,A=p?.profileContact?.id,T=!!p,[N,y]=(0,n.useState)(A||(b.length>0?b[0].id:null)),x=b.find(e=>e.id===N),E=x?.category==="personal",f=()=>{if(N){if(E&&d)return void d(x?.value);o&&o(N)}},g=()=>{r&&r(l)},I=()=>{c?c():i()};return(0,a.jsxs)($.A,{isOpen:t,onClose:i,disabledCloseHandler:!0,styles:{modalContainer:U().modalContainer,modalContent:U().modalContentWrapper},allowMobileDrawer:!0,children:[(0,a.jsxs)("div",{className:U().modalContent,children:[(0,a.jsxs)("div",{className:U().header,children:[(0,a.jsx)("div",{className:U().badge,children:(0,a.jsx)(h.Ay,{size:"12",weight:"bold",className:U().badgeText,children:u(`${C.TP}.FN_PRO`)})}),(0,a.jsxs)(h.Ay,{variant:"p",className:U().headerText,size:14,children:[(0,a.jsxs)(h.Ay,{size:"14",weight:"bold",className:U().headerText,children:[u(`${C.TP}.FN_PRO`)," "]}),(0,a.jsxs)(h.Ay,{size:"14",className:U().headerText,children:[u(`${C.TP}.FN_TOOL`)," ",u(`${C.TP}.FN_ACCESS_TO`)," "]}),(0,a.jsx)(h.Ay,{size:"14",className:U().headerText,weight:"bold",children:s?.name})]}),(0,a.jsx)(F.QW,{leftIcon:(0,a.jsx)(B.Ay,{icon:"close",size:20}),onClick:i,styles:{root:U().closeButton,icon:U().closeIcon}})]}),(0,a.jsxs)("div",{className:U().section,children:[(0,a.jsx)(h.Ay,{size:"12",weight:"bold",className:U().sectionTitle,children:u(`${C.TP}.FN_SELECT_EMAIL_TO_INVITE`)}),(0,a.jsx)(z.A,{value:N,onChange:e=>y(Number(e.target.value)),className:U().radioGroup,children:b.map(e=>{let t=e.id===A,i=T&&!t,n="personal"===e.category;return(0,a.jsx)(k.A,{value:e.id,disabled:i,control:(0,a.jsx)(R.A,{sx:{padding:0,width:16,height:16,"& .MuiSvgIcon-root":{fontSize:16}}}),sx:{margin:0,gap:"6px"},label:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:U().emailLabelContainer,children:[(0,a.jsx)(h.Ay,{size:"12",weight:N===e.id?"medium":"regular",className:i?U().emailLabelDisabled:U().emailLabel,children:e.value}),n&&(0,a.jsx)(h.Ay,{size:"12",className:U().personalBadge,children:"Personal"})]}),t&&p&&(0,a.jsxs)(h.Ay,{size:"12",color:"secondary",className:U().previouslyInvitedText,children:[u(`${C.TP}.FN_PREVIOUSLY_INVITED`)," - ",new Date(p.createdAt).toLocaleDateString()]})]}),className:U().radioOption},e.id)})}),!T&&(0,a.jsx)(F.Ay,{onClick:g,size:"small",variant:"text",styles:{root:U().addEmailLink},leftIcon:(0,a.jsx)(B.Ay,{icon:"add_outlined",size:16,className:U().addEmailIcon}),children:(0,a.jsx)(h.Ay,{size:"12",className:U().addEmailText,children:u(`${C.TP}.FN_ADD_WORK_EMAIL`)})}),(0,a.jsx)("div",{className:U().divider})]}),(0,a.jsx)("div",{className:U().section,children:E?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(h.Ay,{size:"14",weight:"bold",className:U().sectionTitle,children:[u(`${C.TP}.FN_PROCEED_WITH_PERSONAL`)," ($ ",u(`${C.TP}.PAID`),")"]}),(0,a.jsx)(h.Ay,{size:"12",color:"primary",className:U().infoText,children:u(`${C.TP}.FN_OR`)}),(0,a.jsxs)(h.Ay,{size:"12",color:"primary",className:U().personalEmailNote,children:[u(`${C.TP}.FN_USE_YOUR`)," ",(0,a.jsx)(h.Ay,{size:12,weight:"bold",children:s?.name})," ",u(`${C.TP}.FN_WORK_EMAIL_TO_GET_INSTANT_ACCESS`)," ",(0,a.jsx)(h.Ay,{size:12,weight:"bold",children:"Operabase Pro tools"}),", ",u(`${C.TP}.FN_INCLUDING_CASTING_TOOL_AND_ORG_FEATURES`),"."]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.Ay,{size:"14",weight:"bold",className:U().sectionTitle,children:u(`${C.TP}.FN_INVITE_USER`)}),(0,a.jsxs)(h.Ay,{size:"12",color:"primary",className:U().infoText,children:[u(`${C.TP}.FN_INVITE_USER_EXPLANATION`)," ",(0,a.jsxs)(h.Ay,{size:"12",weight:"bold",children:[s?.name,"."]})]}),(0,a.jsxs)(h.Ay,{size:"12",color:"primary",className:U().infoText,children:[u(`${C.TP}.FN_SKIP_NO_ACCESS`)," ",(0,a.jsx)(h.Ay,{size:"12",weight:"medium",children:u(`${C.TP}.FN_PRO_TOOL`)}),"."]}),(0,a.jsxs)(h.Ay,{size:"12",color:"primary",className:U().personalEmailNote,children:[u(`${C.TP}.FN_USE_YOUR`)," ",(0,a.jsx)(h.Ay,{size:12,weight:"bold",children:u(`${C.TP}.FN_PERSONAL_EMAIL`)})," ",u(`${C.TP}.FN_FOR`)," ",u(`${C.TP}.FN_PRO_TOOL`)," ",u(`${C.TP}.FN_FOR`)," ($ ",u(`${C.TP}.PAID`),")"]})]})})]}),(0,a.jsx)("div",{className:U().customFooter,children:E?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(D.A,{onClick:f,shape:"rectangle",disabled:!N||_,isLoading:_,className:U().footerButton,children:[u(`${C.TP}.FN_PROCEED_WITH_PERSONAL_EMAIL`)," ($ ",u(`${C.TP}.PAID`),")"]}),(0,a.jsx)(D.A,{onClick:g,shape:"rectangle",variant:"secondary",className:U().footerButton,children:u(`${C.TP}.FN_ADD_WORK_EMAIL`)}),(0,a.jsx)(F.QW,{onClick:I,className:U().skipButton,children:u(`${C.TP}.FN_SKIP_PRO_TOOL_ACCESS`)})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(D.A,{onClick:f,shape:"rectangle",disabled:!N||m,isLoading:m,className:U().footerButton,children:T?u(`${C.TP}.FN_RESEND_INVITE`):u(`${C.TP}.FN_INVITE_USER`)}),(0,a.jsx)(F.QW,{onClick:I,shape:"rectangle",variant:"text",className:U().footerButton,children:u(`${C.TP}.FN_SKIP`)})]})})]})};var V=i(86194),H=i(56422),W=i(51310),Z=i(30264),Q=i.n(Z);let K=e=>{let{employmentStatus:t,employmentStatusOptions:i,onEmploymentStatusChange:l,searchQuery:s,onSearchChange:o,searchPlaceholder:r,className:c,showAddButton:m=!1,onAddClick:_,addButtonDisabled:u=!1}=e,b=(0,d.A)("(max-width: 1024px)"),{t:p}
1=(0,w.useTranslation)("NS_APP_GLOBALS"),[A,T]=(0,n.useState)(!1);return(0,a.jsxs)("div",{className:`${Q().filterContainer} ${c||""}`,children:[(0,a.jsx)("div",{className:Q().headerRow,children:(0,a.jsxs)("div",{className:Q().searchAndButtonContainer,children:[(0,a.jsx)(W.A,{value:s,onChange:o,onFocus:()=>{T(!0)},onBlur:()=>{T(!1)},placeholder:r,variant:"outlined",size:"small",className:Q().searchField,InputProps:{startAdornment:(0,a.jsx)(H.A,{position:"start",children:(0,a.jsx)("span",{className:Q().iconWrapper,children:(0,a.jsx)(B.Ay,{icon:"search",size:14,className:Q().searchIcon})})}),endAdornment:s&&(0,a.jsx)(H.A,{position:"end",children:(0,a.jsx)("span",{className:Q().iconWrapper,children:(0,a.jsx)(B.Ay,{icon:"close",size:14,className:Q().clearIcon,onClick:()=>o({target:{value:""}})})})})}}),m&&(0,a.jsx)(F.Ay,{size:"small",shape:"rectangle",leftIcon:(0,a.jsx)(B.Ay,{icon:"person",size:14}),onClick:_,disabled:u,styles:{root:Q().addButton,icon:Q().addButtonIcon},trackingData:{section:x.bP.HEADER,component:x.$j.INVITE_USER_CTA},children:p(b?`${C.TP}.m_ADD`:`${C.TP}.FN_INVITE_USER`)})]})}),!A&&(0,a.jsx)("div",{className:Q().tabs,children:i.map(e=>(0,a.jsx)(F.JD,{onClick:t=>{s&&o({target:{value:""}}),l(t,e)},styles:{root:(0,V.default)(Q().tab,{[Q().tab__selected]:e.value===t})},children:(0,a.jsx)(h.Ay,{color:e.value===t?"link":"primary",size:11,weight:e.value===t?"bold":"regular",children:e.label})},e.value))})]})},X={ALL:"all",CURRENT:"current",PAST:"past",NOT_CONFIRMED:"not_confirmed"},J=(e,t)=>{if(!e||!Array.isArray(e))return[];switch(t){case X.CURRENT:return e.filter(e=>{if(!1===e.acknowledged)return!1;let t=e.roles||[];return 0===t.length||t.some(e=>!1===e.isPast)});case X.PAST:return e.filter(e=>{if(!1===e.acknowledged)return!1;let t=e.roles||[];return t.length>0&&t.every(e=>!0===e.isPast)});case X.NOT_CONFIRMED:return e.filter(e=>!1===e.acknowledged);default:return e}};var q=i(97252),ee=i(49592),et=i.n(ee);let ei=e=>{let{entity:t,entityType:i,onInviteSuccess:l,enableAdminCheck:s,employees:o}=e,{t:r}=(0,w.useTranslation)("NS_APP_GLOBALS"),[d,c]=(0,n.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(F.Ay,{styles:{root:et().inviteButton},size:"medium",shape:"rounded",leftIcon:(0,a.jsx)(B.Ay,{icon:"person"}),onClick:()=>c(!0),trackingData:{section:x.bP.HEADER,component:x.$j.INVITE_USER_CTA},children:r(`${C.TP}.FN_INVITE_USER`)}),(0,a.jsx)(q.A,{isOpen:d,onClose:()=>c(!1),entity:t,entityType:i,onInviteSuccess:e=>{c(!1),l(e)},enableAdminCheck:s,employees:o})]})},ea=e=>{let{entity:t,entityType:i,onInviteSuccess:n,enableAdminCheck:l,employees:s}=e;return(0,a.jsx)("div",{className:et().header,children:(0,a.jsx)(ei,{entity:t,entityType:i,onInviteSuccess:n,enableAdminCheck:l,employees:s})})};var en=i(13300),el=i(49484),es=i(62329),eo=i(75318),er=i(72387),ed=i(77380),ec=i(54589),em=i(64122),e_=i.n(em);let eu=function(e){let{member:t,memberIndex:i,handleConfirmEmployee:l,isLoadingConfirmEmployee:s,onDelete:o,onEdit:r,onInvite:d,showInvite:c,inviteLabel:m,mobileMenu:_,direction:u="column"}=e,{t:b}=(0,w.useTranslation)("NS_APP_GLOBALS"),{entity:p}=(0,ec.A)(),{organizationPermissions:{addInfo:{managementStaff:A}},agencyPermissions:{canEdit:T}}=(0,L.A)(),N=p?.organizationType?.id===C.ORGANIZATION_TYPE_IDS.AGENCY,y=A||N&&T,x=(0,n.useMemo)(()=>{let e=[];return!1===t.originalData.acknowledged?(e.push({label:b(`${M.TP}.FN_ACCEPT`),type:"filled",onClick:()=>l(t),disabled:!y||s}),o&&e.push({label:b(`${M.TP}.FN_REJECT`),type:"outlined",onClick:()=>o(t),disabled:!y})):(e.push({label:b(`${M.TP}.FN_EDIT_MEMBER`),type:"text",onClick:()=>r(t),disabled:!y,interactive:!0}),c&&d&&m&&e.push({label:m,type:"text",onClick:()=>d(t),disabled:!y,interactive:!0})),e},[l,y,m,s,t,o,r,d,c,b]);return(0,a.jsx)("div",{className:(0,V.default)(e_().actions,{[e_().actions__row]:"row"===u}),children:x.map(e=>"filled"===e.type?(0,a.jsx)(F.Ay,{variant:"primary",onClick:e.onClick,styles:{root:(0,V.default)(e_().filledButton,{[e_().filledButton__row]:"row"===u})},children:e.label}):"outlined"===e.type?(0,a.jsx)(F.Ay,{variant:"secondary",onClick:e.onClick,styles:{root:(0,V.default)(e_().outlinedButton,{[e_().outlinedButton__row]:"row"===u})},children:e.label}):(0,a.jsx)(F.Ay,{variant:"text",onClick:e.onClick,styles:{root:(0,V.default)(e_().textButton,{[e_().textButton__row]:"row"===u})},size:11,children:(0,a.jsx)(h.Ay,{size:11,weight:"medium",color:"link",children:e.label})}))})};var eb=i(98821),eh=i(9161),ep=i.n(eh);let eA=e=>{let{member:t}=e,i=t.originalData?.profile,n=t.employmentRecords||[];return(0,a.jsxs)("div",{className:ep().entityCell,children:[(0,a.jsx)("div",{className:ep().entityCell__imageContainer,children:(0,a.jsx)(eb.A,{entity:i,entityType:M.ENTITY_TYPES.PROFILE,variant:m.x.LANDSCAPE_MINI,styles:{card__img:ep().entityCell__image}})}),(0,a.jsxs)("div",{className:ep().entityCell__content,children:[(0,a.jsx)(h.Ay,{weight:"bold",size:"13",className:ep().entityCell__name,truncate:!0,children:t.name}),n.map((e,t)=>(0,a.jsxs)("div",{className:ep().entityCell__employmentRecord,children:[e.designation&&(0,a.jsx)(h.Ay,{size:"12",className:ep().entityCell__designation,truncate:!0,children:e.designation}),e.dateRange&&(0,a.jsx)(h.Ay,{size:"12",className:ep().entityCell__dateRange,truncate:!0,children:e.dateRange})]},t))]})]})};var eT=i(48252),eN=i.n(eT);let ey=()=>{let{t:e}=(0,w.useTranslation)("NS_APP_GLOBALS");return(0,a.jsxs)("div",{className:eN().accessLabel,children:[(0,a.jsx)(h.Ay,{className:eN().proTag,size:10,weight:"medium",children:"Pro"}),(0,a.jsx)(h.Ay,{size:11,color:"secondary",truncate:!0,weight:"medium",children:e(`${M.TP}.FN_ACCESS`)})]})},ex=function(e){let{title:t,data:i,confirmEmployee:l,onDelete:s,onEdit:o,onInvite:r,onViewProfile:d,mobileMenu:c,isMobile:m}=e,{t:_}=(0,w.useTranslation)("NS_APP_GLOBALS"),u=(0,n.useMemo)(()=>m?[]:[{id:"entity",label:_(`${M.TP}.FN_NAME_DESIGNATION_START_END_DATE`)},{id:"contacts",label:_(`${M.TP}.m_CONTACTDETAILS`)},{id:"access",label:(0,a.jsx)(ey,{})},{id:"email",label:_(`${M.TP}.FN_EMAIL_PREFERENCES`)},{id:"officialContacts",label:_(`${M.TP}.FN_OFFICIAL_CONTACTS_FOR`)},{id:"action",label:_(`${M.TP}.FN_ACTION`)}],[_,m]),b=(0,n.useMemo)(()=>m?[]:i.map((e,t)=>({data:{entity:d?(0,a.jsx)("div",{onClick:()=>d(e),style:{cursor:"pointer"},role:"button",tabIndex:0,onKeyDown:t=>"Enter"===t.key&&d(e),children:(0,a.jsx)(eA,{member:e})}):(0,a.jsx)(eA,{member:e}),contacts:(0,a.jsx)("div",{className:eN().contactsList,children:e?.contactDetails?.map((e,t)=>(0,a.jsx)(h.Ay,{size:11,color:"secondary",truncate:!0,title:e,children:e},t))}),access:(0,a.jsx)("ul",{className:eN().bullets,children:e?.permissions.map(e=>{let t=eo.F9[e?.identifier],i=_(eo.J1[t])||e?.identifier;return(0,a.jsx)("li",{children:(0,a.jsx)(h.Ay,{size:11,color:"secondary",truncate:!0,title:i,children:i})},e?.identifier)})}),email:(0,a.jsx)("ul",{className:eN().bullets,children:e?.emailPreferences?.map((e,t)=>{let i=_(e);return(0,a.jsx)("li",{children:(0,a.jsx)(h.Ay,{size:11,color:"secondary",truncate:!0,title:i,children:i})},t)})}),officialContacts:(0,a.jsx)("ul",{className:eN().bullets,children:e?.officialContactTypeIds?.map(e=>{let t=eo.n7.find(t=>
1t.id===e);if(!t)return null;let i=_(t.labelKey);return(0,a.jsx)("li",{children:(0,a.jsx)(h.Ay,{size:11,color:"secondary",truncate:!0,title:i,children:i})},e)})}),action:(0,a.jsx)(eu,{member:e,memberIndex:t,handleConfirmEmployee:l.handleConfirmEmployee,isLoadingConfirmEmployee:l.isLoadingConfirmEmployee,onDelete:s,onEdit:o,onInvite:r,showInvite:e.hasMissingAccess,inviteLabel:e.originalData?.lastInvitation?_(`${M.TP}.FN_RESEND_INVITE`):_(`${M.TP}.INVITE`),mobileMenu:{handleOpen:c.handleOpen,handleClose:c.handleClose}})}})),[l.handleConfirmEmployee,l.isLoadingConfirmEmployee,i,m,c.handleClose,c.handleOpen,s,o,r,d,_]);return m?(0,a.jsxs)("div",{className:eN().mobileTeamMembers,children:[(0,a.jsxs)(h.Ay,{className:eN().title,weight:"medium",children:[t," (",i.length,")"]}),(0,a.jsx)("div",{className:eN().mobileTeamMembersList,children:i.map((e,t)=>{let d=(e?.hasMissingAccess||e?.email||e?.phone)&&e?.originalData?.acknowledged===!1,m=(0,a.jsx)(eu,{member:e,memberIndex:t,handleConfirmEmployee:l.handleConfirmEmployee,isLoadingConfirmEmployee:l.isLoadingConfirmEmployee,onDelete:s,onEdit:o,onInvite:r,showInvite:e.hasMissingAccess,inviteLabel:e.originalData?.lastInvitation?_(`${M.TP}.FN_RESEND_INVITE`):_(`${M.TP}.INVITE`),mobileMenu:{handleOpen:c.handleOpen,handleClose:c.handleClose},direction:d?"column":"row"});return(0,a.jsxs)(n.Fragment,{children:[(0,a.jsxs)("div",{className:eN().mobileTeamMembersList__item,children:[(0,a.jsxs)("div",{className:eN().mobileTeamMembersList__item__top,children:[(0,a.jsx)("div",{className:eN().mobileTeamMembersList__item__top__left,children:(0,a.jsx)(eA,{member:e})}),d&&(0,a.jsx)("div",{className:eN().mobileTeamMembersList__verticalSeparator}),(0,a.jsxs)("div",{className:eN().mobileTeamMembersList__item__top__right,children:[e?.originalData?.acknowledged===!1&&(0,a.jsxs)(h.Ay,{color:"red",size:11,italic:!0,align:"right",children:[(0,a.jsx)(B.Ay,{icon:"warning",size:11,fill:"#8E021A"})," ",_(`${M.TP}.FN_PENDING_CONFIRMATION`)]}),e?.permissions.some(e=>e?.identifier==="castingToolAccess.extended")&&(0,a.jsxs)("div",{className:eN().accessLabel,children:[(0,a.jsx)(h.Ay,{className:eN().proTag,size:10,weight:"medium",children:"Pro"}),(0,a.jsx)(h.Ay,{size:11,italic:!0,truncate:!0,weight:"medium",children:_(`${M.TP}.FN_PRO_TOOL_ACCESS_GRANTED`)})]}),(0,a.jsx)(h.Ay,{size:11,color:"secondary",truncate:!0,title:e?.email,children:e?.email}),(0,a.jsx)(h.Ay,{size:11,color:"secondary",truncate:!0,title:e?.phone,children:e?.phone}),e?.contactDetails&&e.contactDetails.length>0&&(0,a.jsx)("div",{className:eN().contactsList,children:e.contactDetails.map((e,t)=>(0,a.jsx)(h.Ay,{size:11,color:"secondary",truncate:!0,title:e,children:e},t))}),e?.officialContactTypeIds&&e.officialContactTypeIds.length>0&&(0,a.jsxs)("div",{className:eN().officialContactsList,children:[(0,a.jsxs)("div",{className:eN().officialContactsLabel,children:[(0,a.jsx)("span",{className:eN().starIcon,children:"☆"}),(0,a.jsxs)(h.Ay,{size:11,color:"secondary",children:[_(`${M.TP}.FN_OFFICIAL_CONTACTS_FOR`),":"]})]}),(0,a.jsx)("ul",{className:eN().officialContactsBullets,children:e.officialContactTypeIds.map(e=>{let t=eo.n7.find(t=>t.id===e);if(!t)return null;let i=_(t.labelKey);return(0,a.jsx)("li",{children:(0,a.jsx)(h.Ay,{size:11,color:"secondary",truncate:!0,title:i,children:i})},e)})})]}
1),!d&&(0,a.jsx)("div",{className:eN().mobileTeamMembersList__item__top__right__actions,children:m})]})]}),d&&(0,a.jsx)("div",{className:eN().mobileTeamMembersList__item__bottom,children:m})]}),t<i.length-1&&(0,a.jsx)("div",{className:eN().mobileTeamMembersList__separator})]},t)})})]}):(0,a.jsxs)("div",{className:eN().teamsTable,children:[(0,a.jsxs)(h.Ay,{className:eN().title,weight:"medium",children:[t," (",i.length,")"]}),(0,a.jsx)(ed.A,{headers:u,data:b,styles:{wrapper:eN().table,row:eN().table__row,cell:eN().table__cell},disableScrollBeyond:!0,onSectionExpandedHandler:()=>{}})]})};var eE=i(31599),ef=i.n(eE),eg=i(43283);let eC=Object.freeze({}),eI=e=>{let{data:t,type:i,showHeader:l=!0,showEntityCard:k=!1}=e,{t:R}=(0,w.useTranslation)("NS_APP_GLOBALS"),z=(0,y.A)(),D=(0,P.A)(),{setPaymentOptionsModal:F}=(0,v.b9)(),{setShowSubscriptionPlans:$}=(0,E.L)(),B=(0,r.A)(),G=(0,d.A)(B.breakpoints.down("md")),[U,V]=(0,n.useState)(null),[H,W]=(0,n.useState)(null),[Z,Q]=(0,n.useState)(null),[ee,et]=(0,n.useState)(!1),[ed,ec]=(0,n.useState)(!1),[em,e_]=(0,n.use
1State)(null),[eu,eb]=(0,n.useState)(null),[eh,ep]=(0,n.useState)(null),[eA,eT]=(0,n.useState)(!1),[eN,ey]=(0,n.useState)(null),eE=(0,p.p)(),{organizationPermissions:{addInfo:{managementStaff:eI},teams:{canEdit:ej,canDelete:eS}},agencyPermissions:{canEdit:ev},isAdmin:eP}=(0,L.A)(),eL=t?.organizationType?.id===C.ORGANIZATION_TYPE_IDS.AGENCY,eO=eI||eL&&ev,ew=(0,I.jE)();(0,n.useEffect)(()=>{t?.id&&(ew.invalidateQueries(["GET_MANAGEMENT_STAFF"]),ew.removeQueries(["GET_MANAGEMENT_STAFF"]))},[t?.id,ew]);let{data:eM,isLoading:ek,refetch:eR,isFetching:ez}=(0,j.IT)((0,S.organizationEmployeesList)({id:t?.id,limit:500,as_edit:!0},{enabled:!!t?.id}));(0,n.useEffect)(()=>{!t?.id||eM||ek||ez||eR()},[t?.id,eM,ek,ez,eR]);let eD=e=>{let{isPastEmployee:t,successResponse:i}=e;z.click({section:x.bP.MANAGEMENT_AND_STAFF,component:x.bP.INVITE_USER,subComponent:x.kU.INVITE_USER_CTA});let a=i?.contacts?.some(e=>e.contactType?.id===1);t||!a||i?.has_access||(ep(i),eT(!0)),eR(),ec(!1)},{updateEmployee:eF,confirmEmployee:e$,deleteEmployee:eB,isLoadingConfirmEmployee:eG}=(0,eg.A)({entity:t,entityType:i,onSuccess:eR}),eU=(0,f.v)(em?.privacyAttributes,e=>{eF({privacyAttributes:e},em),e_(null)}),{inviteEmployee:eY,isLoadingInvite:eV}=(e=>{let{onSuccess:t}=e,{t:i}=(0,w.useTranslation)("NS_APP_GLOBALS"),{mutateAsync:a,isLoading:n}=(0,j.n_)(S.organizationActionCreate);return{inviteEmployee:async e=>{let{organizationId:n,employeeId:l,profileContactId:s}=e;try{await a({data:{employeeId:l,type:"invite-employee",profileContactId:s},params:{id:n}},{onSuccess:e=>{(0,u.M8)(i("operabase.general.FN_INVITE_SENT_SUCCESSFULLY"),{variant:b.jV.SUCCESS}),t&&t(e)}})}catch(e){(0,u.M8)((0,el.errorMessageConverter)(e),{variant:b.jV.ERROR})}},isLoadingInvite:n}})({onSuccess:()=>{eR(),eT(!1),ep(null)}}),eH=eM?.data||[],{employmentStatus:eW,employmentStatusOptions:eZ,handleEmploymentStatusChange:eQ,searchQuery:eK,handleSearchChange:eX,searchPlaceholder:eJ,filteredEmployees:eq}=(e=>{let{t}=(0,w.useTranslation)("NS_APP_GLOBALS"),[i,a]=(0,n.useState)(X.ALL),[l,s]=(0,n.useState)(""),o=(0,n.useCallback)((e,t)=>{a(t.value)},[]),r=(0,n.useCallback)((0,es.debounce)(e=>{s(e)},eo.cl.DEBOUNCE_DELAY),[]),d=(0,n.useCallback)(e=>{let t=e.target.value;s(t),r(t)},[r]),c=(0,n.useMemo)(()=>(e=>{if(!e||!Array.isArray(e))return{all:0,current:0,past:0,not_confirmed:0};let t=J(e,X.CURRENT),i=J(e,X.PAST),a=J(e,X.NOT_CONFIRMED);return{all:e.length,current:t.length,past:i.length,not_confirmed:a.length}})(e),[e]),m=(0,n.useMemo)(()=>((e,t)=>[{value:X.ALL,label:`${t(`${C.TP}.FN_ALL`)} (${e.all})`},{value:X.NOT_CONFIRMED,label:`${t(`${C.TP}.FN_PENDING_CONFIRMATION`)} (${e.not_confirmed})`},{value:X.CURRENT,label:`${t(`${C.TP}.FN_CURRENT`)} (${e.current})`},{value:X.PAST,label:`${t(`${C.TP}.FN_PAST`)} (${e.past})`}])(c,t),[c,t]),_=(0,n.useMemo)(()=>((e,t,i)=>{let a=J(e,t);return((e,t)=>{if(!e||!Array.isArray(e)||!t||""===t.trim())return e;let i=t.toLowerCase().trim();return e.filter(e=>[e.profile?.name,e.firstName,e.lastName,e.name,`${e.firstName||""} ${e.lastName||""}`.trim(),e.workEmail?.email,e.accessEmail,e.roles?.[0]?.department?.name,e.roles?.[0]?.designation?.name,e.roles?.[0]?.employmentType?.name,!1===e.acknowledged?"not confirmed":null,!1===e.acknowledged?"unconfirmed":null,!1===e.acknowledged?"pending confirmation":null].some(e=>e&&e.toLowerCase().includes(i)))})(a,i)})(e,i,l),[e,i,l]);return{employmentStatus:i,searchQuery:l,handleEmploymentStatusChange:o,handleSearchChange:d,employmentStatusOptions:m,filteredEmployees:_,employeeCounts:c,searchPlaceholder:eo.cl.PLACEHOLDER}})(eH);if(ek)return(0,a.jsx)(_.A,{variant:"rectangular",height:45,width:375});let e0=async e=>{z.click({section:x.bP.MANAGEMENT_AND_STAFF,component:x.$j.ROW,subComponent:x.kU.CONFIRM_CTA}),await e$(e)},e1=e=>{z.click({section:x.bP.MANAGEMENT_AND_STAFF,component:x.$j.ROW,subComponent:x.kU.DELETE_CTA}),Q(e)},e2=()=>Q(null),e5=async()=>{et(!0),await eB(Z),et(!1),e2(),z.click({section:x.bP.MANAGEMENT_AND_STAFF,component:x.$j.ACTION_STATUS_MODAL,subComponent:x.kU.DELETE_CTA})},e4=async e=>{let i={section:x.bP.MANAGEMENT_AND_STAFF,component:x.$j.ACTION_STATUS_MODAL,subComponent:x.kU.PAYMENT_CTA},a=e?.contacts?.find(e=>e.contactType?.id===eo.P1.EMAIL&&"personal"===e.category)?.value;t?.isPro?(z.click({...i,meta:{step:O.r0.PER_SEAT}}),F({isOpen:!0,entity:e?.profile,entityType:M.ENTITY_TYPES.PROFILE,stepToOpenDirectly:"SELECT_PAYMENT_METHOD",preSelectedProduct:O.ZW.PER_SEAT,seatProfileId:e?.profile?.id,seatProfileEmail:a,hostOrganizationId:t?.id})):(z.click({...i,meta:{step:O.r0.AOS}}),F({isOpen:!0,entity:t,entityType:M.ENTITY_TYPES.ORGANIZATION,preSelectedProduct:O.ZW.AOS,seatProfileId:e?.profile?.id,seatProfileEmail:a}))},e6=async e=>{eh&&e&&t?.id&&await eY({organizationId:t.id,employeeId:eh.id,profileContactId:e})},e9=e=>
1{let{access:t,has_access:i,profile:a,workPhones:n,accessEmail:l,firstName:o,lastName:r,roles:d,permissions:c,contacts:m,pocs:_,emailPreferences:u,employeeEmailPreference:b}=e||eC,h=(0,en.xR)(d),p=(0,en.mk)(h),A=(0,en.HE)(d),T=h?.isPast===!0,N=!T&&!i&&!!a,y=n?.map(e=>e.phone).join(", "),x=d.map(e=>e.designation?.name).filter(s()).join(", "),E=a?.validationStatus?.id===C.VALIDATION_STATUSES.APPROVED,f=a?.name||`${o||""} ${r||""}`,g=m||[],I=g.filter(e=>e.contactType?.id===eo.P1.PHONE).map(e=>e.value);return{name:f,designation:x,email:l,phone:y,permissions:c||[],isApprovedProfile:E,hasMissingAccess:N,isPastEmployee:T,employmentInfo:p,employmentRecords:A,originalData:e,contactDetails:[...g.filter(e=>e.contactType?.id===eo.P1.EMAIL).map(e=>e.value),...I],officialContactTypeIds:_?.data?.map(e=>e.contactType?.id)||[],emailPreferences:t?.user?.id?u||[]:(b?.emailPreferences||[]).flatMap(e=>(e.subCategories||[]).filter(e=>e.value).map(e=>e.name))}},e3=e=>{eO&&(z.click({section:x.bP.MANAGEMENT_AND_STAFF,component:x.$j.ACTION_STATUS_MODAL,subComponent:x.kU.EDIT_CTA}),V(e),W(er.o.DESIGNATION_DEPARTMENT))},e8=()=>{eO&&ec(!0)},e7=null===eE.selectedIndex?null:eq[eE.selectedIndex];return(0,a.jsxs)(a.Fragment,{children:[l&&0===eH.length&&(0,a.jsx)(ea,{entity:t,entityType:i,onInviteSuccess:eD,enableAdminCheck:ej,isAdmin:eP,employees:eM}),k&&(0,a.jsxs)("div",{className:ef().entityCardContainer,children:[(0,a.jsx)(c.A,{variant:m.x.LANDSCAPE_MINI,entityType:i,entity:t,slotClassNames:{link:ef().entityCard},trackingData:{section:x.bP.INVITE_USER,component:x.$j.ENTITY_CARD},disableNavigation:!0}),(0,a.jsx)(ei,{entity:t,entityType:i,onInviteSuccess:eD,enableAdminCheck:ej,employees:eM})]}),(0,a.jsxs)(o.A,{sx:{width:"100%",boxSizing:"border-box"},children:[eH.length>0&&(0,a.jsxs)("div",{className:ef().titleSection,children:[(0,a.jsx)(h.Ay,{size:16,weight:"bold",as:"h2",className:ef().titleText,children:R(`${C.TP}.FN_PEOPLE`)}),(0,a.jsx)(h.Ay,{size:12,color:"secondaryGrey",className:ef().subtitleText,children:R(`${C.TP}.FN_PEOPLE_ASSOCIATED_WITH_ORG`)})]}),eH.length>0&&(0,a.jsx)(K,{employmentStatus:eW,employmentStatusOptions:eZ,onEmploymentStatusChange:eQ,searchQuery:eK,onSearchChange:eX,searchPlaceholder:R(`${C.TP}.${eJ}`),showAddButton:!0,onAddClick:e8,addButtonDisabled:!eO}),0===eH.length&&(0,a.jsxs)(o.A,{sx:{textAlign:"center",py:4},children:[(0,a.jsx)(h.Ay,{variant:"h6",sx:{mb:2,color:"#65676b"},children:"No team members yet"}),(0,a.jsx)(A.A,{text:"+ Invite Your First Team Member",onClick:e8,disabled:!eO,minWidth:G?"auto":320})]}),eH.length>0&&0===eq.length&&(0,a.jsxs)(o.A,{sx:{textAlign:"center",py:4},children:[(0,a.jsx)(h.Ay,{variant:"h6",sx:{mb:2,color:"#65676b"},children:"No team members match your filters"}),(0,a.jsx)(h.Ay,{variant:"body2",sx:{color:"#65676b"},children:"Try adjusting your search or filter criteria"})]}),eq.length>0&&eW===X.ALL&&(()=>{let{notConfirmed:e,current:t,past:i}=(e=>{let t=J(e,X.NOT_CONFIRMED);return{notConfirmed:t,current:J(e,X.CURRENT),past:J(e,X.PAST)}})(eq),n=[{key:"not-confirmed",employees:e,label:R(`${C.TP}.FN_PENDING_CONFIRMATION`)},{key:"current",employees:t,label:R(`${C.TP}.FN_CURRENT`)},{key:"past",employees:i,label:R(`${C.TP}.FN_PAST`)}];return(0,a.jsx)("div",{className:ef().categorySections,children:n.map(e=>0===e.employees.length?null:(0,a.jsx)("div",{className:ef().categorySection,children:(0,a.jsx)(ex,{title:e.label,data:e.employees.map(e=>e9(e)),confirmEmployee:{handleConfirmEmployee:e=>e0(e.originalData),isLoadingConfirmEmployee:eG},onDelete:e=>e1(e.originalData),onEdit:e=>e3(e.originalData),onInvite:e=>{ep(e.originalData),eT(!0)},onViewProfile:e=>{if(e.originalData?.profile?.id){let t=D.getLinkProps({entityType:M.ENTITY_TYPES.PROFILE,entity:e.originalData.profile});window.open(t.url,"_blank")}},mobileMenu:{handleOpen:eE.handleOpen,handleClose:eE.handleClose},isMobile:G})},e.key))})})(),eq.length>0&&eW!==X.ALL&&(0,a.jsx)(ex,{title:(e=>e===X.CURRENT?R(`${C.TP}.FN_CURRENT`):e===X.PAST?R(`${C.TP}.FN_PAST`):e===X.NOT_CONFIRMED?R(`${C.TP}.FN_PENDING_CONFIRMATION`):"")(eW),data:eq.map(e=>e9(e)),confirmEmployee:{handleConfirmEmployee:e=>e0(e.originalData),isLoadingConfirmEmployee:eG},onDelete:e=>e1(e.originalData),onEdit:e=>e3(e.originalData),onInvite:e=>{ep(e.originalData),eT(!0)},onViewProfile:e=>{if(e.originalData?.profile?.id){let t=D.getLinkProps({entityType:M.ENTITY_TYPES.PROFILE,entity:e.originalData.profile});window.open(t.url,"_blank")}},mobileMenu:{handleOpen:eE.handleOpen,handleClose:eE.handleClose},isMobile:G})]}),(0,a.jsx)(T.A,{open:eE.isOpen,anchorEl:eE.anchorEl,onClose:eE.handleClose,actions:e7?(e=>{let t=[];if(!1===e.acknowledged&&t.push({id:"confirm",label:R(`${C.TP}.FN_ACCEPT`),icon:"check_circle",onClick:()=>{e0(e),eE.handleClose()},show:eO,iconColor:"#4caf50"}),e.profile?.id){let i=D.getLinkProps({entityType:M.ENTITY_TYPES.PROFILE,entity:e.profile});t.push({id:"view-profile",label:R(`${C.TP}.FN_VIEW_PROFILE`),icon:"open_in_new",onClick:()=>{window.open(i.url,"_blank"),eE.handleClose()},show:!0})}if(e9(e).hasMissingAccess&&eO){let i=!!e.lastInvitation;t.push({id:"invite",label:i?R(`${C.TP}.FN_RESEND_INVITE`):R(`${C.TP}.INVITE`),icon:"send",onClick:()=>{ep(e),eT(!0),eE.handleClose()},show:!0})}return eO&&t.push({id:"edit",label:R(`${C.TP}.FN_EDIT`),icon:"edit",onClick:()=>e3(e),show:!0}),eS&&t.push({id:"delete",label:R(`${C.TP}.FN_REMOVE`),icon:"delete",onClick:()=>{e1(e),eE.handleClose()},show:!0,iconColor:"#e41e3f"}),t})(e7):[]}),(U||ed)&&(0,a.jsx)(q.A,{isOpen:!0,onClose:()=>{V(null),ec(!1),W(null),eb(null)},entity:t,entityType:i,contact:U,onInviteSuccess:U?e=>{let{isPastEmployee:t,successResponse:i}=e;if(eR(),V(null),eu){if(i?.has_access)(0,u.M8)(R(`${C.TP}.FN_ACCESS_GRANTED_SUCCESS`),{variant:b.jV.SUCCESS});
1else{let e=i||eM?.data?.find(e=>e.id===eu);e&&e4(e)}eb(null);return}if(eN){i&&(ep(i),eT(!0)),ey(null);return}let a=i?.contacts?.some(e=>e.contactType?.id===1);t||!a||i?.has_access||(ep(i),eT(!0))}:eD,expandedSection:H,enableAdminCheck:ej,isAdmin:eP,employees:eM,isGrantAccessFlow:!!eu}),Z&&(0,a.jsx)(N.A,{closeModal:e2,title:R(`${C.TP}.FN_DELETE_CONFIRM_TITLE`),description:R(`${C.TP}.FN_DELETE_CONFIRMATION_DESCRIPTION`),onDelete:e5,loading:ee,trackingSaveData:{section:x.bP.MANAGEMENT_AND_STAFF,component:x.$j.ACTION_STATUS_MODAL,subComponent:x.kU.CANCEL_CTA},trackingCancelData:{section:x.bP.BIOGRAPHY,component:x.$j.ACTION_STATUS_MODAL,subComponent:x.kU.DELETE_CTA}}),(0,a.jsx)(g.A,{...eU,onClose:()=>{eU.setIsOpen(!1),e_(null)},handleUpdate:()=>eU.handleUpdate({section:x.bP.MANAGEMENT_AND_STAFF,component:x.$j.PRIVACY_SELECTOR_MODAL})}),eA&&eh&&(0,a.jsx)(Y,{isOpen:eA,onClose:()=>{eT(!1),ep(null)},employee:eh,organization:t,onInviteSuccess:e6,onAddWorkEmail:e=>{ey(e.id),eT(!1),ep(null),V(e)},onProceedWithPersonalEmail:e=>{eT(!1),t?.isPro?F({isOpen:!0,entity:eh?.profile,entityType:M.ENTITY_TYPES.PROFILE,stepToOpenDirectly:"SELECT_PAYMENT_METHOD",preSelectedProduct:O.ZW.PER_SEAT,seatProfileId:eh?.profile?.id,seatProfileEmail:e,hostOrganizationId:t?.id}):$({show:!0,entity:t,entityType:M.ENTITY_TYPES.ORGANIZATION,seatProfileId:eh?.profile?.id,seatProfileEmail:e}),ep(null)},onSkip:()=>{eT(!1),ep(null)},isLoadingInvite:eV})]})}},48252:e=>{e.exports={teamsTable:"ob_gZEyim",title:"ob_qoiV9C",table:"ob_YwzEmb",table__row:"ob_r9PDJ4",table__cell:"ob_RimnzT",accessLabel:"ob_IRPWTa",proTag:"ob_EbdKmy",bullets:"ob_0TAsWV",contactsList:"ob_wVGkpk",officialContactsList:"ob_CjOqvw",officialContactsLabel:"ob_1Kr308",starIcon:"ob_yVkl9b",officialContactsBullets:"ob_8XYkzM",mobileTeamMembers:"ob_clHOke",mobileTeamMembersList:"ob_rLuCFT",mobileTeamMembersList__separator:"ob_5T108G",mobileTeamMembersList__verticalSeparator:"ob_4Dsr6M",mobileTeamMembersList__item:"ob_wk6oUu",mobileTeamMembersList__item__top:"ob_RLiSoq",mobileTeamMembersList__item__top__left:"ob_kKUpWy",mobileTeamMembersList__item__top__right:"ob_BX9vbA",mobileTeamMembersList__item__top__right__actions:"ob_zseKjE",mobileTeamMembersList__item__bottom:"ob_AhxQ0l"}},49592:e=>{e.exports={header:"ob_8MzX8X",inviteButton:"ob_ab2sKM"}},50976:(e,t,i)=>{"use strict";i.d(t,{iE:()=>d,lm:()=>c,sy:()=>r,uy:()=>o});var a=i(32431),n=i(68355),l=i(11932),s=i(22377);let o=a.getApiErrorMessage,r=e=>{let{userData:t={},step:i=1,origin:a="registration-popup",originLink:n,popupSource:l,flowId:s,gift:o}=e;return{step:i,entities:{user:{id:t?.id,name:t?.name}},meta_data:{source:{origin:a,link:n,popupSource:l},gift:{token:o?.token,source:o?.tokenType},language:t?.preferredLanguage,first_name:t?.firstName,last_name:t?.lastName,contact:{email:t?.email}},flow_id:s}},d=e=>{let{registrationData:t,payload:i,userData:a}=e;return{user:{id:t?.entities?.user?.id||a?.id},firstName:t?.meta_data?.first_name||a?.firstName,lastName:t?.meta_data?.last_name||a?.lastName,isRegistration:!0,...i}},c=e=>{let{hubspotPayload:t=[],userData:i,registrationData:a,isOrg:o,isAddNewOrg:r}=e,d=(0,l.Nc)({isProduction:!0,step:a?.step,flowId:a?.flow_id,isOrg:o,isAddNewOrg:r}),c=[];i&&(c=[{name:"user_id__database_",value:i?.id},{name:"email",value:i?.email}]),d&&(0,n.sM)("6012578",d,{fields:[...c,{name:"hs_language",value:s.i18n?.language},{name:"registration_form_step",value:a?.step},{name:"registrationfirststepcreatedate",value:a?.created_at},...t]})}},58715:(e,t,i)=>{"use strict";e.exports=i(88325)(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()})},62362:(e,t,i)=>{"use strict";i.d(t,{H9:()=>h,Pg:()=>b,fQ:()=>m,i0:()=>c,tF:()=>u,x8:()=>_});var a=i(14748),n=i(61634),l=i(38042),s=i(76930);let o=new Map,r=e=>e?.otpType||a.J6,d=(e,t,i)=>{let a=(e=>`${String(e?.email||"").trim().toLowerCase()}:${r(e)}`)(t),n=o.get(a);if(n){let e={data:{...t}};return n.then(t=>(i?.onSuccess?.(t,e),i?.onSettled?.(t,null,e),t),t=>{throw i?.onError?.(t,e),i?.onSettled?.(void 0,t,e),t})}let l=e.mutateAsync({data:{...t}},i),s=()=>{o.get(a)===l&&o.delete(a)};return o.set(a,l),l.then(s,s),l},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,n.n_)(l.userCreate,e),i=e=>({data:{email:e.email,firstName:e.firstName,lastName:e.lastName,password:null}});return{...t,isLoading:t.isPending,mutate:(e,a)=>t.mutate(i(e),a),mutateAsync:(e,a)=>t.mutateAsync(i(e),a)}},m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,n.n_)(l.userEmailResendOtp,{...e,onSuccess:(t,i,n)=>{var l;l=i?.data,a.sW.includes(r(l))&&(0,s.XK)(l?.email),e.onSuccess?.(t,i,n)}});return{...t,isLoading:t.isPending,mutate:(e,i)=>{d(t,e,i).catch(()=>void 0)},mutateAsync:(e,i)=>d(t,e,i)}},_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,n.n_)(l.userEmailVerifyOtp,e),i=e=>({data:{email:e.email,otp:e.code,otpType:e.otpType}});return{...t,isLoading:t.isPending,mutate:(e,a)=>t.mutate(i(e),a),mutateAsync:(e,a)=>t.mutateAsync(i(e),a)}},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,n.n_)(l.userUpdate,e),i=e=>({params:{id:e?.userId}
1,data:{id:e?.userId,password:e?.newPassword,passwordValidation:e?.oldPassword}});return{...t,isLoading:t.isPending,mutate:(e,a)=>t.mutate(i(e),a),mutateAsync:(e,a)=>t.mutateAsync(i(e),a)}},b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,n.n_)(l.userEmailRequestCreate,t);return{...i,isLoading:i.isPending,mutate:(t,a)=>i.mutate({params:{id:e},data:t},a),mutateAsync:(t,a)=>i.mutateAsync({params:{id:e},data:t},a)}},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,n.n_)(l.userEmailRequestOtpVerify,t);return{...i,isLoading:i.isPending,mutate:(t,a)=>i.mutate({params:{id:e},data:t},a),mutateAsync:(t,a)=>i.mutateAsync({params:{id:e},data:t},a)}}},64122:e=>{e.exports={actions:"ob_XSdEDv",actions__row:"ob_bxXoOB",filledButton:"ob_I7M7ib",filledButton__row:"ob_4qwCP9",outlinedButton:"ob_4y4RdX",outlinedButton__row:"ob_uC6Ip6",textButton:"ob_xxA9R7",textButton__row:"ob_NZyKwz"}},66203:e=>{e.exports={root:"ob_4c7hxa",rows:"ob_oPmHM3",row:"ob_qUsMPe",rowContent:"ob_BddXcu",rowActions:"ob_nfLssB",addButton:"ob_cl1nX5",addLinkButton:"ob_iNXBsY",addButtonIcon:"ob_zxxQHr",addButtonText:"ob_HmLA5F"}},67660:e=>{e.exports={modalContainer:"ob_pNJFzS",modalContentWrapper:"ob_uvxclB",modalContent:"ob_T653G6",customFooter:"ob_Nd5ddZ",footerButton:"ob_EckJRV",header:"ob_JmAU6p",headerText:"ob_7UT4Od",closeButton:"ob_ollAtB",closeIcon:"ob_SbXpIX",badge:"ob_e1qmbi",badgeText:"ob_FPvcN3",section:"ob_wNQdUZ",sectionTitle:"ob_N6aC70",radioGroup:"ob_vl6I7S",radioOption:"ob_TCaHpf",emailLabelContainer:"ob_GEONO4",emailLabel:"ob_bm11GE",emailLabelDisabled:"ob_qUaSGS",personalBadge:"ob_R7P6qH",previouslyInvitedText:"ob_vkGBnx",addEmailLink:"ob_ducnNz",addEmailIcon:"ob_mXmhem",addEmailText:"ob_ICftUo",divider:"ob_zyxfn9",infoText:"ob_P6mE2U",personalEmailNote:"ob_WdauOV",skipButton:"ob_Re9k70"}},72839:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=function(){}},77380:(e,t,i)=>{"use strict";i.d(t,{A:()=>N});var a=i(95155),n=i(12115),l=i(22654),s=i.n(l),o=i(86194),r=i(35145),d=i(28554),c=i(80230),m=i(54589),_=i(42732),u=i(92905),b=i(96732),h=i.n(b);let p=e=>{let{data:t,styles:i={},isExpanded:n,isHeader:l,canExpand:s}=e;return(0,a.jsxs)("div",{className:(0,o.default)(h().cell,{[h().cell_header]:l,[i?.cell]:!!i?.cell}),children:[s&&(0,a.jsx)(u.Ay,{className:(0,o.default)(h().expandIcon,{[i?.expandedIcon]:!!i?.expandedIcon}),icon:n?"expand_less":"expand_more"}),t]})},A=e=>{let{className:t,icon:i,onClick:n}=e;return(0,a.jsx)("div",{className:(0,o.default)(h().arrow,{[t]:!!t}),onClick:n,children:(0,a.jsx)(u.Ay,{icon:i})})},T=e=>{let{index:t,columns:i,data:l={},styles:s={},renderExpandedRow:r,onScrollLeft:d,onScrollRight:c,isHeader:m=!1,freeze:_=0,onSectionExpandedHandler:u,indicatorVisible:b}=e,[T,N]=(0,n.useState)(!1),{hasFrozenColumns:y,frozenColumns:x,restColumns:E}=(0,n.useMemo)(()=>({hasFrozenColumns:i?.length>0&&_>0,frozenColumns:i?.slice(0,_),restColumns:i?.slice(_)}),[i,_]),f=(0,n.useMemo)(()=>!!r,[r]),g=(0,n.useCallback)(()=>{N(!1),u&&u(!1)},[u]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:(0,o.default)(h().row,{[h().row_header]:m,[h().row_expanded]:T,[h().row_frozen]:l?.isFullRowFrozen,[s?.row]:!!s?.row,[s?.row_header]:m&&!!s?.row_header,[s?.row_expanded]:T&&!!s?.row_expanded}),onClick:()=>{f&&(u&&u(!T),N(!T))},children:[y&&(0,a.jsxs)("div",{className:(0,o.default)(h().frozenCells,{[h().frozenCells_header]:m,[h().frozenCells_expanded]:T,[s?.frozenCells]:!!s?.frozenCells,[s?.frozenCells_header]:m&&!!s?.frozenCells_header,[s?.frozenCells_expanded]:T&&!!s?.frozenCells_expanded}),children:[x?.map((e,t)=>(0,a.jsx)(p,{data:l[e],canExpand:f&&0===t,isExpanded:T,isHeader:m,styles:s},t)),m&&y&&b?.left&&(0,a.jsx)(A,{icon:"chevron_left",onClick:d})]}),l?.customCell||E?.map((e,t)=>(0,a.jsx)(p,{data:l[e],canExpand:f&&!y&&0===t,isExpanded:T,isHeader:m,styles:s},t)),m&&y&&b?.right&&(0,a.jsx)(A,{icon:"chevron_right",onClick:c,className:(0,o.default)(h().arrow_right)})]}),f&&T&&(0,a.jsx)("div",{className:(0,o.default)(h().expandedRow,h().row_expanded,{[s?.expandedRow]:!!s?.expandedRow}),children:"function"==typeof r?r(l,t,g):r})]})},N=e=>{let{headers:t,data:i,styles:l,freezeColumns:u=0,onSectionExpandedHandler:b,freezeHeader:p=!1,disableScrollBeyond:A=!1}=e,{isMobile:N}=(0,d.Ay)(),{isHeaderVisible:y}=(0,m.A)(),{obRouteContext:x}=(0,r.A)(),{filterParams:E}=x,f=(0,n.useRef)(),g=(0,n.useRef)(),{ref:C,isScrolledBeyond:I}=(0,c.A)({topPosition:167}
1),[j,S]=(0,n.useState)(!1),[v,P]=(0,n.useState)(!1),[L,O]=(0,n.useState)(null),[w,M]=(0,n.useState)({left:!1,right:!1}),k=(0,n.useMemo)(()=>Object.keys(Object.keys(E||{})?.filter(e=>![_.FILTER_TYPES.WHO,_.FILTER_TYPES.CTX_ENTITY].includes(e))).length>0,[E]),R=()=>{if(!f.current)return;let e={right:!0,left:!0};f.current.scrollLeft+f.current.clientWidth+18>=f.current.scrollWidth&&(e.right=!1),f.current.scrollLeft<=0&&(e.left=!1),M(e)},z=(0,n.useMemo)(()=>s()(R,100),[]),D=(0,n.useCallback)(e=>{e?.target?.id!=="tableContent"||j?!v&&g.current&&(g.current.scrollLeft=e.target.scrollLeft):f.current&&(f.current.scrollLeft=e.target.scrollLeft),z()},[z,j,v]),F=e=>{e?.target?.id==="tableContent"?(P(!0),S(!1)):(S(!0),P(!1))};(0,n.useEffect)(()=>{let e=f.current,t=g?.current;return p&&(t.addEventListener("scroll",D),t.addEventListener("mouseenter",F)),e.addEventListener("scroll",D),e.addEventListener("mouseenter",F),window.addEventListener("resize",D),()=>{window.removeEventListener("resize",D),e.removeEventListener("scroll",D),e.removeEventListener("mouseenter",F),t.removeEventListener("scroll",D),t.removeEventListener("mouseenter",F)}},[D,p]),(0,n.useEffect)(()=>{if(!p)return;let e=f.current;if(!e)return;let t=()=>{let t=e.getBoundingClientRect(),i=Number.parseFloat(window.getComputedStyle(e).top),a=!Number.isNaN(i)&&t.height>0&&t.top<=i+1;O(e=>a?e&&.5>Math.abs(e.top-t.top)&&.5>Math.abs(e.height-t.height)?e:{top:t.top,height:t.height}:null===e?e:null)},i=s()(t,16);t(),window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i);let a=new ResizeObserver(t);return a.observe(e),()=>{window.removeEventListener("scroll",i),window.removeEventListener("resize",i),a.disconnect(),i.cancel()}},[p]);let $=(0,n.useCallback)(e=>()=>{let{scrollLeft:t}=f.current,i=t+("right"===e?1:-1)*f.current.clientWidth/2;f.current.scrollTo({left:i,behavior:"smooth"}),p&&g.current.scrollTo({left:t+("right"===e?1:-1)*g.current.clientWidth/2,behavior:"smooth"})},[p]);(0,n.useEffect)(()=>(R(),()=>{z.cancel()}),[z]);let{columns:B,headerData:G}=(0,n.useMemo)(()=>t?.reduce((e,t)=>{let{id:i,label:a}=t;return{columns:[...e.columns,i],headerData:{...e.headerData,[i]:a}}},{columns:[],headerData:{}}),[t]);return(0,a.jsxs)("div",{...!p&&{ref:f},className:(0,o.default)(h().wrapper,{[h().freezeColumns]:u>0&&!!h().freezeColumns,[l?.wrapper]:!!l?.wrapper}),children:[(0,a.jsxs)("div",{...p&&{ref:f},className:(0,o.default)({[h().freezeHeader]:p,[h().freezeHeader_isGlobalHeaderVisible]:p&&y,[h().freezeHeader__appliedFilters]:k,[h().freezeHeader__scrolledBeyond]:I&&!A,[l?.freezeHeader]:p&&!!l?.freezeHeader}),children:[p&&L&&(0,a.jsx)("div",{className:h().freezeHeaderBackdrop,style:L,"aria-hidden":"true"}),(0,a.jsx)(T,{columns:B,data:G,freeze:u,onScrollLeft:$("left"),onScrollRight:$("right"),styles:l,indicatorVisible:!N&&w,isHeader:!0})]}),(0,a.jsx)("div",{ref:g,id:"tableContent",className:(0,o.default)({[h().tableContent]:p}),children:i?.map((e,t)=>(0,a.jsx)(T,{index:t,columns:B,freeze:u,data:e?.data,styles:l,onSectionExpandedHandler:b,renderExpandedRow:e?.renderExpandedRow},t))}),(0,a.jsx)("div",{ref:C})]})}},79310:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>b,I$:()=>u,lk:()=>m,zI:()=>_});var a=i(95155),n=i(12115),l=i(47650),s=i(58715),o=i.n(s),r=i(80230);let d=(0,n.createContext)({initialized:!1}),c=()=>(0,n.useContext)(d),m=e=>{let{name:t,scrollableContainerRef:i,renderHeaderWrapper:l,children:s}=e,r=o()(`sticky-headers-${t}`),c=(0,n.useRef)(),[m,_]=(0,n.useState)({}),u=(0,n.useMemo)(()=>Object.values(m).reduce((e,t)=>(t.length>0&&e.push(t[t.length-1]),e),[]),[m]),b=u.length>0,h=(0,n.useCallback)(e=>!!b&&u.includes(e),[b,u]),p=(0,n.useMemo)(()=>({name:t,initialized:!0,wrapperId:r,wrapperRef:c,scrollableContainerRef:i,headers:m,setHeaders:_,activeStickyHeaders:u,hasStickyHeaders:b,renderHeaderWrapper:l,ifHeaderIsSticky:h}),[t,i,m,r,l,h,u,b]);return t?(0,a.jsx)(d.Provider,{value:p,children:s}):s},_=()=>{let{initialized:e,wrapperId:t,wrapperRef:i,renderHeaderWrapper:n,hasStickyHeaders:l,activeStickyHeaders:s,ifHeaderIsSticky:o}=c();return e?"function"==typeof n?n({children:(0,a.jsx)("div",{ref:i,id:t}),hasStickyHeaders:l,ifHeaderIsSticky:o,activeStickyHeaders:s}):(0,a.jsx)("div",{ref:i,id:t}):null},u=e=>{let{children:t}=e,{hasStickyHeaders:i,ifHeaderIsSticky:a}=c();return"function"==typeof t?t({hasStickyHeaders:i,ifHeaderIsSticky:a}):t},b=function(){let{name:e,stackIdentifier:t="default",className:i,topPositionPx:s=0,enabled:o=!0,onScrolledBeyond:d,renderHeader:m,..._}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{initialized:u,scrollableContainerRef:b,wrapperRef:h,setHeaders:p,headers:A,ifHeaderIsSticky:T}=c(),N=u&&e&&o&&"function"==typeof m,y=(0,n.useCallback)(i=>
1{let{isBeyond:a}=i;N&&p(i=>{let n=i[t]||[];return n=a?[...n,e]:n.filter(t=>t!==e),{...i,[t]:n}}),"function"==typeof d&&d({isBeyond:a})},[e,t,p,d,N]),{ref:x,isScrolledBeyond:E}=(0,r.A)({containerRef:b,topPosition:s,enabled:N,onScrolledBeyond:y}),f=(0,n.useMemo)(()=>{if(!N||!E)return!1;let i=A[t]||[];return i[i.length-1]===e},[N,E,A,e,t]);return(0,a.jsx)("div",{ref:x,...i&&{className:i},children:f&&(0,l.createPortal)(m({isScrolledBeyond:E,ifHeaderIsSticky:T,props:_}),h?.current)})}},80230:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a=i(12115);let n=()=>null,l=function(){let{topPosition:e=0,enabled:t=!0,containerRef:i=null,onScrolledBeyond:l=n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[s,o]=(0,a.useState)(!1),[r,d]=(0,a.useState)(null),c=(0,a.useRef)(null),m=(0,a.useMemo)(()=>t&&!0,[t]);return(0,a.useEffect)(()=>{let t=null;return m&&(t=new IntersectionObserver(e=>{e.forEach(e=>{let t=e.boundingClientRect,{rootBounds:i}=e;if((i?t.top-i.top:t.top)>(i?i.bottom-t.bottom:(window.innerHeight||document.documentElement.clientHeight)-t.bottom))o(!1),l({isBeyond:!1});else{let t=!e.isIntersecting;o(t),l({isBeyond:t})}})},{root:i&&i.current?i.current:null,threshold:0,rootMargin:`${-1*e}px 0px 0px 0px`}),r&&t.observe(r)),()=>{r&&m&&t.unobserve(r)}},[r,m,e,i,l]),{ref:(0,a.useCallback)(e=>{c.current!==e&&(c.current=e,d(e))},[]),isScrolledBeyond:s}}},83012:(e,t,i)=>{"use strict";i.d(t,{A:()=>_});var a=i(95155),n=i(86194),l=i(57760),s=i(52807),o=i(42985),r=i(17650),d=i(66203),c=i.n(d);let m={root:c().root,rows:c().rows,row:c().row,rowContent:c().rowContent,rowActions:c().rowActions,addButton:c().addButton},_=e=>{let{items:t,renderItem:i,keyExtractor:d,onAdd:c,addLabel:_="Add another",addDisabled:u=!1,onRemove:b,removeAriaLabel:h,isRemoveDisabled:p,slotClassNames:A,className:T,...N}=e,y=(0,r.h)(m,A),x=t.length,E=x>1,f=(0,n.default)(y.root,T);return(0,a.jsxs)("div",{...N,className:f,"data-component":"RepeatableFieldset","data-count":x,children:[(0,a.jsx)("div",{"data-slot":"rows",className:y.rows,children:t.map((e,t)=>{let n={item:e,index:t},l=t;if(d)l=d(n);else if(e&&"object"==typeof e&&"id"in e){let{id:t}=e;("string"==typeof t||"number"==typeof t)&&(l=t)}let r=h?h(n):"Remove",c=!!p&&p(n);return(0,a.jsxs)("div",{"data-slot":"row",className:y.row,"data-index":t,"data-first":0===t?"true":void 0,"data-last":t===x-1?"true":void 0,role:"group",children:[(0,a.jsx)("div",{"data-slot":"rowContent",className:y.rowContent,children:i(n)}),E?(0,a.jsx)("div",{"data-slot":"rowActions",className:y.rowActions,children:(0,a.jsx)(s.Ay,{ariaLabel:r,icon:(0,a.jsx)(o.Ay,{icon:"trash",size:16,"aria-hidden":!0}),size:"md",disabled:c,onClick:()=>b(n)})}):null]},l)})}),(0,a.jsx)("div",{"data-slot":"addButton",className:y.addButton,children:(0,a.jsx)(l.Ay,{variant:"text-black",size:"small",disabled:u,leftIcon:(0,a.jsx)(o.Ay,{icon:"add_circle",size:16,"aria-hidden":!0}),onClick:c,children:_})})]})}},87913:e=>{e.exports={root:"ob_EgCcT8",testimonials:"ob_jHy5LC",minimized:"ob_I4F3Jy",testimonialCard:"ob_33U5WG",organizationName:"ob_MNgQCb",testimonialInfo:"ob_tpRrMD",quoteBlock:"ob_6O4u1K",author:"ob_OvTqrT",company:"ob_M8WDkZ",description:"ob_tF4XD1",testimonialsHorizontal:"ob_rhNegT",testimonialDescription:"ob_jIISx7",hideBorder:"ob_s91ULO",linkWrapper:"ob_n3cbQj",testimonialCardGhost:"ob_oYEhND",testimonialCardSingleColumn:"ob_t1GD07",testimonialsWithSeparator:"ob_DJkvqE",separator:"ob_j9omEG",modalTitle:"ob_lWzwIz",testimonialModal:"ob_rTpWjN",testimonialModal__body:"ob_OdmjzU",testimonialModal__body_description:"ob_1zW6pN",testimonialModal__body_otherText:"ob_7BOpCb",testimonialModalQuote:"ob_WJqayk"}},89201:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>a});let a=i(79310).Ay},92298:(e,t,i)=>{"use strict";i.d(t,{default:()=>I});var a=i(95155),n=i(12115),l=i(86194),s=i(64956),o=i(87123),r=i(11348),d=i(46826),c=i(92905),m=i(96286),_=i(48158),u=i(74906),b=i(55686),h=i(89201),p=i(28572),A=i(6097),T=i(61634),N=i(46510),y=i(28554),x=i(22377),E=i(42732),f=i(9427),g=i.n(f);let C=()=>(0,a.jsx)(b.Ay,{query:(0,N.organizationsForIndex)({filters:{is_pro:!0,avoid_in_testimonials:!1},limit:10}),children:e=>{let{pages:t}=e,i=t?.flatMap(e=>e.data);return(0,a.jsx)("ul",{className:g().customerList,children:i?.map(e=>(0,a.jsxs)("li",{className:g().customerList__item,children:[(0,a.jsx)(s.A,{variant:o.x.LANDSCAPE_MINI,entityType:E.ENTITY_TYPES.ORGANIZATION,entity:e,trackingData:{section:u.bP.CUSTOMER_LIST,component:u.$j.ORGANIZATION_CARD,entityId:e?.id,entityName:e?.name,entityType:E.ENTITY_TYPES.ORGANIZATION}}),(0,a.jsx)(c.Ay,{className:g().rightIcon,icon:"chevron_right",size:18})]},e?.id))})}}),I=e=>{let{isLandingPage:t=!1,forceMobileLayout:i=!1,variant:b,columns:f,withSeparator:I,trackingData:j={}}=e,{t:S}=(0,x.useTranslation)("NS_APP_GLOBALS"),{isDesktop:v}
1=(0,y.Ay)(),P=!i&&v,L=(0,_.A)(),[O,w]=(0,n.useState)("testimonials"),M="customers"===O,{data:k,isLoading:R}=(0,T.IT)((0,N.organizationsForIndex)({limit:10,filters:{is_pro:!0,avoid_in_testimonials:!1}},{enabled:!P&&M})),z=(e=>Array.isArray(e?.data)?e.data:Array.isArray(e?.pages)?e.pages.flatMap(e=>e?.data||[]):[])(k),D=(0,n.useCallback)(()=>{let e=M?"testimonials":"customers";L.click({...j,component:u.$j.VIEW_ALL_CUSTOMERS_AND_TESTIMONIALS,subComponent:u.kU.VIEW_CUSTOMER_LIST,meta:{view:e}}),w(e)},[M,L,j]);return(0,a.jsxs)("div",{className:(0,l.default)(g().root,{[g().rootMobile]:!P}),children:[P&&(0,a.jsx)(h.Ay,{name:"footer",stackIdentifier:"content",topPositionPx:60,renderHeader:()=>(0,a.jsx)(m.Ay,{variant:"p",size:18,weight:"bold",children:S(`${A.TP}.FN_TESTIMONIALS_AND_CUSTOMERS`)})}),(0,a.jsx)("div",{className:(0,l.default)(g().container,{[g().landingPage]:t,[g().containerMobile]:!P}),children:P?(0,a.jsxs)("div",{className:g().root__wrapper,children:[(0,a.jsxs)("section",{className:g().root__wrapper_left,children:[(0,a.jsx)(m.Ay,{variant:"h2",size:t?16:14,weight:"bold",children:S(`${A.TP}.FN_TESTIMONIALS`)}),(0,a.jsx)(p.A,{className:g().testimonials,style:f?{"--testimonials-columns":f}:void 0,limit:50,inLine:!0,hideTitle:!0,variant:b,columns:f,withSeparator:I})]}),(0,a.jsxs)("div",{className:g().root__wrapper_right,children:[(0,a.jsx)(m.Ay,{variant:"h2",size:t?16:14,weight:"bold",children:S(`${A.TP}.FN_CUSTOMERS`)}),(0,a.jsx)(C,{})]})]}):(0,a.jsxs)("div",{className:g().mobileRoot,children:[(0,a.jsx)("div",{className:g().mobileHeader,children:M?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.Ay,{variant:"text",onClick:D,children:[(0,a.jsx)(m.Ay,{size:12,color:"link",children:S(`${A.TP}.FN_VIEW_ALL_TESTIMONIALS`,{defaultValue:"View all testimonials"})}),(0,a.jsx)(c.Ay,{icon:"chevron_right",size:14})]}),(0,a.jsx)(m.Ay,{size:14,weight:"bold",children:S(`${A.TP}.FN_CUSTOMERS`,{defaultValue:"Customer"})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.Ay,{size:14,weight:"bold",children:S(`${A.TP}.FN_TESTIMONIALS`,{defaultValue:"Testimonials"})}),(0,a.jsxs)(r.Ay,{variant:"text",onClick:D,children:[(0,a.jsx)(m.Ay,{size:12,color:"link",children:S(`${A.TP}.FN_SEA_ALL_CUSTOMERS`,{defaultValue:"See all customers"})}),(0,a.jsx)(c.Ay,{icon:"chevron_right",size:14})]})]})}),(0,a.jsx)("div",{className:g().mobileBody,children:M?(0,a.jsx)("ul",{className:g().mobileCustomerList,children:R&&0===z.length?Array.from({length:4}).map((e,t)=>(0,a.jsx)("li",{className:g().mobileCustomerList__item,children:(0,a.jsx)(d.A,{className:g().mobileCustomerList__itemSkeleton,variant:"rectangular"})},`customer-skeleton-${t}`)):z.map(e=>(0,a.jsx)("li",{className:g().mobileCustomerList__item,children:(0,a.jsx)(s.A,{variant:o.x.LANDSCAPE_MINI,entityType:E.ENTITY_TYPES.ORGANIZATION,entity:e,trackingData:{...j,section:u.bP.CUSTOMER_LIST,component:u.$j.ORGANIZATION_CARD,entityId:e?.id,entityName:e?.name,entityType:E.ENTITY_TYPES.ORGANIZATION}})},e?.id))}):(0,a.jsx)(p.A,{limit:5,hideTitle:!0,minimized:!0})})]})})]})}},95143:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=i(32397).A},96732:e=>{e.exports={wrapper:"ob_aGQEQq",freezeHeader:"ob_GvPFeB",freezeHeader_isGlobalHeaderVisible:"ob_Fd9gog",freezeHeader__appliedFilters:"ob_q8kde7",freezeHeader__scrolledBeyond:"ob_Bieieh",freezeHeaderBackdrop:"ob_wbTKEA",tableContent:"ob_fLnoP5",row:"ob_ZpeTQT",row_header:"ob_1rXPCd",row_expanded:"ob_U3u4cw",row_frozen:"ob_PigJHY",frozenCells:"ob_0LAi3z",frozenCells_header:"ob_orFgdS",frozenCells_expanded:"ob_5toa2x",arrow:"ob_aIe7TJ",cell:"ob_cO8iXe",cell_header:"ob_1NkkWS",arrow_right:"ob_trhpMT",expandIcon:"ob_V3hctI",expandedRow:"ob_9GC7WJ"}}}]);

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.