Socket
Socket
Sign inDemoInstall

@blaze-react/range-filter

Package Overview
Dependencies
8
Maintainers
8
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.0-alpha.57 to 0.8.0-alpha.58

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [0.8.0-alpha.58](https://github.com/thebyte9/blaze-components-react/compare/v0.8.0-alpha.57...v0.8.0-alpha.58) (2021-11-29)
**Note:** Version bump only for package @blaze-react/range-filter
# [0.8.0-alpha.57](https://github.com/thebyte9/blaze-components-react/compare/v0.8.0-alpha.56...v0.8.0-alpha.57) (2021-11-29)

@@ -8,0 +16,0 @@

2

dist/main.js
/*! For license information please see main.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@blaze-react"]=e():t["@blaze-react"]=e()}(this,(function(){return function(){var t={360:function(){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,r=o(e);r;)r=o(e=r.ownerDocument);return e}(),e=[],r=null,n=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return r||(r=function(t,r){n=t&&r?l(t,r):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),r},s._resetCrossOriginUpdater=function(){r=null,n=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,r){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==r[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var r=e.defaultView;if(r&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,i=null,s=null;this.POLL_INTERVAL?i=r.setInterval(n,this.POLL_INTERVAL):(u(r,"resize",n,!0),u(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in r&&(s=new r.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(i&&t.clearInterval(i),a(t,"resize",n,!0)),a(e,"scroll",n,!0),s&&s.disconnect()}));var c=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=c){var f=o(e);f&&this._monitorIntersections(f.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var r=this._monitoringDocuments.indexOf(e);if(-1!=r){var n=this.root&&(this.root.ownerDocument||this.root)||t,i=this._observationTargets.some((function(t){var r=t.element.ownerDocument;if(r==e)return!0;for(;r&&r!=n;){var i=o(r);if((r=i&&i.ownerDocument)==e)return!0}return!1}));if(!i){var s=this._monitoringUnsubscribes[r];if(this._monitoringDocuments.splice(r,1),this._monitoringUnsubscribes.splice(r,1),s(),e!=n){var u=o(e);u&&this._unmonitorIntersections(u.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!r||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(n){var o=n.element,s=c(o),u=this._rootContainsTarget(o),a=n.entry,f=t&&u&&this._computeTargetAndRootIntersection(o,s,e),l=null;this._rootContainsTarget(o)?r&&!this.root||(l=e):l={top:0,bottom:0,left:0,right:0,width:0,height:0};var h=n.entry=new i({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:s,rootBounds:l,intersectionRect:f});a?t&&u?this._hasCrossedThreshold(a,h)&&this._queuedEntries.push(h):a&&a.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,o,i){if("none"!=window.getComputedStyle(e).display){for(var s,u,a,f,h,d,v,m,y=o,g=p(e),b=!1;!b&&g;){var _=null,w=1==g.nodeType?window.getComputedStyle(g):{};if("none"==w.display)return null;if(g==this.root||9==g.nodeType)if(b=!0,g==this.root||g==t)r&&!this.root?!n||0==n.width&&0==n.height?(g=null,_=null,y=null):_=n:_=i;else{var O=p(g),E=O&&c(O),j=O&&this._computeTargetAndRootIntersection(O,E,i);E&&j?(g=O,_=l(E,j)):(g=null,y=null)}else{var x=g.ownerDocument;g!=x.body&&g!=x.documentElement&&"visible"!=w.overflow&&(_=c(g))}if(_&&(s=_,u=y,void 0,void 0,void 0,void 0,void 0,void 0,a=Math.max(s.top,u.top),f=Math.min(s.bottom,u.bottom),h=Math.max(s.left,u.left),m=f-a,y=(v=(d=Math.min(s.right,u.right))-h)>=0&&m>=0&&{top:a,bottom:f,left:h,right:d,width:v,height:m}||null),!y)break;g=g&&p(g)}return y}},s.prototype._getRootRect=function(){var e;if(this.root&&!d(this.root))e=c(this.root);else{var r=d(this.root)?this.root:t,n=r.documentElement,o=r.body;e={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,r){return"px"==e.unit?e.value:e.value*(r%2?t.width:t.height)/100})),r={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},s.prototype._hasCrossedThreshold=function(t,e){var r=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(r!==n)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==r||i==n||i<r!=i<n)return!0}},s.prototype._rootIsInDom=function(){return!this.root||h(t,this.root)},s.prototype._rootContainsTarget=function(e){var r=this.root&&(this.root.ownerDocument||this.root)||t;return h(r,e)&&(!this.root||r==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=i}function o(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function i(t){this.time=t.time,this.target=t.target,this.rootBounds=f(t.rootBounds),this.boundingClientRect=f(t.boundingClientRect),this.intersectionRect=f(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,r=e.width*e.height,n=this.intersectionRect,o=n.width*n.height;this.intersectionRatio=r?Number((o/r).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var r,n,o,i=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType&&9!=i.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(r=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){r(),o=null}),n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function u(t,e,r,n){"function"==typeof t.addEventListener?t.addEventListener(e,r,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,r)}function a(t,e,r,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,r,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,r)}function c(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function l(t,e){var r=e.top-t.top,n=e.left-t.left;return{top:r,left:n,height:e.height,width:e.width,bottom:r+e.height,right:n+e.width}}function h(t,e){for(var r=e;r;){if(r==t)return!0;r=p(r)}return!1}function p(e){var r=e.parentNode;return 9==e.nodeType&&e!=t?o(e):(r&&r.assignedSlot&&(r=r.assignedSlot.parentNode),r&&11==r.nodeType&&r.host?r.host:r)}function d(t){return t&&9===t.nodeType}}()},320:function(t){"use strict";var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var s,u,a=o(t),c=1;c<arguments.length;c++){for(var f in s=Object(arguments[c]))r.call(s,f)&&(a[f]=s[f]);if(e){u=e(s);for(var l=0;l<u.length;l++)n.call(s,u[l])&&(a[u[l]]=s[u[l]])}}return a}},837:function(t,e,r){"use strict";r(320);var n=r(784),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,a={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,r){var n,i={},c=null,f=null;for(n in void 0!==r&&(c=""+r),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(f=e.ref),e)u.call(e,n)&&!a.hasOwnProperty(n)&&(i[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===i[n]&&(i[n]=e[n]);return{$$typeof:o,type:t,key:c,ref:f,props:i,_owner:s.current}}e.jsx=c,e.jsxs=c},426:function(t,e,r){"use strict";var n=r(320),o=60103,i=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var s=60109,u=60110,a=60112;e.Suspense=60113;var c=60115,f=60116;if("function"==typeof Symbol&&Symbol.for){var l=Symbol.for;o=l("react.element"),i=l("react.portal"),e.Fragment=l("react.fragment"),e.StrictMode=l("react.strict_mode"),e.Profiler=l("react.profiler"),s=l("react.provider"),u=l("react.context"),a=l("react.forward_ref"),e.Suspense=l("react.suspense"),c=l("react.memo"),f=l("react.lazy")}var h="function"==typeof Symbol&&Symbol.iterator;function p(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function m(t,e,r){this.props=t,this.context=e,this.refs=v,this.updater=r||d}function y(){}function g(t,e,r){this.props=t,this.context=e,this.refs=v,this.updater=r||d}m.prototype.isReactComponent={},m.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(p(85));this.updater.enqueueSetState(this,t,e,"setState")},m.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},y.prototype=m.prototype;var b=g.prototype=new y;b.constructor=g,n(b,m.prototype),b.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function E(t,e,r){var n,i={},s=null,u=null;if(null!=e)for(n in void 0!==e.ref&&(u=e.ref),void 0!==e.key&&(s=""+e.key),e)w.call(e,n)&&!O.hasOwnProperty(n)&&(i[n]=e[n]);var a=arguments.length-2;if(1===a)i.children=r;else if(1<a){for(var c=Array(a),f=0;f<a;f++)c[f]=arguments[f+2];i.children=c}if(t&&t.defaultProps)for(n in a=t.defaultProps)void 0===i[n]&&(i[n]=a[n]);return{$$typeof:o,type:t,key:s,ref:u,props:i,_owner:_.current}}function j(t){return"object"==typeof t&&null!==t&&t.$$typeof===o}var x=/\/+/g;function S(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function R(t,e,r,n,s){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var a=!1;if(null===t)a=!0;else switch(u){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case o:case i:a=!0}}if(a)return s=s(a=t),t=""===n?"."+S(a,0):n,Array.isArray(s)?(r="",null!=t&&(r=t.replace(x,"$&/")+"/"),R(s,e,r,"",(function(t){return t}))):null!=s&&(j(s)&&(s=function(t,e){return{$$typeof:o,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(s,r+(!s.key||a&&a.key===s.key?"":(""+s.key).replace(x,"$&/")+"/")+t)),e.push(s)),1;if(a=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var f=n+S(u=t[c],c);a+=R(u,e,r,f,s)}else if(f=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=h&&t[h]||t["@@iterator"])?t:null}(t),"function"==typeof f)for(t=f.call(t),c=0;!(u=t.next()).done;)a+=R(u=u.value,e,r,f=n+S(u,c++),s);else if("object"===u)throw e=""+t,Error(p(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e));return a}function I(t,e,r){if(null==t)return t;var n=[],o=0;return R(t,n,"","",(function(t){return e.call(r,t,o++)})),n}function L(t){if(-1===t._status){var e=t._result;e=e(),t._status=0,t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}if(1===t._status)return t._result;throw t._result}var T={current:null};function k(){var t=T.current;if(null===t)throw Error(p(321));return t}var P={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:n};e.Children={map:I,forEach:function(t,e,r){I(t,(function(){e.apply(this,arguments)}),r)},count:function(t){var e=0;return I(t,(function(){e++})),e},toArray:function(t){return I(t,(function(t){return t}))||[]},only:function(t){if(!j(t))throw Error(p(143));return t}},e.Component=m,e.PureComponent=g,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,e.cloneElement=function(t,e,r){if(null==t)throw Error(p(267,t));var i=n({},t.props),s=t.key,u=t.ref,a=t._owner;if(null!=e){if(void 0!==e.ref&&(u=e.ref,a=_.current),void 0!==e.key&&(s=""+e.key),t.type&&t.type.defaultProps)var c=t.type.defaultProps;for(f in e)w.call(e,f)&&!O.hasOwnProperty(f)&&(i[f]=void 0===e[f]&&void 0!==c?c[f]:e[f])}var f=arguments.length-2;if(1===f)i.children=r;else if(1<f){c=Array(f);for(var l=0;l<f;l++)c[l]=arguments[l+2];i.children=c}return{$$typeof:o,type:t.type,key:s,ref:u,props:i,_owner:a}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:u,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:t},t.Consumer=t},e.createElement=E,e.createFactory=function(t){var e=E.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:a,render:t}},e.isValidElement=j,e.lazy=function(t){return{$$typeof:f,_payload:{_status:-1,_result:t},_init:L}},e.memo=function(t,e){return{$$typeof:c,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return k().useCallback(t,e)},e.useContext=function(t,e){return k().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return k().useEffect(t,e)},e.useImperativeHandle=function(t,e,r){return k().useImperativeHandle(t,e,r)},e.useLayoutEffect=function(t,e){return k().useLayoutEffect(t,e)},e.useMemo=function(t,e){return k().useMemo(t,e)},e.useReducer=function(t,e,r){return k().useReducer(t,e,r)},e.useRef=function(t){return k().useRef(t)},e.useState=function(t){return k().useState(t)},e.version="17.0.2"},784:function(t,e,r){"use strict";t.exports=r(426)},322:function(t,e,r){"use strict";t.exports=r(837)}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return function(){"use strict";function t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function e(t){if(Array.isArray(t))return t}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t,r){return e(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],s=!0,u=!1;try{for(r=r.call(t);!(s=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{s||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,r)||i(t,r)||s()}r.r(n),r.d(n,{default:function(){return w}});var a=function(t){return!!t&&Object.keys(t).filter((function(e){return!!t[e]})).map((function(t){return"".concat(t)})).join(" ")},c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="string"==typeof t?t:a(t),n=a(e),o=n?"".concat(r," ").concat(n):r;return o},f=r(784);r(360);var l=r(322),h=function(t){var e=t.message,r=t.icon;return(0,l.jsxs)("div",{className:"validation","data-testid":"validation-message",children:[(0,l.jsx)("i",{className:"material-icons",children:r}),e]})};h.defaultProps={icon:"warning"};var p=h;function d(t,e){return e.map((function(e){return parseFloat(t.getAttribute(e))}))}function v(t){return document.querySelector(".".concat(t))}var m=function(t,r){var n,o=0,a=0;if(v(t)){var c,f=function(){try{var t=Object.defineProperty({},"passive",{get:function(){return!1}});return window.addEventListener("checkPassive",null,t),window.removeEventListener("checkPassive",null,t),!0}catch(t){return!1}}(),l={touchLeft:(c=v(t)).querySelector(".range__filter--left"),touchRight:c.querySelector(".range__filter--right"),lineSpan:c.querySelector(".range__filter--line span")},h=l.touchLeft,p=l.touchRight,m=l.lineSpan,y=e(n=d(v(t),["min","max","min-value","max-value","step"]))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||i(n)||s(),g=y[0],b=y[1],_=u(y.slice(2),3),w=_[0],O=void 0===w?g:w,E=_[1],j=void 0===E?b:E,x=_[2],S=void 0===x?0:x;S=Math.abs(S),O<g&&(O=g),j>b&&(j=b),O>j&&(O=j);var R=function(e){var r=e.typeValue,n=e.attribute,o=e.isRight,i=(r-g)/(b-g);(o?p:h).style.left=function(t){var e=t.ratio,r=t.parent,n=t.handler,o=t.isRight?26:0;return"".concat(Math.ceil(e*(r.offsetWidth-(n.offsetWidth+26))+o),"px")}({handler:h,isRight:o,parent:v(t),ratio:i}),m.style.marginLeft="".concat(h.offsetLeft,"px"),m.style.width="".concat(p.offsetLeft-h.offsetLeft,"px"),v(t).setAttribute(n,r)};a=0,o=0,h.style.left="0px",m.style.marginLeft="0px",m.style.width="".concat(v(t).offsetWidth-h.offsetWidth,"px"),p.style.left="".concat(v(t).offsetWidth-h.offsetWidth,"px");var I=v(t).offsetWidth-p.offsetWidth,L=null,T=m.offsetWidth-26;R({attribute:"min-value",typeValue:O}),R({attribute:"max-value",isRight:!0,typeValue:j});var k=function(){var e=(m.offsetWidth-26)/T,r=m.offsetLeft/T,n=r+e;if(r=r*(b-g)+g,n=n*(b-g)+g,S){var o=Math.floor(r/S);r=S*o,o=Math.floor(n/S),n=S*o}r>n||v(t).setAttribute("min-value",r.toString()),n<r||v(t).setAttribute("max-value",n.toString())},P=function(e){var n=e.touches?e.touches[0]:e;a=n.pageX-o,L&&L===h&&(a>p.offsetLeft-L.offsetWidth+10&&(a=p.offsetLeft-L.offsetWidth+10),a<0&&(a=0)),L&&L===p&&(a<h.offsetLeft+h.offsetWidth-10&&(a=h.offsetLeft+h.offsetWidth-10),a>I&&(a=I)),L&&(L.style.left="".concat(a,"px")),m.style.marginLeft="".concat(h.offsetLeft,"px"),m.style.width="".concat(p.offsetLeft-h.offsetLeft,"px"),k();var i=u(d(v(t),["min-value","max-value"]),2),s=i[0],c=i[1];r(s,c)},C=function e(){document.removeEventListener("click",e),v(t).removeEventListener("mousemove",P),v(t).removeEventListener("mouseup",e),v(t).removeEventListener("touchmove",P),v(t).removeEventListener("touchend",e),L=null,k();var n=u(d(v(t),["min-value","max-value"]),2),o=n[0],i=n[1];r(o,i)};h.addEventListener("mousedown",M),p.addEventListener("mousedown",M),h.addEventListener("touchstart",M,!!f&&{passive:!0}),p.addEventListener("touchstart",M,!!f&&{passive:!0})}function M(e){e.defaultPrevented&&e.preventDefault();var r=e.touches?e.touches[0]:e;a=this===h?h.offsetLeft:p.offsetLeft,o=r.pageX-a,L=this,v(t).addEventListener("mousemove",P),v(t).addEventListener("mouseup",C),v(t).addEventListener("touchmove",P,!!f&&{passive:!0}),v(t).addEventListener("touchend",C),document.addEventListener("click",C)}},y=["label","modifier","onChange","required","error","validationMessage","value","name","id"];function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?g(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=function(e){var r=e.label,n=e.modifier,o=e.onChange,i=e.required,s=e.error,a=e.validationMessage,h=e.value,d=e.name,v=e.id,g=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,y),_=u((0,f.useState)(h||{}),2),w=_[0],O=_[1],E=u((0,f.useState)(s),2),j=E[0],x=E[1];(0,f.useEffect)((function(){x(s)}),[s]),(0,f.useEffect)((function(){!function(t,e){document.addEventListener("DOMContentLoaded",t),"interactive"!==document.readyState&&"complete"!==document.readyState||t(),e(5e3)}(R,I)}),[]);var S=function(t,e){var r=b(b({},w),{},{minValue:t,maxValue:e});o({value:r}),O(r)},R=function(){m(v,S)},I=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;setTimeout(R,t)},L=c(t({},"form-field--".concat(n),!!n)),T=c({required:i}),k=w.min,P=void 0===k?0:k,C=w.max,M=void 0===C?0:C,D=w.step,A=void 0===D?1:D,N=w.minValue,$=void 0===N?0:N,U=w.maxValue,V=void 0===U?0:U;return(0,l.jsxs)("div",{className:"form-field form-field--range ".concat(L),children:[r&&(0,l.jsx)("label",{htmlFor:v,className:T,children:r}),(0,l.jsxs)("div",{className:"values",children:[(0,l.jsx)("span",{children:Number($).toLocaleString("en-US")}),(0,l.jsx)("span",{children:Number(V).toLocaleString("en-US")})]}),(0,l.jsxs)("div",b(b({},g),{},{min:P,max:M,step:A,"min-value":$,"max-value":V,id:"".concat(d,"Range"),className:"range__filter ".concat(v),children:[(0,l.jsx)("div",{className:"range__filter--left",children:(0,l.jsx)("span",{})}),(0,l.jsx)("div",{className:"range__filter--right",children:(0,l.jsx)("span",{})}),(0,l.jsx)("div",{className:"range__filter--line",children:(0,l.jsx)("span",{})})]})),j&&(0,l.jsx)(p,{message:a})]})};_.defaultProps={error:!1,label:"",modifier:"",name:"",validationMessage:"This field is required"};var w=_}(),n}()}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports["@blaze-react"]=e(require("react")):t["@blaze-react"]=e(t.React)}(this,(function(t){return function(){var e={360:function(){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,n=o(e);n;)n=o(e=n.ownerDocument);return e}(),e=[],n=null,r=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(t,n){r=t&&n?l(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),n},s._resetCrossOriginUpdater=function(){n=null,r=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var r=this._checkForIntersections,i=null,s=null;this.POLL_INTERVAL?i=n.setInterval(r,this.POLL_INTERVAL):(a(n,"resize",r,!0),a(e,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(r)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(i&&t.clearInterval(i),c(t,"resize",r,!0)),c(e,"scroll",r,!0),s&&s.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=u){var f=o(e);f&&this._monitorIntersections(f.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||t,i=this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=r;){var i=o(n);if((n=i&&i.ownerDocument)==e)return!0}return!1}));if(!i){var s=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),s(),e!=r){var a=o(e);a&&this._unmonitorIntersections(a.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!n||r){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,s=u(o),a=this._rootContainsTarget(o),c=r.entry,f=t&&a&&this._computeTargetAndRootIntersection(o,s,e),l=null;this._rootContainsTarget(o)?n&&!this.root||(l=e):l={top:0,bottom:0,left:0,right:0,width:0,height:0};var h=r.entry=new i({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:s,rootBounds:l,intersectionRect:f});c?t&&a?this._hasCrossedThreshold(c,h)&&this._queuedEntries.push(h):c&&c.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,o,i){if("none"!=window.getComputedStyle(e).display){for(var s,a,c,f,h,p,v,m,g=o,b=d(e),y=!1;!y&&b;){var _=null,w=1==b.nodeType?window.getComputedStyle(b):{};if("none"==w.display)return null;if(b==this.root||9==b.nodeType)if(y=!0,b==this.root||b==t)n&&!this.root?!r||0==r.width&&0==r.height?(b=null,_=null,g=null):_=r:_=i;else{var O=d(b),E=O&&u(O),x=O&&this._computeTargetAndRootIntersection(O,E,i);E&&x?(b=O,_=l(E,x)):(b=null,g=null)}else{var j=b.ownerDocument;b!=j.body&&b!=j.documentElement&&"visible"!=w.overflow&&(_=u(b))}if(_&&(s=_,a=g,void 0,void 0,void 0,void 0,void 0,void 0,c=Math.max(s.top,a.top),f=Math.min(s.bottom,a.bottom),h=Math.max(s.left,a.left),m=f-c,g=(v=(p=Math.min(s.right,a.right))-h)>=0&&m>=0&&{top:c,bottom:f,left:h,right:p,width:v,height:m}||null),!g)break;b=b&&d(b)}return g}},s.prototype._getRootRect=function(){var e;if(this.root&&!p(this.root))e=u(this.root);else{var n=p(this.root)?this.root:t,r=n.documentElement,o=n.body;e={top:0,left:0,right:r.clientWidth||o.clientWidth,width:r.clientWidth||o.clientWidth,bottom:r.clientHeight||o.clientHeight,height:r.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},s.prototype._rootIsInDom=function(){return!this.root||h(t,this.root)},s.prototype._rootContainsTarget=function(e){var n=this.root&&(this.root.ownerDocument||this.root)||t;return h(n,e)&&(!this.root||n==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=i}function o(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function i(t){this.time=t.time,this.target=t.target,this.rootBounds=f(t.rootBounds),this.boundingClientRect=f(t.boundingClientRect),this.intersectionRect=f(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var n,r,o,i=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType&&9!=i.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){n(),o=null}),r))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(t,e,n,r){"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function c(t,e,n,r){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function l(t,e){var n=e.top-t.top,r=e.left-t.left;return{top:n,left:r,height:e.height,width:e.width,bottom:n+e.height,right:r+e.width}}function h(t,e){for(var n=e;n;){if(n==t)return!0;n=d(n)}return!1}function d(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?o(e):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function p(t){return t&&9===t.nodeType}}()},320:function(t){"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var s,a,c=o(t),u=1;u<arguments.length;u++){for(var f in s=Object(arguments[u]))n.call(s,f)&&(c[f]=s[f]);if(e){a=e(s);for(var l=0;l<a.length;l++)r.call(s,a[l])&&(c[a[l]]=s[a[l]])}}return c}},837:function(t,e,n){"use strict";n(320);var r=n(787),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,n){var r,i={},u=null,f=null;for(r in void 0!==n&&(u=""+n),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(f=e.ref),e)a.call(e,r)&&!c.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===i[r]&&(i[r]=e[r]);return{$$typeof:o,type:t,key:u,ref:f,props:i,_owner:s.current}}e.jsx=u,e.jsxs=u},322:function(t,e,n){"use strict";t.exports=n(837)},787:function(e){"use strict";e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return function(){"use strict";function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(t){if(Array.isArray(t))return t}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,n){return e(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);s=!0);}catch(t){a=!0,o=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,n)||i(t,n)||s()}r.r(o),r.d(o,{default:function(){return w}});var c=function(t){return!!t&&Object.keys(t).filter((function(e){return!!t[e]})).map((function(t){return"".concat(t)})).join(" ")},u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"==typeof t?t:c(t),r=c(e),o=r?"".concat(n," ").concat(r):n;return o},f=r(787);r(360);var l=r(322),h=function(t){var e=t.message,n=t.icon;return(0,l.jsxs)("div",{className:"validation","data-testid":"validation-message",children:[(0,l.jsx)("i",{className:"material-icons",children:n}),e]})};h.defaultProps={icon:"warning"};var d=h;function p(t,e){return e.map((function(e){return parseFloat(t.getAttribute(e))}))}function v(t){return document.querySelector(".".concat(t))}var m=function(t,n){var r,o=0,c=0;if(v(t)){var u,f=function(){try{var t=Object.defineProperty({},"passive",{get:function(){return!1}});return window.addEventListener("checkPassive",null,t),window.removeEventListener("checkPassive",null,t),!0}catch(t){return!1}}(),l={touchLeft:(u=v(t)).querySelector(".range__filter--left"),touchRight:u.querySelector(".range__filter--right"),lineSpan:u.querySelector(".range__filter--line span")},h=l.touchLeft,d=l.touchRight,m=l.lineSpan,g=e(r=p(v(t),["min","max","min-value","max-value","step"]))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||i(r)||s(),b=g[0],y=g[1],_=a(g.slice(2),3),w=_[0],O=void 0===w?b:w,E=_[1],x=void 0===E?y:E,j=_[2],I=void 0===j?0:j;I=Math.abs(I),O<b&&(O=b),x>y&&(x=y),O>x&&(O=x);var L=function(e){var n=e.typeValue,r=e.attribute,o=e.isRight,i=(n-b)/(y-b);(o?d:h).style.left=function(t){var e=t.ratio,n=t.parent,r=t.handler,o=t.isRight?26:0;return"".concat(Math.ceil(e*(n.offsetWidth-(r.offsetWidth+26))+o),"px")}({handler:h,isRight:o,parent:v(t),ratio:i}),m.style.marginLeft="".concat(h.offsetLeft,"px"),m.style.width="".concat(d.offsetLeft-h.offsetLeft,"px"),v(t).setAttribute(r,n)};c=0,o=0,h.style.left="0px",m.style.marginLeft="0px",m.style.width="".concat(v(t).offsetWidth-h.offsetWidth,"px"),d.style.left="".concat(v(t).offsetWidth-h.offsetWidth,"px");var T=v(t).offsetWidth-d.offsetWidth,R=null,S=m.offsetWidth-26;L({attribute:"min-value",typeValue:O}),L({attribute:"max-value",isRight:!0,typeValue:x});var P=function(){var e=(m.offsetWidth-26)/S,n=m.offsetLeft/S,r=n+e;if(n=n*(y-b)+b,r=r*(y-b)+b,I){var o=Math.floor(n/I);n=I*o,o=Math.floor(r/I),r=I*o}n>r||v(t).setAttribute("min-value",n.toString()),r<n||v(t).setAttribute("max-value",r.toString())},M=function(e){var r=e.touches?e.touches[0]:e;c=r.pageX-o,R&&R===h&&(c>d.offsetLeft-R.offsetWidth+10&&(c=d.offsetLeft-R.offsetWidth+10),c<0&&(c=0)),R&&R===d&&(c<h.offsetLeft+h.offsetWidth-10&&(c=h.offsetLeft+h.offsetWidth-10),c>T&&(c=T)),R&&(R.style.left="".concat(c,"px")),m.style.marginLeft="".concat(h.offsetLeft,"px"),m.style.width="".concat(d.offsetLeft-h.offsetLeft,"px"),P();var i=a(p(v(t),["min-value","max-value"]),2),s=i[0],u=i[1];n(s,u)},D=function e(){document.removeEventListener("click",e),v(t).removeEventListener("mousemove",M),v(t).removeEventListener("mouseup",e),v(t).removeEventListener("touchmove",M),v(t).removeEventListener("touchend",e),R=null,P();var r=a(p(v(t),["min-value","max-value"]),2),o=r[0],i=r[1];n(o,i)};h.addEventListener("mousedown",k),d.addEventListener("mousedown",k),h.addEventListener("touchstart",k,!!f&&{passive:!0}),d.addEventListener("touchstart",k,!!f&&{passive:!0})}function k(e){e.defaultPrevented&&e.preventDefault();var n=e.touches?e.touches[0]:e;c=this===h?h.offsetLeft:d.offsetLeft,o=n.pageX-c,R=this,v(t).addEventListener("mousemove",M),v(t).addEventListener("mouseup",D),v(t).addEventListener("touchmove",M,!!f&&{passive:!0}),v(t).addEventListener("touchend",D),document.addEventListener("click",D)}},g=["label","modifier","onChange","required","error","validationMessage","value","name","id"];function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?b(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _=function(e){var n=e.label,r=e.modifier,o=e.onChange,i=e.required,s=e.error,c=e.validationMessage,h=e.value,p=e.name,v=e.id,b=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,g),_=a((0,f.useState)(h||{}),2),w=_[0],O=_[1],E=a((0,f.useState)(s),2),x=E[0],j=E[1];(0,f.useEffect)((function(){j(s)}),[s]),(0,f.useEffect)((function(){!function(t,e){document.addEventListener("DOMContentLoaded",t),"interactive"!==document.readyState&&"complete"!==document.readyState||t(),e(5e3)}(L,T)}),[]);var I=function(t,e){var n=y(y({},w),{},{minValue:t,maxValue:e});o({value:n}),O(n)},L=function(){m(v,I)},T=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;setTimeout(L,t)},R=u(t({},"form-field--".concat(r),!!r)),S=u({required:i}),P=w.min,M=void 0===P?0:P,D=w.max,k=void 0===D?0:D,N=w.step,A=void 0===N?1:N,C=w.minValue,q=void 0===C?0:C,U=w.maxValue,V=void 0===U?0:U;return(0,l.jsxs)("div",{className:"form-field form-field--range ".concat(R),children:[n&&(0,l.jsx)("label",{htmlFor:v,className:S,children:n}),(0,l.jsxs)("div",{className:"values",children:[(0,l.jsx)("span",{children:Number(q).toLocaleString("en-US")}),(0,l.jsx)("span",{children:Number(V).toLocaleString("en-US")})]}),(0,l.jsxs)("div",y(y({},b),{},{min:M,max:k,step:A,"min-value":q,"max-value":V,id:"".concat(p,"Range"),className:"range__filter ".concat(v),children:[(0,l.jsx)("div",{className:"range__filter--left",children:(0,l.jsx)("span",{})}),(0,l.jsx)("div",{className:"range__filter--right",children:(0,l.jsx)("span",{})}),(0,l.jsx)("div",{className:"range__filter--line",children:(0,l.jsx)("span",{})})]})),x&&(0,l.jsx)(d,{message:c})]})};_.defaultProps={error:!1,label:"",modifier:"",name:"",validationMessage:"This field is required"};var w=_}(),o}()}));

@@ -15,10 +15,1 @@ /*

*/
/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
{
"name": "@blaze-react/range-filter",
"version": "0.8.0-alpha.57",
"version": "0.8.0-alpha.58",
"description": "",

@@ -19,3 +19,3 @@ "main": "./dist/main.js",

"peerDependencies": {
"@blaze-react/utils": "0.8.0-alpha.56",
"@blaze-react/utils": "0.8.0-alpha.57",
"react": "^17.0.2",

@@ -28,3 +28,3 @@ "react-dom": "^17.0.2"

},
"gitHead": "f0a28bad8ec0e4e2fd12d3764a53ef76dc393a86"
"gitHead": "73003dbc3beb8fcc53f4bd64873440b49cd8d0a8"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc