@sebgroup/frontend-tools
Advanced tools
Comparing version 1.7.5 to 1.8.0
@@ -1,2 +0,2 @@ | ||
## [1.7.5](https://github.com/sebgroup/frontend-tools/compare/v1.7.4...v1.7.5) (2020-08-14) | ||
# [1.8.0](https://github.com/sebgroup/frontend-tools/compare/v1.7.5...v1.8.0) (2020-08-25) | ||
@@ -6,2 +6,14 @@ | ||
* **isphonenumber:** fix isphonenumber validation to match 4-15 digits ([09b51b4](https://github.com/sebgroup/frontend-tools/commit/09b51b4ebe564b516f546263890435ef88a51685)) | ||
* **openapi-generator:** add missing type ([698fd13](https://github.com/sebgroup/frontend-tools/commit/698fd13eecc4a597fae745996ac6f0642811665e)) | ||
* **openapi-generator:** add missing type ([30ff45c](https://github.com/sebgroup/frontend-tools/commit/30ff45cb175ea025f3b45b48bf4996a91cae112d)) | ||
* **openapi-generator:** fix template return type ([133ab1a](https://github.com/sebgroup/frontend-tools/commit/133ab1a22968fb16bb33887266e8ed2fd8f511dc)) | ||
### Features | ||
* adds missing date utils ([4edae07](https://github.com/sebgroup/frontend-tools/commit/4edae0795f99406ef22da00d54637697606433ae)) | ||
### Reverts | ||
* revert husky hooks changes ([7461ff9](https://github.com/sebgroup/frontend-tools/commit/7461ff960eb08e19c226f93bc90ba2ff65150157)) |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=29)}({2:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}));var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;function o(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var u=arguments[t],f=0,c=u.length;f<c;f++,o++)n[o]=u[f];return n}Object.create},29:function(e,t,r){"use strict";r.r(t),r.d(t,"arrayToObject",(function(){return o}));var n=r(2);function o(e,t){return void 0===t&&(t=""),Object.assign.apply(Object,Object(n.b)([{}],e.map((function(e,r){var n;return(n={})[t+r]=e,n}))))}}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=34)}({1:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}));var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;function o(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var u=arguments[t],f=0,c=u.length;f<c;f++,o++)n[o]=u[f];return n}Object.create},34:function(e,t,r){"use strict";r.r(t),r.d(t,"arrayToObject",(function(){return o}));var n=r(1);function o(e,t){return void 0===t&&(t=""),Object.assign.apply(Object,Object(n.b)([{}],e.map((function(e,r){var n;return(n={})[t+r]=e,n}))))}}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=30)}({30:function(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.substr(1,e.length-1)}n.r(t),n.d(t,"capitalize",(function(){return r}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=37)}({37:function(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.substr(1,e.length-1)}n.r(t),n.d(t,"capitalize",(function(){return r}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=32)}({32:function(e,t,n){"use strict";function r(e,t,n){return e&&e.length>=t&&e.length<=n}n.r(t),n.d(t,"checkStringLength",(function(){return r}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=29)}({29:function(e,t,n){"use strict";function r(e,t,n){return e&&e.length>=t&&e.length<=n}n.r(t),n.d(t,"checkStringLength",(function(){return r}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}({1:function(e,t,n){"use strict";function r(e){return e instanceof Date||(e=new Date(e)),e.setHours(0,0,0,0),e}n.d(t,"a",(function(){return r}))},15:function(e,t,n){"use strict";n.r(t);var r=n(1);n.d(t,"clearTime",(function(){return r.a}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=30)}({30:function(e,t,n){"use strict";function o(e){return e instanceof Date||(e=new Date(e)),e.setHours(0,0,0,0),e}n.r(t),n.d(t,"clearTime",(function(){return o}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=16)}({16:function(e,t,o){"use strict";o.r(t);var n=o(4);o.d(t,"CookieStorage",(function(){return n.a}))},4:function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));var n=function(){function e(){}return Object.defineProperty(e.prototype,"length",{get:function(){return this.keys().length},enumerable:!1,configurable:!0}),e.prototype.getItem=function(e){return e&&decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},e.prototype.setItem=function(e,t,o){if(void 0===o&&(o={}),!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var n="",r="";return o&&(o.expires&&o.expires instanceof Date&&(n="; Expires="+o.expires.toUTCString()),o.maxAge&&"number"==typeof o.maxAge&&o.maxAge!==1/0&&(r="; Max-age="+o.maxAge)),document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+n+r,this.hasItem(e)},e.prototype.removeItem=function(e){return this.hasItem(e)&&(document.cookie=encodeURIComponent(e)+"=; max-age=-1"),!this.hasItem(e)},e.prototype.hasItem=function(e){return!(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},e.prototype.clear=function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var o=e[t],n=o.indexOf("="),r=n>-1?o.substr(0,n):o,u=n>-1?o.substr(n+1,o.length):"";document.cookie=r+(u?"=":"")+"; max-age=-1"}},e.prototype.keys=function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=e.length,o=0;o<t;o++)e[o]=decodeURIComponent(e[o]);return e},e.prototype.key=function(e){return this.keys()[e]},e}()}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=15)}({15:function(e,t,o){"use strict";o.r(t);var n=o(3);o.d(t,"CookieStorage",(function(){return n.a}))},3:function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));var n=function(){function e(){}return Object.defineProperty(e.prototype,"length",{get:function(){return this.keys().length},enumerable:!1,configurable:!0}),e.prototype.getItem=function(e){return e&&decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},e.prototype.setItem=function(e,t,o){if(void 0===o&&(o={}),!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var n="",r="";return o&&(o.expires&&o.expires instanceof Date&&(n="; Expires="+o.expires.toUTCString()),o.maxAge&&"number"==typeof o.maxAge&&o.maxAge!==1/0&&(r="; Max-age="+o.maxAge)),document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+n+r,this.hasItem(e)},e.prototype.removeItem=function(e){return this.hasItem(e)&&(document.cookie=encodeURIComponent(e)+"=; max-age=-1"),!this.hasItem(e)},e.prototype.hasItem=function(e){return!(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},e.prototype.clear=function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var o=e[t],n=o.indexOf("="),r=n>-1?o.substr(0,n):o,u=n>-1?o.substr(n+1,o.length):"";document.cookie=r+(u?"=":"")+"; max-age=-1"}},e.prototype.keys=function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=e.length,o=0;o<t;o++)e[o]=decodeURIComponent(e[o]);return e},e.prototype.key=function(e){return this.keys()[e]},e}()}})})); |
@@ -1,2 +0,1 @@ | ||
import moment from "moment"; | ||
/** | ||
@@ -6,5 +5,5 @@ * Compare and returns the dirrence between two dates | ||
* @param {Date} secondDate { date } second date to compare against | ||
* @param {moment.DurationInputArg2} range {moment.DurationInputArg2} the range example , months , seconds, h, m, y etc | ||
* @returns {number} The difference based on the range type | ||
* @param {any} range DEPRACATED (This argument is depracated) | ||
* @returns {number} The difference in days | ||
*/ | ||
export declare function dateDiff(firstDate: Date, secondDate: Date, range: moment.DurationInputArg2): number; | ||
export declare function dateDiff(firstDate: Date, secondDate: Date, range?: any): number; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment")):"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t(require("moment")):e["@sebgroup/frontend-tools"]=t(e[void 0])}(window,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=36)}({0:function(t,r){t.exports=e},36:function(e,t,r){"use strict";r.r(t),r.d(t,"dateDiff",(function(){return u}));var n=r(0),o=r.n(n);function u(e,t,r){if(!o()(e).isValid()||!o()(t).isValid())throw new Error("from parameter must be of date type");return o.a.utc(e).diff(t,r)}}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=31)}({0:function(e,t,n){"use strict";function r(e){return!(!(e&&e instanceof Date)||isNaN(e.getTime()))}n.d(t,"a",(function(){return r}))},31:function(e,t,n){"use strict";n.r(t),n.d(t,"dateDiff",(function(){return o}));var r=n(0);function o(e,t,n){if(n&&console.warn('The range argument has been depracated. The range "day" will be used instead. \nTo compare units less than day use firstDate.getTime() - secondDate.getTime() to get milliseconds'),!Object(r.a)(e)||!Object(r.a)(t))throw new Error("both parameters must be of type Date");return Math.ceil((t.getTime()-e.getTime())/1e3/60/60/24)}}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}({17:function(e,t,n){"use strict";n.r(t);var r=n(5);n.d(t,"deepCopy",(function(){return r.a}))},2:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var u=arguments[t],c=0,f=u.length;c<f;c++,o++)r[o]=u[c];return r}Object.create},5:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2);function o(e,t){if(void 0===t&&(t=new WeakMap),Object(e)!==e)return e;if(e instanceof Set)return new Set(e);if(t.has(e))return t.get(e);var n,u=Object.create(null);return e instanceof Date?u=new Date(e.getTime()):e instanceof RegExp?u=new RegExp(e.source,e.flags):e.constructor&&(u="symbol"==typeof(n=e)||"object"==typeof n&&"[object Symbol]"===Object.prototype.toString.call(n)?e:new e.constructor),t.set(e,u),e instanceof Map&&Array.from(e,(function(e){var n=e[0],r=e[1];return u.set(n,o(r,t))})),Object.assign.apply(Object,Object(r.b)([u],Object.keys(e).map((function(n){var r;return(r={})[n]=o(e[n],t),r}))))}}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}({1:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var u=arguments[t],c=0,f=u.length;c<f;c++,o++)r[o]=u[c];return r}Object.create},16:function(e,t,n){"use strict";n.r(t);var r=n(4);n.d(t,"deepCopy",(function(){return r.a}))},4:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(e,t){if(void 0===t&&(t=new WeakMap),Object(e)!==e)return e;if(e instanceof Set)return new Set(e);if(t.has(e))return t.get(e);var n,u=Object.create(null);return e instanceof Date?u=new Date(e.getTime()):e instanceof RegExp?u=new RegExp(e.source,e.flags):e.constructor&&(u="symbol"==typeof(n=e)||"object"==typeof n&&"[object Symbol]"===Object.prototype.toString.call(n)?e:new e.constructor),t.set(e,u),e instanceof Map&&Array.from(e,(function(e){var n=e[0],r=e[1];return u.set(n,o(r,t))})),Object.assign.apply(Object,Object(r.b)([u],Object.keys(e).map((function(n){var r;return(r={})[n]=o(e[n],t),r}))))}}})})); |
@@ -1,17 +0,8 @@ | ||
import { MomentFormatSpecification, LocaleSpecifier } from "moment"; | ||
export interface FormatDateOptions { | ||
inputFormat?: MomentFormatSpecification; | ||
locale?: LocaleSpecifier; | ||
} | ||
/** | ||
* Reformats any date string to any desired format | ||
* @param date The date string | ||
* @param outputFormat The desired output format | ||
* @param options input format and locale | ||
* @implements momentjs - refer to momentjs documentation to see the different formats supported | ||
* @note | ||
* Having an input format is critial to insure accuracy if you are not dealing with ISO date string. | ||
* Passing `01-10-2019` might be interpreted as `Jan 10` or `Oct 01` based on locale | ||
* @returns The formatted date string | ||
* Date formatter | ||
* @param date The date object or date string | ||
* @param format The output format | ||
* @param locale The locale. Default is `sv-SE` | ||
* @returns The formattted date or the input if it fails to parse it | ||
*/ | ||
export declare function formatDate(date: string | Date, outputFormat: string, options?: FormatDateOptions): string; | ||
export declare function formatDate(date: string | Date, format?: Intl.DateTimeFormatOptions, locale?: string): string; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment")):"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t(require("moment")):e["@sebgroup/frontend-tools"]=t(e[void 0])}(window,(function(e){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=39)}({0:function(t,n){t.exports=e},39:function(e,t,n){"use strict";n.r(t),n.d(t,"formatDate",(function(){return u}));var o=n(0),r=n.n(o);function u(e,t,n){if(e){var o=r()(e,(null==n?void 0:n.inputFormat)||null);if(o.isValid())return(null==n?void 0:n.locale)&&(o=o.locale(n.locale)),o.format(t).toString()}return null}}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=33)}({33:function(e,t,n){"use strict";function r(e,t,n){void 0===t&&(t={day:"numeric",month:"long",year:"numeric"}),void 0===n&&(n="sv-SE");var r=Date.parse(e);return isNaN(r)?String(e):Intl.DateTimeFormat(n,t).format(new Date(r))}n.r(t),n.d(t,"formatDate",(function(){return r}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment")):"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t(require("moment")):e["@sebgroup/frontend-tools"]=t(e[void 0])}(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=41)}({0:function(t,n){t.exports=e},1:function(e,t,n){"use strict";function r(e){return e instanceof Date||(e=new Date(e)),e.setHours(0,0,0,0),e}n.d(t,"a",(function(){return r}))},2:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)r[o]=a[i];return r}Object.create},3:function(e,t,n){"use strict";function r(e){return null==e||!(e instanceof Date)&&(!(e instanceof Function)&&(e instanceof Object&&!(e instanceof Array)?Object.keys(e).length<1:e.length<1))}n.d(t,"a",(function(){return r}))},41:function(e,t,n){"use strict";n.r(t),n.d(t,"FormValidator",(function(){return p}));var r=n(2),o=n(0),a=n.n(o),i=n(3),u=n(6),s=n(7),c=n(5),l=n(1),f=n(8),d=function(e,t){this.value=null,this.specs={},this.validations=[],this.name=e,this.value=t,this.specs={},this.validations=[]},p=function(){function e(e){if(this.formObject=new Map,this.formObjectErrors={},this.customValidators=[],!Object(i.a)(e)&&"object"==typeof e){var t=Object(c.a)(e);for(var n in this.originalFormObject=t,t)this.formObject.set(n,new d(n,t[n]))}}return e.prototype.addValidation=function(e,t,n){var o=this;return e&&e instanceof Array&&t&&"string"==typeof t&&this.isValidType(t)&&(e.length?e.map((function(e){o.formObject.has(e)&&(o.formObject.get(e).validations.push(t),Object(i.a)(n)||(o.formObject.get(e).specs=Object(r.a)(Object(r.a)({},o.formObject.get(e).specs),n)))})):this.formObject.forEach((function(e){e.validations.push(t),Object(i.a)(n)||(e.specs=Object(r.a)(Object(r.a)({},e.specs),n))}))),this},e.prototype.addCustomValidation=function(e,t){return e&&e instanceof Array&&e.length&&t&&t instanceof Function&&this.customValidators.push({errorFields:e,validator:t}),this},e.prototype.getErrors=function(){return this.formObjectErrors},e.prototype.getError=function(e){return this.formObjectErrors[e]},e.prototype.validate=function(){var e=this;return this.formObject.forEach((function(t){if(t.validations.length){var n=void 0,r=0;do{n=e.validateField(t.value,t.validations[r],t.specs),Object(i.a)(n)||(e.formObjectErrors[t.name]=n),r++}while(r<t.validations.length&&!n)}})),this.customValidators.length&&this.customValidators.map((function(t){var n=t.validator(e.originalFormObject);t.errorFields.map((function(t){e.formObject.has(t)&&!e.getError(t)&&n&&(e.formObjectErrors[t]=n)}))})),this},e.prototype.validateField=function(e,t,n){var r=null;if(Object(i.a)(e)&&"required"!==t)return null;switch(t){case"required":return Object(i.a)(e)?{errorCode:"empty"}:null;case"isDate":return e instanceof Date?null:{errorCode:"invalidDate"};case"dateRange":var o=a()(e);return o.isValid()?(n.minDate&&(r=a()(Object(l.a)(o.toDate())).isBefore(Object(l.a)(n.minDate))?{errorCode:"beforeMinDate",specs:{minDate:n.minDate}}:null),!r&&n.maxDate&&(r=a()(Object(l.a)(o.toDate())).isAfter(Object(l.a)(n.maxDate))?{errorCode:"afterMaxDate",specs:{maxDate:n.maxDate}}:null),r):null;case"textLength":return"string"==typeof e?(n.minLength&&(r=e.length<n.minLength?{errorCode:"lessThanMinLength",specs:{minLength:n.minLength}}:null),!r&&n.maxLength&&(r=e.length>n.maxLength?{errorCode:"moreThanMaxLength",specs:{maxLength:n.maxLength}}:null),r):null;case"valueRange":return"number"==typeof e?(n.minValue&&(r=e<n.minValue?{errorCode:"lessThanMinValue",specs:{minValue:n.minValue}}:null),!r&&n.maxValue&&(r=e>n.maxValue?{errorCode:"moreThanMaxValue",specs:{maxValue:n.maxValue}}:null),r):null;case"validEmail":return Object(s.a)(e)?null:{errorCode:"invalidEmail"};case"strongPassword":return Object(f.a)(e)?null:{errorCode:"weakPassword"};case"isPhoneNumber":return Object(u.a)(e)?null:{errorCode:"invalidPhoneNumber"}}},e.prototype.isValidType=function(e){return{required:!0,isDate:!0,dateRange:!0,textLength:!0,valueRange:!0,validEmail:!0,strongPassword:!0,isPhoneNumber:!0}.hasOwnProperty(e)},e}()},5:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2);function o(e,t){if(void 0===t&&(t=new WeakMap),Object(e)!==e)return e;if(e instanceof Set)return new Set(e);if(t.has(e))return t.get(e);var n,a=Object.create(null);return e instanceof Date?a=new Date(e.getTime()):e instanceof RegExp?a=new RegExp(e.source,e.flags):e.constructor&&(a="symbol"==typeof(n=e)||"object"==typeof n&&"[object Symbol]"===Object.prototype.toString.call(n)?e:new e.constructor),t.set(e,a),e instanceof Map&&Array.from(e,(function(e){var n=e[0],r=e[1];return a.set(n,o(r,t))})),Object.assign.apply(Object,Object(r.b)([a],Object.keys(e).map((function(n){var r;return(r={})[n]=o(e[n],t),r}))))}},6:function(e,t,n){"use strict";function r(e){return new RegExp(/^[0-9]{4,15}$/g).test(String(e))}n.d(t,"a",(function(){return r}))},7:function(e,t,n){"use strict";function r(e){return new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(e)}n.d(t,"a",(function(){return r}))},8:function(e,t,n){"use strict";function r(e){return/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-_]).{8,}$/.test(e)}n.d(t,"a",(function(){return r}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([function(e,t,n){"use strict";function r(e){return!(!(e&&e instanceof Date)||isNaN(e.getTime()))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)r[o]=a[i];return r}Object.create},function(e,t,n){"use strict";function r(e){return null==e||!(e instanceof Date)&&(!(e instanceof Function)&&(e instanceof Object&&!(e instanceof Array)?Object.keys(e).length<1:e.length<1))}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(e,t){if(void 0===t&&(t=new WeakMap),Object(e)!==e)return e;if(e instanceof Set)return new Set(e);if(t.has(e))return t.get(e);var n,a=Object.create(null);return e instanceof Date?a=new Date(e.getTime()):e instanceof RegExp?a=new RegExp(e.source,e.flags):e.constructor&&(a="symbol"==typeof(n=e)||"object"==typeof n&&"[object Symbol]"===Object.prototype.toString.call(n)?e:new e.constructor),t.set(e,a),e instanceof Map&&Array.from(e,(function(e){var n=e[0],r=e[1];return a.set(n,o(r,t))})),Object.assign.apply(Object,Object(r.b)([a],Object.keys(e).map((function(n){var r;return(r={})[n]=o(e[n],t),r}))))}},function(e,t,n){"use strict";function r(e){return new RegExp(/^[0-9]{4,15}$/g).test(String(e))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-_]).{8,}$/.test(e)}n.d(t,"a",(function(){return r}))},,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"isDateAfter",(function(){return o}));var r=n(0);function o(e,t){return Object(r.a)(e)&&Object(r.a)(t)?e.getFullYear()>t.getFullYear()||e.getMonth()>t.getMonth()||e.getDate()>t.getDate():e>t}},,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"FormValidator",(function(){return d}));var r=n(1),o=n(2),a=n(5),i=n(6),u=n(4),s=n(7),c=n(0);var l=n(14),f=function(e,t){this.value=null,this.specs={},this.validations=[],this.name=e,this.value=t,this.specs={},this.validations=[]},d=function(){function e(e){if(this.formObject=new Map,this.formObjectErrors={},this.customValidators=[],!Object(o.a)(e)&&"object"==typeof e){var t=Object(u.a)(e);for(var n in this.originalFormObject=t,t)this.formObject.set(n,new f(n,t[n]))}}return e.prototype.addValidation=function(e,t,n){var a=this;return e&&e instanceof Array&&t&&"string"==typeof t&&this.isValidType(t)&&(e.length?e.map((function(e){a.formObject.has(e)&&(a.formObject.get(e).validations.push(t),Object(o.a)(n)||(a.formObject.get(e).specs=Object(r.a)(Object(r.a)({},a.formObject.get(e).specs),n)))})):this.formObject.forEach((function(e){e.validations.push(t),Object(o.a)(n)||(e.specs=Object(r.a)(Object(r.a)({},e.specs),n))}))),this},e.prototype.addCustomValidation=function(e,t){return e&&e instanceof Array&&e.length&&t&&t instanceof Function&&this.customValidators.push({errorFields:e,validator:t}),this},e.prototype.getErrors=function(){return this.formObjectErrors},e.prototype.getError=function(e){return this.formObjectErrors[e]},e.prototype.validate=function(){var e=this;return this.formObject.forEach((function(t){if(t.validations.length){var n=void 0,r=0;do{n=e.validateField(t.value,t.validations[r],t.specs),Object(o.a)(n)||(e.formObjectErrors[t.name]=n),r++}while(r<t.validations.length&&!n)}})),this.customValidators.length&&this.customValidators.map((function(t){var n=t.validator(e.originalFormObject);t.errorFields.map((function(t){e.formObject.has(t)&&!e.getError(t)&&n&&(e.formObjectErrors[t]=n)}))})),this},e.prototype.validateField=function(e,t,n){var r=null,u=new Date(e),f=Object(o.a)(e);if(f&&"required"!==t)return null;var d,p,b=Object(c.a)(u);switch(t){case"required":return f?{errorCode:"empty"}:null;case"isDate":return b?null:{errorCode:"invalidDate"};case"dateRange":return b?(n.minDate&&(d=u,p=n.minDate,r=(Object(c.a)(d)&&Object(c.a)(p)?d.getFullYear()<p.getFullYear()||d.getMonth()<p.getMonth()||d.getDate()<p.getDate():d<p)?{errorCode:"beforeMinDate",specs:{minDate:n.minDate}}:null),!r&&n.maxDate&&(r=Object(l.isDateAfter)(u,n.maxDate)?{errorCode:"afterMaxDate",specs:{maxDate:n.maxDate}}:null),r):null;case"textLength":return"string"==typeof e?(n.minLength&&(r=e.length<n.minLength?{errorCode:"lessThanMinLength",specs:{minLength:n.minLength}}:null),!r&&n.maxLength&&(r=e.length>n.maxLength?{errorCode:"moreThanMaxLength",specs:{maxLength:n.maxLength}}:null),r):null;case"valueRange":return"number"==typeof e?(n.minValue&&(r=e<n.minValue?{errorCode:"lessThanMinValue",specs:{minValue:n.minValue}}:null),!r&&n.maxValue&&(r=e>n.maxValue?{errorCode:"moreThanMaxValue",specs:{maxValue:n.maxValue}}:null),r):null;case"validEmail":return Object(i.a)(e)?null:{errorCode:"invalidEmail"};case"strongPassword":return Object(s.a)(e)?null:{errorCode:"weakPassword"};case"isPhoneNumber":return Object(a.a)(e)?null:{errorCode:"invalidPhoneNumber"}}},e.prototype.isValidType=function(e){return{required:!0,isDate:!0,dateRange:!0,textLength:!0,valueRange:!0,validEmail:!0,strongPassword:!0,isPhoneNumber:!0}.hasOwnProperty(e)},e}()}])})); |
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],n):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=n():t["@sebgroup/frontend-tools"]=n()}(window,(function(){return function(t){var n={};function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(o,r,function(n){return t[n]}.bind(null,r));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=45)}({10:function(t,n,e){"use strict";function o(){return!!window.InstallTrigger}e.d(n,"a",(function(){return o}))},11:function(t,n,e){"use strict";function o(){return/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||void 0!==window.safari&&window.safari.pushNotification).toString()}e.d(n,"a",(function(){return o}))},12:function(t,n,e){"use strict";function o(){return!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime)}e.d(n,"a",(function(){return o}))},13:function(t,n,e){"use strict";function o(){return!!document.documentMode}e.d(n,"a",(function(){return o}))},14:function(t,n,e){"use strict";function o(){return!window.isIE&&!!window.StyleMedia}e.d(n,"a",(function(){return o}))},45:function(t,n,e){"use strict";e.r(n),e.d(n,"getBrowserName",(function(){return d}));var o=e(9),r=e(10),i=e(11),u=e(12),c=e(13),f=e(14);function d(){return Object(o.a)()?"Opera":Object(r.a)()?"Firefox":Object(i.a)()?"Safari":Object(c.a)()?"IE":Object(f.a)()?"Edge":Object(u.a)()?"Chrome":""}},9:function(t,n,e){"use strict";function o(){return!!window.opr&&!!window.opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0}e.d(n,"a",(function(){return o}))}})})); | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],n):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=n():t["@sebgroup/frontend-tools"]=n()}(window,(function(){return function(t){var n={};function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(o,r,function(n){return t[n]}.bind(null,r));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=36)}({10:function(t,n,e){"use strict";function o(){return/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||void 0!==window.safari&&window.safari.pushNotification).toString()}e.d(n,"a",(function(){return o}))},11:function(t,n,e){"use strict";function o(){return!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime)}e.d(n,"a",(function(){return o}))},12:function(t,n,e){"use strict";function o(){return!!document.documentMode}e.d(n,"a",(function(){return o}))},13:function(t,n,e){"use strict";function o(){return!window.isIE&&!!window.StyleMedia}e.d(n,"a",(function(){return o}))},36:function(t,n,e){"use strict";e.r(n),e.d(n,"getBrowserName",(function(){return d}));var o=e(8),r=e(9),i=e(10),u=e(11),c=e(12),f=e(13);function d(){return Object(o.a)()?"Opera":Object(r.a)()?"Firefox":Object(i.a)()?"Safari":Object(c.a)()?"IE":Object(f.a)()?"Edge":Object(u.a)()?"Chrome":""}},8:function(t,n,e){"use strict";function o(){return!!window.opr&&!!window.opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0}e.d(n,"a",(function(){return o}))},9:function(t,n,e){"use strict";function o(){return!!window.InstallTrigger}e.d(n,"a",(function(){return o}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=47)}({47:function(e,t,r){"use strict";function n(){var e,t=navigator.userAgent,r=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(r[1])?+((e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||0):"Chrome"===r[1]&&null!=(e=t.match(/\bOPR|Edge\/(\d+)/))?+e[1]||0:(r=r[2]?[r[1],r[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&r.splice(1,1,e[1]),+r[1]||0)}r.r(t),r.d(t,"getBrowserVersion",(function(){return n}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=28)}({28:function(e,t,r){"use strict";function n(){var e,t=navigator.userAgent,r=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(r[1])?+((e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||0):"Chrome"===r[1]&&null!=(e=t.match(/\bOPR|Edge\/(\d+)/))?+e[1]||0:(r=r[2]?[r[1],r[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&r.splice(1,1,e[1]),+r[1]||0)}r.r(t),r.d(t,"getBrowserVersion",(function(){return n}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}({12:function(e,t,n){"use strict";function r(){return!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime)}n.d(t,"a",(function(){return r}))},18:function(e,t,n){"use strict";n.r(t);var r=n(12);n.d(t,"isBrowserChrome",(function(){return r.a}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}({11:function(e,t,n){"use strict";function r(){return!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime)}n.d(t,"a",(function(){return r}))},17:function(e,t,n){"use strict";n.r(t);var r=n(11);n.d(t,"isBrowserChrome",(function(){return r.a}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}({14:function(e,t,n){"use strict";function r(){return!window.isIE&&!!window.StyleMedia}n.d(t,"a",(function(){return r}))},19:function(e,t,n){"use strict";n.r(t);var r=n(14);n.d(t,"isBrowserEdge",(function(){return r.a}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}({13:function(e,t,n){"use strict";function r(){return!window.isIE&&!!window.StyleMedia}n.d(t,"a",(function(){return r}))},18:function(e,t,n){"use strict";n.r(t);var r=n(13);n.d(t,"isBrowserEdge",(function(){return r.a}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}({10:function(e,t,n){"use strict";function r(){return!!window.InstallTrigger}n.d(t,"a",(function(){return r}))},20:function(e,t,n){"use strict";n.r(t);var r=n(10);n.d(t,"isBrowserFirefox",(function(){return r.a}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}({19:function(e,t,n){"use strict";n.r(t);var r=n(9);n.d(t,"isBrowserFirefox",(function(){return r.a}))},9:function(e,t,n){"use strict";function r(){return!!window.InstallTrigger}n.d(t,"a",(function(){return r}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=21)}({13:function(e,t,n){"use strict";function o(){return!!document.documentMode}n.d(t,"a",(function(){return o}))},21:function(e,t,n){"use strict";n.r(t);var o=n(13);n.d(t,"isBrowserIE",(function(){return o.a}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}({12:function(e,t,n){"use strict";function o(){return!!document.documentMode}n.d(t,"a",(function(){return o}))},20:function(e,t,n){"use strict";n.r(t);var o=n(12);n.d(t,"isBrowserIE",(function(){return o.a}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=22)}({22:function(e,t,n){"use strict";n.r(t);var r=n(9);n.d(t,"isBrowserOpera",(function(){return r.a}))},9:function(e,t,n){"use strict";function r(){return!!window.opr&&!!window.opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0}n.d(t,"a",(function(){return r}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=21)}({21:function(e,t,n){"use strict";n.r(t);var r=n(8);n.d(t,"isBrowserOpera",(function(){return r.a}))},8:function(e,t,n){"use strict";function r(){return!!window.opr&&!!window.opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0}n.d(t,"a",(function(){return r}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=23)}({11:function(e,t,n){"use strict";function o(){return/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||void 0!==window.safari&&window.safari.pushNotification).toString()}n.d(t,"a",(function(){return o}))},23:function(e,t,n){"use strict";n.r(t);var o=n(11);n.d(t,"isBrowserSafari",(function(){return o.a}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=22)}({10:function(e,t,n){"use strict";function o(){return/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||void 0!==window.safari&&window.safari.pushNotification).toString()}n.d(t,"a",(function(){return o}))},22:function(e,t,n){"use strict";n.r(t);var o=n(10);n.d(t,"isBrowserSafari",(function(){return o.a}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment")):"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t(require("moment")):e["@sebgroup/frontend-tools"]=t(e[void 0])}(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=46)}({0:function(t,n){t.exports=e},1:function(e,t,n){"use strict";function r(e){return e instanceof Date||(e=new Date(e)),e.setHours(0,0,0,0),e}n.d(t,"a",(function(){return r}))},46:function(e,t,n){"use strict";n.r(t),n.d(t,"isDateAfter",(function(){return f}));var r=n(0),o=n.n(r),u=n(1);function f(e,t){return o()(Object(u.a)(e)).isAfter(o()(Object(u.a)(t)))}}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}({0:function(e,t,n){"use strict";function r(e){return!(!(e&&e instanceof Date)||isNaN(e.getTime()))}n.d(t,"a",(function(){return r}))},14:function(e,t,n){"use strict";n.r(t),n.d(t,"isDateAfter",(function(){return o}));var r=n(0);function o(e,t){return Object(r.a)(e)&&Object(r.a)(t)?e.getFullYear()>t.getFullYear()||e.getMonth()>t.getMonth()||e.getDate()>t.getDate():e>t}}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=24)}({24:function(e,t,n){"use strict";n.r(t);var r=n(7);n.d(t,"isEmail",(function(){return r.a}))},7:function(e,t,n){"use strict";function r(e){return new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(e)}n.d(t,"a",(function(){return r}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=23)}({23:function(e,t,n){"use strict";n.r(t);var r=n(6);n.d(t,"isEmail",(function(){return r.a}))},6:function(e,t,n){"use strict";function r(e){return new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(e)}n.d(t,"a",(function(){return r}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=25)}({25:function(e,t,n){"use strict";n.r(t);var o=n(3);n.d(t,"isEmpty",(function(){return o.a}))},3:function(e,t,n){"use strict";function o(e){return null==e||!(e instanceof Date)&&(!(e instanceof Function)&&(e instanceof Object&&!(e instanceof Array)?Object.keys(e).length<1:e.length<1))}n.d(t,"a",(function(){return o}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=24)}({2:function(e,t,n){"use strict";function o(e){return null==e||!(e instanceof Date)&&(!(e instanceof Function)&&(e instanceof Object&&!(e instanceof Array)?Object.keys(e).length<1:e.length<1))}n.d(t,"a",(function(){return o}))},24:function(e,t,n){"use strict";n.r(t);var o=n(2);n.d(t,"isEmpty",(function(){return o.a}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=26)}({26:function(e,t,n){"use strict";n.r(t);var r=n(6);n.d(t,"isPhoneNumber",(function(){return r.a}))},6:function(e,t,n){"use strict";function r(e){return new RegExp(/^[0-9]{4,15}$/g).test(String(e))}n.d(t,"a",(function(){return r}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=25)}({25:function(e,t,n){"use strict";n.r(t);var r=n(5);n.d(t,"isPhoneNumber",(function(){return r.a}))},5:function(e,t,n){"use strict";function r(e){return new RegExp(/^[0-9]{4,15}$/g).test(String(e))}n.d(t,"a",(function(){return r}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=44)}({44:function(e,t,n){"use strict";function r(e){return e!==Object(e)}n.r(t),n.d(t,"isPrimitive",(function(){return r}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=39)}({39:function(e,t,n){"use strict";function r(e){return e!==Object(e)}n.r(t),n.d(t,"isPrimitive",(function(){return r}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment")):"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t(require("moment")):e["@sebgroup/frontend-tools"]=t(e[void 0])}(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=43)}({0:function(t,n){t.exports=e},1:function(e,t,n){"use strict";function r(e){return e instanceof Date||(e=new Date(e)),e.setHours(0,0,0,0),e}n.d(t,"a",(function(){return r}))},43:function(e,t,n){"use strict";n.r(t),n.d(t,"isSameDate",(function(){return i}));var r=n(0),o=n.n(r),u=n(1);function i(e,t){return o()(Object(u.a)(e)).isSame(o()(Object(u.a)(t)))}}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=40)}({0:function(e,t,n){"use strict";function o(e){return!(!(e&&e instanceof Date)||isNaN(e.getTime()))}n.d(t,"a",(function(){return o}))},40:function(e,t,n){"use strict";n.r(t),n.d(t,"isSameDate",(function(){return r}));var o=n(0);function r(e,t){return!(!Object(o.a)(e)||!Object(o.a)(t))&&e.toLocaleDateString()===t.toLocaleDateString()}}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=42)}({42:function(e,t,n){"use strict";function r(e,t,n){if(n){var r=Object.keys(e),o=Object.keys(t);if(r.length===o.length){for(var u=0;u<r.length;u++)if(e[r[u]]!==t[o[u]])return!1;return!0}return!1}return JSON.stringify(e)===JSON.stringify(t)}n.r(t),n.d(t,"isSameObject",(function(){return r}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=41)}({41:function(e,t,n){"use strict";function r(e,t,n){if(n){var r=Object.keys(e),o=Object.keys(t);if(r.length===o.length){for(var u=0;u<r.length;u++)if(e[r[u]]!==t[o[u]])return!1;return!0}return!1}return JSON.stringify(e)===JSON.stringify(t)}n.r(t),n.d(t,"isSameObject",(function(){return r}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}({27:function(e,t,n){"use strict";n.r(t);var r=n(8);n.d(t,"isStrongPassword",(function(){return r.a}))},8:function(e,t,n){"use strict";function r(e){return/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-_]).{8,}$/.test(e)}n.d(t,"a",(function(){return r}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=26)}({26:function(e,t,n){"use strict";n.r(t);var r=n(7);n.d(t,"isStrongPassword",(function(){return r.a}))},7:function(e,t,n){"use strict";function r(e){return/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-_]).{8,}$/.test(e)}n.d(t,"a",(function(){return r}))}})})); |
@@ -1,10 +0,10 @@ | ||
import moment from "moment"; | ||
/** The current supported ranges of modifying a date */ | ||
export declare type ModifyDateRange = "month" | "day" | "year" | "hours" | "seconds"; | ||
/** | ||
* Modifies a date by either adding or substracting a certain range | ||
* @param {Date} from {date} the starting date | ||
* @param {number} value {number} the value you want added or substractedf | ||
* @param {number} value {number} the value (amount) you want added or substracted | ||
* @param {"ADD" | "SUBTRACT"} type {ADD | SUBSTRACT} the operation type | ||
* @param {moment.DurationInputArg2} range {moment.DurationInputArg2} the range example , months , seconds, h, m, y etc | ||
* @returns {string} The modified date | ||
* @param {"month" | "day" | "year" | "hours" | "seconds"} range the name of the range to modify, example: "month" | ||
*/ | ||
export declare function modifyDate(from: Date, value: number, type: "ADD" | "SUBTRACT", range: moment.DurationInputArg2): Date; | ||
export declare function modifyDate(from: Date, value: number, type: "ADD" | "SUBTRACT", range: ModifyDateRange): Date; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment")):"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t(require("moment")):e["@sebgroup/frontend-tools"]=t(e[void 0])}(window,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=40)}({0:function(t,r){t.exports=e},40:function(e,t,r){"use strict";r.r(t),r.d(t,"modifyDate",(function(){return u}));var n=r(0),o=r.n(n);function u(e,t,r,n){switch(o()(e).isValid()||(e=o()().toDate()),r){case"ADD":return o()(e).add(t,n).toDate();case"SUBTRACT":return o()(e).subtract(t,n).toDate();default:return o()().toDate()}}}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=42)}({42:function(e,t,r){"use strict";function n(e,t,r,n){if(!e)return new Date;if(e instanceof Date){var o=new Date(e),u=n;"day"===n?u="date":"year"===n&&(u="fullYear");var a="get"+(u=u.charAt(0).toUpperCase()+u.substr(1,u.length-1)),f=e[a]?e[a]():null;null===f&&console.warn('Date getAccessor "'+a+'" from range '+n+' does not seem to exist. Provide a valid range as: "month" | "day" | "year" | "hours" | "seconds"');var i=void 0;switch(r){case"ADD":i=f+t;break;case"SUBTRACT":i=f-t;break;default:return console.warn("value should be 'ADD' or 'SUBTRACT'"),new Date}return o["set"+u](i)}return new Date}r.r(t),r.d(t,"modifyDate",(function(){return n}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=28)}({28:function(e,t,n){"use strict";function r(e){return e+String(1e3*Math.random()+(new Date).getTime())}n.r(t),n.d(t,"randomId",(function(){return r}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=43)}({43:function(e,t,n){"use strict";function r(e){return e+String(1e3*Math.random()+(new Date).getTime())}n.r(t),n.d(t,"randomId",(function(){return r}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=37)}({37:function(e,t,n){"use strict";n.r(t),n.d(t,"StorageManagement",(function(){return r}));var o=n(4),r=function(){function e(e){switch(void 0===e&&(e="LOCAL"),e){case"LOCAL":this.handler=localStorage;break;case"SESSION":this.handler=sessionStorage;break;case"COOKIE":this.handler=new o.a;break;default:this.handler=localStorage}}return Object.defineProperty(e.prototype,"length",{get:function(){return this.keys().length},enumerable:!1,configurable:!0}),e.prototype.setItem=function(e,t){this.handler.setItem(e,t)},e.prototype.getItem=function(e){return this.handler.getItem(e)},e.prototype.removeItem=function(e){return!!this.handler.getItem(e)&&(this.handler.removeItem(e),!0)},e.prototype.clear=function(){this.handler.clear()},e.prototype.keys=function(){return this.handler.keys?this.handler.keys():Object.keys(this.handler)},e.prototype.key=function(e){return this.keys()[e]},e}()},4:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){function e(){}return Object.defineProperty(e.prototype,"length",{get:function(){return this.keys().length},enumerable:!1,configurable:!0}),e.prototype.getItem=function(e){return e&&decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},e.prototype.setItem=function(e,t,n){if(void 0===n&&(n={}),!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var o="",r="";return n&&(n.expires&&n.expires instanceof Date&&(o="; Expires="+n.expires.toUTCString()),n.maxAge&&"number"==typeof n.maxAge&&n.maxAge!==1/0&&(r="; Max-age="+n.maxAge)),document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+o+r,this.hasItem(e)},e.prototype.removeItem=function(e){return this.hasItem(e)&&(document.cookie=encodeURIComponent(e)+"=; max-age=-1"),!this.hasItem(e)},e.prototype.hasItem=function(e){return!(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},e.prototype.clear=function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var n=e[t],o=n.indexOf("="),r=o>-1?n.substr(0,o):n,i=o>-1?n.substr(o+1,n.length):"";document.cookie=r+(i?"=":"")+"; max-age=-1"}},e.prototype.keys=function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=e.length,n=0;n<t;n++)e[n]=decodeURIComponent(e[n]);return e},e.prototype.key=function(e){return this.keys()[e]},e}()}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=44)}({3:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){function e(){}return Object.defineProperty(e.prototype,"length",{get:function(){return this.keys().length},enumerable:!1,configurable:!0}),e.prototype.getItem=function(e){return e&&decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},e.prototype.setItem=function(e,t,n){if(void 0===n&&(n={}),!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var o="",r="";return n&&(n.expires&&n.expires instanceof Date&&(o="; Expires="+n.expires.toUTCString()),n.maxAge&&"number"==typeof n.maxAge&&n.maxAge!==1/0&&(r="; Max-age="+n.maxAge)),document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+o+r,this.hasItem(e)},e.prototype.removeItem=function(e){return this.hasItem(e)&&(document.cookie=encodeURIComponent(e)+"=; max-age=-1"),!this.hasItem(e)},e.prototype.hasItem=function(e){return!(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},e.prototype.clear=function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var n=e[t],o=n.indexOf("="),r=o>-1?n.substr(0,o):n,i=o>-1?n.substr(o+1,n.length):"";document.cookie=r+(i?"=":"")+"; max-age=-1"}},e.prototype.keys=function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=e.length,n=0;n<t;n++)e[n]=decodeURIComponent(e[n]);return e},e.prototype.key=function(e){return this.keys()[e]},e}()},44:function(e,t,n){"use strict";n.r(t),n.d(t,"StorageManagement",(function(){return r}));var o=n(3),r=function(){function e(e){switch(void 0===e&&(e="LOCAL"),e){case"LOCAL":this.handler=localStorage;break;case"SESSION":this.handler=sessionStorage;break;case"COOKIE":this.handler=new o.a;break;default:this.handler=localStorage}}return Object.defineProperty(e.prototype,"length",{get:function(){return this.keys().length},enumerable:!1,configurable:!0}),e.prototype.setItem=function(e,t){this.handler.setItem(e,t)},e.prototype.getItem=function(e){return this.handler.getItem(e)},e.prototype.removeItem=function(e){return!!this.handler.getItem(e)&&(this.handler.removeItem(e),!0)},e.prototype.clear=function(){this.handler.clear()},e.prototype.keys=function(){return this.handler.keys?this.handler.keys():Object.keys(this.handler)},e.prototype.key=function(e){return this.keys()[e]},e}()}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=35)}({35:function(e,t,r){"use strict";function n(e,t,r){if(void 0===r&&(r="@"),e&&"string"==typeof e)for(var n in t)e=e.replace(new RegExp(""+(Array.isArray(r)?r[0]||"@":r)+n+(Array.isArray(r)?r[1]||"@":r),"g"),String(t[n]));return e}r.r(t),r.d(t,"stringInsert",(function(){return n}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=45)}({45:function(e,t,r){"use strict";function n(e,t,r){if(void 0===r&&(r="@"),e&&"string"==typeof e)for(var n in t)e=e.replace(new RegExp(""+(Array.isArray(r)?r[0]||"@":r)+n+(Array.isArray(r)?r[1]||"@":r),"g"),String(t[n]));return e}r.r(t),r.d(t,"stringInsert",(function(){return n}))}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=34)}({34:function(e,t,o){"use strict";function n(e,t){void 0===t&&(t={});var o=function(e){var o,n;e-Math.floor(e)==0?o=e:(o=Math.floor(e),!1!==(null==t?void 0:t.showDecimals)&&(n=Number((e-Math.floor(e)).toFixed((null==t?void 0:t.numOfDecimals)||2).replace("0.",""))));var r=String(o).split(""),u=[];return r.map((function(e,o){(r.length-(o+1)||1)%3==0?(u.push(e),u.push((null==t?void 0:t.separator)||",")):u.push(e)})),u.join("")+(n?""+((null==t?void 0:t.decimalSymbol)||".")+n:"")};return"number"==typeof e?o(e):"string"!=typeof e||isNaN(Number(e))?"":o(Number(e))}o.r(t),o.d(t,"toCurrency",(function(){return n}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=46)}({46:function(e,t,o){"use strict";function n(e,t){void 0===t&&(t={});var o=function(e){var o,n;e-Math.floor(e)==0?o=e:(o=Math.floor(e),!1!==(null==t?void 0:t.showDecimals)&&(n=Number((e-Math.floor(e)).toFixed((null==t?void 0:t.numOfDecimals)||2).replace("0.",""))));var r=String(o).split(""),u=[];return r.map((function(e,o){(r.length-(o+1)||1)%3==0?(u.push(e),u.push((null==t?void 0:t.separator)||",")):u.push(e)})),u.join("")+(n?""+((null==t?void 0:t.decimalSymbol)||".")+n:"")};return"number"==typeof e?o(e):"string"!=typeof e||isNaN(Number(e))?"":o(Number(e))}o.r(t),o.d(t,"toCurrency",(function(){return n}))}})})); |
@@ -0,7 +1,9 @@ | ||
export declare type DateComponents = [number, number, number?, number?, number?, number?, number?]; | ||
/** | ||
* Retrives a date object based on a string date or date object | ||
* Retrives a date object based on various inputs | ||
* @param value The date value to use to retrive the date | ||
* @param inputFormat The format of the input, if it's a string and the format is known | ||
* @returns The date object | ||
*/ | ||
export declare function toDate(value: string | Date, inputFormat?: string): Date; | ||
export declare function toDate(value: Date | string | number | DateComponents | null | undefined, | ||
/** DEPRACATED! The input format has been depracated. The default javascript Date object string constructor will be used instead */ | ||
inputFormat?: any): Date | null; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment")):"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t(require("moment")):e["@sebgroup/frontend-tools"]=t(e[void 0])}(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=33)}({0:function(t,n){t.exports=e},33:function(e,t,n){"use strict";n.r(t),n.d(t,"toDate",(function(){return u}));var r=n(0),o=n.n(r);function u(e,t){if(void 0===t&&(t=null),e){var n=o()(e,t);if(n.isValid())return n.toDate()}return null}}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=35)}({0:function(e,t,n){"use strict";function r(e){return!(!(e&&e instanceof Date)||isNaN(e.getTime()))}n.d(t,"a",(function(){return r}))},1:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var u=arguments[t],a=0,c=u.length;a<c;a++,o++)r[o]=u[a];return r}Object.create},35:function(e,t,n){"use strict";n.r(t),n.d(t,"toDate",(function(){return u}));var r=n(1),o=n(0);function u(e,t){switch(t&&console.warn("The inputFormat has been depracated. The default javascript Date object string constructor will be used instead"),!0){case!e:return null;case e instanceof Date:return Object(o.a)(e)?e:null;case"string"==typeof e||"number"==typeof e:var n=new Date(e);return Object(o.a)(n)?n:null;case"object"==typeof e&&Array.isArray(e)&&e.length>1:n=new(Date.bind.apply(Date,Object(r.b)([void 0],e)));return Object(o.a)(n)?n:null;default:return null}}}})})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=31)}({31:function(e,t,o){"use strict";function n(e){var t="overflow-hidden",o=document.getElementsByTagName("body").item(0);void 0!==e?e&&!o.classList.contains(t)?o.classList.add(t):!e&&o.classList.contains(t)&&o.classList.remove(t):console.warn("updateHTMLBodyWhenModalToggles called with invalid toggle")}o.r(t),o.d(t,"toggleBodyOverflow",(function(){return n}))}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=32)}({32:function(e,t,o){"use strict";function n(e){var t="overflow-hidden",o=document.getElementsByTagName("body").item(0);void 0!==e?e&&!o.classList.contains(t)?o.classList.add(t):!e&&o.classList.contains(t)&&o.classList.remove(t):console.warn("updateHTMLBodyWhenModalToggles called with invalid toggle")}o.r(t),o.d(t,"toggleBodyOverflow",(function(){return n}))}})})); |
/** | ||
* Convert date object to local String | ||
* @param {Date} date The date object | ||
* @returns return new date string in the format `June 13, 2019` | ||
* @param {Array<string>} locales Optional array of locales (country codes) to use. | ||
* Locale will fallback to default system language if none provided. | ||
* @returns return new date string in the format `June 13, 2019` (for english locale) | ||
*/ | ||
export declare function toLocalDateString(date: Date): string; | ||
export declare function toLocalDateString(date: Date, locales?: Array<string>): string; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment")):"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t(require("moment")):e["@sebgroup/frontend-tools"]=t(e[void 0])}(window,(function(e){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=38)}({0:function(t,n){t.exports=e},38:function(e,t,n){"use strict";n.r(t),n.d(t,"toLocalDateString",(function(){return u}));var o=n(0),r=n.n(o);function u(e){return e&&e instanceof Date?r()(e).local().format("LL"):String(e)}}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@sebgroup/frontend-tools",[],t):"object"==typeof exports?exports["@sebgroup/frontend-tools"]=t():e["@sebgroup/frontend-tools"]=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=38)}({38:function(e,t,n){"use strict";function o(e,t){return e&&e instanceof Date&&e.toLocaleDateString?e.toLocaleDateString(t,{year:"numeric",month:"long",day:"numeric"}):String(e)}n.r(t),n.d(t,"toLocalDateString",(function(){return o}))}})})); |
{ | ||
"name": "@sebgroup/frontend-tools", | ||
"version": "1.7.5", | ||
"version": "1.8.0", | ||
"description": "A set of frontend tools", | ||
@@ -13,3 +13,4 @@ "scripts": { | ||
"build": "npm run clean && npm run lint && npm run test && npm run build:production", | ||
"test": "npm run clean:test && jest --forceExit --detectOpenHandles", | ||
"pretest": "npm run clean:test", | ||
"test": "cross-env NODE_ICU_DATA=node_modules/full-icu jest --forceExit --detectOpenHandles", | ||
"commit": "git-cz", | ||
@@ -42,8 +43,7 @@ "semantic-release": "semantic-release", | ||
"@openapitools/openapi-generator-cli": "^1.0.12-4.3.0", | ||
"commander": "^5.0.0", | ||
"moment": "^2.24.0" | ||
"commander": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^9.0.1", | ||
"@commitlint/config-conventional": "^8.3.4", | ||
"@commitlint/cli": "9.1.1", | ||
"@commitlint/config-conventional": "^9.1.2", | ||
"@semantic-release/changelog": "^5.0.1", | ||
@@ -55,6 +55,8 @@ "@types/jest": "^26.0.0", | ||
"copy-webpack-plugin": "^6.0.1", | ||
"cross-env": "^7.0.2", | ||
"cz-conventional-changelog": "^3.0.2", | ||
"dargs": "^7.0.0", | ||
"fibers": "^5.0.0", | ||
"husky": "^4.0.10", | ||
"full-icu": "^1.3.1", | ||
"husky": "^4.2.5", | ||
"jest": "^25.2.4", | ||
@@ -61,0 +63,0 @@ "jsdom": "^16.0.0", |
@@ -9,3 +9,3 @@ [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) | ||
A set of frontend utilities that can be used with any javascript application. It's lightweight and intuitive. The only dependency it has is for [momentjs](https://momentjs.com) when using any utility that deals with dates. | ||
A set of frontend utilities that can be used with any javascript application. It's lightweight and intuitive. | ||
@@ -12,0 +12,0 @@ ## **Installation** |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
939922
2
181
3459
1
28
- Removedmoment@^2.24.0
- Removedmoment@2.30.1(transitive)