1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="46c9257c-2640-4b45-b163-20484dbafb18",e._sentryDebugIdIdentifier="sentry-dbid-46c9257c-2640-4b45-b163-20484dbafb18")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9574],{32033:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[com_id]/admin/members",function(){return a(28070)}])},88629:function(e,t,a){"use strict";a.d(t,{S:function(){return s}});var n=a(85893);a(67294);let s=e=>{let{usersCount:t,remainUsersCount:a,maxUserCount:s,unauthUserCount:l}=e;return(0,n.jsxs)("div",{className:"text-left mt-1 text-[10px] text-gray-500",children:[(0,n.jsxs)("p",{children:["ã¡ã³ãã¼æ°ï¼",t]}),s&&s!==1/0&&(0,n.jsxs)("p",{children:["æ®ãï¼",a,"ï¼æå¾
å¯è½æ°ã¯",s,"ã§ãï¼"]}),(0,n.jsxs)("p",{children:["æªèªè¨¼ã¡ã³ãã¼æ°ï¼",l]})]})}},28212:function(e,t,a){"use strict";var n=a(85893);a(67294);var s=a(99603),l=a(59417);t.Z=e=>{let{id:t,isChecked:a,onChange:r,disabled:i}=e;return(0,n.jsxs)("div",{className:"custom-checkbox flex items-center ".concat(i?"opacity-50 cursor-not-allowed":"cursor-pointer"),style:{position:"relative"},children:[(0,n.jsx)("input",{type:"checkbox",id:t,checked:a,onChange:e=>r&&r(e.target.checked),className:"opacity-0 absolute w-full h-full",disabled:i}),(0,n.jsx)("div",{className:"custom-checkbox-bg".concat(i?" opacity-50":""),children:(0,n.jsx)(s.G,{icon:l.LEp,className:"text-white absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2"})})]})}},70062:function(e,t,a){"use strict";a.d(t,{Y:function(){return c}});var n=a(85893),s=a(67294),l=a(99603),r=a(59417),i=a(28212);let c=e=>{let{options:t,selectedOptions:a,onChange:c,text:o="çµãè¾¼ã¿",width:d="300px",icon:u,isActive:m=!1,showSelectAll:h=!1,emptySelectionText:x}=e,[f,p]=(0,s.useState)(!1),y=(0,s.useRef)(null),b=e=>{y.current&&!y.current.contains(e.target)&&p(!1)};(0,s.useEffect)(()=>(f?document.addEventListener("mousedown",b):document.removeEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b)}),[f]);let w=e=>{a.includes(e)?c(a.filter(t=>t!==e)):c([...a,e])},v=()=>{c([])},g=a.length===t.length,j=0===a.length;return(0,n.jsxs)("div",{className:"relative",ref:y,children:[(0,n.jsxs)("button",{onClick:()=>{p(e=>!e)},className:"flex items-center text-primary text-xs text-center px-2 py-1 h-full cursor-pointer rounded-full min-w-[110px] whitespace-nowrap ".concat((m||!g)&&(a.length>0||j&&x)?"bg-primary-100 border border-primary":"border border-transparent"),children:[(0,n.jsx)("div",{className:"w-4 h-4 mr-2 mt-[1px] mb-[2px]",children:u||(0,n.jsx)(l.G,{icon:r.G_j,className:"w-4 h-4"})}),(0,n.jsx)("span",{children:g?o:j&&x?x:a.length>0?"çµãè¾¼ã¿ä¸":o})]}),f&&(0,n.jsxs)("div",{className:"absolute left-0 mt-2 py-2 bg-white rounded-md shadow-xl z-50",style:{width:d},children:[(0,n.jsx)("div",{className:"flex justify-between items-center px-4 py-2 border-b border-gray-100",children:h?(0,n.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,n.jsx)("button",{onClick:()=>{c(t.map(e=>e.value))},className:"flex-1 text-xs py-1.5 px-2 rounded transition-colors whitespace-nowrap ".concat(g?"bg-primary text-white font-bold":"bg-gray-100 text-gray-600 hover:bg-gray-200"),children:"ãã¹ã¦é¸æ"}),x&&(0,n.jsx)("button",{onClick:v,className:"flex-1 text-xs py-1.5 px-2 rounded transition-colors whitespace-nowrap ".concat(j?"bg-primary text-white font-bold":"bg-gray-100 text-gray-600 hover:bg-gray-200"),children:x})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"font-bold text-xs",children:"çµãè¾¼ã¿ãã¯ãªã¢"}),(0,n.jsxs)("button",{onClick:v,className:"text-xs text-gray-500 flex items-center",children:[(0,n.jsx)(l.G,{icon:r.NBC,className:"mr-1 w-4 h-4"}),"ã¯ãªã¢"]})]})}),(0,n.jsx)("div",{className:"max-h-64 overflow-y-auto",children:t.map(e=>(0,n.jsxs)("div",{className:"cursor-pointer px-4 py-2 hover:bg-gray-100 flex items-center",children:[(0,n.jsx)(i.Z,{id:e.value,isChecked:a.includes(e.value),onChange:()=>w(e.value)}),(0,n.jsx)("label",{htmlFor:e.value,className:"ml-2 text-sm text-gray-700 cursor-pointer",children:e.label})]},e.value))})]})]})}},80183:function(e,t,a){"use strict";var n=a(85893),s=a(67294),l=a(99603),r=a(59417);t.Z=e=>{let{data:t=[],columns:a,onRowClick:i}=e,c=(0,s.useRef)(null),o=(0,s.useRef)(null),d=(0,s.useRef)(null),u=e=>e.maxWidth?{maxWidth:e.maxWidth}:{},m=e=>{i&&i(e)}
1,[h,x]=(0,s.useState)(null),f=()=>x(null);(0,s.useEffect)(()=>{if(null!==h)return document.addEventListener("click",f),()=>{document.removeEventListener("click",f)}},[h]);let p=h===t.length-1,y=t.length<3,b="absolute left-0 mt-2 transform -translate-x-full w-[250px] rounded-md shadow-lg bg-white ".concat(p&&!y?"bottom-0":"top-0"),w=(e,t,a)=>e.menuItems?(0,n.jsxs)("div",{className:"w-full flex items-center justify-center",children:[(0,n.jsx)("button",{type:"button",className:"focus:outline-none w-full",onClick:e=>{e.stopPropagation(),x(h===a?null:a)},children:(0,n.jsx)("div",{className:"w-full flex items-center justify-center",children:(0,n.jsx)(l.G,{icon:r.cNd,className:"h-full w-5 text-primary"})})}),h===a&&(0,n.jsx)("div",{className:b,onClick:e=>e.stopPropagation(),children:(0,n.jsx)("div",{className:"py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu",children:e.menuItems(t).map((e,t)=>(0,n.jsx)("span",{className:"block py-2 text-sm text-gray-700",children:e},t))})})]}):null,v=(e,t,a)=>"menu"===e.key?w(e,t,a):e.render?e.render(t[e.key],t):"string"==typeof e.key||"number"==typeof e.key?t[e.key]:null;return(0,n.jsx)("div",{className:"w-full overflow-x-auto relative min-h-[360px]",children:(0,n.jsxs)("table",{ref:c,className:"w-full bg-white border-2 border-gray-200 shadow-sm divide-y divide-gray-200",children:[(0,n.jsx)("thead",{className:"bg-primary text-white text-left",children:(0,n.jsx)("tr",{children:a.map(e=>(0,n.jsx)("th",{className:"p-4 font-semibold whitespace-nowrap ".concat(e.width," ").concat(e.menuItems?"sticky right-0":""),children:e.header},e.key))})}),(0,n.jsx)("tbody",{ref:o,children:t.map((e,t)=>(0,n.jsx)("tr",{onClick:()=>m(e),className:"hover:bg-gray-100",children:a.map(a=>(0,n.jsx)("td",{className:"".concat(a.menuItems?"sticky right-0 bg-white hover:bg-gray-100":""),style:u(a),children:(0,n.jsx)("div",{ref:d,className:"p-4 ".concat(a.menuItems&&h===t?"z-50":"z-1 whitespace-nowrap overflow-hidden overflow-ellipsis truncate"),children:v(a,e,t)})},a.key))},t))})]})})}},28070:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return z}});var n=a(85893),s=a(67294),l=a(11163),r=a(41664),i=a.n(r),c=a(76569),o=a(5160),d=a(12915),u=a(75621),m=a(14192),h=a(31982),x=a(76075);let f=async e=>{let{comId:t}=e;try{let e=await fetch("/api/admin/bulk_send_email_auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({comId:t})}),a=await e.json();if(!e.ok)throw Error(a.error||"Failed to send bulk email authentication")}catch(e){throw console.error("Error sending bulk email authentication:",e),e}};var p=a(95332);let y=async e=>{let{userId:t}=e;try{p.Z.debug("userId:",t);let e=await fetch("/api/admin/send_email_auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:t})}),a=await e.json();if(!e.ok)throw Error(a.error||"Failed to send email authentication")}catch(e){throw console.error("Error sending email authentication:",e),e}};var b=a(80918),w=a(7505),v=a(8604),g=a(49170),j=a(85352),N=a(80183),k=a(86316),_=a(62785),C=a(88629),E=a(89291);let I=e=>{let{isOpen:t,onRequestClose:a,onConfirmResend:s,unauthUserCount:l}=e;return(0,n.jsx)(E.P,{isOpen:t,onRequestClose:a,title:"",maxWidth:"500px",children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{className:"text-center",children:["æªèªè¨¼ã®ã¦ã¼ã¶ã¼ã¯".concat(l,"åã§ãã"),(0,n.jsx)("br",{}),"èªè¨¼ã¡ã¼ã«ãåéãã¾ããï¼"]}),(0,n.jsxs)("div",{className:"flex justify-end space-x-4 mt-4",children:[(0,n.jsx)("button",{className:"outline-button",onClick:a,children:"ãã£ã³ã»ã«"}),(0,n.jsx)("button",{className:"button",onClick:s,children:"éä¿¡ãã"})]})]})})};var S=a(88675),U=a(40301),P=a(74014),D=a(70062),M=a(40198),O=a(91108);let Z=[{key:"comUserId",label:"ã¦ã¼ã¶ã¼ç®¡çID"},{key:"userName",label:"ã¦ã¼ã¶ã¼ID"},{key:"displayName",label:"表示å"},{key:"email",label:"ã¡ã¼ã«ã¢ãã¬ã¹"},{key:"totalPlayedEpisodes",label:"ç·åçæ°"},{key:"recentMonthPlayedEpisodes",label:"ææ°1ã¶æåçæ°"},{key:"roleId",label:"ãã¼ã«ID"},{key:"newEpisodeMailNotification",label:"æ°çã¨ãã½ã¼ãã¡ã¼ã«éç¥"},{key:"appPushNotification",label:"æ°çã¨ãã½ã¼ãã¢ããªéç¥"},{key:"createdAt",label:"ç»é²æ¥"},{key:"lastLoginAt",label:"æçµè´åæ¥"},{key:"isEmailAuthenticated",label:"ã¡ã¼ã«èªè¨¼"}];var z=()=>{var e;let t=(0,l.useRouter)().query.com_id,{loading:a}=(0,d.Q)(),{isUserAdmin:r}=(0,u.G)(),{userInfo:E,isUpdatedUserInfo:z}=(0,o.P)(),{setSuccessMessage:T,setErrorMessage:L,community:R,setCommunity:A,checkedCommunityAuth:F}
1=(0,c.s)(),[J,B]=(0,s.useState)(null),G=(0,s.useRef)(null),[V,q]=(0,s.useState)(""),[W,Y]=(0,s.useState)(null),[K,X]=(0,s.useState)(!1),[Q,H]=(0,s.useState)(!1),$=(0,s.useRef)(null),[ee,et]=(0,s.useState)(!1),[ea,en]=(0,s.useState)({column:"created_at",direction:"desc"}),[es,el]=(0,s.useState)([]),[er,ei]=(0,s.useState)([]),ec=[{value:"created_at-desc",label:"ç»é²æ¥ã®æ°ããé "},{value:"created_at-asc",label:"ç»é²æ¥ã®å¤ãé "},{value:"last_login_at-desc",label:"æçµè´åæ¥ã®æ°ããé "},{value:"last_login_at-asc",label:"æçµè´åæ¥ã®å¤ãé "},{value:"com_user_id-asc",label:"ã¦ã¼ã¶ã¼ç®¡çIDã§æé (a-z)"},{value:"com_user_id-desc",label:"ã¦ã¼ã¶ã¼ç®¡çIDã§éé (z-a)"},...(null==R?void 0:R.isUseComUserId)?[{value:"com_user_id-asc",label:"ã¦ã¼ã¶ã¼ç®¡çIDã§æé (a-z)"},{value:"com_user_id-desc",label:"ã¦ã¼ã¶ã¼ç®¡çIDã§éé (z-a)"}]:[]],eo=async e=>{"Enter"===e.key&&ev(V,ea,es)},ed=async e=>{try{H(!0),await y({userId:e}),T("åèªè¨¼ã¡ã¼ã«ãéä¿¡ãã¾ããã")}catch(e){L("åèªè¨¼ã¡ã¼ã«ã®éä¿¡ã«å¤±æãã¾ããã")}finally{H(!1)}};(0,s.useEffect)(()=>(document.addEventListener("mousedown",ex),()=>{document.removeEventListener("mousedown",ex)}),[]),(0,s.useEffect)(()=>{var e,t;let a=(0,P.Z)(),n=null===(e=a.members)||void 0===e?void 0:e.orderBy,s=null===(t=a.members)||void 0===t?void 0:t.filters;n&&en(n),s&&s.length>0&&(el(s),"is_email_authenticated"===s[0].column&&ei(["unauthenticated"]))},[]),(0,s.useEffect)(()=>{let e=async()=>{try{let e=await (0,x.J)(t);e&&Y(e)}catch(e){L("ã¦ã¼ã¶ã¼å®¹éã®ç¢ºèªä¸ã«ã¨ã©ã¼ãçºçãã¾ãã")}};t&&z&&e()},[t,z]),(0,s.useEffect)(()=>{E&&(p.Z.debug("refetch start"),p.Z.debug("refetch start, filters:",es),p.Z.debug("refetch start, orderBy:",ea),p.Z.debug("refetch start, searchKeyword:",V),ev(V,ea,es),console.log("refetch end"))},[E,ea,es]);let eu=()=>{X(!1)},em=async()=>{eu(),await eh()},eh=async()=>{try{H(!0),await f({comId:t}),T("èªè¨¼ã¡ã¼ã«ãåéãã¾ããã")}catch(e){console.error("Error sending authentication emails:",e),L("èªè¨¼ã¡ã¼ã«ã®åéã«å¤±æãã¾ããã")}finally{H(!1)}},ex=e=>{G.current&&!G.current.contains(e.target)&&B(null)},ef=[{key:"roleId",header:"ãã¼ã«",width:"w-16",render:e=>{switch(e){case 1:return"管çè
";case 2:return"ã¹ãã¼ã«ã¼";default:return"ãªã¹ãã¼"}}},{key:"displayName",header:"åå",width:"w-60 min-w-40",render:(e,t)=>(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsx)("img",{src:t.displayThumbnailUrl||"/images/default_icon.png",alt:t.displayName,className:"w-8 h-8 rounded-full"}),(0,n.jsx)("span",{className:"whitespace-nowrap truncate",style:{maxWidth:"calc(100% - 2.5rem)"},children:e})]})},...(e=(null==R?void 0:R.isUseComUserId)||!1)?[{key:"comUserId",header:"ã¦ã¼ã¶ã¼ç®¡çID",width:"w-32"}]:[],...e?[]:[{key:"userName",header:"ã¦ã¼ã¶ã¼ID",width:"w-32"}],{key:"email",header:"ã¡ã¼ã«ã¢ãã¬ã¹",width:"w-40"},{key:"totalPlayedEpisodes",header:"ç·åçæ°",width:"w-16"},{key:"recentMonthPlayedEpisodes",header:"ææ°1ã¶æåçæ°",width:"w-16"},{key:"newEpisodeMailNotification",header:"æ°çã®ã¡ã¼ã«éç¥",width:"w-40",render:e=>e?"åãåã":"åãåããªã"},...(null==R?void 0:R.isListenerAppEnabled)?[{key:"appPushNotification",header:"æ°çã®ã¢ããªéç¥",width:"w-40",render:e=>e?"åãåã":"åãåããªã"}]:[],{key:"lastLoginAt",header:"æçµè´åæ¥",width:"w-28",render:e=>"string"==typeof e?(0,b.o)(new Date(e),!1):"æªè´å"},{key:"createdAt",header:"ç»é²æ¥",width:"w-28",render:e=>"string"==typeof e?(0,b.o)(new Date(e),!1):"æªç»é²"},{key:"isEmailAuthenticated",header:"ã¡ã¼ã«èªè¨¼",width:"w-28",render:e=>e?"å®äºæ¸ã¿":"æªèªè¨¼"},{key:"menu",header:"",width:"w-10",menuItems:e=>[(0,n.jsxs)("div",{className:"py-2",onClick:()=>B(e.id||null),children:[(0,n.jsx)(i(),{href:"/".concat(t,"/admin/members/").concat(e.id),children:(0,n.jsx)("div",{className:"hover:bg-gray-100 cursor-pointer p-2 w-full",children:"詳細ãè¦ã"})}),e.id&&!e.isEmailAuthenticated&&(null==R?void 0:R.isManualUserManagement)&&(0,n.jsx)("div",{className:"hover:bg-gray-100 cursor-pointer p-2 w-full",onClick:()=>
1ed(e.id),children:"åèªè¨¼ã¡ã¼ã«ãéã"},"resend-auth-email-".concat(e.id))]},"menu-".concat(e.id))]}],{data:ep,currentPage:ey,totalItems:eb,handlePageChange:ew,refetch:ev,isSearching:eg}=(0,m.h)(t,h.i,"members",V),ej=e=>{let t=es.filter(t=>e.some(e=>e.value===t.column));0===e.length?(ei([]),(0,P.x)({members:{orderBy:ea,filters:[]}})):(e.forEach(e=>{"unauthenticated"===e.value&&(t.some(e=>"is_email_authenticated"===e.column)||(t.push({column:"is_email_authenticated",type:"equals",value:!1}),ei(["unauthenticated"])))}),(0,P.x)({members:{orderBy:ea,filters:t}})),el(t)},eN=async()=>{try{let{data:e,totalCount:a}=await (0,h.i)(t,-1,0,ea,V,!0,es);e&&a>0?((null==R?void 0:R.isUseComUserId)?e.forEach(e=>{delete e.userName}):e.forEach(e=>{delete e.comUserId}),await (0,w.D)(e,"members",Z)):console.error("CSVãã¦ã³ãã¼ãããã¡ã³ãã¼ãã¼ã¿ãåå¨ãã¾ããã")}catch(e){console.error("CSVãã¦ã³ãã¼ãã«å¤±æãã¾ãã",e),L("CSVãã¦ã³ãã¼ãã«å¤±æãã¾ãããæéãããã¦å度ã試ããã ããã")}},ek=(0,v.J)(t,R,W);return r&&z&&F?(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(g.p,{pageTitle:"ã¡ã³ãã¼ä¸è¦§"}),Q?(0,n.jsx)("div",{className:"fixed top-0 left-0 w-full h-full bg-white bg-opacity-50 flex items-center justify-center z-50",children:(0,n.jsx)(j.a,{})}):null,(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)(M.E,{menuItems:ek}),(0,n.jsx)("div",{className:"container main-content overflow-auto",children:(0,n.jsxs)("div",{className:"max-w-full",children:[(0,n.jsxs)("div",{className:"flex justify-between mb-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"text-2xl font-semibold",children:"ã¡ã³ãã¼ä¸è¦§"}),W&&W.remainUsersCount!==1/0&&(0,n.jsx)(C.S,{usersCount:W.usersCount,remainUsersCount:W.remainUsersCount,maxUserCount:W.maxUserCount,unauthUserCount:W.unauthUserCount})]}),(0,n.jsx)("div",{children:(0,n.jsxs)("div",{className:"flex justify-end space-x-2",children:[W&&0!==W.unauthUserCount&&(null==R?void 0:R.isManualUserManagement)&&(0,n.jsx)("button",{className:"outline-button w-[194px]",onClick:()=>{X(!0)},children:"èªè¨¼ã¡ã¼ã«ãåéãã"}),(0,n.jsx)("button",{className:"outline-button w-[194px]",onClick:eN,children:"CSVãã¦ã³ãã¼ã"})]})})]}),(0,n.jsx)("div",{className:"my-4",children:(0,n.jsx)(_.M,{id:"memberSearch",placeholder:"ã¡ã³ãã¼ãæ¤ç´¢...ï¼è¡¨ç¤ºå/ã¡ã¼ã«ã¢ãã¬ã¹/ã¦ã¼ã¶ã¼åã§æ¤ç´¢ãã¾ãï¼",onChange:e=>{q(e.target.value)},onKeyUp:eo,onClear:()=>ev("",ea,es)})}),(0,n.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,n.jsx)("div",{children:(0,n.jsx)(D.Y,{options:[{label:"æªèªè¨¼ã®ã¦ã¼ã¶ã¼",value:"unauthenticated"}],selectedOptions:er,onChange:e=>{p.Z.debug("selected",e),ei(e),ej(e.map(e=>({label:e,value:e})))}})}),(0,n.jsx)("div",{ref:$,className:"relative z-5",children:(0,n.jsx)(S.r,{isOpen:ee,handleToggle:()=>et(!ee),text:"created_at"===ea.column&&"desc"===ea.direction?"ç»é²æ¥ã®æ°ããé ":"created_at"===ea.column&&"asc"===ea.direction?"ç»é²æ¥ã®å¤ãé ":"last_login_at"===ea.column&&"desc"===ea.direction?"æçµè´åæ¥ã®æ°ããé ":"last_login_at"===ea.column&&"asc"===ea.direction?"æçµè´åæ¥ã®å¤ãé ":"com_user_id"===ea.column&&"asc"===ea.direction?"ã¦ã¼ã¶ã¼ç®¡çIDã§æé (a-z)":"com_user_id"===ea.column&&"desc"===ea.direction?"ã¦ã¼ã¶ã¼ç®¡çIDã§éé (z-a)":"ä¸¦ã³æ¿ã",width:"280px",children:(0,n.jsx)(U.Y,{options:ec,selectedValue:"".concat(ea.column,"-").concat(ea.direction),handleSelect:e=>
1{let[t,a]=e.split("-");p.Z.debug("handleOrderChange",t,a);let n={column:t,direction:a};(0,P.x)({members:{orderBy:n,filters:es}}),en(n),et(!1)}})})})]}),eg||!ep?(0,n.jsx)("div",{className:"my-24",children:(0,n.jsx)(j.a,{type:"small"})}):ep&&ep.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(N.Z,{data:ep,columns:ef,onRowClick:e=>{J===e.id?B(null):e.id&&B(e.id)}}),-1!==eb&&(0,n.jsx)(k.Z,{currentPage:ey,totalItems:eb,itemsPerPage:30,onChange:ew})]}):(0,n.jsxs)("div",{className:"mt-24 text-center",children:[(0,n.jsx)("p",{className:"text-center mb-4",children:""===V?"ã¾ã ã¡ã³ãã¼ããã¾ããã":"ä¸è´ããã¡ã³ãã¼ããã¾ããã"}),R&&!R.isEnterprise&&(0,n.jsx)(i(),{href:"/".concat(t,"/admin/members/invite"),children:(0,n.jsx)("button",{className:"button",children:"æå¾
ãã"})})]})]})}),(0,n.jsx)(I,{isOpen:K,onRequestClose:eu,onConfirmResend:em,unauthUserCount:(null==W?void 0:W.unauthUserCount)||0})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j.a,{}),(0,n.jsx)(O.M,{})]})}},31982:function(e,t,a){"use strict";a.d(t,{i:function(){return l}});var n=a(87066),s=a(34526);let l=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{column:"created_at",direction:"desc"},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=!(arguments.length>5)||void 0===arguments[5]||arguments[5],c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[];try{t===1/0&&(t=-1);let o=await n.Z.post("/api/admin/get_admin_members",{communityId:e,limit:t,offset:a,orderBy:l,searchKeyword:r,isAdminInfo:i,filters:c});return{data:await Promise.all(o.data.data.map(async e=>({...e,displayThumbnailUrl:e.thumbnailUrl?await (0,s.q)(!0,e.thumbnailUrl):"/images/default_icon.png"}))),totalCount:o.data.totalCount||0}}catch(e){throw e}}},76075:function(e,t,a){"use strict";async function n(e){try{let t=await fetch("/api/shared/check_user_capacity",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({comId:e})});if(!t.ok)throw Error("Failed to fetch user capacity");return await t.json()}catch(e){return console.error("Error checking member capacity:",e),null}}a.d(t,{J:function(){return n}})},8604:function(e,t,a){"use strict";a.d(t,{J:function(){return n}});let n=(e,t,a)=>{let n=[{name:"ã¡ã³ãã¼ä¸è¦§",link:"/".concat(e,"/admin/members")}];return(null==t?void 0:t.isEnterprise)&&(null==t?void 0:t.isManualUserManagement)&&n.push({name:"ã¡ã³ãã¼ãç»é²ãã",link:"/".concat(e,"/admin/members/manage/new")}),(null==t?void 0:t.isEnterprise)&&(null==t?void 0:t.isManualUserManagement)?n.push({name:"ã¡ã³ãã¼ç®¡çï¼CSVï¼",link:"/".concat(e,"/admin/members/manage")}):(null==t?void 0:t.isEnterprise)||n.push({name:"ã¡ã³ãã¼ã®æå¾
",link:"/".concat(e,"/admin/members/invite")}),(null==t?void 0:t.isSsoAuthorized)&&n.push({name:"管çè
è¨å®ï¼SSOï¼",link:"/".concat(e,"/admin/members/manage-admin-emails")}),n}}},function(e){e.O(0,[4726,5650,7299,68,2888,9774,179],function(){return e(e.s=32033)}),_N_E=e.O()}]);
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.