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]="b1780a2c-da7c-5ef8-976c-236b264df210")}catch(e){}}(); 3import{b as H}from"./chunk-SHHCNOBU.js";import{a as G}from"./chunk-FM4BRFJL.js";import"./chunk-6EK472QO.js";import{Od as F,Pd as q,Qd as B}from"./chunk-3DSPHW6V.js";import"./chunk-63QE6F3C.js";import"./chunk-J3ZCYF7X.js";import"./chunk-N6HKC5YM.js";import{c as U,i as Y,j as z,k as Z}from"./chunk-EHPICUXU.js";import{D as O,Db as A,K as P,M as T,Nb as V,O as L,Sb as E,kc as N,rc as J,y as W}from"./chunk-NZAURXIC.js";import"./chunk-PDBQSBW2.js";import{Bb as x,Ib as c,Ja as C,Jb as f,Lc as s,Nc as d,Va as g,Wa as u,Xa as v,Zb as y,Zc as m,Zd as X,cd as S,dd as M,ec as w,ed as D,gd as I,hc as p,oc as k,tc as i,uc as r,vc as h,zc as _}from"./chunk-RX45F3VG.js";import{a as j,b as Q}from"./chunk-XTLLHG7S.js";import"./chunk-3YV6UUBL.js";import"./chunk-JLENAXOB.js";import"./chunk-2QIXGXOC.js";import"./chunk-SNF2N7IK.js";import"./chunk-NM7LVQTP.js";import"./chunk-IK6B3JC3.js";import{m as b}from"./chunk-C6VPWJCA.js";Y();J();L();Z();Q();B();X();B();L();function $(n,K){if(n&1){let t=_();i(0,"div",13),s("click",function(){g(t);let e=d();return u(e.openAssetLibrary())}),h(1,"img",14),i(2,"button",15),s("click",function(e){return g(t),d().removeLogo(),u(e.stopPropagation())}),h(3,"i",16),r()()}if(n&2){let t=d();c(),p("src",t.logoUrl,x)}}function ee(n,K){if(n&1){let t=_();i(0,"button",17),s("click",function(){g(t);let e=d();return u(e.openAssetLibrary())}),v(),i(1,"svg",18),h(2,"path",19),r()()}}var R=class extends j{constructor(){super(...arguments),this.memberOptions=[]}},me=(()=>{class n extends z{constructor(t,o){super(t),this.data=t,this.dialogService=o,this.workspaceName="",this.logoId="",this.logoUrl="",this.selectedMemberIds=[],this.submittingState=!1,this.maxNameLength=H}get isValid(){return this.workspaceName.trim().length>0}openAssetLibrary(){return b(this,null,function*(){let{AssetsLibraryDialogComponent:t}=yield import("./chunk-QONZ7A3V.js"),{AssetsLibraryDialogData:o}=yield import("./chunk-5DCR5RL5.js"),e=new o;e.header="Choose Logo",e.assetType="image",e.assetSubType="logo",e.level="desk,system",e.ignoreUserPlan=!0,e.onClose=()=>this.dialogService.close(),e.onSubmit=a=>{a&&(this.logoUrl=new G(a).getUrl(),this.logoId=a.assetId,this.dialogService.close())};let l=new F;l.panelClass="assets-uploads-library-modal-dialog",this.dialogService.open(e,t,l)})}onMembersChanged(t){this.selectedMemberIds=t||[]}removeLogo(){this.logoId="",this.logoUrl=""}onSave(){!this.isValid||this.submittingState||(this.submittingState=!0,this.data.onSubmit({name:this.workspaceName.trim(),logoId:this.logoId,memberIds:this.selectedMemberIds}))}onSaveFailed(){this.submittingState=!1}static{this.\u0275fac=function(o){return new(o||n)(f(U),f(q))}}static{this.\u0275cmp=C({type:n,selectors:[["create-workspace-dialog"]],standalone:!0,features:[y,I],decls:18,vars:13,consts:[["title","Create new Workspace","size","md",3,"closed"],["modal-body","",1,"dialog-body"],["labelText","Workspace name","placeholder","Fill Worksp
3ace name","labelType","outside",3,"ngModelChange","required","maxLength","ngModel"],[1,"icon-section"],[1,"icon-label"],[1,"icon-area"],[1,"icon-preview"],[1,"members-section"],["labelText","Add Members","type","outside","placeholder","Choose Members","multiSelectDisplay","chips",2,"width","100%",3,"valueChange","options","label","preserveIconColor","required","searchable","multiSelect","disabled"],[1,"members-hint"],["modal-footer","",1,"dialog-footer"],["variant","ghost","size","md",3,"clicked"],["variant","primary","size","md",3,"clicked","disabled","loading"],[1,"icon-preview",3,"click"],["alt","Workspace icon",1,"icon-image",3,"src"],["type","button",1,"icon-remove",3,"click"],[1,"fa","fa-times"],["type","button",1,"icon-placeholder",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12 5V19M5 12H19","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"]],template:function(o,e){o&1&&(i(0,"lib-modal",0),s("closed",function(){return e.close()}),i(1,"div",1)(2,"lib-input",2),D("ngModelChange",function(a){return M(e.workspaceName,a)||(e.workspaceName=a),a}),r(),i(3,"div",3)(4,"span",4),m(5,"Workspace icon"),r(),i(6,"div",5),w(7,$,4,1,"div",6)(8,ee,3,0),r()(),i(9,"div",7)(10,"lib-dropdown",8),s("valueChange",function(a){return e.onMembersChanged(a)}),r(),i(11,"span",9),m(12,"Leave blank to create an empty Workspace"),r()()(),i(13,"div",10)(14,"lib-button",11),s("clicked",function(){return e.close()}),m(15," Cancel "),r(),i(16,"lib-button",12),s("clicked",function(){return e.onSave()}),m(17," Save "),r()()()),o&2&&(c(2),p("required",!0)("maxLength",e.maxNameLength),S("ngModel",e.workspaceName),c(5),k(7,e.logoUrl?7:8),c(3),p("options",e.data.memberOptions)("label",!0)("preserveIconColor",!0)("required",!1)("searchable",!0)("multiSelect",!0)("disabled",e.data.memberOptions.length===0),c(6),p("disabled",!e.isValid||e.submittingState)("loading",e.submittingState))},dependencies:[N,V,E,A,T,W,P,O],styles:["[_nghost-%COMP%] lib-modal{width:500px}.dialog-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.dialog-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:12px}.icon-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.icon-label[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-weight:500;font-size:14px;line-height:1.4;letter-spacing:-.14px;color:var(--fg-primary, #253658)}.icon-area[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px}.icon-placeholder[_ngcontent-%COMP%]{width:105px;height:105px;border-radius:10px;border:1px dashed var(--gray-400, #9ca3af);background:var(--navy-50, #f0f3f9);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--fg-primary, #253658);transition:border-color .2s}.icon-placeholder[_ngcontent-%COMP%]:hover{border-color:var(--blue-500, #2563eb)}.icon-preview[_ngcontent-%COMP%]{width:105px;height:105px;border-radius:10px;overflow:hidden;position:relative;cursor:pointer}.icon-preview[_ngcontent-%COMP%]:hover .icon-remove[_ngcontent-%COMP%]{opacity:1}.icon-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.icon-remove[_ngcontent-%COMP%]{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;border:none;background:#00000080;color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:opacity .2s}.members-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.members-hint[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-weight:500;font-size:14px;line-height:1.4;letter-spacing:-.14px;color:var(--fg-tertiary, #9ca3af)}"]})}}return n})();export{me as CreateWorkspaceDialogComponent,R as CreateWorkspaceDialogData}; 4/**i18n:e059b5419240afef74436eb5a1887102ff8937e043a8d48b1423a03649476971*/ 5 6//# debugId=b1780a2c-da7c-5ef8-976c-236b264df210
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.