{"version":3,"sources":["newsletterPopup_A.js","instagramFeed_A.js","countdownWidget_A.js","callMeBackForm_A.js","cartSearchBox_A.js","slider_A.js","productListOnDemand_A.js"],"names":["Vendd","Scripts","load","funcCookiesEnabled","window","ConsentsManager","cookiesStatus","functionalityCookies","cookiesAccepted","ageVerificationPopUp","$","ageCookie","Cookies","get","$wrapper","length","userHasSetCookies","isTouch","setTimeout","show","addClass","click","hide","removeClass","set","expires","samesite","fancybox","margin","modal","afterClose","trigger","close","on","e","preventDefault","link","this","data","ajax","type","url","async","get_param","success","temp","html","instgrm","Embeds","process","toolbar","smallBtn","hash","countdown","event","strftime","$submitButton","form","formData","$form","firstname","val","lastname","email","phone","message","reCaptchaCode","captchaWidgetId","$captchaElement","find","$captchaContainer","captchaEnabled","initRecaptcha","sitekey","grecaptcha","render","callback","recaptchaCallback","validateRecaptcha","resetRecaptcha","reset","removeRecaptcha","remove","res","loading","onSuccess","envelope","code","onFailure","submit","MessageBus","publishAsync","CallMeBack","Messages","Submit","cmbf","stopPropagation","validate","val2","keyCode","prop","toLowerCase","$this","fieldName","attr","validationOptions","each","el","inputName","tempOption","hasClass","required","isEmail","extend","validationEngine","subscribe","SubmitSuccess","SubmitFailure","Plugins","RecaptcaLoaded","i","wrapper","$list","resultsPerPage","pdPageNum","isProductSelected","isLookupCompleted","maxResults","list","$searchInput","$qtyInput","$increaseQtyInput","$decreaseQtyInput","minLength","model","isElastic","HasInfiniteScroll","infiniteScrollIsLoading","enableInput","enable","$input","removeAttr","enableInputs","update","Handlebars","parse","$html","$newProducts","$products","last","insertAfter","appendTo","MoreProducts","clear","checkSearchTerm","searchTerm","test","setSelectedProduct","productId","variantId","path","availabilityActionId","name","stock","minQuantity","maxQuantity","quanta","color","size","quantity","numberToString","$item","toString","parseInt","parseFloat","stringToNumber","closest","Search","GetProductSuggestiveElasticResults","GetProductSuggestiveResults","is","tempQuantity","enableSubmitButton","$viewItem","scrollTop","innerHeight","scrollHeight","innerHeight_v","console","log","outerHeight","selectedQuantity","enableIncreaseQtyInput","enableDecreaseQtyInput","id","skuId","qty","itemInfo","enhancedInfo","Cart","Add","debounce","select","GetProductSuggestiveResultsFailed","GetProductSuggestiveResultsSuccess","sender","ProductsCount","PageNumber","GetProductSuggestiveResultsElasticFailed","GetProductSuggestiveResultsElasticSuccess","IsElastic","HasLazyLoadPrices","hits","total","value","obj","itemIds","_","pluck","fetchPrices","fetchAvailabilities","fetchStock","ScrollList","GetClientProductListData","GetClientProductListDataSuccess","result","JSON","parseJSON","modelWithPrices","selectedProduct","Products","x","_source","VariantId","Prices","unsubscribe","Changed","document","mouseup","target","has","tag","createElement","src","firstScriptTag","getElementsByTagName","parentNode","insertBefore","videos","youTubeInitializedSl","onYouTubeIframeAPIReady","index","myVideoEl","myVideoId","myVideoCode","YT","Player","height","width","host","videoId","playerVars","rel","controls","showinfo","mute","autoplay","loop","modestbranding","playlist","events","onReady","onStateChange","btn","getPlayerState","pauseVideo","playVideo","isMuted","unMute","initOwlSlider","singleItem","autoPlay","rewindSpeed","stopOnHover","autoHeight","transitionStyle","afterMove","$container","$productLists","$selector","currentitemid","undefined","LhApp","Context","Item","Id","$code","$selected","wrpr","lazyLoadPrices","text","trim","configuration","configCode","templateCode","entityCode","itemId","refreshInterval","nodeId","nodePath","photoDimensionId","partial","bind","connectedList","ItemsCountText","publish","Widget","BindControl","items","push","onGetClientProductListDataSuccess","GetClientProductListDataFailure","onGetClientProductListDataFailure","formatPrices","opts","navigation","pagination","slideSpeed","scrollPerPage","paginationSpeed","addClassActive","navigationText","lazyLoad","itemsDesktop","itemsDesktopSmall","itemsTablet","itemsMobile","ww","mobile","productList","owlCarousel","destroy","initSlider","getConfiguration","setModel","ReplacePrices","ReplaceAvailabilities","LazyProductList","GetLazyProductList","LazyProductListSuccess","$connectedFilter","first","FilterProduct","Filters","itemVariantId","itemData","filter","a","prices","Price","points","Points","pointsGain","PointsGain","countdownPrices","CountDownProperties","DeletedPrice","decodeEntities","CurrentPrice","displayedPrice","$currentPrice","$enableFormatPrices","formatPrice","PointsPrice","TotalPointsGain","availability","Availability","AvailabilityData","cartEnabled","CanBuy","AvailabilityActionId","Name","parent","initLazyProductList"],"mappings":"AAAAA,MAAAC,QAAAC,KAAA,WAEA,IAAAC,oBAAA,EACAC,OAAAC,kBACAF,mBAAAC,OAAAC,gBAAAC,cAAAC,sBAGA,IAWAC,gBAXAC,qBAAAC,EAAA,6BACAC,UAAAC,QAAAC,IAAA,YAEAC,SAAAJ,EAAA,uBAEAI,SAAAC,OAAA,IAAAZ,oBAAAM,qBAAAM,OAAA,KAAAJ,gBAAA,IAAAA,aAMAH,gBAAAJ,OAAAC,gBAAAC,cAAAU,mBACAJ,QAAAC,IAAA,UAEAL,iBAAAE,EAAA,6BAAAK,QAAA,IACAE,WAaAC,WAAA,WACAR,EAAA,0BAAAS,OAAAC,SAAA,UACA,MACAV,EAAA,mCAAAW,MAAA,WACAX,EAAA,0BAAAY,OAAAC,YAAA,SACAX,QAAAY,IAAA,SAAA,EAAA,CAAAC,QAAA,EAAAC,SAAA,YAjBAhB,EAAA,oBAAAI,UAAAa,SAAA,CACAC,OAAA,CAAA,GAAA,GACAC,OAAA,EACAC,WAAA,WACAlB,QAAAY,IAAA,SAAA,EAAA,CAAAC,QAAA,EAAAC,SAAA,WAGAhB,EAAA,oBAAAI,UAAAiB,QAAA,SACArB,EAAA,mCAAAW,MAAA,WACAX,EAAAiB,SAAAK,OAAA,UChCAhC,MAAAC,QAAAC,KAAA,WACA,IAAAY,SAAAJ,EAAA,qBACAA,EAAA,kBAAAI,UAEAA,SAAAC,OAAA,GAGAD,SAAAmB,GAAA,QAAA,mBAAA,SAAAC,GACAA,EAAAC,iBACArB,SAAAM,SAAA,aACA,IAAAgB,KAAA,wCAAA1B,EAAA2B,MAAAC,KAAA,QACA5B,EAAA6B,KAAA,CACAC,KAAA,MACAC,IAAAL,KACAM,OAAA,EACAJ,KAAA,CAAAK,UAAA,QACAC,QAAA,SAAAN,MACA,IAAAO,KAAA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W,cAAAxW,EAAA,iBAAAiG,IACAwQ,qBACAD,cAAApU,KAAAsU,YAAAH,iBACAC,cAAA9V,SAAA,oBAGA8V,cAAAtE,KAAAqE,gBAIAT,SACA9V,EAAA,iCAAAiG,IAAApF,YAAA,QACAb,EAAA,+CAAAiG,IAAAiM,KAAA4D,OAAAa,cAGAX,aACAhW,EAAA,iCAAAiG,IAAApF,YAAA,QACAb,EAAA,8CAAAiG,IAAAiM,KAAA8D,WAAAY,sBAMA5B,sBAAA,SAAAnI,KACA7M,EAAA,iCAAAgS,MAAAhM,KAAA,SAAAc,EAAAb,IACA,IAAAuP,cAAArL,SAAAnK,EAAAiG,IAAAH,KAAA,mBACA2P,SAAA5I,IAAAe,SAAA8H,OAAA,SAAAC,GAAA,OAAAA,EAAA5H,YAAAyH,gBACA,GAAAC,SAAApV,OAAA,EAAA,CACA,IAAAwW,aAAApB,SAAA,GAAAqB,aAAAC,iBACAC,aAAA,IAAAH,aAAAI,OACAjX,EAAA,gBAAAA,EAAA2B,OAAAjB,SAAA,gBAAAmW,aAAAK,sBAAAhF,KAAA2E,aAAAM,MAAAC,OAAA,2BAAAvW,YAAA,QACAmW,cACAhX,EAAA,wBAAAA,EAAA2B,OAAAd,YAAA,cACAb,EAAA,+BAAAA,EAAA2B,OAAAwG,WAAA,WAAA,iBA9LAkP,CAAAtF","file":"scripts-home.js","sourcesContent":["Vendd.Scripts.load(function () {\n\n var funcCookiesEnabled = true;\n if (window.ConsentsManager) {\n funcCookiesEnabled = window.ConsentsManager.cookiesStatus.functionalityCookies;\n }\n\n var ageVerificationPopUp = $('.x-age-verification-popup');\n var ageCookie = Cookies.get('aboveAge');\n\n var $wrapper = $('.x-newsletter-popup');\n\n if ($wrapper.length < 1 || !funcCookiesEnabled || (ageVerificationPopUp.length > 0 && (!ageCookie || typeof ageCookie === \"undefined\" )))\n return;\n\n InitPromoPopUp();\n\n function InitPromoPopUp() {\n var cookiesAccepted = window.ConsentsManager.cookiesStatus.userHasSetCookies;\n var promo = Cookies.get('promo');\n\n if (!promo && cookiesAccepted && $('.terms-page.consents-page').length <=0) {\n if (!isTouch()) {\n $(\".open-fancy-promo\", $wrapper).fancybox({\n margin: [20, 0],\n modal: true,\n afterClose: function () {\n Cookies.set(\"promo\", true, { expires: 5, samesite: 'Lax' });\n }\n });\n $(\".open-fancy-promo\", $wrapper).trigger(\"click\");\n $('.newsletter-popup .close-button').click(function () {\n $.fancybox.close(true);\n });\n } else {\n setTimeout(function () {\n $('.fancy-promo-container').show().addClass('shown');\n }, 2500);\n $('.newsletter-popup .close-button').click(function () {\n $('.fancy-promo-container').hide().removeClass('shown');\n Cookies.set(\"promo\", true, { expires: 5, samesite: 'Lax' });\n });\n }\n }\n }\n});\n","Vendd.Scripts.load(function () {\n var $wrapper = $('.x-instagram-feed'),\n $instaList = $('.instagram-list', $wrapper);\n\n if ($wrapper.length < 1)\n return;\n\n $wrapper.on('click', '.image-container', function (e) {\n e.preventDefault();\n $wrapper.addClass('x-loading');\n var link = 'https://api.instagram.com/oembed?url=' + $(this).data('link');\n $.ajax({\n type: 'GET',\n url: link,\n async: true,\n data: { get_param: 'html' },\n success: function (data) {\n var temp = data;\n $('#insta-post').html(temp.html);\n $('.fancy-open').trigger(\"click\");\n if (typeof window.instgrm !== 'undefined') {\n window.instgrm.Embeds.process();\n }\n $wrapper.removeClass('x-loading');\n\n }\n });\n $('.fancy-open').fancybox({\n toolbar: false,\n smallBtn: true,\n hash: null,\n afterClose: function () {\n $('#insta-post').html('');\n },\n });\n\n });\n});\n\n","Vendd.Scripts.load(function () {\n var $wrapper = $('.countdown-widget');\n\n if ($wrapper.length < 1)\n return;\n\n $('#countdown', $wrapper).countdown($('#countdown-configuration', $wrapper).data('target'), function (event) {\n $(this).html(event.strftime($('#countdown-configuration', $wrapper).data('structure')));\n });\n\n});\n\n","Vendd.Scripts.load(function () {\n var $form = $('.x-callmeback-form'), $submitButton, form, formData;\n\n if ($form.length < 1)\n return;\n\n $submitButton = $('.js-submit-button', $form);\n\n form = $form.get(0);\n\n formData = {\n firstname: $(\"input[name='firstname']\", $form).val() ? $(\"input[name='firstname']\", $form).val() : \"\",\n lastname: $(\"input[name='lastname']\", $form).val() ? $(\"input[name='lastname']\", $form).val() : \"\",\n email: $(\"input[name='email']\", $form).val() ? $(\"input[name='email']\", $form).val() : \"\",\n phone: $(\"input[name='phone']\", $form).val() ? $(\"input[name='phone']\", $form).val() : \"\",\n message: $(\"input[name='message']\", $form).val() ? $(\"input[name='message']\", $form).val() : \"\",\n reCaptchaCode: \"\",\n };\n\n // reCAPTCHA\n var captchaId = \"callMeBackCaptcha\";\n var captchaWidgetId;\n var $captchaElement = $form.find(\"#\" + captchaId);\n var $captchaContainer = $form.find('.recaptcha-container');\n var captchaEnabled = $captchaElement.length > 0 ? true : false;\n \n form.initRecaptcha = function () {\n \n if (!captchaEnabled)\n return;\n \n var sitekey = $captchaElement.data(\"sitekey\");\n if (sitekey) {\n captchaEnabled = true;\n captchaWidgetId = grecaptcha.render(captchaId, {\n 'sitekey': sitekey,\n 'callback': form.recaptchaCallback\n });\n }\n };\n \n form.recaptchaCallback = function () {\n form.validateRecaptcha();\n };\n \n form.resetRecaptcha = function () {\n // Website must only verify the user's reCAPTCHA response token (g-recaptcha-response) once. \n // If a verify attempt has been made with a particular token, it cannot be used again. \n // Call grecaptcha.reset() to ask the end user to verify with reCAPTCHA again.\n if (captchaEnabled)\n grecaptcha.reset(captchaWidgetId);\n };\n \n form.removeRecaptcha = function () {\n $captchaElement.remove();\n };\n \n form.validateRecaptcha = function () {\n if (!captchaEnabled)\n return true;\n \n formData.reCaptchaCode = $captchaElement.find('.g-recaptcha-response').val();\n \n var res = false;\n \n if (formData.reCaptchaCode) {\n $captchaContainer.find('.recaptcha-required').removeClass('error');\n res = true;\n }\n else {\n $captchaContainer.find('.recaptcha-required').addClass('error');\n }\n \n return res;\n };\n\n form.loading = function (loading) {\n if (loading) {\n $form.addClass('x-loading');\n } else {\n $form.removeClass('x-loading');\n }\n };\n\n form.onSuccess = function (envelope) {\n form.loading(false);\n\n var data = envelope.message.data;\n\n if (data.success && data.code === \"CallMeBack_OperationSuccesful\") {\n $('.js-error', $form).hide();\n $('.js-content', $form).hide();\n $('.js-success', $form).show();\n\n form.removeRecaptcha();\n \n } else {\n $('.js-error', $form).show();\n form.resetRecaptcha();\n };\n };\n\n form.onFailure = function (envelope) {\n form.loading(false);\n\n $('.js-error', $form).show();\n };\n\n form.submit = function () {\n form.loading(true);\n\n Vendd.MessageBus.publishAsync(form, new Vendd.CallMeBack.Messages.Submit(\n formData.email,\n formData.firstname,\n formData.lastname,\n formData.phone,\n formData.message,\n formData.reCaptchaCode\n ));\n };\n\n form.reset = function () {\n $('.js-error', $form).hide();\n $('.js-success', $form).hide();\n $('.js-content', $form).show();\n\n $('input[name=\"firstname\"]', $form).val(\"\");\n $('input[name=\"lastname\"]', $form).val(\"\");\n $('input[name=\"email\"]', $form).val(\"\");\n $('input[name=\"phone\"]', $form).val(\"\");\n $('input[name=\"message\"]', $form).val(\"\");\n\n cmbf.reset();\n };\n\n\n $form.on('click', '.js-submit-button', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n var val = cmbf.validate();\n var val2 = form.validateRecaptcha();\n\n if (val && val2) form.submit();\n });\n\n $form.on('keyup', 'input[name], textarea[name]', function (e) {\n if (e.keyCode === 13) {\n\n if ($(this).prop(\"tagName\").toLowerCase() === \"textarea\")\n return true;\n\n e.preventDefault();\n e.stopPropagation();\n\n $submitButton.click();\n\n return;\n };\n\n var $this = $(this);\n var fieldName = $this.attr('name');\n\n formData[fieldName] = $this.val();\n\n cmbf.validate(fieldName);\n });\n\n //init validation options\n var validationOptions = {};\n\n $('.form-row', $form).each(function (e, el) {\n\n var inputName = $('input', el).attr('name'), tempOption = {};\n\n if ($(this).hasClass('js-required')) {\n validationOptions[inputName] = {\n required: inputName + '-required'\n };\n }\n\n if ($(this).hasClass('js-invalid-email')) {\n tempOption[inputName] = {\n isEmail: inputName + '-invalid'\n };\n $.extend(true, validationOptions, tempOption);\n }\n });\n\n $form.validationEngine(validationOptions);\n var cmbf = $form.data('validationEngine');\n\n Vendd.MessageBus.subscribe(Vendd.CallMeBack.Messages.SubmitSuccess, form, form.onSuccess);\n Vendd.MessageBus.subscribe(Vendd.CallMeBack.Messages.SubmitFailure, form, form.onFailure);\n Vendd.MessageBus.subscribe(Vendd.Plugins.Messages.RecaptcaLoaded, form, form.initRecaptcha);\n\n});\n","Vendd.Scripts.load(function () {\n 'use strict';\n\n var $wrappers = $('.x-cart-searchbox');\n\n $wrappers.each(function (i, wrapper) {\n var $wrapper = $(wrapper);\n\n var $list = $('.x-product-suggestive-results-list', $wrapper);\n if ($wrapper.length < 1 || $list.length < 1)\n return;\n\n var resultsPerPage = ($wrapper.data('page-size') || 12), pdPageNum = 1, isProductSelected = false,\n isLookupCompleted = false, maxResults = resultsPerPage,\n list = $list.get(0),\n $searchInput = $('.js-keyword', $wrapper), $qtyInput = $('.js-quantity', $wrapper),\n $increaseQtyInput = $('.js-incr-quantity', $wrapper), $decreaseQtyInput = $('.js-decr-quantity', $wrapper),\n $submitButton = $('.js-add-to-cart', $wrapper), minLength = $wrapper.data('min-search-length'),\n lazy = $list.data(\"lazy-load-init\"), model = null,\n topResult = ($wrapper.data('top-results') || 100),\n isElastic = ($wrapper.data(\"is-elastic\") || \"false\").toLowerCase() == \"true\",\n HasInfiniteScroll = ($wrapper.data(\"has-infinite-scroll\") || \"false\").toLowerCase() == \"true\",\n infiniteScrollIsLoading = false;\n\n wrapper.loading = function loading(loading) {\n isLookupCompleted = !loading;\n if (loading) {\n $wrapper.addClass('x-loading').addClass('x-disabled');\n } else {\n $wrapper.removeClass('x-loading').removeClass('x-disabled');\n }\n infiniteScrollIsLoading = false;\n };\n\n wrapper.enableInput = function enableInput(enable, $input) {\n if (enable) {\n $input.removeAttr('disabled').prop('disabled', false);\n } else {\n $input.attr('disabled', 'disabled').prop('disabled', true);\n }\n };\n\n wrapper.enableInputs = function enableInputs(enable) {\n wrapper.enableInput(false, $decreaseQtyInput);\n wrapper.enableInput(enable, $increaseQtyInput);\n wrapper.enableInput(enable, $qtyInput);\n wrapper.enableInput(enable, $submitButton);\n };\n\n list.update = function update() {\n wrapper.loading(true);\n\n var html = Vendd.Handlebars.parse(\"suggestiveResultProductList_A\", model);\n var $html = $(html);\n var $newProducts = $('.product-results', $html);\n var $products = $('.product-results', $list).last();\n if ($products.length > 0)\n $newProducts.insertAfter($products);\n else\n $html.appendTo($list);\n if (!model.MoreProducts) {\n $('.js-more-results', $list).hide();\n }\n\n wrapper.loading(false);\n };\n\n list.clear = function clear() {\n $list.html(\"\");\n };\n\n list.show = function show(show) {\n if (show) {\n $list.addClass(\"js-visible\");\n } else {\n $list.removeClass(\"js-visible\");\n }\n };\n\n wrapper.checkSearchTerm = function (searchTerm) {\n return /[a-zα-ωάέήίόύώϊϋΐΰςа-я0-9]{0,}/i.test(searchTerm);\n };\n\n wrapper.setSelectedProduct = function setSelectedProduct(data) {\n var productId = (data) ? data.productId : '',\n variantId = (data) ? data.variantId : '',\n path = (data) ? data.path : '',\n availabilityActionId = (data) ? data.availabilityActionId : '',\n name = (data) ? data.name : '',\n stock = (data) ? data.stock : 0,\n minQuantity = (data) ? data.minQuantity : 0,\n maxQuantity = (data) ? data.maxQuantity : 0,\n quanta = (data) ? data.quanta : 0,\n color = (data) ? data.color : \"\",\n size = (data) ? data.size : \"\",\n list = (data) ? data.list : \"\";\n\n $searchInput.attr('data-productid', productId);\n $searchInput.attr('data-variantid', variantId);\n $searchInput.attr('data-path', path);\n $searchInput.attr('data-availability-action-id', availabilityActionId);\n $searchInput.attr('data-min-quantity', minQuantity);\n $searchInput.attr('data-max-quantity', maxQuantity);\n $searchInput.attr('data-quanta', quanta);\n $searchInput.attr('data-color', color);\n $searchInput.attr('data-size', size);\n $searchInput.attr('data-list', list);\n if (name != \"\") $searchInput.val(name);\n $qtyInput.attr('data-stock', stock);\n\n var quantity = stock > minQuantity ? minQuantity : 1;\n if (quantity > 0 && quanta > 0 && quantity % quanta !== 0) {\n quantity = quanta;\n }\n\n $qtyInput.val(numberToString(quantity));\n\n wrapper.enableInputs(stock > 0);\n isProductSelected = (data) ? true : false;\n };\n\n $list.on('click', '.js-list-item', function () {\n var $item = $(this);\n var data = {\n productId: $item.data('productid').toString(),\n variantId: $item.data('variantid').toString(),\n path: $item.data('path').toString(),\n availabilityActionId: $item.data('availability-action-id').toString(),\n name: $item.data('name'),\n stock: parseInt($item.data('stock')),\n minQuantity: parseFloat(($item.data('min-quantity') ? stringToNumber($item.data('min-quantity')) : null) || 1),\n maxQuantity: parseFloat(($item.data('max-quantity') ? stringToNumber($item.data('max-quantity')) : null) || 0),\n quanta: parseFloat(($item.data('quanta') ? stringToNumber($item.data('quanta')) : null) || 1),\n color: $item.data('color') ? $item.data('color') : \"\",\n size: $item.data('size') ? $item.data('size') : \"\",\n list: $item.data('list') ? $item.data('list') : \"\"\n };\n\n wrapper.setSelectedProduct(data);\n list.show(false);\n\n if ($('.x-orderchangeform').length > 0) {\n $item.closest('[data-container=\"orderItem\"]').find(\"[name='replaceWith']\").val(data.variantId);\n $item.closest('[data-container=\"orderItem\"]').data('validationEngine').validate('replaceWith');\n }\n\n });\n\n $list.on('click', '.js-more-results', function () {\n var searchTerm = $searchInput.val();\n if ($searchInput.val().length >= minLength && !isProductSelected) {\n //maxResults = maxResults + resultsPerPage;\n //maxResults = Math.min(maxResults, topResult);\n pdPageNum++;\n if (isElastic) {\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Search.Messages.GetProductSuggestiveElasticResults(searchTerm, pdPageNum, maxResults));\n }\n else {\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Search.Messages.GetProductSuggestiveResults(searchTerm, 10000, pdPageNum, maxResults));\n }\n } else {\n list.show(false);\n };\n });\n\n $wrapper.on('click', '.js-incr-quantity', function () {\n var $this = $(this);\n if ($this.hasClass('x-disabled') || $this.is(':disabled'))\n return;\n\n var stock = parseInt($qtyInput.data('stock'));\n\n var quanta = parseFloat(($searchInput.data('quanta') ? stringToNumber($searchInput.data('quanta')) : null) || 1);\n var minQuantity = parseFloat(($searchInput.data('min-quantity') ? stringToNumber($searchInput.data('min-quantity')) : null) || 1);\n var maxQuantity = parseFloat(($searchInput.data('max-quantity') ? stringToNumber($searchInput.data('max-quantity')) : null) || stock);\n\n var tempQuantity = parseFloat(stringToNumber($qtyInput.val()));\n\n if (tempQuantity >= 0) {\n tempQuantity = tempQuantity + quanta;\n if (tempQuantity <= maxQuantity) {\n wrapper.enableInput(tempQuantity !== maxQuantity, $increaseQtyInput);\n $qtyInput.val(numberToString(tempQuantity));\n } else\n wrapper.enableInput(false, $increaseQtyInput);\n\n if (tempQuantity > minQuantity) wrapper.enableInput(true, $decreaseQtyInput);\n }\n\n var enableSubmitButton = (parseFloat(stringToNumber($qtyInput.val())) > 0 && isProductSelected);\n wrapper.enableInput(enableSubmitButton, $submitButton);\n });\n\n $wrapper.on('click', '.js-decr-quantity', function () {\n var $this = $(this);\n if ($this.hasClass('x-disabled') || $this.is(':disabled'))\n return;\n\n var stock = parseInt($qtyInput.data('stock'));\n var tempQuantity = parseFloat(stringToNumber($qtyInput.val()));\n var quanta = parseFloat(($searchInput.data('quanta') ? stringToNumber($searchInput.data('quanta')) : null) || 1);\n var minQuantity = parseFloat(($searchInput.data('min-quantity') ? stringToNumber($searchInput.data('min-quantity')) : null) || 1);\n var maxQuantity = parseFloat(($searchInput.data('max-quantity') ? stringToNumber($searchInput.data('max-quantity')) : null) || stock);\n\n if (tempQuantity !== minQuantity && tempQuantity > 0) {\n tempQuantity = tempQuantity - quanta;\n $qtyInput.val(numberToString(tempQuantity));\n wrapper.enableInput(true, $increaseQtyInput);\n }\n\n if (tempQuantity <= minQuantity)\n wrapper.enableInput(false, $decreaseQtyInput);\n\n var enableSubmitButton = (parseFloat(stringToNumber($qtyInput.val())) > 0 && isProductSelected);\n wrapper.enableInput(enableSubmitButton, $submitButton);\n });\n\n if (HasInfiniteScroll) {\n $list.on('scroll', function (e) {\n var $viewItem = $(\".js-more-results\", $list);\n if (!$viewItem.is(\":visible\") && infiniteScrollIsLoading) return;\n var scrollTop = $list.scrollTop();\n var innerHeight = $list.innerHeight();\n var scrollHeight = list.scrollHeight;\n var innerHeight_v = $viewItem.innerHeight();\n var infiniteScrollPadding = 20;\n console.log(\"innerHeight_v , \" + innerHeight_v + \" | outerHeight_v\" + $viewItem.outerHeight(true));\n var isVisible = (scrollHeight - (scrollTop + innerHeight + infiniteScrollPadding)) < innerHeight_v;\n if (isVisible && !infiniteScrollIsLoading) {\n infiniteScrollIsLoading = true;\n $viewItem.trigger('click');\n }\n });\n }\n\n $wrapper.on('keyup', '.js-quantity', function () {\n var $this = $(this);\n if ($this.hasClass('x-disabled') || $this.is(':disabled'))\n return;\n\n var stock = parseInt($qtyInput.data('stock'));\n\n var tempQuantity = parseFloat(stringToNumber($qtyInput.val()));\n var quanta = parseFloat(($searchInput.data('quanta') ? stringToNumber($searchInput.data('quanta')) : null) || 1);\n var minQuantity = parseFloat(($searchInput.data('min-quantity') ? stringToNumber($searchInput.data('min-quantity')) : null) || 1);\n var maxQuantity = parseFloat(($searchInput.data('max-quantity') ? stringToNumber($searchInput.data('max-quantity')) : null) || stock);\n\n var selectedQuantity = tempQuantity;\n\n if (quanta > 1 && tempQuantity % quanta !== 0) {\n tempQuantity = tempQuantity - (tempQuantity % quanta);\n }\n\n if (tempQuantity < maxQuantity && tempQuantity > minQuantity) {\n selectedQuantity = tempQuantity;\n } else if (tempQuantity >= maxQuantity) {\n selectedQuantity = quanta > 1 && maxQuantity % quanta !== 0 ? maxQuantity - (maxQuantity % quanta) : maxQuantity;\n } else if (tempQuantity <= minQuantity) {\n selectedQuantity = quanta > 1 && minQuantity % quanta !== 0 ? minQuantity - (minQuantity % quanta) : minQuantity;\n }\n\n $qtyInput.val(numberToString(selectedQuantity));\n\n var enableIncreaseQtyInput = (tempQuantity < maxQuantity),\n enableDecreaseQtyInput = (tempQuantity > minQuantity),\n enableSubmitButton = (selectedQuantity > minQuantity && selectedQuantity > maxQuantity && isProductSelected);\n\n wrapper.enableInput(enableIncreaseQtyInput, $increaseQtyInput);\n wrapper.enableInput(enableDecreaseQtyInput, $decreaseQtyInput);\n wrapper.enableInput(enableSubmitButton, $submitButton);\n });\n\n $wrapper.on('click', '.js-add-to-cart', function (e) {\n if ($searchInput.val().length >= minLength && isLookupCompleted && isProductSelected) {\n e.preventDefault();\n e.stopPropagation();\n\n var $this = $(this);\n\n if ($this.hasClass('x-disabled') || $this.is(':disabled'))\n return;\n if ($('.x-warehouse-selector-widget').trigger('addtocart').hasClass('opening'))\n return;\n\n var id = $searchInput.data('productid');\n var skuId = $searchInput.data('variantid');\n var path = $searchInput.data('path');\n var qty = parseFloat(stringToNumber($qtyInput.val())) || 1;\n var extraAttributes = [];\n var bundleItems = [];\n var recipeItems = [];\n var comboItems = [];\n var itemInfo = {\n minQuantity: parseFloat(($searchInput.data('min-quantity') ? stringToNumber($searchInput.data('min-quantity')) : null) || 0),\n maxQuantity: parseFloat(($searchInput.data('max-quantity') ? stringToNumber($searchInput.data('max-quantity')) : null) || 0),\n quanta: parseFloat(($searchInput.data('quanta') ? stringToNumber($searchInput.data('quanta')) : null) || 0),\n };\n\n //enhanced info\n var color = $searchInput.data('color');\n var size = $searchInput.data('size');\n var list = $searchInput.data('list');\n\n var enhancedInfo = { color: color, size: size, list: list };\n //enhanced info\n\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Cart.Messages.Add(id, skuId, path, qty, extraAttributes, bundleItems, recipeItems, comboItems, itemInfo, enhancedInfo));\n };\n });\n\n $wrapper.on('keyup', '.js-keyword', $.debounce(850, function () {\n var searchTerm = $searchInput.val();\n if (isProductSelected) {\n wrapper.setSelectedProduct(null);\n }\n list.clear();\n pdPageNum = 1;\n if (searchTerm.length >= minLength && wrapper.checkSearchTerm(searchTerm)) {\n wrapper.loading(true);\n //maxResults = resultsPerPage;\n //maxResults = Math.min(maxResults, topResult);\n if (isElastic) {\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Search.Messages.GetProductSuggestiveElasticResults(searchTerm, pdPageNum, maxResults));\n }\n else {\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Search.Messages.GetProductSuggestiveResults(searchTerm, maxResults, pdPageNum, maxResults));\n }\n } else {\n list.show(false);\n }\n }));\n\n $wrapper.on('click', '.js-keyword', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n $searchInput.select();\n });\n\n $wrapper.on('focus', '.js-keyword', function () {\n var show = ($searchInput.val().length >= minLength && isLookupCompleted && !isProductSelected);\n list.show(show);\n });\n\n Vendd.MessageBus.subscribe(Vendd.Search.Messages.GetProductSuggestiveResultsFailed, wrapper, function (envelope) {\n list.show(false);\n wrapper.loading(false);\n });\n\n Vendd.MessageBus.subscribe(Vendd.Search.Messages.GetProductSuggestiveResultsSuccess, wrapper, function (envelope) {\n model = envelope.message.data.model;\n if (model.sender != wrapper) {\n list.show(false);\n wrapper.loading(false);\n return;\n }\n model.MoreProducts = (model.ProductsCount || 0) > (maxResults * pdPageNum);\n if (pdPageNum > 1) model.PageNumber = pdPageNum;\n list.update();\n list.show(true);\n });\n\n Vendd.MessageBus.subscribe(Vendd.Search.Messages.GetProductSuggestiveResultsElasticFailed, wrapper, function (envelope) {\n list.show(false);\n wrapper.loading(false);\n });\n\n Vendd.MessageBus.subscribe(Vendd.Search.Messages.GetProductSuggestiveResultsElasticSuccess, wrapper, function (envelope) {\n model = envelope.message.data.model;\n model.IsElastic = isElastic;\n model.HasLazyLoadPrices = HasLazyLoadPrices;\n model.HasInfiniteScroll = HasInfiniteScroll;\n model.MoreProducts = ((((model || {}).hits || {}).total || {}).value || 0) > (maxResults * pdPageNum);\n if (pdPageNum > 1) model.PageNumber = pdPageNum;\n\n if (model.HasLazyLoadPrices && model.hits.hits.length > 0) {\n var items = _.pluck(_.pluck(model.hits.hits, '_source'), 'VariantId');\n var obj = {\n itemIds: items,\n fetchPrices: true,\n fetchAvailabilities: false,\n fetchStock: false\n };\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.ScrollList.Messages.GetClientProductListData(obj));\n\n Vendd.MessageBus.subscribe(Vendd.ScrollList.Messages.GetClientProductListDataSuccess, wrapper, function (envelope) {\n var result = JSON && JSON.parse(envelope.message.data) || $.parseJSON(envelope.message.data);\n var modelWithPrices = _.each(model.hits.hits, function (obj) {\n var selectedProduct = _.find(result.Products, function (x) { return obj._source.VariantId === x.VariantId; });\n if (selectedProduct) _.extend(obj._source, selectedProduct.Prices);\n });\n _.extend(model.hits.hits, modelWithPrices);\n\n list.update();\n list.show(true);\n Vendd.MessageBus.unsubscribe(Vendd.ScrollList.Messages.GetClientProductListDataSuccess, wrapper);\n });\n } else {\n list.update();\n list.show(true);\n }\n });\n\n Vendd.MessageBus.subscribe(Vendd.Cart.Messages.Changed, wrapper, function (envelope) {\n if (!isProductSelected)\n return;\n\n wrapper.setSelectedProduct(null);\n });\n\n $(document).mouseup(function (e) {\n if (!$wrapper.is(e.target) && $wrapper.has(e.target).length === 0) {\n list.show(false);\n }\n });\n\n });\n});","var tag = document.createElement('script');\n\ntag.src = \"https://www.youtube.com/iframe_api\";\nvar firstScriptTag = document.getElementsByTagName('script')[0];\nfirstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\n\nvar videos = [];\nvar youTubeInitializedSl= false;\n\nfunction onYouTubeIframeAPIReady() {\n\n var numOfVideos = $('.homepage-slider .video-container').length;\n \n if (numOfVideos < 1)\n return;\n\n $('.homepage-slider .video-slide').each(function (index) {\n var myVideoEl = $(this).find('.video'),\n myVideoId = myVideoEl.attr('id'),\n myVideoCode = myVideoEl.data('video-code');\n\n videos[index] = new YT.Player(myVideoId, {\n height: '100%',\n width: '100%',\n host: 'https://www.youtube.com',\n videoId: myVideoCode,\n playerVars: {\n rel: '0',\n controls: '0',\n showinfo: '0',\n mute: 1,\n autoplay: 1,\n loop: 1,\n modestbranding: 1,\n playlist: myVideoCode\n },\n events: {\n onReady: function(event){\n $('.homepage-slider .video-slide[data-index=\"'+index+'\"]').addClass('video-initialized');\n },\n onStateChange: function(event){\n if(event.data == 1) {\n $('.homepage-slider .video-slide .button.play[data-index=\"'+index+'\"]').addClass('is-playing');\n }\n }\n }\n });\n youTubeInitializedSl = true;\n });\n\n $('.homepage-slider .video-slide .button.play').on('click', function (e) {\n var btn = $(this),\n index = btn.data('index');\n if (youTubeInitializedSl) {\n var videoState = videos[index].getPlayerState();\n // VIDEO IS PLAYING\n if(videoState == 1) {\n videos[index].pauseVideo();\n btn.removeClass('is-playing');\n } else {\n videos[index].playVideo();\n btn.addClass('is-playing');\n }\n }\n });\n\n $('.homepage-slider .video-slide .button.sound').on('click', function (e) {\n var btn = $(this),\n index = btn.data('index');\n if (youTubeInitializedSl) {\n if(videos[index].isMuted()){\n videos[index].unMute();\n btn.addClass('unmuted');\n } else {\n videos[index].mute();\n btn.removeClass('unmuted');\n }\n }\n });\n\n}\n\n// function pauseVideo() {\n// for (var i = 1; i < videos.length; i++) {\n// if (typeof videos[i].pauseVideo == 'function') {\n// videos[i].pauseVideo();\n// }\n// }\n// }\n\nVendd.Scripts.load(function () {\n\n initOwlSlider($('.homepage-slider > ul'), {\n singleItem: true,\n autoPlay: false,\n rewindSpeed: 1500,\n stopOnHover: true,\n autoHeight: true,\n transitionStyle: \"fade\",\n afterMove: function () {\n if (youTubeInitializedSl)\n pauseVideo();\n }\n });\n\n});\n","Vendd.Scripts.load(function () {\n 'use strict';\n\n var $wrapper = $('.x-product-list-on-demand');\n\n if ($wrapper.length < 1)\n return;\n\n var $container = $('.on-demand-container', $wrapper);\n var $productLists = $('.product-list-on-demand', $wrapper);\n var $selector = $('.select-wrapper'), $selectorItem = $('option', $selector);\n\n var $configuration, configurations = [], currentitemid = 0;\n\n if (LhApp.Context.Item.Id !== undefined && LhApp.Context.Item.Id > 0)\n currentitemid = LhApp.Context.Item.Id;\n\n $selector.on('change', function (e) {\n \n var $this = $(this);\n var $code = $('option:selected', $this).val();\n var $selected = $('.product-list-on-demand[data-code=\"' + $code + '\"]');\n\n if ($selected.hasClass('hidden')) {\n $productLists.addClass('hidden');\n $selected.removeClass('hidden');\n }\n\n if ($selected.find('.x-product-list').length == 0) {\n initLazyProductList($selected);\n }\n });\n\n function initLazyProductList(wrpr) {\n\n $container.addClass('x-loading');\n\n var $this = $(wrpr);\n wrpr.model = null;\n\n var lazyLoadPrices = $('.list-lazy-load-prices', wrpr).text().toLowerCase().trim() === \"true\";\n\n var configuration = {\n configCode: $this.data(\"code\"),\n templateCode: $this.data(\"template\"),\n entityCode: $this.data(\"entity\"),\n itemId: currentitemid,\n refreshInterval: $this.data(\"refresh-interval\") === undefined ? 0 : parseInt($this.data(\"refresh-interval\")),\n nodeId: $this.data(\"nodeid\"),\n nodePath: $this.data(\"nodepath\"),\n };\n\n if ($('.x-product-details').length > 0 && $('.x-product-details').data('selected-color-id') > 0 && $this.data(\"photodimensiondependent\")) {\n configuration.photoDimensionId = $('.x-product-details').data('selected-color-id');\n }\n\n wrpr.loading = function loading(loading) {\n if (loading) {\n $this.addClass('x-loading');\n } else {\n $this.removeClass('x-loading');\n }\n };\n\n wrpr.update = function update() {\n wrpr.loading(true);\n\n var partial = $this.data('partial');\n var html = Vendd.Handlebars.parse(partial, wrpr.model);\n wrpr.bind(html);\n\n var connectedList = $(wrpr).data('list');\n if (connectedList !== undefined) {\n $('.num-of-products[data-list-count=\"' + connectedList + '\"]').html(wrpr.model.ItemsCountText);\n }\n Vendd.MessageBus.publish(wrpr, new Vendd.Widget.Messages.BindControl($(wrpr)));\n\n if (lazyLoadPrices === true) {\n var items = [];\n $('.x-product-box[data-variantid]', wrpr).each(function (i, el) {\n items.push(parseInt($(el).attr('data-variantid')));\n });\n\n var obj = {\n itemIds: items,\n fetchPrices: true,\n fetchAvailabilities: true,\n fetchStock: true\n };\n Vendd.MessageBus.publishAsync(wrpr, new Vendd.ScrollList.Messages.GetClientProductListData(obj));\n Vendd.MessageBus.subscribe(Vendd.ScrollList.Messages.GetClientProductListDataSuccess, wrpr, wrpr.onGetClientProductListDataSuccess);\n Vendd.MessageBus.subscribe(Vendd.ScrollList.Messages.GetClientProductListDataFailure, wrpr, wrpr.onGetClientProductListDataFailure);\n }\n\n wrpr.loading(false);\n };\n\n wrpr.bind = function bind(html) {\n $this.html(html);\n formatPrices($this);\n initSlider($this); \n };\n\n wrpr.getConfiguration = function () {\n return configuration;\n };\n\n wrpr.setModel = function (model) {\n wrpr.model = model;\n };\n\n wrpr.onGetClientProductListDataSuccess = function (envelope) {\n var result = JSON && JSON.parse(envelope.message.data) || $.parseJSON(envelope.message.data);\n ReplacePrices(result);\n ReplaceAvailabilities(result);\n };\n\n wrpr.onGetClientProductListDataFailure = function (envelope) {\n //console.log(envelope.message.data);\n };\n\n function removeConfiguration(innerwrapper, config) {\n\n if ($this.length > 0) {\n $this = $this.slice(1);\n }\n\n if (configurations.length > 0) {\n var configIndex = configurations.indexOf(config);\n configurations.splice(configIndex, 1);\n }\n };\n\n Vendd.MessageBus.publishAsync(wrpr, new Vendd.LazyProductList.Messages.GetLazyProductList(configuration));\n\n Vendd.MessageBus.subscribe(Vendd.LazyProductList.Messages.LazyProductListSuccess, wrpr, function (envelope) {\n var sender = envelope.message.data.sender;\n if (wrpr && sender && wrpr == sender) {\n var model = envelope.message.data.model;\n wrpr.setModel(model);\n wrpr.update();\n if ($(wrpr).data(\"has-filter\") != undefined) {\n var connectedList = $(wrpr).data('list');\n if (connectedList !== undefined) {\n var $connectedFilter = $('.js-filters-wrapper[data-list=\"' + connectedList + '\"]').first();\n if ($connectedFilter.length > 0) {\n Vendd.MessageBus.publishAsync($connectedFilter.get(0), new Vendd.FilterProduct.Messages.Changed(model.Filters.Filters));\n }\n }\n }\n }\n\n $container.removeClass('x-loading');\n\n });\n\n var ReplacePrices = function (obj) {\n $('.x-product-box[data-variantid]', wrapper).each(function (i, el) {\n var itemVariantId = parseInt($(el).attr('data-variantid'));\n var itemData = obj.Products.filter(function (a) { return a.VariantId === itemVariantId });\n\n if (itemData.length === 0) return;\n\n var prices = itemData[0].Prices.Price;\n var points = itemData[0].Prices.Points;\n var pointsGain = itemData[0].Prices.PointsGain;\n var countdownPrices = itemData[0].CountDownProperties;\n\n // hide all\n $('.deleted-price-container', el).addClass('hide');\n\n $('.current-point-price-container', el).addClass('hide');\n\n if (prices) {\n if (prices.DeletedPrice) {\n $('.deleted-price-container', el).removeClass('hide');\n $('.deleted-price', el).text(decodeEntities(prices.DeletedPrice));\n } else if (countdownPrices) {\n $('.deleted-price-container', el).removeClass('hide');\n $('.deleted-price', el).text(decodeEntities(prices.CurrentPrice));\n }\n\n var displayedPrice = decodeEntities(prices.CurrentPrice);\n if (countdownPrices && countdownPrices.Price) {\n displayedPrice = countdownPrices.Price;\n }\n var $currentPrice = $('.current-price', el);\n if ($enableFormatPrices) {\n $currentPrice.html(formatPrice(displayedPrice));\n $currentPrice.addClass('price-formatted');\n\n } else {\n $currentPrice.text(displayedPrice);\n }\n }\n\n if (points) {\n $('.current-point-price-container', el).removeClass('hide');\n $('.current-point-price-container .points-price', el).text(points.PointsPrice);\n }\n\n if (pointsGain) {\n $('.current-point-price-container', el).removeClass('hide');\n $('.current-point-price-container .points-gain', el).text(pointsGain.TotalPointsGain);\n }\n\n });\n };\n\n var ReplaceAvailabilities = function (obj) {\n $('.x-product-box[data-variantid]', wrpr).each(function (i, el) {\n var itemVariantId = parseInt($(el).attr('data-variantid'));\n var itemData = obj.Products.filter(function (a) { return a.VariantId === itemVariantId });\n if (itemData.length > 0) {\n var availability = itemData[0].Availability.AvailabilityData;\n var cartEnabled = availability.CanBuy === true;\n $('.availability', $(this)).addClass(\"availability-\" + availability.AvailabilityActionId).text(availability.Name).parent('.availability-container').removeClass('hide');\n if (cartEnabled) {\n $('.buttons .add-to-cart', $(this)).removeClass('x-disabled');\n $('.buttons .add-to-cart button', $(this)).removeAttr('disabled', 'disabled');\n }\n }\n });\n };\n };\n\n function initSlider(wrapper) {\n\n var opts = {\n navigation: true,\n pagination: true,\n items: 5,\n slideSpeed: 600,\n scrollPerPage: true,\n paginationSpeed: 600,\n addClassActive: true,\n navigationText: [\"\", \"\"],\n autoPlay: false,\n lazyLoad: false,\n itemsDesktop: [1199, 4],\n itemsDesktopSmall: [959, 3],\n itemsTablet: [640, 2],\n itemsMobile: [479, 2]\n };\n\n //Carousel only on desktop - Product Lists\n var ww = $(window).width();\n var mobile = (ww < 960) ? true : false;\n var productList = $('.x-product-list > ul', wrapper);\n\n if (!mobile) {\n productList.owlCarousel(opts);\n }\n\n $(window).on('resize', function () {\n\n ww = $(window).width();\n mobile = (ww < 960) ? true : false;\n\n if (!mobile) {\n productList.owlCarousel(opts);\n } else {\n if (productList.hasClass('owl-carousel')) {\n productList.data('owlCarousel').destroy();\n }\n }\n\n });\n\n }\n});\n\n\n"]}