1import{j as e,o as Y,e as Jt,C as we,c as W,d as S,k as Q,r as me,B as lt,a as _t,W as Yt,p as re,l as ae,S as wt,E as Se,V as Xt,ae as Dt,a6 as ea,af as ta,ag as aa,u as se,v as dt,Q as mt}from"./common-MNzE0rw1.js";import{r as d,h as K,u as X,i as de,L as yt,q as O,R as sa,O as na}from"./vendor-Bf8vYVIc.js";import{n as Z,B as le,au as ht,d as z,k as ia,p as oa,O as he,T as ce,a2 as ca,Z as ut,$ as pt,aF as ra,S as la,aG as da,as as jt,at as ke,R as ma}from"./antd-CUoOhg_T.js";import{H as Nt,U as bt,A as ha}from"./access-account-DRxX9JDb.js";import{I as ua,D as pa,S as vt,C as ja,R as kt,A as va,a as xa,b as xt,P as fa,u as ue,s as N,W as ga,c as Pt,d as _a,e as It,f as ye,g as Ie,Q as wa,v as Ce,N as Ct,h as _e,i as At,j as ya,k as Na,l as ba,m as M,n as ka}from"./index-CoIt0w65.js";import{s as xe,P as Pa}from"./project-setup-layout-C34OwlXg.js";import{R as Ia}from"./form-B1jc18lG.js";import{J as Ca,y as Aa,G as Sa,i as St,Q as Et,d as Ee,I as U,b as Ea,S as Ra,c as Ga,T as Ma,e as qa,U as La,M as Va}from"./icons-CRxZXhLr.js";import{T as $a}from"./team-icon-CBDHefNE.js";import{N as za}from"./no-polls-icon-Bo9AW89W.js";import"./single-user-icon-DmdJu9-d.js";import"./edit-icon-BP9kprOS.js";import"./eye-preview-icon-GaDkTptz.js";function Rt(){return e.jsxs("svg",{id:"Overview",width:"20",height:"15.555",viewBox:"0 0 20 15.555",children:[e.jsx("path",{id:"Path_184773","data-name":"Path 184773",d:"M10.109,0c2.837,0,5.674,0,8.511,0a1.326,1.326,0,0,1,1.3.725,1.286,1.286,0,0,1-.8,1.821,2.391,2.391,0,0,1-.6.063q-8.45,0-16.9,0A1.354,1.354,0,0,1,.108,1.591,1.28,1.28,0,0,1,1.273.012C1.421,0,1.571,0,1.72,0h8.389",transform:"translate(-0.066 -0.001)",fill:"#fff"}),e.jsx("path",{id:"Path_184774","data-name":"Path 184774",d:"M4.807,63.847c1.112,0,8.011,0,9.124,0a1.308,1.308,0,1,1,.016,2.606c-2.252,0-10.29,0-12.542,0a1.306,1.306,0,1,1-.016-2.605c1.139-.006,2.279,0,3.419,0",transform:"translate(0 -57.37)",fill:"#fff"}),e.jsx("path",{id:"Path_184775","data-name":"Path 184775",d:"M4.807,63.847c1.112,0,2.225,0,3.337,0a1.308,1.308,0,1,1,.016,2.606q-3.378.006-6.756,0a1.306,1.306,0,1,1-.016-2.605c1.139-.006,2.279,0,3.419,0",transform:"translate(0 -50.902)",fill:"#fff"})]})}function Gt(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20.53",height:"18.971",viewBox:"0 0 20.53 18.971",children:e.jsx("path",{id:"Favourities",d:"M19.029,6.055c-.045.273-.084.548-.137.82a5.815,5.815,0,0,1-1.231,2.588,5.209,5.209,0,0,1-.375.386L9.925,17.206c-.329.329-.5.33-.823,0q-3.545-3.538-7.09-7.077A6.733,6.733,0,0,1,.567,8.193,6.137,6.137,0,0,1,.043,4.88,5.728,5.728,0,0,1,1.374,1.749,4.636,4.636,0,0,1,4.705.024a4.314,4.314,0,0,1,2.82.912A9.037,9.037,0,0,1,9.342,2.68l.169.208L9.667,2.7A8.36,8.36,0,0,1,12.125.547,4.063,4.063,0,0,1,16.49.736a5.446,5.446,0,0,1,2.469,3.99c.024.158.047.316.07.474ZM9.529,16.5c.07-.078.12-.141.177-.2q3.574-3.573,7.144-7.152A4.718,4.718,0,0,0,17.6,8.126a5.062,5.062,0,0,0,.571-3.3,4.619,4.619,0,0,0-2.42-3.6,3.211,3.211,0,0,0-2.744-.207,5.256,5.256,0,0,0-1.956,1.349c-.42.444-.8.931-1.184,1.4a.418.418,0,0,1-.7,0c-.061-.078-.117-.16-.176-.24A8.616,8.616,0,0,0,7,1.54,3.585,3.585,0,0,0,5.16.819,3.762,3.762,0,0,0,1.972,2.266,4.914,4.914,0,0,0,.839,4.925a5.413,5.413,0,0,0,.454,2.95A6.244,6.244,0,0,0,2.663,9.661q3.343,3.345,6.694,6.682c.047.047.1.092.171.163",transform:"translate(0.75 0.762)",fill:"#fff",stroke:"#fff",strokeWidth:"1.5"})})}function Mt(){return e.jsxs("svg",{id:"Prompt",xmlns:"http://www.w3.org/2000/svg",width:"19.946",height:"14.968",viewBox:"0 0 19.946 14.968",children:[e.jsx("defs",{children:e.jsx("clipPath",{id:"clip-path",children:e.jsx("rect",{id:"Rectangle_48561","data-name":"Rectangle 48561",width:"19.946",height:"14.968",fill:"#fff"})})}),e.jsxs("g",{id:"Group_144056","data-name":"Group 144056",clipPath:"url(#clip-path)",children:[e.jsx("path",{id:"Path_184791","data-name":"Path 184791",d:"M5.119,7.483c-.135-.143-.247-.27-.367-.39C3.356,5.7,1.955,4.311.564,2.913A1.658,1.658,0,0,1,.483.5,1.65,1.65,0,0,1,2.893.54Q5.766,3.392,8.619,6.265a1.625,1.625,0,0,1-.006,2.443Q5.779,11.563,2.924,14.4a1.656,1.656,0,0,1-2.445.061,1.652,1.652,0,0,1,.087-2.407c1.392-1.4,2.792-2.786,4.188-4.18.12-.119.232-.246.365-.389",transform:"translate(0 0)",fill:"#fff"}),e.jsx("path",{id:"Path_184792","data-name":"Path 184792",d:"M76.936,87.224c-1.055,0-2.111,0-3.166,0a1.666,1.666,0,1,1,.007-3.32q3.192-.006,6.384,0a1.664,1.664,0,1,1-.007,3.319c-1.073.006-2.145,0-3.218,0",transform:"translate(-61.99 -72.265)",fill:"#fff"})]})]})}function Fa(a){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:30.485,height:29.083,viewBox:"0 0 30.485 29.083",...a,children:e.jsxs("g",{"data-name":"Super Admin",opacity:.7,children:[e.jsx("g",{"data-name":"Group 186403",children:e.jsxs("g",{"data-name":"Group 186404",f
1ill:"#fff",stroke:"rgba(0,0,0,0)",strokeMiterlimit:10,strokeWidth:1,children:[e.jsx("path",{"data-name":"Path 289145",d:"M10.911.032a6.22 6.22 0 11-4.2 9.994 6.22 6.22 0 014.2-9.994m.159 1.7a4.573 4.573 0 00-3.959 4.14 4.525 4.525 0 103.96-4.145",transform:"translate(-6049.476 -13326.494) translate(6050 13327)"}),e.jsx("path",{"data-name":"Path 289146",d:"M10.329 13.435c.782-.041 2.164-.275 2.134.86-.028 1.044-1.268.775-1.94.818-2.519.163-6.5.953-8.183 3-.829 1.01-.546 1.957-.583 3.176a.214.214 0 00.234.189h9.7a.858.858 0 01.272 1.641c-3.381.118-6.788.015-10.179.052a1.948 1.948 0 01-1.716-1.57 7.194 7.194 0 01.5-3.886c1.649-2.931 6.648-4.118 9.762-4.281",transform:"translate(-6049.476 -13326.494) translate(6050 13327)"})]})}),e.jsx("g",{"data-name":"Group 186405",children:e.jsx("g",{"data-name":"Group 143982",children:e.jsx("path",{"data-name":"Union 2089",d:"M6.547 16.351a1.274 1.274 0 01-1.234-1.125 67.916 67.916 0 00-.13-.787.953.953 0 00-1.28-.762c-.266.091-.526.2-.791.295A1.267 1.267 0 011.5 13.4Q.839 12.265.188 11.121a1.259 1.259 0 01.294-1.653c.215-.183.437-.357.652-.541a.953.953 0 000-1.5c-.22-.185-.445-.364-.664-.55a1.253 1.253 0 01-.291-1.626q.66-1.166 1.339-2.321a1.264 1.264 0 011.559-.56c.266.095.527.2.793.3a.954.954 0 001.314-.77c.044-.256.086-.513.129-.771A1.278 1.278 0 016.339.026.25.25 0 006.4 0h3.062a.222.222 0 00.058.026 1.278 1.278 0 011.024 1.105c.044.263.086.525.132.788a.956.956 0 001.282.758c.266-.091.527-.2.792-.3a1.268 1.268 0 011.605.576q.66 1.129 1.309 2.265a1.267 1.267 0 01-.291 1.668c-.215.183-.439.355-.652.538a.952.952 0 000 1.5c.218.187.445.362.664.551a1.256 1.256 0 01.291 1.629q-.66 1.166-1.341 2.321a1.259 1.259 0 01-1.546.558c-.271-.095-.537-.2-.806-.3a.954.954 0 00-1.312.767c-.051.3-.095.6-.157.9a1.248 1.248 0 01-1.206 1q-.691.006-1.382.006t-1.379-.005zm-.117-2.186c.056.3.1.6.157.9h2.686c.042-.257.088-.508.127-.76a2.227 2.227 0 012.721-1.905 7.694 7.694 0 01.992.348c.095.035.139.019.186-.068.131-.238.269-.47.4-.705l.872-1.51-.633-.523a2.231 2.231 0 010-3.53l.63-.52c-.435-.755-.867-1.5-1.3-2.247-.046-.079-.092-.065-.157-.038-.273.1-.544.211-.823.3A2.228 2.228 0 019.428 2.2c-.056-.3-.1-.606-.157-.914H6.586c-.042.253-.088.5-.125.754a2.239 2.239 0 01-3.067 1.812c-.223-.082-.447-.171-.674-.247a.152.152 0 00-.135.038c-.435.743-.865 1.488-1.3 2.247l.653.537a2.234 2.234 0 01-.005 3.5c-.211.176-.425.352-.637.525a.133.133 0 00.008.039c.423.738.85 1.473 1.271 2.211.042.073.083.076.156.049q.371-.147.745-.279a2.255 2.255 0 01.764-.134 2.228 2.228 0 012.19 1.827zm1.4-2.838a3.168 3.168 0 11.092 0zM6.052 8.171A1.876 1.876 0 107.927 6.3a1.891 1.891 0 00-1.875 1.871z",fill:"#fff",stroke:"#fff",strokeMiterlimit:10,strokeWidth:.4,transform:"translate(-6049.476 -13326.494) translate(6063.87 13339.02)"})})})]})})}function qt(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26.324",height:"27",viewBox:"0 0 26.324 27",children:e.jsx("g",{id:"Settings",transform:"translate(0.559 0.5)",opacity:"0.7",children:e.jsx("g",{id:"Group_143982","data-name":"Group 143982",transform:"translate(0 0)",children:e.jsx("path",{id:"Union_2089","data-name":"Union 2089",d:"M10.406,25.991A2.025,2.025,0,0,1,8.445,24.2c-.067-.417-.135-.835-.207-1.251A1.515,1.515,0,0,0,6.2,21.74c-.422.145-.837.313-1.257.468A2.014,2.014,0,0,1,2.392,21.3Q1.334,19.5.3,17.677a2,2,0,0,1,.468-2.62
16c.342-.29.694-.568,1.036-.859a1.515,1.515,0,0,0,.006-2.385c-.35-.295-.708-.578-1.055-.874A1.992,1.992,0,0,1,.285,8.346q1.05-1.852,2.129-3.69a2.009,2.009,0,0,1,2.479-.891c.423.15.837.32,1.26.47A1.516,1.516,0,0,0,8.24,3.023c.07-.406.137-.816.2-1.225A2.031,2.031,0,0,1,10.075.041.4.4,0,0,0,10.167,0h4.874a.353.353,0,0,0,.091.041A2.032,2.032,0,0,1,16.761,1.8c.07.418.137.835.21,1.252a1.519,1.519,0,0,0,2.037,1.206c.423-.145.837-.315,1.26-.47a2.015,2.015,0,0,1,2.552.915q1.05,1.795,2.08,3.6a2.014,2.014,0,0,1-.463,2.651c-.342.29-.7.565-1.036.855a1.513,1.513,0,0,0,0,2.385c.347.3.708.576,1.055.875a2,2,0,0,1,.463,2.589q-1.05,1.854-2.132,3.69a2,2,0,0,1-2.457.888c-.43-.15-.853-.322-1.281-.476a1.517,1.517,0,0,0-2.086,1.219c-.081.476-.151.954-.25,1.424A1.983,1.983,0,0,1,14.8,25.991Q13.7,26,12.6,26T10.406,25.991Zm-.186-3.474c.089.478.167.958.25,1.434H14.74c.067-.409.14-.807.2-1.209a3.54,3.54,0,0,1,4.325-3.031,12.229,12.229,0,0,1,1.577.552c.151.056.221.029.3-.109.207-.379.428-.747.643-1.121l1.386-2.4L22.162,15.8a3.546,3.546,0,0,1,.005-5.611c.331-.272.662-.546,1-.827-.691-1.2-1.378-2.384-2.059-3.571-.073-.126-.145-.1-.25-.061-.433.164-.864.335-1.308.478a3.542,3.542,0,0,1-4.564-2.715c-.089-.482-.167-.964-.25-1.452H10.468c-.067.4-.14.8-.2,1.2A3.56,3.56,0,0,1,5.4,6.123c-.355-.131-.711-.272-1.071-.392a.241.241,0,0,0-.215.061C3.417,6.973,2.734,8.158,2.037,9.363c.36.3.7.574,1.039.854a3.551,3.551,0,0,1-.008,5.566c-.336.279-.675.56-1.012.834a.211.211,0,0,0,.013.062c.673,1.173,1.351,2.342,2.021,3.515.067.116.132.121.248.077q.59-.233,1.184-.444a3.584,3.584,0,0,1,1.215-.213A3.541,3.541,0,0,1,10.221,22.516Zm2.22-4.511a5.036,5.036,0,1,1,.146,0Zm-2.82-5.016A2.982,2.982,0,1,0,12.6,10.015,3.005,3.005,0,0,0,9.621,12.989Z",fill:"#fff",stroke:"rgba(0,0,0,0)",strokeMiterlimit:"10",strokeWidth:"1"})})})})}function Wa(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",children:e.jsx("path",{id:"Poll",d:"M18,20H2a2,2,0,0,1-2-2V2A2,2,0,0,1,2,0H18a2,2,0,0,1,2,2V18A2,2,0,0,1,18,20ZM4.549,6.151v9.615H6.591V6.151Zm9.007,4.207v5.079h2.051V10.358ZM9.048,4.233V14.266h2.028V4.233Z",fill:"currentColor"})})}function Ta(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19.987",height:"21.285",viewBox:"0 0 19.987 21.285",children:e.jsx("g",{id:"Project",transform:"translate(0.015)",children:e.jsxs("g",{id:"Group_144226","data-name":"Group 144226",children:[e.jsx("path",{id:"Path_184903","data-name":"Path 184903",d:"M19.971,99.628a2.92,2.92,0,0,0-1.215-.243c-7.391,0-10.1,0-17.49,0a1.9,1.9,0,0,1-.429-.035.954.954,0,0,1-.831-1.163c.122-.675-.24-2.934.309-2.95A12.535,12.535,0,0,0,1.756,95.2c.292-.043.437-1.259,1.056-1.111.545.119,1.517,1.755,1.52.951.007-1.661,0-3.323,0-4.984v-6.3h2.7l-.13.227a6.229,6.229,0,0,0,1.065,7.6,1.486,1.486,0,0,1,.512,1.209c-.03.745-.01,1.493-.007,2.239a2.889,2.889,0,0,0,2.9,2.909q.951.006,1.9,0a2.89,2.89,0,0,0,2.9-2.912c0-.779.016-1.558-.005-2.335a1.326,1.326,0,0,1,.462-1.06,6.081,6.081,0,0,0,1.808-3.222,6.147,6.147,0,0,0-.721-4.477c-.031-.054-.061-.109-.112-.2h.28c1.806,0-1.071.015.734-.008a1.23,1.23,0,0,1,1.347.875Z",transform:"translate(0 -78.342)",fill:"currentColor"}),e.jsx("path",{id:"Path_184905","data-name":"Path 184905",d:"M123.976,72.005h-1.66c0-.078-.012-.148-.012-.217,0-1.043,0-2.087.006-3.13a.535.535,0,0,1,.138-.329c.335-.356.689-.695,1.032-1.044a.727.727,0,1,0-1.026-1.017c-.284.282-.563.57-.874.886l-.887-.9a.722.722,0,1,0-1.059.981c.359.378.738.737,1.1,1.112a.4.4,0,0,1,.12.242c.008,1.131.005,2.262.005,3.412h-1.7a5.536,5.536,0,0,0,0-.661,2.66,2.66,0,0,0-.9-1.628,4.724,4.724,0,0,1-1.409-2.6,4.813,4.813,0,1,1,9.54-.621,4.659,4.659,0,0,1-1.5,3.237,2.638,2.638,0,0,0-.878,1.586c-.029.221-.024.446-.036.694",transform:"translate(-109.254 -57.472)",fill:"currentColor"}),e.jsx("path",{id:"Path_184906","data-name":"Path 184906",d:"M.019,53.948V53.68q0-6.811,0-13.622a1.107,1.107,0,0,1,1.259-1.251c.225,0,.45.016.674,0,.671-.056.967.341.964.948-.017,3.658-.008,7.316-.008,10.974q0,1.1,0,2.19a.741.741,0,0,1-.816.821c-.472.007-.946.011-1.416.045a3.92,3.92,0,0,0-.656.166",transform:"translate(-0.018 -36.304)",fill:"currentColor"}),e.jsx("path",{id:"Path_184907","data-name":"Path 184907",d:"M159.048,248.84a8.157,8.157,0,0,1-.065,1.021,1.389,1.389,0,0,1-1.35,1.125c-.674.012-1.348.013-2.021,0a1.432,1.432,0,0,1-1.394-1.385c-.008-.248,0-.5,0-.761Z",transform:"translate(-144.296 -232.835)",fill:"currentColor"}),e.jsx("path",{id:"Path_184908","data-name":"Path 184908",d:"M181.816,1.2c0,.16,0,.32,0,.48a.72.72,0,0,1-1.441.009q-.014-.492,0-.984A.72.72,0,0,1,181.814.7c.008.168,0,.336,0,.5",transform:"translate(-168.767 0)",fill:"currentColor"}),e.jsx("path",{id:"Path_184909","data-name":"Path 184909",d:"M114.267,20.3a.672.672,0,0,1-.556-.353c-.165-.274-.327-.549-.479-.83a.72.72,0,1,1,1.248-.717c.171.279.34.561.487.853a.718.718,0,0,1-.7,1.048",transform:"translate(-105.858 -16.869)",fill:"currentColor"}),e.jsx("path",{id:"Path_184910","data-name":"Path 184910",d:"M241.07,20.3a.708.708,0,0,1-.641-1.034,9.519,9.519,0,0,1,.526-.913.717.717,0,0,1,1.233.727c-.158.3-.333.6-.514.893a.675.675,0,0,1-.6.327",transform:"translate(-224.891 -16.872)",fill:"currentColor"})]})})})}function Oa(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19.51",height:"20",viewBox:"0 0 19.51 20",children:e.jsx("path",{id:"Showcase",d:"M2.835,19.994A2.845,2.845,0,0,1,0,17.148Q0,12.181,0,7.214A2.847,2.847,0,0,1,2.917,4.287c1.072-.006,3.883,0,5.389,0l.069-.1
1a1,1,0,0,1-.226-.129c-.936-.931-1.867-1.866-2.8-2.8A.726.726,0,0,1,5.134.5a.669.669,0,0,1,.555-.49.75.75,0,0,1,.7.266q1.75,1.755,3.5,3.5c.062.061.113.133.185.22.085-.081.146-.138.205-.2Q12.048,2.038,13.816.268a.741.741,0,0,1,.678-.257.669.669,0,0,1,.563.482.719.719,0,0,1-.2.76q-1.158,1.154-2.315,2.312c-.222.221-.455.434-.684.651l.031.069h.27c2.347,0,1.967.026,4.314-.008a2.9,2.9,0,0,1,3.007,2.435c0,.021.023.04.034.059V17.49a6.77,6.77,0,0,1-.412,1.1,2.68,2.68,0,0,1-2.425,1.4C13.5,20,11.571,20,9.616,20,7.753,20,5.862,20,2.835,19.994ZM13.1,18.554a.668.668,0,0,0,.1.017c1.147,0,2.292.013,3.438,0a1.426,1.426,0,0,0,1.444-1.519q0-4.907,0-9.815a1.423,1.423,0,0,0-1.512-1.515c-.98,0-1.96,0-2.94,0H13.1ZM8.055,4.285h0Zm7.507,12.529a1.055,1.055,0,1,1,0-2.11,1.055,1.055,0,0,1,.01,2.11Zm0-3a1.055,1.055,0,1,1,0-2.111,1.055,1.055,0,0,1,.01,2.111Z",fill:"currentColor"})})}function Ua(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",children:e.jsxs("g",{id:"Plus_Bg","data-name":"Plus Bg",transform:"translate(-854 -351.098)",children:[e.jsx("circle",{id:"Ellipse_7836","data-name":"Ellipse 7836",cx:"15",cy:"15",r:"15",transform:"translate(854 351.098)",fill:"#fff"}),e.jsx("path",{id:"Path_184882","data-name":"Path 184882",d:"M7.2-1c0,.045-.009.09-.009.134,0,1.709,0,4.389,0,6.1v.146h6.374V7.185H7.191v6.379h-1.8V7.195c-.051,0-.09-.007-.129-.007H-.9c-.033,0-.065.006-.1.009V5.372c.041,0,.081.009.122.009h6.26V5.222c0-1.706,0-4.382,0-6.088,0-.045-.006-.09-.009-.134Z",transform:"translate(862.767 359.767)",fill:"currentColor",stroke:"currentColor",strokeWidth:"1"})]})})}function Ha(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21.008",height:"15.816",viewBox:"0 0 21.008 15.816",children:e.jsx("path",{id:"Stats",d:"M64.509,90.762c-.69,1.4-1.367,2.723-2,4.071a1.26,1.26,0,0,1-1.308.813c-.773-.024-1.548.006-2.321-.01a1.008,1.008,0,0,1-1.024-1.34,1,1,0,0,1,.953-.665c.588-.006,1.177-.014,1.765,0a.391.391,0,0,0,.418-.266c.86-1.748,1.734-3.489,2.6-5.235a1.023,1.023,0,0,1,1.916.006q1.562,3.215,3.132,6.427,1.023,2.1,2.045,4.2c.046.094.1.185.151.284a.792.792,0,0,0,.226-.332c.782-1.421,1.573-2.837,2.334-4.269a1.231,1.231,0,0,1,1.228-.735c.686.02,1.373,0,2.06.005a1.01,1.01,0,1,1,0,2.01c-.469,0-.938.014-1.406-.005a.4.4,0,0,0-.427.258c-1.021,1.886-2.054,3.765-3.079,5.648a1.083,1.083,0,0,1-.805.646,1.017,1.017,0,0,1-1.146-.664q-1.769-3.623-3.535-7.247-.787-1.614-1.574-3.228c-.051-.105-.109-.207-.2-.374",transform:"translate(-57.285 -86.974)",fill:"#ea1b88",stroke:"#ea1b88",strokeWidth:"1"})})}function Ba(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19.743",height:"21.188",viewBox:"0 0 19.743 21.188",children:e.jsx("path",{id:"Added_On_","data-name":"Added On ",d:"M7375.84-19396.812h-4.659a3.111,3.111,0,0,1-2.873-1.707,2.377,2.377,0,0,1-.3-1.164c-.01-.762-.01-1.523-.01-2.262v-9.914a2.992,2.992,0,0,1,1.807-2.84,2.93,2.93,0,0,1,1.164-.277H7372a.236.236,0,0,0,.138-.031.17.17,0,0,0,.03-.137v-.594c0-.77.207-1.035.947-1.262h.207c.731.246.929.5.929,1.262v.594a.139.139,0,0,0,.029.129c.02.027.069.039.139.039h5.9a.257.257,0,0,0,.148-.031.212.212,0,0,0,.039-.156q-.015-.416,0-.832a1.015,1.015,0,0,1,.454-.828.841.841,0,0,1,.276-.117h.01c.06-.02.108-.039.168-.059h.247a1.575,1.575,0,0,0,.178.059.782.782,0,0,1,.267.117,1.024,1.024,0,0,1,.474.879v.789a.273.273,0,0,0,.029.148.28.28,0,0,0,.148.031h.415a6.63,6.63,0,0,1,1.115.066,3.057,3.057,0,0,1,2.438,2.719c.029,1.3.01,6.543.01,8.113v.09a1.016,1.016,0,0,1-.8.977.846.846,0,0,1-.227.031,1.037,1.037,0,0,1-.948-.605c-.029-.047-.049-.73-.079-1.52v-.008c-.029-.75-.059-1.6-.1-2.164h.079v-3.387h-.01v-.109c0-.4.01-.816,0-1.23a.978.978,0,0,0-.9-.93,5.508,5.508,0,0,0-.572-.02c-.129,0-.267,0-.405-.012h-.02a.2.2,0,0,0-.148.039.175.175,0,0,0-.029.148c.01.328,0,.613-.01.871a.955.955,0,0,1-.464.8,1.19,1.19,0,0,1-.583.164,1.017,1.017,0,0,1-1.017-1,8.017,8.017,0,0,1,0-.84.214.214,0,0,0-.039-.148.179.179,0,0,0-.129-.039h-.02a1.817,1.817,0,0,1-.267.012h-.395c-1.7,0-3.456,0-5.184-.012a.3.3,0,0,0-.2.051.208.208,0,0,0-.039.148c.02.227.01.434.01.652v.109a1.036,1.036,0,0,1-1.047,1.063,1.025,1.025,0,0,1-1.036-1.074c-.01-.285,0-.543,0-.77a.185.185,0,0,0-.03-.141.175.175,0,0,0-.128-.039H7372c-.148.012-.307.012-.454.012h-.365a1.014,1.014,0,0,0-1.1,1.074v1.523a1.061,1.061,0,0,1-.01.176c0,.039.01.07.01.
109v10.148a1.027,1.027,0,0,0,1.154,1.105H7383.3a1.036,1.036,0,0,1,1.076.672.936.936,0,0,1-.118.906,1.024,1.024,0,0,1-.84.438c-.611.008-3.979.008-6.437.008Zm.7-5.145c-.01-.672,0-1.34-.01-2.012,0-.516,0-.516-.533-.516-.681,0-1.362,0-2.044-.008a1.016,1.016,0,0,1-1.086-.859,1.006,1.006,0,0,1,1.027-1.145c.543-.012,1.076,0,1.619,0a6.322,6.322,0,0,1,.77,0c.2.008.257-.039.257-.238q-.015-1.125,0-2.25a1.007,1.007,0,0,1,.672-1.016,1.01,1.01,0,0,1,1.382.855c.039.672.01,1.344.02,2.016.01.207-.089.465.05.594s.385.027.592.027c.583.012,1.155,0,1.737,0,.81.012,1.076.188,1.323.93v.117c-.01.039-.029.078-.039.109a1,1,0,0,1-1.1.859c-.751.008-1.511.008-2.262.008-.306,0-.306,0-.306.289,0,.738.01,1.469,0,2.211a1.03,1.03,0,0,1-.819,1.047,1.411,1.411,0,0,1-.219.02A1.026,1.026,0,0,1,7376.541-19401.957Z",transform:"translate(-7367.502 19417.5)",fill:"#010024",stroke:"rgba(0,0,0,0)",strokeMiterlimit:"10",strokeWidth:"1",opacity:"0.8"})})}function Qa(a){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:42,height:42,viewBox:"0 0 42 42",...a,children:[e.jsx("defs",{children:e.jsx("clipPath",{id:"a",children:e.jsx("path",{d:"M0 0H42V42H0z"})})}),e.jsx("g",{"data-name":"Switch Account",children:e.jsx("g",{"data-name":"Group 184810",clipPath:"url(#a)",children:e.jsxs("g",{"data-name":"Group 184778",fill:"#2dffbb",children:[e.jsx("path",{"data-name":"Path 285547",d:"M21.685 88.667c-.17.01-.238-.116-.326-.2-.674-.669-1.338-1.348-2.021-2.008a.4.4 0 01-.1-.54 5.618 5.618 0 00.716-1.722c.049-.576-.509-1.073-.708-1.647a8.7 8.7 0 01-.389-1.138.9.9 0 00-.724-.772c-.431-.124-.837-.329-1.264-.471a.433.433 0 01-.334-.5c.015-.933.017-1.867 0-2.8a.433.433 0 01.346-.485c.5-.175.987-.389 1.487-.563a.588.588 0 00.425-.458 9.886 9.886 0 011.083-2.62.59.59 0 00.035-.627c-.233-.476-.423-.973-.654-1.449a.42.42 0 01.087-.582 78.053 78.053 0 002.016-2.012.405.405 0 01.546-.1 5.34 5.34 0 001.72.72c.591.045 1.1-.53 1.688-.728a11.908 11.908 0 011.23-.417.717.717 0 00.588-.548c.148-.441.346-.866.488-1.309a.5.5 0 01.58-.421c.916.028 1.835.02 2.752 0a.43.43 0 01.49.338c.171.5.382.989.561 1.488a.591.591 0 00.463.422 9.847 9.847 0 012.619 1.084.582.582 0 00.62.039c.477-.23.971-.426 1.447-.659a.432.432 0 01.589.1q.988 1.025 2.014 2.014a.4.4 0 01.1.541 5.609 5.609 0 00-.717 1.722c-.051.577.515 1.07.709 1.646a10.661 10.661 0 01.4 1.184.812.812 0 00.62.691c.368.112.712.306 1.083.4a.7.7 0 01.6.849 20.85 20.85 0 000 2.364.639.639 0 01-.534.754c-.445.134-.867.341-1.309.487a.58.58 0 00-.418.464 9.779 9.779 0 01-1.085 2.618.588.588 0 00-.022.626c.238.491.441 1 .674 1.493a.374.374 0 01-.089.5q-1.039 1.009-2.048 2.048a.4.4 0 01-.545.091 5.79 5.79 0 00-1.676-.71c-.588-.068-1.071.5-1.643.695a7.4 7.4 0 01-1.092.375 1.068 1.068 0 00-.9.846c-.164.5-.219 1.172-.626 1.418-.38.23-1 .069-1.512.074s-1.031-.021-1.545.009a.448.448 0 01-.546-.392A2.578 2.578 0 0025.4 88.6a4.569 4.569 0 01-1.385-.661.6.6 0 00-.624-.026c-.463.223-.937.424-1.407.633-.1.045-.207.085-.3.122M33.16 78.274a3.617 3.617 0 10-3.611 3.626 3.6 3.6 0 003.611-3.626m4.523.1a7.87 7.87 0 00-.988-4c-.291-.537-.71-.708-1.134-.474s-.51.663-.215 1.21a6.838 6.838 0 01.787 3.628 6.625 6.625 0 01-9.233 5.589c-.189-.089-.305-.14-.23-.413a.729.729 0 00-.784-.975c-.418 0-.837.01-1.255.034a.753.753 0 00-.768.978 10.522 10.522 0 00.384 1.343.73.73 0 001.173.359.458.458 0 01.589-.045 8.784 8.784 0 003.3.841c3.729.3 8.544-3.278 8.379-8.079m-16.272-.082a7.93 7.93 0 001.054 4.01.769.769 0 001.428-.074.929.929 0 00-.158-.821 6.474 6.474 0 01-.778-2.809 6.6 6.6 0 019.05-6.451c.29.117.544.179.388.627a.681.681 0 00.66.83 11.467 11.467 0 001.495-.029.732.732 0 00.694-.912 9.682 9.682 0 00-.428-1.479.691.691 0 00-1.08-.316c-.3.275-.5.142-.759.021a8.139 8.139 0 00-11.565 7.4",transform:"translate(5.558 .458) translate(-9.018 -5.203) translate(-5.312 -51.605)"}),e.jsx("path",{"data-name":"Union 2224",d:"M29.78 45.671a11.939 11.939 0 002-2.81 19.289 19.289 0 001.135-2.609c.103-.283.199-.31.422-.117.253.216.558.387.808.61.27.244.451.22.71-.049a18.128 18.128 0 004.306-7.29 20.684 20.684 0 00-.926-15.196 2.256 2.256 0 01-.09-.227c-.008-.029-.007-.061-.03-.218a15.621 15.621 0 012.481 3.48 18.407 18.407 0 01-.70
15 19.06 14.741 14.741 0 01-2.09 2.65c-.217.218-.249.356.042.536.308.197.588.438.974.723-2.887 1.429-5.764 2.312-9.036 1.457zM6.733 27.443a8.05 8.05 0 01-.113-.712c-.726-8.062 2.335-14.253 9.214-18.523a15.608 15.608 0 013.889-1.678c.363-.11.425-.226.243-.555a9.845 9.845 0 01-.461-1.058c3.219.229 6.156.887 8.569 3.284a10.068 10.068 0 00-2.604 1.087 18.661 18.661 0 00-2.782 1.985c-.25.217-.38.237-.492-.118-.104-.324-.28-.615-.392-.934-.11-.299-.27-.35-.583-.262a17.207 17.207 0 00-6.12 3.084A20.708 20.708 0 006.995 27.88a.434.434 0 01-.1.26c-.052-.23-.12-.46-.163-.696z",stroke:"rgba(0,0,0,0)",strokeMiterlimit:10,strokeWidth:1,transform:"translate(5.558 .458) translate(-9.018 -5.203)"})]})})})]})}function Za(a){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:120.799,height:120.799,viewBox:"0 0 120.799 120.799",...a,children:e.jsxs("g",{"data-name":"Remove Usergroup",children:[e.jsx("path",{"data-name":"Path 115510",d:"M60.4 0c20.481 0 14.318 25.32 25.4 41.148 6.7 9.566 35 6.376 35 19.252A60.4 60.4 0 1160.4 0z",transform:"translate(-899.999 -173.729) translate(899.999 173.729)",fill:"#ea3535",opacity:.1}),e.jsxs("g",{"data-name":"Group 184671",transform:"translate(-899.999 -173.729) translate(4.95 3.348)",children:[e.jsx("circle",{"data-name":"Ellipse 8026",cx:19.686,cy:19.686,r:19.686,transform:"translate(957.146 235.423)",fill:"#e70407"}),e.jsx("circle",{"data-name":"Ellipse 8027",cx:14.53,cy:14.53,r:14.53,transform:"translate(926.21 211.987)",fill:"#ffc7c7"}),e.jsx("ellipse",{"data-name":"Ellipse 8028",cx:14.53,cy:14.061,rx:14.53,ry:14.061,transform:"translate(953.396 192.301)",fill:"#ffc7c7"}),e.jsx("g",{"data-name":"Group 184669",children:e.jsxs("g",{"data-name":"Group 184670",children:[e.jsx("path",{"data-name":"Path 285513",d:"M22.838 97.24c-4.973 0-9.947.048-14.919-.013C2.694 97.164-.092 94.353 0 89.16c.139-7.607 2.714-13.771 10.226-17.06 1.487-.652 2.344-.646 3.57.492 7.665 7.112 17.441 7.2 25.48.377.682-.58 1.132-1.526 2.322-1.43 2.484.2 3.362 1.807 1.959 3.855A21.851 21.851 0 0040.518 94.7c.737 2.51-.232 2.6-2.127 2.582-5.184-.05-10.369-.017-15.553-.017v-.025",transform:"translate(914.38 192.273) translate(.001 -25.925)",fill:"#090844"}),e.jsx("path",{"data-name":"Path 285514",d:"M26.972 19.61a14.142 14.142 0 01-.208 28.284c-8-.037-14.563-6.407-14.531-14.1A14.354 14.354 0 0126.972 19.61",fill:"none",stroke:"#090844",strokeWidth:4,transform:"translate(914.38 192.273)"}),e.jsx("path",{"data-name":"Path 285515",d:"M53.304 28.339a14.126 14.126 0 01-14.583-14.23A14.344 14.344 0 0152.864 0a14.07 14.07 0 0114.333 14.443 13.963 13.963 0 01-13.893 13.9",fill:"none",stroke:"#090844",strokeWidth:4,transform:"translate(914.38 192.273)"}),e.jsx("path",{"data-name":"Path 285517",d:"M104.541 61.307c-1.025-.736-1.619-1.13-2.178-1.57-8.26-6.51-18.213-7.4-27.126-1.9-2.628 1.623-4.11.363-5.931-.734-1.939-1.169-.239-2.534-.049-3.811a3.63 3.63 0 01.237-.918c.865-1.979-.671-4.922.926-5.947 1.457-.934 3.889.766 6.033.866a18.057 18.057 0 0014.368-5.333c1.072-1.08 1.9-1.12 3.3-.5 8.494 3.751 10.434 10.916 10.418 19.85",transform:"translate(914.38 192.273) translate(-24.786 -14.88)",fill:"#090844"})]})}),e.jsx("path",{"data-name":"Rectangle 50047",transform:"translate(963.708 252.296)",fill:"#fff",d:"M0 0H26.248V6.562H0z"})]})]})})}function Pe(a){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:37,height:37,viewBox:"0 0 37 37",...a,children:[e.jsx("defs",{children:e.jsx("clipPath",{id:"a",children:e.jsx("path",{"data-name":"Rectangle 50147",fill:"#020076",d:"M0 0H17.953V20H0z"})})}),e.jsxs("g",{"data-name":"Ellipse 8124",transform:"translate(8918 -19333) translate(-8918 19333)",fill:"#fff",stroke:"#b9b6b0",strokeWidth:1,children:[e.jsx("circle",{cx:18.5,cy:18.5,r:18.5,stroke:"none"}),e.jsx("circle",{cx:18.5,cy:18.5,r:18,fill:"none"})]}),e.jsx("g",{"data-name":"Group 185683",children:e.jsxs("g",{"data-name":"Group 185682",clipPath:"url(#a)",fill:"#020076",transform:"translate(8918 -19333) translate(-8908.54 19341.875)",children:[e.jsx("path",{"data-name":"Path 286012",d:"M8.948 16.967H2.939a2.855 2.855 0 01-2.93-3.2 5.94 5.94 0 014.624-5.379 6.03 6.03 0 011.311-.134c2.018 0 4.038-.008 6.056 0a5.871 5.871 0 015.84 4.8 3.361 3.361 0 01-.275 2.494 2.734 2.734 0 01-2.439 1.411c-2.059.014-4.118 0-6.178 0",transform:"translate(0 3.03)"}),e.jsx("path",{"data-name":"Path 286013",d:"M12.735 4.881A4.866 4.866 0 117.9 0a4.875 4.875 0 014.836 4.881",transform:"translate(1.103)"})]})})]})}function Ka(a){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:28.072,height:28.173,viewBox:"0 0 28.072 28.173",...a,children:e.jsxs("g",{"data-name":"Take Tour",children:[e.jsx("g",{"data-name":"Group 187153",children:e.jsxs("g",{"data-name":"Group 187154",fill:"#fff",opacity:.34,children:[e.jsx("path",{"data-name":"Path 289304",d:"M151.127 346.349c-.7.048-1.444-.036-2.146 0l-2.25
15-.386.636-2.584a12.063 12.063 0 005.308.078l.58 2.509a9.577 9.577 0 01-2.036.332c-.044 0-.077.05-.088.051",transform:"translate(4849.43 -14955.771) translate(-4849.43 14955.771) translate(-136.04 -318.192)"}),e.jsx("path",{"data-name":"Path 289305",d:"M156.266 1.09l-.634 2.585a12.1 12.1 0 00-5.358-.06c-.182-.858-.447-1.709-.554-2.58a15.035 15.035 0 016.547.054",transform:"translate(4849.43 -14955.771) translate(-4849.43 14955.771) translate(-138.812 -.701)"}),e.jsx("path",{"data-name":"Path 289306",d:"M3.926 202.762a11.959 11.959 0 001.6 5.086c0 .082-.059.118-.114.162a17.079 17.079 0 01-1.994 1.2.234.234 0 01-.148.043 15.568 15.568 0 01-1.744-4.664 8.188 8.188 0 01-.184-1.568c.032-.138 2.3-.162 2.585-.255",transform:"translate(4849.43 -14955.771) translate(-4849.43 14955.771) translate(-1.33 -187.91)"}),e.jsx("path",{"data-name":"Path 289307",d:"M253.769 18.777c-.094-.146.892-2.079.931-2.41.12-.1 1.368.583 1.574.7a15.006 15.006 0 013.1 2.4c.079.082.558.6.576.635a.227.227 0 01.022.183l-1.947 1.615a12.576 12.576 0 00-3.126-2.58c-.168-.1-1.1-.494-1.13-.547",transform:"translate(4849.43 -14955.771) translate(-4849.43 14955.771) translate(-235.208 -15.206)"}),e.jsx("path",{"data-name":"Path 289308",d:"M329.114 205.953a14.093 14.093 0 01-1.457 5.17 8.7 8.7 0 01-.531.954c-.032.045-.047.1-.12.083l-2.187-1.344a11.648 11.648 0 001.654-5.083z",transform:"translate(4849.43 -14955.771) translate(-4849.43 14955.771) translate(-301.042 -190.663)"}),e.jsx("path",{"data-name":"Path 289309",d:"M328.722 93.521a13.812 13.812 0 011.927 6.269l-2.5.165a.141.141 0 01-.113-.052c-.035-.051-.115-1.023-.151-1.223a11.334 11.334 0 00-1.4-3.714l.047-.152z",transform:"translate(4849.43 -14955.771) translate(-4849.43 14955.771) translate(-302.577 -86.699)"}),e.jsx("path",{"data-name":"Path 289310",d:"M251.549 297.845a11.139 11.139 0 003.464-2.174c.139-.127.75-.833.807-.848a20.178 20.178 0 011.994 1.68 13.568 13.568 0 01-4.085 3.274 8.737 8.737 0 01-1.176.533c-.071 0-.094-.022-.115-.085z",transform:"translate(4849.43 -14955.771) translate(-4849.43 14955.771) translate(-233.158 -273.204)"}),e.jsx("path",{"data-name":"Path 289311",d:"M4.136 97.594L1.5 97.428a14.045 14.045 0 012.066-6.218l2.216 1.357a11.683 11.683 0 00-1.645 5.026",transform:"translate(4849.43 -14955.771) translate(-4849.43 14955.771) translate(-1.483 -84.557)"}),e.jsx("path",{"data-name":"Path 289313",d:"M2.641 6.384L0 6.218A14.045 14.045 0 012.071 0l2.216 1.357a11.683 11.683 0 00-1.646 5.027",transform:"translate(4849.43 -14955.771) translate(-4849.43 14955.771) rotate(36 3.573 11)"}),e.jsx("path",{"data-name":"Path 289312",d:"M52.706 296.42a19.679 19.679 0 01-.923 2.379c-.035.067-.125.037-.184.022a9.677 9.677 0 01-1.289-.639 14.5 14.5 0 01-3.678-2.978c-.049-.063-.144-.156-.128-.241a16.332 16.332 0 011.988-1.624c.06.016.722.77.863.9a12.51 12.51 0 002.22 1.631c.169.1 1.1.495 1.131.547",transform:"translate(4849.43 -14955.771) translate(-4849.43 14955.771) translate(-43.182 -271.829)"})]})}),e.jsx("path",{"data-name":"Info Icon.",d:"M9.434 18.869A9.435 9.435 0 012.758 2.763a9.436 9.436 0 1113.349 13.342 9.366 9.366 0 01-6.673 2.764zM7.644 7.545a1.857 1.857 0 00-.321.019c-.2.039-.3.136-.316.3a.377.377 0 00.26.359 3.389 3.389 0 00.407.069l.069.009c.377.04.5.175.5.558a.509.509 0 01-.01.083.605.605 0 00-.012.1l-.1.566-.008.046c-.119.681-.244 1.385-.369 2.076L7.5 13.281a1.252 1.252 0 00.266.941 1.527 1.527 0 00.927.61 6.157 6.157 0 001.06.061 2.659 2.659 0 001.89-.856.9.9 0 00.2-.338.25.25 0 00-.035-.224.241.241 0 00-.195-.086.405.405 0 00-.147.029.917.917 0 00-.224.107h-.015a1.278 1.278 0 01-.16.085 1.8 1.8 0 01-.541.159.494.494 0 01-.081.007.363.363 0 01-.355-.307 1.365 1.365 0 01-.041-.5c.025-.215.067-.435.109-.648v-.023a9.46 9.46 0 00.066-.347c.084-.486.174-.975.261-1.448v-.014c.107-.578.2-1.1.292-1.625a3.812 3.812 0 00.1-.835c0-.325-.186-.5-.537-.5H7.644zM9.816 3.98a1.445 1.445 0 00-1.455 1.432 1.41 1.41 0 00.405 1.02 1.433 1.433 0 001.034.434h.037a1.417 1.417 0 001.4-1.433A1.412 1.412 0 009.816 3.98z",transform:"translate(4849.43 -14955.771) translate(-4844.829 14960.423)",fill:"#1cffb5"})]})})}const Ja=a=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:22.002,height:22,viewBox:"0 0 22.002 22",...a,children:e.jsx("path",{id:"Video_Studio","data-name":"Video Studio",d:"M6.05,20a10.37,10.37,0,0,1-5.89-7.676c-.079-.4-.09-.811-.161-1.213V9.885a1.475,1.475,0,0,0,.035-.178A9.673,9.673,0,0,1,.988,6.066,10.369,10.369,0,0,1,8.975.116c.3-.051.606-.077.91-.116h1.23a.27.27,0,0,0,.158.035A9.71,9.71,0,0,1,15.41,1.228a10.307,10.307,0,0,1,5.572,8.834,9.615,9.615,0,0,1-1.218,5.364,10.307,10.307,0,0,1-8.886,5.558q-.284.016-.566.016A9.6,9.6,0,0,1,6.05,20ZM1.758,10.485A8.741,8.741,0,1,0,10.5,1.757h-.01A8.744,8.744,0,0,0,1.758,10.485Zm6.9
162,4.692a.716.716,0,0,1-.364-.721c.007-1.3,0-2.6,0-3.907,0-1.284,0-2.57,0-3.855a.693.693,0,0,1,1.187-.6q2.651,1.932,5.306,3.859a.682.682,0,0,1,0,1.229q-2.662,1.938-5.328,3.871a.874.874,0,0,1-.507.2A.63.63,0,0,1,8.719,15.177Z",transform:"translate(0.5 0.5)",fill:"#fff",stroke:"rgba(0,0,0,0)",strokeMiterlimit:10,strokeWidth:1})}),Ya="_value_z03sd_157",Xa="_element_z03sd_216",Da="_item_z03sd_440",es="_key_z03sd_445",ts="_val_z03sd_157",as="_count_z03sd_467",I={"update-user-group-modal":"_update-user-group-modal_z03sd_1","user-group-modal-body":"_user-group-modal-body_z03sd_33","form-container-2":"_form-container-2_z03sd_45","form-content":"_form-content_z03sd_52","info-container":"_info-container_z03sd_62","user-group-div":"_user-group-div_z03sd_73","u-title":"_u-title_z03sd_81","user-g-list":"_user-g-list_z03sd_88","user-group":"_user-group_z03sd_33","info-div":"_info-div_z03sd_109","btn-group-2":"_btn-group-2_z03sd_119","cancel-btn":"_cancel-btn_z03sd_126","create-btn":"_create-btn_z03sd_136",value:Ya,"icon-div":"_icon-div_z03sd_163","update-title-div":"_update-title-div_z03sd_178","u-left":"_u-left_z03sd_185","allow-bottom":"_allow-bottom_z03sd_189","project-value":"_project-value_z03sd_203",element:Xa,"refine-wrapper":"_refine-wrapper_z03sd_239","r-h1":"_r-h1_z03sd_256","r-h2":"_r-h2_z03sd_263","invite-div":"_invite-div_z03sd_274","header-btns":"_header-btns_z03sd_281","delete-btn":"_delete-btn_z03sd_320","no-clear-changes-btn":"_no-clear-changes-btn_z03sd_334","delete-wrapper":"_delete-wrapper_z03sd_396","delete-popup-with":"_delete-popup-with_z03sd_404","detail-div":"_detail-div_z03sd_408","bottom-detail":"_bottom-detail_z03sd_431",item:Da,key:es,val:ts,count:as};function Lt({isOpen:a,setShowTeamMatesModal:i,setAddUserModal:r,refreshCallback:o,attachedUserGroups:c,attachedUserGroupsList:m,teammates:n,refetchWorkspace:t}){var _,$,L,F,v,y;const[j,p]=d.useState(),[x,h]=d.useState(""),[u,g]=d.useState(),[w]=Y(),{projectId:k=""}=K(),f=w==null?void 0:w.selectedProject;let b={};Jt(c)&&(b={attachedUserGroups:c});const G=d.useMemo(()=>({}),[]),R=C=>(p(!0),Q.callGetwithParams({url:"/qwerk/project/add/multiple/user/groups",params:{id:k,user_group_ids:C.userGroupIds.join(",")}}).then(q=>{let T=q.data;T.s?(g(T==null?void 0:T.msg),p(!1),setTimeout(()=>{g(""),typeof o=="function"&&o(),n?(i({showAddedTeammates:!0,showUserGroupModal:!1}),typeof t=="function"&&t()):r(!1)},2e3)):T.ed&&(P(T.ed),p(!1))},q=>{P(me(q))}));function P(C){p(!1),g(""),h(C||"Something went wrong"),setTimeout(()=>{h("")},4e3)}const E=C=>{let q={};return W(C==null?void 0:C.userGroupIds)||(q.userGroupIds="User Group is required!"),q},V=e.jsxs("div",{className:I["update-title-div"],children:[e.jsx("div",{className:I["u-left"],children:"Add User Groups to Project"}),e.jsx("div",{className:I["allow-bottom"],children:e.jsxs("div",{className:I["project-value"],children:[e.jsxs("div",{className:I.element,style:{backgroundColor:((_=f==null?void 0:f.symbol)==null?void 0:_.color)||"#EAD3B7"},children:[(($=f==null?void 0:f.symbol)==null?void 0:$.useEmoji)&&e.jsx("div",{children:(L=f==null?void 0:f.symbol)==null?void 0:L.emoji}),((F=f==null?void 0:f.symbol)==null?void 0:F.useInitialAlphabet)&&e.jsx("div",{children:f.value[0].toUpperCase()}),((v=f==null?void 0:f.symbol)==null?void 0:v.useLogo)&&e.jsx("img",{src:(y=f==null?void 0:f.symbol)==null?void 0:y.logo})]}),e.jsx("span",{title:f==null?void 0:f.value,children:(f==null?void 0:f.value)||"NA"})]})})]});return e.jsx(e.Fragment,{children:e.jsx(we,{isOpen:a,className:I["update-user-group-modal"],bodyClassName:I["user-group-modal-body"],closeIcon:null,title:V,centered:!0,width:570,onRequestClose:()=>{n?i(C=>({...C,showUserGroupModal:!1})):r(!1)},children:e.jsx(Ia,{validate:E,onSubmit:R,initialValues:G,children:({handleSubmit:C,invalid:q,dirty:T})=>e.jsx("form",{onSubmit:C,className:"form",children:e.jsxs("div",{className:I["form-container-2"],children:[e.jsx("div",{className:I["form-content"],children:e.jsxs("div",{className:"form-group",children:[e.jsxs("div",{className:I["info-container"],children:[W(m)&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:I["user-group-div"],children:[e.jsx("div",{className:I["u-title"],children:"Added User Groups"}),W(m)&&m.map((H,ne)=>e.jsx("div",{className:I["user-g-list"],children:e.jsxs("div",{className:I["user-group"],children:[e.jsxs("div",{className:I.name,children:[H.name||"NA"," - "]}),e.jsx("span",{children:H.teammates||0})]})},H.id||ne))]}),e.jsx(Z,{})]}),e.jsxs("div",{className:I["info-div"],children:[e.jsx(S,{component:ua}),e.jsx("span",{children:"You can add multiple user groups (a group of multiple teammates) in this project from below."})]})]}),e.jsxs("div",{children:[e.jsx("label",{children:"Add More User Groups"}),e.jsx(pa,{name:"userGroupIds",placeholder:"Select User Groups",noDataMsg:"No User Group Found!",apiUrl:"/qwerk/user/group/key/value",keyField:"key",params:b,textField:"value",showSearch:!0,mode:"multiple",avoidContainer:!0})]})]})}),u&&e.jsx("div",{style:{height:"22px"},children:e.jsx(vt,{msg:u,className:"successMsg"})}),x&&e.jsx("div",{style:{height:"22px"},children:e.jsx(vt,{msg:x,className:"errorMsg"})}),e.jsxs("div",{className:I["btn-group-2"],children:[e.jsx(le,{type:"primary",htmlType:"submit",disabled:j||u||x||q||!T,loading:j,className:I["create-btn"],children:"Save & Add"}),e.jsx(le,{className:I["cancel-btn"],onClick:()=>{n?i(H=>({...H,showUserGroupModal:!1})):r(!1)},children:"Cancel"})]})]})})})})})}const ss="_element_18ov2_84",ns="_search_18ov2_112",is="_item_18ov2_208",os="_key_18ov2_212",cs="_value_18ov2_218",rs="_val_18ov2_218",ls="_counts_18ov2_228",ds="_heading_18ov2_233",ms="_count_18ov2_228",hs="_title_18ov2_267",us="_dot_18ov2_313",A={"save-template-wrapper-modal":"_save-template-wrapper-modal_18ov2_1","save-template-wrapper-body":"_save-template-wrapper-body_18ov2_34","modal
1-header":"_modal-header_18ov2_42","h-left":"_h-left_18ov2_47","h-title":"_h-title_18ov2_53","allow-bottom":"_allow-bottom_18ov2_58","project-title":"_project-title_18ov2_69","project-value":"_project-value_18ov2_72",element:ss,"ele-inner":"_ele-inner_18ov2_98","h-right":"_h-right_18ov2_106",search:ns,"cancel-btn":"_cancel-btn_18ov2_136","save-btn":"_save-btn_18ov2_146","clear-btn":"_clear-btn_18ov2_162","user-group-detail":"_user-group-detail_18ov2_183","stats-container":"_stats-container_18ov2_191",item:is,key:os,value:cs,val:rs,counts:ls,heading:ds,"add-added-teamates":"_add-added-teamates_18ov2_241",count:ms,title:hs,"user-group-container":"_user-group-container_18ov2_274","user-group":"_user-group_18ov2_183","u-title":"_u-title_18ov2_286","status-div":"_status-div_18ov2_295","status-1":"_status-1_18ov2_301","status-2":"_status-2_18ov2_305",dot:us,"calender-container":"_calender-container_18ov2_319","r-container":"_r-container_18ov2_326","remove-teammate":"_remove-teammate_18ov2_341","teammate-list":"_teammate-list_18ov2_352"},ps="_name_s0doz_1",js="_email_s0doz_8",ft={name:ps,email:js},vs=[{dataIndex:"name",title:"Teammate",sorter:!0,width:250,type:"STRING",render:a=>e.jsx("div",{className:ft.name,children:a})},{dataIndex:"email",title:"Email",sorter:!0,width:200,type:"STRING",render:a=>e.jsx("div",{className:ft.email,children:a})},{dataIndex:"userGroup",title:"User Group",sorter:!0,width:150,type:"STRING",render:a=>e.jsx("div",{children:a})},{dataIndex:"type",title:"User Type",sorter:!0,width:150,type:"STRING",render:a=>e.jsx("div",{children:a})},{dataIndex:"status",title:"Status",filter:!0,sorter:!0,width:140,render:a=>a==="Enabled"?e.jsx(ht,{status:"success",text:"Enabled"}):e.jsx(ht,{status:"error",text:"Archived"})}];function xs({onCancel:a,open:i,refreshCallback:r,deletedUserInfo:o}){var x;const[c,m]=d.useState(),{projectId:n=""}=K(),[t]=Y(),j=()=>(m(!0),Q.callGetwithParams({url:"/qwerk/project/remove/user/group",params:{id:n,user_group_id:o==null?void 0:o.id}}).then(h=>{let u=h.data;u.s?(lt.success(u.msg||"Success!",{autoClose:2e3,hideProgressBar:!0,theme:"colored",position:"bottom-right"}),setTimeout(()=>{a(),typeof r=="function"&&r(),m(!1)},1e3)):u.ed&&p(u.ed)},h=>{p(me(h))}));function p(h){m(!1),lt.error(me(h)||"Something went wrong!",{autoClose:4e3,hideProgressBar:!0,theme:"colored",position:"bottom-right"})}return e.jsx(ja,{open:i,onCancel:a,closeIcon:null,className:I["delete-popup-with"],children:e.jsxs("div",{className:I["refine-wrapper"],style:{height:"unset",gap:"0px"},children:[e.jsxs("div",{className:I["delete-wrapper"],children:[e.jsx("div",{className:I["icon-div"],children:e.jsx(S,{component:Za})}),e.jsxs("div",{className:I["r-h1"],style:{marginTop:"unset"},children:["Are You Sure You Want To ",e.jsx("span",{style:{color:"#F10E27"},children:" Remove Selected User Group From This Project"}),"?"]}),e.jsx("div",{className:I["detail-div"],children:e.jsxs("div",{className:I["bottom-detail"],children:[e.jsxs("div",{className:I.item,children:[e.jsx("div",{className:I.key,children:"Project"}),e.jsx("div",{className:I.value,children:e.jsx("span",{className:I.count,children:(x=t==null?void 0:t.selectedProject)==null?void 0:x.value})})]}),e.jsx(Z,{type:"vertical"}),e.jsxs("div",{className:I.item,children:[e.jsx("div",{className:I.key,children:"User Group"}),e.jsx("div",{className:I.value,children:e.jsx("span",{className:I.val,style:{color:"#F10E27"},children:o==null?void 0:o.name})})]}),e.jsx(Z,{type:"vertical"}),e.jsxs("div",{className:I.item,children:[e.jsx("div",{className:I.key,children:"No of Teammates"}),e.jsxs("div",{className:I.value,children:[e.jsx("span",{className:I.val,children:o==null?void 0:o.teammates}),e.jsx("span",{className:I.count,children:"Count"})]})]})]})}),e.jsxs("div",{className:z(I["r-h2"]),style:{marginTop:"unset"},children:[e.jsx("div",{children:"After removing the user group from the project, all the"}),e.jsx("div",{style:{color:"#F10E27"},children:"Â teammates under the user group will not be able to access this project anymore."})]}),e.jsx("div",{className:I["invite-div"],children:"You can re-add this user group to the project anytime!!"})]}),e.jsxs("div",{className:I["header-btns"],children:[e.jsxs(le,{loading:c,onClick:j,className:I["delete-btn"],children:[e.jsx(S,{component:kt,style:{width:"18px",height:"18px"}}),e.jsx("span",{children:"Remove User Group"})]}),e.jsx(le,{type:"primary",className:I["no-clear-changes-btn"],onClick:a,children:"Do not remove"})]})]})})}const Ae="teammate-added-to-project-filter-key";function fs({open:a,refetchWorkspace:i,setShowTeamMatesModal:r}){var G,R,P,E,V,_,$;const{projectId:o}=K(),[c,m]=_t(Ae),[n,t]=d.useState(!1),[j,p]=d.useState(""),[x]=Y(),h=Yt(),u=x==null?void 0:x.selectedProject,g=re({request:Q.callGetwithParams,payload:{url:"/qwerk/project/user/groups/list",params:{id:o}}}),w=d.useCallback(()=>{t(!0)},[]),k=d.useCallback(()=>{t(!1),g.refresh(),h.invalidateQueries(["project-Teammate-list"]),i()},[g,h,i]);function f(L){var F;m({...c,search:(F=L==null?void 0:L.target)==null?void 0:F.value})}d.useEffect(()=>{var L;if(ae(g.data)){const F=(L=g.data)==null?void 0:L.userGroups.map(v=>v.id).join(",");p(F)}},[g.data]);const b=e.jsxs("div",{className:A["modal-header"],children:[e.jsxs("div",{className:A["h-left"],children:[e.jsx("div",{className:A["h-title"],children:"Teammates Added to Project"}),e.jsx("div",{className:A["allow-bottom"],children:e.jsxs("div",{className:A["project-value"],children:[e.jsxs("div",{className:A.element,style:{backgroundColor:((G=u==null?void 0:u.symbol)==null?void 0:G.color)||"#EAD3B7"},children:[((R=u==null?void 0:u.symbol)==null?void 0:R.useEmoji)&&e.jsx("div",{children:(P=u==null?void 0:u.symbol)==null?void 0:P.emoji}),((E=u==null?void 0:u.symbol)==null?void 0:E.useInitialAlphabet)&&e.jsx("div",{children:u.value[0].toUpperCase()}),((V=u==null?void 0:u.symbol)==null?void 0:V.useLogo)&&e.jsx("img",{src:(_=u==null?void 0:u.symbol)==null?void 0:_.logo})]}),e.jsx("span",{title:u==null?void 0:u.value,children:(u==null?void 0:u.value)||"NA"})]})})]}),e.jsxs("div",{className:A["h-right"],children:[e.jsx("div",{className:A.search,children:e.jsx(ia,{placeholder:"Search Teammates Here",suffix:e.jsx(oa,{}),onChange:f,allowClear:!0})}),e.jsxs(le,{type:"primary",className:A["save-btn"],onClick:w,children:[e.jsx(S,{component:va}),e.jsx("span",{children:"Add More User Groups"})]}),e.jsx(le,{className:A["cancel-btn"],onClick:()=>r(L=>({...L,showAddedTeammates:!1})),children:"Cancel"})]})]});return e.jsxs(we,{isOpen:a,className:A["save-template-wrapper-modal"],bodyClassName:A["save-template-wrapper-body"],centered:!0,width:570,onRequestClose:()=>r(L=>({...L,showAddedTeammates:!1})),title:b,closeIcon:null,children:[e.jsxs(e.Fragment,{children:[e.jsx(gs,{res:g,queryClient:h}),e.jsx(_s,{queryClient:h})]}),n&&e.jsx(Lt,{isOpen:n,attachedUserGroups:j,setAddUserModal:t,onClose:k,attachedUserGroupsList:(($=g.data)==null?void 0:$.userGroups)||[],teammates:!1,refreshCallback:()=>{g.refresh(),h.invalidateQueries(["project-Teammate-list"]),i()}})]})}function gs({res:a,queryClient:i}){var c,m,n,t,j,p,x;const[r,o]=d.useState();return e.jsxs(e.Fragment,{children:[a.loading&&e.jsx(wt,{}),(a.error||!((c=a.data)!=null&&c.s))&&!a.loading&&e.jsx(Se,{msg:me(a.error)||((m=a.data)==null?void 0:m.ed)||"Something went wrong. Please try again.",refreshCall:a.refresh}),((n=a.data)==null?void 0:n.s)&&!a.loading&&e.jsxs("div",{className:A["user-group-detail"],children:[e.jsxs("div",{className:A["stats-container"],children:[e.jsx(S,{component:Ha}),e.jsxs("div",{className:A.item,children:[e.jsx("div",{className:A.key,children:"User Groups"}),e.jsxs("div",{className:A.value,children:[e.jsx("span",{className:A.val,children:(t=a.data)==null?void 0:t.userGroups.length}),e.jsx("span",{className:A.counts,children:"Count"})]})]}),e.jsx(Z,{type:"vertical"}),e.jsxs("div",{className:A.item,children:[e.jsx("div",{className:A.key,children:"Teammates"}),e.jsxs("div",{className:A.value,children:[e.jsx("span",{className:A.val,children:(j=a.data)==null?void 0:j.teammates}),e.jsx("span",{className:A.counts,children:"Count"})]})]})]}),e.jsx("div",{className:A.heading,children:"Select Options From Below to View Teammates on the Left"}),e.jsxs("div",{className:A["add-added-teamates"],children:[e.jsx("span",{children:"All Added Teammates"}),e.jsx("div",{className:A.count,children:(p=a.data)==null?void 0:p.teammates})]}),W((x=a.data)==null?void 0:x.userGroups)&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:A.title,children:"User Groups"}),e.jsx("div",{className:A["user-group-container"],children:a.data.userGroups.map((h,u)=>{var g,w;return e.jsxs("div",{className:A["user-group"],children:[e.jsxs("div",{className:A["u-title"],children:[e.jsx("span",{children:h.name}),e.jsx("div",{className:A.count,children:h.teammates})]}),e.jsxs("div",{className:A["status-div"],children:[e.jsx("div",{className:A["status-1"],children:h.access}),e.jsx(Z,{type:"vertical"}),e.jsxs("div",{className:A["status-2"],children:[e.jsx("div",{className:A.dot,style:{backgroundColor:(g=h.status)==null?void 0:g.cc}}),e.jsx("span",{children:(w=h.status)==null?void 0:w.status})]})]}),e.jsxs("div",{className:A["calender-container"],children:[e.jsxs("div",{className:A["r-container"],children:[e.jsx(S,{component:Ba}),e.jsx("span",{children:h.addedOn})]}),e.jsx(S,{component:kt,onClick:()=>o({id:h.id,name:h.name,teammates:h.teammates})})]}),h.removed&&e.jsxs("div",{className:A["remove-teammate"],children:[e.jsx(S,{component:xa}),e.jsx("span",{children:"1 Teammate Removed"})]})]},u)})})]})]}),ae(r)&&e.jsx(xs,{open:ae(r),onCancel:()=>o(null),refreshCallback:()=>{a.refresh(),i.invalidateQueries(["project-Teammate-list"])},deletedUserInfo:r})]})}function _s({queryClient:a}){var g;const{projectId:i=""}=K(),{contentHeight:r}=Xt(),[o]=_t(Ae),c=d.useRef(),[m,n]=Dt(Ae,{schema:{createTime:"date"}});let t=ea(o.search||"");const j=ta({queryKey:["project-Teammate-list"],queryFn:Q.callList,filters:m.populated,params:{q:t,
1id:i},url:"/qwerk/project/teammates/list"});d.useEffect(()=>{const w=a.getQueryCache().subscribe(()=>{a.getQueryData(["project-Teammate-list"])&&j.refresh()});return()=>w()},[a,j]);const p=d.useMemo(()=>[...vs],[]),x=()=>e.jsx(xt.Toolbar,{py:2,children:e.jsx("div",{className:"horizontal-flow align-center justify-content-space-between",children:e.jsx(fa,{filterRef:c,filters:m.all,setFilters:n})})}),h={x:"100%",y:r-260},u=()=>{var w;return e.jsx(aa,{icon:za,title:((w=j.data)==null?void 0:w.pages[0].ed)||"No teammates found"})};return e.jsx("div",{className:A[["teammate-list"]],children:e.jsx(xt,{rowKey:"id",emptyText:((g=j.data)==null?void 0:g.pages[0].ed)||"No teammates found",columns:p,toolbar:x,scroll:h,filters:o.populated,extraHeight:60,noDataComp:u,onFilter:w=>{var k;return(k=c.current)==null?void 0:k.addFilter(w)},...j.props})})}function ws({isOpen:a,onCancel:i,id:r}){const[o,c]=Y(),m=X(),n=ue({maxWidth:768}),t=d.useCallback(()=>{const p=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${p}px`)},[]);d.useEffect(()=>{if(a&&n){t(),document.body.style.overflow="hidden",window.addEventListener("resize",t),window.addEventListener("orientationchange",t);const p=h=>{setTimeout(()=>{h.target.scrollIntoView({behavior:"smooth",block:"center"})},100)},x=document.querySelectorAll("input, textarea");return x.forEach(h=>{h.addEventListener("focus",p)}),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t),x.forEach(h=>{h.removeEventListener("focus",p)})}}return()=>{document.body.style.overflow="",document.documentElement.style.removeProperty("--vh")}},[a,n,t]);function j(p){c({...o,createdProject:p,selectedProject:p}),setTimeout(()=>{m("/project/"+p.key+"/overview")},0),i()}return e.jsx(we,{isOpen:a,className:`${xe["add-sp-modal"]} ${n?xe["mobile-modal"]:""}`,bodyClassName:xe["sp-modal-body"],title:null,centered:!0,width:570,onRequestClose:i,destroyOnClose:!0,maskClosable:!1,keyboard:!1,children:e.jsx("div",{className:xe["modal-content-wrapper"],children:e.jsx(Pa,{containerClass:xe["create-project"],title:"Setup Your Project",isPopup:!0,id:r,successCallback:j})})})}function ys({quickGuidedTour:a,setQuickGuidedTour:i,setProject:r}){var V,_,$,L,F;const[o]=se(),[c,m]=Y(),n=X(),t=K(),[j,p]=d.useState(),[x,h]=d.useState([]),[u,g]=d.useState({start:0}
1),[w,k]=d.useState(!1),f=ue({maxWidth:768}),b=re({request:Q.callGetwithParams,payload:{url:"/qwerk/project/side/bar/key/value/list",params:u},dontCall:!u.number});d.useEffect(()=>{ae(c.createdProject)&&(g({start:"0",number:6}),b.refresh())},[c.createdProject]),d.useEffect(()=>{var v,y,C;if(W((v=b.data)==null?void 0:v.data)){h((y=b.data)==null?void 0:y.data),p((C=b.data)==null?void 0:C.data[0]),m({...c,createdProject:null});const q=b.data.data[0].key;n("/project/"+q+"/overview")}},[b.data]);const G=d.useMemo(()=>{var v,y,C;return(v=o.projects)!=null&&v.hm&&((y=o.projects)==null?void 0:y.total)>6?Math.ceil(((C=o.projects)==null?void 0:C.total)/6):0},[(V=o.projects)==null?void 0:V.total]);d.useEffect(()=>{if(c.updated){let v=x,y=v.findIndex(C=>{var q;return C.key===((q=c.selectedProject)==null?void 0:q.key)});y!==-1&&(v[y]=c.selectedProject),h(v),p(c.selectedProject),m({...c,updated:null})}},[c.updated]),d.useEffect(()=>{var v;if(c.removeProjectId){let y=x,C=y.findIndex(q=>q.key===c.removeProjectId);C!==-1&&y.splice(C,1),h(y),p(y[0]),m({...c,removeProjectId:null}),n("/project/"+((v=y[0])==null?void 0:v.key)+"/overview")}},[c.removeProjectId]),d.useEffect(()=>{var y;let v=W(x)?x:((y=o.projects)==null?void 0:y.projects)||[];if(W(v)){h(v);let C=ae(c.selectedProject)?c.selectedProject:v[0];if(t!=null&&t.projectId){const q=v.find(T=>T.key===t.projectId);q&&(m({...c,selectedProject:q}),C=q)}t.projectId||n("/project/"+(C==null?void 0:C.key)+"/overview"),p(C)}},[JSON.stringify((_=o.projects)==null?void 0:_.projects),t==null?void 0:t.projectId]);function R(v){p(v),m({...c,selectedProject:v}),r(v.value),n("/project/"+(v==null?void 0:v.key)+"/overview")}function P(v){let y={start:String(6*v),number:6};g(y),k(!1)}const E=e.jsx("div",{className:N["pagination-dropdown"],children:[...Array(G)].map((v,y)=>{let C=u.start/6;return e.jsx("div",{className:C===y?N["content-selected"]:N.content,onClick:()=>P(y),children:y+1},y)})});return e.jsxs("div",{className:N["workspace-container"],children:[!f&&e.jsxs(e.Fragment,{children:[(($=o==null?void 0:o.userInfo)==null?void 0:$.role)!=="VIEWER"&&((L=o==null?void 0:o.userInfo)==null?void 0:L.role)!=="INTERACTIVE"&&e.jsx(Vt,{modelTypes:o==null?void 0:o.modelTypes}),e.jsx(wa,{quickGuidedTour:a,setQuickGuidedTour:i}),e.jsx("div",{className:N["project-name"],children:"Projects"})]}),e.jsxs("div",{className:N["flex-div"],children:[e.jsxs("div",{className:"width-100",children:[b.loading&&e.jsx(wt,{}),W(x)&&!b.loading&&x.map(v=>{var y,C,q,T,H,ne;return e.jsx(ce,{title:v.value,placement:"right",children:e.jsx("div",{className:z(N["element-div"],v.key===(j==null?void 0:j.key)&&N["element-div-selected"]),onClick:()=>R(v),children:e.jsxs("div",{className:N["div-with-right-border"],children:[e.jsxs("div",{className:N.element,style:{backgroundColor:(y=v==null?void 0:v.symbol)==null?void 0:y.color},children:[((C=v==null?void 0:v.symbol)==null?void 0:C.useEmoji)&&e.jsx("div",{children:(q=v==null?void 0:v.symbol)==null?void 0:q.emoji}),((T=v==null?void 0:v.symbol)==null?void 0:T.useInitialAlphabet)&&e.jsx("div",{children:v.value[0].toUpperCase()}),((H=v==null?void 0:v.symbol)==null?void 0:H.useLogo)&&e.jsx("img",{src:(ne=v==null?void 0:v.symbol)==null?void 0:ne.logo})]}),v.key===(j==null?void 0:j.key)&&e.jsx("div",{className:N["left-border"]})]})})},v.key)})]}),((F=o.projects)==null?void 0:F.hm)&&e.jsxs(e.Fragment,{children:[G<=3&&e.jsx("div",{className:N["pagination-div"],children:e.jsx("div",{className:N["inner-content"],children:[...Array(G)].map((v,y)=>{let C=u.start/6;return e.jsx("div",{className:C===y?N["content-selected"]:N.content,onClick:()=>P(y),children:y+1},y)})})}),G>3&&e.jsx("div",{className:N["more-btn"],children:e.jsx(he,{content:E,title:null,arrow:!1,trigger:"click",placement:"bottom",open:w,onOpenChange:k,overlayClassName:N["pagination-popover-overlay"],children:e.jsx(ca,{})})})]})]})]})}function Vt({modelTypes:a}){const[i,r]=d.useState({project:!1,showcase:!1}
1),[o,c]=d.useState({}),m=K(),n=X(),[t,j]=d.useState(!1),p=ue({maxWidth:768});function x(w){w==="poll"?n("/project/"+m.projectId+"/polls/create"):r({...i,[w]:!0}),j(!1)}function h(){c({open:"WORKSPACE"}),j(!1)}function u(){c({open:"VIDEO"}),j(!1)}const g=d.useMemo(()=>e.jsx("div",{className:N["popover-container"],children:e.jsxs("div",{className:N.content,children:[e.jsx("div",{className:N.name,children:"Create New"}),e.jsxs("div",{children:[e.jsx(fe,{icon:Ta,title:"Project",selected:!0,onClick:()=>x("project")}),e.jsx(Z,{}),e.jsx(fe,{icon:ga,title:"Workspace",onClick:h}),e.jsx(fe,{icon:Ca,title:"Video Studio",onClick:u,isActive:(a==null?void 0:a.text_to_video)&&(a==null?void 0:a.image_to_video)}),e.jsx(fe,{icon:Oa,title:"Showcase",onClick:()=>x("showcase"),isActive:a==null?void 0:a.showcase}),e.jsx(fe,{icon:Wa,title:"Poll",onClick:()=>x("poll"),isActive:a==null?void 0:a.poll})]})]})}),[]);return e.jsxs("div",{className:N["workspace-div"],"data-tour":"add-icon",children:[e.jsx(he,{content:g,title:null,arrow:!1,trigger:"click",color:"var(--create-new-popover-bg)",placement:"right",open:t,overlayInnerStyle:{borderRadius:p?"6px":"0 15px 15px",position:p&&"relative",left:p&&"70px",top:p&&"6px"},onOpenChange:()=>j(!t),overlayClassName:N["create-new-popover-overlay"],children:e.jsx(S,{component:Pt,className:z(N["add-icon"],t&&N["add-selected"])})}),i.project&&e.jsx(ws,{isOpen:i.project,onCancel:()=>r({...i,project:!1}),id:i==null?void 0:i.id}),i.showcase&&e.jsx(_a,{open:i.showcase,onClose:()=>r({...i,showcase:!1}),projectId:m.projectId,onSuccess:()=>{r({...i,showcase:!1}),n("/project/"+m.projectId+"/showcase")}}),ae(o)&&(o.open==="WORKSPACE"||o.open==="VIDEO")&&e.jsx(It,{isOpen:o.open==="WORKSPACE"||o.open==="VIDEO",modalTitle:o.open,onCancel:()=>c(!1)})]})}function fe({onClick:a,icon:i,title:r,selected:o,isActive:c=!0}){var j;const m=K(),n=r==="Video Studio"?"video_studio":(j=r==null?void 0:r.toLowerCase())==null?void 0:j.replace(/\s+/g,"_"),t=r==="Showcase"?`project/${m.projectId}/showcase`:r==="Poll"?`project/${m.projectId}/polls/create`:"";return e.jsx(e.Fragment,{children:c?e.jsxs("div",{className:z(N["create-new-item"],o&&N.selected),onClick:a,children:[e.jsx(S,{component:i}),e.jsx("span",{children:r})]}):e.jsx(ye,{isEnabled:c,feature:n,popoverPlacement:"right",popoverTrigger:"hover",redirectSlug:t,children:e.jsxs("div",{className:z(N["create-new-item"],o&&N.selected),style:{cursor:"not-allowed"},children:[e.jsx(S,{component:i}),e.jsx("span",{style:{opacity:.5},children:r}),e.jsx(S,{component:Ie})]})})})}function Ns(){const a=X(),i=JSON.parse(localStorage.getItem("selectedProject"));return e.jsxs("div",{children:[e.jsx("div",{className:N["go-back-from-admin"],onClick:()=>{a("/project/"+(i==null?void 0:i.key)+"/overview")},children:e.jsx(Aa,{})}),e.jsx("div",{className:N.divider}),e.jsx(bs,{admin:!0})]})}function bs({admin:a}){const[i]=se(),r=de();let o=r.pathname.split("/")[1];const c=K(),m=d.useMemo(()=>{var j;let t=(j=i==null?void 0:i.menu)==null?void 0:j[o];return t||[]},[r.pathname,i.menu]);function n(t){return c.id&&!a?"/"+o+"/"+c.id+"/"+t.key:"/"+o+"/"+t.key}return e.jsx("div",{className:N["sub-menu-icons"],children:m.map(t=>{var p;let j=t.icon;if(!t.disable)return e.jsx(yt,{className:z(N["menu-item"],((p=r.pathname)==null?void 0:p.includes(t.key))&&N["selected-menu"]),to:n(t),children:e.jsx(j,{})},t.key)})})}function ks({admin:a,quickGuidedTour:i,setQuickGuidedTour:r,setProject:o,isMobile:c}){return e.jsx("div",{className:N["left-panel-container"],children:e.jsxs("div",{className:N["left-panel-inner"],children:[a&&e.jsx(Ns,{}),!a&&e.jsx(Ps,{quickGuidedTour:i,setQuickGuidedTour:r,setProject:o,isMobile:c}),a&&e.jsxs("div",{className:N["version-container"],children:["v",Ce]})]})})}function Ps({quickGuidedTour:a,setQuickGuidedTour:i,setProject:r,isMobile:o}){var E,V,_;const c={start:"0",number:10},m=d.useRef(),n=X(),t=localStorage.getItem("isVideoModalOpen"),[j,p]=d.useState(!1),[x,h]=se(),[u,g]=d.useState(!1),[w,k]=d.use
1State(c),[f,b]=d.useState(null),G=()=>{p(!j)},R=re({request:Q.callGetwithParams,payload:{url:"/qwerk/notification/side/bar/list",params:w},dontCall:!u}),P=re({request:Q.callGetwithParams,payload:{url:"/qwerk/notification/count"},dontCall:o||t});return d.useEffect(()=>{u||k(c)},[u]),d.useEffect(()=>{var $,L,F;ae(P.data)&&(b(($=P.data)==null?void 0:$.notifications),JSON.stringify(x.subscriptionInfo)!==JSON.stringify((L=P.data)==null?void 0:L.subscriptionInfo)&&h({...x,subscriptionInfo:(F=P.data)==null?void 0:F.subscriptionInfo}))},[P.data,x.subscriptionInfo]),d.useEffect(()=>{const $=setInterval(()=>{P.refresh()},1e4);return()=>clearInterval($)},[]),e.jsxs(e.Fragment,{children:[e.jsx(ys,{height:(E=m==null?void 0:m.current)==null?void 0:E.clientHeight,quickGuidedTour:a,setQuickGuidedTour:i,setProject:r}),e.jsxs("div",{className:N["bottom-container"],ref:m,children:[e.jsx("div",{className:N["icon-div"],onClick:()=>n("/social-media/account-centre"),children:e.jsx(ce,{title:"Social Media",placement:"right",children:e.jsx(S,{component:Sa,style:{opacity:.6}})})}),(((V=x.userInfo)==null?void 0:V.role)==="ADMIN"||((_=x.userInfo)==null?void 0:_.role)==="MANAGER")&&e.jsx("div",{className:N["icon-div"],onClick:()=>n("/accountOverview/projectAnalysis"),children:e.jsx(ce,{title:"Account Overview",placement:"right",children:e.jsx(S,{component:St,style:{opacity:.6}})})}),x.superUser&&e.jsx("div",{className:N["icon-div"],onClick:()=>n("/superAdmin/summary"),children:e.jsx(ce,{title:"Super Admin",placement:"right",children:e.jsx(S,{component:Fa})})}),e.jsx("div",{className:N["icon-div"],children:e.jsx(he,{open:u,onOpenChange:$=>{g($)},content:e.jsx(Ct,{getNotification:R,setPagination:k,getNotificationCount:P,pagination:w,setOpenNotifications:g,isMobile:o}),placement:"right",trigger:"click",overlayClassName:N["notifications-popover"],children:e.jsxs("div",{className:N["notification-icon-wrapper"],children:[!u&&f>0?e.jsx(S,{component:Et}):e.jsx(S,{component:Ee,style:{opacity:.6}}),!u&&f>0&&e.jsx("span",{className:N["notification-badge"],children:f>9?"9+":f})]})})}),e.jsx("div",{className:N["icon-div"],onClick:()=>n("/admin/profile"),"data-tour":"settings",children:e.jsx(ce,{title:"Admin",placement:"right",children:e.jsx(S,{component:qt})})}),e.jsx("div",{className:N["icon-div"],children:e.jsx(he,{open:j,onOpenChange:$=>{p($)},content:e.jsx(bt,{}),placement:"right",trigger:"click",overlayClassName:N["user-popover-overlay"],children:e.jsx("div",{className:N.inner,onClick:G,role:"button",tabIndex:0,"aria-label":"Open user profile",children:e.jsx(S,{component:Nt})})})})]})]})}const Is="_open_yjpiv_17",Cs="_closed_yjpiv_22",As="_active_yjpiv_269",Ss="_item_yjpiv_402",Es="_disabled_yjpiv_465",Rs="_version_yjpiv_680",Gs="_terms_yjpiv_560",Ms="_privacy_yjpiv_577",qs="_selected_yjpiv_129",s={"left-menu-container":"_left-menu-container_yjpiv_1",open:Is,closed:Cs,"admin-settings":"_admin-settings_yjpiv_29","admin-settings-title":"_admin-settings-title_yjpiv_33","left-menu-inner":"_left-menu-inner_yjpiv_50","team-container":"_team-container_yjpiv_88","project-sub-menu":"_project-sub-menu_yjpiv_110","menu-header":"_menu-header_yjpiv_110","l-menu":"_l-menu_yjpiv_126","selected-project":"_selected-project_yjpiv_129","r-menu":"_r-menu_yjpiv_140","dropdown-icon":"_dropdown-icon_yjpiv_144","project-name":"_project-name_yjpiv_156","project-name-container":"_project-name-container_yjpiv_181","project-name-text":"_project-name-text_yjpiv_186","overview-div":"_overview-div_yjpiv_193","main-menu":"_main-menu_yjpiv_216",active:As,"mobile-dropdown":"_mobile-dropdown_yjpiv_283","mobile-dropdown-header":"_mobile-dropdown-header_yjpiv_293","mobile-dropdown-list":"_mobile-dropdown-list_yjpiv_308","mobile-dropdown-item":"_mobile-dropdown-item_yjpiv_315","sub-menu-container":"_sub-menu-container_yjpiv_341","menu-item":"_menu-item_yjpiv_348","selected-menu":"_selected-menu_yjpiv_359","admin-view-menu":"_admin-view-menu_yjpiv_367","collapse-container":"_collapse-container_yjpiv_378","collapse-inner-content":"_collapse-inner-content_yjpiv_389","collapse-item":"_collapse-item_yjpiv_396",item:Ss,"no-data-found":"_no-data-found_yjpiv_421","n-container":"_n-container_yjpiv_431","n-icon-data":"_n-icon-data_yjpiv_435","header-container":"_header-container_yjpiv_453",disabled:Es,"non-collapsible-header":"_non-collapsible-header_yjpiv_469","team-inner":"_team-inner_yjpiv_488","teammates-count":"_teammates-count_yjpiv_498","teammate-icon":"_teammate-icon_yjpiv_509","team-icon":"_team-icon_yjpiv_518","add-icon":"_add-icon_yjpiv_530","guided-tour-button":"_guided-tour-button_yjpiv_545","terms-container":"_terms-container_yjpiv_560","terms-link":"_terms-link_yjpiv_574","privacy-policy":"_privacy-policy_yjpiv_577","guided-tour-content":"_guided-tour-content_yjpiv_581","teammate-thumbs":"_teammate-thumbs_yjpiv_590","teammates-row":"_teammates-row_yjpiv_593","teammates-avatars":"_teammates-avatars_yjpiv_600","right-arrow-icon":"_right-arrow-icon_yjpiv_604","settings-menu-mobile":"_settings-menu-mobile_yjpiv_608","settings-menu-item":"_settings-menu-item_yjpiv_621","version-footer":"_version-footer_yjpiv_680",version:Rs,terms:Gs,privacy:Ms,"project-dropdown-container":"_project-dropdown-container_yjpiv_748","project-icon":"_project-icon_yjpiv_753","projects-list":"_projects-list_yjpiv_770","loading-more":"_loading-more_yjpiv_795","loading-spinner":"_loading-spinner_yjpiv_802","error-message":"_error-message_yjpiv_815","project-item":"_project-item_yjpiv_832",selected:qs,"project-item-name":"_project-item-name_yjpiv_860"};class Ls extends sa.Component{constructor(i){super(i),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.fallback||null:this.props.children}}const $t=({activeTab:a,setActiveTab:i,selectedProject:r,setIsMobileMenuOpen:o,projectId:c,path:m,res:n,user:t,isLoading:j,isError:p,error:x,refetch:h,videoStudioData:u})=>{var $e,ze,Fe,We,Te,Oe,Ue,He,Be,Qe,Ze,Ke,Je,Ye,Xe,De,et,tt,at,st,nt,it,ot,ct,rt;const g=t==null?void 0:t.modelTypes,w=de(),k=w.pathname,f=X(),[b,G]=d.useState(!1),[R,P]=d.useState(!1),[E,V]=d.use
1State([]),[_,$]=d.useState(r),[L,F]=d.useState(!r),v=d.useRef(null),[y,C]=d.useState({start:0}),[q,T]=d.useState([]),[H,ne]=d.useState(!1),[Re,Ge]=d.useState(!0),[Ft,Wt]=Y(),[Tt,Ot]=d.useState([]),[Me,Ut]=d.useState(!0),[be,Ht]=d.useState(!1),qe=5,Le=localStorage.getItem("selectedProject");let D=c;if(!D&&Le){const l=JSON.parse(Le);l&&l.key&&(D=l.key)}const ee=re({request:Q.callGetwithParams,payload:{url:"/qwerk/project/side/bar/key/value/list",params:y},dontCall:!(($e=t==null?void 0:t.projects)!=null&&$e.hm)||!y.number||!b});d.useEffect(()=>{var l;b&&((l=t==null?void 0:t.projects)!=null&&l.hm)&&(T([]),C({start:"0",number:6}),Ge(!0))},[b,(ze=t==null?void 0:t.projects)==null?void 0:ze.hm]),d.useEffect(()=>{var l;W((l=ee.data)==null?void 0:l.data)&&(T(J=>y.start!=="0"?[...J,...ee.data.data]:ee.data.data),ee.data.hm===!1&&Ge(!1),ne(!1))},[ee.data]),d.useEffect(()=>{k.includes("/social-media")?i("social"):k.includes("/admin")||k.includes("/accountOverview")?i("settings"):i("project")},[k,i]),d.useEffect(()=>{var l;(l=t==null?void 0:t.projects)!=null&&l.projects&&V(t.projects.projects)},[(Fe=t==null?void 0:t.projects)==null?void 0:Fe.projects]),d.useEffect(()=>{r&&($(r),F(!1))},[r]),d.useEffect(()=>{var l;b&&!((l=t==null?void 0:t.projects)!=null&&l.hm)&&(Ut(E.length>qe),Ot(E.slice(0,qe)))},[b,E,(We=t==null?void 0:t.projects)==null?void 0:We.hm]);const Bt=l=>{var te;const{scrollTop:J,scrollHeight:ie,clientHeight:oe}=l.target;ie-J<=oe+20&&((te=t==null?void 0:t.projects)!=null&&te.hm?Re&&!H&&!ee.loading&&Zt():Me&&!be&&Qt())},Qt=()=>{be||Ht(!0)},Zt=()=>{if(H||!Re)return;ne(!0);const l=q.length;C({start:String(l),number:6})},Kt=()=>{G(!b)},Ve=l=>{try{$(l),Wt({...Ft,selectedProject:l}),f(`/project/${l.key}/overview`)}catch{}finally{G(!1)}},pe=()=>e.jsx("div",{className:s["loading-more"],children:e.jsx("div",{className:s["loading-spinner"]})});return e.jsxs("div",{className:s["project-sub-menu"],children:[e.jsx("div",{className:s["menu-header"],children:e.jsx("div",{className:s["l-menu"],children:e.jsxs("div",{className:s["mobile-dropdown"],children:[e.jsxs("div",{className:s["mobile-dropdown-header"],onClick:()=>P(l=>!l),children:[e.jsx("span",{children:a==="project"?"Project Info":a==="settings"?"Settings":"Social"}),e.jsx(U,{component:R?ut:pt,className:s["dropdown-icon"]})]}),R&&e.jsxs("div",{className:s["mobile-dropdown-list"],children:[e.jsx("div",{className:z(s["mobile-dropdown-item"],{[s.active]:a==="project"}),onClick:()=>{i("project"),P(!1)},children:"Project Info"}),e.jsx("div",{className:z(s["mobile-dropdown-item"],{[s.active]:a==="social"}),onClick:()=>{i("social"),P(!1)},children:"Social"}),e.jsx("div",{className:z(s["mobile-dropdown-item"],{[s.active]:a==="settings"}),onClick:()=>{i("settings"),P(!1)},children:"Settings"})]})]})})}),e.jsx(Ls,{fallback:e.jsx("div",{className:s["error-message"],children:"Failed to load projects"}),children:a==="project"&&!L&&e.jsxs("div",{className:s["project-dropdown-container"],children:[e.jsxs("div",{className:s["project-name"],title:_==null?void 0:_.value,onClick:Kt,children:[e.jsxs("div",{className:s["project-name-container"],children:[e.jsxs("div",{className:s["project-icon"],style:{backgroundColor:(Te=_==null?void 0:_.symbol)==null?void 0:Te.color},children:[((Oe=_==null?void 0:_.symbol)==null?void 0:Oe.useEmoji)&&((Ue=_==null?void 0:_.symbol)==null?void 0:Ue.emoji),((He=_==null?void 0:_.symbol)==null?void 0:He.useInitialAlphabet)&&_.value[0].toUpperCase(),((Be=_==null?void 0:_.symbol)==null?void 0:Be.useLogo)&&e.jsx("img",{src:(Qe=_==null?void 0:_.symbol)==null?void 0:Qe.logo,alt:_.value})]}),e.jsx("div",{className:s["project-name-text"],children:_==null?void 0:_.value})]}),e.jsx(U,{component:b?ut:pt,className:s["dropdown-icon"]})]}),b&&e.jsx("div",{className:s["projects-list"],onScroll:Bt,ref:v,children:(Ze=t==null?void 0:t.projects)!=null&&Ze.hm?e.jsxs(e.Fragment,{children:[ee.loading&&q.length===0&&e.jsx("div",{className:s["loading-more"],style:{height:"140px"},children:e.jsx(pe,{})}),W(q)&&q.map(l=>{var J,ie,oe,te,je,ve;return e.jsxs("div",{className:z(s["project-item"],{[s.selected]:l.key===_.key}),onClick:()=>Ve(l),children:[e.jsxs("div",{className:s["project-icon"],style:{backgroundColor:(J=l==null?void 0:l.symbol)==null?void 0:J.color},children:[((ie=l==null?void 0:l.symbol)==null?void 0:ie.useEmoji)&&((oe=l==null?void 0:l.symbol)==null?void 0:oe.emoji),((te=l==null?void 0:l.symbol)==null?void 0:te.useInitialAlphabet)&&l.value[0].toUpperCase(),((je=l==null?void 0:l.symbol)==null?void 0:je.useLogo)&&e.jsx("img",{src:(ve=l==null?void 0:l.symbol)==null?void 0:ve.logo,alt:l.value})]}),e.jsx("span",{className:s["project-item-name"],children:l.value})]},l.key)}),(H||ee.loading)&&q.length>0&&e.jsx(pe,{})]}):e.jsxs(e.Fragment,{children:[Tt.map(l=>{var J,ie,oe,te,je,ve;return e.jsxs("div",{className:z(s["project-item"],{[s.selected]:l.key===_.key}),onClick:()=>Ve(l),children:[e.jsxs("div",{className:s["project-icon"],style:{backgroundColor:(J=l==null?void 0:l.symbol)==null?void 0:J.color},children:[((ie=l==null?void 0:l.symbol)==null?void 0:ie.useEmoji)&&((oe=l==null?void 0:l.symbol)==null?void 0:oe.emoji),((te=l==null?void 0:l.symbol)==null?void 0:te.useInitialAlphabet)&&l.value[0].toUpperCase(),((je=l==null?void 0:l.symbol)==null?void 0:je.useLogo)&&e.jsx("img",{src:(ve=l==null?void 0:l.symbol)==null?void 0:ve.logo,alt:l.value})]}),e.jsx("span",{className:s["project-item-name"],children:l.value})]},l.key)}),Me&&be&&e.jsx(pe,{})]})})]})}),a==="project"&&L&&e.jsx(pe,{}),j&&e.jsx(pe,{}),p&&e.jsx(Se,{msg:me(x)||"Something went wrong. Please try again.",refreshCall:h}),!j&&!p&&(a==="project"?e.jsxs(e.Fragment,{children:[e.jsxs(O,{className:s["overview-div"],to:`/project/${D}/overview`,style:Ne,onClick:()=>o(!1),children:[e.jsx(U,{component:Rt}),e.jsx("span",{children:"Overview"})]}),e.jsxs("div",{className:s["main-menu"],children:[e.jsx(zt,{path:m,res:n||{},userInfo:(Ke=t==null?void 0:t.userInfo)==null?void 0:Ke.role,setIsMobileMenuOpen:o,videoStudioData:u,location:w,modelTypes:g}),((Je=t==null?void 0:t.accountInfo)==null?void 0:Je.type)!=="PERSONAL"&&e.jsx("div",{"data-tour":"showcase",children:e.jsx(B,{to:`/project/${D}/showcase`,icon:_e,title:"Showcase",isActive:g==null?void 0:g.showcase,userInfo:(Ye=t==null?void 0:t.userInfo)==null?void 0:Ye.role,setIsMobileMenuOpen:o})}),((Xe=t==null?void 0:t.userInfo)==null?void 0:Xe.role)!=="VIEWER"&&((De=t==null?void 0:t.userInfo)==null?void 0:De.role)!=="INTERACTIVE"&&e.jsx(B,{to:`/project/${D}
1/prompts`,icon:Mt,title:"Prompt Library",isActive:g==null?void 0:g.prompt,userInfo:(et=t==null?void 0:t.userInfo)==null?void 0:et.role,setIsMobileMenuOpen:o}),((tt=t==null?void 0:t.userInfo)==null?void 0:tt.role)!=="VIEWER"&&((at=t==null?void 0:t.userInfo)==null?void 0:at.role)!=="INTERACTIVE"&&e.jsx("div",{"data-tour":"favorites",children:e.jsx(B,{to:`/project/${D}/favorites`,icon:Gt,title:"Favorites",userInfo:(st=t==null?void 0:t.userInfo)==null?void 0:st.role,setIsMobileMenuOpen:o})}),((nt=t==null?void 0:t.accountInfo)==null?void 0:nt.type)!=="PERSONAL"&&e.jsx("div",{"data-tour":"poll",children:e.jsx(B,{to:`/project/${D}/polls`,icon:At,title:"Poll",isActive:g==null?void 0:g.poll,userInfo:(it=t==null?void 0:t.userInfo)==null?void 0:it.role,setIsMobileMenuOpen:o})}),(((ot=t==null?void 0:t.userInfo)==null?void 0:ot.role)==="ADMIN"||((ct=t==null?void 0:t.userInfo)==null?void 0:ct.role)==="MANAGER")&&e.jsx("div",{children:e.jsx(B,{to:`/project/${D}/stats`,icon:_e,title:"Stats",isActive:!0,userInfo:(rt=t==null?void 0:t.userInfo)==null?void 0:rt.role,setIsMobileMenuOpen:o})})]})]}):a==="social"?e.jsxs("div",{className:s["settings-menu-mobile"],children:[e.jsxs(O,{to:"/social-media/account-centre",state:{projectId:c},end:!0,className:({isActive:l})=>z(s["settings-menu-item"],{[s.active]:l}),onClick:()=>o(!1),children:[e.jsx(U,{component:ya,className:s["settings-icon"]}),e.jsx("span",{children:"Account Centre"})]}),e.jsxs(O,{to:"/social-media/post",state:{projectId:c},end:!0,className:({isActive:l})=>z(s["settings-menu-item"],{[s.active]:l}),onClick:()=>o(!1),children:[e.jsx(U,{component:Na,className:s["settings-icon"]}),e.jsx("span",{children:"Post"})]}),e.jsxs("div",{className:s["version-footer"],children:[e.jsxs("span",{className:s.version,children:["v",Ce]}),e.jsx(Z,{type:"vertical",style:{margin:"0 10px",height:"60%"}}),e.jsx("span",{className:s.terms,onClick:()=>window.open("https://www.qwerk.ai/terms","_blank"),children:"Terms"}),e.jsx(Z,{type:"vertical",style:{margin:"0 10px",height:"60%"}}),e.jsx("span",{className:s.privacy,onClick:()=>window.open("https://www.qwerk.ai/privacy-policy","_blank"),children:"Privacy Policy"})]})]}):e.jsxs("div",{className:s["settings-menu-mobile"],children:[e.jsxs(O,{to:"/admin/profile",state:{projectId:c},className:({isActive:l})=>z(s["settings-menu-item"],{[s.active]:l}),onClick:()=>o(!1),children:[e.jsx(U,{component:Ea,className:s["settings-icon"]}),e.jsx("span",{children:"Edit Profile"})]}),e.jsxs(O,{to:"/admin/projects",state:{projectId:c},className:({isActive:l})=>z(s["settings-menu-item"],{[s.active]:l}),onClick:()=>o(!1),children:[e.jsx(U,{component:Ra,className:s["projects-icon"]}),e.jsx("span",{children:"Projects"})]}),e.jsxs(O,{to:"/admin/teammates",state:{projectId:c},className:({isActive:l})=>z(s["settings-menu-item"],{[s.active]:l}),onClick:()=>o(!1),children:[e.jsx(U,{component:Ga,className:s["teammates-icon"]}),e.jsx("span",{children:"Teammates"})]}),e.jsxs(O,{to:"/admin/user-group",state:{projectId:c},className:({isActive:l})=>z(s["settings-menu-item"],{[s.active]:l}),onClick:()=>o(!1),children:[e.jsx(U,{component:Ma,className:s["user-groups-icon"]}),e.jsx("span",{children:"User Groups"})]}),e.jsxs(O,{to:"/admin/notifications",state:{projectId:c},className:({isActive:l})=>z(s["settings-menu-item"],{[s.active]:l}),onClick:()=>o(!1),children:[e.jsx(U,{component:Ee,className:s["notifications-icon"]}),e.jsx("span",{children:"Notifications"})]}),e.jsxs(O,{to:"/accountOverview/projectAnalysis",state:{projectId:c},className:({isActive:l})=>z(s["settings-menu-item"],{[s.active]:l||k.includes("/accountOverview")}),onClick:()=>o(!1),children:[e.jsx(U,{component:St,className:s["account-overview-icon"]}),e.jsx("span",{children:"Account Overview"})]}),e.jsxs(O,{to:"/admin/billing",state:{projectId:c},className:({isActive:l})=>z(s["settings-menu-item"],{[s.active]:l}),onClick:()=>o(!1),children:[e.jsx(U,{component:qa,className:s["billing-plans-icon"]}),e.jsx("span",{children:"Billing Plans"})]}),e.jsxs(O,{to:"/admin/settings",state:{projectId:c},className:({isActive:l})=>z(s["settings-menu-item"],{[s.active]:l}),onClick:()=>o(!1),children:[e.jsx(U,{component:La,className:s["account-settings-icon"]}),e.jsx("span",{children:"Account Settings"})]}),e.jsxs("div",{className:s["version-footer"],children:[e.jsxs("span",{className:s.version,children:["v",Ce]}),e.jsx(Z,{type:"vertical",style:{margin:"0 10px",height:"60%"}}),e.jsx("span",{className:s.terms,onClick:()=>window.open("https://www.qwerk.ai/terms","_blank"),children:"Terms"}),e.jsx(Z,{type:"vertical",style:{margin:"0 10px",height:"60%"}}),e.jsx("span",{className:s.privacy,onClick:()=>window.open("https://www.qwerk.ai/privacy-policy","_blank"),children:"Privacy Policy"})]})]}))]})};function Vs({res:a,selectedProject:i,setIsMobileMenuOpen:r,activeTab:o,setActiveTab:c,videoStudioData:m}){var g,w,k,f,b,G,R,P,E,V,_,$,L,F;const[n]=se(),t=n==null?void 0:n.modelTypes,{projectId:j=""}=K(),p=de();let x="/project/"+j+"/";const h=ue({maxWidth:768}),u=X();return e.jsx(e.Fragment,{children:h?e.jsx($t,{activeTab:o,setActiveTab:c,selectedProject:i,setIsMobileMenuOpen:r,projectId:j,path:x,res:a,user:n,videoStudioData:m}):e.jsxs("div",{className:s["project-sub-menu"],children:[e.jsxs("div",{className:s["menu-header"],children:[e.jsxs("div",{className:s["l-menu"],children:[e.jsx("div",{className:s["selected-project"],children:"Selected Project"}),e.jsx("div",{className:s["project-name"],title:i,children:i})]}),e.jsx("div",{className:s["r-menu"],children:e.jsx(ce,{title:"Edit Project",children:e.jsx(S,{component:qt,onClick:()=>u(x+"edit")})})})]}),e.jsxs(e.Fragment,{children:[e.jsxs(O,{className:s["overview-div"],to:x+"overview",style:Ne,onClick:()=>r(!1),children:[e.jsx(S,{component:Rt}),e.jsx("span",{children:"Overview"})]}),e.jsxs("div",{className:s["main-menu"],children:[e.jsx(zt,{path:x,res:a,userInfo:(g=n==null?void 0:n.userInfo)==null?void 0:g.role,setIsMobileMenuOpen:r,videoStudioData:m,location:p,modelTypes:t}),((w=n==null?void 0:n.accountInfo)==null?void 0:w.type)!=="PERSONAL"&&e.jsx("div",{"data-tour":"showcase",children:e.jsx(B,{to:x+"showcase",icon:_e,title:"Showcase",isActive:t==null?void 0:t.showcase,userInfo:(k=n==null?void 0:n.userInfo)==null?void 0:k.role,setIsMobileMenuOpen:r})}),((f=n==null?void 0:n.userInfo)==null?void 0:f.role)!=="VIEWER"&&((b=n==null?void 0:n.userInfo)==null?void 0:b.role)!=="INTERACTIVE"&&e.jsx(B,{to:x+"prompts",icon:Mt,t
1itle:"Prompt Library",isActive:t==null?void 0:t.prompt,userInfo:(G=n==null?void 0:n.userInfo)==null?void 0:G.role,setIsMobileMenuOpen:r}),((R=n==null?void 0:n.userInfo)==null?void 0:R.role)!=="VIEWER"&&((P=n==null?void 0:n.userInfo)==null?void 0:P.role)!=="INTERACTIVE"&&e.jsx("div",{"data-tour":"favorites",children:e.jsx(B,{to:x+"favorites",icon:Gt,title:"Favorites",userInfo:(E=n==null?void 0:n.userInfo)==null?void 0:E.role,setIsMobileMenuOpen:r})}),((V=n==null?void 0:n.accountInfo)==null?void 0:V.type)!=="PERSONAL"&&e.jsx("div",{"data-tour":"poll",children:e.jsx(B,{to:x+"polls",icon:At,title:"Poll",isActive:t==null?void 0:t.poll,userInfo:(_=n==null?void 0:n.userInfo)==null?void 0:_.role,setIsMobileMenuOpen:r})}),((($=n==null?void 0:n.userInfo)==null?void 0:$.role)==="ADMIN"||((L=n==null?void 0:n.userInfo)==null?void 0:L.role)==="MANAGER")&&e.jsx("div",{children:e.jsx(B,{to:x+"stats",icon:_e,title:"Stats",isActive:!0,userInfo:(F=n==null?void 0:n.userInfo)==null?void 0:F.role,setIsMobileMenuOpen:r})})]})]})]})})}function Ne({isActive:a}){return{background:a?"var(--color-brand-primary-dark)":"",color:"var(--text-color)",borderRadius:"5px"}}function zt({path:a,res:i={},userInfo:r,setIsMobileMenuOpen:o,modelTypes:c,videoStudioData:m,location:n}){const[t,j]=d.useState(""),[p,x]=d.useState(""),[h,u]=Y(),{workspaceId:g=""}=K(),w=de().pathname.includes("video-studio"),k=X(),f=P=>P.includes("workspace")?"1":P.includes("video-studio")?"2":P.includes("social-media")?"3":void 0,[b,G]=d.useState(f(n.pathname));d.useEffect(()=>{G(f(n.pathname))},[n.pathname]),d.useEffect(()=>{var P,E;u({...h,workspaceReload:i==null?void 0:i.refresh,videoStudioReload:m==null?void 0:m.refresh}),(i!=null&&i.s||m!=null&&m.s)&&(W(i==null?void 0:i.data)||W(m==null?void 0:m.data)?(!g&&h.createdWorkspace||h.deleteWorkspace||h.deletedVideoStudio)&&(k(w?a+"video-studio/"+((P=m.data[0])==null?void 0:P.key):a+"workspace/"+((E=i.data[0])==null?void 0:E.key)),h.createdWorkspace&&u({...h,createdWorkspace:!1})):n.pathname.includes("social-media")||k(a+"overview"))},[i==null?void 0:i.data,m==null?void 0:m.data]);const R=[{key:"1",label:e.jsx(B,{icon:ba,title:"Workspaces"}),children:e.jsx(gt,{path:a+"workspace/",res:i,ed:"Create & Generate Image",onClick:()=>j(!0),setIsMobileMenuOpen:o})},{key:"2",label:e.jsx(ye,{isEnabled:c==null?void 0:c.videoStudio,feature:"video_studio",className:s["premium-header"],children:e.jsx(B,{icon:Ja,title:"Video Studio",isActive:c==null?void 0:c.videoStudio})}),collapsible:c!=null&&c.videoStudio||w&&(c!=null&&c.videoStudio)?void 0:"disabled",children:e.jsx(gt,{path:a+"video-studio/",res:m,ed:"Create & Generate Video",onClick:()=>x(!0),setIsMobileMenuOpen:o,isActive:c==null?void 0:c.videoStudio})}];return e.jsxs("div",{className:s["collapse-container"],children:[r!=="VIEWER"&&r!=="INTERACTIVE"&&e.jsx(e.Fragment,{children:e.jsx(ra,{accordion:!0,activeKey:b,onChange:P=>G(P),ghost:!0,items:R,expandIconPosition:"end","data-tour":"workspaces"})}),(t||p)&&e.jsx(It,{isOpen:t||p,modalTitle:t?"WORKSPACE":"VIDEO STUDIO",onCancel:()=>{j(!1),x(!1)}})]})}function gt({ed:a,onClick:i,res:r={},path:o,setIsMobileMenuOpen:c,isActive:m=!0}){const n=de();return e.jsx("div",{className:s["collapse-inner-content"],children:e.jsxs(e.Fragment,{children:[W(r==null?void 0:r.data)&&e.jsx("div",{className:s["collapse-item"],children:r.data.map(t=>e.jsx(O,{to:o+t.key,className:s.item,style:()=>Ne({isActive:n.pathname.startsWith(o+t.key)}),tabIndex:0,"aria-label":t.value,onClick:()=>c(!1),children:t.value},t.key))}),!W(r==null?void 0:r.data)&&e.jsx("div",{className:s["no-data-found"],children:e.jsx(ye,{isEnabled:m,feature:"video_studio",className:s["premium-header"],children:e.jsx("div",{className:s["n-container"],style:{opacity:m?1:.5},children:e.jsxs("div",{className:z(s["n-icon-data"]),onClick:m?i:void 0,children:[e.jsx(S,{component:Pt}),e.jsx("span",{children:a})]})})})})]})})}function B({icon:a,title:i,to:r,isActive:o=!0,userInfo:c,setIsMobileMenuOpen:m}){const n=e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",opacity:o?1:.5},children:[e.jsx(S,{component:a}),e.jsx("span",{children:i})]}),t=p=>{o||p.preventDefault(),m(!1)},j=()=>i==="Prompt Library"?"prompt":i.toLowerCase();if(r){const p=r.startsWith("/")?r.substring(1):r;return e.jsx(ye,{isEnabled:o,feature:j(),className:s["premium-header"],redirectSlug:p,children:e.jsxs(O,{to:r,className:z(s["header-container"],s["non-collapsible-header"],{[s["overview-div"]]:c==="VIEWER"||c==="INTERACTIVE"},{[s.disabled]:!o}),style:Ne,onClick:t,children:[n,!o&&e.jsx(S,{component:Ie,className:s["premium-icon"]})]})})}return e.jsxs("div",{className:z(s["header-container"],s["non-collapsible-header"],{[s.disabled]:!o}),children:[n,!o&&e.jsx(S,{component:Ie,className:s["premium-icon"]})]})}function $s({admin:a}){let i=de();const[r]=se();let o=i.pathname.split("/")[1];const c=K(),m=d.useMemo(()=>{var t;return((t=r==null?void 0:r.menu)==null?void 0:t[o])||[]},[i.pathname,r.menu,o,c.projectId]);function n(t){return t.route}
1return e.jsx("div",{className:s["sub-menu-container"],children:m.map(t=>{var p;let j=t.icons;if(!t.disable)return e.jsxs(yt,{className:z(s["menu-item"],((p=i.pathname)==null?void 0:p.includes(t.key))&&s["selected-menu"],a&&s["admin-view-menu"]),to:n(t),children:[!a&&e.jsx(j,{}),e.jsx("span",{children:t.value})]},t.key)})})}const ge=5;function zs({admin:a,setQuickGuidedTour:i,selectedProject:r,isOpen:o,setIsMobileMenuOpen:c}){var v;let m=localStorage.getItem("selectedProject"),n=(v=JSON.parse(m))==null?void 0:v.key;const[t,j]=Y(),p=de(),x=X(),h=p.pathname.split("/")[1],u=p.pathname.includes("/social-media/"),g=ue({maxWidth:768}),[w,k]=d.useState("project"),[f]=se(),{data:b,isLoading:G,isError:R,error:P,refetch:E}=dt({queryKey:["workspace",n],queryFn:async()=>{const y=await Q.callGetwithParams({url:"/qwerk/workspace/key/value",params:{id:n,fetchTeammates:String(!0)}});if(!y.data)throw new Error("No data received from API");return y.data},refetchOnWindowFocus:!1}),{data:V,isLoading:_,isError:$,error:L,refetch:F}=dt({queryKey:["video-studio",n],queryFn:async()=>{const y=await Q.callGetwithParams({url:"/qwerk/video/studio/key/value/list",params:{projectId:n}});if(!y.data)throw new Error("No data received from API");return y.data},refetchOnWindowFocus:!1});return d.useEffect(()=>{var y,C;W(V==null?void 0:V.data)&&localStorage.setItem("videoStudioId",(y=V.data[0])==null?void 0:y.key),W(b==null?void 0:b.data)&&localStorage.setItem("workspaceId",(C=b.data[0])==null?void 0:C.key)},[V,b]),d.useEffect(()=>{(t.createdWorkspace||t.workspaceReload||t.updated)&&(E(),j({...t,workspaceReload:!1,updated:!1,createdWorkspace:!1})),(t.videoStudioReload||t.updated||t.createdVideoStudio)&&(F(),j({...t,videoStudioReload:!1,updated:!1,createdVideoStudio:!1})),t.deleteWorkspace&&E().then(()=>{W(b.data)?j({...t,deleteWorkspace:!1}):x(`/project/${n}/overview`)}),t.deletedVideoStudio&&F().then(()=>{W(V.data)?j({...t,deletedVideoStudio:!1}):x(`/project/${n}/overview`)})},[t]),g?e.jsx("div",{className:`${s["left-menu-container"]} ${o?s.open:s.closed}`,children:e.jsx($t,{activeTab:w,setActiveTab:k,selectedProject:t.selectedProject,setIsMobileMenuOpen:c,projectId:n,path:`/project/${n}/`,res:b||{},user:f,isLoading:G,isLoadingVideoStudio:_,isError:R,isErrorVideoStudio:$,error:P,videoStudioError:L,refetch:E,videoStudioRefetch:F,videoStudioData:V})}):e.jsxs("div",{className:`${s["left-menu-container"]} ${o?s.open:s.closed}`,children:[h==="admin"&&!g&&e.jsx("div",{className:s["admin-settings"],children:e.jsx("div",{className:s["admin-settings-title"],children:"Admin Settings"})}),h==="superAdmin"&&!g&&e.jsx("div",{className:s["admin-settings"],children:e.jsx("div",{className:s["admin-settings-title"],children:"Super Admin"})}),h==="social-media"&&!g&&e.jsx("div",{className:s["admin-settings"],children:e.jsx("div",{className:s["admin-settings-title"],children:"Social Media"})}),h==="accountOverview"&&!g&&e.jsx("div",{className:s["admin-settings"],children:e.jsx("div",{className:s["admin-settings-title"],children:"Account Overview"})}),h==="project"&&u&&!g&&e.jsx("div",{className:s["admin-settings"],children:e.jsx("div",{className:s["admin-settings-title"],children:"Social Media"})}),a&&!g&&e.jsx($s,{admin:!0}),!G&&!_&&!R&&b?e.jsxs("div",{className:s["left-menu-inner"],children:[e.jsx("div",{children:!a&&e.jsx(Vs,{res:b,selectedProject:r,setIsMobileMenuOpen:c,activeTab:w,setActiveTab:k,videoStudioData:V})}),b&&h!=="accountOverview"&&w==="project"&&!g&&e.jsx(Fs,{workspaceData:b,refetchWorkspace:E,setQuickGuidedTour:i,isMobile:g})]}):e.jsxs(e.Fragment,{children:[(G||_)&&e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:e.jsx(la,{indicator:e.jsx(da,{style:{fontSize:28,color:"#000"},spin:!0})})}),(R||$)&&e.jsx(Se,{msg:me(P)||"Something went wrong. Please try again.",refreshCall:R?E:F})]}),(h==="admin"||h==="superAdmin"||h==="accountOverview")&&e.jsxs("div",{className:s["terms-container"],children:[e.jsx("span",{className:s["terms-link"],onClick:()=>window.open("https://www.qwerk.ai/terms","_blank"),children:"Terms"}),e.jsx(Z,{type:"vertical",className:s.divider}),e.jsx("span",{className:s["privacy-policy"],onClick:()=>window.open("https://www.qwerk.ai/privacy-policy","_blank"),children:"Privacy Policy"})]})]})}
1function Fs({workspaceData:a,refetchWorkspace:i,setQuickGuidedTour:r,isMobile:o}){var p,x,h,u,g,w;const[c,m]=d.useState({showUserGroupModal:!1,showAddedTeammates:!1}),[n]=se(),t=()=>{(a==null?void 0:a.teammates)>0?m({showUserGroupModal:!1,showAddedTeammates:!0}):m({showUserGroupModal:!0,showAddedTeammates:!1})},j=()=>{r("add-icon")};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[((p=n==null?void 0:n.accountInfo)==null?void 0:p.type)!=="PERSONAL"&&((x=n==null?void 0:n.userInfo)==null?void 0:x.role)!=="VIEWER"&&((h=n==null?void 0:n.userInfo)==null?void 0:h.role)!=="INTERACTIVE"&&e.jsx("div",{className:s["team-container"],children:e.jsxs("div",{className:s["team-inner"],style:{height:a.teammates===0?"42px":"auto"},onClick:t,"data-tour":"team-members",children:[a.teammates===0&&e.jsx("div",{className:s["team-icon"],children:e.jsx(S,{component:$a})}),W(a.teammateThumbs)&&a.teammateThumbs.length>0?e.jsxs("div",{className:s["teammate-thumbs"],children:[e.jsxs("div",{className:s["teammates-count"],children:["Teammates In Project - ",a.teammates]}),e.jsxs("div",{className:s["teammates-row"],children:[e.jsxs("div",{className:s["teammates-avatars"],children:[(u=a.teammateThumbs)==null?void 0:u.map((k,f)=>e.jsx("img",{src:k,alt:`Teammate ${f+1}`,className:s["teammate-icon"]},f)),a.teammates>ge?[...Array(ge-((g=a.teammateThumbs)==null?void 0:g.length))].map((k,f)=>e.jsx(S,{component:Pe,className:s["teammate-icon"]},`default-${f}`)):[...Array(a.teammates-((w=a.teammateThumbs)==null?void 0:w.length))].map((k,f)=>e.jsx(S,{component:Pe,className:s["teammate-icon"]},`default-${f}`)),a.teammates>ge&&e.jsxs(jt,{size:30,style:{backgroundColor:"var(--color-brand-primary)",color:"white",marginRight:"-8px",border:"2px solid var(--nav-menu-bg)"},children:["+",a.teammates-ge]})]}),e.jsx(ke,{className:s["right-arrow-icon"]})]})]}):a.teammates>0?e.jsxs("div",{className:s["teammate-thumbs"],children:[e.jsxs("div",{className:s["teammates-count"],children:["Teammates In Project - ",a.teammates]}),e.jsxs("div",{className:s["teammates-row"],children:[e.jsxs("div",{className:s["teammates-avatars"],children:[[...Array(Math.min(5,a.teammates))].map((k,f)=>e.jsx(S,{component:Pe,className:s["teammate-icon"]},f)),a.teammates>5&&e.jsxs(jt,{size:30,style:{backgroundColor:"var(--color-brand-primary)",color:"white",marginRight:"-8px",border:"2px solid var(--nav-menu-bg)"},children:["+",a.teammates-5]})]}),e.jsx(ke,{className:s["right-arrow-icon"]})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"No Team Added"}),e.jsx(S,{className:s["add-icon"],component:Ua})]})]})}),!o&&e.jsx(le,{type:"primary",className:s["guided-tour-button"],onClick:j,children:e.jsxs("div",{className:s["guided-tour-content"],children:[e.jsx(S,{component:Ka,style:{width:"20px",height:"20px"}}),e.jsxs("span",{children:["Take Quick Guided Tour ",e.jsx(S,{component:ke})]})]})})]}),c.showAddedTeammates&&(a==null?void 0:a.teammates)>0&&e.jsx(fs,{open:c.showAddedTeammates,setShowTeamMatesModal:m,refetchWorkspace:i}),c.showUserGroupModal&&(a==null?void 0:a.teammates)===0&&e.jsx(Lt,{isOpen:c.showUserGroupModal,setShowTeamMatesModal:m,teammates:!0,refetchWorkspace:i})]})}function Ws({isOpen:a,onCancel:i}){return e.jsx(we,{isOpen:a,title:null,className:M["account-select-modal"],bodyClassName:M["account-modal-body"],centered:!0,width:570,onRequestClose:i,children:e.jsx("div",{className:M["account-wrapper"],children:e.jsx(ha,{wrapperClassName:M["access-wrapper"],apiUrl:"/qwerk/user/login/account/switch"})})})}function a1({admin:a}){var R;
1const i=d.useRef(),r=d.useRef(),[o,c]=d.useState(),[m]=Y(),[n,t]=d.useState(!1),[j,p]=se(),[x,h]=d.useState(),[u,g]=d.useState(""),[w,k]=d.useState(!1),f=ue({maxWidth:768}),[b,G]=d.useState(!1);return d.useEffect(()=>{var P;p({qwerkTabTitle:"Project - Qwerk"}),(P=i==null?void 0:i.current)!=null&&P.clientWidth&&c(i==null?void 0:i.current.clientWidth)},[(R=i.current)==null?void 0:R.clientWidth]),d.useEffect(()=>{m!=null&&m.selectedProject&&h(m.selectedProject.value)},[m==null?void 0:m.selectedProject]),d.useEffect(()=>{const P=E=>{if(!w||!f)return;const V=r.current&&r.current.contains(E.target),_=E.target.closest(`.${M["menu-icon"]}`)!==null;!V&&!_&&k(!1)};return document.addEventListener("click",P,!0),()=>{document.removeEventListener("click",P,!0)}},[f,w]),e.jsxs("div",{className:M["admin-panel-container"],children:[e.jsxs("div",{className:M["left-section"],ref:i,children:[e.jsx(Ts,{setSwitchPopup:t,user:j,isMobile:f,isMobileMenuOpen:w,setIsMobileMenuOpen:k,clickedHimIcon:b,setClickedHimIcon:G,setUser:p}),e.jsxs("div",{className:`${M["left-main"]} ${w?M["mobile-menu-open"]:""}`,ref:r,children:[!f&&e.jsx(ks,{admin:a,quickGuidedTour:u,setQuickGuidedTour:g,setProject:h,isMobile:f}),e.jsx(zs,{admin:a,quickGuidedTour:u,setQuickGuidedTour:g,selectedProject:x,isOpen:w,setIsMobileMenuOpen:k})]})]}),e.jsx("div",{className:M["right-section"],style:{width:`calc(100% - ${o||0}px)`},children:e.jsx(na,{})}),n&&e.jsx(Ws,{isOpen:n,onCancel:()=>t(!1)})]})}function Ts({setSwitchPopup:a,user:i,isMobile:r,setIsMobileMenuOpen:o,isMobileMenuOpen:c,setUser:m}){var b,G;const n={start:"0",number:10},[t,j]=d.useState(!1),[p,x]=d.useState(n),[h,u]=d.useState(null),[g,w]=d.useState(!1),k=re({request:Q.callGetwithParams,payload:{url:"/qwerk/notification/count"},dontCall:!0}),f=re({request:Q.callGetwithParams,payload:{url:"/qwerk/notification/side/bar/list",params:p},dontCall:!t});return d.useEffect(()=>{t||x(n)},[t]),d.useEffect(()=>{var P,E;ae(k.data)&&(u((P=k.data)==null?void 0:P.notifications),m({...i,subscriptionInfo:(E=k.data)==null?void 0:E.subscriptionInfo}));const R=setInterval(()=>{k.refresh()},1e4);return()=>clearInterval(R)},[k.data]),e.jsxs("div",{className:M["qwerk-logo"],style:{zIndex:t&&99999999},children:[!r&&W(i.accounts)&&e.jsx(ce,{title:"Switch Account",placement:"right",children:e.jsx(S,{component:Qa,className:M["swap-icon"],onClick:()=>a(!0)})}),r?e.jsxs("div",{className:M["qwerk-logo-container"],children:[c?e.jsx(ma,{className:M["close-icon"],onClick:()=>o(!1)}):e.jsx(Va,{className:M["menu-icon"],onClick:()=>o(!0)}),e.jsx("img",{src:mt,alt:"Qwerk Logo",className:M["qwerk-logo-img"]})]}):e.jsx("img",{src:mt,alt:"Qwerk Logo",className:M["qwerk-logo-img"]}),r&&e.jsxs("div",{className:M["mobile-actions"],children:[((b=i==null?void 0:i.userInfo)==null?void 0:b.role)==="ADMIN"&&!(i!=null&&i.superUser)&&e.jsxs("div",{className:M["credit-left-container"],children:[e.jsx(S,{component:ka,className:M["credit-left-icon"]}),e.jsx("span",{className:M["credit-left-text"],children:((G=i==null?void 0:i.subscriptionInfo)==null?void 0:G.creditsLeft)||0})]}),e.jsx("div",{className:M["icon-div"],children:e.jsx(he,{open:t,onOpenChange:R=>{j(R)},content:e.jsx(Ct,{getNotification:f,setPagination:x,getNotificationCount:k,pagination:p,setOpenNotifications:j,isMobile:r}),placement:r?"bottom":"right",trigger:"click",overlayClassName:`${M["notifications-popover"]} ${r?M["mobile-popover"]:""}`,align:r?{offset:[0,-10]}:void 0,destroyTooltipOnHide:!0,getPopupContainer:r?()=>document.body:void 0,children:e.jsxs("div",{className:M["notification-icon-wrapper"],children:[!t&&h>0?e.jsx(S,{component:Et,style:{marginTop:"-6px"}}):e.jsx(S,{component:Ee,style:{opacity:.6,marginTop:"-6px"}}),!t&&h>0&&e.jsx("span",{className:M["notification-badge"],children:h>9?"9+":h})]})})}),e.jsx(Vt,{modelTypes:["project","showcase"]}),e.jsx("div",{className:M["icon-div"],children:e.jsx(he,{open:g,onOpenChange:R=>{w(R)},content:e.jsx(bt,{}),placement:"rightTop",trigger:"click",overlayClassName:M["user-popover-overlay"],children:e.jsx("div",{className:M.inner,role:"button",tabIndex:0,"aria-label":"Open user profile",children:e.jsx(S,{component:Nt})})})})]})]})}export{a1 as default};
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.