text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["react-cloud-popup-panel-mobile"]=t():e["react-cloud-popup-panel-mobile"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function u(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)}Object.defineProperty(t,"__esModule",{value:!0});var a=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}}(),l=n(1),c=r(l),p=n(4),s=r(p);n(7);var f=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.props=e,n}return u(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this;document.getElementsByClassName("cloud-popup-panel-body")[0].addEventListener("touchmove",function(t){e.props.open&&t.stopPropagation()},{passive:!1}),document.getElementsByClassName("cloud-popup-panel-glass")[0].addEventListener("touchmove",function(t){e.props.open&&(t.preventDefault(),t.stopPropagation())},{passive:!1})}},{key:"handleCloseClick",value:function(){this.props.closeFunc()}},{key:"render",value:function(){return c.default.createElement("div",{className:"cloud-popup-panel-container"+(this.props.open?" popup":"")},c.default.createElement("div",{className:"cloud-popup-panel-glass"}),c.default.createElement("div",{className:"cloud-popup-panel-header"},this.props.title,c.default.createElement("span",{className:"close-btn",onClick:this.handleCloseClick.bind(this)},"×")),c.default.createElement("div",{className:"cloud-popup-panel-body "+(this.props.hasButton?"with-footer":"without-footer")},this.props.children.props.children[0]),this.props.hasButton?c.default.createElement("div",{className:"cloud-popup-panel-footer"},this.props.children.props.children[1]):"")}}]),t}(c.default.Component);t.default=f,f.propTypes={title:s.default.string.isRequired,hasButton:s.default.bool.isRequired,open:s.default.bool.isRequired,closeFunc:s.default.func.isRequired,children:s.default.element}},function(e,t,n){"use strict";e.exports=n(2)},function(e,t,n){"use strict";function r(e,t,n,r,o,i,u,a){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,u,a],c=0;e=Error(t.replace(/%s/g,function(){return l[c++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function o(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);r(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function i(e,t,n){this.props=e,this.context=t,this.refs=N,this.updater=n||L}function u(){}function a(e,t,n){this.props=e,this.context=t,this.refs=N,this.updater=n||L}function l(e,t,n){var r=void 0,o={},i=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(i=""+t.key),t)B.call(t,r)&&!M.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return{$$typeof:j,type:e,key:i,ref:u,props:o,_owner:A.current}}function c(e,t){return{$$typeof:j,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function p(e){return"object"==typeof e&&null!==e&&e.$$typeof===j}function s(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function f(e,t,n,r){if(I.length){var o=I.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function d(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>I.length&&I.push(e)}function h(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var u=!1;if(null===e)u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case j:case x:u=!0}}if(u)return n(r,e,""===t?"."+v(e,0):t),1;if(u=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){i=e[a];var l=t+v(i,a);u+=h(i,l,n,r)}else if(null===e||"object"!=typeof e?l=null:(l=T&&e[T]||e["@@iterator"],l="function"==typeof l?l:null),"function"==typeof l)for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=t+v(i,a++),u+=h(i,l,n,r);else"object"===i&&(n=""+e,o("31","[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return u}function y(e,t,n){return null==e?0:h(e,"",t,n)}function v(e,t){return"object"==typeof e&&null!==e&&null!=e.key?s(e.key):t.toString(36)}function m(e,t){e.func.call(e.context,t,e.count++)}function b(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?g(e,r,n,function(e){return e}):null!=e&&(p(e)&&(e=c(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(q,"$&/")+"/")+n)),r.push(e))}function g(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(q,"$&/")+"/"),t=f(t,i,r,o),y(e,b,t),d(t)}function w(e,t){var n=A.currentDispatcher;return null===n&&o("277"),n.readContext(e,t)}/** @license React v16.5.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.
   */
  var O=n(3),_="function"==typeof Symbol&&Symbol.for,j=_?Symbol.for("react.element"):60103,x=_?Symbol.for("react.portal"):60106,k=_?Symbol.for("react.fragment"):60107,S=_?Symbol.for("react.strict_mode"):60108,E=_?Symbol.for("react.profiler"):60114,C=_?Symbol.for("react.provider"):60109,P=_?Symbol.for("react.context"):60110,R=_?Symbol.for("react.async_mode"):60111,U=_?Symbol.for("react.forward_ref"):60112;_&&Symbol.for("react.placeholder");var T="function"==typeof Symbol&&Symbol.iterator,L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N={};i.prototype.isReactComponent={},i.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&o("85"),this.updater.enqueueSetState(this,e,t,"setState")},i.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},u.prototype=i.prototype;var $=a.prototype=new u;$.constructor=a,O($,i.prototype),$.isPureReactComponent=!0;var A={current:null,currentDispatcher:null},B=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0},q=/\/+/g,I=[],D={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return g(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=f(null,null,t,n),y(e,m,t),d(t)},count:function(e){return y(e,function(){return null},null)},toArray:function(e){var t=[];return g(e,t,null,function(e){return e}),t},only:function(e){return p(e)||o("143"),e}},createRef:function(){return{current:null}},Component:i,PureComponent:a,createContext:function(e,t){return void 0===t&&(t=null),e={$$typeof:P,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,Provider:null,Consumer:null,unstable_read:null},e.Provider={$$typeof:C,_context:e},e.Consumer=e,e.unstable_read=w.bind(null,e),e},forwardRef:function(e){return{$$typeof:U,render:e}},Fragment:k,StrictMode:S,unstable_AsyncMode:R,unstable_Profiler:E,createElement:l,cloneElement:function(e,t,n){(null===e||void 0===e)&&o("267",e);var r=void 0,i=O({},e.props),u=e.key,a=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(a=t.ref,l=A.current),void 0!==t.key&&(u=""+t.key);var c=void 0;e.type&&e.type.defaultProps&&(c=e.type.defaultProps);for(r in t)B.call(t,r)&&!M.hasOwnProperty(r)&&(i[r]=void 0===t[r]&&void 0!==c?c[r]:t[r])}if(1===(r=arguments.length-2))i.children=n;else if(1<r){c=Array(r);for(var p=0;p<r;p++)c[p]=arguments[p+2];i.children=c}return{$$typeof:j,type:e.type,key:u,ref:a,props:i,_owner:l}},createFactory:function(e){var t=l.bind(null,e);return t.type=e,t},isValidElement:p,version:"16.5.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:A,assign:O}},F={default:D},Y=F&&D||F;e.exports=Y.default||Y},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/*
  object-assign
  (c) Sindre Sorhus
  @license MIT
  */
  var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var p in n)i.call(n,p)&&(l[p]=n[p]);if(o){a=o(n);for(var s=0;s<a.length;s++)u.call(n,a[s])&&(l[a[s]]=n[a[s]])}}return l}},function(e,t,n){e.exports=n(5)()},function(e,t,n){"use strict";function r(){}var o=n(6);e.exports=function(){function e(e,t,n,r,i,u){if(u!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(8);"string"==typeof r&&(r=[[e.i,r,""]]);n(10)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(9)(),t.push([e.i,".cloud-popup-panel-container {\n  width: 100vw;\n  height: 100vh;\n  position: fixed;\n  z-index: 8000;\n  bottom: -100vh; }\n  .cloud-popup-panel-container .cloud-popup-panel-glass {\n    height: 30vh; }\n  .cloud-popup-panel-container .cloud-popup-panel-header {\n    height: 5vh;\n    background-color: #ddd;\n    text-align: center;\n    line-height: 5vh; }\n    .cloud-popup-panel-container .cloud-popup-panel-header .close-btn {\n      position: absolute;\n      right: 1vw;\n      line-height: 5vh;\n      font-size: 1.7rem;\n      color: #777; }\n  .cloud-popup-panel-container .cloud-popup-panel-body {\n    background-color: #fff;\n    overflow-y: scroll;\n    margin-right: -20px;\n    padding-right: 20px; }\n  .cloud-popup-panel-container .with-footer {\n    height: 58vh; }\n  .cloud-popup-panel-container .without-footer {\n    height: 65vh; }\n  .cloud-popup-panel-container .cloud-popup-panel-footer {\n    height: 7vh;\n    background-color: #fff; }\n    .cloud-popup-panel-container .cloud-popup-panel-footer button {\n      height: 7vh; }\n\n@keyframes popup {\n  0% {\n    opacity: 0;\n    transform: translateY(0vh); }\n  100% {\n    opacity: 1;\n    transform: translateY(-100vh); } }\n\n@-webkit-keyframes popup {\n  0% {\n    opacity: 0;\n    transform: translateY(0); }\n  100% {\n    opacity: 1;\n    transform: translateY(100vh); } }\n\n.popup {\n  animation-fill-mode: both;\n  animation-duration: 1s;\n  animation-name: popup; }\n",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var u=t[o];"number"==typeof u[0]&&r[u[0]]||(n&&!u[2]?u[2]=n:n&&(u[2]="("+u[2]+") and ("+n+")"),e.push(u))}},e}},function(e,t){function n(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=f[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(l(r.parts[i],t))}else{for(var u=[],i=0;i<r.parts.length;i++)u.push(l(r.parts[i],t));f[r.id]={id:r.id,refs:1,parts:u}}}}function r(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],u=o[1],a=o[2],l=o[3],c={css:u,media:a,sourceMap:l};n[i]?n[i].parts.push(c):t.push(n[i]={id:i,parts:[c]})}return t}function o(e,t){var n=y(),r=b[b.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),b.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=b.indexOf(e);t>=0&&b.splice(t,1)}function u(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function a(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}function l(e,t){var n,r,o;if(t.singleton){var l=m++;n=v||(v=u(t)),r=c.bind(null,n,l,!1),o=c.bind(null,n,l,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=a(t),r=s.bind(null,n),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=u(t),r=p.bind(null,n),o=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function c(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,o);else{var i=document.createTextNode(o),u=e.childNodes;u[t]&&e.removeChild(u[t]),u.length?e.insertBefore(i,u[t]):e.appendChild(i)}}function p(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function s(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var f={},d=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},h=d(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),y=d(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,m=0,b=[];e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},void 0===t.singleton&&(t.singleton=h()),void 0===t.insertAt&&(t.insertAt="bottom");var o=r(e);return n(o,t),function(e){for(var i=[],u=0;u<o.length;u++){var a=o[u],l=f[a.id];l.refs--,i.push(l)}if(e){n(r(e),t)}for(var u=0;u<i.length;u++){var l=i[u];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete f[l.id]}}}};var g=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()}])});