Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@appartmint/util

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appartmint/util - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

dist/js/imports/math.d.ts

1

dist/js/index.d.ts

@@ -13,2 +13,3 @@ /**

export { mintEvent } from './imports/event';
export { mintMath } from './imports/math';
export { mintObject } from './imports/object';

@@ -15,0 +16,0 @@ export { mintText } from './imports/text';

@@ -161,2 +161,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

})(mintSide = exports.mintSide || (exports.mintSide = {}));
;

@@ -187,2 +188,37 @@ /***/ }),

/***/ "./src/ts/imports/math.ts":
/*!********************************!*\
!*** ./src/ts/imports/math.ts ***!
\********************************/
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.mintMath = void 0;
/**
* Math functions for the util library
*/
class mintMath {
/**
* Get a random integer between min and max
* @param max Maximum value to return
* @param min Minimum value to return (default is 0)
* @returns a random integer between min and max
*/
static randomInt(max) {
let min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min) + min);
}
}
exports.mintMath = mintMath;
;
exports["default"] = mintMath;
/***/ }),
/***/ "./src/ts/imports/object.ts":

@@ -377,3 +413,3 @@ /*!**********************************!*\

}));
exports["default"] = exports.mintUtil = exports.mintSettings = exports.mintSelectors = exports.mintWindow = exports.mintText = exports.mintObject = exports.mintEvent = exports.mintSide = exports.mintDisplay = exports.mintColor = void 0;
exports["default"] = exports.mintUtil = exports.mintSettings = exports.mintSelectors = exports.mintWindow = exports.mintText = exports.mintObject = exports.mintMath = exports.mintEvent = exports.mintSide = exports.mintDisplay = exports.mintColor = void 0;
/**

@@ -410,2 +446,9 @@ * Exports

}));
var math_1 = __webpack_require__(/*! ./imports/math */ "./src/ts/imports/math.ts");
Object.defineProperty(exports, "mintMath", ({
enumerable: true,
get: function () {
return math_1.mintMath;
}
}));
var object_1 = __webpack_require__(/*! ./imports/object */ "./src/ts/imports/object.ts");

