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AAQC,OAASH,EAAQI,UAAUC,SAAS,CAAC,WACvDL,EAAQE,QAAQC,MAAQ,QACzB,G,GCPEG,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,CAAC,GAOX,OAHAE,EAAoBL,GAAUI,EAAQA,EAAOD,QAASJ,GAG/CK,EAAOD,OACf,CCrBAJ,EAAoBO,EAAI,SAASF,GAChC,IAAIG,EAASH,GAAUA,EAAOI,WAC7B,WAAa,OAAOJ,EAAgB,OAAG,EACvC,WAAa,OAAOA,CAAQ,EAE7B,OADAL,EAAoBU,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CACR,ECNAR,EAAoBU,EAAI,SAASN,EAASQ,GACzC,IAAI,IAAIC,KAAOD,EACXZ,EAAoBc,EAAEF,EAAYC,KAASb,EAAoBc,EAAEV,EAASS,IAC5EE,OAAOC,eAAeZ,EAASS,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAG3E,ECPAb,EAAoBc,EAAI,SAASK,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,EAAO,E","sources":["webpack://simplecharm-portfolio/./src/js/components/copybtn.js","webpack://simplecharm-portfolio/./src/js/components/navigation-toggler.js","webpack://simplecharm-portfolio/./src/js/components/page.js","webpack://simplecharm-portfolio/webpack/bootstrap","webpack://simplecharm-portfolio/webpack/runtime/compat get default export","webpack://simplecharm-portfolio/webpack/runtime/define property getters","webpack://simplecharm-portfolio/webpack/runtime/hasOwnProperty shorthand"],"sourcesContent":["(function($){\n\tclass CopyBtn{\n\t\tconstructor(){\n\t\t\tthis.init();\n\t\t}\n\t\tinit(){\n\t\t\tthis.handleCopyBtn(\".simplecharm-portfolio-copy-mail\")\n\t\t\tthis.handleCopyBtn(\".simplecharm-portfolio-copy-phone\")\n\t\t}\n\t\thandleCopyBtn(copyBtn){\n\t\t\tlet instance = this;\n\t\t\t$(copyBtn).on(\"click\",(e) => this.copy(e,instance,copyBtn));\n\t\t\t$(copyBtn).on(\"focus\",(e) => this.copy(e,instance,copyBtn));\n\t\t}\n\t\tbottomAlert(alertText,bgColor,timing) {\n\t var bottomAlert = document.getElementById(\"simplecharm-portfolio-bottom-alert\");\n\t bottomAlert.textContent = alertText;\n\t bottomAlert.style.background = bgColor;\n\t bottomAlert.style.opacity = \"1\";\n\t bottomAlert.style.transform = \"translate(-50%,0)\";\n\t setTimeout(function() {\n\t\t\t\t bottomAlert.style.transform = \"translate(-50%,50px)\";\n\t bottomAlert.style.opacity = \"0\";\n\t }, timing);\n }\n copy(e,instance,copyBtn){\n\t\te.preventDefault();\n\t\tif(e.type !== \"click\" && e.keyCode !== 13) return;\n\t\tlet tempTextArea = document.createElement(\"textarea\");\n \ttempTextArea.value = $(copyBtn).siblings(\"h2\").html();\n \t\tdocument.body.appendChild(tempTextArea);\n \ttempTextArea.select();\n \ttempTextArea.setSelectionRange(0, 99999); \n \tif(document.execCommand(\"copy\")){\n\t\t\tinstance.bottomAlert(\"Copied!\",\"#204ecf\",1000);\n\n\t\t}else{\n\t\t\tinstance.bottomAlert(\"Can't Copy! Try Again.\",\"#f00\",3000);\n\t\t}\n document.body.removeChild(tempTextArea);\n\t\t\t}\n\t}\n\tnew CopyBtn;\n})(jQuery)","(function($){\n\t$('.simplecharm-portfolio-navigation-toggler').on('click',function(e){\n\t\te.preventDefault();\n\t\t$(this).siblings('#simplecharm-portfolio-navigation').slideToggle();\n\t})\n})(jQuery)","(function($){\n\t// $('body.page-template').dataset.theme = 'light' ;\n\t// var a = $('body.page-template');\n\t// console.log({{a}})\n\t$(document).on(\"ready\",(e)=>{\n\t\tconst bodyTag = $(e.target.body)[0];\n\t\tif(bodyTag.dataset.theme && bodyTag.classList.contains(['page'])){\n\t\t\tbodyTag.dataset.theme = 'light';\n\t\t}\n\t})\n})(jQuery)","// 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\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.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","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(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 = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }"],"names":["$","jQuery","constructor","this","init","handleCopyBtn","copyBtn","instance","on","e","copy","bottomAlert","alertText","bgColor","timing","document","getElementById","textContent","style","background","opacity","transform","setTimeout","preventDefault","type","keyCode","tempTextArea","createElement","value","siblings","html","body","appendChild","select","setSelectionRange","execCommand","removeChild","slideToggle","bodyTag","target","dataset","theme","classList","contains","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call"],"sourceRoot":""}