(function(){var m=36080,i=document.createElement("script");if(i.src="https://config.gorgias.chat/gorgias-chat-bundle.js?rev=c7b95059&appKey=01HDKPXT2RZG99KT3NBJJWQCZ5",i.id="gorgias-chat-bundle",i.setAttribute("data-ot-ignore",""),window.GorgiasChat){console.warn("[GORGIAS-CHAT] Another chat was detected. Check that you did not add Gorgias chat snippet twice.",{chatSkipped:{appKey:"01HDKPXT2RZG99KT3NBJJWQCZ5",applicationId:"36080"}});return}var g={get(e,o){if(o!="init"&&o!="resolve"&&o!="constructor"&&typeof o!="symbol")throw new Error('You are trying to use the Gorgias Chat API before its initialization (property or function "'+o+'")! Please use `GorgiasChat.init()`. Refer to our documentation https://docs.gorgias.com/gorgias-chat/advanced-customization-new-chat for more info.');let t=e[o];return typeof t=="function"?t.bind(e):t}};window.GorgiasChat=new Proxy({},g);var s=new Promise(function(e,o){window.GorgiasChat.resolve=e});window.GorgiasChat.init=function(){return s},console.log("[GORGIAS-CHAT] Loading chat 01HDKPXT2RZG99KT3NBJJWQCZ5..."),window.gorgiasChatPendingEvents=[];function c(){document.body.appendChild(i)}function h(){document.readyState==="loading"?document.addEventListener("DOMContentLoaded",c):c()}try{var w={method:"show-on-specific-pages",conditions:[{id:"43e4b47c-7f8c-46fa-80cc-fc498a08f16e",value:"sturcookware.de",operator:"contain"}],matchConditions:"some"},d=function(o){var a,r,u;const t=o.startsWith("http"),n=new URL(t?o:"https://"+o);return((a=window.location.hostname)==null?void 0:a.toLowerCase().replace("//www.","//"))===n.hostname&&((r=window.location.pathname)==null?void 0:r.toLowerCase())===n.pathname&&((u=window.location.search)==null?void 0:u.toLowerCase())===n.search&&(!t||window.location.protocol===n.protocol)},l=function(o){var a,r;const t=(a=o.value)==null?void 0:a.toLowerCase().replace("//www.","//"),n=(r=window.location.href)==null?void 0:r.toLowerCase().replace("//www.","//");switch(o.operator){case"equal":return d(t);case"not-equal":return!d(t);case"contain":return n.includes(t);case"not-contain":return!n.includes(t)}},f=function(o){var a;if(!o||Object.keys(o).length===0||(o==null?void 0:o.method)==="show-on-every-page"||(a=window.location.hostname)!=null&&a.includes("shopify-checkout"))return!0;if(!o.conditions||!o.matchConditions)return console.warn("Gorgias Chat visibility settings are invalid:",o),!0;const t=o.conditions[o.matchConditions](l);return o.method==="hide-on-specific-pages"?!t:t},p=f(w);p?h():console.warn("Gorgias Chat is not shown on this page because of the visibility settings.")}catch(e){console.warn("Gorgias Chat visibility settings are invalid.",e),h()}var C={get(e,o){if(o!="init")throw new Error("You are using the legacy `gorgiasChat` Chat API! Please use `GorgiasChat` instead. Refer to our documentation https://docs.gorgias.com/gorgias-chat/advanced-customization-new-chat for more info.");let t=e[o];return typeof t=="function"?t.bind(e):t}};window.gorgiasChat=new Proxy({},C),window.gorgiasChat.init=function(){return console.warn("You are using the legacy `gorgiasChat.init()` function, please use the new `GorgiasChat` chat API (`GorgiasChat.init()`). Refer to our documentation https://docs.gorgias.com/gorgias-chat/advanced-customization-new-chat for more info."),s}})();