{"version":3,"sources":["webpack:///./widgets/downloadBriefBlock.js"],"names":["WG","DownloadBriefBlock","$el","_classCallCheck","this","key","value","setDownloadBriefBlock","$wg","$","on","concat","selectedFileLink","find","val","window","open"],"mappings":"s2BAGA,IAEMA,EAAK,uBAOEC,EAAkB,WAI7B,O,EAHD,SAAAA,EAAYC,I,4FAAKC,CAAA,KAAAF,GAEhBG,KAAKF,IAAMA,I,EACX,EAAAG,IAAA,OAAAC,MAED,WACCF,KAAKG,0BACL,CAAAF,IAAA,wBAAAC,MAED,WAEC,IAAME,EAAMC,EAAEL,KAAKF,KAEnBM,EAAIE,GAAG,QAAS,GAAFC,OAAKX,EAAE,QAAO,WAC3B,IAAIY,EAAmBJ,EAAIK,KAAK,GAADF,OAAIX,EAAE,WAAUc,MAC3CF,GAAwC,IAApBA,GACvBG,OAAOC,KAAKJ,W,0FAjBe,I","file":"25.js","sourcesContent":["/* eslint-disable max-len */\n/* eslint-disable no-unused-vars */\n// CONSTANTS are all caps.\nconst NS = 'DownloadBriefBlock';\nconst CLS = 'downloadBriefBlock';\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/downloadBriefBlock.js using Webpack dynamic imports as chunks.\n// import $ from 'jquery'\n\n\nexport class DownloadBriefBlock {\n\tconstructor($el) {\n\t\t// $el is the widget node return by the loadDownloadBriefBlock function\n\t\tthis.$el = $el;\n\t}\n\n\tinit() {\n\t\tthis.setDownloadBriefBlock();\n\t}\n\n\tsetDownloadBriefBlock() {\n\t\t// Add Some logic here\n\t\tconst $wg = $(this.$el);\n\n\t\t$wg.on('click', `${WG}btn`, function() {\n\t\t\tlet selectedFileLink = $wg.find(`${WG}select`).val();\n\t\t\tif (selectedFileLink && selectedFileLink != '') {\n\t\t\t\twindow.open(selectedFileLink);\n\t\t\t}\n\t\t});\n\t}\n\n\t// Add more functions like on above here\n}\n"],"sourceRoot":""}