PageSourceSearch

https://calcom-production-bfab.up.railway.app/_next/static/chunks/…/removeUserFromOrg-4a08c340479d997d.js

js calcom-production-bfab.up.railway.app collected 2026-10-03 12:14:09 UTC 10,374 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[69309,43380,38445,63825,17643],{99437:function(r,i,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/admin/orgMigrations/removeUserFromOrg",function(){return a(53783)}])},27627:function(r,i,a){"use strict";a.r(i),a.d(i,{default:function(){return OrgMigrationLayout},getLayout:function(){return getLayout}});var o=a(52322),l=a(74638),u=a(95618);function OrgMigrationLayout(r){let{children:i}=r;return(0,l.G0)((0,o.jsxs)("div",{children:[(0,o.jsx)(u.Z,{tabs:[{name:"Move Team to Org",href:"/settings/admin/orgMigrations/moveTeamToOrg"},{name:"Move User to Org",href:"/settings/admin/orgMigrations/moveUserToOrg"},{name:"Revert: Move Team to Org",href:"/settings/admin/orgMigrations/removeTeamFromOrg"},{name:"Revert: Move User to Org",href:"/settings/admin/orgMigrations/removeUserFromOrg"}]}),i]}))}let getLayout=r=>(0,o.jsx)(OrgMigrationLayout,{children:r})},53783:function(r,i,a){"use strict";a.r(i),a.d(i,{__N_SSP:function(){return w},default:function(){return RemoveUserFromOrg},getFormSchema:function(){return getFormSchema}});var o=a(52322),l=a(88883),u=a(2784),c=a(63955),d=a(30195),m=a(20164),g=a(20850),y=a(48653),p=a(86258),h=a(62662),v=a(78617),x=a(66080),b=a(1861),k=a(27627);function Wrapper(r){let{children:i}=r;return(0,o.jsxs)("div",{children:[(0,o.jsx)(y.ZP,{title:"Organization Migration: Move a team",description:"Migrates a team to an organization"}),i]})}var w=!0;let getFormSchema=r=>d.ZP.object({userId:d.ZP.union([(0,g.Ao)(r),d.ZP.number()]),targetOrgId:d.ZP.union([(0,g.Ao)(r),d.ZP.number()])});function RemoveUserFromOrg(){let[r,i]=(0,u.useState)(0),{t:a}=(0,m.b)(),d=getFormSchema(a),g=(0,c.cI)({mode:"onSubmit",resolver:(0,l.F)(d)}),y=g.register;return(0,o.jsx)(Wrapper,{children:(0,o.jsxs)(p.l,{form:g,className:"space-y-6",handleSubmit:async r=>{i(1);let o=await fetch("/api/orgMigration/removeUserFromOrg",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),l=null;try{l=await o.json()}catch(r){r instanceof Error?(0,h.CF)(r.message,"error",1e4):(0,h.CF)(a("something_went_wrong"),"error",1e4),i(3);return}200===o.status?(i(2),(0,h.CF)(l.message,"success",1e4)):(i(3),(0,h.CF)(l.message,"error",1e4))},children:[(0,o.jsxs)("div",{className:"space-y-6",children:[(0,o.jsx)(v.nv,{label:"User ID",...y("userId"),required:!0,placeholder:"Enter userId to remove from org"}),(0,o.jsx)(v.nv,{className:"mb-0",label:"Target Organization ID",type:"number",required:!0,...y("targetOrgId"),placeholder:"Enter Target organization ID"})]}),(0,o.jsx)(x.z,{type:"submit",loading:1===r,children:"Remove User from Org along with its teams"})]})})}RemoveUserFromOrg.PageWrapper=b.Z,RemoveUserFromOrg.getLayout=k.getLayout},1732:function(r,i,a){"use strict";a.d(i,{Z:function(){return l}});var o=a(20526);let l=(0,o.Z)("ChevronRight",[["polyline",{points:"9 18 15 12 9 6",key:"1rtp27"}]])},19290:function(r,i,a){"use strict";a.d(i,{Z:function(){return l}});var o=a(20526);let l=(0,o.Z)("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},76791:function(r,i,a){"use strict";a.d(i,{Z:function(){return l}});var o=a(20526);let l=(0,o.Z)("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]])},45742:function(r,i,a){"use strict";a.d(i,{Z:function(){return l}});var o=a(20526);let l=(0,o.Z)("Loader",[["line",{x1:"12",x2:"12",y1:"2",y2:"6",key:"gza1u7"}],["line",{x1:"12",x2:"12",y1:"18",y2:"22",key:"1qhbu9"}],["line",{x1:"4.93",x2:"7.76",y1:"4.93",y2:"7.76",key:"xae44r"}],["line",{x1:"16.24",x2:"19.07",y1:"16.24",y2:"19.07",key:"bxnmvf"}],["line",{x1:"2",x2:"6",y1:"12",y2:"12",key:"89khin"}],["line",{x1:"18",x2:"22",y1:"12",y2:"12",key:"pb8tfm"}],["line",{x1:"4.93",x2:"7.76",y1:"19.07",y2:"16.24",key:"1uxjnu"}],["line",{x1:"16.24",x2:"19.07",y1:"7.76",y2:"4.93",key:"6duxfx"}]])},61842:function(r,i,a){"use strict";a.d(i,{Z:function(){return l}});var o=a(20526);let l=(0,o.Z)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},30697:function(r,i,a){"use strict";a.d(i,{Z:function(){return l}});var o=a(20526);let l=(0,o.Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},22087:function(r,i,a){"use strict";a.d(i,{Z:function(){return l}});var o=a(20526);let l=(0,o.Z)("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]])},71852:function(r,i,a){"use strict";var o=a(52322),l=a(39097),u=a.n(l),c=a(6464),d=a(20164),m=a(43080),g=a(1363),y=a(4165);i.Z=function(r){let{name:i,href:a,linkShallow:l,linkScroll:p,avatar:h,...v}=r,{t:x,isLocaleReady:b}=(0,d.b)(),k=(0,m.a)(a);
1return(0,o.jsxs)(u(),{href:a,shallow:l,scroll:p,className:(0,c.Z)(k?"bg-emphasis text-emphasis":"hover:bg-subtle hover:text-emphasis text-default","inline-flex items-center justify-center whitespace-nowrap rounded-[6px] p-2 text-sm font-medium leading-4 transition md:mb-0",v.disabled&&"pointer-events-none !opacity-30",v.className),"data-testid":"horizontal-tab-".concat(i),"aria-current":k?"page":void 0,children:[v.icon&&(0,o.jsx)(v.icon,{className:(0,c.Z)(k?"text-emphasis":"group-hover:text-subtle text-muted","-ml-0.5 hidden h-4 w-4 ltr:mr-2 rtl:ml-2 sm:inline-block"),"aria-hidden":"true"}),b?(0,o.jsxs)("div",{className:"flex items-center gap-x-2",children:[h&&(0,o.jsx)(g.q,{size:"sm",imageSrc:h,alt:"avatar"})," ",x(i)]}):(0,o.jsx)(y.N2,{className:"h-4 w-24"})]},i)}},95618:function(r,i,a){"use strict";var o=a(52322),l=a(2784),u=a(71852);i.Z=function(r){let{tabs:i,linkShallow:a,linkScroll:c,actions:d,...m}=r;return(0,o.jsxs)("div",{className:"mb-4 h-9 max-w-full lg:mb-5",children:[(0,o.jsx)("nav",{className:"no-scrollbar flex max-h-9 space-x-1 overflow-x-scroll rounded-md","aria-label":"Tabs",...m,children:i.map((r,i)=>(0,l.createElement)(u.Z,{className:"px-4 py-2.5",...r,key:i,linkShallow:a,linkScroll:c}))}),d&&d]})}},88883:function(r,i,a){"use strict";a.d(i,{F:function(){return s}});var o=a(63955),e=function(r,i,a){if(r&&"reportValidity"in r){var l=(0,o.U2)(a,i);r.setCustomValidity(l&&l.message||""),r.reportValidity()}},resolvers_t=function(r,i){var t=function(a){var o=i.fields[a];o&&o.ref&&"reportValidity"in o.ref?e(o.ref,a,r):o.refs&&o.refs.forEach(function(i){return e(i,a,r)})};for(var a in i.fields)t(a)},f=function(r,i){i.shouldUseNativeValidation&&resolvers_t(r,i);var a={};for(var l in r){var u=(0,o.U2)(i.fields,l);(0,o.t8)(a,l,Object.assign(r[l],{ref:u&&u.ref}))}return a},n=function(r,i){for(var a={};r.length;){var l=r[0],u=l.code,c=l.message,d=l.path.join(".");if(!a[d]){if("unionErrors"in l){var m=l.unionErrors[0].errors[0];a[d]={message:m.message,type:m.code}}else a[d]={message:c,type:u}}if("unionErrors"in l&&l.unionErrors.forEach(function(i){return i.errors.forEach(function(i){return r.push(i)})}),i){var g=a[d].types,y=g&&g[l.code];a[d]=(0,o.KN)(d,i,a,u,y?[].concat(y,l.message):l.message)}r.shift()}return a},s=function(r,i,a){return void 0===a&&(a={}),function(o,l,u){try{return Promise.resolve(function(l,c){try{var d=Promise.resolve(r["sync"===a.mode?"parse":"parseAsync"](o,i)).then(function(r){return u.shouldUseNativeValidation&&resolvers_t({},u),{errors:{},values:a.rawValues?o:r}})}catch(r){return c(r)}return d&&d.then?d.then(void 0,c):d}(0,function(r){return{values:{},errors:r.isEmpty?{}:f(n(r.errors,!u.shouldUseNativeValidation&&"all"===u.criteriaMode),u)}}))}catch(r){return Promise.reject(r)}}}},69557:function(r,i,a){"use strict";a.d(i,{Fw:function(){return N},wy:function(){return Z},zF:function(){return O}});var o=a(7896),l=a(2784),u=a(17998),c=a(92211),d=a(87695),m=a(61644),g=a(62656),y=a(72714),p=a(79616),h=a(23372);let v="Collapsible",[x,b]=(0,c.b)(v),[k,w]=x(v),O=(0,l.forwardRef)((r,i)=>{let{__scopeCollapsible:a,open:u,defaultOpen:c,disabled:m,onOpenChange:g,...p}=r,[v=!1,x]=(0,d.T)({prop:u,defaultProp:c,onChange:g});return(0,l.createElement)(k,{scope:a,disabled:m,contentId:(0,h.M)(),open:v,onOpenToggle:(0,l.useCallback)(()=>x(r=>!r),[x])},(0,l.createElement)(y.WV.div,(0,o.Z)({"data-state":$409067139f391064$var$getState(v),"data-disabled":m?"":void 0},p,{ref:i})))}),Z=(0,l.forwardRef)((r,i)=>{let{__scopeCollapsible:a,...c}=r,d=w("CollapsibleTrigger",a);return(0,l.createElement)(y.WV.button,(0,o.Z)({type:"button","aria-controls":d.contentId,"aria-expanded":d.open||!1,"data-state":$409067139f391064$var$getState(d.open),"data-disabled":d.disabled?"":void 0,disabled:d.disabled},c,{ref:i,onClick:(0,u.M)(r.onClick,d.onOpenToggle)}))}),j="CollapsibleContent",N=(0,l.forwardRef)((r,i)=>{let{forceMount:a,...u}=r,c=w(j,r.__scopeCollapsible);return(0,l.createElement)(p.z,{present:a||c.open},({present:r})=>(0,l.createElement)(_,(0,o.Z)({},u,{ref:i,present:r})))}),_=(0,l.forwardRef)((r,i)=>{let{__scopeCollapsible:a,present:u,children:c,...d}=r,p=w(j,a),[h,v]=(0,l.useState)(u),x=(0,l.useRef)(null),b=(0,g.e)(i,x),k=(0,l.useRef)(0),O=k.current,Z=(0,l.useRef)(0),N=Z.current,_=p.open||h,C=(0,l.useRef)(_),E=(0,l.useRef)();return(0,l.useEffect)(()=>{let r=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(r)},[]),(0,m.b)(()=>{let r=x.current;if(r){E.current=E.current||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";let i=r.getBoundingClientRect();k.current=i.height,Z.current=i.width,C.current||(r.style.transitionDuration=E.current.transitionDuration,r.style.animationName=E.current.animationName),v(u)}},[p.open,u]),(0,l.createElement)(y.WV.div,(0,o.Z)({"data-state":$409067139f391064$var$getState(p.open),"data-disabled":p.disabled?"":void 0,id:p.contentId,hidden:!_},d,{ref:b,style:{"--radix-collapsible-content-height":O?`${O}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...r.style}}),_&&c)});function $409067139f391064$var$getState(r){return r?"open":"closed"}}},function(r){r.O(0,[17515,84862,93806,30195,29686,70563,91608,14142,34688,7512,43689,15110,12892,85571,78363,94470,84390,27870,1861,77172,20850,99802,66041,79296,50307,74638,49774,92888,40179],function(){return r(r.s=99437)}),_N_E=r.O()}]);

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.