1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="32ef2268-ac9f-5a3f-9957-0aeeff50fac7")}catch(e){}}(); 3import{A as u,D as c}from"./chunk-4WT6CIHF.js";import{O as l,R as m,d as f,k as r}from"./chunk-PIDJMFI4.js";import{a as s,b as a,h as d,i as n}from"./chunk-ETF4AQIE.js";var b=(()=>{class o extends u{constructor(e){super(e,"UserSpaceAccess")}getUserSpacesByClient(e){return r(this.get(`/users-spaces/client/${e}`))}getUserSpacesByUser(e){return r(this.get(`/users-spaces/user/${e}`))}createUserSpaceAccess(e){let t={userId:e.userId,clientId:e.clientId,roleId:e.roleId,fullAccess:e.fullAccess};return e.fullAccess||(t.allowedPlaces=e.allowedPlaces||[],t.allowedSubPlaces=e.allowedSubPlaces||[]),this.post("/users-spaces",t)}editUserSpaceAccess(e,t){let i={userId:t.userId,clientId:t.clientId,roleId:t.roleId,fullAccess:t.fullAccess};return t.uid&&(i.id=t.uid),t.fullAccess||(i.allowedPlaces=t.allowedPlaces||[],i.allowedSubPlaces=t.allowedSubPlaces||[]),this.put(`/users-spaces/${e}`,i)}deleteUserSpaceAccess(e){return n(this,null,function*(){yield d(o.prototype,this,"delete").call(this,`/users-spaces/${e}`)})}moveUserSpaceToClient(e,t){return n(this,null,function*(){yield this.put(`/users-spaces/${e}`,{id:e,clientId:t})})}static \u0275fac=function(t){return new(t||o)(m(c))};static \u0275prov=l({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var P=(()=>{class o{modalState=new f({title:"",message:"",opened:!1});pendingConfirm;open(e,t,i,p){this.settleConfirm(!1),this.modalState.next({title:e,message:t,onConfirm:i,onCancel:p,opened:!0})}confirm(e,t){return this.settleConfirm(!1),new Promise(i=>{this.pendingConfirm=i,this.modalState.next({title:e,message:t,onConfirm:()=>this.settleConfirm(!0),onCancel:()=>this.settleConfirm(!1),opened:!0})})}close(){this.settleConfirm(!1);let e=this.modalState.value;this.modalState.next(a(s({},e),{opened:!1}))}get state$(){return this.modalState.asObservable()}settleConfirm(e){let t=this.pendingConfirm;this.pendingConfirm=void 0,t?.(e)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=l({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();export{P as a,b}; 4
5//# debugId=32ef2268-ac9f-5a3f-9957-0aeeff50fac7
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.