BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([["6061"],{46130:function(e,t,r){r.d(t,{Z:()=>i});var o=r(58786);let i=(0,r(144).f)("download",()=>(0,o.h)("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,o.h)("g",{fill:"currentColor","fill-rule":"nonzero"},(0,o.h)("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"})))))},40972:function(e,t,r){r.d(t,{Z:()=>g});var o=r(58786),i=r(54470),l=r(93950);let n=r(68574).j&&"loading"in document.createElement("img");var a=r(45063),s=r(13805),h=r(50296);let u=new WeakMap,d=new WeakMap,c=new WeakMap,f=(e,t,r)=>{let o,i,l;if(!e)return()=>{};let n=function(e={}){var t;let{root:r=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):null!=(t=e.threshold)?t:"0"}`,options:Object.assign(Object.assign({},e),{root:("string"==typeof r?document.querySelector(r):r)||document.documentElement})}}(t),{root:a}=n.options,s=u.get(a);s?o=s:(o=new Map,u.set(a,o)),o.has(n.hash)?(l=o.get(n.hash))[1].has(e)||(i=l[0],l[1].add(e),i.observe(e)):((i=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=d.get(e.target),r=c.get(e.target);t&&t(),r&&(r.value=!0)}})},n.options)).observe(e),l=[i,new Set([e])],o.set(n.hash,l));let h=!1,f=()=>{!h&&(d.delete(e),c.delete(e),h=!0,l[1].has(e)&&(l[0].unobserve(e),l[1].delete(e)),l[1].size<=0&&o.delete(n.hash),o.size||u.delete(a))};return d.set(e,f),c.set(e,r),f},v=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},h.P),g=(0,o.aZ)({name:"Image",props:v,slots:Object,inheritAttrs:!1,setup(e){let t=(0,o.iH)(null),r=(0,o.iH)(!1),l=(0,o.iH)(null),n=(0,o.f3)(a.Ch,null),{mergedClsPrefixRef:s}=n||(0,i.ZP)(e),u={click:()=>{if(e.previewDisabled||r.value)return;let o=e.previewSrc||e.src;if(n){n.setPreviewSrc(o),n.setThumbnailEl(t.value),n.toggleShow();return}let{value:i}=l;i&&(i.setPreviewSrc(o),i.setThumbnailEl(t.value),i.toggleShow())}},d=(0,o.iH)(!e.lazy);(0,o.bv)(()=>{var e;null==(e=t.value)||e.setAttribute("data-group-id",(null==n?void 0:n.groupId)||"")}),(0,o.bv)(()=>{if(e.lazy&&e.intersectionObserverOptions){let r,i=(0,o.m0)(()=>{null==r||r(),r=void 0,r=f(t.value,e.intersectionObserverOptions,d)});(0,o.Jd)(()=>{i(),null==r||r()})}}),(0,o.m0)(()=>{var t;e.src||null==(t=e.imgProps)||t.src,r.value=!1});let c=(0,o.iH)(!1);return(0,o.JJ)(h.W,{previewedImgPropsRef:(0,o.Vh)(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:s,groupId:null==n?void 0:n.groupId,previewInstRef:l,imageRef:t,showError:r,shouldStartLoading:d,loaded:c,mergedOnClick:t=>{var r,o;u.click(),null==(o=null==(r=e.imgProps)?void 0:r.onClick)||o.call(r,t)},mergedOnError:t=>{if(!d.value)return;r.value=!0;let{onError:o,imgProps:{onError:i}={}}=e;null==o||o(t),null==i||i(t)},mergedOnLoad:t=>{let{onLoad:r,imgProps:{onLoad:o}={}}=e;null==r||r(t),null==o||o(t),c.value=!0}},u)},render(){var e,t;let{mergedClsPrefix:r,imgProps:i={},loaded:a,$attrs:h,lazy:u}=this,d=(0,l.gI)(this.$slots.error,()=>[]),c=null==(t=(e=this.$slots).placeholder)?void 0:t.call(e),f=this.src||i.src,v=this.showError&&d.length?d:(0,o.h)("img",Object.assign(Object.assign({},i),{ref:"imageRef",width:this.width||i.width,height:this.height||i.height,src:this.showError?this.fallbackSrc:u&&this.intersectionObserverOptions?this.shouldStartLoading?f:void 0:f,alt:this.alt||i.alt,"aria-label":this.alt||i.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:n&&u&&!this.intersectionObserverOptions?"lazy":"eager",style:[i.style||"",c&&!a?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return(0,o.h)("div",Object.assign({},h,{role:"none",class:[h.class,`${r}-image`,(this.previewDisabled||this.showError)&&`${r}-image--preview-disabled`]}),this.groupId?v:(0,o.h)(s.Z,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:r,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar},{default:()=>v}),!a&&c)}})},45063:function(e,t,r){r.d(t,{Ch:()=>h,ZP:()=>d});var o=r(17102),i=r(58786),l=r(54470),n=r(19050),a=r(13805),s=r(50296);let h=(0,n.U)("n-image-group"),u=s.P,d=(0,i.aZ)({name:"ImageGroup",props:u,setup(e){let t,{mergedClsPrefixRef:r}=(0,l.ZP)(e),n=`c${(0,o.Mc)()}`,a=(0,i.FN)(),s=(0,i.iH)(null),u=e=>{var r;t=e,null==(r=s.value)||r.setPreviewSrc(e)};function d(r){var o,i;if(!(null==a?void 0:a.proxy))return;let l=a.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${n}]:not([data-error=true])`);if(!l.length)return;let s=Array.from(l).findIndex(e=>e.dataset.previewSrc===t);~s?u(l[(s+r+l.length)%l.length].dataset.previewSrc):u(l[0].dataset.previewSrc),1===r?null==(o=e.onPreviewNext)||o.call(e):null==(i=e.onPreviewPrev)||i.call(e)}return(0,i.JJ)(h,{mergedClsPrefixRef:r,setPreviewSrc:u,setThumbnailEl:e=>{var t;null==(t=s.value)||t.setThumbnailEl(e)},toggleShow:()=>{var e;null==(e=s.value)||e.toggleShow()},groupId:n,renderToolbarRef:(0,i.Vh)(e,"renderToolbar")}),{mergedClsPrefix:r,previewInstRef:s,next:()=>{d(1)},prev:()=>{d(-1)}}},render(){return(0,i.h)(a.Z,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar},this.$slots)}})},13805:function(e,t,r){r.d(t,{Z:()=>ef});var o,i,l=r(82518);let n=function(e,t,r,o){var i=-1,l=null==e?0:e.length;for(o&&l&&(r=e[++i]);++i<l;)r=t(r,e[i],i,e);return r};var a=(o={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(e){return null==o?void 0:o[e]}),s=r(88521),h=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,u=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),d=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,c=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,f="\ud800-\udfff",v="\\u2700-\\u27bf",g="a-z\\xdf-\\xf6\\xf8-\\xff",w="A-Z\\xc0-\\xd6\\xd8-\\xde",p="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",m="['’]",C="["+p+"]",b="["+g+"]",x="[^"+f+p+"\\d+"+v+g+w+"]",L="(?:\ud83c[\udde6-\uddff]){2}",O="[\ud800-\udbff][\udc00-\udfff]",Z="["+w+"]",P="(?:"+b+"|"+x+")",k="(?:"+Z+"|"+x+")",S="(?:"+m+"(?:d|ll|m|re|s|t|ve))?",T="(?:"+m+"(?:D|LL|M|RE|S|T|VE))?",z="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",M="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+f+"]",L,O].join("|")+")"+M+z+")*",I="(?:"+["["+v+"]",L,O].join("|")+")"+(M+z+y),H=RegExp([Z+"?"+b+"+"+S+"(?="+[C,Z,"$"].join("|")+")",k+"+"+T+"(?="+[C,Z+P,"$"].join("|")+")",Z+"?"+P+"+"+S,Z+"+"+T,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",I].join("|"),"g");let A=function(e,t,r){if(e=(0,s.Z)(e),void 0===(t=r?void 0:t)){var o;return(o=e,c.test(o))?e.match(H)||[]:e.match(d)||[]}return e.match(t)||[]};var E=RegExp("['’]","g"),$=(i=function(e,t,r){return e+(r?"-":"")+t.toLowerCase()},function(e){var t;return n(A((t=e,(t=(0,s.Z)(t))&&t.replace(h,a).replace(u,"")).replace(E,"")),i,"")}),j=r(76072),R=r(71465),B=r(23967),D=r(58786),V=r(60794),W=r(96823),N=r(144);let F=(0,N.f)("rotateClockwise",()=>(0,D.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,D.h)("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),(0,D.h)("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),Y=(0,N.f)("rotateClockwise",()=>(0,D.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,D.h)("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),(0,D.h)("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),U=(0,D.aZ)({name:"ResizeSmall",render:()=>(0,D.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,D.h)("g",{fill:"none"},(0,D.h)("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}),J=(0,N.f)("zoomOut",()=>(0,D.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,D.h)("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),(0,D.h)("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"})));var X=r(46130);let G=(0,N.f)("zoomIn",()=>(0,D.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,D.h)("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),(0,D.h)("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"})));var q=r(56946),_=r(3616),K=r(54470),Q=r(53198),ee=r(60309),et=r(50144),er=r(9798),eo=r(44108);let ei=(0,q.j)({name:"Image",common:er.Z,peers:{Tooltip:eo.Z},self:function(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}});function el(){return(0,D.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,D.h)("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"}))}function en(){return(0,D.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,D.h)("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"}))}function ea(){return(0,D.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,D.h)("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"}))}var es=r(50296),eh=r(74732),eu=r(66480),ed=r(71309);let ec=(0,ed.c)([(0,ed.c)("body >",[(0,ed.cB)("image-container","position: fixed;")]),(0,ed.cB)("image-preview-container",`
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
`),(0,ed.cB)("image-preview-overlay",`
z-index: -1;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: rgba(0, 0, 0, .3);
`,[(0,eu.h)()]),(0,ed.cB)("image-preview-toolbar",`
z-index: 1;
position: absolute;
left: 50%;
transform: translateX(-50%);
border-radius: var(--n-toolbar-border-radius);
height: 48px;
bottom: 40px;
padding: 0 12px;
background: var(--n-toolbar-color);
box-shadow: var(--n-toolbar-box-shadow);
color: var(--n-toolbar-icon-color);
transition: color .3s var(--n-bezier);
display: flex;
align-items: center;
`,[(0,ed.cB)("base-icon",`
padding: 0 8px;
font-size: 28px;
cursor: pointer;
`),(0,eu.h)()]),(0,ed.cB)("image-preview-wrapper",`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
pointer-events: none;
`,[(0,eh.h)()]),(0,ed.cB)("image-preview",`
user-select: none;
-webkit-user-select: none;
pointer-events: all;
margin: auto;
max-height: calc(100vh - 32px);
max-width: calc(100vw - 32px);
transition: transform .3s var(--n-bezier);
`),(0,ed.cB)("image",`
display: inline-flex;
max-height: 100%;
max-width: 100%;
`,[(0,ed.u4)("preview-disabled",`
cursor: pointer;
`),(0,ed.c)("img",`
border-radius: inherit;
`)])]),ef=(0,D.aZ)({name:"ImagePreview",props:Object.assign(Object.assign({},es.P),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){let t=(0,q.Z)("Image","-image",ec,ei,e,(0,D.Vh)(e,"clsPrefix")),r=null,o=(0,D.iH)(null),i=(0,D.iH)(null),n=(0,D.iH)(void 0),a=(0,D.iH)(!1),s=(0,D.iH)(!1),{localeRef:h}=(0,_.Z)("Image");function u(t){var r,o;switch(t.key){case" ":t.preventDefault();break;case"ArrowLeft":null==(r=e.onPrev)||r.call(e);break;case"ArrowRight":null==(o=e.onNext)||o.call(e);break;case"Escape":M()}}(0,D.YP)(a,e=>{e?(0,l.on)("keydown",document,u):(0,l.S)("keydown",document,u)}),(0,D.Jd)(()=>{(0,l.S)("keydown",document,u)});let d=0,c=0,f=0,v=0,g=0,w=0,p=0,m=0,C=!1;function b(e){let{clientX:t,clientY:r}=e;f=t-d,v=r-c,(0,j.J)(z)}function x(e){let{value:t}=o;if(!t)return{offsetX:0,offsetY:0};let r=t.getBoundingClientRect(),{moveVerticalDirection:i,moveHorizontalDirection:l,deltaHorizontal:n,deltaVertical:a}=e||{},s=0,h=0;return{offsetX:s=r.width<=window.innerWidth?0:r.left>0?(r.width-window.innerWidth)/2:r.right<window.innerWidth?-(r.width-window.innerWidth)/2:"horizontalRight"===l?Math.min((r.width-window.innerWidth)/2,g-(null!=n?n:0)):Math.max(-((r.width-window.innerWidth)/2),g-(null!=n?n:0)),offsetY:r.height<=window.innerHeight?0:r.top>0?(r.height-window.innerHeight)/2:r.bottom<window.innerHeight?-(r.height-window.innerHeight)/2:"verticalBottom"===i?Math.min((r.height-window.innerHeight)/2,w-(null!=a?a:0)):Math.max(-((r.height-window.innerHeight)/2),w-(null!=a?a:0))}}function L(e){(0,l.S)("mousemove",document,b),(0,l.S)("mouseup",document,L);let{clientX:t,clientY:r}=e;C=!1;let o=x(function(e){let{mouseUpClientX:t,mouseUpClientY:r,mouseDownClientX:o,mouseDownClientY:i}=e,l=o-t,n=i-r;return{moveVerticalDirection:`vertical${n>0?"Top":"Bottom"}`,moveHorizontalDirection:`horizontal${l>0?"Left":"Right"}`,deltaHorizontal:l,deltaVertical:n}}({mouseUpClientX:t,mouseUpClientY:r,mouseDownClientX:p,mouseDownClientY:m}));f=o.offsetX,v=o.offsetY,z()}let O=(0,D.f3)(es.W,null),Z=0,P=1,k=0;function S(){P=1,Z=0}function T(){let{value:e}=o;if(!e)return 1;let{innerWidth:t,innerHeight:r}=window,i=e.naturalHeight/(r-32),l=e.naturalWidth/(t-32);return i<1&&l<1?1:Math.max(i,l)}function z(e=!0){var t;let{value:r}=o;if(!r)return;let{style:i}=r,l=(0,D.j5)(null==(t=null==O?void 0:O.previewedImgPropsRef.value)?void 0:t.style),n="";if("string"==typeof l)n=`${l};`;else for(let e in l)n+=`${$(e)}: ${l[e]};`;let a=`transform-origin: center; transform: translateX(${f}px) translateY(${v}px) rotate(${k}deg) scale(${P});`;C?i.cssText=`${n}cursor: grabbing; transition: none;${a}`:i.cssText=`${n}cursor: grab;${a}${e?"":"transition: none;"}`,e||r.offsetHeight}function M(){a.value=!a.value,s.value=!0}let y=(0,D.Fl)(()=>{let{common:{cubicBezierEaseInOut:e},self:{toolbarIconColor:r,toolbarBorderRadius:o,toolbarBoxShadow:i,toolbarColor:l}}=t.value;return{"--n-bezier":e,"--n-toolbar-icon-color":r,"--n-toolbar-color":l,"--n-toolbar-border-radius":o,"--n-toolbar-box-shadow":i}}),{inlineThemeDisabled:I}=(0,K.ZP)(),H=I?(0,Q.F)("image-preview",void 0,y,e):void 0;return Object.assign({previewRef:o,previewWrapperRef:i,previewSrc:n,show:a,appear:(0,B.Z)(),displayed:s,previewedImgProps:null==O?void 0:O.previewedImgPropsRef,handleWheel(e){e.preventDefault()},handlePreviewMousedown:function(e){var t,r;if(null==(r=null==(t=null==O?void 0:O.previewedImgPropsRef.value)?void 0:t.onMousedown)||r.call(t,e),0!==e.button)return;let{clientX:o,clientY:i}=e;C=!0,d=o-f,c=i-v,g=f,w=v,p=o,m=i,z(),(0,l.on)("mousemove",document,b),(0,l.on)("mouseup",document,L)},handlePreviewDblclick:function(e){var t,r;null==(r=null==(t=null==O?void 0:O.previewedImgPropsRef.value)?void 0:t.onDblclick)||r.call(t,e);let o=T();P=P===o?1:o,z()},syncTransformOrigin:function(){let{value:e}=i;if(!r||!e)return;let{style:t}=e,o=r.getBoundingClientRect(),l=o.left+o.width/2,n=o.top+o.height/2;t.transformOrigin=`${l}px ${n}px`},handleAfterLeave:()=>{S(),k=0,s.value=!1},handleDragStart:e=>{var t,r;null==(r=null==(t=null==O?void 0:O.previewedImgPropsRef.value)?void 0:t.onDragstart)||r.call(t,e),e.preventDefault()},zoomIn:function(){let e=function(){let{value:e}=o;if(!e)return 1;let{innerWidth:t,innerHeight:r}=window;return Math.max(3,2*Math.max(1,e.naturalHeight/(r-32)),2*Math.max(1,e.naturalWidth/(t-32)))}();P<e&&(Z+=1,P=Math.min(e,Math.pow(1.5,Z)),z())},zoomOut:function(){if(P>.5){Z-=1;let e=P-(P=Math.max(.5,Math.pow(1.5,Z)));z(!1);let t=x();P+=e,z(!1),P-=e,f=t.offsetX,v=t.offsetY,z()}},handleDownloadClick:function(){let e=n.value;e&&(0,ee.L)(e,void 0)},rotateCounterclockwise:function(){k-=90,z()},rotateClockwise:function(){k+=90,z()},handleSwitchPrev:function(){var t;S(),k=0,null==(t=e.onPrev)||t.call(e)},handleSwitchNext:function(){var t;S(),k=0,null==(t=e.onNext)||t.call(e)},withTooltip:function(r,o){if(!e.showToolbarTooltip)return r;{let{value:e}=t;return(0,D.h)(et.Z,{to:!1,theme:e.peers.Tooltip,themeOverrides:e.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>h.value[o],trigger:()=>r})}},resizeToOrignalImageSize:function(){Z=Math.ceil(Math.log(P=T())/Math.log(1.5)),f=0,v=0,z()},cssVars:I?void 0:y,themeClass:null==H?void 0:H.themeClass,onRender:null==H?void 0:H.onRender},{setPreviewSrc:e=>{n.value=e},setThumbnailEl:e=>{r=e},toggleShow:M})},render(){var e,t;let{clsPrefix:r,renderToolbar:o,withTooltip:i}=this,l=i((0,D.h)(W.Z,{clsPrefix:r,onClick:this.handleSwitchPrev},{default:el}),"tipPrevious"),n=i((0,D.h)(W.Z,{clsPrefix:r,onClick:this.handleSwitchNext},{default:en}),"tipNext"),a=i((0,D.h)(W.Z,{clsPrefix:r,onClick:this.rotateCounterclockwise},{default:()=>(0,D.h)(F,null)}),"tipCounterclockwise"),s=i((0,D.h)(W.Z,{clsPrefix:r,onClick:this.rotateClockwise},{default:()=>(0,D.h)(Y,null)}),"tipClockwise"),h=i((0,D.h)(W.Z,{clsPrefix:r,onClick:this.resizeToOrignalImageSize},{default:()=>(0,D.h)(U,null)}),"tipOriginalSize"),u=i((0,D.h)(W.Z,{clsPrefix:r,onClick:this.zoomOut},{default:()=>(0,D.h)(J,null)}),"tipZoomOut"),d=i((0,D.h)(W.Z,{clsPrefix:r,onClick:this.handleDownloadClick},{default:()=>(0,D.h)(X.Z,null)}),"tipDownload"),c=i((0,D.h)(W.Z,{clsPrefix:r,onClick:this.toggleShow},{default:ea}),"tipClose"),f=i((0,D.h)(W.Z,{clsPrefix:r,onClick:this.zoomIn},{default:()=>(0,D.h)(G,null)}),"tipZoomIn");return(0,D.h)(D.HY,null,null==(t=(e=this.$slots).default)?void 0:t.call(e),(0,D.h)(V.Z,{show:this.show},{default:()=>{var e;return this.show||this.displayed?(null==(e=this.onRender)||e.call(this),(0,D.wy)((0,D.h)("div",{class:[`${r}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},(0,D.h)(D.uT,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?(0,D.h)("div",{class:`${r}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?(0,D.h)(D.uT,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?(0,D.h)("div",{class:`${r}-image-preview-toolbar`},o?o({nodes:{prev:l,next:n,rotateCounterclockwise:a,rotateClockwise:s,resizeToOriginalSize:h,zoomOut:u,zoomIn:f,download:d,close:c}}):(0,D.h)(D.HY,null,this.onPrev?(0,D.h)(D.HY,null,l,n):null,a,s,h,u,f,d,c)):null}):null,(0,D.h)(D.uT,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{let{previewedImgProps:e={}}=this;return(0,D.wy)((0,D.h)("div",{class:`${r}-image-preview-wrapper`,ref:"previewWrapperRef"},(0,D.h)("img",Object.assign({},e,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${r}-image-preview`,e.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[D.F8,this.show]])}})),[[R.Z,{enabled:this.show}]])):null}}))}})},50296:function(e,t,r){r.d(t,{P:()=>l,W:()=>n});var o=r(56946),i=r(19050);let l=Object.assign(Object.assign({},o.Z.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),n=(0,i.U)("n-image")}}]);