PageSourceSearch

https://toot.wales/packs/modal_container-SykDE_Yf.js

js toot.wales collected 2026-10-02 04:08:08 UTC 45,133 bytes, 15 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/packs/collection_adder-D8zwRUSn.js","/packs/chunk-CMxvf4Kt.js","/packs/render-CyxiOTyI.js","/packs/defineProperty-ClgyJMzY.js","/packs/prop-types-BTvjt2rf.js","/packs/ready-B3bZnx13.js","/packs/axios-fEECnNIR.js","/packs/preload-helper-MPxKRjA8.js","/packs/jsx-runtime-SsSjplwM.js","/packs/accounts_typed-CjqlR29F.js","/packs/emoji-0SZWhroe.js","/packs/locale-D-1rLaCQ.js","/packs/utils-B1ZRuyMb.js","/packs/intl-localematcher-DXxXxMOe.js","/packs/react-intl-Cop388b4.js","/packs/typed_functions-CyAHd4bl.js","/packs/redux-toolkit.modern-DmA8smPH.js","/packs/immutable.es-BbKILtiW.js","/packs/router-COf4DbtI.js","/packs/locales-BuoYIVCV.js","/packs/react-router-BzQH59UT.js","/packs/settings-Cq4pjZIN.js","/packs/debounce-BID24YNc.js","/packs/isSymbol-DjjMdNDY.js","/packs/bundle_column_error-CQQiy3lP.js","/packs/status_quoted-zZwhcx8q.js","/packs/poll-xFwn7afV.js","/packs/short_number-Coj2vPT7.js","/packs/numbers-BEp7e788.js","/packs/skeleton-F9wtbjO5.js","/packs/esm-COiaK3Y-.js","/packs/classnames-CYxIelk8.js","/packs/intl-5El_RLKu.js","/packs/card-DVLf7l_5.js","/packs/utils-B468qXuV.js","/packs/warning-B-sl7_O4.js","/packs/toString-TkeIGW9i.js","/packs/assets/status_quoted-BXC2E0lB.css","/packs/skip_links-DvocfM0f.js","/packs/assets/skip_links-DIHZBkdS.css","/packs/copy_button-D2nX7AgF.js","/packs/content_copy-D0BsbSdh.js","/packs/gif-By-clMPI.js","/packs/helmet-DcyqcM0_.js","/packs/assets/bundle_column_error-TCkCl549.css","/packs/form_fields-Bx7LodtA.js","/packs/form_field_wrapper-DzA80LA4.js","/packs/a11y_live_region-xSzZtpvs.js","/packs/error-BGbdiqwx.js","/packs/info-fLA8QvQj.js","/packs/assets/form_field_wrapper-BlP-LQo1.css","/packs/utils-B_8WHCxX.js","/packs/text_input_field-BzNJrhne.js","/packs/assets/text_input_field-CZfb3Ks7.css","/packs/toggle_field-CSl_LwCn.js","/packs/assets/toggle_field-CbgUPVKo.css","/packs/emoji_picker_dropdown_container-BOWiGtYe.js","/packs/keyboard_arrow_up-6cXawH9y.js","/packs/search-Vir2O0MW.js","/packs/assets/form_fields-BXnF9tzv.css","/packs/collection_list_item-Be4ekFuN.js","/packs/account-LWgOsA1Y.js","/packs/block-BwDpqtqd.js","/packs/volume_off-Dp7AosRC.js","/packs/assets/account-DcfjHi2n.css","/packs/account_list_item-DKIKMo2K.js","/packs/formatted_date-BMWzXdl7.js","/packs/number_fields-BP1sTE26.js","/packs/assets/number_fields-DAO-UqGM.css","/packs/assets/account_list_item-OsUTas1E.css","/packs/callout-CbM3Z-LT.js","/packs/assets/callout-IFgvMNaK.css","/packs/columns_area-Tc21gcHG.js","/packs/navigation_panel-B-jkyTS5.js","/packs/hashtag-tYtRfHpE.js","/packs/build-BBD85ln_.js","/packs/index.module-y4HS80Z2.js","/packs/assets/index-BNWomVqV.css","/packs/lists-DfntksoS.js","/packs/add-COFszs2T.js","/packs/category-DL5xfcEw.js","/packs/use-gesture-react.esm-CkIoXYZ6.js","/packs/compose_form_container-DqgESgoc.js","/packs/check_box-Oe7hUeNN.js","/packs/done-BHN-j5OH.js","/packs/modal_shell-B9hHK4dQ.js","/packs/visualizer-Clt8LcEK.js","/packs/link_off-Bznmp5ys.js","/packs/fuzzysort-CszoTWda.js","/packs/assets/compose_form_container-AjuSs3Yh.css","/packs/server_hero_image-CjCDLoAZ.js","/packs/alt_text_badge-BMx7yFRM.js","/packs/useSelectableClick-CxMb_Vru.js","/packs/assets/alt_text_badge-Dp0EyRCt.css","/packs/assets/server_hero_image-B4ZnzyEW.css","/packs/link_footer-zQVwVmw6.js","/packs/assets/link_footer-BFct3wYC.css","/
1packs/chevron_left-CiGtVExw.js","/packs/assets/columns_area-_ZCJcgcV.css","/packs/not_signed_in_indicator-DCvbcXhc.js","/packs/components-BFqsVLIu.js","/packs/revoke_collection_inclusion_modal-C91Hk1im.js","/packs/useAccountId-DdAVoc7P.js","/packs/useSearchAccounts-joOQQ73k.js","/packs/index.module-3tq1TBjm.js","/packs/useSearchParam-DfnQmRI5.js","/packs/useSearchTags-DRNCAD-r.js","/packs/help-GJnrcBCz.js","/packs/visibility_off-C9BTUzvv.js","/packs/assets/collection_list_item-Dex4AxAa.css","/packs/assets/collection_adder-B7OeeUpr.css","/packs/share_modal-BHHOTFfB.js","/packs/assets/share_modal-BmvU6eCf.css","/packs/note_modal-CMcPhPU_.js","/packs/styles.module-BoFKCCUL.js","/packs/assets/styles-BdqKzGTn.css","/packs/field_modal-D273cK8X.js","/packs/useFieldHtml-BrUu1P7s.js","/packs/join_modal-COaqUVJI.js","/packs/hide_featured_tab-BD0ygJJT.js","/packs/modals-Cok13FBt.js","/packs/account_edit-B0s7HrmA.js","/packs/account_bio-D-pvq4cr.js","/packs/assets/account_bio-DpMboqlm.css","/packs/edit_button-BqnvHuuA.js","/packs/delete-CKzzlDYo.js","/packs/assets/edit_button-VCZjbsjh.css","/packs/expand_more-D3rmABB8.js","/packs/assets/modals-6TtqgMbj.css"])))=>i.map(i=>d[i]);
2import{o as e}from"./chunk-CMxvf4Kt.js";import{n as t,t as n}from"./jsx-runtime-SsSjplwM.js";import{a as r,c as i,o as a,s as o}from"./react-intl-Cop388b4.js";import{t as s}from"./preload-helper-MPxKRjA8.js";import{b as c,t as l}from"./prop-types-BTvjt2rf.js";import{$ as u,M as d,Q as f,X as p,at as m,b as h,ct as g,n as _,nt as v,rt as y,v as b,y as x}from"./poll-xFwn7afV.js";import{Ai as S,En as C,Fi as w,K as T,Li as ee,Ni as E,Tn as D,Un as te,Vt as ne,Xr as O,bn as re,ei as ie,f as ae,fn as oe,gt as se,ii as ce,ji as le,un as ue,va as de,ya as fe}from"./render-CyxiOTyI.js";import{s as pe}from"./react-router-BzQH59UT.js";import{n as me,t as k}from"./defineProperty-ClgyJMzY.js";import{A as he}from"./accounts_typed-CjqlR29F.js";import{l as A,n as ge,o as j,s as M}from"./typed_functions-CyAHd4bl.js";import{t as _e}from"./helmet-DcyqcM0_.js";import{n as ve}from"./short_number-Coj2vPT7.js";import{$ as ye,A as be,B as xe,J as Se,Kt as Ce,N as we,Ot as Te,Pt as Ee,Qt as De,Tt as Oe,V as ke,X as Ae,Xt as je,cn as N,ct as Me,ht as Ne,it as Pe,j as Fe,mn as P,on as Ie,qt as Le,sn as Re,ut as ze,wt as Be}from"./status_quoted-zZwhcx8q.js";import{t as Ve}from"./classnames-CYxIelk8.js";import{t as He}from"./a11y_live_region-xSzZtpvs.js";import{t as Ue}from"./alert-oodUR1Sl.js";import{t as F}from"./skeleton-F9wtbjO5.js";import{t as We}from"./audio-DwkgZakd.js";import{r as Ge,t as Ke}from"./video-BE9bW_nm.js";import{l as qe}from"./card-DVLf7l_5.js";import{a as Je,i as Ye,n as Xe,o as Ze,r as Qe,t as $e}from"./media_modal-BC38RBu3.js";import{t as et}from"./gif-By-clMPI.js";import{D as tt,E as I,S as nt,T as rt,n as it,r as L,x as at}from"./compose_form_container-DqgESgoc.js";import{t as ot}from"./useSelectableClick-CxMb_Vru.js";import{i as st,n as ct}from"./emoji_picker_dropdown_container-BOWiGtYe.js";import{t as lt}from"./embedded_status-DUSvymK7.js";import{t as ut}from"./utils-B_8WHCxX.js";var R=e(t()),z=n(),B=(e,t,n)=>typeof t==`object`?e.formatMessage(t,n):t,dt=({alert:{key:e,title:t,message:n,values:r,action:a,onClick:o},dismissAfter:s})=>{let c=j(),l=i(),[u,d]=(0,R.useState)(!1);return(0,R.useEffect)(()=>{let e=setTimeout(()=>{d(!0)},1);return()=>{clearTimeout(e)}},[]),(0,R.useEffect)(()=>{let t=setTimeout(()=>{d(!1),setTimeout(()=>{c(w({key:e}))},500)},s);return()=>{clearTimeout(t)}},[c,d,e,s]),(0,z.jsx)(Ue,{isActive:u,title:t?B(l,t,r):void 0,message:B(l,n,r),action:a?B(l,a,r):void 0,onActionClick:o})},ft=()=>{let e=M(e=>e.alerts),t=M(e=>!!e.meta.get(`needsReload`));return(0,z.jsxs)(He,{className:`notification-list`,children:[e.map((e,t)=>(0,z.jsx)(dt,{alert:e,dismissAfter:5e3+t*1e3},e.key)),t&&(0,z.jsx)(mt,{})]})},pt=a({id:`alert.need_reload.message`,defaultMessage:`Mastodon has been updated. Some things may not work correctly until you reload the page.`}),mt=()=>(0,z.jsx)(Ue,{isActive:!0,message:i().formatMessage(pt)}),ht=e(re()),gt=A((e,t)=>({loading:e.get(`loadingBar`)[t.scope||`default`]}))(ht.default.WrappedComponent),V=e(l()),H=e(Ve()),_t=st(),vt=e=>(0,z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,z.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`})}
2),yt=o({help:{id:`info_button.label`,defaultMessage:`Help`}}),bt=()=>{let e=i(),[t,n]=(0,R.useState)(!1),a=(0,R.useRef)(null),o=(0,R.useId)(),s=(0,R.useCallback)(()=>{n(!t)},[t,n]),[c,l]=ot(s);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`button`,{type:`button`,className:(0,H.default)(`help-button`,{active:t}),ref:a,onClick:s,"aria-expanded":t,"aria-controls":o,"aria-label":e.formatMessage(yt.help),children:(0,z.jsx)(u,{id:``,icon:vt})}),(0,z.jsx)(p,{show:t,rootClose:!0,placement:`top`,onHide:s,offset:[5,5],target:a,children:({props:e})=>(0,z.jsx)(`div`,{...e,className:`dialog-modal__popout prose dropdown-animation`,role:`region`,id:o,onMouseDown:c,onMouseUp:l,children:(0,z.jsx)(r,{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,z.jsx)(`h1`,{children:e}),p:e=>(0,z.jsx)(`p`,{children:e}),ul:e=>(0,z.jsx)(`ul`,{children:e}),li:e=>(0,z.jsx)(`li`,{children:e})}})})})]})},U=o({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`}}),xt=1e4,St=({children:e,onSelectFile:t,mimeTypes:n})=>{let r=(0,R.useRef)(null),i=(0,R.useCallback)(()=>{r.current?.click()},[]),a=(0,R.useCallback)(e=>{let n=e.target.files?.[0];n&&t(n)},[t]);return(0,z.jsxs)(`label`,{children:[(0,z.jsx)(N,{onClick:i,children:e}),(0,z.jsx)(`input`,{id:`upload-modal__thumbnail`,ref:r,type:`file`,accept:n,onChange:a,style:{display:`none`}})]})},Ct=({mediaId:e,position:t,onPositionChange:n})=>{let r=(0,R.useRef)(null),[i,a]=(0,R.useState)(null),[o,s]=t,l=g({to:{left:`${o*100}%`,top:`${s*100}%`},immediate:i===`moving`}),u=M(t=>t.compose.get(`media_attachments`).find(t=>t.get(`id`)===e)),d=M(e=>c?e.accounts.get(c):void 0),f=(0,R.useCallback)(e=>{r.current=e},[]),p=(0,R.useCallback)(e=>{if(e.button!==0)return;let t=e=>{let{x:t,y:i}=Ge(r.current,e);a(`moving`),n([t,i])},i=()=>{a(null),document.removeEventListener(`mouseup`,i),document.removeEventListener(`mousemove`,t)},{x:o,y:s}=Ge(r.current,e.nativeEvent);a(`started`),n([o,s]),document.addEventListener(`mouseup`,i),document.addEventListener(`mousemove`,t)},[a,n]);return u?u.get(`type`)===`image`?(0,z.jsxs)(`div`,{className:(0,H.default)(`focal-point`,{dragging:i}),children:[(0,z.jsx)(`img`,{ref:f,draggable:!1,src:u.get(`url`),alt:``,role:`presentation`,onMouseDown:p}),(0,z.jsx)(m.div,{className:`focal-point__reticle`,style:l})]}):u.get(`type`)===`gifv`?(0,z.jsxs)(`div`,{className:(0,H.default)(`focal-point`,{dragging:i}),children:[(0,z.jsx)(Ye,{ref:f,src:u.get(`url`),alt:``,onMouseDown:p}),(0,z.jsx)(m.div,{className:`focal-point__reticle`,style:l})]}):u.get(`type`)===`video`?(0,z.jsx)(Ke,{preview:u.get(`preview_url`),frameRate:u.getIn([`meta`,`original`,`frame_rate`]),aspectRatio:`${u.getIn([`meta`,`original`,`width`])} / ${u.getIn([`meta`,`original`,`height`])}`,blurhash:u.get(`blurhash`),src:u.get(`url`),detailed:!0,editable:!0}):u.get(`type`)===`audio`?(0,z.jsx)(We,{src:u.get(`url`),poster:u.get(`preview_url`)??d?.avatar_static,duration:u.getIn([`meta`,`original`,`duration`],0),backgroundColor:u.getIn([`meta`,`colors`,`background`]),foregroundColor:u.getIn([`meta`,`colors`,`foreground`]),accentColor:u.getIn([`meta`,`colors`,`accent`]),editable:!0}):null:null},wt=(0,R.forwardRef)(({mediaId:e,previousDescription:t,previousPosition:n,onClose:a},o)=>{let c=i(),l=j(),u=M(t=>t.compose.get(`media_attachments`).find(t=>t.get(`id`)===e)),d=M(e=>e.compose.get(`language`)),f=u?.getIn([`meta`,`focus`,`x`],0)??0,p=u?.getIn([`meta`,`focus`,`y`],0)??0,[m,h]=(0,R.useState)(t??u?.get(`description`)??``),[g,_]=(0,R.useState)(n??[f/2+.5,p/-2+.5]),[y,b]=(0,R.useState)(!1),[x,S]=(0,R.useState)(!1),C=(0,R.useRef)(!!(t||n)),w=u?.get(`type`),T=(0,_t.length)(m)<=xt,E=u?.get(`unattached`),D=(0,R.useCallback)(e=>{h(e.target.value),C.current=!0},[h]),te=(0,R.useCallback)(t=>{l(ce(e,t))},[l,e]),ne=(0,R.useCallback)(e=>{_(e),C.current=!0},[_]),O=(0,R.useCallback)(()=>{S(!0),l(ue({id:e,description:m,focus:`${((g[0]-.5)*2).toFixed(2)},${((g[1]-.5)*-2).toFixed(2)}`})).then(()=>(S(!1),C.current=!1,a(),``)).catch(e=>{S(!1),l(ee(e))})},[l,S,e,a,g,m]),re=(0,R.useCallback)(e=>{(e.ctrlKey||e.metaKey)&&e.key===`Enter`&&(e.preventDefault(),T&&O())},[O,T]),ie=(0,R.useCallback)(()=>{b(!0),De().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:`${ae}
14/ocr/lang-data`,cacheMethod:`write`}),i=URL.createObjectURL(u?.get(`file`));return h((await r.recognize(i)).data.text),b(!1),await r.terminate(),``}).catch(()=>{b(!1)})},[h,b,u]);return(0,R.useImperativeHandle)(o,()=>({getCloseConfirmationMessage:()=>C.current?{message:c.formatMessage(U.discardMessage),confirm:c.formatMessage(U.discardConfirm),props:{previousDescription:m,previousPosition:g}}:null}),[c,m,g]),(0,z.jsxs)(`div`,{className:`modal-root__modal dialog-modal`,children:[(0,z.jsxs)(`div`,{className:`dialog-modal__header`,children:[(0,z.jsx)(N,{onClick:O,disabled:!T,children:x?(0,z.jsx)(v,{}):(0,z.jsx)(r,{id:`alt_text_modal.done`,defaultMessage:`Done`})}),(0,z.jsx)(P,{as:`h1`,className:`dialog-modal__header__title`,children:(0,z.jsx)(r,{id:`alt_text_modal.add_alt_text`,defaultMessage:`Add alt text`})}),(0,z.jsx)(N,{secondary:!0,onClick:a,children:(0,z.jsx)(r,{id:`alt_text_modal.cancel`,defaultMessage:`Cancel`})})]}),(0,z.jsxs)(`div`,{className:`dialog-modal__content`,children:[(0,z.jsxs)(`div`,{className:`dialog-modal__content__preview`,children:[(0,z.jsx)(Ct,{mediaId:e,position:g,onPositionChange:ne}),(w===`audio`||w===`video`)&&E&&(0,z.jsx)(St,{onSelectFile:te,mimeTypes:`image/jpeg,image/png,image/gif,image/heic,image/heif,image/webp,image/avif`,children:(0,z.jsx)(r,{id:`alt_text_modal.change_thumbnail`,defaultMessage:`Change thumbnail`})})]}),(0,z.jsx)(`form`,{className:`dialog-modal__content__form simple_form`,onSubmit:O,children:(0,z.jsxs)(`div`,{className:`input`,children:[(0,z.jsxs)(`div`,{className:`label_input`,children:[(0,z.jsx)(ct,{id:`description`,value:y?` `:m,onChange:D,onKeyDown:re,lang:d,placeholder:c.formatMessage(w===`audio`?U.placeholderHearing:U.placeholderVisual),minRows:3,disabled:y}),y&&(0,z.jsxs)(`div`,{className:`label_input__loading-indicator`,children:[(0,z.jsx)(F,{width:`100%`}),(0,z.jsx)(F,{width:`100%`}),(0,z.jsx)(F,{width:`61%`})]})]}),(0,z.jsxs)(`div`,{className:`input__toolbar`,children:[(0,z.jsx)(at,{max:xt,text:y?``:m}),(0,z.jsx)(`div`,{className:`spacer`}),(0,z.jsx)(`button`,{className:`link-button`,onClick:ie,disabled:w!==`image`||y,type:`button`,children:(0,z.jsx)(r,{id:`alt_text_modal.add_text_from_image`,defaultMessage:`Add text from image`})}),(0,z.jsx)(bt,{})]})]})})]})]})});wt.displayName=`AltTextModal`;var Tt=({actions:e,onClick:t,className:n})=>(0,z.jsx)(`div`,{className:(0,H.default)(`modal-root__modal actions-modal`,n),children:(0,z.jsx)(`ul`,{children:e.map((e,n)=>{if(e===null)return(0,z.jsx)(`li`,{className:`dropdown-menu__separator`},`sep-${n}`);let{text:r,highlighted:i,disabled:a,dangerous:o}=e,s;return s=x(e)?(0,z.jsx)(`button`,{onClick:t,"data-index":n,disabled:a,type:`button`,children:(0,z.jsx)(b,{item:e})}):h(e)?(0,z.jsx)(`a`,{href:e.href,target:e.target??`_target`,"data-method":e.method,rel:`noopener`,onClick:t,"data-index":n,children:(0,z.jsx)(b,{item:e})}):(0,z.jsx)(ve,{to:e.to,onClick:t,"data-index":n,children:(0,z.jsx)(b,{item:e})}),(0,z.jsx)(`li`,{className:(0,H.default)(`dropdown-menu__item`,{"dropdown-menu__item--dangerous":o,"dropdown-menu__item--highlighted":i}),children:s},`${r}-${n}`)})})}),Et=({media:e,statusId:t,options:n,onClose:r,onChangeBackgroundColor:i})=>{let a=M(e=>e.statuses.get(t)),o=a?.get(`account`),s=M(e=>o?e.accounts.get(o)?.avatar_static:void 0);(0,R.useEffect)(()=>(i(Qe(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,z.jsxs)(`div`,{className:`modal-root__modal audio-modal`,children:[(0,z.jsx)(`div`,{className:`audio-modal__container`,children:(0,z.jsx)(We,{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,z.jsx)(`div`,{className:`media-modal__overlay`,children:a&&(0,z.jsx)(Ze,{statusId:a.get(`id`),withOpenButton:!0,onClose:r})})]})},Dt=o({cancel_reblog:{id:`status.cancel_reblog_private`,defaultMessage:`Unboost`},reblog:{id:`status.reblog`,defaultMessage:`Boost`}}),Ot=({status:e,onReblog:t,onClose:n})=>{let a=i(),o=M(e=>e.compose.get(`default_privacy`)),s=e.get(`id`),c=e.get(`visibility`),[l,d]=(0,R.useState)(c===`private`?`private`:o),f=(0,R.useCallback)(e=>{d(e)},[]),p=(0,R.useCallback)(()=>{t(e,l),n()},[n,t,e,l]),m=(0,R.useCallback)(()=>{n()},[n]),h=(0,R.useCallback)(()=>document.getElementsByClassName(`modal-root__container`)[0],[]);return(0,z.jsxs)(`div`,{className:`modal-root__modal safety-action-modal`,children:[(0,z.jsxs)(`div`,{className:`safety-action-modal__top`,children:[(0,z.jsxs)(`div`,{className:`safety-action-modal__header`,children:[(0,z.jsx)(`div`,{className:`safety-action-modal__header__icon`,children:(0,z.jsx)(u,{icon:qe,id:`retweet`})}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(P,{as:`h1`,children:e.get(`reblogged`)?(0,z.jsx)(r,{id:`boost_modal.undo_reblog`,defaultMessage:`Unboost post?`}):(0,z.jsx)(r,{id:`boost_modal.reblog`,defaultMessage:`Boost post?`})}),(0,z.jsx)(`div`,{children:(0,z.jsx)(r,{id:`boost_modal.combo`,defaultMessage:`You can press {combo} to skip this next time`,values:{combo:(0,z.jsxs)(`span`,{className:`hotkey-combination`,children:[(0,z.jsx)(`kbd`,{children:`Shift`}),`+`,(0,z.jsx)(u,{id:`retweet`,icon:qe})]})}})})]})]}),(0,z.jsx)(`div`,{className:`safety-action-modal__status`,children:(0,z.jsx)(lt,{statusId:s})})]}),(0,z.jsx)(`div`,{className:(0,H.default)(`safety-action-modal__bottom`),children:(0,z.jsxs)(`div`,{className:`safety-action-modal__actions`,children:[!e.get(`reblogged`)&&(0,z.jsx)(it,{noDirect:!0,value:l,container:h,onChange:f,disabled:c===`private`}),(0,z.jsx)(`div`,{className:`spacer`}),(0,z.jsx)(`button`,{onClick:m,className:`link-button`,type:`button`,children:(0,z.jsx)(r,{id:`confirmation_modal.cancel`,defaultMessage:`Cancel`})}),(0,z.jsx)(N,{onClick:p,text:a.formatMessage(e.get(`reblogged`)?Dt.cancel_reblog:Dt.reblog),autoFocus:!0})]})})]})},W=o({deleteAndRedraftTitle:{id:`confirmations.redraft.title`,defaultMessage:`Delete & redraft post?`}
14,deleteAndRedraftMessage:{id:`confirmations.redraft.message`,defaultMessage:`Are you sure you want to delete this status and re-draft it? Favorites and boosts will be lost, and replies to the original post will be orphaned.`},deleteAndRedraftConfirm:{id:`confirmations.redraft.confirm`,defaultMessage:`Delete & redraft`},deleteTitle:{id:`confirmations.delete.title`,defaultMessage:`Delete post?`},deleteMessage:{id:`confirmations.delete.message`,defaultMessage:`Are you sure you want to delete this status?`},deleteConfirm:{id:`confirmations.delete.confirm`,defaultMessage:`Delete`}}),kt=({statusId:e,withRedraft:t,onClose:n,onDeleteSuccess:r})=>{let a=i(),o=j(),s=(0,R.useCallback)(()=>{o(D(e,t)).then(()=>{r?.(),n()}).catch(()=>{n()})},[o,e,t,r,n]);return(0,z.jsx)(I,{title:a.formatMessage(t?W.deleteAndRedraftTitle:W.deleteTitle),message:a.formatMessage(t?W.deleteAndRedraftMessage:W.deleteMessage),confirm:a.formatMessage(t?W.deleteAndRedraftConfirm:W.deleteConfirm),onConfirm:s,onClose:n})},G=o({deleteListTitle:{id:`confirmations.delete_list.title`,defaultMessage:`Delete list?`},deleteListMessage:{id:`confirmations.delete_list.message`,defaultMessage:`Are you sure you want to permanently delete this list?`},deleteListConfirm:{id:`confirmations.delete_list.confirm`,defaultMessage:`Delete`}}),At=({listId:e,columnId:t,onClose:n})=>{let r=i(),a=j(),o=pe(),s=(0,R.useCallback)(()=>{a(ne(e)),t?a(se(t)):o.push(`/lists`)},[a,o,t,e]);return(0,z.jsx)(I,{title:r.formatMessage(G.deleteListTitle),message:r.formatMessage(G.deleteListMessage),confirm:r.formatMessage(G.deleteListConfirm),onConfirm:s,onClose:n})},K=o({deleteListTitle:{id:`confirmations.delete_collection.title`,defaultMessage:`Delete "{name}"?`},deleteListMessage:{id:`confirmations.delete_collection.message`,defaultMessage:`This action cannot be undone.`},deleteListConfirm:{id:`confirmations.delete_collection.confirm`,defaultMessage:`Delete`}}),jt=({id:e,name:t,onClose:n})=>{let r=i(),a=j(),o=pe(),{acct:s}=d(c)??{},l=(0,R.useCallback)(async()=>{await a(he({collectionId:e})),o.push(`/@${s}/collections`)},[a,o,e,s]);return(0,z.jsx)(I,{title:r.formatMessage(K.deleteListTitle,{name:t}),message:r.formatMessage(K.deleteListMessage),confirm:r.formatMessage(K.deleteListConfirm),onConfirm:l,onClose:n})},Mt=o({title:{id:`confirmations.discard_draft.edit.title`,defaultMessage:`Discard changes to your post?`},message:{id:`confirmations.discard_draft.edit.message`,defaultMessage:`Continuing will discard any changes you have made to the post you are currently editing.`},cancel:{id:`confirmations.discard_draft.edit.cancel`,defaultMessage:`Resume editing`}}),Nt=o({title:{id:`confirmations.discard_draft.post.title`,defaultMessage:`Discard your draft post?`},message:{id:`confirmations.discard_draft.post.message`,defaultMessage:`Continuing will discard the post you are currently composing.`},cancel:{id:`confirmations.discard_draft.post.cancel`,defaultMessage:`Resume draft`}}),Pt=o({confirm:{id:`confirmations.discard_draft.confirm`,defaultMessage:`Discard and continue`}}),Ft=({onConfirm:e,onClose:t})=>{let n=i(),r=M(e=>!!e.compose.get(`id`))?Mt:Nt;return(0,z.jsx)(I,{title:n.formatMessage(r.title),message:n.formatMessage(r.message),cancel:n.formatMessage(r.cancel),confirm:n.formatMessage(Pt.confirm),onConfirm:e,onClose:t})},It=({status:e,onClose:t})=>{let n=j();return(0,z.jsx)(Ft,{onConfirm:(0,R.useCallback)(()=>{n(O(e))},[n,e]),onClose:t})},Lt=({statusId:e,onClose:t})=>{let n=j();return(0,z.jsx)(Ft,{onConfirm:(0,R.useCallback)(()=>{n(C(e))},[n,e]),onClose:t})},Rt=o({withdrawConfirm:{id:`confirmations.withdraw_request.confirm`,defaultMessage:`Withdraw request`}}),zt=({account:e,onClose:t})=>{let n=i(),a=j(),o=(0,R.useCallback)(()=>{a(fe(e.id))},[a,e.id]);return(0,z.jsx)(I,{title:(0,z.jsx)(r,{id:`confirmations.withdraw_request.title`,defaultMessage:`Withdraw request to follow {name}?`,values:{name:`@${e.acct}`}}),confirm:n.formatMessage(Rt.withdrawConfirm),onConfirm:o,onClose:t})},Bt=o({unfollowConfirm:{id:`confirmations.unfollow.confirm`,defaultMessage:`Unfollow`}}),Vt=({account:e,onClose:t})=>{let n=i(),a=j(),o=(0,R.useCallback)(()=>{a(fe(e.id))},[a,e.id]);return(0,z.jsx)(I,{title:(0,z.jsx)(r,{id:`confirmations.unfollow.title`,defaultMessage:`Unfollow {name}?`,values:{name:`@${e.acct}`}}),confirm:n.formatMessage(Bt.unfollowConfirm),onConfirm:o,onClose:t})},Ht=o({unblockConfirm:{id:`confirmations.unblock.confirm`,defaultMessage:`Unblock`}}),Ut=({account:e,onClose:t})=>{let n=i(),a=j(),o=(0,R.useCallback)(()=>{a(de(e.id))},[a,e.id]);return(0,z.jsx)(I,{title:(0,z.jsx)(r,{id:`confirmations.unblock.title`,defaultMessage:`Unblock {name}?`,values:{name:`@${e.acct}`}}),confirm:n.formatMessage(Ht.unblockConfirm),onConfirm:o,onClose:t})},q=o({clearTitle:{id:`notifications.clear_title`,defaultMessage:`Clear notifications?`}
14,clearMessage:{id:`notifications.clear_confirmation`,defaultMessage:`Are you sure you want to permanently clear all your notifications?`},clearConfirm:{id:`notifications.clear`,defaultMessage:`Clear notifications`}}),Wt=({onClose:e})=>{let t=i(),n=j(),r=(0,R.useCallback)(()=>{n(te())},[n]);return(0,z.jsx)(I,{title:t.formatMessage(q.clearTitle),message:t.formatMessage(q.clearMessage),confirm:t.formatMessage(q.clearConfirm),onConfirm:r,onClose:e})};async function Gt(){try{let e=await me(!1).delete(`/auth/sign_out`,{headers:{Accept:`application/json`},withCredentials:!0});e.status===200&&e.data.redirect_to?window.location.href=e.data.redirect_to:console.error(`Failed to log out, got an unexpected non-redirect response from the server`,e)}catch(e){console.error(`Failed to log out, response was an error`,e)}}var J=o({logoutTitle:{id:`confirmations.logout.title`,defaultMessage:`Log out?`},logoutMessage:{id:`confirmations.logout.message`,defaultMessage:`Are you sure you want to log out?`},logoutConfirm:{id:`confirmations.logout.confirm`,defaultMessage:`Log out`}}),Kt=({onClose:e})=>{let t=i(),n=(0,R.useCallback)(()=>{Gt()},[]);return(0,z.jsx)(I,{title:t.formatMessage(J.logoutTitle),message:t.formatMessage(J.logoutMessage),confirm:t.formatMessage(J.logoutConfirm),onConfirm:n,onClose:e})},qt=o({title:{id:`confirmations.follow_to_list.title`,defaultMessage:`Follow user?`},confirm:{id:`confirmations.follow_to_list.confirm`,defaultMessage:`Follow and add to list`}}),Jt=({accountId:e,onConfirm:t,onClose:n})=>{let a=i(),o=d(e);return(0,z.jsx)(I,{title:a.formatMessage(qt.title),message:(0,z.jsx)(r,{id:`confirmations.follow_to_list.message`,defaultMessage:`You need to be following {name} to add them to a list.`,values:{name:(0,z.jsxs)(`strong`,{children:[`@`,o?.acct]})}}),confirm:a.formatMessage(qt.confirm),onConfirm:t,onClose:n})},Y=o({title:{id:`confirmations.missing_alt_text.title`,defaultMessage:`Add alt text?`},confirm:{id:`confirmations.missing_alt_text.confirm`,defaultMessage:`Add alt text`},message:{id:`confirmations.missing_alt_text.message`,defaultMessage:`Your post contains media without alt text. Adding descriptions helps make your content accessible to more people.`},secondary:{id:`confirmations.missing_alt_text.secondary`,defaultMessage:`Post anyway`}}),Yt=({onClose:e})=>{let t=i(),n=j(),r=M(e=>e.compose.get(`media_attachments`).find(e=>[`image`,`gifv`].includes(e.get(`type`))&&(e.get(`description`)??``).length===0)?.get(`id`)),a=(0,R.useCallback)(()=>{n(le({modalType:`FOCAL_POINT`,modalProps:{mediaId:r}}))},[n,r]),o=(0,R.useCallback)(()=>{n(ie())},[n]);return(0,z.jsx)(I,{title:t.formatMessage(Y.title),message:t.formatMessage(Y.message),confirm:t.formatMessage(Y.confirm),secondary:t.formatMessage(Y.secondary),onConfirm:a,onSecondary:o,onClose:e})},X=o({revokeQuoteTitle:{id:`confirmations.revoke_quote.title`,defaultMessage:`Remove post?`},revokeQuoteMessage:{id:`confirmations.revoke_quote.message`,defaultMessage:`This action cannot be undone.`},revokeQuoteConfirm:{id:`confirmations.revoke_quote.confirm`,defaultMessage:`Remove post`}}),Xt=({statusId:e,quotedStatusId:t,onClose:n})=>{let r=i(),a=j(),o=(0,R.useCallback)(()=>{a(T({quotedStatusId:t,statusId:e}))},[a,e,t]);return(0,z.jsx)(I,{title:r.formatMessage(X.revokeQuoteTitle),message:r.formatMessage(X.revokeQuoteMessage),confirm:r.formatMessage(X.revokeQuoteConfirm),onConfirm:o,onClose:n})},Z=o({title:{id:`confirmations.quiet_post_quote_info.title`,defaultMessage:`Quoting quiet public posts`},message:{id:`confirmations.quiet_post_quote_info.message`,defaultMessage:`When quoting a quiet public post, your post will be hidden from trending timelines.`},got_it:{id:`confirmations.quiet_post_quote_info.got_it`,defaultMessage:`Got it`},dismiss:{id:`confirmations.quiet_post_quote_info.dismiss`,defaultMessage:`Don't remind me again`}}),Zt=({status:e})=>{let t=i(),n=j(),r=(0,R.useCallback)(()=>{n(oe(e)),n(S({modalType:`CONFIRM_QUIET_QUOTE`,ignoreFocus:!0}))},[n,e]),a=(0,R.useCallback)(()=>{n(oe(e)),n(E([`dismissed_banners`,`quote/quiet_post_hint`],!0)),n(S({modalType:`CONFIRM_QUIET_QUOTE`,ignoreFocus:!0}))},[n,e]);return(0,z.jsx)(I,{title:t.formatMessage(Z.title),message:t.formatMessage(Z.message),confirm:t.formatMessage(Z.got_it),cancel:t.formatMessage(Z.dismiss),onConfirm:r,onClose:a,noCloseOnConfirm:!0})},Qt=o({close:{id:`lightbox.close`,defaultMessage:`Close`}}),$t=({src:e,alt:t,onClose:n})=>{let r=i(),[a,o]=(0,R.useState)(!1),s=(0,R.useCallback)(()=>{o(e=>!e)},[o]),c=(0,H.default)(`media-modal__navigation`,{"media-modal__navigation--hidden":a});return(0,z.jsxs)(`div`,{className:`modal-root__modal media-modal`,children:[(0,z.jsx)(`div`,{className:`media-modal__closer`,role:`presentation`,onClick:n,children:(0,z.jsx)(Xe,{src:e,width:400,height:400,alt:t,onClick:s})}),(0,z.jsx)(`div`,{className:c,children:(0,z.jsx)(`div`,{className:`media-modal__buttons`,children:(0,z.jsx)(f,{className:`media-modal__close`,t
14itle:r.formatMessage(Qt.close),icon:`times`,iconComponent:y,onClick:n})})})]})},en=({loading:e,onClose:t,onRetry:n})=>{let i=(0,R.useCallback)(()=>{t(void 0,!1)},[t]),a=(0,R.useCallback)(()=>{n&&n()},[n]);return(0,z.jsx)(`div`,{className:`modal-root__modal modal-placeholder`,"aria-busy":e,children:e?(0,z.jsx)(v,{}):(0,z.jsxs)(`div`,{className:`modal-placeholder__error`,children:[(0,z.jsx)(et,{src:`/oops.gif`,staticSrc:`/oops.png`,className:`modal-placeholder__error__image`}),(0,z.jsxs)(`div`,{className:`modal-placeholder__error__message`,children:[(0,z.jsx)(`p`,{children:(0,z.jsx)(r,{id:`bundle_modal_error.message`,defaultMessage:`Something went wrong while loading this screen.`})}),(0,z.jsxs)(`div`,{className:`modal-placeholder__error__message__actions`,children:[(0,z.jsx)(N,{onClick:a,children:(0,z.jsx)(r,{id:`bundle_modal_error.retry`,defaultMessage:`Try again`})}),(0,z.jsx)(N,{onClick:i,className:`button button-secondary`,children:(0,z.jsx)(r,{id:`bundle_modal_error.close`,defaultMessage:`Close`})})]})]})]})})},tn=e(_()),nn=(e,{statusId:t})=>({status:e.getIn([`statuses`,t])}),rn=class extends xe{componentDidMount(){let{media:e,onChangeBackgroundColor:t}=this.props,n=Qe(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,z.jsxs)(`div`,{className:`modal-root__modal video-modal`,children:[(0,z.jsx)(`div`,{className:`video-modal__container`,children:(0,z.jsx)(Ke,{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,z.jsx)(`div`,{className:`media-modal__overlay`,children:t&&(0,z.jsx)(Ze,{statusId:t.get(`id`),withOpenButton:!0,onClose:n})})]})}};k(rn,`propTypes`,{media:tn.default.map.isRequired,statusId:V.default.string,status:tn.default.map,options:V.default.shape({startTime:V.default.number,autoPlay:V.default.bool,defaultVolume:V.default.number}),onClose:V.default.func.isRequired,onChangeBackgroundColor:V.default.func.isRequired});var an=A(nn,null,null,{forwardRef:!0})(rn);function on(e){return[`public`,`followers`,`nobody`].includes(e)}var sn=({disabled:e,items:t,current:n,onChange:r,labelId:a,descriptionId:o,classPrefix:s,className:c,id:l,...d})=>{let f=i(),m=(0,R.useRef)(null),h=(0,R.useId)(),g=l??`${h}-button`,_=`${h}-listbox`,[v,y]=(0,R.useState)(!1),b=(0,R.useCallback)(()=>{e||y(e=>(m.current?.focus(),!e))},[e]),x=(0,R.useCallback)(()=>{y(!1),m.current?.focus()},[]),S=(0,R.useMemo)(()=>t.find(e=>e.value===n)?.text??f.formatMessage({id:`dropdown.empty`,defaultMessage:`Select an option`}),[n,f,t]);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`button`,{type:`button`,...d,id:g,"aria-labelledby":`${a} ${g}`,"aria-describedby":o,"aria-expanded":v,"aria-controls":_,onClick:b,disabled:e,className:(0,H.default)(`${s}__button`,{active:v,disabled:e},c),ref:m,children:[S,(0,z.jsx)(u,{id:`unfold-icon`,icon:tt,className:`${s}__icon`})]}),(0,z.jsx)(p,{show:v,offset:[0,0],placement:`bottom-start`,onHide:x,flip:!0,target:m,popperConfig:{strategy:`fixed`,modifiers:[ut]},children:({props:e,placement:i})=>(0,z.jsx)(`div`,{...e,className:`${s}__overlay`,children:(0,z.jsx)(`div`,{className:(0,H.default)(`dropdown-animation`,`${s}__dropdown`,i),id:_,children:(0,z.jsx)(nt,{items:t,value:n,onClose:x,onChange:r,classNamePrefix:s})})})})]})},Q=o({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`}}),cn=ge([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`:on(i)?i:a===`unlisted`?`followers`:`public`}),ln=ge([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}),un=(0,R.forwardRef)(({onClose:e,onChange:t,statusId:n},a)=>{let o=i(),s=M(e=>
14n?e.statuses.getIn([n,`visibility`],`public`)??`public`:e.compose.get(`privacy`)),c=M(e=>cn(e,n)),[l,u]=(0,R.useState)(s),[d,p]=(0,R.useState)(c),m=!!n,h=l===`private`||l===`direct`,g=M(ln),_=M(e=>e.compose.get(`quoted_status_id`)!==null),v=(0,R.useMemo)(()=>{let e=[{value:`private`,text:o.formatMessage(L.private_short),meta:o.formatMessage(L.private_long),icon:`lock`,iconComponent:Fe},{value:`direct`,text:o.formatMessage(L.direct_short),meta:o.formatMessage(L.direct_long),icon:`at`,iconComponent:Re}];return g||e.unshift({value:`public`,text:o.formatMessage(L.public_short),meta:o.formatMessage(L.public_long),icon:`globe`,iconComponent:Ie},{value:`unlisted`,text:o.formatMessage(L.unlisted_short),meta:o.formatMessage(L.unlisted_long),icon:`unlock`,iconComponent:be}),e},[o,g]),b=(0,R.useMemo)(()=>[{value:`public`,text:o.formatMessage(Q.quotePublic)},{value:`followers`,text:o.formatMessage(Q.quoteFollowers)},{value:`nobody`,text:o.formatMessage(Q.quoteNobody)}],[o]),x=(0,R.useCallback)(e=>{we(e)&&u(e)},[]),S=(0,R.useCallback)(e=>{on(e)&&p(e)},[]),C=(0,R.useCallback)(()=>{t(l,d),e()},[t,e,l,d]),w=(0,R.useId)(),T=`${w}-visibility-label`,ee=`${w}-visibility-desc`,E=`${w}-quote-label`,D=`${w}-quote-desc`;return(0,z.jsxs)(`div`,{className:`modal-root__modal dialog-modal visibility-modal`,children:[(0,z.jsxs)(`div`,{className:`dialog-modal__header`,children:[(0,z.jsx)(f,{className:`dialog-modal__header__close`,title:o.formatMessage(Q.close),icon:`times`,iconComponent:y,onClick:e}),(0,z.jsx)(P,{as:`h1`,className:`dialog-modal__header__title`,children:(0,z.jsx)(r,{id:`visibility_modal.header`,defaultMessage:`Visibility and interaction`})})]}),(0,z.jsxs)(`div`,{className:`dialog-modal__content`,children:[(0,z.jsx)(`div`,{className:`dialog-modal__content__description`,children:(0,z.jsx)(r,{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,z.jsx)(`a`,{href:`/settings/preferences/posting_defaults`,children:e})},tagName:`p`})}),(0,z.jsxs)(`div`,{className:`dialog-modal__content__form`,children:[(0,z.jsxs)(`div`,{className:(0,H.default)(`visibility-dropdown`,{disabled:m}),children:[(0,z.jsx)(`label`,{className:`visibility-dropdown__label`,id:T,children:(0,z.jsx)(r,{id:`visibility_modal.privacy_label`,defaultMessage:`Visibility`})}
14),(0,z.jsx)(sn,{items:v,current:l,onChange:x,labelId:T,descriptionId:ee,classPrefix:`visibility-dropdown`,disabled:m}),!!n&&(0,z.jsx)(`p`,{className:`visibility-dropdown__helper`,id:`visibilityDescriptionId`,children:(0,z.jsx)(r,{id:`visibility_modal.helper.privacy_editing`,defaultMessage:`Visibility can't be changed after a post is published.`})}),!n&&g&&(0,z.jsx)(`p`,{className:`visibility-dropdown__helper`,id:`visibilityDescriptionId`,children:(0,z.jsx)(r,{id:`visibility_modal.helper.privacy_private_self_quote`,defaultMessage:`Self-quotes of private posts cannot be made public.`})})]}),(0,z.jsxs)(`div`,{className:(0,H.default)(`visibility-dropdown`,{disabled:h}),children:[(0,z.jsx)(`label`,{className:`visibility-dropdown__label`,id:E,children:(0,z.jsx)(r,{id:`visibility_modal.quote_label`,defaultMessage:`Who can quote`})}),(0,z.jsx)(sn,{items:b,current:h?`nobody`:d,onChange:S,labelId:E,descriptionId:D,classPrefix:`visibility-dropdown`,disabled:h}),(0,z.jsx)(dn,{policy:d,visibility:l,className:`visibility-dropdown__helper`,id:D})]}),_&&l===`direct`&&(0,z.jsxs)(`div`,{className:`visibility-modal__quote-warning`,children:[(0,z.jsx)(r,{id:`visibility_modal.direct_quote_warning.title`,defaultMessage:`Quotes can't be embedded in private mentions`,tagName:`h3`}),(0,z.jsx)(r,{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,z.jsxs)(`div`,{className:`dialog-modal__content__actions`,children:[(0,z.jsx)(N,{onClick:e,secondary:!0,children:(0,z.jsx)(r,{id:`confirmation_modal.cancel`,defaultMessage:`Cancel`})}),(0,z.jsx)(N,{onClick:C,children:(0,z.jsx)(r,{id:`visibility_modal.save`,defaultMessage:`Save`})})]})]})]})});un.displayName=`VisibilityModal`;var dn=({policy:e,visibility:t,...n})=>{let i;return t===`unlisted`&&e!==`nobody`&&(i=(0,z.jsx)(r,{id:`visibility_modal.helper.unlisted_quoting`,defaultMessage:`When people quote you, their post will also be hidden from trending timelines.`})),t===`private`&&(i=(0,z.jsx)(r,{id:`visibility_modal.helper.private_quoting`,defaultMessage:`Follower-only posts authored on Mastodon can't be quoted by others.`})),t===`direct`&&(i=(0,z.jsx)(r,{id:`visibility_modal.helper.direct_quoting`,defaultMessage:`Private mentions authored on Mastodon can't be quoted by others.`})),i?(0,z.jsx)(`p`,{...n,children:i}):null},fn={MEDIA:()=>Promise.resolve({default:$e}),VIDEO:()=>Promise.resolve({default:an}),AUDIO:()=>Promise.resolve({default:Et}),IMAGE:()=>Promise.resolve({default:$t}),BOOST:()=>Promise.resolve({default:Ot}),CONFIRM:()=>Promise.resolve({default:I}),CONFIRM_DELETE_STATUS:()=>Promise.resolve({default:kt}),CONFIRM_DELETE_LIST:()=>Promise.resolve({default:At}),CONFIRM_DELETE_COLLECTION:()=>Promise.resolve({default:jt}),CONFIRM_REPLY:()=>Promise.resolve({default:It}),CONFIRM_EDIT_STATUS:()=>Promise.resolve({default:Lt}),CONFIRM_UNBLOCK:()=>Promise.resolve({default:Ut}),CONFIRM_UNFOLLOW:()=>Promise.resolve({default:Vt}),CONFIRM_WITHDRAW_REQUEST:()=>Promise.resolve({default:zt}),CONFIRM_CLEAR_NOTIFICATIONS:()=>Promise.resolve({default:Wt}),CONFIRM_LOG_OUT:()=>Promise.resolve({default:Kt}),CONFIRM_FOLLOW_TO_LIST:()=>Promise.resolve({default:Jt}),CONFIRM_MISSING_ALT_TEXT:()=>Promise.resolve({default:Yt}),CONFIRM_PRIVATE_QUOTE_NOTIFY:()=>Promise.resolve({default:rt}),CONFIRM_REVOKE_QUOTE:()=>Promise.resolve({default:Xt}),CONFIRM_QUIET_QUOTE:()=>Promise.resolve({default:Zt}),MUTE:Ee,BLOCK:Ae,DOMAIN_BLOCK:Me,REPORT:Le,REPORT_COLLECTION:Ce,COLLECTION_ADDER:()=>s(()=>import(`./collection_adder-D8zwRUSn.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]),import.meta.url),SHARE_COLLECTION:()=>s(()=>import(`./share_modal-BHHOTFfB.js`).then(e=>({default:e.CollectionShareModal})),__vite__mapDeps([111,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,25,32,33,34,35,36,37,45,46,47,48,49,50,40,41,51,52,53,54,55,56,57,58,59,85,112]),import.meta.url),REVOKE_COLLECTION_INCLUSION:()=>s(()=>
14import(`./revoke_collection_inclusion_modal-C91Hk1im.js`).then(e=>e.t).then(e=>({default:e.RevokeCollectionInclusionModal})),__vite__mapDeps([101,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,82,61,26,27,28,29,30,31,25,32,33,34,35,36,37,62,63,64,83,84,85,86,56,49,87,58,88,89]),import.meta.url),ACTIONS:()=>Promise.resolve({default:Tt}),EMBED:ze,FOCAL_POINT:()=>Promise.resolve({default:wt}),LIST_ADDER:Te,COMPARE_HISTORY:Pe,FILTER:Ne,SUBSCRIBED_LANGUAGES:je,INTERACTION:Oe,CLOSED_REGISTRATIONS:ye,IGNORE_NOTIFICATIONS:Be,ANNUAL_REPORT:Se,COMPOSE_PRIVACY:()=>Promise.resolve({default:un}),ACCOUNT_NOTE:()=>s(()=>import(`./note_modal-CMcPhPU_.js`).then(e=>({default:e.AccountNoteModal})),__vite__mapDeps([113,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,82,61,25,32,33,34,35,36,37,62,63,64,83,84,85,86,56,49,87,58,88,89,70,48,71,45,46,47,50,40,41,51,52,53,54,55,57,59,114,115]),import.meta.url),ACCOUNT_FIELD_OVERFLOW:()=>s(()=>import(`./field_modal-D273cK8X.js`).then(e=>({default:e.AccountFieldModal})),__vite__mapDeps([116,26,3,1,4,5,6,7,8,2,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,27,28,29,30,31,25,32,33,34,35,36,37,85,117,114,115]),import.meta.url),ACCOUNT_JOIN_DATE:()=>s(()=>import(`./join_modal-COaqUVJI.js`).then(e=>({default:e.AccountJoinModal})),__vite__mapDeps([118,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,25,32,33,34,35,36,37,66,85,114,115,102]),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-BD0ygJJT.js`).then(e=>({default:e.ConfirmHideFeaturedTabModal})),__vite__mapDeps([119,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,82,61,25,32,33,34,35,36,37,62,63,64,83,84,85,86,56,49,87,58,88,89,102]),import.meta.url)};function $(e){return()=>s(()=>import(`./modals-Cok13FBt.js`).then(t=>({default:t[e]})),__vite__mapDeps([120,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,25,32,33,34,35,36,37,82,61,62,63,64,83,84,85,86,56,49,87,58,88,89,121,122,123,70,48,71,45,46,47,50,40,41,51,52,53,54,55,57,59,124,24,38,39,42,43,44,72,73,74,75,76,77,78,79,80,81,90,91,92,93,94,95,96,97,98,125,126,102,127,128]),import.meta.url)}var pn=class extends R.PureComponent{constructor(...e){super(...e),k(this,`state`,{backgroundColor:null}),k(this,`setBackgroundColor`,e=>{this.setState({backgroundColor:e})}),k(this,`renderLoading`,()=>{let{onClose:e}=this.props;return(0,z.jsx)(en,{loading:!0,onClose:e})}),k(this,`renderError`,e=>{let{onClose:t}=this.props;return(0,z.jsx)(en,{...e,onClose:t})}),k(this,`handleClose`,(e=!1)=>{let{onClose:t}=this.props,n=this._modal?.getCloseConfirmationMessage?.();t(n,e)}),k(this,`setModalRef`,e=>{this._modal=e})}render(){let{type:e,props:t,ignoreFocus:n}=this.props,{backgroundColor:r}=this.state,i=!!e;return(0,z.jsx)(Je,{backgroundColor:r,onClose:this.handleClose,ignoreFocus:n,children:i&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(ke,{fetchComponent:fn[e],loading:this.renderLoading,error:this.renderError,renderDelay:200,children:e=>(0,z.jsx)(e,{...t,onChangeBackgroundColor:this.setBackgroundColor,onClose:this.handleClose,ref:this.setModalRef})},e),(0,z.jsx)(_e,{children:(0,z.jsx)(`meta`,{name:`robots`,content:`noindex`})})]})})}},mn={},hn=A(e=>({ignoreFocus:e.getIn([`modal`,`ignoreFocus`]),type:e.getIn([`modal`,`stack`,0,`modalType`],null),props:e.getIn([`modal`,`stack`,0,`modalProps`],mn)}),e=>({onClose(t,n=!1){e(t?le({previousModalProps:t.props,modalType:`CONFIRM`,modalProps:{message:t.message,confirm:t.confirm,onConfirm:()=>e(S({modalType:void 0,ignoreFocus:n}))}}):S({modalType:void 0,ignoreFocus:n}))}}))(pn);export{gt as n,ft as r,hn as t};
15//# sourceMappingURL=modal_container-SykDE_Yf.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.