@@ -767,2 +810,3 @@ Object.defineProperty(exports, "mintObject", ({

const event_1 = __importDefault(__webpack_require__(/*! ./imports/event */ "./src/ts/imports/event.ts"));
const math_1 = __importDefault(__webpack_require__(/*! ./imports/math */ "./src/ts/imports/math.ts"));
const object_1 = __importDefault(__webpack_require__(/*! ./imports/object */ "./src/ts/imports/object.ts"));

@@ -782,2 +826,3 @@ const text_1 = __importDefault(__webpack_require__(/*! ./imports/text */ "./src/ts/imports/text.ts"));

this.event = event_1.default;
this.math = math_1.default;
this.object = object_1.default;

@@ -784,0 +829,0 @@ this.text = text_1.default;

2

dist/js/index.min.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mint=t():e.mint=t()}(self,(()=>(()=>{"use strict";var e={731:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintColor=void 0;class i{constructor(e){this.r="number"==typeof e.r?Math.max(Math.min(e.r,i.hexBase**2-1),0):0,this.g="number"==typeof e.g?Math.max(Math.min(e.g,i.hexBase**2-1),0):0,this.b="number"==typeof e.b?Math.max(Math.min(e.b,i.hexBase**2-1),0):0,this.a="number"==typeof e.a?Math.max(Math.min(e.a,1),0):1,"string"==typeof e.color&&this.stringConstructor(e.color)}stringConstructor(e){e.startsWith("#")?this.hexConstructor(e):(~e.indexOf("linear-gradient")&&(e=e.substring(e.indexOf("linear-gradient"),e.length)),this.rgbConstructor(e))}hexConstructor(e){switch(e.length){case 1:case 5:case 6:return;case 2:e="#"+e[1]+e[1]+e[1]+e[1]+e[1]+e[1]+i.hexMax;break;case 3:e="#"+e[1]+e[1]+e[1]+e[2]+e[2]+e[2]+i.hexMax;break;case 4:e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+i.hexMax;break;case 7:e+=i.hexMax;break;case 8:e+=e[e.length-1];break;default:e=e.substring(0,9)}this.r=parseInt(e.substring(1,3),i.hexBase),this.g=parseInt(e.substring(3,5),i.hexBase),this.b=parseInt(e.substring(5,7),i.hexBase),this.a=parseInt(e.substring(7,9),i.hexBase)/i.hexBase**2}rgbConstructor(e){let t=e.match(/rgba?\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\)?(?:, ?(\d(?:\.\d*)?)\))?/);t&&(this.r=parseInt(t[1]),this.g=parseInt(t[2]),this.b=parseInt(t[3]),this.a=parseFloat(t[4]))}getBrightness(){return 0===this.a?262:isNaN(this.r)||isNaN(this.g)||isNaN(this.b)?-1:Math.round((299*this.r+587*this.g+144*this.b)/1e3)}}t.mintColor=i,i.hexBase=16,i.hexMax="FF",t.default=i},159:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintDisplay=void 0;class i{}t.mintDisplay=i,t.default=i},64:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.mintSide=void 0,(i=t.mintSide||(t.mintSide={}))[i.Top=0]="Top",i[i.Right=1]="Right",i[i.Bottom=2]="Bottom",i[i.Left=3]="Left"},402:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintEvent=void 0;class i{}t.mintEvent=i,t.default=i},917:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintObject=void 0;class i{static isSimilar(e,t){let i=Object.keys(e);return i.length===Object.keys(t).length&&(i.forEach((i=>{if(e[i]!==t[i])return!1})),!0)}static isSuperset(e,t){let a=!0;if(e===t)return a;try{if(0===Object.keys(t).length)return!a}catch(e){return!a}return Object.keys(t).forEach((n=>{a=a&&i.isSuperset(e[n],t[n])})),a}static remove(e,t){return Object.keys(e).reduce(((i,a)=>(t.includes(a)||(i[a]=e[a]),i)),{})}static sort(e){return Object.keys(e).sort().reduce(((t,i)=>(t[i]=e[i],t)),{})}static filter(e,t){return this.filterKeys(e,t)}static filterKeys(e,t){return t.reduce(((t,i)=>(t[i]=e[i],t)),{})}static filterValues(e,t){return Object.keys(e).reduce(((i,a)=>(t.includes(e[a])&&(i[a]=e[a]),i)),{})}}t.mintObject=i,t.default=i},810:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintText=void 0;class i{}t.mintText=i,t.default=i},953:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintWindow=void 0;class i{}t.mintWindow=i,t.default=i},491:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.mintUtil=t.mintSettings=t.mintSelectors=t.mintWindow=t.mintText=t.mintObject=t.mintEvent=t.mintSide=t.mintDisplay=t.mintColor=void 0;var n=i(731);Object.defineProperty(t,"mintColor",{enumerable:!0,get:function(){return n.mintColor}});var s=i(159);Object.defineProperty(t,"mintDisplay",{enumerable:!0,get:function(){return s.mintDisplay}});var r=i(64);Object.defineProperty(t,"mintSide",{enumerable:!0,get:function(){return r.mintSide}});var l=i(402);Object.defineProperty(t,"mintEvent",{enumerable:!0,get:function(){return l.mintEvent}});var o=i(917);Object.defineProperty(t,"mintObject",{enumerable:!0,get:function(){return o.mintObject}});var d=i(810);Object.defineProperty(t,"mintText",{enumerable:!0,get:function(){return d.mintText}});var u=i(953);Object.defineProperty(t,"mintWindow",{enumerable:!0,get:function(){return u.mintWindow}});var c=i(565);Object.defineProperty(t,"mintSelectors",{enumerable:!0,get:function(){return c.mintSelectors}});var h=i(750);Object.defineProperty(t,"mintSettings",{enumerable:!0,get:function(){return h.mintSettings}});var b=i(427);Object.defineProperty(t,"mintUtil",{enumerable:!0,get:function(){return b.mintUtil}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a(b).default}})},565:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.mintSelectors=void 0;class a{static prefix(e){return(e=e.toLowerCase()).startsWith(this.pre)?e:`${this.pre}${e}`}static cssPrefix(e){return`--${this.prefix(e.replace(/^-+/,""))}`}static cssVar(e){return`var(${this.cssPrefix(e)})`}static neg(e){return`:not(${e})`}static class(e){return`.${this.prefix(e)}`}static id(e){return`#${this.prefix(e)}`}static controls(e){return e?`[aria-controls="${this.prefix(e)}"]`:this.hasControls}static expanded(e){return"boolean"==typeof e?`[aria-expanded="${e}"]`:this.hasExpanded}static getId(e){var t;return null!==(t=this.ids[null!=e?e:-1])&&void 0!==t?t:""}static getClass(e,t){var i,a;return t?null!==(i=this.classes[t][null!=e?e:-1])&&void 0!==i?i:"":null!==(a=this.classes[null!=e?e:-1])&&void 0!==a?a:""}static getFocusables(e){let t;return t=e?[...e.querySelectorAll(this.focusable)]:[...document.querySelectorAll(this.focusable)],t.filter((e=>this.isFocusable(e)))}static isFocusable(e){let t=e;do{if("none"===window.getComputedStyle(t).getPropertyValue("display").toLowerCase())return!1;t=t.parentElement}while(t);return!0}}t.mintSelectors=a,i=a,a.lib="mint",a.pre=`${i.lib}-`,a.disabled="[disabled]",a.hasControls="[aria-controls]",a.hasExpanded="[aria-expanded]",a.hasLink="[href]",a.hasRouterLink="[routerLink]",a.hasId="[id]",a.notTabbable='[tabindex^="-"]',a.tabbable=`[tabindex]${i.neg(i.notTabbable)}`,a.focusable=`input${i.neg(i.disabled)}${i.neg(i.notTabbable)},\n select${i.neg(i.disabled)}${i.neg(i.notTabbable)},\n textarea${i.neg(i.disabled)}${i.neg(i.notTabbable)},\n button${i.neg(i.disabled)}${i.neg(i.notTabbable)},\n object${i.neg(i.disabled)}${i.neg(i.notTabbable)},\n a${i.hasLink}, a${i.hasRouterLink},\n area${i.hasLink},\n ${i.tabbable}`.replace(/\s/g,""),a.classes={sides:{top:i.prefix("top"),right:i.prefix("right"),bottom:i.prefix("bottom"),left:i.prefix("left")}},t.default=a},750:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.mintSettings=void 0;class a{static set(e){let t=!1;"number"==typeof e.delayBase&&(this.delayBase=e.delayBase,t=!0),"number"==typeof e.delayStep&&(this.delayStep=e.delayStep,t=!0),t&&this.setDelay(),e.delay&&Object.keys(e.delay).length&&Object.values(e.delay).reduce(((e,t)=>e&&"number"==typeof t),!0)&&(this.delay=Object.assign(Object.assign({},this.delay),e.delay))}static setDelay(){this.delay={instant:this.delayBase+0*this.delayStep,fast:this.delayBase+1*this.delayStep,medFast:this.delayBase+2*this.delayStep,default:this.delayBase+3*this.delayStep,medSlow:this.delayBase+4*this.delayStep,slow:this.delayBase+5*this.delayStep}}}t.mintSettings=a,i=a,a.delayBase=0,a.delayStep=100,a.delay={instant:i.delayBase+0*i.delayStep,fast:i.delayBase+1*i.delayStep,medFast:i.delayBase+2*i.delayStep,default:i.delayBase+3*i.delayStep,medSlow:i.delayBase+4*i.delayStep,slow:i.delayBase+5*i.delayStep},t.default=a},427:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mintUtil=void 0;const n=a(i(750)),s=a(i(159)),r=i(64),l=a(i(402)),o=a(i(917)),d=a(i(810)),u=a(i(953));class c{constructor(){this.display=s.default,this.event=l.default,this.object=o.default,this.text=d.default,this.window=u.default}static windowWidth(){let e=document.getElementsByTagName("body")[0].getBoundingClientRect().width%1;return window.innerWidth+e}static debounce(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default.delay.default;return function(a){t&&clearTimeout(t),t=setTimeout(e,i,a)}}static debounceEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default.delay.default;return c.debounce(e,t)}static throttle(e){let t,i,a,s,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default.delay.default,l=arguments.length>2?arguments[2]:void 0,o=0,d=function(){o=!1===(null==l?void 0:l.leading)?0:(new Date).getTime(),s=0,a=e.apply(t,i),s||(t=i=null)};return function(){let n=(new Date).getTime();o||!1!==(null==l?void 0:l.leading)||(o=n);let u=r-n+o;return t=this,i=arguments,u<=0||u>r?(s&&(clearTimeout(s),s=0),o=n,a=e.apply(t,i),s||(t=i=null)):s||!1===(null==l?void 0:l.trailing)||(s=window.setTimeout(d,u)),a}}static throttleEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default.delay.default,i=arguments.length>2?arguments[2]:void 0;return c.throttle(e,t,i)}static show(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default.delay.default,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.mintSide.Top;e&&(e.style.display="",requestAnimationFrame((()=>{i===r.mintSide.Top||i===r.mintSide.Bottom?e.style.height=`${e.scrollHeight}px`:e.style.width=`${e.scrollWidth}px`,setTimeout((()=>{i===r.mintSide.Top||i===r.mintSide.Bottom?e.style.height="auto":e.style.width="auto"}),t)})))}static hide(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default.delay.default,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.mintSide.Top;if(e){let a=e.scrollHeight,n=e.scrollWidth,s=e.style.transition;e.style.transition="",requestAnimationFrame((()=>{i===r.mintSide.Top||i===r.mintSide.Bottom?e.style.height=`${a}px`:e.style.width=`${n}px`,e.style.transition=s,requestAnimationFrame((()=>{i===r.mintSide.Top||i===r.mintSide.Bottom?e.style.height="0":e.style.width="0"}))})),setTimeout((()=>{e.style.display="none"}),t)}}static copyText(e){let t=document.createElement("textarea");return!(!e||!t||(t.value=e,t.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n transform: translate(-100%, -100%);\n opacity: 0;\n z-index: -1;\n ",document.body.appendChild(t),t.select(),t.setSelectionRange(0,99999),navigator.clipboard.writeText(t.value),document.body.removeChild(t),0))}static isEmail(e){return null!==e.match(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/)}}t.mintUtil=c,t.default=c}},t={};return function i(a){var n=t[a];if(void 0!==n)return n.exports;var s=t[a]={exports:{}};return e[a].call(s.exports,s,s.exports,i),s.exports}(491)})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mint=t():e.mint=t()}(self,(()=>(()=>{"use strict";var e={731:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintColor=void 0;class i{constructor(e){this.r="number"==typeof e.r?Math.max(Math.min(e.r,i.hexBase**2-1),0):0,this.g="number"==typeof e.g?Math.max(Math.min(e.g,i.hexBase**2-1),0):0,this.b="number"==typeof e.b?Math.max(Math.min(e.b,i.hexBase**2-1),0):0,this.a="number"==typeof e.a?Math.max(Math.min(e.a,1),0):1,"string"==typeof e.color&&this.stringConstructor(e.color)}stringConstructor(e){e.startsWith("#")?this.hexConstructor(e):(~e.indexOf("linear-gradient")&&(e=e.substring(e.indexOf("linear-gradient"),e.length)),this.rgbConstructor(e))}hexConstructor(e){switch(e.length){case 1:case 5:case 6:return;case 2:e="#"+e[1]+e[1]+e[1]+e[1]+e[1]+e[1]+i.hexMax;break;case 3:e="#"+e[1]+e[1]+e[1]+e[2]+e[2]+e[2]+i.hexMax;break;case 4:e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+i.hexMax;break;case 7:e+=i.hexMax;break;case 8:e+=e[e.length-1];break;default:e=e.substring(0,9)}this.r=parseInt(e.substring(1,3),i.hexBase),this.g=parseInt(e.substring(3,5),i.hexBase),this.b=parseInt(e.substring(5,7),i.hexBase),this.a=parseInt(e.substring(7,9),i.hexBase)/i.hexBase**2}rgbConstructor(e){let t=e.match(/rgba?\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\)?(?:, ?(\d(?:\.\d*)?)\))?/);t&&(this.r=parseInt(t[1]),this.g=parseInt(t[2]),this.b=parseInt(t[3]),this.a=parseFloat(t[4]))}getBrightness(){return 0===this.a?262:isNaN(this.r)||isNaN(this.g)||isNaN(this.b)?-1:Math.round((299*this.r+587*this.g+144*this.b)/1e3)}}t.mintColor=i,i.hexBase=16,i.hexMax="FF",t.default=i},159:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintDisplay=void 0;class i{}t.mintDisplay=i,t.default=i},64:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.mintSide=void 0,(i=t.mintSide||(t.mintSide={}))[i.Top=0]="Top",i[i.Right=1]="Right",i[i.Bottom=2]="Bottom",i[i.Left=3]="Left"},402:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintEvent=void 0;class i{}t.mintEvent=i,t.default=i},905:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintMath=void 0;class i{static randomInt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t)+t)}}t.mintMath=i,t.default=i},917:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintObject=void 0;class i{static isSimilar(e,t){let i=Object.keys(e);return i.length===Object.keys(t).length&&(i.forEach((i=>{if(e[i]!==t[i])return!1})),!0)}static isSuperset(e,t){let a=!0;if(e===t)return a;try{if(0===Object.keys(t).length)return!a}catch(e){return!a}return Object.keys(t).forEach((n=>{a=a&&i.isSuperset(e[n],t[n])})),a}static remove(e,t){return Object.keys(e).reduce(((i,a)=>(t.includes(a)||(i[a]=e[a]),i)),{})}static sort(e){return Object.keys(e).sort().reduce(((t,i)=>(t[i]=e[i],t)),{})}static filter(e,t){return this.filterKeys(e,t)}static filterKeys(e,t){return t.reduce(((t,i)=>(t[i]=e[i],t)),{})}static filterValues(e,t){return Object.keys(e).reduce(((i,a)=>(t.includes(e[a])&&(i[a]=e[a]),i)),{})}}t.mintObject=i,t.default=i},810:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintText=void 0;class i{}t.mintText=i,t.default=i},953:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintWindow=void 0;class i{}t.mintWindow=i,t.default=i},491:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.mintUtil=t.mintSettings=t.mintSelectors=t.mintWindow=t.mintText=t.mintObject=t.mintMath=t.mintEvent=t.mintSide=t.mintDisplay=t.mintColor=void 0;var n=i(731);Object.defineProperty(t,"mintColor",{enumerable:!0,get:function(){return n.mintColor}});var r=i(159);Object.defineProperty(t,"mintDisplay",{enumerable:!0,get:function(){return r.mintDisplay}});var s=i(64);Object.defineProperty(t,"mintSide",{enumerable:!0,get:function(){return s.mintSide}});var l=i(402);Object.defineProperty(t,"mintEvent",{enumerable:!0,get:function(){return l.mintEvent}});var o=i(905);Object.defineProperty(t,"mintMath",{enumerable:!0,get:function(){return o.mintMath}});var d=i(917);Object.defineProperty(t,"mintObject",{enumerable:!0,get:function(){return d.mintObject}});var u=i(810);Object.defineProperty(t,"mintText",{enumerable:!0,get:function(){return u.mintText}});var c=i(953);Object.defineProperty(t,"mintWindow",{enumerable:!0,get:function(){return c.mintWindow}});var h=i(565);Object.defineProperty(t,"mintSelectors",{enumerable:!0,get:function(){return h.mintSelectors}});var f=i(750);Object.defineProperty(t,"mintSettings",{enumerable:!0,get:function(){return f.mintSettings}});var m=i(427);Object.defineProperty(t,"mintUtil",{enumerable:!0,get:function(){return m.mintUtil}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a(m).default}})},565:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.mintSelectors=void 0;class a{static prefix(e){return(e=e.toLowerCase()).startsWith(this.pre)?e:`${this.pre}${e}`}static cssPrefix(e){return`--${this.prefix(e.replace(/^-+/,""))}`}static cssVar(e){return`var(${this.cssPrefix(e)})`}static neg(e){return`:not(${e})`}static class(e){return`.${this.prefix(e)}`}static id(e){return`#${this.prefix(e)}`}static controls(e){return e?`[aria-controls="${this.prefix(e)}"]`:this.hasControls}static expanded(e){return"boolean"==typeof e?`[aria-expanded="${e}"]`:this.hasExpanded}static getId(e){var t;return null!==(t=this.ids[null!=e?e:-1])&&void 0!==t?t:""}static getClass(e,t){var i,a;return t?null!==(i=this.classes[t][null!=e?e:-1])&&void 0!==i?i:"":null!==(a=this.classes[null!=e?e:-1])&&void 0!==a?a:""}static getFocusables(e){let t;return t=e?[...e.querySelectorAll(this.focusable)]:[...document.querySelectorAll(this.focusable)],t.filter((e=>this.isFocusable(e)))}static isFocusable(e){let t=e;do{if("none"===window.getComputedStyle(t).getPropertyValue("display").toLowerCase())return!1;t=t.parentElement}while(t);return!0}}t.mintSelectors=a,i=a,a.lib="mint",a.pre=`${i.lib}-`,a.disabled="[disabled]",a.hasControls="[aria-controls]",a.hasExpanded="[aria-expanded]",a.hasLink="[href]",a.hasRouterLink="[routerLink]",a.hasId="[id]",a.notTabbable='[tabindex^="-"]',a.tabbable=`[tabindex]${i.neg(i.notTabbable)}`,a.focusable=`input${i.neg(i.disabled)}${i.neg(i.notTabbable)},\n select${i.neg(i.disabled)}${i.neg(i.notTabbable)},\n textarea${i.neg(i.disabled)}${i.neg(i.notTabbable)},\n button${i.neg(i.disabled)}${i.neg(i.notTabbable)},\n object${i.neg(i.disabled)}${i.neg(i.notTabbable)},\n a${i.hasLink}, a${i.hasRouterLink},\n area${i.hasLink},\n ${i.tabbable}`.replace(/\s/g,""),a.classes={sides:{top:i.prefix("top"),right:i.prefix("right"),bottom:i.prefix("bottom"),left:i.prefix("left")}},t.default=a},750:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.mintSettings=void 0;class a{static set(e){let t=!1;"number"==typeof e.delayBase&&(this.delayBase=e.delayBase,t=!0),"number"==typeof e.delayStep&&(this.delayStep=e.delayStep,t=!0),t&&this.setDelay(),e.delay&&Object.keys(e.delay).length&&Object.values(e.delay).reduce(((e,t)=>e&&"number"==typeof t),!0)&&(this.delay=Object.assign(Object.assign({},this.delay),e.delay))}static setDelay(){this.delay={instant:this.delayBase+0*this.delayStep,fast:this.delayBase+1*this.delayStep,medFast:this.delayBase+2*this.delayStep,default:this.delayBase+3*this.delayStep,medSlow:this.delayBase+4*this.delayStep,slow:this.delayBase+5*this.delayStep}}}t.mintSettings=a,i=a,a.delayBase=0,a.delayStep=100,a.delay={instant:i.delayBase+0*i.delayStep,fast:i.delayBase+1*i.delayStep,medFast:i.delayBase+2*i.delayStep,default:i.delayBase+3*i.delayStep,medSlow:i.delayBase+4*i.delayStep,slow:i.delayBase+5*i.delayStep},t.default=a},427:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mintUtil=void 0;const n=a(i(750)),r=a(i(159)),s=i(64),l=a(i(402)),o=a(i(905)),d=a(i(917)),u=a(i(810)),c=a(i(953));class h{constructor(){this.display=r.default,this.event=l.default,this.math=o.default,this.object=d.default,this.text=u.default,this.window=c.default}static windowWidth(){let e=document.getElementsByTagName("body")[0].getBoundingClientRect().width%1;return window.innerWidth+e}static debounce(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default.delay.default;return function(a){t&&clearTimeout(t),t=setTimeout(e,i,a)}}static debounceEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default.delay.default;return h.debounce(e,t)}static throttle(e){let t,i,a,r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default.delay.default,l=arguments.length>2?arguments[2]:void 0,o=0,d=function(){o=!1===(null==l?void 0:l.leading)?0:(new Date).getTime(),r=0,a=e.apply(t,i),r||(t=i=null)};return function(){let n=(new Date).getTime();o||!1!==(null==l?void 0:l.leading)||(o=n);let u=s-n+o;return t=this,i=arguments,u<=0||u>s?(r&&(clearTimeout(r),r=0),o=n,a=e.apply(t,i),r||(t=i=null)):r||!1===(null==l?void 0:l.trailing)||(r=window.setTimeout(d,u)),a}}static throttleEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default.delay.default,i=arguments.length>2?arguments[2]:void 0;return h.throttle(e,t,i)}static show(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default.delay.default,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.mintSide.Top;e&&(e.style.display="",requestAnimationFrame((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height=`${e.scrollHeight}px`:e.style.width=`${e.scrollWidth}px`,setTimeout((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height="auto":e.style.width="auto"}),t)})))}static hide(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default.delay.default,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.mintSide.Top;if(e){let a=e.scrollHeight,n=e.scrollWidth,r=e.style.transition;e.style.transition="",requestAnimationFrame((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height=`${a}px`:e.style.width=`${n}px`,e.style.transition=r,requestAnimationFrame((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height="0":e.style.width="0"}))})),setTimeout((()=>{e.style.display="none"}),t)}}static copyText(e){let t=document.createElement("textarea");return!(!e||!t||(t.value=e,t.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n transform: translate(-100%, -100%);\n opacity: 0;\n z-index: -1;\n ",document.body.appendChild(t),t.select(),t.setSelectionRange(0,99999),navigator.clipboard.writeText(t.value),document.body.removeChild(t),0))}static isEmail(e){return null!==e.match(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/)}}t.mintUtil=h,t.default=h}},t={};return function i(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,i),r.exports}(491)})()));
//# sourceMappingURL=index.min.js.map
import mintDisplay from './imports/display';
import { mintSide } from './imports/enum';
import mintEvent from './imports/event';
import mintMath from './imports/math';
import mintObject from './imports/object';

@@ -17,2 +18,3 @@ import mintText from './imports/text';

event: mintEvent;
math: mintMath;
object: mintObject;

@@ -19,0 +21,0 @@ text: mintText;

@@ -59,2 +59,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

})(mintSide = exports.mintSide || (exports.mintSide = {}));
;

@@ -85,2 +86,37 @@ /***/ }),

