{"version":3,"sources":["webpack:///1742452116000.blk-promo-hero-carousel-chunk.js","webpack:///D:/AzureDevops/vsts-agent-win-x64-2.202.1_06/_work/151/s/FrontEnd/src/views/blocks/promoHeroCarousel/js/promoHeroCarousel.js"],"names":["webpackJsonpUpdateBris","344","module","exports","__webpack_require__","$","_classCallCheck","instance","Constructor","TypeError","Object","defineProperty","value","PromoHeroCarousel","undefined","_createClass","defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","key","protoProps","staticProps","prototype","_utils","CLS","obj","__esModule","newObj","hasOwnProperty","call","default","SPEED_TIME_TRANSITION","DELAY_TIME_TRANSITION","el","this","$el","$slider","find","$sliderWrap","$btnNext","$btnPrev","$slidePagination","delayTimeTransition","data","isNaN","parseInt","speedTimeTransition","initPromoSwiper","_this","promoSwiper","Swiper","init","slidesPerView","mousewheel","lazy","autoplay","delay","disableOnInteraction","speed","loop","keyboard","enabled","pagination","clickable","navigation","nextEl","prevEl","on","addClass"],"mappings":";AAAAA,wBAAwB,KAElBC,IACA,SAAUC,EAAQC,EAASC,GAEjC,cAC4B,SAASC,GAerC,QAASC,GAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCAbhHC,OAAOC,eAAeR,EAAS,cAC9BS,OAAO,IAERT,EAAQU,sBAAoBC,EAE5B,IAAIC,GAAe,WAAc,QAASC,GAAiBC,EAAQC,GAAS,IAAK,GAAIC,GAAI,EAAGA,EAAID,EAAME,OAAQD,IAAK,CAAE,GAAIE,GAAaH,EAAMC,EAAIE,GAAWC,WAAaD,EAAWC,aAAc,EAAOD,EAAWE,cAAe,EAAU,SAAWF,KAAYA,EAAWG,UAAW,GAAMd,OAAOC,eAAeM,EAAQI,EAAWI,IAAKJ,IAAiB,MAAO,UAAUb,EAAakB,EAAYC,GAAiJ,MAA9HD,IAAYV,EAAiBR,EAAYoB,UAAWF,GAAiBC,GAAaX,EAAiBR,EAAamB,GAAqBnB,MCHhiBqB,EAAAzB,EAAA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AsB,GAEtBC,MAAOxB,KAAKY,oBACZa,MAAM,EACNC,UACEC,SAAS,GAEXC,YACC7B,GAAIC,KAAKO,iBAAiB,GAC1BsB,WAAW,GAEZC,YACCC,OAAQ/B,KAAKK,SAAS,GACtB2B,OAAQhC,KAAKM,SAAS,KAIxBS,GAAYkB,GAAG,OAAQ,WACtBnB,EAAKb,IAAIiC,SA1DU,oBA8DhBlC,KAAKE,QAAQC,KAAb,IAAsBb,EAAtB,SAAkCV,QAAU,GAC/CoB,KAAKI,YAAY8B,SA9DC,YA+DlBlC,KAAKO,iBAAiB2B,SA/DJ,aAiElBnB,EAAYE,WD+BP5C,OAEqBsB,KAAKhC,EAASC,EAAoB","file":"1742452116000.blk-promo-hero-carousel-chunk.js","sourcesContent":["webpackJsonpUpdateBris([86],{\n\n/***/ 344:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\nexports.PromoHeroCarousel = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _utils = __webpack_require__(4);\n\nvar utils = _interopRequireWildcard(_utils);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n// CONSTANTS are all caps.\nvar NS = 'PromoHeroCarousel';\nvar CLS = 'promoHeroCarousel';\nvar BLK = '.' + CLS + '-';\nvar SLIDE_TO_SHOW = 1;\nvar SPEED_TIME_TRANSITION = 1000;\nvar DELAY_TIME_TRANSITION = 3000;\nvar CLS_IS_INITED = 'is-initialized';\nvar CLS_DISABLED = 'disabled';\n\nvar PromoHeroCarousel = exports.PromoHeroCarousel = function () {\n\tfunction PromoHeroCarousel(el) {\n\t\t_classCallCheck(this, PromoHeroCarousel);\n\n\t\tthis.el = el;\n\t\tthis.$el = $(el);\n\t\tthis.$slider = this.$el.find('.' + CLS + '-slider');\n\t\tthis.$sliderWrap = this.$el.find('.' + CLS + '-sliderWrap');\n\t\tthis.$btnNext = this.$el.find('.' + CLS + '-btnNext');\n\t\tthis.$btnPrev = this.$el.find('.' + CLS + '-btnPrev');\n\t\tthis.$slidePagination = this.$el.find('.' + CLS + '-pagination');\n\n\t\tthis.delayTimeTransition = this.$el.data('delayTimeTransition');\n\t\tif (this.delayTimeTransition && !isNaN(this.delayTimeTransition)) {\n\t\t\tthis.delayTimeTransition = parseInt(this.delayTimeTransition);\n\t\t} else {\n\t\t\tthis.delayTimeTransition = DELAY_TIME_TRANSITION;\n\t\t}\n\n\t\tthis.speedTimeTransition = this.$el.data('speedTimeTransition');\n\t\tif (this.speedTimeTransition && !isNaN(this.speedTimeTransition)) {\n\t\t\tthis.speedTimeTransition = parseInt(this.speedTimeTransition);\n\t\t} else {\n\t\t\tthis.speedTimeTransition = SPEED_TIME_TRANSITION;\n\t\t}\n\n\t\tthis.initPromoSwiper();\n\t}\n\n\t_createClass(PromoHeroCarousel, [{\n\t\tkey: 'initPromoSwiper',\n\t\tvalue: function initPromoSwiper() {\n\t\t\tvar _this = this;\n\n\t\t\tvar promoSwiper = new Swiper(this.$sliderWrap[0], {\n\t\t\t\tinit: false,\n\t\t\t\tslidesPerView: SLIDE_TO_SHOW,\n\t\t\t\tmousewheel: false,\n\t\t\t\tlazy: true,\n\t\t\t\tautoplay: {\n\t\t\t\t\tdelay: this.delayTimeTransition,\n\t\t\t\t\tdisableOnInteraction: false\n\t\t\t\t},\n\t\t\t\tspeed: this.speedTimeTransition,\n\t\t\t\tloop: true,\n\t\t\t\tkeyboard: {\n\t\t\t\t\tenabled: true\n\t\t\t\t},\n\t\t\t\tpagination: {\n\t\t\t\t\tel: this.$slidePagination[0],\n\t\t\t\t\tclickable: true\n\t\t\t\t},\n\t\t\t\tnavigation: {\n\t\t\t\t\tnextEl: this.$btnNext[0],\n\t\t\t\t\tprevEl: this.$btnPrev[0]\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tpromoSwiper.on('init', function () {\n\t\t\t\t_this.$el.addClass(CLS_IS_INITED);\n\t\t\t});\n\n\t\t\tif (this.$slider.find('.' + CLS + '-item').length <= 1) {\n\t\t\t\tthis.$sliderWrap.addClass(CLS_DISABLED);\n\t\t\t\tthis.$slidePagination.addClass(CLS_DISABLED);\n\t\t\t} else {\n\t\t\t\tpromoSwiper.init();\n\t\t\t}\n\t\t}\n\t}]);\n\n\treturn PromoHeroCarousel;\n}();\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// 1742452116000.blk-promo-hero-carousel-chunk.js","// CONSTANTS are all caps.\nconst NS = 'PromoHeroCarousel';\nconst CLS = 'promoHeroCarousel';\nconst BLK = '.' + CLS + '-';\nconst SLIDE_TO_SHOW = 1;\nconst SPEED_TIME_TRANSITION = 1000;\nconst DELAY_TIME_TRANSITION = 3000;\nconst CLS_IS_INITED = 'is-initialized';\nconst CLS_DISABLED = 'disabled';\n\nimport * as utils from '../../../../global/js/utils';\n\nexport class PromoHeroCarousel {\n\tconstructor(el) {\n\t\tthis.el = el;\n\t\tthis.$el = $(el);\n\t\tthis.$slider = this.$el.find(`.${CLS}-slider`);\n\t\tthis.$sliderWrap = this.$el.find(`.${CLS}-sliderWrap`);\n\t\tthis.$btnNext = this.$el.find(`.${CLS}-btnNext`);\n\t\tthis.$btnPrev = this.$el.find(`.${CLS}-btnPrev`);\n\t\tthis.$slidePagination = this.$el.find(`.${CLS}-pagination`);\n\t\t\t\t\n\t\tthis.delayTimeTransition = this.$el.data('delayTimeTransition');\n\t\tif (this.delayTimeTransition && !isNaN(this.delayTimeTransition)) {\n\t\t\tthis.delayTimeTransition = parseInt(this.delayTimeTransition);\n\t\t} else {\n\t\t\tthis.delayTimeTransition = DELAY_TIME_TRANSITION;\n\t\t}\n\t\t\t\t\n\t\tthis.speedTimeTransition = this.$el.data('speedTimeTransition');\n\t\tif (this.speedTimeTransition && !isNaN(this.speedTimeTransition)) {\n\t\t\tthis.speedTimeTransition = parseInt(this.speedTimeTransition);\n\t\t} else {\n\t\t\tthis.speedTimeTransition = SPEED_TIME_TRANSITION;\n\t\t}\n\n\t\tthis.initPromoSwiper();\n\t}\n\n\tinitPromoSwiper() {\n\t\tconst promoSwiper = new Swiper(this.$sliderWrap[0], {\n\t\t\tinit: false,\n\t\t\tslidesPerView: SLIDE_TO_SHOW,\n\t\t\tmousewheel: false,\n\t\t\tlazy: true,\t\n\t\t\tautoplay: {\n\t\t\tdelay: this.delayTimeTransition,\n\t\t\tdisableOnInteraction: false,\n\t\t\t},\n\t\t\tspeed: this.speedTimeTransition, \n\t\t\tloop: true,\n\t\t\tkeyboard: {\n\t\t\t enabled: true,\n\t\t\t},\n\t\t\tpagination: {\n\t\t\t\tel: this.$slidePagination[0],\n\t\t\t\tclickable: true,\n\t\t\t},\n\t\t\tnavigation: {\n\t\t\t\tnextEl: this.$btnNext[0],\n\t\t\t\tprevEl: this.$btnPrev[0],\n\t\t\t}\n\t\t});\n\n\t\tpromoSwiper.on('init', () => {\n\t\t\tthis.$el.addClass(CLS_IS_INITED);\n\t\t});\n\t\t\n\n\t\tif (this.$slider.find(`.${CLS}-item`).length <= 1) {\n\t\t\tthis.$sliderWrap.addClass( CLS_DISABLED );\n\t\t\tthis.$slidePagination.addClass( CLS_DISABLED );\n\t\t} else {\n\t\t\tpromoSwiper.init();\n\t\t}\n\t}\n}\n\n\n\n// WEBPACK FOOTER //\n// D:/AzureDevops/vsts-agent-win-x64-2.202.1_06/_work/151/s/FrontEnd/src/views/blocks/promoHeroCarousel/js/promoHeroCarousel.js"],"sourceRoot":""}