PageSourceSearch

https://app.insomnia.rest/assets/app.dashboard.organizations_._id.advanced-BZxP31MG.js

js insomnia.rest collected 2026-09-24 07:48:16 UTC 8,199 bytes, 2 lines download raw bytes

1import{r,j as e}from"./jsx-runtime-Dt5Dsy05.js";import{C as S}from"./checkbox-BV3Jsujn.js";import{G as C}from"./error-boundary-DFW-X5Hb.js";import{I as D,a as M}from"./info-banner-BhtvM_lG.js";import{I as w}from"./input-field-DyBMcORz.js";import{M as N}from"./modal-CTgF3CoG.js";import{P as j}from"./primary-button-B7nJX9dj.js";import{i as b,g as P}from"./remix-utils-qD3iEUI4.js";import{u as F}from"./app.dashboard.organizations_._id-CfMRJp3y.js";import{u as B,a as v}from"./components-ZktkP2zq.js";import"./index-6cgge6b1.js";import"./index-C63jUOGq.js";import"./RSPContexts-Cy9b2T5m.js";import"./utils-BB8Ot9oC.js";import"./Form-CTll5Uw3.js";import"./useFocusRing-ZWDRAqPW.js";import"./index-NZOc2LSb.js";import"./useToggle-DxO0WZtG.js";import"./useFormReset-Dv4KGZCY.js";import"./useToggleState-xbdVqVLM.js";import"./useControlledState-BB99txCh.js";import"./VisuallyHidden-CFAIpn8J.js";import"./Text-D05InDtS.js";import"./bundle-mjs-D43wmME5.js";import"./error-404-1OyH2-b0.js";import"./primary-nav-link-button-DQ84tyHb.js";import"./circular-progress-Ca7QtNl_.js";import"./index-DuATMukp.js";import"./FieldError-Dy_QLN4F.js";import"./useLabel-DjOvjNas.js";import"./useLabels-ydtmTngp.js";import"./Button-CvYW20f_.js";import"./TextField-BbcrekEd.js";import"./Dialog-dGm0Ij3p.js";import"./Heading-XVkYCqUz.js";import"./Modal-CoX4ie96.js";import"./Separator-Bg6cjueJ.js";import"./ListBox-D9QAid_3.js";import"./SharedElementTransition-_ejqraTQ.js";import"./DragAndDrop-6ZlAFdvQ.js";import"./Header-CrcAdC_R.js";import"./SelectionIndicator-DVxb3XeI.js";import"./Popover-C37uG8Ur.js";import"./OverlayArrow-BrRRlwbG.js";import"./Select-LJO08_Sn.js";import"./useMenuTrigger-BClztq9V.js";import"./tiny-invariant-CopsF_GD.js";import"./create-organization-modal-Cwo9OWT8.js";import"./root-DExJCkr-.js";import"./unstyled-CUrx1dqY.js";import"./text-button-QH623tyd.js";import"./hooks-DeH0PAYh.js";import"./performance-BM6s20Qq.js";import"./exports-B3oNOQxn.js";import"./index-Bp6IXSXg.js";import"./external-organization-badge-CXZy4ePz.js";import"./secondary-button-dAshlNoR.js";import"./secondary-nav-link-button-BMjlHqZN.js";import"./warning-banner-qsZc_VVM.js";import"./utils-DD_Jjyzs.js";import"./app-BSk4WopT.js";import"./e2ee.client-Bx8Rnuov.js";import"./session.client-BfS4AuYU.js";import"./preload-helper-D7HrI6pR.js";import"./link-D2WLy5l2.js";import"./passphrase-input-BGZfv_6r.js";import"./index-C19KvaSV.js";import"./insomnia-logo-lA2JNvTZ.js";import"./config-Dtdr2KLm.js";import"./Menu-I4Gs8Y6T.js";import"./button-DMcjm57C.js";import"./generated-types-D4zsZVIv.js";import"./use-user-service-DtmbQtAY.js";import"./subscription-D61Mo7AB.js";const A=new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),R=a=>!A.test(a);function st(){return e.jsx(C,{})}function lt(){var d;const{organization:a,orgFeatures:n}=F(),s=!!(n!=null&&n.archiveNotice),{transfer:o}=B(),[l,i]=r.useState(""),t=v(),m=t.state!=="idle",[f,c]=r.useState(!1),[u,x]=r.useState(!1);r.useEffect(()=>{t.state==="idle"&&b(t.data)&&i(t.data.errors[0])},[t.state,t.data]);const g=()=>{o?t.submit({action:"revoke-transfer",transferId:o.id},{method:"POST"}):c(!0)};return e.jsxs(e.Fragment,{children:[((d=a==null?void 0:a.metadata)==null?void 0:d.organizationType)!=="enterprise"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"m-0 text-[16px] font-[500] leading-[28px] tracking-[-0.25px] text-[#000000d9]",children:"Transfer organization"}),e.jsx("p",{className:"h-[36px m-0 mt-[10px] w-[400px] text-[14px] font-normal leading-[18px] tracking-[-0.25px] text-[#000000d9]",children:o?`You have already initiated a transfer request to ${o.dstAccountEmail}`:"Transfer your organization to another user by pressing the button below:"}),e.jsx(j,{onPress:g,loading:m,isDisabled:s,className:"my-[20px] h-[32px] w-[180px] bg-error px-[16px] py-[8px] text-white",children:o?"Revoke transfer":"Transfer organization"}),l&&e.jsx("p",{className:"mb-1 flex text-[12px] font-normal leading-[18px] tracking-[-0.25px] text-red-500",children:l})]}),e.jsx("p",{className:"m-0 text-[16px] font-[500] leading-[28px] tracking-[-0.25px] text-[#000000d9]",children:"Delete organization"}),e.jsx("p",{className:"h-[36px m-0 mt-[10px] w-[400px] text-[14px] font-normal leading-[18px] tracking-[-0.25px] text-[#000000d9]",children:"To fully delete your organization permanently and all of your data, please click the following button:"}),e.jsx(j,{onPress:()=>x(!0),className:"my-[20px] h-[32px] w-[170px] bg-error px-[16px] py-[8px] text-white",children:"Delete organization"}),e.jsx(G,{open:f,orgName:a.display_name,onClose:()=>c(!1)}),e.jsx($,{open:u,onClose:()=>x(!1)})]})}function $({open:a,onClose:n}){const[s,o]=r.useState(""),[l,i]=r.useState(!1),t=v(),m=t.state!=="idle";return r.useEffect(()=>{a&&(o(""),i(!1))},[a]),r.useEffect(()=>{t.state==="idle"&&b(t.data)&&o(t.data.errors[0])},[t.state,t.data]),e.jsx(N,{isOpen:a,title:"Delete organization",onCancel:n,children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("p",{className:"m-0 w-[360px] text-[14px] font-normal leading-[18px] tracking-[-0.25px] text-[#000000d9]",children:"To fully delete your organization permanently and all of your data."}),e.jsxs("div",{className:"flex flex-col gap-[10px] py-[8px]",children:[e.jsx(S,{label:"I understand that I will lose all my data",onChange:i}),e.jsx(t.Form,{method:"POST",children:e.jsx(j,{name:"action",value:"delete-organization",isDisabled:!l,loading:m,className:"bg-error px-[16px] py-[8px] text-white",children:"Delete organization"})}),s&&e.jsx("p",{className:"mb-1 flex text-[12px] font-normal leading-[18px] tracking-[-0.25px] text-red-500",children:s})]})]})})}function G({open:a,orgName:n,onClose:s}){const[o,l]=r.useState(""),[i,t]=r.useState(""),[m,f]=r.useState(),[c,u]=r.useState(),[x,g]=r.useState(!1),[d,z]=r.useState(!1),[h,y]=r.useState(!1),p=v(),O=p.state!=="idle";r.useEffect(()=>{a&&l("")},[a]),r.useEffect(()=>{const{ok:k,error:E}=P({data:p.data,state:p.state});E?l(E):k&&(t(""),f(""),u(""),l(""),s())},[p.state,p.data,s]);const T=!i||!m||!c,I=()=>
1{if(R(i.trim())){z(!0);return}if(i!==m){y(!0);return}if(c!==n){g(!0);return}p.submit({action:"transfer-organization",email:m??""},{method:"POST"})};return e.jsx(N,{isOpen:a,title:"Transfer organization",className:"max-w-[600px]",onCancel:s,children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("p",{className:"m-0 text-[14px] font-normal leading-[18px] tracking-[-0.25px] text-[#000000d9]",children:"By transferring this organization you are moving all its resources (including projects, collections and more) to another user. The collaborators of the organization will be preserved during the transfer."}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"my-6",children:e.jsx(D,{children:e.jsx(M,{children:"Warning: This is a potentially destructive action."})})}),e.jsxs("div",{className:"flex flex-col gap-[20px]",children:[e.jsx(w,{name:"new-owner-email",label:"Enter the email address of the new owner:",value:i,onChange:t,isInvalid:d,errorMessage:d?"Please enter a valid email.":void 0,onInput:()=>{d&&z(!1),h&&y(!1)}}),e.jsx(w,{name:"confirm-new-owner-email",label:"Confirm email address of the new owner:",onChange:f,value:m,isInvalid:h,errorMessage:h?"Emails do not match.":void 0,onInput:()=>{h&&y(!1)}}),e.jsx(w,{name:"confirm-new-owner-email",label:`Type the name of the organization (${n}) to confirm:`,onChange:u,value:c,placeholder:n,isInvalid:x,errorMessage:x?"Organization names do not match.":void 0,onInput:()=>{x&&g(!1)}})]}),e.jsxs(p.Form,{method:"POST",style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:"10px"},children:[e.jsx(j,{type:"button",isDisabled:T,loading:O,onPress:I,className:"mt-[20px] bg-error px-[16px] py-[8px] text-white",children:"I understand, transfer this organization"}),o&&e.jsx("p",{className:"mb-1 flex justify-center text-[12px] font-normal leading-[18px] tracking-[-0.25px] text-red-500",children:o})]})]})]})})}export{st as ErrorBoundary,lt as default};
2//# sourceMappingURL=app.dashboard.organizations_._id.advanced-BZxP31MG.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.