| Server IP : 85.214.143.32 / Your IP : 216.73.216.142 Web Server : nginx/1.24.0 System : Linux datensicherung.webdress.site 6.8.0-139-generic #139-Ubuntu SMP PREEMPT_DYNAMIC Sat Aug 1 03:52:05 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/nextcloud/dist/ |
Upload File : |
import{s as ce,g as he,d as me}from"./emoji-C8k9NUlo-BQiX-d8c.chunk.mjs";import{o as c,f as h,F as k,B as A,O,y as E,g as m,c as L,w as b,t as _,C as de,h as C,r as j,k as v,J as Y,aj as ue,a6 as y,i as T,K as pe,m as ee,L as je,q as ge,G as we,M as ve}from"./Web-Bpn1hT4U.chunk.mjs";import{_ as x}from"./public-C1mLBHT3.chunk.mjs";import{o as fe,p as ye,q as _e}from"./NcModal-DiDvgcU8-DlAqoAw2.chunk.mjs";import{r as ke,q as Ce,s as Ee,u as Se,v as be,b as d,_ as te}from"./createElementId-DhjFt1I9-CzYhhUzc.chunk.mjs";import xe from"./index-CmQ6RK7u.chunk.mjs";import{C as P}from"./colors-Cv9F-jWS-3J5iRBdf.chunk.mjs";import{N as Pe}from"./logger-D3RVzcfQ-B6R2fmjp.chunk.mjs";import{_ as Ae}from"./NcTextField.vue_vue_type_script_setup_true_lang-Bx2esFU2-LotydYy2.chunk.mjs";var V="emoji-mart";const Oe=JSON;var ie=typeof window<"u"&&"localStorage"in window;let H,R;function Fe(i){i||(i={}),H=i.getter,R=i.setter}function Me(i){V=i}function Ie(i){for(let e in i){let t=i[e];oe(e,t)}}function oe(i,e){if(R)R(i,e);else{if(!ie)return;try{window.localStorage[`${V}.${i}`]=Oe.stringify(e)}catch{}}}function Te(i){if(H)return H(i);if(ie){try{var e=window.localStorage[`${V}.${i}`]}catch{return}if(e)return JSON.parse(e)}}const F={update:Ie,set:oe,get:Te,setNamespace:Me,setHandlers:Fe},$={name:"a",unified:"b",non_qualified:"c",has_img_apple:"d",has_img_google:"e",has_img_twitter:"f",has_img_facebook:"h",keywords:"j",sheet:"k",emoticons:"l",text:"m",short_names:"n",added_in:"o"},se=i=>{const e=[];var t=(s,r)=>{s&&(Array.isArray(s)?s:[s]).forEach(o=>{(r?o.split(/[-|_|\s]+/):[o]).forEach(n=>{n=n.toLowerCase(),e.indexOf(n)==-1&&e.push(n)})})};return t(i.short_names,!0),t(i.name,!0),t(i.keywords,!1),t(i.emoticons,!1),e.join(",")};function re(i){var e=Object.getOwnPropertyNames(i);for(let t of e){let s=i[t];i[t]=s&&typeof s=="object"?re(s):s}return Object.freeze(i)}const Le=i=>{if(!i.compressed)return i;i.compressed=!1;for(let e in i.emojis){let t=i.emojis[e];for(let s in $)t[s]=t[$[s]],delete t[$[s]];t.short_names||(t.short_names=[]),t.short_names.unshift(e),t.sheet_x=t.sheet[0],t.sheet_y=t.sheet[1],delete t.sheet,t.text||(t.text=""),t.added_in||(t.added_in=6),t.added_in=t.added_in.toFixed(1),t.search=se(t)}return i=re(i),i},q=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart","hankey"];let f,W,D={};function ne(){W=!0,f=F.get("frequently")}function ze(i){W||ne();var{id:e}=i;f||(f=D),f[e]||(f[e]=0),f[e]+=1,F.set("last",e),F.set("frequently",f)}function Ne(i){if(W||ne(),!f){D={};const o=[];let n=Math.min(i,q.length);for(let a=0;a<n;a++)D[q[a]]=parseInt((n-a)/4,10)+1,o.push(q[a]);return o}const e=i,t=[];for(let o in f)f.hasOwnProperty(o)&&t.push(o);const s=t.sort((o,n)=>f[o]-f[n]).reverse().slice(0,e),r=F.get("last");return r&&s.indexOf(r)==-1&&(s.pop(),s.push(r)),s}const U={add:ze,get:Ne},$e={activity:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"/></svg>',custom:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><g transform="translate(2.000000, 1.000000)"><rect id="Rectangle" x="8" y="0" width="3" height="21" rx="1.5"></rect><rect id="Rectangle" transform="translate(9.843, 10.549) rotate(60) translate(-9.843, -10.549) " x="8.343" y="0.049" width="3" height="21" rx="1.5"></rect><rect id="Rectangle" transform="translate(9.843, 10.549) rotate(-60) translate(-9.843, -10.549) " x="8.343" y="0.049" width="3" height="21" rx="1.5"></rect></g></svg>',flags:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"/></svg>',foods:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"/></svg>',nature:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"/><path d="M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"/></svg>',objects:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"/><path d="M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"/></svg>',smileys:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"/><path d="M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"/></svg>',people:'<svg xmlns:svg="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24"> <path id="path3814" d="m 3.3591089,21.17726 c 0.172036,0.09385 4.265994,2.29837 8.8144451,2.29837 4.927767,0 8.670894,-2.211883 8.82782,-2.306019 0.113079,-0.06785 0.182268,-0.190051 0.182267,-0.321923 0,-3.03119 -0.929494,-5.804936 -2.617196,-7.810712 -1.180603,-1.403134 -2.661918,-2.359516 -4.295699,-2.799791 4.699118,-2.236258 3.102306,-9.28617162 -2.097191,-9.28617162 -5.1994978,0 -6.7963103,7.04991362 -2.097192,9.28617162 -1.6337821,0.440275 -3.1150971,1.396798 -4.2956991,2.799791 -1.687703,2.005776 -2.617196,4.779522 -2.617196,7.810712 1.2e-6,0.137378 0.075039,0.263785 0.195641,0.329572 z M 8.0439319,5.8308783 C 8.0439309,2.151521 12.492107,0.30955811 15.093491,2.9109411 17.694874,5.5123241 15.852911,9.9605006 12.173554,9.9605 9.8938991,9.9579135 8.0465186,8.1105332 8.0439319,5.8308783 Z m -1.688782,7.6894977 c 1.524535,-1.811449 3.5906601,-2.809035 5.8184041,-2.809035 2.227744,0 4.293869,0.997586 5.818404,2.809035 1.533639,1.822571 2.395932,4.339858 2.439152,7.108301 -0.803352,0.434877 -4.141636,2.096112 -8.257556,2.096112 -3.8062921,0 -7.3910861,-1.671043 -8.2573681,-2.104981 0.04505,-2.765017 0.906968,-5.278785 2.438964,-7.099432 z" /> <path id="path3816" d="M 12.173828 0.38867188 C 9.3198513 0.38867187 7.3770988 2.3672285 6.8652344 4.6308594 C 6.4218608 6.5916015 7.1153562 8.7676117 8.9648438 10.126953 C 7.6141249 10.677376 6.3550511 11.480944 5.3496094 12.675781 C 3.5629317 14.799185 2.6015625 17.701475 2.6015625 20.847656 C 2.6015654 21.189861 2.7894276 21.508002 3.0898438 21.671875 C 3.3044068 21.788925 7.4436239 24.039062 12.173828 24.039062 C 17.269918 24.039062 21.083568 21.776786 21.291016 21.652344 C 21.57281 21.483266 21.746097 21.176282 21.746094 20.847656 C 21.746094 17.701475 20.78277 14.799185 18.996094 12.675781 C 17.990455 11.480591 16.733818 10.675362 15.382812 10.125 C 17.231132 8.7655552 17.925675 6.5910701 17.482422 4.6308594 C 16.970557 2.3672285 15.027805 0.38867188 12.173828 0.38867188 z M 12.792969 2.3007812 C 13.466253 2.4161792 14.125113 2.7383941 14.695312 3.3085938 C 15.835712 4.4489931 15.985604 5.9473549 15.46875 7.1953125 C 14.951896 8.4432701 13.786828 9.3984378 12.173828 9.3984375 C 10.197719 9.3961954 8.607711 7.806187 8.6054688 5.8300781 C 8.6054683 4.2170785 9.5606362 3.0520102 10.808594 2.5351562 C 11.432573 2.2767293 12.119685 2.1853833 12.792969 2.3007812 z M 12.173828 11.273438 C 14.233647 11.273438 16.133674 12.185084 17.5625 13.882812 C 18.93069 15.508765 19.698347 17.776969 19.808594 20.283203 C 18.807395 20.800235 15.886157 22.162109 12.173828 22.162109 C 8.7614632 22.162109 5.6245754 20.787069 4.5390625 20.265625 C 4.6525896 17.766717 5.4203315 15.504791 6.7851562 13.882812 C 8.2139827 12.185084 10.11401 11.273438 12.173828 11.273438 z " /> </svg>',places:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"/><path d="M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"/></svg>',recent:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"/><path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"/></svg>',symbols:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"/></svg>'},qe={props:{i18n:{type:Object,required:!0},color:{type:String},categories:{type:Array,required:!0},activeCategory:{type:Object,default(){return{}}}},emits:["click"],created(){this.svgs=$e}},Be={role:"tablist",class:"emoji-mart-anchors"},He=["aria-label","aria-selected","data-title","onClick"],Re=["innerHTML"];function De(i,e,t,s,r,o){return c(),h("div",Be,[(c(!0),h(k,null,A(t.categories,n=>(c(),h("button",{role:"tab",type:"button","aria-label":n.name,"aria-selected":n.id==t.activeCategory.id,key:n.id,class:E({"emoji-mart-anchor":!0,"emoji-mart-anchor-selected":n.id==t.activeCategory.id}),style:O({color:n.id==t.activeCategory.id?t.color:""}),"data-title":t.i18n.categories[n.id],onClick:a=>i.$emit("click",n)},[m("div",{"aria-hidden":"true",innerHTML:i.svgs[n.id]},null,8,Re),m("span",{"aria-hidden":"true",class:"emoji-mart-anchor-bar",style:O({backgroundColor:t.color})},null,4)],14,He))),128))])}const Ue=x(qe,[["render",De]]),Ve=String,We=Ve.fromCodePoint||function(){var i=16384,e=[],t,s,r=-1,o=arguments.length;if(!o)return"";for(var n="";++r<o;){var a=Number(arguments[r]);if(!isFinite(a)||a<0||a>1114111||Math.floor(a)!=a)throw RangeError("Invalid code point: "+a);a<=65535?e.push(a):(a-=65536,t=(a>>10)+55296,s=a%1024+56320,e.push(t,s)),(r+1===o||e.length>i)&&(n+=String.fromCharCode.apply(null,e),e.length=0)}return n};function Ke(i){var e=i.split("-"),t=e.map(s=>`0x${s}`);return We.apply(null,t)}function Z(i){return i.reduce((e,t)=>(e.indexOf(t)===-1&&e.push(t),e),[])}function Ge(i,e){const t=Z(i),s=Z(e);return t.filter(r=>s.indexOf(r)>=0)}function ae(i,e){var t={};for(let s in i){let r=i[s],o=r;Object.prototype.hasOwnProperty.call(e,s)&&(o=e[s]),typeof o=="object"&&(o=ae(r,o)),t[s]=o}return t}function Je(){if(typeof document>"u")return 0;const i=document.createElement("div");i.style.width="100px",i.style.height="100px",i.style.overflow="scroll",i.style.position="absolute",i.style.top="-9999px",document.body.appendChild(i);const e=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),e}const Ze=61,Qe=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/,Q=["1F3FA","1F3FB","1F3FC","1F3FD","1F3FE","1F3FF"];class Xe{constructor(e,{emojisToShowFilter:t,include:s,exclude:r,custom:o,recent:n,recentLength:a=20}={}){this._data=Le(e),this._emojisFilter=t||null,this._include=s||null,this._exclude=r||null,this._custom=o||[],this._recent=n||U.get(a),this._emojis={},this._nativeEmojis={},this._emoticons={},this._categories=[],this._recentCategory={id:"recent",name:"Recent",emojis:[]},this._customCategory={id:"custom",name:"Custom",emojis:[]},this._searchIndex={},this.buildIndex(),Object.freeze(this)}buildIndex(){let e=this._data.categories;if(this._include&&(e=e.filter(t=>this._include.includes(t.id)),e=e.sort((t,s)=>{const r=this._include.indexOf(t.id),o=this._include.indexOf(s.id);return r<o?-1:r>o?1:0})),e.forEach(t=>{if(!this.isCategoryNeeded(t.id))return;let s={id:t.id,name:t.name,emojis:[]};t.emojis.forEach(r=>{let o=this.addEmoji(r);o&&s.emojis.push(o)}),s.emojis.length&&this._categories.push(s)}),this.isCategoryNeeded("custom")){if(this._custom.length>0)for(let t of this._custom)this.addCustomEmoji(t);this._customCategory.emojis.length&&this._categories.push(this._customCategory)}this.isCategoryNeeded("recent")&&(this._recent.length&&this._recent.map(t=>{for(let s of this._customCategory.emojis)if(s.id===t){this._recentCategory.emojis.push(s);return}this.hasEmoji(t)&&this._recentCategory.emojis.push(this.emoji(t))}),this._recentCategory.emojis.length&&this._categories.unshift(this._recentCategory))}findEmoji(e,t){let s=e.match(Qe);if(s&&(e=s[1],s[2]&&(t=parseInt(s[2],10))),this._data.aliases.hasOwnProperty(e)&&(e=this._data.aliases[e]),this._emojis.hasOwnProperty(e)){let r=this._emojis[e];return t?r.getSkin(t):r}return this._nativeEmojis.hasOwnProperty(e)?this._nativeEmojis[e]:null}categories(){return this._categories}emoji(e){this._data.aliases.hasOwnProperty(e)&&(e=this._data.aliases[e]);let t=this._emojis[e];if(!t)throw new Error("Can not find emoji by id: "+e);return t}firstEmoji(){let e=this._emojis[Object.keys(this._emojis)[0]];if(!e)throw new Error("Can not get first emoji");return e}hasEmoji(e){return this._data.aliases.hasOwnProperty(e)&&(e=this._data.aliases[e]),!!this._emojis[e]}nativeEmoji(e){return this._nativeEmojis.hasOwnProperty(e)?this._nativeEmojis[e]:null}search(e,t){if(t||(t=75),!e.length)return null;if(e=="-"||e=="-1")return[this.emoji("-1")];let s=e.toLowerCase().split(/[\s|,|\-|_]+/),r=[];s.length>2&&(s=[s[0],s[1]]),r=s.map(n=>{let a=this._emojis,l=this._searchIndex,g=0;for(let p=0;p<n.length;p++){const S=n[p];if(g++,l[S]||(l[S]={}),l=l[S],!l.results){let M={};l.results=[],l.emojis={};for(let w in a){let u=a[w],N=u._data.search,I=n.substr(0,g),G=N.indexOf(I);if(G!=-1){let J=G+1;I==w&&(J=0),l.results.push(u),l.emojis[w]=u,M[w]=J}}l.results.sort((w,u)=>{var N=M[w.id],I=M[u.id];return N-I})}a=l.emojis}return l.results}).filter(n=>n);var o=null;return r.length>1?o=Ge.apply(null,r):r.length?o=r[0]:o=[],o&&o.length>t&&(o=o.slice(0,t)),o}addCustomEmoji(e){let t=Object.assign({},e,{id:e.short_names[0],custom:!0});t.search||(t.search=se(t));let s=new z(t);return this._emojis[s.id]=s,this._customCategory.emojis.push(s),s}addEmoji(e){let t=this._data.emojis[e];if(!this.isEmojiNeeded(t))return!1;let s=new z(t);if(this._emojis[e]=s,s.native&&(this._nativeEmojis[s.native]=s),s._skins)for(let r in s._skins){let o=s._skins[r];o.native&&(this._nativeEmojis[o.native]=o)}return s.emoticons&&s.emoticons.forEach(r=>{this._emoticons[r]||(this._emoticons[r]=e)}),s}isCategoryNeeded(e){let t=this._include&&this._include.length?this._include.indexOf(e)>-1:!0,s=this._exclude&&this._exclude.length?this._exclude.indexOf(e)>-1:!1;return!(!t||s)}isEmojiNeeded(e){return this._emojisFilter?this._emojisFilter(e):!0}}class z{constructor(e){if(this._data=Object.assign({},e),this._skins=null,this._data.skin_variations){this._skins=[];for(var t in Q){let s=Q[t],r=this._data.skin_variations[s],o=Object.assign({},e);for(let n in r)o[n]=r[n];delete o.skin_variations,o.skin_tone=parseInt(t)+1,this._skins.push(new z(o))}}this._sanitized=Ye(this._data);for(let s in this._sanitized)this[s]=this._sanitized[s];this.short_names=this._data.short_names,this.short_name=this._data.short_names[0],Object.freeze(this)}getSkin(e){return e&&e!="native"&&this._skins?this._skins[e-1]:this}getPosition(){let e=Ze-1,t=+(100/e*this._data.sheet_x).toFixed(2),s=+(100/e*this._data.sheet_y).toFixed(2);return`${t}% ${s}%`}ariaLabel(){return[this.native].concat(this.short_names).filter(Boolean).join(", ")}}class le{constructor(e,t,s,r,o,n,a){this._emoji=e,this._native=r,this._skin=t,this._set=s,this._fallback=o,this.canRender=this._canRender(),this.cssClass=this._cssClass(),this.cssStyle=this._cssStyle(a),this.content=this._content(),this.title=n===!0?e.short_name:null,this.ariaLabel=e.ariaLabel(),Object.freeze(this)}getEmoji(){return this._emoji.getSkin(this._skin)}_canRender(){return this._isCustom()||this._isNative()||this._hasEmoji()||this._fallback}_cssClass(){return["emoji-set-"+this._set,"emoji-type-"+this._emojiType()]}_cssStyle(e){let t={};return this._isCustom()?t={backgroundImage:"url("+this.getEmoji()._data.imageUrl+")",backgroundSize:"100%",width:e+"px",height:e+"px"}:this._hasEmoji()&&!this._isNative()&&(t={backgroundPosition:this.getEmoji().getPosition()}),e&&(this._isNative()?t=Object.assign(t,{fontSize:Math.round(e*.95*10)/10+"px"}):t=Object.assign(t,{width:e+"px",height:e+"px"})),t}_content(){return this._isCustom()?"":this._isNative()?this.getEmoji().native:this._hasEmoji()?"":this._fallback?this._fallback(this.getEmoji()):null}_isNative(){return this._native}_isCustom(){return this.getEmoji().custom}_hasEmoji(){if(!this.getEmoji()._data)return!1;const e=this.getEmoji()._data["has_img_"+this._set];return e===void 0?!0:e}_emojiType(){return this._isCustom()?"custom":this._isNative()?"native":this._hasEmoji()?"image":"fallback"}}function Ye(i){var{name:e,short_names:t,skin_tone:s,skin_variations:r,emoticons:o,unified:n,custom:a,imageUrl:l}=i,g=i.id||t[0],p=`:${g}:`;return a?{id:g,name:e,colons:p,emoticons:o,custom:a,imageUrl:l}:(s&&(p+=`:skin-tone-${s}:`),{id:g,name:e,colons:p,emoticons:o,unified:n.toLowerCase(),skin:s||(r?1:null),native:Ke(n)})}const et={native:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!1},fallback:{type:Function},skin:{type:Number,default:1},set:{type:String,default:"apple"},emoji:{type:[String,Object],required:!0},size:{type:Number,default:null},tag:{type:String,default:"span"}},tt={perLine:{type:Number,default:9},maxSearchResults:{type:Number,default:75},emojiSize:{type:Number,default:24},title:{type:String,default:"Emoji Martâ„¢"},emoji:{type:String,default:"department_store"},color:{type:String,default:"#ae65c5"},set:{type:String,default:"apple"},skin:{type:Number,default:null},defaultSkin:{type:Number,default:1},native:{type:Boolean,default:!1},emojiTooltip:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},i18n:{type:Object,default(){return{}}},showPreview:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},showCategories:{type:Boolean,default:!0},showSkinTones:{type:Boolean,default:!0},infiniteScroll:{type:Boolean,default:!0},pickerStyles:{type:Object,default(){return{}}}},it={props:{...et,data:{type:Object,required:!0}},emits:["click","mouseenter","mouseleave"],computed:{view(){return new le(this.emojiObject,this.skin,this.set,this.native,this.fallback,this.tooltip,this.size)},sanitizedData(){return this.emojiObject._sanitized},title(){return this.tooltip?this.emojiObject.short_name:null},emojiObject(){return typeof this.emoji=="string"?this.data.findEmoji(this.emoji):this.emoji}},created(){},methods:{onClick(){this.$emit("click",this.emojiObject)},onMouseEnter(){this.$emit("mouseenter",this.emojiObject)},onMouseLeave(){this.$emit("mouseleave",this.emojiObject)}}};function ot(i,e,t,s,r,o){return o.view.canRender?(c(),L(de(i.tag),{key:0,title:o.view.title,"aria-label":o.view.ariaLabel,"data-title":o.title,class:"emoji-mart-emoji",onMouseenter:o.onMouseEnter,onMouseleave:o.onMouseLeave,onClick:o.onClick},{default:b(()=>[m("span",{class:E(o.view.cssClass),style:O(o.view.cssStyle)},_(o.view.content),7)]),_:1},40,["title","aria-label","data-title","onMouseenter","onMouseleave","onClick"])):C("",!0)}const K=x(it,[["render",ot]]),st={props:{data:{type:Object,required:!0},i18n:{type:Object,required:!0},id:{type:String,required:!0},name:{type:String,required:!0},emojis:{type:Array},emojiProps:{type:Object,required:!0}},methods:{activeClass:function(i){return!this.emojiProps.selectedEmoji||!this.emojiProps.selectedEmojiCategory?"":this.emojiProps.selectedEmoji.id==i.id&&this.emojiProps.selectedEmojiCategory.id==this.id?"emoji-mart-emoji-selected":""}},computed:{isVisible(){return!!this.emojis},isSearch(){return this.name=="Search"},hasResults(){return this.emojis.length>0},emojiObjects(){return this.emojis.map(i=>{let e=i,t=new le(i,this.emojiProps.skin,this.emojiProps.set,this.emojiProps.native,this.emojiProps.fallback,this.emojiProps.emojiTooltip,this.emojiProps.emojiSize);return{emojiObject:e,emojiView:t}})}},components:{Emoji:K}},rt=["aria-label"],nt={class:"emoji-mart-category-label"},at={class:"emoji-mart-category-label"},lt=["aria-label","data-title","title","onMouseenter","onMouseleave","onClick"],ct={key:0},ht={class:"emoji-mart-no-results-label"};function mt(i,e,t,s,r,o){const n=j("emoji");return o.isVisible&&(o.isSearch||o.hasResults)?(c(),h("section",{key:0,class:E({"emoji-mart-category":!0,"emoji-mart-no-results":!o.hasResults}),"aria-label":t.i18n.categories[t.id]},[m("div",nt,[m("h3",at,_(t.i18n.categories[t.id]),1)]),(c(!0),h(k,null,A(o.emojiObjects,({emojiObject:a,emojiView:l})=>(c(),h(k,null,[l.canRender?(c(),h("button",{"aria-label":l.ariaLabel,role:"option","aria-selected":"false","aria-posinset":"1","aria-setsize":"1812",type:"button","data-title":a.short_name,key:a.id,title:l.title,class:E(["emoji-mart-emoji",o.activeClass(a)]),onMouseenter:g=>t.emojiProps.onEnter(l.getEmoji()),onMouseleave:g=>t.emojiProps.onLeave(l.getEmoji()),onClick:g=>t.emojiProps.onClick(l.getEmoji())},[m("span",{class:E(l.cssClass),style:O(l.cssStyle)},_(l.content),7)],42,lt)):C("",!0)],64))),256)),o.hasResults?C("",!0):(c(),h("div",ct,[v(n,{data:t.data,emoji:"sleuth_or_spy",native:t.emojiProps.native,skin:t.emojiProps.skin,set:t.emojiProps.set},null,8,["data","native","skin","set"]),m("div",ht,_(t.i18n.notfound),1)]))],10,rt)):C("",!0)}const dt=x(st,[["render",mt]]),ut={props:{skin:{type:Number,required:!0}},emits:["change"],data(){return{opened:!1}},methods:{onClick(i){this.opened&&i!=this.skin&&this.$emit("change",i),this.opened=!this.opened}}},pt=["onClick"];function jt(i,e,t,s,r,o){return c(),h("div",{class:E({"emoji-mart-skin-swatches":!0,"emoji-mart-skin-swatches-opened":r.opened})},[(c(),h(k,null,A(6,n=>m("span",{key:n,class:E({"emoji-mart-skin-swatch":!0,"emoji-mart-skin-swatch-selected":t.skin==n})},[m("span",{class:E("emoji-mart-skin emoji-mart-skin-tone-"+n),onClick:a=>o.onClick(n)},null,10,pt)],2)),64))],2)}const gt=x(ut,[["render",jt]]),wt={props:{data:{type:Object,required:!0},title:{type:String,required:!0},emoji:{type:[String,Object]},idleEmoji:{type:[String,Object],required:!0},showSkinTones:{type:Boolean,default:!0},emojiProps:{type:Object,required:!0},skinProps:{type:Object,required:!0},onSkinChange:{type:Function,required:!0}},computed:{emojiData(){return this.emoji?this.emoji:{}},emojiShortNames(){return this.emojiData.short_names},emojiEmoticons(){return this.emojiData.emoticons}},components:{Emoji:K,Skins:gt}},vt={class:"emoji-mart-preview"},ft={class:"emoji-mart-preview-emoji"},yt={class:"emoji-mart-preview-data"},_t={class:"emoji-mart-preview-name"},kt={class:"emoji-mart-preview-shortnames"},Ct={class:"emoji-mart-preview-emoticons"},Et={class:"emoji-mart-preview-emoji"},St={class:"emoji-mart-preview-data"},bt={class:"emoji-mart-title-label"},xt={key:0,class:"emoji-mart-preview-skins"};function Pt(i,e,t,s,r,o){const n=j("emoji"),a=j("skins");return c(),h("div",vt,[t.emoji?(c(),h(k,{key:0},[m("div",ft,[v(n,{data:t.data,emoji:t.emoji,native:t.emojiProps.native,skin:t.emojiProps.skin,set:t.emojiProps.set},null,8,["data","emoji","native","skin","set"])]),m("div",yt,[m("div",_t,_(t.emoji.name),1),m("div",kt,[(c(!0),h(k,null,A(o.emojiShortNames,l=>(c(),h("span",{key:l,class:"emoji-mart-preview-shortname"},":"+_(l)+":",1))),128))]),m("div",Ct,[(c(!0),h(k,null,A(o.emojiEmoticons,l=>(c(),h("span",{key:l,class:"emoji-mart-preview-emoticon"},_(l),1))),128))])])],64)):(c(),h(k,{key:1},[m("div",Et,[v(n,{data:t.data,emoji:t.idleEmoji,native:t.emojiProps.native,skin:t.emojiProps.skin,set:t.emojiProps.set},null,8,["data","emoji","native","skin","set"])]),m("div",St,[m("span",bt,_(t.title),1)]),t.showSkinTones?(c(),h("div",xt,[v(a,{skin:t.skinProps.skin,onChange:e[0]||(e[0]=l=>t.onSkinChange(l))},null,8,["skin"])])):C("",!0)],64))])}const At=x(wt,[["render",Pt]]),Ot={props:{data:{type:Object,required:!0},i18n:{type:Object,required:!0},autoFocus:{type:Boolean,default:!1},onSearch:{type:Function,required:!0},onArrowLeft:{type:Function,required:!1},onArrowRight:{type:Function,required:!1},onArrowDown:{type:Function,required:!1},onArrowUp:{type:Function,required:!1},onEnter:{type:Function,required:!1}},emits:["search","enter","arrowUp","arrowDown","arrowRight","arrowLeft"],data(){return{value:""}},computed:{emojiIndex(){return this.data}},watch:{value(){this.$emit("search",this.value)}},methods:{clear(){this.value=""}},mounted(){let i=this.$el.querySelector("input");this.autoFocus&&i.focus()}},Ft={class:"emoji-mart-search"},Mt=["placeholder"];function It(i,e,t,s,r,o){return c(),h("div",Ft,[Y(m("input",{type:"text",placeholder:t.i18n.search,role:"textbox","aria-autocomplete":"list","aria-owns":"emoji-mart-list","aria-label":"Search for an emoji","aria-describedby":"emoji-mart-search-description",onKeydown:[e[0]||(e[0]=y(n=>i.$emit("arrowLeft",n),["left"])),e[1]||(e[1]=y(()=>i.$emit("arrowRight"),["right"])),e[2]||(e[2]=y(()=>i.$emit("arrowDown"),["down"])),e[3]||(e[3]=y(n=>i.$emit("arrowUp",n),["up"])),e[4]||(e[4]=y(()=>i.$emit("enter"),["enter"]))],"onUpdate:modelValue":e[5]||(e[5]=n=>r.value=n)},null,40,Mt),[[ue,r.value]]),e[6]||(e[6]=m("span",{class:"hidden",id:"emoji-picker-search-description"},"Use the left, right, up and down arrow keys to navigate the emoji search results.",-1))])}const Tt=x(Ot,[["render",It]]);var Lt=typeof window<"u";Lt&&(function(){for(var i=0,e=["ms","moz","webkit","o"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(s,r){var o=new Date().getTime(),n=Math.max(0,16-(o-i)),a=window.setTimeout(function(){s(o+n)},n);return i=o+n,a}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(s){clearTimeout(s)})})();class zt{constructor(e){this._vm=e,this._data=e.data,this._perLine=e.perLine,this._categories=[],this._categories.push(...this._data.categories()),this._categories=this._categories.filter(t=>t.emojis.length>0),this._categories[0].first=!0,Object.freeze(this._categories),this.activeCategory=this._categories[0],this.searchEmojis=null,this.previewEmoji=null,this.previewEmojiCategoryIdx=0,this.previewEmojiIdx=-1}onScroll(){const e=this._vm.$refs.scroll;if(!e)return;const t=e.scrollTop;let s=this.filteredCategories[0];for(let r=0,o=this.filteredCategories.length;r<o;r++){let n=this.filteredCategories[r],a=this._vm.getCategoryComponent(r);if(a&&a.$el.offsetTop-50>t)break;s=n}this.activeCategory=s}get allCategories(){return this._categories}get filteredCategories(){return this.searchEmojis?[{id:"search",name:"Search",emojis:this.searchEmojis}]:this._categories.filter(e=>e.emojis.length>0)}get previewEmojiCategory(){return this.previewEmojiCategoryIdx>=0?this.filteredCategories[this.previewEmojiCategoryIdx]:null}onAnchorClick(e){if(this.searchEmojis)return;let t=this.filteredCategories.indexOf(e),s=this._vm.getCategoryComponent(t),r=()=>{if(s){let o=s.$el.offsetTop;e.first&&(o=0),this._vm.$refs.scroll.scrollTop=o}};this._vm.infiniteScroll?r():this.activeCategory=this.filteredCategories[t]}onSearch(e){let t=this._data.search(e,this.maxSearchResults);this.searchEmojis=t,this.previewEmojiCategoryIdx=0,this.previewEmojiIdx=0,this.updatePreviewEmoji()}onEmojiEnter(e){this.previewEmoji=e,this.previewEmojiIdx=-1,this.previewEmojiCategoryIdx=-1}onEmojiLeave(e){this.previewEmoji=null}onArrowLeft(){this.previewEmojiIdx>0?this.previewEmojiIdx-=1:(this.previewEmojiCategoryIdx-=1,this.previewEmojiCategoryIdx<0?this.previewEmojiCategoryIdx=0:this.previewEmojiIdx=this.filteredCategories[this.previewEmojiCategoryIdx].emojis.length-1),this.updatePreviewEmoji()}onArrowRight(){this.previewEmojiIdx<this.emojisLength(this.previewEmojiCategoryIdx)-1?this.previewEmojiIdx+=1:(this.previewEmojiCategoryIdx+=1,this.previewEmojiCategoryIdx>=this.filteredCategories.length?this.previewEmojiCategoryIdx=this.filteredCategories.length-1:this.previewEmojiIdx=0),this.updatePreviewEmoji()}onArrowDown(){if(this.previewEmojiIdx==-1)return this.onArrowRight();const e=this.filteredCategories[this.previewEmojiCategoryIdx].emojis.length;let t=this._perLine;this.previewEmojiIdx+t>e&&(t=e%this._perLine);for(let s=0;s<t;s++)this.onArrowRight();this.updatePreviewEmoji()}onArrowUp(){let e=this._perLine;this.previewEmojiIdx-e<0&&(this.previewEmojiCategoryIdx>0?e=this.filteredCategories[this.previewEmojiCategoryIdx-1].emojis.length%this._perLine:e=0);for(let t=0;t<e;t++)this.onArrowLeft();this.updatePreviewEmoji()}updatePreviewEmoji(){this.previewEmoji=this.filteredCategories[this.previewEmojiCategoryIdx].emojis[this.previewEmojiIdx],this._vm.$nextTick(()=>{const e=this._vm.$refs.scroll,t=e.querySelector(".emoji-mart-emoji-selected"),s=e.offsetTop-e.offsetHeight;t&&t.offsetTop+t.offsetHeight>s+e.scrollTop&&(e.scrollTop+=t.offsetHeight),t&&t.offsetTop<e.scrollTop&&(e.scrollTop-=t.offsetHeight)})}emojisLength(e){return e==-1?0:this.filteredCategories[e].emojis.length}}const Nt={search:"Search",notfound:"No Emoji Found",categories:{search:"Search Results",recent:"Frequently Used",smileys:"Smileys & Emotion",people:"People & Body",nature:"Animals & Nature",foods:"Food & Drink",activity:"Activity",places:"Travel & Places",objects:"Objects",symbols:"Symbols",flags:"Flags",custom:"Custom"}},$t={props:{...tt,data:{type:Object,required:!0}},emits:["select","skin-change"],data(){return{activeSkin:this.skin||F.get("skin")||this.defaultSkin,view:new zt(this)}},computed:{customStyles(){return{width:this.calculateWidth+"px",...this.pickerStyles}},emojiProps(){return{native:this.native,skin:this.activeSkin,set:this.set,emojiTooltip:this.emojiTooltip,emojiSize:this.emojiSize,selectedEmoji:this.view.previewEmoji,selectedEmojiCategory:this.view.previewEmojiCategory,onEnter:this.onEmojiEnter.bind(this),onLeave:this.onEmojiLeave.bind(this),onClick:this.onEmojiClick.bind(this)}},skinProps(){return{skin:this.activeSkin}},calculateWidth(){return this.perLine*(this.emojiSize+12)+12+2+Je()},filteredCategories(){return this.view.filteredCategories},mergedI18n(){return Object.freeze(ae(Nt,this.i18n))},idleEmoji(){try{return this.data.emoji(this.emoji)}catch(i){return console.error("Default preview emoji `"+this.emoji+"` is not available, check the Picker `emoji` property"),console.error(i),this.data.firstEmoji()}},isSearching(){return this.view.searchEmojis!=null}},watch:{skin(){this.onSkinChange(this.skin)}},methods:{onScroll(){this.infiniteScroll&&!this.waitingForPaint&&(this.waitingForPaint=!0,window.requestAnimationFrame(this.onScrollPaint.bind(this)))},onScrollPaint(){this.waitingForPaint=!1,this.view.onScroll()},onAnchorClick(i){this.view.onAnchorClick(i)},onSearch(i){this.view.onSearch(i)},onEmojiEnter(i){this.view.onEmojiEnter(i)},onEmojiLeave(i){this.view.onEmojiLeave(i)},onArrowLeft(i){const e=this.view.previewEmojiIdx;this.view.onArrowLeft(),i&&this.view.previewEmojiIdx!==e&&i.preventDefault()},onArrowRight(){this.view.onArrowRight()},onArrowDown(){this.view.onArrowDown()},onArrowUp(i){this.view.onArrowUp(),i.preventDefault()},onEnter(){this.view.previewEmoji&&(this.$emit("select",this.view.previewEmoji),U.add(this.view.previewEmoji))},onEmojiClick(i){this.$emit("select",i),U.add(i)},onTextSelect(i){i.stopPropagation()},onSkinChange(i){this.activeSkin=i,F.update({skin:i}),this.$emit("skin-change",i)},getCategoryComponent(i){let e=this.$refs["categories_"+i];return e&&"0"in e?e[0]:e}},components:{Anchors:Ue,Category:dt,Preview:At,Search:Tt}},qt={key:0,class:"emoji-mart-bar emoji-mart-bar-anchors"},Bt={id:"emoji-mart-list",ref:"scrollContent",role:"listbox","aria-expanded":"true"},Ht={key:0,class:"emoji-mart-bar emoji-mart-bar-preview"};function Rt(i,e,t,s,r,o){const n=j("anchors"),a=j("search"),l=j("category"),g=j("preview");return c(),h("section",{class:"emoji-mart emoji-mart-static",style:O(o.customStyles)},[i.showCategories?(c(),h("div",qt,[v(n,{data:t.data,i18n:o.mergedI18n,color:i.color,categories:r.view.allCategories,"active-category":r.view.activeCategory,onClick:o.onAnchorClick},null,8,["data","i18n","color","categories","active-category","onClick"])])):C("",!0),T(i.$slots,"searchTemplate",{data:t.data,i18n:i.i18n,autoFocus:i.autoFocus,onSearch:o.onSearch},()=>[i.showSearch?(c(),L(a,{key:0,ref:"search",data:t.data,i18n:o.mergedI18n,"auto-focus":i.autoFocus,"on-search":o.onSearch,onSearch:o.onSearch,onArrowLeft:o.onArrowLeft,onArrowRight:o.onArrowRight,onArrowDown:o.onArrowDown,onArrowUp:o.onArrowUp,onEnter:o.onEnter,onSelect:o.onTextSelect},null,8,["data","i18n","auto-focus","on-search","onSearch","onArrowLeft","onArrowRight","onArrowDown","onArrowUp","onEnter","onSelect"])):C("",!0)]),m("div",{role:"tabpanel",class:"emoji-mart-scroll",ref:"scroll",onScroll:e[0]||(e[0]=(...p)=>o.onScroll&&o.onScroll(...p))},[m("div",Bt,[T(i.$slots,"customCategory"),(c(!0),h(k,null,A(r.view.filteredCategories,(p,S)=>Y((c(),L(l,{ref_for:!0,ref:"categories_"+S,key:p.id,data:t.data,i18n:o.mergedI18n,id:p.id,name:p.name,emojis:p.emojis,"emoji-props":o.emojiProps},null,8,["data","i18n","id","name","emojis","emoji-props"])),[[pe,i.infiniteScroll||p==r.view.activeCategory||o.isSearching]])),128))],512)],544),T(i.$slots,"previewTemplate",{data:t.data,title:i.title,emoji:r.view.previewEmoji,idleEmoji:o.idleEmoji,showSkinTones:i.showSkinTones,emojiProps:o.emojiProps,skinProps:o.skinProps,onSkinChange:o.onSkinChange},()=>[i.showPreview?(c(),h("div",Ht,[v(g,{data:t.data,title:i.title,emoji:r.view.previewEmoji,"idle-emoji":o.idleEmoji,"show-skin-tones":i.showSkinTones,"emoji-props":o.emojiProps,"skin-props":o.skinProps,"on-skin-change":o.onSkinChange},null,8,["data","title","emoji","idle-emoji","show-skin-tones","emoji-props","skin-props","on-skin-change"])])):C("",!0)])],4)}const Dt=x($t,[["render",Rt]]),Ut={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Vt=["aria-hidden","aria-label"],Wt=["fill","width","height"],Kt={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},Gt={key:0};function Jt(i,e,t,s,r,o){return c(),h("span",ee(i.$attrs,{"aria-hidden":t.title?null:"true","aria-label":t.title,class:"material-design-icon circle-icon",role:"img",onClick:e[0]||(e[0]=n=>i.$emit("click",n))}),[(c(),h("svg",{fill:t.fillColor,class:"material-design-icon__svg",width:t.size,height:t.size,viewBox:"0 0 24 24"},[m("path",Kt,[t.title?(c(),h("title",Gt,_(t.title),1)):C("",!0)])],8,Wt))],16,Vt)}const Zt=te(Ut,[["render",Jt]]);ke(be,Se,Ee,Ce);let B;const Qt={search:d("Search emoji"),notfound:d("No emoji found"),categories:{search:d("Search results"),recent:d("Frequently used"),smileys:d("Smileys & Emotion"),people:d("People & Body"),nature:d("Animals & Nature"),foods:d("Food & Drink"),activity:d("Activities"),places:d("Travel & Places"),objects:d("Objects"),symbols:d("Symbols"),flags:d("Flags"),custom:d("Custom")}},X=[new P(255,222,52,d("Neutral skin color")),new P(228,205,166,d("Light skin tone")),new P(250,221,192,d("Medium light skin tone")),new P(174,129,87,d("Medium skin tone")),new P(158,113,88,d("Medium dark skin tone")),new P(96,79,69,d("Dark skin tone"))],Xt={name:"NcEmojiPicker",components:{IconCircle:Zt,NcButton:Pe,NcColorPicker:xe,NcPopover:fe,NcTextField:Ae,Emoji:K,Picker:Dt},props:{activeSet:{type:String,default:"native"},showPreview:{type:Boolean,default:!1},allowUnselect:{type:Boolean,default:!1},selectedEmoji:{type:String,default:""},previewFallbackEmoji:{type:String,default:"grinning"},previewFallbackName:{type:String,default:d("Pick an emoji")},closeOnSelect:{type:Boolean,default:!0},container:{type:[Boolean,String,Object,Element],default:"body"}},emits:["select","selectData","unselect"],setup(){return B||(B=new Xe(me)),{emojiIndex:B,skinTonePalette:X,i18n:Qt}},data(){const i=he();return{currentColor:X[i-1],currentSkinTone:i,search:"",open:!1}},computed:{native(){return this.activeSet==="native"}},created(){_e(()=>this.open)},methods:{t:d,clearSearch(){this.search="",this.$refs.search.focus()},onChangeSkinTone(i){const e=this.skinTonePalette.findIndex(t=>t.color.toLowerCase()===i.toLowerCase());e>-1&&(this.currentSkinTone=e+1,this.currentColor=this.skinTonePalette[e],ce(this.currentSkinTone))},select(i){this.$emit("select",i.native),this.$emit("selectData",i),this.closeOnSelect&&(this.open=!1)},unselect(){this.$emit("unselect")},afterShow(){this.$refs.search.focus()},afterHide(){(!document.activeElement||this.$refs.picker.$el.contains(document.activeElement)||!ye(document.activeElement))&&this.$refs.popover.$el.querySelector('button, [role="button"]')?.focus()},handleTabNavigationSkippingEmojis(i){const e=i.target,t=Array.from(this.$refs.picker.$el.querySelectorAll("button:not(.emoji-mart-emoji), input"));i.shiftKey?(t.findLast(s=>e.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_PRECEDING)||t.at(-1)).focus():(t.find(s=>e.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING)||t[0]).focus()},async callPickerArrowHandlerWithScrollFix(i,e){this.$refs.picker[i](e),await this.$nextTick(),this.$refs.picker.$el.querySelector(".emoji-mart-emoji-selected")?.scrollIntoView({block:"center",inline:"center"})}}},Yt={class:"nc-emoji-picker-container"},ei={class:"search__wrapper"},ti={class:"emoji-mart-category-label"},ii={class:"emoji-mart-category-label"};function oi(i,e,t,s,r,o){const n=j("NcTextField"),a=j("IconCircle"),l=j("NcButton"),g=j("NcColorPicker"),p=j("Emoji"),S=j("Picker"),M=j("NcPopover");return c(),L(M,{ref:"popover",shown:r.open,"onUpdate:shown":e[6]||(e[6]=w=>r.open=w),container:t.container,popupRole:"dialog",noFocusTrap:!0,onAfterShow:o.afterShow,onAfterHide:o.afterHide},{trigger:b(w=>[T(i.$slots,"default",we(ve(w)),void 0,!0)]),default:b(()=>[m("div",Yt,[v(S,ee({ref:"picker",color:"var(--color-primary-element)",data:s.emojiIndex,emoji:t.previewFallbackEmoji,i18n:s.i18n,native:o.native,emojiSize:20,perLine:8,pickerStyles:{width:"320px"},showPreview:t.showPreview,skin:r.currentSkinTone,showSkinTones:!1,title:t.previewFallbackName,role:"dialog","aria-modal":"true","aria-label":o.t("Emoji picker")},i.$attrs,{onKeydown:y(je(o.handleTabNavigationSkippingEmojis,["prevent"]),["tab"]),onSelect:o.select}),ge({searchTemplate:b(({onSearch:w})=>[m("div",ei,[v(n,{ref:"search",modelValue:r.search,"onUpdate:modelValue":[e[0]||(e[0]=u=>r.search=u),u=>w(r.search)],class:"search",label:o.t("Search"),labelVisible:!0,placeholder:s.i18n.search,trailingButtonIcon:"close",trailingButtonLabel:o.t("Clear search"),showTrailingButton:r.search!=="",onKeydown:[e[1]||(e[1]=y(u=>o.callPickerArrowHandlerWithScrollFix("onArrowLeft",u),["left"])),e[2]||(e[2]=y(u=>o.callPickerArrowHandlerWithScrollFix("onArrowRight",u),["right"])),e[3]||(e[3]=y(u=>o.callPickerArrowHandlerWithScrollFix("onArrowDown",u),["down"])),e[4]||(e[4]=y(u=>o.callPickerArrowHandlerWithScrollFix("onArrowUp",u),["up"])),e[5]||(e[5]=y(u=>i.$refs.picker.onEnter(u),["enter"]))],onTrailingButtonClick:u=>{o.clearSearch(),w("")}},null,8,["modelValue","label","placeholder","trailingButtonLabel","showTrailingButton","onTrailingButtonClick","onUpdate:modelValue"]),v(g,{paletteOnly:"",container:t.container,palette:s.skinTonePalette,modelValue:r.currentColor.color,"onUpdate:modelValue":o.onChangeSkinTone},{default:b(()=>[v(l,{"aria-label":o.t("Skin tone"),variant:"tertiary-no-background"},{icon:b(()=>[v(a,{style:O({color:r.currentColor.color}),title:r.currentColor.name,size:20},null,8,["style","title"])]),_:1},8,["aria-label"])]),_:1},8,["container","palette","modelValue","onUpdate:modelValue"])])]),_:2},[t.allowUnselect&&t.selectedEmoji?{name:"customCategory",fn:b(()=>[m("div",ti,[m("h3",ii,_(o.t("Selected")),1)]),v(p,{class:"emoji-selected",data:s.emojiIndex,emoji:t.selectedEmoji,native:"",size:32,onClick:o.unselect},null,8,["data","emoji","onClick"]),v(p,{class:"emoji-delete",data:s.emojiIndex,emoji:":x:",native:"",size:10,onClick:o.unselect},null,8,["data","onClick"])]),key:"0"}:void 0]),1040,["data","emoji","i18n","native","showPreview","skin","title","aria-label","onKeydown","onSelect"])])]),_:3},8,["shown","container","onAfterShow","onAfterHide"])}const ui=te(Xt,[["render",oi],["__scopeId","data-v-11acdb77"]]);export{ui as N};
//# sourceMappingURL=NcEmojiPicker-UTxgju3f-C4HVb0jz.chunk.mjs.map