{"version":3,"sources":["file:////home/vsts/work/1/s/src/main.ts","file:///webpack/bootstrap","file:///webpack/runtime/define property getters","file:///webpack/runtime/hasOwnProperty shorthand","file:///webpack/startup"],"names":["addViewRawToCode","$","each","index","el","container","viewRawBtn","click","clone","find","remove","window","open","document","write","text","toggleWrapBtn","toggleClass","copyBtn","temp","append","val","select","execCommand","toastr","success","parent","addClass","insertAfter","setCallouts","this","init","__webpack_module_cache__","__webpack_require__","moduleId","exports","module","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call"],"mappings":"yCA0CA,IA1Ce,MAAf,cAMY,KAAAA,iBAAmB,KACvBC,EAAE,YAAYC,MAAK,CAACC,EAAOC,KACvB,MAAMC,EAAYJ,EAAE,oCACdK,EAAaL,EAAE,gDAAgDM,OAAM,KACvE,MAAMC,EAAQP,EAAEG,GAAII,QACpBA,EAAMC,KAAK,OAAOC,SACNC,OAAOC,KAAK,GAAI,WACxBC,SAASC,MAAM,QAAQN,EAAMO,mBAE/BC,EAAgBf,EAAE,mDAAmDM,OAAM,KAC7EN,EAAEG,GAAIa,YAAY,WAEhBC,EAAUjB,EAAE,4CAA4CM,OAAM,KAChE,MAAMC,EAAQP,EAAEG,GAAII,QACpBA,EAAMC,KAAK,OAAOC,SAClB,MAAMS,EAAOlB,EAAE,8CACfA,EAAE,QAAQmB,OAAOD,GACjBA,EAAKE,IAAIb,EAAMO,QAAQO,SACvBT,SAASU,YAAY,QACrBJ,EAAKT,SACLc,OAAOC,QAAQ,wCAAyC,kBAE5DpB,EAAUe,OAAOJ,GACjBX,EAAUe,OAAOF,GACjBb,EAAUe,OAAOd,GACjBL,EAAEG,GAAIsB,SAASC,SAAS,QACxBtB,EAAUuB,YAAY3B,EAAEG,GAAIsB,cAI5B,KAAAG,YAAc,KAClB5B,EAAE,kBAAkBC,MAAK,CAACC,EAAOC,KAC7BH,EAAEG,GAAIG,OAAM,KAAQN,EAAEG,GAAIsB,SAAST,YAAY,eArChD,OACHa,KAAK9B,mBACL8B,KAAKD,iBAuCAE,SCzCTC,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,GAAGF,EAAyBE,GAC3B,OAAOF,EAAyBE,GAAUC,QAG3C,IAAIC,EAASJ,EAAyBE,GAAY,CAGjDC,QAAS,IAOV,OAHAE,EAAoBH,GAAUE,EAAQA,EAAOD,QAASF,GAG/CG,EAAOD,QCnBfF,EAAoBK,EAAI,CAACH,EAASI,KACjC,IAAI,IAAIC,KAAOD,EACXN,EAAoBQ,EAAEF,EAAYC,KAASP,EAAoBQ,EAAEN,EAASK,IAC5EE,OAAOC,eAAeR,EAASK,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3EP,EAAoBQ,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCElFd,EAAoB,M","file":"main.bundle.js","sourcesContent":["export default class Main {\n public init() {\n this.addViewRawToCode();\n this.setCallouts();\n }\n\n private addViewRawToCode = () => {\n $('pre code').each((index, el) => {\n const container = $(`
`);\n const viewRawBtn = $(` `).click(() => {\n const clone = $(el).clone();\n clone.find('.ln').remove();\n const win = window.open('', 'rawcode');\n win.document.write(`${clone.text()}`);\n });\n const toggleWrapBtn = $(` `).click(() => {\n $(el).toggleClass('wrap');\n });\n const copyBtn = $(` `).click(() => {\n const clone = $(el).clone();\n clone.find('.ln').remove();\n const temp = $(``);\n $('body').append(temp);\n temp.val(clone.text()).select();\n document.execCommand('copy');\n temp.remove();\n toastr.success('Text successfully copied to clipboard', 'Text Copied');\n });\n container.append(toggleWrapBtn);\n container.append(copyBtn);\n container.append(viewRawBtn);\n $(el).parent().addClass('code');\n container.insertAfter($(el).parent());\n });\n }\n\n private setCallouts = () => {\n $('.callout-title').each((index, el) => {\n $(el).click(() => { $(el).parent().toggleClass('open'); });\n });\n }\n}\n(new Main()).init();","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tif(__webpack_module_cache__[moduleId]) {\n\t\treturn __webpack_module_cache__[moduleId].exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// startup\n// Load entry module\n__webpack_require__(989);\n// This entry module used 'exports' so it can't be inlined\n"],"sourceRoot":""}