EIOS/rabprog/tpl/js/bootstrap-msg.js.map

1 line
8.6 KiB
Plaintext

{"version":3,"sources":["webpack://Msg/webpack/universalModuleDefinition","webpack://Msg/webpack/bootstrap","webpack://Msg/external {\"amd\":\"jquery\",\"root\":\"$\",\"commonjs\":\"jquery\",\"commonjs2\":\"jquery\"}","webpack://Msg/./src/defaults/iconFa.js","webpack://Msg/./src/bootstrap-msg.js","webpack://Msg/./src/defaults/icon.js","webpack://Msg/./src/defaults/timeout.js","webpack://Msg/./src/index.js"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__0__","enumerable","get","getter","value","key","bind","Object","prototype","hasOwnProperty","call","object","property","info","success","warning","danger","ICONS","BOOTSTRAP","FONTAWESOME","iconFa","icon","iconEnabled","timeout","version","timer","extraClass","init","msg","$","find","on","e","preventDefault","hideMsg","appendTo","document","body","showMsg","type","message","progress","html","attr","css","clearTimeout","stop","animate","width","setTimeout","error","removeClass"],"mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,WACR,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,MAAO,CAAC,UAAWJ,GACA,iBAAZC,QACdA,QAAa,IAAID,EAAQG,QAAQ,WAEjCJ,EAAU,IAAIC,EAAQD,EAAQ,GARhC,CASmB,oBAATO,KAAuBA,KAAOC,MAAM,SAASC,GACvD,O,YCTA,SAGA,cAGA,QACA,oBAGA,YACA,IACA,KACA,YAUA,OANA,mCAGA,OAGA,UA0DA,OArDA,MAGA,MAGA,oBACA,UACA,2BAA2CC,YAAY,EAAMC,IAAKC,KAKlE,gBACA,gDACA,4CAAyDC,MAAO,WAEhE,sCAAkDA,OAAO,KAQzD,kBAEA,GADA,cACA,aACA,qDACA,0BAGA,GAFA,OACA,mCAA0CH,YAAY,EAAMG,MAAOA,IACnE,2DAAiH,OAAOA,EAAMC,IAAQC,KAAK,KAAMD,IACjJ,UA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BT,QAAS,SAAU0B,EAASjB,GAC5B,KAAKe,QAAQ,UAAWE,EAASjB,IAEjCR,QAAS,SAAUyB,EAASjB,GAC5B,KAAKe,QAAQ,UAAWE,EAASjB,IAEjC2B,MAAO,SAAUV,EAASjB,GAC1B,KAAKP,OAAOwB,EAASjB,IAErBP,OAAQ,SAAUwB,EAASjB,GAC3B,KAAKe,QAAQ,SAAUE,EAASjB,IAEhCW,QAAS,WACTL,IAAE,QAAQsB,YAAY,YAEpBxB,OGpEFhC,0CAAQ,M","file":"js/bootstrap-msg.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"jquery\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"Msg\", [\"jquery\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Msg\"] = factory(require(\"jquery\"));\n\telse\n\t\troot[\"Msg\"] = factory(root[\"$\"]);\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE__0__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 2);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","export default {\rinfo: 'fa fa-info-circle',\rsuccess: 'fa fa-check-circle',\rwarning: 'fa fa-exclamation-circle',\rdanger: 'fa fa-times-circle'\r\n};\r\n","import $ from 'jquery';\rimport TIMEOUT from './defaults/timeout';\r\nimport iconBs from './defaults/icon';\r\nimport iconFa from './defaults/iconFa';\rexport default {\rICONS: {\rBOOTSTRAP: iconBs,\rFONTAWESOME: iconFa\r},\ricon: iconFa,\riconEnabled: true,\rtimeout: TIMEOUT,\rversion: '1.0.8',\rtimer: null,\rextraClass: '',\rinit: function () {\rconst self = this;\rconst msg = $(`\r<div id=\"msg\">\r<a href=\"#\" data-dismiss=\"msg\" class=\"close\">&times;</a>\r<i></i>\r<span></span>\r<div class=\"msg-progress\"></div>\r</div>\r`);\rmsg.find('[data-dismiss=\"msg\"]').on('click', function (e) {\re.preventDefault();\rself.hideMsg();\r});\rmsg.appendTo(document.body);\rreturn self;\r},\rshowMsg: function (type, message, timeout = this.timeout[type]) {\rconst self = this;\rconst msg = $('#msg');\rconst progress = msg.find('div');\rmsg.find('span').html(message);\rmsg.find('i').attr('class', self.icon[type]);\rmsg.attr('class', `alert alert-${type} showed ${self.extraClass} ${self.iconEnabled ? '' : 'alert-no-icon'}`);\rprogress.attr('class', `alert alert-${type} msg-progress`).css('width', 0);\rclearTimeout(this.timer);\rif (timeout > 0) {\rprogress.stop().animate({\rwidth: '100%'\r}, timeout);\rthis.timer = setTimeout(function () {\rself.hideMsg();\r}, timeout);\r}\r},\rinfo: function (message, timeout) {\rthis.showMsg('info', message, timeout);\r},\rsuccess: function (message, timeout) {\rthis.showMsg('success', message, timeout);\r},\rwarning: function (message, timeout) {\rthis.showMsg('warning', message, timeout);\r},\rerror: function (message, timeout) {\rthis.danger(message, timeout);\r},\rdanger: function (message, timeout) {\rthis.showMsg('danger', message, timeout);\r},\rhideMsg: function () {\r$('#msg').removeClass('showed');\r}\r}.init();\r\n","export default {\rinfo: 'glyphicon glyphicon-info-sign',\rsuccess: 'glyphicon glyphicon-ok-sign',\rwarning: 'glyphicon glyphicon-exclamation-sign',\rdanger: 'glyphicon glyphicon-remove-sign'\r\n};\r\n","export default {\rinfo: 5 * 1000,\rsuccess: 5 * 1000,\rwarning: 5 * 1000,\rdanger: 5 * 1000\r\n}","require('./bootstrap-msg.scss');\r\nexport default from './bootstrap-msg';"],"sourceRoot":""}