* Por razones de privacidad, no use su nombre completo o correo electrónico
')\n );\n $('.form-submit').after($('* Al hacer clic en el botón Enviar, acepta mostrar su opinión
'));\n }, 1000);\n\n // CABECERA (shrink header on scroll down)\n window.onscroll = function () {\n const header = document.getElementById('cabecera');\n const sticky = header.offsetTop;\n if (window.pageYOffset > sticky) {\n header.classList.add('shrink');\n } else {\n header.classList.remove('shrink');\n }\n };\n\n // NAV\n $('#icon-menu-open').click(() => {\n $('.box-header-mobile .mobile-area-menu').show(400);\n $('#cabecera').addClass('active');\n });\n\n $('#icon-menu-close').click(() => {\n $('.box-header-mobile .mobile-area-menu').hide(400);\n $('#cabecera').removeClass('active');\n });\n\n $('.id-icon-search .box-linker-search').click(function () {\n $('.box-linker-store').removeClass('active');\n $('.widget.page-where-to-buy').removeClass('active');\n\n $(this).toggleClass('active');\n $('.box-header-mobile .mobile-area-buscar').toggleClass('active');\n });\n\n // MODAL AUTOPLAY\n autoPlayYouTubeModal();\n\n // INGREDIENTS PAGE\n // $('#quick-view-slider-gallery').slick({\n // autoplay: false,\n // autoplaySpeed: 8000,\n // speed: 2000,\n // slidesToShow: 1,\n // dots: false,\n // arrows: true,\n // adaptiveHeight: true,\n // });\n\n // INGREDIENTS PAGE\n $('.ingredient-slider').slick({\n autoplay: false,\n autoplaySpeed: 8000,\n speed: 2000,\n slidesToShow: 1,\n dots: false,\n arrows: true,\n adaptiveHeight: true,\n });\n\n $('.proveemos-slider').slick({\n autoplay: false,\n autoplaySpeed: 8000,\n speed: 2000,\n slidesToShow: 1,\n dots: false,\n arrows: true,\n adaptiveHeight: true,\n });\n\n // homepage page\n $('.featured-product-slider').slick({\n autoplay: false,\n speed: 1500,\n slidesToShow: 3,\n slidesToScroll: 3,\n dots: false,\n arrows: true,\n adaptiveHeight: true,\n infinite: true,\n lazyLoad: 'ondemand',\n responsive: [\n {\n breakpoint: 990,\n settings: {\n slidesToShow: 3,\n slidesToScroll: 3,\n infinite: true,\n },\n },\n {\n breakpoint: 768,\n settings: {\n slidesToShow: 1,\n slidesToScroll: 1,\n infinite: true,\n },\n },\n {\n breakpoint: 550,\n settings: {\n slidesToShow: 1,\n slidesToScroll: 1,\n infinite: true,\n },\n },\n {\n breakpoint: 480,\n settings: {\n slidesToShow: 1,\n slidesToScroll: 1,\n infinite: true,\n },\n },\n ],\n });\n\n // PRODUCT\n $('.toggle-container-click').click(function (event) {\n event.preventDefault();\n\n $(this).toggleClass('active');\n $(this).next().toggleClass('active');\n\n const toggleId = $(this).parent().attr('id');\n\n if (toggleId === 'toggle-container-click-1') {\n $('#toggle-container-click-2 .toggle-container-click').removeClass('active');\n $('#toggle-container-click-2 .js-content-section').removeClass('active');\n $('#toggle-container-click-3 .toggle-container-click').removeClass('active');\n $('#toggle-container-click-3 .js-content-section').removeClass('active');\n $('#toggle-container-click-4 .toggle-container-click').removeClass('active');\n $('#toggle-container-click-4 .js-content-section').removeClass('active');\n }\n\n if (toggleId === 'toggle-container-click-2') {\n $('#toggle-container-click-1 .toggle-container-click').removeClass('active');\n $('#toggle-container-click-1 .js-content-section').removeClass('active');\n $('#toggle-container-click-3 .toggle-container-click').removeClass('active');\n $('#toggle-container-click-3 .js-content-section').removeClass('active');\n $('#toggle-container-click-4 .toggle-container-click').removeClass('active');\n $('#toggle-container-click-4 .js-content-section').removeClass('active');\n }\n\n if (toggleId === 'toggle-container-click-3') {\n $('#toggle-container-click-1 .toggle-container-click').removeClass('active');\n $('#toggle-container-click-1 .js-content-section').removeClass('active');\n $('#toggle-container-click-2 .toggle-container-click').removeClass('active');\n $('#toggle-container-click-2 .js-content-section').removeClass('active');\n $('#toggle-container-click-4 .toggle-container-click').removeClass('active');\n $('#toggle-container-click-4 .js-content-section').removeClass('active');\n }\n\n if (toggleId === 'toggle-container-click-4') {\n $('#toggle-container-click-1 .toggle-container-click').removeClass('active');\n $('#toggle-container-click-1 .js-content-section').removeClass('active');\n $('#toggle-container-click-2 .toggle-container-click').removeClass('active');\n $('#toggle-container-click-2 .js-content-section').removeClass('active');\n $('#toggle-container-click-3 .toggle-container-click').removeClass('active');\n $('#toggle-container-click-3 .js-content-section').removeClass('active');\n }\n });\n\n // VIEW QUICK\n $('.result-result-click .btn-quick-view').click(function () {\n const tonoCurrent = $(this).attr('data-current-tono');\n const tonoCurrentTarget = $(this).attr('data-target');\n const tonoCurrentTargetValue = tonoCurrentTarget.replace('#', '');\n\n setTimeout(() => {\n $(`#${tonoCurrentTargetValue} .tc-${tonoCurrent} a`).trigger('click');\n }, 500);\n });\n\n // MODAL CONTENT BY COLOR\n $('.modal-content .hexagono').click(function () {\n const padreiTem = $(this)\n .parent()\n .parent()\n .parent()\n .parent()\n .parent()\n .parent()\n .parent()\n .parent()\n .parent()\n .parent();\n const tono = $(this).attr('title');\n const tonoId = $(this).attr('data-id');\n\n padreiTem.find('#selected_color').text(tono);\n // $(\".modal-content #selected_color\").text(tono);\n\n padreiTem.find('.row.product-single-color-image-group').removeClass('active');\n\n padreiTem.find('.box-content-colors li').removeClass('active');\n\n padreiTem.find('.btn_online_by_colour').removeClass('active');\n\n $(this).parent().addClass('active');\n\n setTimeout(() => {\n padreiTem.find(`#filter_by_color_${tonoId}`).addClass('active');\n padreiTem.find(`#filter_buy_online_by_color_${tonoId}`).addClass('active');\n }, 500);\n });\n\n // PRO HEADER BY COLOR\n $('.pro-header .box-content-colors .hexagono').click(function () {\n const tono = $(this).attr('title');\n const tonoId = $(this).attr('data-id');\n\n $('.pro-header #selected_color').text(tono);\n\n $('.pro-header .row.product-single-color-image-group').removeClass('active');\n\n $('.pro-header .box-content-colors li').removeClass('active');\n\n $('.pro-header .btn_online_by_colour').removeClass('active');\n\n $('.product-detail-header .product-thumb-list ul li:first-child').addClass('active');\n\n $(this).parent().addClass('active');\n\n // this looks similar to the code I commented out in single-bb_product [rg july - 2022]\n setTimeout(() => {\n $(`.pro-header #filter_by_color_${tonoId}`).addClass('active');\n $(`.pro-header #filter_buy_online_by_color_${tonoId}`).addClass('active');\n }, 100);\n });\n\n // THUMB\n $('.product-single-color-image-group .thumbs_ul_img li a.btn-linker-thumb span.border-fix').click(function () {\n $('.product-single-color-image-group .product-thumb-list ul li').removeClass('active');\n $(this).parent().parent().addClass('active');\n\n const lazyImage = $(this).attr('data-src');\n const currentId = $(this).parent().parent().parent().attr('id');\n\n $(`.product-single-color-image-group #to_this_${currentId} .photo`).css(\n 'background-image',\n `url('${lazyImage}')`\n );\n $(`.product-single-color-image-group #to_this_${currentId} .tile img`).attr('src', lazyImage);\n });\n\n $('.button-review-active').click(() => {\n $('.area-review-active').toggleClass('showme');\n });\n\n // ZOOM\n $('.tile')\n // tile mouse actions\n .on('mouseover', function () {\n $(this)\n .children('.photo')\n .css({ transform: `scale(${$(this).attr('data-scale')})` });\n })\n .on('mouseout', function () {\n $(this).children('.photo').css({ transform: 'scale(1)' });\n })\n .on('mousemove', function (e) {\n $(this)\n .children('.photo')\n .css({\n 'transform-origin': `${((e.pageX - $(this).offset().left) / $(this).width()) * 100}% ${\n ((e.pageY - $(this).offset().top) / $(this).height()) * 100\n }%`,\n });\n })\n // tiles set up\n .each(function () {\n $(this)\n // add a photo container\n .append('')\n .children('.photo')\n .css({ 'background-image': `url(${$(this).attr('data-image')})` });\n });\n\n // SEARCH\n $('.search-results .container-inner-search-result .nav-pills-result-search li:first-child a').addClass('active');\n $('.search-results .tab-content-result-search .tab-pane:odd').addClass('odd');\n $('.search-results .tab-content-result-search .tab-pane:even').addClass('even');\n\n setTimeout(() => {\n const countResultSearch = $('.search-results .news-item-result-box').length;\n if (countResultSearch > 12) {\n $('.search-results .btn-search-more').addClass('active');\n }\n\n $('.search-results .news-item-result-box').each(function (counterio) {\n if (counterio < 12) {\n $(this).addClass('active');\n }\n });\n }, 500);\n\n $('.search-results .nav-pills-result-search .nav-item, .search-results .btn-search-more').click(() => {\n $('.search-results .news-item-result-box').addClass('active');\n $('.search-results .btn-search-more').hide();\n });\n\n // Select all links with hashes\n $('.tabber a[href*=\"#\"]')\n // Remove links that don't actually link to anything\n .not('[href=\"#\"]')\n .not('[href=\"#0\"]')\n .click(function (event) {\n // On-page links\n if (\n window.location.pathname.replace(/^\\//, '') === this.pathname.replace(/^\\//, '') &&\n window.location.hostname === this.hostname\n ) {\n // Figure out element to scroll to\n let target = $(this.hash);\n target = target.length ? target : $(`[name=${this.hash.slice(1)}]`);\n // Does a scroll target exist?\n if (target.length) {\n // Only prevent default if animation is actually gonna happen\n event.preventDefault();\n $('html, body').animate(\n {\n scrollTop: target.offset().top,\n },\n 1000,\n () => {\n // Callback after animation\n // Must change focus!\n const $target = $(target);\n $target.focus();\n if ($target.is(':focus')) {\n // Checking if the target was focused\n return false;\n }\n $target.attr('tabindex', '-1'); // Adding tabindex for elements not focusable\n $target.focus(); // Set focus again\n return true;\n }\n );\n }\n }\n });\n\n $('.slider-lip-care-type-box').slick({\n autoplay: false,\n speed: 1000,\n slidesToShow: 1,\n dots: false,\n arrows: true,\n adaptiveHeight: true,\n });\n\n $('.subcat-slider').slick({\n autoplay: false,\n speed: 1000,\n slidesToShow: 1,\n dots: true,\n arrows: true,\n adaptiveHeight: true,\n });\n\n /* slider-subcat-mobile */\n $('.slider-subcat-mobile').slick({\n autoplay: false,\n speed: 1000,\n slidesToShow: 1,\n dots: true,\n arrows: true,\n adaptiveHeight: false,\n responsive: [\n {\n breakpoint: 1024,\n settings: {\n slidesToShow: 3,\n slidesToScroll: 3,\n infinite: true,\n dots: true,\n },\n },\n {\n breakpoint: 768,\n settings: {\n slidesToShow: 1,\n slidesToScroll: 1,\n infinite: true,\n dots: true,\n },\n },\n ],\n });\n\n let categoryId = 0;\n\n $('.slider-of-subcategory-box .only-desktop-767 .slider-of-subcategory-box-content .slider-sub-cat-child').click(\n function () {\n $('.slider-of-subcategory .slider-sub-cat-child').removeClass('highlight');\n\n $(this).addClass('highlight');\n\n $('.slider-sub-cat-showme').removeClass('hidden-slider-subcat');\n\n categoryId = $(this).attr('data-id');\n\n // alert(cat_data_id);\n\n setTimeout(() => {\n // alert($dataID);\n $(`.slider-sub-cat-showme .slick-dots li #${categoryId}`).trigger('click');\n }, 600);\n }\n );\n\n $('.slider-of-subcategory-box .only-mobile-767 .slider-of-subcategory-box-content .slider-sub-cat-child').click(\n function () {\n $('.slider-of-subcategory .slider-sub-cat-child').removeClass('highlight');\n\n $(this).addClass('highlight');\n\n $('.slider-sub-cat-showme').removeClass('hidden-slider-subcat');\n\n categoryId = $(this).attr('data-id');\n\n // alert(cat_data_id);\n\n setTimeout(() => {\n // alert($dataID);\n $(`.slider-sub-cat-showme .slick-dots li #${categoryId}`).trigger('click');\n }, 1000);\n }\n );\n\n $('.slider-sub-cat-showme.subcat-slider .close-cross-icon').click(() => {\n $('.slider-of-subcategory .slider-sub-cat-child').removeClass('highlight');\n\n $('.slider-sub-cat-showme').addClass('hidden-slider-subcat');\n });\n\n // contact\n $('.faq-list a.faq-anchor').click(function (evt) {\n evt.preventDefault();\n $(this).parent().toggleClass('active');\n });\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t792: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkburtsbees_latam\"] = self[\"webpackChunkburtsbees_latam\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [121], () => (__webpack_require__(32)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","define","a","extend","fn","validate","b","this","length","c","data","attr","validator","settings","onsubmit","on","submitButton","currentTarget","hasClass","cancelSubmit","d","e","submitHandler","formSubmitted","name","val","appendTo","currentForm","debug","call","remove","preventDefault","form","pendingRequest","focusInvalid","window","console","warn","valid","is","each","element","concat","errorList","rules","f","g","h","i","j","k","closest","staticRules","normalizeRule","messages","split","normalizeRules","classRules","attributeRules","dataRules","required","remote","replace","expr","pseudos","blank","filled","unchecked","prop","defaults","init","format","arguments","makeArray","unshift","apply","constructor","Array","slice","RegExp","groups","errorClass","pendingClass","validClass","errorElement","focusCleanup","errorContainer","errorLabelContainer","ignore","ignoreTitle","onfocusin","lastActive","unhighlight","hideThese","errorsFor","onfocusout","checkable","submitted","optional","onkeyup","which","elementValue","inArray","keyCode","invalid","onclick","parentNode","highlight","type","findByName","addClass","removeClass","setDefaults","email","url","date","dateISO","number","digits","equalTo","maxlength","minlength","rangelength","range","max","min","step","autoCreateRanges","prototype","labelContainer","errorContext","containers","add","valueCache","pending","reset","invalidHandler","checkForm","errorMap","triggerHandler","showErrors","prepareForm","currentElements","elements","check","clean","validationTargetFor","prepareElement","push","numberOfInvalids","toHide","map","message","successList","grep","defaultShowErrors","resetForm","hideErrors","removeData","removeAttr","resetElements","objectLength","not","text","addWrapper","hide","size","findLastActive","filter","trigger","find","error","errors","join","resetInternals","toShow","validity","badInput","substr","lastIndexOf","abortRequest","normalizer","method","parameters","methods","formatAndAdd","log","id","TypeError","customDataMessage","charAt","toUpperCase","substring","toLowerCase","customMessage","String","findDefined","defaultMessage","title","test","wrapper","parent","showLabel","success","validElements","show","invalidElements","idOrName","escapeHtml","html","wrap","append","errorPlacement","insertAfter","parents","escapeCssMeta","match","getLength","nodeName","depend","dependTypes","_typeof","string","elementAjaxPort","startRequest","stopRequest","ajaxAbort","previousValue","old","destroy","off","classRuleSettings","creditcard","addClassRules","normalizeAttributeRule","Number","isNaN","getAttribute","param","depends","isArray","addMethod","Date","toString","l","Math","round","pow","m","Error","originalMessage","ajax","mode","port","dataType","context","ajaxPrefilter","ajaxSettings","abort","$","document","ready","next","click","toggleClass","toggle","index","after","idx","elm","el","value","children","slideToggle","selectedLI","prev","jQuery","submit","slick","autoplay","autoplaySpeed","speed","slidesToShow","dots","arrows","adaptiveHeight","querySelector","setTimeout","onscroll","header","getElementById","sticky","offsetTop","pageYOffset","classList","theModal","videoSRC","videoSRCauto","slidesToScroll","infinite","lazyLoad","responsive","breakpoint","event","toggleId","tonoCurrent","tonoCurrentTargetValue","padreiTem","tono","tonoId","lazyImage","currentId","css","transform","pageX","offset","left","width","pageY","top","height","counterio","location","pathname","hostname","target","hash","animate","scrollTop","$target","focus","categoryId","evt","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","O","result","chunkIds","priority","notFulfilled","Infinity","fulfilled","Object","keys","every","key","splice","r","n","getter","__esModule","definition","o","defineProperty","enumerable","get","globalThis","Function","obj","hasOwnProperty","Symbol","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","forEach","bind","__webpack_exports__"],"sourceRoot":""}