{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"jQuery\"","webpack:///./vendor/assets/libs/bootstrap-markdown/bootstrap-markdown.js","webpack:///./node_modules/bootstrap-markdown/js/bootstrap-markdown.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","window","_typeof","iterator","obj","constructor","$","Markdown","element","options","each","_","opt","data","this","$ns","$element","$editable","el","type","attrKeys","attrValues","content","$options","extend","fn","markdown","defaults","$oldContent","$isPreview","$isFullscreen","$editor","$textarea","$handler","$callback","$nextTab","showEditor","__alterButtons","alter","handler","isAll","that","k","v","indexOf","find","__buildButtons","buttonsArray","container","callback","length","y","btnGroups","z","buttons","btnGroupContainer","buttonContainer","buttonIconContainer","button","buttonHandler","buttonIcon","__getIcon","icon","btnText","btnClass","tabIndex","hotkey","hotkeyCaption","jQuery","hotkeys","text","__localize","addClass","match","removeClass","attr","title","toggle","prependTo","append","push","__setListener","hasRows","maxRows","val","split","rowsVal","resize","css","on","proxy","focus","keyup","change","select","eventSupported","keydown","keypress","__handle","e","target","currentTarget","handlerName","callbackHandler","preventDefault","string","messages","language","src","iconlibrary","setFullscreen","onFullscreen","hidePreview","showPreview","textarea","instance","editable","editor","click","editorHeader","allBtnGroups","concat","additionalButtons","idx","buttonGroup","matchingGroups","grep","allButtonGroup","allIdx","reorderButtonGroups","filter","btnGroup","sort","a","b","fullscreen","enable","icons","fullscreenOn","is","before","rawContent","toMarkdown","html","currentContent","trim","prop","toLowerCase","attributes","nodeName","nodeValue","replaceWith","footer","editorFooter","createFooter","savable","onSave","width","isNumeric","height","Math","max","outerHeight","getContent","Date","getTime","disableButtons","$button","trigger","initialstate","show","autofocus","fullscreenOff","hideButtons","hiddenButtons","disabledButtons","onShow","parseContent","parser","toHTML","marked","callbackContent","afterContainer","next","replacementContainer","enableButtons","onPreview","insertBefore","parent","outerWidth","hide","remove","isDirty","setContent","findSelection","chunk","startChunkPosition","selection","oldSelection","getSelection","setSelection","start","end","selectionEnd","selectionStart","substr","replaceSelection","getNextTab","nextTab","tab","shift","setNextTab","__parseButtonNameParam","names","removeAttr","showButtons","eventName","isSupported","setAttribute","blocked","keyCode","setTimeout","cursor","stopPropagation","onChange","onSelect","hideable","document","attachedMarkdown","blur","onFocus","isHideable","hasClass","oldElement","onBlur","old","option","$this","glyph","fa","selected","pointer","prevChar","link","prompt","urlRegex","RegExp","test","sanitizedLink","list","join","Constructor","noConflict","initMarkdown","$activeElement","activeElement","focused","closest","ready"],"mappings":"4DACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,qBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,kBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,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,EAAMhM,KAAK,yCAAyChC,KAAK,YAEvHuN,IAAqB4B,GACvB5B,EAAiBC,aAUpB6B,OAAM,WACP5P,EAAE,qCAAqCI,MAAK,WAC1CmP,EAAavP,EAAEQ,eAvxCS","file":"js/vendor/libs/bootstrap-markdown/bootstrap-markdown-73aaac62b46dcb612003.js","sourcesContent":[" \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 = \"https://optimal.seneris.com/packs/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 641);\n","(function() { module.exports = window[\"jQuery\"]; }());","import 'bootstrap-markdown/js/bootstrap-markdown.js'\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/* ===================================================\n * bootstrap-markdown.js v2.10.0\n * http://github.com/toopay/bootstrap-markdown\n * ===================================================\n * Copyright 2013-2016 Taufan Aditya\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * ========================================================== */\n(function (factory) {\n if (typeof define === \"function\" && define.amd) {\n //RequireJS\n define([\"jquery\"], factory);\n } else if ((typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object') {\n //Backbone.js\n factory(require('jquery'));\n } else {\n //Jquery plugin\n factory(jQuery);\n }\n})(function ($) {\n \"use strict\"; // jshint ;_;\n\n /* MARKDOWN CLASS DEFINITION\n * ========================== */\n\n var Markdown = function Markdown(element, options) {\n // @TODO : remove this BC on next major release\n // @see : https://github.com/toopay/bootstrap-markdown/issues/109\n var opts = ['autofocus', 'savable', 'hideable', 'width', 'height', 'resize', 'iconlibrary', 'language', 'footer', 'fullscreen', 'hiddenButtons', 'disabledButtons'];\n $.each(opts, function (_, opt) {\n if (typeof $(element).data(opt) !== 'undefined') {\n options = _typeof(options) == 'object' ? options : {};\n options[opt] = $(element).data(opt);\n }\n }); // End BC\n // Class Properties\n\n this.$ns = 'bootstrap-markdown';\n this.$element = $(element);\n this.$editable = {\n el: null,\n type: null,\n attrKeys: [],\n attrValues: [],\n content: null\n };\n this.$options = $.extend(true, {}, $.fn.markdown.defaults, options, this.$element.data('options'));\n this.$oldContent = null;\n this.$isPreview = false;\n this.$isFullscreen = false;\n this.$editor = null;\n this.$textarea = null;\n this.$handler = [];\n this.$callback = [];\n this.$nextTab = [];\n this.showEditor();\n };\n\n Markdown.prototype = {\n constructor: Markdown,\n __alterButtons: function __alterButtons(name, alter) {\n var handler = this.$handler,\n isAll = name == 'all',\n that = this;\n $.each(handler, function (k, v) {\n var halt = true;\n\n if (isAll) {\n halt = false;\n } else {\n halt = v.indexOf(name) < 0;\n }\n\n if (halt === false) {\n alter(that.$editor.find('button[data-handler=\"' + v + '\"]'));\n }\n });\n },\n __buildButtons: function __buildButtons(buttonsArray, container) {\n var i,\n ns = this.$ns,\n handler = this.$handler,\n callback = this.$callback;\n\n for (i = 0; i < buttonsArray.length; i++) {\n // Build each group container\n var y,\n btnGroups = buttonsArray[i];\n\n for (y = 0; y < btnGroups.length; y++) {\n // Build each button group\n var z,\n buttons = btnGroups[y].data,\n btnGroupContainer = $('
', {\n 'class': 'btn-group'\n });\n\n for (z = 0; z < buttons.length; z++) {\n var button = buttons[z],\n buttonContainer,\n buttonIconContainer,\n buttonHandler = ns + '-' + button.name,\n buttonIcon = this.__getIcon(button.icon),\n btnText = button.btnText ? button.btnText : '',\n btnClass = button.btnClass ? button.btnClass : 'btn',\n tabIndex = button.tabIndex ? button.tabIndex : '-1',\n hotkey = typeof button.hotkey !== 'undefined' ? button.hotkey : '',\n hotkeyCaption = typeof jQuery.hotkeys !== 'undefined' && hotkey !== '' ? ' (' + hotkey + ')' : ''; // Construct the button object\n\n\n buttonContainer = $('');\n buttonContainer.text(' ' + this.__localize(btnText)).addClass('btn-default btn-sm').addClass(btnClass);\n\n if (btnClass.match(/btn\\-(primary|success|info|warning|danger|link)/)) {\n buttonContainer.removeClass('btn-default');\n }\n\n buttonContainer.attr({\n 'type': 'button',\n 'title': this.__localize(button.title) + hotkeyCaption,\n 'tabindex': tabIndex,\n 'data-provider': ns,\n 'data-handler': buttonHandler,\n 'data-hotkey': hotkey\n });\n\n if (button.toggle === true) {\n buttonContainer.attr('data-toggle', 'button');\n }\n\n buttonIconContainer = $('');\n buttonIconContainer.addClass(buttonIcon);\n buttonIconContainer.prependTo(buttonContainer); // Attach the button object\n\n btnGroupContainer.append(buttonContainer); // Register handler and callback\n\n handler.push(buttonHandler);\n callback.push(button.callback);\n } // Attach the button group into container dom\n\n\n container.append(btnGroupContainer);\n }\n }\n\n return container;\n },\n __setListener: function __setListener() {\n // Set size and resizable Properties\n var hasRows = typeof this.$textarea.attr('rows') !== 'undefined',\n maxRows = this.$textarea.val().split(\"\\n\").length > 5 ? this.$textarea.val().split(\"\\n\").length : '5',\n rowsVal = hasRows ? this.$textarea.attr('rows') : maxRows;\n this.$textarea.attr('rows', rowsVal);\n\n if (this.$options.resize) {\n this.$textarea.css('resize', this.$options.resize);\n }\n\n this.$textarea.on({\n 'focus': $.proxy(this.focus, this),\n 'keyup': $.proxy(this.keyup, this),\n 'change': $.proxy(this.change, this),\n 'select': $.proxy(this.select, this)\n });\n\n if (this.eventSupported('keydown')) {\n this.$textarea.on('keydown', $.proxy(this.keydown, this));\n }\n\n if (this.eventSupported('keypress')) {\n this.$textarea.on('keypress', $.proxy(this.keypress, this));\n } // Re-attach markdown data\n\n\n this.$textarea.data('markdown', this);\n },\n __handle: function __handle(e) {\n var target = $(e.currentTarget),\n handler = this.$handler,\n callback = this.$callback,\n handlerName = target.attr('data-handler'),\n callbackIndex = handler.indexOf(handlerName),\n callbackHandler = callback[callbackIndex]; // Trigger the focusin\n\n $(e.currentTarget).focus();\n callbackHandler(this); // Trigger onChange for each button handle\n\n this.change(this); // Unless it was the save handler,\n // focusin the textarea\n\n if (handlerName.indexOf('cmdSave') < 0) {\n this.$textarea.focus();\n }\n\n e.preventDefault();\n },\n __localize: function __localize(string) {\n var messages = $.fn.markdown.messages,\n language = this.$options.language;\n\n if (typeof messages !== 'undefined' && typeof messages[language] !== 'undefined' && typeof messages[language][string] !== 'undefined') {\n return messages[language][string];\n }\n\n return string;\n },\n __getIcon: function __getIcon(src) {\n return _typeof(src) == 'object' ? src[this.$options.iconlibrary] : src;\n },\n setFullscreen: function setFullscreen(mode) {\n var $editor = this.$editor,\n $textarea = this.$textarea;\n\n if (mode === true) {\n $editor.addClass('md-fullscreen-mode');\n $('body').addClass('md-nooverflow');\n this.$options.onFullscreen(this);\n } else {\n $editor.removeClass('md-fullscreen-mode');\n $('body').removeClass('md-nooverflow');\n if (this.$isPreview == true) this.hidePreview().showPreview();\n }\n\n this.$isFullscreen = mode;\n $textarea.focus();\n },\n showEditor: function showEditor() {\n var instance = this,\n textarea,\n ns = this.$ns,\n container = this.$element,\n originalHeigth = container.css('height'),\n originalWidth = container.css('width'),\n editable = this.$editable,\n handler = this.$handler,\n callback = this.$callback,\n options = this.$options,\n editor = $('
', {\n 'class': 'md-editor',\n click: function click() {\n instance.focus();\n }\n }); // Prepare the editor\n\n if (this.$editor === null) {\n // Create the panel\n var editorHeader = $('
', {\n 'class': 'md-header btn-toolbar'\n }); // Merge the main & additional button groups together\n\n var allBtnGroups = [];\n if (options.buttons.length > 0) allBtnGroups = allBtnGroups.concat(options.buttons[0]);\n\n if (options.additionalButtons.length > 0) {\n // iterate the additional button groups\n $.each(options.additionalButtons[0], function (idx, buttonGroup) {\n // see if the group name of the addional group matches an existing group\n var matchingGroups = $.grep(allBtnGroups, function (allButtonGroup, allIdx) {\n return allButtonGroup.name === buttonGroup.name;\n }); // if it matches add the addional buttons to that group, if not just add it to the all buttons group\n\n if (matchingGroups.length > 0) {\n matchingGroups[0].data = matchingGroups[0].data.concat(buttonGroup.data);\n } else {\n allBtnGroups.push(options.additionalButtons[0][idx]);\n }\n });\n } // Reduce and/or reorder the button groups\n\n\n if (options.reorderButtonGroups.length > 0) {\n allBtnGroups = allBtnGroups.filter(function (btnGroup) {\n return options.reorderButtonGroups.indexOf(btnGroup.name) > -1;\n }).sort(function (a, b) {\n if (options.reorderButtonGroups.indexOf(a.name) < options.reorderButtonGroups.indexOf(b.name)) return -1;\n if (options.reorderButtonGroups.indexOf(a.name) > options.reorderButtonGroups.indexOf(b.name)) return 1;\n return 0;\n });\n } // Build the buttons\n\n\n if (allBtnGroups.length > 0) {\n editorHeader = this.__buildButtons([allBtnGroups], editorHeader);\n }\n\n if (options.fullscreen.enable) {\n editorHeader.append('
').on('click', '.md-control-fullscreen', function (e) {\n e.preventDefault();\n instance.setFullscreen(true);\n });\n }\n\n editor.append(editorHeader); // Wrap the textarea\n\n if (container.is('textarea')) {\n container.before(editor);\n textarea = container;\n textarea.addClass('md-input');\n editor.append(textarea);\n } else {\n var rawContent = typeof toMarkdown == 'function' ? toMarkdown(container.html()) : container.html(),\n currentContent = $.trim(rawContent); // This is some arbitrary content that could be edited\n\n textarea = $('