{"version":3,"sources":["before.js","single.js","after.js"],"names":["$","OpalWoocommerceSingleProduct","_this","this","_classCallCheck","initSlideProduct","on","singleProductGalleryImages","_createClass","key","value","lightbox","length","attr","rtl","hasClass","$gallery","data_gallery","data","$gallery_child","children","slick","infinite","slidesToShow","vertical","verticalSwiping","jQuery"],"mappings":"8XAAA,SAAAA,GCuCA,IDvCA,WCCA,QAAAC,KAAA,GAAAC,GAAAC,IAAAC,iBAAAD,KAAAF,GACAE,KAAAE,mBACAL,EAAA,gCAAAM,GAAA,gCAAA,WACAJ,EAAAK,+BDJA,MAAAC,cAAAP,IAAAQ,IAAA,mBAAAC,MAAA,WCCA,GAAAC,GAAAX,EAAA,0DASAW,GAAAC,QATAD,EAAAE,KAAA,+BAAA,SDDAJ,IAAA,6BAAAC,MAAA,WCKA,GAAAI,KAAAd,EAAA,QAAAe,SAAA,OACAC,EAAAhB,EAAA,2DDNA,MAAAgB,EAAAJ,OAAA,GAAA,CCUA,GAAAK,GAAAD,EAAAE,KAAA,WACAP,EAAAA,EAAAA,uBAAAA,EAEAQ,GAAAC,WAAAR,OAAAK,GDbAE,EAAAE,OAAAP,IAAAA,EAAAQ,UAAA,ECgBAC,aAAAN,EAAAO,UAAA,EAgBAC,iBAAA,SDhCAxB,OEAAyB","file":"single.js","sourcesContent":["(function ($) {","class OpalWoocommerceSingleProduct {\n constructor() {\n this.initSlideProduct();\n $('.woocommerce-product-gallery').on('wc-product-gallery-after-init', () => {\n this.singleProductGalleryImages();\n });\n }\n\n initSlideProduct() {\n let lightbox = $('.single-product .woocommerce-product-gallery__image > a');\n if (lightbox.length) {\n lightbox.attr(\"data-elementor-open-lightbox\", \"no\");\n }\n }\n\n singleProductGalleryImages() {\n var rtl = $('body').hasClass('rtl') ? true : false,\n $gallery = $('.woocommerce-single-style-1 .woocommerce-product-gallery');\n\n if ($gallery.length < 0) {\n return;\n }\n\n let data_gallery = $gallery.data('columns'),\n $gallery_child = $('.flex-control-thumbs', $gallery);\n\n if ($gallery_child.children().length > data_gallery) {\n $gallery_child.slick({\n rtl: rtl,\n infinite: false,\n slidesToShow: data_gallery,\n vertical: true,\n verticalSwiping: true,\n });\n }\n\n }\n}\n\nnew OpalWoocommerceSingleProduct();","})(jQuery);"]}