@3r1s_s/erisui 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/erisui.js +17 -17
- package/dist/erisui.mjs +145 -184
- package/package.json +3 -2
package/dist/erisui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(p,
|
|
1
|
+
(function(p,b){typeof exports=="object"&&typeof module<"u"?b(exports):typeof define=="function"&&define.amd?define(["exports"],b):(p=typeof globalThis<"u"?globalThis:p||self,b(p.eui={}))})(this,(function(p){"use strict";class b extends HTMLElement{static get observedAttributes(){return["size","border-radius","name","color"]}constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=`
|
|
2
2
|
<style>
|
|
3
3
|
:host {
|
|
4
4
|
aspect-ratio: 1 / 1;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<slot></slot>
|
|
44
44
|
<span id="initials"></span>
|
|
45
45
|
</div>
|
|
46
|
-
`}connectedCallback(){this.avatar=this.shadowRoot.querySelector(".avatar"),this.initials=this.shadowRoot.querySelector("#initials");const t=this.shadowRoot.querySelector("slot"),i=t&&t.assignedNodes().length>0;if(i){const e=t.assignedNodes()[0];e&&e.tagName==="IMG"&&(this.initials.style.display="none",this.avatar.style.backgroundColor="transparent")}else this.hasAttribute("color")&&(this.avatar.style.backgroundColor=this.getAttribute("color"));if(this.hasAttribute("color")&&(this.avatar.style.backgroundColor=this.getAttribute("color")),this.hasAttribute("size")){const e=this.getAttribute("size");this.avatar.style.width=e+"px",this.avatar.style.height=e+"px",this.initials.style.fontSize=e/2+"px"}if(this.hasAttribute("border-radius")&&(this.avatar.style.borderRadius=this.getAttribute("border-radius")+"px"),this.hasAttribute("name")&&(this.avatar.title=this.getAttribute("name")),!i&&this.hasAttribute("name")){const n=this.getAttribute("name").trim().split(/\s+/);let s="";n.length===1?s=n[0][0]||"":s=(n[0][0]||"")+(n[n.length-1][0]||""),this.initials.textContent=s.toUpperCase()}}}customElements.define("eui-avatar",C);const y={"add-home-ios":'<svg xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 24 24" height="28" width="20" class="icon"><path id="icon-add" d="M16.72 7.28c.86.86 1.02 2.03 1.02 3.54v6.37c0 1.52-.16 2.69-1.02 3.54-.85.85-2.03 1.01-3.54 1.01H6.81c-1.51 0-2.69-.16-3.55-1.01-.85-.85-1-2.02-1-3.54V10.8c0-1.49.15-2.66 1.01-3.52.84-.84 2.03-1.01 3.52-1.01h6.39c1.51 0 2.69.16 3.54 1.01Zm-.61 3.32c0-.87-.11-1.66-.57-2.12-.47-.47-1.27-.59-2.13-.59H6.6c-.87 0-1.69.12-2.15.58-.46.47-.57 1.26-.57 2.14v6.81c0 .86.11 1.65.58 2.12.46.46 1.27.58 2.12.58h6.83c.86 0 1.66-.12 2.13-.58.45-.47.57-1.26.57-2.12V10.6ZM6.17 14.01c0-.47.31-.79.78-.79H9.22V10.94c0-.46.32-.78.77-.78.46 0 .79.32.79.78v2.28h2.28c.46 0 .78.32.78.79 0 .45-.33.76-.78.76H10.78v2.28c0 .46-.33.78-.79.78-.45 0-.77-.32-.77-.78V14.77H6.95c-.46 0-.78-.31-.78-.76Z" fill="currentColor"></path></svg>',add:'<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" style="transform: rotate(45deg)"><path d="M14.3527 12.0051L19.8447 6.51314C20.496 5.86247 20.496 4.80714 19.8447 4.15647C19.1933 3.50514 18.1387 3.50514 17.488 4.15647L11.996 9.64847L6.50401 4.15647C5.85334 3.50514 4.79734 3.50514 4.14734 4.15647C3.49601 4.80714 3.49601 5.86247 4.14734 6.51314L9.63934 12.0051L4.13401 17.5105C3.48267 18.1618 3.48267 19.2165 4.13401 19.8671C4.45934 20.1925 4.88601 20.3551 5.31267 20.3551C5.73934 20.3551 6.16601 20.1925 6.49134 19.8671L11.9967 14.3611L17.4887 19.8531C17.814 20.1785 18.2407 20.3411 18.6673 20.3411C19.094 20.3411 19.52 20.1785 19.846 19.8531C20.4973 19.2018 20.4973 18.1471 19.846 17.4965L14.3527 12.0051Z" fill="currentColor"/></svg>',alert:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C18.6274 24 24 18.627 24 12C24 5.37305 18.6274 0 12 0C5.37256 0 0 5.37305 0 12C0 18.627 5.37256 24 12 24ZM10.8389 14.1006H13.1992L13.7593 5.2002H10.2593L10.8389 14.1006ZM10.5991 18.6406C10.959 18.9873 11.4258 19.1602 11.999 19.1602C12.5723 19.1602 13.0322 18.9873 13.3789 18.6406C13.7393 18.2803 13.9189 17.8135 13.9189 17.2402C13.9189 16.667 13.7393 16.207 13.3789 15.8604C13.0322 15.5 12.5723 15.3203 11.999 15.3203C11.4258 15.3203 10.959 15.4932 10.5991 15.8398C10.2524 16.1865 10.0791 16.6533 10.0791 17.2402C10.0791 17.8135 10.2524 18.2803 10.5991 18.6406Z" fill="currentColor"/></svg>',arrow:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path d="M9.3 5.3a1 1 0 0 0 0 1.4l5.29 5.3-5.3 5.3a1 1 0 1 0 1.42 1.4l6-6a1 1 0 0 0 0-1.4l-6-6a1 1 0 0 0-1.42 0Z"></path></svg>',attachment:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 12 12" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3 1C1.89543 1 1 1.89543 1 3V9C1 10.1046 1.89543 11 3 11H9C10.1046 11 11 10.1046 11 9V3C11 1.89543 10.1046 1 9 1H3ZM5.50011 5C5.50011 5.55228 5.05239 6 4.50011 6C3.94782 6 3.50011 5.55228 3.50011 5C3.50011 4.44772 3.94782 4 4.50011 4C5.05239 4 5.50011 4.44772 5.50011 5ZM7.24423 6.34177C7.12458 6.17426 6.87563 6.17426 6.75599 6.34177L5.67935 7.84906L5.23437 7.29283C5.11427 7.1427 4.88594 7.1427 4.76585 7.29283L3.39003 9.01259C3.23289 9.20902 3.37274 9.5 3.62429 9.5H8.91715C9.16116 9.5 9.3031 9.22419 9.16127 9.02563L7.24423 6.34177Z" fill="currentColor"/></svg>',back:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" style="transform: rotate(180deg)"><path d="M9.3 5.3a1 1 0 0 0 0 1.4l5.29 5.3-5.3 5.3a1 1 0 1 0 1.42 1.4l6-6a1 1 0 0 0 0-1.4l-6-6a1 1 0 0 0-1.42 0Z"></path></svg>',calendar:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6C3 5.45 3.19583 4.97917 3.5875 4.5875C3.97917 4.19583 4.45 4 5 4H6V2H8V4H16V2H18V4H19C19.55 4 20.0208 4.19583 20.4125 4.5875C20.8042 4.97917 21 5.45 21 6V20C21 20.55 20.8042 21.0208 20.4125 21.4125C20.0208 21.8042 19.55 22 19 22H5ZM5 20H19V10H5V20ZM5 8H19V6H5V8Z" fill="currentColor"/></svg>',check:'<svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.86368 9.12226C3.82463 9.16131 3.76131 9.16131 3.72226 9.12226L0.146522 5.54652C-0.0487403 5.35126 -0.0487401 5.03468 0.146522 4.83942L0.839416 4.14652C1.03468 3.95126 1.35126 3.95126 1.54652 4.14652L3.72226 6.32226C3.76131 6.36131 3.82463 6.36131 3.86368 6.32226L10.0394 0.146522C10.2347 -0.0487398 10.5513 -0.0487399 10.7465 0.146522L11.4394 0.839416C11.6347 1.03468 11.6347 1.35126 11.4394 1.54652L3.86368 9.12226Z" fill="currentColor"/></svg>',close:'<svg focusable="false" width="24" height="24" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z" fill="currentColor"></path></svg>',commands:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.64098 1.64245C0.664551 2.61888 0.664551 4.19042 0.664551 7.3335V8.66699C0.664551 11.8101 0.664551 13.3816 1.64098 14.358C2.61741 15.3345 4.18895 15.3345 7.33203 15.3345H8.66553C11.8086 15.3345 13.3801 15.3345 14.3566 14.358C15.333 13.3816 15.333 11.8101 15.333 8.66699V7.3335C15.333 4.19042 15.333 2.61888 14.3566 1.64245C13.3801 0.666016 11.8086 0.666016 8.66553 0.666016H7.33203C4.18895 0.666016 2.61741 0.666016 1.64098 1.64245ZM8.88973 3.11032C8.52366 3.11032 8.20252 3.35442 8.10454 3.70713L5.84089 11.8563C5.69665 12.3755 6.08715 12.8893 6.62608 12.8893H7.10764C7.47371 12.8893 7.79485 12.6452 7.89283 12.2925L10.1565 4.14335C10.3007 3.62409 9.91021 3.11032 9.37129 3.11032H8.88973Z" fill="currentColor"/></svg>',comment:'<svg xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 18 18" height="18" width="18"><path d="M15.376 13.2177L16.2861 16.7955L12.7106 15.8848C12.6781 15.8848 12.6131 15.8848 12.5806 15.8848C11.3779 16.5678 9.94767 16.8931 8.41995 16.7955C4.94194 16.5353 2.08152 13.7381 1.72397 10.2578C1.2689 5.63919 5.13697 1.76863 9.75264 2.22399C13.2307 2.58177 16.0261 5.41151 16.2861 8.92429C16.4161 10.453 16.0586 11.8841 15.376 13.0876C15.376 13.1526 15.376 13.1852 15.376 13.2177Z" stroke-linejoin="round" stroke-width="1.25" stroke="currentColor" fill="none"></path></svg>',copy:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M2 11C2 11.7956 2.31607 12.5587 2.87868 13.1213C3.44129 13.6839 4.20435 14 5 14H11C11.7956 14 12.5587 13.6839 13.1213 13.1213C13.6839 12.5587 14 11.7956 14 11V8H11.75C10.7554 8 9.80161 7.60491 9.09835 6.90165C8.39509 6.19839 8 5.24456 8 4.25V2H5C4.20435 2 3.44129 2.31607 2.87868 2.87868C2.31607 3.44129 2 4.20435 2 5V11Z" fill="currentColor"/><path d="M13.7975 6.49965C13.6881 6.25457 13.5357 6.03105 13.3475 5.83965L10.16 2.65965C9.96921 2.4688 9.74565 2.31384 9.5 2.20215V4.24965C9.5 4.54512 9.5582 4.8377 9.67127 5.11069C9.78434 5.38367 9.95008 5.63171 10.159 5.84064C10.3679 6.04957 10.616 6.2153 10.889 6.32838C11.1619 6.44145 11.4545 6.49965 11.75 6.49965H13.7975Z" fill="currentColor"/></svg>',copyLarge:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16" fill="none"><path d="M2 11C2 11.7956 2.31607 12.5587 2.87868 13.1213C3.44129 13.6839 4.20435 14 5 14H11C11.7956 14 12.5587 13.6839 13.1213 13.1213C13.6839 12.5587 14 11.7956 14 11V8H11.75C10.7554 8 9.80161 7.60491 9.09835 6.90165C8.39509 6.19839 8 5.24456 8 4.25V2H5C4.20435 2 3.44129 2.31607 2.87868 2.87868C2.31607 3.44129 2 4.20435 2 5V11Z" fill="currentColor"/><path d="M13.7975 6.49965C13.6881 6.25457 13.5357 6.03105 13.3475 5.83965L10.16 2.65965C9.96921 2.4688 9.74565 2.31384 9.5 2.20215V4.24965C9.5 4.54512 9.5582 4.8377 9.67127 5.11069C9.78434 5.38367 9.95008 5.63171 10.159 5.84064C10.3679 6.04957 10.616 6.2153 10.889 6.32838C11.1619 6.44145 11.4545 6.49965 11.75 6.49965H13.7975Z" fill="currentColor"/></svg>',cross:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M14.3527 12.0051L19.8447 6.51314C20.496 5.86247 20.496 4.80714 19.8447 4.15647C19.1933 3.50514 18.1387 3.50514 17.488 4.15647L11.996 9.64847L6.50401 4.15647C5.85334 3.50514 4.79734 3.50514 4.14734 4.15647C3.49601 4.80714 3.49601 5.86247 4.14734 6.51314L9.63934 12.0051L4.13401 17.5105C3.48267 18.1618 3.48267 19.2165 4.13401 19.8671C4.45934 20.1925 4.88601 20.3551 5.31267 20.3551C5.73934 20.3551 6.16601 20.1925 6.49134 19.8671L11.9967 14.3611L17.4887 19.8531C17.814 20.1785 18.2407 20.3411 18.6673 20.3411C19.094 20.3411 19.52 20.1785 19.846 19.8531C20.4973 19.2018 20.4973 18.1471 19.846 17.4965L14.3527 12.0051Z" fill="currentColor"/></svg>',crown:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M6.51284 21H17.4872C18.3315 21 19.1412 20.6761 19.7382 20.0996C20.3352 19.5231 20.6706 18.7412 20.6706 17.9259C20.6706 17.3526 20.1718 16.9011 19.6094 16.9011H4.39056C3.82819 16.9011 3.32942 17.3526 3.32942 17.9259C3.32942 18.7412 3.66481 19.5231 4.26182 20.0996C4.85883 20.6761 5.66854 21 6.51284 21Z" fill="currentColor"/><path d="M16.8946 9.38729L20.2857 7.10763L21.3073 6.38758C21.4871 6.2591 21.7043 6.18876 21.9279 6.18661C22.1516 6.18446 22.3702 6.25061 22.5526 6.37561C22.735 6.50061 22.8719 6.67808 22.9436 6.88266C22.9816 6.99116 23.0003 7.10434 22.9996 7.2175C23.0031 7.34228 22.9829 7.46738 22.9393 7.5865L22.8716 7.77292L20.8934 14.1242C20.7621 14.5427 20.3382 14.8486 19.8853 14.8517H4.11466C3.6618 14.8486 3.2379 14.5427 3.10658 14.1242L1.12837 7.77291L1.06072 7.5865C1.01709 7.46738 0.996927 7.34227 1.00038 7.21748C0.999667 7.10433 1.01836 6.99115 1.0564 6.88266C1.12813 6.67808 1.26497 6.50061 1.44737 6.37561C1.62977 6.25061 1.84841 6.18446 2.07206 6.18661C2.29571 6.18876 2.51295 6.2591 2.69273 6.38758L3.71429 7.10764L7.10536 9.38729L10.1517 4.97048C10.5708 4.36283 11.2618 4 12 4C12.7382 4 13.4292 4.36283 13.8483 4.97048L16.8946 9.38729Z" fill="currentColor"/></svg>',dashboard:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 9V3H21V9H13ZM3 13V3H11V13H3ZM13 21V11H21V21H13ZM3 21V15H11V21H3ZM5 11H9V5H5V11ZM15 19H19V13H15V19ZM15 7H19V5H15V7ZM5 19H9V17H5V19Z" fill="currentColor"/></svg>',delete:'<svg width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M15 3.999V2H9V3.999H3V5.999H21V3.999H15Z"></path><path fill="currentColor" d="M5 6.99902V18.999C5 20.101 5.897 20.999 7 20.999H17C18.103 20.999 19 20.101 19 18.999V6.99902H5ZM11 17H9V11H11V17ZM15 17H13V11H15V17Z"></path></svg>',dropdown:'<svg class="dropdown-arrow" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path d="M9.3 5.3a1 1 0 0 0 0 1.4l5.29 5.3-5.3 5.3a1 1 0 1 0 1.42 1.4l6-6a1 1 0 0 0 0-1.4l-6-6a1 1 0 0 0-1.42 0Z"></path></svg>',edit:'<svg width="20" height="20" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M19.2929 9.8299L19.9409 9.18278C21.353 7.77064 21.353 5.47197 19.9409 4.05892C18.5287 2.64678 16.2292 2.64678 14.817 4.05892L14.1699 4.70694L19.2929 9.8299ZM12.8962 5.97688L5.18469 13.6906L10.3085 18.813L18.0201 11.0992L12.8962 5.97688ZM4.11851 20.9704L8.75906 19.8112L4.18692 15.239L3.02678 19.8796C2.95028 20.1856 3.04028 20.5105 3.26349 20.7337C3.48669 20.9569 3.8116 21.046 4.11851 20.9704Z" fill="currentColor"></path></svg>',emoji:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 16 16" fill="none"><path d="M4 9.77778C4 9.77778 5.33333 10.2222 8 10.2222C10.6667 10.2222 12 9.77778 12 9.77778C12 9.77778 11.1111 11.5556 8 11.5556C4.88889 11.5556 4 9.77778 4 9.77778Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16 8C16 12.4184 12.4183 16 8 16C3.58171 16 0 12.4184 0 8C0 3.5816 3.58171 0 8 0C12.4183 0 16 3.5816 16 8ZM8 9.33377C6.38976 9.33377 5.32134 9.14627 4 8.88932C3.69824 8.83116 3.11111 8.88932 3.11111 9.77821C3.11111 11.556 5.15332 13.7782 8 13.7782C10.8462 13.7782 12.8889 11.556 12.8889 9.77821C12.8889 8.88932 12.3018 8.83073 12 8.88932C10.6787 9.14627 9.61024 9.33377 8 9.33377ZM5.33333 7.55556C5.94699 7.55556 6.44444 6.85894 6.44444 6C6.44444 5.14106 5.94699 4.44444 5.33333 4.44444C4.71967 4.44444 4.22222 5.14106 4.22222 6C4.22222 6.85894 4.71967 7.55556 5.33333 7.55556ZM11.7778 6C11.7778 6.85894 11.2803 7.55556 10.6667 7.55556C10.053 7.55556 9.55556 6.85894 9.55556 6C9.55556 5.14106 10.053 4.44444 10.6667 4.44444C11.2803 4.44444 11.7778 5.14106 11.7778 6Z" fill="currentColor"></path></svg>',eye:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.99984 17C15.1545 17 19.3332 11.75 19.3332 10C19.3332 8.25 15.1545 3 9.99984 3C4.84518 3 0.666504 8.25 0.666504 10C0.666504 11.75 4.84518 17 9.99984 17ZM10 15.25C12.8995 15.25 15.25 12.8995 15.25 10C15.25 7.1005 12.8995 4.75 10 4.75C7.1005 4.75 4.75 7.1005 4.75 10C4.75 12.8995 7.1005 15.25 10 15.25Z" fill="currentColor"/><circle cx="10" cy="10" r="3.5" fill="currentColor"/></svg>',group:'<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M6.2692 5.18955C5.81 5.7993 5.08003 6.19339 4.25802 6.19339C2.8684 6.19339 1.74189 5.06688 1.74189 3.67726C1.74189 2.28764 2.8684 1.16113 4.25802 1.16113C5.36535 1.16113 6.30568 1.87635 6.64193 2.87018C6.72765 3.12346 6.77415 3.39507 6.77415 3.67726C6.77415 4.24316 6.58646 4.76654 6.27119 5.1869C6.27053 5.18766 6.26986 5.18879 6.2692 5.18955Z" fill="currentColor"/><path d="M8.46448 9.78859C8.67372 10.3275 8.21584 10.8386 7.63623 10.8386H0.879806C0.300201 10.8386 -0.157681 10.3275 0.0515553 9.78859C0.691645 8.14022 2.3335 6.96758 4.25802 6.96758C5.16386 6.96758 6.00837 7.22804 6.71395 7.67506C6.75789 7.70284 6.80014 7.73063 6.84295 7.75992C7.57395 8.2591 8.14449 8.96431 8.46448 9.78859Z" fill="currentColor"/><path d="M9.21307 10.525C9.16449 10.6686 9.26098 10.8386 9.41266 10.8386H11.2001C11.727 10.8386 12.1433 10.3785 11.9531 9.89368C11.3712 8.41013 9.87858 7.35468 8.12899 7.35468L8.08958 7.35487C7.91833 7.35638 7.8519 7.56883 7.97485 7.68791C8.50096 8.19805 8.91755 8.81669 9.18623 9.50847C9.32307 9.86098 9.31806 10.2139 9.21307 10.525Z" fill="currentColor"/><path d="M6.73068 5.84807C7.23969 5.26874 7.54834 4.5091 7.54834 3.67726C7.54834 3.19604 7.44505 2.73882 7.25934 2.32677C7.2136 2.22527 7.25452 2.1026 7.35971 2.06574C7.47075 2.02681 7.58567 1.996 7.7038 1.97426C7.84169 1.94875 7.98383 1.93533 8.12899 1.93533C9.41172 1.93533 10.4516 2.97527 10.4516 4.25791C10.4516 5.54054 9.41172 6.58049 8.12899 6.58049C7.61261 6.58049 7.13563 6.41208 6.75005 6.12705C6.66046 6.06089 6.65724 5.9318 6.73068 5.84807Z" fill="currentColor"/></svg>',heart:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M22 8.53881C22 5.47978 19.5298 3 16.4831 3C14.6335 3 13.0014 3.91659 12 5.31757C10.9986 3.91659 9.36651 3 7.51747 3C4.47023 3 2 5.47922 2 8.53881C2 8.97212 2.05479 9.39197 2.14873 9.79666C2.91473 14.5749 8.20688 19.6159 12 21C15.7926 19.6159 21.0853 14.5749 21.8502 9.79722C21.9452 9.39253 22 8.97268 22 8.53881Z" fill="currentColor"/></svg>',hide:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.7071 4.70711C21.0976 4.31658 21.0976 3.68342 20.7071 3.29289C20.3166 2.90237 19.6834 2.90237 19.2929 3.29289L17.4154 5.17036C17.4154 5.17033 17.4153 5.17029 17.4152 5.17026L15.691 6.89449C15.6911 6.89453 15.6911 6.89457 15.6912 6.89461L14.1774 8.40837C14.1774 8.40833 14.1773 8.4083 14.1772 8.40826L8.40767 14.1778C8.40771 14.1779 8.40775 14.1779 8.40778 14.178L6.89403 15.6918C6.89398 15.6917 6.89394 15.6916 6.8939 15.6916L4.90219 17.6833C4.90224 17.6833 4.9023 17.6834 4.90235 17.6834L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L20.7071 4.70711ZM11.9998 3.60059C13.6341 3.60059 15.1866 4.04035 16.5865 4.72624L14.9042 6.40847C14.0352 5.95621 13.0474 5.70059 12 5.70059C8.52061 5.70059 5.7 8.52119 5.7 12.0006C5.7 13.048 5.95562 14.0358 6.40788 14.9048L4.20907 17.1036C2.10668 15.2394 0.799805 13.0727 0.799805 12.0006C0.799805 9.90059 5.81422 3.60059 11.9998 3.60059ZM15.9928 10.6939L10.6934 15.9934C11.1046 16.1279 11.5438 16.2006 12 16.2006C14.3196 16.2006 16.2 14.3202 16.2 12.0006C16.2 11.5444 16.1273 11.1052 15.9928 10.6939ZM12 18.3006C10.9521 18.3006 9.96395 18.0447 9.09461 17.5921L7.41223 19.2745C8.81235 19.9606 10.3652 20.4006 11.9998 20.4006C18.1854 20.4006 23.1998 14.1006 23.1998 12.0006C23.1998 10.9284 21.8926 8.76132 19.7898 6.8969L17.5915 9.09519C18.0442 9.96453 18.3 10.9527 18.3 12.0006C18.3 15.48 15.4794 18.3006 12 18.3006ZM13.3053 8.00738L8.0068 13.3059C7.87257 12.895 7.8 12.4563 7.8 12.0006C7.8 9.68099 9.6804 7.80059 12 7.80059C12.4557 7.80059 12.8944 7.87316 13.3053 8.00738Z" fill="currentColor"/></svg>',home:'<svg width="22" height="21" viewBox="0 0 22 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.5258 0.204649C11.2291 -0.0682165 10.7709 -0.0682161 10.4742 0.204649L0.249923 9.68588C-0.266994 10.1612 0.0714693 11.0197 0.775759 11.0197L3.48971 11.0197V18.6923C3.48971 19.542 4.18295 20.2308 5.03811 20.2308H16.9619C17.8171 20.2308 18.5103 19.542 18.5103 18.6923V11.0197L21.2242 11.0197C21.9285 11.0197 22.267 10.1612 21.7501 9.68588L11.5258 0.204649Z" fill="currentColor"/></svg>',inbox:'<svg width="19" height="14" viewBox="0 0 19 14" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_2442_48)"><path d="M2.49023 13.289H15.625C17.2949 13.289 18.1152 12.4687 18.1152 10.8281V6.58008C18.1152 5.81836 17.998 5.4668 17.6465 4.98828L15.1367 1.56055C14.248 0.339844 13.7793 0.0078125 12.334 0.0078125H5.78125C4.3457 0.0078125 3.86719 0.339844 2.97852 1.56055L0.478516 4.98828C0.126953 5.4668 0 5.81836 0 6.58008V10.8281C0 12.4687 0.830078 13.289 2.49023 13.289ZM9.0625 8.73828C7.91992 8.73828 7.23633 7.73243 7.23633 6.86328V6.83399C7.23633 6.46289 7.01172 6.10157 6.5332 6.10157H1.8457C1.5625 6.10157 1.50391 5.86719 1.64062 5.67188L4.3457 1.90235C4.69727 1.4043 5.15625 1.23828 5.69336 1.23828H12.4219C12.959 1.23828 13.4277 1.4043 13.7793 1.90235L16.4746 5.67188C16.6016 5.86719 16.5527 6.10157 16.2695 6.10157H11.582C11.1133 6.10157 10.8887 6.46289 10.8887 6.83399V6.86328C10.8887 7.73243 10.1953 8.73828 9.0625 8.73828Z" fill="currentColor" /></g><defs><clipPath id="clip0_2442_48"><rect width="18.4766" height="13.291" fill="currentColor"/></clipPath></defs></svg>',kit:'<svg width="26" height="28" viewBox="0 0 26 28" xmlns="http://www.w3.org/2000/svg"><path d="m13.118 14.831c0.433 0 1.257-0.024 1.795-0.344l9.151-4.057c0.869-0.59 1.051-1.255 1.067-1.773 0.02-0.662-0.313-1.634-1.181-2.15l-8.515-3.921c-0.537-0.309-2.096-0.552-2.529-0.552-0.444 0-1.958 0.42-2.496 0.73l-8.643 4.034c-0.85 0.602-1.022 1.284-0.951 1.942 0.098 0.887 0.206 0.857 0.889 1.503l9.577 4.212c0.537 0.32 1.391 0.376 1.836 0.376zm-0.12 5.467c0.403 0 1.443-0.068 1.928-0.345l8.858-3.991c0.497-0.3 1.448-1.117 1.382-1.952-0.091-1.138-0.598-1.7-0.948-1.906l-9.22 3.888c-0.454 0.261-1.417 0.478-1.916 0.478-0.542 0-1.539-0.228-1.766-0.362l-9.395-4.012c-0.462 0.022-1.174 0.911-1.201 1.642-0.03 0.761 0.7 1.62 1.135 1.839l9.408 4.384c0.485 0.278 1.322 0.337 1.735 0.337zm0.09 5.344c0.403 0 1.296-0.053 1.781-0.342l9.147-4.299c0.485-0.289 1.129-0.789 1.053-1.879-0.056-0.794-0.071-1.123-0.918-1.765l-9.203 4.113c-0.228 0.134-0.948 0.39-1.853 0.39-0.939 0-1.603-0.224-1.831-0.359l-9.451-4.017c-0.979 0.247-1.005 1.45-1.005 1.947 0 0.455 0.403 1.279 0.9 1.568l9.465 4.262c0.486 0.29 1.502 0.381 1.915 0.381z" fill="currentColor"></path></svg>',loader:'<svg viewBox="0 0 16 16"><circle class="loader-icon" cx="8px" cy="8px" r="7px"></circle></svg>',love:'<svg width="18" height="19" viewBox="0 0 18 18" class="love"><path d="M1.34375 7.53125L1.34375 7.54043C1.34374 8.04211 1.34372 8.76295 1.6611 9.65585C1.9795 10.5516 2.60026 11.5779 3.77681 12.7544C5.59273 14.5704 7.58105 16.0215 8.33387 16.5497C8.73525 16.8313 9.26573 16.8313 9.66705 16.5496C10.4197 16.0213 12.4074 14.5703 14.2232 12.7544C15.3997 11.5779 16.0205 10.5516 16.3389 9.65585C16.6563 8.76296 16.6563 8.04211 16.6562 7.54043V7.53125C16.6562 5.23466 15.0849 3.25 12.6562 3.25C11.5214 3.25 10.6433 3.78244 9.99228 4.45476C9.59009 4.87012 9.26356 5.3491 9 5.81533C8.73645 5.3491 8.40991 4.87012 8.00772 4.45476C7.35672 3.78244 6.47861 3.25 5.34375 3.25C2.9151 3.25 1.34375 5.23466 1.34375 7.53125Z" stroke-width="1.25"></path></svg>',mention:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.486 2 2 6.486 2 12C2 17.515 6.486 22 12 22C14.039 22 15.993 21.398 17.652 20.259L16.521 18.611C15.195 19.519 13.633 20 12 20C7.589 20 4 16.411 4 12C4 7.589 7.589 4 12 4C16.411 4 20 7.589 20 12V12.782C20 14.17 19.402 15 18.4 15L18.398 15.018C18.338 15.005 18.273 15 18.209 15H18C17.437 15 16.6 14.182 16.6 13.631V12C16.6 9.464 14.537 7.4 12 7.4C9.463 7.4 7.4 9.463 7.4 12C7.4 14.537 9.463 16.6 12 16.6C13.234 16.6 14.35 16.106 15.177 15.313C15.826 16.269 16.93 17 18 17L18.002 16.981C18.064 16.994 18.129 17 18.195 17H18.4C20.552 17 22 15.306 22 12.782V12C22 6.486 17.514 2 12 2ZM12 14.599C10.566 14.599 9.4 13.433 9.4 11.999C9.4 10.565 10.566 9.399 12 9.399C13.434 9.399 14.6 10.565 14.6 11.999C14.6 13.433 13.434 14.599 12 14.599Z"></path></svg>',menu:'<svg width="24" height="24" viewBox="0 0 24 24" focusable="false"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" fill="currentColor"></path></svg>',mod:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.45162 6.34581C4.19457 6.22911 3.90741 6.12286 3.64748 6.23311C3.26645 6.39474 3 6.76957 3 7.20581C3 9.47862 3.44964 11.7607 4.22976 13.8981C6.17236 19.2204 10.341 21.3384 11.3126 21.832C11.7535 22.056 12.2465 22.056 12.6874 21.832C13.659 21.3384 17.8276 19.2204 19.7702 13.8981C20.5504 11.7607 21 9.47862 21 7.20581C21 6.76957 20.7335 6.39474 20.3525 6.23311C20.0926 6.12286 19.8054 6.22911 19.5484 6.34581C19.0274 6.58233 18.5118 6.68337 18.0113 6.68398C15.2473 6.68054 13.0341 3.54653 12.9318 3.40157C12.9299 3.39887 12.9283 3.39662 12.9283 3.39662C12.7109 3.11183 12.3499 2.98041 12 3.00236C11.6501 2.98041 11.2891 3.11183 11.0717 3.39662C11.0717 3.39662 11.0701 3.39887 11.0682 3.40157C10.9659 3.54655 8.75268 6.68049 5.98876 6.68398C5.48829 6.68338 4.9726 6.58234 4.45162 6.34581Z" fill="currentColor"/></svg>',more:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M4 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z" clip-rule="evenodd"></path></svg>',notifications:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" class="notifications"><path d="M14.3 2.88988C14.12 2.81988 13.98 2.64988 13.93 2.45988C13.8149 2.03619 13.5635 1.66217 13.2147 1.39551C12.8659 1.12885 12.4391 0.984375 12 0.984375C11.5609 0.984375 11.1341 1.12885 10.7853 1.39551C10.4365 1.66217 10.1851 2.03619 10.07 2.45988C10.02 2.65988 9.88 2.81988 9.69 2.88988C8.3192 3.36908 7.13137 4.26275 6.29106 5.44707C5.45075 6.63139 4.99956 8.04773 5 9.49988V11.5899C5 11.7099 4.95 11.8299 4.87 11.9199L3.77 13.1399C3.27354 13.6916 2.9992 14.4077 3 15.1499V15.4299C3 16.0999 3.34 16.7199 3.95 16.9899C5.26 17.5899 7.95 18.4999 12 18.4999C16.05 18.4999 18.74 17.5899 20.05 16.9999C20.66 16.7199 21 16.0999 21 15.4299V15.1499C20.9983 14.4111 20.7242 13.699 20.23 13.1499L19.13 11.9199C19.0478 11.8295 19.0016 11.7121 19 11.5899V9.49988C18.9997 8.04652 18.5471 6.62928 17.7049 5.44482C16.8627 4.26036 15.6727 3.36741 14.3 2.88988ZM14.82 19.8399C14.9105 19.8285 15.0007 19.9087 15 19.9999C15 20.7955 14.6839 21.5586 14.1213 22.1212C13.5587 22.6838 12.7956 22.9999 12 22.9999C11.2044 22.9999 10.4413 22.6838 9.87868 22.1212C9.31607 21.5586 9 20.7955 9 19.9999C9 19.8999 9.09 19.8299 9.18 19.8399C11.0539 20.0538 12.9461 20.0538 14.82 19.8399Z" fill="currentColor"/></svg>',pin:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.98909 1.08618C8.86959 0.239498 9.82406 -0.2939 10.4754 0.174066L10.6014 0.280511L17.4149 7.09496C18.0589 7.73994 17.513 8.83451 16.6102 8.70727L13.2655 8.23266L10.9002 11.2063C11.2426 11.7271 11.5865 12.4042 11.741 13.1995C11.9548 14.3004 11.7954 15.5763 10.8865 16.8948C10.2168 17.8661 8.96377 17.8256 8.19612 17.2034L8.04963 17.0706L4.86799 13.8889L1.2801 17.4768C0.987359 17.7692 0.512372 17.769 0.219554 17.4768C-0.0731847 17.1839 -0.0731848 16.7081 0.219554 16.4153L3.80647 12.8284L0.624828 9.64672C-0.10908 8.9127 -0.255051 7.50428 0.842601 6.81371C1.66486 6.2967 2.49854 6.07255 3.28889 6.0393C4.5453 5.98663 5.65547 6.4187 6.44026 6.83422L9.46272 4.42895L8.98909 1.08618Z" fill="currentColor"/></svg>',play:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.75 10.7011C18.75 11.2785 18.75 12.7218 17.75 13.2992L8.75 18.4953C7.75 19.0727 6.5 18.351 6.5 17.1963L6.5 6.80399C6.5 5.64929 7.75 4.92761 8.75 5.50496L17.75 10.7011Z" fill="currentColor"/></svg>',profile:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 26" width="24" height="24" fill="none"><circle cx="13" cy="7.25" r="4" stroke="currentColor" stroke-width="2.5" fill="currentColor"></circle><path d="M6.26678 23.75H19.744C21.603 23.75 22.5 23.2186 22.5 22.0673C22.5 19.3712 18.8038 15.75 13 15.75C7.19625 15.75 3.5 19.3712 3.5 22.0673C3.5 23.2186 4.39704 23.75 6.26678 23.75Z" stroke="currentColor" stroke-width="2.5" fill="currentColor"></path></svg>',reply:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 8.26667V4L3 11.4667L10 18.9333V14.56C15 14.56 18.5 16.2667 21 20C20 14.6667 17 9.33333 10 8.26667Z" fill="currentColor"></path></svg>',replyIn:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"><path fill="currentColor" d="M21.7 7.3a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-1.4-1.4L18.58 9H13a7 7 0 0 0-7 7v4a1 1 0 1 1-2 0v-4a9 9 0 0 1 9-9h5.59l-3.3-3.3a1 1 0 0 1 1.42-1.4l5 5Z"></path></svg>',report:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="currentColor" d="M20 6.00201H14V3.00201C14 2.45001 13.553 2.00201 13 2.00201H4C3.447 2.00201 3 2.45001 3 3.00201V22.002H5V14.002H10.586L8.293 16.295C8.007 16.581 7.922 17.011 8.076 17.385C8.23 17.759 8.596 18.002 9 18.002H20C20.553 18.002 21 17.554 21 17.002V7.00201C21 6.45001 20.553 6.00201 20 6.00201Z"></path></svg>',repost:'<svg xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 18 18" width="18" height="18" fill="currentColor"><path d="M6.41256 1.23531C6.6349 0.971277 7.02918 0.937481 7.29321 1.15982L9.96509 3.40982C10.1022 3.52528 10.1831 3.69404 10.1873 3.87324C10.1915 4.05243 10.1186 4.2248 9.98706 4.34656L7.31518 6.81971C7.06186 7.05419 6.66643 7.03892 6.43196 6.7856C6.19748 6.53228 6.21275 6.13685 6.46607 5.90237L7.9672 4.51289H5.20312C3.68434 4.51289 2.45312 5.74411 2.45312 7.26289V9.51289V11.7629C2.45312 13.2817 3.68434 14.5129 5.20312 14.5129C5.5483 14.5129 5.82812 14.7927 5.82812 15.1379C5.82812 15.4831 5.5483 15.7629 5.20312 15.7629C2.99399 15.7629 1.20312 13.972 1.20312 11.7629V9.51289V7.26289C1.20312 5.05375 2.99399 3.26289 5.20312 3.26289H7.85002L6.48804 2.11596C6.22401 1.89362 6.19021 1.49934 6.41256 1.23531Z"></path><path d="M11.5874 17.7904C11.3651 18.0545 10.9708 18.0883 10.7068 17.8659L8.03491 15.6159C7.89781 15.5005 7.81687 15.3317 7.81267 15.1525C7.80847 14.9733 7.8814 14.801 8.01294 14.6792L10.6848 12.206C10.9381 11.9716 11.3336 11.9868 11.568 12.2402C11.8025 12.4935 11.7872 12.8889 11.5339 13.1234L10.0328 14.5129H12.7969C14.3157 14.5129 15.5469 13.2816 15.5469 11.7629V9.51286V7.26286C15.5469 5.74408 14.3157 4.51286 12.7969 4.51286C12.4517 4.51286 12.1719 4.23304 12.1719 3.88786C12.1719 3.54269 12.4517 3.26286 12.7969 3.26286C15.006 3.26286 16.7969 5.05373 16.7969 7.26286V9.51286V11.7629C16.7969 13.972 15.006 15.7629 12.7969 15.7629H10.15L11.512 16.9098C11.776 17.1321 11.8098 17.5264 11.5874 17.7904Z"></path></svg>',search:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.9722 16.0994C12.7426 16.981 11.2354 17.5 9.60693 17.5C5.4648 17.5 2.10693 14.1421 2.10693 10C2.10693 5.85786 5.4648 2.5 9.60693 2.5C13.7491 2.5 17.1069 5.85786 17.1069 10C17.1069 11.6284 16.588 13.1356 15.7064 14.3653C15.7731 14.41 15.8365 14.4618 15.8955 14.5208L19.7846 18.4099C20.2728 18.8981 20.2728 19.6895 19.7846 20.1777C19.2964 20.6658 18.505 20.6658 18.0168 20.1777L14.1277 16.2886C14.0688 16.2296 14.0169 16.1662 13.9722 16.0994ZM15.1069 10C15.1069 13.0376 12.6445 15.5 9.60693 15.5C6.56937 15.5 4.10693 13.0376 4.10693 10C4.10693 6.96243 6.56937 4.5 9.60693 4.5C12.6445 4.5 15.1069 6.96243 15.1069 10Z" fill="currentColor"/></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M8.2738 8.49222L1.99997 9.09877L0.349029 14.3788C0.250591 14.691 0.347154 15.0322 0.595581 15.246C0.843069 15.4597 1.19464 15.5047 1.48903 15.3613L15.2384 8.7032C15.5075 8.57195 15.6781 8.29914 15.6781 8.00007C15.6781 7.70101 15.5074 7.4282 15.2384 7.29694L1.49839 0.634063C1.20401 0.490625 0.852453 0.535625 0.604941 0.749376C0.356493 0.963128 0.259941 1.30344 0.358389 1.61563L2.00932 6.89563L8.27093 7.50312C8.52405 7.52843 8.71718 7.74125 8.71718 7.99531C8.71718 8.24938 8.52406 8.46218 8.27093 8.4875L8.2738 8.49222Z" fill="currentColor"></path></svg>',settings:'<svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.644169 15.2044C0.751639 15.4175 0.866389 15.627 0.988219 15.8323C1.34503 16.445 1.76284 17.0223 2.23048 17.545C2.3967 17.7307 2.65856 17.7968 2.89375 17.7126L5.25826 16.8621C5.96645 16.608 6.74841 17.07 6.87902 17.8018L7.32018 20.2764C7.36418 20.5227 7.55119 20.7167 7.79454 20.7688C8.86201 20.9976 9.95753 21.057 11.0418 20.9452C11.427 20.9061 11.8095 20.8457 12.1863 20.7643C12.375 20.7232 12.5303 20.5969 12.6121 20.4275C12.6441 20.37 12.6671 20.3068 12.6794 20.2397L13.132 17.7739C13.1978 17.4162 13.4191 17.1252 13.7102 16.9498C13.7478 16.9275 13.7867 16.9072 13.8264 16.8889C14.1041 16.7654 14.426 16.7408 14.7301 16.8496L17.0889 17.6938C17.2068 17.7362 17.3318 17.7406 17.4482 17.7107C17.5805 17.6872 17.7044 17.6208 17.7983 17.5172C18.2857 16.9783 18.7189 16.3833 19.0875 15.7497C19.4503 15.1137 19.748 14.4403 19.9703 13.7471C20.0128 13.6142 20.0083 13.4742 19.9629 13.3481C19.9307 13.2315 19.8646 13.1245 19.7685 13.043L17.8596 11.4179C17.6114 11.2067 17.4714 10.912 17.4409 10.6065C17.4371 10.563 17.4355 10.5194 17.4361 10.4758C17.444 10.1379 17.5847 9.80337 17.8591 9.56905L19.7638 7.94348C19.8146 7.90007 19.857 7.84958 19.8904 7.7944C19.9978 7.63842 20.0299 7.43844 19.9706 7.25291C19.8534 6.88733 19.7151 6.52704 19.5572 6.17466C19.1114 5.17572 18.5115 4.2528 17.7787 3.43934C17.612 3.25429 17.3509 3.18886 17.1161 3.27382L14.7569 4.12827C14.0592 4.38082 13.2679 3.93321 13.1344 3.19155L12.6871 0.714256C12.6423 0.468053 12.4542 0.273849 12.2106 0.22246C11.5182 0.0764882 10.803 0.00250031 10.088 0.000608251C9.88769 -0.0015584 9.68739 0.002064 9.48735 0.0114648C8.92415 0.0369819 8.36389 0.107332 7.81778 0.222459C7.78135 0.230146 7.74615 0.241028 7.71249 0.2548C7.5098 0.328781 7.35888 0.505679 7.31996 0.723547L6.8788 3.19817C6.81394 3.56157 6.58834 3.85866 6.29097 4.03446C5.98991 4.2061 5.61923 4.25412 5.27153 4.12827L2.91237 3.27382C2.70694 3.1995 2.48138 3.24016 2.31657 3.37545C2.2857 3.39886 2.25676 3.42543 2.23026 3.45505C1.81793 3.91588 1.44433 4.4192 1.11714 4.95183C1.05788 5.04799 1.00019 5.14513 0.944072 5.24319C0.878302 5.35619 0.814661 5.4704 0.753186 5.58577C0.464267 6.12611 0.222113 6.69081 0.0338354 7.26739C0.0213426 7.30567 0.0127871 7.34455 0.00802709 7.38352C-0.0257478 7.59364 0.0518458 7.809 0.218337 7.94974L2.13633 9.56992C2.41146 9.80242 2.55518 10.1364 2.56469 10.4743C2.56917 10.8294 2.42529 11.1857 2.13611 11.4301L0.218115 13.0503C0.0484589 13.1937 -0.0289685 13.4145 0.00982709 13.6284C0.0147983 13.6634 0.0228404 13.6982 0.0340542 13.7326C0.198098 14.235 0.403035 14.7283 0.644169 15.2044ZM10 14.5C12.2091 14.5 14 12.7091 14 10.5C14 8.29086 12.2091 6.5 10 6.5C7.79086 6.5 6 8.29086 6 10.5C6 12.7091 7.79086 14.5 10 14.5Z" fill="currentColor"></path></svg>',"share-ios":'<svg xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 24 24" height="28" width="20" class="icon"><path id="icon-share" d="M5.22 22.81h9.55c1.8 0 2.73-.92 2.73-2.69V11.95c0-1.77-.93-2.69-2.73-2.69h-2.4v1.63h2.3c.77 0 1.2.39 1.2 1.2v7.89c0 .81-.43 1.21-1.2 1.21H5.32c-.77 0-1.2-.4-1.2-1.21V12.09c0-.81.43-1.2 1.2-1.2H7.63V9.26H5.22c-1.79 0-2.72.92-2.72 2.69v8.17c0 1.77.93 2.69 2.72 2.69ZM9.99 16.2c.42 0 .77-.35.77-.76V7.08L10.7 5.85l.51.6L12.38 7.7c.14.15.33.22.52.22.37 0 .68-.27.68-.66 0-.2-.08-.35-.22-.49L10.57 4.09c-.19-.2-.37-.27-.58-.27-.2 0-.38.07-.57.27L6.63 6.77c-.14.14-.22.29-.22.49 0 .39.3.66.68.66.19 0 .39-.07.52-.22L8.77 6.45l.52-.6-.06 1.23v8.36c0 .41.35.76.76.76Z" fill="currentColor"></path></svg>',share:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5 11.5C5.82843 11.5 6.5 12.1716 6.5 13V18.5H17.5V13C17.5 12.1716 18.1716 11.5 19 11.5C19.8284 11.5 20.5 12.1716 20.5 13V19C20.5 20.3807 19.3807 21.5 18 21.5H6C4.61929 21.5 3.5 20.3807 3.5 19V13C3.5 12.1716 4.17157 11.5 5 11.5Z" fill="currentColor"/><path d="M13.5 5.62166L15.9393 8.061C16.5251 8.64678 17.4749 8.64678 18.0607 8.061C18.6464 7.47521 18.6464 6.52546 18.0607 5.93968L13.7678 1.64678C12.7915 0.670471 11.2085 0.670475 10.2322 1.64678L5.93934 5.93968C5.35355 6.52546 5.35355 7.47521 5.93934 8.061C6.52513 8.64678 7.47487 8.64678 8.06066 8.061L10.5 5.62166L10.5 14.0005C10.5 14.8289 11.1716 15.5005 12 15.5005C12.8284 15.5005 13.5 14.8289 13.5 14.0005V5.62166Z" fill="currentColor"/></svg>',star:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.785 3.10866L15.9287 7.45093L20.7219 8.14933C22.3552 8.38578 23.0066 10.3917 21.8259 11.5442L18.3559 14.925L19.1748 19.6995C19.4536 21.3249 17.7467 22.5651 16.2873 21.7978L11.9998 19.5429L7.71237 21.7978C6.25138 22.5651 4.5461 21.3249 4.82327 19.6995L5.6438 14.925L2.17531 11.5442C0.993053 10.3917 1.64447 8.38578 3.27771 8.14933L8.07253 7.45093L10.2147 3.10866C10.946 1.63045 13.0537 1.63045 13.785 3.10866Z" fill="currentColor"/></svg>',starCross:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.1992 5.97235L13.7855 3.10866C13.0542 1.63045 10.9465 1.63045 10.2152 3.10866L8.07302 7.45093L3.2782 8.14933C1.64496 8.38578 0.993541 10.3917 2.1758 11.5442L5.64429 14.925L5.51931 15.6523L15.1992 5.97235ZM18.939 7.88947L5.38177 21.4467C5.96053 22.0185 6.8767 22.2369 7.71286 21.7978L12.0003 19.5429L16.2878 21.7978C17.7472 22.5651 19.454 21.3249 19.1753 19.6995L18.3563 14.925L21.8264 11.5442C23.0071 10.3917 22.3557 8.38578 20.7224 8.14933L18.939 7.88947Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.7071 3.29289C21.0976 3.68342 21.0976 4.31658 20.7071 4.70711L3.70711 21.7071C3.31658 22.0976 2.68342 22.0976 2.29289 21.7071C1.90237 21.3166 1.90237 20.6834 2.29289 20.2929L19.2929 3.29289C19.6834 2.90237 20.3166 2.90237 20.7071 3.29289Z" fill="currentColor"/></svg>',swatch:'<svg class="swatch" aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="m13.96 5.46 4.58 4.58a1 1 0 0 0 1.42 0l1.38-1.38a2 2 0 0 0 0-2.82l-3.18-3.18a2 2 0 0 0-2.82 0l-1.38 1.38a1 1 0 0 0 0 1.42ZM2.11 20.16l.73-4.22a3 3 0 0 1 .83-1.61l7.87-7.87a1 1 0 0 1 1.42 0l4.58 4.58a1 1 0 0 1 0 1.42l-7.87 7.87a3 3 0 0 1-1.6.83l-4.23.73a1.5 1.5 0 0 1-1.73-1.73Z"></path></svg>',up:'<svg viewBox="0 0 448 512" height="19" width="19"><path fill="currentColor" d="M201.4 137.4c12.5-12.5 32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L224 205.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160z"></path></svg>',verified:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.92893 4.9289C4.18766 5.67017 4.03197 6.76834 3.99926 8.68599C2.66642 10.0651 2 10.9517 2 12C2 13.0483 2.66642 13.9349 3.99927 15.314C4.03197 17.2316 4.18767 18.3298 4.92893 19.071C5.6702 19.8123 6.76834 19.968 8.68595 20.0007C10.0651 21.3336 10.9517 22 12 22C13.0483 22 13.9349 21.3336 15.3141 20.0007C17.2317 19.968 18.3298 19.8123 19.0711 19.071C19.8123 18.3298 19.968 17.2316 20.0007 15.314C21.3336 13.9349 22 13.0483 22 12C22 10.9517 21.3336 10.0651 20.0007 8.68599C19.968 6.76834 19.8123 5.67017 19.0711 4.9289C18.3298 4.18762 17.2316 4.03193 15.314 3.99923C13.9349 2.66641 13.0483 2 12 2C10.9517 2 10.0651 2.66641 8.68602 3.99923C6.76837 4.03193 5.67021 4.18762 4.92893 4.9289ZM15.3254 8.37541C15.6001 7.99371 16.1639 7.88526 16.5849 8.13281C17.0067 8.38036 17.1269 8.89062 16.8534 9.27266C16.8534 9.27266 12.4214 15.4577 12.3005 15.6246C12.0947 15.907 11.7811 16 11.536 16C11.3152 16 11.0931 15.9275 10.9182 15.7808L8.2925 13.5835C7.92317 13.2747 7.90059 12.7532 8.24187 12.4189C8.58316 12.085 9.15937 12.0643 9.52869 12.3734L11.3604 13.9062L15.3254 8.37541Z" fill="currentColor"/></svg>',wom:'<svg viewBox="0 0 242 155" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 154.727H191.104C208.636 154.727 217.402 154.726 224.099 151.314C229.989 148.313 234.778 143.524 237.779 137.634C241.191 130.937 241.191 122.171 241.191 104.639V50.0879C241.191 32.5556 241.191 23.7893 237.779 17.0928C234.778 11.2024 229.989 6.41342 224.099 3.41211C217.402 7.46025e-05 208.636 1.98677e-10 191.104 0H0V154.727ZM216.393 42.75L198.507 110H174.325L163.165 68.6484L152.146 110H127.822L109.937 42.75H131.829L141.415 84.96L152.004 42.75H174.469L184.914 84.96L194.644 42.75H216.393Z" fill="currentColor"/></svg>'},H=Object.freeze(Object.defineProperty({__proto__:null,icon:y},Symbol.toStringTag,{value:"Module"}));class E extends HTMLElement{static get observedAttributes(){return["name","width","height"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render()}attributeChangedCallback(){this.render()}render(){const t=this.getAttribute("name"),i=y[t];if(!i){this.shadowRoot.innerHTML='<span style="color:red;">?</span>';return}const e=document.createElement("template");e.innerHTML=i.trim();const n=e.content.cloneNode(!0),s=n.firstElementChild;if(s&&s.style){const a=this.getAttribute("width"),l=this.getAttribute("height");a&&s.setAttribute("width",a),l&&s.setAttribute("height",l),s.style.display="block"}this.shadowRoot.innerHTML="",this.shadowRoot.appendChild(n)}}customElements.define("eui-icon",E);class A extends HTMLElement{static get observedAttributes(){return["label","value","id","type","filled"]}constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=`
|
|
46
|
+
`}connectedCallback(){this.avatar=this.shadowRoot.querySelector(".avatar"),this.initials=this.shadowRoot.querySelector("#initials");const t=this.shadowRoot.querySelector("slot"),i=t&&t.assignedNodes().length>0;if(i){const e=t.assignedNodes()[0];e&&e.tagName==="IMG"&&(this.initials.style.display="none",this.avatar.style.backgroundColor="transparent")}else this.hasAttribute("color")&&(this.avatar.style.backgroundColor=this.getAttribute("color"));if(this.hasAttribute("color")&&(this.avatar.style.backgroundColor=this.getAttribute("color")),this.hasAttribute("size")){const e=this.getAttribute("size");this.avatar.style.width=e+"px",this.avatar.style.height=e+"px",this.initials.style.fontSize=e/2+"px"}if(this.hasAttribute("border-radius")&&(this.avatar.style.borderRadius=this.getAttribute("border-radius")+"px"),this.hasAttribute("name")&&(this.avatar.title=this.getAttribute("name")),!i&&this.hasAttribute("name")){const r=this.getAttribute("name").trim().split(/\s+/);let n="";r.length===1?n=r[0][0]||"":n=(r[0][0]||"")+(r[r.length-1][0]||""),this.initials.textContent=n.toUpperCase()}}}customElements.define("eui-avatar",b);const f=(()=>{let o={};return{register(t,i){o[t]=i},get(t){return o[t]||""}}})();f.register("menu",'<svg width="24" height="24" viewBox="0 0 24 24" focusable="false"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" fill="currentColor"></path></svg>'),f.register("home",'<svg width="22" height="21" viewBox="0 0 22 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.5258 0.204649C11.2291 -0.0682165 10.7709 -0.0682161 10.4742 0.204649L0.249923 9.68588C-0.266994 10.1612 0.0714693 11.0197 0.775759 11.0197L3.48971 11.0197V18.6923C3.48971 19.542 4.18295 20.2308 5.03811 20.2308H16.9619C17.8171 20.2308 18.5103 19.542 18.5103 18.6923V11.0197L21.2242 11.0197C21.9285 11.0197 22.267 10.1612 21.7501 9.68588L11.5258 0.204649Z" fill="currentColor"/></svg>'),f.register("kit",'<svg width="26" height="28" viewBox="0 0 26 28" xmlns="http://www.w3.org/2000/svg"><path d="m13.118 14.831c0.433 0 1.257-0.024 1.795-0.344l9.151-4.057c0.869-0.59 1.051-1.255 1.067-1.773 0.02-0.662-0.313-1.634-1.181-2.15l-8.515-3.921c-0.537-0.309-2.096-0.552-2.529-0.552-0.444 0-1.958 0.42-2.496 0.73l-8.643 4.034c-0.85 0.602-1.022 1.284-0.951 1.942 0.098 0.887 0.206 0.857 0.889 1.503l9.577 4.212c0.537 0.32 1.391 0.376 1.836 0.376zm-0.12 5.467c0.403 0 1.443-0.068 1.928-0.345l8.858-3.991c0.497-0.3 1.448-1.117 1.382-1.952-0.091-1.138-0.598-1.7-0.948-1.906l-9.22 3.888c-0.454 0.261-1.417 0.478-1.916 0.478-0.542 0-1.539-0.228-1.766-0.362l-9.395-4.012c-0.462 0.022-1.174 0.911-1.201 1.642-0.03 0.761 0.7 1.62 1.135 1.839l9.408 4.384c0.485 0.278 1.322 0.337 1.735 0.337zm0.09 5.344c0.403 0 1.296-0.053 1.781-0.342l9.147-4.299c0.485-0.289 1.129-0.789 1.053-1.879-0.056-0.794-0.071-1.123-0.918-1.765l-9.203 4.113c-0.228 0.134-0.948 0.39-1.853 0.39-0.939 0-1.603-0.224-1.831-0.359l-9.451-4.017c-0.979 0.247-1.005 1.45-1.005 1.947 0 0.455 0.403 1.279 0.9 1.568l9.465 4.262c0.486 0.29 1.502 0.381 1.915 0.381z" fill="currentColor"></path></svg>');const S=Object.freeze(Object.defineProperty({__proto__:null,icon:f},Symbol.toStringTag,{value:"Module"}));class L extends HTMLElement{static get observedAttributes(){return["name","width","height"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render()}attributeChangedCallback(){this.render()}render(){const t=this.getAttribute("name"),i=f.get(t);if(!i){this.shadowRoot.innerHTML='<span style="color:red;">?</span>';return}const e=document.createElement("template");e.innerHTML=i.trim();const r=e.content.cloneNode(!0),n=r.firstElementChild;if(n&&n.style){const a=this.getAttribute("width"),l=this.getAttribute("height");a&&n.setAttribute("width",a),l&&n.setAttribute("height",l),n.style.display="block"}this.shadowRoot.innerHTML="",this.shadowRoot.appendChild(r)}}customElements.define("eui-icon",L);class z extends HTMLElement{static get observedAttributes(){return["label","value","id","type","filled"]}constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=`
|
|
47
47
|
<style>
|
|
48
48
|
.form {
|
|
49
49
|
display: flex;
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<input class="form-input" placeholder=" ">
|
|
144
144
|
<label></label>
|
|
145
145
|
</div>
|
|
146
|
-
`}connectedCallback(){this.form=this.shadowRoot.querySelector(".form"),this.inputEl=this.shadowRoot.querySelector(".form-input"),this.labelEl=this.shadowRoot.querySelector("label"),this.hasAttribute("value")&&(this.inputEl.value=this.getAttribute("value")),this.hasAttribute("id")&&(this.inputEl.id=this.getAttribute("id")),this.hasAttribute("label")&&(this.labelEl.textContent=this.getAttribute("label")),this.hasAttribute("type")&&(this.inputEl.type=this.getAttribute("type")),this.hasAttribute("filled")&&this.form.classList.add("filled"),this.inputEl.addEventListener("input",()=>{this.setAttribute("value",this.inputEl.value)})}attributeChangedCallback(t,i,e){if(!(!this.inputEl||!this.labelEl))switch(t){case"value":this.inputEl.value!==e&&(this.inputEl.value=e);break;case"id":this.inputEl.id=e;break;case"label":this.labelEl.textContent=e;break}}get value(){return this.inputEl.value}set value(t){this.setAttribute("value",t)}}customElements.define("eui-input",
|
|
146
|
+
`}connectedCallback(){this.form=this.shadowRoot.querySelector(".form"),this.inputEl=this.shadowRoot.querySelector(".form-input"),this.labelEl=this.shadowRoot.querySelector("label"),this.hasAttribute("value")&&(this.inputEl.value=this.getAttribute("value")),this.hasAttribute("id")&&(this.inputEl.id=this.getAttribute("id")),this.hasAttribute("label")&&(this.labelEl.textContent=this.getAttribute("label")),this.hasAttribute("type")&&(this.inputEl.type=this.getAttribute("type")),this.hasAttribute("filled")&&this.form.classList.add("filled"),this.inputEl.addEventListener("input",()=>{this.setAttribute("value",this.inputEl.value)})}attributeChangedCallback(t,i,e){if(!(!this.inputEl||!this.labelEl))switch(t){case"value":this.inputEl.value!==e&&(this.inputEl.value=e);break;case"id":this.inputEl.id=e;break;case"label":this.labelEl.textContent=e;break}}get value(){return this.inputEl.value}set value(t){this.setAttribute("value",t)}}customElements.define("eui-input",z);class T extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=`
|
|
147
147
|
<style>
|
|
148
148
|
.loader {
|
|
149
149
|
width: 24px;
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
<span class="loader animate">
|
|
189
189
|
<svg viewBox="0 0 16 16"><circle class="loader-icon" cx="8px" cy="8px" r="7px"></circle></svg>
|
|
190
190
|
</span>
|
|
191
|
-
`}}customElements.define("eui-loader",
|
|
191
|
+
`}}customElements.define("eui-loader",T);class M extends HTMLElement{static get observedAttributes(){return["value","intermediate","id"]}constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=`
|
|
192
192
|
<style>
|
|
193
193
|
.progressbar {
|
|
194
194
|
width: 100%;
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
<div class="progressbar">
|
|
233
233
|
<span class="progress"></span>
|
|
234
234
|
</div>
|
|
235
|
-
`}set value(t){this.setAttribute("value",t)}attributeChangedCallback(){this.connectedCallback()}connectedCallback(){const t=this.shadowRoot.querySelector(".progress");this.hasAttribute("id")&&(this.progress.id=this.getAttribute("id")),this.hasAttribute("intermediate")&&t.classList.add("intermediate"),this.hasAttribute("value")&&(t.style.width=this.getAttribute("value")+"%")}}customElements.define("eui-progressbar",
|
|
235
|
+
`}set value(t){this.setAttribute("value",t)}attributeChangedCallback(){this.connectedCallback()}connectedCallback(){const t=this.shadowRoot.querySelector(".progress");this.hasAttribute("id")&&(this.progress.id=this.getAttribute("id")),this.hasAttribute("intermediate")&&t.classList.add("intermediate"),this.hasAttribute("value")&&(t.style.width=this.getAttribute("value")+"%")}}customElements.define("eui-progressbar",M);const v={is:{iPhone:/iPhone/.test(navigator.userAgent),iPad:/iPad/.test(navigator.userAgent),iOS:/iPhone|iPad|iPod/.test(navigator.userAgent),android:/Android/.test(navigator.userAgent),mobile:/Mobi|Android/i.test(navigator.userAgent)},prefers:{language:navigator.language||navigator.userLanguage,reducedMotion:window.matchMedia("(prefers-reduced-motion: reduce)").matches,reducedTransparency:window.matchMedia("(prefers-reduced-transparency: reduce)").matches},supports:{share:typeof navigator.share=="function",directDownload:"download"in document.createElement("a"),haptics:"vibrate"in navigator||"Vibrate"in window||typeof window.navigator.vibrate=="function"},userAgent:navigator.userAgent},R=Object.freeze(Object.defineProperty({__proto__:null,device:v},Symbol.toStringTag,{value:"Module"}));function $(){try{const o=document.createElement("label");o.ariaHidden="true",o.style.display="none";const t=document.createElement("input");t.type="checkbox",t.setAttribute("switch",""),o.appendChild(t),document.head.appendChild(o),o.click(),document.head.removeChild(o)}catch{}}function x(o){v.supports.haptics?navigator.vibrate(o||50):v.is.iPhone&&$()}const H=Object.freeze(Object.defineProperty({__proto__:null,haptic:x},Symbol.toStringTag,{value:"Module"})),E=(()=>{let o={},t;try{o=JSON.parse(localStorage.getItem(t)||"{}")}catch(i){console.error(i)}return{get(i){return o[i]},set(i,e){o[i]=e,localStorage.setItem(t,JSON.stringify(o))},delete(i){delete o[i],localStorage.setItem(t,JSON.stringify(o))},all(){return o},clear(){o={},localStorage.setItem(t,JSON.stringify(o))},name(i){t=i;try{o=JSON.parse(localStorage.getItem(t)||"{}")}catch(e){console.error(e)}},settings:{get(i){return o&&o.settings&&o.settings[i]},set(i,e){o.settings||(o.settings={}),o.settings[i]=e,localStorage.setItem(t,JSON.stringify(o))},delete(i){o.settings&&(delete o.settings[i],localStorage.setItem(t,JSON.stringify(o)))},all(){return o.settings||{}},clear(){o.settings&&(o.settings={},localStorage.setItem(t,JSON.stringify(o)))}}}})(),A=E.settings,_=Object.freeze(Object.defineProperty({__proto__:null,settings:A,storage:E},Symbol.toStringTag,{value:"Module"}));class I extends HTMLElement{static get observedAttributes(){return["selected"]}constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=`
|
|
236
236
|
<style>
|
|
237
237
|
.switch {
|
|
238
238
|
background-color: var(--app-200);
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
<input type="checkbox" role="switch">
|
|
302
302
|
<span class="handle"></span>
|
|
303
303
|
</div>
|
|
304
|
-
`}connectedCallback(){this.inputEl=this.shadowRoot.querySelector("input"),this.switchEl=this.shadowRoot.querySelector(".switch"),this.updateFromAttribute(),this.switchEl.addEventListener("click",()=>this.toggle())}toggle(){this.selected=!this.selected,
|
|
304
|
+
`}connectedCallback(){this.inputEl=this.shadowRoot.querySelector("input"),this.switchEl=this.shadowRoot.querySelector(".switch"),this.updateFromAttribute(),this.switchEl.addEventListener("click",()=>this.toggle())}toggle(){this.selected=!this.selected,x()}updateFromAttribute(){const t=this.hasAttribute("selected");this.inputEl.checked=t,this.switchEl.classList.toggle("selected",t)}attributeChangedCallback(t,i,e){t==="selected"&&this.inputEl&&this.updateFromAttribute()}get selected(){return this.hasAttribute("selected")}set selected(t){t?this.setAttribute("selected",""):this.removeAttribute("selected")}}customElements.define("eui-switch",I);class F extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.shadowRoot.innerHTML=`
|
|
305
305
|
<style>
|
|
306
306
|
:host {
|
|
307
307
|
display: inline-flex;
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
}
|
|
347
347
|
</style>
|
|
348
348
|
<slot></slot>
|
|
349
|
-
`,this.addEventListener("pointerdown",t=>{const i=document.createElement("span"),e=t.currentTarget,
|
|
349
|
+
`,this.addEventListener("pointerdown",t=>{const i=document.createElement("span"),e=t.currentTarget,r=Math.max(e.offsetWidth,e.offsetHeight);i.classList.add("ripple"),i.style.left=t.clientX-e.getBoundingClientRect().left-r/2+"px",i.style.top=t.clientY-e.getBoundingClientRect().top-r/2+"px",i.style.width=r+"px",i.style.height=r+"px",this.shadowRoot.appendChild(i),setTimeout(()=>{i.remove()},600)})}}customElements.define("eui-chip",F);const m="",w=(()=>{const o=[];function t(s,d){const h=[],g=s.replace(/:([^/]+)/g,(y,k)=>(h.push(k),"([^/]+)")).replace(/\//g,"\\/"),u=new RegExp(`^${m}${g}$`);o.push({regex:u,paramNames:h,renderFn:d})}function i(s){for(const{regex:d,paramNames:h,renderFn:g}of o){const u=s.match(d);if(u){const y={};return h.forEach((k,G)=>{y[k]=decodeURIComponent(u[G+1])}),{renderFn:g,params:y}}}return null}function e(s,d=!0){s.startsWith(m)||(s=m+(s.startsWith("/")?"":"/")+s);const h=s.split(/[?#]/)[0];if(h===window.location.pathname&&s.includes("#")){d&&history.pushState({},"",s);const u="#"+s.split("#")[1];r(u);return}const g=i(h);if(g)if(d&&history.pushState({},"",s),g.renderFn(g.params),window.dispatchEvent(new CustomEvent("route-changed",{detail:{path:s}})),s.includes("#")){const u="#"+s.split("#")[1];setTimeout(()=>r(u),100)}else{const u=document.getElementById("main");u&&u.scrollTo(0,0)}else n?(d&&history.pushState({},"",s),n()):console.warn(`No route found for ${h}`)}function r(s){if(s)try{const d=document.querySelector(s);d&&d.scrollIntoView({behavior:"smooth"})}catch{console.warn("Invalid hash:",s)}}let n=null;function a(s){n=s}function l(){history.back()}function c(){return window.location.pathname.replace(m,"")||"/"}return window.addEventListener("popstate",()=>{const s=window.location.pathname+window.location.search+window.location.hash;e(s,!1)}),window.addEventListener("click",s=>{if(s.button!==0||s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)return;const d=s.target.closest("a");if(!d||d.hasAttribute("download")||d.getAttribute("target")==="_blank")return;const h=d.getAttribute("href");if(!(!h||h.startsWith("http")&&!h.startsWith(window.location.origin))){if(s.preventDefault(),h.startsWith("#")){history.pushState({},"",h),r(h);return}e(h)}}),{add:t,navigate:e,back:l,location:c,setNotFound:a}})();async function j(o){try{const t=document.getElementById("main");t.classList.add("fade-out"),await new Promise(e=>setTimeout(e,200));const i=await fetch(`/src/pages/${o}.html`).then(e=>e.text());t.innerHTML=i,t.classList.remove("fade-out"),t.classList.add("fade-in"),window.location.hash?setTimeout(()=>{try{const e=document.querySelector(window.location.hash);e&&e.scrollIntoView({behavior:"smooth"})}catch{}},100):t&&t.scrollTo(0,0),setTimeout(()=>{t.classList.remove("fade-in")},200)}catch(t){console.error("Page load failed:",t)}}class q extends HTMLElement{static get observedAttributes(){return["path","icon","label","badge","active","avatar-src","avatar-name"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.hasRendered||(this.render(),this.setupEventListeners(),this.hasRendered=!0),this.updateContent(),this.addEventListener("click",this.handleClick)}disconnectedCallback(){this.removeEventListener("click",this.handleClick)}attributeChangedCallback(t,i,e){if(i!==e&&this.hasRendered){if(t==="active")return;this.updateContent()}}handleClick=()=>{const t=this.getAttribute("path");t&&w.navigate(t)};setupEventListeners(){this.addEventListener("pointerdown",t=>{const i=document.createElement("span"),e=t.currentTarget,r=e.getBoundingClientRect(),n=Math.max(e.offsetWidth,e.offsetHeight),a=n/2;i.classList.add("ripple"),i.style.width=`${n}px`,i.style.height=`${n}px`,i.style.left=`${t.clientX-r.left-a}px`,i.style.top=`${t.clientY-r.top-a}px`,this.shadowRoot.appendChild(i),i.addEventListener("animationend",()=>{i.remove()})})}updateContent(){const t=this.getAttribute("icon"),i=this.getAttribute("avatar-src"),e=this.getAttribute("avatar-name"),r=this.getAttribute("label")||"",n=this.getAttribute("badge"),a=this.shadowRoot.querySelector(".badge");if(n)if(a)a.textContent=n;else{const s=document.createElement("span");s.className="badge",s.textContent=n,this.shadowRoot.appendChild(s)}else a&&a.remove();const l=this.shadowRoot.querySelector("slot[name='icon']");if(l)if(i||e){let s='<eui-avatar size="24"';e&&(s+=` name="${e}"`),s+=">",i&&(s+=`<img src="${i}" alt="${e||"Avatar"}" />`),s+="</eui-avatar>",l.innerHTML=s}else{const s=l.querySelector("eui-icon");t&&s?s.getAttribute("name")!==t&&s.setAttribute("name",t):t?l.innerHTML=`<eui-icon width="24" height="24" name="${t}"></eui-icon>`:l.innerHTML=""}const c=this.shadowRoot.querySelector(".label");c&&(c.textContent=r)}render(){this.shadowRoot.innerHTML=`
|
|
350
350
|
<style>
|
|
351
351
|
:host {
|
|
352
352
|
position: relative;
|
|
@@ -451,7 +451,7 @@
|
|
|
451
451
|
</slot>
|
|
452
452
|
</div>
|
|
453
453
|
<span class="label"></span>
|
|
454
|
-
`}}customElements.define("eui-nav-item",
|
|
454
|
+
`}}customElements.define("eui-nav-item",q);class N extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.updateActiveState(),window.addEventListener("popstate",()=>this.updateActiveState()),window.addEventListener("route-changed",()=>this.updateActiveState()),window.addEventListener("toggle-nav",()=>this.classList.toggle("expanded"))}render(){this.shadowRoot.innerHTML=`
|
|
455
455
|
<style>
|
|
456
456
|
:host {
|
|
457
457
|
position: fixed;
|
|
@@ -553,7 +553,7 @@
|
|
|
553
553
|
${this.navItems.map(t=>{if(t.type==="divider")return'<div style="height: 1px; background: var(--app-300); margin: 0.5rem 0;"></div>';const i=t.avatar?.src||"",e=t.avatar?.name||"";return`<eui-nav-item path="${t.path}" icon="${t.icon}" avatar-src="${i}" avatar-name="${e}" label="${t.label}"></eui-nav-item>`}).join("")}
|
|
554
554
|
</div>
|
|
555
555
|
</div>
|
|
556
|
-
`}set navItems(t){this._navItems=t,this.render(),this.updateActiveState()}get navItems(){return this._navItems||[]}updateActiveState(t){t||(t=
|
|
556
|
+
`}set navItems(t){this._navItems=t,this.render(),this.updateActiveState()}get navItems(){return this._navItems||[]}updateActiveState(t){t||(t=w.location()),t.startsWith("/")||(t="/"+t),this.shadowRoot.querySelectorAll("eui-nav-item").forEach(e=>{e.getAttribute("path")===t?e.setAttribute("active",""):e.removeAttribute("active")})}}customElements.define("eui-app-nav",N);class B extends HTMLElement{static get observedAttributes(){return["type","title","subtitle","img"]}constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=`
|
|
557
557
|
<style>
|
|
558
558
|
:host {
|
|
559
559
|
border-radius: 24px;
|
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
<p></p>
|
|
623
623
|
</div>
|
|
624
624
|
</div>
|
|
625
|
-
`}connectedCallback(){this.hd=this.shadowRoot.querySelector(".header"),this.hasAttribute("type")&&this.hd.classList.add(this.getAttribute("type"))}attributeChangedCallback(t,i,e){const
|
|
625
|
+
`}connectedCallback(){this.hd=this.shadowRoot.querySelector(".header"),this.hasAttribute("type")&&this.hd.classList.add(this.getAttribute("type"))}attributeChangedCallback(t,i,e){const r=this.shadowRoot.querySelector("h1"),n=this.shadowRoot.querySelector("p"),a=this.shadowRoot.querySelector(".img");t==="title"&&(r.textContent=e),t==="subtitle"&&(n.textContent=e),t==="img"&&(a.style.backgroundImage=e?`url(${e})`:"")}}customElements.define("eui-header",B);class O extends HTMLElement{static get observedAttributes(){return["selected"]}constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=`
|
|
626
626
|
<style>
|
|
627
627
|
:host {
|
|
628
628
|
display: block;
|
|
@@ -705,7 +705,7 @@
|
|
|
705
705
|
<rect class="mark long"></rect>
|
|
706
706
|
</svg>
|
|
707
707
|
</div>
|
|
708
|
-
`}connectedCallback(){this.inputEl=this.shadowRoot.querySelector("input"),this.checkEl=this.shadowRoot.querySelector(".checkbox"),this.updateFromAttribute(),this.checkEl.addEventListener("click",()=>this.toggle())}toggle(){this.selected=!this.selected,
|
|
708
|
+
`}connectedCallback(){this.inputEl=this.shadowRoot.querySelector("input"),this.checkEl=this.shadowRoot.querySelector(".checkbox"),this.updateFromAttribute(),this.checkEl.addEventListener("click",()=>this.toggle())}toggle(){this.selected=!this.selected,x();const t=this.selected,i=this.dataset.setting;i&&A.set(i,t)}updateFromAttribute(){const t=this.hasAttribute("selected");this.inputEl.checked=t,this.checkEl.classList.toggle("selected",t)}attributeChangedCallback(t,i,e){t==="selected"&&this.inputEl&&this.updateFromAttribute()}get selected(){return this.hasAttribute("selected")}set selected(t){t?this.setAttribute("selected",""):this.removeAttribute("selected")}}customElements.define("eui-checkbox",O);class P extends HTMLElement{static observedAttributes=["type","width","height","border-radius","icon","link","href"];constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render()}render(){const t=this.getAttribute("href"),i=t?"a":"button";this.shadowRoot.innerHTML=`
|
|
709
709
|
<style>
|
|
710
710
|
button, a {
|
|
711
711
|
display: flex;
|
|
@@ -811,7 +811,7 @@
|
|
|
811
811
|
<${i}>
|
|
812
812
|
<slot></slot>
|
|
813
813
|
</${i}>
|
|
814
|
-
`;const e=this.shadowRoot.querySelector(i);t&&e.setAttribute("href",t),this.hasAttribute("type")&&e.classList.add(this.getAttribute("type")),this.hasAttribute("icon")&&e.classList.add("icon"),this.hasAttribute("width")&&(e.style.width=this.getAttribute("width")+"px"),this.hasAttribute("height")&&(e.style.height=this.getAttribute("height")+"px"),this.hasAttribute("border-radius")&&(e.style.borderRadius=this.getAttribute("border-radius")+"px"),e.addEventListener("pointerdown",
|
|
814
|
+
`;const e=this.shadowRoot.querySelector(i);t&&e.setAttribute("href",t),this.hasAttribute("type")&&e.classList.add(this.getAttribute("type")),this.hasAttribute("icon")&&e.classList.add("icon"),this.hasAttribute("width")&&(e.style.width=this.getAttribute("width")+"px"),this.hasAttribute("height")&&(e.style.height=this.getAttribute("height")+"px"),this.hasAttribute("border-radius")&&(e.style.borderRadius=this.getAttribute("border-radius")+"px"),e.addEventListener("pointerdown",r=>{const n=document.createElement("span"),a=r.currentTarget,l=a.getBoundingClientRect(),c=Math.max(a.offsetWidth,a.offsetHeight),s=c/2;n.classList.add("ripple"),n.style.width=`${c}px`,n.style.height=`${c}px`,n.style.left=`${r.clientX-l.left-s}px`,n.style.top=`${r.clientY-l.top-s}px`,e.appendChild(n),n.addEventListener("animationend",()=>{n.remove()})})}}customElements.define("eui-button",P);class U extends HTMLElement{static get observedAttributes(){return["type","anchor"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render(),this.hd=this.shadowRoot.querySelector(".hd"),this.hasAttribute("type")&&this.hd.classList.add(this.getAttribute("type"))}render(){this.shadowRoot.innerHTML=`
|
|
815
815
|
<style>
|
|
816
816
|
:host {
|
|
817
817
|
display: block;
|
|
@@ -869,7 +869,7 @@
|
|
|
869
869
|
<span class="anchor-hash">#</span>
|
|
870
870
|
</a>
|
|
871
871
|
`:""}
|
|
872
|
-
`}}customElements.define("eui-heading",
|
|
872
|
+
`}}customElements.define("eui-heading",U);function D(o){const e=Date.now()-o,r=Math.floor(e/1e3),n=Math.floor(r/60),a=Math.floor(n/60),l=Math.floor(a/24),c=Math.floor(l/30),s=Math.floor(c/12);return s>0?`${s}y`:c>0?`${c}mo`:l>0?`${l}d`:a>0?`${a}h`:n>0?`${n}m`:`${r}s`}function X(o){const e=Date.now()-o,r=Math.floor(e/1e3),n=Math.floor(r/60),a=Math.floor(n/60),l=Math.floor(a/24),c=Math.floor(l/30),s=Math.floor(c/12);return s>0?`${s} year${s>1?"s":""} ago`:c>0?`${c} month${c>1?"s":""} ago`:l>0?`${l} day${l>1?"s":""} ago`:a>0?`${a} hour${a>1?"s":""} ago`:n>0?`${n} minute${n>1?"s":""} ago`:`${r} second${r>1?"s":""} ago`}function W(o){return o.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`").replace(/'/g,"'")}function C(o){const t=document.createElement("input");t.value=o,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}const J=Object.freeze(Object.defineProperty({__proto__:null,copystr:C,joinedAgo:X,sanitize:W,timeAgo:D},Symbol.toStringTag,{value:"Module"}));class V extends HTMLElement{static get observedAttributes(){return["copy","id","type"]}constructor(){super(),this.attachShadow({mode:"open"}),this._boundCopy=this._onCopy.bind(this),this._isRendered=!1}connectedCallback(){this._isRendered||(this.render(),this._isRendered=!0)}render(){const t=this.hasAttribute("copy");this.shadowRoot.innerHTML=`
|
|
873
873
|
<style>
|
|
874
874
|
:host {
|
|
875
875
|
position: relative;
|
|
@@ -903,8 +903,8 @@
|
|
|
903
903
|
|
|
904
904
|
<pre class="${t?"g":""}"><code></code></pre>
|
|
905
905
|
`,this.copyBtn=this.shadowRoot.querySelector(".copy"),this.codeEl=this.shadowRoot.querySelector("code"),this.codeEl.textContent=this._getFormattedText(),t?this.copyBtn.addEventListener("click",this._boundCopy):this.copyBtn.style.display="none"}_getFormattedText(){let t=this.textContent||"";t=t.replace(/^\s*\n/,"").replace(/\n\s*$/,""),t=t.replace(/[ \t]+$/gm,"");const i=t.split(`
|
|
906
|
-
`),e=i.filter(
|
|
907
|
-
`),t}_onCopy(){
|
|
906
|
+
`),e=i.filter(n=>n.trim()).map(n=>n.match(/^\s*/)[0].length),r=e.length?Math.min(...e):0;return t=i.map(n=>n.slice(r)).join(`
|
|
907
|
+
`),t}_onCopy(){C(this._getFormattedText())}disconnectedCallback(){this.copyBtn&&this.copyBtn.removeEventListener("click",this._boundCopy)}}customElements.define("eui-code",V);class Y extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render(),this.setupEventListeners()}static get observedAttributes(){return["name"]}attributeChangedCallback(t,i,e){t==="name"&&(this.render(),this.setupEventListeners())}setupEventListeners(){const t=this.shadowRoot.querySelector("#nav-toggle");t&&t.addEventListener("click",()=>{window.dispatchEvent(new CustomEvent("toggle-nav"))})}render(){const t=this.getAttribute("name")||"Title";this.shadowRoot.innerHTML=`
|
|
908
908
|
<style>
|
|
909
909
|
:host {
|
|
910
910
|
display: block;
|
|
@@ -996,7 +996,7 @@
|
|
|
996
996
|
<slot></slot>
|
|
997
997
|
</div>
|
|
998
998
|
</div>
|
|
999
|
-
`}}customElements.define("eui-app-titlebar",
|
|
999
|
+
`}}customElements.define("eui-app-titlebar",Y);class K extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this._handleMouseDown=this._addRipple.bind(this)}connectedCallback(){this.render(),this.setupEventListeners()}static get observedAttributes(){return["elevated","interactive","ripple"]}attributeChangedCallback(t,i,e){i!==e&&t==="ripple"&&this.setupEventListeners()}setupEventListeners(){this.removeEventListener("mousedown",this._handleMouseDown),this.hasAttribute("ripple")&&this.addEventListener("mousedown",this._handleMouseDown)}_addRipple(t){const i=this.getBoundingClientRect(),e=document.createElement("span"),r=Math.max(i.width,i.height),n=r/2;e.style.width=e.style.height=`${r}px`,e.style.left=`${t.clientX-i.left-n}px`,e.style.top=`${t.clientY-i.top-n}px`,e.classList.add("ripple"),this.shadowRoot.querySelector(".surface").appendChild(e),e.addEventListener("animationend",()=>{e.remove()})}render(){this.shadowRoot.innerHTML=`
|
|
1000
1000
|
<style>
|
|
1001
1001
|
:host {
|
|
1002
1002
|
display: block;
|
|
@@ -1057,4 +1057,4 @@
|
|
|
1057
1057
|
<div class="surface">
|
|
1058
1058
|
<slot></slot>
|
|
1059
1059
|
</div>
|
|
1060
|
-
`}}customElements.define("eui-surface",
|
|
1060
|
+
`}}customElements.define("eui-surface",K),typeof window<"u"&&console.log("ErisUI loaded successfully"),p.device=R,p.haptics=H,p.icons=S,p.loadPage=j,p.router=w,p.storage=_,p.utils=J,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/erisui.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class C extends HTMLElement {
|
|
2
2
|
static get observedAttributes() {
|
|
3
3
|
return ["size", "border-radius", "name", "color"];
|
|
4
4
|
}
|
|
@@ -64,70 +64,31 @@ class M extends HTMLElement {
|
|
|
64
64
|
}
|
|
65
65
|
if (this.hasAttribute("border-radius") && (this.avatar.style.borderRadius = this.getAttribute("border-radius") + "px"), this.hasAttribute("name") && (this.avatar.title = this.getAttribute("name")), !i && this.hasAttribute("name")) {
|
|
66
66
|
const n = this.getAttribute("name").trim().split(/\s+/);
|
|
67
|
-
let
|
|
68
|
-
n.length === 1 ?
|
|
67
|
+
let r = "";
|
|
68
|
+
n.length === 1 ? r = n[0][0] || "" : r = (n[0][0] || "") + (n[n.length - 1][0] || ""), this.initials.textContent = r.toUpperCase();
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
customElements.define("eui-avatar",
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
crown: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M6.51284 21H17.4872C18.3315 21 19.1412 20.6761 19.7382 20.0996C20.3352 19.5231 20.6706 18.7412 20.6706 17.9259C20.6706 17.3526 20.1718 16.9011 19.6094 16.9011H4.39056C3.82819 16.9011 3.32942 17.3526 3.32942 17.9259C3.32942 18.7412 3.66481 19.5231 4.26182 20.0996C4.85883 20.6761 5.66854 21 6.51284 21Z" fill="currentColor"/><path d="M16.8946 9.38729L20.2857 7.10763L21.3073 6.38758C21.4871 6.2591 21.7043 6.18876 21.9279 6.18661C22.1516 6.18446 22.3702 6.25061 22.5526 6.37561C22.735 6.50061 22.8719 6.67808 22.9436 6.88266C22.9816 6.99116 23.0003 7.10434 22.9996 7.2175C23.0031 7.34228 22.9829 7.46738 22.9393 7.5865L22.8716 7.77292L20.8934 14.1242C20.7621 14.5427 20.3382 14.8486 19.8853 14.8517H4.11466C3.6618 14.8486 3.2379 14.5427 3.10658 14.1242L1.12837 7.77291L1.06072 7.5865C1.01709 7.46738 0.996927 7.34227 1.00038 7.21748C0.999667 7.10433 1.01836 6.99115 1.0564 6.88266C1.12813 6.67808 1.26497 6.50061 1.44737 6.37561C1.62977 6.25061 1.84841 6.18446 2.07206 6.18661C2.29571 6.18876 2.51295 6.2591 2.69273 6.38758L3.71429 7.10764L7.10536 9.38729L10.1517 4.97048C10.5708 4.36283 11.2618 4 12 4C12.7382 4 13.4292 4.36283 13.8483 4.97048L16.8946 9.38729Z" fill="currentColor"/></svg>',
|
|
89
|
-
dashboard: '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 9V3H21V9H13ZM3 13V3H11V13H3ZM13 21V11H21V21H13ZM3 21V15H11V21H3ZM5 11H9V5H5V11ZM15 19H19V13H15V19ZM15 7H19V5H15V7ZM5 19H9V17H5V19Z" fill="currentColor"/></svg>',
|
|
90
|
-
delete: '<svg width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M15 3.999V2H9V3.999H3V5.999H21V3.999H15Z"></path><path fill="currentColor" d="M5 6.99902V18.999C5 20.101 5.897 20.999 7 20.999H17C18.103 20.999 19 20.101 19 18.999V6.99902H5ZM11 17H9V11H11V17ZM15 17H13V11H15V17Z"></path></svg>',
|
|
91
|
-
dropdown: '<svg class="dropdown-arrow" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path d="M9.3 5.3a1 1 0 0 0 0 1.4l5.29 5.3-5.3 5.3a1 1 0 1 0 1.42 1.4l6-6a1 1 0 0 0 0-1.4l-6-6a1 1 0 0 0-1.42 0Z"></path></svg>',
|
|
92
|
-
edit: '<svg width="20" height="20" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M19.2929 9.8299L19.9409 9.18278C21.353 7.77064 21.353 5.47197 19.9409 4.05892C18.5287 2.64678 16.2292 2.64678 14.817 4.05892L14.1699 4.70694L19.2929 9.8299ZM12.8962 5.97688L5.18469 13.6906L10.3085 18.813L18.0201 11.0992L12.8962 5.97688ZM4.11851 20.9704L8.75906 19.8112L4.18692 15.239L3.02678 19.8796C2.95028 20.1856 3.04028 20.5105 3.26349 20.7337C3.48669 20.9569 3.8116 21.046 4.11851 20.9704Z" fill="currentColor"></path></svg>',
|
|
93
|
-
emoji: '<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 16 16" fill="none"><path d="M4 9.77778C4 9.77778 5.33333 10.2222 8 10.2222C10.6667 10.2222 12 9.77778 12 9.77778C12 9.77778 11.1111 11.5556 8 11.5556C4.88889 11.5556 4 9.77778 4 9.77778Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16 8C16 12.4184 12.4183 16 8 16C3.58171 16 0 12.4184 0 8C0 3.5816 3.58171 0 8 0C12.4183 0 16 3.5816 16 8ZM8 9.33377C6.38976 9.33377 5.32134 9.14627 4 8.88932C3.69824 8.83116 3.11111 8.88932 3.11111 9.77821C3.11111 11.556 5.15332 13.7782 8 13.7782C10.8462 13.7782 12.8889 11.556 12.8889 9.77821C12.8889 8.88932 12.3018 8.83073 12 8.88932C10.6787 9.14627 9.61024 9.33377 8 9.33377ZM5.33333 7.55556C5.94699 7.55556 6.44444 6.85894 6.44444 6C6.44444 5.14106 5.94699 4.44444 5.33333 4.44444C4.71967 4.44444 4.22222 5.14106 4.22222 6C4.22222 6.85894 4.71967 7.55556 5.33333 7.55556ZM11.7778 6C11.7778 6.85894 11.2803 7.55556 10.6667 7.55556C10.053 7.55556 9.55556 6.85894 9.55556 6C9.55556 5.14106 10.053 4.44444 10.6667 4.44444C11.2803 4.44444 11.7778 5.14106 11.7778 6Z" fill="currentColor"></path></svg>',
|
|
94
|
-
eye: '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.99984 17C15.1545 17 19.3332 11.75 19.3332 10C19.3332 8.25 15.1545 3 9.99984 3C4.84518 3 0.666504 8.25 0.666504 10C0.666504 11.75 4.84518 17 9.99984 17ZM10 15.25C12.8995 15.25 15.25 12.8995 15.25 10C15.25 7.1005 12.8995 4.75 10 4.75C7.1005 4.75 4.75 7.1005 4.75 10C4.75 12.8995 7.1005 15.25 10 15.25Z" fill="currentColor"/><circle cx="10" cy="10" r="3.5" fill="currentColor"/></svg>',
|
|
95
|
-
group: '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M6.2692 5.18955C5.81 5.7993 5.08003 6.19339 4.25802 6.19339C2.8684 6.19339 1.74189 5.06688 1.74189 3.67726C1.74189 2.28764 2.8684 1.16113 4.25802 1.16113C5.36535 1.16113 6.30568 1.87635 6.64193 2.87018C6.72765 3.12346 6.77415 3.39507 6.77415 3.67726C6.77415 4.24316 6.58646 4.76654 6.27119 5.1869C6.27053 5.18766 6.26986 5.18879 6.2692 5.18955Z" fill="currentColor"/><path d="M8.46448 9.78859C8.67372 10.3275 8.21584 10.8386 7.63623 10.8386H0.879806C0.300201 10.8386 -0.157681 10.3275 0.0515553 9.78859C0.691645 8.14022 2.3335 6.96758 4.25802 6.96758C5.16386 6.96758 6.00837 7.22804 6.71395 7.67506C6.75789 7.70284 6.80014 7.73063 6.84295 7.75992C7.57395 8.2591 8.14449 8.96431 8.46448 9.78859Z" fill="currentColor"/><path d="M9.21307 10.525C9.16449 10.6686 9.26098 10.8386 9.41266 10.8386H11.2001C11.727 10.8386 12.1433 10.3785 11.9531 9.89368C11.3712 8.41013 9.87858 7.35468 8.12899 7.35468L8.08958 7.35487C7.91833 7.35638 7.8519 7.56883 7.97485 7.68791C8.50096 8.19805 8.91755 8.81669 9.18623 9.50847C9.32307 9.86098 9.31806 10.2139 9.21307 10.525Z" fill="currentColor"/><path d="M6.73068 5.84807C7.23969 5.26874 7.54834 4.5091 7.54834 3.67726C7.54834 3.19604 7.44505 2.73882 7.25934 2.32677C7.2136 2.22527 7.25452 2.1026 7.35971 2.06574C7.47075 2.02681 7.58567 1.996 7.7038 1.97426C7.84169 1.94875 7.98383 1.93533 8.12899 1.93533C9.41172 1.93533 10.4516 2.97527 10.4516 4.25791C10.4516 5.54054 9.41172 6.58049 8.12899 6.58049C7.61261 6.58049 7.13563 6.41208 6.75005 6.12705C6.66046 6.06089 6.65724 5.9318 6.73068 5.84807Z" fill="currentColor"/></svg>',
|
|
96
|
-
heart: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M22 8.53881C22 5.47978 19.5298 3 16.4831 3C14.6335 3 13.0014 3.91659 12 5.31757C10.9986 3.91659 9.36651 3 7.51747 3C4.47023 3 2 5.47922 2 8.53881C2 8.97212 2.05479 9.39197 2.14873 9.79666C2.91473 14.5749 8.20688 19.6159 12 21C15.7926 19.6159 21.0853 14.5749 21.8502 9.79722C21.9452 9.39253 22 8.97268 22 8.53881Z" fill="currentColor"/></svg>',
|
|
97
|
-
hide: '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.7071 4.70711C21.0976 4.31658 21.0976 3.68342 20.7071 3.29289C20.3166 2.90237 19.6834 2.90237 19.2929 3.29289L17.4154 5.17036C17.4154 5.17033 17.4153 5.17029 17.4152 5.17026L15.691 6.89449C15.6911 6.89453 15.6911 6.89457 15.6912 6.89461L14.1774 8.40837C14.1774 8.40833 14.1773 8.4083 14.1772 8.40826L8.40767 14.1778C8.40771 14.1779 8.40775 14.1779 8.40778 14.178L6.89403 15.6918C6.89398 15.6917 6.89394 15.6916 6.8939 15.6916L4.90219 17.6833C4.90224 17.6833 4.9023 17.6834 4.90235 17.6834L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L20.7071 4.70711ZM11.9998 3.60059C13.6341 3.60059 15.1866 4.04035 16.5865 4.72624L14.9042 6.40847C14.0352 5.95621 13.0474 5.70059 12 5.70059C8.52061 5.70059 5.7 8.52119 5.7 12.0006C5.7 13.048 5.95562 14.0358 6.40788 14.9048L4.20907 17.1036C2.10668 15.2394 0.799805 13.0727 0.799805 12.0006C0.799805 9.90059 5.81422 3.60059 11.9998 3.60059ZM15.9928 10.6939L10.6934 15.9934C11.1046 16.1279 11.5438 16.2006 12 16.2006C14.3196 16.2006 16.2 14.3202 16.2 12.0006C16.2 11.5444 16.1273 11.1052 15.9928 10.6939ZM12 18.3006C10.9521 18.3006 9.96395 18.0447 9.09461 17.5921L7.41223 19.2745C8.81235 19.9606 10.3652 20.4006 11.9998 20.4006C18.1854 20.4006 23.1998 14.1006 23.1998 12.0006C23.1998 10.9284 21.8926 8.76132 19.7898 6.8969L17.5915 9.09519C18.0442 9.96453 18.3 10.9527 18.3 12.0006C18.3 15.48 15.4794 18.3006 12 18.3006ZM13.3053 8.00738L8.0068 13.3059C7.87257 12.895 7.8 12.4563 7.8 12.0006C7.8 9.68099 9.6804 7.80059 12 7.80059C12.4557 7.80059 12.8944 7.87316 13.3053 8.00738Z" fill="currentColor"/></svg>',
|
|
98
|
-
home: '<svg width="22" height="21" viewBox="0 0 22 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.5258 0.204649C11.2291 -0.0682165 10.7709 -0.0682161 10.4742 0.204649L0.249923 9.68588C-0.266994 10.1612 0.0714693 11.0197 0.775759 11.0197L3.48971 11.0197V18.6923C3.48971 19.542 4.18295 20.2308 5.03811 20.2308H16.9619C17.8171 20.2308 18.5103 19.542 18.5103 18.6923V11.0197L21.2242 11.0197C21.9285 11.0197 22.267 10.1612 21.7501 9.68588L11.5258 0.204649Z" fill="currentColor"/></svg>',
|
|
99
|
-
inbox: '<svg width="19" height="14" viewBox="0 0 19 14" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_2442_48)"><path d="M2.49023 13.289H15.625C17.2949 13.289 18.1152 12.4687 18.1152 10.8281V6.58008C18.1152 5.81836 17.998 5.4668 17.6465 4.98828L15.1367 1.56055C14.248 0.339844 13.7793 0.0078125 12.334 0.0078125H5.78125C4.3457 0.0078125 3.86719 0.339844 2.97852 1.56055L0.478516 4.98828C0.126953 5.4668 0 5.81836 0 6.58008V10.8281C0 12.4687 0.830078 13.289 2.49023 13.289ZM9.0625 8.73828C7.91992 8.73828 7.23633 7.73243 7.23633 6.86328V6.83399C7.23633 6.46289 7.01172 6.10157 6.5332 6.10157H1.8457C1.5625 6.10157 1.50391 5.86719 1.64062 5.67188L4.3457 1.90235C4.69727 1.4043 5.15625 1.23828 5.69336 1.23828H12.4219C12.959 1.23828 13.4277 1.4043 13.7793 1.90235L16.4746 5.67188C16.6016 5.86719 16.5527 6.10157 16.2695 6.10157H11.582C11.1133 6.10157 10.8887 6.46289 10.8887 6.83399V6.86328C10.8887 7.73243 10.1953 8.73828 9.0625 8.73828Z" fill="currentColor" /></g><defs><clipPath id="clip0_2442_48"><rect width="18.4766" height="13.291" fill="currentColor"/></clipPath></defs></svg>',
|
|
100
|
-
kit: '<svg width="26" height="28" viewBox="0 0 26 28" xmlns="http://www.w3.org/2000/svg"><path d="m13.118 14.831c0.433 0 1.257-0.024 1.795-0.344l9.151-4.057c0.869-0.59 1.051-1.255 1.067-1.773 0.02-0.662-0.313-1.634-1.181-2.15l-8.515-3.921c-0.537-0.309-2.096-0.552-2.529-0.552-0.444 0-1.958 0.42-2.496 0.73l-8.643 4.034c-0.85 0.602-1.022 1.284-0.951 1.942 0.098 0.887 0.206 0.857 0.889 1.503l9.577 4.212c0.537 0.32 1.391 0.376 1.836 0.376zm-0.12 5.467c0.403 0 1.443-0.068 1.928-0.345l8.858-3.991c0.497-0.3 1.448-1.117 1.382-1.952-0.091-1.138-0.598-1.7-0.948-1.906l-9.22 3.888c-0.454 0.261-1.417 0.478-1.916 0.478-0.542 0-1.539-0.228-1.766-0.362l-9.395-4.012c-0.462 0.022-1.174 0.911-1.201 1.642-0.03 0.761 0.7 1.62 1.135 1.839l9.408 4.384c0.485 0.278 1.322 0.337 1.735 0.337zm0.09 5.344c0.403 0 1.296-0.053 1.781-0.342l9.147-4.299c0.485-0.289 1.129-0.789 1.053-1.879-0.056-0.794-0.071-1.123-0.918-1.765l-9.203 4.113c-0.228 0.134-0.948 0.39-1.853 0.39-0.939 0-1.603-0.224-1.831-0.359l-9.451-4.017c-0.979 0.247-1.005 1.45-1.005 1.947 0 0.455 0.403 1.279 0.9 1.568l9.465 4.262c0.486 0.29 1.502 0.381 1.915 0.381z" fill="currentColor"></path></svg>',
|
|
101
|
-
loader: '<svg viewBox="0 0 16 16"><circle class="loader-icon" cx="8px" cy="8px" r="7px"></circle></svg>',
|
|
102
|
-
love: '<svg width="18" height="19" viewBox="0 0 18 18" class="love"><path d="M1.34375 7.53125L1.34375 7.54043C1.34374 8.04211 1.34372 8.76295 1.6611 9.65585C1.9795 10.5516 2.60026 11.5779 3.77681 12.7544C5.59273 14.5704 7.58105 16.0215 8.33387 16.5497C8.73525 16.8313 9.26573 16.8313 9.66705 16.5496C10.4197 16.0213 12.4074 14.5703 14.2232 12.7544C15.3997 11.5779 16.0205 10.5516 16.3389 9.65585C16.6563 8.76296 16.6563 8.04211 16.6562 7.54043V7.53125C16.6562 5.23466 15.0849 3.25 12.6562 3.25C11.5214 3.25 10.6433 3.78244 9.99228 4.45476C9.59009 4.87012 9.26356 5.3491 9 5.81533C8.73645 5.3491 8.40991 4.87012 8.00772 4.45476C7.35672 3.78244 6.47861 3.25 5.34375 3.25C2.9151 3.25 1.34375 5.23466 1.34375 7.53125Z" stroke-width="1.25"></path></svg>',
|
|
103
|
-
mention: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.486 2 2 6.486 2 12C2 17.515 6.486 22 12 22C14.039 22 15.993 21.398 17.652 20.259L16.521 18.611C15.195 19.519 13.633 20 12 20C7.589 20 4 16.411 4 12C4 7.589 7.589 4 12 4C16.411 4 20 7.589 20 12V12.782C20 14.17 19.402 15 18.4 15L18.398 15.018C18.338 15.005 18.273 15 18.209 15H18C17.437 15 16.6 14.182 16.6 13.631V12C16.6 9.464 14.537 7.4 12 7.4C9.463 7.4 7.4 9.463 7.4 12C7.4 14.537 9.463 16.6 12 16.6C13.234 16.6 14.35 16.106 15.177 15.313C15.826 16.269 16.93 17 18 17L18.002 16.981C18.064 16.994 18.129 17 18.195 17H18.4C20.552 17 22 15.306 22 12.782V12C22 6.486 17.514 2 12 2ZM12 14.599C10.566 14.599 9.4 13.433 9.4 11.999C9.4 10.565 10.566 9.399 12 9.399C13.434 9.399 14.6 10.565 14.6 11.999C14.6 13.433 13.434 14.599 12 14.599Z"></path></svg>',
|
|
104
|
-
menu: '<svg width="24" height="24" viewBox="0 0 24 24" focusable="false"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" fill="currentColor"></path></svg>',
|
|
105
|
-
mod: '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.45162 6.34581C4.19457 6.22911 3.90741 6.12286 3.64748 6.23311C3.26645 6.39474 3 6.76957 3 7.20581C3 9.47862 3.44964 11.7607 4.22976 13.8981C6.17236 19.2204 10.341 21.3384 11.3126 21.832C11.7535 22.056 12.2465 22.056 12.6874 21.832C13.659 21.3384 17.8276 19.2204 19.7702 13.8981C20.5504 11.7607 21 9.47862 21 7.20581C21 6.76957 20.7335 6.39474 20.3525 6.23311C20.0926 6.12286 19.8054 6.22911 19.5484 6.34581C19.0274 6.58233 18.5118 6.68337 18.0113 6.68398C15.2473 6.68054 13.0341 3.54653 12.9318 3.40157C12.9299 3.39887 12.9283 3.39662 12.9283 3.39662C12.7109 3.11183 12.3499 2.98041 12 3.00236C11.6501 2.98041 11.2891 3.11183 11.0717 3.39662C11.0717 3.39662 11.0701 3.39887 11.0682 3.40157C10.9659 3.54655 8.75268 6.68049 5.98876 6.68398C5.48829 6.68338 4.9726 6.58234 4.45162 6.34581Z" fill="currentColor"/></svg>',
|
|
106
|
-
more: '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M4 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z" clip-rule="evenodd"></path></svg>',
|
|
107
|
-
notifications: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" class="notifications"><path d="M14.3 2.88988C14.12 2.81988 13.98 2.64988 13.93 2.45988C13.8149 2.03619 13.5635 1.66217 13.2147 1.39551C12.8659 1.12885 12.4391 0.984375 12 0.984375C11.5609 0.984375 11.1341 1.12885 10.7853 1.39551C10.4365 1.66217 10.1851 2.03619 10.07 2.45988C10.02 2.65988 9.88 2.81988 9.69 2.88988C8.3192 3.36908 7.13137 4.26275 6.29106 5.44707C5.45075 6.63139 4.99956 8.04773 5 9.49988V11.5899C5 11.7099 4.95 11.8299 4.87 11.9199L3.77 13.1399C3.27354 13.6916 2.9992 14.4077 3 15.1499V15.4299C3 16.0999 3.34 16.7199 3.95 16.9899C5.26 17.5899 7.95 18.4999 12 18.4999C16.05 18.4999 18.74 17.5899 20.05 16.9999C20.66 16.7199 21 16.0999 21 15.4299V15.1499C20.9983 14.4111 20.7242 13.699 20.23 13.1499L19.13 11.9199C19.0478 11.8295 19.0016 11.7121 19 11.5899V9.49988C18.9997 8.04652 18.5471 6.62928 17.7049 5.44482C16.8627 4.26036 15.6727 3.36741 14.3 2.88988ZM14.82 19.8399C14.9105 19.8285 15.0007 19.9087 15 19.9999C15 20.7955 14.6839 21.5586 14.1213 22.1212C13.5587 22.6838 12.7956 22.9999 12 22.9999C11.2044 22.9999 10.4413 22.6838 9.87868 22.1212C9.31607 21.5586 9 20.7955 9 19.9999C9 19.8999 9.09 19.8299 9.18 19.8399C11.0539 20.0538 12.9461 20.0538 14.82 19.8399Z" fill="currentColor"/></svg>',
|
|
108
|
-
pin: '<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.98909 1.08618C8.86959 0.239498 9.82406 -0.2939 10.4754 0.174066L10.6014 0.280511L17.4149 7.09496C18.0589 7.73994 17.513 8.83451 16.6102 8.70727L13.2655 8.23266L10.9002 11.2063C11.2426 11.7271 11.5865 12.4042 11.741 13.1995C11.9548 14.3004 11.7954 15.5763 10.8865 16.8948C10.2168 17.8661 8.96377 17.8256 8.19612 17.2034L8.04963 17.0706L4.86799 13.8889L1.2801 17.4768C0.987359 17.7692 0.512372 17.769 0.219554 17.4768C-0.0731847 17.1839 -0.0731848 16.7081 0.219554 16.4153L3.80647 12.8284L0.624828 9.64672C-0.10908 8.9127 -0.255051 7.50428 0.842601 6.81371C1.66486 6.2967 2.49854 6.07255 3.28889 6.0393C4.5453 5.98663 5.65547 6.4187 6.44026 6.83422L9.46272 4.42895L8.98909 1.08618Z" fill="currentColor"/></svg>',
|
|
109
|
-
play: '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.75 10.7011C18.75 11.2785 18.75 12.7218 17.75 13.2992L8.75 18.4953C7.75 19.0727 6.5 18.351 6.5 17.1963L6.5 6.80399C6.5 5.64929 7.75 4.92761 8.75 5.50496L17.75 10.7011Z" fill="currentColor"/></svg>',
|
|
110
|
-
profile: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 26" width="24" height="24" fill="none"><circle cx="13" cy="7.25" r="4" stroke="currentColor" stroke-width="2.5" fill="currentColor"></circle><path d="M6.26678 23.75H19.744C21.603 23.75 22.5 23.2186 22.5 22.0673C22.5 19.3712 18.8038 15.75 13 15.75C7.19625 15.75 3.5 19.3712 3.5 22.0673C3.5 23.2186 4.39704 23.75 6.26678 23.75Z" stroke="currentColor" stroke-width="2.5" fill="currentColor"></path></svg>',
|
|
111
|
-
reply: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 8.26667V4L3 11.4667L10 18.9333V14.56C15 14.56 18.5 16.2667 21 20C20 14.6667 17 9.33333 10 8.26667Z" fill="currentColor"></path></svg>',
|
|
112
|
-
replyIn: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"><path fill="currentColor" d="M21.7 7.3a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-1.4-1.4L18.58 9H13a7 7 0 0 0-7 7v4a1 1 0 1 1-2 0v-4a9 9 0 0 1 9-9h5.59l-3.3-3.3a1 1 0 0 1 1.42-1.4l5 5Z"></path></svg>',
|
|
113
|
-
report: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="currentColor" d="M20 6.00201H14V3.00201C14 2.45001 13.553 2.00201 13 2.00201H4C3.447 2.00201 3 2.45001 3 3.00201V22.002H5V14.002H10.586L8.293 16.295C8.007 16.581 7.922 17.011 8.076 17.385C8.23 17.759 8.596 18.002 9 18.002H20C20.553 18.002 21 17.554 21 17.002V7.00201C21 6.45001 20.553 6.00201 20 6.00201Z"></path></svg>',
|
|
114
|
-
repost: '<svg xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 18 18" width="18" height="18" fill="currentColor"><path d="M6.41256 1.23531C6.6349 0.971277 7.02918 0.937481 7.29321 1.15982L9.96509 3.40982C10.1022 3.52528 10.1831 3.69404 10.1873 3.87324C10.1915 4.05243 10.1186 4.2248 9.98706 4.34656L7.31518 6.81971C7.06186 7.05419 6.66643 7.03892 6.43196 6.7856C6.19748 6.53228 6.21275 6.13685 6.46607 5.90237L7.9672 4.51289H5.20312C3.68434 4.51289 2.45312 5.74411 2.45312 7.26289V9.51289V11.7629C2.45312 13.2817 3.68434 14.5129 5.20312 14.5129C5.5483 14.5129 5.82812 14.7927 5.82812 15.1379C5.82812 15.4831 5.5483 15.7629 5.20312 15.7629C2.99399 15.7629 1.20312 13.972 1.20312 11.7629V9.51289V7.26289C1.20312 5.05375 2.99399 3.26289 5.20312 3.26289H7.85002L6.48804 2.11596C6.22401 1.89362 6.19021 1.49934 6.41256 1.23531Z"></path><path d="M11.5874 17.7904C11.3651 18.0545 10.9708 18.0883 10.7068 17.8659L8.03491 15.6159C7.89781 15.5005 7.81687 15.3317 7.81267 15.1525C7.80847 14.9733 7.8814 14.801 8.01294 14.6792L10.6848 12.206C10.9381 11.9716 11.3336 11.9868 11.568 12.2402C11.8025 12.4935 11.7872 12.8889 11.5339 13.1234L10.0328 14.5129H12.7969C14.3157 14.5129 15.5469 13.2816 15.5469 11.7629V9.51286V7.26286C15.5469 5.74408 14.3157 4.51286 12.7969 4.51286C12.4517 4.51286 12.1719 4.23304 12.1719 3.88786C12.1719 3.54269 12.4517 3.26286 12.7969 3.26286C15.006 3.26286 16.7969 5.05373 16.7969 7.26286V9.51286V11.7629C16.7969 13.972 15.006 15.7629 12.7969 15.7629H10.15L11.512 16.9098C11.776 17.1321 11.8098 17.5264 11.5874 17.7904Z"></path></svg>',
|
|
115
|
-
search: '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.9722 16.0994C12.7426 16.981 11.2354 17.5 9.60693 17.5C5.4648 17.5 2.10693 14.1421 2.10693 10C2.10693 5.85786 5.4648 2.5 9.60693 2.5C13.7491 2.5 17.1069 5.85786 17.1069 10C17.1069 11.6284 16.588 13.1356 15.7064 14.3653C15.7731 14.41 15.8365 14.4618 15.8955 14.5208L19.7846 18.4099C20.2728 18.8981 20.2728 19.6895 19.7846 20.1777C19.2964 20.6658 18.505 20.6658 18.0168 20.1777L14.1277 16.2886C14.0688 16.2296 14.0169 16.1662 13.9722 16.0994ZM15.1069 10C15.1069 13.0376 12.6445 15.5 9.60693 15.5C6.56937 15.5 4.10693 13.0376 4.10693 10C4.10693 6.96243 6.56937 4.5 9.60693 4.5C12.6445 4.5 15.1069 6.96243 15.1069 10Z" fill="currentColor"/></svg>',
|
|
116
|
-
send: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M8.2738 8.49222L1.99997 9.09877L0.349029 14.3788C0.250591 14.691 0.347154 15.0322 0.595581 15.246C0.843069 15.4597 1.19464 15.5047 1.48903 15.3613L15.2384 8.7032C15.5075 8.57195 15.6781 8.29914 15.6781 8.00007C15.6781 7.70101 15.5074 7.4282 15.2384 7.29694L1.49839 0.634063C1.20401 0.490625 0.852453 0.535625 0.604941 0.749376C0.356493 0.963128 0.259941 1.30344 0.358389 1.61563L2.00932 6.89563L8.27093 7.50312C8.52405 7.52843 8.71718 7.74125 8.71718 7.99531C8.71718 8.24938 8.52406 8.46218 8.27093 8.4875L8.2738 8.49222Z" fill="currentColor"></path></svg>',
|
|
117
|
-
settings: '<svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.644169 15.2044C0.751639 15.4175 0.866389 15.627 0.988219 15.8323C1.34503 16.445 1.76284 17.0223 2.23048 17.545C2.3967 17.7307 2.65856 17.7968 2.89375 17.7126L5.25826 16.8621C5.96645 16.608 6.74841 17.07 6.87902 17.8018L7.32018 20.2764C7.36418 20.5227 7.55119 20.7167 7.79454 20.7688C8.86201 20.9976 9.95753 21.057 11.0418 20.9452C11.427 20.9061 11.8095 20.8457 12.1863 20.7643C12.375 20.7232 12.5303 20.5969 12.6121 20.4275C12.6441 20.37 12.6671 20.3068 12.6794 20.2397L13.132 17.7739C13.1978 17.4162 13.4191 17.1252 13.7102 16.9498C13.7478 16.9275 13.7867 16.9072 13.8264 16.8889C14.1041 16.7654 14.426 16.7408 14.7301 16.8496L17.0889 17.6938C17.2068 17.7362 17.3318 17.7406 17.4482 17.7107C17.5805 17.6872 17.7044 17.6208 17.7983 17.5172C18.2857 16.9783 18.7189 16.3833 19.0875 15.7497C19.4503 15.1137 19.748 14.4403 19.9703 13.7471C20.0128 13.6142 20.0083 13.4742 19.9629 13.3481C19.9307 13.2315 19.8646 13.1245 19.7685 13.043L17.8596 11.4179C17.6114 11.2067 17.4714 10.912 17.4409 10.6065C17.4371 10.563 17.4355 10.5194 17.4361 10.4758C17.444 10.1379 17.5847 9.80337 17.8591 9.56905L19.7638 7.94348C19.8146 7.90007 19.857 7.84958 19.8904 7.7944C19.9978 7.63842 20.0299 7.43844 19.9706 7.25291C19.8534 6.88733 19.7151 6.52704 19.5572 6.17466C19.1114 5.17572 18.5115 4.2528 17.7787 3.43934C17.612 3.25429 17.3509 3.18886 17.1161 3.27382L14.7569 4.12827C14.0592 4.38082 13.2679 3.93321 13.1344 3.19155L12.6871 0.714256C12.6423 0.468053 12.4542 0.273849 12.2106 0.22246C11.5182 0.0764882 10.803 0.00250031 10.088 0.000608251C9.88769 -0.0015584 9.68739 0.002064 9.48735 0.0114648C8.92415 0.0369819 8.36389 0.107332 7.81778 0.222459C7.78135 0.230146 7.74615 0.241028 7.71249 0.2548C7.5098 0.328781 7.35888 0.505679 7.31996 0.723547L6.8788 3.19817C6.81394 3.56157 6.58834 3.85866 6.29097 4.03446C5.98991 4.2061 5.61923 4.25412 5.27153 4.12827L2.91237 3.27382C2.70694 3.1995 2.48138 3.24016 2.31657 3.37545C2.2857 3.39886 2.25676 3.42543 2.23026 3.45505C1.81793 3.91588 1.44433 4.4192 1.11714 4.95183C1.05788 5.04799 1.00019 5.14513 0.944072 5.24319C0.878302 5.35619 0.814661 5.4704 0.753186 5.58577C0.464267 6.12611 0.222113 6.69081 0.0338354 7.26739C0.0213426 7.30567 0.0127871 7.34455 0.00802709 7.38352C-0.0257478 7.59364 0.0518458 7.809 0.218337 7.94974L2.13633 9.56992C2.41146 9.80242 2.55518 10.1364 2.56469 10.4743C2.56917 10.8294 2.42529 11.1857 2.13611 11.4301L0.218115 13.0503C0.0484589 13.1937 -0.0289685 13.4145 0.00982709 13.6284C0.0147983 13.6634 0.0228404 13.6982 0.0340542 13.7326C0.198098 14.235 0.403035 14.7283 0.644169 15.2044ZM10 14.5C12.2091 14.5 14 12.7091 14 10.5C14 8.29086 12.2091 6.5 10 6.5C7.79086 6.5 6 8.29086 6 10.5C6 12.7091 7.79086 14.5 10 14.5Z" fill="currentColor"></path></svg>',
|
|
118
|
-
"share-ios": '<svg xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 24 24" height="28" width="20" class="icon"><path id="icon-share" d="M5.22 22.81h9.55c1.8 0 2.73-.92 2.73-2.69V11.95c0-1.77-.93-2.69-2.73-2.69h-2.4v1.63h2.3c.77 0 1.2.39 1.2 1.2v7.89c0 .81-.43 1.21-1.2 1.21H5.32c-.77 0-1.2-.4-1.2-1.21V12.09c0-.81.43-1.2 1.2-1.2H7.63V9.26H5.22c-1.79 0-2.72.92-2.72 2.69v8.17c0 1.77.93 2.69 2.72 2.69ZM9.99 16.2c.42 0 .77-.35.77-.76V7.08L10.7 5.85l.51.6L12.38 7.7c.14.15.33.22.52.22.37 0 .68-.27.68-.66 0-.2-.08-.35-.22-.49L10.57 4.09c-.19-.2-.37-.27-.58-.27-.2 0-.38.07-.57.27L6.63 6.77c-.14.14-.22.29-.22.49 0 .39.3.66.68.66.19 0 .39-.07.52-.22L8.77 6.45l.52-.6-.06 1.23v8.36c0 .41.35.76.76.76Z" fill="currentColor"></path></svg>',
|
|
119
|
-
share: '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5 11.5C5.82843 11.5 6.5 12.1716 6.5 13V18.5H17.5V13C17.5 12.1716 18.1716 11.5 19 11.5C19.8284 11.5 20.5 12.1716 20.5 13V19C20.5 20.3807 19.3807 21.5 18 21.5H6C4.61929 21.5 3.5 20.3807 3.5 19V13C3.5 12.1716 4.17157 11.5 5 11.5Z" fill="currentColor"/><path d="M13.5 5.62166L15.9393 8.061C16.5251 8.64678 17.4749 8.64678 18.0607 8.061C18.6464 7.47521 18.6464 6.52546 18.0607 5.93968L13.7678 1.64678C12.7915 0.670471 11.2085 0.670475 10.2322 1.64678L5.93934 5.93968C5.35355 6.52546 5.35355 7.47521 5.93934 8.061C6.52513 8.64678 7.47487 8.64678 8.06066 8.061L10.5 5.62166L10.5 14.0005C10.5 14.8289 11.1716 15.5005 12 15.5005C12.8284 15.5005 13.5 14.8289 13.5 14.0005V5.62166Z" fill="currentColor"/></svg>',
|
|
120
|
-
star: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.785 3.10866L15.9287 7.45093L20.7219 8.14933C22.3552 8.38578 23.0066 10.3917 21.8259 11.5442L18.3559 14.925L19.1748 19.6995C19.4536 21.3249 17.7467 22.5651 16.2873 21.7978L11.9998 19.5429L7.71237 21.7978C6.25138 22.5651 4.5461 21.3249 4.82327 19.6995L5.6438 14.925L2.17531 11.5442C0.993053 10.3917 1.64447 8.38578 3.27771 8.14933L8.07253 7.45093L10.2147 3.10866C10.946 1.63045 13.0537 1.63045 13.785 3.10866Z" fill="currentColor"/></svg>',
|
|
121
|
-
starCross: '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.1992 5.97235L13.7855 3.10866C13.0542 1.63045 10.9465 1.63045 10.2152 3.10866L8.07302 7.45093L3.2782 8.14933C1.64496 8.38578 0.993541 10.3917 2.1758 11.5442L5.64429 14.925L5.51931 15.6523L15.1992 5.97235ZM18.939 7.88947L5.38177 21.4467C5.96053 22.0185 6.8767 22.2369 7.71286 21.7978L12.0003 19.5429L16.2878 21.7978C17.7472 22.5651 19.454 21.3249 19.1753 19.6995L18.3563 14.925L21.8264 11.5442C23.0071 10.3917 22.3557 8.38578 20.7224 8.14933L18.939 7.88947Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.7071 3.29289C21.0976 3.68342 21.0976 4.31658 20.7071 4.70711L3.70711 21.7071C3.31658 22.0976 2.68342 22.0976 2.29289 21.7071C1.90237 21.3166 1.90237 20.6834 2.29289 20.2929L19.2929 3.29289C19.6834 2.90237 20.3166 2.90237 20.7071 3.29289Z" fill="currentColor"/></svg>',
|
|
122
|
-
swatch: '<svg class="swatch" aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="m13.96 5.46 4.58 4.58a1 1 0 0 0 1.42 0l1.38-1.38a2 2 0 0 0 0-2.82l-3.18-3.18a2 2 0 0 0-2.82 0l-1.38 1.38a1 1 0 0 0 0 1.42ZM2.11 20.16l.73-4.22a3 3 0 0 1 .83-1.61l7.87-7.87a1 1 0 0 1 1.42 0l4.58 4.58a1 1 0 0 1 0 1.42l-7.87 7.87a3 3 0 0 1-1.6.83l-4.23.73a1.5 1.5 0 0 1-1.73-1.73Z"></path></svg>',
|
|
123
|
-
up: '<svg viewBox="0 0 448 512" height="19" width="19"><path fill="currentColor" d="M201.4 137.4c12.5-12.5 32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L224 205.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160z"></path></svg>',
|
|
124
|
-
verified: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.92893 4.9289C4.18766 5.67017 4.03197 6.76834 3.99926 8.68599C2.66642 10.0651 2 10.9517 2 12C2 13.0483 2.66642 13.9349 3.99927 15.314C4.03197 17.2316 4.18767 18.3298 4.92893 19.071C5.6702 19.8123 6.76834 19.968 8.68595 20.0007C10.0651 21.3336 10.9517 22 12 22C13.0483 22 13.9349 21.3336 15.3141 20.0007C17.2317 19.968 18.3298 19.8123 19.0711 19.071C19.8123 18.3298 19.968 17.2316 20.0007 15.314C21.3336 13.9349 22 13.0483 22 12C22 10.9517 21.3336 10.0651 20.0007 8.68599C19.968 6.76834 19.8123 5.67017 19.0711 4.9289C18.3298 4.18762 17.2316 4.03193 15.314 3.99923C13.9349 2.66641 13.0483 2 12 2C10.9517 2 10.0651 2.66641 8.68602 3.99923C6.76837 4.03193 5.67021 4.18762 4.92893 4.9289ZM15.3254 8.37541C15.6001 7.99371 16.1639 7.88526 16.5849 8.13281C17.0067 8.38036 17.1269 8.89062 16.8534 9.27266C16.8534 9.27266 12.4214 15.4577 12.3005 15.6246C12.0947 15.907 11.7811 16 11.536 16C11.3152 16 11.0931 15.9275 10.9182 15.7808L8.2925 13.5835C7.92317 13.2747 7.90059 12.7532 8.24187 12.4189C8.58316 12.085 9.15937 12.0643 9.52869 12.3734L11.3604 13.9062L15.3254 8.37541Z" fill="currentColor"/></svg>',
|
|
125
|
-
wom: '<svg viewBox="0 0 242 155" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 154.727H191.104C208.636 154.727 217.402 154.726 224.099 151.314C229.989 148.313 234.778 143.524 237.779 137.634C241.191 130.937 241.191 122.171 241.191 104.639V50.0879C241.191 32.5556 241.191 23.7893 237.779 17.0928C234.778 11.2024 229.989 6.41342 224.099 3.41211C217.402 7.46025e-05 208.636 1.98677e-10 191.104 0H0V154.727ZM216.393 42.75L198.507 110H174.325L163.165 68.6484L152.146 110H127.822L109.937 42.75H131.829L141.415 84.96L152.004 42.75H174.469L184.914 84.96L194.644 42.75H216.393Z" fill="currentColor"/></svg>'
|
|
126
|
-
}, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72
|
+
customElements.define("eui-avatar", C);
|
|
73
|
+
const g = /* @__PURE__ */ (() => {
|
|
74
|
+
let o = {};
|
|
75
|
+
return {
|
|
76
|
+
register(t, i) {
|
|
77
|
+
o[t] = i;
|
|
78
|
+
},
|
|
79
|
+
get(t) {
|
|
80
|
+
return o[t] || "";
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
})();
|
|
84
|
+
g.register("menu", '<svg width="24" height="24" viewBox="0 0 24 24" focusable="false"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" fill="currentColor"></path></svg>');
|
|
85
|
+
g.register("home", '<svg width="22" height="21" viewBox="0 0 22 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.5258 0.204649C11.2291 -0.0682165 10.7709 -0.0682161 10.4742 0.204649L0.249923 9.68588C-0.266994 10.1612 0.0714693 11.0197 0.775759 11.0197L3.48971 11.0197V18.6923C3.48971 19.542 4.18295 20.2308 5.03811 20.2308H16.9619C17.8171 20.2308 18.5103 19.542 18.5103 18.6923V11.0197L21.2242 11.0197C21.9285 11.0197 22.267 10.1612 21.7501 9.68588L11.5258 0.204649Z" fill="currentColor"/></svg>');
|
|
86
|
+
g.register("kit", '<svg width="26" height="28" viewBox="0 0 26 28" xmlns="http://www.w3.org/2000/svg"><path d="m13.118 14.831c0.433 0 1.257-0.024 1.795-0.344l9.151-4.057c0.869-0.59 1.051-1.255 1.067-1.773 0.02-0.662-0.313-1.634-1.181-2.15l-8.515-3.921c-0.537-0.309-2.096-0.552-2.529-0.552-0.444 0-1.958 0.42-2.496 0.73l-8.643 4.034c-0.85 0.602-1.022 1.284-0.951 1.942 0.098 0.887 0.206 0.857 0.889 1.503l9.577 4.212c0.537 0.32 1.391 0.376 1.836 0.376zm-0.12 5.467c0.403 0 1.443-0.068 1.928-0.345l8.858-3.991c0.497-0.3 1.448-1.117 1.382-1.952-0.091-1.138-0.598-1.7-0.948-1.906l-9.22 3.888c-0.454 0.261-1.417 0.478-1.916 0.478-0.542 0-1.539-0.228-1.766-0.362l-9.395-4.012c-0.462 0.022-1.174 0.911-1.201 1.642-0.03 0.761 0.7 1.62 1.135 1.839l9.408 4.384c0.485 0.278 1.322 0.337 1.735 0.337zm0.09 5.344c0.403 0 1.296-0.053 1.781-0.342l9.147-4.299c0.485-0.289 1.129-0.789 1.053-1.879-0.056-0.794-0.071-1.123-0.918-1.765l-9.203 4.113c-0.228 0.134-0.948 0.39-1.853 0.39-0.939 0-1.603-0.224-1.831-0.359l-9.451-4.017c-0.979 0.247-1.005 1.45-1.005 1.947 0 0.455 0.403 1.279 0.9 1.568l9.465 4.262c0.486 0.29 1.502 0.381 1.915 0.381z" fill="currentColor"></path></svg>');
|
|
87
|
+
const X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
127
88
|
__proto__: null,
|
|
128
|
-
icon:
|
|
89
|
+
icon: g
|
|
129
90
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
130
|
-
class
|
|
91
|
+
class S extends HTMLElement {
|
|
131
92
|
static get observedAttributes() {
|
|
132
93
|
return ["name", "width", "height"];
|
|
133
94
|
}
|
|
@@ -141,23 +102,23 @@ class H extends HTMLElement {
|
|
|
141
102
|
this.render();
|
|
142
103
|
}
|
|
143
104
|
render() {
|
|
144
|
-
const t = this.getAttribute("name"), i =
|
|
105
|
+
const t = this.getAttribute("name"), i = g.get(t);
|
|
145
106
|
if (!i) {
|
|
146
107
|
this.shadowRoot.innerHTML = '<span style="color:red;">?</span>';
|
|
147
108
|
return;
|
|
148
109
|
}
|
|
149
110
|
const e = document.createElement("template");
|
|
150
111
|
e.innerHTML = i.trim();
|
|
151
|
-
const n = e.content.cloneNode(!0),
|
|
152
|
-
if (
|
|
112
|
+
const n = e.content.cloneNode(!0), r = n.firstElementChild;
|
|
113
|
+
if (r && r.style) {
|
|
153
114
|
const a = this.getAttribute("width"), l = this.getAttribute("height");
|
|
154
|
-
a &&
|
|
115
|
+
a && r.setAttribute("width", a), l && r.setAttribute("height", l), r.style.display = "block";
|
|
155
116
|
}
|
|
156
117
|
this.shadowRoot.innerHTML = "", this.shadowRoot.appendChild(n);
|
|
157
118
|
}
|
|
158
119
|
}
|
|
159
|
-
customElements.define("eui-icon",
|
|
160
|
-
class
|
|
120
|
+
customElements.define("eui-icon", S);
|
|
121
|
+
class L extends HTMLElement {
|
|
161
122
|
static get observedAttributes() {
|
|
162
123
|
return ["label", "value", "id", "type", "filled"];
|
|
163
124
|
}
|
|
@@ -290,8 +251,8 @@ class E extends HTMLElement {
|
|
|
290
251
|
this.setAttribute("value", t);
|
|
291
252
|
}
|
|
292
253
|
}
|
|
293
|
-
customElements.define("eui-input",
|
|
294
|
-
class
|
|
254
|
+
customElements.define("eui-input", L);
|
|
255
|
+
class z extends HTMLElement {
|
|
295
256
|
constructor() {
|
|
296
257
|
super(), this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = `
|
|
297
258
|
<style>
|
|
@@ -341,8 +302,8 @@ class A extends HTMLElement {
|
|
|
341
302
|
`;
|
|
342
303
|
}
|
|
343
304
|
}
|
|
344
|
-
customElements.define("eui-loader",
|
|
345
|
-
class
|
|
305
|
+
customElements.define("eui-loader", z);
|
|
306
|
+
class M extends HTMLElement {
|
|
346
307
|
static get observedAttributes() {
|
|
347
308
|
return ["value", "intermediate", "id"];
|
|
348
309
|
}
|
|
@@ -404,8 +365,8 @@ class Z extends HTMLElement {
|
|
|
404
365
|
this.hasAttribute("id") && (this.progress.id = this.getAttribute("id")), this.hasAttribute("intermediate") && t.classList.add("intermediate"), this.hasAttribute("value") && (t.style.width = this.getAttribute("value") + "%");
|
|
405
366
|
}
|
|
406
367
|
}
|
|
407
|
-
customElements.define("eui-progressbar",
|
|
408
|
-
const
|
|
368
|
+
customElements.define("eui-progressbar", M);
|
|
369
|
+
const v = {
|
|
409
370
|
is: {
|
|
410
371
|
iPhone: /iPhone/.test(navigator.userAgent),
|
|
411
372
|
iPad: /iPad/.test(navigator.userAgent),
|
|
@@ -425,11 +386,11 @@ const f = {
|
|
|
425
386
|
haptics: "vibrate" in navigator || "Vibrate" in window || typeof window.navigator.vibrate == "function"
|
|
426
387
|
},
|
|
427
388
|
userAgent: navigator.userAgent
|
|
428
|
-
},
|
|
389
|
+
}, W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
429
390
|
__proto__: null,
|
|
430
|
-
device:
|
|
391
|
+
device: v
|
|
431
392
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
432
|
-
function
|
|
393
|
+
function T() {
|
|
433
394
|
try {
|
|
434
395
|
const o = document.createElement("label");
|
|
435
396
|
o.ariaHidden = "true", o.style.display = "none";
|
|
@@ -438,13 +399,13 @@ function V() {
|
|
|
438
399
|
} catch {
|
|
439
400
|
}
|
|
440
401
|
}
|
|
441
|
-
function
|
|
442
|
-
|
|
402
|
+
function x(o) {
|
|
403
|
+
v.supports.haptics ? navigator.vibrate(o || 50) : v.is.iPhone && T();
|
|
443
404
|
}
|
|
444
|
-
const
|
|
405
|
+
const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
445
406
|
__proto__: null,
|
|
446
|
-
haptic:
|
|
447
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
407
|
+
haptic: x
|
|
408
|
+
}, Symbol.toStringTag, { value: "Module" })), w = (() => {
|
|
448
409
|
let o = {}, t;
|
|
449
410
|
try {
|
|
450
411
|
o = JSON.parse(localStorage.getItem(t) || "{}");
|
|
@@ -493,12 +454,12 @@ const X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
493
454
|
}
|
|
494
455
|
}
|
|
495
456
|
};
|
|
496
|
-
})(),
|
|
457
|
+
})(), y = w.settings, V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
497
458
|
__proto__: null,
|
|
498
|
-
settings:
|
|
499
|
-
storage:
|
|
459
|
+
settings: y,
|
|
460
|
+
storage: w
|
|
500
461
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
501
|
-
class
|
|
462
|
+
class R extends HTMLElement {
|
|
502
463
|
static get observedAttributes() {
|
|
503
464
|
return ["selected"];
|
|
504
465
|
}
|
|
@@ -578,7 +539,7 @@ class S extends HTMLElement {
|
|
|
578
539
|
this.inputEl = this.shadowRoot.querySelector("input"), this.switchEl = this.shadowRoot.querySelector(".switch"), this.updateFromAttribute(), this.switchEl.addEventListener("click", () => this.toggle());
|
|
579
540
|
}
|
|
580
541
|
toggle() {
|
|
581
|
-
this.selected = !this.selected,
|
|
542
|
+
this.selected = !this.selected, x();
|
|
582
543
|
}
|
|
583
544
|
updateFromAttribute() {
|
|
584
545
|
const t = this.hasAttribute("selected");
|
|
@@ -594,8 +555,8 @@ class S extends HTMLElement {
|
|
|
594
555
|
t ? this.setAttribute("selected", "") : this.removeAttribute("selected");
|
|
595
556
|
}
|
|
596
557
|
}
|
|
597
|
-
customElements.define("eui-switch",
|
|
598
|
-
class
|
|
558
|
+
customElements.define("eui-switch", R);
|
|
559
|
+
class $ extends HTMLElement {
|
|
599
560
|
constructor() {
|
|
600
561
|
super(), this.attachShadow({ mode: "open" });
|
|
601
562
|
}
|
|
@@ -653,74 +614,74 @@ class z extends HTMLElement {
|
|
|
653
614
|
});
|
|
654
615
|
}
|
|
655
616
|
}
|
|
656
|
-
customElements.define("eui-chip",
|
|
657
|
-
const
|
|
617
|
+
customElements.define("eui-chip", $);
|
|
618
|
+
const b = "", k = (() => {
|
|
658
619
|
const o = [];
|
|
659
|
-
function t(
|
|
660
|
-
const h = [], u =
|
|
620
|
+
function t(s, d) {
|
|
621
|
+
const h = [], u = s.replace(/:([^/]+)/g, (m, f) => (h.push(f), "([^/]+)")).replace(/\//g, "\\/"), p = new RegExp(`^${b}${u}$`);
|
|
661
622
|
o.push({ regex: p, paramNames: h, renderFn: d });
|
|
662
623
|
}
|
|
663
|
-
function i(
|
|
624
|
+
function i(s) {
|
|
664
625
|
for (const { regex: d, paramNames: h, renderFn: u } of o) {
|
|
665
|
-
const p =
|
|
626
|
+
const p = s.match(d);
|
|
666
627
|
if (p) {
|
|
667
|
-
const
|
|
668
|
-
return h.forEach((
|
|
669
|
-
|
|
670
|
-
}), { renderFn: u, params:
|
|
628
|
+
const m = {};
|
|
629
|
+
return h.forEach((f, A) => {
|
|
630
|
+
m[f] = decodeURIComponent(p[A + 1]);
|
|
631
|
+
}), { renderFn: u, params: m };
|
|
671
632
|
}
|
|
672
633
|
}
|
|
673
634
|
return null;
|
|
674
635
|
}
|
|
675
|
-
function e(
|
|
676
|
-
|
|
677
|
-
const h =
|
|
678
|
-
if (h === window.location.pathname &&
|
|
679
|
-
d && history.pushState({}, "",
|
|
680
|
-
const p = "#" +
|
|
636
|
+
function e(s, d = !0) {
|
|
637
|
+
s.startsWith(b) || (s = b + (s.startsWith("/") ? "" : "/") + s);
|
|
638
|
+
const h = s.split(/[?#]/)[0];
|
|
639
|
+
if (h === window.location.pathname && s.includes("#")) {
|
|
640
|
+
d && history.pushState({}, "", s);
|
|
641
|
+
const p = "#" + s.split("#")[1];
|
|
681
642
|
n(p);
|
|
682
643
|
return;
|
|
683
644
|
}
|
|
684
645
|
const u = i(h);
|
|
685
646
|
if (u)
|
|
686
|
-
if (d && history.pushState({}, "",
|
|
687
|
-
const p = "#" +
|
|
647
|
+
if (d && history.pushState({}, "", s), u.renderFn(u.params), window.dispatchEvent(new CustomEvent("route-changed", { detail: { path: s } })), s.includes("#")) {
|
|
648
|
+
const p = "#" + s.split("#")[1];
|
|
688
649
|
setTimeout(() => n(p), 100);
|
|
689
650
|
} else {
|
|
690
651
|
const p = document.getElementById("main");
|
|
691
652
|
p && p.scrollTo(0, 0);
|
|
692
653
|
}
|
|
693
|
-
else
|
|
654
|
+
else r ? (d && history.pushState({}, "", s), r()) : console.warn(`No route found for ${h}`);
|
|
694
655
|
}
|
|
695
|
-
function n(
|
|
696
|
-
if (
|
|
656
|
+
function n(s) {
|
|
657
|
+
if (s)
|
|
697
658
|
try {
|
|
698
|
-
const d = document.querySelector(
|
|
659
|
+
const d = document.querySelector(s);
|
|
699
660
|
d && d.scrollIntoView({ behavior: "smooth" });
|
|
700
661
|
} catch {
|
|
701
|
-
console.warn("Invalid hash:",
|
|
662
|
+
console.warn("Invalid hash:", s);
|
|
702
663
|
}
|
|
703
664
|
}
|
|
704
|
-
let
|
|
705
|
-
function a(
|
|
706
|
-
|
|
665
|
+
let r = null;
|
|
666
|
+
function a(s) {
|
|
667
|
+
r = s;
|
|
707
668
|
}
|
|
708
669
|
function l() {
|
|
709
670
|
history.back();
|
|
710
671
|
}
|
|
711
672
|
function c() {
|
|
712
|
-
return window.location.pathname.replace(
|
|
673
|
+
return window.location.pathname.replace(b, "") || "/";
|
|
713
674
|
}
|
|
714
675
|
return window.addEventListener("popstate", () => {
|
|
715
|
-
const
|
|
716
|
-
e(
|
|
717
|
-
}), window.addEventListener("click", (
|
|
718
|
-
if (
|
|
719
|
-
const d =
|
|
676
|
+
const s = window.location.pathname + window.location.search + window.location.hash;
|
|
677
|
+
e(s, !1);
|
|
678
|
+
}), window.addEventListener("click", (s) => {
|
|
679
|
+
if (s.button !== 0 || s.metaKey || s.altKey || s.ctrlKey || s.shiftKey) return;
|
|
680
|
+
const d = s.target.closest("a");
|
|
720
681
|
if (!d || d.hasAttribute("download") || d.getAttribute("target") === "_blank") return;
|
|
721
682
|
const h = d.getAttribute("href");
|
|
722
683
|
if (!(!h || h.startsWith("http") && !h.startsWith(window.location.origin))) {
|
|
723
|
-
if (
|
|
684
|
+
if (s.preventDefault(), h.startsWith("#")) {
|
|
724
685
|
history.pushState({}, "", h), n(h);
|
|
725
686
|
return;
|
|
726
687
|
}
|
|
@@ -728,7 +689,7 @@ const g = "", y = (() => {
|
|
|
728
689
|
}
|
|
729
690
|
}), { add: t, navigate: e, back: l, location: c, setNotFound: a };
|
|
730
691
|
})();
|
|
731
|
-
async function
|
|
692
|
+
async function Y(o) {
|
|
732
693
|
try {
|
|
733
694
|
const t = document.getElementById("main");
|
|
734
695
|
t.classList.add("fade-out"), await new Promise((e) => setTimeout(e, 200));
|
|
@@ -746,7 +707,7 @@ async function J(o) {
|
|
|
746
707
|
console.error("Page load failed:", t);
|
|
747
708
|
}
|
|
748
709
|
}
|
|
749
|
-
class
|
|
710
|
+
class H extends HTMLElement {
|
|
750
711
|
static get observedAttributes() {
|
|
751
712
|
return ["path", "icon", "label", "badge", "active", "avatar-src", "avatar-name"];
|
|
752
713
|
}
|
|
@@ -768,34 +729,34 @@ class B extends HTMLElement {
|
|
|
768
729
|
}
|
|
769
730
|
handleClick = () => {
|
|
770
731
|
const t = this.getAttribute("path");
|
|
771
|
-
t &&
|
|
732
|
+
t && k.navigate(t);
|
|
772
733
|
};
|
|
773
734
|
setupEventListeners() {
|
|
774
735
|
this.addEventListener("pointerdown", (t) => {
|
|
775
|
-
const i = document.createElement("span"), e = t.currentTarget, n = e.getBoundingClientRect(),
|
|
776
|
-
i.classList.add("ripple"), i.style.width = `${
|
|
736
|
+
const i = document.createElement("span"), e = t.currentTarget, n = e.getBoundingClientRect(), r = Math.max(e.offsetWidth, e.offsetHeight), a = r / 2;
|
|
737
|
+
i.classList.add("ripple"), i.style.width = `${r}px`, i.style.height = `${r}px`, i.style.left = `${t.clientX - n.left - a}px`, i.style.top = `${t.clientY - n.top - a}px`, this.shadowRoot.appendChild(i), i.addEventListener("animationend", () => {
|
|
777
738
|
i.remove();
|
|
778
739
|
});
|
|
779
740
|
});
|
|
780
741
|
}
|
|
781
742
|
updateContent() {
|
|
782
|
-
const t = this.getAttribute("icon"), i = this.getAttribute("avatar-src"), e = this.getAttribute("avatar-name"), n = this.getAttribute("label") || "",
|
|
783
|
-
if (
|
|
743
|
+
const t = this.getAttribute("icon"), i = this.getAttribute("avatar-src"), e = this.getAttribute("avatar-name"), n = this.getAttribute("label") || "", r = this.getAttribute("badge"), a = this.shadowRoot.querySelector(".badge");
|
|
744
|
+
if (r)
|
|
784
745
|
if (a)
|
|
785
|
-
a.textContent =
|
|
746
|
+
a.textContent = r;
|
|
786
747
|
else {
|
|
787
|
-
const
|
|
788
|
-
|
|
748
|
+
const s = document.createElement("span");
|
|
749
|
+
s.className = "badge", s.textContent = r, this.shadowRoot.appendChild(s);
|
|
789
750
|
}
|
|
790
751
|
else a && a.remove();
|
|
791
752
|
const l = this.shadowRoot.querySelector("slot[name='icon']");
|
|
792
753
|
if (l)
|
|
793
754
|
if (i || e) {
|
|
794
|
-
let
|
|
795
|
-
e && (
|
|
755
|
+
let s = '<eui-avatar size="24"';
|
|
756
|
+
e && (s += ` name="${e}"`), s += ">", i && (s += `<img src="${i}" alt="${e || "Avatar"}" />`), s += "</eui-avatar>", l.innerHTML = s;
|
|
796
757
|
} else {
|
|
797
|
-
const
|
|
798
|
-
t &&
|
|
758
|
+
const s = l.querySelector("eui-icon");
|
|
759
|
+
t && s ? s.getAttribute("name") !== t && s.setAttribute("name", t) : t ? l.innerHTML = `<eui-icon width="24" height="24" name="${t}"></eui-icon>` : l.innerHTML = "";
|
|
799
760
|
}
|
|
800
761
|
const c = this.shadowRoot.querySelector(".label");
|
|
801
762
|
c && (c.textContent = n);
|
|
@@ -909,8 +870,8 @@ class B extends HTMLElement {
|
|
|
909
870
|
`;
|
|
910
871
|
}
|
|
911
872
|
}
|
|
912
|
-
customElements.define("eui-nav-item",
|
|
913
|
-
class
|
|
873
|
+
customElements.define("eui-nav-item", H);
|
|
874
|
+
class _ extends HTMLElement {
|
|
914
875
|
constructor() {
|
|
915
876
|
super(), this.attachShadow({ mode: "open" });
|
|
916
877
|
}
|
|
@@ -1034,13 +995,13 @@ class T extends HTMLElement {
|
|
|
1034
995
|
return this._navItems || [];
|
|
1035
996
|
}
|
|
1036
997
|
updateActiveState(t) {
|
|
1037
|
-
t || (t =
|
|
998
|
+
t || (t = k.location()), t.startsWith("/") || (t = "/" + t), this.shadowRoot.querySelectorAll("eui-nav-item").forEach((e) => {
|
|
1038
999
|
e.getAttribute("path") === t ? e.setAttribute("active", "") : e.removeAttribute("active");
|
|
1039
1000
|
});
|
|
1040
1001
|
}
|
|
1041
1002
|
}
|
|
1042
|
-
customElements.define("eui-app-nav",
|
|
1043
|
-
class
|
|
1003
|
+
customElements.define("eui-app-nav", _);
|
|
1004
|
+
class I extends HTMLElement {
|
|
1044
1005
|
static get observedAttributes() {
|
|
1045
1006
|
return ["type", "title", "subtitle", "img"];
|
|
1046
1007
|
}
|
|
@@ -1120,12 +1081,12 @@ class R extends HTMLElement {
|
|
|
1120
1081
|
this.hd = this.shadowRoot.querySelector(".header"), this.hasAttribute("type") && this.hd.classList.add(this.getAttribute("type"));
|
|
1121
1082
|
}
|
|
1122
1083
|
attributeChangedCallback(t, i, e) {
|
|
1123
|
-
const n = this.shadowRoot.querySelector("h1"),
|
|
1124
|
-
t === "title" && (n.textContent = e), t === "subtitle" && (
|
|
1084
|
+
const n = this.shadowRoot.querySelector("h1"), r = this.shadowRoot.querySelector("p"), a = this.shadowRoot.querySelector(".img");
|
|
1085
|
+
t === "title" && (n.textContent = e), t === "subtitle" && (r.textContent = e), t === "img" && (a.style.backgroundImage = e ? `url(${e})` : "");
|
|
1125
1086
|
}
|
|
1126
1087
|
}
|
|
1127
|
-
customElements.define("eui-header",
|
|
1128
|
-
class
|
|
1088
|
+
customElements.define("eui-header", I);
|
|
1089
|
+
class F extends HTMLElement {
|
|
1129
1090
|
static get observedAttributes() {
|
|
1130
1091
|
return ["selected"];
|
|
1131
1092
|
}
|
|
@@ -1219,9 +1180,9 @@ class $ extends HTMLElement {
|
|
|
1219
1180
|
this.inputEl = this.shadowRoot.querySelector("input"), this.checkEl = this.shadowRoot.querySelector(".checkbox"), this.updateFromAttribute(), this.checkEl.addEventListener("click", () => this.toggle());
|
|
1220
1181
|
}
|
|
1221
1182
|
toggle() {
|
|
1222
|
-
this.selected = !this.selected,
|
|
1183
|
+
this.selected = !this.selected, x();
|
|
1223
1184
|
const t = this.selected, i = this.dataset.setting;
|
|
1224
|
-
i &&
|
|
1185
|
+
i && y.set(i, t);
|
|
1225
1186
|
}
|
|
1226
1187
|
updateFromAttribute() {
|
|
1227
1188
|
const t = this.hasAttribute("selected");
|
|
@@ -1237,8 +1198,8 @@ class $ extends HTMLElement {
|
|
|
1237
1198
|
t ? this.setAttribute("selected", "") : this.removeAttribute("selected");
|
|
1238
1199
|
}
|
|
1239
1200
|
}
|
|
1240
|
-
customElements.define("eui-checkbox",
|
|
1241
|
-
class
|
|
1201
|
+
customElements.define("eui-checkbox", F);
|
|
1202
|
+
class q extends HTMLElement {
|
|
1242
1203
|
static observedAttributes = ["type", "width", "height", "border-radius", "icon", "link", "href"];
|
|
1243
1204
|
constructor() {
|
|
1244
1205
|
super(), this.attachShadow({ mode: "open" });
|
|
@@ -1357,15 +1318,15 @@ class _ extends HTMLElement {
|
|
|
1357
1318
|
`;
|
|
1358
1319
|
const e = this.shadowRoot.querySelector(i);
|
|
1359
1320
|
t && e.setAttribute("href", t), this.hasAttribute("type") && e.classList.add(this.getAttribute("type")), this.hasAttribute("icon") && e.classList.add("icon"), this.hasAttribute("width") && (e.style.width = this.getAttribute("width") + "px"), this.hasAttribute("height") && (e.style.height = this.getAttribute("height") + "px"), this.hasAttribute("border-radius") && (e.style.borderRadius = this.getAttribute("border-radius") + "px"), e.addEventListener("pointerdown", (n) => {
|
|
1360
|
-
const
|
|
1361
|
-
|
|
1362
|
-
|
|
1321
|
+
const r = document.createElement("span"), a = n.currentTarget, l = a.getBoundingClientRect(), c = Math.max(a.offsetWidth, a.offsetHeight), s = c / 2;
|
|
1322
|
+
r.classList.add("ripple"), r.style.width = `${c}px`, r.style.height = `${c}px`, r.style.left = `${n.clientX - l.left - s}px`, r.style.top = `${n.clientY - l.top - s}px`, e.appendChild(r), r.addEventListener("animationend", () => {
|
|
1323
|
+
r.remove();
|
|
1363
1324
|
});
|
|
1364
1325
|
});
|
|
1365
1326
|
}
|
|
1366
1327
|
}
|
|
1367
|
-
customElements.define("eui-button",
|
|
1368
|
-
class
|
|
1328
|
+
customElements.define("eui-button", q);
|
|
1329
|
+
class j extends HTMLElement {
|
|
1369
1330
|
static get observedAttributes() {
|
|
1370
1331
|
return ["type", "anchor"];
|
|
1371
1332
|
}
|
|
@@ -1437,30 +1398,30 @@ class I extends HTMLElement {
|
|
|
1437
1398
|
`;
|
|
1438
1399
|
}
|
|
1439
1400
|
}
|
|
1440
|
-
customElements.define("eui-heading",
|
|
1441
|
-
function
|
|
1442
|
-
const e = Date.now() - o, n = Math.floor(e / 1e3),
|
|
1443
|
-
return
|
|
1401
|
+
customElements.define("eui-heading", j);
|
|
1402
|
+
function N(o) {
|
|
1403
|
+
const e = Date.now() - o, n = Math.floor(e / 1e3), r = Math.floor(n / 60), a = Math.floor(r / 60), l = Math.floor(a / 24), c = Math.floor(l / 30), s = Math.floor(c / 12);
|
|
1404
|
+
return s > 0 ? `${s}y` : c > 0 ? `${c}mo` : l > 0 ? `${l}d` : a > 0 ? `${a}h` : r > 0 ? `${r}m` : `${n}s`;
|
|
1444
1405
|
}
|
|
1445
|
-
function
|
|
1446
|
-
const e = Date.now() - o, n = Math.floor(e / 1e3),
|
|
1447
|
-
return
|
|
1406
|
+
function B(o) {
|
|
1407
|
+
const e = Date.now() - o, n = Math.floor(e / 1e3), r = Math.floor(n / 60), a = Math.floor(r / 60), l = Math.floor(a / 24), c = Math.floor(l / 30), s = Math.floor(c / 12);
|
|
1408
|
+
return s > 0 ? `${s} year${s > 1 ? "s" : ""} ago` : c > 0 ? `${c} month${c > 1 ? "s" : ""} ago` : l > 0 ? `${l} day${l > 1 ? "s" : ""} ago` : a > 0 ? `${a} hour${a > 1 ? "s" : ""} ago` : r > 0 ? `${r} minute${r > 1 ? "s" : ""} ago` : `${n} second${n > 1 ? "s" : ""} ago`;
|
|
1448
1409
|
}
|
|
1449
|
-
function
|
|
1410
|
+
function O(o) {
|
|
1450
1411
|
return o.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/`/g, "`").replace(/'/g, "'");
|
|
1451
1412
|
}
|
|
1452
|
-
function
|
|
1413
|
+
function E(o) {
|
|
1453
1414
|
const t = document.createElement("input");
|
|
1454
1415
|
t.value = o, document.body.appendChild(t), t.select(), document.execCommand("copy"), document.body.removeChild(t);
|
|
1455
1416
|
}
|
|
1456
|
-
const
|
|
1417
|
+
const K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1457
1418
|
__proto__: null,
|
|
1458
|
-
copystr:
|
|
1459
|
-
joinedAgo:
|
|
1460
|
-
sanitize:
|
|
1461
|
-
timeAgo:
|
|
1419
|
+
copystr: E,
|
|
1420
|
+
joinedAgo: B,
|
|
1421
|
+
sanitize: O,
|
|
1422
|
+
timeAgo: N
|
|
1462
1423
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1463
|
-
class
|
|
1424
|
+
class P extends HTMLElement {
|
|
1464
1425
|
static get observedAttributes() {
|
|
1465
1426
|
return ["copy", "id", "type"];
|
|
1466
1427
|
}
|
|
@@ -1511,19 +1472,19 @@ class N extends HTMLElement {
|
|
|
1511
1472
|
let t = this.textContent || "";
|
|
1512
1473
|
t = t.replace(/^\s*\n/, "").replace(/\n\s*$/, ""), t = t.replace(/[ \t]+$/gm, "");
|
|
1513
1474
|
const i = t.split(`
|
|
1514
|
-
`), e = i.filter((
|
|
1515
|
-
return t = i.map((
|
|
1475
|
+
`), e = i.filter((r) => r.trim()).map((r) => r.match(/^\s*/)[0].length), n = e.length ? Math.min(...e) : 0;
|
|
1476
|
+
return t = i.map((r) => r.slice(n)).join(`
|
|
1516
1477
|
`), t;
|
|
1517
1478
|
}
|
|
1518
1479
|
_onCopy() {
|
|
1519
|
-
|
|
1480
|
+
E(this._getFormattedText());
|
|
1520
1481
|
}
|
|
1521
1482
|
disconnectedCallback() {
|
|
1522
1483
|
this.copyBtn && this.copyBtn.removeEventListener("click", this._boundCopy);
|
|
1523
1484
|
}
|
|
1524
1485
|
}
|
|
1525
|
-
customElements.define("eui-code",
|
|
1526
|
-
class
|
|
1486
|
+
customElements.define("eui-code", P);
|
|
1487
|
+
class U extends HTMLElement {
|
|
1527
1488
|
constructor() {
|
|
1528
1489
|
super(), this.attachShadow({ mode: "open" });
|
|
1529
1490
|
}
|
|
@@ -1639,8 +1600,8 @@ class O extends HTMLElement {
|
|
|
1639
1600
|
`;
|
|
1640
1601
|
}
|
|
1641
1602
|
}
|
|
1642
|
-
customElements.define("eui-app-titlebar",
|
|
1643
|
-
class
|
|
1603
|
+
customElements.define("eui-app-titlebar", U);
|
|
1604
|
+
class D extends HTMLElement {
|
|
1644
1605
|
constructor() {
|
|
1645
1606
|
super(), this.attachShadow({ mode: "open" }), this._handleMouseDown = this._addRipple.bind(this);
|
|
1646
1607
|
}
|
|
@@ -1657,8 +1618,8 @@ class P extends HTMLElement {
|
|
|
1657
1618
|
this.removeEventListener("mousedown", this._handleMouseDown), this.hasAttribute("ripple") && this.addEventListener("mousedown", this._handleMouseDown);
|
|
1658
1619
|
}
|
|
1659
1620
|
_addRipple(t) {
|
|
1660
|
-
const i = this.getBoundingClientRect(), e = document.createElement("span"), n = Math.max(i.width, i.height),
|
|
1661
|
-
e.style.width = e.style.height = `${n}px`, e.style.left = `${t.clientX - i.left -
|
|
1621
|
+
const i = this.getBoundingClientRect(), e = document.createElement("span"), n = Math.max(i.width, i.height), r = n / 2;
|
|
1622
|
+
e.style.width = e.style.height = `${n}px`, e.style.left = `${t.clientX - i.left - r}px`, e.style.top = `${t.clientY - i.top - r}px`, e.classList.add("ripple"), this.shadowRoot.querySelector(".surface").appendChild(e), e.addEventListener("animationend", () => {
|
|
1662
1623
|
e.remove();
|
|
1663
1624
|
});
|
|
1664
1625
|
}
|
|
@@ -1727,14 +1688,14 @@ class P extends HTMLElement {
|
|
|
1727
1688
|
`;
|
|
1728
1689
|
}
|
|
1729
1690
|
}
|
|
1730
|
-
customElements.define("eui-surface",
|
|
1691
|
+
customElements.define("eui-surface", D);
|
|
1731
1692
|
typeof window < "u" && console.log("ErisUI loaded successfully");
|
|
1732
1693
|
export {
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1694
|
+
W as device,
|
|
1695
|
+
J as haptics,
|
|
1696
|
+
X as icons,
|
|
1697
|
+
Y as loadPage,
|
|
1698
|
+
k as router,
|
|
1699
|
+
V as storage,
|
|
1700
|
+
K as utils
|
|
1740
1701
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@3r1s_s/erisui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "an awesome ui library for web apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"dev": "vite",
|
|
22
22
|
"build": "vite build",
|
|
23
|
-
"preview": "vite preview"
|
|
23
|
+
"preview": "vite preview",
|
|
24
|
+
"prepublishOnly": "npm run build"
|
|
24
25
|
},
|
|
25
26
|
"author": "Eris S",
|
|
26
27
|
"license": "Apache-2.0",
|