(function(t){"object"===typeof exports&&"undefined"!==typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).SmartBanner=t()})(function(){return function d(g,f,e){function b(c,n){if(!f[c]){if(!g[c]){var k="function"==typeof require&&require;if(!n&&k)return k(c,!0);if(a)return a(c,!0);k=Error("Cannot find module '"+c+"'");throw k.code="MODULE_NOT_FOUND",k;}k=f[c]= {exports:{}};g[c][0].call(k.exports,function(a){var e=g[c][1][a];return b(e?e:a)},k,k.exports,d,g,f,e)}return f[c].exports}for(var a="function"==typeof require&&require,c=0;cparseInt(a.os.version)?this.type="ios":"Android"===a.os.name&&(this.type="android");!this.type||navigator.standalone|| q.get("smartbanner-closed")||q.get("smartbanner-installed")||(e(this,k[this.type]),this.parseAppId()&&(this.create(),this.show()))};d.prototype={constructor:d,create:function(){for(var c=this.getStoreLink(),e=this.options.price[this.type]+" - "+this.options.store[this.type],d,u=0;u
'+this.options.title+"
"+this.options.author+"
"+e+'
'+this.options.button+"";a.body?a.body.appendChild(p):a&&a.addEventListener("DOMContentLoaded",function(){a.body.appendChild(p)});b(".smartbanner-button",p).addEventListener("click",this.install.bind(this),!1);b(".smartbanner-close",p).addEventListener("click", this.close.bind(this),!1)},hide:function(){c.classList.remove("smartbanner-show")},show:function(){c.classList.add("smartbanner-show")},close:function(){this.hide();q.set("smartbanner-closed","true",{path:"/",expires:+new Date+864E5*this.options.daysHidden})},install:function(){this.hide();q.set("smartbanner-installed","true",{path:"/",expires:+new Date+864E5*this.options.daysReminder})},parseAppId:function(){var a=b('meta[name="'+this.appMeta+'"]');if(a)return this.appId="windows"===this.type?a.getAttribute("content"): /app-id=([^\s,]+)/.exec(a.getAttribute("content"))[1]}};g.exports=d},{"component-query":2,"cookie-cutter":3,"get-doc":4,"ua-parser-js":6,"xtend/mutable":7}],2:[function(d,g,f){function e(b,a){return a.querySelector(b)}f=g.exports=function(b,a){a=a||document;return e(b,a)};f.all=function(b,a){a=a||document;return a.querySelectorAll(b)};f.engine=function(b){if(!b.one)throw Error(".one callback required");if(!b.all)throw Error(".all callback required");e=b.one;f.all=b.all;return f}},{}],3:[function(d, g,f){f=g.exports=function(e){e||(e={});"string"===typeof e&&(e={cookie:e});void 0===e.cookie&&(e.cookie="");return{get:function(b){for(var a=e.cookie.split(/;\s*/),c=0;c