New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@no-gravity-elements/card

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@no-gravity-elements/card - npm Package Compare versions

Comparing version 1.0.13 to 1.0.14

2

lib/index.js

@@ -1,2 +0,2 @@

var J=":host{border-radius:calc(var(--nge-base-unit, 8px)*.75);background-color:var(--nge-background-color, #09090b);border:calc(var(--nge-base-unit, 8px)*.125) solid var(--nge-secondary-color, #27272a);box-shadow:0 calc(var(--nge-base-unit, 8px)*.125) calc(var(--nge-base-unit, 8px)*.25)0#000;width:fit-content;display:block}";var L,f,ee,pe,w,K,te,j,fe,D={},ne=[],de=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,I=Array.isArray;function C(e,t){for(var n in t)e[n]=t[n];return e}function oe(e){var t=e.parentNode;t&&t.removeChild(e)}function k(e,t,n){var r,_,o,l={};for(o in t)o=="key"?r=t[o]:o=="ref"?_=t[o]:l[o]=t[o];if(arguments.length>2&&(l.children=arguments.length>3?L.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)l[o]===void 0&&(l[o]=e.defaultProps[o]);return T(e,l,r,_,null)}function T(e,t,n,r,_){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:_??++ee,__i:-1,__u:0};return _==null&&f.vnode!=null&&f.vnode(o),o}function P(e){return e.children}function N(e,t){this.props=e,this.context=t}function E(e,t){if(t==null)return e.__?E(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?E(e):null}function _e(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return _e(e)}}function Q(e){(!e.__d&&(e.__d=!0)&&w.push(e)&&!H.__r++||K!==f.debounceRendering)&&((K=f.debounceRendering)||te)(H)}function H(){var e,t,n,r,_,o,l,s,c;for(w.sort(j);e=w.shift();)e.__d&&(t=w.length,r=void 0,o=(_=(n=e).__v).__e,s=[],c=[],(l=n.__P)&&((r=C({},_)).__v=_.__v+1,f.vnode&&f.vnode(r),R(l,r,_,n.__n,l.ownerSVGElement!==void 0,32&_.__u?[o]:null,s,o??E(_),!!(32&_.__u),c),r.__v=_.__v,r.__.__k[r.__i]=r,le(s,r,c),r.__e!=o&&_e(r)),w.length>t&&w.sort(j));H.__r=0}function re(e,t,n,r,_,o,l,s,c,u,p){var i,v,a,h,b,m=r&&r.__k||ne,d=t.length;for(n.__d=c,he(n,t,m),c=n.__d,i=0;i<d;i++)(a=n.__k[i])!=null&&typeof a!="boolean"&&typeof a!="function"&&(v=a.__i===-1?D:m[a.__i]||D,a.__i=i,R(e,a,v,_,o,l,s,c,u,p),h=a.__e,a.ref&&v.ref!=a.ref&&(v.ref&&B(v.ref,null,a),p.push(a.ref,a.__c||h,a)),b==null&&h!=null&&(b=h),65536&a.__u||v.__k===a.__k?(h||v.__e!=c||(c=E(v)),c=ie(a,c,e)):typeof a.type=="function"&&a.__d!==void 0?c=a.__d:h&&(c=h.nextSibling),a.__d=void 0,a.__u&=-196609);n.__d=c,n.__e=b}function he(e,t,n){var r,_,o,l,s,c=t.length,u=n.length,p=u,i=0;for(e.__k=[],r=0;r<c;r++)l=r+i,(_=e.__k[r]=(_=t[r])==null||typeof _=="boolean"||typeof _=="function"?null:typeof _=="string"||typeof _=="number"||typeof _=="bigint"||_.constructor==String?T(null,_,null,null,null):I(_)?T(P,{children:_},null,null,null):_.constructor===void 0&&_.__b>0?T(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):_)!=null?(_.__=e,_.__b=e.__b+1,s=ve(_,n,l,p),_.__i=s,o=null,s!==-1&&(p--,(o=n[s])&&(o.__u|=131072)),o==null||o.__v===null?(s==-1&&i--,typeof _.type!="function"&&(_.__u|=65536)):s!==l&&(s===l+1?i++:s>l?p>c-l?i+=s-l:i--:s<l?s==l-1&&(i=s-l):i=0,s!==r+i&&(_.__u|=65536))):(o=n[l])&&o.key==null&&o.__e&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=E(o)),$(o,o,!1),n[l]=null,p--);if(p)for(r=0;r<u;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=E(o)),$(o,o))}function ie(e,t,n){var r,_;if(typeof e.type=="function"){for(r=e.__k,_=0;r&&_<r.length;_++)r[_]&&(r[_].__=e,t=ie(r[_],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function ve(e,t,n,r){var _=e.key,o=e.type,l=n-1,s=n+1,c=t[n];if(c===null||c&&_==c.key&&o===c.type&&!(131072&c.__u))return n;if(r>(c!=null&&!(131072&c.__u)?1:0))for(;l>=0||s<t.length;){if(l>=0){if((c=t[l])&&!(131072&c.__u)&&_==c.key&&o===c.type)return l;l--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&_==c.key&&o===c.type)return s;s++}}return-1}function X(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||de.test(t)?n:n+"px"}function M(e,t,n,r,_){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||X(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||X(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,o?Z:Y,o)):e.removeEventListener(t,o?Z:Y,o);else{if(_)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Y(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(f.event?f.event(e):e)}}function Z(e){if(this.l)return this.l[e.type+!0](f.event?f.event(e):e)}function R(e,t,n,r,_,o,l,s,c,u){var p,i,v,a,h,b,m,d,y,x,F,S,q,O,W,g=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),o=[s=t.__e=n.__e]),(p=f.__b)&&p(t);e:if(typeof g=="function")try{if(d=t.props,y=(p=g.contextType)&&r[p.__c],x=p?y?y.props.value:p.__:r,n.__c?m=(i=t.__c=n.__c).__=i.__E:("prototype"in g&&g.prototype.render?t.__c=i=new g(d,x):(t.__c=i=new N(d,x),i.constructor=g,i.render=ye),y&&y.sub(i),i.props=d,i.state||(i.state={}),i.context=x,i.__n=r,v=i.__d=!0,i.__h=[],i._sb=[]),i.__s==null&&(i.__s=i.state),g.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=C({},i.__s)),C(i.__s,g.getDerivedStateFromProps(d,i.__s))),a=i.props,h=i.state,i.__v=t,v)g.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(g.getDerivedStateFromProps==null&&d!==a&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(d,x),!i.__e&&(i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(d,i.__s,x)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(i.props=d,i.state=i.__s,i.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(A){A&&(A.__=t)}),F=0;F<i._sb.length;F++)i.__h.push(i._sb[F]);i._sb=[],i.__h.length&&l.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(d,i.__s,x),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(a,h,b)})}if(i.context=x,i.props=d,i.__P=e,i.__e=!1,S=f.__r,q=0,"prototype"in g&&g.prototype.render){for(i.state=i.__s,i.__d=!1,S&&S(t),p=i.render(i.props,i.state,i.context),O=0;O<i._sb.length;O++)i.__h.push(i._sb[O]);i._sb=[]}else do i.__d=!1,S&&S(t),p=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++q<25);i.state=i.__s,i.getChildContext!=null&&(r=C(C({},r),i.getChildContext())),v||i.getSnapshotBeforeUpdate==null||(b=i.getSnapshotBeforeUpdate(a,h)),re(e,I(W=p!=null&&p.type===P&&p.key==null?p.props.children:p)?W:[W],t,n,r,_,o,l,s,c,u),i.base=t.__e,t.__u&=-161,i.__h.length&&l.push(i),m&&(i.__E=i.__=null)}catch(A){t.__v=null,c||o!=null?(t.__e=s,t.__u|=c?160:32,o[o.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),f.__e(A,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=me(n.__e,t,n,r,_,o,l,c,u);(p=f.diffed)&&p(t)}function le(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)B(n[r],n[++r],n[++r]);f.__c&&f.__c(t,e),e.some(function(_){try{e=_.__h,_.__h=[],e.some(function(o){o.call(_)})}catch(o){f.__e(o,_.__v)}})}function me(e,t,n,r,_,o,l,s,c){var u,p,i,v,a,h,b,m=n.props,d=t.props,y=t.type;if(y==="svg"&&(_=!0),o!=null){for(u=0;u<o.length;u++)if((a=o[u])&&"setAttribute"in a==!!y&&(y?a.localName===y:a.nodeType===3)){e=a,o[u]=null;break}}if(e==null){if(y===null)return document.createTextNode(d);e=_?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,d.is&&d),o=null,s=!1}if(y===null)m===d||s&&e.data===d||(e.data=d);else{if(o=o&&L.call(e.childNodes),m=n.props||D,!s&&o!=null)for(m={},u=0;u<e.attributes.length;u++)m[(a=e.attributes[u]).name]=a.value;for(u in m)a=m[u],u=="children"||(u=="dangerouslySetInnerHTML"?i=a:u==="key"||u in d||M(e,u,null,a,_));for(u in d)a=d[u],u=="children"?v=a:u=="dangerouslySetInnerHTML"?p=a:u=="value"?h=a:u=="checked"?b=a:u==="key"||s&&typeof a!="function"||m[u]===a||M(e,u,a,m[u],_);if(p)s||i&&(p.__html===i.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(i&&(e.innerHTML=""),re(e,I(v)?v:[v],t,n,r,_&&y!=="foreignObject",o,l,o?o[0]:n.__k&&E(n,0),s,c),o!=null)for(u=o.length;u--;)o[u]!=null&&oe(o[u]);s||(u="value",h!==void 0&&(h!==e[u]||y==="progress"&&!h||y==="option"&&h!==m[u])&&M(e,u,h,m[u],!1),u="checked",b!==void 0&&b!==e[u]&&M(e,u,b,m[u],!1))}return e}function B(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){f.__e(r,n)}}function $(e,t,n){var r,_;if(f.unmount&&f.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||B(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){f.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(_=0;_<r.length;_++)r[_]&&$(r[_],t,n||typeof e.type!="function");n||e.__e==null||oe(e.__e),e.__=e.__e=e.__d=void 0}function ye(e,t,n){return this.constructor(e,n)}function U(e,t,n){var r,_,o,l;f.__&&f.__(e,t),_=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],l=[],R(t,e=(!r&&n||t).__k=k(P,null,[e]),_||D,D,t.ownerSVGElement!==void 0,!r&&n?[n]:_?null:t.firstChild?L.call(t.childNodes):null,o,!r&&n?n:_?_.__e:t.firstChild,r,l),le(o,e,l)}function V(e,t){U(e,t,V)}function z(e,t,n){var r,_,o,l,s=C({},e.props);for(o in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?_=t[o]:s[o]=t[o]===void 0&&l!==void 0?l[o]:t[o];return arguments.length>2&&(s.children=arguments.length>3?L.call(arguments,2):n),T(e.type,s,r||e.key,_||e.ref,null)}L=ne.slice,f={__e:function(e,t,n,r){for(var _,o,l;t=t.__;)if((_=t.__c)&&!_.__)try{if((o=_.constructor)&&o.getDerivedStateFromError!=null&&(_.setState(o.getDerivedStateFromError(e)),l=_.__d),_.componentDidCatch!=null&&(_.componentDidCatch(e,r||{}),l=_.__d),l)return _.__E=_}catch(s){e=s}throw e}},ee=0,pe=function(e){return e!=null&&e.constructor==null},N.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=C({},this.state),typeof e=="function"&&(e=e(C({},n),this.props)),e&&C(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Q(this))},N.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Q(this))},N.prototype.render=P,w=[],te=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,j=function(e,t){return e.__v.__b-t.__v.__b},H.__r=0,fe=0;function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ge=["context","children"];function be(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,_){if(r==null)return{};var o,l,s={},c=Object.keys(r);for(l=0;l<c.length;l++)_.indexOf(o=c[l])>=0||(s[o]=r[o]);return s}(e,ge);return z(t,n)}function ke(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=k(be,G({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var _=[],o={},l=0,s=n.attributes,c=n.childNodes;for(l=s.length;l--;)s[l].name!=="slot"&&(o[s[l].name]=s[l].value,o[ue(s[l].name)]=s[l].value);for(l=c.length;l--;){var u=t(c[l],null),p=c[l].slot;p?o[p]=k(se,{name:p},u):_[l]=u}var i=r?k(se,null,_):_;return k(r||n.nodeName.toLowerCase(),o,i)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:U)(this._vdom,this._root)}function ue(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Ce(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[ue(e)]=n,this._vdom=z(this._vdom,r),U(this._vdom,this._root)}}function xe(){U(this._vdom=null,this._root)}function se(e,t){var n=this;return k("slot",G({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(_){_.stopPropagation(),_.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function ce(e,t,n,r){function _(){var o=Reflect.construct(HTMLElement,[],_);return o._vdomComponent=e,o._root=r&&r.shadow?o.attachShadow({mode:r.mode||"open"}):o,o}return(_.prototype=Object.create(HTMLElement.prototype)).constructor=_,_.prototype.connectedCallback=ke,_.prototype.attributeChangedCallback=Ce,_.prototype.disconnectedCallback=xe,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),_.observedAttributes=n,n.forEach(function(o){Object.defineProperty(_.prototype,o,{get:function(){return this._vdom.props[o]},set:function(l){this._vdom?this.attributeChangedCallback(o,null,l):(this._props||(this._props={}),this._props[o]=l,this.connectedCallback());var s=typeof l;l!=null&&s!=="string"&&s!=="boolean"&&s!=="number"||this.setAttribute(o,l)}})}),customElements.define(t||e.tagName||e.displayName||e.name,_)}var ae=()=>k(P,null,k("slot",null),k("style",{type:"text/css"},J)),we=e=>customElements.get(e)!==void 0;we("nge-card")||ce(ae,"nge-card",ae?.observedAttributes||[],{shadow:!0});
var K=":host{border-radius:calc(var(--base-unit, 8px)*.75);background-color:var(--background, #ffffff);border:calc(var(--base-unit, 8px)*.125) solid var(--primary-dark, #2a5753);box-shadow:0 calc(var(--base-unit, 8px)*.125) calc(var(--base-unit, 8px)*.25)0 black;width:fit-content;display:block}";var L,p,te,fe,w,Q,ne,j,pe,D={},oe=[],de=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,I=Array.isArray;function C(e,t){for(var n in t)e[n]=t[n];return e}function _e(e){var t=e.parentNode;t&&t.removeChild(e)}function k(e,t,n){var r,_,o,l={};for(o in t)o=="key"?r=t[o]:o=="ref"?_=t[o]:l[o]=t[o];if(arguments.length>2&&(l.children=arguments.length>3?L.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)l[o]===void 0&&(l[o]=e.defaultProps[o]);return T(e,l,r,_,null)}function T(e,t,n,r,_){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:_??++te,__i:-1,__u:0};return _==null&&p.vnode!=null&&p.vnode(o),o}function P(e){return e.children}function N(e,t){this.props=e,this.context=t}function E(e,t){if(t==null)return e.__?E(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?E(e):null}function re(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return re(e)}}function X(e){(!e.__d&&(e.__d=!0)&&w.push(e)&&!H.__r++||Q!==p.debounceRendering)&&((Q=p.debounceRendering)||ne)(H)}function H(){var e,t,n,r,_,o,l,s,c;for(w.sort(j);e=w.shift();)e.__d&&(t=w.length,r=void 0,o=(_=(n=e).__v).__e,s=[],c=[],(l=n.__P)&&((r=C({},_)).__v=_.__v+1,p.vnode&&p.vnode(r),R(l,r,_,n.__n,l.ownerSVGElement!==void 0,32&_.__u?[o]:null,s,o??E(_),!!(32&_.__u),c),r.__v=_.__v,r.__.__k[r.__i]=r,se(s,r,c),r.__e!=o&&re(r)),w.length>t&&w.sort(j));H.__r=0}function ie(e,t,n,r,_,o,l,s,c,u,f){var i,v,a,h,b,m=r&&r.__k||oe,d=t.length;for(n.__d=c,he(n,t,m),c=n.__d,i=0;i<d;i++)(a=n.__k[i])!=null&&typeof a!="boolean"&&typeof a!="function"&&(v=a.__i===-1?D:m[a.__i]||D,a.__i=i,R(e,a,v,_,o,l,s,c,u,f),h=a.__e,a.ref&&v.ref!=a.ref&&(v.ref&&B(v.ref,null,a),f.push(a.ref,a.__c||h,a)),b==null&&h!=null&&(b=h),65536&a.__u||v.__k===a.__k?(h||v.__e!=c||(c=E(v)),c=le(a,c,e)):typeof a.type=="function"&&a.__d!==void 0?c=a.__d:h&&(c=h.nextSibling),a.__d=void 0,a.__u&=-196609);n.__d=c,n.__e=b}function he(e,t,n){var r,_,o,l,s,c=t.length,u=n.length,f=u,i=0;for(e.__k=[],r=0;r<c;r++)l=r+i,(_=e.__k[r]=(_=t[r])==null||typeof _=="boolean"||typeof _=="function"?null:typeof _=="string"||typeof _=="number"||typeof _=="bigint"||_.constructor==String?T(null,_,null,null,null):I(_)?T(P,{children:_},null,null,null):_.constructor===void 0&&_.__b>0?T(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):_)!=null?(_.__=e,_.__b=e.__b+1,s=ve(_,n,l,f),_.__i=s,o=null,s!==-1&&(f--,(o=n[s])&&(o.__u|=131072)),o==null||o.__v===null?(s==-1&&i--,typeof _.type!="function"&&(_.__u|=65536)):s!==l&&(s===l+1?i++:s>l?f>c-l?i+=s-l:i--:s<l?s==l-1&&(i=s-l):i=0,s!==r+i&&(_.__u|=65536))):(o=n[l])&&o.key==null&&o.__e&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=E(o)),$(o,o,!1),n[l]=null,f--);if(f)for(r=0;r<u;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=E(o)),$(o,o))}function le(e,t,n){var r,_;if(typeof e.type=="function"){for(r=e.__k,_=0;r&&_<r.length;_++)r[_]&&(r[_].__=e,t=le(r[_],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function ve(e,t,n,r){var _=e.key,o=e.type,l=n-1,s=n+1,c=t[n];if(c===null||c&&_==c.key&&o===c.type&&!(131072&c.__u))return n;if(r>(c!=null&&!(131072&c.__u)?1:0))for(;l>=0||s<t.length;){if(l>=0){if((c=t[l])&&!(131072&c.__u)&&_==c.key&&o===c.type)return l;l--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&_==c.key&&o===c.type)return s;s++}}return-1}function Y(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||de.test(t)?n:n+"px"}function M(e,t,n,r,_){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Y(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Y(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,o?ee:Z,o)):e.removeEventListener(t,o?ee:Z,o);else{if(_)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Z(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(p.event?p.event(e):e)}}function ee(e){if(this.l)return this.l[e.type+!0](p.event?p.event(e):e)}function R(e,t,n,r,_,o,l,s,c,u){var f,i,v,a,h,b,m,d,y,x,F,S,J,O,W,g=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),o=[s=t.__e=n.__e]),(f=p.__b)&&f(t);e:if(typeof g=="function")try{if(d=t.props,y=(f=g.contextType)&&r[f.__c],x=f?y?y.props.value:f.__:r,n.__c?m=(i=t.__c=n.__c).__=i.__E:("prototype"in g&&g.prototype.render?t.__c=i=new g(d,x):(t.__c=i=new N(d,x),i.constructor=g,i.render=ye),y&&y.sub(i),i.props=d,i.state||(i.state={}),i.context=x,i.__n=r,v=i.__d=!0,i.__h=[],i._sb=[]),i.__s==null&&(i.__s=i.state),g.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=C({},i.__s)),C(i.__s,g.getDerivedStateFromProps(d,i.__s))),a=i.props,h=i.state,i.__v=t,v)g.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(g.getDerivedStateFromProps==null&&d!==a&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(d,x),!i.__e&&(i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(d,i.__s,x)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(i.props=d,i.state=i.__s,i.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(A){A&&(A.__=t)}),F=0;F<i._sb.length;F++)i.__h.push(i._sb[F]);i._sb=[],i.__h.length&&l.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(d,i.__s,x),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(a,h,b)})}if(i.context=x,i.props=d,i.__P=e,i.__e=!1,S=p.__r,J=0,"prototype"in g&&g.prototype.render){for(i.state=i.__s,i.__d=!1,S&&S(t),f=i.render(i.props,i.state,i.context),O=0;O<i._sb.length;O++)i.__h.push(i._sb[O]);i._sb=[]}else do i.__d=!1,S&&S(t),f=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++J<25);i.state=i.__s,i.getChildContext!=null&&(r=C(C({},r),i.getChildContext())),v||i.getSnapshotBeforeUpdate==null||(b=i.getSnapshotBeforeUpdate(a,h)),ie(e,I(W=f!=null&&f.type===P&&f.key==null?f.props.children:f)?W:[W],t,n,r,_,o,l,s,c,u),i.base=t.__e,t.__u&=-161,i.__h.length&&l.push(i),m&&(i.__E=i.__=null)}catch(A){t.__v=null,c||o!=null?(t.__e=s,t.__u|=c?160:32,o[o.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),p.__e(A,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=me(n.__e,t,n,r,_,o,l,c,u);(f=p.diffed)&&f(t)}function se(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)B(n[r],n[++r],n[++r]);p.__c&&p.__c(t,e),e.some(function(_){try{e=_.__h,_.__h=[],e.some(function(o){o.call(_)})}catch(o){p.__e(o,_.__v)}})}function me(e,t,n,r,_,o,l,s,c){var u,f,i,v,a,h,b,m=n.props,d=t.props,y=t.type;if(y==="svg"&&(_=!0),o!=null){for(u=0;u<o.length;u++)if((a=o[u])&&"setAttribute"in a==!!y&&(y?a.localName===y:a.nodeType===3)){e=a,o[u]=null;break}}if(e==null){if(y===null)return document.createTextNode(d);e=_?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,d.is&&d),o=null,s=!1}if(y===null)m===d||s&&e.data===d||(e.data=d);else{if(o=o&&L.call(e.childNodes),m=n.props||D,!s&&o!=null)for(m={},u=0;u<e.attributes.length;u++)m[(a=e.attributes[u]).name]=a.value;for(u in m)a=m[u],u=="children"||(u=="dangerouslySetInnerHTML"?i=a:u==="key"||u in d||M(e,u,null,a,_));for(u in d)a=d[u],u=="children"?v=a:u=="dangerouslySetInnerHTML"?f=a:u=="value"?h=a:u=="checked"?b=a:u==="key"||s&&typeof a!="function"||m[u]===a||M(e,u,a,m[u],_);if(f)s||i&&(f.__html===i.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(i&&(e.innerHTML=""),ie(e,I(v)?v:[v],t,n,r,_&&y!=="foreignObject",o,l,o?o[0]:n.__k&&E(n,0),s,c),o!=null)for(u=o.length;u--;)o[u]!=null&&_e(o[u]);s||(u="value",h!==void 0&&(h!==e[u]||y==="progress"&&!h||y==="option"&&h!==m[u])&&M(e,u,h,m[u],!1),u="checked",b!==void 0&&b!==e[u]&&M(e,u,b,m[u],!1))}return e}function B(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){p.__e(r,n)}}function $(e,t,n){var r,_;if(p.unmount&&p.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||B(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){p.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(_=0;_<r.length;_++)r[_]&&$(r[_],t,n||typeof e.type!="function");n||e.__e==null||_e(e.__e),e.__=e.__e=e.__d=void 0}function ye(e,t,n){return this.constructor(e,n)}function U(e,t,n){var r,_,o,l;p.__&&p.__(e,t),_=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],l=[],R(t,e=(!r&&n||t).__k=k(P,null,[e]),_||D,D,t.ownerSVGElement!==void 0,!r&&n?[n]:_?null:t.firstChild?L.call(t.childNodes):null,o,!r&&n?n:_?_.__e:t.firstChild,r,l),se(o,e,l)}function V(e,t){U(e,t,V)}function z(e,t,n){var r,_,o,l,s=C({},e.props);for(o in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?_=t[o]:s[o]=t[o]===void 0&&l!==void 0?l[o]:t[o];return arguments.length>2&&(s.children=arguments.length>3?L.call(arguments,2):n),T(e.type,s,r||e.key,_||e.ref,null)}L=oe.slice,p={__e:function(e,t,n,r){for(var _,o,l;t=t.__;)if((_=t.__c)&&!_.__)try{if((o=_.constructor)&&o.getDerivedStateFromError!=null&&(_.setState(o.getDerivedStateFromError(e)),l=_.__d),_.componentDidCatch!=null&&(_.componentDidCatch(e,r||{}),l=_.__d),l)return _.__E=_}catch(s){e=s}throw e}},te=0,fe=function(e){return e!=null&&e.constructor==null},N.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=C({},this.state),typeof e=="function"&&(e=e(C({},n),this.props)),e&&C(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),X(this))},N.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),X(this))},N.prototype.render=P,w=[],ne=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,j=function(e,t){return e.__v.__b-t.__v.__b},H.__r=0,pe=0;function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ge=["context","children"];function be(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,_){if(r==null)return{};var o,l,s={},c=Object.keys(r);for(l=0;l<c.length;l++)_.indexOf(o=c[l])>=0||(s[o]=r[o]);return s}(e,ge);return z(t,n)}function ke(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=k(be,G({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var _=[],o={},l=0,s=n.attributes,c=n.childNodes;for(l=s.length;l--;)s[l].name!=="slot"&&(o[s[l].name]=s[l].value,o[ce(s[l].name)]=s[l].value);for(l=c.length;l--;){var u=t(c[l],null),f=c[l].slot;f?o[f]=k(ue,{name:f},u):_[l]=u}var i=r?k(ue,null,_):_;return k(r||n.nodeName.toLowerCase(),o,i)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:U)(this._vdom,this._root)}function ce(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Ce(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[ce(e)]=n,this._vdom=z(this._vdom,r),U(this._vdom,this._root)}}function xe(){U(this._vdom=null,this._root)}function ue(e,t){var n=this;return k("slot",G({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(_){_.stopPropagation(),_.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function ae(e,t,n,r){function _(){var o=Reflect.construct(HTMLElement,[],_);return o._vdomComponent=e,o._root=r&&r.shadow?o.attachShadow({mode:r.mode||"open"}):o,o}return(_.prototype=Object.create(HTMLElement.prototype)).constructor=_,_.prototype.connectedCallback=ke,_.prototype.attributeChangedCallback=Ce,_.prototype.disconnectedCallback=xe,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),_.observedAttributes=n,n.forEach(function(o){Object.defineProperty(_.prototype,o,{get:function(){return this._vdom.props[o]},set:function(l){this._vdom?this.attributeChangedCallback(o,null,l):(this._props||(this._props={}),this._props[o]=l,this.connectedCallback());var s=typeof l;l!=null&&s!=="string"&&s!=="boolean"&&s!=="number"||this.setAttribute(o,l)}})}),customElements.define(t||e.tagName||e.displayName||e.name,_)}var q=()=>k(P,null,k("slot",null),k("style",{type:"text/css"},K)),we=e=>customElements.get(e)!==void 0;we("nge-card")||ae(q,"nge-card",q?.observedAttributes||[],{shadow:q?.useShadowDom??!0});
//# sourceMappingURL=index.js.map
{
"name": "@no-gravity-elements/card",
"version": "1.0.13",
"version": "1.0.14",
"description": "No Gravity Element",

@@ -29,3 +29,3 @@ "author": "No Gravity Company",

},
"gitHead": "90125668b1bd5c90cf4efa266e018522c8198398"
"gitHead": "9d70830460b78959c9f7d3b2e3cd0ffe6879619f"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc