{"version":3,"sources":["webpack:///./widgets/shopFeaturedGridItemBlock.js"],"names":["CLS","ShopFeaturedGridItemBlock","$el","_classCallCheck","this","key","value","setShopFeaturedGridItemBlock","$wg","$","on","e","addClass","removeClass","toggleClass"],"mappings":"62BAGA,IACMA,EAAM,4BAQCC,EAAyB,WAKpC,O,EAJD,SAAAA,EAAYC,I,4FAAKC,CAAA,KAAAF,GAGhBG,KAAKF,IAAMA,I,EACX,EAAAG,IAAA,OAAAC,MAED,WACCF,KAAKG,iCACL,CAAAF,IAAA,+BAAAC,MAED,WAEC,IAAME,EAAMC,EAAEL,KAAKF,KAEnBM,EAAIE,GAAG,cAAc,SAASC,GAC7BH,EAAII,SAASZ,EAAM,oBAGpBQ,EAAIE,GAAG,cAAc,SAASC,GAC7BH,EAAIK,YAAYb,EAAM,oBAGvBQ,EAAIE,GAAG,SAAS,SAASC,GACxBH,EAAIM,YAAYd,EAAM,yB,0FAxBa,I","file":"62.js","sourcesContent":["/* eslint-disable max-len */\n/* eslint-disable no-unused-vars */\n// CONSTANTS are all caps.\nconst NS = 'ShopFeaturedGridItemBlock';\nconst CLS = 'shopFeaturedGridItemBlock';\nconst WG = '.' + CLS + '-';\n\n// Import stuff here if you need to or even better to import them dynamically\n// for ex. of dynamic import check out src/scripts/loadWg/shopFeaturedGridItemBlock.js using Webpack dynamic imports as chunks.\n// import $ from 'jquery'\n\n\nexport class ShopFeaturedGridItemBlock {\n\tconstructor($el) {\n\t\t// $el is the widget node return by the\n\t\t// loadShopFeaturedGridItemBlock function\n\t\tthis.$el = $el;\n\t}\n\n\tinit() {\n\t\tthis.setShopFeaturedGridItemBlock();\n\t}\n\n\tsetShopFeaturedGridItemBlock() {\n\t\t// Add Some logic here\n\t\tconst $wg = $(this.$el);\n\n\t\t$wg.on('mouseenter', function(e) {\n\t\t\t$wg.addClass(CLS + '-item--opened');\n\t\t});\n\n\t\t$wg.on('mouseleave', function(e) {\n\t\t\t$wg.removeClass(CLS + '-item--opened');\n\t\t});\n\n\t\t$wg.on('click', function(e) {\n\t\t\t$wg.toggleClass(CLS + '-item--opened');\n\t\t});\n\t}\n\n\t// Add more functions like on above here\n}\n"],"sourceRoot":""}