PageSourceSearch

https://mundolingo.org/_next/static/chunks/4797.e3958e8e1985f8dd.js

js mundolingo.org collected 2026-10-02 17:10:21 UTC 4,370 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4797],{18967:(e,s,a)=>{"use strict";a.d(s,{S:()=>n});var i=a(12115);function n(){let[e,s]=(0,i.useState)({isOpen:!1,message:""}),a=(0,i.useCallback)(e=>new Promise(a=>{s({...e,isOpen:!0,resolve:a})}),[]),n=(0,i.useCallback)(()=>{s(e=>{let{resolve:s,...a}=e;return setTimeout(()=>s?.(!0),0),{...a,isOpen:!1,resolve:void 0}})},[]);return{confirm:a,confirmState:e,handleAccept:n,handleDecline:(0,i.useCallback)(()=>{s(e=>{let{resolve:s,...a}=e;return setTimeout(()=>s?.(!1),0),{...a,isOpen:!1,resolve:void 0}})},[]),handleClose:(0,i.useCallback)(()=>{s(e=>{let{resolve:s,...a}=e;return setTimeout(()=>s?.(!1),0),{...a,isOpen:!1,resolve:void 0}})},[])}}},24539:e=>{e.exports={section:"ProfileMembersSection_section__LWZSv",heading:"ProfileMembersSection_heading__A0bwq",hint:"ProfileMembersSection_hint__lkxVG",list:"ProfileMembersSection_list__U26NQ",row:"ProfileMembersSection_row__DKtV6",name:"ProfileMembersSection_name__U_4Oo",ownerBadge:"ProfileMembersSection_ownerBadge__7ipKd",ownerNote:"ProfileMembersSection_ownerNote__OEewQ",caps:"ProfileMembersSection_caps__1nMET",cap:"ProfileMembersSection_cap__BvvpY",removeWrap:"ProfileMembersSection_removeWrap__eCcXc",empty:"ProfileMembersSection_empty__LRl_5",error:"ProfileMembersSection_error__xn0tm"}},34797:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>d});var i=a(95155),n=a(12115),r=a(73503),l=a(20973),t=a(54327),c=a(40256),o=a(18967),m=a(24539),p=a.n(m);function d({profileName:e}){let{members:s,canManage:a,busyUserId:m,setCapability:_,removeMember:h}=(0,l.I)(),{confirm:u,confirmState:x,handleAccept:b,handleDecline:f,handleClose:v}=(0,o.S)(),[g,j]=(0,n.useState)(null);if(!a||!s)return null;let N=e?.trim()||"this profile",w=[{bit:r.G0,label:"Read messages"},{bit:r.pt,label:"Get notifications"},{bit:r.$g,label:`Post as ${N}`},{bit:r.US,label:"Manage members"}],S=s.some(e=>!e.is_owner),C=async(e,s,a)=>{j(null);let i=await _(e,s,a);i&&j(i)},k=async e=>{if(j(null),!await u({title:`Remove ${e.name||"this Helper"}?`,message:`They'll lose access to ${N}. You can give access again from Teams.`,acceptText:"Remove Helper",declineText:"Cancel",acceptVariant:"danger"}))return;let s=await h(e);s&&j(s)};return(0,i.jsxs)("section",{className:p().section,"aria-label":"Helpers",children:[(0,i.jsx)("h2",{className:p().heading,children:"Helpers"}),(0,i.jsxs)("p",{className:p().hint,children:["People who help run ",N,"."]}),(0,i.jsx)("ul",{className:p().list,children:s.map(e=>(0,i.jsxs)("li",{className:p().row,children:[(0,i.jsxs)("span",{className:p().name,children:[e.name||`User ${e.user_id}`,e.is_owner&&(0,i.jsx)("span",{className:p().ownerBadge,children:"Owner"})]}),e.is_owner?(0,i.jsx)("span",{className:p().ownerNote,children:"Full access"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:p().caps,children:w.map(({bit:s,label:a})=>(0,i.jsxs)("label",{className:p().cap,children:[(0,i.jsx)("input",{type:"checkbox",checked:(e.permission_mask&s)!=0,disabled:m===e.user_id,onChange:a=>{C(e,s,a.target.checked)}}),a]},s))}),(0,i.jsx)("span",{className:p().removeWrap,children:(0,i.jsx)(t.A,{type:"button",variant:"ghost",size:"sm",disabled:m===e.user_id,onClick:()=>{k(e)},children:"Remove"})})]})]},e.user_id))}),!S&&(0,i.jsx)("p",{className:p().empty,children:"No Helpers yet. Give Helper access from a team member in Teams above."}),g&&(0,i.jsx)("p",{className:p().error,children:g}),(0,i.jsx)(c.A,{isOpen:x.isOpen,onClose:v,onAccept:b,onDecline:f,title:x.title,message:x.message,infoText:x.infoText,acceptText:x.acceptText,declineText:x.declineText,acceptVariant:x.acceptVariant})]})}},40256:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});var i=a(95155),n=a(51806),r=a(54327);function l({isOpen:e,onClose:s,onAccept:a,onDecline:t,title:c="Confirm Action",message:o,infoText:m,acceptText:p="Confirm",declineText:d="Cancel",acceptVariant:_="primary"}){return(0,i.jsx)(n.A,{isOpen:e,onClose:s,title:c,size:"sm",children:(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)("p",{className:"text-ml-gray-700",children:o}),m&&(0,i.jsx)("p",{className:"text-sm text-ml-gray-500 italic",children:m}),(0,i.jsxs)("div",{className:"flex gap-3 justify-end",children:[(0,i.jsx)(r.A,{onClick:()=>{t?.(),s()},variant:"secondary",children:d}),(0,i.jsx)(r.A,{onClick:()=>{a(),s()},variant:"danger"===_?"danger":"primary",children:p})]})]})})}}}]);

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.