Socket
Socket
Sign inDemoInstall

react-awesome-button

Package Overview
Dependencies
1
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.2.0 to 6.3.0

demo/public/website/react-awesome-slider.css

2

dist/index.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],t):"object"==typeof exports?exports["react-awesome-button"]=t(require("react"),require("prop-types")):e["react-awesome-button"]=t(e.React,e.PropTypes)}(this,(function(e,t){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=5)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);Object.defineProperty(t,"AwesomeButton",{enumerable:!0,get:function(){return c(r).default}});var o=n(7);Object.defineProperty(t,"AwesomeButtonSocial",{enumerable:!0,get:function(){return c(o).default}});var i=n(10);function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"AwesomeButtonProgress",{enumerable:!0,get:function(){return c(i).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var c,l=e[Symbol.iterator]();!(r=(c=l.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.serialize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&";return Object.entries(e).map((function(e){var t=r(e,2);return t[0]+"="+t[1]})).join(t)},t.classToModules=i,t.getClassName=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1];if(t)return t[e]||e;return e},t.setCssEndEvent=c,t.toggleMoveClasses=function(e){var t=e.element,n=e.root,r=e.cssModule,c=void 0===r?null:r,l=e.state,s=void 0===l?null:l;if(!t)return!1;if(!s)return t.classList.remove(i([n+"--"+o[0]],c),i([n+"--"+o[1]],c),i([n+"--"+o[2]],c)),!1;var a=o.filter((function(e){return e!==s})),u=a.length;for(;u--;)t.classList.remove(i([n+"--"+a[u]],c));return t.classList.add(i([n+"--"+s],c)),!0},t.createBubbleEffect=function(e){var t=e.event,n=e.button,r=e.content,o=e.className,i=n.getBoundingClientRect(),l=window.pageYOffset||document.documentElement.scrolltop||0,s=document.createElement("span"),a=i.width<50?3*i.width:2*i.width;s.className=o,s.style.top="-"+(a/2-(t.pageY-i.top-l))+"px",s.style.left="-"+(a/2-(t.pageX-i.left))+"px",s.style.width=a+"px",s.style.height=a+"px",c(s,"animation",(function(){window.requestAnimationFrame((function(){r.removeChild(s)}))})),window.requestAnimationFrame((function(){r.appendChild(s)}))};var o=["middle","left","right"];function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(!t)return e.join(" ").trim();for(var n=[],r=e.length;r--;)t[e[r]]&&n.push(t[e[r]]);return n.join(" ").trim()}function c(e,t,n){if(!e)return!1;var r=t.charAt(0).toUpperCase()+t.slice(1);return void 0!==e.style["Webkit"+r]?e.addEventListener("webkit"+r+"End",n):void 0!==e.style.OTransition?e.addEventListener("o"+t+"End",n):e.addEventListener(t+"End",n)}},function(e,t,n){e.exports=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=0)}([function(e,t,n){"use strict";function r(e,t,{tolerance:n=0,propertyName:r}={}){return new Promise(o=>{if(!e)return void o(!1);let i=null;const c=t.charAt(0).toUpperCase()+t.slice(1);let l=0;function s(t){if((t.srcElement||t.target)===e){if(l>=n){if(r&&r!==t.propertyName)return;e.removeEventListener(i,s),o(t)}l+=1}}void 0!==e.style[`Webkit${c}`]&&(i=`webkit${c}End`),void 0!==e.style.OTransition&&(i=`o${t}End`),void 0!==e.style[t]&&(i=`${t}end`),e.clearCssEndEvent&&e.clearCssEndEvent(),e.clearCssEndEvent=function(){e.removeEventListener(i,s)},e.addEventListener(i,s)})}function o(e){window&&window.requestAnimationFrame(e)}function i(e){window&&window.requestAnimationFrame(()=>{window.requestAnimationFrame(e)})}function c(e,t){!function e(t,n){window&&t&&Number.isInteger(t)&&t>0?window.requestAnimationFrame(()=>{e(t-1,n)}):n()}(e+1,t)}function l(){return new Promise(e=>{i(e)})}function s(e,t={}){return new Promise(n=>{r(e,"transition",t).then(n)})}function a(e,t={}){return new Promise(n=>{r(e,"animation",t).then(n)})}n.r(t),n.d(t,"setCssEndEvent",(function(){return r})),n.d(t,"beforeCssLayout",(function(){return o})),n.d(t,"beforeNextCssLayout",(function(){return i})),n.d(t,"beforeFutureCssLayout",(function(){return c})),n.d(t,"onceNextCssLayout",(function(){return l})),n.d(t,"onceTransitionEnd",(function(){return s})),n.d(t,"onceAnimationEnd",(function(){return a}))}])},function(e,t,n){e.exports=n(2)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(0)),c=(s(n(1)),n(4)),l=n(3);function s(e){return e&&e.__esModule?e:{default:e}}var a="aws-btn",u=function(e){return i.default.createElement("a",e)},f=function(e){return i.default.createElement("button",e)},d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.rootElement=e.rootElement||a,n.animationStage=0,n.extraProps={},n.state={disabled:e.disabled||e.placeholder&&!e.children},n.checkProps(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.container=this.button&&this.button.parentNode}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.checkPlaceholder(e),this.checkProps(e),this.checkActive(e)}},{key:"componentWillUnmount",value:function(){this.clearTimer&&clearTimeout(this.clearTimer)}},{key:"getRootClassName",value:function(){var e=this.rootElement,t=this.props,n=t.type,r=t.size,o=t.placeholder,i=t.children,c=t.visible,s=t.cssModule,a=this.state,u=a.disabled,f=a.pressPosition,d=[this.rootElement,n&&e+"--"+n,r&&e+"--"+r,c&&e+"--visible",o&&!i&&e+"--placeholder"||null];return!0===u&&d.push(e+"--disabled"),f&&d.push(f),this.props.className&&d.push.apply(d,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(this.props.className.split(" "))),s&&s["aws-btn"]?(0,l.classToModules)(d,s):d.join(" ").trim().replace(/[\s]+/gi," ")}},{key:"checkActive",value:function(e){if(e.active!==this.props.active){if(!0===e.active)return void this.setState({pressPosition:this.rootElement+"--active"});this.clearPress({force:!0})}}},{key:"checkProps",value:function(e){var t=e.to,n=e.href,r=e.target,o=e.element;this.extraProps.to=t||null,this.extraProps.href=n||null,this.extraProps.target=r||null,this.renderComponent=o||(this.props.href?u:f)}},{key:"checkPlaceholder",value:function(e){var t=e.disabled,n=e.placeholder,r=e.children;!0===n?r?this.setState({disabled:!1}):this.setState({disabled:!0}):this.setState({disabled:t})}},{key:"clearPress",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.force,r=void 0!==n&&n,o=t.leave,i=void 0!==o&&o;(0,l.toggleMoveClasses)({element:this.container,root:this.rootElement,cssModule:this.props.cssModule});var s=this.props.active&&!r?this.rootElement+"--active":null;null===s&&!1===i&&(0,c.setCssEndEvent)(this.content,"transition",{tolerance:1}).then((function(){e.props.onReleased&&e.props.onReleased(e.container)})),this.setState({pressPosition:s})}},{key:"pressIn",value:function(){!0!==this.state.disabled&&!0!==this.props.blocked&&(this.pressed=(new Date).getTime(),this.setState({pressPosition:this.rootElement+"--active"}))}},{key:"pressOut",value:function(e){var t=this;this.clearTimer&&clearTimeout(this.clearTimer);var n=(new Date).getTime()-this.pressed;if(!0===this.props.ripple&&this.createBubble(e),"undefined"!=typeof window&&this.button){var r=new Event("action");this.button.dispatchEvent(r)}this.action(),this.clearTimer=setTimeout((function(){t.clearPress()}),100-n)}},{key:"action",value:function(){var e=this.props,t=e.action,n=e.onPress;if(this.button){if(t)return void t(this.container);n&&n(this.container)}}},{key:"createBubble",value:function(e){(0,l.createBubbleEffect)({event:e,button:this.button,content:this.content,className:(0,l.getClassName)(this.rootElement+"__bubble",this.props.cssModule)})}},{key:"moveEvents",value:function(){var e=this,t={onClick:function(t){e.props.href&&e.state.disabled&&(t.preventDefault(),t.stopPropagation())},onMouseLeave:function(){e.clearPress({leave:!0})},onMouseDown:function(t){t&&1!==t.nativeEvent.which||e.pressIn()},onMouseUp:function(t){if(!0===e.state.disabled||!0===e.props.blocked)return t.preventDefault(),void t.stopPropagation();e.pressOut(t)}};return!0===this.props.moveEvents?t.onMouseMove=function(t){if(!0!==e.state.disabled){var n=e.button,r=n.getBoundingClientRect().left,o=n.offsetWidth,i=t.pageX<r+.3*o?"left":t.pageX>r+.65*o?"right":"middle";(0,l.toggleMoveClasses)({element:e.container,root:e.rootElement,cssModule:e.props.cssModule,state:i})}}:t.onMouseEnter=function(){(0,l.toggleMoveClasses)({element:e.container,root:e.rootElement,cssModule:e.props.cssModule,state:"middle"})},t}},{key:"render",value:function(){var e=this,t=this.renderComponent,n=this.props,o=n.title,c=n.style,s=n.cssModule,a=n.children;return i.default.createElement(t,r({style:c,className:this.getRootClassName(),role:"button",title:o},this.extraProps,this.moveEvents()),i.default.createElement("span",{ref:function(t){e.button=t},className:(0,l.getClassName)(this.rootElement+"__wrapper",s)},i.default.createElement("span",{ref:function(t){e.content=t},className:(0,l.getClassName)(this.rootElement+"__content",s)},i.default.createElement("span",{ref:function(t){e.child=t}},a))))}}]),t}(i.default.Component);d.defaultProps={action:null,onPress:null,onReleased:null,ripple:!1,blocked:!1,cssModule:null,children:null,disabled:!1,title:null,element:null,href:null,className:null,moveEvents:!0,placeholder:!1,rootElement:a,size:null,style:{},target:null,to:null,type:"primary",visible:!0,active:!1},t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0)),c=(a(n(1)),n(2)),l=a(n(8)),s=a(n(9));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.action=function(e){var t=n.props,r=t.action,o=t.onPress,i=t.href,c=t.type,s=t.user,a=t.phone;if(r)r(e);else if(o)o(e);else if(null===i){var u=(0,l.default)({height:600,width:575,url:n.getUrl(),message:n.getMessage(),type:c,user:s,phone:a});n.window&&window.open(u.url,u.title,u.extra)}},n.window="undefined"!=typeof window,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"getUrl",value:function(){return this.props.url?this.props.url:this.window?window.location.href:null}},{key:"getMessage",value:function(){if(this.props.message)return this.props.message;if("undefined"!==this.window){var e=document.querySelector("title");if(e)return e.innerHTML}return null}},{key:"getImage",value:function(){if(null!==this.props.image)return this.props.image;if(null!==this.window){var e=document.querySelector('meta[property="og:image"]');if(e)return e.getAttribute("content")}return null}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.icon,o=e.type,l=(e.action,e.onPress,e.iconWidth),a=e.iconHeight,u=e.href,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","icon","type","action","onPress","iconWidth","iconHeight","href"]);return i.default.createElement(c.AwesomeButton,r({type:o,action:this.action,href:u},f),n&&(0,s.default)({type:o,width:l,height:a,color:this.props.disabled?"rgba(255,255,255,0.35)":"#FFF"})," ",t)}}]),t}(i.default.Component);u.defaultProps={action:null,onPress:null,children:null,disabled:!1,href:null,icon:!0,iconHeight:23,iconWidth:30,image:null,message:null,phone:null,url:null,user:null},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=e.url,n=e.message,i=e.title,c=e.image,l=e.user,s=e.type,a=e.phone,u=e.width,f=e.height,d={},p={};switch(s){case"facebook":p.u=encodeURIComponent(t),d.url="https://www.facebook.com/sharer.php?"+(0,o.serialize)(p,"&"),d.title="Facebook Sharer";break;case"twitter":p.text=n,p.url=t,d.height=250,d.url="https://twitter.com/share?"+(0,o.serialize)(p,"&"),d.title="Twitter Sharer";break;case"pinterest":p.url=t,c&&(p.media=c),d.url="https://pinterest.com/pin/create/button/?"+(0,o.serialize)(p,"&"),d.title="Pinterest Sharer";break;case"google":case"gplus":p.url=t,d.url="https://plus.google.com/share?"+(0,o.serialize)(p,"&"),d.title="Google+ Sharer",d.width=400;break;case"linkedin":p.mini=!0,p.url=t,p.title=n||i,d.url="https://www.linkedin.com/shareArticle?"+(0,o.serialize)(p,"&"),d.title="Linkedin Sharer";break;case"reddit":p.url=t,p.title=n||i,d.url="https://www.reddit.com/submit?"+(0,o.serialize)(p,"&"),d.title="",d.width=850;break;case"whatsapp":p.phone=a.replace(/\+|(|)/gim,""),p.title=n||i,d.url="https://api.whatsapp.com/send?"+(0,o.serialize)(p,"&"),d.title="Whatsapp Message",d.width=850;break;case"messenger":d.url="https://m.me/"+l,d.title="Messenger Message",d.width=850;break;case"mail":d.url="mailto:"+t,d.title="_self";break;case"instagram":d.url=t,d.title="_self";break;default:return d}return d.extra=(0,o.serialize)(r({width:(d.width||u)+"px",height:(d.height||f)+"px"},function(e,t){if("undefined"==typeof window)return{top:0,left:0};var n=void 0!==window.screenLeft?window.screenLeft:screen.left,r=void 0!==window.screenTop?window.screenTop:screen.top,o=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width;return{top:(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-t/2+r,left:o/2-e/2+n}}(d.width||u,d.height||f)),","),d};var o=n(3)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0));o(n(1));function o(e){return e&&e.__esModule?e:{default:e}}var i={youtube:"M38.1,23H11.9c-4.1,0-7.6,3.4-7.6,7.6v6.1c0,4.1,3.4,7.6,7.6,7.6h26.3c4.1,0,7.6-3.4,7.6-7.6v-6.1C45.8,26.4,42.4,23,38.1,23z M17.4,27.7h-2.5v12.2h-2.4V27.7h-2.5v-2h7.3V27.7z M24.3,39.9h-2.1v-1.2c-0.4,0.4-0.8,0.8-1.2,0.9c-0.4,0.3-0.8,0.3-1.2,0.3c-0.5,0-0.8-0.2-1.1-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2,1-0.2c0.6-0.7,1.3-1.4,1.9-2.1c0.4-0.5,0.6-0.6,1.1-0.3c1.5,0.8,3.1,1.6,4.6,2.4C36.8,29,36.9,29.3,36.8,29.8z",messenger:"M27.5,30l-5.4-5.7L11.7,30l11.5-12.2l5.5,5.7L39,17.8L27.5,30z M25.5,3.8c-11.6,0-21.1,8.7-21.1,19.5c0,6.1,3.1,11.6,7.9,15.2v7.4l7.2-3.9c1.9,0.5,3.9,0.8,6,0.8c11.6,0,21.1-8.7,21.1-19.5S37.1,3.8,25.5,3.8z",instagram:"M25,13.3c-5.8,0-10.6,4.7-10.6,10.6S19.1,34.6,25,34.6S35.6,29.8,35.6,24S30.8,13.3,25,13.3z M25,30.7c-3.7,0-6.8-3.1-6.8-6.8s3.1-6.8,6.8-6.8s6.8,3.1,6.8,6.8S28.7,30.7,25,30.7z M36.1,10.6c1.3,0,2.4,1.1,2.4,2.4s-1.1,2.4-2.4,2.4c-1.3,0-2.4-1.1-2.4-2.4S34.7,10.6,36.1,10.6z M42.3,6.8c-2.2-2.2-5.2-3.4-8.7-3.4H16.4c-7.2,0-12,4.8-12,12v17c0,3.6,1.2,6.7,3.5,8.9c2.2,2.2,5.2,3.2,8.6,3.2h17c3.6,0,6.6-1.2,8.7-3.2c2.2-2.2,3.4-5.2,3.4-8.8V15.4C45.6,11.9,44.5,8.9,42.3,6.8z M42,32.6c0,2.6-0.9,4.7-2.4,6.1s-3.6,2.2-6.1,2.2h-17c-2.5,0-4.6-0.7-6.1-2.2s-2.2-3.6-2.2-6.2v-17c0-2.5,0.7-4.6,2.2-6.1C11.8,8,14,7.2,16.5,7.2h17.1c2.5,0,4.6,0.7,6.1,2.2c1.4,1.5,2.2,3.6,2.2,6v17.2H42z",twitter:"M49.3,9.1c-1.8,0.8-3.6,1.3-5.6,1.5c2-1.2,3.6-3.1,4.3-5.4c-1.9,1.1-4,1.9-6.2,2.4c-1.8-1.9-4.3-3.1-7.1-3.1c-5.4,0-9.8,4.4-9.8,9.8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1,1.4-3.1,3.1s1.4,3.1,3.1,3.1s3.1-1.4,3.1-3.1C19.9,21.1,18.5,19.8,16.8,19.8z M32.1,19.8c-1.7,0-3.1,1.4-3.1,3.1s1.4,3.1,3.1,3.1s3.1-1.4,3.1-3.1C35.1,21.1,33.8,19.8,32.1,19.8z"};t.default=function(e){var t=e.type,n=e.width,o=e.height,c=e.margin,l=e.color;return r.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",space:"preserve",viewBox:"0 0 50 50",style:{marginRight:c},width:n,height:o},r.default.createElement("path",{fill:l,d:i[t]}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0)),c=(a(n(1)),n(4)),l=n(2),s=n(3);function a(e){return e&&e.__esModule?e:{default:e}}var u="aws-btn",f=4,d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clearStagedWrapperAnimation=function(){n.timeout=setTimeout((function(){"undefined"!=typeof window&&window.requestAnimationFrame((function(){n.clearLoading((function(){setTimeout((function(){n.setState({blocked:!1,loadingError:!1,errorLabel:null})}),500)}))}))}),n.props.releaseDelay)},n.action=function(){var e=n.props.action||n.props.onPress;n.startLoading(),(0,c.onceTransitionEnd)(n.content).then((function(){e&&e(n.content,n.endLoading.bind(n)),(0,c.setCssEndEvent)(n.content,"transition",{tolerance:f}).then((function(){n.clearStagedWrapperAnimation()}))}))},n.rootElement=e.rootElement||u,n.animationStage=0,n.loading=!1,n.timeout=null,n.state={loadingEnd:!1,loadingStart:!1,loadingError:!1,errorLabel:null,blocked:!1,active:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.checkFakePress(e)}},{key:"componentWillUnmount",value:function(){this.timeout&&clearTimeout(this.timeout)}},{key:"getRootClassName",value:function(){var e=this.rootElement,t=this.state;return[t.loadingStart&&e+"--start"||null,t.loadingEnd&&e+"--end"||null,t.loadingError&&e+"--errored"||null,e+"--progress"].join(" ").trim().replace(/[\s]+/gi," ")}},{key:"checkFakePress",value:function(e){e.fakePress!==this.props.fakePress&&!0===e.fakePress&&this.action()}},{key:"endLoading",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.setState({loadingEnd:!0,loadingError:!e,errorLabel:t}),this.animationStage=1}},{key:"startLoading",value:function(){var e=this;this.loading=!0,this.setState({blocked:!0,active:!0},(function(){(0,c.beforeFutureCssLayout)(2,(function(){e.setState({loadingStart:!0})}))}))}},{key:"clearLoading",value:function(e){this.loading=!1,this.setState({loadingStart:!1,loadingEnd:!1,active:!1},e)}},{key:"moveEvents",value:function(){var e=this;return{onMouseDown:function(t){!0===e.props.disabled||!0===e.loading||!0===e.state.blocked||t&&1!==t.nativeEvent.which||(e.loading=!0)},onMouseUp:function(t){if(!0===e.props.disabled||!0===e.loading||!0===e.state.blocked)return t.preventDefault(),void t.stopPropagation();e.action()}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.size,c=t.cssModule,a=t.loadingLabel,u=t.resultLabel,f=(t.action,t.type),d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children","size","cssModule","loadingLabel","resultLabel","action","type"]),p=this.state,h=p.active,v=p.blocked,m=p.errorLabel;return i.default.createElement(l.AwesomeButton,r({size:o,type:f,className:this.getRootClassName(),action:this.action,cssModule:c,active:h,blocked:v},this.moveEvents(),d),i.default.createElement("span",{ref:function(t){e.content=t},"data-loading":a||null,"data-status":m||u||null,className:(0,s.getClassName)(this.rootElement+"__progress",c)},i.default.createElement("span",null,n)))}}]),t}(i.default.Component);d.defaultProps={action:null,onPress:null,rootElement:null,loadingLabel:"Wait..",resultLabel:"Success!",disabled:!1,cssModule:null,fakePress:!1,children:null,size:null,type:null,releaseDelay:500},t.default=d}])}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],t):"object"==typeof exports?exports["react-awesome-button"]=t(require("react"),require("prop-types")):e["react-awesome-button"]=t(e.React,e.PropTypes)}(this,(function(e,t){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=5)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);Object.defineProperty(t,"AwesomeButton",{enumerable:!0,get:function(){return c(r).default}});var o=n(7);Object.defineProperty(t,"AwesomeButtonSocial",{enumerable:!0,get:function(){return c(o).default}});var i=n(10);function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"AwesomeButtonProgress",{enumerable:!0,get:function(){return c(i).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var c,l=e[Symbol.iterator]();!(r=(c=l.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.serialize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&";return Object.entries(e).map((function(e){var t=r(e,2);return t[0]+"="+t[1]})).join(t)},t.classToModules=i,t.getClassName=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1];if(t)return t[e]||e;return e},t.setCssEndEvent=c,t.toggleMoveClasses=function(e){var t=e.element,n=e.root,r=e.cssModule,c=void 0===r?null:r,l=e.state,s=void 0===l?null:l;if(!t)return!1;if(!s)return t.classList.remove(i([n+"--"+o[0]],c),i([n+"--"+o[1]],c),i([n+"--"+o[2]],c)),!1;var a=o.filter((function(e){return e!==s})),u=a.length;for(;u--;)t.classList.remove(i([n+"--"+a[u]],c));return t.classList.add(i([n+"--"+s],c)),!0},t.createBubbleEffect=function(e){var t=e.event,n=e.button,r=e.content,o=e.className,i=n.getBoundingClientRect(),l=window.pageYOffset||document.documentElement.scrolltop||0,s=document.createElement("span"),a=i.width<50?3*i.width:2*i.width;s.className=o,s.style.top="-"+(a/2-(t.pageY-i.top-l))+"px",s.style.left="-"+(a/2-(t.pageX-i.left))+"px",s.style.width=a+"px",s.style.height=a+"px",c(s,"animation",(function(){window.requestAnimationFrame((function(){r.removeChild(s)}))})),window.requestAnimationFrame((function(){r.appendChild(s)}))};var o=["middle","left","right"];function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(!t)return e.join(" ").trim();for(var n=[],r=e.length;r--;)t[e[r]]&&n.push(t[e[r]]);return n.join(" ").trim()}function c(e,t,n){if(!e)return!1;var r=t.charAt(0).toUpperCase()+t.slice(1);return void 0!==e.style["Webkit"+r]?e.addEventListener("webkit"+r+"End",n):void 0!==e.style.OTransition?e.addEventListener("o"+t+"End",n):e.addEventListener(t+"End",n)}},function(e,t,n){e.exports=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=0)}([function(e,t,n){"use strict";function r(e,t,{tolerance:n=0,propertyName:r}={}){return new Promise(o=>{if(!e)return void o(!1);let i=null;const c=t.charAt(0).toUpperCase()+t.slice(1);let l=0;function s(t){if((t.srcElement||t.target)===e){if(l>=n){if(r&&r!==t.propertyName)return;e.removeEventListener(i,s),o(t)}l+=1}}void 0!==e.style[`Webkit${c}`]&&(i=`webkit${c}End`),void 0!==e.style.OTransition&&(i=`o${t}End`),void 0!==e.style[t]&&(i=`${t}end`),e.clearCssEndEvent&&e.clearCssEndEvent(),e.clearCssEndEvent=function(){e.removeEventListener(i,s)},e.addEventListener(i,s)})}function o(e){window&&window.requestAnimationFrame(e)}function i(e){window&&window.requestAnimationFrame(()=>{window.requestAnimationFrame(e)})}function c(e,t){!function e(t,n){window&&t&&Number.isInteger(t)&&t>0?window.requestAnimationFrame(()=>{e(t-1,n)}):n()}(e+1,t)}function l(){return new Promise(e=>{i(e)})}function s(e,t={}){return new Promise(n=>{r(e,"transition",t).then(n)})}function a(e,t={}){return new Promise(n=>{r(e,"animation",t).then(n)})}n.r(t),n.d(t,"setCssEndEvent",(function(){return r})),n.d(t,"beforeCssLayout",(function(){return o})),n.d(t,"beforeNextCssLayout",(function(){return i})),n.d(t,"beforeFutureCssLayout",(function(){return c})),n.d(t,"onceNextCssLayout",(function(){return l})),n.d(t,"onceTransitionEnd",(function(){return s})),n.d(t,"onceAnimationEnd",(function(){return a}))}])},function(e,t,n){e.exports=n(2)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0)),c=a(n(1)),l=n(4),s=n(3);function a(e){return e&&e.__esModule?e:{default:e}}var u="aws-btn",d=function(e){return i.default.createElement("a",e)},f=function(e){return i.default.createElement("button",e)},p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.rootElement=e.rootElement||u,n.animationStage=0,n.extraProps={},n.state={disabled:e.disabled||e.placeholder&&!e.children},n.checkProps(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.container=this.button&&this.button.parentNode}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.checkPlaceholder(e),this.checkProps(e),this.checkActive(e)}},{key:"componentWillUnmount",value:function(){this.clearTimer&&clearTimeout(this.clearTimer)}},{key:"getRootClassName",value:function(){var e=this.rootElement,t=this.props,n=t.type,r=t.size,o=t.placeholder,i=t.children,c=t.visible,l=t.cssModule,a=this.state,u=a.disabled,d=a.pressPosition,f=[this.rootElement,n&&e+"--"+n,r&&e+"--"+r,c&&e+"--visible",o&&!i&&e+"--placeholder"||null];return!0===u&&f.push(e+"--disabled"),d&&f.push(d),this.props.className&&f.push.apply(f,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(this.props.className.split(" "))),l&&l["aws-btn"]?(0,s.classToModules)(f,l):f.join(" ").trim().replace(/[\s]+/gi," ")}},{key:"checkActive",value:function(e){if(e.active!==this.props.active){if(!0===e.active)return void this.setState({pressPosition:this.rootElement+"--active"});this.clearPress({force:!0})}}},{key:"checkProps",value:function(e){var t=e.to,n=e.href,r=e.target,o=e.element;this.extraProps.to=t||null,this.extraProps.href=n||null,this.extraProps.target=r||null,this.renderComponent=o||(this.props.href?d:f)}},{key:"checkPlaceholder",value:function(e){var t=e.disabled,n=e.placeholder,r=e.children;!0===n?r?this.setState({disabled:!1}):this.setState({disabled:!0}):this.setState({disabled:t})}},{key:"clearPress",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.force,r=void 0!==n&&n,o=t.leave,i=void 0!==o&&o;(0,s.toggleMoveClasses)({element:this.container,root:this.rootElement,cssModule:this.props.cssModule});var c=this.props.active&&!r?this.rootElement+"--active":null;null===c&&!1===i&&(0,l.setCssEndEvent)(this.content,"transition",{tolerance:1}).then((function(){e.props.onReleased&&e.props.onReleased(e.container)})),this.setState({pressPosition:c})}},{key:"pressIn",value:function(){!0!==this.state.disabled&&!0!==this.props.blocked&&(this.pressed=(new Date).getTime(),this.setState({pressPosition:this.rootElement+"--active"}))}},{key:"pressOut",value:function(e){var t=this;this.clearTimer&&clearTimeout(this.clearTimer);var n=(new Date).getTime()-this.pressed;if(!0===this.props.ripple&&this.createBubble(e),"undefined"!=typeof window&&this.button){var r=new Event("action");this.button.dispatchEvent(r)}this.action(),this.clearTimer=setTimeout((function(){t.clearPress()}),100-n)}},{key:"action",value:function(){var e=this.props,t=e.action,n=e.onPress;if(this.button){if(t)return void t(this.container);n&&n(this.container)}}},{key:"createBubble",value:function(e){(0,s.createBubbleEffect)({event:e,button:this.button,content:this.content,className:(0,s.getClassName)(this.rootElement+"__bubble",this.props.cssModule)})}},{key:"moveEvents",value:function(){var e=this,t={onClick:function(t){e.props.href&&e.state.disabled&&(t.preventDefault(),t.stopPropagation())},onMouseLeave:function(){e.clearPress({leave:!0})},onMouseDown:function(t){t&&1!==t.nativeEvent.which||e.pressIn()},onMouseUp:function(t){if(!0===e.state.disabled||!0===e.props.blocked)return t.preventDefault(),void t.stopPropagation();e.pressOut(t)}};return!0===this.props.moveEvents?t.onMouseMove=function(t){if(!0!==e.state.disabled){var n=e.button,r=n.getBoundingClientRect().left,o=n.offsetWidth,i=t.pageX<r+.3*o?"left":t.pageX>r+.65*o?"right":"middle";(0,s.toggleMoveClasses)({element:e.container,root:e.rootElement,cssModule:e.props.cssModule,state:i})}}:t.onMouseEnter=function(){(0,s.toggleMoveClasses)({element:e.container,root:e.rootElement,cssModule:e.props.cssModule,state:"middle"})},t}},{key:"render",value:function(){var e=this,t=this.renderComponent,n=this.props,o=n.title,c=n.style,l=n.cssModule,a=n.children;return i.default.createElement(t,r({style:c,className:this.getRootClassName(),role:"button",title:o},this.extraProps,this.moveEvents()),i.default.createElement("span",{ref:function(t){e.button=t},className:(0,s.getClassName)(this.rootElement+"__wrapper",l)},i.default.createElement("span",{ref:function(t){e.content=t},className:(0,s.getClassName)(this.rootElement+"__content",l)},i.default.createElement("span",{ref:function(t){e.child=t}},a))))}}]),t}(i.default.Component);p.propTypes={action:c.default.func,onPress:c.default.func,onReleased:c.default.func,ripple:c.default.bool,children:c.default.node,disabled:c.default.bool,element:c.default.func,href:c.default.string,placeholder:c.default.bool,title:c.default.string,rootElement:c.default.string,moveEvents:c.default.bool,size:c.default.string,style:c.default.object,cssModule:c.default.object,className:c.default.string,target:c.default.string,to:c.default.string,type:c.default.string,visible:c.default.bool,active:c.default.bool,blocked:c.default.bool},p.defaultProps={action:null,onPress:null,onReleased:null,ripple:!1,blocked:!1,cssModule:null,children:null,disabled:!1,title:null,element:null,href:null,className:null,moveEvents:!0,placeholder:!1,rootElement:u,size:null,style:{},target:null,to:null,type:"primary",visible:!0,active:!1},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(0)),c=u(n(1)),l=n(2),s=u(n(8)),a=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.action=function(e){var t=n.props,r=t.action,o=t.onPress,i=t.href,c=t.type,l=t.user,a=t.phone;if(r)r(e);else if(o)o(e);else if(null===i){var u=(0,s.default)({height:600,width:575,url:n.getUrl(),message:n.getMessage(),type:c,user:l,phone:a});n.window&&window.open(u.url,u.title,u.extra)}},n.window="undefined"!=typeof window,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"getUrl",value:function(){return this.props.url?this.props.url:this.window?window.location.href:null}},{key:"getMessage",value:function(){if(this.props.message)return this.props.message;if("undefined"!==this.window){var e=document.querySelector("title");if(e)return e.innerHTML}return null}},{key:"getImage",value:function(){if(null!==this.props.image)return this.props.image;if(null!==this.window){var e=document.querySelector('meta[property="og:image"]');if(e)return e.getAttribute("content")}return null}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.icon,o=e.type,c=(e.action,e.onPress,e.iconWidth),s=e.iconHeight,u=e.href,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","icon","type","action","onPress","iconWidth","iconHeight","href"]);return i.default.createElement(l.AwesomeButton,r({type:o,action:this.action,href:u},d),n&&(0,a.default)({type:o,width:c,height:s,color:this.props.disabled?"rgba(255,255,255,0.35)":"#FFF"})," ",t)}}]),t}(i.default.Component);d.propTypes={action:c.default.func,onPress:c.default.func,children:c.default.node,disabled:c.default.bool,href:c.default.string,icon:c.default.bool,iconHeight:c.default.number,iconWidth:c.default.number,image:c.default.string,message:c.default.string,phone:c.default.string,type:c.default.string.isRequired,url:c.default.string,user:c.default.string},d.defaultProps={action:null,onPress:null,children:null,disabled:!1,href:null,icon:!0,iconHeight:23,iconWidth:30,image:null,message:null,phone:null,url:null,user:null},t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=e.url,n=e.message,i=e.title,c=e.image,l=e.user,s=e.type,a=e.phone,u=e.width,d=e.height,f={},p={};switch(s){case"facebook":p.u=encodeURIComponent(t),f.url="https://www.facebook.com/sharer.php?"+(0,o.serialize)(p,"&"),f.title="Facebook Sharer";break;case"twitter":p.text=n,p.url=t,f.height=250,f.url="https://twitter.com/share?"+(0,o.serialize)(p,"&"),f.title="Twitter Sharer";break;case"pinterest":p.url=t,c&&(p.media=c),f.url="https://pinterest.com/pin/create/button/?"+(0,o.serialize)(p,"&"),f.title="Pinterest Sharer";break;case"google":case"gplus":p.url=t,f.url="https://plus.google.com/share?"+(0,o.serialize)(p,"&"),f.title="Google+ Sharer",f.width=400;break;case"linkedin":p.mini=!0,p.url=t,p.title=n||i,f.url="https://www.linkedin.com/shareArticle?"+(0,o.serialize)(p,"&"),f.title="Linkedin Sharer";break;case"reddit":p.url=t,p.title=n||i,f.url="https://www.reddit.com/submit?"+(0,o.serialize)(p,"&"),f.title="",f.width=850;break;case"whatsapp":p.phone=a.replace(/\+|(|)/gim,""),p.title=n||i,f.url="https://api.whatsapp.com/send?"+(0,o.serialize)(p,"&"),f.title="Whatsapp Message",f.width=850;break;case"messenger":f.url="https://m.me/"+l,f.title="Messenger Message",f.width=850;break;case"mail":f.url="mailto:"+t,f.title="_self";break;case"instagram":f.url=t,f.title="_self";break;default:return f}return f.extra=(0,o.serialize)(r({width:(f.width||u)+"px",height:(f.height||d)+"px"},function(e,t){if("undefined"==typeof window)return{top:0,left:0};var n=void 0!==window.screenLeft?window.screenLeft:screen.left,r=void 0!==window.screenTop?window.screenTop:screen.top,o=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width;return{top:(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-t/2+r,left:o/2-e/2+n}}(f.width||u,f.height||d)),","),f};var o=n(3)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var c={youtube:"M38.1,23H11.9c-4.1,0-7.6,3.4-7.6,7.6v6.1c0,4.1,3.4,7.6,7.6,7.6h26.3c4.1,0,7.6-3.4,7.6-7.6v-6.1C45.8,26.4,42.4,23,38.1,23z M17.4,27.7h-2.5v12.2h-2.4V27.7h-2.5v-2h7.3V27.7z M24.3,39.9h-2.1v-1.2c-0.4,0.4-0.8,0.8-1.2,0.9c-0.4,0.3-0.8,0.3-1.2,0.3c-0.5,0-0.8-0.2-1.1-0.5c-0.3-0.3-0.3-0.8-0.3-1.4v-8.6h2.1v8c0,0.3,0.1,0.4,0.2,0.5c0.1,0.1,0.3,0.2,0.4,0.2c0.2,0,0.3-0.1,0.6-0.3c0.3-0.2,0.4-0.3,0.7-0.6v-7.9h2.1v10.6H24.3z M31.9,37.7c0,0.8-0.2,1.4-0.5,1.7C31,39.8,30.5,40,29.9,40c-0.4,0-0.8-0.1-1.1-0.3c-0.3-0.2-0.6-0.4-0.9-0.7v0.8h-2.1V25.7h2.1v4.6c0.3-0.3,0.6-0.6,0.9-0.8c0.3-0.2,0.7-0.3,0.9-0.3c0.7,0,1.2,0.3,1.5,0.7s0.5,1.1,0.5,1.9L31.9,37.7L31.9,37.7z M39.2,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-0.3-1.3l0,0l0,0c-0.3-0.6-0.7-1-1.3-1.4c-0.5-0.3-1.2-0.5-1.8-0.5s-1.1,0.1-1.7,0.4c1.6,1.4,3,3.1,3.9,5.1c0.3-0.3,0.5-0.6,0.7-0.9C45.6,19.9,45.7,19.4,45.7,18.9z M32.9,29.2c-0.2-0.1-0.5-0.2-0.8-0.2c-0.2,0-0.5,0.1-0.7,0.2c-2.1,1.1-4.6,1.7-7.1,1.7c-1.9,0-3.7-0.3-5.4-1.1l0,0l0,0c-0.3-0.1-0.5-0.3-0.9-0.5c-0.2-0.1-0.3-0.2-0.5-0.2C17.3,29,17.1,29,16.9,29s-0.4,0-0.6,0.1l0,0l0,0c-0.3,0.1-0.5,0.3-0.7,0.5s-0.2,0.5-0.2,0.7s0.1,0.5,0.2,0.7c0.1,0.2,0.3,0.4,0.6,0.5c2.4,1.4,5.2,2.1,8.1,2.1c2.6,0,5.2-0.5,7.5-1.5l0,0l0,0c0.3-0.2,0.7-0.3,1.1-0.5c0.2-0.1,0.4-0.2,0.5-0.4c0.2-0.2,0.3-0.4,0.4-0.6l0,0c0-0.1,0-0.2,0-0.3c0-0.2-0.1-0.4-0.1-0.5C33.3,29.5,33.1,29.3,32.9,29.2zM16.8,19.8c-1.7,0-3.1,1.4-3.1,3.1s1.4,3.1,3.1,3.1s3.1-1.4,3.1-3.1C19.9,21.1,18.5,19.8,16.8,19.8z M32.1,19.8c-1.7,0-3.1,1.4-3.1,3.1s1.4,3.1,3.1,3.1s3.1-1.4,3.1-3.1C35.1,21.1,33.8,19.8,32.1,19.8z"};function l(e){var t=e.type,n=e.width,o=e.height,i=e.margin,l=e.color;return r.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",space:"preserve",viewBox:"0 0 50 50",style:{marginRight:i},width:n,height:o},r.default.createElement("path",{fill:l,d:c[t]}))}l.propTypes={type:o.default.string.isRequired,width:o.default.string.isRequired,height:o.default.string.isRequired,margin:o.default.string.isRequired,color:o.default.string.isRequired},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(0)),c=u(n(1)),l=n(4),s=n(2),a=n(3);function u(e){return e&&e.__esModule?e:{default:e}}var d="aws-btn",f=4,p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clearStagedWrapperAnimation=function(){n.timeout=setTimeout((function(){"undefined"!=typeof window&&window.requestAnimationFrame((function(){n.clearLoading((function(){setTimeout((function(){n.setState({blocked:!1,loadingError:!1,errorLabel:null})}),500)}))}))}),n.props.releaseDelay)},n.action=function(){var e=n.props.action||n.props.onPress;n.startLoading(),(0,l.onceTransitionEnd)(n.content).then((function(){e&&e(n.content,n.endLoading.bind(n)),(0,l.setCssEndEvent)(n.content,"transition",{tolerance:f}).then((function(){n.clearStagedWrapperAnimation()}))}))},n.rootElement=e.rootElement||d,n.animationStage=0,n.loading=!1,n.timeout=null,n.state={loadingEnd:!1,loadingStart:!1,loadingError:!1,errorLabel:null,blocked:!1,active:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.checkFakePress(e)}},{key:"componentWillUnmount",value:function(){this.timeout&&clearTimeout(this.timeout)}},{key:"getRootClassName",value:function(){var e=this.rootElement,t=this.state;return[t.loadingStart&&e+"--start"||null,t.loadingEnd&&e+"--end"||null,t.loadingError&&e+"--errored"||null,e+"--progress"].join(" ").trim().replace(/[\s]+/gi," ")}},{key:"checkFakePress",value:function(e){e.fakePress!==this.props.fakePress&&!0===e.fakePress&&this.action()}},{key:"endLoading",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.setState({loadingEnd:!0,loadingError:!e,errorLabel:t}),this.animationStage=1}},{key:"startLoading",value:function(){var e=this;this.loading=!0,this.setState({blocked:!0,active:!0},(function(){(0,l.beforeFutureCssLayout)(2,(function(){e.setState({loadingStart:!0})}))}))}},{key:"clearLoading",value:function(e){this.loading=!1,this.setState({loadingStart:!1,loadingEnd:!1,active:!1},e)}},{key:"moveEvents",value:function(){var e=this;return{onMouseDown:function(t){!0===e.props.disabled||!0===e.loading||!0===e.state.blocked||t&&1!==t.nativeEvent.which||(e.loading=!0)},onMouseUp:function(t){if(!0===e.props.disabled||!0===e.loading||!0===e.state.blocked)return t.preventDefault(),void t.stopPropagation();e.action()}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.size,c=t.cssModule,l=t.loadingLabel,u=t.resultLabel,d=(t.action,t.type),f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children","size","cssModule","loadingLabel","resultLabel","action","type"]),p=this.state,h=p.active,v=p.blocked,m=p.errorLabel;return i.default.createElement(s.AwesomeButton,r({size:o,type:d,className:this.getRootClassName(),action:this.action,cssModule:c,active:h,blocked:v},this.moveEvents(),f),i.default.createElement("span",{ref:function(t){e.content=t},"data-loading":l||null,"data-status":m||u||null,className:(0,a.getClassName)(this.rootElement+"__progress",c)},i.default.createElement("span",null,n)))}}]),t}(i.default.Component);p.propTypes={action:c.default.func,onPress:c.default.func,loadingLabel:c.default.string,resultLabel:c.default.string,rootElement:c.default.node,cssModule:c.default.object,children:c.default.node,disabled:c.default.bool,size:c.default.string,type:c.default.string,fakePress:c.default.bool,releaseDelay:c.default.number},p.defaultProps={action:null,onPress:null,rootElement:null,loadingLabel:"Wait..",resultLabel:"Success!",disabled:!1,cssModule:null,fakePress:!1,children:null,size:null,type:null,releaseDelay:500},t.default=p}])}));
{
"name": "react-awesome-button",
"version": "6.2.0",
"version": "6.3.0",
"description": "Performant, extendable, highly customisable, production ready React Component that renders an animated basic set of UI buttons",

@@ -22,6 +22,6 @@ "main": "dist/index.js",

"start": "webpack-dev-server -d --config webpack.demo.config.js",
"build": "NODE_ENV=production webpack",
"build:scss": "NODE_ENV=production webpack --config webpack.scss.config.js && rm ./dist/styles.js",
"build:website": "webpack -p --config webpack.website.config.js",
"build:server": "webpack -p --config webpack.server.config.js",
"build": "webpack --mode production",
"build:scss": "webpack --mode production --config webpack.scss.config.js && rm ./dist/styles.js",
"build:website": "webpack --mode production --config webpack.website.config.js",
"build:server": "webpack --mode production --config webpack.server.config.js",
"build:themes": "babel-node ./theme-builder.js",

@@ -84,2 +84,3 @@ "test": "BABEL_JEST_STAGE=0 jest",

"storybook-addon-smart-knobs": "^3.3.1",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"style-loader": "^0.19.1",

@@ -103,4 +104,3 @@ "terser-webpack-plugin": "^2.1.2",

"dependencies": {
"optimize-css-assets-webpack-plugin": "^5.0.3",
"web-animation-club": "^0.5.0"
"web-animation-club": "^0.6.0"
},

@@ -107,0 +107,0 @@ "loki": {

@@ -10,5 +10,7 @@ import fs from 'fs';

fs.readdir(THEMES, (err, files) => {
files.forEach((file) => {
if (file.match(/theme-/ig)) {
shell.exec(`${THEMES_ARG}=${file} webpack --config webpack.themes.config.js`);
files.forEach(file => {
if (file.match(/theme-/gi)) {
shell.exec(
`${THEMES_ARG}=${file} webpack --mode production --config webpack.themes.config.js`
);
shell.exec(`rm ${THEMES_PATH}/${file}.js`);

@@ -15,0 +17,0 @@ }

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

const webpack = require('webpack');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');

@@ -3,0 +2,0 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');

const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const webpack = require('webpack');
const path = require('path');

@@ -81,7 +80,2 @@

}),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production'),
},
}),
],

@@ -88,0 +82,0 @@ };

const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const webpack = require('webpack');
const path = require('path');

@@ -80,7 +79,2 @@

}),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production'),
},
}),
],

@@ -87,0 +81,0 @@ };

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

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc