!function(e){function t(t){for(var n,o,a=t[0],r=t[1],c=0,s=[];c1?t-1:0),o=1;o1?t-1:0),o=1;o1?t-1:0),o=1;ot)return!1;if(e.stopTimeMillis)if(new Date(e.stopTimeMillis+60*n*1e3)c.stopInMinutes)}return!0}function d(e,t){function n(t){return"EQUALS"===e.operator?t===e.value:"NOT_EQUALS"===e.operator?t!==e.value:"CONTAINS"===e.operator?void 0!==t&&null!==t&&-1!==t.indexOf(e.value):"NOT_CONTAINS"===e.operator&&(void 0!==t&&null!==t&&-1===t.indexOf(e.value))}return"url"===e.parameter?n(window.location.href):"locale"===e.parameter&&void 0!==t.locale?n(t.locale):"timezone"===e.parameter&&void 0!==t.timezone?n(t.timezone):"custom"===e.parameter&&void 0!==e.parameterName&&void 0!==t.extraParams&&void 0!==t.extraParams[e.parameterName]&&n(t.extraParams[e.parameterName])}n.d(t,"g",function(){return o}),n.d(t,"h",function(){return a}),n.d(t,"f",function(){return r}),n.d(t,"e",function(){return c}),n.d(t,"a",function(){return d}),n.d(t,"i",function(){return s}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"b",function(){return f});var s=function(e,t){return e.find(function(e){if(e.startsWith("r|")&&e.endsWith("|r")){var n=e.substring(0,e.length-2).substring(2);return new RegExp(n).test(t)}return t.includes(e)})};function u(){var e="en-US";return-1===(e=window.navigator.languages?window.navigator.languages[0]:window.navigator.userLanguage||window.navigator.language).indexOf("-")&&-1===e.indexOf("_")&&(e=e+"-"+e.toUpperCase()),e}function l(){try{return(new window.Intl.DateTimeFormat).resolvedOptions().timeZone}catch(e){return}}function f(){var e=navigator.userAgent||navigator.vendor||window.opera,t=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e),n=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4));return t||n}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return d});var i=window._chatbotize_env_.REACT_APP_API,o={"Content-Type":"application/json",Accept:"application/json"};function a(e,t){return window.fetch(e,Object.assign({headers:o},t)).then(function(e){return[200,201].includes(e.status)?e.json().then(function(t){return Promise.resolve({status:e.status,data:t})}):e.text().then(function(t){return Promise.reject({status:e.status,message:t})})})}function r(e){return a(e,{method:"GET"})}function c(e,t){return a(e,{method:"POST",body:JSON.stringify(t)})}function d(e){return r(i+"/instances/"+e+"/multilingual/livechat").then(function(e){return e.data})}},,function(e,t,n){"use strict";n.r(t);n(5);var i=n(2),o=n(1),a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,c=e[Symbol.iterator]();!(i=(r=c.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&c.return&&c.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r={show:void 0,hide:void 0,start:void 0,open:void 0,close:void 0,logout:void 0,setAccessTokenCallback:void 0,isAvailable:void 0,updatePosition:void 0,trackVisitedProduct:void 0,trackCartUpdated:void 0,trackPurchased:void 0,updateCart:void 0,getDesktopCta:void 0,getMobileCta:void 0},c={init:function(e){try{if("2319220120134912b08b0880353b5c5e"===e.instanceId)e.instanceId="c5e85d5ee37745b8ba94d64cea5b90ae";else if("66604a7daf4a4db894df81dbdd867fd9"===e.instanceId&&0===window.location.href.indexOf("https://www.sinsay.com/pl/pl/")){var t=window.localStorage.getItem("zowie-genai-test-v3");-1!==window.location.search.indexOf("zowieMode=genai")?(window.localStorage.setItem("zowie-genai-test-v3","genai"),e.instanceId="5d15b4a5b5a140bdb9b6b6f5c5bc4338",Object(o.g)("Zowie A/B test - switching to GenAI.")):null===t?Math.random()>=.9?(window.localStorage.setItem("zowie-genai-test-v3","genai"),e.instanceId="5d15b4a5b5a140bdb9b6b6f5c5bc4338",Object(o.g)("Zowie A/B test - switching to GenAI.")):(window.localStorage.setItem("zowie-genai-test-v3","standard"),Object(o.g)("Zowie A/B test - switching to Standard.")):"genai"===t?(e.instanceId="5d15b4a5b5a140bdb9b6b6f5c5bc4338",Object(o.g)("Zowie A/B test - switching to GenAI.")):Object(o.g)("Zowie A/B test - keeping Standard.")}else if("070951d0b6f343b1beab8ba7b417a763"===e.instanceId&&void 0!==e.metadata&&void 0!==e.metadata.extraParams&&void 0!==e.metadata.extraParams.hashedPatixId){var a=window.localStorage.getItem("zowie-session-key-cache"),c=e.metadata.extraParams.hashedPatixId;void 0!==a&&void 0!==c&&null!==a&&null!==c&&a!==c&&(e.resetSession=!0),window.localStorage.setItem("zowie-session-key-cache",c)}}catch(e){Object(o.g)("Zowie Custom Init - error occured.",e)}var d=document.getElementById("chatbotize");d?(window.addEventListener("message",function(t){"instanceDisabledErrorRemoved"===t.data&&Object(i.b)(e.instanceId).then(function(t){Promise.all([n.e(8),n.e(6)]).then(n.bind(null,3)).then(function(n){n.init(d,e,t,r)})}).catch(function(t){console.error("Error while loading config for "+e.instanceId),e.onError&&e.onError()})}),Object(i.b)(e.instanceId).then(function(t){Promise.all([n.e(8),n.e(6)]).then(n.bind(null,3)).then(function(n){n.init(d,e,t,r)})}).catch(function(t){console.error("Error while loading config for "+e.instanceId),e.onError&&e.onError()})):Object(o.h)("No element with id chatbotize found. Could not initialize widget")},show:function(){r.show?r.show():Object(o.h)("Zowie not initialized.")},hide:function(){r.hide?r.hide():Object(o.h)("Zowie not initialized.")},start:function(e){r.start?r.start(e):Object(o.h)("Zowie not initialized.")},open:function(){r.open?r.open():Object(o.h)("Zowie not initialized.")},close:function(){r.close?r.close():Object(o.h)("Zowie not initialized.")},logout:function(){r.logout?r.logout():Object(o.h)("Zowie not initialized.")},isAvailable:function(){if(r.isAvailable)return r.isAvailable();Object(o.h)("Zowie not initialized.")},updatePosition:function(e){if(Object(o.g)("Zowie Widget - updatePosition called with value:",e),r.updatePosition)return r.updatePosition(e);Object(o.h)("Zowie not initialized.")},setAccessTokenCallback:function(e){r.setAccessTokenCallback?r.setAccessTokenCallback(e):Object(o.h)("Zowie not initialized.")},updateMetadata:function(e){Object(o.g)("Zowie Widget - updateMetadata called with value:",e);var t=document.getElementById("chatbotize-iframe");Object(o.g)("Zowie Widget - updating metadata: ",e),function(e){t?t.contentWindow.postMessage(e,"*"):Object(o.h)("No iframe chatbotize-iframe found. Could not updateMetadata")}(JSON.stringify({action:"updateMetadata",payload:{firstName:e.firstName,lastName:e.lastName,name:e.name,imageFileId:e.imageFileId,locale:e.locale,timezone:e.timezone,phoneNumber:e.phoneNumber,email:e.email,customParams:e.extraParams?Object.entries(e.extraParams).map(function(e){var t=a(e,2);return{name:t[0],value:t[1]}}):void 0}}))},updateContent:function(e){Object(o.g)("Zowie Widget - updateContent called with value:",e);var t=document.getElementById("chatbotize-iframe");!function(e){t?t.contentWindow.postMessage(e,"*"):Object(o.h)("No iframe chatbotize-iframe found. Could not updateMetadata")}(JSON.stringify({action:"updateContent",payload:{name:e.name,engagementMessage:e.engagementMessage}}))},sendReferral:function(e){Object(o.g)("Zowie Widget - sendReferral called with value:",e);var t=document.getElementById("chatbotize-iframe");!function(e){t?t.contentWindow.postMessage(e,"*"):Object(o.h)("No iframe chatbotize-iframe found. Could not sendReferral")}(JSON.stringify({action:"sendReferral",payload:{value:e}}))},setMessage:function(e){Object(o.g)("Zowie Widget - setMessage called with value:",e);var t=document.getElementById("chatbotize-iframe");!function(e){t?t.contentWindow.postMessage(e,"*"):Object(o.h)("No iframe chatbotize-iframe found. Could not updateMetadata")}(JSON.stringify({action:"setMessage",payload:{text:e}}))},trackVisitedProduct:function(e){r.trackVisitedProduct?r.trackVisitedProduct(e):Object(o.h)("Zowie not initialized.")},trackCartUpdated:function(e){r.trackCartUpdated?r.trackCartUpdated(e):Object(o.h)("Zowie not initialized.")},trackPurchased:function(e,t,n,i){r.trackPurchased?r.trackPurchased(e,t,n,i):Object(o.h)("Zowie not initialized.")},updateCart:function(){r.updateCart?r.updateCart():Object(o.h)("Zowie not initialized.")},getDesktopCta:function(){return r.getDesktopCta?r.getDesktopCta():void Object(o.h)("Zowie not initialized.")},getMobileCta:function(){return r.getMobileCta?r.getMobileCta():void Object(o.h)("Zowie not initialized.")}};window.Chatbotize=c,window.Zowie=c},function(e,t){window._chatbotize_env_={"REACT_APP_API":"https://us1.chat.getzowie.com/api/v1/herochat-plugin","REACT_APP_WIDGET_IFRAME_URL":"https://us1.chat.getzowie.com/web/core-chat/","REACT_APP_TRACKING_URL":"https://us1.chat.getzowie.com/api/v1/tr","ADVERTISE_HOST_URL":"https://us1.chat.getzowie.com/web/live-chat","DATACENTER_API_URL":"https://us1.api.getzowie.com"}}]);