__smjsonp__([2],{380:function(t,n,e){"use strict";t.exports=function(t){return t=t||window,t.innerWidth>0?t.innerWidth:t.width}},386:function(t,n,e){"use strict";(function(n){function o(){this.queue=[],this.running=!1}var i=e(1),r=e(14);o.prototype.enqueue=function(t,n){i.isFunction(t)&&this.queue.push(t),this.run(n)},o.prototype.now=function(t,n){i.isFunction(t)&&this.queue.unshift(t),this.run(n)},o.prototype.run=function(t){function n(){if(e.queue.length>0){e.queue.shift()().then(function(){setTimeout(function(){t?n():i.isFunction(self.run)&&self.run()},0)})}else e.running=!1}var e=this;t?e.running&&!r.isSPA()||(e.running=!0,n()):n()},t.exports=o}).call(n,e(0))},387:function(t,n,e){"use strict";function o(){function t(t){o=t,s.save(r,t)}function n(){var t;if(o)return o;try{t=s.get(r)}catch(n){t={}}return t||(t={}),o=t,t}function e(){return{a:null,w:0,v:0,ns:!0}}var o=null;this.setUserActiveForConsent=function(o,i){var r=n();r[o]||(r[o]=e()),r[o].a=i,t(r)},this.touch=function(o){var r=n();return r[o]||(r[o]=e()),r[o].w+=1,i.hasIncrementedVisits()?(r[o].v+=1,r[o].w=1,r[o].ns=!0):r[o].ns=0===r[o].v&&1===r[o].w,t(r),r[o]},this.find=function(t){var e=n();return e&&e[t]?e[t]:null},this.setAllConsentFormsInactive=function(){var e=n();Object.keys(e).forEach(function(t){e[t].a=null}),t(e)}}var i=e(15),r="_smwps",s=e(10).getLocalStorage(!0);t.exports=new o},395:function(t,n,e){"use strict";var o=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==o)return o;throw new Error("unable to locate global object")}();t.exports=n=o.fetch,n.default=o.fetch.bind(o),n.Headers=o.Headers,n.Request=o.Request,n.Response=o.Response},412:function(t,n,e){"use strict";(function(n){function o(t){function e(){var t=h.get("_smswdir");I.isNotEmpty(t)&&I.isString(t)&&(t.startsWith("/")||(t="/"+t),k=t)}function o(t){return new Promise(function(n,e){d.get(t,n,e)})}function F(t){return t&&t.d?t.d:0}function y(t){var n={VISITS:0,VIEWS:1},e=m.touch(R.webPushConsentFormId);if(!e)return!0;if(t.v)switch(t.v.t){case n.VIEWS:return(e.w-1)%t.v.a==0;case n.VISITS:return!!(t.v.a>1&&e.ns)&&e.v%t.v.a==0}return!0}function S(){var t=r.getContactId();(new x).withEndpoint(s.endpoint).withPath(s.urls.push.nds).ap("id",R.webPushConsentFormId).ap("smclient",t.smclient).ap("smuuid",t.smuuid).ajaxGet().then(function(){})}function W(n,e){i(R.maxAgeOfConsentForm,n,!1,t.customFcmConfig).then(function(){e&&S(),t.isFromWar&&l.get().Reporter.report({rr:t.rr,id:t.rrId,t:t.t}),R.resolve()})}function T(t,e){t=t||window;var o=this,i=r.getContactId();return o.request=(new x).withEndpoint(s.endpoint).withPath(s.urls.push.sett).ap("id",R.webPushConsentFormId).ap("url",window.location.hostname).ap("smclient",i.smclient).ap("smuuid",i.smuuid),a(window.location.origin+k).then(function(t){if(200!==t.status||-1===t.headers.get("Content-Type").indexOf("javascript"))throw new Error("SALESmanago Service Worker does not exist");return t.text()}).then(function(t){return/importScripts\(.*\/static\/sm-sw\.js.+\)/.test(t)}).then(function(n){n||e?"serviceWorker"in navigator&&W(o,e):(q(t,o),c.save(E,!0))}).catch(function(i){n.warn(i),e||(q(t,o),c.save(E,!0))}).finally(function(){R.resolve()})}function q(t,n){u.smCreateCookie(P,"true"),m.setUserActiveForConsent(n.consentFormId,!0);var e=screen.width/2-300,o=screen.height/2-400;t.open(g(n.request.buildQueryString()),"_blank","left="+e+",top="+o+",width=600,height=600")}function A(t){u.smCreateCookie(P,"false",{hours:t}),f.incrementRejectionClick(),c.get(_)&&c.remove(_),R.resolve()}function L(){R.resolve()}var R=this;e(),R.run=function(){return new Promise(function(n){function e(){o(R.webPushConsentFormId).then(function(n){var e=JSON.parse(n);y(e)&&setTimeout(function(){R.webPushConsentForm=new b({id:R.webPushConsentFormId,rr:t.rr,rrId:t.rrId},T)},F(e))})}function r(n){i(R.maxAgeOfConsentForm,new C(R.webPushConsentFormId),n,t.customFcmConfig).then(function(){R.resolve()})}function s(){o(R.webPushConsentFormId).then(function(e){var o=JSON.parse(e);y(o)?setTimeout(function(){R.webPushConsentForm=new v({id:R.webPushConsentFormId,rr:t.rr,rrId:t.rrId},T,function(){return A(R.maxAgeOfConsentForm)},!1,n,L.bind(this,n))},F(o)):n()}).catch(function(){n()})}if(R.resolve=n,!w())return void R.resolve();R.webPushConsentFormId=t.id,R.nativeForm=t.nf,R.maxAgeOfConsentForm=t.rv,R.formsLeftToExecute=t.formsLeftToExecute,p.shouldShowConsent(R.webPushConsentFormId,R.formsLeftToExecute).then(function(n){"granted"===Notification.permission&&"serviceWorker"in navigator&&(t.ac||"updateToken"===n)?r(t.ac):R.nativeForm?e():s()}).catch(function(){n()})})},window.smWebPushConfirm=function(){console.warn("This method is depreciated. Use smWebPushApi.displayConsentForm instead."),!R.webPushConsentForm&&R.webPushConsentFormId&&(R.webPushConsentForm=new v({id:R.webPushConsentFormId},T,function(){},!0,function(){},L)),R.webPushConsentForm&&T.call(R.webPushConsentForm)},smWebPushApi.displayConsentForm=function(t){var n=c.get("_smvc").f.some(function(n){return n.id===t});(!R.webPushConsentForm&&t||R.consentFormId!==t)&&n?R.webPushConsentForm=new v({id:t},T,function(){},!0,function(){},L):console.warn("Specified form is inactive and cannot be displayed"),R.webPushConsentForm&&R.consentFormId===t&&T.call(R.webPushConsentForm)}}function i(t,n,e,o){return new Promise(function(t){if(n){var i={},a={},c={},h={},f={};e&&(f={automaticallyAccepted:e}),n.request.params.forEach(function(t){"id"===t.n?c.consentFormId=t.v:c[t.n]=t.v}),c.smclient=r.getContactId().smclient,"string"==typeof c.smclient&&-1!==c.smclient.indexOf("null")&&(c.smclient=null),y(o).then(function(n){n&&(a={token:n},h=o?{customProjectId:o.si}:{},i=F(i,c,f,a,h),(new x).withEndpoint(s.endpoint).withPath(s.urls.push.reg).apo(i).ajaxPost().then(function(){u.smCreateCookie(P,"true"),m.setUserActiveForConsent(c.consentFormId,!0,n)})),t()}).catch(function(t){})}})}var r=e(7),s=e(2),a=e(395),c=e(10).getLocalStorage(),u=e(5),h=e(3),f=e(15),d=e(413),m=e(387),p=e(414),l=e(31),w=e(415),g=e(416),v=e(417),b=e(419),C=e(420),F=e(43),x=e(6),I=e(1),y=e(421),k="/sw.js",P="smwp",_="_smwp_token",E="sm_sw_dext";t.exports=o}).call(n,e(0))},413:function(t,n,e){"use strict";function o(){function t(t,n,o){t&&(e.settings[n]=t,o(e.settings[n]))}function n(n,e,o){(new r).withEndpoint(i.endpoint).withPath(i.urls.push.sett).ap("id",n).ajaxGet(function(o){t(o,n,e)},function(t){o(t)})}var e=this;e.settings={},e.get=function(t,o,i){if(e.settings[t])return void o(e.settings[t]);n(t,o,i)}}var i=e(2),r=e(6);t.exports=new o},414:function(t,n,e){"use strict";function o(){function t(t,n,e){var o=i.find(t);o&&o.a?e():n()}function n(n,e,o,i){n?t(e,o,i):i()}this.shouldShowConsent=function(t,e){return new Promise(function(o,i){var d=r.smReadCookie(c),m=r.smReadCookie(u),p=r.smReadCookie(h),l=r.smReadCookie(f);return null==d||""===d?void o():"false"===d?void i():m||p?void(!m||p||l?n(d,t,o,i):(new a).withEndpoint(s.endpoint).withPath(s.urls.push.token_status).ap("token",m).ajaxGet().then(function(s){1===e&&r.createCookie(f,"true",1),Boolean(JSON.parse(s.toString()))?n(d,t,o,i):(r.eraseCookie(u),o("updateToken"))}).catch(function(){n(d,t,o,i)})):void o()})}}var i=e(387),r=e(5),s=e(2),a=e(6),c="smwp",u="_smwp_token",h="sm_sw_dext",f="sm_token_check";t.exports=new o},415:function(t,n,e){"use strict";function o(t){t=t||navigator;var n=t.userAgent.split(")").reverse()[0].match(/(?!Gecko|Version|[A-Za-z]+?Web[Kk]it)[A-Z][a-z]+\/[\d.]+/g)[0].split("/"),e=n[0].toLocaleLowerCase(),o=parseInt(n[1]),i=!1;return-1===t.userAgent.indexOf("Edge")&&("chrome"==e&&o>=42||"firefox"==e&&o>=44)&&(i=!0),i}t.exports=o},416:function(t,n,e){"use strict";function o(t,n){n=n||window;var e=n.location.hostname,o=s[i.get("_smid")];return r.isString(i.get("_smswdomain"))&&i.get("_smswdomain").length>2&&i.get("_smswdomain").length<64&&(e=i.get("_smswdomain")),o||(o="-01.salesmanagopush.com"),"https://"+e.replace(/\.|_/g,"-")+o+t}var i=e(3),r=e(1),s={q45h84p75gs0o1k2:"-01.promocje.r.pl",fse768i2u1abb1pe:"-02.push.archon.pl",cricl0a6kk7yh2ds:"-02.push.gamerhash.net","26h8xfqxbsbm4ie1":"-02.push.salon-porcelany.pl",grufmx3qmqta4b8e:"-01.push.lakieryhybrydowe.pl",c30j2vilsvfs63kz:"-01.push.maczfit.pl","9q8zojv54btvggvc":"-03.push.runcolors.pl",h6xggp39qjkdeyvc:"-02.info.podoslonami.pl"};t.exports=o},417:function(t,n,e){"use strict";(function(n){function o(t,n,e){function o(t){return[7,8,9].indexOf(t)>-1?"marginBottom":"marginTop"}function l(t){return[3,6,9].indexOf(t)>-1?"marginRight":"marginLeft"}function w(t){var n=0,e=u();"MOBILE"!==t.data.device&&(n=e-t.data.width-t.data.position.advanced.left>0?t.data.position.advanced.left:e>t.data.width?e-t.data.width:0),C.container.style[o(t.data.position.basic)]=h()-t.data.height-t.data.position.advanced.top>0?t.data.position.advanced.top+"px":h()>t.data.height?h()-t.data.height+"px":0,C.container.style[l(t.data.position.basic)]=n+"px",v(t,n)}function g(t){t.data.resize||(C.container.className+=" bhr-wpc bhr-wpc--"+t.data.position.basic),v(t,0)}function v(t,n){var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);C.container.style.height=C.container.firstChild.height=h()>t.data.height?(e?t.data.height+1:t.data.height+3)+"px":h()+"px";var o=Math.max(Math.min(u(),t.data.maxWidth),t.data.width);C.container.style.width=C.container.firstChild.width=(e?o:o+2)+"px",n&&(C.container.style.maxWidth="calc(100% - "+n+"px)"),f.isNotNull(C.container.children[0].contentWindow)&&C.container.children[0].contentWindow.postMessage(JSON.stringify({topic:"BHR_WPC_OVERFLOW",data:h()>t.data.height}),"*")}function b(t){a.removeElementById(t)}var C=this;C.consentFormId=t.id,C.container=function(){var t=document.createElement("div");return t.id=C.consentFormId,t.className="bhr-web-push-consent-form",t}(),C.iframe=function(){var t=document.createElement("iframe");return t.src=(new s).withEndpoint(i.endpoint).withPath(i.urls.push.cf).ap("id",C.consentFormId).ap("isStat",!0).ap("smuuid",r.getContactId().smuuid).ap("smclient",m(r.getContactId().smclient)?r.getContactId().smclient:null).buildGetUrl(),t.id+="bhr-iframe-consent-form",t.width=1e3,t.height=1e3,t.style.display="block",t.style.border="0",t.frameBorder="0",t.style.maxWidth="100%",t.style.height="100%",t.style.overflow="hidden",t.scrolling="auto",t.allowfullscreen="true",t.webkitallowfullscreen="true",t.mozallowfullscreen="true",t.oallowfullscreen="true",t.msallowfullscreen="true",t.title="salesmanago-consent-form-title",t.outerHTML}();var F=this;F.request=null,function(){C.container.innerHTML=C.iframe,a.appendElement(C.container,a.MODULE_KEYS.WEB_PUSH,C.consentFormId)}();var x=function t(o){if(d(o)){var i=c.parse(o.data);"BHR_WPC_READY"===i.topic&&i.data&&i.data.id===C.consentFormId&&(g(i),i.data.position.type===p.advanced&&w(i),i.data.animation&&C.container.classList.add("bhr-"+i.data.animation),C.container.style.visibility="visible"),"BHR_WPC_CONSENT"===i.topic&&(i.data?(n.call(F),b(C.consentFormId),window.removeEventListener("message",t)):(e.call(F),b(C.consentFormId),window.removeEventListener("message",t)))}};window.addEventListener("message",x),function(){var t=document.createElement("style");t.type="text/css",t.innerHTML=".bhr-web-push-consent-form{box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.1);visibility:hidden;z-index:2147480001!important;position:fixed;left:-2000px;max-width:100%;box-sizing:border-box!important;-webkit-font-smoothing: subpixel-antialiased;}.bhr-web-push-consent-form.bhr-wpc{left:unset;right:unset;top:unset;bottom:unset}.bhr-web-push-consent-form.bhr-wpc--1,.bhr-web-push-consent-form.bhr-wpc--0{left:0;top:0}.bhr-web-push-consent-form.bhr-wpc--2{right:50%;top:0;transform:translateX(50%)}.bhr-web-push-consent-form.bhr-wpc--3{right:0;top:0}.bhr-web-push-consent-form.bhr-wpc--4{left:0;top:50%;transform:translateY(-50%)}.bhr-web-push-consent-form.bhr-wpc--5{right:50%;top:50%;transform:translate(50%,-50%)}.bhr-web-push-consent-form.bhr-wpc--6{right:0;top:50%;transform:translateY(-50%)}.bhr-web-push-consent-form.bhr-wpc--7{left:0;bottom:0}.bhr-web-push-consent-form.bhr-wpc--8{right:50%;bottom:0;transform:translateX(50%)}.bhr-web-push-consent-form.bhr-wpc--9{right:0;bottom:0}.bhr-web-push-consent-form.bhr-wpcm{left:unset;right:unset;top:unset;bottom:unset}.bhr-web-push-consent-form.bhr-wpcm--1,.bhr-web-push-consent-form.bhr-wpcm--2,.bhr-web-push-consent-form.bhr-wpcm--3{left:0;right:0;top:0;width:100%}.bhr-web-push-consent-form.bhr-wpcm--4,.bhr-web-push-consent-form.bhr-wpcm--5,.bhr-web-push-consent-form.bhr-wpcm--6{left:0;right:0;top:50%;transform:translateY(-50%);width:100%}.bhr-web-push-consent-form.bhr-wpcm--7,.bhr-web-push-consent-form.bhr-wpcm--8,.bhr-web-push-consent-form.bhr-wpcm--9{left:0;right:0;bottom:0;width:100%}",document.head.insertBefore(t,document.head.childNodes[0])}()}var i=e(2),r=e(7),s=e(6),a=e(14),c=e(8),u=e(380),h=e(418),f=e(1),d=e(30),m=e(58),p={basic:0,advanced:1};t.exports=o}).call(n,e(0))},418:function(t,n,e){"use strict";t.exports=function(t){return t=t||window,t.innerHeight>0?t.innerHeight:t.height}},419:function(t,n,e){"use strict";function o(t,n){this.consentFormId=t.id;var e=this;e.request=null,function(){n.call(e,null,!0)}()}t.exports=o},420:function(t,n,e){"use strict";function o(t){this.request={params:[{n:"id",v:t},{n:"url",v:window.location.hostname},{n:"smuuid",v:i.getContactId().smuuid}]}}var i=e(7);t.exports=o},421:function(t,n,e){"use strict";function o(t){return t.startsWith("/")||(t="/"+t),t.endsWith("/")||(t+="/"),t}function i(t){return new Promise(function(n){if(h.get(c))n(h.get(c));else if(m.pending)m.req.then(function(t){return n(t),t});else{m.pending=!0;var e=Math.floor(Date.now()/864e5),o=f+"?hash="+e;t&&(o+="&config="+encodeURIComponent(JSON.stringify(t))),m.req=navigator.serviceWorker.register(o,{scope:d}).then(function(){return navigator.serviceWorker.ready}).then(function(e){return r.getToken(r.getMessaging(),{serviceWorkerRegistration:e,vapidKey:t&&t.vpk?t.vpk:u}).then(function(t){return h.save(c,{_v:t,_ts:Date.now()+31536e6}),n(t),m.pending=!1,t})}).catch(function(){n(null)})}})}var r=e(88),s=e(3),a=e(1),c="_smwp_token",u="BNnFdGYvCVGb_JkrVo4rSBdqcBfIzBXKRAo7cw32HLOcSwx8zjKvjXndC3fWalTbDsyiUFD_UCLi27TAFd-uSFQ",h=e(10).getLocalStorage(),f="/sw.js",d="/",m={};!function(){var t=s.get("_smswdir");a.isNotEmpty(t)&&a.isString(t)&&(t.startsWith("/")||(t="/"+t),f=t)}(),function(){var t=s.get("_smswscope");a.isNotEmpty(t)&&a.isString(t)&&(d=o(t))}(),t.exports=i},93:function(t,n,e){"use strict";(function(n){function o(){function t(t){s.enqueue(new i(t).run,!0)}function e(){var t=u.get("_smswdir");if(c.isNotEmpty(t)&&c.isString(t)&&(t.startsWith("/")||(t="/"+t),w=t),!navigator.serviceWorker)throw"No serviceWorker in navigator";var n=f.smReadCookie(l);navigator.serviceWorker.getRegistrations().then(function(t){t&&t.length&&(m.get(p)!==v&&(t.forEach(function(t){t.update()}),m.save(p,v)),t.forEach(function(t){-1!==t.active.scriptURL.indexOf(window.location.origin+w)&&d(window.location.origin+w).then(function(t){if(200===t.status&&-1!==t.headers.get("Content-Type").indexOf("javascript"))return t.text()}).then(function(t){return/importScripts\(.*\/static\/sm-sw\.js.+\)/.test(t)}).then(function(t){t&&"true"===n&&"default"===Notification.permission&&(h.setAllConsentFormsInactive(),f.readCookie(g)&&f.eraseCookie(g))})}))})}var o=this;o.apiConsentForms=[],o.lastRun=0,o.activeTask=null,o.activeTasks=[],o.enqueue=function(n){return n&&n.delayValue>0?setTimeout(function(){t(n)},n.delayValue):t(n),Promise.resolve()},o.mergeConsentForms=function(t){if(o.apiConsentForms.length>0){var n=o.apiConsentForms.filter(function(n){return-1===t.findIndex(function(t){return t.id===n.id})});return t.concat(n)}return t},o.setup=function(t,i,r){try{e()}catch(t){return new Promise(function(t){t()})}return new Promise(function(e){var s=function(t,n){var i=t.length;t.forEach(function(t){o.enqueue({id:t.id,rv:t.rv,rr:t.rr,delayValue:t.delayValue,rrId:t.rrId,nf:t.nf,ac:t.ac,t:t.t,isFromWar:n,customFcmConfig:r,formsLeftToExecute:i}),i--}),e(),window.postMessage(JSON.stringify({topic:"WEB_PUSH_API_STARTED"}),"*")};(t.length||o.apiConsentForms.length)&&(c.isNotNull(i)?a.ensure().then(function(e){e.QueueModifier.getRunner().processed.then(function(){e.Config.get().then(function(e){e.scf&&e.scf.length?(n.info("smApiExecutor","send web push consent action interrupted: ",o.apiConsentForms),s(t,!0)):s(o.mergeConsentForms(t))},function(){s(o.mergeConsentForms(t))})})},function(){s(o.mergeConsentForms(t))}):s(o.mergeConsentForms(t)))})}}var i=e(412),r=e(386),s=new r,a=e(31),c=e(1),u=e(3),h=e(387),f=e(5),d=e(395),m=e(10).getLocalStorage(!0),p="_smswu",l="smwp",w="/sw.js",g="_smwp_token",v=3;t.exports=new o}).call(n,e(0))}});