PageSourceSearch

https://locals.com/_build/assets/UnblockUserSuccessModal-Dpo7OWtp.js

js locals.com collected 2026-10-02 02:27:24 UTC 2,054 bytes, 1 lines download raw bytes

1import{a as C,b as e,j as U,t as f,l as g,d as h,q as O,v as S,S as k}from"./web-BUHQE0Wf.js";import{u as p}from"./app-provide-tenant-9oVRNj6t.js";import{d as n}from"./Dialog-DMtc3cqF.js";import{d as s}from"./ISASYZ5H-S5GGxXwb.js";import{u as B,S as M,G as u,a0 as v}from"./_...404_-BMCgpLOw.js";import{S as _}from"./SvgX-B24sudcj.js";import{b}from"./blockUserModalStyles-DEqJ8iKO.js";import{s as y}from"./ProfileAvatarGroup-BjR3QY0S.js";import{u as N}from"./app-provide-eventbus-Dl7h8REP.js";import"./MetaData-H4Za0Aak.js";import"./index-Dq5glPJK.js";var A=f("<div>");const G=()=>{const{L:a}=B(),{currentModal:m,clearModal:i}=p(),d=C(()=>{const t=m();return t?.type==="UNBLOCK_USER"?t.options:void 0}),o=()=>i(),l=t=>{if(!t){const c=d()?.onClose;o(),c?.()}},r=b();return e(k,{get when(){return d()},keyed:!0,children:t=>e(s.Root,{open:!0,modal:!0,onOpenChange:l,get children(){return e(s.Portal,{get children(){return[e(s.Overlay,{get class(){return n().overlay},onClick:o}),(()=>{var c=U(A);return g(c,e(s.Content,{get class(){return u(n().content,r.confirmContent)},get children(){return[e(s.Title,{get class(){return u(n().header,n().title,r.title)},get children(){return e(M,{get children(){return a().ACCOUNT.UNBLOCK_USER_MODAL.title_html({username:t.username})}})}}),e(s.Description,{get class(){return u(n().description,r.confirmDescription)},get children(){return[h(()=>a().ACCOUNT.UNBLOCK_USER_MODAL.description()),e(v,{onClick:async()=>l(!1),get class(){return r.finalConfirmButton},get children(){return a().ACCOUNT.UNBLOCK_USER_MODAL.okButton()}}),e(s.CloseButton,{get class(){return u(n().closeButton,r.closeButton)},get children(){return e(_,{})}})]}})]}})),O(()=>S(c,n().positioner)),c})()]}})}})})},H=()=>{const a=N(),{setCurrentModal:m}=p(),i=(o,l)=>{m({type:"UNBLOCK_USER",options:{username:o,onClose:l}})};return{openUnblockUserModal:i,unblockAndConfirm:async(o,l,r)=>y.unblockUser({userId:o}).then(t=>{t?.code==="OK"&&i(l,()=>{a.emitEvent("locals.user.onUnblockUser",{userId:o}),r?.()})})}};export{G as default,H as useUnblockUser};

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.