phanpy-cz/assets/compose-2Y_rtJfC.js

27 lines
80 KiB
JavaScript
Raw Permalink Normal View History

2024-07-01 17:34:06 +00:00
var Ct=s=>{throw TypeError(s)};var rt=(s,e,n)=>e.has(s)||Ct("Cannot "+n);var T=(s,e,n)=>(rt(s,e,"read from private field"),n?n.call(s):e.get(s)),re=(s,e,n)=>e.has(s)?Ct("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,n),de=(s,e,n,o)=>(rt(s,e,"write to private field"),o?o.call(s,n):e.set(s,n),n),G=(s,e,n)=>(rt(s,e,"access private method"),n);import{B as an,Z as on,a as _e,a7 as rn,w as zt,u as ln,i as Ot,b as cn,I as K,y as Lt,h as Ht,a8 as un,M as Ve,s as ke,a3 as dn,$ as hn,n as pn,K as mn,W as Qe,c as gn,d as St,l as fn,x as vn}from"./fuse-GSnTzOyH.js";import{s as le,a as vt,p as H,F as U,f as bn,al as Nt,d as ze,_ as ee,m as yn,am as xn,q as Re,c as t,k as Ce,b as wn,L as et,i as kn,D as En,u as Fn,j as At,x as Wt}from"./useTitle-KMkGka9H.js";import{e as Cn}from"./tinyld-light-PxOyhYWY.js";import"./index-dbOm7oTI.js";class zn{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=>Ln(p,this),this.compositionEventHandler=p=>An(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",It),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",It)}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],o=Array.from(this.list.querySelectorAll('[role="option"]')).filter(lt),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"),In(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 Ln(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.ctrlBindings&&s.ct
`,n-1)>u||s.lastIndexOf(".",n-1)>u)return}else if(s.lastIndexOf(" ",n-1)>u)return;const v=s[u-1];return v&&!Mn.test(v)?void 0:{text:s.substring(u+e.length,n),position:u+e.length}}class Tn extends HTMLElement{}class _n extends Event{constructor(){super("update")}}const ct=new WeakMap;var De,je,Ee,fe,Y,Be,Le,Se,ht,Ae,Ge,Ye,Ze,Pe,Fe;const yt=class yt extends Tn{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,Le,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,Be).call(this,o=>{(n.target===document||n.target===window||n.target instanceof Node&&n.target.contains(o))&&G(this,Y,Ge).call(this)})});de(this,Ee,new WeakRef(n)),de(this,fe,document.createElement("div")),T(this,fe).style.position="absolute",T(this,fe).style.pointerEvents="none",n.after(T(this,fe)),T(this,fe).appendChild(this)}static for(n){const o=ct.get(n)??new yt(n);return ct.set(n,o),o}forceUpdate(){G(this,Y,Ye).call(this),G(this,Y,Ze).call(this)}connectedCallback(){const n=T(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),T(this,De).observe(n,{attributeFilter:["style","dir"]}),T(this,je).observe(n),document.addEventListener("scroll",T(this,Fe),{capture:!0}),window.addEventListener("resize",T(this,Fe),{capture:!0}),n.addEventListener("input",T(this,Pe),{capture:!0})}disconnectedCallback(){T(this,fe).remove(),T(this,De).disconnect(),T(this,je).disconnect(),document.removeEventListener("scroll",T(this,Fe),{capture:!0}),window.removeEventListener("resize",T(this,Fe),{capture:!0});const n=T(this,Ee).deref();n&&(n.removeEventListener("input",T(this,Pe),{capture:!0}),ct.delete(n))}};De=new WeakMap,je=new WeakMap,Ee=new WeakMap,fe=new WeakMap,Y=new WeakSet,Be=function(n){const o=T(this,Ee).deref();return o?n(o):this.remove()},Le=new WeakMap,Se=new WeakMap,ht=function(){G(this,Y,Be).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();de(this,Le,T(this,Le)+r.left-p.left),de(this,Se,T(this,Se)+r.top-p.top),this.style.transform=`translate(${T(this,Le)}px, ${T(this,Se)}px)`,this.scrollTop=n.scrollTop,this.scrollLeft=n.scrollLeft,this.dispatchEvent(new _n)})},Ae=new WeakMap,Ge=function(){T(this,Ae)||(de(this,Ae,!0),requestAnimationFrame(()=>{G(this,Y,ht).call(this),de(this,Ae,!1)}))},Ye=function(){G(this,Y,Be).call(this,n=>{const o=window.getComputedStyle(n);for(const r of Rn)this.style[r]=o[r];G(this,Y,Ge).call(this)})},Ze=function(){G(this,Y,Be).call(this,n=>{this.textContent=n.value,G(this,Y,ht).call(this)})},Pe=new WeakMap,Fe=new WeakMap;let Je=yt;const Rn=["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,$e,ce,mt,Ut,gt,Te;const Xe=class Xe{constructor(e,n=0,o=n){re(this,ce);re(this,pe);re(this,Ie);re(this,$e);de(this
`)&&(A.current.selectionStart=0,A.current.selectionEnd=0),(b=A.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!==S.acct);x.length>0&&(A.current.value=`${x.map(w=>`@${w}`).join(" ")} `,Q()),oe(),W(l==="public"&&N["posting:default:visibility"]?N["posting:default:visibility"]:l),ie(b||N.postingDefaultLanguage||we),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)||Rt(d.expiresAt)};R("loading"),(async()=>{try{const w=await u.v1.statuses.$select(n.id).source.fetch(),{text:F,spoilerText:P}=w;A.current.value=F,A.current.dataset.source=F,Q(),oe(),X.current.value=P,W(a),ie(l||presf.postingDefaultLanguage||we),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"]&&W(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)||Rt(x.expiresAt)};A.current.value=a,Q(),oe(),l&&(X.current.value=l),b&&W(b),ie(d||N.postingDefaultLanguage||we),_!==null&&te(_),F&&L(F),w&&z(w)}},[o,n,e]);const he=U(),ve="You have unsaved changes. Discard this post?",xe=()=>{const{value:a,dataset:l}=A.current;if(g==="loading")return!1;const b=(a||"").trim().replace(new RegExp("^\\p{White_Space}+|\\p{White_Space}+$","gu"),""),d=$.length>0;if(!b&&!d||$.length>0&&$.every(P=>P.id))return!0;const x=(e==null?void 0:e.account.id)===S.id,w=e&&a.trim()===`@${e.account.acct}`;return!!(!x&&w||a===(l==null?void 0:l.source))},Oe=()=>xe()?!0:confirm(ve);ee(()=>{const a=l=>{xe()||(l.preventDefault(),l.returnValue=ve)};return window.addEventListener("beforeunload",a,{capture:!0}),()=>window.removeEventListener("beforeunload",a,{capture:!0})},[]);const Yt=()=>{const{value:a}=A.current,{value:l}=X.current;return Bt(Qn(a))+Bt(l)},tt=()=>{const a=Yt();le.composerCharacterCount=a};ee(tt,[]);const xt=window.CloseWatcher,nt=U(!1);_e("esc",()=>{nt.current=!0},{enabled:!xt,enableOnFormTags:!0}),_e("esc",()=>{!r&&nt.current&&Oe()&&s(),nt.current=!1},{enabled:!xt,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}}),rn(()=>{!r&&Oe()&&s()},[r,Oe,s]);const wt=U({}),kt=()=>`${yn()}#${C.current}`,it=()=>{if(n||le.composerState.minimized)return;const a=kt(),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:A.current.value,spoilerText:X.current.value,visibility:V,language:O,sensitive:j,poll:M,mediaAttachments:$}};!xn(l,wt.current)&&!xe()&&(zt.drafts.set(a,{...l,state:"unsaved",updatedAt:Date.now()}).then(()=>{}).catch(b=>{}),wt.current=structuredClone(l))};ln(it,5e3),ee(()=>(it(),()=>{zt.drafts.del(kt())}),[]),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&&$.length>=I){alert(`You can only attach up to ${I} files.`);return}if(_.length>0){b.preventDefault(),b.stopPropagation();const x=I-$.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([...$,...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="${be(W)}">
<img src="${be(j)}" width="16" height="16" alt="" loading="lazy" />
${be(W)}
</li>`}),X+=`<li role="option" data-value="" data-more="${B}">More</li>`,ye.innerHTML=X,y(Promise.resolve({matched:A.length>0,fragment:ye}));return}const q={"@":"accounts","#":"hashtags"}[E];y(new Promise(A=>{v({type:q,q:B,limit:5}).then(V=>{if(B!==S.current)return;const W=V[q]||V;let j="";W.forEach(te=>{var Q;const{name:O,avatarStatic:ie,displayName:ae,username:$,acct:z,emojis:M,history:L}=te,N=hn(ae,M);if(z)j+=`
<li role="option" data-value="${be(z)}">
<span class="avatar">
<img src="${be(ie)}" width="16" height="16" alt="" loading="lazy" />
</span>
<span>
<b>${N||$}</b>
<br>@${be(z)}
</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">${pn(oe)}</span>`:""}
</li>
`}}),q==="accounts"&&(j+=`<li role="option" data-value="" data-more="${B}">More</li>`),ye.innerHTML=j,A({matched:W.length>0,fragment:ye})})}))},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=U(0),D=U(),I=mn(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=oi(c,{maxCharacters:u})+`
`,Z.current<=3&&(m=Date.now()),h&&m&&m-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 m=ci(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,ue,A,X,V]=B.match(/^(\s*)(-|\d+\.)(\s+)(.+)?/)||[];if(V){c.preventDefault();const[W]=A.match(/\d+/)||[],j=W?`${+W+1}.`:"-",te=`
${ue}${j}${X}`;m.setRangeText(te,E,E);const O=E+te.length;m.setSelectionRange(O,O)}else{const W=E-B.length;m.setRangeText("",W,E)}Dt(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),Dt(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 di({maxCharacters:s=500,hidden:e}){const o=Fn(le).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 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 jt(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 hi({attachment:s,disabled:e,lang:n,onDescriptionChange:o=()=>{},onRemove:r=()=>{}}){const[p,u]=H("default"),v=Ht("@mastodon/edit-media-attributes"),{type:g,id:R,file:C}=s,k=Re(()=>C?URL.createObjectURL(C):s.url,[C,s.url]),S=!!(C!=null&&C.size),Z=S?Nt():{},{mediaAttachments:{imageSizeLimit:D,imageMatrixLimit:I,videoSizeLimit:se,videoMatrixLimit:J,videoFrameRateLimit:c}={}}=Z||{},[h,m]=H(()=>S?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(()=>{!S||!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,S]);const[y,B]=H({});ee(()=>{!S||!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,S]);const[q,ue]=H(s.description),[A,X]=g.split("/"),V=Qe(o,250);ee(()=>{V(q)},[q,V]);const[W,j]=H(!1),te=U(null);ee(()=>{let z;return W&&te.current&&(z=setTimeout(()=>{te.current.focus()},100)),()=>{clearTimeout(z)}},[W]);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"}[A],autoCapitalize:"sentences",autoComplete:"on",autoCorrect:"on",spellCheck:"true",dir:"auto",disabled:e||p==="loading",class:p==="loading"?"loading":"",maxlength:"1500",onInput:z=>{const{value:M}=z.target;ue(M)}})}),ie=U(null);ee(()=>()=>{var z,M;(M=(z=ie.current)==null?void 0:z.hideToast)==null||M.call(z)},[]);const ae=U(null),$=z=>{const{type:M,details:L}=z;switch(M){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}=jt(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}=jt(N,Q,oe,he);return`Dimension too large. Uploading might encounter issues. Try reduce dimension from ${oe.toLocaleString()}×${he.toLocaleString()}px to
//# sourceMappingURL=compose-2Y_rtJfC.js.map