{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./app/javascript/packs/main.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","select","el","all","arguments","length","undefined","trim","_toConsumableArray","document","querySelectorAll","querySelector","on","type","listener","forEach","e","addEventListener","onscroll","classList","toggle","navbarlinks","navbarlinksActive","position","window","scrollY","navbarlink","hash","section","offsetTop","offsetHeight","add","remove","selectHeader","headerScrolled","backtotop","toggleBacktotop","slice","map","tooltipTriggerEl","bootstrap","Tooltip","Quill","theme","toolbar","font","size","color","background","script","list","indent","align","useDarkMode","matchMedia","matches","isSmallScreen","tinymce","init","selector","plugins","editimage_cors_hosts","menubar","toolbar_sticky","toolbar_sticky_offset","autosave_ask_before_unload","autosave_interval","autosave_prefix","autosave_restore_when_empty","autosave_retention","image_advtab","link_list","title","image_list","image_class_list","importcss_append","file_picker_callback","callback","meta","filetype","text","alt","source2","poster","templates","description","content","template_cdate_format","template_mdate_format","height","image_caption","quickbars_selection_toolbar","noneditable_class","toolbar_mode","contextmenu","skin","content_css","content_style","needsValidation","Array","form","event","checkValidity","preventDefault","stopPropagation","datatable","simpleDatatables","DataTable","mainContainer","setTimeout","ResizeObserver","getEchart","echarts","getInstanceByDom","resize","observe"],"mappings":"aACE,IAAIA,EAAmB,CAAC,EAGxB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,CAAC,GAUX,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,OACf,CAIAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAo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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 = \"/packs/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 16);\n","/**\r\n* Template Name: NiceAdmin - v2.5.0\r\n* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/\r\n* Author: BootstrapMade.com\r\n* License: https://bootstrapmade.com/license/\r\n*/\r\n(function() {\r\n \"use strict\";\r\n\r\n /**\r\n * Easy selector helper function\r\n */\r\n const select = (el, all = false) => {\r\n el = el.trim()\r\n if (all) {\r\n return [...document.querySelectorAll(el)]\r\n } else {\r\n return document.querySelector(el)\r\n }\r\n }\r\n\r\n /**\r\n * Easy event listener function\r\n */\r\n const on = (type, el, listener, all = false) => {\r\n if (all) {\r\n select(el, all).forEach(e => e.addEventListener(type, listener))\r\n } else {\r\n select(el, all).addEventListener(type, listener)\r\n }\r\n }\r\n\r\n /**\r\n * Easy on scroll event listener \r\n */\r\n const onscroll = (el, listener) => {\r\n el.addEventListener('scroll', listener)\r\n }\r\n\r\n /**\r\n * Sidebar toggle\r\n */\r\n if (select('.toggle-sidebar-btn')) {\r\n on('click', '.toggle-sidebar-btn', function(e) {\r\n select('body').classList.toggle('toggle-sidebar')\r\n })\r\n }\r\n\r\n /**\r\n * Search bar toggle\r\n */\r\n if (select('.search-bar-toggle')) {\r\n on('click', '.search-bar-toggle', function(e) {\r\n select('.search-bar').classList.toggle('search-bar-show')\r\n })\r\n }\r\n\r\n /**\r\n * Navbar links active state on scroll\r\n */\r\n let navbarlinks = select('#navbar .scrollto', true)\r\n const navbarlinksActive = () => {\r\n let position = window.scrollY + 200\r\n navbarlinks.forEach(navbarlink => {\r\n if (!navbarlink.hash) return\r\n let section = select(navbarlink.hash)\r\n if (!section) return\r\n if (position >= section.offsetTop && position <= (section.offsetTop + section.offsetHeight)) {\r\n navbarlink.classList.add('active')\r\n } else {\r\n navbarlink.classList.remove('active')\r\n }\r\n })\r\n }\r\n window.addEventListener('load', navbarlinksActive)\r\n onscroll(document, navbarlinksActive)\r\n\r\n /**\r\n * Toggle .header-scrolled class to #header when page is scrolled\r\n */\r\n let selectHeader = select('#header')\r\n if (selectHeader) {\r\n const headerScrolled = () => {\r\n if (window.scrollY > 100) {\r\n selectHeader.classList.add('header-scrolled')\r\n } else {\r\n selectHeader.classList.remove('header-scrolled')\r\n }\r\n }\r\n window.addEventListener('load', headerScrolled)\r\n onscroll(document, headerScrolled)\r\n }\r\n\r\n /**\r\n * Back to top button\r\n */\r\n let backtotop = select('.back-to-top')\r\n if (backtotop) {\r\n const toggleBacktotop = () => {\r\n if (window.scrollY > 100) {\r\n backtotop.classList.add('active')\r\n } else {\r\n backtotop.classList.remove('active')\r\n }\r\n }\r\n window.addEventListener('load', toggleBacktotop)\r\n onscroll(document, toggleBacktotop)\r\n }\r\n\r\n /**\r\n * Initiate tooltips\r\n */\r\n var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle=\"tooltip\"]'))\r\n var tooltipList = tooltipTriggerList.map(function(tooltipTriggerEl) {\r\n return new bootstrap.Tooltip(tooltipTriggerEl)\r\n })\r\n\r\n /**\r\n * Initiate quill editors\r\n */\r\n if (select('.quill-editor-default')) {\r\n new Quill('.quill-editor-default', {\r\n theme: 'snow'\r\n });\r\n }\r\n\r\n if (select('.quill-editor-bubble')) {\r\n new Quill('.quill-editor-bubble', {\r\n theme: 'bubble'\r\n });\r\n }\r\n\r\n if (select('.quill-editor-full')) {\r\n new Quill(\".quill-editor-full\", {\r\n modules: {\r\n toolbar: [\r\n [{\r\n font: []\r\n }, {\r\n size: []\r\n }],\r\n [\"bold\", \"italic\", \"underline\", \"strike\"],\r\n [{\r\n color: []\r\n },\r\n {\r\n background: []\r\n }\r\n ],\r\n [{\r\n script: \"super\"\r\n },\r\n {\r\n script: \"sub\"\r\n }\r\n ],\r\n [{\r\n list: \"ordered\"\r\n },\r\n {\r\n list: \"bullet\"\r\n },\r\n {\r\n indent: \"-1\"\r\n },\r\n {\r\n indent: \"+1\"\r\n }\r\n ],\r\n [\"direction\", {\r\n align: []\r\n }],\r\n [\"link\", \"image\", \"video\"],\r\n [\"clean\"]\r\n ]\r\n },\r\n theme: \"snow\"\r\n });\r\n }\r\n\r\n /**\r\n * Initiate TinyMCE Editor\r\n */\r\n const useDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;\r\n const isSmallScreen = window.matchMedia('(max-width: 1023.5px)').matches;\r\n\r\n tinymce.init({\r\n selector: 'textarea.tinymce-editor',\r\n plugins: 'preview importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media template codesample table charmap pagebreak nonbreaking anchor insertdatetime advlist lists wordcount help charmap quickbars emoticons',\r\n editimage_cors_hosts: ['picsum.photos'],\r\n menubar: 'file edit view insert format tools table help',\r\n toolbar: 'undo redo | bold italic underline strikethrough | fontfamily fontsize blocks | alignleft aligncenter alignright alignjustify | outdent indent | numlist bullist | forecolor backcolor removeformat | pagebreak | charmap emoticons | fullscreen preview save print | insertfile image media template link anchor codesample | ltr rtl',\r\n toolbar_sticky: true,\r\n toolbar_sticky_offset: isSmallScreen ? 102 : 108,\r\n autosave_ask_before_unload: true,\r\n autosave_interval: '30s',\r\n autosave_prefix: '{path}{query}-{id}-',\r\n autosave_restore_when_empty: false,\r\n autosave_retention: '2m',\r\n image_advtab: true,\r\n link_list: [{\r\n title: 'My page 1',\r\n value: 'https://www.tiny.cloud'\r\n },\r\n {\r\n title: 'My page 2',\r\n value: 'http://www.moxiecode.com'\r\n }\r\n ],\r\n image_list: [{\r\n title: 'My page 1',\r\n value: 'https://www.tiny.cloud'\r\n },\r\n {\r\n title: 'My page 2',\r\n value: 'http://www.moxiecode.com'\r\n }\r\n ],\r\n image_class_list: [{\r\n title: 'None',\r\n value: ''\r\n },\r\n {\r\n title: 'Some class',\r\n value: 'class-name'\r\n }\r\n ],\r\n importcss_append: true,\r\n file_picker_callback: (callback, value, meta) => {\r\n /* Provide file and text for the link dialog */\r\n if (meta.filetype === 'file') {\r\n callback('https://www.google.com/logos/google.jpg', {\r\n text: 'My text'\r\n });\r\n }\r\n\r\n /* Provide image and alt text for the image dialog */\r\n if (meta.filetype === 'image') {\r\n callback('https://www.google.com/logos/google.jpg', {\r\n alt: 'My alt text'\r\n });\r\n }\r\n\r\n /* Provide alternative source and posted for the media dialog */\r\n if (meta.filetype === 'media') {\r\n callback('movie.mp4', {\r\n source2: 'alt.ogg',\r\n poster: 'https://www.google.com/logos/google.jpg'\r\n });\r\n }\r\n },\r\n templates: [{\r\n title: 'New Table',\r\n description: 'creates a new table',\r\n content: '
'\r\n },\r\n {\r\n title: 'Starting my story',\r\n description: 'A cure for writers block',\r\n content: 'Once upon a time...'\r\n },\r\n {\r\n title: 'New list with dates',\r\n description: 'New List with dates',\r\n content: '
cdate
mdate

My List

'\r\n }\r\n ],\r\n template_cdate_format: '[Date Created (CDATE): %m/%d/%Y : %H:%M:%S]',\r\n template_mdate_format: '[Date Modified (MDATE): %m/%d/%Y : %H:%M:%S]',\r\n height: 600,\r\n image_caption: true,\r\n quickbars_selection_toolbar: 'bold italic | quicklink h2 h3 blockquote quickimage quicktable',\r\n noneditable_class: 'mceNonEditable',\r\n toolbar_mode: 'sliding',\r\n contextmenu: 'link image table',\r\n skin: useDarkMode ? 'oxide-dark' : 'oxide',\r\n content_css: useDarkMode ? 'dark' : 'default',\r\n content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:16px }'\r\n });\r\n\r\n /**\r\n * Initiate Bootstrap validation check\r\n */\r\n var needsValidation = document.querySelectorAll('.needs-validation')\r\n\r\n Array.prototype.slice.call(needsValidation)\r\n .forEach(function(form) {\r\n form.addEventListener('submit', function(event) {\r\n if (!form.checkValidity()) {\r\n event.preventDefault()\r\n event.stopPropagation()\r\n }\r\n\r\n form.classList.add('was-validated')\r\n }, false)\r\n })\r\n\r\n /**\r\n * Initiate Datatables\r\n */\r\n const datatables = select('.datatable', true)\r\n datatables.forEach(datatable => {\r\n new simpleDatatables.DataTable(datatable);\r\n })\r\n\r\n /**\r\n * Autoresize echart charts\r\n */\r\n const mainContainer = select('#main');\r\n if (mainContainer) {\r\n setTimeout(() => {\r\n new ResizeObserver(function() {\r\n select('.echart', true).forEach(getEchart => {\r\n echarts.getInstanceByDom(getEchart).resize();\r\n })\r\n }).observe(mainContainer);\r\n }, 200);\r\n }\r\n\r\n})();"],"sourceRoot":""}