phanpy-cz/assets/compose-IeRiPb7Z.js

27 lines
80 KiB
JavaScript
Raw Permalink Normal View History

2024-08-09 05:39:48 +00:00
var Lt=s=>{throw TypeError(s)};var rt=(s,e,n)=>e.has(s)||Lt("Cannot "+n);var B=(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),de=(s,e,n,a)=>(rt(s,e,"write to private field"),a?a.call(s,n):e.set(s,n),n),G=(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 K,y as St,h as Nt,a9 as hn,M as Ve,s as ke,a4 as pn,a0 as mn,n as gn,O as fn,X as Qe,c as vn,d as At,l as bn,x as yn}from"./fuse-4Bvpr1kU.js";import{s as le,a as bt,h as H,A as W,f as xn,al as Ut,d as Le,y as ee,m as wn,am as kn,T as Re,c as t,k as Ce,b as En,L as et,j as Fn,D as Cn,u as Ln,q as It,x as Wt}from"./useTitle-Mh8hVeGN.js";import{e as zn}from"./tinyld-light-PxOyhYWY.js";import"./index-CeOZgm-k.js";class Sn{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=m=>An(m,this),this.compositionEventHandler=m=>Mn(m,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 m=e===1?0:a.length-1;if(n&&r>=0){const v=r+e;v>=0&&v<a.length&&(m=v)}const u=a[m];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 An(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,Ee,fe,Y,Te,ze,Se,pt,Ae,Ge,Ye,Ze,Pe,Fe;const xt=class xt extends Rn{constructor(n){super();re(this,Y);re(this,De,new MutationObserver(()=>G(this,Y,Ye).call(this)));re(this,je,new ResizeObserver(()=>G(this,Y,Ge).call(this)));re(this,Ee);re(this,fe);re(this,ze,0);re(this,Se,0);re(this,Ae,!1);re(this,Pe,()=>G(this,Y,Ze).call(this));re(this,Fe,n=>{G(this,Y,Te).call(this,a=>{(n.target===document||n.target===window||n.target instanceof Node&&n.target.contains(a))&&G(this,Y,Ge).call(this)})});de(this,Ee,new WeakRef(n)),de(this,fe,document.createElement("div")),B(this,fe).style.position="absolute",B(this,fe).style.pointerEvents="none",n.after(B(this,fe)),B(this,fe).appendChild(this)}static for(n){const a=ct.get(n)??new xt(n);return ct.set(n,a),a}forceUpdate(){G(this,Y,Ye).call(this),G(this,Y,Ze).call(this)}connectedCallback(){const n=B(this,Ee).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"),G(this,Y,Ye).call(this),G(this,Y,Ze).call(this),B(this,De).observe(n,{attributeFilter:["style","dir"]}),B(this,je).observe(n),document.addEventListener("scroll",B(this,Fe),{capture:!0}),window.addEventListener("resize",B(this,Fe),{capture:!0}),n.addEventListener("input",B(this,Pe),{capture:!0})}disconnectedCallback(){B(this,fe).remove(),B(this,De).disconnect(),B(this,je).disconnect(),document.removeEventListener("scroll",B(this,Fe),{capture:!0}),window.removeEventListener("resize",B(this,Fe),{capture:!0});const n=B(this,Ee).deref();n&&(n.removeEventListener("input",B(this,Pe),{capture:!0}),ct.delete(n))}};De=new WeakMap,je=new WeakMap,Ee=new WeakMap,fe=new WeakMap,Y=new WeakSet,Te=function(n){const a=B(this,Ee).deref();return a?n(a):this.remove()},ze=new WeakMap,Se=new WeakMap,pt=function(){G(this,Y,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(),m=this.getBoundingClientRect();de(this,ze,B(this,ze)+r.left-m.left),de(this,Se,B(this,Se)+r.top-m.top),this.style.transform=`translate(${B(this,ze)}px, ${B(this,Se)}px)`,this.scrollTop=n.scrollTop,this.scrollLeft=n.scrollLeft,this.dispatchEvent(new Dn)})},Ae=new WeakMap,Ge=function(){B(this,Ae)||(de(this,Ae,!0),requestAnimationFrame(()=>{G(this,Y,pt).call(this),de(this,Ae,!1)}))},Ye=function(){G(this,Y,Te).call(this,n=>{const a=window.getComputedStyle(n);for(const r of jn)this.style[r]=a[r];G(this,Y,Ge).call(this)})},Ze=function(){G(this,Y,Te).call(this,n=>{this.textContent=n.value,G(this,Y,pt).call(this)})},Pe=new WeakMap,Fe=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 pe,Ie,Me,ce,gt,qt,ft,Be;const Xe=class Xe{constructor(e,n=0,a=n){re(this,ce);re(this,pe);re(this,Ie);re(this,Me);de(this
`)&&(S.current.selectionStart=0,S.current.selectionEnd=0),(b=S.current)==null||b.focus())},300)};ee(()=>{if(e){const{spoilerText:o,visibility:l,language:b,sensitive:d}=e;o&&X.current&&(X.current.value=o);const x=[...new Set([e.account.acct,...e.mentions.map(w=>w.acct)])].filter(w=>w!==z.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||we),te(d&&!!o)}else if(n){const{visibility:o,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)||Dt(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(o),ie(l||presf.postingDefaultLanguage||we),te(b),x&&L(x),A(_),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(a){const{status:o,spoilerText:l,visibility:b,language:d,sensitive:_,poll:x,mediaAttachments:w}=a,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)||Dt(x.expiresAt)};S.current.value=o,Q(),oe(),l&&(X.current.value=l),b&&U(b),ie(d||N.postingDefaultLanguage||we),_!==null&&te(_),F&&L(F),w&&A(w)}},[a,n,e]);const he=W(),ve="You have unsaved changes. Discard this post?",xe=()=>{const{value:o,dataset:l}=S.current;if(g==="loading")return!1;const b=(o||"").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)===z.id,w=e&&o.trim()===`@${e.account.acct}`;return!!(!x&&w||o===(l==null?void 0:l.source))},Oe=()=>xe()?!0:confirm(ve);ee(()=>{const o=l=>{xe()||(l.preventDefault(),l.returnValue=ve)};return window.addEventListener("beforeunload",o,{capture:!0}),()=>window.removeEventListener("beforeunload",o,{capture:!0})},[]);const Zt=()=>{const{value:o}=S.current,{value:l}=X.current;return Bt(ti(o))+Bt(l)},tt=()=>{const o=Zt();le.composerCharacterCount=o};ee(tt,[]);const wt=window.CloseWatcher,nt=W(!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 l=document.querySelectorAll("#modal-container > *"),b=!!l,d=l.length===1&&l[0].querySelector("#compose-container");return b&&!d}}),cn(()=>{!r&&Oe()&&s()},[r,Oe,s]);const kt=W({}),Et=()=>`${wn()}#${C.current}`,it=()=>{if(n||le.composerState.minimized)return;const o=Et(),l={key:o,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}};!kn(l,kt.current)&&!xe()&&(zt.drafts.set(o,{...l,state:"unsaved",updatedAt:Date.now()}).then(()=>{}).catch(b=>{}),kt.current=structuredClone(l))};un(it,5e3),ee(()=>(it(),()=>{zt.drafts.del(Et())}),[]),ee(()=>{const o=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}));A([...M,...F])}};window.addEventListener("paste",o);const l=b=>{b.dataTransfer.items.length>0&&(b.preventDefault(),b.stopPropagation())};return window.addEventListener("dragover",l),window.addEventListen
<li role="option" data-value="${be(U)}">
<img src="${be(j)}" width="16" height="16" alt="" loading="lazy" />
${be(U)}
</li>`}),X+=`<li role="option" data-value="" data-more="${T}">More</li>`,ye.innerHTML=X,y(Promise.resolve({matched:S.length>0,fragment:ye}));return}const q={"@":"accounts","#":"hashtags"}[E];y(new Promise(S=>{v({type:q,q:T,limit:5}).then(V=>{if(T!==z.current)return;const U=V[q]||V;let j="";U.forEach(te=>{var Q;const{name:O,avatarStatic:ie,displayName:ae,username:M,acct:A,emojis:$,history:L}=te,N=mn(ae,$);if(A)j+=`
<li role="option" data-value="${be(A)}">
<span class="avatar">
<img src="${be(ie)}" width="16" height="16" alt="" loading="lazy" />
</span>
<span>
<b>${N||M}</b>
<br><span class="bidi-isolate">@${be(A)}</span>
</span>
</li>
`;else{const oe=(Q=L==null?void 0:L.reduce)==null?void 0:Q.call(L,(he,ve)=>he+ +ve.uses,0);j+=`
<li role="option" data-value="${be(O)}">
<span class="grow">#<b>${be(O)}</b></span>
${oe?`<span class="count">${gn(oe)}</span>`:""}
</li>
`}}),q==="accounts"&&(j+=`<li role="option" data-value="" data-more="${T}">More</li>`),ye.innerHTML=j,S({matched:U.length>0,fragment:ye})})}))},k.current.addEventListener("text-expander-change",c),h=f=>{const{key:E,item:y}=f.detail,{value:T,more:q}=y.dataset;E===":"?(f.detail.value=T?`:${T}:`:"",q&&(f.detail.continue=!0,setTimeout(()=>{g==null||g({name:"custom-emojis",defaultSearchTerm:q})},300))):E==="@"?(f.detail.value=T?`@${T} `:"",q&&(f.detail.continue=!0,setTimeout(()=>{g==null||g({name:"mention",defaultSearchTerm:q})},300))):f.detail.value=`${E}${T}`},k.current.addEventListener("text-expander-value",h),p=f=>{const{input:E}=f.detail;if(m(E.value),e.current){const y=new Event("input",{bubbles:!0});e.current.dispatchEvent(y)}},k.current.addEventListener("text-expander-committed",p)),()=>{k.current&&(k.current.removeEventListener("text-expander-change",c),k.current.removeEventListener("text-expander-value",h),k.current.removeEventListener("text-expander-committed",p))}},[]),ee(()=>{const c=e.current;if(!c)return;new ResizeObserver(()=>{if(k.current){const{height:p}=c.getBoundingClientRect();k.current.style.height=p+"px"}}).observe(c)},[]);const Z=W(0),D=W(),I=fn(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,p;Z.current<=3&&(h=Date.now()),D.current.innerHTML=li(c,{maxCharacters:u})+`
`,Z.current<=3&&(p=Date.now()),h&&p&&p-h>50&&Z.current++},500),se=Qe(()=>{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 p=di(h);p!=null&&p.length&&(g==null||g({name:"auto-detect-language",languages:p}))},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:p}=c;if(h==="Enter"&&!(c.ctrlKey||c.metaKey))try{const{value:f,selectionStart:E}=p,T=f.slice(0,E).split(`
`).slice(-1)[0];if(T&&/^\s*(-|\d+\.)\s/.test(T)){const[q,ue,S,X,V]=T.match(/^(\s*)(-|\d+\.)(\s+)(.+)?/)||[];if(V){c.preventDefault();const[U]=S.match(/\d+/)||[],j=U?`${+U+1}.`:"-",te=`
${ue}${j}${X}`;p.setRangeText(te,E,E);const O=E+te.length;p.setSelectionRange(O,O)}else{const U=E-T.length;p.setRangeText("",U,E)}jt(p),p.dispatchEvent(new Event("input"))}}catch{}D.current&&(D.current.scrollTop=p.scrollTop)},onInput:c=>{var f;const{target:h}=c,p=h.value.replace(/\u200b/g,"");m(p),jt(h),(f=s.onInput)==null||f.call(s,c),I(p),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 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),m=Math.floor(n*r),u=Math.floor(a*r);return{newWidth:m,newHeight:u}}function mi({attachment:s,disabled:e,lang:n,onDescriptionChange:a=()=>{},onRemove:r=()=>{}}){const[m,u]=H("default"),v=Nt("@mastodon/edit-media-attributes"),{type:g,id:R,file:C}=s,k=Re(()=>C?URL.createObjectURL(C):s.url,[C,s.url]),z=!!(C!=null&&C.size),Z=z?Ut():{},{mediaAttachments:{imageSizeLimit:D,imageMatrixLimit:I,videoSizeLimit:se,videoMatrixLimit:J,videoFrameRateLimit:c}={}}=Z||{},[h,p]=H(()=>z?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(()=>{!z||!I||(f==null?void 0:f.matrix)>I&&p({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,z]);const[y,T]=H({});ee(()=>{!z||!J||(y==null?void 0:y.matrix)>J&&p({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,z]);const[q,ue]=H(s.description),[S,X]=g.split("/"),V=Qe(a,250);ee(()=>{V(q)},[q,V]);const[U,j]=H(!1),te=W(null);ee(()=>{let A;return U&&te.current&&(A=setTimeout(()=>{te.current.focus()},100)),()=>{clearTimeout(A)}},[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||m==="loading",class:m==="loading"?"loading":"",maxlength:"1500",onInput:A=>{const{value:$}=A.target;ue($)}})}),ie=W(null);ee(()=>()=>{var A,$;($=(A=ie.current)==null?void 0:A.hideToast)==null||$.call(A)},[]);const ae=W(null),M=A=>{const{type:$,details:L}=A;switch($){case"imageSizeLimit":{const{imageSize:N,imageSizeLimit:Q}=L;return`File size too large. Uploading might encounter issues. Try reduce the file size from ${Ke(N)} to ${Ke(Q)} or lower.`}case"imageMatrixLimit":{const{imageMatrix:N,imageMatrixLimit:Q,width:oe,height:he}=L,{newWidth:ve,newHeight:xe}=Pt(N,Q,oe,he);return`Dimension too large. Uploading might encounter issues. Try reduce dimension from ${oe.toLocaleString()}×${he.toLocaleString()}px to ${ve.toLocaleString()}×${xe.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 ${Ke(N)} to ${Ke(Q)} or lower.`}case"videoMatrixLimit":{const{videoMatrix:N,videoMatrixLimit:Q,width:oe,height:he}=L,{newWidth:ve,newHeight:xe}=Pt(N,Q,oe,he);return`Dimension too large. Uploading might encounter issues. Try reduce dimension from ${oe.toLocaleString()}×${he.toLocaleString()}px to
//# sourceMappingURL=compose-IeRiPb7Z.js.map