27 lines
81 KiB
JavaScript
27 lines
81 KiB
JavaScript
|
var mt=(s,e,n)=>{if(!e.has(s))throw TypeError("Cannot "+n)};var T=(s,e,n)=>(mt(s,e,"read from private field"),n?n.call(s):e.get(s)),G=(s,e,n)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,n)},ce=(s,e,n,o)=>(mt(s,e,"write to private field"),o?o.call(s,n):e.set(s,n),n);var Y=(s,e,n)=>(mt(s,e,"access private method"),n);import{p as H,t as dn,F as W,_ as ee,u as je,Z as hn,q as Pe,b as t,k as Ce,E as pn,ao as mn,n as gn,o as ot,m as fn,a as vn,M as $t,g as Bt,x as Kt}from"./vendor-GrW-f9CX.js";import{v as bn,P as yn,p as Tt,u as xn,e as Vt,a as wn,I as K,r as _t,d as Gt,Q as kn,M as Qe,s as xe,K as En,j as Fn,b as Cn,l as zn,q as Ln}from"./status-FORkhePO.js";import{s as re,a as Ft,e as An,A as Yt,c as ze,f as Sn,b as In,L as rt,p as Mn}from"./useTitle-dCp14HlU.js";class $n{constructor(e,n,{tabInsertsSuggestions:o,defaultFirstOption:r}={}){this.input=e,this.list=n,this.tabInsertsSuggestions=o??!0,this.defaultFirstOption=r??!1,this.isComposing=!1,n.id||(n.id=`combobox-${Math.random().toString().slice(2,6)}`),this.ctrlBindings=!!navigator.userAgent.match(/Macintosh/),this.keyboardEventHandler=p=>Bn(p,this),this.compositionEventHandler=p=>_n(p,this),this.inputHandler=this.clearSelection.bind(this),e.setAttribute("role","combobox"),e.setAttribute("aria-controls",n.id),e.setAttribute("aria-expanded","false"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-haspopup","listbox")}destroy(){this.clearSelection(),this.stop(),this.input.removeAttribute("role"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-haspopup")}start(){this.input.setAttribute("aria-expanded","true"),this.input.addEventListener("compositionstart",this.compositionEventHandler),this.input.addEventListener("compositionend",this.compositionEventHandler),this.input.addEventListener("input",this.inputHandler),this.input.addEventListener("keydown",this.keyboardEventHandler),this.list.addEventListener("click",Rt),this.indicateDefaultOption()}stop(){this.clearSelection(),this.input.setAttribute("aria-expanded","false"),this.input.removeEventListener("compositionstart",this.compositionEventHandler),this.input.removeEventListener("compositionend",this.compositionEventHandler),this.input.removeEventListener("input",this.inputHandler),this.input.removeEventListener("keydown",this.keyboardEventHandler),this.list.removeEventListener("click",Rt)}indicateDefaultOption(){var e;this.defaultFirstOption&&((e=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(gt)[0])===null||e===void 0||e.setAttribute("data-combobox-option-default","true"))}navigate(e=1){const n=Array.from(this.list.querySelectorAll('[aria-selected="true"]')).filter(gt)[0],o=Array.from(this.list.querySelectorAll('[role="option"]')).filter(gt),r=o.indexOf(n);if(r===o.length-1&&e===1||r===0&&e===-1){this.clearSelection(),this.input.focus();return}let p=e===1?0:o.length-1;if(n&&r>=0){const v=r+e;v>=0&&v<o.length&&(p=v)}const u=o[p];if(u)for(const v of o)v.removeAttribute("data-combobox-option-default"),u===v?(this.input.setAttribute("aria-activedescendant",u.id),u.setAttribute("aria-selected","true"),Rn(this.list,u)):v.removeAttribute("aria-selected")}clearSelection(){this.input.removeAttribute("aria-activedescendant");for(const e of this.list.querySelectorAll('[aria-selected="true"]'))e.removeAttribute("aria-selected");this.indicateDefaultOption()}}function Bn(s,e){if(!(s.shiftKey||s.metaKey||s.altKey)&&!(!e.ctrlBindings&&s.ctrlKey)&&!e.isComposing)switch(s.key){case"Enter":Dt(e.input,e.list)&&s.preventDefault();break;case"Tab":e.tabInsertsSuggestions&&Dt(e.input,e.list)&&s.preventDefault();break;case"Escape":e.clearSelection();break;case"ArrowDown":e.navigate(1),s.preventDefault();break;case"ArrowUp":e.navigate(-1),s.preventDefault();break;case"n":e.ctrlBindings&&s.ctrlKey&&(e.navigate(1),s.preventDefault());break;case"p":e.ctrlBindings&&s.ctrlKey&&(e.navigate(-1),s.pre
|
|||
|
`,n-1)>u||s.lastIndexOf(".",n-1)>u)return}else if(s.lastIndexOf(" ",n-1)>u)return;const v=s[u-1];return v&&!jn.test(v)?void 0:{text:s.substring(u+e.length,n),position:u+e.length}}class On extends HTMLElement{}class Hn extends Event{constructor(){super("update")}}const ft=new WeakMap;var Oe,He,we,me,ke,Re,Le,Ae,Ne,yt,Se,Ie,et,Me,tt,$e,nt,Ue,Ee;const zt=class zt extends On{constructor(n){super();G(this,ke);G(this,Ne);G(this,Ie);G(this,Me);G(this,$e);G(this,Oe,new MutationObserver(()=>Y(this,Me,tt).call(this)));G(this,He,new ResizeObserver(()=>Y(this,Ie,et).call(this)));G(this,we,void 0);G(this,me,void 0);G(this,Le,0);G(this,Ae,0);G(this,Se,!1);G(this,Ue,()=>Y(this,$e,nt).call(this));G(this,Ee,n=>{Y(this,ke,Re).call(this,o=>{(n.target===document||n.target===window||n.target instanceof Node&&n.target.contains(o))&&Y(this,Ie,et).call(this)})});ce(this,we,new WeakRef(n)),ce(this,me,document.createElement("div")),T(this,me).style.position="absolute",T(this,me).style.pointerEvents="none",n.after(T(this,me)),T(this,me).appendChild(this)}static for(n){const o=ft.get(n)??new zt(n);return ft.set(n,o),o}forceUpdate(){Y(this,Me,tt).call(this),Y(this,$e,nt).call(this)}connectedCallback(){const n=T(this,we).deref();if(!n)return this.remove();this.style.pointerEvents="none",this.style.userSelect="none",this.style.overflow="hidden",this.style.display="block",this.style.visibility="hidden",n instanceof HTMLTextAreaElement?(this.style.whiteSpace="pre-wrap",this.style.wordWrap="break-word"):(this.style.whiteSpace="nowrap",this.style.display="table-cell",this.style.verticalAlign="middle"),this.setAttribute("aria-hidden","true"),Y(this,Me,tt).call(this),Y(this,$e,nt).call(this),T(this,Oe).observe(n,{attributeFilter:["style","dir"]}),T(this,He).observe(n),document.addEventListener("scroll",T(this,Ee),{capture:!0}),window.addEventListener("resize",T(this,Ee),{capture:!0}),n.addEventListener("input",T(this,Ue),{capture:!0})}disconnectedCallback(){T(this,me).remove(),T(this,Oe).disconnect(),T(this,He).disconnect(),document.removeEventListener("scroll",T(this,Ee),{capture:!0}),window.removeEventListener("resize",T(this,Ee),{capture:!0});const n=T(this,we).deref();n&&(n.removeEventListener("input",T(this,Ue),{capture:!0}),ft.delete(n))}};Oe=new WeakMap,He=new WeakMap,we=new WeakMap,me=new WeakMap,ke=new WeakSet,Re=function(n){const o=T(this,we).deref();return o?n(o):this.remove()},Le=new WeakMap,Ae=new WeakMap,Ne=new WeakSet,yt=function(){Y(this,ke,Re).call(this,n=>{const o=window.getComputedStyle(n);this.style.height=o.height,this.style.width=o.width,n.clientHeight!==this.clientHeight&&(this.style.height=`calc(${o.height} + ${n.clientHeight-this.clientHeight}px)`),n.clientWidth!==this.clientWidth&&(this.style.width=`calc(${o.width} + ${n.clientWidth-this.clientWidth}px)`);const r=n.getBoundingClientRect(),p=this.getBoundingClientRect();ce(this,Le,T(this,Le)+r.left-p.left),ce(this,Ae,T(this,Ae)+r.top-p.top),this.style.transform=`translate(${T(this,Le)}px, ${T(this,Ae)}px)`,this.scrollTop=n.scrollTop,this.scrollLeft=n.scrollLeft,this.dispatchEvent(new Hn)})},Se=new WeakMap,Ie=new WeakSet,et=function(){T(this,Se)||(ce(this,Se,!0),requestAnimationFrame(()=>{Y(this,Ne,yt).call(this),ce(this,Se,!1)}))},Me=new WeakSet,tt=function(){Y(this,ke,Re).call(this,n=>{const o=window.getComputedStyle(n);for(const r of Nn)this.style[r]=o[r];Y(this,Ie,et).call(this)})},$e=new WeakSet,nt=function(){Y(this,ke,Re).call(this,n=>{this.textContent=n.value,Y(this,Ne,yt).call(this)})},Ue=new WeakMap,Ee=new WeakMap;let it=zt;const Nn=["direction","writingMode","unicodeBidi","textOrientation","boxSizing","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];try{customElements.define("input-style-clone",it)}catch(s){if(!(s instanceof DOMException&&s.name==="NotSupportedEr
|
|||
|
`)&&(S.current.selectionStart=0,S.current.selectionEnd=0),(b=S.current)==null||b.focus())},300)};ee(()=>{if(e){const{spoilerText:a,visibility:l,language:b,sensitive:d}=e;a&&X.current&&(X.current.value=a);const x=[...new Set([e.account.acct,...e.mentions.map(w=>w.acct)])].filter(w=>w!==A.acct);x.length>0&&(S.current.value=`${x.map(w=>`@${w}`).join(" ")} `,Q()),oe(),U(l==="public"&&N["posting:default:visibility"]?N["posting:default:visibility"]:l),ie(b||N.postingDefaultLanguage||ye),te(d&&!!a)}else if(n){const{visibility:a,language:l,sensitive:b,poll:d,mediaAttachments:_}=n,x=!!(d!=null&&d.options)&&{...d,options:d.options.map(w=>(w==null?void 0:w.title)||w),expiresIn:(d==null?void 0:d.expiresIn)||Nt(d.expiresAt)};R("loading"),(async()=>{try{const w=await u.v1.statuses.$select(n.id).source.fetch(),{text:F,spoilerText:P}=w;S.current.value=F,S.current.dataset.source=F,Q(),oe(),X.current.value=P,U(a),ie(l||presf.postingDefaultLanguage||ye),te(b),x&&L(x),z(_),R("default")}catch(w){alert((w==null?void 0:w.reason)||w),R("error")}})()}else oe(),N["posting:default:visibility"]&&U(N["posting:default:visibility"]),N["posting:default:language"]&&ie(N["posting:default:language"]),N["posting:default:sensitive"]&&te(N["posting:default:sensitive"]);if(o){const{status:a,spoilerText:l,visibility:b,language:d,sensitive:_,poll:x,mediaAttachments:w}=o,F=!!(x!=null&&x.options)&&{...x,options:x.options.map(P=>(P==null?void 0:P.title)||P),expiresIn:(x==null?void 0:x.expiresIn)||Nt(x.expiresAt)};S.current.value=a,Q(),oe(),l&&(X.current.value=l),b&&U(b),ie(d||N.postingDefaultLanguage||ye),_!==null&&te(_),F&&L(F),w&&z(w)}},[o,n,e]);const ue=W(),ge="You have unsaved changes. Discard this post?",be=()=>{const{value:a,dataset:l}=S.current;if(g==="loading")return!1;const b=(a||"").trim().replace(new RegExp("^\\p{White_Space}+|\\p{White_Space}+$","gu"),""),d=M.length>0;if(!b&&!d||M.length>0&&M.every(P=>P.id))return!0;const x=(e==null?void 0:e.account.id)===A.id,w=e&&a.trim()===`@${e.account.acct}`;return!!(!x&&w||a===(l==null?void 0:l.source))},Ke=()=>be()?!0:confirm(ge);ee(()=>{const a=l=>{be()||(l.preventDefault(),l.returnValue=ge)};return window.addEventListener("beforeunload",a,{capture:!0}),()=>window.removeEventListener("beforeunload",a,{capture:!0})},[]);const tn=()=>{const{value:a}=S.current,{value:l}=X.current;return Pt(ai(a))+Pt(l)},lt=()=>{const a=tn();re.composerCharacterCount=a};ee(lt,[]);const Lt=window.CloseWatcher,ct=W(!1);je("esc",()=>{ct.current=!0},{enabled:!Lt,enableOnFormTags:!0}),je("esc",()=>{!r&&ct.current&&Ke()&&s(),ct.current=!1},{enabled:!Lt,enableOnFormTags:!0,keyup:!0,ignoreEventWhen:a=>{const l=document.querySelectorAll("#modal-container > *"),b=!!l,d=l.length===1&&l[0].querySelector("#compose-container");return b&&!d}}),yn(()=>{!r&&Ke()&&s()},[r,Ke,s]);const At=W({}),St=()=>`${Sn()}#${C.current}`,ut=()=>{if(n||re.composerState.minimized)return;const a=St(),l={key:a,replyTo:e?{id:e.id,account:{id:e.account.id,username:e.account.username,acct:e.account.acct}}:null,draftStatus:{uid:C.current,status:S.current.value,spoilerText:X.current.value,visibility:V,language:O,sensitive:j,poll:$,mediaAttachments:M}};!hn(l,At.current)&&!be()&&(Tt.drafts.set(a,{...l,state:"unsaved",updatedAt:Date.now()}).then(()=>{}).catch(b=>{}),At.current=structuredClone(l))};xn(ut,5e3),ee(()=>(ut(),()=>{Tt.drafts.del(St())}),[]),ee(()=>{const a=b=>{const{items:d}=b.clipboardData||b.dataTransfer,_=[];for(let x=0;x<d.length;x++){const w=d[x];if(w.kind==="file"){const F=w.getAsFile();F&&J.includes(F.type)&&_.push(F)}}if(_.length>0&&M.length>=I){alert(`You can only attach up to ${I} files.`);return}if(_.length>0){b.preventDefault(),b.stopPropagation();const x=I-M.length,w=_.slice(0,x);if(w.length<=0){alert(`You can only attach up to ${I} files.`);return}const F=w.map(P=>({file:P,type:P.type,size:P.size,url:URL.createObjectURL(P),id:null,description:null}));z([...M,...F])}};window.addEventListener("paste",a);const l=b=>{b.dataTransfer.items.length>0&&(b.preventDefault(),b.stopPropagation())};return window.addEventListener("dragover",l),window.addEventListen
|
|||
|
<li role="option" data-value="${fe(U)}">
|
|||
|
<img src="${fe(j)}" width="16" height="16" alt="" loading="lazy" />
|
|||
|
${fe(U)}
|
|||
|
</li>`}),X+=`<li role="option" data-value="" data-more="${B}">More…</li>`,ve.innerHTML=X,y(Promise.resolve({matched:S.length>0,fragment:ve}));return}const q={"@":"accounts","#":"hashtags"}[E];y(new Promise(S=>{v({type:q,q:B,limit:5}).then(V=>{if(B!==A.current)return;const U=V[q]||V;let j="";U.forEach(te=>{var Q;const{name:O,avatarStatic:ie,displayName:ae,username:M,acct:z,emojis:$,history:L}=te,N=En(ae,$);if(z)j+=`
|
|||
|
<li role="option" data-value="${fe(z)}">
|
|||
|
<span class="avatar">
|
|||
|
<img src="${fe(ie)}" width="16" height="16" alt="" loading="lazy" />
|
|||
|
</span>
|
|||
|
<span>
|
|||
|
<b>${N||M}</b>
|
|||
|
<br>@${fe(z)}
|
|||
|
</span>
|
|||
|
</li>
|
|||
|
`;else{const oe=(Q=L==null?void 0:L.reduce)==null?void 0:Q.call(L,(ue,ge)=>ue+ +ge.uses,0);j+=`
|
|||
|
<li role="option" data-value="${fe(O)}">
|
|||
|
<span class="grow">#<b>${fe(O)}</b></span>
|
|||
|
${oe?`<span class="count">${Fn(oe)}</span>`:""}
|
|||
|
</li>
|
|||
|
`}}),q==="accounts"&&(j+=`<li role="option" data-value="" data-more="${B}">More…</li>`),ve.innerHTML=j,S({matched:U.length>0,fragment:ve})})}))},k.current.addEventListener("text-expander-change",c),h=f=>{const{key:E,item:y}=f.detail,{value:B,more:q}=y.dataset;E===":"?(f.detail.value=B?`:${B}:`:"",q&&(f.detail.continue=!0,setTimeout(()=>{g==null||g({name:"custom-emojis",defaultSearchTerm:q})},300))):E==="@"?(f.detail.value=B?`@${B} `:"",q&&(f.detail.continue=!0,setTimeout(()=>{g==null||g({name:"mention",defaultSearchTerm:q})},300))):f.detail.value=`${E}${B}`},k.current.addEventListener("text-expander-value",h),m=f=>{const{input:E}=f.detail;if(p(E.value),e.current){const y=new Event("input",{bubbles:!0});e.current.dispatchEvent(y)}},k.current.addEventListener("text-expander-committed",m)),()=>{k.current&&(k.current.removeEventListener("text-expander-change",c),k.current.removeEventListener("text-expander-value",h),k.current.removeEventListener("text-expander-committed",m))}},[]),ee(()=>{const c=e.current;if(!c)return;new ResizeObserver(()=>{if(k.current){const{height:m}=c.getBoundingClientRect();k.current.style.height=m+"px"}}).observe(c)},[]);const Z=W(0),D=W(),I=gn(c=>{var f;if(!D.current)return;if(Z.current>3){D.current.innerHTML="",D.current=null,(f=I==null?void 0:I.cancel)==null||f.call(I);return}let h,m;Z.current<=3&&(h=Date.now()),D.current.innerHTML=hi(c,{maxCharacters:u})+`
|
|||
|
`,Z.current<=3&&(m=Date.now()),h&&m&&m-h>50&&Z.current++},500),se=ot(()=>{var f,E;const c=(f=D.current)==null?void 0:f.cloneNode(!0);if(!c)return;c.querySelectorAll("mark").forEach(y=>{y.remove()});const h=(E=c.innerText)==null?void 0:E.trim();if(!h)return;const m=gi(h);m!=null&&m.length&&(g==null||g({name:"auto-detect-language",languages:m}))},2e3);return t("text-expander",{ref:k,keys:"@ # :",class:"compose-field-container",children:[t("textarea",{class:"compose-field",autoCapitalize:"sentences",autoComplete:"on",autoCorrect:"on",spellCheck:"true",dir:"auto",rows:"6",cols:"50",...R,ref:e,name:"status",value:r,onKeyDown:c=>{const{key:h,target:m}=c;if(h==="Enter"&&!(c.ctrlKey||c.metaKey))try{const{value:f,selectionStart:E}=m,B=f.slice(0,E).split(`
|
|||
|
`).slice(-1)[0];if(B&&/^\s*(-|\d+\.)\s/.test(B)){const[q,le,S,X,V]=B.match(/^(\s*)(-|\d+\.)(\s+)(.+)?/)||[];if(V){c.preventDefault();const[U]=S.match(/\d+/)||[],j=U?`${+U+1}.`:"-",te=`
|
|||
|
${le}${j}${X}`;m.setRangeText(te,E,E);const O=E+te.length;m.setSelectionRange(O,O)}else{const U=E-B.length;m.setRangeText("",U,E)}Ut(m),m.dispatchEvent(new Event("input"))}}catch{}D.current&&(D.current.scrollTop=m.scrollTop)},onInput:c=>{var f;const{target:h}=c,m=h.value.replace(/\u200b/g,"");p(m),Ut(h),(f=s.onInput)==null||f.call(s,c),I(m),se()},style:{width:"100%",height:"4em"},onScroll:c=>{if(D.current){const{scrollTop:h}=c.target;D.current.scrollTop=h}}}),t("div",{ref:D,class:"compose-highlight","aria-hidden":"true"})]})});function vi({maxCharacters:s=500,hidden:e}){const o=vn(re).composerCharacterCount,r=s-o;return e?t("span",{class:"char-counter",hidden:!0}):t("span",{class:"char-counter",title:`${r}/${s}`,style:{"--percentage":o/s*100},children:[t("meter",{class:`${r<=-10?"explode":r<=0?"danger":r<=20?"warning":""}`,value:o,max:s}),t("span",{class:"counter",children:r})]})}function Xe(s){const e=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];let n=0;for(;s>=1024;)s/=1024,n++;return`${s.toFixed(0).toLocaleString()} ${e[n]}`}function Wt(s,e,n,o){const r=Math.sqrt(e/s),p=Math.floor(n*r),u=Math.floor(o*r);return{newWidth:p,newHeight:u}}function bi({attachment:s,disabled:e,lang:n,onDescriptionChange:o=()=>{},onRemove:r=()=>{}}){const[p,u]=H("default"),v=Gt("@mastodon/edit-media-attributes"),{type:g,id:R,file:C}=s,k=Pe(()=>C?URL.createObjectURL(C):s.url,[C,s.url]),A=!!(C!=null&&C.size),Z=A?Yt():{},{mediaAttachments:{imageSizeLimit:D,imageMatrixLimit:I,videoSizeLimit:se,videoMatrixLimit:J,videoFrameRateLimit:c}={}}=Z||{},[h,m]=H(()=>A?g.startsWith("image")&&D&&C.size>D?{type:"imageSizeLimit",details:{imageSize:C.size,imageSizeLimit:D}}:g.startsWith("video")&&se&&C.size>se?{type:"videoSizeLimit",details:{videoSize:C.size,videoSizeLimit:se}}:null:null),[f,E]=H({});ee(()=>{!A||!I||(f==null?void 0:f.matrix)>I&&m({type:"imageMatrixLimit",details:{imageMatrix:f==null?void 0:f.matrix,imageMatrixLimit:I,width:f==null?void 0:f.width,height:f==null?void 0:f.height}})},[f,I,A]);const[y,B]=H({});ee(()=>{!A||!J||(y==null?void 0:y.matrix)>J&&m({type:"videoMatrixLimit",details:{videoMatrix:y==null?void 0:y.matrix,videoMatrixLimit:J,width:y==null?void 0:y.width,height:y==null?void 0:y.height}})},[y,J,A]);const[q,le]=H(s.description),[S,X]=g.split("/"),V=ot(o,250);ee(()=>{V(q)},[q,V]);const[U,j]=H(!1),te=W(null);ee(()=>{let z;return U&&te.current&&(z=setTimeout(()=>{te.current.focus()},100)),()=>{clearTimeout(z)}},[U]);const O=t(Ce,{children:R&&!v?t("div",{class:"media-desc",children:[t("span",{class:"tag",children:"Uploaded"}),t("p",{title:q,children:s.description||t("i",{children:"No description"})})]}):t("textarea",{ref:te,value:q||"",lang:n,placeholder:{image:"Image description",video:"Video description",audio:"Audio description"}[S],autoCapitalize:"sentences",autoComplete:"on",autoCorrect:"on",spellCheck:"true",dir:"auto",disabled:e||p==="loading",class:p==="loading"?"loading":"",maxlength:"1500",onInput:z=>{const{value:$}=z.target;le($)}})}),ie=W(null);ee(()=>()=>{var z,$;($=(z=ie.current)==null?void 0:z.hideToast)==null||$.call(z)},[]);const ae=W(null),M=z=>{const{type:$,details:L}=z;switch($){case"imageSizeLimit":{const{imageSize:N,imageSizeLimit:Q}=L;return`File size too large. Uploading might encounter issues. Try reduce the file size from ${Xe(N)} to ${Xe(Q)} or lower.`}case"imageMatrixLimit":{const{imageMatrix:N,imageMatrixLimit:Q,width:oe,height:ue}=L,{newWidth:ge,newHeight:be}=Wt(N,Q,oe,ue);return`Dimension too large. Uploading might encounter issues. Try reduce dimension from ${oe.toLocaleString()}×${ue.toLocaleString()}px to ${ge.toLocaleString()}×${be.toLocaleString()}px.`}case"videoSizeLimit":{const{videoSize:N,videoSizeLimit:Q}=L;return`File size too large. Uploading might encounter issues. Try reduce the file size from ${Xe(N)} to ${Xe(Q)} or lower.`}case"videoMatrixLimit":{const{videoMatrix:N,videoMatrixLimit:Q,width:oe,height:ue}=L,{newWidth:ge,newHeight:be}=Wt(N,Q,oe,ue);return`Dimension too large. Uploading might encounter issues. Try reduce dimension from ${oe.toLocaleString()}×${ue.toLocaleString()}px to
|
|||
|
//# sourceMappingURL=compose-W5mt71Ut.js.map
|