phanpy-cz/assets/compose-feY08m5z.js

27 lines
81 KiB
JavaScript
Raw Permalink Normal View History

var Lt=s=>{throw TypeError(s)};var rt=(s,e,n)=>e.has(s)||Lt("Cannot "+n);var _=(s,e,n)=>(rt(s,e,"read from private field"),n?n.call(s):e.get(s)),re=(s,e,n)=>e.has(s)?Lt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,n),he=(s,e,n,a)=>(rt(s,e,"write to private field"),a?a.call(s,n):e.set(s,n),n),Y=(s,e,n)=>(rt(s,e,"access private method"),n);import{F as on,B as rn,_ as ln,a as _e,a8 as cn,w as zt,u as un,i as Ht,b as dn,I as V,y as At,h as Nt,a9 as hn,M as Ve,s as Ee,a4 as pn,a0 as mn,n as gn,O as fn,X as Qe,c as vn,d as St,l as bn,x as yn}from"./fuse-7xj_Hrid.js";import{s as le,a as bt,h as U,A as q,f as xn,al as Ut,d as ze,y as te,m as wn,am as kn,T as Re,c as t,k as Le,b as En,L as et,j as Fn,D as Cn,u as Ln,q as It,x as Wt}from"./useTitle-4zhrJw0D.js";import{e as zn}from"./tinyld-light-PxOyhYWY.js";import"./index-ELVm98zU.js";class An{constructor(e,n,{tabInsertsSuggestions:a,defaultFirstOption:r}={}){this.input=e,this.list=n,this.tabInsertsSuggestions=a??!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=>Sn(p,this),this.compositionEventHandler=p=>Mn(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",Mt),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",Mt)}indicateDefaultOption(){var e;this.defaultFirstOption&&((e=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(lt)[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(lt)[0],a=Array.from(this.list.querySelectorAll('[role="option"]')).filter(lt),r=a.indexOf(n);if(r===a.length-1&&e===1||r===0&&e===-1){this.clearSelection(),this.input.focus();return}let p=e===1?0:a.length-1;if(n&&r>=0){const v=r+e;v>=0&&v<a.length&&(p=v)}const u=a[p];if(u)for(const v of a)v.removeAttribute("data-combobox-option-default"),u===v?(this.input.setAttribute("aria-activedescendant",u.id),u.setAttribute("aria-selected","true"),$n(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 Sn(s,e){if(!(s.shiftKey||s.metaKey||s.altKey)&&!(!e.ctrlBindings&&s.ctrlKey)&&!e.isComposing)switch(s.key){case"Enter":$t(e.input,e.list)&&s.preventDefault();break;case"Tab":e.tabInsertsSuggestions&&$t(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.ctrlBindi
`,n-1)>u||s.lastIndexOf(".",n-1)>u)return}else if(s.lastIndexOf(" ",n-1)>u)return;const v=s[u-1];return v&&!Bn.test(v)?void 0:{text:s.substring(u+e.length,n),position:u+e.length}}class Rn extends HTMLElement{}class Dn extends Event{constructor(){super("update")}}const ct=new WeakMap;var De,je,Fe,ve,Z,Te,Ae,Se,pt,Ie,Ge,Ye,Ze,Pe,Ce;const xt=class xt extends Rn{constructor(n){super();re(this,Z);re(this,De,new MutationObserver(()=>Y(this,Z,Ye).call(this)));re(this,je,new ResizeObserver(()=>Y(this,Z,Ge).call(this)));re(this,Fe);re(this,ve);re(this,Ae,0);re(this,Se,0);re(this,Ie,!1);re(this,Pe,()=>Y(this,Z,Ze).call(this));re(this,Ce,n=>{Y(this,Z,Te).call(this,a=>{(n.target===document||n.target===window||n.target instanceof Node&&n.target.contains(a))&&Y(this,Z,Ge).call(this)})});he(this,Fe,new WeakRef(n)),he(this,ve,document.createElement("div")),_(this,ve).style.position="absolute",_(this,ve).style.pointerEvents="none",n.after(_(this,ve)),_(this,ve).appendChild(this)}static for(n){const a=ct.get(n)??new xt(n);return ct.set(n,a),a}forceUpdate(){Y(this,Z,Ye).call(this),Y(this,Z,Ze).call(this)}connectedCallback(){const n=_(this,Fe).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,Z,Ye).call(this),Y(this,Z,Ze).call(this),_(this,De).observe(n,{attributeFilter:["style","dir"]}),_(this,je).observe(n),document.addEventListener("scroll",_(this,Ce),{capture:!0}),window.addEventListener("resize",_(this,Ce),{capture:!0}),n.addEventListener("input",_(this,Pe),{capture:!0})}disconnectedCallback(){_(this,ve).remove(),_(this,De).disconnect(),_(this,je).disconnect(),document.removeEventListener("scroll",_(this,Ce),{capture:!0}),window.removeEventListener("resize",_(this,Ce),{capture:!0});const n=_(this,Fe).deref();n&&(n.removeEventListener("input",_(this,Pe),{capture:!0}),ct.delete(n))}};De=new WeakMap,je=new WeakMap,Fe=new WeakMap,ve=new WeakMap,Z=new WeakSet,Te=function(n){const a=_(this,Fe).deref();return a?n(a):this.remove()},Ae=new WeakMap,Se=new WeakMap,pt=function(){Y(this,Z,Te).call(this,n=>{const a=window.getComputedStyle(n);this.style.height=a.height,this.style.width=a.width,n.clientHeight!==this.clientHeight&&(this.style.height=`calc(${a.height} + ${n.clientHeight-this.clientHeight}px)`),n.clientWidth!==this.clientWidth&&(this.style.width=`calc(${a.width} + ${n.clientWidth-this.clientWidth}px)`);const r=n.getBoundingClientRect(),p=this.getBoundingClientRect();he(this,Ae,_(this,Ae)+r.left-p.left),he(this,Se,_(this,Se)+r.top-p.top),this.style.transform=`translate(${_(this,Ae)}px, ${_(this,Se)}px)`,this.scrollTop=n.scrollTop,this.scrollLeft=n.scrollLeft,this.dispatchEvent(new Dn)})},Ie=new WeakMap,Ge=function(){_(this,Ie)||(he(this,Ie,!0),requestAnimationFrame(()=>{Y(this,Z,pt).call(this),he(this,Ie,!1)}))},Ye=function(){Y(this,Z,Te).call(this,n=>{const a=window.getComputedStyle(n);for(const r of jn)this.style[r]=a[r];Y(this,Z,Ge).call(this)})},Ze=function(){Y(this,Z,Te).call(this,n=>{this.textContent=n.value,Y(this,Z,pt).call(this)})},Pe=new WeakMap,Ce=new WeakMap;let Je=xt;const jn=["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",Je)}catch(s){if(!(s instanceof DOMException&&s.name==="NotSupportedError"))throw s}var ge,Me,$e,ce,gt,qt,ft,Be;const Xe=class Xe{constructor(e,n=0,a=n){re(this,ce);re(this,ge);re(this,Me);re(this,$e);he(this
`)&&(z.current.selectionStart=0,z.current.selectionEnd=0),(y=z.current)==null||y.focus())},300)};te(()=>{var o,c;if(e){const{spoilerText:y,visibility:m,language:B,sensitive:E}=e;y&&Q.current&&(Q.current.value=y);const b=[...new Set([e.account.acct,...e.mentions.map(A=>A.acct)])].filter(A=>A!==L.acct);b.length>0&&(z.current.value=`${b.map(A=>`@${A}`).join(" ")} `,ee()),oe(),W(m==="public"&&N["posting:default:visibility"]?N["posting:default:visibility"].toLowerCase():m),ie(B||((o=N["posting:default:language"])==null?void 0:o.toLowerCase())||ke),ne(E&&!!y)}else if(n){const{visibility:y,language:m,sensitive:B,poll:E,mediaAttachments:j}=n,b=!!(E!=null&&E.options)&&{...E,options:E.options.map(A=>(A==null?void 0:A.title)||A),expiresIn:(E==null?void 0:E.expiresIn)||Dt(E.expiresAt)};R("loading"),(async()=>{var A;try{const H=await u.v1.statuses.$select(n.id).source.fetch(),{text:ue,spoilerText:pe}=H;z.current.value=ue,z.current.dataset.source=ue,ee(),oe(),Q.current.value=pe,W(y),ie(m||((A=N["posting:default:language"])==null?void 0:A.toLowerCase())||ke),ne(B),b&&C(b),S(j),R("default")}catch(H){alert((H==null?void 0:H.reason)||H),R("error")}})()}else oe(),N["posting:default:visibility"]&&W(N["posting:default:visibility"].toLowerCase()),N["posting:default:language"]&&ie(N["posting:default:language"].toLowerCase()),N["posting:default:sensitive"]&&ne(!!N["posting:default:sensitive"]);if(a){const{status:y,spoilerText:m,visibility:B,language:E,sensitive:j,poll:b,mediaAttachments:A}=a,H=!!(b!=null&&b.options)&&{...b,options:b.options.map(ue=>(ue==null?void 0:ue.title)||ue),expiresIn:(b==null?void 0:b.expiresIn)||Dt(b.expiresAt)};z.current.value=y,ee(),oe(),m&&(Q.current.value=m),B&&W(B),ie(E||((c=N["posting:default:language"])==null?void 0:c.toLowerCase())||ke),j!==null&&ne(j),H&&C(H),A&&S(A)}},[a,n,e]);const me=q(),be="You have unsaved changes. Discard this post?",we=()=>{const{value:o,dataset:c}=z.current;if(g==="loading")return!1;const y=(o||"").trim().replace(new RegExp("^\\p{White_Space}+|\\p{White_Space}+$","gu"),""),m=M.length>0;if(!y&&!m||M.length>0&&M.every(A=>A.id))return!0;const E=(e==null?void 0:e.account.id)===L.id,j=e&&o.trim()===`@${e.account.acct}`;return!!(!E&&j||o===(c==null?void 0:c.source))},Oe=()=>we()?!0:confirm(be);te(()=>{const o=c=>{we()||(c.preventDefault(),c.returnValue=be)};return window.addEventListener("beforeunload",o,{capture:!0}),()=>window.removeEventListener("beforeunload",o,{capture:!0})},[]);const Zt=()=>{const{value:o}=z.current,{value:c}=Q.current;return Bt(ti(o))+Bt(c)},tt=()=>{const o=Zt();le.composerCharacterCount=o};te(tt,[]);const wt=window.CloseWatcher,nt=q(!1);_e("esc",()=>{nt.current=!0},{enabled:!wt,enableOnFormTags:!0}),_e("esc",()=>{!r&&nt.current&&Oe()&&s(),nt.current=!1},{enabled:!wt,enableOnFormTags:!0,keyup:!0,ignoreEventWhen:o=>{const c=document.querySelectorAll("#modal-container > *"),y=!!c,m=c.length===1&&c[0].querySelector("#compose-container");return y&&!m}}),cn(()=>{!r&&Oe()&&s()},[r,Oe,s]);const kt=q({}),Et=()=>`${wn()}#${F.current}`,it=()=>{if(n||le.composerState.minimized)return;const o=Et(),c={key:o,replyTo:e?{id:e.id,account:{id:e.account.id,username:e.account.username,acct:e.account.acct}}:null,draftStatus:{uid:F.current,status:z.current.value,spoilerText:Q.current.value,visibility:G,language:O,sensitive:P,poll:$,mediaAttachments:M}};!kn(c,kt.current)&&!we()&&(zt.drafts.set(o,{...c,state:"unsaved",updatedAt:Date.now()}).then(()=>{}).catch(y=>{}),kt.current=structuredClone(c))};un(it,5e3),te(()=>(it(),()=>{zt.drafts.del(Et())}),[]),te(()=>{const o=y=>{const{items:m}=y.clipboardData||y.dataTransfer,B=[];for(let E=0;E<m.length;E++){const j=m[E];if(j.kind==="file"){const b=j.getAsFile();b&&X.includes(b.type)&&B.push(b)}}if(B.length>0&&M.length>=I){alert(`You can only attach up to ${I} files.`);return}if(B.length>0){y.preventDefault(),y.stopPropagation();const E=I-M.length,j=B.slice(0,E);if(j.length<=0){alert(`You can only attach up to ${I} files.`);return}const b=j.map(A=>({file:A,type:A.type,size:A.size,url:URL.createObjectURL(A),id:null,description:null}));S([...M,...b])}};
<li role="option" data-value="${ye(W)}">
<img src="${ye(P)}" width="16" height="16" alt="" loading="lazy" />
${ye(W)}
</li>`}),Q+=`<li role="option" data-value="" data-more="${T}">More</li>`,xe.innerHTML=Q,x(Promise.resolve({matched:z.length>0,fragment:xe}));return}const K={"@":"accounts","#":"hashtags"}[k];x(new Promise(z=>{v({type:K,q:T,limit:5}).then(G=>{if(T!==L.current)return;const W=G[K]||G;let P="";W.forEach(ne=>{var ee;const{name:O,avatarStatic:ie,displayName:ae,username:M,acct:S,emojis:$,history:C}=ne,N=mn(ae,$);if(S)P+=`
<li role="option" data-value="${ye(S)}">
<span class="avatar">
<img src="${ye(ie)}" width="16" height="16" alt="" loading="lazy" />
</span>
<span>
<b>${N||M}</b>
<br><span class="bidi-isolate">@${ye(S)}</span>
</span>
</li>
`;else{const oe=(ee=C==null?void 0:C.reduce)==null?void 0:ee.call(C,(me,be)=>me+ +be.uses,0);P+=`
<li role="option" data-value="${ye(O)}">
<span class="grow">#<b>${ye(O)}</b></span>
${oe?`<span class="count">${gn(oe)}</span>`:""}
</li>
`}}),K==="accounts"&&(P+=`<li role="option" data-value="" data-more="${T}">More</li>`),xe.innerHTML=P,z({matched:W.length>0,fragment:xe})})}))},w.current.addEventListener("text-expander-change",l),d=f=>{const{key:k,item:x}=f.detail,{value:T,more:K}=x.dataset;k===":"?(f.detail.value=T?`:${T}:`:"",K&&(f.detail.continue=!0,setTimeout(()=>{g==null||g({name:"custom-emojis",defaultSearchTerm:K})},300))):k==="@"?(f.detail.value=T?`@${T} `:"",K&&(f.detail.continue=!0,setTimeout(()=>{g==null||g({name:"mention",defaultSearchTerm:K})},300))):f.detail.value=`${k}${T}`},w.current.addEventListener("text-expander-value",d),h=f=>{const{input:k}=f.detail;if(p(k.value),e.current){const x=new Event("input",{bubbles:!0});e.current.dispatchEvent(x)}},w.current.addEventListener("text-expander-committed",h)),()=>{w.current&&(w.current.removeEventListener("text-expander-change",l),w.current.removeEventListener("text-expander-value",d),w.current.removeEventListener("text-expander-committed",h))}},[]),te(()=>{const l=e.current;if(!l)return;new ResizeObserver(()=>{if(w.current){const{height:h}=l.getBoundingClientRect();w.current.style.height=h+"px"}}).observe(l)},[]);const J=q(0),D=q(),I=fn(l=>{var f;if(!D.current)return;if(J.current>3){D.current.innerHTML="",D.current=null,(f=I==null?void 0:I.cancel)==null||f.call(I);return}let d,h;J.current<=3&&(d=Date.now()),D.current.innerHTML=li(l,{maxCharacters:u})+`
`,J.current<=3&&(h=Date.now()),d&&h&&h-d>50&&J.current++},500),se=Qe(()=>{var f,k;const l=(f=D.current)==null?void 0:f.cloneNode(!0);if(!l)return;l.querySelectorAll("mark").forEach(x=>{x.remove()});const d=(k=l.innerText)==null?void 0:k.trim();if(!d)return;const h=di(d);h!=null&&h.length&&(g==null||g({name:"auto-detect-language",languages:h}))},2e3);return t("text-expander",{ref:w,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:l=>{const{key:d,target:h}=l;if(d==="Enter"&&!(l.ctrlKey||l.metaKey))try{const{value:f,selectionStart:k}=h,T=f.slice(0,k).split(`
`).slice(-1)[0];if(T&&/^\s*(-|\d+\.)\s/.test(T)){const[K,de,z,Q,G]=T.match(/^(\s*)(-|\d+\.)(\s+)(.+)?/)||[];if(G){l.preventDefault();const[W]=z.match(/\d+/)||[],P=W?`${+W+1}.`:"-",ne=`
${de}${P}${Q}`;h.setRangeText(ne,k,k);const O=k+ne.length;h.setSelectionRange(O,O)}else{const W=k-T.length;h.setRangeText("",W,k)}jt(h),h.dispatchEvent(new Event("input"))}}catch{}D.current&&(D.current.scrollTop=h.scrollTop)},onInput:l=>{var f;const{target:d}=l,h=d.value.replace(/\u200b/g,"");p(h),jt(d),(f=s.onInput)==null||f.call(s,l),I(h),se()},style:{width:"100%",height:"4em"},onScroll:l=>{if(D.current){const{scrollTop:d}=l.target;D.current.scrollTop=d}}}),t("div",{ref:D,class:"compose-highlight","aria-hidden":"true"})]})});function pi({maxCharacters:s=500,hidden:e}){const a=Ln(le).composerCharacterCount,r=s-a;return e?t("span",{class:"char-counter",hidden:!0}):t("span",{class:"char-counter",title:`${r}/${s}`,style:{"--percentage":a/s*100},children:[t("meter",{class:`${r<=-10?"explode":r<=0?"danger":r<=20?"warning":""}`,value:a,max:s}),t("span",{class:"counter",children:r})]})}function Ke(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 Pt(s,e,n,a){const r=Math.sqrt(e/s),p=Math.floor(n*r),u=Math.floor(a*r);return{newWidth:p,newHeight:u}}function mi({attachment:s,disabled:e,lang:n,onDescriptionChange:a=()=>{},onRemove:r=()=>{}}){const[p,u]=U("default"),v=Nt("@mastodon/edit-media-attributes"),{type:g,id:R,file:F}=s,w=Re(()=>F?URL.createObjectURL(F):s.url,[F,s.url]),L=!!(F!=null&&F.size),J=L?Ut():{},{mediaAttachments:{imageSizeLimit:D,imageMatrixLimit:I,videoSizeLimit:se,videoMatrixLimit:X,videoFrameRateLimit:l}={}}=J||{},[d,h]=U(()=>L?g.startsWith("image")&&D&&F.size>D?{type:"imageSizeLimit",details:{imageSize:F.size,imageSizeLimit:D}}:g.startsWith("video")&&se&&F.size>se?{type:"videoSizeLimit",details:{videoSize:F.size,videoSizeLimit:se}}:null:null),[f,k]=U({});te(()=>{!L||!I||(f==null?void 0:f.matrix)>I&&h({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,L]);const[x,T]=U({});te(()=>{!L||!X||(x==null?void 0:x.matrix)>X&&h({type:"videoMatrixLimit",details:{videoMatrix:x==null?void 0:x.matrix,videoMatrixLimit:X,width:x==null?void 0:x.width,height:x==null?void 0:x.height}})},[x,X,L]);const[K,de]=U(s.description),[z,Q]=g.split("/"),G=Qe(a,250);te(()=>{G(K)},[K,G]);const[W,P]=U(!1),ne=q(null);te(()=>{let S;return W&&ne.current&&(S=setTimeout(()=>{ne.current.focus()},100)),()=>{clearTimeout(S)}},[W]);const O=t(Le,{children:R&&!v?t("div",{class:"media-desc",children:[t("span",{class:"tag",children:"Uploaded"}),t("p",{title:K,children:s.description||t("i",{children:"No description"})})]}):t("textarea",{ref:ne,value:K||"",lang:n,placeholder:{image:"Image description",video:"Video description",audio:"Audio description"}[z],autoCapitalize:"sentences",autoComplete:"on",autoCorrect:"on",spellCheck:"true",dir:"auto",disabled:e||p==="loading",class:p==="loading"?"loading":"",maxlength:"1500",onInput:S=>{const{value:$}=S.target;de($)}})}),ie=q(null);te(()=>()=>{var S,$;($=(S=ie.current)==null?void 0:S.hideToast)==null||$.call(S)},[]);const ae=q(null),M=S=>{const{type:$,details:C}=S;switch($){case"imageSizeLimit":{const{imageSize:N,imageSizeLimit:ee}=C;return`File size too large. Uploading might encounter issues. Try reduce the file size from ${Ke(N)} to ${Ke(ee)} or lower.`}case"imageMatrixLimit":{const{imageMatrix:N,imageMatrixLimit:ee,width:oe,height:me}=C,{newWidth:be,newHeight:we}=Pt(N,ee,oe,me);return`Dimension too large. Uploading might encounter issues. Try reduce dimension from ${oe.toLocaleString()}×${me.toLocaleString()}px to ${be.toLocaleString()}×${we.toLocaleString()}px.`}case"videoSizeLimit":{const{videoSize:N,videoSizeLimit:ee}=C;return`File size too large. Uploading might encounter issues. Try reduce the file size from ${Ke(N)} to ${Ke(ee)} or lower.`}case"videoMatrixLimit":{const{videoMatrix:N,videoMatrixLimit:ee,width:oe,height:me}=C,{newWidth:be,newHeight:we}=Pt(N,ee,oe,me);return`Dimension too large. Uploading might encounter issues. Try reduce dimension from ${oe.toLocaleString()}×${me.toLocaleString(
//# sourceMappingURL=compose-feY08m5z.js.map