{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///../codebase/tkooples/cartridges/app_core_tkooples/cartridge/client/default/js/carouselSlick.js"],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;ACjFA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,GAAG;;;AAGH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;AAEA,eAAe,oBAAoB;AACnC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;;AAGH;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,SAAS;AACT;AACA,CAAC,E","file":"default/js/carouselSlick.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"../codebase/tkooples/cartridges/app_core_tkooples/cartridge/client/default/js/carouselSlick.js\");\n","\n// Slick arrow change position\nfunction changeposition() {\n var topPosition = ($('.slick-active').find(\".image-container\").height()/2);\n $('.slick-arrow').css('top',topPosition+'px');\n }\n\n// Slider with carousel slick\n$(\".carousel-slider\").slick({\n slidesToShow: 4,\n slidesToScroll: 1,\n infinite: true,\n adaptiveHeight : true,\n responsive: [{\n breakpoint: 667,\n settings: {\n centerMode: true,\n centerPadding: '0',\n slidesToShow: 2,\n swipe: true,\n dots: false,\n }\n }\n ]\n}).on('afterChange',function(event){\n changeposition();\n }).trigger('afterChange');\n\n \nvar loadedRecomSlot = [];\n\nfunction deplaceArrows() {\n $('.recently-v-arrows .slick-prev').insertBefore('.title-arrows-rv');\n $('.recently-v-arrows .slick-next').insertAfter('.title-arrows-rv');\n $('.complet-set-arrows .slick-prev').insertBefore('.title-arrows-cs');\n $('.complet-set-arrows .slick-next').insertAfter('.title-arrows-cs');\n}\n\nfunction applySlider(elementId) {\n\n var containerEinRecs = $('#' + elementId).find(\".custom-recommendations\");\n if (containerEinRecs.length > 0) {\n containerEinRecs.parents('.recommendations').removeClass(\"d-none\");\n containerEinRecs.slick({\n slidesToShow: 3,\n slidesToScroll: 1,\n centerPadding: '0',\n infinite: true,\n responsive: [{\n breakpoint: 667,\n settings: {\n arrows: true,\n centerMode: false,\n centerPadding: '0',\n slidesToShow: 2,\n swipe: true,\n dots: false,\n }\n },\n {\n breakpoint: 991.98,\n settings: {\n slidesToShow: 2,\n infinite: true\n }\n }\n ]\n });\n\n deplaceArrows();\n\n $(window).on('resize', function () {\n deplaceArrows();\n });\n }\n}\n\nfunction registerSliderEvents(target) {\n var observer = new WebKitMutationObserver(function (mutations) {\n mutations.forEach(function (mutation) {\n if (mutation.target.id && mutation.target.id.startsWith(\"cq_recomm_slot-\")) {\n\n if (loadedRecomSlot.indexOf(mutation.target.id) == -1) {\n loadedRecomSlot.push(mutation.target.id)\n setTimeout(function () {\n applySlider(mutation.target.id)\n }, 500);\n }\n }\n });\n });\n observer.observe(target, {\n attributes: true,\n childList: true,\n characterData: true,\n subtree: true\n });\n}\n\nvar targets = document.querySelectorAll('[id^=\"cq_recomm_slot-\"]');\n\nfor (var i = 0; i < targets.length; i++) {\n registerSliderEvents(targets[i])\n}\n\n$('.slider-recommendations-shop').parents('.shop-the-look-reco').removeClass(\"d-none\");\n$(\".slider-recommendations-shop\").slick({\n slidesToShow: 3,\n slidesToScroll: 1,\n infinite: true,\n responsive: [{\n breakpoint: 667,\n settings: {\n arrows: true,\n slidesToShow: 2,\n swipe: true,\n dots:false,\n }\n },\n {\n breakpoint: 991.98,\n settings: {\n slidesToShow: 2,\n infinite: true\n }\n }\n ]\n });\n \n $('.shop-reco .slick-prev').insertBefore('.title-arrows-shop');\n $('.shop-reco .slick-next').insertAfter('.title-arrows-shop');\n\n $(\".slider-pdp\").slick({\n slidesToShow: 1,\n slidesToScroll: 1,\n centerPadding: '0',\n infinite: true,\n });\n\n\n function CarouselHeightImage() {\n var windowWidth= $(window).width(),\n Carousel_width =(1/4 *(windowWidth));\n\n if ( windowWidth > 840 ) {\n var carouselHeight = (Carousel_width* 1.24);\n $('.carousel-slider .product-tile .image-container').css('height',carouselHeight);\n }else{\n var Carousel_width =(1/2 *(windowWidth)),\n carouselHeight = (Carousel_width* 1.24);\n $('.carousel-slider .product-tile .image-container').css('height',carouselHeight);\n \n }\n }\n CarouselHeightImage();\n \n$(window).on('load resize', function () {\n changeposition();\n CarouselHeightImage();\n});\n\n$('.slider-block').slick({\n dots: true,\n slidesToShow: 1,\n slidesToScroll: 1,\n centerPadding: '0',\n infinite: true,\n arrows:false,\n autoplay:true,\n speed:1000,\n fade: true,\n swipe:true\n});\n\n$(document).ready(function () {\n var WindowWidth = $(window).width();\n var WindowHeight = $(window).outerHeight();\n var hauteur_fenetre = $('header').outerHeight();\n var heightImageSlider = WindowHeight - hauteur_fenetre;\n var videoSliderHeight = $('.slider-caroussel .video-mobile').height();\n if (WindowWidth < 768 ) {\n $('.slider-caroussel .slick-track').each(function() {\n if ($(this).hasClass('exist-video-mobile')) {\n $(this).find('.common-image-component').css('height', videoSliderHeight);\n $('.experience-tkooples_layouts-SKPSliderBlock').parent().closest('.region').css('height', videoSliderHeight);\n } else {\n $(this).find('.common-image-component').css('height', heightImageSlider);\n $('.experience-tkooples_layouts-SKPSliderBlock').parent().closest('.region').css('height', heightImageSlider);\n }\n });\n }\n});"],"sourceRoot":""}