/***/ "./src/ts/imports/math.ts":
/*!********************************!*\
!*** ./src/ts/imports/math.ts ***!
\********************************/
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.mintMath = void 0;
/**
* Math functions for the util library
*/
class mintMath {
/**
* Get a random integer between min and max
* @param max Maximum value to return
* @param min Minimum value to return (default is 0)
* @returns a random integer between min and max
*/
static randomInt(max) {
let min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min) + min);
}
}
exports.mintMath = mintMath;
;
exports["default"] = mintMath;
/***/ }),
/***/ "./src/ts/imports/object.ts":

@@ -358,2 +394,3 @@ /*!**********************************!*\

const event_1 = __importDefault(__webpack_require__(/*! ./imports/event */ "./src/ts/imports/event.ts"));
const math_1 = __importDefault(__webpack_require__(/*! ./imports/math */ "./src/ts/imports/math.ts"));
const object_1 = __importDefault(__webpack_require__(/*! ./imports/object */ "./src/ts/imports/object.ts"));

@@ -373,2 +410,3 @@ const text_1 = __importDefault(__webpack_require__(/*! ./imports/text */ "./src/ts/imports/text.ts"));

this.event = event_1.default;
this.math = math_1.default;
this.object = object_1.default;

@@ -375,0 +413,0 @@ this.text = text_1.default;

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mintUtil=t():e.mintUtil=t()}(this,(()=>(()=>{"use strict";var e={159:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintDisplay=void 0;class i{}t.mintDisplay=i,t.default=i},64:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.mintSide=void 0,(i=t.mintSide||(t.mintSide={}))[i.Top=0]="Top",i[i.Right=1]="Right",i[i.Bottom=2]="Bottom",i[i.Left=3]="Left"},402:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintEvent=void 0;class i{}t.mintEvent=i,t.default=i},917:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintObject=void 0;class i{static isSimilar(e,t){let i=Object.keys(e);return i.length===Object.keys(t).length&&(i.forEach((i=>{if(e[i]!==t[i])return!1})),!0)}static isSuperset(e,t){let l=!0;if(e===t)return l;try{if(0===Object.keys(t).length)return!l}catch(e){return!l}return Object.keys(t).forEach((a=>{l=l&&i.isSuperset(e[a],t[a])})),l}static remove(e,t){return Object.keys(e).reduce(((i,l)=>(t.includes(l)||(i[l]=e[l]),i)),{})}static sort(e){return Object.keys(e).sort().reduce(((t,i)=>(t[i]=e[i],t)),{})}static filter(e,t){return this.filterKeys(e,t)}static filterKeys(e,t){return t.reduce(((t,i)=>(t[i]=e[i],t)),{})}static filterValues(e,t){return Object.keys(e).reduce(((i,l)=>(t.includes(e[l])&&(i[l]=e[l]),i)),{})}}t.mintObject=i,t.default=i},810:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintText=void 0;class i{}t.mintText=i,t.default=i},953:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintWindow=void 0;class i{}t.mintWindow=i,t.default=i},750:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.mintSettings=void 0;class l{static set(e){let t=!1;"number"==typeof e.delayBase&&(this.delayBase=e.delayBase,t=!0),"number"==typeof e.delayStep&&(this.delayStep=e.delayStep,t=!0),t&&this.setDelay(),e.delay&&Object.keys(e.delay).length&&Object.values(e.delay).reduce(((e,t)=>e&&"number"==typeof t),!0)&&(this.delay=Object.assign(Object.assign({},this.delay),e.delay))}static setDelay(){this.delay={instant:this.delayBase+0*this.delayStep,fast:this.delayBase+1*this.delayStep,medFast:this.delayBase+2*this.delayStep,default:this.delayBase+3*this.delayStep,medSlow:this.delayBase+4*this.delayStep,slow:this.delayBase+5*this.delayStep}}}t.mintSettings=l,i=l,l.delayBase=0,l.delayStep=100,l.delay={instant:i.delayBase+0*i.delayStep,fast:i.delayBase+1*i.delayStep,medFast:i.delayBase+2*i.delayStep,default:i.delayBase+3*i.delayStep,medSlow:i.delayBase+4*i.delayStep,slow:i.delayBase+5*i.delayStep},t.default=l},427:function(e,t,i){var l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mintUtil=void 0;const a=l(i(750)),d=l(i(159)),s=i(64),n=l(i(402)),o=l(i(917)),r=l(i(810)),u=l(i(953));class y{constructor(){this.display=d.default,this.event=n.default,this.object=o.default,this.text=r.default,this.window=u.default}static windowWidth(){let e=document.getElementsByTagName("body")[0].getBoundingClientRect().width%1;return window.innerWidth+e}static debounce(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.delay.default;return function(l){t&&clearTimeout(t),t=setTimeout(e,i,l)}}static debounceEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.delay.default;return y.debounce(e,t)}static throttle(e){let t,i,l,d,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.delay.default,n=arguments.length>2?arguments[2]:void 0,o=0,r=function(){o=!1===(null==n?void 0:n.leading)?0:(new Date).getTime(),d=0,l=e.apply(t,i),d||(t=i=null)};return function(){let a=(new Date).getTime();o||!1!==(null==n?void 0:n.leading)||(o=a);let u=s-a+o;return t=this,i=arguments,u<=0||u>s?(d&&(clearTimeout(d),d=0),o=a,l=e.apply(t,i),d||(t=i=null)):d||!1===(null==n?void 0:n.trailing)||(d=window.setTimeout(r,u)),l}}static throttleEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.delay.default,i=arguments.length>2?arguments[2]:void 0;return y.throttle(e,t,i)}static show(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.delay.default,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.mintSide.Top;e&&(e.style.display="",requestAnimationFrame((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height=`${e.scrollHeight}px`:e.style.width=`${e.scrollWidth}px`,setTimeout((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height="auto":e.style.width="auto"}),t)})))}static hide(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.delay.default,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.mintSide.Top;if(e){let l=e.scrollHeight,a=e.scrollWidth,d=e.style.transition;e.style.transition="",requestAnimationFrame((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height=`${l}px`:e.style.width=`${a}px`,e.style.transition=d,requestAnimationFrame((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height="0":e.style.width="0"}))})),setTimeout((()=>{e.style.display="none"}),t)}}static copyText(e){let t=document.createElement("textarea");return!(!e||!t||(t.value=e,t.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n transform: translate(-100%, -100%);\n opacity: 0;\n z-index: -1;\n ",document.body.appendChild(t),t.select(),t.setSelectionRange(0,99999),navigator.clipboard.writeText(t.value),document.body.removeChild(t),0))}static isEmail(e){return null!==e.match(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/)}}t.mintUtil=y,t.default=y}},t={},i=function i(l){var a=t[l];if(void 0!==a)return a.exports;var d=t[l]={exports:{}};return e[l].call(d.exports,d,d.exports,i),d.exports}(427);return i.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mintUtil=t():e.mintUtil=t()}(this,(()=>(()=>{"use strict";var e={159:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintDisplay=void 0;class i{}t.mintDisplay=i,t.default=i},64:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.mintSide=void 0,(i=t.mintSide||(t.mintSide={}))[i.Top=0]="Top",i[i.Right=1]="Right",i[i.Bottom=2]="Bottom",i[i.Left=3]="Left"},402:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintEvent=void 0;class i{}t.mintEvent=i,t.default=i},905:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintMath=void 0;class i{static randomInt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t)+t)}}t.mintMath=i,t.default=i},917:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintObject=void 0;class i{static isSimilar(e,t){let i=Object.keys(e);return i.length===Object.keys(t).length&&(i.forEach((i=>{if(e[i]!==t[i])return!1})),!0)}static isSuperset(e,t){let l=!0;if(e===t)return l;try{if(0===Object.keys(t).length)return!l}catch(e){return!l}return Object.keys(t).forEach((a=>{l=l&&i.isSuperset(e[a],t[a])})),l}static remove(e,t){return Object.keys(e).reduce(((i,l)=>(t.includes(l)||(i[l]=e[l]),i)),{})}static sort(e){return Object.keys(e).sort().reduce(((t,i)=>(t[i]=e[i],t)),{})}static filter(e,t){return this.filterKeys(e,t)}static filterKeys(e,t){return t.reduce(((t,i)=>(t[i]=e[i],t)),{})}static filterValues(e,t){return Object.keys(e).reduce(((i,l)=>(t.includes(e[l])&&(i[l]=e[l]),i)),{})}}t.mintObject=i,t.default=i},810:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintText=void 0;class i{}t.mintText=i,t.default=i},953:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mintWindow=void 0;class i{}t.mintWindow=i,t.default=i},750:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.mintSettings=void 0;class l{static set(e){let t=!1;"number"==typeof e.delayBase&&(this.delayBase=e.delayBase,t=!0),"number"==typeof e.delayStep&&(this.delayStep=e.delayStep,t=!0),t&&this.setDelay(),e.delay&&Object.keys(e.delay).length&&Object.values(e.delay).reduce(((e,t)=>e&&"number"==typeof t),!0)&&(this.delay=Object.assign(Object.assign({},this.delay),e.delay))}static setDelay(){this.delay={instant:this.delayBase+0*this.delayStep,fast:this.delayBase+1*this.delayStep,medFast:this.delayBase+2*this.delayStep,default:this.delayBase+3*this.delayStep,medSlow:this.delayBase+4*this.delayStep,slow:this.delayBase+5*this.delayStep}}}t.mintSettings=l,i=l,l.delayBase=0,l.delayStep=100,l.delay={instant:i.delayBase+0*i.delayStep,fast:i.delayBase+1*i.delayStep,medFast:i.delayBase+2*i.delayStep,default:i.delayBase+3*i.delayStep,medSlow:i.delayBase+4*i.delayStep,slow:i.delayBase+5*i.delayStep},t.default=l},427:function(e,t,i){var l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mintUtil=void 0;const a=l(i(750)),d=l(i(159)),s=i(64),n=l(i(402)),o=l(i(905)),r=l(i(917)),u=l(i(810)),c=l(i(953));class y{constructor(){this.display=d.default,this.event=n.default,this.math=o.default,this.object=r.default,this.text=u.default,this.window=c.default}static windowWidth(){let e=document.getElementsByTagName("body")[0].getBoundingClientRect().width%1;return window.innerWidth+e}static debounce(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.delay.default;return function(l){t&&clearTimeout(t),t=setTimeout(e,i,l)}}static debounceEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.delay.default;return y.debounce(e,t)}static throttle(e){let t,i,l,d,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.delay.default,n=arguments.length>2?arguments[2]:void 0,o=0,r=function(){o=!1===(null==n?void 0:n.leading)?0:(new Date).getTime(),d=0,l=e.apply(t,i),d||(t=i=null)};return function(){let a=(new Date).getTime();o||!1!==(null==n?void 0:n.leading)||(o=a);let u=s-a+o;return t=this,i=arguments,u<=0||u>s?(d&&(clearTimeout(d),d=0),o=a,l=e.apply(t,i),d||(t=i=null)):d||!1===(null==n?void 0:n.trailing)||(d=window.setTimeout(r,u)),l}}static throttleEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.delay.default,i=arguments.length>2?arguments[2]:void 0;return y.throttle(e,t,i)}static show(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.delay.default,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.mintSide.Top;e&&(e.style.display="",requestAnimationFrame((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height=`${e.scrollHeight}px`:e.style.width=`${e.scrollWidth}px`,setTimeout((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height="auto":e.style.width="auto"}),t)})))}static hide(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.delay.default,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.mintSide.Top;if(e){let l=e.scrollHeight,a=e.scrollWidth,d=e.style.transition;e.style.transition="",requestAnimationFrame((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height=`${l}px`:e.style.width=`${a}px`,e.style.transition=d,requestAnimationFrame((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height="0":e.style.width="0"}))})),setTimeout((()=>{e.style.display="none"}),t)}}static copyText(e){let t=document.createElement("textarea");return!(!e||!t||(t.value=e,t.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n transform: translate(-100%, -100%);\n opacity: 0;\n z-index: -1;\n ",document.body.appendChild(t),t.select(),t.setSelectionRange(0,99999),navigator.clipboard.writeText(t.value),document.body.removeChild(t),0))}static isEmail(e){return null!==e.match(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/)}}t.mintUtil=y,t.default=y}},t={},i=function i(l){var a=t[l];if(void 0!==a)return a.exports;var d=t[l]={exports:{}};return e[l].call(d.exports,d,d.exports,i),d.exports}(427);return i.default})()));
//# sourceMappingURL=util.min.js.map
{
"name": "@appartmint/util",
"author": "App/Art Mint",
"version": "0.7.1",
"version": "0.7.2",
"license": "MIT",

@@ -70,3 +70,2 @@ "description": "App/Art Mint Utility Functions",

},
"dependencies": {},
"devDependencies": {

@@ -73,0 +72,0 @@ "@appartmint/config": "^0.6.3",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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