PageSourceSearch

https://kmy.blue/packs/modal_container-rE40Tked.js

js kmy.blue collected 2026-10-05 03:59:04 UTC 45,991 bytes, 15 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/packs/collection_adder-Vumo9553.js","/packs/rolldown-runtime-C0FnF6B9.js","/packs/react-C21x__mS.js","/packs/react-intl-DlKP8ATg.js","/packs/fast-memoize-tJqGINKI.js","/packs/jsx-runtime-BdxMnOeJ.js","/packs/store-hlPJ4NAh.js","/packs/ready-B3bZnx13.js","/packs/initial_state-mp0kpN1Y.js","/packs/react-router-BkmJBoOP.js","/packs/accounts-Ca9Pn-5o.js","/packs/environment-DPwoYpO1.js","/packs/debounce-CXuT-gkt.js","/packs/isSymbol-3r8dk6Lb.js","/packs/api-DDBUfrHN.js","/packs/axios-BtspdZ3f.js","/packs/accounts_typed-PrqrKLTB.js","/packs/preload-helper-HclGiUj8.js","/packs/redux-toolkit.modern-CZmxEB_3.js","/packs/defineProperty-BbfpZ9Tg.js","/packs/typed_functions-nFw02uxy.js","/packs/immutable.es-tL0E-S7u.js","/packs/utils-B19lL5A9.js","/packs/_rolldown_dynamic_import_helper-CIAwlR2T.js","/packs/locale-D-1rLaCQ.js","/packs/intl-localematcher-DRXXZd2Y.js","/packs/emoji-Bbr52aow.js","/packs/filters-D7o2XUo9.js","/packs/axios-0On1V31i.js","/packs/settings-Cq4pjZIN.js","/packs/throttle-DJD3CaHb.js","/packs/url_regex-DwgP0L-d.js","/packs/database-D_1Mbg_g.js","/packs/modal-BnuSfh0-.js","/packs/push_notifications-zzZ97COV.js","/packs/app-CZOsCCE7.js","/packs/notification_policies-BjgqpNQc.js","/packs/server-D86EdjFS.js","/packs/emojis-BokPKKXU.js","/packs/navigation_focus_target-B65hNV9H.js","/packs/polymorphic-BHw2eKRx.js","/packs/close-DIPoUQpY.js","/packs/loading_indicator-DeTaSYtx.js","/packs/circular_progress-Dq94v5gc.js","/packs/classnames-CfLRLWYq.js","/packs/icon_button-BVSvxZDU.js","/packs/react-spring_web.modern-C6ohYUSs.js","/packs/react-dom-BddMPX6d.js","/packs/usePrevious-CFmyXbud.js","/packs/short_number-ChT-jTTq.js","/packs/numbers-BEp7e788.js","/packs/icon-DXRmLOy2.js","/packs/empty_state-BmceTo_w.js","/packs/gif-BhJ2cP2P.js","/packs/useHovering-Clt57sOP.js","/packs/assets/empty_state-D4d51_wr.css","/packs/list_item-JiHxfVuP.js","/packs/react-router-dom-C1dtKQUg.js","/packs/assets/list_item-BOkuae6Z.css","/packs/collection_lockup-BbyeDx8d.js","/packs/utils-B468qXuV.js","/packs/useAccount-BeaS6Qgt.js","/packs/avatar-DrnJzOsL.js","/packs/default-BoqbaCqK.js","/packs/emoji-BEYgX4vN.js","/packs/mode-CSuXksJV.js","/packs/render-DgEIfTde.js","/packs/html-BBhxjmJq.js","/packs/skeleton-BO82ZgT5.js","/packs/relative_timestamp-Cy0TLnyq.js","/packs/time-Bfnqzz2P.js","/packs/warning-DALvmvUf.js","/packs/assets/collection_lockup-BUhkWMfJ.css","/packs/form_fields-T9lI_XK_.js","/packs/popover-sJojdjxU.js","/packs/copy_button-DAWImMq-.js","/packs/button-DpjrXhnH.js","/packs/content_copy-J1bl6DdF.js","/packs/search-D6Fd2_4p.js","/packs/keyboard_arrow_up-DMWxQ2V-.js","/packs/dist-BL4Fsu0F.js","/packs/react-textarea-autosize.browser.esm-D9Jvx2fe.js","/packs/use-isomorphic-layout-effect.browser.esm-D00yE3tR.js","/packs/emoji_picker_dropdown_container-JUbKOmhY.js","/packs/intl-B-3n4e1o.js","/packs/async-components-U3E0VbPw.js","/packs/nimble-picker-IYs9I0_A.js","/packs/form_field_wrapper-DqKrFIo0.js","/packs/a11y_live_region-DB4QMLtJ.js","/packs/check-C3BKu3lm.js","/packs/info-k74D6gw-.js","/packs/error-DN-cb0-U.js","/packs/assets/form_field_wrapper-BlP-LQo1.css","/packs/text_input_field-ZKj_I_Vn.js","/packs/assets/text_input_field-CZfb3Ks7.css","/packs/radio_button_field-C2mPSz8q.js","/packs/assets/radio_button_field-7EAP-S6Z.css","/packs/toggle_field-B8C9pobP.js","/packs/assets/toggle_field-DNsBUT4H.css","/packs/assets/form_fields-RSoqT7sU.css","/packs/useAccountId-CW6Zlf3q.js","/packs/collection_list_item-BQxrfDOG.js","/packs/helmet-C5cFHKKR.js","/packs/column-DzPWuDQw.js","/packs/index.module-B3UTC6aI.js","/packs/assets/column-DIHZBkdS.css","/packs/identity_context-CLXpzjnM.js","/packs/display_name-WrG7WOA6.js","/packs/simple-Dk820Xmk.js","/packs/star-CII3JmKs.js","/packs/dropdown_menu-BjIs7qN_.js","/packs/add-B5d0-_pA.js","/packs/badge-BVrMM_XF.js","/packs/group-CJZJ7KDg.js","/packs/block-Dj44I8vY.js","/packs/volume_off-D61wX6FU.js","/packs/assets/badge-DQ-Tiis-.css","/packs/list_alt-C2MxBnmD.js","/packs/header-BsSAKIlD.js","/packs/arrow_back-rgXdvyfI.js","/packs/chevron_left-Du0bxxM7.js","/packs/chevron_right-CyqmmHhV.js","/packs/unfold_more-BNeTdY-K.js","/packs/callout-B4xg2cOT.js","/packs/assets/callout-IFgvMNaK.css","/
1packs/components-DmEE_aHc.js","/packs/formatted_date-BukCBi06.js","/packs/useSearchTags-BLn2NRqE.js","/packs/help-DEiVT85l.js","/packs/account_list_item-XVmRF5tA.js","/packs/follow_button-BtLyXKVO.js","/packs/number_fields-Dcg1ldCY.js","/packs/assets/number_fields-DAO-UqGM.css","/packs/assets/account_list_item-OsUTas1E.css","/packs/not_signed_in_indicator-DzYHCJen.js","/packs/useSearchAccounts-P_eNwgnj.js","/packs/useSearchParam-Dy1bZjd7.js","/packs/visibility_off-DP3wtlEJ.js","/packs/revoke_collection_inclusion_modal-DauvKuXJ.js","/packs/confirmation_modal-Cg4869cp.js","/packs/modal_shell-BubSV6Ff.js","/packs/assets/collection_list_item-BAn6mDCP.css","/packs/assets/collection_adder-Ce8jIiSB.css","/packs/share_modal-7kHvXMLC.js","/packs/collection_preview_card-DP0JYuTn.js","/packs/assets/collection_preview_card-DH44upUq.css","/packs/assets/share_modal-BmvU6eCf.css","/packs/note_modal-ZWIGgzAl.js","/packs/confirmation_modals-o8KGfEjg.js","/packs/styles.module-BoFKCCUL.js","/packs/assets/styles-BdqKzGTn.css","/packs/field_modal-D4ONBGlv.js","/packs/useFieldHtml-DrSLnrgn.js","/packs/join_modal-CLgRSUoD.js","/packs/hide_featured_tab-Eqd0GDnW.js","/packs/modal_cancel-pDwbipRH.js","/packs/redesign-jhZSPkgS.js","/packs/assets/redesign-DvVhg1NY.css","/packs/redesign-L4S_sr8S.js","/packs/assets/redesign-9UyoUK9z.css","/packs/modal_rearrange-CsW-l6Hs.js","/packs/utils-BLSaxN3M.js","/packs/utilities.esm-Dzu7lWhf.js","/packs/sortable.esm-D92PjSsC.js","/packs/modifiers.esm-C_R0FqgD.js","/packs/IconBase.es-CTFrnVqq.js","/packs/selectors-lSPs_EEE.js","/packs/assets/modal_rearrange-DfV3FSCe.css","/packs/modal_switch-C6PJiWiR.js","/packs/modals-DGjdiUpq.js","/packs/expand_more-vFWk3nbk.js","/packs/account_edit-D4VtEN37.js","/packs/handled_link-BQtDylhx.js","/packs/account_bio-WHauOvAu.js","/packs/assets/account_bio-DpMboqlm.css","/packs/edit-DiSSNF99.js","/packs/useDismissible-C-CJbGJB.js","/packs/edit_button-KKqbV221.js","/packs/bundle_column_error-11-ClTSo.js","/packs/assets/bundle_column_error-xa-o3n9N.css","/packs/delete-BKljx15R.js","/packs/assets/edit_button-VCZjbsjh.css","/packs/assets/modals-C8mjaex5.css"])))=>i.map(i=>d[i]);
2import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-C21x__mS.js";import{a as n,c as r,o as i,s as a}from"./react-intl-DlKP8ATg.js";import{t as o}from"./jsx-runtime-BdxMnOeJ.js";import{t as s}from"./preload-helper-HclGiUj8.js";import{h as c,k as l}from"./initial_state-mp0kpN1Y.js";import{i as u,t as d}from"./react-spring_web.modern-C6ohYUSs.js";import{$t as f,Dn as p,Er as m,bn as h,r as g}from"./store-hlPJ4NAh.js";import{b as _}from"./react-router-BkmJBoOP.js";import{t as v}from"./defineProperty-BbfpZ9Tg.js";import{l as y,n as b,o as x,s as S}from"./typed_functions-nFw02uxy.js";import{$t as C,Xn as w,rn as T,rr as E,tr as D}from"./filters-D7o2XUo9.js";import{n as O,t as k}from"./modal-BnuSfh0-.js";import{t as A}from"./helmet-C5cFHKKR.js";import{t as j}from"./react-router-dom-C1dtKQUg.js";import{r as ee}from"./navigation_focus_target-B65hNV9H.js";import{t as te}from"./classnames-CfLRLWYq.js";import{t as ne}from"./a11y_live_region-DB4QMLtJ.js";import{t as re}from"./close-DIPoUQpY.js";import{t as ie}from"./loading_indicator-DeTaSYtx.js";import{t as M}from"./icon_button-BVSvxZDU.js";import{t as N}from"./icon-DXRmLOy2.js";import{t as P}from"./alert-SIuM0LoB.js";import{t as F}from"./skeleton-BO82ZgT5.js";import{t as I}from"./button-DpjrXhnH.js";import{t as L}from"./popover-sJojdjxU.js";import{t as R}from"./audio-Ca5Lry47.js";import{r as z,t as B}from"./video-CI0rn5et.js";import{c as V}from"./card-CLidQ-HC.js";import{t as ae}from"./reply-NI2DkwdJ.js";import{a as oe,i as se,r as H}from"./dropdown_menu-BjIs7qN_.js";import{a as ce,i as le,n as ue,o as de,r as fe,t as pe}from"./media_modal-BsckOS5H.js";import{t as me}from"./gif-BhJ2cP2P.js";import{t as he}from"./alternate_email-CGhoCIc4.js";import{t as ge}from"./public-DfIIZjQm.js";import{t as _e}from"./block-Dj44I8vY.js";import{D as ve,G as ye,I as be,M as xe,R as Se,S as Ce,Tt as we,c as Te,dt as Ee,et as De,h as Oe,it as ke,jt as Ae,kt as je,s as Me,tt as Ne,v as Pe,wt as Fe}from"./async-components-U3E0VbPw.js";import{t as Ie}from"./bundle-D48MvYTM.js";import{t as Le}from"./unfold_more-BNeTdY-K.js";import{t as Re}from"./useSelectableClick-JYr_1CvO.js";import{t as ze}from"./ImmutablePropTypes-C_rOJ6cM.js";import{t as Be}from"./react-immutable-pure-component.es-DpNNSygw.js";import{t as Ve}from"./dist-BL4Fsu0F.js";import{i as He,n as Ue,r as U}from"./compose_form_container-BduY33Ne.js";import{t as We}from"./react-textarea-autosize.browser.esm-D9Jvx2fe.js";import{t as Ge}from"./account_circle-CVBPgbWZ.js";import{a as Ke,i as qe,o as Je,r as Ye,s as Xe}from"./visibility_icon-DAR_HjQc.js";import{t as Ze}from"./dropdown_selector-OT9pqnmT.js";import{t as Qe}from"./embedded_status-Dq7tS8WE.js";import{t as $e}
2from"./confirmation_modal-Cg4869cp.js";import{_ as et,a as tt,c as nt,d as rt,f as it,g as at,h as ot,i as st,l as ct,m as lt,n as ut,o as dt,p as ft,r as pt,s as mt,t as ht,u as gt}from"./confirmation_modals-o8KGfEjg.js";import{t as _t}from"./no_encryption-DE_UbpN1.js";import{t as vt}from"./check_box-BXuW9V1x.js";var W=e(t()),G=o(),yt=(e,t,n)=>typeof t==`object`?e.formatMessage(t,n):t,bt=({alert:{key:e,title:t,message:n,values:i,action:a,onClick:o},dismissAfter:s})=>{let c=x(),l=r(),[u,d]=(0,W.useState)(!1);return(0,W.useEffect)(()=>{let e=setTimeout(()=>{d(!0)},1);return()=>{clearTimeout(e)}},[]),(0,W.useEffect)(()=>{let t=setTimeout(()=>{d(!1),setTimeout(()=>{c(D({key:e}))},500)},s);return()=>{clearTimeout(t)}},[c,d,e,s]),(0,G.jsx)(P,{isActive:u,title:t?yt(l,t,i):void 0,message:yt(l,n,i),action:a?yt(l,a,i):void 0,onActionClick:o})},xt=()=>{let e=S(e=>e.alerts),t=S(e=>!!e.meta.get(`needsReload`));return(0,G.jsxs)(ne,{className:`notification-list`,children:[e.map((e,t)=>(0,G.jsx)(bt,{alert:e,dismissAfter:5e3+t*1e3},e.key)),t&&(0,G.jsx)(Ct,{})]})},St=i({id:`alert.need_reload.message`,defaultMessage:`Mastodon has been updated. Some things may not work correctly until you reload the page.`}),Ct=()=>{let e=r();return(0,G.jsx)(P,{isActive:!0,message:e.formatMessage(St)})},wt=e(m()),Tt=y((e,t)=>({loading:e.get(`loadingBar`)[t.scope||`default`]}))(wt.default.WrappedComponent),K=e(_()),q=e(te()),Et=Ve(),Dt=e=>(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,G.jsx)(`path`,{d:`M424-320q0-81 14.5-116.5T500-514q41-36 62.5-62.5T584-637q0-41-27.5-68T480-732q-51 0-77.5 31T365-638l-103-44q21-64 77-111t141-47q105 0 161.5 58.5T698-641q0 50-21.5 85.5T609-475q-49 47-59.5 71.5T539-320H424Zm56 240q-33 0-56.5-23.5T400-160q0-33 23.5-56.5T480-240q33 0 56.5 23.5T560-160q0 33-23.5 56.5T480-80Z`})}),Ot=a({help:{id:`info_button.label`,defaultMessage:`Help`}}),kt=()=>{let e=r(),[t,i]=(0,W.useState)(!1),[a,o]=(0,W.useState)(null),s=(0,W.useId)(),c=(0,W.useCallback)(()=>{i(!t)},[t,i]),[l,u]=Re(c);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,className:(0,q.default)(`help-button`,{active:t}),ref:o,onClick:c,"aria-expanded":t,"aria-controls":s,"aria-label":e.formatMessage(Ot.help),children:(0,G.jsx)(N,{id:``,icon:Dt})}),(0,G.jsx)(L,{isOpen:t,placement:`top`,onClose:c,offset:5,reference:a,children:({props:e})=>(0,G.jsx)(`div`,{...e,className:`dialog-modal__popout prose dropdown-animation`,role:`region`,id:s,onMouseDown:l,onMouseUp:u,children:(0,G.jsx)(n,{id:`info_button.what_is_alt_text`,defaultMessage:`<h1>What is alt text?</h1>
3
4            <p>Alt text provides image descriptions for people with vision impairments, low-bandwidth connections, or those seeking extra context.</p>
5
6            <p>You can improve accessibility and understanding for everyone by writing clear, concise, and objective alt text.</p>
7
8            <ul>
9              <li>Capture important elements</li>
10              <li>Summarize text in images</li>
11              <li>Use regular sentence structure</li>
12              <li>Avoid redundant information</li>
13              <li>Focus on trends and key findings in complex visuals (like diagrams or maps)</li>
14            </ul>`,values:{h1:e=>(0,G.jsx)(`h1`,{children:e}),p:e=>(0,G.jsx)(`p`,{children:e}),ul:e=>(0,G.jsx)(`ul`,{children:e}),li:e=>(0,G.jsx)(`li`,{children:e})}})})})]})},J=a({placeholderVisual:{id:`alt_text_modal.describe_for_people_with_visual_impairments`,defaultMessage:`Describe this for people with visual impairments…`},placeholderHearing:{id:`alt_text_modal.describe_for_people_with_hearing_impairments`,defaultMessage:`Describe this for people with hearing impairments…`},discardMessage:{id:`confirmations.discard_edit_media.message`,defaultMessage:`You have unsaved changes to the media description or preview, discard them anyway?`},discardConfirm:{id:`confirmations.discard_edit_media.confirm`,defaultMessage:`Discard`}}),At=1e4,jt=({children:e,onSelectFile:t,mimeTypes:n})=>{let r=(0,W.useRef)(null),i=(0,W.useCallback)(()=>{r.current?.click()},[]),a=(0,W.useCallback)(e=>{let n=e.target.files?.[0];n&&t(n)},[t]);return(0,G.jsxs)(`label`,{children:[(0,G.jsx)(I,{onClick:i,children:e}),(0,G.jsx)(`input`,{id:`upload-modal__thumbnail`,ref:r,type:`file`,accept:n,onChange:a,style:{display:`none`}})]})},Mt=({mediaId:e,position:t,onPositionChange:n})=>{let r=(0,W.useRef)(null),[i,a]=(0,W.useState)(null),[o,s]=t,c=u({to:{left:`${o*100}%`,top:`${s*100}%`},immediate:i===`moving`}),f=S(t=>t.compose.get(`media_attachments`).find(t=>t.get(`id`)===e)),p=S(e=>l?e.accounts.get(l):void 0),m=(0,W.useCallback)(e=>{r.current=e},[]),h=(0,W.useCallback)(e=>{if(e.button!==0)return;let t=e=>{let{x:t,y:i}=z(r.current,e);a(`moving`),n([t,i])},i=()=>{a(null),document.removeEventListener(`mouseup`,i),document.removeEventListener(`mousemove`,t)},{x:o,y:s}=z(r.current,e.nativeEvent);a(`started`),n([o,s]),document.addEventListener(`mouseup`,i),document.addEventListener(`mousemove`,t)},[a,n]);return f?f.get(`type`)===`image`?(0,G.jsxs)(`div`,{className:(0,q.default)(`focal-point`,{dragging:i}),children:[(0,G.jsx)(`img`,{ref:m,draggable:!1,src:f.get(`url`),alt:``,role:`presentation`,onMouseDown:h}),(0,G.jsx)(d.div,{className:`focal-point__reticle`,style:c}
14)]}):f.get(`type`)===`gifv`?(0,G.jsxs)(`div`,{className:(0,q.default)(`focal-point`,{dragging:i}),children:[(0,G.jsx)(le,{ref:m,src:f.get(`url`),alt:``,onMouseDown:h}),(0,G.jsx)(d.div,{className:`focal-point__reticle`,style:c})]}):f.get(`type`)===`video`?(0,G.jsx)(B,{preview:f.get(`preview_url`),frameRate:f.getIn([`meta`,`original`,`frame_rate`]),aspectRatio:`${f.getIn([`meta`,`original`,`width`])} / ${f.getIn([`meta`,`original`,`height`])}`,blurhash:f.get(`blurhash`),src:f.get(`url`),detailed:!0,editable:!0}):f.get(`type`)===`audio`?(0,G.jsx)(R,{src:f.get(`url`),poster:f.get(`preview_url`)??p?.avatar_static,duration:f.getIn([`meta`,`original`,`duration`],0),backgroundColor:f.getIn([`meta`,`colors`,`background`]),foregroundColor:f.getIn([`meta`,`colors`,`foreground`]),accentColor:f.getIn([`meta`,`colors`,`accent`]),editable:!0}):null:null},Nt=(0,W.forwardRef)(({mediaId:e,previousDescription:t,previousPosition:i,onClose:a},o)=>{let c=r(),l=x(),u=S(t=>t.compose.get(`media_attachments`).find(t=>t.get(`id`)===e)),d=S(e=>e.compose.get(`language`)),f=u?.getIn([`meta`,`focus`,`x`],0)??0,m=u?.getIn([`meta`,`focus`,`y`],0)??0,[h,_]=(0,W.useState)(t??u?.get(`description`)??``),[v,y]=(0,W.useState)(i??[f/2+.5,m/-2+.5]),[b,C]=(0,W.useState)(!1),[w,D]=(0,W.useState)(!1),O=(0,W.useRef)(!!(t||i)),k=u?.get(`type`),A=(0,Et.length)(h)<=At,j=u?.get(`unattached`),te=(0,W.useCallback)(e=>{_(e.target.value),O.current=!0},[_]),ne=(0,W.useCallback)(t=>{l(T(e,t))},[l,e]),re=(0,W.useCallback)(e=>{y(e),O.current=!0},[y]),M=(0,W.useCallback)(()=>{D(!0),l(p({id:e,description:h,focus:`${((v[0]-.5)*2).toFixed(2)},${((v[1]-.5)*-2).toFixed(2)}`})).then(()=>(D(!1),O.current=!1,a(),``)).catch(e=>{D(!1),l(E(e))})},[l,D,e,a,v,h]),N=(0,W.useCallback)(e=>{(e.ctrlKey||e.metaKey)&&e.key===`Enter`&&(e.preventDefault(),A&&M())},[M,A]),P=(0,W.useCallback)(()=>{C(!0),Ae().then(async({createWorker:e})=>{let[t,n]=await Promise.all([s(()=>import(`./worker.min-BKj2FSBn.js`),[],import.meta.url),s(()=>import(`./tesseract-core.wasm-1MSTuyyV.js`),[],import.meta.url)]),r=await e(`eng`,1,{workerPath:t.default,corePath:n.default,langPath:`${g}/ocr/lang-data`,cacheMethod:`write`}),i=URL.createObjectURL(u?.get(`file`)),a=await r.recognize(i);return _(a.data.text),C(!1),await r.terminate(),``}).catch(()=>{C(!1)})},[_,C,u]);return(0,W.useImperativeHandle)(o,()=>({getCloseConfirmationMessage:()=>O.current?{message:c.formatMessage(J.discardMessage),confirm:c.formatMessage(J.discardConfirm),props:{previousDescription:h,previousPosition:v}}:null}),[c,h,v]),(0,G.jsxs)(`div`,{className:`modal-root__modal dialog-modal`,children:[(0,G.jsxs)(`div`,{className:`dialog-modal__header`,children:[(0,G.jsx)(I,{onClick:M,disabled:!A,children:w?(0,G.jsx)(ie,{}):(0,G.jsx)(n,{id:`alt_text_modal.done`,defaultMessage:`Done`})}),(0,G.jsx)(ee,{as:`h1`,className:`dialog-modal__header__title`,children:(0,G.jsx)(n,{id:`alt_text_modal.add_alt_text`,defaultMessage:`Add alt text`})}),(0,G.jsx)(I,{secondary:!0,onClick:a,children:(0,G.jsx)(n,{id:`alt_text_modal.cancel`,defaultMessage:`Cancel`})})]}),(0,G.jsxs)(`div`,{className:`dialog-modal__content`,children:[(0,G.jsxs)(`div`,{className:`dialog-modal__content__preview`,children:[(0,G.jsx)(Mt,{mediaId:e,position:v,onPositionChange:re}),(k===`audio`||k===`video`)&&j&&(0,G.jsx)(jt,{onSelectFile:ne,mimeTypes:`image/jpeg,image/png,image/gif,image/heic,image/heif,image/webp,image/avif`,children:(0,G.jsx)(n,{id:`alt_text_modal.change_thumbnail`,defaultMessage:`Change thumbnail`})})]}),(0,G.jsx)(`form`,{className:`dialog-modal__content__form simple_form`,onSubmit:M,children:(0,G.jsxs)(`div`,{className:`input`,children:[(0,G.jsxs)(`div`,{className:`label_input`,children:[(0,G.jsx)(We,{id:`description`,value:b?` `:h,onChange:te,onKeyDown:N,lang:d,placeholder:c.formatMessage(k===`audio`?J.placeholderHearing:J.placeholderVisual),minRows:3,disabled:b}),b&&(0,G.jsxs)(`div`,{className:`label_input__loading-indicator`,children:[(0,G.jsx)(F,{width:`100%`}),(0,G.jsx)(F,{width:`100%`}),(0,G.jsx)(F,{width:`61%`})]})]}),(0,G.jsxs)(`div`,{className:`input__toolbar`,children:[(0,G.jsx)(He,{max:At,text:b?``:h}),(0,G.jsx)(`div`,{className:`spacer`}),(0,G.jsx)(`button`,{className:`link-button`,onClick:P,disabled:k!==`image`||b,type:`button`,children:(0,G.jsx)(n,{id:`alt_text_modal.add_text_from_image`,defaultMessage:`Add text from image`})}),(0,G.jsx)(kt,{})]})]})})]})]})});Nt.displayName=`AltTextModal`;var Pt=({actions:e,onClick:t,className:n})=>
14(0,G.jsx)(`div`,{className:(0,q.default)(`modal-root__modal actions-modal`,n),children:(0,G.jsx)(`ul`,{children:e.map((e,n)=>{if(e===null)return(0,G.jsx)(`li`,{className:`dropdown-menu__separator`},`sep-${n}`);let{text:r,highlighted:i,disabled:a,dangerous:o}=e,s;return s=se(e)?(0,G.jsx)(`button`,{onClick:t,"data-index":n,disabled:a,type:`button`,children:(0,G.jsx)(H,{item:e})}):oe(e)?(0,G.jsx)(`a`,{href:e.href,target:e.target??`_target`,"data-method":e.method,rel:`noopener`,onClick:t,"data-index":n,children:(0,G.jsx)(H,{item:e})}):(0,G.jsx)(j,{to:e.to,onClick:t,"data-index":n,children:(0,G.jsx)(H,{item:e})}),(0,G.jsx)(`li`,{className:(0,q.default)(`dropdown-menu__item`,{"dropdown-menu__item--dangerous":o,"dropdown-menu__item--highlighted":i}),children:s},`${r}-${n}`)})})}),Ft=({media:e,statusId:t,options:n,onClose:r,onChangeBackgroundColor:i})=>{let a=S(e=>e.statuses.get(t)),o=a?.get(`account`),s=S(e=>o?e.accounts.get(o)?.avatar_static:void 0);(0,W.useEffect)(()=>(i(fe(e.get(`blurhash`))??{r:255,g:255,b:255}),()=>{i(null)}),[e,i]);let c=a?.getIn([`translation`,`language`])??a?.get(`language`),l=e.getIn([`translation`,`description`])??e.get(`description`);return(0,G.jsxs)(`div`,{className:`modal-root__modal audio-modal`,children:[(0,G.jsx)(`div`,{className:`audio-modal__container`,children:(0,G.jsx)(R,{src:e.get(`url`),alt:l,lang:c,poster:e.get(`preview_url`)??s,duration:e.getIn([`meta`,`original`,`duration`],0),backgroundColor:e.getIn([`meta`,`colors`,`background`]),foregroundColor:e.getIn([`meta`,`colors`,`foreground`]),accentColor:e.getIn([`meta`,`colors`,`accent`]),startPlaying:n.autoPlay})}),(0,G.jsx)(`div`,{className:`media-modal__overlay`,children:a&&(0,G.jsx)(de,{statusId:a.get(`id`),withOpenButton:!0,onClose:r})})]})},It=a({cancel_reblog:{id:`status.cancel_reblog_private`,defaultMessage:`Unboost`},reblog:{id:`status.reblog`,defaultMessage:`Boost`}}),Lt=({status:e,onReblog:t,onClose:i})=>{let a=r(),o=S(e=>e.compose.get(`default_privacy`)),s=e.get(`id`),c=e.get(`limited_scope`)||e.get(`visibility_ex`),[l,u]=(0,W.useState)(c===`private`?`private`:o),d=(0,W.useCallback)(e=>{u(e)},[]),f=(0,W.useCallback)(()=>{t(e,l),i()},[i,t,e,l]),p=(0,W.useCallback)(()=>{i()},[i]);return(0,G.jsxs)(`div`,{className:`modal-root__modal safety-action-modal`,children:[(0,G.jsxs)(`div`,{className:`safety-action-modal__top`,children:[(0,G.jsxs)(`div`,{className:`safety-action-modal__header`,children:[(0,G.jsx)(`div`,{className:`safety-action-modal__header__icon`,children:(0,G.jsx)(N,{icon:V,id:`retweet`})}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(ee,{as:`h1`,children:e.get(`reblogged`)?(0,G.jsx)(n,{id:`boost_modal.undo_reblog`,defaultMessage:`Unboost post?`}):(0,G.jsx)(n,{id:`boost_modal.reblog`,defaultMessage:`Boost post?`})}),(0,G.jsx)(`div`,{children:(0,G.jsx)(n,{id:`boost_modal.combo`,defaultMessage:`You can press {combo} to skip this next time`,values:{combo:(0,G.jsxs)(`span`,{className:`hotkey-combination`,children:[(0,G.jsx)(`kbd`,{children:`Shift`}),`+`,(0,G.jsx)(N,{id:`retweet`,icon:V})]})}})})]})]}),(0,G.jsx)(`div`,{className:`safety-action-modal__status`,children:(0,G.jsx)(Qe,{statusId:s})})]}),(0,G.jsx)(`div`,{className:(0,q.default)(`safety-action-modal__bottom`),children:(0,G.jsxs)(`div`,{className:`safety-action-modal__actions`,children:[!e.get(`reblogged`)&&(0,G.jsx)(Ue,{noDirect:!0,noLimited:!0,value:l,onChange:d,disabled:c===`private`}),(0,G.jsx)(`div`,{className:`spacer`}),(0,G.jsx)(`button`,{onClick:p,className:`link-button`,type:`button`,children:(0,G.jsx)(n,{id:`confirmation_modal.cancel`,defaultMessage:`Cancel`})}),(0,G.jsx)(I,{onClick:f,text:a.formatMessage(e.get(`reblogged`)?It.cancel_reblog:It.reblog),autoFocus:!0})]})})]})},Rt=a({close:{id:`lightbox.close`,defaultMessage:`Close`}}),zt=({src:e,alt:t,onClose:n})=>{let i=r(),[a,o]=(0,W.useState)(!1),s=(0,W.useCallback)(()=>{o(e=>!e)},[o]),c=(0,q.default)(`media-modal__navigation`,{"media-modal__navigation--hidden":a});return(0,G.jsxs)(`div`,{className:`modal-root__modal media-modal`,children:[(0,G.jsx)(`div`,{className:`media-modal__closer`,role:`presentation`,onClick:n,children:(0,G.jsx)(ue,{src:e,width:400,height:400,alt:t,onClick:s})}),(0,G.jsx)(`div`,{className:c,children:(0,G.jsx)(`div`,{className:`media-modal__buttons`,children:(0,G.jsx)(M,{className:`media-modal__close`,t
14itle:i.formatMessage(Rt.close),icon:`times`,iconComponent:re,onClick:n})})})]})},Bt=({loading:e,onClose:t,onRetry:r})=>{let i=(0,W.useCallback)(()=>{t(void 0,!1)},[t]),a=(0,W.useCallback)(()=>{r&&r()},[r]);return(0,G.jsx)(`div`,{className:`modal-root__modal modal-placeholder`,"aria-busy":e,children:e?(0,G.jsx)(ie,{}):(0,G.jsxs)(`div`,{className:`modal-placeholder__error`,children:[(0,G.jsx)(me,{src:`/oops.gif`,staticSrc:`/oops.png`,className:`modal-placeholder__error__image`}),(0,G.jsxs)(`div`,{className:`modal-placeholder__error__message`,children:[(0,G.jsx)(`p`,{children:(0,G.jsx)(n,{id:`bundle_modal_error.message`,defaultMessage:`Something went wrong while loading this screen.`})}),(0,G.jsxs)(`div`,{className:`modal-placeholder__error__message__actions`,children:[(0,G.jsx)(I,{onClick:a,children:(0,G.jsx)(n,{id:`bundle_modal_error.retry`,defaultMessage:`Try again`})}),(0,G.jsx)(I,{onClick:i,className:`button button-secondary`,children:(0,G.jsx)(n,{id:`bundle_modal_error.close`,defaultMessage:`Close`})})]})]})]})})},Vt=e(ze()),Ht=(e,{statusId:t})=>({status:e.getIn([`statuses`,t])}),Ut=class extends Be{componentDidMount(){let{media:e,onChangeBackgroundColor:t}=this.props,n=fe(e.get(`blurhash`));n&&t(n)}componentWillUnmount(){this.props.onChangeBackgroundColor(null)}render(){let{media:e,status:t,onClose:n}=this.props,r=this.props.options||{},i=t.getIn([`translation`,`language`])||t.get(`language`),a=e.getIn([`translation`,`description`])||e.get(`description`);return(0,G.jsxs)(`div`,{className:`modal-root__modal video-modal`,children:[(0,G.jsx)(`div`,{className:`video-modal__container`,children:(0,G.jsx)(B,{preview:e.get(`preview_url`),frameRate:e.getIn([`meta`,`original`,`frame_rate`]),aspectRatio:`${e.getIn([`meta`,`original`,`width`])} / ${e.getIn([`meta`,`original`,`height`])}`,blurhash:e.get(`blurhash`),src:e.get(`url`),startTime:r.startTime,startPlaying:r.autoPlay,startVolume:r.defaultVolume,onCloseVideo:n,autoFocus:!0,detailed:!0,alt:a,lang:i})}),(0,G.jsx)(`div`,{className:`media-modal__overlay`,children:t&&(0,G.jsx)(de,{statusId:t.get(`id`),withOpenButton:!0,onClose:n})})]})}};v(Ut,`propTypes`,{media:Vt.default.map.isRequired,statusId:K.default.string,status:Vt.default.map,options:K.default.shape({startTime:K.default.number,autoPlay:K.default.bool,defaultVolume:K.default.number}),onClose:K.default.func.isRequired,onChangeBackgroundColor:K.default.func.isRequired});var Wt=y(Ht,null,null,{forwardRef:!0})(Ut);function Gt(e){return[`public`,`followers`,`nobody`].includes(e)}function Kt(e){return[`public`,`unlisted`,`private`,`direct`,`public_unlisted`,`login`,`circle`,`mutual`,`limited`,`personal`,`reply`].includes(e)}function qt(e){return[`public`,`private`,`direct`,`limited`,`public_unlisted`].includes(e)}var Y=({disabled:e,items:t,current:n,onChange:i,labelId:a,descriptionId:o,classPrefix:s,className:c,id:l,placement:u,target:d,...f})=>{let p=r(),[m,h]=(0,W.useState)(null),g=(0,W.useId)(),_=l??`${g}-button`,v=`${g}-listbox`,[y,b]=(0,W.useState)(!1),x=(0,W.useCallback)(()=>{e||b(e=>(m?.focus(),!e))},[m,e]),S=(0,W.useCallback)(()=>{b(!1),m?.focus()},[m]),C=(0,W.useMemo)(()=>t.find(e=>e.value===n)?.text??p.formatMessage({id:`dropdown.empty`,defaultMessage:`Select an option`}),[n,p,t]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`button`,{type:`button`,...f,id:_,"aria-labelledby":`${a} ${_}`,"aria-describedby":o,"aria-expanded":y,"aria-controls":v,onClick:x,disabled:e,className:(0,q.default)(`${s}__button`,{active:y,disabled:e},c),ref:h,children:[C,(0,G.jsx)(N,{id:`unfold-icon`,icon:Le,className:`${s}__icon`})]}),(0,G.jsx)(L,{matchReferenceWidth:!0,isOpen:y,offset:0,placement:u??`bottom-start`,onClose:S,reference:d?.current??m,children:({props:e,placement:r})=>(0,G.jsx)(`div`,{...e,className:`${s}__overlay`,children:(0,G.jsx)(`div`,{className:(0,q.default)(`dropdown-animation`,`${s}__dropdown`,r),id:v,children:(0,G.jsx)(Ze,{items:t,value:n,onClose:S,onChange:i,classNamePrefix:s})})})})]})},X=a({public_short:{id:`searchability.public.short`,defaultMessage:`Public`},public_long:{id:`searchability.public.long`,defaultMessage:`Anyone can find`},public_unlisted_short:{id:`searchability.public_unlisted.short`,defaultMessage:`Local public`},public_unlisted_long:{id:`searchability.public_unlisted.long`,defaultMessage:`Local users and followers can find`},private_short:{id:`searchability.unlisted.short`,defaultMessage:`Followers`},private_long:{id:`searchability.unlisted.long`,defaultMessage:`Your followers can find`},direct_short:{id:`searchability.private.short`,defaultMessage:`Reactionners`},direct_long:{id:`searchability.private.long`,defaultMessage:`Reacter of this post can find`},limited_short:{id:`searchability.direct.short`,defaultMessage:`Self only`},limited_long:{id:`searchability.direct.long`,defaultMessage:`Nobody can find, but you can`},change_searchability:{id:`searchability.change`,defaultMessage:`Set status searchability`}}),Z=a({close:{id:`lightbox.close`,defaultMessage:`Close`},buttonTitle:{id:`visibility_modal.button_title`,defaultMessage:`Set visibility`},quotePublic:{id:`visibility_modal.quote_public`,defaultMessage:`Anyone`},quoteFollowers:{id:`visibility_modal.quote_followers`,defaultMessage:`Followers only`},quoteNobody:{id:`visibility_modal.quote_nobody`,defaultMessage:`Just me`}}),Jt=b([e=>e.statuses,(e,t)=>t,e=>e.compose.get(`quote_policy`)],(e,t,n)=>{if(!t)return n;let r=e.get(t);if(!r)return`public`;let i=r.getIn([`quote_approval`,`automatic`,0])||`nobody`,a=r.get(`visibility`);return a===`private`||a===`direct`?`nobody`:Gt(i)?i:a===`unlisted`?`followers`:`public`}),Yt=b([e=>e.statuses,(e,t)=>!!t,e=>e.compose.get(`quoted_status_id`)],(e,t,n)=>{if(t||!n)return!1;let r=e.get(n);return r?r.get(`visibility`)===`private`:!1}),Xt=(0,W.forwardRef)(({onClose:e,onChange:t,statusId:i},a)=>
14{let o=r(),s=S(e=>i?e.statuses.getIn([i,`visibility_ex`],`public`)??`public`:e.compose.get(`privacy`)),l=S(e=>i?e.statuses.getIn([i,`searchability`],`public`)??`public`:e.compose.get(`searchability`)),u=S(e=>Jt(e,i)),d=S(e=>e.compose.get(`circle_id`)),p=S(e=>e.compose.get(`reply_to_limited`)),m=S(e=>e.circles.toList().toArray().filter(e=>e!==null)),[h,g]=(0,W.useState)(s),[_,v]=(0,W.useState)(l),[y,b]=(0,W.useState)(u),[x,C]=(0,W.useState)(d),w=!!i,T=[`private`,`direct`,`limited`,`mutual`,`circle`].includes(h),E=S(Yt),D=S(e=>e.compose.get(`quoted_status_id`)!==null),O=h===`circle`&&!x,k=(0,W.useMemo)(()=>{let e=[{value:`private`,text:o.formatMessage(U.private_short),meta:o.formatMessage(U.private_long),icon:`lock`,iconComponent:qe},{value:`mutual`,text:o.formatMessage(U.mutual_short),meta:o.formatMessage(U.mutual_long),icon:`exchange`,iconComponent:Je},{value:`circle`,text:o.formatMessage(U.circle_short),meta:o.formatMessage(U.circle_long),icon:`user-circle`,iconComponent:Ge},{value:`direct`,text:o.formatMessage(U.direct_short),meta:o.formatMessage(U.direct_long),icon:`at`,iconComponent:he}],t={reply:{value:`reply`,text:o.formatMessage(U.reply_short),meta:o.formatMessage(U.reply_long),icon:`at`,iconComponent:ae},banned:{value:`banned`,text:o.formatMessage(U.banned_short),meta:o.formatMessage(U.banned_long),icon:`ban`,iconComponent:_e}};if(E||e.unshift({value:`public`,text:o.formatMessage(U.public_short),meta:o.formatMessage(U.public_long),icon:`globe`,iconComponent:ge},{value:`public_unlisted`,text:o.formatMessage(U.public_unlisted_short),meta:o.formatMessage(U.public_unlisted_long),icon:`cloud`,iconComponent:Xe},{value:`login`,text:o.formatMessage(U.login_short),meta:o.formatMessage(U.login_long),icon:`key`,iconComponent:Ke},{value:`unlisted`,text:o.formatMessage(U.unlisted_short),meta:o.formatMessage(U.unlisted_long),icon:`unlock`,iconComponent:Ye}),p&&e.unshift(t.reply),c){let n=e.filter(e=>c?.includes(e.value));return n.length===0?[t.banned]:n}return e},[o,E,p]),A=(0,W.useMemo)(()=>[{value:`public`,text:o.formatMessage(X.public_short),meta:o.formatMessage(X.public_long),icon:`globe`,iconComponent:ge},{value:`public_unlisted`,text:o.formatMessage(X.public_unlisted_short),meta:o.formatMessage(X.public_unlisted_long),icon:`cloud`,iconComponent:Xe},{value:`private`,text:o.formatMessage(X.private_short),meta:o.formatMessage(X.private_long),icon:`lock`,iconComponent:_t},{value:`direct`,text:o.formatMessage(X.direct_short),meta:o.formatMessage(X.direct_long),icon:`at`,iconComponent:qe},{value:`limited`,text:o.formatMessage(X.limited_short),meta:o.formatMessage(X.limited_long),icon:`at`,iconComponent:he}],[o]),j=(0,W.useMemo)(()=>m.map(e=>({value:e.get(`id`),text:e.get(`title`)})),[m]),te=(0,W.useMemo)(()=>[{value:`public`,text:o.formatMessage(Z.quotePublic)},{value:`followers`,text:o.formatMessage(Z.quoteFollowers)},{value:`nobody`,text:o.formatMessage(Z.quoteNobody)}],[o]),ne=(0,W.useCallback)(e=>{Kt(e)&&g(e)},[]),ie=(0,W.useCallback)(e=>{qt(e)&&v(e)},[]),N=(0,W.useCallback)(e=>{Gt(e)&&b(e)},[]),P=(0,W.useCallback)(e=>{j.some(t=>t.value===e)?C(e):C(``)},[j]),F=(0,W.useCallback)(()=>{t(h,_,y,x),e()},[t,e,h,_,y,x]),L=(0,W.useId)(),R=`${L}-visibility-label`,z=`${L}-visibility-desc`,B=`${L}-quote-label`,V=`${L}-quote-desc`,oe=`${L}-searchability-label`,se=`${L}-searchability-desc`,H=`${L}-circle-label`,ce=`${L}-circle-desc`,le=(0,W.useRef)(null);return(0,G.jsxs)(`div`,{className:`modal-root__modal dialog-modal visibility-modal`,children:[(0,G.jsxs)(`div`,{className:`dialog-modal__header`,children:[(0,G.jsx)(M,{className:`dialog-modal__header__close`,title:o.formatMessage(Z.close),icon:`times`,iconComponent:re,onClick:e}),(0,G.jsx)(ee,{as:`h1`,className:`dialog-modal__header__title`,children:(0,G.jsx)(n,{id:`visibility_modal.header`,defaultMessage:`Visibility and interaction`})})]}),(0,G.jsxs)(`div`,{className:`dialog-modal__content`,children:[(0,G.jsx)(`div`,{className:`dialog-modal__content__description`,children:(0,G.jsx)(n,{id:`visibility_modal.instructions`,defaultMessage:`Control who can interact with this post. You can also apply settings to all future posts by navigating to <link>Preferences > Posting defaults</link>.`,values:{link:e=>(0,G.jsx)(`a`,{href:`/settings/preferences/posting_defaults`,children:e})},tagName:`p`})}),(0,G.jsxs)(`div`,{className:`dialog-modal__content__form`,children:[(0,G.jsxs)(`div`,{className:(0,q.default)(`visibility-dropdown`,{disabled:w}),children:[(0,G.jsx)(`label`,{className:`visibility-dropdown__label`,id:R,children:(0,G.jsx)(n,{id:`visibility_modal.privacy_label`,defaultMessage:`Visibility`})}
14),(0,G.jsx)(Y,{items:k,current:h,onChange:ne,labelId:R,descriptionId:z,classPrefix:`visibility-dropdown`,disabled:w,placement:f()?`top`:`bottom-start`,target:f()?le:void 0}),!!i&&(0,G.jsx)(`p`,{className:`visibility-dropdown__helper`,id:`visibilityDescriptionId`,children:(0,G.jsx)(n,{id:`visibility_modal.helper.privacy_editing`,defaultMessage:`Visibility can't be changed after a post is published.`})}),!i&&E&&(0,G.jsx)(`p`,{className:`visibility-dropdown__helper`,id:`visibilityDescriptionId`,children:(0,G.jsx)(n,{id:`visibility_modal.helper.privacy_private_self_quote`,defaultMessage:`Self-quotes of private posts cannot be made public.`})})]}),!i&&h===`circle`&&(0,G.jsxs)(`div`,{className:(0,q.default)(`visibility-dropdown`,{disabled:w}),children:[(0,G.jsx)(`label`,{className:`visibility-dropdown__label`,id:H,children:(0,G.jsx)(n,{id:`visibility_modal.circle_label`,defaultMessage:`Circle`})}),(0,G.jsx)(Y,{items:j,current:x,onChange:P,labelId:H,descriptionId:ce,classPrefix:`visibility-dropdown`,disabled:w})]}),(0,G.jsxs)(`div`,{className:(0,q.default)(`visibility-dropdown`,{disabled:w}),children:[(0,G.jsx)(`label`,{className:`visibility-dropdown__label`,id:oe,children:(0,G.jsx)(n,{id:`visibility_modal.searchability_label`,defaultMessage:`Searchability`})}),(0,G.jsx)(Y,{items:A,current:_,onChange:ie,labelId:oe,descriptionId:se,classPrefix:`visibility-dropdown`,disabled:w}),!!i&&(0,G.jsx)(`p`,{className:`visibility-dropdown__helper`,id:`searchabilityDescriptionId`,children:(0,G.jsx)(n,{id:`visibility_modal.helper.searchability_editing`,defaultMessage:`Searchability can't be changed after a post is published.`})})]}),(0,G.jsxs)(`div`,{ref:le,className:(0,q.default)(`visibility-dropdown`,{disabled:T}),children:[(0,G.jsx)(`label`,{className:`visibility-dropdown__label`,id:B,children:(0,G.jsx)(n,{id:`visibility_modal.quote_label`,defaultMessage:`Who can quote`})}),(0,G.jsx)(Y,{items:te,current:T?`nobody`:y,onChange:N,labelId:B,descriptionId:V,classPrefix:`visibility-dropdown`,disabled:T}),(0,G.jsx)(Zt,{policy:y,visibility:h,className:`visibility-dropdown__helper`,id:V})]}),D&&h===`direct`&&(0,G.jsxs)(`div`,{className:`visibility-modal__quote-warning`,children:[(0,G.jsx)(n,{id:`visibility_modal.direct_quote_warning.title`,defaultMessage:`Quotes can't be embedded in private mentions`,tagName:`h3`}),(0,G.jsx)(n,{id:`visibility_modal.direct_quote_warning.text`,defaultMessage:`If you save the current settings, the embedded quote will be converted to a link.`,tagName:`p`})]})]}),(0,G.jsxs)(`div`,{className:`dialog-modal__content__actions`,children:[(0,G.jsx)(I,{onClick:e,secondary:!0,children:(0,G.jsx)(n,{id:`confirmation_modal.cancel`,defaultMessage:`Cancel`})}),(0,G.jsx)(I,{onClick:F,disabled:O,children:(0,G.jsx)(n,{id:`visibility_modal.save`,defaultMessage:`Save`})})]})]})]})});Xt.displayName=`VisibilityModal`;var Zt=({policy:e,visibility:t,...r})=>{let i;return t===`unlisted`&&e!==`nobody`&&(i=(0,G.jsx)(n,{id:`visibility_modal.helper.unlisted_quoting`,defaultMessage:`When people quote you, their post will also be hidden from trending timelines.`})),t===`private`&&(i=(0,G.jsx)(n,{id:`visibility_modal.helper.private_quoting`,defaultMessage:`Follower-only posts authored on Mastodon can't be quoted by others.`})),t===`direct`&&(i=(0,G.jsx)(n,{id:`visibility_modal.helper.direct_quoting`,defaultMessage:`Private mentions authored on Mastodon can't be quoted by others.`})),i?(0,G.jsx)(`p`,{...r,children:i}):null},Qt={checkbox_wrapper:`_comp_confirmation_modals__checkbox_wrapper`},Q=a({title:{id:`confirmations.private_quote_notify.title`,defaultMessage:`Share with followers and mentioned users?`},message:{id:`confirmations.private_quote_notify.message`,defaultMessage:`The person you are quoting and other mentions will be notified and will be able to view your post, even if they're not following you.`},confirm:{id:`confirmations.private_quote_notify.confirm`,defaultMessage:`Publish post`},cancel:{id:`confirmations.private_quote_notify.cancel`,defaultMessage:`Back to editing`}}),$t=(0,W.forwardRef)(({onClose:e},t)=>{let i=r(),[a,o]=(0,W.useState)(!1),s=(0,W.useCallback)(()=>{o(e=>!e)},[]),c=x(),l=(0,W.useCallback)(()=>{c(C()),a&&c(w([`dismissed_banners`,h],!0))},[a,c]);return(0,G.jsx)($e,{title:i.formatMessage(Q.title),message:i.formatMessage(Q.message),confirm:i.formatMessage(Q.confirm),cancel:i.formatMessage(Q.cancel),onConfirm:l,onClose:e,extraContent:(0,G.jsxs)(`label`,{className:Qt.checkbox_wrapper,children:[(0,G.jsx)(vt,{value:`hide`,checked:a,onChange:s}),` `,(0,G.jsx)(n,{id:`confirmations.private_quote_notify.do_not_show_again`,defaultMessage:`Don't show me this message again`})]})})});$t.displayName=`PrivateQuoteNotify`;var en={MEDIA:()=>Promise.resolve({default:pe}),VIDEO:()=>Promise.resolve({default:Wt}),AUDIO:()=>Promise.resolve({default:Ft}),IMAGE:()=>Promise.resolve({default:zt}),BOOST:()=>Promise.resolve({default:Lt}),CONFIRM:()=>Promise.resolve({default:$e}),CONFIRM_DELETE_STATUS:()=>Promise.resolve({default:et}),CONFIRM_DELETE_LIST:()=>Promise.resolve({default:at}),CONFIRM_DELETE_ANTENNA:()=>Promise.resolve({default:ot}),CONFIRM_DELETE_CIRCLE:()=>Promise.resolve({default:lt}),CONFIRM_DELETE_BOOKMARK_CATEGORY:()=>Promise.resolve({default:ft}),CONFIRM_DELETE_COLLECTION:()=>Promise.resolve({default:it}),CONFIRM_REPLY:()=>Promise.resolve({default:rt}),CONFIRM_EDIT_STATUS:()=>Promise.resolve({default:gt}),CONFIRM_UNBLOCK:()=>Promise.resolve({default:mt}),CONFIRM_UNFOLLOW:()=>Promise.resolve({default:nt}),CONFIRM_WITHDRAW_REQUEST:()=>Promise.resolve({default:ct}),CONFIRM_CLEAR_NOTIFICATIONS:()=>Promise.resolve({default:dt}),CONFIRM_LOG_OUT:()=>Promise.resolve({default:tt}),CONFIRM_FOLLOW_TO_LIST:()=>Promise.resolve({default:st}),CONFIRM_MISSING_ALT_TEXT:()=>Promise.resolve({default:pt}),CONFIRM_PRIVATE_QUOTE_NOTIFY:()=>Promise.resolve({default:$t}),CONFIRM_REVOKE_QUOTE:()=>Promise.resolve({default:ut}),CONFIRM_QUIET_QUOTE:()=>Promise.resolve({default:ht}),MUTE:Ee,BLOCK:Oe,DOMAIN_BLOCK:be,REPORT:we,REPORT_COLLECTION:Fe,COLLECTION_ADDER:()=>s(()=>import(`./collection_adder-Vumo9553.js`).then(e=>({default:e.CollectionAdder})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142]),import.meta.url),SHARE_COLLECTION:()=>s(()=>import(`./share_modal-7kHvXMLC.js`).then(e=>({default:e.CollectionShareModal})),__vite__mapDeps([143,1,2,3,4,5,8,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,45,46,47,44,48,49,50,51,76,42,43,144,59,60,61,62,57,54,63,64,65,66,67,68,69,70,71,56,58,72,145,140,73,74,75,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,146]),import.meta.url),REVOKE_COLLECTION_INCLUSION:()=>s(()=>
14import(`./revoke_collection_inclusion_modal-DauvKuXJ.js`).then(e=>e.t).then(e=>({default:e.RevokeCollectionInclusionModal})),__vite__mapDeps([138,1,2,3,4,5,8,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,139,39,40,76,44,42,43,140]),import.meta.url),ACTIONS:()=>Promise.resolve({default:Pt}),EMBED:Se,FOCAL_POINT:()=>Promise.resolve({default:Nt}),LIST_ADDER:ke,ANTENNA_ADDER:Te,CIRCLE_ADDER:Ce,BOOKMARK_CATEGORY_ADDER:Pe,COMPARE_HISTORY:xe,FILTER:ye,SUBSCRIBED_LANGUAGES:je,INTERACTION:Ne,CLOSED_REGISTRATIONS:ve,IGNORE_NOTIFICATIONS:De,ANNUAL_REPORT:Me,COMPOSE_PRIVACY:()=>Promise.resolve({default:Xt}),ACCOUNT_NOTE:()=>s(()=>import(`./note_modal-ZWIGgzAl.js`).then(e=>({default:e.AccountNoteModal})),__vite__mapDeps([147,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,42,43,44,139,39,40,76,140,148,61,123,41,45,46,47,48,49,50,51,89,90,71,91,124,73,74,75,77,78,79,80,81,82,83,84,85,86,87,88,92,93,94,95,96,97,98,99,149,150]),import.meta.url),ACCOUNT_FIELD_OVERFLOW:()=>s(()=>import(`./field_modal-D4ONBGlv.js`).then(e=>({default:e.AccountFieldModal})),__vite__mapDeps([151,3,1,2,4,5,39,9,40,67,6,7,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,64,44,65,66,76,42,43,140,152,149,150]),import.meta.url),ACCOUNT_JOIN_DATE:()=>s(()=>import(`./join_modal-CLgRSUoD.js`).then(e=>({default:e.AccountJoinModal})),__vite__mapDeps([153,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,41,45,46,47,44,48,49,50,51,61,108,67,40,64,65,66,76,42,43,140,126,100,149,150]),import.meta.url),ACCOUNT_EDIT_NAME:$(`NameModal`),ACCOUNT_EDIT_BIO:$(`BioModal`),ACCOUNT_EDIT_PROFILE_DISPLAY:$(`ProfileDisplayModal`),ACCOUNT_EDIT_VERIFY_LINKS:$(`VerifiedModal`),ACCOUNT_EDIT_FIELD_EDIT:$(`EditFieldModal`),ACCOUNT_EDIT_FIELD_DELET
14E:$(`DeleteFieldModal`),ACCOUNT_EDIT_FIELDS_REORDER:$(`ReorderFieldsModal`),ACCOUNT_EDIT_IMAGE_ALT:$(`ImageAltModal`),ACCOUNT_EDIT_IMAGE_DELETE:$(`ImageDeleteModal`),ACCOUNT_EDIT_IMAGE_UPLOAD:$(`ImageUploadModal`),ACCOUNT_HIDE_FEATURED_TAB:()=>s(()=>import(`./hide_featured_tab-Eqd0GDnW.js`).then(e=>({default:e.ConfirmHideFeaturedTabModal})),__vite__mapDeps([154,1,2,3,4,5,8,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,61,139,39,40,76,44,42,43,140,100]),import.meta.url),COMPOSER_DRAFT_DELETE:()=>s(()=>import(`./modal_cancel-pDwbipRH.js`),__vite__mapDeps([155,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,156,57,44,43,51,157,158,39,40,159]),import.meta.url),COMPOSER_REARRANGE:()=>s(()=>import(`./modal_rearrange-CsW-l6Hs.js`),__vite__mapDeps([160,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,44,161,162,163,47,164,165,156,57,43,51,157,166,70,80,158,39,40,159,167]),import.meta.url),COMPOSER_SWITCH_TO_POST:()=>s(()=>import(`./modal_switch-C6PJiWiR.js`),__vite__mapDeps([168,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,156,57,44,43,51,157,158,39,40,159]),import.meta.url)};function $(e){return()=>s(()=>import(`./modals-DGjdiUpq.js`).then(t=>({default:t[e]})),__vite__mapDeps([169,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,44,41,42,43,45,46,47,48,49,50,51,161,64,65,66,76,162,163,139,140,148,61,123,89,90,71,91,124,170,87,88,92,73,74,75,77,78,79,80,81,82,83,84,85,86,93,94,95,96,97,98,99,171,67,172,57,60,173,174,62,54,110,111,175,176,100,177,102,103,104,105,178,52,53,55,179,119,118,106,120,121,122,180,181,164,182]),import.meta.url)}var tn=class extends W.PureComponent{constructor(...e){super(...e),v(this,`state`,{backgroundColor:null}),v(this,`setBackgroundColor`,e=>{this.setState({backgroundColor:e})}),v(this,`renderLoading`,()=>{let{onClose:e}=this.props;return(0,G.jsx)(Bt,{loading:!0,onClose:e})}),v(this,`renderError`,e=>{let{onClose:t}=this.props;return(0,G.jsx)(Bt,{...e,onClose:t})}),v(this,`handleClose`,(e=!1)=>{let{onClose:t}=this.props,n=this._modal?.getCloseConfirmationMessage?.();t(n,e)}),v(this,`setModalRef`,e=>{this._modal=e})}render(){let{type:e,props:t,ignoreFocus:n}=this.props,{backgroundColor:r}=this.state,i=!!e;return(0,G.jsx)(ce,{backgroundColor:r,onClose:this.handleClose,ignoreFocus:n,children:i&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Ie,{fetchComponent:en[e],loading:this.renderLoading,error:this.renderError,renderDelay:200,children:e=>(0,G.jsx)(e,{...t,onChangeBackgroundColor:this.setBackgroundColor,onClose:this.handleClose,ref:this.setModalRef})},e),(0,G.jsx)(A,{children:(0,G.jsx)(`meta`,{name:`robots`,content:`noindex`})})]})})}},nn={},rn=y(e=>({ignoreFocus:e.getIn([`modal`,`ignoreFocus`]),type:e.getIn([`modal`,`stack`,0,`modalType`],null),props:e.getIn([`modal`,`stack`,0,`modalProps`],nn)}),e=>({onClose(t,n=!1){e(t?O({previousModalProps:t.props,modalType:`CONFIRM`,modalProps:{message:t.message,confirm:t.confirm,onConfirm:()=>e(k({modalType:void 0,ignoreFocus:n}))}}):k({modalType:void 0,ignoreFocus:n}))}}))(tn);export{Tt as n,xt as r,rn as t};
15//# sourceMappingURL=modal_container-rE40Tked.js.map

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.