PageSourceSearch

https://dashboard.visme.co/v2/static/js/dashboard-popup-TeamRoles.d0c34312fcafaf4a.chunk.js

js visme.co collected 2026-10-01 08:32:37 UTC 28,979 bytes, 3 lines download raw bytes

1(function(){try{var T=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};T.SENTRY_RELEASE={id:"4.106.2@5fb3279d0cc"};var I=new T.Error().stack;I&&(T._sentryDebugIds=T._sentryDebugIds||{},T._sentryDebugIds[I]="15aa7e0f-b8ce-4b9e-87df-cfebbc69099b",T._sentryDebugIdIdentifier="sentry-dbid-15aa7e0f-b8ce-4b9e-87df-cfebbc69099b")}catch{}})(),(self.webpackChunkvisme_dashboard_web_app=self.webpackChunkvisme_dashboard_web_app||[]).push([["3938"],{70719(T,I,i){i.d(I,{JR:()=>ne,_G:()=>q,be:()=>h,gB:()=>z,gl:()=>Q});var t=i(22155),g=i(22624),v=i(46626);function h(n,r,a){const e=n.slice();return e.splice(a<0?e.length+a:a,0,e.splice(r,1)[0]),e}function N(n,r,a){const e=n.slice();return e[r]=n[a],e[a]=n[r],e}function m(n,r){return n.reduce((a,e,s)=>{const o=r.get(e);return o&&(a[s]=o),a},Array(n.length))}function f(n){return n!==null&&n>=0}const R=null,j=({rects:n,activeNodeRect:r,activeIndex:a,overIndex:e,index:s})=>{var o;const u=(o=n[a])!=null?o:r;if(!u)return null;const p=D(n,s,a);if(s===a){const l=n[e];return l?{x:a<e?l.left+l.width-(u.left+u.width):l.left-u.left,y:0,...R}:null}return s>a&&s<=e?{x:-u.width-p,y:0,...R}:s<a&&s>=e?{x:u.width+p,y:0,...R}:{x:0,y:0,...R}};function D(n,r,a){const e=n[r],s=n[r-1],o=n[r+1];return!e||!s&&!o?0:a<r?s?e.left-(s.left+s.width):o.left-(e.left+e.width):o?o.left-(e.left+e.width):e.left-(s.left+s.width)}const y=({rects:n,activeIndex:r,overIndex:a,index:e})=>{const s=h(n,a,r),o=n[e],u=s[e];return!u||!o?null:{x:u.left-o.left,y:u.top-o.top,scaleX:u.width/o.width,scaleY:u.height/o.height}},W=({activeIndex:n,index:r,rects:a,overIndex:e})=>{let s,o;return r===n&&(s=a[r],o=a[e]),r===e&&(s=a[r],o=a[n]),!o||!s?null:{x:o.left-s.left,y:o.top-s.top,scaleX:o.width/s.width,scaleY:o.height/s.height}},G={scaleX:1,scaleY:1},q=({activeIndex:n,activeNodeRect:r,index:a,rects:e,overIndex:s})=>{var o;const u=(o=e[n])!=null?o:r;if(!u)return null;if(a===n){const l=e[s];return l?{x:0,y:n<s?l.top+l.height-(u.top+u.height):l.top-u.top,...G}:null}const p=ee(e,a,n);return a>n&&a<=s?{x:0,y:-u.height-p,...G}:a<n&&a>=s?{x:0,y:u.height+p,...G}:{x:0,y:0,...G}};function ee(n,r,a){const e=n[r],s=n[r-1],o=n[r+1];return e?a<r?s?e.top-(s.top+s.height):o?o.top-(e.top+e.height):0:o?o.top-(e.top+e.height):s?e.top-(s.top+s.height):0:0}const X="Sortable",te=t.createContext({activeIndex:-1,containerId:X,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:y});function z({children:n,id:r,items:a,strategy:e=y}){const{active:s,dragOverlay:o,droppableRects:u,over:p,measureDroppableContainers:l,measuringScheduled:d}=(0,g.fF)(),c=(0,v.YG)(X,r),w=o.rect!==null,b=(0,t.useMemo)(()=>a.map(B=>typeof B=="string"?B:B.id),[a]),A=s!=null,E=s?b.indexOf(s.id):-1,M=p?b.indexOf(p.id):-1,k=(0,t.useRef)(b),x=!re(b,k.current),H=M!==-1&&E===-1||x;(0,v.Es)(()=>{x&&A&&!d&&l(b)},[x,b,A,l,d]),(0,t.useEffect)(()=>{k.current=b},[b]);const L=(0,t.useMemo)(()=>({activeIndex:E,containerId:c,disableTransforms:H,items:b,overIndex:M,useDragOverlay:w,sortedRects:m(b,u),strategy:e}),[E,c,H,b,M,u,w,e]);return t.createElement(te.Provider,{value:L},n)}function re(n,r){return n.join()===r.join()}const S=({id:n,items:r,activeIndex:a,overIndex:e})=>h(r,a,e).indexOf(n),_=({containerId:n,isSorting:r,wasDragging:a,index:e,items:s,newIndex:o,previousItems:u,previousContainerId:p,transition:l})=>!l||!a||u!==s&&e===o?!1:r?!0:o!==e&&n===p,J={duration:200,easing:"ease"},$="transform",se=v.Ks.Transition.toString({property:$,duration:0,easing:"linear"}),ae={roleDescription:"sortable"};function K({disabled:n,index:r,node:a,rect:e}){const[s,o]=(0,t.useState)(null),u=(0,t.useRef)(r);return(0,v.Es)(()=>{if(!n&&r!==u.current&&a.current){const p=e.current;if(p){const l=(0,g.Sj)(a.current,{ignoreTransform:!0}),d={x:p.left-l.left,y:p.top-l.top,scaleX:p.width/l.width,scaleY:p.height/l.height};(d.x||d.y)&&o(d)}}r!==u.current&&(u.current=r)},[n,r,a,e]),(0,t.useEffect)(()=>{s&&requestAnimationFrame(()=>{o(null)})},[s]),s}function Q({animateLayoutChanges:n=_,attributes:r,disabled:a,data:e,getNewIndex:s=S,id:o,strategy:u,resizeObserverConfig:p,transition:l=J}){const{items:d,containerId:c,activeIndex:w,disableTransforms:b,sortedRects:A,overIndex:E,useDragOverlay:M,strategy:k}=(0,t.useContext)(te),x=d.indexOf(o),H=(0,t.useMemo)(()=>({sortable:{containerId:c,index:x,items:d},...e}),[c,e,x,d]),L=(0,t.useMemo)(()=>d.slice(d.indexOf(o)),[d,o]),{rect:B,node:U,isOver:P,setNodeRef:O}=(0,g.zM)({id:o,data:H,resizeObserverConfig:{updateMeasurementsFor:L,...p}}),{active:F,activatorEvent:ge,activeNodeRect:fe,attributes:pe,setNodeRef:ce,listeners:ve,isDragging:le,over:he,transform:Re}=(0,g.PM)({id:o,data:H,attributes:{...ae,...r},disabled:a}),be=(0,v.jn)(O,ce),Y=!!F,ue=Y&&!b&&f(w)&&f(E),de=!M&&le,_e=de&&ue?Re:null,ye=ue?_e??(u??k)({rects:A,activeNodeRect:fe,activeIndex:w,overIndex:E,index:x}):null,Z=f(w)&&f(E)?s({id:o,items:d,activeIndex:w,overIndex:E}
1):x,V=F?.id,C=(0,t.useRef)({activeId:V,items:d,newIndex:Z,containerId:c}),we=d!==C.current.items,me=n({active:F,containerId:c,isDragging:le,isSorting:Y,id:o,index:x,items:d,newIndex:C.current.newIndex,previousItems:C.current.items,previousContainerId:C.current.containerId,transition:l,wasDragging:C.current.activeId!=null}),ie=K({disabled:!me,index:x,node:U,rect:B});return(0,t.useEffect)(()=>{Y&&C.current.newIndex!==Z&&(C.current.newIndex=Z),c!==C.current.containerId&&(C.current.containerId=c),d!==C.current.items&&(C.current.items=d),V!==C.current.activeId&&(C.current.activeId=V)},[V,Y,Z,c,d]),{active:F,activeIndex:w,attributes:pe,rect:B,index:x,newIndex:Z,items:d,isOver:P,isSorting:Y,isDragging:le,listeners:ve,node:U,overIndex:E,over:he,setNodeRef:be,setDroppableNodeRef:O,setDraggableNodeRef:ce,transform:ie??ye,transition:Ee()};function Ee(){if(ie||we&&C.current.newIndex===x)return se;if(!(de&&!(0,v.kx)(ge)||!l)&&(Y||me))return v.Ks.Transition.toString({...l,property:$})}}const oe=[g.vL.Down,g.vL.Right,g.vL.Up,g.vL.Left],ne=(n,{context:{active:r,droppableContainers:a,collisionRect:e,scrollableAncestors:s}})=>{if(oe.includes(n.code)){if(n.preventDefault(),!r||!e)return;const o=[];a.getEnabled().forEach(l=>{if(!l||l?.disabled)return;const d=l?.rect.current;if(d)switch(n.code){case g.vL.Down:e.top+e.height<=d.top&&o.push(l);break;case g.vL.Up:e.top>=d.top+d.height&&o.push(l);break;case g.vL.Left:e.left>=d.left+d.width&&o.push(l);break;case g.vL.Right:e.left+e.width<=d.left&&o.push(l);break}});const u=(0,g.y$)({active:r,collisionRect:e,droppableContainers:o,pointerCoordinates:null}),p=(0,g.Vy)(u,"id");if(p!=null){const l=a.get(p),d=l?.node.current,c=l?.rect.current;if(d&&c){const A=(0,g.sl)(d).some((M,k)=>s[k]!==M)?{x:0,y:0}:{x:e.width-c.width,y:e.height-c.height};return{x:c.left-A.x,y:c.top-A.y}}}}}},33673(T,I,i){i.d(I,{A:()=>f});var t=i(22155),g,v;function h(){return h=Object.assign?Object.assign.bind():function(R){for(var j=1;j<arguments.length;j++){var D=arguments[j];for(var y in D)({}).hasOwnProperty.call(D,y)&&(R[y]=D[y])}return R},h.apply(null,arguments)}var N=function(j,D){return t.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:154.916,height:184.136,viewBox:"0 0 154.916 184.136",ref:D},j),g||(g=t.createElement("defs",null,t.createElement("linearGradient",{id:"ii_user_roles_enter_svg__a",x1:358.313,x2:358.177,y1:.708,y2:-.031,gradientUnits:"objectBoundingBox"},t.createElement("stop",{offset:0,stopColor:"#b3a067"}),t.createElement("stop",{offset:1,stopColor:"#f15e50"})),t.createElement("linearGradient",{id:"ii_user_roles_enter_svg__b",x1:229.083,x2:229.116,y1:14.056,y2:13.234,gradientUnits:"objectBoundingBox"},t.createElement("stop",{offset:.002,stopColor:"#2693ff"}),t.createElement("stop",{offset:1,stopColor:"#293745"})),t.createElement("linearGradient",{id:"ii_user_roles_enter_svg__c",x1:.5,x2:.558,y1:59.176,y2:57.954,gradientUnits:"objectBoundingBox"},t.createElement("stop",{offset:0,stopColor:"#80aef8"}),t.createElement("stop",{offset:1,stopColor:"#f10050"})),t.createElement("style",null,".ii_user_roles_enter_svg__a{fill:#717274;opacity:.203}.ii_user_roles_enter_svg__b{fill:#dae4ea}.ii_user_roles_enter_svg__c{fill:#eff6fc}.ii_user_roles_enter_svg__d{fill:#fff;stroke:#dae4ea;stroke-miterlimit:10;stroke-dasharray:4 4}.ii_user_roles_enter_svg__e{fill:#ffcfc0}.ii_user_roles_enter_svg__f{fill:#e59d89}.ii_user_roles_enter_svg__g{fill:#0a1349}.ii_user_roles_enter_svg__h{fill:#4300a4}.ii_user_roles_enter_svg__i{fill:#093f8e}.ii_user_roles_enter_svg__j{fill:#ff9255}.ii_user_roles_enter_svg__k{fill:url(#ii_user_roles_enter_svg__a)}.ii_user_roles_enter_svg__l{fill:#dda69b}.ii_user_roles_enter_svg__m{fill:#091a4c}.ii_user_roles_enter_svg__n{fill:url(#ii_user_roles_enter_svg__b)}.ii_user_roles_enter_svg__o{fill:#a0a5b8}.ii_user_roles_enter_svg__p{fill:#b27970}.ii_user_roles_enter_svg__q{fill:url(#ii_user_roles_enter_svg__c)}"))),v||(v=t.createElement("g",{transform:"translate(10.955)"},t.createElement("ellipse",{cx:20,cy:6,className:"ii_user_roles_enter_svg__a",rx:20,ry:6,transform:"translate(.003 157.178)"}),t.createElement("ellipse",{cx:20,cy:6,className:"ii_user_roles_enter_svg__a",rx:20,ry:6,transform:"translate(93.003 161.178)"}),t.createElement("rect",{width:33.759,height:33.759,className:"ii_user_roles_enter_svg__b",rx:3.225,transform:"translate(23.196 50.572)"}),t.createElement("rect",{width:33.759,height:33.759,className:"ii_user_roles_enter_svg__b",rx:3.225,transform:"translate(60.819 50.572)"}),t.createElement("path",{d:"m41.001 80.854-10.6.089s-.294-10.819 3.225-12.523a14 14 0 0 1 3.172-1.08 9.3 9.3 0 0 1-1.115-4.236c-.041-4.918 2.023-7.279 4.6-7.3s4.676 2.224 4.718 7.222a9.3 9.3 0 0 1-1.044 4.255 14 14 0 0 1 3.192 1.026c3.547 1.646 3.435 12.467 3.435 12.467ZM77.704 80.854l-10.6.089s-.295-10.819 3.224-12.523a14 14 0 0 1 3.173-1.08 9.3 9.3 0 0 1-1.117-4.236c-.041-4.918 2.025-7.279 4.6-7.3s4.675 2.224 4.718 7.222a9.3 9.3 0 0 1-1.041 4.255 14 14 0 0 1 3.194 1.026c3.546 1.646 3.434 12.467 3.434 12.467Z",className:"ii_user_roles_enter_svg__c"}),t.createElement("rect",{width:33.759,height:33.759,className:"ii_user_roles_enter_svg__b",rx:3.225,transform:"translate(23.196 13.873)"}),t.createElement("rect",{width:33.759,height:33.759,className:"ii_user_roles_enter_svg__d",rx:3.225,transform:"translate(60.819 13.873)",fill:"#fff",stroke:"#dae4ea",strokeMiterlimit:10,strokeDasharray:"4 4"}),t.createElement("path",{d:"M88.587 53.829a6.6 6.6 0 0 1-.4-1.737c-.078-.6.1-1.454-.647-1.679-.616.005-.523.782-.628 1.266a2.1 2.1 0 0 0-.1.767c-.46-.2-.674-.3-.663-.883.015-.043.078-1.35.08-1.4-.844-.4-1.167.92-1.386 1.808a4.18 4.18 0 0 0 .358 2.82 3.45 3.45 0 0 0 2.169 1.742 1.35 1.35 0 0 0 1.608-.66Z",className:"ii_user_roles_enter_svg__e"}),t.createElement("path",{d:"M96.377 79.453c.637.706 1.3 1.379 1.956 2.051.329.336.723.694 1.13.587.361-.093.587-.516.775-.905l1.488-3.069a1.6 1.6 0 0 0 .226-.874 1.5 1.5 0 0 0-.45-.8c-3.2-3.563-6.659-6.9-9.058-11.316a43.5 43.5 0 0 1-2.427-5.561c-.358-.959-1.139-4.605-1.888-5.051-2.552-1.523-1.372 5.3-1.114 6.32 1.781 7.021 4.895 13.644 9.362 18.618M123.904 82.704a50.4 50.4 0 0 1 6.1 15.341 25.2 25.2 0 0 1-13.434-2.605Z",className:"ii_user_roles_enter_svg__e"}
1),t.createElement("path",{d:"M125.874 91.515c-.589 0-1.187 0-1.783-.045a46 46 0 0 1-4.692-.886l4.5-7.88a52.3 52.3 0 0 1 4.126 8.637l-.291.045a15 15 0 0 1-1.86.129",className:"ii_user_roles_enter_svg__f"}),t.createElement("path",{d:"M107.096 171.307a2.38 2.38 0 0 1 .727 2.7c-1.259.3-3.148-.454-4.11-.894s-2.494-.923-2.955-1.7c.307-.728 4.239.257 6.338-.106M124.169 160.987c-2.423.553-7.21-.492-7.42.583.663.826 2.641 1.273 3.722 1.645s3.52 1.1 4.949.674a2.66 2.66 0 0 0-1.251-2.902",className:"ii_user_roles_enter_svg__g"}),t.createElement("path",{d:"M92.569 127.78q8.406-.3 16.785-.211c-4.659 15.81 1.816 41.925 3.624 49.394.565 2.159-2.058 2.372-3.1-.136-1.058-1.394-9.517-27-8.952-46.333-1.325.06-3.763.31-5.151.5-5.207 9.811-4.214 48.576.468 55.228.96 1.364-.734 2.772-2.333 1.985-6.257-4.819-8.881-47.729-6.281-60.228 1.227-.025 3.745-.152 4.94-.199",className:"ii_user_roles_enter_svg__h",transform:"translate(13.178 -14.644)",fill:"#4300a4"}),t.createElement("path",{d:"M116.799 115.03c-5.457-.189-10.907.1-16.356.409.112-.757.225-1.514.362-2.106 1.2-.06 3.746-.151 4.941-.2q8.406-.3 16.785-.211c-.226.757-.42 1.606-.59 2.462a86 86 0 0 0-5.142-.354",className:"ii_user_roles_enter_svg__g"}),t.createElement("path",{d:"M112.137 74.4c-6.25-3.561-1.229-8.185-.181-8.966a3.7 3.7 0 0 1 1.862-.568 4.3 4.3 0 0 1 3.853 3.885c.32 2.6-.53 3.711-2.482 5.121a3.28 3.28 0 0 1-3.052.528",className:"ii_user_roles_enter_svg__e"}),t.createElement("path",{d:"M113.422 72.336a13 13 0 0 1-1.7-2.354c-.63-1.23-.979-3.424-.745-3.686.853-.951 1.35-.4 1.967-.174a4.56 4.56 0 0 1 2.949 4.761 7.6 7.6 0 0 1-.771 3.125 19 19 0 0 1-1.7-1.672",className:"ii_user_roles_enter_svg__f"}),t.createElement("path",{d:"M102.412 96.527a9.07 9.07 0 0 0-3.012-4.654c-4-3.4-4.915-1.7-4.967-.368-.077.9.756 5.229 2.132 6.445a39 39 0 0 0-1.158 4.738c-.134.649 2.222 1.837 3.59.779 2.072-1.542 3.942-4.131 3.415-6.94",className:"ii_user_roles_enter_svg__i",transform:"translate(16.076 -28.647)",fill:"#093f8e"}),t.createElement("path",{d:"M85.988 109.748c-.073-1.348.92-8.132 2.988-9.64 8.187-1.123 16.8 2.17 20.086 4.973a11 11 0 0 1 .985.947 21.26 21.26 0 0 1 5.41 9.153 12.5 12.5 0 0 1-2.68.462c.073 7.575-2.6 15.332-1.672 21.606.154 1.054.687 2.273-.807 2.136a135 135 0 0 0-22.928.174.54.54 0 0 1-.573-.424c-1.39-4.243 1.089-19.508 2.034-26.81-1.147-1.282-2.81-2.025-2.843-2.577",className:"ii_user_roles_enter_svg__j",transform:"translate(12.937 -24.929)",fill:"#ff9255"}),t.createElement("path",{d:"M17.168 68.889c.089.9.346 1.772.5 2.663a10.68 10.68 0 0 1-1.369 
16.53c-1.015 2.022-2.31 3.91-3.129 6.019a14.7 14.7 0 0 0-.874 7.174 6.35 6.35 0 0 0 .919 2.794 6.05 6.05 0 0 0 3.663 2.233c5.5 1.351 11.494-1.7 14.537-6.48s3.442-10.895 2.122-16.4c-.914-3.82-3.487-9.8-7.546-11.335-3.407-1.293-9.557-.6-8.823 6.802",className:"ii_user_roles_enter_svg__g"}),t.createElement("path",{d:"m45.537 119.442 4.916-.372c-.141-4.833-.874-20.759-19.54-14-3.985 1.443-5.2 5.672-6.148 8.69 1.645.831 3.87 2.22 4.9 4.144-.128 4.077-.3 15.154-.165 21.973l1.3-.412A53 53 0 0 1 38.111 138c2.567-.425 4.991-1.333 7.565-1.654a167 167 0 0 1-.139-16.904",className:"ii_user_roles_enter_svg__k",transform:"translate(-9.824 -23.613)",fill:"url(#ii_user_roles_enter_svg__a)"}),t.createElement("path",{d:"M24.571 82.74a5.03 5.03 0 0 0 3.785.165 5.3 5.3 0 0 0 2.757-2.741 29 29 0 0 0-8.768.835 6 6 0 0 0 2.226 1.741",className:"ii_user_roles_enter_svg__l"}),t.createElement("path",{d:"M48.113 163.522c-2.7.1-6.14-.561-5.21-1.623l.705-.626c1.521.193 4.576.635 4.505 2.249M10.926 164.953c-2.7.1-6.14-.562-5.211-1.623l.706-.626c1.519.196 4.574.634 4.505 2.249",className:"ii_user_roles_enter_svg__m"}),t.createElement("path",{d:"m43.229 116.373-4.771 2.982c-.075-.418-.15-.835-.233-1.276l-12.652 3.842c3.192 5.413 15.46 26.046-8.055 57.164a6.3 6.3 0 0 0 2.679 1.151c0-.487 13.112-16.718 17.636-27.392a37.3 37.3 0 0 0 2.752-15.408c.964-.252 2.77-1.483 3.169-1.078 8.586 8.712 11.722 34.167 10.014 43.557a6.75 6.75 0 0 0 2.962-.519c5.501-29.446-6.939-54.996-13.501-63.023",className:"ii_user_roles_enter_svg__n",transform:"translate(-12.518 -18.798)",fill:"url(#ii_user_roles_enter_svg__b)"}),t.createElement("path",{d:"M21.906 72.381a24 24 0 0 0 3.3 3.966c1.269.868 5.623-2.225 4.1-7.356a7.26 7.26 0 0 0-3.3-4.516 45.3 45.3 0 0 0-4.1 7.906",className:"ii_user_roles_enter_svg__l"}),t.createElement("g",null,t.createElement("path",{d:"M49.733 111.225 26.8 114.65a4.365 4.365 0 0 0-3.7 4.594l2.023 22.523a3.79 3.79 0 0 0 4.42 3.381l22.935-3.424a4.37 4.37 0 0 0 3.7-4.6l-2.025-22.522a3.79 3.79 0 0 0-4.42-3.377",className:"ii_user_roles_enter_svg__o",transform:"translate(-10.451 -20.729)",fill:"#a0a5b8"}),t.createElement("path",{d:"m31.224 117.781-9.164 1.231s-1.435-9.336 1.425-11.194a12.3 12.3 0 0 1 2.628-1.281 8.1 8.1 0 0 1-1.428-3.546c-.573-4.254.958-6.523 3.183-6.823s4.291 1.416 4.874 5.738a8.1 8.1 0 0 1-.44 3.8 12.3 12.3 0 0 1 2.877.54c3.251 1.037 4.335 10.419 4.335 10.419Z",className:"ii_user_roles_enter_svg__b"})),t.createElement("path",{d:"M24.214 115.54a13 13 0 0 0-1.365-.509 8.3 8.3 0 0 0 .909-.918.21.21 0 0 0 .092-.18.2.2 0 0 0-.192-.178 2.88 2.88 0 0 0-2.594.792c-3.463-4.514-6.311-14.174-3.563-18.907.687-1.184 1.914-2.873 2.605-3.953a8.3 8.3 0 0 0-4.866-2.085c-.458 1.085-1.089 2.711-1.969 5.143a12 12 0 0 0-.38 7.513c1.215 3.986 3.391 9.987 6.487 14.225.025-.022.051-.038.075-.059a3.16 3.16 0 0 0 2.1.86 3.06 3.06 0 0 0 1.674-.121 2.32 2.32 0 0 0 1.327-1.733ZM45.195 97.338a4.1 4.1 0 0 0-1.317-1.222l-.1 2.442a2.96 2.96 0 0 0-3.055.875 1.3 1.3 0 0 0-.416.62 1.46 1.46 0 0 0 .086.723q.268.893.534 1.789a1.02 1.02 0 0 0 1.174.9q.848.045 1.7.048a1.24 1.24 0 0 0 .682-.133 1.1 1.1 0 0 0 .368-.488 9.2 9.2 0 0 0 .637-3.063 4.16 4.16 0 0 0-.293-2.491",className:"ii_user_roles_enter_svg__l"}),t.createElement("path",{d:"M24.773 67.753a.64.64 0 0 1 .185-.385.62.62 0 0 1 .433-.066 14 14 0 0 1 3.617.86 4.74 4.74 0 0 0-1.07-2.952c-.761-1.174-1.737-2.477-3.135-2.534a3.46 3.46 0 0 0-2.128.8 7.82 7.82 0 0 0-3.095 5.549c-.117 1.39.27 5.489 2.244 4.834 1.569-.516 2.639-4.724 2.949-6.106",className:"ii_user_roles_enter_svg__g"}),t.createElement("path",{d:"M50.392 25.605a3.73 3.73 0 0 0 2.8-3.071 18 18 0 0 0 .524-4.639 54.8 54.8 0 0 0-2.25-11.734 3.06 3.06 0 0 1-.214-1.423 1.02 1.02 0 0 1 .945-.9 56 56 0 0 1 4.435 17.259 13.8 13.8 0 0 1 0 2.493 6.14 6.14 0 0 1-1.782 3.707 18.3 18.3 0 0 1-3.3 2.575",className:"ii_user_roles_enter_svg__p"}),t.createElement("path",{d:"M34.902 26.64a6.56 6.56 0 0 0 5.273 2.071 10.4 10.4 0 0 0 4.432-1.46 24 24 0 0 0 2.712-1.878v-.062c.3-3.349-.137-8.94-2.947-11.417-2.354-2.071-7.415-3.41-8.808 2.76-.173.753-.2 1.527-.318 2.292a8.3 8.3 0 0 1-2.388 4.377 9.45 9.45 0 0 0 2.044 3.317",className:"ii_user_roles_enter_svg__g"}),t.createElement("path",{d:"M38.354 20.91a22 22 0 0 0 1.553 4.2c.772 1.084 5.052-.062 5.218-4.653a6.53 6.53 0 0 0-1.38-4.638 36 36 0 0 0-5.391 5.091",className:"ii_user_roles_enter_svg__p"}),t.createElement("path",{d:"M41.846 18.067a.48.48 0 0 1 .248-.248.53.53 0 0 1 .359.075 12.7 12.7 0 0 1 2.637 1.8 4.22 4.22 0 0 0-.062-2.7c-.284-1.173-.69-2.52-1.8-3a2.8 2.8 0 0 0-1.9 0 6.26 6.26 0 0 0-3.941 3.512c-.462 1.085-1.25 4.494.483 4.578 1.402.056 3.376-3.002 3.976-4.017",className:"ii_user_roles_enter_svg__g"}),t.createElement("path",{d:"M28.921 47.582c.148-.5.31-1 .506-1.5 2.236-5.8 5.343-11.4 6.689-10.784l-4.549-1.25a64.7 64.7 0 0 0-4.5 11.26 17 17 0 0 0-.5 2.279Z",className:"ii_user_roles_enter_svg__p"}),t.createElement("path",{d:"M40.688 75.6a.38.38 0 0 1 .442.11c.
1691 1.058 1.078 5.936.885 10.176h14.817c-1.309-5.316-2.421-11.246-2.421-11.246a3.8 3.8 0 0 1 .767-2.761c.635-.635 1.726-2.2 2.416-2.933a15.2 15.2 0 0 0-1.532-5.054c-1.512.69-5.805 1.83-13.848 2.313-3.451.214-5.294 5.453-6.254 7.877 1.145.413 2.761 1.38 4.018 1.926a4 4 0 0 1 .71-.408",className:"ii_user_roles_enter_svg__q",transform:"translate(-5.662 -38.31)",fill:"url(#ii_user_roles_enter_svg__c)"}),t.createElement("path",{d:"M42.627 33.841c1.021-.421 1.525-5.578 1.981-6.613a64 64 0 0 0-6.641.635c.49.615 3.693 6.373 4.66 5.978M51.276 5.172a2.4 2.4 0 0 0-1.243-.1c-.421 0-.938-.243-.9-.691a.61.61 0 0 1 .538-.51 1.5 1.5 0 0 1 .781.132 4.56 4.56 0 0 1-.546-1.989A2.34 2.34 0 0 1 50.259.55a1.22 1.22 0 0 1 1.339-.5c.56.193.8.835.94 1.381a11.5 11.5 0 0 1 .165 4.307",className:"ii_user_roles_enter_svg__p"}))))},m=(0,t.forwardRef)(N);const f=m},79914(T,I,i){i.d(I,{B:()=>g});var t=i(46626);const g=(N,m)=>({transition:m,transform:t.Ks.Transform.toString(N)});function v(N,m,f){const R={...N};return m.top+N.y<=f.top?R.y=f.top-m.top:m.bottom+N.y>=f.top+f.height&&(R.y=f.top+f.height-m.bottom),m.left+N.x<=f.left?R.x=f.left-m.left:m.right+N.x>=f.left+f.width&&(R.x=f.left+f.width-m.right),R}const h=({top:N=0,right:m=0,bottom:f=0,left:R=0})=>({transform:j,activeNodeRect:D,containerNodeRect:y})=>{if(!D||!y)return j;const W={...y,top:y.top-N,right:y.right-m,bottom:y.bottom-f,left:y.left-R,height:y.height-N-f,width:y.width-R-m};return v(j,D,W)}},52085(T,I,i){i.d(I,{A:()=>h});var t=i(67050),g=i(76104),v=i(23560);class h{static service=t.Y.TeamRequest;static demoRequestSubmit=async m=>(0,v.kP)({service:h.service,path:"demoRequestSubmit",reqSchema:"teamrequest.DemoRequestSubmitRequest",resSchema:"teamrequest.DemoRequestSubmitResponse",params:m});static demoRequestOptions=async m=>(0,v.kP)({service:h.service,path:"demoRequestOptions",reqSchema:"teamrequest.DemoRequestOptionsRequest",resSchema:"teamrequest.DemoRequestOptionsResponse",params:m});static loadRoles=async()=>(await g.pY.get("api/team/custom_roles")).data;static updateRoles=async m=>(await g.pY.post("api/team/custom_roles",m)).data;static service=t.Y.TeamRequest}},16623(T,I,i){i.r(I),i.d(I,{default:()=>n});var t=i(65723),g=i(22155),v=i(22624),h=i(70719),N=i(98177),m=i(87803),f=i(37655),R=i(4233),j=i(25236),D=i(45764),y=i(8099),W=i(62301),G=i(39373),q=i(70060),ee=i(70851),X=i(79914);const z=({className:r="",selectedClassName:a,dragHandleClassName:e,role:s,isSelected:o,onClick:u,onDoubleClick:p,listType:l="current"})=>{const{attributes:d,listeners:c,setNodeRef:w,transform:b,transition:A}=(0,h.gl)({id:`${l}-${s.id}`}),E=(0,X.B)(b,A);return(0,t.jsxs)("li",{onClick:u,onDoubleClick:()=>p(l),className:(0,ee.A)(r,{[a]:o}),ref:w,style:E,children:[s.name,(0,t.jsx)("button",{type:"button",className:e,...d,...c})]})};var re=i(33673);const S={"colorful-no-image--dark-gray":"colorful-no-image--dark-gray--EKNuA3g","colorful-no-image--orange":"colorful-no-image--orange--fYSiPBx","colorful-no-image--red":"colorful-no-image--red--gHgWBB7","colorful-no-image--yellow":"colorful-no-image--yellow--GZrNqBb","colorful-no-image--cyan":"colorful-no-image--cyan--fBxilx9","colorful-no-image--blue":"colorful-no-image--blue--UQshell","colorful-no-image--light-blue":"colorful-no-image--light-blue--XufvJGG","colorful-no-image--light-green":"colorful-no-image--light-green--UyEY4WC","colorful-no-image--green":"colorful-no-image--green--L3IJh1A","colorful-no-image--purple":"colorful-no-image--purple--l6uoT8Q",TeamRolesPopup:"TeamRolesPopup--FQOjDTv",soratableItem:"soratableItem--qGXSQ1d",dragHandle:"dragHandle--oNywn5H",subtitle:"subtitle--QdjvNTS",submitHolder:"submitHolder--NGNwFpE",content:"content--bNDDJIO",availableRoles:"availableRoles--CDfOKPW",currentRoles:"currentRoles--pSYdRBy",newRole:"newRole--Ayi67L5",list:"list--h4xayOf",selected:"selected--YlzuVEv",sortableChosen:"sortableChosen--RAeuFpg"};var _=i(71954),J=i(52085),$=i(40103),se=i(45773),ae=i(64630),K=i(47267);const Q=_.gK.model({id:_.gK.number,name:_.gK.string,category:_.gK.string,permissions:_.gK.string,code:_.gK.string,hidden:_.gK.optional(_.gK.boolean,!1),sortOrder:_.gK.optional(_.gK.number,0)}),oe=_.gK.model("TeamRolesPopupState",{newRole:_.gK.optional(_.gK.string,""),loading:_.gK.optional(_.gK.boolean,!0),saving:_.gK.optional(_.gK.boolean,!1),selectedId:_.gK.maybeNull(_.gK.number),availableRoles:_.gK.array(Q),currentRoles:_.gK.array(Q),nextRoleId:_.gK.optional(_.gK.number,1)}).views(()=>({get getAppStore(){return window.dashboardAppStore},get getUiStore(){return window.dashboardUiStore}})).views(r=>({get isWorkspaceOwner(){return r.getAppStore.workspaces.isOwner},get auth(){return r.getAppStore.auth},get workspaces(){return r.getAppStore.workspaces},get browser(){return r.getAppStore.browser}})).views(r=>({get numberCustomRoles(){return r.availableRoles.length+r.currentRoles.length-6},get checkPermission(){return r.workspaces.subscription.plan===se.m0.ENTERPRISE}})).actions(r=>({setNewRole(a){r.newRole=a},setSelected(a){r.selectedId=a},learnMore(){window.open(`${$.tt}?utm_source=${$.VU.DASHBOARD_CUSTOM_ROLES}`,"_blank")},setCurrentRoles(a){r.currentRoles=a},setAvailableRoles(a){r.availableRoles=a},moveRole(a,e){e==="current"?(r.availableRoles=[(0,_.o8)(a),...r.availableRoles.filter(s=>s.id!==a.id)],r.currentRoles=r.currentRoles.filter(s=>s.id!==a.id)):(r.availableRoles=r.availableRoles.filter(s=>s.id!==a.id),r.currentRoles=[(0,_.o8)(a),...r.currentRoles.filter(s=>s.id!==a.id)])},addRole(){if(r.newRole.length>0){if(r.numberCustomRoles>=25){K.A.error("You added maximum number of roles");return}if(r.newRole=r.newRole.trim(),r.newRole.length<5){K.A.error("Role name is too short");return}if(r.newRole.length>30){K.A.error("Role name is too long");return}if(!r.newRole.match(/^[a-zA-Z0-9 \-_а-яА-Я]{5,30}$/)){K.A.error("Role name should only contain alphanumeric characters");return}r.nextRoleId++,r.currentRoles.push({id:-r.nextRoleId,name:r.newRole,category:"",permissions:"limited",code:"custom"})}r.newRole=""},saveRoles:(0,_.L3)(function*(){const a=[];let e=1;
1r.currentRoles.forEach(s=>{s.hidden=!1,s.sortOrder=e++,a.push(s)}),r.availableRoles.forEach(s=>{s.hidden=!0,s.sortOrder=e++,a.push(s)}),r.saving=!0;try{return yield J.A.updateRoles(a),K.A.success("Roles updated"),ae.A.teamRolesUpdated(),!0}catch{return K.A.error("Error updating roles. Please try again in few minutes."),!1}finally{r.saving=!1}}),loadRoles:(0,_.L3)(function*(){r.loading=!0;try{const e=(yield J.A.loadRoles()).data;r.currentRoles=[],r.availableRoles=[],e.forEach(s=>{["admin","general","project_approval_required"].includes(s.code)||(s.hidden?r.availableRoles.push(s):r.currentRoles.push(s))}),r.loading=!1}catch(a){console.error(a),K.A.error("Error loading roles. Please try again in few minutes.")}})})),ne=()=>{const{uiStateStore:r}=(0,q.g)(),{popupStore:a}=r,[e]=(0,g.useState)(oe.create()),{t:s}=(0,G.Bd)(),o=(0,v.FR)((0,v.MS)(v.AN,{activationConstraint:{distance:8}}),(0,v.MS)(v.uN,{coordinateGetter:h.JR})),u=()=>{a.closePopup()},p=c=>{const{active:w,over:b}=c;if(!b)return;const A=w.id.toString(),E=b.id.toString(),[M,k]=A.includes("-")?A.split("-"):["current",A],[x,H]=E.includes("-")?E.split("-"):["current",E],L=Number(k),B=Number(H);if(A===E)return;const U=M==="available"?e.availableRoles.find(P=>P.id===L):e.currentRoles.find(P=>P.id===L);if(U)if(M===x)if(M==="available"){const P=(0,h.be)(e.availableRoles,e.availableRoles.findIndex(O=>O.id===L),e.availableRoles.findIndex(O=>O.id===B));e.setAvailableRoles(P)}else{const P=(0,h.be)(e.currentRoles,e.currentRoles.findIndex(O=>O.id===L),e.currentRoles.findIndex(O=>O.id===B));e.setCurrentRoles(P)}else M==="available"&&x==="current"?e.moveRole(U,"current"):M==="current"&&x==="available"&&e.moveRole(U,"available")};(0,g.useEffect)(()=>{(async()=>(e.checkPermission||a.openPopup(W.C.GENERAL_LEARN_MORE,{image:(0,t.jsx)(re.A,{}),title:s("i18n_auto_382"),description:(0,t.jsxs)(G.x6,{i18nKey:"i18n_auto_29167_n",values:{slot0:s("i18n_auto_29364"),slot1:s("i18n_auto_29309"),slot2:s("i18n_auto_28813")},children:[(0,t.jsx)("strong",{}),(0,t.jsx)("strong",{}),(0,t.jsx)("strong",{})]}),onLearnMore:()=>e.learnMore()}),await e.loadRoles()))()},[]);const l=async()=>{await e.saveRoles()&&u()},d=(0,t.jsxs)(v.Mp,{sensors:o,collisionDetection:v.fp,onDragEnd:p,autoScroll:!1,children:[(0,t.jsx)("p",{className:S.subtitle,children:s("i18n_auto_533")}),(0,t.jsxs)("div",{className:S.content,children:[(0,t.jsxs)("div",{className:S.availableRoles,children:[(0,t.jsx)("h5",{children:s("available_roles_33833")}),(0,t.jsxs)("div",{className:S.list,children:[(0,t.jsx)(D.A,{placeholder:s("i18n_auto_24244"),onChange:c=>e.setNewRole(c.target.value),onPressEnter:e.addRole,className:S.newRole,type:"text",value:e.newRole}),(0,t.jsx)(h.gB,{items:e.availableRoles.map(c=>`available-${c.id}`),strategy:h._G,children:(0,t.jsx)("ul",{children:e.availableRoles.map(c=>(0,t.jsx)(z,{role:c,isSelected:e.selectedId===c.id,onDoubleClick:w=>e.moveRole(c,w),dragHandleClassName:S.dragHandle,className:S.soratableItem,selectedClassName:S.selected,listType:"available",onClick:()=>e.setSelected(c.id)},c.id))})})]})]}),(0,t.jsxs)("div",{className:S.currentRoles,children:[(0,t.jsx)("h5",{children:s("i18n_auto_267")}),(0,t.jsx)("div",{className:S.list,children:(0,t.jsx)(h.gB,{items:e.currentRoles.map(c=>`current-${c.id}`),strategy:h._G,children:(0,t.jsx)("ul",{children:e.currentRoles.map(c=>(0,t.jsx)(z,{onClick:()=>e.setSelected(c.id),role:c,isSelected:e.selectedId===c.id,onDoubleClick:w=>e.moveRole(c,w),dragHandleClassName:S.dragHandle,className:S.soratableItem,selectedClassName:S.selected,listType:"current"},c.id))})})})]})]}),(0,t.jsxs)(R.A,{mobileGrow:!0,contentEnd:!0,children:[(0,t.jsx)(m.A,{mobileBaseAuto:!0,noGrow:!0,contentCenter:!0,children:(0,t.jsx)(j.A,{disabled:e.saving,mobileFullWidth:!0,theme:"ghost",onClick:u,children:s("cancel")})}),(0,t.jsx)(m.A,{mobileBaseAuto:!0,noGrow:!0,children:(0,t.jsx)(j.A,{type:"button",onClick:l,theme:"primary",effect:"shiny",isLoading:e.saving,mobileFullWidth:!0,disabled:e.saving,children:s("i18n_auto_24547")})})]})]});return(0,t.jsx)(y.A,{size:"medium",isShown:!0,wrapperClass:S.TeamRolesPopup,title:s("manage_team_roles"),Buttons:null,withoutStyles:!0,hasCrossButton:!0,children:e.loading?(0,t.jsx)(f.A,{}):d})},n=(0,N.PA)(ne)}}]);
2
3//# sourceMappingURL=dashboard-popup-TeamRoles.d0c34312fcafaf4a.chunk.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.