PageSourceSearch

https://app.insomnia.rest/assets/app.enterprise.domains_._id.unclaimed-NoGzPMQD.js

js insomnia.rest collected 2026-09-24 07:48:23 UTC 6,555 bytes, 2 lines download raw bytes

1import{r as i,j as e}from"./jsx-runtime-Dt5Dsy05.js";import{f as k,a as D,b as C}from"./index-6cgge6b1.js";import{F as b}from"./index-C63jUOGq.js";import{$ as M}from"./Button-CvYW20f_.js";import{$ as B,a as E,b as O}from"./TextField-BbcrekEd.js";import{$ as G,a as I}from"./ListBox-D9QAid_3.js";import{G as L}from"./error-boundary-DFW-X5Hb.js";import{M as A}from"./modal-CTgF3CoG.js";import{P as U}from"./pagination-bar-CisUSk-f.js";import{P as H}from"./primary-button-B7nJX9dj.js";import{g as w}from"./utils-DD_Jjyzs.js";import{u as R}from"./index-DuATMukp.js";import{u as V}from"./index-Bp6IXSXg.js";import{u as X,a as $,L as q}from"./components-ZktkP2zq.js";import"./utils-BB8Ot9oC.js";import"./useFocusRing-ZWDRAqPW.js";import"./index-NZOc2LSb.js";import"./FieldError-Dy_QLN4F.js";import"./useLabel-DjOvjNas.js";import"./useLabels-ydtmTngp.js";import"./Text-D05InDtS.js";import"./RSPContexts-Cy9b2T5m.js";import"./Form-CTll5Uw3.js";import"./useFormReset-Dv4KGZCY.js";import"./useControlledState-BB99txCh.js";import"./SharedElementTransition-_ejqraTQ.js";import"./Dialog-dGm0Ij3p.js";import"./VisuallyHidden-CFAIpn8J.js";import"./Separator-Bg6cjueJ.js";import"./DragAndDrop-6ZlAFdvQ.js";import"./Header-CrcAdC_R.js";import"./SelectionIndicator-DVxb3XeI.js";import"./error-404-1OyH2-b0.js";import"./primary-nav-link-button-DQ84tyHb.js";import"./bundle-mjs-D43wmME5.js";import"./circular-progress-Ca7QtNl_.js";import"./Heading-XVkYCqUz.js";import"./Modal-CoX4ie96.js";const Ce=()=>e.jsx(L,{});function Me(){var N;const{id:u}=R(),[s,c]=V(),{domain:x,unclaimedAccounts:d}=X(),o=$(),t=o.state!=="idle",[r,m]=i.useState(s.get("filter")||""),[p,n]=i.useState(!1),[l,g]=i.useState(null),f=s.get("page")?Number(s.get("page")):0,y=()=>{g(null),n(!1)},v=()=>{g(null),n(!1)},P=()=>{m(""),c(w(s,{page:0,filter:""}))},F=a=>{m(a),c(w(s,{page:0,filter:a}))},{unclaimed:j,...h}=((N=o==null?void 0:o.data)==null?void 0:N.unclaimed)||d;return e.jsxs("div",{className:"flex flex-col",children:[e.jsxs(q,{className:"mb-[25px] flex w-full max-w-[150px] cursor-pointer items-center gap-[5px] space-x-1.5 text-sm font-normal leading-[28px] tracking-tighter text-[#00000080] no-underline",to:`/app/enterprise/domains/${u}/edit`,children:[e.jsx(b,{icon:k,className:"h-4 w-4 text-[#00000080]"}),"Go Back"]}),e.jsxs("div",{className:"flex max-w-[500px] flex-col",children:[e.jsx("p",{className:"m-0 text-[16px] font-[500] leading-[28px] tracking-[-0.25px] text-[#000000d9]",children:"Unclaimed accounts"}),e.jsxs("p",{className:"m-0 text-[14px] font-normal leading-[18px] tracking-[-0.25px] text-[#000000d9]",children:["Check for accounts created with ",e.jsx("b",{children:x.name})," that aren’t associated with your team."]})]}),e.jsx("div",{className:"mt-6 flex flex-1 justify-start md:justify-end lg:justify-end",children:e.jsx(B,{value:r,className:"box-border h-[38px] w-full max-w-[500px] rounded-[4px] border border-solid border-[#d9d9d9] px-[12px] hover:border-primary focus:border-primary",onChange:F,"aria-label":"Filtering",children:e.jsxs(E,{className:"flex h-full w-full items-center gap-2","aria-label":"filtering",children:[e.jsx(b,{icon:D,className:"h-[15px] w-[15px] text-[#00000066]"}),e.jsx(O,{className:"box-border min-h-[36px] w-[76px] flex-1 border-none p-0 text-[14px] text-[#000000d9] placeholder-[#acacac] focus:ring-0 focus:ring-offset-0",placeholder:"Find account by email","aria-label":"Find account by email"}),!!(r!=null&&r.length)&&e.jsx(M,{"aria-label":"Clean input",className:"flex w-[25px] items-center justify-center",onPress:P,children:e.jsx(b,{icon:C,className:"h-[15px] w-[15px] text-[#00000066]"})})]})})}),j.length===0&&f===0?e.jsx("div",{className:"mt-[16px] flex h-[150px] flex-col items-center justify-center rounded-[8px] border border-[#dddddd] bg-[#f2f1f1] sm:h-[150px] md:h-[260px] lg:h-[260px]",children:e.jsx("p",{className:"m-0 text-[14px] font-normal leading-[18px] tracking-[-0.25px] text-[#00000080]",children:r?`No account found for the search: "${r}"`:"No unclaimed accounts"})}):e.jsx(e.Fragment,{children:e.jsxs("div",{className:"mb-[32px] mt-[16px] flex flex-col",children:[e.jsx("div",{className:"flex h-[40px] w-full justify-between gap-[10px] border-b border-solid border-[#e0e0e0] px-1 py-2",children:e.jsx("div",{className:"flex items-center",children:e.jsx("p",{className:"m-0 whitespace-nowrap text-[14px] font-normal leading-[15px] text-[#00000080]",children:"Member"})})}),e.jsx(G,{"aria-label":"Invitation list",selectionMode:"single",className:t?"animate-pulse":"",items:j,children:({email:a,picture:S})=>e.jsx(I,{id:a,textValue:a,"aria-label":`Select ${a}`,className:"flex h-[40px] cursor-pointer items-center justify-between gap-[10px] rounded-[4px] border-b border-solid border-[#e0e0e0] px-1 py-2 last:border-0 hover:bg-[#0000000a]",children:e.jsxs("div",{className:"flex w-[180px] items-center gap-[10px] xl:w-[350px]",children:[e.jsx("img",{alt:`${a}`,src:S,className:"m-0 h-[30px] w-[30px] rounded-full"}),e.jsx("p",{title:a,className:"m-0 flex-1 truncate whitespace-nowrap text-[14px] font-normal leading-[15px] tracking-[-0.25px] text-[#000000d9]",children:a})]})},a)}),e.jsx(U,{isPrevDisabled:f===0,isNextDisabled:h.total<=25||h.total<=(f+1)*25,isHidden:h.total<=25&&f===0})]})}),p&&e.jsx(z,{onSuccess:v,onClose:y,memberName:(l==null?void 0:l.email)||"",accountId:(l==null?void 0:l.accountId)||""})]})}const z=({memberName:u,accountId:s,onClose:c,onSuccess:x})=>{const[d,o]=i.useState(""),t=$(),r=t.state!=="idle";i.useEffect(()=>{var p,n;if(t.state==="idle"&&((p=t.data)==null?void 0:p.action)==="delete-member"){x();return}if(t.state==="idle"&&((n=t.data)!=null&&n.errors)){o(t.data.errors[0]);return}},[t,x]);const m=async()=>{t.submit({action:"delete-license",accountId:s},{method:"POST"})};return e.jsx(A,{isOpen:!0,title:"Confirm you want to delete license",onCancel:c,children:e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("p",{className:"m-0 w-[360px] text-[14px] font-normal leading-[18px] tracking-[-0.25px] text-[#000000d9]",children:["Once removed, ",u," will no longer have access."]}),e.jsxs("div",{className:"mt-6 flex flex-col gap-[10px]",children:[e.jsx(t.Form,{method:"POST",children:e.jsx(H,{onPress:m,type:"button",loading:r,className:"bg-error px-[16px] py-[8px] text-white",children:"Delete license"})}),d&&e.jsx("p",{className:"mb-1 flex justify-center text-[12px] font-normal leading-[18px] tracking-[-0.25px] text-red-500",children:d})]})]})})};export{Ce as ErrorBoundary,Me as default};
2//# sourceMappingURL=app.enterprise.domains_._id.unclaimed-NoGzPMQD.js.map

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.