PageSourceSearch

https://app.instawrite.ai/_next/static/chunks/pages/userManagement-0af247692805a598.js

js instawrite.ai collected 2026-10-05 12:05:14 UTC 13,206 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1282],{90420:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var i=t(1413),r=t(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},o=t(42135),s=function(e,n){return r.createElement(o.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:n,icon:a}))};s.displayName="EyeInvisibleOutlined";var l=r.forwardRef(s)},99611:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var i=t(1413),r=t(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},o=t(42135),s=function(e,n){return r.createElement(o.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:n,icon:a}))};s.displayName="EyeOutlined";var l=r.forwardRef(s)},68795:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var i=t(1413),r=t(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},o=t(42135),s=function(e,n){return r.createElement(o.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:n,icon:a}))};s.displayName="SearchOutlined";var l=r.forwardRef(s)},69677:function(e,n,t){"use strict";t.d(n,{Z:function(){return I}});var i=t(87462),r=t(4942),a=t(97685),o=t(94184),s=t.n(o),l=t(67294),u=t(53124),c=t(65223),d=t(47673),f=function(e){var n,t=(0,l.useContext)(u.E_),o=t.getPrefixCls,f=t.direction,m=e.prefixCls,p=e.className,v=void 0===p?"":p,x=o("input-group",m),g=o("input"),h=(0,d.ZP)(g),y=(0,a.Z)(h,2),C=y[0],Z=y[1],b=s()(x,(n={},(0,r.Z)(n,x+"-lg","large"===e.size),(0,r.Z)(n,x+"-sm","small"===e.size),(0,r.Z)(n,x+"-compact",e.compact),(0,r.Z)(n,x+"-rtl","rtl"===f),n),Z,v),E=(0,l.useContext)(c.aM),w=(0,l.useMemo)((function(){return(0,i.Z)((0,i.Z)({},E),{isFormItemInput:!1})}),[E]);return C(l.createElement("span",{className:b,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(c.aM.Provider,{value:w},e.children)))},m=t(16591),p=t(71002),v=t(90420),x=t(99611),g=t(98423),h=t(42550),y=t(72922),C=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t},Z=function(e){return e?l.createElement(x.Z,null):l.createElement(v.Z,null)},b={click:"onClick",hover:"onMouseOver"};var E=l.forwardRef((function(e,n){var t=e.visibilityToggle,o=void 0===t||t,c="object"===(0,p.Z)(o)&&void 0!==o.visible,d=(0,l.useState)((function(){return!!c&&o.visible})),f=(0,a.Z)(d,2),v=f[0],x=f[1],E=(0,l.useRef)(null);l.useEffect((function(){c&&x(o.visible)}),[c,o]);var w=(0,y.Z)(E),A=function(){e.disabled||(v&&w(),x((function(e){var n,t=!e;return"object"===(0,p.Z)(o)&&(null===(n=o.onVisibleChange)||void 0===n||n.call(o,t)),t})))},N=function(t){var a=t.getPrefixCls,u=e.className,c=e.prefixCls,d=e.inputPrefixCls,f=e.size,p=C(e,["className","prefixCls","inputPrefixCls","size"]),x=a("input",d),y=a("input-password",c),w=o&&function(n){var t,i=e.action,a=void 0===i?"click":i,o=e.iconRender,s=b[a]||"",u=(void 0===o?Z:o)(v),c=(t={},(0,r.Z)(t,s,A),(0,r.Z)(t,"className",n+"-icon"),(0,r.Z)(t,"key","passwordIcon"),(0,r.Z)(t,"onMouseDown",(function(e){e.preventDefault()})),(0,r.Z)(t,"onMouseUp",(function(e){e.preventDefault()})),t);return l.cloneElement(l.isValidElement(u)?u:l.createElement("span",null,u),c)}(y),N=s()(y,u,(0,r.Z)({},y+"-"+f,!!f)),j=(0,i.Z)((0,i.Z)({},(0,g.Z)(p,["suffix","iconRender","visibilityToggle"])),{type:v?"text":"password",className:N,prefixCls:x,suffix:w});return f&&(j.size=f),l.createElement(m.ZP,(0,i.Z)({ref:(0,h.sQ)(n,E)}
1,j))};return l.createElement(u.C,null,N)})),w=t(68795),A=t(71577),N=t(97647),j=t(4173),k=t(96159),O=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t};var S=l.forwardRef((function(e,n){var t,a,o=e.prefixCls,c=e.inputPrefixCls,d=e.className,f=e.size,p=e.suffix,v=e.enterButton,x=void 0!==v&&v,g=e.addonAfter,y=e.loading,C=e.disabled,Z=e.onSearch,b=e.onChange,E=e.onCompositionStart,S=e.onCompositionEnd,z=O(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),T=l.useContext(u.E_),I=T.getPrefixCls,M=T.direction,P=l.useContext(N.Z),D=l.useRef(!1),B=I("input-search",o),_=I("input",c),R=(0,j.ri)(B,M).compactSize||f||P,L=l.useRef(null),F=function(e){var n;document.activeElement===(null===(n=L.current)||void 0===n?void 0:n.input)&&e.preventDefault()},X=function(e){var n,t;Z&&Z(null===(t=null===(n=L.current)||void 0===n?void 0:n.input)||void 0===t?void 0:t.value,e)},Q="boolean"===typeof x?l.createElement(w.Z,null):null,J=B+"-button",U=x||{},q=U.type&&!0===U.type.__ANT_BUTTON;a=q||"button"===U.type?(0,k.Tm)(U,(0,i.Z)({onMouseDown:F,onClick:function(e){var n,t;null===(t=null===(n=null===U||void 0===U?void 0:U.props)||void 0===n?void 0:n.onClick)||void 0===t||t.call(n,e),X(e)},key:"enterButton"},q?{className:J,size:R}:{})):l.createElement(A.Z,{className:J,type:x?"primary":void 0,size:R,disabled:C,key:"enterButton",onMouseDown:F,onClick:X,loading:y,icon:Q},x),g&&(a=[a,(0,k.Tm)(g,{key:"addonAfter"})]);var K=s()(B,(t={},(0,r.Z)(t,B+"-rtl","rtl"===M),(0,r.Z)(t,B+"-"+R,!!R),(0,r.Z)(t,B+"-with-button",!!x),t),d);return l.createElement(m.ZP,(0,i.Z)({ref:(0,h.sQ)(L,n),onPressEnter:function(e){D.current||y||X(e)}},z,{size:R,onCompositionStart:function(e){D.current=!0,null===E||void 0===E||E(e)},onCompositionEnd:function(e){D.current=!1,null===S||void 0===S||S(e)},prefixCls:_,addonAfter:a,suffix:p,onChange:function(e){e&&e.target&&"click"===e.type&&Z&&Z(e.target.value,e),b&&b(e)},className:K,disabled:C}))})),z=t(56994),T=m.ZP;T.Group=f,T.Search=S,T.TextArea=z.Z,T.Password=E;var I=T},2532:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/userManagement",function(){return t(30844)}])},87961:function(e,n){"use strict";n.Z={src:"/_next/static/media/edit.01e83291.png",height:76,width:76,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAuElEQVR42i2OMQoCMRBF09sKllsKylqJzYKdeATv4A3stBHEwi3FXiwsrawFi7BoIolFgijiQXzDJvAzP2/mD1FyrA+FcXFEHdbv2Md/jQ9XRWOLuVgXT8aFJX6AXvgCacXlAJkkjY9t/A+WowPhnazTpDOanZTsoSOsVHKANyabDJxpTNGe95qBMf+YyIaKoRZwTvODVim4gS0U4GFd6AoENKQmX8JnShLozTpNrdhoaNzxT+NC/gfGgqk2rzuyugAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},30844:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(828),r=t(85893),a=t(67294),o=t(3349),s=t(9473),l=t(7297),u=t(33532),c=t(94589);function d(){var e=(0,l.Z)(["\n  .name-column {\n    display: flex;\n    /* justify-content: space-between; */\n    gap: 16px;\n    .user-email-box {\n      display: grid;\n      .user-name-title {\n        font-family: 'OpenSans-SemiBold';\n        font-size: 14px;\n      }\n      .user-email {\n        font-family: 'OpenSans-SemiBold';\n        color: #6b7280;\n        font-size: 14px;\n      }\n    }\n  }\n"]);return d=function(){return e},e}var f=(0,c.ZP)(u.Z).withConfig({componentId:"sc-925c29d7-0"})(d()),m=t(39965),p=t(87961),v=t(11163),x=t(25675),g=t.n(x),h=t(29004),y=m.Z.Text,C=function(e){var n=e.userData,t=(0,v.useRouter)(),i=[{title:"Name",dataIndex:"name",key:"name",width:120,render:function(e,n){return(0,r.jsx)("div",{className:"name-column",children:(0,r.jsx)("div",{className:"user-email-box",children:(0,r.jsx)(y,{className:"user-email",children:(0,h.fm)(n.displayName)})})})}},{title:"Email",dataIndex:"email",key:"email",render:function(e,n){return(0,r.jsx)(y,{className:"user-name-title",children:n.email})},width:260},{title:"Status",dataIndex:"planStatus",key:"planeStatus",render:function(e,n){var t,i,a;return(0,r.jsx)("div",{children:(null===(t=n.currentSubscriptionDetail
1s)||void 0===t?void 0:t.planInterval)?(0,r.jsx)(y,{children:"".concat((0,h.fm)(null===(i=n.currentSubscriptionDetails)||void 0===i?void 0:i.status),"/\n                  ").concat((0,h.fm)(null===(a=n.currentSubscriptionDetails)||void 0===a?void 0:a.planInterval))}):(0,r.jsx)(y,{children:(0,h.fm)(n.planStatus)})})}},{title:"Plan",dataIndex:"plan",key:"plan",ellipsis:!0,render:function(e,n){var t,i;return(0,r.jsx)("div",{children:(null===(t=n.currentSubscriptionDetails)||void 0===t?void 0:t.planInterval)?(0,r.jsx)(y,{children:"".concat((0,h.fm)(null===(i=n.currentSubscriptionDetails)||void 0===i?void 0:i.productName))}):(0,r.jsx)(y,{children:(0,h.fm)(n.plan)})})}},{title:"Access",dataIndex:"status",key:"status",ellipsis:!0,width:120,render:function(e,n){return(0,r.jsx)(y,{children:(0,h.fm)(n.status)})}},{title:"Authority",dataIndex:"authority",key:"authority",render:function(e,n){return(0,r.jsx)(y,{children:(0,h.fm)(n.authority)})}},{title:"Credits",dataIndex:"userTotalWords",key:"userTotalWords",ellipsis:!0,render:function(e,n){return(0,r.jsx)(y,{children:(0,h.Y4)(n.userTotalWords)})}},{title:"Cost",dataIndex:"userCost",key:"userCost",ellipsis:!0,render:function(e,n){return(0,r.jsx)(y,{children:(0,h.OH)(n.userCost)})}},{title:"Token",dataIndex:"userTotalTokens",key:"userTotalTokens",ellipsis:!0,render:function(e,n){return(0,r.jsx)(y,{children:(0,h.Y4)(n.userTotalTokens)})}},{title:"Join",dataIndex:"date",key:"date",ellipsis:!0,render:function(e,n){var t=null===n||void 0===n?void 0:n.date,i=new Date(1e3*(null===t||void 0===t?void 0:t.seconds)+(null===t||void 0===t?void 0:t.nanoseconds)/1e6).toLocaleString(),a=i.split(",");return(0,r.jsx)("div",{children:(0,r.jsx)(y,{className:"user-name-title",children:"Invalid Date"!==i?a[0]:"N/A"})})}},{title:"Edit",dataIndex:"edit",key:"edit",ellipsis:!0,fixed:"right",render:function(e,n){return(0,r.jsx)(g(),{alt:"edit-image",className:"edit-user",height:20,width:20,src:p.Z,onClick:function(){return function(e){var n=e.uid;t.push("/user-details/".concat(n))}(n)}})}}];return(0,r.jsx)(f,{columns:i,dataSource:n,pagination:!1,scroll:{x:1500}})},Z=t(71206),b=t(19876);function E(){var e=(0,l.Z)(["\n  flex: 1;\n  padding: 20px;\n  .usermanagment-box {\n    margin-top: 1.5rem;\n    margin-bottom: 1.5rem;\n    display: flex;\n    justify-content: center;\n    .usermanagment-title {\n      font-family: 'OpenSans-Bold';\n      font-size: 24px;\n      margin-bottom: 1rem !important;\n    }\n  }\n  .edit-user {\n    cursor: pointer;\n  }\n"]);return E=function(){return e},e}var w=c.ZP.div.withConfig({componentId:"sc-36ded118-0"})(E()),A=function(){var e=(0,s.v9)((function(e){return e.userManagement})).userManagementData,n=((0,i.Z)((0,o.F_)(b.lX),1)[0]||{uid:null}).uid,t=e.userData,l=(0,s.I0)();return(0,a.useEffect)((function(){n&&l((0,Z.rN)({uid:n}))}),[n]),(0,r.jsxs)(w,{children:[(0,r.jsx)("div",{className:"usermanagment-box",children:(0,r.jsx)("div",{className:"usermanagment-title",children:"User Management Table"})}),(0,r.jsx)(C,{userData:t})]})}}},function(e){e.O(0,[1577,8413,7527,1648,2808,8503,3532,9774,2888,179],(function(){return n=2532,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.