/* @preserve Copyright Avaya Inc. 2020. */
function sandSIVJSONToDate(e){try{var a=e.slice(0,-1).split('T'),t=a[0].split('-'),n=a[1].split(':');return new Date(t[0],t[1],t[2],n[0],n[1],n[2].split('.')[0],n[2].split('.')[1])}catch(a){return console.error('Unable to parse [${e}] as a SandSIV date in format YYYY-MM-DDTHH:MM:SS.SSSZ. Defaulting to current datetime'),new Date}}function loadSandSIVConfig(){var e={};'object'!=typeof VIPNET_AVAYA_CONFIG?(e={apiUrl:'https://a1croatia-astra.sandsiv.com/',timeout:15e3,defaultLanguageCode:'hr'},console.warn('VIPNET_AVAYA_CONFIG variable is missing for SandSIV integration, or is not an object. Using defaults as: ${JSON.stringify(e,null,2)}')):'object'!=typeof VIPNET_AVAYA_CONFIG.SandSIV?(e={apiUrl:'https://a1croatia-astra.sandsiv.com/',timeout:15e3,defaultLanguageCode:'hr'},console.warn('SandSIV field in VIPNET_AVAYA_CONFIG variable is missing, or is not an object. Using defaults as: ${JSON.stringify(e,null,2)}')):('string'!=typeof VIPNET_AVAYA_CONFIG.SandSIV.apiUrl?(console.warn('VIPNET_AVAYA_CONFIG.SandSIV.apiUrl was expected to be a string, but got [${VIPNET_AVAYA_CONFIG.SandSIV.apiUrl}]. Defaulting to [https://a1croatia-astra.sandsiv.com/]'),e.apiUrl='https://a1croatia-astra.sandsiv.com/'):e.apiUrl=VIPNET_AVAYA_CONFIG.SandSIV.apiUrl,isNaN(VIPNET_AVAYA_CONFIG.SandSIV.timeout)?(console.warn('VIPNET_AVAYA_CONFIG.SandSIV.timeout was expected to be a number, but got [${VIPNET_AVAYA_CONFIG.SandSIV.timeout}]. Defaulting to [15000]'),e.timeout=15e3):e.timeout=VIPNET_AVAYA_CONFIG.SandSIV.timeout,'string'!=typeof VIPNET_AVAYA_CONFIG.SandSIV.defaultLanguageCode?(console.warn('VIPNET_AVAYA_CONFIG.SandSIV.defaultLanguageCode was expected to be a string, but got [${VIPNET_AVAYA_CONFIG.SandSIV.defaultLanguageCode}]. Defaulting to [hr]'),e.defaultLanguageCode='hr'):2!=VIPNET_AVAYA_CONFIG.SandSIV.defaultLanguageCode.length?(console.warn('VIPNET_AVAYA_CONFIG.SandSIV.defaultLanguageCode was expected to be two characters long, but got [${VIPNET_AVAYA_CONFIG.SandSIV.defaultLanguageCode}]. Defaulting to [hr]'),e.defaultLanguageCode='hr'):e.defaultLanguageCode=VIPNET_AVAYA_CONFIG.SandSIV.defaultLanguageCode);var a={};return localStorage.getItem('C4ParametersForSandSIV')?((a=JSON.parse(localStorage.getItem('C4ParametersForSandSIV'))).enabled=!0,a.apiUrl=e.apiUrl,a.timeout=e.timeout,void 0===a.surveyId?(console.error('surveyId is not available. Disabling SandSIV survey popup.'),a.enabled=!1):isNaN(a.surveyId)?(console.error('surveyId must be a number, but got [${a.surveyId}]. Disabling SandSIV survey popup.'),a.enabled=!1):a.surveyId<=0&&(console.error('surveyId must not be negative or zero, but got [${a.surveyId}]. Disabling SandSIV survey popup.'),a.enabled=!1),void 0===a.chatQueueName&&(console.error('chatQueueName is not available. Disabling SandSIV survey popup.'),a.enabled=!1),void 0===a.queueDuration?(console.warn('queueDuration is not available. Defaulting to 0'),a.queueDuration=0):isNaN(a.queueDuration)?(console.warn('queueDuration must be a number, but got [${a.queueDuration}]. Defaulting to 0'),a.queueDuration=0):a.queueDuration<0&&(console.warn('queueDuration cannot be negative: [${a.queueDuration}]. Defaulting to 0'),a.queueDuration=0),void 0===a.chatAgentId?(console.error('chatAgentId is not available. Disabling SandSIV survey popup.'),a.enabled=!1):isNaN(a.chatAgentId)?(console.error('chatAgentId must be a number, but got [${a.chatAgentId}]. Disabling SandSIV survey popup.'),a.enabled=!1):a.chatAgentId<=0&&(console.error('chatAgentId must not be negative or zero, but got [${a.chatAgentId}]. Disabling SandSIV survey popup.'),a.enabled=!1),void 0===a.websiteUrl&&(console.error('websiteUrl is not available. Disabling SandSIV survey popup.'),a.enabled=!1),void 0===a.websiteName&&(console.error('websiteName is not available. Disabling SandSIV survey popup.'),a.enabled=!1),void 0===a.languageCode?(console.warn('languageCode missing, defaulting to [${e.defaultLanguageCode}]'),a.languageCode=e.defaultLanguageCode):'string'!=typeof a.languageCode?(console.warn('languageCode must be a string, but got [${a.languageCode}]. Defaulting to [${e.defaultLanguageCode}]'),a.languageCode=e.defaultLanguageCode):2!=a.languageCode.length&&(console.warn('languageCode must be two-character long, but got [${a.languageCode}]. Defaulting to [${e.defaultLanguageCode}]'),a.languageCode=e.defaultLanguageCode),void 0===a.minActiveSeconds?(console.warn('minActiveSeconds is not available. Defaulting to 0'),a.minActiveSeconds=0):isNaN(a.minActiveSeconds)?(console.warn('minActiveSeconds must be a number, but got [${a.minActiveSeconds}]. Defaulting to 0'),a.minActiveSeconds=0):a.minActiveSeconds<0&&(console.warn('minActiveSeconds cannot be negative: [${a.minActiveSeconds}]. Defaulting to 0'),a.minActiveSeconds=0),localStorage.getItem('SandSIVChatStarttime')?a.chatStartTime=sandSIVJSONToDate(localStorage.getItem('SandSIVChatStarttime')):(console.warn('Chat start time not found in localStorage, defaulting to current datetime'),a.chatStartTime=new Date),a.chatDuration=Math.round(((new Date).getTime()-a.chatStartTime.getTime()-1e3*a.queueDuration)/1e3),a.chatDuration<0&&(a.chatDuration=0),a.chatDuration<a.minActiveSeconds&&(a.enabled=!1,console.log('Chat duration [${a.chatDuration}] is less than the minimum [${a.minActiveSeconds}]. Disabling SandSIV survey popup.'))):(console.error('C4 parameters not found in localStorage. Disabling SandSIV survey popup.'),a.enabled=!1),localStorage.removeItem('C4ParametersForSandSIV'),localStorage.removeItem('SandSIVChatStarttime'),a}function popupSurvey(){var e=loadSandSIVConfig();if(e.enabled){var a,t=!1;window.VocSignal_ListenEvent('SetParametersCallback',function(){t?console.error('SetParameters request did not finish in time. Cancelling the survey popup.'):(clearTimeout(a),console.log('SandSIV parameters initialized. Displaying popup...'),window.VocSignal_SendEvent('PopupSurvey'))}),window.VocSignal_ListenEvent('PopupShownCallback',function(){console.log('SandSIV popup was displayed')}),window.VocSignal_ListenEvent('PopupClosedCallback',function(){console.log('SandSIV popup was closed by the user')}),window.VocSignal_ListenEvent('BlockerCallback',function(e){console.error('SandSIV survey failed with reason [${e}]')});var n={apiUrl:e.apiUrl,language:e.languageCode,surveyId:e.surveyId,metadata:{chatQueueName:e.chatQueueName,queueDuration:e.queueDuration,chatDuration:e.chatDuration,chatAgentId:e.chatAgentId,websiteUrl:e.websiteUrl,websiteName:e.websiteName}};console.log('Setting SandSIV parameters to: ${JSON.stringify(n,null,2)}'),a=setTimeout(function(){t=!0},e.timeout),window.VocSignal_SendEvent('SetParameters',n)}else console.error('SandSIV survey is disabled')}Date.prototype.toSandSIVJSON=function(){return this.getFullYear()+'-'+this.getMonth()+'-'+this.getDate()+'T'+this.getHours()+':'+this.getMinutes()+':'+this.getSeconds()+'.'+this.getMilliseconds()+'Z'};
var path="";
(function(h,b,d){if("undefined"!==typeof VIPNET_AVAYA_CONFIG&&VIPNET_AVAYA_CONFIG.enabled){path=VIPNET_AVAYA_CONFIG.sdkPath;var c=b.head||b.getElementsByTagName("head"),e=setTimeout,g=function(){$LAB.setGlobalDefaults({AlwaysPreserveOrder:!0});var a=document.createElement("link");a.id="JQueryUICss";a.rel="stylesheet";a.href=path+"/css/csportal_sdk.min.css?a\x3d1.1";document.getElementsByTagName("head")[0].appendChild(a);VIPNET_AVAYA_CONFIG.host&&"ecrm"===VIPNET_AVAYA_CONFIG.host?syncJSLoadComplete():("undefined"==
typeof jQuery&&$LAB.script(path+"js/ext/jquery.min.js?a\x3d1.1").wait().script(path+"js/ext/jquery-ui.min.js?a\x3d1.1"),"undefined"==typeof jQuery.ui&&$LAB.script(path+"js/ext/jquery-ui.min.js?a\x3d1.1").wait(),$LAB.script(path+"js/api.min.js?a\x3d1.1").wait(function(){syncJSLoadComplete()}))};e(function(){if("item"in c){if(!c[0]){e(arguments.callee,25);return}c=c[0]}var a=b.createElement("script"),f=!1;a.onload=a.onreadystatechange=function(){if(a.readyState&&"complete"!==a.readyState&&"loaded"!==
a.readyState||f)return!1;a.onload=a.onreadystatechange=null;f=!0;g()};a.src=path+"js/ext/LAB.min.js";c.insertBefore(a,c.firstChild)},0);null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",d=function(){b.removeEventListener("DOMContentLoaded",d,!1);b.readyState="complete"},!1))}})(this,document);
function syncJSLoadComplete(){AV.WebAPI.setServerURL(VIPNET_AVAYA_CONFIG.serverURL);AV.console.info("AIC [WebAPI Load Complete]");AV.console.info("AIC [Server URL] : "+AV.WebAPI.getServerURL());AV.WebAPI.onReady.attach(onReadyHandler);AV.ChatUI.init();AV.WebAPI.init()};
"undefined"===typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});$(window).scroll(function(){$(window).scrollTop()+$(window).height()>$(document).height()-100?$("#chatbox").css("bottom","160px"):$("#chatbox").css("bottom","20px")});$(document).on("click","#chatbox-collapse",function(){toggleChatboxCollapse()});
$(document).on("vipnet-unified-buttons-click","#ContactWidget-item--chat",function(){0<$("#av_chat_container:visible").length?$("#av_chat_header_btn").trigger("click"):$(".ContactWidget-trigger").hasClass("active")&&toggleChatboxCollapse()});
function toggleChatboxCollapse(a){var b=!$("html").hasClass("chatbox-collapse-html-open");"undefined"!==typeof a&&(b=!0==a);$("html").toggleClass("chatbox-collapse-html-open",b);$("#chatbox-collapse").toggleClass("chat-hidden",!b);$("#chatbox-collapse").toggleClass("chatbox-collapse-open",b);$("#chatbox-content").toggleClass("chatbox-content-open",b)}function chat_logout(){AV.WebAPI.logout({success:function(){console.log("logout success")},error:function(){console.log("logout error")}})}
function chat_login(){if("true"!=AV.WebAPI.userLoggedIn()){var a={},b=VIPNET_AVAYA_CONFIG.customer.username;b&&b.match(/^[0-9].+$/)&&(b="m"+b);a.username=b||"Guest";a.language="hr";a.tenant="DefaultTenant";a.userrole="guest";AV.WebAPI.login({params:a,success:function(c){callID&&""!=callID||(toggleChatboxCollapse(!1),openEscalateLiveChat())},error:function(c){toggleChatboxCollapse(!0);AV.console.info(JSON.stringify(c));var d=$("#chat-username").closest(".form-group");d.toggleClass("has-error",!0);
d.find("span").text(c.message)}})}else callID&&""!=callID||(toggleChatboxCollapse(!1),openEscalateLiveChat())}$(document).on("click","#start-chat",function(a){validateChatboxForm()?startChat():a.preventDefault()});function startChat(){chat_login()}
function handleAgentStatus(a,b){var c=0<b;VIPNET_AVAYA_CONFIG.unifiedButtonsEnabled&&$("#ContactWidget-item--chat").toggleClass("ContactWidget-item--waiting",!c);var d=$("#chatbox-message"),e=$("#chatbox-status-message"),h=$("#chatbox-status-icon"),f="",g="";c?(f=a.settings.messageActive,g="dostupan"):(f=a.settings.messageBusy,g="zauzet");e.html("Agent je "+g);h.toggleClass("circle-agent-dostupan",c);h.toggleClass("circle-agent-zauzet",!c);d.html(f)}
function initChatboxPopup(a,b){if("undefined"===typeof callID||""==callID){var c=$("#chat-placeholder");$.trim(c.html())||(c.append($("#chatbox-collapse-template").html()),c.append($("#chatbox-content-template").html()));handleAgentStatus(a,b)}}
function chat_initReactiveAndProactiveChat(a,b){if("undefined"===typeof callID||""==callID)initChatboxPopup(a,b),$(document).idle({onIdle:function(){if("true"!==Cookies.get("UserRefusedChat")&&!(VIPNET_AVAYA_CONFIG.proactiveModalActivated||""!=callID||0<$("#av_chat_container:visible").length||0<$("html.chatbox-collapse-html-open").length)){VIPNET_AVAYA_CONFIG.proactiveModalActivated=!0;$("#pokreniteChat").find(".row").html(VIPNET_AVAYA_CONFIG.client.chat.proactiveModal?VIPNET_AVAYA_CONFIG.client.chat.proactiveModal:
"");var c=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});$("#open-pokreniteChat").get(0).dispatchEvent(c);$(".ProactiveChat-close").on("click",function(){var d=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});$("#pokreniteChat .js-close-modal").get(0).dispatchEvent(d);Cookies.set("UserRefusedChat","true",{sameSite:"Lax"})});$("#pokreniteChat .btn").on("click",function(d){$("#ContactWidget-item--chat").trigger("vipnet-unified-buttons-click");d=new MouseEvent("click",{view:window,
bubbles:!0,cancelable:!1});$("#pokreniteChat .js-close-modal").get(0).dispatchEvent(d)});$("#pokreniteChat .Button").on("click",function(d){$("#ContactWidget-item--chat").trigger("vipnet-unified-buttons-click");d=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});$("#pokreniteChat .js-close-modal").get(0).dispatchEvent(d)})}},keepTracking:!0,startAtIdle:!0,idle:a.chat.proactiveTimeout||1E4})}function chat_initReactiveChat(a,b){initChatboxPopup(a,b)}
function chat_initProactiveChat(a,b){if("true"!==Cookies.get("UserRefusedChat")){var c=$("#chat-placeholder");c.data("client",a);c.data("agents",b);$(document).idle({onIdle:function(){if("true"!==Cookies.get("UserRefusedChat")&&!(VIPNET_AVAYA_CONFIG.proactiveModalActivated||""!=callID||0<$("#av_chat_container:visible").length||0<$("html.chatbox-collapse-html-open").length)){VIPNET_AVAYA_CONFIG.proactiveModalActivated=!0;$("#pokreniteChat").find(".row").html(VIPNET_AVAYA_CONFIG.client.chat.proactiveModal?
VIPNET_AVAYA_CONFIG.client.chat.proactiveModal:"");var d=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});$("#open-pokreniteChat").get(0).dispatchEvent(d);$(".ProactiveChat-close").on("click",function(){var e=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});$("#pokreniteChat .js-close-modal").get(0).dispatchEvent(e);Cookies.set("UserRefusedChat","true",{sameSite:"Lax"})});$("#pokreniteChat .btn").on("click",function(e){0<$("#av_chat_header_status").length&&($("#ContactWidget-item--chat").trigger("vipnet-unified-buttons-click"),
e=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1}),$("#pokreniteChat .js-close-modal").get(0).dispatchEvent(e))});$("#pokreniteChat .Button").on("click",function(e){$("#ContactWidget-item--chat").trigger("vipnet-unified-buttons-click");e=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});$("#pokreniteChat .js-close-modal").get(0).dispatchEvent(e)})}},keepTracking:!0,startAtIdle:!0,idle:a.chat.proactiveTimeout||1E4})}}
function isChatUsernameValid(a){a="undefined"!==typeof a?a:$("#chat-username");var b=!0,c="",d=a.val().trim();!b||d&&null!==d.match(/(.+){3,20}/)||(b=!1,c="Obavezan unos od 3 do 20 znakova");a=a.closest(".form-group");a.toggleClass("has-error",!b);a.find("span").text(c);return b}function isChatQuestionValid(a){return""!=("undefined"!==typeof a?a:$("#chat-question")).val().trim()}$(document).on("change","#chat-username, #chat-question",function(a){validateChatboxForm()});
$(document).on("click",".modal .close",function(){"PROACTIVE"!==VIPNET_AVAYA_CONFIG.client.chat.type&&"REACTIVE_AND_PROACTIVE"!==VIPNET_AVAYA_CONFIG.client.chat.type||Cookies.set("UserRefusedChat","true",{sameSite:"Lax"})});function validateChatboxForm(){var a=$("#chat-username"),b=$("#chat-question"),a=isChatUsernameValid(a),c=isChatQuestionValid(b);$fg=b.closest(".form-group");$fg.toggleClass("has-error",!c);return a&&c}
function getAgentStatus(a){$.ajax(VIPNET_AVAYA_CONFIG.serverURL+"/AgentCache/process.do",{type:"POST",dataType:"json",contentType:"application/json",processData:!1,data:JSON.stringify({loginname:"portal_user",messagetype:"GetAvailableChatAgentCount",messagecontext:{requestid:"E14716083381262",timeleft:"120000",sender:"VIPNET.HR",timestamp:"undefined"!==typeof moment?moment().format("YYYY-MM-DD, HH:mm:ss"):new Date}}),timeout:a.settings.timeoutThreshold}).done(function(b){if(b&&b.availableagents){var c=
null;$.each(b.availableagents.workGroupAgentCount,function(d,e){e.name===a.chat.workgroup&&(c=e.agentCount)});null!=c?c>=a.settings.agentsThreshold&&(0==c?VIPNET_AVAYA_CONFIG.unifiedButtonsEnabled&&($("#ContactWidget-item--chat").toggleClass("ContactWidget-item--unavailable",!1),$("#ContactWidget-item--chat").toggleClass("ContactWidget-item--waiting",!0),"REACTIVE"===a.chat.type?chat_initReactiveChat(a,c):"PROACTIVE"===a.chat.type?chat_initProactiveChat(a,c):"REACTIVE_AND_PROACTIVE"===a.chat.type&&
chat_initReactiveAndProactiveChat(a,c)):($("#ContactWidget-item--chat").toggleClass("ContactWidget-item--unavailable",!1),$("#ContactWidget-item--chat").toggleClass("ContactWidget-item--waiting",!1),"REACTIVE"===a.chat.type?chat_initReactiveChat(a,c):"PROACTIVE"===a.chat.type?chat_initProactiveChat(a,c):"REACTIVE_AND_PROACTIVE"===a.chat.type&&chat_initReactiveAndProactiveChat(a,c))):VIPNET_AVAYA_CONFIG.unifiedButtonsEnabled&&($("#ContactWidget-item--chat").remove(),0==$(".ContactWidget-item").length&&
$(".ContactWidget-trigger").addClass("hidden"))}}).fail(function(b,c,d){$("#ContactWidget-item--chat").remove();0==$(".ContactWidget-item").length&&$(".ContactWidget-trigger").addClass("hidden");console.log(c)})}
function getClient(){VIPNET_AVAYA_CONFIG.enabled&&VIPNET_AVAYA_CONFIG.clientURL&&$.get(VIPNET_AVAYA_CONFIG.clientURL,{id:VIPNET_AVAYA_CONFIG.clientId}).done(function(a,b,c){a&&a.client?(VIPNET_AVAYA_CONFIG.client=a.client,getAgentStatus(VIPNET_AVAYA_CONFIG.client),0<VIPNET_AVAYA_CONFIG.client.settings.agentStatusRefreshPeriod?VIPNET_AVAYA_CONFIG.agentRefreshIntervalHandle=setInterval(function(){0>=VIPNET_AVAYA_CONFIG.client.settings.agentStatusRefreshPeriod?clearAgentRefreshInterval():getAgentStatus(VIPNET_AVAYA_CONFIG.client)},
VIPNET_AVAYA_CONFIG.client.settings.agentStatusRefreshPeriod):VIPNET_AVAYA_CONFIG.agentRefreshIntervalHandle&&clearAgentRefreshInterval()):($("#ContactWidget-item--chat").remove(),0==$(".ContactWidget-item").length&&$(".ContactWidget-trigger").addClass("hidden"))})}function clearAgentRefreshInterval(){VIPNET_AVAYA_CONFIG.agentRefreshIntervalHandle&&(clearInterval(VIPNET_AVAYA_CONFIG.agentRefreshIntervalHandle),VIPNET_AVAYA_CONFIG.agentRefreshIntervalHandle=null)}function onReadyHandler(a,b){}
$(document).ready(function(){if(VIPNET_AVAYA_CONFIG.enabled&&VIPNET_AVAYA_CONFIG.globalEnabled)if(getClient(),!0===VIPNET_AVAYA_CONFIG.proactiveModalActivated)$(document).on("click",".chat-close",function(a){a.preventDefault();$("#chatbox-placeholder").remove();return!1});else $(document).on("click",".chat-close",function(a){a.preventDefault();$("#chatbox-collapse").trigger("click");return!1})});
function openEscalateLiveChat(){var a={};a.displayname=$("#chat-username").val();a.question=$("#chat-question").val();a.eduvalues={chat_customer_website:VIPNET_AVAYA_CONFIG.client.chat.channel,chat_customer_country:"hr",chat_customer_email:VIPNET_AVAYA_CONFIG.customer.email,chat_customer_hw:Liferay.Browser.isMobile()?"MOBILE":"DESKTOP",chat_customer_id:VIPNET_AVAYA_CONFIG.customer.id,chat_customer_msisdn:VIPNET_AVAYA_CONFIG.customer.msisdn,chat_customer_name:VIPNET_AVAYA_CONFIG.customer.name||"Guest",
chat_customer_page_title:location.href,chat_customer_question:a.question};AV.WebAPI.escalateLiveChat({params:a,success:function(b){$("#chat-placeholder").empty()},error:function(b){AV.console.warn("UI: escalateChat:: "+b)}})};
var productViewObjects=[],productsClickObjects=[];
function isElementVisible(b){var a=b.getBoundingClientRect(),d=window.innerWidth||document.querySelector("section.zelim-wrap .flickity-slider").clientWidth,c=window.innerHeight||document.querySelector("section.zelim-wrap .flickity-slider").clientHeight;return 0>a.right||0>a.bottom||a.left>d||a.top>c?!1:b.contains(document.elementFromPoint(a.left,a.top))||b.contains(document.elementFromPoint(a.right,a.top))||b.contains(document.elementFromPoint(a.right,a.bottom))||b.contains(document.elementFromPoint(a.left,
a.bottom))||b.contains(document.elementFromPoint(a.right-a.width/2,a.bottom-a.height/2))}function sendGtmProductViewsData(b,a){var d=[];b.find(".item").each(function(c){isElementVisible(this)&&(c=productViewObjects[c],"undefined"!==typeof c&&d.push(c))});0<d.length&&(window.dataLayer=window.dataLayer||[])}
$(document).ready(function(){try{var b=$("[data-portlet-id\x3d"+DEVICES_CLIENT_CONF.namespace+"]");b&&(sendGtmProductViewsData(b,DEVICES_CLIENT_CONF.namespace),b.find(".flickity-button.flickity-prev-next-button.previous").click(function(){sendGtmProductViewsData(b,DEVICES_CLIENT_CONF.namespace)}),b.find(".flickity-button.flickity-prev-next-button.next").click(function(){sendGtmProductViewsData(b,DEVICES_CLIENT_CONF.namespace)}),b.find("[data-product-click-index]").click(function(){window.dataLayer=
window.dataLayer||[]}))}catch(a){}});
