PageSourceSearch

https://www.16personalities.com/build/assets/q2xpzwlzda.DawYUsWM.js

js 16personalities.com collected 2026-09-24 06:52:12 UTC 43,309 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/q2xpzwx0zxi.B3iTtKWX.js","assets/zhjhzy1kcm9w.DA_5RF-L.js","assets/cm9sbgltzq.C0zBU2yP.js","assets/sw1hz2jmywnl.BzsUItMa.js","assets/chjlbgxwzxi.DGBhFIeS.js","assets/dnvllwrlbq.t69ggluk.js","assets/c2vudhvudhj5.DbU550Wk.js","assets/zglzdalzda.Dol7pjGD.js","assets/yxnzzx9ucw.BcEqxbj_.js","assets/yxjyyxjyyxk.Cd8qVrCC.js","assets/bg9nbg9n.CKhwgiXE.js","assets/ynjlywvtyg.BknCqZu1.js","assets/dxrpbhrpbhm.SaSWgpIg.js","assets/cmvzy3vzy3vl.BPSAgJxd.js","assets/b2jqzwjqzwn0.BUWEIaWD.js","assets/bmv0d2luzw.lr1vu2vX.js","assets/Image.C7A1PU5L.css","assets/rwxcdxr0b24.BF3L9He_.js","assets/rwxby3rpb24.ChdEZCc2.js","assets/bmf2lxrlcw.p97MTl_w.js","assets/dxnlu3rvcmu.B0pNonF8.js","assets/rwxtb393bg.DkY7QxRT.js","assets/rwxmawxmaw5r.B-wlV0Wr.js","assets/ElLink.D-I_UhCx.css","assets/vglwvg9hc3q.Bs_FauZU.js","assets/rwxcywjvdw5k.Din42Zx9.js","assets/ElBackground.Y-zrwoJt.css","assets/rwxmb2fkzxi.DhLhNaZz.js","assets/rwxtcglubmvy.CWF2L-n_.js","assets/dxnllw9wcw.Dp2c9RS9.js","assets/dxnlvg9yzq.DcxjWSOv.js","assets/dxnlqxnlqxbp.C2FSbK-a.js","assets/ElSpinner.BYF0mHJo.css","assets/cmvwb3jvcg.BXGmigEp.js","assets/TipToast.CNIi-zls.css","assets/rwxsywdyb3vw.CuVgUgYg.js","assets/rwxjbn91ca.ClE2_eSx.js","assets/ElInputOptionsGroup.CJt6feAy.css","assets/rwxsywrpbw.Ob_ukXk7.js","assets/cmfkawfkaw8.B0Lcqfuo.js","assets/zmllbgjyb3jz.2Xz-CiFx.js","assets/ElRadio.M_2ZN3OV.css","assets/cmfkawjvdxa.U1YvhZjI.js","assets/zm9ybwlvbnm.BLlOhfWB.js","assets/aw5wdxllbgq.CiDCunij.js","assets/rwxecm1lbnu.UXTazj6j.js","assets/rwxmaxn0ym94.4DUy5kVm.js","assets/dxnllx9sba.CN7F5a1a.js","assets/cm92awrhynm.BlDyVKh5.js","assets/ElListbox.BNBLBDUA.css","assets/ElDropdownMenu.DvvdidMU.css","assets/q2xpzwlwcw.CeYHW81J.js","assets/dxnlvg9ycw.1erYOsRv.js","assets/dgvhbshlbwe.C_KGweZT.js","assets/q2xpzwvudq.CFPgqi35.js","assets/rwxnb2rhba.TUWOSiR0.js","assets/ElModal.DEOeIWcm.css","assets/rwxizwjnzw51.9wMzD_4_.js","assets/zmxvyxctdwk.C0i99MMl.js","assets/vglwrmjvdw.eIccotfS.js","assets/ElHeaderMenu.jvI0pVPW.css","assets/q2xpzwrhba.B-sVtWiG.js","assets/bw9kyw9kyww.NEUj8cpz.js","assets/rwxjbnb1da.Dl2h2ENa.js","assets/rwxjbndyb3vw.BAiLQZzK.js","assets/ElInputGroup.2ub5WzqH.css","assets/ElInput.B3twQPpb.css","assets/rwxtzwxly3q.CaD5654x.js","assets/ElSelect.y8pztydY.css","assets/q2xpzwrhba.LJld63_I.js"])))=>i.map(i=>d[i]);
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];if(null!=s)for(var i in s)s.hasOwnProperty(i)&&(e[i]=s[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:K7X9M2P4R8W5N3Q6":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="06f5d4fc-b85a-4bf8-8aee-c3ce761bda42",e._sentryDebugIdIdentifier="sentry-dbid-06f5d4fc-b85a-4bf8-8aee-c3ce761bda42")}catch(e){}}();import{n as e}from"./cm9sbgltzq.C0zBU2yP.js";import{t}from"./chjlbgxwzxi.DGBhFIeS.js";import{B as s,C as i,E as a,Et as n,F as l,K as r,T as o,W as d,Y as c,Z as u,_ as m,b as p,bt as v,dt as w,f as y,g,ht as h,it as b,k as f,kt as x,nt as k,pt as _,u as D,ut as S,v as A,w as U,wt as z,x as L,y as C}from"./zhjhzy1kcm9w.DA_5RF-L.js";import{$ as T,A as j,W as q,Z as I,c as P,j as R,l as E}from"./dnvllwrlbq.t69ggluk.js";import{D as V,E as B,H as M,I as O,T as F,b as N,i as W,j as G,n as Q,u as Y,z as K}from"./zglzdalzda.Dol7pjGD.js";import{g as X,u as $,y as H}from"./yxnzzx9ucw.BcEqxbj_.js";import{l as Z}from"./yxjyyxjyyxk.Cd8qVrCC.js";import{I as J,t as ee}from"./dxrpbhrpbhm.SaSWgpIg.js";import{G as te,Gn as se,H as ie,In as ae,Sr as ne,et as le,ft as re,pt as oe,ri as de,vn as ce}from"./sw1hz2jmywnl.BzsUItMa.js";import{t as ue}from"./rwxnb2rhba.TUWOSiR0.js";import{t as me}from"./rwxmawxmaw5r.B-wlV0Wr.js";import{t as pe}from"./dxnlqxnlqxbp.C2FSbK-a.js";import{t as ve}from"./rwxcdxr0b24.BF3L9He_.js";import{t as we}from"./rwxbbmrpb24.CAh-tRbJ.js";import{t as ye}from"./yxv0ac11c2vy.DfPgz3tp.js";import{t as ge}from"./rwxtzwfyy2g.BxccfghX.js";import{t as he}from"./rwxdyxxdyxjk.DwgWuIW-.js";import{t as be}from"./rwxcywrnzq.yDVQdIh3.js";import{n as fe}from"./cgfnawnsyxnz.8ILeAYof.js";import{t as xe}from"./rwxtd2l0y2g.oRHpiQru.js";import{t as ke}from"./rwxub29sdglw.C6q8KM8j.js";import{n as _e,t as De}from"./rwxtb393bg.DkY7QxRT.js";import{t as Se}from"./rwxqzxvjda.BbsHNFro.js";import{t as Ae}from"./cxvlcnv5cw.B3h2iOF2.js";import{n as Ue}from"./qxzhdgfjzq.D1ckQoHj.js";import{t as ze}from"./dxnllwr1cmvz.Bp_uaWkR.js";import{t as Le}from"./rwxbdmf0yxi.DeZEVTvs.js";import{t as Ce}from"./q2xpzwbvcnrz.DYKtqI0c.js";import{a as Te,c as je,i as qe,n as Ie,o as Pe,r as Re,s as Ee,t as Ve}from"./y2xpzw50cw.D4MtIjRd.js";import{n as Be}from"./dxnllxbyb3bz.xRPJemgw.js";import{n as Me,t as Oe}from"./cgfnawvlc3q.CNf4zDGc.js";import{t as Fe}from"./dxnllxjhy2tz.DhXiE01u.js";import{t as Ne}from"./dxnllx9ycw.Bnz6ZCDK.js";import{t as We}from"./vgvhbvfkzxi.C3KMq9IG.js";import{a as Ge,n as Qe,r as Ye,t as Ke}from"./dxnllwn0lxvp.CKQFbn8y.js";import{t as Xe}from"./tgvuz3xpc3q.tpd-8ZCm.js";import{n as $e,r as He,t as Ze}from"./rwxtdgluzxi.BQkHJMyH.js";import{t as Je}from"./tglzderhdgu.B9Byzx-t.js";import{t as et}from"./sw50bczhy2u.CoBdT0q-.js";import{t as tt}from"./dxnllxrhymxl.Cb29yevk.js";import{t as st}from"./y2xpcgjvyxjk.0GMWr3zv.js";import{t as it}from"./rwxnzxrpca.BzenXCFy.js";var at=oe({endpoint:"api.client-seats.groups.store",input:B({name:O(),color:O()}),output:je}),nt=oe({endpoint:"api.client-seats.groups.update",input:B({"{group}":M([O(),F()]),name:O(),color:O()}),output:je}),lt=oe({endpoint:"api.client-seats.groups.destroy",input:B({"{group}":M([O(),F()])}),output:B({deleted:W()})}),rt=oe({endpoint:"api.client-seats.groups.clients.add",input:B({"{group}":M([O(),F()]),clients:Q(F())}),output:je}),ot=oe({endpoint:"api.client-seats.groups.clients.remove",input:B({"{group}":M([O(),F()]),clients:Q(F())}),output:je}),dt=I("clients.groups",()=>{const e=h(!1),t=E(),s=P(()=>Ve({options:{enabled:e}})),i=g(()=>s.data.value??[]),a=_(new Set),n=h(null),l=h(!1),r=pe(),o=pe(),d=pe(),c=pe();function u(){s.refetch(),t.invalidateQueries({key:Ae.listSeats({})})}return{ready:e,groups:i,groupsQuery:s,saving:a,assignTarget:n,assignShown:l,openAssign:function(e){n.value=e,l.value=!0},createGroup:async function(e,t){return a.add(0),(new r).request({endpoint:at,method:"POST",params:{name:e,color:t}}).then(({data:e})=>(u(),{ok:!0,group:e})).catch(e=>({ok:!1,error:e})).finally(()=>a.delete(0))},updateGroup:async function(e,t,s){return a.add(e),(new o).request({endpoint:nt,method:"PATCH",params:{"{group}":e,name:t,color:s}}).then(({data:e})=>(u(),{ok:!0,group:e})).catch(e=>({ok:!1,error:e})).finally(()=>a.delete(e))},deleteGroup:async function(e){return a.add(e),(new d).request({endpoint:lt,method:"DELETE",params:{"{group}":e}}).then(()=>(u(),{ok:!0}
2)).catch(e=>({ok:!1,error:e})).finally(()=>a.delete(e))},addClientsToGroup:async function(e,t){return a.add(e),(new c).request({endpoint:rt,method:"POST",params:{"{group}":e,clients:t}}).then(({data:e})=>(u(),{ok:!0,group:e})).catch(e=>({ok:!1,error:e})).finally(()=>a.delete(e))},removeClientsFromGroup:async function(e,t){return a.add(e),(new c).request({endpoint:ot,method:"POST",params:{"{group}":e,clients:t}}).then(({data:e})=>(u(),{ok:!0,group:e})).catch(e=>({ok:!1,error:e})).finally(()=>a.delete(e))}}}),ct=oe({endpoint:"api.client-seats.invites.send",input:B({ignoreEmailWarnings:V(W(),!1),clients:Q(B({name:O(),email:O()})),locale:ne}),output:B({accountData:B({remaining:F()})})}),ut=oe({endpoint:"api.client-seats.invites.validate",input:B({email:O(),name:O(),ignoreEmailWarnings:V(W(),!1)}),output:B({valid:W()})}),mt={endpoint:"api.client-seats.clients.remove-batch",input:B({clients:Q(F())}),output:B({remaining:F()})},pt={endpoint:"api.client-seats.invites.cancel-batch",input:B({keys:Q(O())}),output:B({remaining:F()})},vt={endpoint:"api.client-seats.invites.resend-batch",input:B({keys:Q(O())}),output:B({})},wt=oe({endpoint:"api.client-seats.clients.export-all-csv",input:B({search:V(O()),sort:V(Ee),types:V(Q(ie)),group:V(G(F(),Y(),N(1)))}),output:B({})}),yt=oe({endpoint:"api.client-seats.clients.export-csv",input:B({clients:Q(F())}),output:B({})}),gt=oe({endpoint:"api.client-seats.invites.export-csv",input:B({keys:Q(O())}),output:B({})}),ht=G(M([ie,Q(ie)]),K(e=>Array.isArray(e)?e:[e])),bt=I("clients.list",()=>{const{runAsync:e}=de(),{isDesktop:t}=ce(),s=Fe(),i=Fe(),a=_({sending:!1,bulkSent:!1,sent:!1,error:null}),n=_({remove:!1,viewUserDetails:!1,invitesSent:!1}),l=h(null),r=_({resending:new Set,resent:new Set,removing:new Set,menuOpen:new Set,selected:new Set,interacting:null}),o=_({removing:new Set,menuOpen:new Set,selected:new Set,interacting:null,downloading:!1,downloadingAll:!1}),{id:d}=ye(),c=R(g(()=>`user.${d.value}.clients.dashboard-view-mode`),"cards"),u=g(()=>t.value?c.value:"list"),m=Be("tab","clients",{transform:e=>"invites"===e?"invites":"clients"}),p=h(),v=h(),y=h(!1),b=h(!1),f=pe(),x=pe(),k=pe(),D=pe(),S=pe(),A=Oe(m),U=A.bind("clients"),z=A.bind("invites"),L=Me({endpoint:Pe,navigation:U,selection:{selected:o.selected,enabled:()=>"list"===u.value},defineControls:e=>({listType:"clients",search:e.submittedRouteQuery("search",{defaultValue:"",schema:O(),navigation:U}),sort:e.routeQuery("sort",{defaultValue:"name_asc",schema:Ee,reason:"sort"}),typeFilter:e.routeQuery("types",{defaultValue:[],schema:ht}),groupFilter:e.routeQuery("group",{defaultValue:0,schema:H})}),query:e=>[Re,()=>({filters:{search:e.search.applied.value,[re]:e.sort.value.value,types:e.typeFilter.value.value,group:e.groupFilter.value.value||void 0},options:{enabled:b}})],pageName:"cp"}),C=Me({endpoint:qe,navigation:z,selection:{selected:r.selected,enabled:()=>"list"===u.value},defineControls:e=>({listType:"invites",sort:e.routeQuery("sort_invites",{defaultValue:"sent_at_desc",schema:Te,reason:"sort"})}),query:e=>[Ie,()=>({filters:{search:L.controls.search.applied,[re]:e.sort.value.value},options:{enabled:b}})],pageName:"ip"}),T=h(null),j=g(()=>L.request.data.value?.deletedCount??0),q=g(()=>T.value??L.request.data.value?.reportsAvailable??0),I=h(null),P=h(null),E=Ne({fields:["name","email"]}),V=pe(),B=g(()=>L.request.data.value?.data??[]),M=g(()=>C.request.data.value?.data??[]);return{clients:B,invites:M,reportsAvailable:q,selectedClient:p,selectedInvite:v,invitesRequest:C,clientListRequest:L,inviteListStates:r,clientListStates:o,emailWarning:I,duplicateInviteEmail:P,inviteStates:a,deletedCount:j,clientListTransitions:s,invitesListTransitions:i,ignoreEmailWarnings:y,ready:b,serverValidationErrors:w(E),viewMode:u,viewModeUserSelected:c,tab:m,modals:n,viewUserDetails:l,serverValidateData:async function(e){return(new S).request({endpoint:ut,method:"POST",params:{...e,ignoreEmailWarnings:y.value}}).then(async({data:e})=>(I.value=null,e.valid)).catch(e=>(se(e,e=>{if(!$(e))return e;E.extract(e);const t=e.getMeta();return"code"in t?(e.hideFromUser(),"warning-invalid-email"===t.code?(I.value=e,!1):"duplicate-invite-email"===t.code?(P.value=t.email,!1):e):e}),!1))},sendClientInvites:async function(e){return(new f).action("clients-send-invite").request({method:"POST",endpoint:ct,params:{clients:e.items,...Z(e,"items")}}).then(({data:e})=>(T.value=e.accountData.remaining,C.request.refetch(),{ok:!0}
2)).catch(e=>({ok:!1,error:e}))},cancelInvite:async function(t){return!t.some(e=>r.removing.has(e))&&(n.viewUserDetails=!1,t.forEach(e=>r.removing.add(e)),(new x).request({endpoint:pt,method:"POST",params:{keys:t}}).then(async({data:s})=>{T.value=s.remaining,"cards"===u.value&&await e(1500),t.forEach(e=>C.remove("key",e));const a=()=>{C.request.refetch(),p.value=void 0,v.value=void 0};return"cards"===u.value?i.add("onAfterLeave",a):a(),!0}).catch(se).finally(()=>t.forEach(e=>r.removing.delete(e))))},resendInvite:async function(e){return!e.some(e=>r.resending.has(e))&&(e.forEach(e=>r.resending.add(e)),(new k).request({endpoint:vt,method:"POST",params:{keys:e}}).then(()=>(e.forEach(e=>r.resent.add(e)),!0)).catch(se).finally(()=>e.forEach(e=>r.resending.delete(e))))},removeClient:async function(t){return!t.some(e=>o.removing.has(e))&&(n.viewUserDetails=!1,t.forEach(e=>o.removing.add(e)),(new D).request({endpoint:mt,method:"POST",params:{clients:t}}).then(async({data:i})=>{T.value=i.remaining,"cards"===u.value&&await e(1500),t.forEach(e=>L.remove("key",e));const a=()=>{L.request.refetch(),p.value=void 0,v.value=void 0};return"cards"===u.value?s.add("onAfterLeave",a):a(),!0}).catch(se).finally(()=>t.forEach(e=>o.removing.delete(e))))},downloadClients:async function(){o.downloading=!0;const e=Array.from(o.selected.values()),t=B.value.filter(t=>e.includes(t.id)).map(e=>e.key);return(new V).download().request({endpoint:yt,method:"POST",params:{clients:t}}).then(()=>!0).catch(se).finally(()=>{o.downloading=!1})},downloadAllClients:async function(){o.downloadingAll=!0;const e=L.controls,t=e.search.applied,s=e.typeFilter.value,i=e.groupFilter.value;return(new V).download().request({endpoint:wt,method:"POST",params:{search:t||void 0,sort:e.sort.value,types:s.length?s:void 0,group:i||void 0}}).then(()=>!0).catch(se).finally(()=>{o.downloadingAll=!1})},downloadInvites:async function(){o.downloading=!0;const e=Array.from(r.selected.values()),t=M.value.filter(t=>e.includes(t.id)).map(e=>e.key);return(new V).download().request({endpoint:gt,method:"POST",params:{keys:t}}).then(()=>!0).catch(se).finally(()=>{o.downloading=!1})}}}),ft=a({__name:"ClientModalInvite",props:{name:{},assertive:{type:Boolean},notForm:{type:Boolean},backgroundQuit:{type:Boolean},quitable:{type:Boolean},prevent:{type:Boolean},focusOnSelector:{},title:{},ariaLabel:{},html:{},formAttrs:{},cancel:{type:[Boolean,String]},action:{},actionBusy:{},actionDone:{},actionHref:{},color:{},footer:{},actionAttrs:{},shaded:{type:Boolean},isError:{type:Boolean},size:{},align:{},blurBg:{type:Boolean},withBorder:{type:Boolean},css:{},shown:{type:Boolean},keepAlive:{type:Boolean},busy:{type:Boolean},done:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},usePortalInTest:{type:Boolean},dataTestid:{},immediateShownWatchers:{type:Boolean}},emits:["update:shown","show","hide","submit","action","quit"],setup(e){const{trans_en:t}=ae(),s=bt(),{sendClientInvites:a}=s,{reportsAvailable:n}=T(s),l=Ge({title:()=>t("Invite clients","client-seats.dashboard.invite.title"),sendInvites:a,invitesAvailable:n,draftsKey:"user.clients.bulk-invites-temp"});return(e,s)=>(d(),A(Ye,{name:"modal--client-invite","data-testid":"client-invite-modal"},{status:b(()=>[m("p",null,[U(le,{data:["You have {count} report(s) available.","client-seats.dashboard.invite.subtitle.1",{count:z(l).available.value,countDisplay:()=>f("strong",{class:[{"tw-text-red-rgb dark:tw-text-red-lighter-02":z(l).available.value<=0}]},z(l).available.value)}]},null,8,["data"]),s[0]||(s[0]=i(" "+x(" ")+" ",-1)),z(l).available.value>0?(d(),p(y,{key:0},[i(x(z(t)("Who would you like to invite?","dashboard.invites.subtitle")),1)],64)):(d(),A(me,{key:1,class:"link--inline",modal:{name:"modal--client-buy-reports",closeOtherModals:!0},text:z(t)("Add more?","ui.add-more")},null,8,["text"]))])]),_:1}))}}),xt={class:"tw-flex tw-gap-5 huge:tw-gap-20"},kt={key:0,class:"tw-flex tw-items-center tw-gap-10"},_t=["id"],Dt={key:1,class:"tw-flex tw-items-center tw-gap-10"},St=["id"],At={class:"tw-hidden tw-items-center tw-gap-10 huge:tw-flex"},Ut=["id"],zt=a({__name:"ClientListFiltersBar",props:{listType:{}},setup(e){const s=o(()=>t(()=>import("./q2xpzwx0zxi.B3iTtKWX.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50]))),i=u(),a=u(),n=u(),{trans_en:l}=ae(),{isDesktop:r}=ce(),{hasFeature:c}=ze(),v=g(()=>c("flag_pro_reports_groups")),w=e,y=bt(),{viewMode:h,viewModeUserSelected:b}=T(y),f="clients"===w.listType?y.clientListRequest.controls:y.invitesRequest.controls,k={name_asc:l("Name (
2asc.)","ui.sorting.name-asc"),name_desc:l("Name (desc.)","ui.sorting.name-desc"),type_asc:l("Type (asc.)","ui.sorting.type-asc"),type_desc:l("Type (desc.)","ui.sorting.type-desc"),sent_at_asc:l("Invite sent (asc.)","ui.sorting.invite-sent-asc"),sent_at_desc:l("Invite sent (desc.)","ui.sorting.invite-sent-desc"),email_asc:l("Email (asc.)","ui.sorting.email-asc"),email_desc:l("Email (desc.)","ui.sorting.email-desc")},_=g(()=>("clients"===f.listType?Ee.options:Te.options).map(e=>({label:k[e],value:e}))),D=g(()=>[{label:l("Cards","ui.cards"),value:"cards"},{label:l("List","ui.list"),value:"list"}]);return(t,o)=>(d(),p("div",xt,[z(r)&&"cards"!==z(h)?C("",!0):(d(),p("div",kt,[m("span",{id:z(i),class:"p-sm tw-sr-only tw-text-gray-rgb-12 dark:tw-text-ds-text-gray huge:tw-not-sr-only"},x(z(l)("Sort by:","articles.sorting.by")),9,_t),U(De,{modelValue:z(f).sort.model,"onUpdate:modelValue":o[0]||(o[0]=e=>z(f).sort.model=e),"default-value":"clients"===z(f).listType?"name_desc":"sent_at_desc",options:_.value,labelledby:z(i)},null,8,["modelValue","default-value","options","labelledby"])])),"clients"===z(f).listType?(d(),p("div",Dt,[m("span",{id:z(a),class:"p-sm tw-sr-only tw-text-gray-rgb-12 dark:tw-text-ds-text-gray huge:tw-not-sr-only"},x(z(l)("Filter:","ui.filter")),9,St),U(Se,{modelValue:z(f).typeFilter.model,"onUpdate:modelValue":o[1]||(o[1]=e=>z(f).typeFilter.model=e),"aria-labelled-by":z(a)},null,8,["modelValue","aria-labelled-by"])])):C("",!0),"clients"===e.listType&&v.value?(d(),A(z(s),{key:2})):C("",!0),m("div",At,[m("span",{id:z(n),class:"p-sm tw-sr-only tw-text-gray-rgb-12 dark:tw-text-ds-text-gray huge:tw-not-sr-only"},x(z(l)("View:","ui.view")),9,Ut),U(_e,{modelValue:z(b),"onUpdate:modelValue":o[2]||(o[2]=e=>S(b)?b.value=e:null),options:D.value,labelledby:z(n),"default-value":"cards","dropdown-label":z(l)("View:","ui.view"),"data-testid":"view-dropdown"},null,8,["modelValue","options","labelledby","dropdown-label"])])]))}});function Lt(){const e=bt(),{trans_en:t}=ae(),s=Be("tab","clients",{transform:e=>"invites"===e?"invites":"clients"}),i=g(()=>{const t=e.clientListRequest.LengthAwarePaginateListProps.selection?.selectedOnPage.value?.map(e=>e.id)??[],i=e.invitesRequest.LengthAwarePaginateListProps.selection?.selectedOnPage.value?.map(e=>e.id)??[];if("clients"===s.value){const s=e.clients.filter(e=>t.includes(e.id));return{type:"clients",item:e.clientListStates.interacting?e.clients.find(t=>e.clientListStates.interacting===t.id):s[0],selected:s,resetSelection:()=>e.clientListRequest.LengthAwarePaginateListProps.selection?.resetCurrentPage()}}{const t=e.invites.filter(e=>i.includes(e.id));return{type:"invites",item:e.inviteListStates.interacting?e.invites.find(t=>e.inviteListStates.interacting===t.id):t[0],selected:t,resetSelection:()=>e.invitesRequest.LengthAwarePaginateListProps.selection?.resetCurrentPage()}}});return{XButton:({listType:s,item:i})=>f(ve,{color:"white",icon:"times",modal:!0,shape:"circle",size:"st",tip:"client"===s?t("Remove this client","client-seats.dashboard.clients.remove.title"):t("Cancel invite","client-seats.dashboard.invitees.actions.cancel"),onClick:()=>{"client"===s?e.clientListStates.interacting=i.id:e.inviteListStates.interacting=i.id,e.modals.remove=!0}}),RemoveConfirmationModal:g(()=>{const a=i.value,n=()=>{e.clientListStates.interacting=null,e.inviteListStates.interacting=null,e.modals.remove=!1},l="clients"===a.type?e.clientListStates.interacting:e.inviteListStates.interacting,r=!l&&a.selected.length>1,o=l?1:a.selected.length,d={clients:{title:{single:()=>t("Remove a client","client-seats.dashboard.clients.remove.title"),multiple:()=>t("Remove clients","client-seats.dashboard.clients.bulk-remove.title")},prompt:{single:et("Are you sure you want to remove {name} from your client list? They’ll keep their premium access, and report credits won’t be returned.","client-seats.dashboard.clients.remove.prompt",{name:()=>f("b",a.item?.name??"")}),multiple:()=>t("Are you sure you want to remove these people from your list? Report credits won’t be returned.","client-seats.dashboard.clients.bulk-remove.prompt")}},invites:{title:{single:()=>t("Cancel invite","client-seats.dashboard.invitees.actions.cancel"),multiple:()=>t("Cancel invites","client-seats.dashboard.invitees.bulk-cancel.title")},prompt:{single:et("Are you sure you want to cancel your invite to {name}? The unused report credit will be returned to your account.","client-seats.dashboard.invitees.cancel.prompt",{name:()=>f("b",a.item?.name??"")}),multiple:()=>t("Are you sure you want to cancel these invites? The unused report credits will be returned to your account.","client-seats.dashboard.invitees.bulk-cancel.prompt")}}},c=g(()=>d[s.value].title[o>1?"multiple":"single"]),u=d[s.value].prompt[o>1?"multiple":"single"];return f(ue,{key:"modal-remove-confirmation",shown:e.modals.remove,immediateShownWatchers:!0,footer:"inline",busy:e.clientListStates.removing.size>0||e.inviteListStates.removing.size>0,action:t("Yes, remove","ui.remove"),actionBusy:t("Removing...","ui.remove"),title:c.value(),"onUpdate:shown":t=>{e.modals.remove=t,t||n()},onSubmit:async()=>{let t=!1;"clients"===a.type&&a.item?t=await e.removeClient(r?a.selected.map(e=>e.key):[a.item.key]):"invites"===a.type&&a.item&&(t=await e.cancelInvite(r?a.selected.map(e=>e.key):[a.item.key])),t&&(!l&&a.selected.length>0&&a.resetSelection(),n())}},{default:()=>f("p",{class:"no-margin"},"function"==typeof u?u():fe({data:u}))})})}}var Ct=o(()=>t(()=>import("./q2xpzwlwcw.CeYHW81J.js"),__vite__mapDeps([51,1,2,52,7,3,4,5,6,8,9,10,11,12,13,14,15,16,53])));function Tt(){const{isMobile:e,isDesktop:t}=ce(),s=bt(),{trans_en:i,localizeDate:a}=ae(),{XButton:n}=Lt(),{hasFeature:l}
2=ze(),r=g(()=>l("flag_pro_reports_groups")),o=({type:e,item:t})=>f("span",{class:"tw-flex tw-items-center tw-gap-[6px] medium:tw-gap-10 tw-truncate"},[f(Le,{class:"svg--avatar medium:tw-size-[36px] tw-size-[26px]",avatarData:{dynamicPath:"client"===e?t.avatar:Ue,alt:"client"===e?t.avatarAlt:""},wrapped:!0,importInline:"client"===e}),"isSelf"in t&&t.isSelf?i("You","ui.you"):f(me,{modal:!0,class:"link--inline tw-font-bold tw-text-font-p-sm tw-leading-font-p-sm tw-tracking-font-p-sm medium:tw-text-font-p-sm-medium medium:tw-leading-font-p-sm-medium medium:tw-tracking-font-p-sm-medium",onClick:()=>{s.modals.viewUserDetails=!0,s.viewUserDetails={type:e,item:t}}},()=>t.name)]),d=e=>f("span",{class:"p-sm tw-flex tw-items-center tw-gap-10"},[e.personality,f($e,{}),f("span",{class:"tw-text-gray-rgb-12 dark:tw-text-ds-text-gray"},e.code)]),{RenderTable:c}=tt({data:()=>s.clients,columns:()=>[{label:i("Name","client-seats.dashboard.invite.placeholders.name"),key:"name",sort:"name",render:t=>e.value?f("div",{class:"tw-grow"},[f("div",{class:"tw-flex tw-items-start tw-justify-between"},[o({type:"client",item:t}),n({listType:"client",item:t})]),d(t),t.groups.length&&r.value?f(Ct,{groups:t.groups,class:"tw-mt-5"}):null]):f("div",{class:"tw-flex tw-flex-col tw-gap-5"},[o({type:"client",item:t}),t.groups.length&&r.value?f(Ct,{groups:t.groups}):null])},{label:i("Personality type","public-profiles.type.title"),key:"type",sort:"type",render:e=>d(e),visible:!e.value},{label:"",key:"actions",cellSize:"fit",render:e=>n({listType:"client",item:e}),visible:!e.value}],sortable:{active:v(s.clientListRequest.controls.sort,"model")},selectable:!0,selected:v(s.clientListStates.selected)}),{RenderTable:u}=tt({data:()=>s.invites,columns:()=>[{label:i("Name","client-seats.dashboard.invite.placeholders.name"),key:"name",sort:"name",render:t=>e.value?f("div",{class:"tw-grow"},[f("div",{class:"tw-flex tw-items-start tw-justify-between"},[o({type:"invite",item:t}),n({listType:"invite",item:t})]),f("span",{class:"p-sm tw-mt-[1px]"},t.email)]):o({type:"invite",item:t})},{label:i("Email","client-seats.dashboard.invite.placeholders.email"),key:"email",sort:"email",render:e=>e.email,visible:!e.value},{label:i("Invite sent","dashboard.invites.sent-title"),key:"sentAt",sort:"sent_at",tdClass:"tw-text-gray-rgb-12 dark:tw-text-ds-text-gray",render:e=>e.lastSentAt?a(e.lastSentAt,{dateStyle:"medium"}):"",visible:t.value},{label:"",key:"actions",cellSize:"fit",render:e=>n({listType:"invite",item:e}),visible:!e.value}],sortable:{active:v(s.invitesRequest.controls.sort,"model")},selectable:!0,selected:v(s.inviteListStates.selected)});return{RenderClientsTable:c,RenderInvitesTable:u}}var jt={key:0,class:"tw-relative"},qt={class:"tw-end-0 tw-top-0 tw-mb-10 tw-size-60 medium:tw-absolute medium:tw-size-[110px] huge:tw-size-[120px]"},It={class:"tw-flex tw-flex-col"},Pt={class:"h6 tw-my-5"},Rt={class:"tw-flex tw-items-center tw-gap-10"},Et={class:"tw-text-gray-rgb-12 dark:tw-text-ds-text-gray"},Vt={key:1,class:"tw-mb-10"},Bt={class:"tw-mt-10 tw-flex tw-flex-col tw-gap-10 medium:tw-mt-20 medium:tw-flex-row"},Mt={class:"tw-mt-10 empty:tw-hidden medium:tw-mt-20"},Ot={class:"p-sm tw-mb-5"},Ft={class:"tw-text-gray-rgb-12 dark:tw-text-ds-text-gray"},Nt={key:0,class:"p-sm tw-mb-0"},Wt={class:"tw-text-gray-rgb-12 dark:tw-text-ds-text-gray"},Gt={key:0,class:"p-sm tw-mb-5"},Qt={class:"tw-text-gray-rgb-12 dark:tw-text-ds-text-gray"},Yt={key:1,class:"p-sm tw-mb-0"},Kt={class:"tw-text-gray-rgb-12 dark:tw-text-ds-text-gray"},Xt=a({__name:"ClientListUserDetailsModal",setup(e){const s=bt(),a=dt(),{resendInvite:l}=s,{trans_en:r,localizeDate:c}=ae(),u=o(()=>t(()=>import("./q2xpzwlwcw.CeYHW81J.js"),__vite__mapDeps([51,1,2,52,7,3,4,5,6,8,9,10,11,12,13,14,15,16,53]))),{hasFeature:v}=ze(),w=g(()=>v("flag_pro_reports_groups"));function h(){if(!s.viewUserDetails||"client"!==s.viewUserDetails.type)return;a.ready=!0;const e=s.viewUserDetails.item;s.modals.viewUserDetails=!1,a.openAssign(e)}function f(){const e=s.viewUserDetails?.item.key;e&&X(e)&&s.inviteListStates.resent.delete(e)}const _=q(f,3e3);function D(e){return c(e,{dateStyle:"medium",timeStyle:"medium"})}function S(e){return c(e,{dateStyle:"medium"})}async function L(){s.viewUserDetails&&"invite"===s.viewUserDetails.type&&(s.inviteListStates.interacting=s.viewUserDetails.item.id,s.modals.remove=!0)}function T(){s.viewUserDetails&&"client"===s.viewUserDetails.type&&(s.clientListStates.interacting=s.viewUserDetails.item.id,s.modals.remove=!0)}async function I(){if(s.viewUserDetails&&"invite"===s.viewUserDetails.type)try{await l([s.viewUserDetails.item.key]),s.viewUserDetails.item.lastSentAt=(new Date).toISOString(),s.invitesRequest.updateItem({key:s.viewUserDetails.item.key},{lastSentAt:s.viewUserDetails.item.lastSentAt}),_.start()}catch(e){return e}}const P=st(),R=j({title:r("Invite link","client-seats.dashboard.invitees.link.title")});async function E(){s.viewUserDetails&&"invite"===s.viewUserDetails.type&&(R.isSupported.value?R.share({url:s.viewUserDetails.item.link}):await P.copy(s.viewUserDetails.item.link))}return k(()=>s.modals.viewUserDetails,f),(e,t)=>(d(),A(ue,{shown:z(s).modals.viewUserDetails,"onUpdate:shown":t[0]||(t[0]=e=>z(s).modals.viewUserDetails=e),"not-form":"",name:"ClientListUserDetailsModal",align:"left",class:n({"tw-hidden":z(s).modals.remove}),inert:z(s).modals.remove,css:{modal__dialog:"tw-max-w-[330px] medium:tw-max-w-[660px] huge:tw-max-w-[740px]",modal__header:"tw-pb-0",modal__actions:"tw-p-0"}},{default:b(()=>[z(s).viewUserDetails?(d(),p("div",jt,[m("div",qt,[U(Le,{wrapped:"","avatar-data":{dynamicPath:"avatar"in z(s).viewUserDetails.item?z(s).viewUserDetails.item.avatar:z(Ue),alt:"avatarAlt"in z(s).viewUserDetails.item?z(s).viewUserDetails.item.avatarAlt:""},"import-inline":"client"===z(s).viewUserDetails.type,class:"tw-size-60 medium:tw-size-[110px] huge:tw-size-[120px]"},null,8,["avatar-data","import-inline"])]),m("div",It,[U(be,{size:"20","bg-color":"client"===z(s).viewUserDetails?.type?"green-lighter-09":"yellow-lighter-09","text-color":"client"===z(s).viewUserDetails?.type?"green-darker-06":"yellow-darker-08",text:"client"===z(s).viewUserDetails?.type?z(r)("Client","client-seats.dashboard.client"):z(r)("Invitation pending","dashboard.invites.invitation-pending"),class:"tw-flex tw-max-w-fit"},null,8,["bg-color","text-color","text"]),m("h4",Pt,x(z(s).viewUserDetails.item.name),1)]),"client"===z(s).viewUserDetails.type?(d(),p(y,{key:0},[m("p",Rt,[m("span",null,x(z(r)("Personality type","public-profiles.type.title"))+":",1),U($e),m("span",Et,x(z(s).viewUserDetails.item.code),1)]),w.value?(d(),A(z(u),{key:0,groups:z(s).viewUserDetails.item.groups,class:"tw-mt-10"},null,8,["groups"])):C("",!0)],64)):(d(),p("p",Vt,x(z(s).viewUserDetails.item.email),1)),m("div",Bt,["client"===z(s).viewUserDetails?.type?(d(),p(y,{key:0},[U(ve,{color:"purple",text:z(r)("View report","teams.dashboard.team-view.assessments.buttons.view"),icon:"user",size:"tn",href:z(s).viewUserDetails.item.profileUrl},null,8,["text","href"]),w.value?(d(),A(ve,{key:0,color:"lightgray",text:z(r)("Add to groups","client-seats.groups.assign.title"),icon:"plus",size:"tn",onClick:h},null,8,["text"])):C("",!0),U(ve,{color:"lightgray",text:z(r)("Remove client","client-seats.dashboard.clients.remove.title"),icon:"trash",size:"tn",onClick:T},null,8,["text"])],64)):(d(),p(y,{key:1},[U(ve,{color:"purple",text:z(r)("Cancel","ui.cancel"),icon:"block",size:"tn",onClick:L},null,8,["text"]),U(ve,{color:"lightgray",text:z(r)("Resend invite","client-seats.dashboard.invitees.link.resend"),"busy-text":z(r)("Resending…","client-seats.dashboard.invitees.link.resend"),"done-text":z(r)("Sent!","auth.forgot.sent"),done:z(s).inviteListStates.resent.has(z(s).viewUserDetails.item.key),icon:"plane",size:"tn",busy:z(s).inviteListStates.resending.has(z(s).viewUserDetails.item.key),onClick:I},null,8,["text","busy-text","done-text","done","busy"]),U(ve,{color:"lightgray",text:z(R).isSupported.value?z(r)("Share link","ui.share-link"):z(r)("Copy link","ui.copy-link"),icon:z(R).isSupported.value?"share":"copy",size:"tn",onClick:E},null,8,["text","icon"])],64))]),m("div",Mt,["client"===z(s).viewUserDetails?.type?(d(),p(y,{key:0},[m("p",Ot,[m("span",Ft,x(z(r)("Date credit redeemed:","ui.date-credit-redeemed")),1),i(" "+x(z(c)(z(s).viewUserDetails?.item.redeemedAt,{dateStyle:"medium"})),1)]),"client"===z(s).viewUserDetails?.type?(d(),p("p",Nt,[m("span",Wt,x(z(te)(z(r)("Supplementary Test","results.premium-quiz.title"))),1),i(" "+x(z(s).viewUserDetails?.item.supplementaryTestTakenAt?z(r)("Completed {date}","ui.completed-date",{date:z(c)(z(s).viewUserDetails?.item.supplementaryTestTakenAt,{dateStyle:"medium"})}):z(r)("Not completed","ui.not-completed")),1)])):C("",!0)],64)):(d(),p(y,{key:1},[z(s).viewUserDetails.item.lastSentAt?(d(),p("p",Gt,[m("span",Qt,x(z(r)("Invite last sent:","dashboard.invites.invite-last-sent")),1),t[1]||(t[1]=i(" "+x(" ")+" ",-1)),U(ke,{"on-text":S(z(s).viewUserDetails.item.lastSentAt),value:D(z(s).viewUserDetails.item.lastSentAt)},null,8,["on-text","value"])])):C("",!0),z(s).viewUserDetails.item.sentAt?(d(),p("p",Yt,[m("span",Kt,x(z(r)("Invite first sent:","dashboard.invites.invite-first-sent")),1),t[2]||(t[2]=i(" "+
2x(" ")+" ",-1)),U(ke,{"on-text":S(z(s).viewUserDetails.item.sentAt),value:D(z(s).viewUserDetails.item.sentAt)},null,8,["on-text","value"])])):C("",!0)],64))])])):C("",!0)]),_:1},8,["shown","class","inert"]))}}),$t=Xt,Ht={class:"tw-mt-20"},Zt={class:"tw-mt-20 tw-flex tw-gap-10 medium:tw-mt-30 medium:tw-gap-20"},Jt={class:"sp-wrap tw-mb-40 medium:tw-mb-60 huge:tw-mb-80"},es={class:"tw-flex huge:tw-gap-10"},ts={class:"p-tn tw-flex tw-flex-wrap"},ss={class:"tw-text-gray-rgb-12 dark:tw-text-ds-text-gray"},is={key:0,class:"tw-mt-20 tw-flex tw-justify-center"},as={class:"tw-flex huge:tw-gap-10"},ns={class:"invite__details"},ls={class:"invite__email tw-mb-5 tw-truncate","data-testid":"invite-email"},rs=a({__name:"ClientList",setup(e){const a=o(()=>t(()=>import("./q2xpzwvudq.CFPgqi35.js"),__vite__mapDeps([54,4,1,2,12,8,7,9,10,11,6,3,5,13,14,15,16,55,25,26,18,19,20,22,23,27,28,29,30,31,32,33,17,56,57,45,46,47,48,43,44,40,49,50,58,59,60]))),v=o(()=>t(()=>import("./q2xpzwlwcw.CeYHW81J.js"),__vite__mapDeps([51,1,2,52,7,3,4,5,6,8,9,10,11,12,13,14,15,16,53]))),w=o(()=>t(()=>import("./q2xpzwrhba.B-sVtWiG.js"),__vite__mapDeps([61,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,55,25,26,18,19,20,22,23,27,28,29,30,31,32,33,17,56,62,63,64,65,44,40,66,67,36,37,43,46,47,48,49,24,34,38,39,41,68,53,52]))),h=o(()=>t(()=>import("./q2xpzwrhba.LJld63_I.js"),__vite__mapDeps([69,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,55,25,26,18,19,20,22,23,27,28,29,30,31,32,33,17,56,62,52,53]))),{hasFeature:k}=ze(),_=g(()=>k("flag_pro_reports_groups")),{trans_en:j,localizeDate:q}=ae(),I=Ke,P=bt(),{invitesRequest:R,clientListRequest:E,clientListStates:V,inviteListStates:B,clientListTransitions:M,invitesListTransitions:O,resendInvite:F}=P,{clients:N,invites:W,reportsAvailable:G,deletedCount:Q,ready:Y,viewMode:K,modals:$,tab:H}=T(P),{XButton:Z,RemoveConfirmationModal:te}=Lt(),{RenderClientsTable:se,RenderInvitesTable:ie}=Tt(),ne=Qe(),re=dt(),oe=u(),de=g(()=>[{label:j("Choose a group…","client-seats.groups.assign.bulk-placeholder"),value:""},...re.groups.map(e=>({label:e.name,value:String(e.id)}))]);async function ce(e){const t=Number(e);if(!e||Number.isNaN(t))return;const s=Array.from(V.selected.values()),i=N.value.filter(e=>s.includes(e.id)).map(e=>e.key);i.length&&await re.addClientsToGroup(t,i)}function me(){E.controls.search.submit()}s(()=>{Y.value=!0});const pe=g(()=>({clients:j("Clients","client-seats.dashboard.clients.title").concat(E.request.data?` (${E.paginationMeta.total})`:""),invites:j("Invites","client-seats.dashboard.invites.title").concat(R.request.data?` (${R.paginationMeta.total})`:"")})),ye=ee("animations/dialogs/confirmations/message-sent.json");async function be(){J(ye),await F(Array.from(B.selected.values()).map(e=>W.value.find(t=>t.id===e)?.key).filter(X))&&(R.LengthAwarePaginateListProps.selection?.resetCurrentPage(),$.value.invitesSent=!0,R.request.refetch())}const fe=g(()=>N.value.length>0&&Boolean(E.paginationMeta.isVisible()));async function ke(){await P.downloadClients()}async function De(){await P.downloadAllClients()}async function Se(){await P.downloadInvites()}return(e,t)=>(d(),p("div",null,[U(We,{ref:"header",class:"teams__header--list",title:z(j)("Your Dashboard","client-seats.header.title")},{after:b(()=>[m("div",Ht,[m("p",{class:n({"tw-invisible":!z(E).request.data}),role:"status","aria-live":"polite"},[U(le,{"data-testid":"reports-left",data:["You have {count} report(s) available.","client-seats.dashboard.invite.subtitle.1",{count:()=>f("strong",{class:[{"tw-text-red-rgb dark:tw-text-red-lighter-02":z(G)<=0}]},z(G))}]},null,8,["data"]),z(Q)>0?(d(),p(y,{key:0},[t[5]||(t[5]=i(x(" ")+" ",-1)),U(le,{"data-testid":"deleted-clients-count",data:["Deleted clients: {n}.","client-seats.dashboard.n-deleted-clients",{n:()=>f("strong",z(Q))}]},null,8,["data"])],64)):C("",!0)],2),m("div",Zt,[U(ve,{color:"purple",icon:"plus",modal:"modal--client-invite",shape:"pill",size:"sm",text:z(j)("Invite clients","client-seats.dashboard.invite.title"),"data-testid":"invite-clients"},null,8,["text"]),U(ve,{color:"blue",modal:"modal--client-buy-reports",shape:"pill",size:"sm",text:z(j)("Purchase reports","client-seats.dashboard.buy-more")},null,8,["text"])])])]),_:1},8,["title"]),m("div",Jt,[U(Ze,{breakpoints:["mobile","tablet"],class:"-tw-my-5 tw-py-5 medium:-tw-my-10 medium:tw-py-10","
2stuck-class":"tw-mx-[-15px] medium:tw-mx-[-20px] medium:tw-px-20 tw-px-15 tw-pb-5 medium:tw-pb-10"},{default:b(()=>[m("form",{"data-testid":"search-form",onSubmit:D(me,["prevent"])},[U(ge,{modelValue:z(E).controls.search.model,"onUpdate:modelValue":t[0]||(t[0]=e=>z(E).controls.search.model=e),"always-open":"","always-enabled":"","submit-on-enter":"","is-form":"",color:"purple",placeholder:z(j)("Search...","ui.search-placeholder"),"input-class":"huge:tw-max-w-[640px]",onClear:me},null,8,["modelValue","placeholder"])],32)]),_:1}),U(xe,{modelValue:z(H),"onUpdate:modelValue":t[3]||(t[3]=e=>S(H)?H.value=e:null),options:pe.value,"use-hash":!1,class:"tw-mt-20 medium:tw-mt-40",size:"sm",css:{switch__nav:"tw-mb-20"}},{clients:b(()=>[m("h2",{class:n(z(I).h2)},x(z(j)("Clients","client-seats.dashboard.clients.title")),3),U(Xe,l(z(E).LengthAwarePaginateListProps,{"show-count":"","tight-margins":"","loading-style":"overlayContent","data-testid":"client-list",class:z(I).lengthAwarePaginateList}),{filters:b(()=>[U(zt,{"list-type":"clients"})]),"selection-actions":b(()=>[m("div",es,[z(re).groups.length&&_.value?(d(),A(_e,{key:0,"model-value":"","default-value":"",options:de.value,labelledby:z(oe),"dropdown-label":z(j)("Add to group","client-seats.groups.assign.bulk-title"),button:{text:z(j)("Add to group","client-seats.groups.assign.bulk-title"),icon:"plus",color:"blue",size:"tn",shape:"pill"},"onUpdate:modelValue":ce},null,8,["options","labelledby","dropdown-label","button"])):C("",!0),U(ve,l(z(ne)(z(j)("Remove clients","client-seats.dashboard.clients.bulk-remove.title")),{icon:"trash",onClick:t[1]||(t[1]=e=>z($).remove=!0)}),null,16),U(ve,l(z(ne)(z(j)("Download selected","ui.download-selected")),{icon:"download",busy:z(V).downloading,onClick:ke}),null,16,["busy"])])]),empty:b(({isWithFiltersApplied:e})=>[U(Je,{"is-with-filters-applied":e,title:e?z(j)("No results found.","errors.no-results"):z(j)("No clients","client-seats.dashboard.clients.empty.title"),subtitle:e?z(j)("Please try a different search term or adjust your filters.","ui.try-different-filter-or-search"):z(j)("You haven’t added any clients yet. Get started by inviting your first client to take the personality assessment.","client-seats.dashboard.clients.empty.subtitle")},L({_:2},[e?void 0:{name:"action",fn:b(()=>[U(ve,{color:"purple",icon:"plus",modal:"modal--client-invite",shape:"pill",size:"md",text:z(j)("Invite clients","client-seats.dashboard.invite.title"),"data-testid":"invite-clients"},null,8,["text"])]),key:"0"}]),1032,["is-with-filters-applied","title","subtitle"])]),default:b(()=>["cards"===z(K)?(d(),p("ul",{key:0,class:n(z(I).list)},[U(He,l({enabled:0!==z(V).removing.size},z(M).TransitionGroupListeners),{default:b(()=>[(d(!0),p(y,null,r(z(N),e=>(d(),p("li",{key:e.key},[U(he,{action:z(j)("View more","ui.view-more"),"action-attrs":{ltIcon:"plus",color:"inherit",modal:"ClientListUserDetailsModal",class:"tw-flex tw-max-w-fit"},clipped:!1,"action-caps":"","has-hover":"",size:"sm",image:e.placeholderResults?z(ee)("images/icons/default_neutral_avatar_icon_without_circle.svg"):e.avatar,"image-alt":e.avatarAlt,title:e.isSelf?z(j)("You","ui.you"):e.name,class:n(["member",[{["is--deleted "+z(I).memberDeleted]:z(V).removing.has(e.id)},z(I).member]]),"data-testid":"client-card",css:{card_icon:e.placeholderResults?"card--avatar avatar--anonymous":"card--avatar",card_title:z(I).memberCardTitle,card_body:z(I).memberCardBody,card_inner:z(V).removing.has(e.id)?z(I).memberDeletedCardInner:"",card_actions:"tw-mt-10"},onAction:()=>{z(P).modals.viewUserDetails=!0,z(P).viewUserDetails={type:"client",item:e}}},{default:b(()=>[m("div",ts,[m("span",null,x(e.personality),1),t[6]||(t[6]=m("span",{class:"tw-mx-[9px] tw-text-gray-05","aria-hidden":"true"},"•",-1)),m("span",ss,x(e.code),1)]),_.value?(d(),A(z(v),{key:0,groups:e.groups,class:"tw-mt-10"},null,8,["groups"])):C("",!0),(d(),A(c(z(Z)({listType:"client",item:e})),{class:"tw-absolute tw-end-5 tw-top-5 medium:tw-end-10 medium:tw-top-10"}))]),_:2},1032,["action","image","image-alt","title","class","css","onAction"])]))),128))]),_:1},16,["enabled"])],2)):C("",!0),"list"===z(K)?(d(),A(z(se),{key:1})):C("",!0)]),_:1},16,["class"]),fe.value?(d(),p("div",is,[U(ve,{color:"blue",icon:"download",shape:"pill",size:"sm",text:z(j)("Download all","ui.download-all"),busy:z(V).downloadingAll,"data-testid":"download-all-clients",onClick:De},null,8,["text","busy"])])):C("",!0)]),invites:b(()=>[m("h2",{class:n(z(I).h2)},x(z(j)("Invites","client-seats.dashboard.invites.title")),3),U(Xe,l(z(R).LengthAwarePaginateListProps,{"show-count":"","tight-margins":"","loading-style":"overlayContent","data-testid":"inv
2ite-list",class:z(I).lengthAwarePaginateList}),{filters:b(()=>[U(zt,{"list-type":"invites"})]),"selection-actions":b(()=>[m("div",as,[U(ve,l(z(ne)(z(j)("Cancel invites","client-seats.dashboard.invitees.bulk-cancel.title")),{icon:"block",onClick:t[2]||(t[2]=e=>z($).remove=!0)}),null,16),U(ve,l(z(ne)(z(j)("Resend invites","dashboard.invites.resend.plural")),{icon:"plane",busy:0!==z(B).resending.size,"busy-text":z(j)("Resending…","client-seats.dashboard.invitees.link.resend"),size:"tn",onClick:be}),null,16,["busy","busy-text"]),U(ve,l(z(ne)(z(j)("Download selected","ui.download-selected")),{icon:"download",busy:z(V).downloading,onClick:Se}),null,16,["busy"])])]),empty:b(({isWithFiltersApplied:e})=>[U(Je,{"is-with-filters-applied":e,title:e?z(j)("No results found.","errors.no-results"):z(j)("No invites","client-seats.dashboard.invites.empty.title"),subtitle:e?z(j)("Please try a different search term.","ui.try-different-search"):z(j)("You have no pending invites. Send a new invite or purchase reports to continue.","client-seats.dashboard.invites.empty.subtitle")},null,8,["is-with-filters-applied","title","subtitle"])]),default:b(()=>["cards"===z(K)?(d(),p("ul",{key:0,class:n(z(I).list)},[U(He,l({enabled:0!==z(B).removing.size},z(O).TransitionGroupListeners),{default:b(()=>[(d(!0),p(y,null,r(z(W),e=>(d(),p("li",{key:e.key},[U(he,{action:z(j)("View more","ui.view-more"),"action-attrs":{ltIcon:"plus",color:"inherit",modal:"ClientListUserDetailsModal",class:"tw-flex tw-max-w-fit"},"action-caps":"",title:e.name,clipped:!1,"has-group":"","has-hover":"",size:"sm",image:z(Ue),"image-alt":"",class:n(["member",[{["is--deleted "+z(I).memberDeleted]:z(B).removing.has(e.key),"has--menu-open tw-z-10":z(B).menuOpen.has(e.key)},z(I).member]]),"data-testid":"invite-card",css:{card_icon:"card--avatar avatar--anonymous",card_title:z(I).memberCardTitle,card_body:z(I).memberCardBody,card_inner:z(B).removing.has(e.key)?z(I).memberDeletedCardInner:"",card_actions:"tw-mt-10"},onAction:()=>{z(P).modals.viewUserDetails=!0,z(P).viewUserDetails={type:"invite",item:e}}},{default:b(()=>[m("div",ns,[m("div",ls,x(e.email),1),e.sentAt?(d(),A(it,{key:0,tip:z(q)(e.sentAt),text:e.sentAtDiff},null,8,["tip","text"])):C("",!0)]),U(z(a),{invite:e},null,8,["invite"])]),_:2},1032,["action","title","image","class","css","onAction"])]))),128))]),_:1},16,["enabled"])],2)):C("",!0),"list"===z(K)?(d(),A(z(ie),{key:1})):C("",!0)]),_:1},16,["class"])]),_:1},8,["modelValue","options"])]),U(ft),U(Ce),U($t),_.value?(d(),A(z(w),{key:0})):C("",!0),_.value?(d(),A(z(h),{key:1})):C("",!0),U(ue,{shown:z($).invitesSent,"onUpdate:shown":t[4]||(t[4]=e=>z($).invitesSent=e),"not-form":"",name:"invitesSent",align:"center",css:{modal__title:"tw-text-center tw-ms-[25px] medium:tw-mx-0"},color:"action",footer:"center",cancel:z(j)("Great!","ui.okay"),title:z(j)("Invites sent!","client-seats.dashboard.invite.sent.title")},{default:b(()=>[U(we,{"animation-file":z(ye),"static-copy":"","delayed-by":.1,class:"tw-mx-auto tw-mb-0 tw-mt-20 tw-w-[200px] medium:tw-w-[300px]"},null,8,["animation-file"])]),_:1},8,["shown","cancel","title"]),(d(),A(c(z(te))))]))}}),os=e({default:()=>ds}),ds=rs;export{ds as default,bt as n,dt as r,os as t};

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.