Scripts/resources/[sna]/sna-sync/nui/label-979d47e9.js

2 lines
40 KiB
JavaScript
Raw Normal View History

2024-12-29 20:01:18 +00:00
import{r as l,$ as G,b as _e,j as k,o as st,d as Ut}from"./index-f45b8810.js";import{P as z}from"./fetch.client-5aab1c76.js";var Vt=["color","size","title"];function Ae(){return Ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ae.apply(this,arguments)}function Kt(e,t){if(e==null)return{};var n=Xt(e,t),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function Xt(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,i;for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}var Me=l.forwardRef(function(e,t){var n=e.color,o=e.size,r=e.title,i=Kt(e,Vt);return G.createElement("svg",Ae({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:n},i),r?G.createElement("title",null,r):null,G.createElement("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"}))});Me.propTypes={color:z.string,size:z.oneOfType([z.string,z.number]),title:z.string};Me.defaultProps={color:"currentColor",size:"1em",title:null};const Yt=Me;var qt=["color","size","title"];function Re(){return Re=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Re.apply(this,arguments)}function Zt(e,t){if(e==null)return{};var n=Gt(e,t),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function Gt(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,i;for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}var ke=l.forwardRef(function(e,t){var n=e.color,o=e.size,r=e.title,i=Zt(e,qt);return G.createElement("svg",Re({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:n},i),r?G.createElement("title",null,r):null,G.createElement("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),G.createElement("path",{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"}))});ke.propTypes={color:z.string,size:z.oneOfType([z.string,z.number]),title:z.string};ke.defaultProps={color:"currentColor",size:"1em",title:null};const Jt=ke;function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},H.apply(this,arguments)}function F(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function ct(e,t=[]){let n=[];function o(i,s){const a=l.createContext(s),c=n.length;n=[...n,s];function f(u){const{scope:h,children:d,...m}=u,g=(h==null?void 0:h[e][c])||a,w=l.useMemo(()=>m,Object.values(m));return l.createElement(g.Provider,{value:w},d)}function p(u,h){const d=(h==null?void 0:h[e][c])||a,m=l.useContext(d);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${i}\``)}return f.displayName=i+"Provider",[f,p]}const r=()=>{const i=n.map(s=>l.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[o,Qt(r,...t)]}function Qt(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((a,{useScope:c,scopeName:f})=>{const u=c(i)[`__scope${f}`];return{...a,...u}},{})