var g_fc5ad4177b7f4a52a511540dceca6dc2={init:function(e,n,t){function o(e){!function(){function n(n){if(o){o=!1;var i="visible",r="hidden",a={focus:i,focusin:i,pageshow:i,blur:r,focusout:r,pagehide:r};n=n||window.event,e(n.type in a?a[n.type]:this[t]?"hidden":"visible")}}var t="hidden",o=!0;t in document?document.addEventListener("visibilitychange",n):(t="mozHidden")in document?document.addEventListener("mozvisibilitychange",n):(t="webkitHidden")in document?document.addEventListener("webkitvisibilitychange",n):(t="msHidden")in document?document.addEventListener("msvisibilitychange",n):"onfocusin"in document?document.onfocusin=document.onfocusout=n:window.onpageshow=window.onpagehide=window.onfocus=window.onblur=n,void 0!==document[t]&&n({type:document[t]?"blur":"focus"})}()}function i(){var e=Math.round(16*Math.random()).toString(16),n=""+(new Date).getSeconds(),t=("00"+e).substring(e.length)+("00"+n).substring(n.length);I=t}function r(){e.ajax({url:v+"/create/"+k,data:JSON.stringify({predefinedLayerMode:m.predefinedLayerMode}),contentType:"application/json",type:"POST"}).done(function(n){if("OK"==n.code){T=[n.track],m.target=n.context.target,m.predefinedLayerMode=n.context,y?(J.writeJson("layerMode",n.context),J.writeSessionJson("currentTrack",T)):(b.createJson("layerMode",n.context,365),b.createJson("currentTrack",T));S?b.create("126ada9239a744ae83a6173ff0bf81ed",JSON.stringify({trackId:T[0],userId:g().id}),365,!0):b.erase("126ada9239a744ae83a6173ff0bf81ed"),s();var t={};t.ts=new Date,t.tsOffset=t.ts.getTimezoneOffset();var o={};t.data=[o];var i=window.location.href;o.link=i;var r=e("link[rel='canonical']");if(null!=r&&r.length>0){var a=e(r[0]).prop("href");o.link=a,a!=i?o.doc_link=i:o.link=i}t.tag="page",t.locationName="startupPage",t.deliveryMode="legacy",t.namespace="page",t.typeId="visited",d(t)}}).fail(function(e,n,t){console.log("askForNewTrackId 2"),console.log("jqXHR",e),console.log("textStatus",n),console.log("errorThrown 2",t)})}function a(e,n){if(null==e&&null==n)return!0;if(null==e||null==n)return!1;if(e.length!=n.length)return!1;for(var t=0;t0){t=O.splice(0,n);var o=g();t=e.map(t,function(e){return e.tracks=T,e.environmentId=k,e.userIdentities=o,e}),e.ajax({url:w+"/transmit/"+k,contentType:"application/json",data:JSON.stringify({messages:t}),type:"POST"})}window.setTimeout(u,300)}function d(e){O.push(e)}function f(){var e=null;e=y?J.readJson("layerMode"):b.readJson("layerMode"),m.predefinedLayerMode=e}function p(){f(),null==T||null==m.predefinedLayerMode?r():(i(),o(function(e){_="hidden"==e,s()}))}function g(){var e={id:null,previousId:null,custId:null,isAuthenticated:!1};return e.id=L.fp,null!=M&&M.fp!=L.fp&&(e.previousId=L.fp),null!=m.trackUserId&&(e.id=m.trackUserId,e.sourceType="forcedId"),e}function h(){!function(){var n=function(t,o,i,r){var a=e(t);return null!=a&&a.length>0?r(!0,a):--o>0?void window.setTimeout(function(){n(t,o,i,r)},i):r(!1)},t=function(e,n,t,o,i){var r={};r.ts=new Date,r.tsOffset=r.ts.getTimezoneOffset(),r.data=e,r.tag=i,r.locationName=o,"searchListing"==r.locationName&&(r.deliveryMode="legacy"),r.namespace=n,r.typeId=t,d(r)},o=!1,i=function(o){switch(o){case"productSheet":!function(){var n=[],o={};n.push(o);var i=window.location.href,r=e("link[rel='canonical']");if(null!=r&&r.length>0){var a=e(r[0]).prop("href");o.link=a,a!=i&&(o.doc_link=i)}else o.link=i;var s=e(".breadcrumbs>ul>li:not(:nth-child(1))>a");if(null!=s&&s.length>0){for(var c=[],l=0;l0&&(o.breadcrumb=c)}t(n,"product","visited","productSheet","product")}(),function(){n("#product_addtocart_form button.add-to-cart-btn",100,300,function(n,o){n&&o.click(function(){var n=[],o={};n.push(o);var i=window.location.href;o.link=i;var r=e("link[rel='canonical']");if(null!=r&&r.length>0){var a=e(r[0]).prop("href");o.link=a,a!=i?o.doc_link=i:o.link=i}t(n,"cart","added","productSheet","product")})})}();break;case"productListing":!function(){var n=e("div.category-products ul li.item a.product-image");if(null!=n&&n.length>0){for(var o=[],i=0;i0&&(r.link=e(a[0]).prop("href")),t(o,"product","inspected","productListing","product")}},3e3)})})}(),function(){n("div.category-products ul li.item",100,300,function(n,o){n&&o.click(function(){var n=[],o={};n.push(o);var i=e(this).find("a.product-image");null!=i&&i.length>0&&(o.link=e(i[0]).prop("href")),t(n,"product","clicked","productListing","product")})})}(),function(){n("div.category-products ul li.item a.btn-cart",100,300,function(n,o){n&&o.click(function(){var n=[],o={};n.push(o);var i=e(this).closest("li.item").find("a.product-image");null!=i&&i.length>0&&(o.link=e(i[0]).prop("href")),t(n,"cart","added","productListing","product")})})}();break;case"searchListing":!function(){var n=e("div.category-products ul li.item a.product-image");if(null!=n&&n.length>0){for(var o=[],i=0;i0&&(r.link=e(a[0]).prop("href")),t(o,"product","inspected","searchListing","product")}},3e3)})})}(),function(){n("div.category-products ul li.item",100,300,function(n,o){n&&o.click(function(){var n=[],o={};n.push(o);var i=e(this).find("a.product-image");null!=i&&i.length>0&&(o.link=e(i[0]).prop("href")),t(n,"product","clicked","searchListing","product")})})}(),function(){n("div.category-products ul li.item a.btn-cart",100,300,function(n,o){n&&o.click(function(){var n=[],o={};n.push(o);var i=e(this).closest("li.item").find("a.product-image");null!=i&&i.length>0&&(o.link=e(i[0]).prop("href")),t(n,"cart","added","searchListing","product")})})}();break;case"checkout":!function(){n(".bloc-proceed-inner .mn-btn:nth-child(1) > a",100,300,function(n,o){n&&o.click(function(){var n=[],o={};n.push(o);var i=e(".cs_deliveryContainer #shopping-cart-totals-table .sub-total-line .price");null!=i&&i.length>0&&(o.link=e(i[0]).text().replace(" €","").replace(" ","").replace(",",".")),t(n,"cart","confirmed","checkout","total")})})}()}};!function(){var n=e("body.checkout-cart-index");!o&&null!=n&&n.length>0&&(o=!0,i("checkout"))}(),function(){var n=e("body.search-index-index");!o&&null!=n&&n.length>0&&(o=!0,i("searchListing"))}(),function(){var n=e("body.catalog-category-view");!o&&null!=n&&n.length>0&&(o=!0,i("productListing"))}(),function(){var n=e("body.catalog-product-view");!o&&null!=n&&n.length>0&&(o=!0,i("productSheet"))}()}()}e.support.cors=!0;var v="https://c.search.sensefuel.com",w="https://l.search.sensefuel.com",k=79,m={},y="USE_WEB_STORAGE";"USE_WEB_STORAGE"==y&&(y=!0);var S="USE_API_COOKIE";"USE_API_COOKIE"==S&&(S=!1);var b={cookieHooks:{},sessionCookieRefreshRate:1e4,sessionCookieSlidingDuration:12e5,createJson:function(e,n,t){b.create(e,JSON.stringify(n),t)},create:function(e,n,t,o){var i="";if(t){var r=new Date;r.setTime(r.getTime()+24*t*60*60*1e3),i="; expires="+r.toGMTString(),document.cookie=e+"="+(1==o?n:btoa(n))+i+"; path=/";var a=b.cookieHooks[e];null!=a&&(clearInterval(a.interval),delete b.cookieHooks[e])}else{var s=b.cookieHooks[e];if(null==s){var c=new Date;c.setTime(c.getTime()+b.sessionCookieSlidingDuration),i="; expires="+c.toGMTString(),document.cookie=e+"="+(1==o?n:btoa(n))+i+"; path=/";var l=setInterval(function(){b.keepAlive(e)},b.sessionCookieRefreshRate);b.cookieHooks[e]=s={interval:l}}}},keepAlive:function(e){var n=b.read(e);if(null!=n){var t=new Date;t.setTime(t.getTime()+b.sessionCookieSlidingDuration);var o="; expires="+t.toGMTString();document.cookie=e+"="+btoa(n)+o+"; path=/"}},refresh:function(e){var n=b.cookieHooks[e];if(null==n){var t=setInterval(function(){b.keepAlive(e)},b.sessionCookieRefreshRate);b.cookieHooks[e]=n={interval:t},b.keepAlive(e)}},readJson:function(e){var n=b.read(e);return null!=n&&(n=JSON.parse(n)),n},read:function(e){for(var n=e+"=",t=document.cookie.split(";"),o=0;o1?e.substring(0,n):e});var N="KTID"+Math.ceil(1e9*Math.random()).toString();null==L?(L={fp:N},y?(J.writeSessionJson("sessionfp",{fp:N}),J.writeJson("historyfp",{fp:N})):(b.createJson("sessionfp",{fp:N}),b.createJson("historyfp",{fp:N},730)),p()):(M=L,y||(b.refresh("sessionfp"),b.refresh("historyfp")),p())}else null==L?(new n).get(function(e){L={fp:e},y?(J.writeSessionJson("sessionfp",{fp:e}),J.writeJson("historyfp",{fp:e})):(b.createJson("sessionfp",{fp:e}),b.createJson("historyfp",{fp:e},730)),p()}):(M=L,y||(b.refresh("sessionfp"),b.refresh("historyfp")),p())}};