{"version":3,"file":"js.global-ProductCarousel-js.bundle.js","mappings":";;;;;;;;;;;;;;;;;;AAA+C;AACD;;AAE9C;AACA;AACA;AACe,MAAME,eAAe,SAASF,+DAAQ,CAAC;EAClDG,KAAKA,CAAA,EAAG;IACJ,OAAAC,aAAA,KACO,KAAK,CAACD,KAAK,CAAC,CAAC;EAExB;EAEAE,IAAIA,CAAA,EAAG;IACH,KAAK,CAACA,IAAI,CAAC,CAAC;IACZ,IAAI,CAACC,QAAQ,CAAC,CAAC,CAACC,IAAI,CAAC,sBAAsB,EAAE,IAAI,CAAC;IAClD,IAAI,CAACD,QAAQ,CAAC,CAAC,CAACE,EAAE,CAAC,YAAY,EAAE,kBAAkB,CAAC;EACxD;EAEAC,WAAWA,CAAA,EAAG;IACV,KAAK,CAACA,WAAW,CAAC,CAAC;IACnBR,4DAAM,CAAC,IAAI,CAACS,OAAO,EAAEC,IAAI,CAACC,KAAK,CAAC,IAAI,CAACC,MAAM,CAACC,eAAe,CAACC,6BAA6B,CAAC,EAAE,IAAI,CAACZ,KAAK,CAAC,CAAC,CAACa,eAAe,IAAI,CAAC,CAAC,CAAC;EACnI;EAEAC,gBAAgBA,CAACC,GAAG,EAAC;IACjB,IAAGA,GAAG,EAAE;MACJC,CAAC,CAAC,IAAI,CAACC,IAAI,CAACC,MAAM,CAACC,GAAG,CAAC,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,2BAA2B,GAACL,GAAG,GAAC,GAAG,CAAC,CAACM,KAAK,CAAC,CAAC;IAChF;EACJ;AACJ","sources":["webpack://hush-sfcc/./cartridges/app_storefront_widgets/cartridge/client/default/js/widgets/global/ProductCarousel.js"],"sourcesContent":["import Carousel from 'widgets/global/Carousel';\nimport { extend } from 'widgets/toolbox/util';\n\n/**\n * @description product carousel implementation\n */\nexport default class ProductCarousel extends Carousel {\n prefs() {\n return {\n ...super.prefs()\n };\n }\n\n init() {\n super.init();\n this.eventBus().emit('product.listing.init', this);\n this.eventBus().on('modal.next', 'findAndClickNext');\n }\n\n initOptions() {\n super.initOptions();\n extend(this.options, JSON.parse(this.config.sitePreferences.GLOBAL_CAROUSEL_CONFIGURATION), this.prefs().carouselOptions || {});\n }\n\n findAndClickNext(pid){\n if(pid) {\n $(this.refs.slides.els[0]).find(\".b-product-tile[data-pid=\"+pid+\"]\").click();\n } \n }\n}"],"names":["Carousel","extend","ProductCarousel","prefs","_objectSpread","init","eventBus","emit","on","initOptions","options","JSON","parse","config","sitePreferences","GLOBAL_CAROUSEL_CONFIGURATION","carouselOptions","findAndClickNext","pid","$","refs","slides","els","find","click"],"sourceRoot":""}