react-smartbanner
Version:
Smart app banner react version.
1 lines • 37.5 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","prop-types","react-dom"],t):"object"==typeof exports?exports.SmartBanner=t(require("react"),require("prop-types"),require("react-dom")):e.SmartBanner=t(e.React,e.PropTypes,e.ReactDOM)}("undefined"!=typeof self?self:this,function(n,r,o){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=9)}([function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){t=e.exports=function(o){o||(o={}),"string"==typeof o&&(o={cookie:o}),void 0===o.cookie&&(o.cookie="");var e={get:function(e){for(var t=o.cookie.split(/;\s*/),n=0;n<t.length;n++){var r=t[n].split("=");if(unescape(r[0])===e)return unescape(r[1])}},set:function(e,t,n){n||(n={});var r=escape(e)+"="+escape(t);return n.expires&&(r+="; expires="+n.expires),n.path&&(r+="; path="+escape(n.path)),o.cookie=r}};return e};if("undefined"!=typeof document){var n=t(document);t.get=n.get,t.set=n.set}},function(e,t,i){"use strict";i.r(t);var s=i(0),a=i.n(s),n=i(1),r=i.n(n);i(4);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(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)}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h,m,w="undefined"!=typeof window,b=function(e){var t=new Date;return t.setDate(t.getDate()+e),t.toUTCString()},o=function(e){function o(e){var t,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),n=this,r=l(o).call(this,e),d(f(f(t=!r||"object"!==u(r)&&"function"!=typeof r?f(n):r)),"hide",function(){w&&window.document.querySelector("html").classList.remove("smartbanner-show")}),d(f(f(t)),"show",function(){w&&window.document.querySelector("html").classList.add("smartbanner-show")}),d(f(f(t)),"close",function(){t.hide(),m.set("smartbanner-closed","true",{path:"/",expires:b(t.props.daysHidden)}),t.props.onClose&&"function"==typeof t.props.onClose&&t.props.onClose()}),d(f(f(t)),"install",function(){t.hide(),m.set("smartbanner-installed","true",{path:"/",expires:b(t.props.daysReminder)}),t.props.onInstall&&"function"==typeof t.props.onInstall&&t.props.onInstall()}),h=i(5),m=i(2),t.state={type:"",appId:"",settings:{}},t}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(o,s["Component"]),t=o,(n=[{key:"UNSAFE_componentWillMount",value:function(){this.setType(this.props.force)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.force!==this.props.force&&this.setType(e.force),"top"===e.position?(window.document.querySelector("html").classList.add("smartbanner-margin-top"),window.document.querySelector("html").classList.remove("smartbanner-margin-bottom")):"bottom"===e.position&&(window.document.querySelector("html").classList.add("smartbanner-margin-bottom"),window.document.querySelector("html").classList.remove("smartbanner-margin-top"))}},{key:"componentWillUnmount",value:function(){var e=window.document.querySelector("html");e.classList.remove("smartbanner-show"),e.classList.remove("smartbanner-margin-top"),e.classList.remove("smartbanner-margin-bottom")}},{key:"setType",value:function(e){var t,n=this;if(w){var r=h(window.navigator.userAgent);e?t=e:"Windows Phone"===r.os.name||"Windows Mobile"===r.os.name?t="windows":"iOS"===r.os.name&&(this.props.ignoreIosVersion||parseInt(r.os.version,10)<6||"Mobile Safari"!==r.browser.name)?t="ios":"Amazon"===r.device.vender||"Silk"===r.browser.name?t="kindle":"Android"===r.os.name&&(t="android")}this.setState({type:t},function(){t&&n.setSettingsByType()})}},{key:"setSettingsByType",value:function(){var e=this,t={ios:{appMeta:function(){return e.props.appMeta.ios},iconRels:["apple-touch-icon-precomposed","apple-touch-icon"],getStoreLink:function(){return"https://itunes.apple.com/".concat(e.props.appStoreLanguage,"/app/id")}},android:{appMeta:function(){return e.props.appMeta.android},iconRels:["android-touch-icon","apple-touch-icon-precomposed","apple-touch-icon"],getStoreLink:function(){return"http://play.google.com/store/apps/details?id="}},windows:{appMeta:function(){return e.props.appMeta.windows},iconRels:["windows-touch-icon","apple-touch-icon-precomposed","apple-touch-icon"],getStoreLink:function(){return"http://www.windowsphone.com/s?appid="}},kindle:{appMeta:function(){return e.props.appMeta.kindle},iconRels:["windows-touch-icon","apple-touch-icon-precomposed","apple-touch-icon"],getStoreLink:function(){return"amzn://apps/android?asin="}}};this.setState(function(e){return{settings:t[e.type]}},function(){e.state.type&&e.parseAppId()})}},{key:"parseAppId",value:function(){if(!w)return"";var e=window.document.querySelector('meta[name="'.concat(this.state.settings.appMeta(),'"]'));if(!e)return"";var t="";if("windows"===this.state.type)t=e.getAttribute("content");else{var n=/app-id=([^\s,]+)/.exec(e.getAttribute("content"));t=n&&n[1]?n[1]:t}return this.setState({appId:t}),t}},{key:"retrieveInfo",value:function(){var e,t="".concat(this.props.url[this.state.type])||this.state.settings.getStoreLink()+this.state.appId,n="\n ".concat(this.props.price[this.state.type]," - ").concat(this.props.storeText[this.state.type]);if(w)for(var r=0,o=this.state.settings.iconRels.length;r<o;r++){var i=window.document.querySelector('link[rel="'.concat(this.state.settings.iconRels[r],'"]'));if(i){e=i.getAttribute("href");break}}return{icon:e,link:t,inStore:n}}},{key:"render",value:function(){if(!w)return a.a.createElement("div",null);if(!this.state.type||window.navigator.standalone||m.get("smartbanner-closed")||m.get("smartbanner-installed"))return a.a.createElement("div",null);if(!this.state.appId)return a.a.createElement("div",null);this.show();var e=this.retrieveInfo(),t=e.icon,n=e.link,r=e.inStore,o="smartbanner smartbanner-".concat(this.state.type," smartbanner-").concat(this.props.position),i={backgroundImage:"url(".concat(t,")")};return a.a.createElement("div",{className:o},a.a.createElement("div",{className:"smartbanner-container"},a.a.createElement("button",{type:"button",className:"smartbanner-close","aria-label":"close",onClick:this.close},"×"),a.a.createElement("span",{className:"smartbanner-icon",style:i}),a.a.createElement("div",{className:"smartbanner-info"},a.a.createElement("div",{className:"smartbanner-title"},this.props.title),a.a.createElement("div",{className:"smartbanner-author"},this.props.author),a.a.createElement("div",{className:"smartbanner-description"},r)),a.a.createElement("div",{className:"smartbanner-wrapper"},a.a.createElement("a",{href:n,onClick:this.install,className:"smartbanner-button"},a.a.createElement("span",{className:"smartbanner-button-text"},this.props.button)))))}}])&&c(t.prototype,n),r&&c(t,r),o}();d(o,"propTypes",{daysHidden:r.a.number,daysReminder:r.a.number,appStoreLanguage:r.a.string,button:r.a.node,storeText:r.a.objectOf(r.a.string),price:r.a.objectOf(r.a.string),force:r.a.string,title:r.a.string,author:r.a.string,position:r.a.string,url:r.a.objectOf(r.a.string),ignoreIosVersion:r.a.bool,appMeta:r.a.shape({android:r.a.string,ios:r.a.string,windows:r.a.string,kindle:r.a.string}),onClose:r.a.func,onInstall:r.a.func}),d(o,"defaultProps",{daysHidden:15,daysReminder:90,appStoreLanguage:w&&(window.navigator.language||window.navigator.userLanguage).slice(-2)||"us",button:"View",storeText:{ios:"On the App Store",android:"In Google Play",windows:"In Windows Store",kindle:"In the Amazon Appstore"},price:{ios:"Free",android:"Free",windows:"Free",kindle:"Free"},force:"",title:"",author:"",position:"top",url:{ios:"",android:"",windows:"",kindle:""},appMeta:{ios:"apple-itunes-app",android:"google-play-app",windows:"msApplication-ID",kindle:"kindle-fire-app"}}),t.default=o},function(e,t,n){},function(E,k,S){var T;!function(o,p){"use strict";var f="function",d="undefined",h="object",e="model",t="name",n="type",r="vendor",i="version",s="architecture",a="console",u="mobile",c="tablet",l="smarttv",m="wearable",w={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:p},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},b={rgx:function(){for(var e,t,n,r,o,i,s,a=0,u=arguments;a<u.length&&!i;){var c=u[a],l=u[a+1];if(typeof e===d)for(r in e={},l)l.hasOwnProperty(r)&&(typeof(o=l[r])===h?e[o[0]]=p:e[o]=p);for(t=n=0;t<c.length&&!i;)if(i=c[t++].exec(this.getUA()))for(r=0;r<l.length;r++)s=i[++n],typeof(o=l[r])===h&&0<o.length?2==o.length?typeof o[1]==f?e[o[0]]=o[1].call(this,s):e[o[0]]=o[1]:3==o.length?typeof o[1]!==f||o[1].exec&&o[1].test?e[o[0]]=s?s.replace(o[1],o[2]):p:e[o[0]]=s?o[1].call(this,s,o[2]):p:4==o.length&&(e[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):p):e[o]=s||p;a+=2}return e},str:function(e,t){for(var n in t)if(typeof t[n]===h&&0<t[n].length){for(var r=0;r<t[n].length;r++)if(w.has(t[n][r],e))return"?"===n?p:n}else if(w.has(t[n],e))return"?"===n?p:n;return e}},y={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},g={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[t,i],[/(opios)[\/\s]+([\w\.]+)/i],[[t,"Opera Mini"],i],[/\s(opr)\/([\w\.]+)/i],[[t,"Opera"],i],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs)\/([\w\.-]+)/i],[t,i],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[t,"IE"],i],[/(edge)\/((\d+)?[\w\.]+)/i],[t,i],[/(yabrowser)\/([\w\.]+)/i],[[t,"Yandex"],i],[/(comodo_dragon)\/([\w\.]+)/i],[[t,/_/g," "],i],[/(micromessenger)\/([\w\.]+)/i],[[t,"WeChat"],i],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[i,[t,"MIUI Browser"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[t,/(.+)/,"$1 WebView"],i],[/android.+samsungbrowser\/([\w\.]+)/i,/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[i,[t,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i,/(qqbrowser)[\/\s]?([\w\.]+)/i],[t,i],[/(uc\s?browser)[\/\s]?([\w\.]+)/i,/ucweb.+(ucbrowser)[\/\s]?([\w\.]+)/i,/juc.+(ucweb)[\/\s]?([\w\.]+)/i],[[t,"UCBrowser"],i],[/(dolfin)\/([\w\.]+)/i],[[t,"Dolphin"],i],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[t,"Chrome"],i],[/;fbav\/([\w\.]+);/i],[i,[t,"Facebook"]],[/fxios\/([\w\.-]+)/i],[i,[t,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[i,[t,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[i,t],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[t,[i,b.str,y.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[t,i],[/(navigator|netscape)\/([\w\.-]+)/i],[[t,"Netscape"],i],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[t,i]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[s,"amd64"]],[/(ia32(?=;))/i],[[s,w.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[s,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[s,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[s,/ower/,"",w.lowerize]],[/(sun4\w)[;\)]/i],[[s,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[s,w.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[e,r,[n,c]],[/applecoremedia\/[\w\.]+ \((ipad)/],[e,[r,"Apple"],[n,c]],[/(apple\s{0,1}tv)/i],[[e,"Apple TV"],[r,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[r,e,[n,c]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],[e,[r,"Amazon"],[n,c]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[[e,b.str,y.device.amazon.model],[r,"Amazon"],[n,u]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[e,r,[n,u]],[/\((ip[honed|\s\w*]+);/i],[e,[r,"Apple"],[n,u]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[r,e,[n,u]],[/\(bb10;\s(\w+)/i],[e,[r,"BlackBerry"],[n,u]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[e,[r,"Asus"],[n,c]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[r,"Sony"],[e,"Xperia Tablet"],[n,c]],[/(?:sony)?(?:(?:(?:c|d)\d{4})|(?:so[-l].+))\sbuild\//i],[[r,"Sony"],[e,"Xperia Phone"],[n,u]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[r,e,[n,a]],[/android.+;\s(shield)\sbuild/i],[e,[r,"Nvidia"],[n,a]],[/(playstation\s[34portablevi]+)/i],[e,[r,"Sony"],[n,a]],[/(sprint\s(\w+))/i],[[r,b.str,y.device.sprint.vendor],[e,b.str,y.device.sprint.model],[n,u]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[r,e,[n,c]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[r,[e,/_/g," "],[n,u]],[/(nexus\s9)/i],[e,[r,"HTC"],[n,c]],[/(nexus\s6p)/i],[e,[r,"Huawei"],[n,u]],[/(microsoft);\s(lumia[\s\w]+)/i],[r,e,[n,u]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[e,[r,"Microsoft"],[n,a]],[/(kin\.[onetw]{3})/i],[[e,/\./g," "],[r,"Microsoft"],[n,u]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[e,[r,"Motorola"],[n,u]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[e,[r,"Motorola"],[n,c]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[r,w.trim],[e,w.trim],[n,l]],[/hbbtv.+maple;(\d+)/i],[[e,/^/,"SmartTV"],[r,"Samsung"],[n,l]],[/\(dtv[\);].+(aquos)/i],[e,[r,"Sharp"],[n,l]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[r,"Samsung"],e,[n,c]],[/smart-tv.+(samsung)/i],[r,[n,l],e],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[r,"Samsung"],e,[n,u]],[/sie-(\w+)*/i],[e,[r,"Siemens"],[n,u]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[r,"Nokia"],e,[n,u]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[e,[r,"Acer"],[n,c]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[r,"LG"],e,[n,c]],[/(lg) netcast\.tv/i],[r,e,[n,l]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i],[e,[r,"LG"],[n,u]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[e,[r,"Lenovo"],[n,c]],[/linux;.+((jolla));/i],[r,e,[n,u]],[/((pebble))app\/[\d\.]+\s/i],[r,e,[n,m]],[/android.+;\s(glass)\s\d/i],[e,[r,"Google"],[n,m]],[/android.+(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d\w)?)\s+build/i],[[e,/_/g," "],[r,"Xiaomi"],[n,u]],[/android.+a000(1)\s+build/i],[e,[r,"OnePlus"],[n,u]],[/\s(tablet)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[n,w.lowerize],r,e]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[i,[t,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[t,i],[/rv\:([\w\.]+).*(gecko)/i],[i,t]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[t,i],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s]+\w)*/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[t,[i,b.str,y.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[t,"Windows"],[i,b.str,y.os.windows.version]],[/\((bb)(10);/i],[[t,"BlackBerry"],i],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[t,i],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[t,"Symbian"],i],[/\((series40);/i],[t],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[t,"Firefox OS"],i],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[t,i],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[t,"Chromium OS"],i],[/(sunos)\s?([\w\.]+\d)*/i],[[t,"Solaris"],i],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[t,i],[/(haiku)\s(\w+)/i],[t,i],[/(ip[honead]+)(?:.*os\s([\w]+)*\slike\smac|;\sopera)/i],[[t,"iOS"],[i,/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[t,"Mac OS"],[i,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[t,i]]},v=function(e,t){if(!(this instanceof v))return new v(e,t).getResult();var n=e||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),r=t?w.extend(g,t):g;return this.getBrowser=function(){var e=b.rgx.apply(this,r.browser);return e.major=w.major(e.version),e},this.getCPU=function(){return b.rgx.apply(this,r.cpu)},this.getDevice=function(){return b.rgx.apply(this,r.device)},this.getEngine=function(){return b.rgx.apply(this,r.engine)},this.getOS=function(){return b.rgx.apply(this,r.os)},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=e,this},this};v.VERSION="0.7.12",v.BROWSER={NAME:t,MAJOR:"major",VERSION:i},v.CPU={ARCHITECTURE:s},v.DEVICE={MODEL:e,VENDOR:r,TYPE:n,CONSOLE:a,MOBILE:u,SMARTTV:l,TABLET:c,WEARABLE:m,EMBEDDED:"embedded"},v.ENGINE={NAME:t,VERSION:i},v.OS={NAME:t,VERSION:i},typeof k!==d?(typeof E!==d&&E.exports&&(k=E.exports=v),k.UAParser=v):S(6)?(T=function(){return v}.call(k,S,k,E))===p||(E.exports=T):o.UAParser=v;var _=o.jQuery||o.Zepto;if(typeof _!==d){var x=new v;_.ua=x.getResult(),_.ua.get=function(){return x.getUA()},_.ua.set=function(e){x.setUA(e);var t=x.getResult();for(var n in t)_.ua[n]=t[n]}}}("object"==typeof window?window:this)},function(t,e){(function(e){t.exports=e}).call(this,{})},function(e,t,n){"use strict";var o=n(12);function s(){}var i=null,a={};function u(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._45=0,this._81=0,this._65=null,this._54=null,e!==s&&d(e,this)}function c(e,t){for(;3===e._81;)e=e._65;if(u._10&&u._10(e),0===e._81)return 0===e._45?(e._45=1,void(e._54=t)):1===e._45?(e._45=2,void(e._54=[e._54,t])):void e._54.push(t);var n,r;n=e,r=t,o(function(){var e=1===n._81?r.onFulfilled:r.onRejected;if(null!==e){var t=function(e,t){try{return e(t)}catch(e){return i=e,a}}(e,n._65);t===a?p(r.promise,i):l(r.promise,t)}else 1===n._81?l(r.promise,n._65):p(r.promise,n._65)})}function l(e,t){if(t===e)return p(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var n=function(e){try{return e.then}catch(e){return i=e,a}}(t);if(n===a)return p(e,i);if(n===e.then&&t instanceof u)return e._81=3,e._65=t,void r(e);if("function"==typeof n)return void d(n.bind(t),e)}e._81=1,e._65=t,r(e)}function p(e,t){e._81=2,e._65=t,u._97&&u._97(e,t),r(e)}function r(e){if(1===e._45&&(c(e,e._54),e._54=null),2===e._45){for(var t=0;t<e._54.length;t++)c(e,e._54[t]);e._54=null}}function f(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function d(e,t){var n=!1,r=function(e,t,n){try{e(t,n)}catch(e){return i=e,a}}(e,function(e){n||(n=!0,l(t,e))},function(e){n||(n=!0,p(t,e))});n||r!==a||(n=!0,p(t,i))}(e.exports=u)._10=null,u._97=null,u._61=s,u.prototype.then=function(e,t){if(this.constructor!==u)return o=e,i=t,new(r=this).constructor(function(e,t){var n=new u(s);n.then(e,t),c(r,new f(o,i,n))});var r,o,i,n=new u(s);return c(this,new f(e,t,n)),n}},function(e,t){e.exports=o},function(e,t,n){n(10),e.exports=n(17)},function(e,t,n){"undefined"==typeof Promise&&(n(11).enable(),window.Promise=n(14)),n(15),Object.assign=n(16)},function(e,t,n){"use strict";var a=n(7),u=[ReferenceError,TypeError,RangeError],c=!1;function l(){c=!1,a._10=null,a._97=null}function p(t,e){return e.some(function(e){return t instanceof e})}t.disable=l,t.enable=function(r){r=r||{},c&&l();c=!0;var n=0,o=0,i={};function s(e){var t,n;(r.allRejections||p(i[e].error,r.whitelist||u))&&(i[e].displayId=o++,r.onUnhandled?(i[e].logged=!0,r.onUnhandled(i[e].displayId,i[e].error)):(i[e].logged=!0,t=i[e].displayId,n=i[e].error,console.warn("Possible Unhandled Promise Rejection (id: "+t+"):"),((n&&(n.stack||n))+"").split("\n").forEach(function(e){console.warn(" "+e)})))}a._10=function(e){var t;2===e._81&&i[e._72]&&(i[e._72].logged?(t=e._72,i[t].logged&&(r.onHandled?r.onHandled(i[t].displayId,i[t].error):i[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+i[t].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+i[t].displayId+".")))):clearTimeout(i[e._72].timeout),delete i[e._72])},a._97=function(e,t){0===e._45&&(e._72=n++,i[e._72]={displayId:null,error:t,timeout:setTimeout(s.bind(null,e._72),p(t,u)?100:2e3),logged:!1})}}},function(f,e,t){"use strict";(function(e){function t(e){r.length||(n(),!0),r[r.length]=e}f.exports=t;var n,r=[],o=0;function i(){for(;o<r.length;){var e=o;if(o+=1,r[e].call(),1024<o){for(var t=0,n=r.length-o;t<n;t++)r[t]=r[t+o];r.length-=o,o=0}}r.length=0,o=0,!1}var s,a,u,c=void 0!==e?e:self,l=c.MutationObserver||c.WebKitMutationObserver;function p(r){return function(){var e=setTimeout(n,0),t=setInterval(n,50);function n(){clearTimeout(e),clearInterval(t),r()}}}n="function"==typeof l?(s=1,a=new l(i),u=document.createTextNode(""),a.observe(u,{characterData:!0}),function(){s=-s,u.data=s}):p(i),t.requestFlush=n,t.makeRequestCallFromTimer=p}).call(this,t(13))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var u=n(7);e.exports=u;var r=l(!0),o=l(!1),i=l(null),s=l(void 0),a=l(0),c=l("");function l(e){var t=new u(u._61);return t._81=1,t._65=e,t}u.resolve=function(e){if(e instanceof u)return e;if(null===e)return i;if(void 0===e)return s;if(!0===e)return r;if(!1===e)return o;if(0===e)return a;if(""===e)return c;if("object"==typeof e||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new u(t.bind(e))}catch(n){return new u(function(e,t){t(n)})}return l(e)},u.all=function(e){var a=Array.prototype.slice.call(e);return new u(function(r,o){if(0===a.length)return r([]);var i=a.length;function s(t,e){if(e&&("object"==typeof e||"function"==typeof e)){if(e instanceof u&&e.then===u.prototype.then){for(;3===e._81;)e=e._65;return 1===e._81?s(t,e._65):(2===e._81&&o(e._65),void e.then(function(e){s(t,e)},o))}var n=e.then;if("function"==typeof n)return void new u(n.bind(e)).then(function(e){s(t,e)},o)}a[t]=e,0==--i&&r(a)}for(var e=0;e<a.length;e++)s(e,a[e])})},u.reject=function(n){return new u(function(e,t){t(n)})},u.race=function(e){return new u(function(t,n){e.forEach(function(e){u.resolve(e).then(t,n)})})},u.prototype.catch=function(e){return this.then(null,e)}},function(e,t){!function(e){"use strict";if(!e.fetch){var t="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,s="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),r="FormData"in e,o="ArrayBuffer"in e;if(o)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=function(e){return e&&DataView.prototype.isPrototypeOf(e)},u=ArrayBuffer.isView||function(e){return e&&-1<i.indexOf(Object.prototype.toString.call(e))};h.prototype.append=function(e,t){e=p(e),t=f(t);var n=this.map[e];this.map[e]=n?n+","+t:t},h.prototype.delete=function(e){delete this.map[p(e)]},h.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},h.prototype.set=function(e,t){this.map[p(e)]=f(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),d(n)},h.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},h.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),d(n)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var c=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},g.call(v.prototype),g.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var l=[301,302,303,307,308];x.redirect=function(e,t){if(-1===l.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},e.Headers=h,e.Request=v,e.Response=x,e.fetch=function(n,o){return new Promise(function(r,e){var t=new v(n,o),i=new XMLHttpRequest;i.onload=function(){var e,o,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",o=new h,e.split(/\r?\n/).forEach(function(e){var t=e.split(":"),n=t.shift().trim();if(n){var r=t.join(":").trim();o.append(n,r)}}),o)};t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL");var n="response"in i?i.response:i.responseText;r(new x(n,t))},i.onerror=function(){e(new TypeError("Network request failed"))},i.ontimeout=function(){e(new TypeError("Network request failed"))},i.open(t.method,t.url,!0),"include"===t.credentials&&(i.withCredentials=!0),"responseType"in i&&s&&(i.responseType="blob"),t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function f(e){return"string"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function w(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function b(e){var t=new FileReader,n=w(t);return t.readAsArrayBuffer(e),n}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if("string"==typeof e)this._bodyText=e;else if(s&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(r&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(o&&s&&a(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!o||!ArrayBuffer.prototype.isPrototypeOf(e)&&!u(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=y(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var e,t,n,r=m(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=w(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}function v(e,t){var n,r,o=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),-1<c.indexOf(r)?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function _(e){var o=new FormData;return e.trim().split("&").forEach(function(e){if(e){var t=e.split("="),n=t.shift().replace(/\+/g," "),r=t.join("=").replace(/\+/g," ");o.append(decodeURIComponent(n),decodeURIComponent(r))}}),o}function x(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=200<=this.status&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},function(e,t,n){"use strict";var u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=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,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var s in n=Object(arguments[i]))c.call(n,s)&&(o[s]=n[s]);if(u){r=u(n);for(var a=0;a<r.length;a++)l.call(n,r[a])&&(o[r[a]]=n[r[a]])}}return o}},function(e,t,n){"use strict";n.r(t);var o=n(0),i=n.n(o),r=n(8),s=n.n(r),u=n(3),a=n(2),c=n.n(a);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(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)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var m=function(e){function a(e){var t,n,r,o,i,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),n=this,t=!(r=f(a).call(this,e))||"object"!==l(r)&&"function"!=typeof r?h(n):r,o=h(h(t)),s=function(){c.a.set("smartbanner-closed",null,{path:"/",expires:new Date(0)}),c.a.set("smartbanner-installed",null,{path:"/",expires:new Date(0)})},(i="deleteCookie")in o?Object.defineProperty(o,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[i]=s,t.state={deviceType:"",position:"top"},t}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(a,o["Component"]),t=a,(n=[{key:"changeType",value:function(e){this.setState({deviceType:e})}},{key:"changePosition",value:function(e){this.setState({position:e})}},{key:"render",value:function(){var e=this;return i.a.createElement("div",null,i.a.createElement(u.default,{title:"Facebook",force:this.state.deviceType,position:this.state.position}),i.a.createElement("div",{className:"row",style:{margin:"20px 0 0 0"}},i.a.createElement("div",{className:"col-md-10 col-md-offset-1"},i.a.createElement("div",{className:"btn-group btn-group-justified",role:"group"},i.a.createElement("div",{className:"btn-group",role:"group"},i.a.createElement("button",{type:"button",className:"btn btn-primary",onClick:function(){e.changeType("android")}},"Android")),i.a.createElement("div",{className:"btn-group",role:"group"},i.a.createElement("button",{type:"button",className:"btn btn-primary",onClick:function(){e.changeType("ios")}},"iOS")),i.a.createElement("div",{className:"btn-group",role:"group"},i.a.createElement("button",{type:"button",className:"btn btn-primary",onClick:function(){e.changeType("windows")}},"WinPhone")),i.a.createElement("div",{className:"btn-group",role:"group"},i.a.createElement("button",{type:"button",className:"btn btn-primary",onClick:function(){e.changeType("kindle")}},"Kindle"))),i.a.createElement("div",{className:"btn-group btn-group-justified",role:"group"},i.a.createElement("div",{className:"btn-group",role:"group"},i.a.createElement("button",{type:"button",className:"btn btn-success",onClick:function(){e.changePosition("top")}},"Top")),i.a.createElement("div",{className:"btn-group",role:"group"},i.a.createElement("button",{type:"button",className:"btn btn-success",onClick:function(){e.changePosition("bottom")}},"Bottom"))),i.a.createElement("div",{className:"btn-group btn-group-justified",role:"group"},i.a.createElement("div",{className:"btn-group",role:"group"},i.a.createElement("button",{type:"button",className:"btn btn-warning",onClick:this.deleteCookie},"Delete Cookie"))))))}}])&&p(t.prototype,n),r&&p(t,r),a}();s.a.render(i.a.createElement(m,null),document.getElementById("content"))}])});