PageSourceSearch

https://www.cotebougie.com/themes/theme_nq/assets/cache/bottom-59b493855.js

js cotebougie.com collected 2026-10-05 07:45:09 UTC 59,848 bytes, 287 lines download raw bytes

1/**
2 * 2007-2020 PrestaShop.
3 *
4 * NOTICE OF LICENSE
5 *
6 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
7 * that is bundled with this package in the file LICENSE.txt.
8 * It is also available through the world-wide-web at this URL:
9 * https://opensource.org/licenses/AFL-3.0
10 * If you did not receive a copy of the license and are unable to
11 * obtain it through the world-wide-web, please send an email
12 * to [email protected] so we can send you a copy immediately.
13 *
14 * DISCLAIMER
15 *
16 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
17 * versions in the future. If you wish to customize PrestaShop for your
18 * needs please refer to http://www.prestashop.com for more information.
19 *
20 * @author    PrestaShop SA <[email protected]>
21 * @copyright 2007-2020 PrestaShop SA
22 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
23 * International Registered Trademark & Property of PrestaShop SA
24 */
25$(document).ready(function(){$('.block_newsletter form').on('submit',function(){var psemailsubscriptionForm=$(this);if(typeof psemailsubscription_subscription==='undefined'){return!0}
26$('.block_newsletter_alert').remove();$.ajax({type:'POST',dataType:'JSON',url:psemailsubscription_subscription,cache:!1,data:$(this).serialize(),success:function(data){if(data.nw_error){psemailsubscriptionForm.prepend('<p class="alert alert-danger block_newsletter_alert">'+data.msg+'</p>')}else{psemailsubscriptionForm.prepend('<p class="alert alert-success block_newsletter_alert">'+data.msg+'</p>')}},error:function(err){console.log(err)}});return!1})});/**
27 * Copyright since 2007 PrestaShop SA and Contributors
28 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
29 *
30 * NOTICE OF LICENSE
31 *
32 * This source file is subject to the Academic Free License version 3.0
33 * that is bundled with this package in the file LICENSE.md.
34 * It is also available through the world-wide-web at this URL:
35 * https://opensource.org/licenses/AFL-3.0
36 * If you did not receive a copy of the license and are unable to
37 * obtain it through the world-wide-web, please send an email
38 * to [email protected] so we can send you a copy immediately.
39 *
40 * @author    PrestaShop SA and Contributors <[email protected]>
41 * @copyright Since 2007 PrestaShop SA and Contributors
42 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
43 */
44$(document).ready(function(){prestashop.on('updateProduct',function(params){if(params.eventType==='updatedProductCombination'){var productId=$('input[name="id_product"]').val();var $productAttributes=$(params.event.handleObj.selector);var attributes=[];$productAttributes.each(function(key,attribute){if($(attribute).is("input")&&!$(attribute).is(':checked')){return}
45attributes.push($(attribute).val())})
46ajaxProductCombinationChange(productId,attributes)}});function ajaxProductCombinationChange(productId,attributes){$.ajax({type:'POST',url:prestashopFacebookAjaxController,data:{action:'CustomizeProduct',ajax:!0,id_product:productId,attribute_ids:attributes,}})}});/**
47 * 2007-2020 ETS-Soft
48 *
49 * NOTICE OF LICENSE
50 *
51 * This file is not open source! Each license that you purchased is only available for 1 wesite only.
52 * If you want to use this file on more websites (or projects), you need to purchase additional licenses. 
53 * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
54 * 
55 * DISCLAIMER
56 *
57 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
58 * versions in the future. If you wish to customize PrestaShop for your
59 * needs please contact us for extra customization service at an affordable price
60 *
61 *  @author ETS-Soft <[email protected]>
62 *  @copyright  2007-2021 ETS-Soft
63 *  @license    Valid for 1 website (or project) for each purchase of license
64 *  International Registered Trademark & Property of ETS-Soft
65 */
66$(document).ready(function(){if($('.ets_speed_dynamic_hook').length){var datas='';$('.ets_speed_dynamic_hook').each(function(index,domhook){datas=datas+'&hook_'+index+'='+$(this).attr('data-hook')+'&module_'+index+'='+$(this).attr('data-moudule')});var url=window.location.href;var indexphp=url.indexOf('?');var indexthang=url.indexOf('#');if(indexthang>=0)
67url=url.substr(0,indexthang);if(indexphp>=0&&indexphp<url.length){url+='&ajax=true'}else{url+='?ajax=true'}
68$.ajax({type:'POST',headers:{"cache-control":"no-cache"},url:url,async:!0,cache:!1,dataType:"json",data:'ets_superseed_load_content=1&ajax=1&count_datas='+$('.ets_speed_dynamic_hook').length+datas,success:function(jsonData,textStatus,jqXHR){renderDataAjax(jsonData);if($(window).width()<768){$("*[id^='_desktop_']").each(function(t,e){var n=$("#"+e.id.replace("_desktop_","_mobile_"));if($(this).html().trim()!=''&&n.length)
69n.html($(this).html())})}
70$(document).trigger("hooksLoaded")},error:function(XMLHttpRequest,textStatus,errorThrown){}})}});(function(){$(document).ready(function(){newquestGdprAccountInformations();$(document).ready(function(){$('#cnilbanner a.acceptBtn').on('click',function(){document.cookie='cookie_consent=1';$('#cnilbanner').remove();return!1})});if($('#cnilbanner').length){$('#cnilbanner .close_cross').off().on('click',function(){ajaxCookieConsent()})}});function newquestGdprAccountInformations(){if($('.newquest_gdpr_account_informations').length){$('.newquest_gdpr_account_informations .close_cross').off().on('click',function(){ajaxCookieConsentAccountBanner()})}}
71function ajaxCookieConsent(){var _baseDir='';if(typeof baseDir!=="undefined")
72_baseDir=baseDir;else if(typeof this!=="undefined"&&typeof this.baseURI!=="undefined")
73_baseDir=this.baseURI;else if(typeof prestashop!=="undefined"&&typeof prestashop.urls!=="undefined"&&typeof prestashop.urls.base_url!=="undefined")
74_baseDir=prestashop.urls.base_url;if(typeof _baseDir&&_baseDir){$.ajax({type:'GET',url:_baseDir+'modules/newquest_gdpr/ajax.php',data:'submitConfidentiality=1',success:function(){$('#cnilbanner').fadeOut('fast',function(){$('#cnilbanner').remove()})}})}}
75function ajaxCookieConsentAccountBanner(){var _baseDir='';if(typeof baseDir!=="undefined")
76_baseDir=baseDir;else if(typeof this!=="undefined"&&typeof this.baseURI!=="undefined")
77_baseDir=this.baseURI;else if(typeof prestashop!=="undefined"&&typeof prestashop.urls!=="undefined"&&typeof prestashop.urls.base_url!=="undefined")
78_baseDir=prestashop.urls.base_url;$.ajax({type:'GET',url:_baseDir+'modules/newquest_gdpr/ajax.php',data:'cookie_consent_account_banner=1',success:function(){$('.newquest_gdpr_account_informations').slide
78Up(300,function(){$(this).remove();$('#header_user .bullet_notify_account_gdpr').remove()});$('#header_user .bullet_notify_account_gdpr').hide(300,function(){$(this).remove()})}})}})(jQuery);var gtmEvents=(function($){var boot=function(){};var processUpdate=!1;var gtmEvents=function(){$('[data-gtm-event]').on('click',function(e){var event={};$.each($(this).data(),function(k,v){if(0===k.indexOf('gtm')){event[(k.charAt(3).toLowerCase()+k.slice(4))]=v}});if(!$.isEmptyObject(event)){try{window.dataLayer.push(event)}catch(error){}}})};var pushDataLayerAddToCart=function($meta,quantity){if(!$meta.length){return!1}
79var productName=$meta.data('gtm-name');var productCategory=$meta.data('gtm-category');var productPrice=Math.round($meta.data('gtm-price')*100,2)/100;var productId=$meta.data('gtm-id');var productEan13=$meta.data('gtm-ean13');var productQuantity=quantity;if($('#quantity_wanted').length>0){productQuantity=parseInt($('#quantity_wanted').val())}
80if(productQuantity===!1){productQuantity=1}
81var variant='';if($meta.attr('gtm-variant')!=undefined){variant=$meta.data('gtm-variant')}else{$('.product-variants select option[selected="selected"], .product-variants input[type="radio"]:checked').each(function(){if(variant!=''){variant+=' - '}
82if($(this).is(':checked')){var labelObj=$('.product-variants label[for="'+$(this).attr('name')+'_'+$(this).val()+'"] span');if(labelObj.length>0){variant+=labelObj.text()}}else{variant+=$(this).text()}})}
83var productLayer={'name':productName,'id':productId,'ean13':productEan13,'price':productPrice,'category':productCategory,'quantity':productQuantity};if(variant!=''){productLayer.variant=variant}
84var dataLayer={'event':'AddToBasket','eventAction':'Add to Basket','eventCategory':'Ecommerce','eventLabel':productName,'ecommerce':{'add':{'products':[productLayer]}}};try{window.dataLayer.push(dataLayer)}catch(error){}
85$meta.attr('data-gtm-quantity',productQuantity)};var pushDataLayerRemoveToCart=function(object,newQuantity){var $self=object;var $meta=$self.parents('.nq-c-CartDetailsItem').find('.gtm-meta');if(!$meta.length){return!1}
86var productName=$meta.data('gtm-name');var productCategory=$meta.data('gtm-category');var productPrice=$meta.data('gtm-price');var productId=$meta.data('gtm-id');var productQuantity=newQuantity;var productBrand=$meta.data('gtm-brand');var productVariant=$meta.data('gtm-variant');var dataLayer={'event':'removeFromBasket','eventCategory':'Ecommerce','eventAction':'Remove From Basket','eventLabel':productName,'ecommerce':{'remove':{'products':[{'name':productName,'id':productId,'price':productPrice,'category':productCategory,'quantity':productQuantity}]}}};if(productBrand!==undefined&&productBrand!=='')
87dataLayer.ecommerce.remove.products[0].brand=productBrand;if(productVariant!==undefined&&productVariant!=='')
88dataLayer.ecommerce.remove.products[0].variant=productVariant;try{window.dataLayer.push(dataLayer)}catch(error){}
89$meta.attr('data-gtm-quantity',productQuantity)};var customEvents=function(){$(document).on('click','.add-to-cart, button[data-button-action="add-to-cart"]',function(){var $meta=$('#gtm-meta-product');if($meta.length==0){$meta=$(this).parents('.product-miniature').find('.gtm-meta')}
90if($meta.length==0){return!0}
91pushDataLayerAddToCart($meta,!1)});$(document).on('click','.nq-c-Quantity-btn',function(e){e.preventDefault();if(processUpdate){processUpdate=!1;return!0}
92e.stopPropagation();if($(this).attr('data-type')=="decrement"){processUpdate=!0;pushDataLayerRemoveToCart($(this),1);$(this).click()}else{processUpdate=!0;pushDataLayerAddToCart($(this).parents('.nq-c-CartDetailsItem').find('.gtm-meta'),1);$(this).click()}});$(document).on('change','.nq-c-Quantity-input',function(){if($(this).val()==0){pushDataLayerRemoveToCart($(this),$('.input-quantity').val())}else{var $meta=$(this).parents('.nq-c-CartDetailsItem').find('.gtm-meta');if(parseInt($meta.data('gtm-quantity'))>parseInt($(this).val())){pushDataLayerRemoveToCart($(this),parseInt($meta.data('gtm-quantity'))-parseInt($(this).val()))}else if(parseInt($meta.data('gtm-quantity'))<parseInt($(this).val())){pushDataLayerAddToCart($(this).parents('.nq-c-CartDetailsItem').find('.gtm-meta'),parseInt($(this).val())-parseInt($meta.data('gtm-quantity')))}}});$(document).on('click','.nq-c-CartDetailsItem-remove',function(e){if(processUpdate){processUpdate=!1;return!0}
93e.stopPropagation();processUpdate=!0;pushDataLayerRemoveToCart($(this),$('.input-quantity').val());$(this).click()});$(document).on('click','.carrier-radio input[name^="delivery_option["]',function(e){var carrierName=$(this).parents('.delivery-option').find('.carrier-name').text().trim();try{window.dataLayer.push({'event':'checkoutOptionLivraison','eventCategory':'Ecommerce','eventAction':'Checkout Option','eventLabel':'Checkoutoptionlivraison','ecommerce':{'checkout_option':{'actionField':{'step':3,'option':carrierName}}}})}catch(error){}});$(document).on('click','input[name="payment-option"]',function(e){var paymentName=$(this).parents('.payment-option').find('.payment-option-text').text().trim();try{window.dataLayer.push({'event':'checkoutOptionPaiement','eventCategory':'Ecommerce','eventAction':'Checkout Option','eventLabel':'Checkoutoptionpayment','ecommerce':{'checkout_option':{'actionField':{'step':4,'option':paymentName}}}})}catch(error){}});$(document).on('click','.slick-slide .product-hover a, .product-miniature a.product-thumbnail',function(e){e.preventDefault();var $self=$(this).parents('article');var linkProduct=$(this);var urlProduct=linkProduct.attr('href');var $meta=$self.find('.gtm-meta');if(!$meta.length){window.location=urlProduct}
94var productName=$meta.data('gtm-name');var productCategory=$meta.data('gtm-category');
94var productPrice=$meta.data('gtm-price');var productId=$meta.data('gtm-id');var uri=$meta.data('gtm-uri');var listType=$meta.data('gtm-list-type');var productPosition=$meta.data('gtm-position');var callbackFailed=!0;try{window.dataLayer.push({'event':'productClick','eventAction':'Clic','eventCategory':'Ecommerce','eventLabel':productName,'ecommerce':{'click':{'actionField':{'list':listType},'products':[{'name':productName,'id':productId,'price':productPrice,'category':productCategory,'position':productPosition,'list':listType}]}},'eventCallback':function(){callbackFailed=!1;window.location=urlProduct}})}catch(error){window.location=urlProduct}
95if(callbackFailed){window.location=urlProduct}});pushProductImpressions('')};var pushProductImpressions=function(parentSelector){var impressions=[];var productPositions=[];$('.gtm-meta[data-impression="true"]').each(function(){var $self=$(this).parents('article');$meta=$(this);if(!$meta.length){window.location=urlProduct}
96var productName=$meta.data('gtm-name');var productCategory=$meta.data('gtm-category');var productPrice=$meta.data('gtm-price');var productId=$meta.data('gtm-id');var listType=$meta.data('gtm-list-type');if(productPositions[listType]==undefined){productPositions[listType]=1}else{productPositions[listType]++}
97impressions.push({'name':productName,'id':productId,'price':productPrice,'category':productCategory,'position':productPositions[listType],'list':listType})});if(impressions.length){try{window.dataLayer.push({'event':'productimpression','eventAction':'impression','eventCategory':'Ecommerce','eventLabel':uriGTM,'ecommerce':{'impressions':impressions}})}catch(error){}}};$(document).ready(function(){gtmEvents();customEvents()});return{'boot':boot,'pushProductImpressions':pushProductImpressions}})(jQuery);(function($){$.each(['show','hide'],function(i,ev){var el=$.fn[ev];$.fn[ev]=function(){this.trigger(ev);return el.apply(this,arguments)}})})(jQuery);/**
98 * 2015-2023 Cubyn
99 *
100 * NOTICE OF LICENSE
101 *
102 * This source file is subject to the Academic Free License (AFL 3.0)
103 * that is bundled with this package in the file LICENSE.txt.
104 * It is also available through the world-wide-web at this URL:
105 * http://opensource.org/licenses/afl-3.0.php
106 * If you did not receive a copy of the license and are unable to
107 * obtain it through the world-wide-web, please send an email
108 * to [email protected] so we can send you a copy immediately.
109 *
110 * DISCLAIMER
111 *
112 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
113 * versions in the future. If you wish to customize PrestaShop for your
114 * needs please refer to http://www.prestashop.com for more information.
115 *
116 * @author    Cubyn <[email protected]>
117 * @copyright 2015-2023 Cubyn
118 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
119 */
120$(document).ready(function(){window.CUBYN=window.CUBYN||{};function log(){}
121function setRelay(info){$.fancybox.close();if(!info||!info.id||info.id==="undefined"){CUBYN.SELECTED_RELAY=!1}else{CUBYN.SELECTED_RELAY=info}
122updateRelayBlock();saveRelay()};function inited(){return!!$('.cubyn-relay.inited').length};function init(){$('.cubyn-relay .cubyn-popin-trigger').attr('href',CUBYN.IFRAME_URL);var relayRadio=findRelayRadioButton();if(!relayRadio.length)return;if(inited()){$('.cubyn-relay.not-inited').remove();return}
123document.domain=document.domain;if(!moveRelayBlock()){return}
124updateRelayBlock();var popinTrigger=$('.cubyn-popin-trigger');popinTrigger.fancybox({type:'iframe',preload:!0});var relayButton=findRelayRadioButton();popinTrigger.on('mousedown',function(){if(relayButton[0]&&relayButton[0].checked)return;relayButton.click()});findRelayRadioButton().on('click',function(){if(CUBYN.SELECTED_RELAY&&CUBYN.SELECTED_RELAY.id)return;$('.cubyn-popin-trigger').click()})};function forceRelayRadioClick(){var relayRadio=findRelayRadioButton();if(relayRadio.length&&relayRadio[0].checked&&CUBYN.PS_VERSION!=='1.7'){relayRadio.change()}}
125function moveRelayBlock(){var relayBlock=$('.cubyn-relay');if(!relayBlock.length)return!1;relayBlock.toggleClass('not-inited',!1).toggleClass('inited',!0).show();var sibling=findRelayBlockSibling();if(!sibling)return!0;sibling.after(relayBlock);return!0}
126function updateRelayBlock(){$('.cubyn-relay .cubyn-popin-trigger').attr('href',CUBYN.IFRAME_URL);var info=CUBYN.SELECTED_RELAY;if(!info||!info.id){$('[name=cubyn_relay_info]').val('');$('.cubyn-relay .cubyn-popin-trigger').html(CUBYN.T.BUTTON_SELECT);$('.cubyn-relay .cubyn-address').html(CUBYN.T.EMPTY_SLATE);log('removed all relay info')}else{$('[name=cubyn_relay_info]').val(JSON.stringify(CUBYN.SELECTED_RELAY));$('.cubyn-relay .cubyn-popin-trigger').html(CUBYN.T.BUTTON_UPDATE);var name=$('<strong/>').html(info.name);$('.cubyn-relay .cubyn-address').html('');$('.cubyn-relay .cubyn-address').append(name).append(' — '+info.street+' '+info.zip+' '+info.city);log('updated relay info')}};function saveRelay(){log('save relay to backend');if(!checkRelaySelection())return;$.ajax({type:'POST',dataType:'json',data:{'cubyn_relay_save':!0,'cubyn_relay_info':JSON.stringify(CUBYN.SELECTED_RELAY)},}).done(function(data){if(!data.hasError){updateRelayBlock()}else{CUBYN.SELECTED_RELAY=!1;updateRelayBlock();throw new Error('invalid relay point')}})};function findRelayBlockSibling(){var id=CUBYN.RELAY_CARRIER;var el;if(CUBYN.CUSTOM_RELAY_SELECTOR){var parts=CUBYN.CUSTOM_RELAY_SELECTOR.replace(/--id--/g,id).split('//');el=$(parts[0]);if(parts[1]&&parts[1].length){el=el.parents(parts[1])}
127if(parts[2]&&parts[2].length){el=el.find(parts[2])}
128if(el.length)return el}
129el=$('.delivery_option_radio[value*="'+id+'"]').parents('.delivery_option');if(el.length)return el;return!1}
130function findRelayRadioButton(){switch(CUBYN.PS_VERSION){case '1.7':return $('#delivery_option_'+CUBYN.RELAY_CARRIER);default:return $('.delivery_option_radio[value*="'+CUBYN.RELAY_CARRIER+'"]')}};function checkRelaySelection(event){var relayRadio=findRelayRadioButton();if(!relayRadio.length||!relayRadio[0].checked)return!0;if(!CUBYN.SELECTED_RELAY||!CUBYN.SELECTED_RELAY.id){event&&event.stopPropagation&&event.stopPropagation();event&&event.stopImmediatePropagation&&event.stopImmediatePropagation();event&&event.preventDefault&&event.preventDefault();alert(CUBYN.T.NOSELECT_ALERT);return!1}
131return!0}
132function captureClick(elSelector,callback){var $element=$(elSelector);if(!$element.length)return;var element=$element.get(0);if(element.addEventListener){element.addEventListener("click",callback,!0)}else if(element.attachEvent){document.attachEvent("onclick",function(){var event=window.event;callback(event)})}}
133forceRelayRadioClick(!0);init();CUBYN.setRelay=setRelay;CUBYN.inited=inited;CUBYN.init=init;CUBYN.log=log;$(document)[0].addEventListener("click",function(event){const currentElement=$(event.target);if(currentElement.parents(".delivery-option").length){return}
134const elementQueries=["a",".btn","button","input[type=submit]"];const elementIsOneOf=(queries,element)=>queries.some(query=>element.is(query))
135if(!elementIsOneOf(elementQueries,currentElement)&&!elementIsOneOf(elementQueries,currentElement.parent())){return}
136const currentClass=currentElement.attr("class");const authorizedClasses=["cubyn-popin-trigger","fancybox-item","fancybox-close"];const isAuthorizedClass=currentClass&&authorizedClasses.some(authorizedClass=>currentClass.search(authorizedClass)!==-1);if(isAuthorizedClass){return}
137return checkRelaySelection(event)},!0)});/**
138* History:
139*
140* 1.0.0 - First version
141*
142*  @author    Vincent MASSON <[email protected]>
143*  @copyright Vincent MASSON <www.coeos.pro>
144*  @license   http://www.coeos.pro/fr/content/3-conditions-generales-de-ventes
145*/
146$().ready(function(){var vat_number=$("input[name$=vat_number]").val();var id_country=$("[name$=id_country]").val();verification_vat_number(vat_number,id_country);$("input[name$=vat_number]").focusout(function(){var vat_number=$("input[name$=vat_number]").val();var id_country=$("[name$=id_country]").val();verification_vat_number(vat_number,id_country)});$("[name$=id_country]").focusout(function(){var vat_number=$("input[name$=vat_number]").val();var id_country=$("[name$=id_country]").val();verification_vat_number(vat_number,id_country)})});function verification_vat_number(vat_number,id_country){$("input[name$=vat_number]").parent().removeClass('error_vat_number');if(vat_number!=""){if(document.getElementById("submitAccount"))
147document.getElementById("submitAccount").style.display="none";$("#msg_vat_number").remove();$.ajax({type:"POST",headers:{"cache-control":"no-cache"},url:vncfc_fc_url,data:{"action":"verifFO","vat_number":vat_number,"id_country":id_country},success:function(result){var r=result.split('|');if(r[0]!='structure'&&r[0]!='vies_2'){$("input[name$=vat_number]").parent().removeClass('error_vat_number');if(document.getElementById("submitAccount"))
148document.getElementById("submitAccount").style.display="inline-block"}else{$("input[name$=vat_number]").after("<div id=\"msg_vat_number\">
148"+r[1]+"</div>");$("input[name$=vat_number]").parent().addClass('error_vat_number');if(document.getElementById("submitAccount"))
149document.getElementById("submitAccount").style.display="none"}},error:function(result){$("input[name$=vat_number]").parent().removeClass('error_vat_number');if(document.getElementById("submitAccount"))
150document.getElementById("submitAccount").style.display="inline-block"}})}else{$("#msg_vat_number").remove();if(document.getElementById("submitAccount"))
151document.getElementById("submitAccount").style.display="inline-block"}};document.addEventListener('click',function(e){const submitBtn=e.target.closest('button.brevo-stock-notification-submit');if(!submitBtn){return}
152const container=submitBtn.closest('.sendinblue-back-in-stock-container');if(!container){return}
153const productId=container.getAttribute('data-product-id');const backinstockUrl=container.getAttribute('data-backinstock-url');const formWrapper=container.querySelector('.sendinblue-form');const emailInput=container.querySelector('input[name="email"]');const hiddenProductId=container.querySelector('input[name="product_id"]');const hiddenAction=container.querySelector('input[name="action"]');const messageDiv=container.querySelector('[id^="sendinblue-message-"]');if(!formWrapper||!emailInput){return}
154const email=(emailInput.value||'').trim();if(!email){if(messageDiv){messageDiv.style.display='block';messageDiv.innerHTML='<div class="alert alert-danger">Please enter a valid email address.</div>'}
155return}
156if(submitBtn.disabled){return}
157submitBtn.disabled=!0;const originalText=submitBtn.textContent;submitBtn.textContent='Subscribing...';if(messageDiv){messageDiv.style.display='none'}
158const formData=new FormData();formData.append('product_id',hiddenProductId?hiddenProductId.value:productId);formData.append('action',hiddenAction?hiddenAction.value:'subscribe');formData.append('email',email);fetch(backinstockUrl,{method:'POST',body:formData,credentials:'same-origin'}).then(response=>response.json()).then(data=>{if(messageDiv){messageDiv.style.display='block';if(data&&data.success){messageDiv.innerHTML='<div class="alert alert-success">'+(data.message||'Subscribed successfully!')+'</div>';formWrapper.style.display='none'}else{messageDiv.innerHTML='<div class="alert alert-danger">'+(data&&data.message?data.message:'Failed to subscribe. Please try again.')+'</div>'}}}).catch(()=>{if(messageDiv){messageDiv.style.display='block';messageDiv.innerHTML='<div class="alert alert-danger">An error occurred. Please try again.</div>'}}).finally(()=>{submitBtn.disabled=!1;submitBtn.textContent=originalText})});+function($){'use strict';var Modal=function(element,options){this.options=options
159this.$body=$(document.body)
160this.$element=$(element)
161this.$backdrop=this.isShown=null
162this.scrollbarWidth=0
163if(this.options.remote){this.$element.find('.modal-content').load(this.options.remote,$.proxy(function(){this.$element.trigger('loaded.bs.modal')},this))}}
164Modal.DEFAULTS={backdrop:!0,keyboard:!0,show:!0}
165Modal.prototype.toggle=function(_relatedTarget){return this.isShown?this.hide():this.show(_relatedTarget)}
166Modal.prototype.show=function(_relatedTarget){var that=this
167var e=$.Event('show.bs.modal',{relatedTarget:_relatedTarget})
168this.$element.trigger(e)
169if(this.isShown||e.isDefaultPrevented())return
170this.isShown=!0
171this.checkScrollbar()
172this.$body.addClass('modal-open')
173this.setScrollbar()
174this.escape()
175this.$element.on('click.dismiss.bs.modal','[data-dismiss="modal"]',$.proxy(this.hide,this))
176this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass('fade')
177if(!that.$element.parent().length){that.$element.appendTo(that.$body)}
178that.$element.show().scrollTop(0)
179if(transition){that.$element[0].offsetWidth}
180that.$element.addClass('in').attr('aria-hidden',!1)
181that.enforceFocus()
182var e=$.Event('shown.bs.modal',{relatedTarget:_relatedTarget})
183transition?that.$element.find('.modal-dialog').one($.support.transition.end,function(){that.$element.trigger('focus').trigger(e)}).emulateTransitionEnd(300):that.$element.trigger('focus').trigger(e)})}
184Modal.prototype.hide=function(e){if(e)e.preventDefault()
185e=$.Event('hide.bs.modal')
186this.$element.trigger(e)
187if(!this.isShown||e.isDefaultPrevented())return
188this.isShown=!1
189this.$body.removeClass('modal-open')
190this.resetScrollbar()
191this.escape()
192$(document).off('focusin.bs.modal')
193this.$element.removeClass('in').attr('aria-hidden',!0).off('click.dismiss.bs.modal')
194$.support.transition&&this.$element.hasClass('fade')?this.$element.one($.support.transition.end,$.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal()}
195Modal.prototype.enforceFocus=function(){$(document).off('focusin.bs.modal').on('focusin.bs.modal',$.proxy(function(e){if(this.$element[0]!==e.target&&!this.$element.has(e.target).length){this.$element.trigger('focus')}},this))}
196Modal.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on('keyup.dismiss.bs.modal',$.proxy(function(e){e.which==27&&this.hide()},this))}else if(!this.isShown){this.$element.off('keyup.dismiss.bs.modal')}}
197Modal.prototype.hideModal=function(){var that=this
198this.$element.hide()
199this.backdrop(function(){that.$element.trigger('hidden.bs.modal')})}
200Modal.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove()
201this.$backdrop=null}
202Modal.prototype.backdrop=function(callback){var that=this
203var animate=this.$element.hasClass('fade')?'fade':''
204if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate
205this.$backdrop=$('<div class="modal-backdrop '+animate+'" />').appendTo(this.$body)
206this.$element.on('click.dismiss.bs.modal',$.proxy(function(e){if(e.target!==e.currentTarget)return
207this.options.backdrop=='static'?this.$element[0].focus.call(this.$element[0]):this.hide.call(this)},this))
208if(doAnimate)this.$backdrop[0].offsetWidth
209this.$backdrop.addClass('in')
210if(!callback)return
211doAnimate?this.$backdrop.one($.support.transition.end,callback).emulateTransitionEnd(150):callback()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass('in')
212var callbackRemove=function(){that.removeBackdrop()
213callback&&callback()}
214$.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one($.support.transition.end,callbackRemove).emulateTransitionEnd(150):callbackRemove()}else if(callback){callback()}}
215Modal.prototype.checkScrollbar=function(){if(document.body.clientWidth>=window.innerWidth)return
216this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar()}
217Modal.prototype.setScrollbar=function(){var bodyPad=parseInt(this.$body.css('padding-right')||0)
218if(this.scrollbarWidth)this.$body.css('padding-right',bodyPad+this.scrollbarWidth)}
219Modal.prototype.resetScrollbar=function(){this.$body.css('padding-right','')}
220Modal.prototype.measureScrollbar=function(){var scrollDiv=document.createElement('div')
221scrollDiv.className='modal-scrollbar-measure'
222this.$body.append(scrollDiv)
223var scrollbarWidth=scrollDiv.offsetWidth-scrollDiv.clientWidth
224this.$body[0].removeChild(scrollDiv)
225return scrollbarWidth}
226var old=$.fn.modal
227$.fn.modal=function(option,_relatedTarget){return this.each(function(){var $this=$(this)
228var data=$this.data('bs.modal')
229var options=$.extend({},Modal.DEFAULTS,$this.data(),typeof option=='object'&&option)
230if(!data)$this.data('bs.modal',(data=new Modal(this,options)))
231if(typeof option=='string')data[option](_relatedTarget)
232else if(options.show)data.show(_relatedTarget)})}
233$.fn.modal.Constructor=Modal
vendor: 4,554 bytes, lines 234-242
234$.fn.modal.noConflict=function(){$.fn.modal=old
235return this}
236$(document).on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var $this=$(this)
237var href=$this.attr('href')
238var $target=$($this.attr('data-target')||(href&&href.replace(/.*(?=#[^\s]+$)/,'')))
239var option=$target.data('bs.modal')?'toggle':$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data())
240if($this.is('a'))e.preventDefault()
241$target.modal(option,this).one('hide',function(){$this.is(':visible')&&$this.trigger('focus')})})}(jQuery);/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
242(function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0<a.indexOf("%")},l=function(a,d){var e=parseInt(a,10)||0;d&&E(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},w=function(a,b){return l(a,b)+"px"};f.extend(b,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(I?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&&k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;
242a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,p.bind({"onCancel.player beforeClose.player":c,"onUpdate.player":e,"beforeLoad.player":d}),e(),b.trigger("onPlayStart")}else c()},next:function(a){var d=b.current;d&&(q(a)||(a=d.direction.next),b.jumpto(d.index+1,a,"next"))},prev:function(a){var d=b.current;d&&(q(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,"prev"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d=a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")),b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id="fancybox-loading"><div></div></div>').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(),y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement;if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==v)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind("mousewheel.fb",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(".fancybox-skin")&&!h.is(".fancybox-wrap");)j=h[0]&&!(h[0].style.overflow&&"hidden"===h[0].style.overflow)&&(h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?"down":"left");else if(0>g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1
vendor: 5,307 bytes, line 242
242)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("<div>").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}",g);break;case "swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+g+'"></param>',h="",f.each(a.swf,function(a,b){e+='<param name="'+a+'" value="'+b+'"></param>';h+=" "+a+'="'+b+'"'}),e+='<embed src="'+g+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll":"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside?h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[
2420]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth||h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),c<m&&(c=m,j=l(c/D)),j<u&&(j=u,c=l(j*D))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&&"iframe"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,p)));if(h.fitToView)if(g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height(),h.aspectRatio)for(;(a>z||y>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(p,j-10)),c=l(j*D),c<m&&(c=m,j=l(c/D)),c>n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&j<A&&c+x+q<z)&&(c+=q);g.width(c).height(j);e.width(c+x);a=e.width();y=e.height();e=(a>z||y>r)&&c>m&&j>u;c=h.aspectRatio?c<F&&j<B&&c<C&&j<A:(c<F||j<B)&&(c<C||j<A);f.extend(h,{dim:{width:w(a),height:w(y)},origWidth:C,origHeight:A,canShrink:e,canExpand:c,wPadding:x,hPadding:v,wrapSpace:y-k.outerHeight(!0),skinSpace:k.height()-j});!H&&(h.autoHeight&&j>u&&j<p&&!c)&&g.height("auto")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:"absolute",top:c[0],left:c[3]};d.autoCenter&&d.fixed&&!a&&g<=e.h&&f<=e.w?c.position="fixed":d.locked||(c.top+=e.y,c.left+=e.x);c.top=w(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=w(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css("overflow","visible").addClass("fancybox-opened"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css("cursor","pointer").bind("click.fb",function(d){!f(d.target).is("a")&&!f(d.target).parent().is("a")&&(d.preventDefault(),b[a.closeClick?"close":"next"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind("click.fb",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind("click.fb",b.next)),b.trigger("afterShow"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a=a||b.current;f(".fancybox-wrap").trigger("onReset").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger("afterClose",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(":visible"))&&(e=d.find("img:first"),e.length||(e=d));t(e)?(c=e.offset(),e.is("img")&&(f=e.outerWidth(),g=e.outerHeight())):(c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if("fixed"===b.wrap.css("position")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:w(c.top-h*a.topRatio),left:w(c.left-j*a.leftRatio),width:w(f+j),height:w(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if("width"===f||"height"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c="width"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l("width"===f?c:c-g*e)),b.inner[f](l("width"===f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c="elastic"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):"fade"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:"none"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e="elastic"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c,{duration:"none"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})}
242,changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;"elastic"===d&&(g="down"===f||"up"===f?"top":"left","down"===f||"right"===f?(e[g]=w(l(e[g])-200),c[g]="+=200px"):(e[g]=w(l(e[g])+200),c[g]="-=200px"));"none"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a=b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;"elastic"===d&&(e["down"===c||"up"===c?"top":"left"]=("up"===c||"left"===c?"-":"+")+"=200px");a.wrap.animate(e,{duration:"none"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger("onReset").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,el:f("html"),create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay=f('<div class="fancybox-overlay"></div>').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth),p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"===f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('<div class="fancybox-title fancybox-title-'+c+'-wrap">'+e+"</div>");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner('<span class="child"></span>'),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.o
242pen(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('<div style="position:fixed;top:20px;"></div>').appendTo("body");var e=20===d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("<style type='text/css'>.fancybox-margin{margin-right:"+(d-a)+"px;}</style>").appendTo("head")})})(window,document,jQuery);/*! http://responsiveslides.com v1.54 by @viljamis */
243(function(c,I,B){c.fn.responsiveSlides=function(l){var a=c.extend({auto:!0,speed:500,timeout:4E3,pager:!1,nav:!1,random:!1,pause:!1,pauseControls:!0,prevText:"Previous",nextText:"Next",maxwidth:"",navContainer:"",manualControls:"",namespace:"rslides",before:c.noop,after:c.noop},l);return this.each(function(){B++;var f=c(this),s,r,t,m,p,q,n=0,e=f.children(),C=e.size(),h=parseFloat(a.speed),D=parseFloat(a.timeout),u=parseFloat(a.maxwidth),g=a.namespace,d=g+B,E=g+"_nav "+d+"_nav",v=g+"_here",j=d+"_on",w=d+"_s",k=c("<ul class='"+g+"_tabs "+d+"_tabs' />"),x={"float":"left",position:"relative",opacity:1,zIndex:2},y={"float":"none",position:"absolute",opacity:0,zIndex:1},F=function(){var b=(document.body||document.documentElement).style,a="transition";if("string"===typeof b[a])return!0;s=["Moz","Webkit","Khtml","O","ms"];var a=a.charAt(0).toUpperCase()+a.substr(1),c;for(c=0;c<s.length;c++)if("string"===typeof b[s[c]+a])return!0;return!1}(),z=function(b){a.before(b);F?(e.removeClass(j).css(y).eq(b).addClass(j).css(x),n=b,setTimeout(function(){a.after(b)},h)):e.stop().fadeOut(h,function(){c(this).removeClass(j).css(y).css("opacity",1)}).eq(b).fadeIn(h,function(){c(this).addClass(j).css(x);a.after(b);n=b})};a.random&&(e.sort(function(){return Math.round(Math.random())-0.5}),f.empty().append(e));e.each(function(a){this.id=w+a});f.addClass(g+" "+d);l&&l.maxwidth&&f.css("max-width",u);e.hide().css(y).eq(0).addClass(j).css(x).show();F&&e.show().css({"-webkit-transition":"opacity "+h+"ms ease-in-out","-moz-transition":"opacity "+h+"ms ease-in-out","-o-transition":"opacity "+h+"ms ease-in-out",transition:"opacity "+h+"ms ease-in-out"});
243if(1<e.size()){if(D<h+100)return;if(a.pager&&!a.manualControls){var A=[];e.each(function(a){a+=1;A+="<li><a href='#' class='"+w+a+"'>"+a+"</a></li>"});k.append(A);l.navContainer?c(a.navContainer).append(k):f.after(k)}a.manualControls&&(k=c(a.manualControls),k.addClass(g+"_tabs "+d+"_tabs"));(a.pager||a.manualControls)&&k.find("li").each(function(a){c(this).addClass(w+(a+1))});if(a.pager||a.manualControls)q=k.find("a"),r=function(a){q.closest("li").removeClass(v).eq(a).addClass(v)};a.auto&&(t=function(){p=setInterval(function(){e.stop(!0,!0);var b=n+1<C?n+1:0;(a.pager||a.manualControls)&&r(b);z(b)},D)},t());m=function(){a.auto&&(clearInterval(p),t())};a.pause&&f.hover(function(){clearInterval(p)},function(){m()});if(a.pager||a.manualControls)q.bind("click",function(b){b.preventDefault();a.pauseControls||m();b=q.index(this);n===b||c("."+j).queue("fx").length||(r(b),z(b))}).eq(0).closest("li").addClass(v),a.pauseControls&&q.hover(function(){clearInterval(p)},function(){m()});if(a.nav){g="<a href='#' class='"+E+" prev'>"+a.prevText+"</a><a href='#' class='"+E+" next'>"+a.nextText+"</a>";l.navContainer?c(a.navContainer).append(g):f.after(g);var d=c("."+d+"_nav"),G=d.filter(".prev");d.bind("click",function(b){b.preventDefault();b=c("."+j);if(!b.queue("fx").length){var d=e.index(b);b=d-1;d=d+1<C?n+1:0;z(c(this)[0]===G[0]?b:d);if(a.pager||a.manualControls)r(c(this)[0]===G[0]?b:d);a.pauseControls||m()}});a.pauseControls&&d.hover(function(){clearInterval(p)},function(){m()})}}if("undefined"===typeof document.body.style.maxWidth&&l.maxwidth){var H=function(){f.css("width","100%");f.width()>u&&f.css("width",u)};H();c(I).bind("resize",function(){H()})}})}})(jQuery,this,0);/**
244 * 2007-2020 PrestaShop.
245 *
246 * NOTICE OF LICENSE
247 *
248 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
249 * that is bundled with this package in the file LICENSE.txt.
250 * It is also available through the world-wide-web at this URL:
251 * https://opensource.org/licenses/AFL-3.0
252 * If you did not receive a copy of the license and are unable to
253 * obtain it through the world-wide-web, please send an email
254 * to [email protected] so we can send you a copy immediately.
255 *
256 * DISCLAIMER
257 *
258 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
259 * versions in the future. If you wish to customize PrestaShop for your
260 * needs please refer to http://www.prestashop.com for more information.
261 *
262 * @author    PrestaShop SA <[email protected]>
263 * @copyright 2007-2020 PrestaShop SA
264 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
265 * International Registered Trademark & Property of PrestaShop SA
266 */
267jQuery(document).ready(function($){var homesliderConfig={speed:500,timeout:$('.homeslider-container').data('interval'),nav:!0,random:!1,pause:$('.homeslider-container').data('pause'),maxwidth:"",namespace:"homeslider",before:function(){},after:function(){}};$(".rslides").responsiveSlides(homesliderConfig)});/**
268 * 2007-2020 PrestaShop and Contributors
269 *
270 * NOTICE OF LICENSE
271 *
272 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
273 * that is bundled with this package in the file LICENSE.txt.
274 * It is also available through the world-wide-web at this URL:
275 * https://opensource.org/licenses/AFL-3.0
276 * If you did not receive a copy of the license and are unable to
277 * obtain it through the world-wide-web, please send an email
278 * to [email protected] so we can send you a copy immediately.
279 *
280 * @author    PrestaShop SA <[email protected]>
281 * @copyright 2007-2020 PrestaShop SA and Contributors
282 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
283 * International Registered Trademark & Property of PrestaShop SA
284 */
285$(document).ready(function(){prestashop.blockcart=prestashop.blockcart||{};var showModal=prestashop.blockcart.showModal||function(modal){var $body=$('body');$body.append(modal);$body.one('click','#blockcart-modal',function(event){if(event.target.id==='blockcart-modal'){$(event.target).remove()}})};prestashop.on('updateCart',function(event){var refreshURL=$('.blockcart').data('refresh-url');var requestData={};if(event&&event.reason&&typeof event.resp!=='undefined'&&!event.resp.hasError){requestData={id_customization:event.reason.idCustomization,id_product_attribute:event.reason.idProductAttribute,id_product:event.reason.idProduct,action:event.reason.linkAction}}
286if(event&&event.resp&&event.resp.hasError){prestashop.emit('showErrorNextToAddtoCartButton',{errorMessage:event.resp.errors.join('<br/>')})}
287$.post(refreshURL,requestData).then(function(resp){var html=$('<div />').append($.parseHTML(resp.preview));$('.blockcart').replaceWith($(resp.preview).find('.blockcart'));if(resp.modal){showModal(resp.modal)}}).fail(function(resp){prestashop.emit('handleError',{eventType:'updateShoppingCart',resp:resp})})})});document.addEventListener('DOMContentLoaded',function(){if(typeof prestashop!=='undefined'){console.log("dtsfreesample EVENT OK 2");prestashop.on('updateCart',function(event){console.log("dtsfreesample EVENT TRIGGER");console.log(event);console.log(event.reason.idProduct);console.log(event.reason.linkAction);var params=new URLSearchParams({id_product:event.reason.idProduct||'',link_action:event.reason.linkAction||''});fetch(dtsfreesample_ajax_url,{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded','Accept':'application/json'},body:params.toString()}).then(response=>response.json()).then(data=>{if(data.success){if(data.needReload||data.maxSamples!==dtsfreesample_max_samples){location.reload()}}})})}else{console.log("dtsfreesample EVENT ERROR")}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.