PageSourceSearch

https://ddevi.com/_next/static/chunks/pages/dashboard/team/own-account-access-332883ca89f84454.js

js ddevi.com collected 2026-10-01 15:16:08 UTC 12,970 bytes, 1 lines download raw bytes

vendor: 4,651 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5651],{27484:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",s="second",i="minute",a="hour",c="day",u="week",l="month",o="quarter",d="year",f="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),s=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(s,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),s=t.clone().add(r,l),i=n-s<0,a=t.clone().add(r+(i?-1:1),l);return+(-(r+(n-s)/(i?s-a:a-s))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:u,d:c,D:f,h:a,m:i,s:s,ms:r,Q:o}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",y={};y[v]=p;var $=function(e){return e instanceof M},w=function(e,t,n){var r;if(!e)return v;if("string"==typeof e)y[e]&&(r=e),t&&(y[e]=t,r=e);else{var s=e.name;y[s]=e,r=s}return!n&&r&&(v=r),r||!n&&v},j=function(e,t){if($(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new M(n)},N=b;N.l=w,N.i=$,N.w=function(e,t){return j(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var M=function(){function p(e){this.$L=w(e.locale,null,!0),this.parse(e)}var g=p.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(N.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(m);if(r){var s=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return N},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var n=j(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return j(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<j(e)},g.$g=function(e,t,n){return N.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!N.u(t)||t,o=N.p(e),h=function(e,t){var s=N.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?s:s.endOf(c)},m=function(e,t){return N.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},x=this.$W,p=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(o){case d:return r?h(1,0):h(31,11);case l:return r?h(1,p):h(0,p+1);case u:var v=this.$locale().weekStart||0,y=(x<v?x+7:x)-v;return h(r?g-y:g+(6-y),p);case c:case f:return m(b+"Hours",0);case a:return m(b+"Minutes",1);case i:return m(b+"Seconds",2);case s:return m(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,u=N.p(e),o="set"+(this.$u?"UTC":""),h=(n={},n[c]=o+"Date",n[f]=o+"Date",n[l]=o+"Month",n[d]=o+"FullYear",n[a]=o+"Hours",n[i]=o+"Minutes",n[s]=o+"Seconds",n[r]=o+"Milliseconds",n)[u],m=u===c?this.$D+(t-this.$W):t;if(u===l||u===d){var x=this.clone().set(f,1);x.$d[h](m),x.init(),this.$d=x.set(f,Math.min(this.$D,x.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[N.p(e)]()},g.add=function(r,o){var f,h=this;r=Number(r);var m=N.p(o),x=function(e){var t=j(h);return N.w(t.date(t.date()+Math.round(e*r)),h)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===c)return x(1);if(m===u)return x(7);var p=(f={},f[i]=t,f[a]=n,f[s]=e,f)[m]||1,g=this.$d.getTime()+r*p;return N.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",s=N.z(this),i=this.$H,a=this.$m,c=this.$M,u=n.weekdays,l=n.months,o=function(e,n,s,i){return e&&(e[
1n]||e(t,r))||s[n].substr(0,i)},d=function(e){return N.s(i%12||12,e,"0")},f=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:c+1,MM:N.s(c+1,2,"0"),MMM:o(n.monthsShort,c,l,3),MMMM:o(l,c),D:this.$D,DD:N.s(this.$D,2,"0"),d:String(this.$W),dd:o(n.weekdaysMin,this.$W,u,2),ddd:o(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:N.s(i,2,"0"),h:d(1),hh:d(2),a:f(i,a,!0),A:f(i,a,!1),m:String(a),mm:N.s(a,2,"0"),s:String(this.$s),ss:N.s(this.$s,2,"0"),SSS:N.s(this.$ms,3,"0"),Z:s};return r.replace(x,(function(e,t){return t||m[e]||s.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,f,h){var m,x=N.p(f),p=j(r),g=(p.utcOffset()-this.utcOffset())*t,b=this-p,v=N.m(this,p);return v=(m={},m[d]=v/12,m[l]=v,m[o]=v/3,m[u]=(b-g)/6048e5,m[c]=(b-g)/864e5,m[a]=b/n,m[i]=b/t,m[s]=b/e,m)[x]||b,h?v:N.a(v)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return y[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return N.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},p}(),D=M.prototype;return j.prototype=D,[["$ms",r],["$s",s],["$m",i],["$H",a],["$W",c],["$M",l],["$y",d],["$D",f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),j.extend=function(e,t){return e.$i||(e(t,M,j),e.$i=!0),j},j.locale=w,j.isDayjs=$,j.unix=function(e){return j(1e3*e)},j.en=y[v],j.Ls=y,j.p={},j}()},64747:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/team/own-account-access",function(){return n(90264)}])},43288:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(85893);function s(e){var t=e.title,n=e.subtitle,s=e.message,i=e.cta1,a=e.cta2;return(0,r.jsx)("section",{className:"bg-white flex items-center justify-center px-6",style:{minHeight:"75vh"},children:(0,r.jsxs)("div",{className:"max-w-2xl mx-auto text-center flex justify-center items-center flex-col",children:[(0,r.jsx)("span",{className:"text-5xl md:text-6xl text-blue-500 leading-tight font-bold",children:t}),(0,r.jsx)("h2",{className:"mb-4 mt-2 text-3xl md:text-4xl leading-tight font-bold tracking-tighter",children:n}),(0,r.jsx)("p",{className:"mb-6 text-lg md:text-xl text-coolGray-500",children:s}),(0,r.jsxs)("div",{className:"flex flex-wrap pt-3",children:[i&&(0,r.jsx)("div",{className:"w-full md:w-auto py-1 md:py-0 md:mr-6",children:(0,r.jsx)("button",{className:"inline-block py-3 px-7 w-full text-base md:text-lg leading-4 text-blue-50 font-medium text-center bg-blue-500 hover:bg-blue-600 focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50 border border-blue-500 rounded-md shadow-sm",onClick:i.onClick,children:i.label})}),a&&(0,r.jsx)("div",{className:"w-full md:w-auto py-1 md:py-0",children:(0,r.jsx)("button",{className:"inline-block py-3 px-7 w-full text-base md:text-lg leading-4 text-coolGray-800 font-medium text-center bg-white hover:bg-coolGray-100 focus:ring-2 focus:ring-coolGray-200 focus:ring-opacity-50 border border-coolGray-200 rounded-md shadow-sm",onClick:a.onClick,children:a.label})})]})]})})}},90264:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return v},default:function(){return y}});var r=n(47568),s=n(34051),i=n.n(s),a=n(85893),c=n(51575),u=n(66605),l=n(43288),o=n(67294),d=n(60419),f=n(62474),h=n(2642),m=n(74931),x=n(11163),p=n(63153),g=n(27484),b=n.n(g),v=!0;function y(e){var t=e.error,n=e.data,s=(0,x.useRouter)(),g=(0,o.useState)(!1),v=g[0],y=g[1],$=function(){return y(!v)};function w(){return(w=(0,r.Z)(i().mark((function e(t){var n,r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.prev=1,m.ZP.loading("Adding member...",{duration:1e3}),n=new FormData(t.target),r=Object.fromEntries(n.entries()),e.next=7,(0,h.ZP)({url:"user/add-access",method:"post",data:{name:r.name,email:r.email}});case 7:a=e.sent,m.ZP.success(a.message),s.reload(),$(),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),m.ZP.error((0,h.Mx)(e.t0));case 16:case"end":return e.stop()}}),e,null,[[1,13]])})))).apply(this,arguments)}function j(){return(j=(0,r.Z)(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,confirm("Are you sure you want to remove this member?")){e.next=4;break}return e.abrupt("return");case 4:return m.ZP.loading("Removing member...",{duration:1e3}),e.next=7,(0,h.ZP)({url:"user/remove-access",method:"post",data:{id:t}});case 7:n=e.sent,m.ZP.success(n.message),s.reload(),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),m.ZP.error((0,h.Mx)(e.t0));case 15:case"end":return e.stop()}}),e,null,[[0,12]])})))).apply(this,arguments)}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Z,{title:"Own Account Access | Team | Devi"}),(0,a.jsx)(u.Z,{}),t?(0,a.jsx)(l.Z,{title:"Error",subtitle:"Something went wrong",message:t}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"pt-8",children:(0,a.jsxs)("div",{className:"container px-4 mx-auto mb-8",children:[(0,a.jsxs)("div",{className:"flex flex-wrap justify-between items-center",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-3xl font-bold",children:"Account Access"}),(0,a.jsx)("p",{className:"mb-3",children:"Give your team members access to your Devi AI account."})]}),(0,a.jsx)("button",{className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 roun
1ded",onClick:$,children:"Add member"})]}),(0,a.jsxs)("div",{className:"w-full mt-4 p-4 bg-white rounded-lg border flex flex-col justify-center items-center",children:[(0,a.jsx)("div",{className:"grid grid-cols-3 gap-4 w-full",children:n.accesses.map((function(e,t){return(0,a.jsxs)("div",{className:"bg-gray-50 border p-3 rounded-lg flex items-start justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-bold text-xl",children:e.name}),(0,a.jsxs)("p",{className:"text-sm text-gray-700",children:[e.email," \u30fb ",b()(e.createdAt).format("MMMM D, YYYY")]})]}),(0,a.jsx)("div",{className:"flex items-center gap-2",children:(0,a.jsx)("button",{className:"text-red-500",onClick:function(){return function(e){return j.apply(this,arguments)}(e._id)},children:(0,a.jsx)(p.XHJ,{className:"h-5 w-5"})})})]},e._id)}))}),0===n.accesses.length&&(0,a.jsxs)("div",{className:"py-5 flex items-center justify-center flex-col gap-3",children:[(0,a.jsx)("p",{className:"font-medium text-2xl",children:"No team members have access to your account."}),(0,a.jsx)("button",{className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-1 px-3 rounded text-lg",onClick:$,children:"Add member"})]})]})]})})}),(0,a.jsx)(d.Z,{open:v,onClose:$,children:(0,a.jsx)("div",{className:"flex flex-col items-center justify-center h-screen p-3",children:(0,a.jsxs)("div",{className:"bg-white w-full rounded-lg min-h-1/6 p-3 overflow-auto scrollbar",style:{maxWidth:800},children:[(0,a.jsxs)("div",{className:"flex justify-between items-center w-full border-b border-gray-200 pb-2",children:[(0,a.jsx)("span",{className:"text-lg font-medium px-2 py-2 text-gray-800 truncate",children:"Give Account Access"}),(0,a.jsx)("span",{className:"material-icons cursor-pointer p-2 hover:text-gray-500 rounded-full",onClick:$,children:"close"})]}),(0,a.jsxs)("form",{onSubmit:function(e){return w.apply(this,arguments)},children:[(0,a.jsxs)("div",{className:"flex flex-wrap mt-5 px-2",children:[(0,a.jsx)("div",{className:"lg:w-1/2 w-full lg:pr-1 mb-2",children:(0,a.jsx)(f.Z,{label:"Name",className:"w-full",size:"small",name:"name"})}),(0,a.jsx)("div",{className:"lg:w-1/2 w-full lg:pl-1 mb-2",children:(0,a.jsx)(f.Z,{label:"Email",className:"w-full",size:"small",name:"email"})})]}),(0,a.jsx)("div",{className:"flex justify-center items-center mb-2",children:(0,a.jsx)("button",{className:"bg-blue-500 text-white font-bold py-1 px-4 rounded-md mt-4",type:"submit",children:"Add Member"})})]})]})})})]})}}},function(e){e.O(0,[1664,363,3153,419,7918,7832,7739,3801,1527,8046,2474,9365,4262,9774,2888,179],(function(){return t=64747,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.