PageSourceSearch

https://m.wingu.se/packs/modal_container-ByuwnQBP.js

js wingu.se collected 2026-09-29 15:11:34 UTC 40,237 bytes, 15 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/packs/collection_adder-CZKVeGGs.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-BKpYtGn4.js","/packs/ready-B3bZnx13.js","/packs/initial_state-DnZ5UeDQ.js","/packs/react-router-BkmJBoOP.js","/packs/accounts-5t7gWyVC.js","/packs/router-DyLRbCnX.js","/packs/environment-a85louTd.js","/packs/debounce-CXuT-gkt.js","/packs/isSymbol-3r8dk6Lb.js","/packs/api-CGawW2vu.js","/packs/axios-BtspdZ3f.js","/packs/accounts_typed-AgBHJ2f3.js","/packs/preload-helper-HclGiUj8.js","/packs/redux-toolkit.modern-DNDb-du5.js","/packs/defineProperty-BbfpZ9Tg.js","/packs/typed_functions-Whap35TF.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-C0EOJ-dP.js","/packs/filters-Br4s8K7f.js","/packs/axios-0On1V31i.js","/packs/settings-Cq4pjZIN.js","/packs/throttle-DJD3CaHb.js","/packs/database-D_1Mbg_g.js","/packs/modal-CMPL9eyP.js","/packs/push_notifications-C0ir4q-Q.js","/packs/app-DHclxKoS.js","/packs/notification_policies-BXXafP0v.js","/packs/server-DYfOIhN5.js","/packs/emojis-BYdy4VJS.js","/packs/navigation_focus_target-B65hNV9H.js","/packs/polymorphic-BHw2eKRx.js","/packs/close-DIPoUQpY.js","/packs/loading_indicator-eceYQNAM.js","/packs/classnames-CfLRLWYq.js","/packs/icon_button-DfNtv8BJ.js","/packs/react-spring_web.modern-C6ohYUSs.js","/packs/react-dom-BddMPX6d.js","/packs/short_number-Cg8abbMu.js","/packs/numbers-BEp7e788.js","/packs/icon-BNrUFRb_.js","/packs/bundle_column_error-Dc3rL_yE.js","/packs/helmet-C5cFHKKR.js","/packs/react-router-dom-C1dtKQUg.js","/packs/skip_links-CmGdRWd6.js","/packs/assets/skip_links-DIHZBkdS.css","/packs/button-BmF3DXsp.js","/packs/copy_button-C2UVynmn.js","/packs/content_copy-J1bl6DdF.js","/packs/gif-nHcAVb7p.js","/packs/useHovering-Clt57sOP.js","/packs/assets/bundle_column_error-TCkCl549.css","/packs/collection_preview_card-BEHkYLQ_.js","/packs/utils-B468qXuV.js","/packs/useAccount-DhSMQkpH.js","/packs/relative_timestamp-BOzlsJjy.js","/packs/time-DvUjGWVP.js","/packs/default-BJghFIgN.js","/packs/html-CzpiK0AH.js","/packs/mode-tmreEKox.js","/packs/render-DgEIfTde.js","/packs/skeleton-BO82ZgT5.js","/packs/warning-DALvmvUf.js","/packs/assets/collection_preview_card-DpSW2KW7.css","/packs/form_fields-W-m7nFkb.js","/packs/popover-CMoU7E4P.js","/packs/search-D6Fd2_4p.js","/packs/keyboard_arrow_up-DMWxQ2V-.js","/packs/emoji_picker_dropdown_container-DjOsXOL6.js","/packs/intl-B-3n4e1o.js","/packs/async-components-XOODkk_M.js","/packs/form_field_wrapper-B00MNsQd.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-Ch1_pDG1.js","/packs/assets/text_input_field-CZfb3Ks7.css","/packs/toggle_field-BH1KQwCE.js","/packs/assets/toggle_field-CbgUPVKo.css","/packs/assets/form_fields-0PbAwYJT.css","/packs/useAccountId-B-0VumhZ.js","/packs/collection_list_item-CSFDXV-y.js","/packs/identity_context-CLXpzjnM.js","/packs/account-jztc2BSU.js","/packs/display_name-Dl2ASLlM.js","/packs/simple-KWM6ZVow.js","/packs/dropdown_menu-U6SI6ReI.js","/packs/more_horiz-Cw-tO3hE.js","/packs/block-Dj44I8vY.js","/packs/volume_off-D61wX6FU.js","/packs/assets/account-DcfjHi2n.css","/packs/logo-CMWuQAdn.js","/packs/add-B5d0-_pA.js","/packs/columns_area-CMZxm2t8.js","/packs/navigation_panel-Cy-vodBh.js","/packs/use-gesture-react.esm-DuPMJbBX.js","/packs/alternate_email-CGhoCIc4.js","/packs/category-CZ6o7qM7.js","/packs/public-DfIIZjQm.js","/packs/permissions-Dkwe-SYl.js","/packs/index.module-y4HS80Z2.js","/packs/assets/index-BNWomVqV.css","/packs/lists-Ty7GvjeB.js","/packs/hashtag-BJtpVkEd.js","/packs/build-Cn0Xj7O2.js","/packs/bundle-D48MvYTM.js","/packs/chevron_left-Du0bxxM7.js","/packs/chevron_right-CyqmmHhV.js","/packs/compose_form_container-CF8D7fFv.js","/packs/status_quoted-Conx0xFm.js","/packs/toString-HjykfQcJ.js","/packs/status_content-KAbCaCLt.js","/packs/ImmutablePropTypes-C_rOJ6cM.js","/packs/poll-cnVu4Cr1.js","/packs/card-B8qczahc.js","/packs/play_arrow-fill-DO429e7_.js","/packs/blurhash-CM3tW5se.js","/packs/esm-DrOrXu-Y.js","/packs/reply-NI2DkwdJ.js","/packs/selectors-Aw-AI9UP.js","/packs/filters-BKiCgH43.js","/packs/react-immutable-pure-component.es-DpNNSygw.js","/packs/reports-CC86HJHW.js","/packs/assets/status_quoted-BaLPn7qW.css","/packs/visualizer-BucFX7Pd.js","/packs/fuzzysort-CJTuKKST.js","/packs/server_hero_image-BU59oHIL.js","/packs/alt_text_badge-DgGj3HLf.js","/packs/useSelectableClick-JYr_1CvO.js","/packs/assets/alt_text_badge-Dp0EyRCt.css","/packs/assets/server_hero_image-B4ZnzyEW.css","/packs/link_footer-DaHtacuU.js","/packs/assets/link_footer-BFct3wYC.css","/
1packs/assets/columns_area-ith_ChOf.css","/packs/callout-B1KuUxns.js","/packs/assets/callout-IFgvMNaK.css","/packs/components-BM4_xVIg.js","/packs/formatted_date-BukCBi06.js","/packs/useSearchTags-DOXSBkM-.js","/packs/index.module-B3UTC6aI.js","/packs/help-DEiVT85l.js","/packs/account_list_item-DWGXMWqZ.js","/packs/number_fields-DiJ0UUlM.js","/packs/assets/number_fields-DAO-UqGM.css","/packs/assets/account_list_item-OsUTas1E.css","/packs/not_signed_in_indicator-DzYHCJen.js","/packs/useSearchAccounts-ZROkEl7O.js","/packs/useSearchParam-Dy1bZjd7.js","/packs/visibility_off-DP3wtlEJ.js","/packs/revoke_collection_inclusion_modal-4j69u9Mi.js","/packs/confirmation_modal-DFFN22Lh.js","/packs/modal_shell-BubSV6Ff.js","/packs/assets/collection_list_item-BAn6mDCP.css","/packs/assets/collection_adder-Ce8jIiSB.css","/packs/share_modal-DNOpAh5v.js","/packs/assets/share_modal-BmvU6eCf.css","/packs/note_modal-B9KYWnF_.js","/packs/confirmation_modals-BFDyfILi.js","/packs/styles.module-BoFKCCUL.js","/packs/assets/styles-BdqKzGTn.css","/packs/field_modal-Ba8x_Fp5.js","/packs/useFieldHtml-1nMV0J_K.js","/packs/join_modal-Cqjm4Qkh.js","/packs/hide_featured_tab-DJpD9C8s.js","/packs/modals-f1KZCuev.js","/packs/expand_more-vFWk3nbk.js","/packs/account_edit-YXMyGGHf.js","/packs/account_bio-BaaTiTjS.js","/packs/assets/account_bio-DpMboqlm.css","/packs/edit_button-DGWtJ4F4.js","/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{y as c}from"./initial_state-DnZ5UeDQ.js";import{i as l,t as u}from"./react-spring_web.modern-C6ohYUSs.js";import{en as d,fn as f,r as p,rn as m}from"./store-BKpYtGn4.js";import{b as h}from"./react-router-BkmJBoOP.js";import{t as g}from"./defineProperty-BbfpZ9Tg.js";import{l as _,n as v,o as y,s as b}from"./typed_functions-Whap35TF.js";import{Bn as x,Gn as ee,Gt as S,Un as C,Yt as te}from"./filters-Br4s8K7f.js";import{t as w}from"./helmet-C5cFHKKR.js";import{t as T}from"./react-router-dom-C1dtKQUg.js";import{n as E,t as D}from"./modal-CMPL9eyP.js";import{r as O}from"./navigation_focus_target-B65hNV9H.js";import{t as k}from"./classnames-CfLRLWYq.js";import{t as ne}from"./a11y_live_region-DB4QMLtJ.js";import{t as A}from"./close-DIPoUQpY.js";import{t as re}from"./loading_indicator-eceYQNAM.js";import{t as j}from"./icon_button-DfNtv8BJ.js";import{t as M}from"./icon-BNrUFRb_.js";import{t as N}from"./alert-DZDjZ063.js";import{a as ie,i as ae}from"./status_content-KAbCaCLt.js";import{t as P}from"./skeleton-BO82ZgT5.js";import{t as F}from"./button-BmF3DXsp.js";import{t as oe}from"./popover-CMoU7E4P.js";import{t as I}from"./audio-C2Zz7sht.js";import{r as L,t as R}from"./video-B-s0PS3Z.js";import{c as z}from"./card-B8qczahc.js";import{a as se,i as ce,r as B}from"./dropdown_menu-U6SI6ReI.js";import{a as le,i as ue,n as de,o as V,r as H,t as fe}from"./media_modal-DI6DnQN5.js";import{t as pe}from"./gif-nHcAVb7p.js";import{t as me}from"./alternate_email-CGhoCIc4.js";import{t as he}from"./public-DfIIZjQm.js";import{C as ge,L as _e,O as ve,R as ye,V as be,_ as xe,at as Se,dt as Ce,f as we,l as Te,lt as Ee,ot as De,q as Oe,s as ke,x as Ae}from"./async-components-XOODkk_M.js";import{t as je}from"./bundle-D48MvYTM.js";import{S as Me,i as Ne,n as Pe,r as U,w as Fe}from"./compose_form_container-CF8D7fFv.js";import{t as Ie}from"./useSelectableClick-JYr_1CvO.js";import{t as Le}from"./ImmutablePropTypes-C_rOJ6cM.js";import{t as Re}from"./react-immutable-pure-component.es-DpNNSygw.js";import{i as ze,n as Be}from"./emoji_picker_dropdown_container-DjOsXOL6.js";import{t as Ve}from"./embedded_status-wBP16f2V.js";import{t as W}from"./confirmation_modal-DFFN22Lh.js";import{a as He,c as Ue,d as We,f as Ge,i as Ke,l as qe,m as Je,n as Ye,o as Xe,p as Ze,r as Qe,s as $e,t as et,u as tt}from"./confirmation_modals-BFDyfILi.js";import{t as nt}from"./check_box-DxjZGB_L.js";
2var G=e(t()),K=o(),q=(e,t,n)=>typeof t==`object`?e.formatMessage(t,n):t,rt=({alert:{key:e,title:t,message:n,values:i,action:a,onClick:o},dismissAfter:s})=>{let c=y(),l=r(),[u,d]=(0,G.useState)(!1);return(0,G.useEffect)(()=>{let e=setTimeout(()=>{d(!0)},1);return()=>{clearTimeout(e)}},[]),(0,G.useEffect)(()=>{let t=setTimeout(()=>{d(!1),setTimeout(()=>{c(C({key:e}))},500)},s);return()=>{clearTimeout(t)}},[c,d,e,s]),(0,K.jsx)(N,{isActive:u,title:t?q(l,t,i):void 0,message:q(l,n,i),action:a?q(l,a,i):void 0,onActionClick:o})},it=()=>{let e=b(e=>e.alerts),t=b(e=>!!e.meta.get(`needsReload`));return(0,K.jsxs)(ne,{className:`notification-list`,children:[e.map((e,t)=>(0,K.jsx)(rt,{alert:e,dismissAfter:5e3+t*1e3},e.key)),t&&(0,K.jsx)(ot,{})]})},at=i({id:`alert.need_reload.message`,defaultMessage:`Mastodon has been updated. Some things may not work correctly until you reload the page.`}),ot=()=>{let e=r();return(0,K.jsx)(N,{isActive:!0,message:e.formatMessage(at)})},st=e(f()),ct=_((e,t)=>({loading:e.get(`loadingBar`)[t.scope||`default`]}))(st.default.WrappedComponent),J=e(h()),Y=e(k()),lt=ze(),ut=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,K.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`})}),dt=a({help:{id:`info_button.label`,defaultMessage:`Help`}}),ft=()=>{let e=r(),[t,i]=(0,G.useState)(!1),[a,o]=(0,G.useState)(null),s=(0,G.useId)(),c=(0,G.useCallback)(()=>{i(!t)},[t,i]),[l,u]=Ie(c);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`button`,{type:`button`,className:(0,Y.default)(`help-button`,{active:t}),ref:o,onClick:c,"aria-expanded":t,"aria-controls":s,"aria-label":e.formatMessage(dt.help),children:(0,K.jsx)(M,{id:``,icon:ut})}),(0,K.jsx)(oe,{isOpen:t,placement:`top`,onClose:c,offset:5,reference:a,children:({props:e})=>(0,K.jsx)(`div`,{...e,className:`dialog-modal__popout prose dropdown-animation`,role:`region`,id:s,onMouseDown:l,onMouseUp:u,children:(0,K.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,K.jsx)(`h1`,{children:e}),p:e=>(0,K.jsx)(`p`,{children:e}),ul:e=>(0,K.jsx)(`ul`,{children:e}),li:e=>(0,K.jsx)(`li`,{children:e})}})})})]})},X=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`}}),pt=1e4,mt=({children:e,onSelectFile:t,mimeTypes:n})=>{let r=(0,G.useRef)(null),i=(0,G.useCallback)(()=>{r.current?.click()},[]),a=(0,G.useCallback)(e=>{let n=e.target.files?.[0];n&&t(n)},[t]);return(0,K.jsxs)(`label`,{children:[(0,K.jsx)(F,{onClick:i,children:e}),(0,K.jsx)(`input`,{id:`upload-modal__thumbnail`,ref:r,type:`file`,accept:n,onChange:a,style:{display:`none`}})]})},ht=({mediaId:e,position:t,onPositionChange:n})=>{let r=(0,G.useRef)(null),[i,a]=(0,G.useState)(null),[o,s]=t,d=l({to:{left:`${o*100}%`,top:`${s*100}%`},immediate:i===`moving`}),f=b(t=>t.compose.get(`media_attachments`).find(t=>t.get(`id`)===e)),p=b(e=>c?e.accounts.get(c):void 0),m=(0,G.useCallback)(e=>{r.current=e},[]),h=(0,G.useCallback)(e=>{if(e.button!==0)return;let t=e=>{let{x:t,y:i}=L(r.current,e);a(`moving`),n([t,i])},i=()=>{a(null),document.removeEventListener(`mouseup`,i),document.removeEventListener(`mousemove`,t)},{x:o,y:s}=L(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,K.jsxs)(`div`,{className:(0,Y.default)(`focal-point`,{dragging:i}),children:[(0,K.jsx)(`img`,{ref:m,draggable:!1,src:f.get(`url`),alt:``,role:`presentation`,onMouseDown:h}),(0,K.jsx)(u.div,{className:`focal-point__reticle`,style:d})]}):f.get(`type`)===`gifv`?(0,K.jsxs)(`div`,{className:(0,Y.default)(`focal-point`,{dragging:i}),children:[(0,K.jsx)(ue,{ref:m,src:f.get(`url`),alt:``,onMouseDown:h}),(0,K.jsx)(u.div,{className:`focal-point__reticle`,style:d})]}):f.get(`type`)===`video`?(0,K.jsx)(R,{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,K.jsx)(I,{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},gt=(0,G.forwardRef)(({mediaId:e,previousDescription:t,previousPosition:i,onClose:a},o)=>{let c=r(),l=y(),u=b(t=>t.compose.get(`media_attachments`).find(t=>t.get(`id`)===e)),d=b(e=>e.compose.get(`language`)),f=u?.getIn([`meta`,`focus`,`x`],0)??0,h=u?.getIn([`meta`,`focus`,`y`],0)??0,[g,_]=(0,G.useState)(t??u?.get(`description`)??``),[v,x]=(0,G.useState)(i??[f/2+.5,h/-2+.5]),[S,
14C]=(0,G.useState)(!1),[w,T]=(0,G.useState)(!1),E=(0,G.useRef)(!!(t||i)),D=u?.get(`type`),k=(0,lt.length)(g)<=pt,ne=u?.get(`unattached`),A=(0,G.useCallback)(e=>{_(e.target.value),E.current=!0},[_]),j=(0,G.useCallback)(t=>{l(te(e,t))},[l,e]),M=(0,G.useCallback)(e=>{x(e),E.current=!0},[x]),N=(0,G.useCallback)(()=>{T(!0),l(m({id:e,description:g,focus:`${((v[0]-.5)*2).toFixed(2)},${((v[1]-.5)*-2).toFixed(2)}`})).then(()=>(T(!1),E.current=!1,a(),``)).catch(e=>{T(!1),l(ee(e))})},[l,T,e,a,v,g]),ie=(0,G.useCallback)(e=>{(e.ctrlKey||e.metaKey)&&e.key===`Enter`&&(e.preventDefault(),k&&N())},[N,k]),ae=(0,G.useCallback)(()=>{C(!0),Ce().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:`${p}/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,G.useImperativeHandle)(o,()=>({getCloseConfirmationMessage:()=>E.current?{message:c.formatMessage(X.discardMessage),confirm:c.formatMessage(X.discardConfirm),props:{previousDescription:g,previousPosition:v}}:null}),[c,g,v]),(0,K.jsxs)(`div`,{className:`modal-root__modal dialog-modal`,children:[(0,K.jsxs)(`div`,{className:`dialog-modal__header`,children:[(0,K.jsx)(F,{onClick:N,disabled:!k,children:w?(0,K.jsx)(re,{}):(0,K.jsx)(n,{id:`alt_text_modal.done`,defaultMessage:`Done`})}),(0,K.jsx)(O,{as:`h1`,className:`dialog-modal__header__title`,children:(0,K.jsx)(n,{id:`alt_text_modal.add_alt_text`,defaultMessage:`Add alt text`})}),(0,K.jsx)(F,{secondary:!0,onClick:a,children:(0,K.jsx)(n,{id:`alt_text_modal.cancel`,defaultMessage:`Cancel`})})]}),(0,K.jsxs)(`div`,{className:`dialog-modal__content`,children:[(0,K.jsxs)(`div`,{className:`dialog-modal__content__preview`,children:[(0,K.jsx)(ht,{mediaId:e,position:v,onPositionChange:M}),(D===`audio`||D===`video`)&&ne&&(0,K.jsx)(mt,{onSelectFile:j,mimeTypes:`image/jpeg,image/png,image/gif,image/heic,image/heif,image/webp,image/avif`,children:(0,K.jsx)(n,{id:`alt_text_modal.change_thumbnail`,defaultMessage:`Change thumbnail`})})]}),(0,K.jsx)(`form`,{className:`dialog-modal__content__form simple_form`,onSubmit:N,children:(0,K.jsxs)(`div`,{className:`input`,children:[(0,K.jsxs)(`div`,{className:`label_input`,children:[(0,K.jsx)(Be,{id:`description`,value:S?` `:g,onChange:A,onKeyDown:ie,lang:d,placeholder:c.formatMessage(D===`audio`?X.placeholderHearing:X.placeholderVisual),minRows:3,disabled:S}),S&&(0,K.jsxs)(`div`,{className:`label_input__loading-indicator`,children:[(0,K.jsx)(P,{width:`100%`}),(0,K.jsx)(P,{width:`100%`}),(0,K.jsx)(P,{width:`61%`})]})]}),(0,K.jsxs)(`div`,{className:`input__toolbar`,children:[(0,K.jsx)(Me,{max:pt,text:S?``:g}),(0,K.jsx)(`div`,{className:`spacer`}),(0,K.jsx)(`button`,{className:`link-button`,onClick:ae,disabled:D!==`image`||S,type:`button`,children:(0,K.jsx)(n,{id:`alt_text_modal.add_text_from_image`,defaultMessage:`Add text from image`})}),(0,K.jsx)(ft,{})]})]})})]})]})});gt.displayName=`AltTextModal`;var _t=({actions:e,onClick:t,className:n})=>(0,K.jsx)(`div`,{className:(0,Y.default)(`modal-root__modal actions-modal`,n),children:(0,K.jsx)(`ul`,{children:e.map((e,n)=>{if(e===null)return(0,K.jsx)(`li`,{className:`dropdown-menu__separator`},`sep-${n}`);let{text:r,highlighted:i,disabled:a,dangerous:o}=e,s;return s=ce(e)?(0,K.jsx)(`button`,{onClick:t,"data-index":n,disabled:a,type:`button`,children:(0,K.jsx)(B,{item:e})}):se(e)?(0,K.jsx)(`a`,{href:e.href,target:e.target??`_target`,"data-method":e.method,rel:`noopener`,onClick:t,"data-index":n,children:(0,K.jsx)(B,{item:e})}):(0,K.jsx)(T,{to:e.to,onClick:t,"data-index":n,children:(0,K.jsx)(B,{item:e})}),(0,K.jsx)(`li`,{className:(0,Y.default)(`dropdown-menu__item`,{"dropdown-menu__item--dangerous":o,"dropdown-menu__item--highlighted":i}),children:s},`${r}-${n}`)})})}),vt=({media:e,statusId:t,options:n,onClose:r,onChangeBackgroundColor:i})=>{let a=b(e=>e.statuses.get(t)),o=a?.get(`account`),s=b(e=>o?e.accounts.get(o)?.avatar_static:void 0);(0,G.useEffect)(()=>(i(H(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,K.jsxs)(`div`,{className:`modal-root__modal audio-modal`,children:[(0,K.jsx)(`div`,{className:`audio-modal__container`,children:(0,K.jsx)(I,{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,K.jsx)(`div`,{className:`media-modal__overlay`,children:a&&(0,K.jsx)(V,{statusId:a.get(`id`),withOpenButton:!0,onClose:r})})]})},yt=a({cancel_reblog:{id:`status.cancel_reblog_private`,defaultMessage:`Unboost`},reblog:{id:`status.reblog`,defaultMessage:`Boost`}}),bt=({status:e,onReblog:t,onClose:i})=>{let a=r(),o=b(e=>e.compose.get(`default_privacy`)),s=e.get(`id`),c=e.get(`visibility`),[l,u]=(0,G.useState)(c===`private`?`private`:o),d=(0,G.useCallback)(e=>{u(e)},[]),f=(0,G.useCallback)(()=>{t(e,l),i()},[i,t,e,l]),p=(0,G.useCallback)(()=>{i()},[i]);return(0,K.jsxs)(`div`,{className:`modal-root__modal safety-action-modal`,children:[(0,K.jsxs)(`div`,{className:`safety-action-modal__top`,children:[(0,K.jsxs)(`div`,{className:`safety-action-modal__header`,children:[(0,K.jsx)(`div`,{className:`safety-action-modal__header__icon`,children:(0,K.jsx)(M,{icon:z,id:`retweet`})}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(O,{as:`h1`,children:e.get(`reblogged`)?(0,K.jsx)(n,{id:`boost_modal.undo_reblog`,defaultMessage:`Unboost post?`}):(0,K.jsx)(n,{id:`boost_modal.reblog`,defaultMessage:`Boost post?`})}),(0,K.jsx)(`div`,{children:(0,K.jsx)(n,{id:`boost_modal.combo`,defaultMessage:`You can press {combo} to skip this next time`,values:{combo:(0,K.jsxs)(`span`,{className:`hotkey-combination`,children:[(0,K.jsx)(`kbd`,{children:`Shift`}),`+`,(0,K.jsx)(M,{id:`retweet`,icon:z})]})}})})]})]}),(0,K.jsx)(`div`,{className:`safety-action-modal__status`,children:(0,K.jsx)(Ve,{statusId:s})})]}),(0,K.jsx)(`div`,{className:(0,Y.default)(`safety-action-modal__bottom`),children:(0,K.jsxs)(`div`,{className:`safety-action-modal__actions`,children:[!e.get(`reblogged`)&&(0,K.jsx)(Pe,{noDirect:!0,value:l,onCh
14ange:d,disabled:c===`private`}),(0,K.jsx)(`div`,{className:`spacer`}),(0,K.jsx)(`button`,{onClick:p,className:`link-button`,type:`button`,children:(0,K.jsx)(n,{id:`confirmation_modal.cancel`,defaultMessage:`Cancel`})}),(0,K.jsx)(F,{onClick:f,text:a.formatMessage(e.get(`reblogged`)?yt.cancel_reblog:yt.reblog),autoFocus:!0})]})})]})},xt=a({close:{id:`lightbox.close`,defaultMessage:`Close`}}),St=({src:e,alt:t,onClose:n})=>{let i=r(),[a,o]=(0,G.useState)(!1),s=(0,G.useCallback)(()=>{o(e=>!e)},[o]),c=(0,Y.default)(`media-modal__navigation`,{"media-modal__navigation--hidden":a});return(0,K.jsxs)(`div`,{className:`modal-root__modal media-modal`,children:[(0,K.jsx)(`div`,{className:`media-modal__closer`,role:`presentation`,onClick:n,children:(0,K.jsx)(de,{src:e,width:400,height:400,alt:t,onClick:s})}),(0,K.jsx)(`div`,{className:c,children:(0,K.jsx)(`div`,{className:`media-modal__buttons`,children:(0,K.jsx)(j,{className:`media-modal__close`,title:i.formatMessage(xt.close),icon:`times`,iconComponent:A,onClick:n})})})]})},Ct=({loading:e,onClose:t,onRetry:r})=>{let i=(0,G.useCallback)(()=>{t(void 0,!1)},[t]),a=(0,G.useCallback)(()=>{r&&r()},[r]);return(0,K.jsx)(`div`,{className:`modal-root__modal modal-placeholder`,"aria-busy":e,children:e?(0,K.jsx)(re,{}):(0,K.jsxs)(`div`,{className:`modal-placeholder__error`,children:[(0,K.jsx)(pe,{src:`/oops.gif`,staticSrc:`/oops.png`,className:`modal-placeholder__error__image`}),(0,K.jsxs)(`div`,{className:`modal-placeholder__error__message`,children:[(0,K.jsx)(`p`,{children:(0,K.jsx)(n,{id:`bundle_modal_error.message`,defaultMessage:`Something went wrong while loading this screen.`})}),(0,K.jsxs)(`div`,{className:`modal-placeholder__error__message__actions`,children:[(0,K.jsx)(F,{onClick:a,children:(0,K.jsx)(n,{id:`bundle_modal_error.retry`,defaultMessage:`Try again`})}),(0,K.jsx)(F,{onClick:i,className:`button button-secondary`,children:(0,K.jsx)(n,{id:`bundle_modal_error.close`,defaultMessage:`Close`})})]})]})]})})},wt=e(Le()),Tt=(e,{statusId:t})=>({status:e.getIn([`statuses`,t])}),Et=class extends Re{componentDidMount(){let{media:e,onChangeBackgroundColor:t}=this.props,n=H(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,K.jsxs)(`div`,{className:`modal-root__modal video-modal`,children:[(0,K.jsx)(`div`,{className:`video-modal__container`,children:(0,K.jsx)(R,{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,K.jsx)(`div`,{className:`media-modal__overlay`,children:t&&(0,K.jsx)(V,{statusId:t.get(`id`),withOpenButton:!0,onClose:n})})]})}};g(Et,`propTypes`,{media:wt.default.map.isRequired,statusId:J.default.string,status:wt.default.map,options:J.default.shape({startTime:J.default.number,autoPlay:J.default.bool,defaultVolume:J.default.number}),onClose:J.default.func.isRequired,onChangeBackgroundColor:J.default.func.isRequired});var Dt=_(Tt,null,null,{forwardRef:!0})(Et);function Ot(e){return[`public`,`followers`,`nobody`].includes(e)}function kt(e){return[`public`,`unlisted`,`private`,`direct`].includes(e)}var At=({disabled:e,items:t,current:n,onChange:i,labelId:a,descriptionId:o,classPrefix:s,className:c,id:l,...u})=>{let d=r(),[f,p]=(0,G.useState)(null),m=(0,G.useId)(),h=l??`${m}-button`,g=`${m}-listbox`,[_,v]=(0,G.useState)(!1),y=(0,G.useCallback)(()=>{e||v(e=>(f?.focus(),!e))},[f,e]),b=(0,G.useCallback)(()=>{v(!1),f?.focus()},[f]),x=(0,G.useMemo)(()=>t.find(e=>e.value===n)?.text??d.formatMessage({id:`dropdown.empty`,defaultMessage:`Select an option`}),[n,d,t]);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`button`,{type:`button`,...u,id:h,"aria-labelledby":`${a} ${h}`,"aria-describedby":o,"aria-expanded":_,"aria-controls":g,onClick:y,disabled:e,className:(0,Y.default)(`${s}__button`,{active:_,disabled:e}
14,c),ref:p,children:[x,(0,K.jsx)(M,{id:`unfold-icon`,icon:Fe,className:`${s}__icon`})]}),(0,K.jsx)(oe,{matchReferenceWidth:!0,isOpen:_,placement:`bottom-start`,onClose:b,reference:f,children:({props:e,placement:r})=>(0,K.jsx)(`div`,{...e,className:`${s}__overlay`,children:(0,K.jsx)(`div`,{className:(0,Y.default)(`dropdown-animation`,`${s}__dropdown`,r),id:g,children:(0,K.jsx)(Ne,{items:t,value:n,onClose:b,onChange:i,classNamePrefix:s})})})})]})},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=v([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`:Ot(i)?i:a===`unlisted`?`followers`:`public`}),Mt=v([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}),Nt=(0,G.forwardRef)(({onClose:e,onChange:t,statusId:i},a)=>{let o=r(),s=b(e=>i?e.statuses.getIn([i,`visibility`],`public`)??`public`:e.compose.get(`privacy`)),c=b(e=>jt(e,i)),[l,u]=(0,G.useState)(s),[d,f]=(0,G.useState)(c),p=!!i,m=l===`private`||l===`direct`,h=b(Mt),g=b(e=>e.compose.get(`quoted_status_id`)!==null),_=(0,G.useMemo)(()=>{let e=[{value:`private`,text:o.formatMessage(U.private_short),meta:o.formatMessage(U.private_long),icon:`lock`,iconComponent:ie},{value:`direct`,text:o.formatMessage(U.direct_short),meta:o.formatMessage(U.direct_long),icon:`at`,iconComponent:me}];return h||e.unshift({value:`public`,text:o.formatMessage(U.public_short),meta:o.formatMessage(U.public_long),icon:`globe`,iconComponent:he},{value:`unlisted`,text:o.formatMessage(U.unlisted_short),meta:o.formatMessage(U.unlisted_long),icon:`unlock`,iconComponent:ae}),e},[o,h]),v=(0,G.useMemo)(()=>[{value:`public`,text:o.formatMessage(Z.quotePublic)},{value:`followers`,text:o.formatMessage(Z.quoteFollowers)},{value:`nobody`,text:o.formatMessage(Z.quoteNobody)}],[o]),y=(0,G.useCallback)(e=>{kt(e)&&u(e)},[]),x=(0,G.useCallback)(e=>{Ot(e)&&f(e)},[]),ee=(0,G.useCallback)(()=>{t(l,d),e()},[t,e,l,d]),S=(0,G.useId)(),C=`${S}-visibility-label`,te=`${S}-visibility-desc`,w=`${S}-quote-label`,T=`${S}-quote-desc`;return(0,K.jsxs)(`div`,{className:`modal-root__modal dialog-modal visibility-modal`,children:[(0,K.jsxs)(`div`,{className:`dialog-modal__header`,children:[(0,K.jsx)(j,{className:`dialog-modal__header__close`,title:o.formatMessage(Z.close),icon:`times`,iconComponent:A,onClick:e}),(0,K.jsx)(O,{as:`h1`,className:`dialog-modal__header__title`,children:(0,K.jsx)(n,{id:`visibility_modal.header`,defaultMessage:`Visibility and interaction`})})]}),(0,K.jsxs)(`div`,{className:`dialog-modal__content`,children:[(0,K.jsx)(`div`,{className:`dialog-modal__content__description`,children:(0,K.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,K.jsx)(`a`,{href:`/settings/preferences/posting_defaults`,children:e})},tagName:`p`})}),(0,K.jsxs)(`div`,{className:`dialog-modal__content__form`,children:[(0,K.jsxs)(`div`,{className:(0,Y.default)(`visibility-dropdown`,{disabled:p}),children:[(0,K.jsx)(`label`,{className:`visibility-dropdown__label`,id:C,children:(0,K.jsx)(n,{id:`visibility_modal.privacy_label`,defaultMessage:`Visibility`})}
14),(0,K.jsx)(At,{items:_,current:l,onChange:y,labelId:C,descriptionId:te,classPrefix:`visibility-dropdown`,disabled:p}),!!i&&(0,K.jsx)(`p`,{className:`visibility-dropdown__helper`,id:`visibilityDescriptionId`,children:(0,K.jsx)(n,{id:`visibility_modal.helper.privacy_editing`,defaultMessage:`Visibility can't be changed after a post is published.`})}),!i&&h&&(0,K.jsx)(`p`,{className:`visibility-dropdown__helper`,id:`visibilityDescriptionId`,children:(0,K.jsx)(n,{id:`visibility_modal.helper.privacy_private_self_quote`,defaultMessage:`Self-quotes of private posts cannot be made public.`})})]}),(0,K.jsxs)(`div`,{className:(0,Y.default)(`visibility-dropdown`,{disabled:m}),children:[(0,K.jsx)(`label`,{className:`visibility-dropdown__label`,id:w,children:(0,K.jsx)(n,{id:`visibility_modal.quote_label`,defaultMessage:`Who can quote`})}),(0,K.jsx)(At,{items:v,current:m?`nobody`:d,onChange:x,labelId:w,descriptionId:T,classPrefix:`visibility-dropdown`,disabled:m}),(0,K.jsx)(Pt,{policy:d,visibility:l,className:`visibility-dropdown__helper`,id:T})]}),g&&l===`direct`&&(0,K.jsxs)(`div`,{className:`visibility-modal__quote-warning`,children:[(0,K.jsx)(n,{id:`visibility_modal.direct_quote_warning.title`,defaultMessage:`Quotes can't be embedded in private mentions`,tagName:`h3`}),(0,K.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,K.jsxs)(`div`,{className:`dialog-modal__content__actions`,children:[(0,K.jsx)(F,{onClick:e,secondary:!0,children:(0,K.jsx)(n,{id:`confirmation_modal.cancel`,defaultMessage:`Cancel`})}),(0,K.jsx)(F,{onClick:ee,children:(0,K.jsx)(n,{id:`visibility_modal.save`,defaultMessage:`Save`})})]})]})]})});Nt.displayName=`VisibilityModal`;var Pt=({policy:e,visibility:t,...r})=>{let i;return t===`unlisted`&&e!==`nobody`&&(i=(0,K.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,K.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,K.jsx)(n,{id:`visibility_modal.helper.direct_quoting`,defaultMessage:`Private mentions authored on Mastodon can't be quoted by others.`})),i?(0,K.jsx)(`p`,{...r,children:i}):null},Ft={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`}}),It=(0,G.forwardRef)(({onClose:e},t)=>{let i=r(),[a,o]=(0,G.useState)(!1),s=(0,G.useCallback)(()=>{o(e=>!e)},[]),c=y(),l=(0,G.useCallback)(()=>{c(S()),a&&c(x([`dismissed_banners`,d],!0))},[a,c]);return(0,K.jsx)(W,{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,K.jsxs)(`label`,{className:Ft.checkbox_wrapper,children:[(0,K.jsx)(nt,{value:`hide`,checked:a,onChange:s}),` `,(0,K.jsx)(n,{id:`confirmations.private_quote_notify.do_not_show_again`,defaultMessage:`Don't show me this message again`})]})})});It.displayName=`PrivateQuoteNotify`;var Lt={MEDIA:()=>Promise.resolve({default:fe}),VIDEO:()=>Promise.resolve({default:Dt}),AUDIO:()=>Promise.resolve({default:vt}),IMAGE:()=>Promise.resolve({default:St}),BOOST:()=>Promise.resolve({default:bt}),CONFIRM:()=>Promise.resolve({default:W}),CONFIRM_DELETE_STATUS:()=>Promise.resolve({default:Je}),CONFIRM_DELETE_LIST:()=>Promise.resolve({default:Ze}),CONFIRM_DELETE_COLLECTION:()=>Promise.resolve({default:Ge}),CONFIRM_REPLY:()=>Promise.resolve({default:We}),CONFIRM_EDIT_STATUS:()=>Promise.resolve({default:tt}),CONFIRM_UNBLOCK:()=>Promise.resolve({default:$e}),CONFIRM_UNFOLLOW:()=>Promise.resolve({default:Ue}),CONFIRM_WITHDRAW_REQUEST:()=>Promise.resolve({default:qe}),CONFIRM_CLEAR_NOTIFICATIONS:()=>Promise.resolve({default:Xe}),CONFIRM_LOG_OUT:()=>Promise.resolve({default:He}),CONFIRM_FOLLOW_TO_LIST:()=>Promise.resolve({default:Ke}),CONFIRM_MISSING_ALT_TEXT:()=>Promise.resolve({default:Qe}),CONFIRM_PRIVATE_QUOTE_NOTIFY:()=>Promise.resolve({default:It}),CONFIRM_REVOKE_QUOTE:()=>Promise.resolve({default:Ye}),CONFIRM_QUIET_QUOTE:()=>Promise.resolve({default:et}),MUTE:Oe,BLOCK:Te,DOMAIN_BLOCK:Ae,REPORT:De,REPORT_COLLECTION:Se,COLLECTION_ADDER:()=>s(()=>import(`./collection_adder-CZKVeGGs.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,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164]),import.meta.url),SHARE_COLLECTION:()=>s(()=>import(`./share_modal-DNOpAh5v.js`).then(e=>({default:e.CollectionShareModal})),__vite__mapDeps([165,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,44,45,46,43,47,48,49,55,42,61,52,62,63,64,65,59,66,67,68,69,70,71,72,162,73,74,56,57,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,166]),import.meta.url),REVOKE_COLLECTION_INCLUSION:()=>s(()=>
14import(`./revoke_collection_inclusion_modal-4j69u9Mi.js`).then(e=>e.t).then(e=>({default:e.RevokeCollectionInclusionModal})),__vite__mapDeps([160,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,161,39,40,55,43,42,162]),import.meta.url),ACTIONS:()=>Promise.resolve({default:_t}),EMBED:ge,FOCAL_POINT:()=>Promise.resolve({default:gt}),LIST_ADDER:be,COMPARE_HISTORY:xe,FILTER:ve,SUBSCRIBED_LANGUAGES:Ee,INTERACTION:ye,CLOSED_REGISTRATIONS:we,IGNORE_NOTIFICATIONS:_e,ANNUAL_REPORT:ke,COMPOSE_PRIVACY:()=>Promise.resolve({default:Nt}),ACCOUNT_NOTE:()=>s(()=>import(`./note_modal-B9KYWnF_.js`).then(e=>({default:e.AccountNoteModal})),__vite__mapDeps([167,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,161,39,40,55,162,168,63,145,41,44,45,46,47,48,49,82,83,71,84,146,73,74,56,57,75,76,77,78,79,80,81,85,86,87,88,89,90,169,170]),import.meta.url),ACCOUNT_FIELD_OVERFLOW:()=>s(()=>import(`./field_modal-Ba8x_Fp5.js`).then(e=>({default:e.AccountFieldModal})),__vite__mapDeps([171,3,1,2,4,5,39,9,40,67,8,6,7,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,43,68,69,55,42,162,172,169,170]),import.meta.url),ACCOUNT_JOIN_DATE:()=>s(()=>import(`./join_modal-Cqjm4Qkh.js`).then(e=>({default:e.AccountJoinModal})),__vite__mapDeps([173,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,44,45,46,43,47,48,49,63,96,67,40,68,69,55,42,162,148,91,169,170]),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-DJpD9C8s.js`).then(e=>({default:e.ConfirmHideFeaturedTabModal})),__vite__mapDeps([174,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,63,161,39,40,55,43,42,162,91]),import.meta.url)};function $(e){return()=>s(()=>import(`./modals-f1KZCuev.js`).then(t=>({default:t[e]})),__vite__mapDeps([175,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,43,41,42,44,45,46,47,48,49,120,121,52,78,93,67,68,69,122,62,107,109,118,123,124,82,64,65,59,63,95,66,70,96,55,74,125,126,127,128,102,97,129,130,131,98,110,79,116,132,133,61,71,72,134,119,94,99,100,101,135,75,83,77,136,161,162,168,145,84,146,176,80,81,85,73,56,57,76,86,87,88,89,90,177,178,179,103,91,180,51,53,54,50,58,60,104,105,106,108,111,112,113,114,115,117,137,138,139,140,141,142,143,144,181,182,183]),import.meta.url)}var Rt=class extends G.PureComponent{constructor(...e){super(...e),g(this,`state`,{backgroundColor:null}),g(this,`setBackgroundColor`,e=>{this.setState({backgroundColor:e})}),g(this,`renderLoading`,()=>{let{onClose:e}=this.props;return(0,K.jsx)(Ct,{loading:!0,onClose:e})}),g(this,`renderError`,e=>{let{onClose:t}=this.props;return(0,K.jsx)(Ct,{...e,onClose:t})}),g(this,`handleClose`,(e=!1)=>{let{onClose:t}=this.props,n=this._modal?.getCloseConfirmationMessage?.();t(n,e)}),g(this,`setModalRef`,e=>{this._modal=e})}render(){let{type:e,props:t,ignoreFocus:n}=this.props,{backgroundColor:r}=this.state,i=!!e;return(0,K.jsx)(le,{backgroundColor:r,onClose:this.handleClose,ignoreFocus:n,children:i&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(je,{fetchComponent:Lt[e],loading:this.renderLoading,error:this.renderError,renderDelay:200,children:e=>(0,K.jsx)(e,{...t,onChangeBackgroundColor:this.setBackgroundColor,onClose:this.handleClose,ref:this.setModalRef})},e),(0,K.jsx)(w,{children:(0,K.jsx)(`meta`,{name:`robots`,content:`noindex`})})]})})}},zt={},Bt=_(e=>({ignoreFocus:e.getIn([`modal`,`ignoreFocus`]),type:e.getIn([`modal`,`stack`,0,`modalType`],null),props:e.getIn([`modal`,`stack`,0,`modalProps`],zt)}),e=>({onClose(t,n=!1){e(t?E({previousModalProps:t.props,modalType:`CONFIRM`,modalProps:{message:t.message,confirm:t.confirm,onConfirm:()=>e(D({modalType:void 0,ignoreFocus:n}))}}):D({modalType:void 0,ignoreFocus:n}))}}))(Rt);export{ct as n,it as r,Bt as t};
15//# sourceMappingURL=modal_container-ByuwnQBP.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.