diff --git a/app/index.html b/app/index.html index 9927d51b..14571a28 100644 --- a/app/index.html +++ b/app/index.html @@ -7,6 +7,10 @@ + + + + @@ -14,8 +18,10 @@ +
+
diff --git a/app/js/index.js b/app/js/index.js index f2c1330c..3e0733cf 100644 --- a/app/js/index.js +++ b/app/js/index.js @@ -1,6 +1,58 @@ (function($) { let ipcRenderer = require('electron').ipcRenderer; + + //events ipcRenderer.on('fileList', (event, files) => { - $('body').html(gitlit.templates.main({files: files})); + $('.js-container').html(gitlit.templates.main({files: files})); }); + + ipcRenderer.on('notification', (event, notification) => { + if (notification.message) { + var notice = PNotify.alert({ + text: notification.message, + type: notification.type, // - Type of the notice. 'notice', 'info', 'success', or 'error'. + delay: 5000, + modules: { + Buttons: { + closerHover: true + } + } + }); + + notice.on('click', function() { + notice.remove(); + }); + } + + if (notification.event && notification.event === 'unlock') { + $('[data-file="' + notification.file + '"].js-unlock').hide(); + $('[data-file="' + notification.file + '"].js-lock').show(); + } + if (notification.event && notification.event === 'lock') { + $('[data-file="' + notification.file + '"].js-lock').hide(); + $('[data-file="' + notification.file + '"].js-unlock').show(); + } + }); + + $(document).on('click', '.js-lock', (ev) => { + ev.preventDefault(); + let file = $(ev.currentTarget).attr('data-file'); + ipcRenderer.send('lock', file); + }); + + $(document).on('click', '.js-unlock', (ev) => { + ev.preventDefault(); + let file = $(ev.currentTarget).attr('data-file'); + ipcRenderer.send('unlock', file); + }); + + $(document).on('click', '.js-refresh', (ev) => { + ev.preventDefault(); + window.location.reload(false); + }); + + + //startup + PNotify.defaults.styling = 'bootstrap4'; // Bootstrap version 4 + })(jQuery); diff --git a/app/js/templates.js b/app/js/templates.js index b05be8ed..68e60b1a 100644 --- a/app/js/templates.js +++ b/app/js/templates.js @@ -1,7 +1,7 @@ window.gitlit = window.gitlit || {}; gitlit.templates = { main: ejs.compile(` - +
@@ -9,18 +9,34 @@ gitlit.templates = { <% files.forEach((file) => { %> - + <% }); %>
file status
<%= file.file %> <%= file.lockedBy ? file.lockedBy + ' (id: ' + file.id + ')' : 'not locked' %> - - <%= file.lockedBy ? 'Unlock' : 'Lock' %> + + Lock + + + Unlock
+ +
+ + Refresh + +
`) }; diff --git a/app/main.js b/app/main.js index 0d0a218b..7e087d66 100644 --- a/app/main.js +++ b/app/main.js @@ -1,4 +1,4 @@ -const {app, BrowserWindow} = require('electron'); +const {app, BrowserWindow, ipcMain} = require('electron'); const path = require('path'); const url = require('url'); const electronLocalshortcut = require('electron-localshortcut'); @@ -9,6 +9,7 @@ const args = require('minimist')(process.argv.slice(2), { } }); +const repoDir = args._.join(' '); function getLfsFileList(dir, cb) { exec('git lfs ls-files', { @@ -19,9 +20,10 @@ function getLfsFileList(dir, cb) { cb(error); return; } + + let parsedFiles = []; if (stdout) { let files = stdout.split('\n'); - let parsedFiles = []; files.forEach((file) => { file = file.split(' * '); if (file[1]) { @@ -29,6 +31,8 @@ function getLfsFileList(dir, cb) { } }); + cb(null, parsedFiles); + } else { cb(null, parsedFiles); } }); @@ -43,9 +47,10 @@ function getLfsLocks(dir, cb) { cb(error); return; } + + let parsedFiles = []; if (stdout) { let files = stdout.split('\n'); - let parsedFiles = []; files.forEach((file) => { if (file) { let fileName = file.split('\t')[0].trim(); @@ -59,6 +64,8 @@ function getLfsLocks(dir, cb) { } }); + cb(null, parsedFiles); + } else { cb(null, parsedFiles); } }); @@ -93,8 +100,16 @@ function createWindow() { win.webContents.on('did-finish-load', () => { console.log('getting file list and lock status...'); - getLfsFileList(args._.join(' '), (err, files) => { - getLfsLocks(args._.join(' '), (err, lockedFiles) => { + getLfsFileList(repoDir, (err, files) => { + if (err) { + console.error(err); + process.exit(1); + } + getLfsLocks(repoDir, (err, lockedFiles) => { + if (err) { + console.error(err); + process.exit(1); + } let allFiles = []; files.forEach((file) => { @@ -113,4 +128,50 @@ function createWindow() { }); } +ipcMain.on('unlock', (event, file) => { + exec('git lfs unlock "' + file + '"', { + cwd: repoDir + }, + (error, stdout, stderr) => { + let notification = { + message: (error && error.message) || stderr, + type: 'error' + }; + + if (stdout) { + notification = { + file: file, + event: 'unlock', + message: stdout, + type: 'info' + }; + } + + win.webContents.send('notification', notification); + }); +}); + +ipcMain.on('lock', (event, file) => { + exec('git lfs lock "' + file + '"', { + cwd: repoDir + }, + (error, stdout, stderr) => { + let notification = { + message: (error && error.message) || stderr, + type: 'error' + }; + + if (stdout) { + notification = { + file: file, + event: 'lock', + message: stdout, + type: 'info' + }; + } + + win.webContents.send('notification', notification); + }); +}); + app.on('ready', createWindow); diff --git a/app/node_modules/pnotify/LICENSE b/app/node_modules/pnotify/LICENSE new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/app/node_modules/pnotify/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/app/node_modules/pnotify/README.md b/app/node_modules/pnotify/README.md new file mode 100644 index 00000000..6d5788a3 --- /dev/null +++ b/app/node_modules/pnotify/README.md @@ -0,0 +1,683 @@ +[![npm version](https://badge.fury.io/js/pnotify.svg)](https://www.npmjs.com/package/pnotify) [![Waffle.io - Columns and their card count](https://badge.waffle.io/sciactive/pnotify.svg?columns=all)](https://waffle.io/sciactive/pnotify) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/pnotify/badge?style=rounded)](https://www.jsdelivr.com/package/npm/pnotify) + +PNotify is a vanilla JavaScript notification library. PNotify can provide [desktop notifications](http://sciactive.com/pnotify/#web-notifications) based on the [Web Notifications spec](http://www.w3.org/TR/notifications/) with fall back to an in-browser notice. + +

Demos

+ +* http://sciactive.com/pnotify/ for the latest release (v3) +* https://sciactive.github.io/pnotify/ for what's in development (v4-alpha) + +

Table of Contents

+ + +- [Whoa there!](#whoa-there) + - [Running PNotify 3 Code with the Compat Module](#running-pnotify-3-code-with-the-compat-module) +- [Getting Started](#getting-started) +- [Installation](#installation) + - [Svelte](#svelte) + - [React](#react) + - [Angular](#angular) + - [Angular (Injectable)](#angular-injectable) + - [AngularJS](#angularjs) + - [Vanilla JS (ES5)](#vanilla-js-es5) + - [Vanilla JS (ES6)](#vanilla-js-es6) +- [Styles](#styles) + - [Bright Theme](#bright-theme) + - [Material](#material) + - [Material Icons](#material-icons) + - [Bootstrap](#bootstrap) + - [Font Awesome (Icons)](#font-awesome-icons) +- [Creating Notices](#creating-notices) +- [Options](#options) + - [Changing Defaults](#changing-defaults) + - [Desktop Module](#desktop-module) + - [Buttons Module](#buttons-module) + - [NonBlock Module](#nonblock-module) + - [Mobile Module](#mobile-module) + - [Animate Module](#animate-module) + - [Confirm Module](#confirm-module) + - [History Module](#history-module) + - [Callbacks Module](#callbacks-module) +- [Static Methods and Properties](#static-methods-and-properties) +- [Instance Methods and Properties](#instance-methods-and-properties) + - [From the Svelte Component API](#from-the-svelte-component-api) + - [Events](#events) +- [Stacks](#stacks) + - [Example Stack](#example-stack) +- [Features](#features) +- [Licensing and Additional Info](#licensing-and-additional-info) + + + +# Whoa there! + +Unless you're an alpha tester, **none of this README applies to you!** You want to check out the **[README on the master branch](https://github.com/sciactive/pnotify/blob/master/README.md)**. + +This README is for **PNotify 4**. v4 is only in alpha stage, but it's got some huge changes: + +* **jQuery is no longer required.** v4 doesn't require any libraries, actually. +* It's built using [Svelte](http://svelte.technology), which means it compiles down to vanilla JS. +* Has an ES module build. +* Options are in camelCase instead of snake_case. +* `text_escape`/`title_escape` replaced by `textTrusted`/`titleTrusted`, and default behavior changed. +* `insert_brs` went away. (Now uses `white-space: pre-line;`.) +* Default width raised to 360px. +* NonBlock module spun off into its own project, [NonBlock.js](https://github.com/sciactive/nonblockjs). +* There is a Compat module available to allow you to run PNotify 3 code with PNotify 4. + +## Running PNotify 3 Code with the Compat Module + +You can use `PNotifyCompat` instead of `PNotify` in order to run PNotify 3 code. Check out `demo/compat-*.html` for more examples. + +```js +import PNotify from 'pnotify/dist/es/PNotifyCompat'; + +new PNotify({ + title: 'Regular Notice', + text: 'Check me out! I\'m a notice.', + text_escape: true // <-- old options work +}); +``` + +# Getting Started + +You can get PNotify using NPM. (You can also use [jsDelivr](https://www.jsdelivr.com/package/npm/pnotify) or [UNPKG](https://unpkg.com/pnotify/).) + +```sh +npm install --save pnotify +``` + +Inside the pnotify module directory: + +* `src` Svelte components and uncompressed Bright Theme CSS. +* `lib/es` uncompressed ECMAScript modules. +* `lib/umd` uncompressed UMD modules. +* `lib/iife` uncompressed IIFE scripts. +* `dist` compressed Bright Theme CSS. +* `dist/es` compressed ECMAScript modules. +* `dist/umd` compressed UMD modules.liz +* `dist/iife` compressed IIFE scripts. + +# Installation + +In addition to the JS, be sure to [include a PNotify style](#styles). + +## Svelte + +[PNotify in Svelte](https://codesandbox.io/s/nwoxqkvw6m). Import the Svelte files from `src`: + +```js +import PNotify from 'pnotify/src/PNotify.html'; +import PNotifyButtons from 'pnotify/src/PNotifyButtons.html'; + +PNotify.alert('Notice me, senpai!'); +``` + +## React + +[PNotify in React](https://codesandbox.io/s/wwqzk8472w). Import the ES modules from `dist`: + +```js +import PNotify from 'pnotify/dist/es/PNotify'; +import PNotifyButtons from 'pnotify/dist/es/PNotifyButtons'; + +PNotify.alert('Notice me, senpai!'); +``` + +## Angular + +[PNotify in Angular](https://codesandbox.io/s/l3pzkl64yq). Import the ES modules from `dist` and initiate the modules: + +```ts +import PNotify from 'pnotify/dist/es/PNotify'; +import PNotifyButtons from 'pnotify/dist/es/PNotifyButtons'; + +//... +export class WhateverComponent { + constructor() { + PNotifyButtons; // Initiate the module. Important! + PNotify.alert('Notice me, senpai!'); + } +} +``` + +## Angular (Injectable) + +[PNotify in Angular](https://codesandbox.io/s/17yr520yj) as an injectable service: + +```ts +// pnotify.service.ts +import { Injectable } from '@angular/core'; +import PNotify from 'pnotify/dist/es/PNotify'; +import PNotifyButtons from 'pnotify/dist/es/PNotifyButtons'; + +@Injectable() +export class PNotifyService { + getPNotify() { + PNotifyButtons; // Initiate the module. Important! + return PNotify; + } +} + +// whatever.module.ts +//... +import { PNotifyService } from './pnotify.service'; +@NgModule({ + declarations: [...], + imports: [...], + providers: [PNotifyService], + bootstrap: [...] +}) +export class WhateverModule {} + +// whatever.component.ts +import { PNotifyService } from './pnotify.service'; +//... +export class WhateverComponent { + pnotify = undefined; + constructor(pnotifyService: PNotifyService) { + this.pnotify = pnotifyService.getPNotify(); + this.pnotify.alert('Notice me, senpai!'); + } +} +``` + +## AngularJS + +[PNotify in AngularJS](https://codesandbox.io/s/o5mp55p2p9). Import the UMD modules from `dist`: + +```js +var angular = require('angular'); +var PNotify = require('pnotify/dist/umd/PNotify'); +var PNotifyButtons = require('pnotify/dist/umd/PNotifyButtons'); + +angular.module('WhateverModule', []) + .value('PNotify', PNotify) + .controller('WhateverController', ['PNotify', function(PNotify) { + PNotify.alert('Notice me, senpai!'); + }]); +``` + +## Vanilla JS (ES5) + +PNotify in vanilla ECMAScript 5. Include the IIFE scripts from `dist`: + +```html + + + +``` + +## Vanilla JS (ES6) + +PNotify in vanilla ECMAScript 6+. Include the ES modules from `dist`: + +```js +import PNotify from 'node_modules/pnotify/dist/es/PNotify.js'; +import PNotifyButtons from 'node_modules/pnotify/dist/es/PNotifyButtons.js'; + +PNotify.alert('Notice me, senpai!'); +``` + +# Styles + +## Bright Theme + +The default, standalone theme, Bright Theme. Include the CSS file in your page: + +```html + +``` + +## Material + +The Material Style module. Include the module in your JS, and set it as the default: + +```js +import PNotifyStyleMaterial from 'pnotify/dist/es/PNotifyStyleMaterial.js'; +// or +var PNotifyStyleMaterial = require('pnotify/dist/umd/PNotifyStyleMaterial.js'); + +// Set default styling. +PNotify.defaults.styling = 'material'; +// This icon setting requires the Material Icons font. (See below.) +PNotify.defaults.icons = 'material'; +``` + +### Material Icons + +To use the Material Style icons, include the Material Design Icons Font in your page. + +```sh +# The official Google package: +npm install --save material-design-icons + +# OR, An unofficial package that only includes the font: +npm install --save material-design-icon-fonts +``` + +```html + +``` + +Alternatively, you can use the Google Fonts CDN: + +```html + +``` + +## Bootstrap + +To set Bootstrap as the default style, include the appropriate line(s) from below after you import PNotify: + +```js +PNotify.defaults.styling = 'bootstrap3'; // Bootstrap version 3 +PNotify.defaults.icons = 'bootstrap3'; // glyphicons +// or +PNotify.defaults.styling = 'bootstrap4'; // Bootstrap version 4 +``` + +## Font Awesome (Icons) + +To set Font Awesome as the default icons, include the appropriate line from below after you import PNotify: + +```js +PNotify.defaults.icons = 'fontawesome4'; // Font Awesome 4 +// or +PNotify.defaults.icons = 'fontawesome5'; // Font Awesome 5 +``` + +# Creating Notices + +To make a notice, use the helper functions: + +```js +// Manually set the type. +PNotify.alert({ + text: "I'm an alert.", + type: 'notice' +}); + +// Automatically set the type. +PNotify.notice({ + text: "I'm a notice." +}); +PNotify.info({ + text: "I'm an info message." +}); +PNotify.success({ + text: "I'm a success message." +}); +PNotify.error({ + text: "I'm an error message." +}); +``` + +Or you can manually create a new notice (if you know what you're doing): + +```js +new PNotify({ + target: document.body, + data: { + text: "I'm an alert.", + type: 'notice' + } +}); +``` + +# Options + +PNotify options and default values. + +* `title: false` - The notice's title. +* `titleTrusted: false` - Whether to trust the title or escape its contents. (Not allow HTML.) +* `text: false` - The notice's text. +* `textTrusted: false` - Whether to trust the text or escape its contents. (Not allow HTML.) +* `styling: 'brighttheme'` - What styling classes to use. (Can be 'brighttheme', 'bootstrap3', 'bootstrap4', or a styling object. See the source in PNotifyStyleMaterial.html for the properties in a style object.) +* `icons: 'brighttheme'` - What icons classes to use (Can be 'brighttheme', 'bootstrap3', 'fontawesome4', 'fontawesome5', or an icon object. See the source in PNotifyStyleMaterial.html for the properties in an icon object.) +* `addClass: ''` - Additional classes to be added to the notice. (For custom styling.) +* `cornerClass: ''` - Class to be added to the notice for corner styling. +* `autoDisplay: true` - Display the notice when it is created. Turn this off to add notifications to the history without displaying them. +* `width: '360px'` - Width of the notice. +* `minHeight: '16px'` - Minimum height of the notice. It will expand to fit content. +* `type: 'notice'` - Type of the notice. 'notice', 'info', 'success', or 'error'. +* `icon: true` - Set icon to true to use the default icon for the selected style/type, false for no icon, or a string for your own icon class. +* `animation: 'fade'` - The animation to use when displaying and hiding the notice. 'none' and 'fade' are supported through CSS. Others are supported through the Animate module and Animate.css. +* `animateSpeed: 'normal'` - Speed at which the notice animates in and out. 'slow', 'normal', or 'fast'. Respectively, 400ms, 250ms, 100ms. +* `shadow: true` - Display a drop shadow. +* `hide: true` - After a delay, close the notice. +* `delay: 8000` - Delay in milliseconds before the notice is closed. +* `mouseReset: true` - Reset the hide timer if the mouse moves over the notice. +* `remove: true` - Remove the notice's elements from the DOM after it is closed. +* `destroy: true` - Whether to remove the notice from the global array when it is closed. +* `stack: PNotify.defaultStack` - The stack on which the notices will be placed. Also controls the direction the notices stack. +* `modules: {}` - This is where options for modules should be defined. + +```js +PNotify.defaultStack = { + dir1: 'down', + dir2: 'left', + firstpos1: 25, + firstpos2: 25, + spacing1: 36, + spacing2: 36, + push: 'bottom', + context: document.body +} +``` + +## Changing Defaults + +```js +PNotify.defaults.width = '400px'; +``` + +Changing a default for modules can be done in a couple ways. + +```js +// This will change the default for every notice and is the recommended way. +PNotify.modules.History.defaults.maxInStack = 10; + +// This will change the default only for notices that don't have a module option. +PNotify.defaults.modules = { + History: { + maxInStack: 10 + } +}; +``` + +## Desktop Module + +`Desktop: {` +* `desktop: false` - Display the notification as a desktop notification. +* `fallback: true` - If desktop notifications are not supported or allowed, fall back to a regular notice. +* `icon: null` - The URL of the icon to display. If false, no icon will show. If null, a default icon will show. +* `tag: null` - Using a tag lets you update an existing notice, or keep from duplicating notices between tabs. If you leave tag null, one will be generated, facilitating the `update` function. +* `title: null` - Optionally display a different title for the desktop. +* `text: null` - Optionally display different text for the desktop. +* `options: {}` - Any additional options to be passed to the Notification constructor. + +`}` + +## Buttons Module + +`Buttons: {` +* `closer: true` - Provide a button for the user to manually close the notice. +* `closerHover: true` - Only show the closer button on hover. +* `sticker: true` - Provide a button for the user to manually stick the notice. +* `stickerHover: true` - Only show the sticker button on hover. +* `labels: {close: 'Close', stick: 'Stick', unstick: 'Unstick'}` - Lets you change the displayed text, facilitating internationalization. +* `classes: {closer: null, pinUp: null, pinDown: null}` - The classes to use for button icons. Leave them null to use the classes from the styling you're using. + +`}` + +> :information_source: In v4, it's no longer possible to show closer/sticker buttons when the notice is nonblocking. + +## NonBlock Module + +Requires [NonBlock.js](https://github.com/sciactive/nonblockjs) 1.0.8 or higher. + +**It is also deprecated and unnecessary in v4.** All it does is add the 'nonblock' class to your notice. You can do the same yourself with `addClass: 'nonblock'`. + +`NonBlock: {` +* `nonblock: false` - Use NonBlock.js to create a non-blocking notice. It lets the user click elements underneath it. + +`}` + +## Mobile Module + +`Mobile: {` +* `swipeDismiss: true` - Let the user swipe the notice away. +* `styling: true` - Styles the notice to look good on mobile. + +`}` + +## Animate Module + +Requires [Animate.css](https://daneden.github.io/animate.css/). + +`Animate: {` +* `animate: false` - Use animate.css to animate the notice. +* `inClass: ''` - The class to use to animate the notice in. +* `outClass: ''` - The class to use to animate the notice out. + +`}` + +The Animate module also creates a method, `attention`, on notices which accepts an attention grabber class and an animation completed callback. + +## Confirm Module + +`Confirm: {` +* `confirm: false` - Make a confirmation box. +* `prompt: false` - Make a prompt. +* `promptClass: ''` - Classes to add to the input element of the prompt. +* `promptValue: ''` - The value of the prompt. (Note that this is two-way bound to the input.) +* `promptMultiLine: false` - Whether the prompt should accept multiple lines of text. +* `align: 'right'` - Where to align the buttons. (right, center, left, justify) + +```js +buttons: [ + { + text: 'Ok', + textTrusted: false, + addClass: '', + primary: true, + promptTrigger: true, + click: (notice, value) => { + notice.close(); + notice.fire('pnotify.confirm', {notice, value}); + } + }, + { + text: 'Cancel', + textTrusted: false, + addClass: '', + click: (notice) => { + notice.close(); + notice.fire('pnotify.cancel', {notice}); + } + } +] +``` +* The buttons to display, and their callbacks. If a button has promptTrigger set to true, it will be triggered when the user hits enter in a prompt (unless they hold shift). + +`}` + +Because the default buttons fire notice events on confirmation and cancellation, you can listen for them like this: + +```js +const notice = PNotify.alert({ + title: 'Confirmation Needed', + text: 'Are you sure?', + hide: false, + modules: { + Confirm: { + confirm: true + } + } +}); +notice.on('pnotify.confirm', () => { + // User confirmed, continue here... +}); +notice.on('pnotify.cancel', () => { + // User canceled, continue here... +}); +``` + +## History Module + +`History: {` +* `history: true` - Place the notice in the history. +* `maxInStack: Infinity` - Maximum number of notices to have open in its stack. + +`}` + +The History module also has two methods: + +* `PNotify.modules.History.showLast(stack)` - Reopen the last closed notice from a stack that was placed in the history. If no stack is provided, it will use the default stack. +* `PNotify.modules.History.showAll(stack)` - Reopen all notices from a stack that were placed in the history. If no stack is provided, it will also use the default stack. If stack is `true`, it will reopen all notices from every stack. + +> :information_source: In v4, the History module can no longer make a dropdown for you. But hey, it's smaller now. + +## Callbacks Module + +The callback options all expect the value to be a callback function. If the function returns false on the `beforeOpen` or `beforeClose` callback, that event will be canceled. `beforeInit` and `afterInit` will only work for notices created with the helper functions. + +`Callbacks: {` +* `beforeInit` - Called before the notice has been initialized. Given one argument, the options object. +* `afterInit` - Called after the notice has been initialized. Given one argument, the notice object. +* `beforeOpen` - Called before the notice opens. Given one argument, the notice object. +* `afterOpen` - Called after the notice opens. Given one argument, the notice object. +* `beforeClose` - Called before the notice closes. Given one argument, the notice object. +* `afterClose` - Called after the notice closes. Given one argument, the notice object. + +`}` + +# Static Methods and Properties + +* `PNotify.alert(options)` - Create a notice. +* `PNotify.notice(options)` - Create a notice with 'notice' type. +* `PNotify.info(options)` - Create a notice with 'info' type. +* `PNotify.success(options)` - Create a notice with 'success' type. +* `PNotify.error(options)` - Create a notice with 'error' type. +* `PNotify.closeAll()` - Close all notices. +* `PNotify.removeAll()` - Alias for closeAll(). (Deprecated) +* `PNotify.closeStack(stack)` - Close all the notices in a stack. +* `PNotify.removeStack(stack)` - Alias for closeStack(stack). (Deprecated) +* `PNotify.positionAll()` - Reposition all notices. +* `PNotify.VERSION` - PNotify version number. +* `PNotify.defaults` - Defaults for options. +* `PNotify.defaultStack` - The default stack object. +* `PNotify.notices` - An array of all active notices. +* `PNotify.modules` - This object holds all the PNotify modules. +* `PNotify.styling` - Styling objects. + +# Instance Methods and Properties + +* `notice.open()` - Open the notice. +* `notice.close()` - Close the notice. +* `notice.remove()` - Alias for close(). (Deprecated) +* `notice.update(options)` - Update the notice with new options. +* `notice.addModuleClass(...classNames)` - This is for modules to add classes to the notice. +* `notice.removeModuleClass(...classNames)` - This is for modules to remove classes from the notice. +* `notice.hasModuleClass(...classNames)` - This is for modules to test classes on the notice. +* `notice.refs.elem` - The notice's DOM element. +* `notice.refs.container` - The notice container DOM element. +* `notice.refs.titleContainer` - The title container DOM element. +* `notice.refs.textContainer` - The text container DOM element. +* `notice.refs.iconContainer` - The icon container DOM element. + +## From the [Svelte Component API](https://svelte.technology/guide#component-api) + +* `notice.get(option)` - Get the value of an option. +* `notice.set(options)` - You probably want to use `update(options)` instead. It has some special PNotify secret sauce to make sure your notice doesn't break. +* `notice.observe(key, callback[, options])` - Observe an option. See the Svelte docs for more info. +* `notice.destroy()` - Removes the component from the DOM and any observers/event listeners. You probably want to use `close()` instead. It will animate the notice out and you can open it again. Once you destroy it, you can't open it again. + +## Events + +* `notice.on(eventName, callback)` - Assign a callback to an event. Callback receives an `event` argument. +* `notice.fire(eventName, event)` - Fire an event. + +# Stacks + +A stack is an object used to determine where to position notices. + +Stack properties: + +* `dir1` - The primary stacking direction. Can be `'up'`, `'down'`, `'right'`, or `'left'`. +* `firstpos1` - Number of pixels from the edge of the context, relative to `dir1`, the first notice will appear. If undefined, the current position of the notice, whatever that is, will be used. +* `spacing1` - Number of pixels between notices along `dir1`. If undefined, `25` will be used. +* `dir2` - The secondary stacking direction. Should be a perpendicular direction to `dir1`. The notices will continue in this direction when they reach the edge of the viewport along `dir1`. +* `firstpos2` - Number of pixels from the edge of the context, relative to `dir2`, the first notice will appear. If undefined, the current position of the notice, whatever that is, will be used. +* `spacing2` - Number of pixels between notices along `dir2`. If undefined, `25` will be used. +* `push` - Where, in the stack, to push new notices. Can be `'top'` or `'bottom'`. +* `modal` - Whether to create a modal overlay when this stack's notices are open. +* `overlayClose` - Whether clicking on the modal overlay should close the stack's notices. +* `context` - The DOM element this stack's notices should appear in. If undefined, `document.body` will be used. + +Stack behavior: + +* If there is no `dir1` property, the notice will be centered in the context. +* If there is a `dir1` and no `dir2`, the notices will be centered along the axis of `dir1`. +* The `firstpos*` values are relative to an edge determined by the corresponding `dir*` value. + * `dirX === 'up'` - `firstposX` is relative to the **bottom** edge. + * `dirX === 'down'` - `firstposX` is relative to the **top** edge. + * `dirX === 'left'` - `firstposX` is relative to the **right** edge. + * `dirX === 'right'` - `firstposX` is relative to the **left** edge. +* Stacks are independent of each other, so a stack doesn't know and doesn't care if it overlaps (and blocks) another stack. +* Stack objects are used and manipulated by PNotify, and therefore, should be a variable when passed. + +> :warning: Calling something like `PNotify.alert({text: 'notice', stack: {dir1: 'down', firstpos1: 25}});` may not do what you want. It will create a notice, but that notice will be in its own stack and will overlap other notices. + +## Example Stack + +Here is an example stack with comments to explain. You can play with it [here](https://codesandbox.io/s/2po6zq9yrr). + +```js +const stackBottomModal = { + dir1: 'up', // With a dir1 of 'up', the stacks will start appearing at the bottom. + // Without a `dir2`, this stack will be horizontally centered, since the `dir1` axis is vertical. + firstpos1: 25, // The notices will appear 25 pixels from the bottom of the context. + // Without a `spacing1`, this stack's notices will be placed 25 pixels apart. + push: 'top', // Each new notice will appear at the bottom of the screen, which is where the 'top' of the stack is. Other notices will be pushed up. + modal: true, // When a notice appears in this stack, a modal overlay will be created. + overlayClose: true, // When the user clicks on the overlay, all notices in this stack will be closed. + context: document.getElementById('page-container') // The notices will be placed in the 'page-container' element. +}; +``` + +If you just want to position a single notice programmatically, and don't want to add any other notices into the stack, you can use something like this: + +```js +PNotify.alert({ + text: "Notice that's positioned in its own stack.", + stack: { + dir1: 'down', dir2: 'right', // Position from the top left corner. + firstpos1: 90, firstpos2: 90 // 90px from the top, 90px from the left. + } +}); +``` + +# Features + +* Rich graphical features and effects. + * Material, Bootstrap 3/4, Font Awesome 4/5, or the stand-alone theme, Bright Theme. + * Mobile styling and swipe support. + * Timed hiding. + * Slick animations with Animate.css. + * Attention getters with Animate.css. +* Highly customizable UI. + * Sticky notices. + * Optional close and stick buttons. + * Non-blocking notices for less intrusive use. + * Notification types: notice, info, success, and error. + * Stacks allow notices to position together or independently. + * Control stack direction and push to top or bottom. + * Modal notices. + * Confirm dialogs, alert buttons, and prompts. + * RTL language support. +* Feature rich API. + * Desktop notifications based on the Web Notifications standard. + * Dynamically update existing notices. + * Put forms and other HTML in notices. + * By default, escapes text to prevent XSS attack. + * Callbacks for lifespan events. + * Notice history for reshowing old notices. +* Universally compatible. + * Works with any frontend library. + * No dependencies for most features. + +# Licensing and Additional Info + +PNotify is distributed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0). + +See http://sciactive.com/pnotify/ for more information, and demos. + +

Support on Beerpay

+ +Hey dude! Help me out for a couple of :beers:! + +[![Beerpay](https://beerpay.io/sciactive/pnotify/badge.svg?style=beer-square)](https://beerpay.io/sciactive/pnotify) [![Beerpay](https://beerpay.io/sciactive/pnotify/make-wish.svg?style=flat-square)](https://beerpay.io/sciactive/pnotify?focus=wish) diff --git a/app/node_modules/pnotify/dist/PNotifyBrightTheme.css b/app/node_modules/pnotify/dist/PNotifyBrightTheme.css new file mode 100644 index 00000000..1f2d7f1d --- /dev/null +++ b/app/node_modules/pnotify/dist/PNotifyBrightTheme.css @@ -0,0 +1 @@ +[ui-pnotify].ui-pnotify .brighttheme{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}[ui-pnotify].ui-pnotify .brighttheme.ui-pnotify-container{padding:1.3rem}[ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-confirm,[ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-text,[ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-title{margin-left:1.8rem}[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-confirm,[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-text,[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-title{margin-right:1.8rem;margin-left:0}[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-title{font-size:1.2rem;line-height:1.4rem;margin-top:-.2rem;margin-bottom:1rem}[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-text{font-size:1rem;line-height:1.2rem;margin-top:0}[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-icon{line-height:1}[ui-pnotify].ui-pnotify .brighttheme-notice{background-color:#ffffa2;border:0 solid #ff0;color:#4f4f00}[ui-pnotify].ui-pnotify .brighttheme-info{background-color:#8fcedd;border:0 solid #0286a5;color:#012831}[ui-pnotify].ui-pnotify .brighttheme-success{background-color:#aff29a;border:0 solid #35db00;color:#104300}[ui-pnotify].ui-pnotify .brighttheme-error{background-color:#ffaba2;background-image:repeating-linear-gradient(135deg,transparent,transparent 35px,rgba(255,255,255,.3) 35px,rgba(255,255,255,.3) 70px);border:0 solid #ff1800;color:#4f0800}[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-closer,[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-sticker{font-size:1rem;line-height:1.2rem}[ui-pnotify].ui-pnotify .brighttheme-icon-closer,[ui-pnotify].ui-pnotify .brighttheme-icon-error,[ui-pnotify].ui-pnotify .brighttheme-icon-info,[ui-pnotify].ui-pnotify .brighttheme-icon-notice,[ui-pnotify].ui-pnotify .brighttheme-icon-sticker,[ui-pnotify].ui-pnotify .brighttheme-icon-success{position:relative;width:1rem;height:1rem;font-size:1rem;font-weight:700;line-height:1rem;font-family:"Courier New",Courier,monospace;border-radius:50%}[ui-pnotify].ui-pnotify .brighttheme-icon-closer:after,[ui-pnotify].ui-pnotify .brighttheme-icon-info:after,[ui-pnotify].ui-pnotify .brighttheme-icon-notice:after,[ui-pnotify].ui-pnotify .brighttheme-icon-sticker:after,[ui-pnotify].ui-pnotify .brighttheme-icon-success:after{position:absolute;top:0;left:.2rem}[ui-pnotify].ui-pnotify .brighttheme-icon-notice{background-color:#2e2e00;color:#ffffa2}[ui-pnotify].ui-pnotify .brighttheme-icon-notice:after{content:"!"}[ui-pnotify].ui-pnotify .brighttheme-icon-info{background-color:#012831;color:#8fcedd}[ui-pnotify].ui-pnotify .brighttheme-icon-info:after{content:"i"}[ui-pnotify].ui-pnotify .brighttheme-icon-success{background-color:#104300;color:#aff29a}[ui-pnotify].ui-pnotify .brighttheme-icon-success:after{content:"\002713"}[ui-pnotify].ui-pnotify .brighttheme-icon-error{width:0;height:0;font-size:0;line-height:0;border-radius:0;border-left:.6rem solid transparent;border-right:.6rem solid transparent;border-bottom:1.2rem solid #2e0400;color:#ffaba2}[ui-pnotify].ui-pnotify .brighttheme-icon-error:after{position:absolute;top:.1rem;left:-.25rem;font-size:.9rem;font-weight:700;line-height:1.4rem;font-family:"Courier New",Courier,monospace;content:"!"}[ui-pnotify].ui-pnotify .brighttheme-icon-closer,[ui-pnotify].ui-pnotify .brighttheme-icon-sticker{display:inline-block}[ui-pnotify].ui-pnotify .brighttheme-icon-closer:after{content:"\002715"}[ui-pnotify].ui-pnotify .brighttheme-icon-sticker:after{top:-1px;content:"\002016"}[ui-pnotify].ui-pnotify .brighttheme-icon-sticker.brighttheme-icon-stuck:after{content:"\00003E"}[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-confirm{margin-top:1rem}[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-prompt-bar{margin-bottom:1rem}[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-action-button{text-transform:uppercase;font-weight:700;padding:.4rem 1rem;border:none;background:0 0;cursor:pointer}[ui-pnotify].ui-pnotify .brighttheme-notice .ui-pnotify-action-button.brighttheme-primary{background-color:#ff0;color:#4f4f00}[ui-pnotify].ui-pnotify .brighttheme-info .ui-pnotify-action-button.brighttheme-primary{background-color:#0286a5;color:#012831}[ui-pnotify].ui-pnotify .brighttheme-success .ui-pnotify-action-button.brighttheme-primary{background-color:#35db00;color:#104300}[ui-pnotify].ui-pnotify .brighttheme-error .ui-pnotify-action-button.brighttheme-primary{background-color:#ff1800;color:#4f0800} \ No newline at end of file diff --git a/app/node_modules/pnotify/dist/es/PNotify.js b/app/node_modules/pnotify/dist/es/PNotify.js new file mode 100644 index 00000000..ea332962 --- /dev/null +++ b/app/node_modules/pnotify/dist/es/PNotify.js @@ -0,0 +1,2 @@ +let PNotify,posTimer,onDocumentLoaded=()=>{PNotify.defaultStack.context=document.body,window.addEventListener("resize",()=>{posTimer&&clearTimeout(posTimer),posTimer=setTimeout(()=>{PNotify.positionAll()},10)})},createStackOverlay=e=>{const t=document.createElement("div");t.classList.add("ui-pnotify-modal-overlay"),e.context!==document.body&&(t.style.height=e.context.scrollHeight+"px",t.style.width=e.context.scrollWidth+"px"),t.addEventListener("click",()=>{e.overlayClose&&PNotify.closeStack(e)}),e.overlay=t},insertStackOverlay=e=>{e.overlay.parentNode!==e.context&&(e.overlay=e.context.insertBefore(e.overlay,e.context.firstChild))},removeStackOverlay=e=>{e.overlay.parentNode&&e.overlay.parentNode.removeChild(e.overlay)};const getDefaultArgs=(e,t)=>("object"!=typeof e&&(e={text:e}),t&&(e.type=t),{target:document.body,data:e});function _styles({styling:e}){return"object"==typeof e?e:PNotify.styling[e]}function _icons({icons:e}){return"object"==typeof e?e:PNotify.icons[e]}function _widthStyle({width:e}){return"string"==typeof e?"width: "+e+";":""}function _minHeightStyle({minHeight:e}){return"string"==typeof e?"min-height: "+e+";":""}function data(){const e=Object.assign({_state:"initializing",_timer:null,_animTimer:null,_animating:!1,_animatingClass:"",_moveClass:"",_timerHide:!1,_moduleClasses:[],_moduleIsNoticeOpen:!1,_modules:{},_modulesPrependContainer:PNotify.modulesPrependContainer,_modulesAppendContainer:PNotify.modulesAppendContainer},PNotify.defaults);return e.modules=Object.assign({},PNotify.defaults.modules),e}var methods={runModules(e){if("init"===e){for(let e in PNotify.modules)if(PNotify.modules.hasOwnProperty(e)&&"function"==typeof PNotify.modules[e].init){const t=PNotify.modules[e].init(this);this.initModule(t)}}else{const{_modules:t}=this.get();for(let i in t){if(!t.hasOwnProperty(i))continue;const o=Object.assign({_notice:this,_options:this.get()},this.get().modules[i]);t[i].set(o),"function"==typeof t[i][e]&&t[i][e]()}}},initModule(e){const{modules:t}=this.get();t.hasOwnProperty(e.constructor.key)||(t[e.constructor.key]={});const i=Object.assign({_notice:this,_options:this.get()},t[e.constructor.key]);e.initModule(i);const{_modules:o}=this.get();o[e.constructor.key]=e},update(e){const t=this.get().hide,i=this.get().icon;this.set(e),this.runModules("update"),this.get().hide?t||this.queueClose():this.cancelClose(),this.queuePosition();const{icon:o}=this.get();return o!==i&&(!0===o&&"fontawesome5"===this.get().icons||"string"==typeof o&&o.match(/(^| )fa[srlb]($| )/))&&(this.set({icon:!1}),this.set({icon:o})),this},open(){const{_state:e,hide:t}=this.get();if("opening"===e)return;if("open"===e)return void(t&&this.queueClose());this.set({_state:"opening",_animatingClass:"ui-pnotify-initial-hidden"}),this.runModules("beforeOpen");let{stack:i}=this.get();if(!this.refs.elem.parentNode||i&&i.context&&i.context!==this.refs.elem.parentNode)if(i&&i.context)i.context.appendChild(this.refs.elem);else{if(!document.body)throw new Error("No context to open this notice in.");document.body.appendChild(this.refs.elem)}return setTimeout(()=>{i&&(i.animation=!1,PNotify.positionAll(),i.animation=!0),this.animateIn(()=>{this.get().hide&&this.queueClose(),this.set({_state:"open"}),this.runModules("afterOpen")})},0),this},remove(e){return this.close(e)},close(e){const{_state:t}=this.get();if("closing"===t||"closed"===t)return;this.set({_state:"closing",_timerHide:!!e}),this.runModules("beforeClose");const{_timer:i}=this.get();return i&&clearTimeout&&(clearTimeout(i),this.set({_timer:null})),this.animateOut(()=>{if(this.set({_state:"closed"}),this.runModules("afterClose"),this.queuePosition(),this.get().remove&&this.refs.elem.parentNode.removeChild(this.refs.elem),this.runModules("beforeDestroy"),this.get().destroy&&null!==PNotify.notices){const e=PNotify.notices.indexOf(this);-1!==e&&PNotify.notices.splice(e,1)}this.runModules("afterDestroy")}),this},animateIn(e){this.set({_animating:"in"});const t=()=>{this.refs.elem.removeEventListener("transitionend",t);const{_animTimer:i,_animating:o,_moduleIsNoticeOpen:n}=this.get();if(i&&clearTimeout(i),"in"!==o)return;let s=n;if(!s){const e=this.refs.elem.getBoundingClientRect();for(let t in e)if(e[t]>0){s=!0;break}}s?(e&&e.call(),this.set({_animating:!1})):this.set({_animTimer:setTimeout(t,40)})};"fade"===this.get().animation?(this.refs.elem.addEventListener("transitionend",t),this.set({_animatingClass:"ui-pnotify-in"}),this.refs.elem.style.opacity,this.set({_animatingClass:"ui-pnotify-in ui-pnotify-fade-in"}),this.set({_animTimer:setTimeout(t,650)})):(this.set({_animatingClass:"ui-pnotify-in"}),t())},animateOut(e){this.set({_animating:"out"});const t=()=>{this.refs.elem.removeEventListener("transitionend",t);const{_animTimer:i,_animating:o,_moduleIsNoticeOpen:n}=this.get();if(i&&clearTimeout(i),"out"!==o)return;let s=n;if(!s){const e=this.refs.elem.getBoundingClientRect();for(let t in e)if(e[t]>0){s=!0;break}}if(this.refs.elem.style.opacity&&"0"!==this.refs.elem.style.opacity&&s)this.set({_animTimer:setTimeout(t,40)});else{this.set({_animatingClass:""});const{stack:t}=this.get();if(t&&t.overlay){let e=!1;for(let i=0;io||("left"===e.dir1||"right"===e.dir1)&&a>n)&&(e.nextpos1=e.firstpos1,e.nextpos2+=e.addpos2+(void 0===e.spacing2?25:e.spacing2),e.addpos2=0),"number"==typeof e.nextpos2&&(t.style[s]=e.nextpos2+"px",e.animation||t.style[s]),e.dir2){case"down":case"up":t.offsetHeight+(parseFloat(t.style.marginTop,10)||0)+(parseFloat(t.style.marginBottom,10)||0)>e.addpos2&&(e.addpos2=t.offsetHeight);break;case"left":case"right":t.offsetWidth+(parseFloat(t.style.marginLeft,10)||0)+(parseFloat(t.style.marginRight,10)||0)>e.addpos2&&(e.addpos2=t.offsetWidth)}}else if(e.dir1){let i,n;switch(e.dir1){case"down":case"up":n=["left","right"],i=e.context.scrollWidth/2-t.offsetWidth/2;break;case"left":case"right":n=["top","bottom"],i=o/2-t.offsetHeight/2}t.style[n[0]]=i+"px",t.style[n[1]]="auto",e.animation||t.style[n[0]]}if(e.dir1)switch("number"==typeof e.nextpos1&&(t.style[i]=e.nextpos1+"px",e.animation||t.style[i]),e.dir1){case"down":case"up":e.nextpos1+=t.offsetHeight+(void 0===e.spacing1?25:e.spacing1);break;case"left":case"right":e.nextpos1+=t.offsetWidth+(void 0===e.spacing1?25:e.spacing1)}else{let i=n/2-t.offsetWidth/2,s=o/2-t.offsetHeight/2;t.style.left=i+"px",t.style.top=s+"px",e.animation||t.style.left}return this},queuePosition(e){return posTimer&&clearTimeout(posTimer),e||(e=10),posTimer=setTimeout(()=>{PNotify.positionAll()},e),this},cancelRemove(){return this.cancelClose()},cancelClose(){const{_timer:e,_animTimer:t,_state:i,animation:o}=this.get();return e&&clearTimeout(e),t&&clearTimeout(t),"closing"===i&&this.set({_state:"open",_animating:!1,_animatingClass:"fade"===o?"ui-pnotify-in ui-pnotify-fade-in":"ui-pnotify-in"}),this},queueRemove(){return this.queueClose()},queueClose(){return this.cancelClose(),this.set({_timer:setTimeout(()=>this.close(!0),isNaN(this.get().delay)?0:this.get().delay)}),this},addModuleClass(...e){const{_moduleClasses:t}=this.get();for(let i=0;i{if(this.get().mouseReset&&"out"===this.get()._animating){if(!this.get()._timerHide)return;this.cancelClose()}this.get().hide&&this.get().mouseReset&&this.cancelClose()}),this.on("mouseleave",e=>{this.get().hide&&this.get().mouseReset&&"out"!==this.get()._animating&&this.queueClose(),PNotify.positionAll()});let{stack:e}=this.get();e&&"top"===e.push?PNotify.notices.splice(0,0,this):PNotify.notices.push(this),this.runModules("init"),this.set({_state:"closed"}),this.get().autoDisplay&&this.open()}function setup(e){(PNotify=e).VERSION="4.0.0-alpha.3",PNotify.defaultStack={dir1:"down",dir2:"left",firstpos1:25,firstpos2:25,spacing1:36,spacing2:36,push:"bottom",context:window&&document.body},PNotify.defaults={title:!1,titleTrusted:!1,text:!1,textTrusted:!1,styling:"brighttheme",icons:"brighttheme",addClass:"",cornerClass:"",autoDisplay:!0,width:"360px",minHeight:"16px",type:"notice",icon:!0,animation:"fade",animateSpeed:"normal",shadow:!0,hide:!0,delay:8e3,mouseReset:!0,remove:!0,destroy:!0,stack:PNotify.defaultStack,modules:{}},PNotify.notices=[],PNotify.modules={},PNotify.modulesPrependContainer=[],PNotify.modulesAppendContainer=[],PNotify.alert=(e=>new PNotify(getDefaultArgs(e))),PNotify.notice=(e=>new PNotify(getDefaultArgs(e,"notice"))),PNotify.info=(e=>new PNotify(getDefaultArgs(e,"info"))),PNotify.success=(e=>new PNotify(getDefaultArgs(e,"success"))),PNotify.error=(e=>new PNotify(getDefaultArgs(e,"error"))),PNotify.removeAll=(()=>{PNotify.closeAll()}),PNotify.closeAll=(()=>{for(let e=0;e{PNotify.closeStack(e)}),PNotify.closeStack=(e=>{if(!1!==e)for(let t=0;t{if(posTimer&&clearTimeout(posTimer),posTimer=null,PNotify.notices.length>0){for(let e=0;e .ui-pnotify{position:fixed;z-index:100040}body > .ui-pnotify.ui-pnotify-modal{z-index:100042}.ui-pnotify{position:absolute;height:auto;z-index:1;display:none}.ui-pnotify.ui-pnotify-modal{z-index:3}.ui-pnotify.ui-pnotify-in{display:block}.ui-pnotify.ui-pnotify-initial-hidden{display:block;visibility:hidden}.ui-pnotify.ui-pnotify-move{transition:left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-slow{transition:opacity .4s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-slow.ui-pnotify.ui-pnotify-move{transition:opacity .4s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-normal{transition:opacity .25s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-normal.ui-pnotify.ui-pnotify-move{transition:opacity .25s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-fast{transition:opacity .1s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-fast.ui-pnotify.ui-pnotify-move{transition:opacity .1s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-in{opacity:1}.ui-pnotify .ui-pnotify-shadow{-webkit-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);-moz-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1)}.ui-pnotify-container{background-position:0 0;padding:.8em;height:100%;margin:0}.ui-pnotify-container:after{content:" ";visibility:hidden;display:block;height:0;clear:both}.ui-pnotify-container.ui-pnotify-sharp{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ui-pnotify-title{display:block;white-space:pre-line;margin-bottom:.4em;margin-top:0}.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-left:24px}[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-right:24px;margin-left:0}.ui-pnotify-title-bs4{font-size:1.2rem}.ui-pnotify-text{display:block;white-space:pre-line}.ui-pnotify-icon,.ui-pnotify-icon span{display:block;float:left}[dir=rtl] .ui-pnotify-icon,[dir=rtl] .ui-pnotify-icon span{float:right}.ui-pnotify-icon-bs3 > span{position:relative;top:2px}.ui-pnotify-icon-bs4 > span{position:relative;top:4px}.ui-pnotify-modal-overlay{background-color:rgba(0, 0, 0, .4);top:0;left:0;position:absolute;height:100%;width:100%;z-index:2}body > .ui-pnotify-modal-overlay{position:fixed;z-index:100041}',appendNode(e,document.head)}function create_main_fragment(e,t){var i,o,n,s,r,a,c,l,f,d=[],u=blankObject(),h=[],m=blankObject(),p=t._modulesPrependContainer;const y=e=>e.module.key;for(var _=0;_e.module.key;for(_=0;_{oncreate.call(this),this.fire("update",{changed:assignTrue({},this._state),current:this._state})}),e.target&&(this._fragment.c(),this._mount(e.target,e.anchor),this._lock=!0,callAll(this._beforecreate),callAll(this._oncreate),callAll(this._aftercreate),this._lock=!1)}function createElement(e){return document.createElement(e)}function appendNode(e,t){t.appendChild(e)}function blankObject(){return Object.create(null)}function createText(e){return document.createTextNode(e)}function setAttribute(e,t,i){e.setAttribute(t,i)}function addListener(e,t,i){e.addEventListener(t,i,!1)}function insertNode(e,t,i){t.insertBefore(e,i)}function updateKeyedEach(e,t,i,o,n,s,r,a,c,l,f,d,u,h){for(var m=e.length,p=r.length,y=m,_={};y--;)_[e[y].key]=y;var g=[],b={},v={};for(y=p;y--;){var N=h(s,r,y),x=o(N),k=a[x];k?n&&k.p(i,N):(k=f(t,x,N)).c(),g[y]=b[x]=k,x in _&&(v[x]=Math.abs(y-_[x]))}var C={},w={};function P(e){e[d](c,u),a[e.key]=e,u=e.first,p--}for(;m&&p;){var T=g[p-1],L=e[m-1],S=T.key,A=L.key;T===L?(u=T.first,m--,p--):b[A]?!a[S]||C[S]?P(T):w[A]?m--:v[S]>v[A]?(w[S]=!0,P(T)):(C[A]=!0,m--):(l(L,a),m--)}for(;m--;){b[(L=e[m]).key]||l(L,a)}for(;p;)P(g[p-1]);return g}function destroyBlock(e,t){e.d(1),t[e.key]=null}function detachNode(e){e.parentNode.removeChild(e)}function removeListener(e,t,i){e.removeEventListener(t,i,!1)}function createComment(){return document.createComment("")}function detachBetween(e,t){for(;e.nextSibling&&e.nextSibling!==t;)e.parentNode.removeChild(e.nextSibling)}function init(e,t){e._handlers=blankObject(),e._bind=t._bind,e.options=t,e.root=t.root||e,e.store=e.root.store||t.store}function assign(e,t){for(var i in t)e[i]=t[i];return e}function assignTrue(e,t){for(var i in t)e[i]=1;return e}function callAll(e){for(;e&&e.length;)e.shift()()}function destroy(e){this.destroy=noop,this.fire("destroy"),this.set=noop,this._fragment.d(!1!==e),this._fragment=null,this._state={}}function get(){return this._state}function fire(e,t){var i=e in this._handlers&&this._handlers[e].slice();if(i)for(var o=0;o0&&(i=t.animateSpeed),i/=1e3,e.refs.elem.style.WebkitAnimationDuration=i+"s",e.refs.elem.style.MozAnimationDuration=i+"s",e.refs.elem.style.animationDuration=i+"s"}else e._animateIn&&e._animateOut&&(e.animateIn=e._animateIn,delete e._animateIn,e.animateOut=e._animateOut,delete e._animateOut)},animateIn(e){const{_notice:t}=this.get();t.set({_animating:"in"});const n=()=>{t.refs.elem.removeEventListener("webkitAnimationEnd",n),t.refs.elem.removeEventListener("mozAnimationEnd",n),t.refs.elem.removeEventListener("MSAnimationEnd",n),t.refs.elem.removeEventListener("oanimationend",n),t.refs.elem.removeEventListener("animationend",n),t.set({_animatingClass:"ui-pnotify-in animated"}),e&&e.call(),t.set({_animating:!1})};t.refs.elem.addEventListener("webkitAnimationEnd",n),t.refs.elem.addEventListener("mozAnimationEnd",n),t.refs.elem.addEventListener("MSAnimationEnd",n),t.refs.elem.addEventListener("oanimationend",n),t.refs.elem.addEventListener("animationend",n),t.set({_animatingClass:"ui-pnotify-in animated "+this.get().inClass})},animateOut(e){const{_notice:t}=this.get();t.set({_animating:"out"});const n=()=>{t.refs.elem.removeEventListener("webkitAnimationEnd",n),t.refs.elem.removeEventListener("mozAnimationEnd",n),t.refs.elem.removeEventListener("MSAnimationEnd",n),t.refs.elem.removeEventListener("oanimationend",n),t.refs.elem.removeEventListener("animationend",n),t.set({_animatingClass:"animated"}),e&&e.call(),t.set({_animating:!1})};t.refs.elem.addEventListener("webkitAnimationEnd",n),t.refs.elem.addEventListener("mozAnimationEnd",n),t.refs.elem.addEventListener("MSAnimationEnd",n),t.refs.elem.addEventListener("oanimationend",n),t.refs.elem.addEventListener("animationend",n),t.set({_animatingClass:"ui-pnotify-in animated "+this.get().outClass})}};function setup(e){e.key="Animate",e.defaults={animate:!1,inClass:"",outClass:""},e.init=(t=>(t.attention=((e,n)=>{const i=()=>{t.refs.container.removeEventListener("webkitAnimationEnd",i),t.refs.container.removeEventListener("mozAnimationEnd",i),t.refs.container.removeEventListener("MSAnimationEnd",i),t.refs.container.removeEventListener("oanimationend",i),t.refs.container.removeEventListener("animationend",i),t.refs.container.classList.remove(e),n&&n.call(t)};t.refs.container.addEventListener("webkitAnimationEnd",i),t.refs.container.addEventListener("mozAnimationEnd",i),t.refs.container.addEventListener("MSAnimationEnd",i),t.refs.container.addEventListener("oanimationend",i),t.refs.container.addEventListener("animationend",i),t.refs.container.classList.add("animated"),t.refs.container.classList.add(e)}),new e({target:document.body}))),PNotify.modules.Animate=e}function create_main_fragment(e,t){return{c:noop,m:noop,p:noop,d:noop}}function PNotifyAnimate(e){init(this,e),this._state=assign(data(),e.data),this._intro=!0,this._fragment=create_main_fragment(this,this._state),e.target&&(this._fragment.c(),this._mount(e.target,e.anchor))}function noop(){}function init(e,t){e._handlers=blankObject(),e._bind=t._bind,e.options=t,e.root=t.root||e,e.store=e.root.store||t.store}function assign(e,t){for(var n in t)e[n]=t[n];return e}function destroy(e){this.destroy=noop,this.fire("destroy"),this.set=noop,this._fragment.d(!1!==e),this._fragment=null,this._state={}}function get(){return this._state}function fire(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var i=0;ithis.set({_mouseIsIn:!0})),t.on("mouseleave",()=>this.set({_mouseIsIn:!1})),t.on("state",({changed:e,current:t})=>{if(!e.hide)return;const{sticker:s}=this.get();if(!s)return;const i=t.hide?this.get().classes.pinUp:this.get().classes.pinDown;("fontawesome5"===this.get()._notice.get().icons||"string"==typeof i&&i.match(/(^| )fa[srlb]($| )/))&&(this.set({sticker:!1}),this.set({sticker:!0}))})},handleStickerClick(){const{_notice:e}=this.get();e.update({hide:!e.get().hide})},handleCloserClick(){this.get()._notice.close(!1),this.set({_mouseIsIn:!1})}};function oncreate(){this.fire("init",{module:this})}function setup(e){e.key="Buttons",e.defaults={closer:!0,closerHover:!0,sticker:!0,stickerHover:!0,labels:{close:"Close",stick:"Stick",unstick:"Unstick"},classes:{closer:null,pinUp:null,pinDown:null}},PNotify.modules.Buttons=e,PNotify.modulesPrependContainer.push(e),Object.assign(PNotify.icons.brighttheme,{closer:"brighttheme-icon-closer",pinUp:"brighttheme-icon-sticker",pinDown:"brighttheme-icon-sticker brighttheme-icon-stuck"}),Object.assign(PNotify.icons.bootstrap3,{closer:"glyphicon glyphicon-remove",pinUp:"glyphicon glyphicon-pause",pinDown:"glyphicon glyphicon-play"}),Object.assign(PNotify.icons.fontawesome4,{closer:"fa fa-times",pinUp:"fa fa-pause",pinDown:"fa fa-play"}),Object.assign(PNotify.icons.fontawesome5,{closer:"fas fa-times",pinUp:"fas fa-pause",pinDown:"fas fa-play"})}function add_css(){var e=createElement("style");e.id="svelte-1yjle82-style",e.textContent=".ui-pnotify-closer.svelte-1yjle82,.ui-pnotify-sticker.svelte-1yjle82{float:right;margin-left:.5em;cursor:pointer}[dir=rtl] .ui-pnotify-closer,[dir=rtl] .ui-pnotify-sticker{float:left;margin-right:.5em;margin-left:0}.ui-pnotify-buttons-hidden.svelte-1yjle82{visibility:hidden}",appendNode(e,document.head)}function create_main_fragment(e,t){var s,i,n=t._showCloser&&create_if_block(e,t),o=t._showSticker&&create_if_block_1(e,t);return{c(){n&&n.c(),s=createText("\n"),o&&o.c(),i=createComment()},m(e,t){n&&n.m(e,t),insertNode(s,e,t),o&&o.m(e,t),insertNode(i,e,t)},p(t,r){r._showCloser?n?n.p(t,r):((n=create_if_block(e,r)).c(),n.m(s.parentNode,s)):n&&(n.d(1),n=null),r._showSticker?o?o.p(t,r):((o=create_if_block_1(e,r)).c(),o.m(i.parentNode,i)):o&&(o.d(1),o=null)},d(e){n&&n.d(e),e&&detachNode(s),o&&o.d(e),e&&detachNode(i)}}}function create_if_block(e,t){var s,i,n,o;function r(t){e.handleCloserClick()}return{c(){s=createElement("div"),(i=createElement("span")).className=t._closerClass+" svelte-1yjle82",addListener(s,"click",r),s.className=n="ui-pnotify-closer "+(!t.closerHover||t._mouseIsIn?"":"ui-pnotify-buttons-hidden")+" svelte-1yjle82",setAttribute(s,"role","button"),s.tabIndex="0",s.title=o=t.labels.close},m(e,t){insertNode(s,e,t),appendNode(i,s)},p(e,t){e._closerClass&&(i.className=t._closerClass+" svelte-1yjle82"),(e.closerHover||e._mouseIsIn)&&n!==(n="ui-pnotify-closer "+(!t.closerHover||t._mouseIsIn?"":"ui-pnotify-buttons-hidden")+" svelte-1yjle82")&&(s.className=n),e.labels&&o!==(o=t.labels.close)&&(s.title=o)},d(e){e&&detachNode(s),removeListener(s,"click",r)}}}function create_if_block_1(e,t){var s,i,n,o,r,c;function l(t){e.handleStickerClick()}return{c(){s=createElement("div"),(i=createElement("span")).className=n=(t._options.hide?t._pinUpClass:t._pinDownClass)+" svelte-1yjle82",addListener(s,"click",l),s.className=o="ui-pnotify-sticker "+(!t.stickerHover||t._mouseIsIn?"":"ui-pnotify-buttons-hidden")+" svelte-1yjle82",setAttribute(s,"role","button"),setAttribute(s,"aria-pressed",r=t._options.hide),s.tabIndex="0",s.title=c=t._options.hide?t.labels.stick:t.labels.unstick},m(e,t){insertNode(s,e,t),appendNode(i,s)},p(e,t){(e._options||e._pinUpClass||e._pinDownClass)&&n!==(n=(t._options.hide?t._pinUpClass:t._pinDownClass)+" svelte-1yjle82")&&(i.className=n),(e.stickerHover||e._mouseIsIn)&&o!==(o="ui-pnotify-sticker "+(!t.stickerHover||t._mouseIsIn?"":"ui-pnotify-buttons-hidden")+" svelte-1yjle82")&&(s.className=o),e._options&&r!==(r=t._options.hide)&&setAttribute(s,"aria-pressed",r),(e._options||e.labels)&&c!==(c=t._options.hide?t.labels.stick:t.labels.unstick)&&(s.title=c)},d(e){e&&detachNode(s),removeListener(s,"click",l)}}}function PNotifyButtons(e){init(this,e),this._state=assign(data(),e.data),this._recompute({sticker:1,_notice:1,closer:1,classes:1},this._state),this._intro=!0,document.getElementById("svelte-1yjle82-style")||add_css(),e.root||(this._oncreate=[]),this._fragment=create_main_fragment(this,this._state),this.root._oncreate.push(()=>{oncreate.call(this),this.fire("update",{changed:assignTrue({},this._state),current:this._state})}),e.target&&(this._fragment.c(),this._mount(e.target,e.anchor),callAll(this._oncreate))}function createElement(e){return document.createElement(e)}function appendNode(e,t){t.appendChild(e)}function createText(e){return document.createTextNode(e)}function createComment(){return document.createComment("")}function insertNode(e,t,s){t.insertBefore(e,s)}function detachNode(e){e.parentNode.removeChild(e)}function addListener(e,t,s){e.addEventListener(t,s,!1)}function setAttribute(e,t,s){e.setAttribute(t,s)}function removeListener(e,t,s){e.removeEventListener(t,s,!1)}function init(e,t){e._handlers=blankObject(),e._bind=t._bind,e.options=t,e.root=t.root||e,e.store=e.root.store||t.store}function assign(e,t){for(var s in t)e[s]=t[s];return e}function assignTrue(e,t){for(var s in t)e[s]=1;return e}function callAll(e){for(;e&&e.length;)e.shift()()}function destroy(e){this.destroy=noop,this.fire("destroy"),this.set=noop,this._fragment.d(!1!==e),this._fragment=null,this._state={}}function get(){return this._state}function fire(e,t){var s=e in this._handlers&&this._handlers[e].slice();if(s)for(var i=0;i{let s=t?t.get().modules:e.modules,i=s&&s.Callbacks?s.Callbacks:{};return i[o]?i[o]:()=>!0};function setup(t){t.key="Callbacks",t.getCallbacks=callbacks;let e=PNotify.alert,o=PNotify.notice,s=PNotify.info,i=PNotify.success,n=PNotify.error,a=(t,e)=>{callbacks(null,e,"beforeInit")(e);let o=t(e);return callbacks(o,null,"afterInit")(o),o};PNotify.alert=(t=>a(e,t)),PNotify.notice=(t=>a(o,t)),PNotify.info=(t=>a(s,t)),PNotify.success=(t=>a(i,t)),PNotify.error=(t=>a(n,t)),PNotify.modules.Callbacks=t}function create_main_fragment(t,e){return{c:noop,m:noop,p:noop,d:noop}}function PNotifyCallbacks(t){init(this,t),this._state=assign({},t.data),this._intro=!0,this._fragment=create_main_fragment(this,this._state),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor))}function noop(){}function init(t,e){t._handlers=blankObject(),t._bind=e._bind,t.options=e,t.root=e.root||t,t.store=t.root.store||e.store}function assign(t,e){for(var o in e)t[o]=e[o];return t}function destroy(t){this.destroy=noop,this.fire("destroy"),this.set=noop,this._fragment.d(!1!==t),this._fragment=null,this._state={}}function get(){return this._state}function fire(t,e){var o=t in this._handlers&&this._handlers[t].slice();if(o)for(var s=0;s{const s=t?Object.assign({},o?PNotifyCompat.prototype.options[o]:{},e):Object.assign({},PNotifyCompat.prototype.options,e),l=e=>{let t,o=e;for(;-1!==(t=o.indexOf("_"));)o=o.slice(0,t)+o.slice(t+1,t+2).toUpperCase()+o.slice(t+2);return o};for(let e in s)if(s.hasOwnProperty(e)&&-1!==e.indexOf("_")){s[l(e)]=s[e],delete s[e]}return t||(s.hasOwnProperty("addclass")&&(s.addClass=s.addclass,delete s.addclass),s.hasOwnProperty("cornerclass")&&(s.cornerClass=s.cornerclass,delete s.cornerClass),s.hasOwnProperty("textEscape")&&(s.textTrusted=!s.textEscape,delete s.textEscape),s.hasOwnProperty("titleEscape")&&(s.titleTrusted=!s.titleEscape,delete s.titleEscape),s.hasOwnProperty("styling")&&("bootstrap3"===s.styling?s.icons="bootstrap3":"fontawesome"===s.styling&&(s.styling="bootstrap3",s.icons="fontawesome4")),s.hasOwnProperty("stack")&&s.stack.overlay_close&&(s.stack.overlayClose=s.stack.overlay_close),s.modules={},s.hasOwnProperty("animate")&&(s.modules.Animate=translateOptions(s.animate,!0,"animate"),delete s.animate),s.hasOwnProperty("buttons")&&(s.modules.Buttons=translateOptions(s.buttons,!0,"buttons"),delete s.buttons,s.modules.Buttons.classes&&(s.modules.Buttons.classes=translateOptions(s.modules.Buttons.classes,!0))),s.hasOwnProperty("confirm")&&(s.modules.Confirm=translateOptions(s.confirm,!0,"confirm"),s.modules.Confirm.promptDefault&&(s.modules.Confirm.promptValue=s.modules.Confirm.promptDefault,delete s.modules.Confirm.promptDefault),delete s.confirm),s.hasOwnProperty("desktop")&&(s.modules.Desktop=translateOptions(s.desktop,!0,"desktop"),delete s.desktop),s.hasOwnProperty("history")&&(s.modules.History=translateOptions(s.history,!0,"history"),delete s.history),s.hasOwnProperty("mobile")&&(s.modules.Mobile=translateOptions(s.mobile,!0,"mobile"),delete s.mobile),s.hasOwnProperty("nonblock")&&(s.modules.NonBlock=translateOptions(s.nonblock,!0,"nonblock"),delete s.nonblock),s.hasOwnProperty("reference")&&(s.modules.Reference=translateOptions(s.reference,!0,"reference"),delete s.reference),s.hasOwnProperty("beforeInit")&&(s.modules.Callbacks||(s.modules.Callbacks={}),s.modules.Callbacks.beforeInit=s.beforeInit,delete s.beforeInit),s.hasOwnProperty("afterInit")&&(s.modules.Callbacks||(s.modules.Callbacks={}),s.modules.Callbacks.afterInit=s.afterInit,delete s.afterInit),s.hasOwnProperty("beforeOpen")&&(s.modules.Callbacks||(s.modules.Callbacks={}),s.modules.Callbacks.beforeOpen=s.beforeOpen,delete s.beforeOpen),s.hasOwnProperty("afterOpen")&&(s.modules.Callbacks||(s.modules.Callbacks={}),s.modules.Callbacks.afterOpen=s.afterOpen,delete s.afterOpen),s.hasOwnProperty("beforeClose")&&(s.modules.Callbacks||(s.modules.Callbacks={}),s.modules.Callbacks.beforeClose=s.beforeClose,delete s.beforeClose),s.hasOwnProperty("afterClose")&&(s.modules.Callbacks||(s.modules.Callbacks={}),s.modules.Callbacks.afterClose=s.afterClose,delete s.afterClose)),s};class PNotifyCompat extends PNotify{constructor(e){"object"!=typeof e&&(e={text:e}),PNotify.modules.Callbacks&&e.before_init&&e.before_init(e),e=translateOptions(e),super({target:document.body,data:e});const t=this.get;this.get=function(e){return void 0===e?Object.assign(window.jQuery?window.jQuery(this.refs.elem):this.refs.elem,t.call(this)):t.call(this,e)},this.on("pnotify.confirm",e=>{window.jQuery&&window.jQuery(this.refs.elem).trigger("pnotify.confirm",[this,e.value])}),this.on("pnotify.cancel",e=>{window.jQuery&&window.jQuery(this.refs.elem).trigger("pnotify.cancel",this)}),PNotify.modules.Callbacks&&PNotify.modules.Callbacks.getCallbacks(this,null,"afterInit")(this)}update(e){return e=translateOptions(e),super.update(e)}}PNotifyCompat.prototype.options={text_escape:!1,title_escape:!1},PNotifyCompat.reload=(()=>PNotifyCompat),PNotifyCompat.removeAll=(()=>PNotify.removeAll()),PNotifyCompat.removeStack=(e=>PNotify.removeStack(e)),PNotifyCompat.positionAll=(e=>PNotify.positionAll(e)),PNotifyCompat.desktop={permission:()=>{PNotify.modules.Desktop.permission()}},window.jQuery&&window.jQuery(()=>{window.jQuery(document.body).on("pnotify.history-last",function(){PNotify.modules.History.showLast()})});export default PNotifyCompat; +//# sourceMappingURL=PNotifyCompat.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/dist/es/PNotifyCompat.js.map b/app/node_modules/pnotify/dist/es/PNotifyCompat.js.map new file mode 100644 index 00000000..1b593638 --- /dev/null +++ b/app/node_modules/pnotify/dist/es/PNotifyCompat.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["PNotifyCompat.js"],"names":["PNotify","translateOptions","options","module","moduleName","newOptions","Object","assign","PNotifyCompat","prototype","translateName","badName","underscoreIndex","goodName","indexOf","slice","toUpperCase","name","hasOwnProperty","addClass","addclass","cornerClass","cornerclass","textTrusted","textEscape","titleTrusted","titleEscape","styling","icons","stack","overlay_close","overlayClose","modules","Animate","animate","Buttons","buttons","classes","Confirm","confirm","promptDefault","promptValue","Desktop","desktop","History","history","Mobile","mobile","NonBlock","nonblock","Reference","reference","Callbacks","beforeInit","afterInit","beforeOpen","afterOpen","beforeClose","afterClose","[object Object]","text","before_init","super","target","document","body","data","_get","this","get","option","undefined","window","jQuery","refs","elem","call","on","e","trigger","value","getCallbacks","update","text_escape","title_escape","reload","removeAll","removeStack","positionAll","permission","showLast"],"mappings":"OAAOA,YAAa,eAGpB,MAAMC,iBAAmB,CAACC,EAASC,EAAQC,KAEzC,MAAMC,EAAaF,EAASG,OAAOC,UAAWH,EAAaI,cAAcC,UAAUP,QAAQE,MAAkBF,GAAWI,OAAOC,UAAWC,cAAcC,UAAUP,QAASA,GACrKQ,EAAiBC,IACrB,IACIC,EADAC,EAAWF,EAEf,MAAsD,KAA9CC,EAAkBC,EAASC,QAAQ,OACzCD,EAAWA,EAASE,MAAM,EAAGH,GAAmBC,EAASE,MAAMH,EAAkB,EAAGA,EAAkB,GAAGI,cAAgBH,EAASE,MAAMH,EAAkB,GAE5J,OAAOC,GAIT,IAAK,IAAII,KAAQZ,EACf,GAAIA,EAAWa,eAAeD,KAAgC,IAAvBA,EAAKH,QAAQ,KAAa,CAE/DT,EADiBK,EAAcO,IACRZ,EAAWY,UAC3BZ,EAAWY,GA6HtB,OAzHKd,IAECE,EAAWa,eAAe,cAC5Bb,EAAWc,SAAWd,EAAWe,gBAC1Bf,EAAWe,UAEhBf,EAAWa,eAAe,iBAC5Bb,EAAWgB,YAAchB,EAAWiB,mBAC7BjB,EAAWgB,aAEhBhB,EAAWa,eAAe,gBAC5Bb,EAAWkB,aAAelB,EAAWmB,kBAC9BnB,EAAWmB,YAEhBnB,EAAWa,eAAe,iBAC5Bb,EAAWoB,cAAgBpB,EAAWqB,mBAC/BrB,EAAWqB,aAIhBrB,EAAWa,eAAe,aACD,eAAvBb,EAAWsB,QACbtB,EAAWuB,MAAQ,aACa,gBAAvBvB,EAAWsB,UACpBtB,EAAWsB,QAAU,aACrBtB,EAAWuB,MAAQ,iBAKnBvB,EAAWa,eAAe,UACxBb,EAAWwB,MAAMC,gBACnBzB,EAAWwB,MAAME,aAAe1B,EAAWwB,MAAMC,eAKrDzB,EAAW2B,WACP3B,EAAWa,eAAe,aAC5Bb,EAAW2B,QAAQC,QAAUhC,iBAAiBI,EAA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AAOC,OAAOL,KAAKM,KAAKC,MAAMI,QAAQ,iBAAkBX,QAIxDpE,QAAQgC,QAAQoB,WAClBpD,QAAQgC,QAAQoB,UAAU6B,aAAab,KAAM,KAAM,YAAnDpE,CAAgEoE,MAIpET,OAAQzD,GAEN,OADAA,EAAUD,iBAAiBC,GACpB4D,MAAMoB,OAAOhF,IAKxBM,cAAcC,UAAUP,SACtBiF,aAAa,EACbC,cAAc,GAIhB5E,cAAc6E,OAAS,KAAM7E,eAC7BA,cAAc8E,UAAY,KAAMtF,QAAQsF,aACxC9E,cAAc+E,YAAc,CAAC1D,GAAU7B,QAAQuF,YAAY1D,IAC3DrB,cAAcgF,YAAc,CAACtD,GAAYlC,QAAQwF,YAAYtD,IAG7D1B,cAAcmC,SACZ8C,WAAY,KACVzF,QAAQgC,QAAQU,QAAQ+C,eAKxBjB,OAAOC,QACTD,OAAOC,OAAO,KACZD,OAAOC,OAAOT,SAASC,MAAMY,GAAG,uBAAwB,WACtD7E,QAAQgC,QAAQY,QAAQ8C,8BAKflF","file":"PNotifyCompat.js","sourceRoot":"../"} \ No newline at end of file diff --git a/app/node_modules/pnotify/dist/es/PNotifyConfirm.js b/app/node_modules/pnotify/dist/es/PNotifyConfirm.js new file mode 100644 index 00000000..107dbb64 --- /dev/null +++ b/app/node_modules/pnotify/dist/es/PNotifyConfirm.js @@ -0,0 +1,2 @@ +import PNotify from"./PNotify.js";function data(){return Object.assign({_notice:null,_options:{}},PNotify.modules.Confirm.defaults)}var methods={initModule(t){this.set(t)},afterOpen(){this.get().prompt&&(this.get().promptMultiLine?this.refs.promptMulti.focus():this.refs.promptSingle.focus())},handleClick(t,e){t.click&&t.click(this.get()._notice,this.get().prompt?this.get().promptValue:null,e)},handleKeyPress(t){if(13===t.keyCode&&!t.shiftKey){t.preventDefault();const{buttons:e}=this.get();for(let n=0;n{t.close(),t.fire("pnotify.confirm",{notice:t,value:e})}},{text:"Cancel",textTrusted:!1,addClass:"",click:t=>{t.close(),t.fire("pnotify.cancel",{notice:t})}}]},PNotify.modules.Confirm=t,PNotify.modulesAppendContainer.push(t),Object.assign(PNotify.styling.brighttheme,{actionBar:"",promptBar:"",btn:"",btnPrimary:"brighttheme-primary",input:""}),Object.assign(PNotify.styling.bootstrap3,{actionBar:"ui-pnotify-confirm-ml",promptBar:"ui-pnotify-confirm-ml",btn:"btn btn-default ui-pnotify-confirm-mx-1",btnPrimary:"btn btn-default ui-pnotify-confirm-mx-1 btn-primary",input:"form-control"}),Object.assign(PNotify.styling.bootstrap4,{actionBar:"ui-pnotify-confirm-ml",promptBar:"ui-pnotify-confirm-ml",btn:"btn btn-secondary mx-1",btnPrimary:"btn btn-primary mx-1",input:"form-control"}),PNotify.styling.material||(PNotify.styling.material={}),Object.assign(PNotify.styling.material,{actionBar:"",promptBar:"",btn:"",btnPrimary:"ui-pnotify-material-primary",input:""})}function add_css(){var t=createElement("style");t.id="svelte-1y9suua-style",t.textContent=".ui-pnotify-action-bar.svelte-1y9suua,.ui-pnotify-prompt-bar.svelte-1y9suua{margin-top:5px;clear:both}.ui-pnotify-action-bar.svelte-1y9suua{display:flex;flex-wrap:wrap;justify-content:flex-end}.ui-pnotify-prompt-input.svelte-1y9suua{margin-bottom:5px;display:block;width:100%}.ui-pnotify-confirm-mx-1.svelte-1y9suua{margin:0 5px}.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-confirm-ml{margin-left:24px}[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-confirm-ml{margin-right:24px;margin-left:0}",appendNode(t,document.head)}function create_main_fragment(t,e){var n,i=(e.confirm||e.prompt)&&create_if_block(t,e);return{c(){i&&i.c(),n=createComment()},m(t,e){i&&i.m(t,e),insertNode(n,t,e)},p(e,o){o.confirm||o.prompt?i?i.p(e,o):((i=create_if_block(t,o)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){i&&i.d(t),t&&detachNode(n)}}}function create_if_block_2(t,e){var n,i,o=!1;function r(){o=!0,t.set({promptValue:n.value}),o=!1}function s(e){t.handleKeyPress(e)}return{c(){addListener(n=createElement("textarea"),"input",r),addListener(n,"keypress",s),n.rows="5",n.className=i="\n ui-pnotify-prompt-input\n "+(e._notice.get()._styles.input?e._notice.get()._styles.input:"")+"\n "+e.promptClass+"\n svelte-1y9suua"},m(i,o){insertNode(n,i,o),t.refs.promptMulti=n,n.value=e.promptValue},p(t,e){o||(n.value=e.promptValue),(t._notice||t.promptClass)&&i!==(i="\n ui-pnotify-prompt-input\n "+(e._notice.get()._styles.input?e._notice.get()._styles.input:"")+"\n "+e.promptClass+"\n svelte-1y9suua")&&(n.className=i)},d(e){e&&detachNode(n),removeListener(n,"input",r),removeListener(n,"keypress",s),t.refs.promptMulti===n&&(t.refs.promptMulti=null)}}}function create_if_block_3(t,e){var n,i,o=!1;function r(){o=!0,t.set({promptValue:n.value}),o=!1}function s(e){t.handleKeyPress(e)}return{c(){addListener(n=createElement("input"),"input",r),addListener(n,"keypress",s),setAttribute(n,"type","text"),n.className=i="\n ui-pnotify-prompt-input\n "+(e._notice.get()._styles.input?e._notice.get()._styles.input:"")+"\n "+e.promptClass+"\n svelte-1y9suua"},m(i,o){insertNode(n,i,o),t.refs.promptSingle=n,n.value=e.promptValue},p(t,e){o||(n.value=e.promptValue),(t._notice||t.promptClass)&&i!==(i="\n ui-pnotify-prompt-input\n "+(e._notice.get()._styles.input?e._notice.get()._styles.input:"")+"\n "+e.promptClass+"\n svelte-1y9suua")&&(n.className=i)},d(e){e&&detachNode(n),removeListener(n,"input",r),removeListener(n,"keypress",s),t.refs.promptSingle===n&&(t.refs.promptSingle=null)}}}function create_if_block_1(t,e){var n,i;function o(t){return t.promptMultiLine?create_if_block_2:create_if_block_3}var r=o(e),s=r(t,e);return{c(){n=createElement("div"),s.c(),n.className=i="\n ui-pnotify-prompt-bar\n "+(e._notice.get()._styles.promptBar?e._notice.get()._styles.promptBar:"")+"\n "+(e._notice.get()._styles.text?e._notice.get()._styles.text:"")+"\n svelte-1y9suua"},m(t,e){insertNode(n,t,e),s.m(n,null)},p(e,a){r===(r=o(a))&&s?s.p(e,a):(s.d(1),(s=r(t,a)).c(),s.m(n,null)),e._notice&&i!==(i="\n ui-pnotify-prompt-bar\n "+(a._notice.get()._styles.promptBar?a._notice.get()._styles.promptBar:"")+"\n "+(a._notice.get()._styles.text?a._notice.get()._styles.text:"")+"\n svelte-1y9suua")&&(n.className=i)},d(t){t&&detachNode(n),s.d()}}}function create_each_block(t,e){var n,i;function o(t){return t.button.textTrusted?create_if_block_4:create_if_block_5}var r=o(e),s=r(t,e);return{c(){n=createElement("button"),s.c(),n._svelte={component:t,ctx:e},addListener(n,"click",click_handler),n.type="button",n.className=i="\n ui-pnotify-action-button\n "+(e.button.primary?e._notice.get()._styles.btnPrimary?e._notice.get()._styles.btnPrimary:"":e._notice.get()._styles.btn?e._notice.get()._styles.btn:"")+"\n "+(e.button.addClass?e.button.addClass:"")+"\n svelte-1y9suua"},m(t,e){insertNode(n,t,e),s.m(n,null)},p(e,a){r===(r=o(a))&&s?s.p(e,a):(s.d(1),(s=r(t,a)).c(),s.m(n,null)),n._svelte.ctx=a,(e.buttons||e._notice)&&i!==(i="\n ui-pnotify-action-button\n "+(a.button.primary?a._notice.get()._styles.btnPrimary?a._notice.get()._styles.btnPrimary:"":a._notice.get()._styles.btn?a._notice.get()._styles.btn:"")+"\n "+(a.button.addClass?a.button.addClass:"")+"\n svelte-1y9suua")&&(n.className=i)},d(t){t&&detachNode(n),s.d(),removeListener(n,"click",click_handler)}}}function create_if_block_4(t,e){var n,i,o=e.button.text;return{c(){n=createElement("noscript"),i=createElement("noscript")},m(t,e){insertNode(n,t,e),n.insertAdjacentHTML("afterend",o),insertNode(i,t,e)},p(t,e){t.buttons&&o!==(o=e.button.text)&&(detachBetween(n,i),n.insertAdjacentHTML("afterend",o))},d(t){t&&(detachBetween(n,i),detachNode(n),detachNode(i))}}}function create_if_block_5(t,e){var n,i=e.button.text;return{c(){n=createText(i)},m(t,e){insertNode(n,t,e)},p(t,e){t.buttons&&i!==(i=e.button.text)&&(n.data=i)},d(t){t&&detachNode(n)}}}function create_if_block(t,e){for(var n,i,o,r,s=e.prompt&&create_if_block_1(t,e),a=e.buttons,c=[],l=0;l{oncreate.call(this),this.fire("update",{changed:assignTrue({},this._state),current:this._state})}),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor),callAll(this._oncreate))}function createElement(t){return document.createElement(t)}function appendNode(t,e){e.appendChild(t)}function createComment(){return document.createComment("")}function insertNode(t,e,n){e.insertBefore(t,n)}function detachNode(t){t.parentNode.removeChild(t)}function addListener(t,e,n){t.addEventListener(e,n,!1)}function removeListener(t,e,n){t.removeEventListener(e,n,!1)}function setAttribute(t,e,n){t.setAttribute(e,n)}function detachBetween(t,e){for(;t.nextSibling&&t.nextSibling!==e;)t.parentNode.removeChild(t.nextSibling)}function createText(t){return document.createTextNode(t)}function setStyle(t,e,n){t.style.setProperty(e,n)}function destroyEach(t,e){for(var n=0;n(notify="Notification"in window?(t,i,e,o)=>{const n=new Notification(t,i);return"NotificationEvent"in window?(n.addEventListener("notificationclick",e),n.addEventListener("close",o)):"addEventListener"in n?(n.addEventListener("click",e),n.addEventListener("close",o)):(n.onclick=e,n.onclose=o),n}:"mozNotification"in navigator?(t,i,e,o)=>{const n=navigator.mozNotification.createNotification(t,i.body,i.icon).show();return n.onclick=e,n.onclose=o,n}:"webkitNotifications"in window?(t,i,e,o)=>{const n=window.webkitNotifications.createNotification(i.icon,t,i.body);return n.onclick=e,n.onclose=o,n}:(t,i,e,o)=>null)(t,i,e,o);function data(){return Object.assign({_notice:null,_options:{}},PNotify.modules.Desktop.defaults)}var methods={initModule(t){this.set(t);const{_notice:i}=this.get();this.set({_oldAnimation:i.get().animation}),i.on("state",({changed:t,current:e,previous:o})=>{t.animation&&(void 0===o.animation||"none"!==e.animation||"none"===o.animation&&e.animation!==this.get()._oldAnimation)&&this.set({_oldAnimation:e.animation}),t._animatingClass&&(""===e._animatingClass||0!==permission&&this.get().fallback||!this.get().desktop||i.set({_animatingClass:""}))}),this.get().desktop&&(0===(permission=PNotify.modules.Desktop.checkPermission())?(i.set({animation:"none"}),i.addModuleClass("ui-pnotify-desktop-hide"),this.genNotice()):this.get().fallback||i.set({autoDisplay:!1}))},update(){const{_notice:t}=this.get();if(0!==permission&&this.get().fallback||!this.get().desktop)return t.set({animation:this.get()._oldAnimation}),void t.removeModuleClass("ui-pnotify-desktop-hide");t.set({animation:"none"}),t.addModuleClass("ui-pnotify-desktop-hide"),this.genNotice()},beforeOpen(){if(this.get().desktop&&0!==permission&&PNotify.modules.Desktop.permission(),0!==permission&&this.get().fallback||!this.get().desktop)return;const{_desktop:t}=this.get();t&&"show"in t&&(this.get()._notice.set({_moduleIsNoticeOpen:!0}),t.show())},beforeClose(){if(0!==permission&&this.get().fallback||!this.get().desktop)return;const{_desktop:t}=this.get();t&&"close"in t&&(t.close(),this.get()._notice.set({_moduleIsNoticeOpen:!1}))},genNotice(){const{_notice:t,icon:i}=this.get();if(null===i)switch(t.get().type){case"error":this.set({_icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQg7e6HvQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABr0lEQVRYw8WXu0oDQRSGv7hRSFYrLTTWKihaqUgUJO+gphBLL1jYpPSCVcAggpWthYhC7Ows9An0IbSPkMRCw8ZmFuI6yczs9cAPuzNz5v92brtrESxGARtokkCcAg2hk7jNl4G2R/m4zFPAiwTgWdRFHnmJuaulOAAaPQDqUZvv9DB3tR0lwIcGwHtU5uca5q4qYZvngJbHpAZ8CtU8dS1gLEyAisegBGTFKWiL65KnzVlY5uOSId6VtNuTtMupOu/TAHiQlNmSskHNXCOAGWBeUp7VhFoApoMAXAOWJoCszBJ9+ALY6vL0JiPgjsKmKUAaOOoBZwIAcNxlJLsCrAOTIQJMAWu62y4LOIqT7lGS96TIcYCMDkBZ46h1gB+PHI28ssq8X/G6DaqG8Piz2DrjVjGXbtSBy46F5QAHwJAizwZugKKscs7gSaqS/KpB/qxsFxwafhf6Odb/eblJi8BGwJdW26BtURxQpMU83hmaDQsNiPtvYMSwj3tgAqDgYzU7wJdHjo9+CgBvEW47lV5Tgj5DMtG0xIfESkIAF+522gdWxTzGEX3i9+6KpOMXF5UBt0NKJCAAAAAASUVORK5CYII="});break;case"success":this.set({_icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQPRj+65AAAAdBJREFUWMPtlzsvRFEQx3+7HmEjoiYKolVJJDRqnS8ggvVIVEQhCIUsEYJGCEH2E4h4FPREaLTbEo1IEJXHrmY2GTf33nPuY7ud5OTenTMz//89Z86ZWShLWf5LB3AOfACFiOMF2AkC3qOc88BXxFEAxlX8ftGdaNCEen8H6oFHYBR4FocwkpTngzzHgF01fwL0aYcp9fVtMW/rsMcWXWijK1Hexgye9smRT6CxaHgjytMYwccNSXqoja9FeVbiZS+OVaeDiUBLAPAJA/i2m5MXgRSQk7llC/DBMOBeBGqAe0eAjQhfvurH3EmgQk6EW6CVEHt+ZFo6J4EU8OoTcF35jhnAl2wSx20LFgyB1yyOWtY2c72ScMAAkPeZy6g4zUBdGAIAcyEq4Z7y7xbdTFgCACMBwPVJqVDHeNqvaplkH5i0sNuUwmaNkQxww20ZSOy7gFvX7SAk0i76jPQQlJoAwAEwq35ngfmwVatSdUMArZZ+K9JQ1Bp6iGqgSt7f/AIOqSzujLEn6AV+JG6zm4HuCZ+AJuAbWAQu5aIJu7JDck0ngDugC/j1c2qPqR13jpxuvWyS8liY/kQcean/lX6ACQ99DdAQYe+Lf0zylMUgf7qDKgzv284QAAAAAElFTkSuQmCC"});break;case"info":this.set({_icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQ09zRTwAAAAdxJREFUWMPtl88rRFEUxz8zBolRCgsrpOym8TMSO2WplLKwUrKi/B0W7JSFmhVLNlhSlLKx8CtRGpEsJpofpZk3Nkc9b968e++8mdlw6vTeu/edc773nl/3wl+ngOH/zUAf0AN0AmEgB7wCD8AtcFMJoM3ADpAHLHk62RIwL8B0uQwHgXVRnDfkS2DSj/EW4K0Ew05eLMV4O/CuUJwEUvJUgdgwMd4IpBUKl13kVG6aL+ZjJ20DDQqQXy5jKYVMDBhVrb5f069LLrKfGnInqh040HRTvsTAHgei9oGQ7X0YaNNUNCdFKChgQvKtQ1vAkNvEahlSToez9oXad2BCA30ceHZxRxMQMShuvZLmv+hOA32/h+KUwS7MugVhqwb6Go+5nEEwht0ABDUEzyXdFsrQYwqMJjTbdxio9Qkg6QbgvkpnkLw0uQIAZ1UCYNkXawdw4qPCmVBcuADAMZCpAoCVYr3AKtYyHZSWauakjMx50TWwrzJw6lFARjQOt3se8jM6W9TloSCqIb9bRHbN5Fg+KkEZcow/Ak+KFBsD6h3jR8CUabAMlqn7xfxEbAdwWKLhhO3sGPCbOsNSvSyF0Z/5TaCuEleziLhmAOiWG1NWrmZXwIVU1A/+SZO+AcgLC4wt0zD3AAAAAElFTkSuQmCC"});break;case"notice":default:this.set({_icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATM4scOJLAAAAcxJREFUWMPtljtLA0EQx3+J0QRfnYqCiCA+MERBrIwgFtoFbMTOR61i5QcQBdEihZWNoEWwsNAvkMJeBLHRQtHC0iIP4utOmw2cx97d7l2SRgcGbufmv/Pf2dmdhb8uIR+YJqAPaBff30AeeAHuxLgqMgRkgS/AAEybGuLfEdBcycCTwKVYmY5mgO6gwdd8BLaqAST9Bs8EDG7VTd3gex4TbgEjwKjQOHDugZlRDb7sMZEJpCS4bYVMJOygsG1cB+wqHN0Gib1RYXFpLwL74nx7Sb3EFlXATQNjTgRagA3FbZIRiCliT5wITGgUaRACA0CPjMC4xtUcDUAgDAzLCCQ0MhALQCAE9MoIdGkQCJIBgE4ZgWiNMvDL10qgUMMMFGQEnjQmkLXbVg38s8y4qtFcTCAnHiJ5oKiJnSoHjVgIXAmHkGIl5yy+YcWruIy9dvqpupIDCfZWEXvh1gsWFVfxIbG9a3RbRwJnYiuqJYfAqxsBgBWFiQyJzfTAlIB1uzEicbwBFoBTl8lSwINoSuXKjrv4F4FBh61zlKUKvgn7/e5ZEngMEDgLdFSieHaAT42LpgTMVbqC24B54Bi4twV9E6cnDcw6PFj+RSo/l6rlSlldhx4AAAAASUVORK5CYII="})}else!1===i?this.set({_icon:null}):this.set({_icon:i});let{tag:e}=this.get();this.get()._tag&&null===e||this.set({_tag:null===e?"PNotify-"+Math.round(1e6*Math.random()):e});const o={body:this.get().text||t.get().text,tag:this.get()._tag};t.get().hide||(o.requireInteraction=!0),null!==this.get()._icon&&(o.icon=this.get()._icon),Object.apply(o,this.get().options);const n=notify(this.get().title||t.get().title,o,()=>{t.fire("click",{target:n})},()=>{t.close()});t.set({_moduleIsNoticeOpen:!0}),this.set({_desktop:n}),!("close"in n)&&"cancel"in n&&(n.close=(()=>{n.cancel()}))}};function setup(t){t.key="Desktop",t.defaults={desktop:!1,fallback:!0,icon:null,tag:null,title:null,text:null,options:{}},t.init=(i=>new t({target:document.body})),t.permission=(()=>{void 0!==Notification&&"requestPermission"in Notification?Notification.requestPermission():"webkitNotifications"in window&&window.webkitNotifications.requestPermission()}),t.checkPermission=(()=>void 0!==Notification&&"permission"in Notification?"granted"===Notification.permission?0:1:"webkitNotifications"in window&&0==window.webkitNotifications.checkPermission()?0:1),permission=t.checkPermission(),PNotify.modules.Desktop=t}function add_css(){var t=createElement("style");t.id="svelte-xbgnx4-style",t.textContent="[ui-pnotify].ui-pnotify-desktop-hide.ui-pnotify{left:-10000px !important;display:none !important}",appendNode(t,document.head)}function create_main_fragment(t,i){return{c:noop,m:noop,p:noop,d:noop}}function PNotifyDesktop(t){init(this,t),this._state=assign(data(),t.data),this._intro=!0,document.getElementById("svelte-xbgnx4-style")||add_css(),this._fragment=create_main_fragment(this,this._state),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor))}function createElement(t){return document.createElement(t)}function appendNode(t,i){i.appendChild(t)}function noop(){}function init(t,i){t._handlers=blankObject(),t._bind=i._bind,t.options=i,t.root=i.root||t,t.store=t.root.store||i.store}function assign(t,i){for(var e in i)t[e]=i[e];return t}function destroy(t){this.destroy=noop,this.fire("destroy"),this.set=noop,this._fragment.d(!1!==t),this._fragment=null,this._state={}}function get(){return this._state}function fire(t,i){var e=t in this._handlers&&this._handlers[t].slice();if(e)for(var o=0;ot){const o="top"===e.push,i=[];let s=0;for(let n=o?0:PNotify.notices.length-1;o?n=0;o?n++:n--)-1!==["opening","open"].indexOf(PNotify.notices[n].get()._state)&&PNotify.notices[n].get().stack===e&&(s>=t?i.push(PNotify.notices[n]):s++);for(let t=0;tnew t({target:document.body})),t.showLast=(t=>{if(void 0===t&&(t=PNotify.defaultStack),!1===t)return;const o="top"===t.push;let e,i=o?0:PNotify.notices.length-1;do{if(!(e=PNotify.notices[i]))return;i+=o?1:-1}while(e.get().stack!==t||!e.get()._modules.History.get().history||"opening"===e.get()._state||"open"===e.get()._state);e.open()}),t.showAll=(t=>{if(void 0===t&&(t=PNotify.defaultStack),!1!==t)for(let o=0;o{if(!this.get().swipeDismiss)return;const{stack:o}=t.get();if(!1!==o)switch(o.dir1){case"up":case"down":r="left",l="X",a="Width";break;case"left":case"right":r="top",l="Y",a="Height"}e=i.touches[0]["screen"+l],n=t.refs.elem["scroll"+a],s=window.getComputedStyle(t.refs.elem).opacity,t.refs.container.style[r]=0}),t.on("touchmove",i=>{if(!e||!this.get().swipeDismiss)return;const a=i.touches[0]["screen"+l];o=a-e;const p=(1-Math.abs(o)/n)*s;t.refs.elem.style.opacity=p,t.refs.container.style[r]=o+"px"}),t.on("touchend",()=>{if(e&&this.get().swipeDismiss){if(t.refs.container.classList.add("ui-pnotify-mobile-animate-left"),Math.abs(o)>40){const i=o<0?-2*n:2*n;t.refs.elem.style.opacity=0,t.refs.container.style[r]=i+"px",t.close()}else t.refs.elem.style.removeProperty("opacity"),t.refs.container.style.removeProperty(r);e=null,o=null,n=null,s=null}}),t.on("touchcancel",()=>{e&&this.get().swipeDismiss&&(t.refs.elem.style.removeProperty("opacity"),t.refs.container.style.removeProperty(r),e=null,o=null,n=null,s=null)}),this.doMobileStyling()},update(){this.doMobileStyling()},beforeOpen(){window.addEventListener("resize",this.get()._doMobileStylingBound)},afterClose(){if(window.removeEventListener("resize",this.get()._doMobileStylingBound),!this.get().swipeDismiss)return;const{_notice:i}=this.get();i.refs.elem.style.removeProperty("opacity"),i.refs.container.style.removeProperty("left"),i.refs.container.style.removeProperty("top")},doMobileStyling(){const{_notice:i}=this.get(),{stack:t}=i.get();if(this.get().styling){if(!1!==t)switch(window.innerWidth<=480?(t.mobileOrigSpacing1||(t.mobileOrigSpacing1=t.spacing1),t.spacing1=0,t.mobileOrigFirstpos1||(t.mobileOrigFirstpos1=t.firstpos1),t.firstpos1=0,t.mobileOrigSpacing2||(t.mobileOrigSpacing2=t.spacing2),t.spacing2=0,t.mobileOrigFirstpos2||(t.mobileOrigFirstpos2=t.firstpos2),t.firstpos2=0):(t.mobileOrigSpacing1&&(t.spacing1=t.mobileOrigSpacing1,delete t.mobileOrigSpacing1),t.mobileOrigFirstpos1&&(t.firstpos1=t.mobileOrigFirstpos1,delete t.mobileOrigFirstpos1),t.mobileOrigSpacing2&&(t.spacing2=t.mobileOrigSpacing2,delete t.mobileOrigSpacing2),t.mobileOrigFirstpos2&&(t.firstpos2=t.mobileOrigFirstpos2,delete t.mobileOrigFirstpos2)),t.dir1){case"down":i.addModuleClass("ui-pnotify-mobile-top");break;case"up":i.addModuleClass("ui-pnotify-mobile-bottom");break;case"left":i.addModuleClass("ui-pnotify-mobile-right");break;case"right":i.addModuleClass("ui-pnotify-mobile-left")}i.addModuleClass("ui-pnotify-mobile-able")}else i.removeModuleClass("ui-pnotify-mobile-able","ui-pnotify-mobile-top","ui-pnotify-mobile-bottom","ui-pnotify-mobile-right","ui-pnotify-mobile-left"),!1!==t&&(t.mobileOrigSpacing1&&(t.spacing1=t.mobileOrigSpacing1,delete t.mobileOrigSpacing1),t.mobileOrigFirstpos1&&(t.firstpos1=t.mobileOrigFirstpos1,delete t.mobileOrigFirstpos1),t.mobileOrigSpacing2&&(t.spacing2=t.mobileOrigSpacing2,delete t.mobileOrigSpacing2),t.mobileOrigFirstpos2&&(t.firstpos2=t.mobileOrigFirstpos2,delete t.mobileOrigFirstpos2))}};function oncreate(){this.set({_doMobileStylingBound:this.doMobileStyling.bind(this)})}function setup(i){i.key="Mobile",i.defaults={swipeDismiss:!0,styling:!0},i.init=(t=>new i({target:document.body})),PNotify.modules.Mobile=i}function add_css(){var i=createElement("style");i.id="svelte-49u8sj-style",i.textContent="[ui-pnotify] .ui-pnotify-container{position:relative}[ui-pnotify] .ui-pnotify-mobile-animate-left{transition:left .1s ease}[ui-pnotify] .ui-pnotify-mobile-animate-top{transition:top .1s ease}@media(max-width: 480px){[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able{font-size:1.2em;-webkit-font-smoothing:antialiased;-moz-font-smoothing:antialiased;-ms-font-smoothing:antialiased;font-smoothing:antialiased}body > [ui-pnotify].ui-pnotify.ui-pnotify-mobile-able{position:fixed}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom{width:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right{height:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-shadow{border-bottom-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-shadow{border-top-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-shadow{border-right-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-shadow{border-left-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-container{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-container{width:auto !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-container{height:100% !important}}",appendNode(i,document.head)}function create_main_fragment(i,t){return{c:noop,m:noop,p:noop,d:noop}}function PNotifyMobile(i){init(this,i),this._state=assign(data(),i.data),this._intro=!0,document.getElementById("svelte-49u8sj-style")||add_css(),i.root||(this._oncreate=[]),this._fragment=create_main_fragment(this,this._state),this.root._oncreate.push(()=>{oncreate.call(this),this.fire("update",{changed:assignTrue({},this._state),current:this._state})}),i.target&&(this._fragment.c(),this._mount(i.target,i.anchor),callAll(this._oncreate))}function createElement(i){return document.createElement(i)}function appendNode(i,t){t.appendChild(i)}function noop(){}function init(i,t){i._handlers=blankObject(),i._bind=t._bind,i.options=t,i.root=t.root||i,i.store=i.root.store||t.store}function assign(i,t){for(var e in t)i[e]=t[e];return i}function assignTrue(i,t){for(var e in t)i[e]=1;return i}function callAll(i){for(;i&&i.length;)i.shift()()}function destroy(i){this.destroy=noop,this.fire("destroy"),this.set=noop,this._fragment.d(!1!==i),this._fragment=null,this._state={}}function get(){return this._state}function fire(i,t){var e=i in this._handlers&&this._handlers[i].slice();if(e)for(var o=0;onew t({target:document.body,data:{_notice:o}})),PNotify.modules.NonBlock=t}function create_main_fragment(t,o){return{c:noop,m:noop,p:noop,d:noop}}function PNotifyNonBlock(t){init(this,t),this._state=assign(data(),t.data),this._intro=!0,this._fragment=create_main_fragment(this,this._state),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor))}function noop(){}function init(t,o){t._handlers=blankObject(),t._bind=o._bind,t.options=o,t.root=o.root||t,t.store=t.root.store||o.store}function assign(t,o){for(var n in o)t[n]=o[n];return t}function destroy(t){this.destroy=noop,this.fire("destroy"),this.set=noop,this._fragment.d(!1!==t),this._fragment=null,this._state={}}function get(){return this._state}function fire(t,o){var n=t in this._handlers&&this._handlers[t].slice();if(n)for(var e=0;ethis.set({_mouseIsIn:!0})),t.on("mouseleave",()=>this.set({_mouseIsIn:!1}))},doSomething(){let e=0;const{_notice:t}=this.get(),n=setInterval(()=>{360===(e+=10)&&(e=0,clearInterval(n)),t.refs.elem.style.transform="rotate("+e+"deg)"},20)},update(){},beforeOpen(){},afterOpen(){},beforeClose(){},afterClose(){},beforeDestroy(){},afterDestroy(){}};function oncreate(){this.fire("init",{module:this})}function setup(e){e.key="Reference",e.defaults={putThing:!1,labels:{text:"Spin Around"}},PNotify.modules.Reference=e,PNotify.modulesAppendContainer.push(e),Object.assign(PNotify.icons.brighttheme,{athing:"bt-icon bt-icon-refresh"}),Object.assign(PNotify.icons.bootstrap3,{athing:"glyphicon glyphicon-refresh"}),Object.assign(PNotify.icons.fontawesome4,{athing:"fa fa-refresh"}),Object.assign(PNotify.icons.fontawesome5,{athing:"fas fa-sync"}),PNotify.icons.material||(PNotify.icons.material={}),Object.assign(PNotify.icons.material,{athing:"material-icons pnotify-material-icon-refresh"})}function add_css(){var e=createElement("style");e.id="svelte-1qy4b0e-style",e.textContent=".ui-pnotify-reference-button.svelte-1qy4b0e{float:right}.ui-pnotify-reference-clearing.svelte-1qy4b0e{clear:right;line-height:0}",appendNode(e,document.head)}function create_main_fragment(e,t){var n,i=t.putThing&&create_if_block(e,t);return{c(){i&&i.c(),n=createComment()},m(e,t){i&&i.m(e,t),insertNode(n,e,t)},p(t,s){s.putThing?i?i.p(t,s):((i=create_if_block(e,s)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(e){i&&i.d(e),e&&detachNode(n)}}}function create_if_block(e,t){var n,i,s,o,r,a,c,f,l=t.labels.text;function h(t){e.doSomething()}return{c(){n=createElement("button"),i=createElement("i"),o=createText(" "),r=createText(l),c=createText("\n \n "),f=createElement("div"),i.className=s=t._notice.get()._icons.athing+" svelte-1qy4b0e",addListener(n,"click",h),n.className="ui-pnotify-reference-button btn btn-default svelte-1qy4b0e",n.type="button",n.disabled=a=!t._mouseIsIn,f.className="ui-pnotify-reference-clearing svelte-1qy4b0e"},m(t,s){insertNode(n,t,s),appendNode(i,n),appendNode(o,n),appendNode(r,n),e.refs.thingElem=n,insertNode(c,t,s),insertNode(f,t,s)},p(e,t){e._notice&&s!==(s=t._notice.get()._icons.athing+" svelte-1qy4b0e")&&(i.className=s),e.labels&&l!==(l=t.labels.text)&&(r.data=l),e._mouseIsIn&&a!==(a=!t._mouseIsIn)&&(n.disabled=a)},d(t){t&&detachNode(n),removeListener(n,"click",h),e.refs.thingElem===n&&(e.refs.thingElem=null),t&&(detachNode(c),detachNode(f))}}}function PNotifyReference(e){init(this,e),this.refs={},this._state=assign(data(),e.data),this._intro=!0,document.getElementById("svelte-1qy4b0e-style")||add_css(),e.root||(this._oncreate=[]),this._fragment=create_main_fragment(this,this._state),this.root._oncreate.push(()=>{oncreate.call(this),this.fire("update",{changed:assignTrue({},this._state),current:this._state})}),e.target&&(this._fragment.c(),this._mount(e.target,e.anchor),callAll(this._oncreate))}function createElement(e){return document.createElement(e)}function appendNode(e,t){t.appendChild(e)}function createComment(){return document.createComment("")}function insertNode(e,t,n){t.insertBefore(e,n)}function detachNode(e){e.parentNode.removeChild(e)}function createText(e){return document.createTextNode(e)}function addListener(e,t,n){e.addEventListener(t,n,!1)}function removeListener(e,t,n){e.removeEventListener(t,n,!1)}function init(e,t){e._handlers=blankObject(),e._bind=t._bind,e.options=t,e.root=t.root||e,e.store=e.root.store||t.store}function assign(e,t){for(var n in t)e[n]=t[n];return e}function assignTrue(e,t){for(var n in t)e[n]=1;return e}function callAll(e){for(;e&&e.length;)e.shift()()}function destroy(e){this.destroy=noop,this.fire("destroy"),this.set=noop,this._fragment.d(!1!==e),this._fragment=null,this._state={}}function get(){return this._state}function fire(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var i=0;it.addpos2&&(t.addpos2=e.offsetHeight);break;case"left":case"right":e.offsetWidth+(parseFloat(e.style.marginLeft,10)||0)+(parseFloat(e.style.marginRight,10)||0)>t.addpos2&&(t.addpos2=e.offsetWidth)}}else if(t.dir1){var p=void 0,h=void 0;switch(t.dir1){case"down":case"up":h=["left","right"],p=t.context.scrollWidth/2-e.offsetWidth/2;break;case"left":case"right":h=["top","bottom"],p=s/2-e.offsetHeight/2}e.style[h[0]]=p+"px",e.style[h[1]]="auto",t.animation||e.style[h[0]]}if(t.dir1)switch("number"==typeof t.nextpos1&&(e.style[a]=t.nextpos1+"px",t.animation||e.style[a]),t.dir1){case"down":case"up":t.nextpos1+=e.offsetHeight+(void 0===t.spacing1?25:t.spacing1);break;case"left":case"right":t.nextpos1+=e.offsetWidth+(void 0===t.spacing1?25:t.spacing1)}else{var m=r/2-e.offsetWidth/2,y=s/2-e.offsetHeight/2;e.style.left=m+"px",e.style.top=y+"px",t.animation||e.style.left}return this}},queuePosition:function(t){return n&&clearTimeout(n),t||(t=10),n=setTimeout(function(){g.positionAll()},t),this},cancelRemove:function(){return this.cancelClose()},cancelClose:function(){var t=this.get(),e=t._timer,i=t._animTimer,n=t._state,o=t.animation;return e&&clearTimeout(e),i&&clearTimeout(i),"closing"===n&&this.set({_state:"open",_animating:!1,_animatingClass:"fade"===o?"ui-pnotify-in ui-pnotify-fade-in":"ui-pnotify-in"}),this},queueRemove:function(){return this.queueClose()},queueClose:function(){var t=this;return this.cancelClose(),this.set({_timer:setTimeout(function(){return t.close(!0)},isNaN(this.get().delay)?0:this.get().delay)}),this},addModuleClass:function(){for(var t=this.get()._moduleClasses,e=arguments.length,i=Array(e),n=0;n .ui-pnotify{position:fixed;z-index:100040}body > .ui-pnotify.ui-pnotify-modal{z-index:100042}.ui-pnotify{position:absolute;height:auto;z-index:1;display:none}.ui-pnotify.ui-pnotify-modal{z-index:3}.ui-pnotify.ui-pnotify-in{display:block}.ui-pnotify.ui-pnotify-initial-hidden{display:block;visibility:hidden}.ui-pnotify.ui-pnotify-move{transition:left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-slow{transition:opacity .4s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-slow.ui-pnotify.ui-pnotify-move{transition:opacity .4s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-normal{transition:opacity .25s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-normal.ui-pnotify.ui-pnotify-move{transition:opacity .25s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-fast{transition:opacity .1s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-fast.ui-pnotify.ui-pnotify-move{transition:opacity .1s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-in{opacity:1}.ui-pnotify .ui-pnotify-shadow{-webkit-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);-moz-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1)}.ui-pnotify-container{background-position:0 0;padding:.8em;height:100%;margin:0}.ui-pnotify-container:after{content:" ";visibility:hidden;display:block;height:0;clear:both}.ui-pnotify-container.ui-pnotify-sharp{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ui-pnotify-title{display:block;white-space:pre-line;margin-bottom:.4em;margin-top:0}.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-left:24px}[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-right:24px;margin-left:0}.ui-pnotify-title-bs4{font-size:1.2rem}.ui-pnotify-text{display:block;white-space:pre-line}.ui-pnotify-icon,.ui-pnotify-icon span{display:block;float:left}[dir=rtl] .ui-pnotify-icon,[dir=rtl] .ui-pnotify-icon span{float:right}.ui-pnotify-icon-bs3 > span{position:relative;top:2px}.ui-pnotify-icon-bs4 > span{position:relative;top:4px}.ui-pnotify-modal-overlay{background-color:rgba(0, 0, 0, .4);top:0;left:0;position:absolute;height:100%;width:100%;z-index:2}body > .ui-pnotify-modal-overlay{position:fixed;z-index:100041}',U(o,document.head)),t.root||(this._oncreate=[],this._beforecreate=[],this._aftercreate=[]),this._fragment=function(o,t){for(var s,r,a,c,l,f,u,d,p,h=[],m=X(),y=[],g=X(),e=t._modulesPrependContainer,_=function(t){return t.module.key},i=0;ib[O]?(T[M]=!0,S(N)):(k[O]=!0,h--):(l(H,a),h--)}for(;h--;){v[(H=t[h]).key]||l(H,a)}for(;m;)S(_[m-1]);return _}function nt(t,e){t.d(1),e[t.key]=null}function ot(t){t.parentNode.removeChild(t)}function st(t,e,i){t.removeEventListener(e,i,!1)}function a(){return document.createComment("")}function s(t,e){for(;t.nextSibling&&t.nextSibling!==e;)t.parentNode.removeChild(t.nextSibling)}function r(t,e){for(var i in e)t[i]=e[i];return t}function d(t){for(;t&&t.length;)t.shift()()}function p(){}return r(o.prototype,{destroy:function(t){this.destroy=p,this.fire("destroy"),this.set=p,this._fragment.d(!1!==t),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(t,e){var i=t in this._handlers&&this._handlers[t].slice();if(!i)return;for(var n=0;ne){for(var n="top"===i.push,s=[],r=0,a=n?0:c.notices.length-1;n?a [ui-pnotify].ui-pnotify.ui-pnotify-mobile-able{position:fixed}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom{width:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right{height:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-shadow{border-bottom-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-shadow{border-top-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-shadow{border-right-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-shadow{border-left-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-container{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-container{width:auto !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-container{height:100% !important}}",t=e,document.head.appendChild(t)}function e(i){var t,e,o=this;e=i,(t=this)._handlers=Object.create(null),t._bind=e._bind,t.options=e,t.root=e.root||t,t.store=t.root.store||e.store,this._state=l(_extends({_notice:null,_options:{}},n.modules.Mobile.defaults),i.data),this._intro=!0,document.getElementById("svelte-49u8sj-style")||s(),i.root||(this._oncreate=[]),this._fragment=(this._state,{c:r,m:r,p:r,d:r}),this.root._oncreate.push(function(){(function(){this.set({_doMobileStylingBound:this.doMobileStyling.bind(this)})}).call(o),o.fire("update",{changed:function(i,t){for(var e in t)i[e]=1;return i}({},o._state),current:o._state})}),i.target&&(this._fragment.c(),this._mount(i.target,i.anchor),a(this._oncreate))}function r(){}function l(i,t){for(var e in t)i[e]=t[e];return i}function a(i){for(;i&&i.length;)i.shift()()}return l(e.prototype,{destroy:function(i){this.destroy=r,this.fire("destroy"),this.set=r,this._fragment.d(!1!==i),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(i,t){var e=i in this._handlers&&this._handlers[i].slice();if(!e)return;for(var o=0;ot.addpos2&&(t.addpos2=e.offsetHeight);break;case"left":case"right":e.offsetWidth+(parseFloat(e.style.marginLeft,10)||0)+(parseFloat(e.style.marginRight,10)||0)>t.addpos2&&(t.addpos2=e.offsetWidth)}}else if(t.dir1){var p=void 0,h=void 0;switch(t.dir1){case"down":case"up":h=["left","right"],p=t.context.scrollWidth/2-e.offsetWidth/2;break;case"left":case"right":h=["top","bottom"],p=s/2-e.offsetHeight/2}e.style[h[0]]=p+"px",e.style[h[1]]="auto",t.animation||e.style[h[0]]}if(t.dir1)switch("number"==typeof t.nextpos1&&(e.style[a]=t.nextpos1+"px",t.animation||e.style[a]),t.dir1){case"down":case"up":t.nextpos1+=e.offsetHeight+(void 0===t.spacing1?25:t.spacing1);break;case"left":case"right":t.nextpos1+=e.offsetWidth+(void 0===t.spacing1?25:t.spacing1)}else{var m=r/2-e.offsetWidth/2,y=s/2-e.offsetHeight/2;e.style.left=m+"px",e.style.top=y+"px",t.animation||e.style.left}return this}},queuePosition:function(t){return n&&clearTimeout(n),t||(t=10),n=setTimeout(function(){g.positionAll()},t),this},cancelRemove:function(){return this.cancelClose()},cancelClose:function(){var t=this.get(),e=t._timer,i=t._animTimer,n=t._state,o=t.animation;return e&&clearTimeout(e),i&&clearTimeout(i),"closing"===n&&this.set({_state:"open",_animating:!1,_animatingClass:"fade"===o?"ui-pnotify-in ui-pnotify-fade-in":"ui-pnotify-in"}),this},queueRemove:function(){return this.queueClose()},queueClose:function(){var t=this;return this.cancelClose(),this.set({_timer:setTimeout(function(){return t.close(!0)},isNaN(this.get().delay)?0:this.get().delay)}),this},addModuleClass:function(){for(var t=this.get()._moduleClasses,e=arguments.length,i=Array(e),n=0;n .ui-pnotify{position:fixed;z-index:100040}body > .ui-pnotify.ui-pnotify-modal{z-index:100042}.ui-pnotify{position:absolute;height:auto;z-index:1;display:none}.ui-pnotify.ui-pnotify-modal{z-index:3}.ui-pnotify.ui-pnotify-in{display:block}.ui-pnotify.ui-pnotify-initial-hidden{display:block;visibility:hidden}.ui-pnotify.ui-pnotify-move{transition:left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-slow{transition:opacity .4s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-slow.ui-pnotify.ui-pnotify-move{transition:opacity .4s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-normal{transition:opacity .25s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-normal.ui-pnotify.ui-pnotify-move{transition:opacity .25s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-fast{transition:opacity .1s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-fast.ui-pnotify.ui-pnotify-move{transition:opacity .1s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-in{opacity:1}.ui-pnotify .ui-pnotify-shadow{-webkit-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);-moz-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1)}.ui-pnotify-container{background-position:0 0;padding:.8em;height:100%;margin:0}.ui-pnotify-container:after{content:" ";visibility:hidden;display:block;height:0;clear:both}.ui-pnotify-container.ui-pnotify-sharp{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ui-pnotify-title{display:block;white-space:pre-line;margin-bottom:.4em;margin-top:0}.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-left:24px}[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-right:24px;margin-left:0}.ui-pnotify-title-bs4{font-size:1.2rem}.ui-pnotify-text{display:block;white-space:pre-line}.ui-pnotify-icon,.ui-pnotify-icon span{display:block;float:left}[dir=rtl] .ui-pnotify-icon,[dir=rtl] .ui-pnotify-icon span{float:right}.ui-pnotify-icon-bs3 > span{position:relative;top:2px}.ui-pnotify-icon-bs4 > span{position:relative;top:4px}.ui-pnotify-modal-overlay{background-color:rgba(0, 0, 0, .4);top:0;left:0;position:absolute;height:100%;width:100%;z-index:2}body > .ui-pnotify-modal-overlay{position:fixed;z-index:100041}',U(o,document.head)),t.root||(this._oncreate=[],this._beforecreate=[],this._aftercreate=[]),this._fragment=function(o,t){for(var s,r,a,c,l,f,u,d,p,h=[],m=X(),y=[],g=X(),e=t._modulesPrependContainer,_=function(t){return t.module.key},i=0;ix[O]?(T[M]=!0,S(N)):(k[O]=!0,h--):(l(H,a),h--)}for(;h--;){v[(H=t[h]).key]||l(H,a)}for(;m;)S(_[m-1]);return _}function nt(t,e){t.d(1),e[t.key]=null}function ot(t){t.parentNode.removeChild(t)}function st(t,e,i){t.removeEventListener(e,i,!1)}function a(){return document.createComment("")}function s(t,e){for(;t.nextSibling&&t.nextSibling!==e;)t.parentNode.removeChild(t.nextSibling)}function r(t,e){for(var i in e)t[i]=e[i];return t}function d(t){for(;t&&t.length;)t.shift()()}function p(){}return r(o.prototype,{destroy:function(t){this.destroy=p,this.fire("destroy"),this.set=p,this._fragment.d(!1!==t),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(t,e){var i=t in this._handlers&&this._handlers[t].slice();if(!i)return;for(var n=0;ne){for(var n="top"===i.push,s=[],r=0,f=n?0:c.notices.length-1;n?f [ui-pnotify].ui-pnotify.ui-pnotify-mobile-able{position:fixed}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom{width:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right{height:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-shadow{border-bottom-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-shadow{border-top-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-shadow{border-right-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-shadow{border-left-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-container{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-container{width:auto !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-container{height:100% !important}}",t=e,document.head.appendChild(t)}function e(i){var t,e,o=this;e=i,(t=this)._handlers=Object.create(null),t._bind=e._bind,t.options=e,t.root=e.root||t,t.store=t.root.store||e.store,this._state=l(_extends({_notice:null,_options:{}},n.modules.Mobile.defaults),i.data),this._intro=!0,document.getElementById("svelte-49u8sj-style")||s(),i.root||(this._oncreate=[]),this._fragment=(this._state,{c:r,m:r,p:r,d:r}),this.root._oncreate.push(function(){(function(){this.set({_doMobileStylingBound:this.doMobileStyling.bind(this)})}).call(o),o.fire("update",{changed:function(i,t){for(var e in t)i[e]=1;return i}({},o._state),current:o._state})}),i.target&&(this._fragment.c(),this._mount(i.target,i.anchor),f(this._oncreate))}function r(){}function l(i,t){for(var e in t)i[e]=t[e];return i}function f(i){for(;i&&i.length;)i.shift()()}return l(e.prototype,{destroy:function(i){this.destroy=r,this.fire("destroy"),this.set=r,this._fragment.d(!1!==i),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(i,t){var e=i in this._handlers&&this._handlers[i].slice();if(!e)return;for(var o=0;o { + PNotify.defaultStack.context = document.body; + // Reposition the notices when the window resizes. + window.addEventListener('resize', () => { + if (posTimer) { + clearTimeout(posTimer); + } + posTimer = setTimeout(() => { + PNotify.positionAll(); + }, 10); + }); +}; + +// Creates the background overlay for modal stacks. +let createStackOverlay = (stack) => { + const overlay = document.createElement('div'); + overlay.classList.add('ui-pnotify-modal-overlay'); + if (stack.context !== document.body) { + overlay.style.height = stack.context.scrollHeight + 'px'; + overlay.style.width = stack.context.scrollWidth + 'px'; + } + // Close the notices on overlay click. + overlay.addEventListener('click', () => { + if (stack.overlayClose) { + PNotify.closeStack(stack); + } + }); + stack.overlay = overlay; +}; + +let insertStackOverlay = (stack) => { + if (stack.overlay.parentNode !== stack.context) { + stack.overlay = stack.context.insertBefore(stack.overlay, stack.context.firstChild); + } +}; + +let removeStackOverlay = (stack) => { + if (stack.overlay.parentNode) { + stack.overlay.parentNode.removeChild(stack.overlay); + } +}; + +// Default arguments for the new notice helper functions. +const getDefaultArgs = (options, type) => { + if (typeof options !== 'object') { + options = {'text': options}; + } + + // Only assign the type if it was requested, so we don't overwrite + // options.type if it has something assigned. + if (type) { + options.type = type; + } + + return {target: document.body, data: options}; +}; + +function _styles({ styling }) { + return typeof styling === 'object' ? styling : PNotify.styling[styling]; +} + +function _icons({ icons }) { + return typeof icons === 'object' ? icons : PNotify.icons[icons]; +} + +function _widthStyle({ width }) { + return typeof width === 'string' ? 'width: ' + width + ';' : ''; +} + +function _minHeightStyle({ minHeight }) { + return typeof minHeight === 'string' ? 'min-height: ' + minHeight + ';' : ''; +} + +function data() { + const data = Object.assign({ + '_state': 'initializing', // The state can be 'initializing', 'opening', 'open', 'closing', and 'closed'. + '_timer': null, // Auto close timer. + '_animTimer': null, // Animation timer. + '_animating': false, // Stores what is currently being animated (in or out). + '_animatingClass': '', // Stores the class that adds entry/exit animation effects. + '_moveClass': '', // Stores the class that adds movement animation effects. + '_timerHide': false, // Stores whether the notice was hidden by a timer. + '_moduleClasses': [], // Modules can add classes here to be added to the notice element. (They should play nice and not remove classes that aren't theirs.) + '_moduleIsNoticeOpen': false, // Modules that change how the notice displays (causing the notice element to not appear) can set this to true to make PNotify assume the notice has opened. + '_modules': {}, // Stores the instances of the modules. + '_modulesPrependContainer': PNotify.modulesPrependContainer, + '_modulesAppendContainer': PNotify.modulesAppendContainer + }, PNotify.defaults); + data.modules = Object.assign({}, PNotify.defaults.modules); + return data; +}; + +var methods = { + // This runs an event on all the modules. + runModules (event) { + if (event === 'init') { + // Initializing a module should only be done if it has an init + // function, which means it's not rendered in the template. + for (let key in PNotify.modules) { + if (!PNotify.modules.hasOwnProperty(key)) { + continue; + } + if (typeof PNotify.modules[key].init === 'function') { + const module = PNotify.modules[key].init(this); + this.initModule(module); + } + } + } else { + const {_modules} = this.get(); + for (let module in _modules) { + if (!_modules.hasOwnProperty(module)) { + continue; + } + const moduleOptions = Object.assign({ + '_notice': this, + '_options': this.get() + }, this.get().modules[module]); + _modules[module].set(moduleOptions); + if (typeof _modules[module][event] === 'function') { + _modules[module][event](); + } + } + } + }, + + // This passes module options to a module. + initModule (module) { + const {modules} = this.get(); + if (!modules.hasOwnProperty(module.constructor.key)) { + modules[module.constructor.key] = {}; + } + const moduleOptions = Object.assign({ + '_notice': this, + '_options': this.get() + }, modules[module.constructor.key]); + module.initModule(moduleOptions); + + // Now save the module instance. + const {_modules} = this.get(); + _modules[module.constructor.key] = module; + }, + + update (options) { + // Save old options. + const oldHide = this.get().hide; + const oldIcon = this.get().icon; + + this.set(options); + + // Run the modules. + this.runModules('update'); + + // Update the timed hiding. + if (!this.get().hide) { + this.cancelClose(); + } else if (!oldHide) { + this.queueClose(); + } + this.queuePosition(); + + // Font Awesome 5 replaces our lovely element with a gross SVG. In order + // to make it play nice with Svelte, we have to clear the element and + // make it again. + const {icon} = this.get(); + if ( + icon !== oldIcon && + ( + (icon === true && this.get().icons === 'fontawesome5') || + (typeof icon === 'string' && icon.match(/(^| )fa[srlb]($| )/)) + ) + ) { + this.set({'icon': false}); + this.set({'icon': icon}); + } + + return this; + }, + + // Display the notice. + open () { + const {_state, hide} = this.get(); + if (_state === 'opening') { + return; + } + if (_state === 'open') { + if (hide) { + this.queueClose(); + } + return; + } + this.set({ + '_state': 'opening', + // This makes the notice visibity: hidden; so its dimensions can be + // determined. + '_animatingClass': 'ui-pnotify-initial-hidden' + }); + // Run the modules. + this.runModules('beforeOpen'); + + let {stack} = this.get(); + // If the notice is not in the DOM, or in the wrong context, append it. + if ( + !this.refs.elem.parentNode || + ( + stack && + stack.context && + stack.context !== this.refs.elem.parentNode + ) + ) { + if (stack && stack.context) { + stack.context.appendChild(this.refs.elem); + } else if (document.body) { + document.body.appendChild(this.refs.elem); + } else { + throw new Error('No context to open this notice in.'); + } + } + + // Wait until the DOM is updated. + setTimeout(() => { + if (stack) { + // Mark the stack so it won't animate the new notice. + stack.animation = false; + // Now position all the notices. + PNotify.positionAll(); + // Reset animation. + stack.animation = true; + } + + this.animateIn(() => { + // Now set it to hide. + if (this.get().hide) { + this.queueClose(); + } + + this.set({'_state': 'open'}); + + // Run the modules. + this.runModules('afterOpen'); + }); + }, 0); + + return this; + }, + + remove (timerHide) { + return this.close(timerHide); + }, + + // Remove the notice. + close (timerHide) { + const {_state} = this.get(); + if (_state === 'closing' || _state === 'closed') { + return; + } + this.set({'_state': 'closing', '_timerHide': !!timerHide}); // Make sure it's a boolean. + // Run the modules. + this.runModules('beforeClose'); + + const {_timer} = this.get(); + if (_timer && clearTimeout) { + clearTimeout(_timer); + this.set({'_timer': null}); + } + this.animateOut(() => { + this.set({'_state': 'closed'}); + // Run the modules. + this.runModules('afterClose'); + this.queuePosition(); + // If we're supposed to remove the notice from the DOM, do it. + if (this.get().remove) { + this.refs.elem.parentNode.removeChild(this.refs.elem); + } + // Run the modules. + this.runModules('beforeDestroy'); + // Remove object from PNotify.notices to prevent memory leak (issue #49) + // unless destroy is off + if (this.get().destroy) { + if (PNotify.notices !== null) { + const idx = PNotify.notices.indexOf(this); + if (idx !== -1) { + PNotify.notices.splice(idx, 1); + } + } + } + // Run the modules. + this.runModules('afterDestroy'); + }); + + return this; + }, + + // Animate the notice in. + animateIn (callback) { + // Declare that the notice is animating in. + this.set({'_animating': 'in'}); + const finished = () => { + this.refs.elem.removeEventListener('transitionend', finished); + const {_animTimer, _animating, _moduleIsNoticeOpen} = this.get(); + if (_animTimer) { + clearTimeout(_animTimer); + } + if (_animating !== 'in') { + return; + } + let visible = _moduleIsNoticeOpen; + if (!visible) { + const domRect = this.refs.elem.getBoundingClientRect(); + for (let prop in domRect) { + if (domRect[prop] > 0) { + visible = true; + break; + } + } + } + if (visible) { + if (callback) { + callback.call(); + } + // Declare that the notice has completed animating. + this.set({'_animating': false}); + } else { + this.set({'_animTimer': setTimeout(finished, 40)}); + } + }; + + if (this.get().animation === 'fade') { + this.refs.elem.addEventListener('transitionend', finished); + this.set({'_animatingClass': 'ui-pnotify-in'}); + // eslint-disable-next-line no-unused-expressions + this.refs.elem.style.opacity; // This line is necessary for some reason. Some notices don't fade without it. + this.set({'_animatingClass': 'ui-pnotify-in ui-pnotify-fade-in'}); + // Just in case the event doesn't fire, call it after 650 ms. + this.set({'_animTimer': setTimeout(finished, 650)}); + } else { + this.set({'_animatingClass': 'ui-pnotify-in'}); + finished(); + } + }, + + // Animate the notice out. + animateOut (callback) { + // Declare that the notice is animating out. + this.set({'_animating': 'out'}); + const finished = () => { + this.refs.elem.removeEventListener('transitionend', finished); + const {_animTimer, _animating, _moduleIsNoticeOpen} = this.get(); + if (_animTimer) { + clearTimeout(_animTimer); + } + if (_animating !== 'out') { + return; + } + let visible = _moduleIsNoticeOpen; + if (!visible) { + const domRect = this.refs.elem.getBoundingClientRect(); + for (let prop in domRect) { + if (domRect[prop] > 0) { + visible = true; + break; + } + } + } + if (!this.refs.elem.style.opacity || this.refs.elem.style.opacity === '0' || !visible) { + this.set({'_animatingClass': ''}); + const {stack} = this.get(); + if (stack && stack.overlay) { + // Go through the modal stack to see if any are left open. + // TODO: Rewrite this cause it sucks. + let stillOpen = false; + for (let i = 0; i < PNotify.notices.length; i++) { + const notice = PNotify.notices[i]; + if (notice !== this && notice.get().stack === stack && notice.get()._state !== 'closed') { + stillOpen = true; + break; + } + } + if (!stillOpen) { + removeStackOverlay(stack); + } + } + if (callback) { + callback.call(); + } + // Declare that the notice has completed animating. + this.set({'_animating': false}); + } else { + // In case this was called before the notice finished animating. + this.set({'_animTimer': setTimeout(finished, 40)}); + } + }; + + if (this.get().animation === 'fade') { + this.refs.elem.addEventListener('transitionend', finished); + this.set({'_animatingClass': 'ui-pnotify-in'}); + // Just in case the event doesn't fire, call it after 650 ms. + this.set({'_animTimer': setTimeout(finished, 650)}); + } else { + this.set({'_animatingClass': ''}); + finished(); + } + }, + + // Position the notice. + position () { + // Get the notice's stack. + let {stack} = this.get(); + let elem = this.refs.elem; + if (!stack) { + return; + } + if (!stack.context) { + stack.context = document.body; + } + if (typeof stack.nextpos1 !== 'number') { + stack.nextpos1 = stack.firstpos1; + } + if (typeof stack.nextpos2 !== 'number') { + stack.nextpos2 = stack.firstpos2; + } + if (typeof stack.addpos2 !== 'number') { + stack.addpos2 = 0; + } + + // Skip this notice if it's not shown. + if ( + !elem.classList.contains('ui-pnotify-in') && + !elem.classList.contains('ui-pnotify-initial-hidden') + ) { + return this; + } + + if (stack.modal) { + if (!stack.overlay) { + createStackOverlay(stack); + } + insertStackOverlay(stack); + } + + // Read from the DOM to cause refresh. + elem.getBoundingClientRect(); + + if (stack.animation) { + // Add animate class. + this.set({'_moveClass': 'ui-pnotify-move'}); + } + + let spaceY = (stack.context === document.body ? window.innerHeight : stack.context.scrollHeight); + let spaceX = (stack.context === document.body ? window.innerWidth : stack.context.scrollWidth); + + let csspos1; + + if (stack.dir1) { + csspos1 = { + 'down': 'top', + 'up': 'bottom', + 'left': 'right', + 'right': 'left' + }[stack.dir1]; + + // Calculate the current pos1 value. + let curpos1; + switch (stack.dir1) { + case 'down': + curpos1 = elem.offsetTop; + break; + case 'up': + curpos1 = spaceY - elem.scrollHeight - elem.offsetTop; + break; + case 'left': + curpos1 = spaceX - elem.scrollWidth - elem.offsetLeft; + break; + case 'right': + curpos1 = elem.offsetLeft; + break; + } + // Remember the first pos1, so the first notice goes there. + if (typeof stack.firstpos1 === 'undefined') { + stack.firstpos1 = curpos1; + stack.nextpos1 = stack.firstpos1; + } + } + + if (stack.dir1 && stack.dir2) { + let csspos2 = { + 'down': 'top', + 'up': 'bottom', + 'left': 'right', + 'right': 'left' + }[stack.dir2]; + + // Calculate the current pos2 value. + let curpos2; + switch (stack.dir2) { + case 'down': + curpos2 = elem.offsetTop; + break; + case 'up': + curpos2 = spaceY - elem.scrollHeight - elem.offsetTop; + break; + case 'left': + curpos2 = spaceX - elem.scrollWidth - elem.offsetLeft; + break; + case 'right': + curpos2 = elem.offsetLeft; + break; + } + // Remember the first pos2, so the first notice goes there. + if (typeof stack.firstpos2 === 'undefined') { + stack.firstpos2 = curpos2; + stack.nextpos2 = stack.firstpos2; + } + + // Check that it's not beyond the viewport edge. + const endY = stack.nextpos1 + elem.offsetHeight + (typeof stack.spacing1 === 'undefined' ? 25 : stack.spacing1); + const endX = stack.nextpos1 + elem.offsetWidth + (typeof stack.spacing1 === 'undefined' ? 25 : stack.spacing1); + if ( + ((stack.dir1 === 'down' || stack.dir1 === 'up') && endY > spaceY) || + ((stack.dir1 === 'left' || stack.dir1 === 'right') && endX > spaceX) + ) { + // If it is, it needs to go back to the first pos1, and over on pos2. + stack.nextpos1 = stack.firstpos1; + stack.nextpos2 += stack.addpos2 + (typeof stack.spacing2 === 'undefined' ? 25 : stack.spacing2); + stack.addpos2 = 0; + } + + // Move the notice on dir2. + if (typeof stack.nextpos2 === 'number') { + elem.style[csspos2] = stack.nextpos2 + 'px'; + if (!stack.animation) { + // eslint-disable-next-line no-unused-expressions + elem.style[csspos2]; // Read from the DOM for update. + } + } + + // Keep track of the widest/tallest notice in the column/row, so we can push the next column/row. + switch (stack.dir2) { + case 'down': + case 'up': + if (elem.offsetHeight + (parseFloat(elem.style.marginTop, 10) || 0) + (parseFloat(elem.style.marginBottom, 10) || 0) > stack.addpos2) { + stack.addpos2 = elem.offsetHeight; + } + break; + case 'left': + case 'right': + if (elem.offsetWidth + (parseFloat(elem.style.marginLeft, 10) || 0) + (parseFloat(elem.style.marginRight, 10) || 0) > stack.addpos2) { + stack.addpos2 = elem.offsetWidth; + } + break; + } + } else if (stack.dir1) { + // Center the notice along dir1 axis, because the stack has no dir2. + let cssMiddle, cssposCross; + switch (stack.dir1) { + case 'down': + case 'up': + cssposCross = ['left', 'right']; + cssMiddle = (stack.context.scrollWidth / 2) - (elem.offsetWidth / 2); + break; + case 'left': + case 'right': + cssposCross = ['top', 'bottom']; + cssMiddle = (spaceY / 2) - (elem.offsetHeight / 2); + break; + } + elem.style[cssposCross[0]] = cssMiddle + 'px'; + elem.style[cssposCross[1]] = 'auto'; + if (!stack.animation) { + // eslint-disable-next-line no-unused-expressions + elem.style[cssposCross[0]]; // Read from the DOM for update. + } + } + + if (stack.dir1) { + // Move the notice on dir1. + if (typeof stack.nextpos1 === 'number') { + elem.style[csspos1] = stack.nextpos1 + 'px'; + if (!stack.animation) { + // eslint-disable-next-line no-unused-expressions + elem.style[csspos1]; // Read from the DOM for update. + } + } + + // Calculate the next dir1 position. + switch (stack.dir1) { + case 'down': + case 'up': + stack.nextpos1 += elem.offsetHeight + (typeof stack.spacing1 === 'undefined' ? 25 : stack.spacing1); + break; + case 'left': + case 'right': + stack.nextpos1 += elem.offsetWidth + (typeof stack.spacing1 === 'undefined' ? 25 : stack.spacing1); + break; + } + } else { + // Center the notice on the screen, because the stack has no dir1. + let cssMiddleLeft = (spaceX / 2) - (elem.offsetWidth / 2); + let cssMiddleTop = (spaceY / 2) - (elem.offsetHeight / 2); + elem.style.left = cssMiddleLeft + 'px'; + elem.style.top = cssMiddleTop + 'px'; + if (!stack.animation) { + // eslint-disable-next-line no-unused-expressions + elem.style.left; // Read from the DOM for update. + } + } + + return this; + }, + + // Queue the position all function so it doesn't run repeatedly and + // use up resources. + queuePosition (milliseconds) { + if (posTimer) { + clearTimeout(posTimer); + } + if (!milliseconds) { + milliseconds = 10; + } + posTimer = setTimeout(() => { + PNotify.positionAll(); + }, milliseconds); + return this; + }, + + cancelRemove () { + return this.cancelClose(); + }, + + // Cancel any pending removal timer. + cancelClose () { + const {_timer, _animTimer, _state, animation} = this.get(); + if (_timer) { + clearTimeout(_timer); + } + if (_animTimer) { + clearTimeout(_animTimer); + } + if (_state === 'closing') { + // If it's animating out, stop it. + this.set({ + '_state': 'open', + '_animating': false, + '_animatingClass': animation === 'fade' ? 'ui-pnotify-in ui-pnotify-fade-in' : 'ui-pnotify-in' + }); + } + return this; + }, + + queueRemove () { + return this.queueClose(); + }, + + // Queue a close timer. + queueClose () { + // Cancel any current close timer. + this.cancelClose(); + this.set({ + '_timer': setTimeout(() => this.close(true), (isNaN(this.get().delay) ? 0 : this.get().delay)) + }); + return this; + }, + + addModuleClass (...classNames) { + const {_moduleClasses} = this.get(); + for (let i = 0; i < classNames.length; i++) { + let className = classNames[i]; + if (_moduleClasses.indexOf(className) === -1) { + _moduleClasses.push(className); + } + } + this.set({_moduleClasses}); + }, + + removeModuleClass (...classNames) { + const {_moduleClasses} = this.get(); + for (let i = 0; i < classNames.length; i++) { + let className = classNames[i]; + const idx = _moduleClasses.indexOf(className); + if (idx !== -1) { + _moduleClasses.splice(idx, 1); + } + } + this.set({_moduleClasses}); + }, + + hasModuleClass (...classNames) { + const {_moduleClasses} = this.get(); + for (let i = 0; i < classNames.length; i++) { + let className = classNames[i]; + if (_moduleClasses.indexOf(className) === -1) { + return false; + } + } + return true; + } +}; + +function oncreate() { + this.on('mouseenter', (e) => { + // Stop animation, reset the removal timer when the user mouses over. + if (this.get().mouseReset && this.get()._animating === 'out') { + if (!this.get()._timerHide) { + return; + } + this.cancelClose(); + } + // Stop the close timer. + if (this.get().hide && this.get().mouseReset) { + this.cancelClose(); + } + }); + + this.on('mouseleave', (e) => { + // Start the close timer. + if (this.get().hide && this.get().mouseReset && this.get()._animating !== 'out') { + this.queueClose(); + } + PNotify.positionAll(); + }); + + let {stack} = this.get(); + + // Add the notice to the notice array. + if (stack && stack.push === 'top') { + PNotify.notices.splice(0, 0, this); + } else { + PNotify.notices.push(this); + } + + // Run the modules. + this.runModules('init'); + + // We're now initialized, but haven't been opened yet. + this.set({'_state': 'closed'}); + + // Display the notice. + if (this.get().autoDisplay) { + this.open(); + } +}; + +function setup(Component) { + // Add static properties to the PNotify object. + PNotify = Component; + + PNotify.VERSION = '4.0.0-alpha.3'; + + PNotify.defaultStack = { + dir1: 'down', + dir2: 'left', + firstpos1: 25, + firstpos2: 25, + spacing1: 36, + spacing2: 36, + push: 'bottom', + context: window && document.body + }; + + PNotify.defaults = { + // The notice's title. + title: false, + // Whether to trust the title or escape its contents. (Not allow HTML.) + titleTrusted: false, + // The notice's text. + text: false, + // Whether to trust the text or escape its contents. (Not allow HTML.) + textTrusted: false, + // What styling classes to use. (Can be 'brighttheme', 'bootstrap3', 'bootstrap4', or a styling object.) + styling: 'brighttheme', + // What icons to use (Can be 'brighttheme', 'bootstrap3', 'fontawesome4', 'fontawesome5', or an icon object.) + icons: 'brighttheme', + // Additional classes to be added to the notice. (For custom styling.) + addClass: '', + // Class to be added to the notice for corner styling. + cornerClass: '', + // Display the notice when it is created. + autoDisplay: true, + // Width of the notice. + width: '360px', + // Minimum height of the notice. It will expand to fit content. + minHeight: '16px', + // Type of the notice. 'notice', 'info', 'success', or 'error'. + type: 'notice', + // Set icon to true to use the default icon for the selected + // style/type, false for no icon, or a string for your own icon class. + icon: true, + // The animation to use when displaying and hiding the notice. 'none' + // and 'fade' are supported through CSS. Others are supported + // through the Animate module and Animate.css. + animation: 'fade', + // Speed at which the notice animates in and out. 'slow', 'normal', + // or 'fast'. Respectively, 400ms, 250ms, 100ms. + animateSpeed: 'normal', + // Display a drop shadow. + shadow: true, + // After a delay, remove the notice. + hide: true, + // Delay in milliseconds before the notice is removed. + delay: 8000, + // Reset the hide timer if the mouse moves over the notice. + mouseReset: true, + // Remove the notice's elements from the DOM after it is removed. + remove: true, + // Whether to remove the notice from the global array when it is closed. + destroy: true, + // The stack on which the notices will be placed. Also controls the + // direction the notices stack. + stack: PNotify.defaultStack, + // This is where options for modules should be defined. + modules: {} + }; + + // An array of all active notices. + PNotify.notices = []; + + // This object holds all the PNotify modules. They are used to provide + // additional functionality. + PNotify.modules = {}; + + // Modules can add themselves to these to be rendered in the template. + PNotify.modulesPrependContainer = []; + PNotify.modulesAppendContainer = []; + + // Helper function to create a new notice. + PNotify.alert = (options) => new PNotify(getDefaultArgs(options)); + // Helper function to create a new notice (notice type). + PNotify.notice = (options) => new PNotify(getDefaultArgs(options, 'notice')); + // Helper function to create a new notice (info type). + PNotify.info = (options) => new PNotify(getDefaultArgs(options, 'info')); + // Helper function to create a new notice (success type). + PNotify.success = (options) => new PNotify(getDefaultArgs(options, 'success')); + // Helper function to create a new notice (error type). + PNotify.error = (options) => new PNotify(getDefaultArgs(options, 'error')); + + PNotify.removeAll = () => { + PNotify.closeAll(); + }; + + // Close all notices. + PNotify.closeAll = () => { + for (let i = 0; i < PNotify.notices.length; i++) { + if (PNotify.notices[i].close) { + PNotify.notices[i].close(false); + } + } + }; + + PNotify.removeStack = (stack) => { + PNotify.closeStack(stack); + }; + + // Close all notices in a single stack. + PNotify.closeStack = (stack) => { + if (stack === false) { + return; + } + for (let i = 0; i < PNotify.notices.length; i++) { + if (PNotify.notices[i].close && PNotify.notices[i].get().stack === stack) { + PNotify.notices[i].close(false); + } + } + }; + + // Position all notices. + PNotify.positionAll = () => { + // This timer is used for queueing this function so it doesn't run + // repeatedly. + if (posTimer) { + clearTimeout(posTimer); + } + posTimer = null; + // Reset the next position data. + if (PNotify.notices.length > 0) { + for (let i = 0; i < PNotify.notices.length; i++) { + let notice = PNotify.notices[i]; + let {stack} = notice.get(); + if (!stack) { + continue; + } + if (stack.overlay) { + removeStackOverlay(stack); + } + stack.nextpos1 = stack.firstpos1; + stack.nextpos2 = stack.firstpos2; + stack.addpos2 = 0; + } + for (let i = 0; i < PNotify.notices.length; i++) { + PNotify.notices[i].position(); + } + } else { + delete PNotify.defaultStack.nextpos1; + delete PNotify.defaultStack.nextpos2; + } + }; + + PNotify.styling = { + brighttheme: { + // Bright Theme doesn't require any UI libraries. + container: 'brighttheme', + notice: 'brighttheme-notice', + info: 'brighttheme-info', + success: 'brighttheme-success', + error: 'brighttheme-error' + }, + bootstrap3: { + container: 'alert', + notice: 'alert-warning', + info: 'alert-info', + success: 'alert-success', + error: 'alert-danger', + icon: 'ui-pnotify-icon-bs3' + }, + bootstrap4: { + container: 'alert', + notice: 'alert-warning', + info: 'alert-info', + success: 'alert-success', + error: 'alert-danger', + icon: 'ui-pnotify-icon-bs4', + title: 'ui-pnotify-title-bs4' + } + }; + + // icons are separate from the style, since bs4 doesn't come with any + PNotify.icons = { + brighttheme: { + notice: 'brighttheme-icon-notice', + info: 'brighttheme-icon-info', + success: 'brighttheme-icon-success', + error: 'brighttheme-icon-error' + }, + bootstrap3: { + notice: 'glyphicon glyphicon-exclamation-sign', + info: 'glyphicon glyphicon-info-sign', + success: 'glyphicon glyphicon-ok-sign', + error: 'glyphicon glyphicon-warning-sign' + }, + // User must have Font Awesome v4.0+ + fontawesome4: { + notice: 'fa fa-exclamation-circle', + info: 'fa fa-info-circle', + success: 'fa fa-check-circle', + error: 'fa fa-exclamation-triangle' + }, + // User must have Font Awesome v5.0+ + fontawesome5: { + notice: 'fas fa-exclamation-circle', + info: 'fas fa-info-circle', + success: 'fas fa-check-circle', + error: 'fas fa-exclamation-triangle' + } + }; + + // Run the deferred actions once the DOM is ready. + if (window && document.body) { + onDocumentLoaded(); + } else { + document.addEventListener('DOMContentLoaded', onDocumentLoaded); + } +} + +function add_css() { + var style = createElement("style"); + style.id = 'svelte-1eldsjg-style'; + style.textContent = "body > .ui-pnotify{position:fixed;z-index:100040}body > .ui-pnotify.ui-pnotify-modal{z-index:100042}.ui-pnotify{position:absolute;height:auto;z-index:1;display:none}.ui-pnotify.ui-pnotify-modal{z-index:3}.ui-pnotify.ui-pnotify-in{display:block}.ui-pnotify.ui-pnotify-initial-hidden{display:block;visibility:hidden}.ui-pnotify.ui-pnotify-move{transition:left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-slow{transition:opacity .4s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-slow.ui-pnotify.ui-pnotify-move{transition:opacity .4s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-normal{transition:opacity .25s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-normal.ui-pnotify.ui-pnotify-move{transition:opacity .25s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-fast{transition:opacity .1s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-fast.ui-pnotify.ui-pnotify-move{transition:opacity .1s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-in{opacity:1}.ui-pnotify .ui-pnotify-shadow{-webkit-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);-moz-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1)}.ui-pnotify-container{background-position:0 0;padding:.8em;height:100%;margin:0}.ui-pnotify-container:after{content:\" \";visibility:hidden;display:block;height:0;clear:both}.ui-pnotify-container.ui-pnotify-sharp{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ui-pnotify-title{display:block;white-space:pre-line;margin-bottom:.4em;margin-top:0}.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-left:24px}[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-right:24px;margin-left:0}.ui-pnotify-title-bs4{font-size:1.2rem}.ui-pnotify-text{display:block;white-space:pre-line}.ui-pnotify-icon,.ui-pnotify-icon span{display:block;float:left}[dir=rtl] .ui-pnotify-icon,[dir=rtl] .ui-pnotify-icon span{float:right}.ui-pnotify-icon-bs3 > span{position:relative;top:2px}.ui-pnotify-icon-bs4 > span{position:relative;top:4px}.ui-pnotify-modal-overlay{background-color:rgba(0, 0, 0, .4);top:0;left:0;position:absolute;height:100%;width:100%;z-index:2}body > .ui-pnotify-modal-overlay{position:fixed;z-index:100041}"; + appendNode(style, document.head); +} + +function create_main_fragment(component, ctx) { + var div, div_1, each_blocks_1 = [], each_lookup = blankObject(), text, text_1, text_2, text_3, each_1_blocks_1 = [], each_1_lookup = blankObject(), div_1_class_value, div_1_style_value, div_class_value; + + var each_value = ctx._modulesPrependContainer; + + const get_key = ctx => ctx.module.key; + + for (var i = 0; i < each_value.length; i += 1) { + let child_ctx = get_each_context(ctx, each_value, i); + let key = get_key(child_ctx); + each_blocks_1[i] = each_lookup[key] = create_each_block(component, key, child_ctx); + } + + var if_block = (ctx.icon !== false) && create_if_block(component, ctx); + + var if_block_1 = (ctx.title !== false) && create_if_block_1(component, ctx); + + var if_block_2 = (ctx.text !== false) && create_if_block_4(component, ctx); + + var each_value_1 = ctx._modulesAppendContainer; + + const get_key_1 = ctx => ctx.module.key; + + for (var i = 0; i < each_value_1.length; i += 1) { + let child_ctx = get_each_1_context(ctx, each_value_1, i); + let key = get_key_1(child_ctx); + each_1_blocks_1[i] = each_1_lookup[key] = create_each_block_1(component, key, child_ctx); + } + + function mouseover_handler(event) { + component.fire("mouseover", event); + } + + function mouseout_handler(event) { + component.fire("mouseout", event); + } + + function mouseenter_handler(event) { + component.fire("mouseenter", event); + } + + function mouseleave_handler(event) { + component.fire("mouseleave", event); + } + + function mousemove_handler(event) { + component.fire("mousemove", event); + } + + function mousedown_handler(event) { + component.fire("mousedown", event); + } + + function mouseup_handler(event) { + component.fire("mouseup", event); + } + + function click_handler(event) { + component.fire("click", event); + } + + function dblclick_handler(event) { + component.fire("dblclick", event); + } + + function focus_handler(event) { + component.fire("focus", event); + } + + function blur_handler(event) { + component.fire("blur", event); + } + + function touchstart_handler(event) { + component.fire("touchstart", event); + } + + function touchmove_handler(event) { + component.fire("touchmove", event); + } + + function touchend_handler(event) { + component.fire("touchend", event); + } + + function touchcancel_handler(event) { + component.fire("touchcancel", event); + } + + return { + c() { + div = createElement("div"); + div_1 = createElement("div"); + + for (i = 0; i < each_blocks_1.length; i += 1) each_blocks_1[i].c(); + + text = createText("\n "); + if (if_block) if_block.c(); + text_1 = createText("\n "); + if (if_block_1) if_block_1.c(); + text_2 = createText("\n "); + if (if_block_2) if_block_2.c(); + text_3 = createText("\n "); + + for (i = 0; i < each_1_blocks_1.length; i += 1) each_1_blocks_1[i].c(); + div_1.className = div_1_class_value = "\n ui-pnotify-container\n " + (ctx._styles.container ? ctx._styles.container : '') + "\n " + (ctx._styles[ctx.type] ? ctx._styles[ctx.type] : '') + "\n " + ctx.cornerClass + "\n " + (ctx.shadow ? 'ui-pnotify-shadow' : '') + "\n "; + div_1.style.cssText = div_1_style_value = "" + ctx._widthStyle + " " + ctx._minHeightStyle; + setAttribute(div_1, "role", "alert"); + addListener(div, "mouseover", mouseover_handler); + addListener(div, "mouseout", mouseout_handler); + addListener(div, "mouseenter", mouseenter_handler); + addListener(div, "mouseleave", mouseleave_handler); + addListener(div, "mousemove", mousemove_handler); + addListener(div, "mousedown", mousedown_handler); + addListener(div, "mouseup", mouseup_handler); + addListener(div, "click", click_handler); + addListener(div, "dblclick", dblclick_handler); + addListener(div, "focus", focus_handler); + addListener(div, "blur", blur_handler); + addListener(div, "touchstart", touchstart_handler); + addListener(div, "touchmove", touchmove_handler); + addListener(div, "touchend", touchend_handler); + addListener(div, "touchcancel", touchcancel_handler); + div.className = div_class_value = "\n ui-pnotify\n " + (ctx.icon !== false ? 'ui-pnotify-with-icon' : '') + "\n " + (ctx._styles.element ? ctx._styles.element : '') + "\n " + ctx.addClass + "\n " + ctx._animatingClass + "\n " + ctx._moveClass + "\n " + (ctx.animation === 'fade' ? 'ui-pnotify-fade-'+ctx.animateSpeed : '') + "\n " + (ctx.stack && ctx.stack.modal ? 'ui-pnotify-modal' : '') + "\n " + ctx._moduleClasses.join(' ') + "\n "; + setAttribute(div, "aria-live", "assertive"); + setAttribute(div, "role", "alertdialog"); + setAttribute(div, "ui-pnotify", true); + }, + + m(target, anchor) { + insertNode(div, target, anchor); + appendNode(div_1, div); + + for (i = 0; i < each_blocks_1.length; i += 1) each_blocks_1[i].m(div_1, null); + + appendNode(text, div_1); + if (if_block) if_block.m(div_1, null); + appendNode(text_1, div_1); + if (if_block_1) if_block_1.m(div_1, null); + appendNode(text_2, div_1); + if (if_block_2) if_block_2.m(div_1, null); + appendNode(text_3, div_1); + + for (i = 0; i < each_1_blocks_1.length; i += 1) each_1_blocks_1[i].m(div_1, null); + + component.refs.container = div_1; + component.refs.elem = div; + }, + + p(changed, ctx) { + const each_value = ctx._modulesPrependContainer; + each_blocks_1 = updateKeyedEach(each_blocks_1, component, changed, get_key, 0, ctx, each_value, each_lookup, div_1, destroyBlock, create_each_block, "m", text, get_each_context); + + if (ctx.icon !== false) { + if (if_block) { + if_block.p(changed, ctx); + } else { + if_block = create_if_block(component, ctx); + if_block.c(); + if_block.m(div_1, text_1); + } + } else if (if_block) { + if_block.d(1); + if_block = null; + } + + if (ctx.title !== false) { + if (if_block_1) { + if_block_1.p(changed, ctx); + } else { + if_block_1 = create_if_block_1(component, ctx); + if_block_1.c(); + if_block_1.m(div_1, text_2); + } + } else if (if_block_1) { + if_block_1.d(1); + if_block_1 = null; + } + + if (ctx.text !== false) { + if (if_block_2) { + if_block_2.p(changed, ctx); + } else { + if_block_2 = create_if_block_4(component, ctx); + if_block_2.c(); + if_block_2.m(div_1, text_3); + } + } else if (if_block_2) { + if_block_2.d(1); + if_block_2 = null; + } + + const each_value_1 = ctx._modulesAppendContainer; + each_1_blocks_1 = updateKeyedEach(each_1_blocks_1, component, changed, get_key_1, 0, ctx, each_value_1, each_1_lookup, div_1, destroyBlock, create_each_block_1, "m", null, get_each_1_context); + + if ((changed._styles || changed.type || changed.cornerClass || changed.shadow) && div_1_class_value !== (div_1_class_value = "\n ui-pnotify-container\n " + (ctx._styles.container ? ctx._styles.container : '') + "\n " + (ctx._styles[ctx.type] ? ctx._styles[ctx.type] : '') + "\n " + ctx.cornerClass + "\n " + (ctx.shadow ? 'ui-pnotify-shadow' : '') + "\n ")) { + div_1.className = div_1_class_value; + } + + if ((changed._widthStyle || changed._minHeightStyle) && div_1_style_value !== (div_1_style_value = "" + ctx._widthStyle + " " + ctx._minHeightStyle)) { + div_1.style.cssText = div_1_style_value; + } + + if ((changed.icon || changed._styles || changed.addClass || changed._animatingClass || changed._moveClass || changed.animation || changed.animateSpeed || changed.stack || changed._moduleClasses) && div_class_value !== (div_class_value = "\n ui-pnotify\n " + (ctx.icon !== false ? 'ui-pnotify-with-icon' : '') + "\n " + (ctx._styles.element ? ctx._styles.element : '') + "\n " + ctx.addClass + "\n " + ctx._animatingClass + "\n " + ctx._moveClass + "\n " + (ctx.animation === 'fade' ? 'ui-pnotify-fade-'+ctx.animateSpeed : '') + "\n " + (ctx.stack && ctx.stack.modal ? 'ui-pnotify-modal' : '') + "\n " + ctx._moduleClasses.join(' ') + "\n ")) { + div.className = div_class_value; + } + }, + + d(detach) { + if (detach) { + detachNode(div); + } + + for (i = 0; i < each_blocks_1.length; i += 1) each_blocks_1[i].d(); + + if (if_block) if_block.d(); + if (if_block_1) if_block_1.d(); + if (if_block_2) if_block_2.d(); + + for (i = 0; i < each_1_blocks_1.length; i += 1) each_1_blocks_1[i].d(); + + if (component.refs.container === div_1) component.refs.container = null; + removeListener(div, "mouseover", mouseover_handler); + removeListener(div, "mouseout", mouseout_handler); + removeListener(div, "mouseenter", mouseenter_handler); + removeListener(div, "mouseleave", mouseleave_handler); + removeListener(div, "mousemove", mousemove_handler); + removeListener(div, "mousedown", mousedown_handler); + removeListener(div, "mouseup", mouseup_handler); + removeListener(div, "click", click_handler); + removeListener(div, "dblclick", dblclick_handler); + removeListener(div, "focus", focus_handler); + removeListener(div, "blur", blur_handler); + removeListener(div, "touchstart", touchstart_handler); + removeListener(div, "touchmove", touchmove_handler); + removeListener(div, "touchend", touchend_handler); + removeListener(div, "touchcancel", touchcancel_handler); + if (component.refs.elem === div) component.refs.elem = null; + } + }; +} + +// (53:4) {#each _modulesPrependContainer as module (module.key)} +function create_each_block(component, key_1, ctx) { + var first, switch_instance_anchor; + + var switch_value = ctx.module; + + function switch_props(ctx) { + return { + root: component.root + }; + } + + if (switch_value) { + var switch_instance = new switch_value(switch_props(ctx)); + } + + function switch_instance_init(event) { + component.initModule(event.module); + } + + if (switch_instance) switch_instance.on("init", switch_instance_init); + + return { + key: key_1, + + first: null, + + c() { + first = createComment(); + switch_instance_anchor = createComment(); + if (switch_instance) switch_instance._fragment.c(); + this.first = first; + }, + + m(target, anchor) { + insertNode(first, target, anchor); + insertNode(switch_instance_anchor, target, anchor); + + if (switch_instance) { + switch_instance._mount(target, anchor); + } + }, + + d(detach) { + if (detach) { + detachNode(first); + detachNode(switch_instance_anchor); + } + + if (switch_instance) switch_instance.destroy(detach); + } + }; +} + +// (56:4) {#if icon !== false} +function create_if_block(component, ctx) { + var div, span, span_class_value, div_class_value; + + return { + c() { + div = createElement("div"); + span = createElement("span"); + span.className = span_class_value = ctx.icon === true ? (ctx._icons[ctx.type] ? ctx._icons[ctx.type] : '') : ctx.icon; + div.className = div_class_value = "ui-pnotify-icon " + (ctx._styles.icon ? ctx._styles.icon : ''); + }, + + m(target, anchor) { + insertNode(div, target, anchor); + appendNode(span, div); + component.refs.iconContainer = div; + }, + + p(changed, ctx) { + if ((changed.icon || changed._icons || changed.type) && span_class_value !== (span_class_value = ctx.icon === true ? (ctx._icons[ctx.type] ? ctx._icons[ctx.type] : '') : ctx.icon)) { + span.className = span_class_value; + } + + if ((changed._styles) && div_class_value !== (div_class_value = "ui-pnotify-icon " + (ctx._styles.icon ? ctx._styles.icon : ''))) { + div.className = div_class_value; + } + }, + + d(detach) { + if (detach) { + detachNode(div); + } + + if (component.refs.iconContainer === div) component.refs.iconContainer = null; + } + }; +} + +// (63:8) {#if titleTrusted} +function create_if_block_2(component, ctx) { + var raw_before, raw_after; + + return { + c() { + raw_before = createElement('noscript'); + raw_after = createElement('noscript'); + }, + + m(target, anchor) { + insertNode(raw_before, target, anchor); + raw_before.insertAdjacentHTML("afterend", ctx.title); + insertNode(raw_after, target, anchor); + }, + + p(changed, ctx) { + if (changed.title) { + detachBetween(raw_before, raw_after); + raw_before.insertAdjacentHTML("afterend", ctx.title); + } + }, + + d(detach) { + if (detach) { + detachBetween(raw_before, raw_after); + detachNode(raw_before); + detachNode(raw_after); + } + } + }; +} + +// (65:8) {:else} +function create_if_block_3(component, ctx) { + var text; + + return { + c() { + text = createText(ctx.title); + }, + + m(target, anchor) { + insertNode(text, target, anchor); + }, + + p(changed, ctx) { + if (changed.title) { + text.data = ctx.title; + } + }, + + d(detach) { + if (detach) { + detachNode(text); + } + } + }; +} + +// (61:4) {#if title !== false} +function create_if_block_1(component, ctx) { + var h4, h4_class_value; + + function select_block_type(ctx) { + if (ctx.titleTrusted) return create_if_block_2; + return create_if_block_3; + } + + var current_block_type = select_block_type(ctx); + var if_block = current_block_type(component, ctx); + + return { + c() { + h4 = createElement("h4"); + if_block.c(); + h4.className = h4_class_value = "ui-pnotify-title " + (ctx._styles.title ? ctx._styles.title : ''); + }, + + m(target, anchor) { + insertNode(h4, target, anchor); + if_block.m(h4, null); + component.refs.titleContainer = h4; + }, + + p(changed, ctx) { + if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) { + if_block.p(changed, ctx); + } else { + if_block.d(1); + if_block = current_block_type(component, ctx); + if_block.c(); + if_block.m(h4, null); + } + + if ((changed._styles) && h4_class_value !== (h4_class_value = "ui-pnotify-title " + (ctx._styles.title ? ctx._styles.title : ''))) { + h4.className = h4_class_value; + } + }, + + d(detach) { + if (detach) { + detachNode(h4); + } + + if_block.d(); + if (component.refs.titleContainer === h4) component.refs.titleContainer = null; + } + }; +} + +// (72:8) {#if textTrusted} +function create_if_block_5(component, ctx) { + var raw_before, raw_after; + + return { + c() { + raw_before = createElement('noscript'); + raw_after = createElement('noscript'); + }, + + m(target, anchor) { + insertNode(raw_before, target, anchor); + raw_before.insertAdjacentHTML("afterend", ctx.text); + insertNode(raw_after, target, anchor); + }, + + p(changed, ctx) { + if (changed.text) { + detachBetween(raw_before, raw_after); + raw_before.insertAdjacentHTML("afterend", ctx.text); + } + }, + + d(detach) { + if (detach) { + detachBetween(raw_before, raw_after); + detachNode(raw_before); + detachNode(raw_after); + } + } + }; +} + +// (74:8) {:else} +function create_if_block_6(component, ctx) { + var text; + + return { + c() { + text = createText(ctx.text); + }, + + m(target, anchor) { + insertNode(text, target, anchor); + }, + + p(changed, ctx) { + if (changed.text) { + text.data = ctx.text; + } + }, + + d(detach) { + if (detach) { + detachNode(text); + } + } + }; +} + +// (70:4) {#if text !== false} +function create_if_block_4(component, ctx) { + var div, div_class_value; + + function select_block_type_1(ctx) { + if (ctx.textTrusted) return create_if_block_5; + return create_if_block_6; + } + + var current_block_type = select_block_type_1(ctx); + var if_block = current_block_type(component, ctx); + + return { + c() { + div = createElement("div"); + if_block.c(); + div.className = div_class_value = "ui-pnotify-text " + (ctx._styles.text ? ctx._styles.text : ''); + setAttribute(div, "role", "alert"); + }, + + m(target, anchor) { + insertNode(div, target, anchor); + if_block.m(div, null); + component.refs.textContainer = div; + }, + + p(changed, ctx) { + if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block) { + if_block.p(changed, ctx); + } else { + if_block.d(1); + if_block = current_block_type(component, ctx); + if_block.c(); + if_block.m(div, null); + } + + if ((changed._styles) && div_class_value !== (div_class_value = "ui-pnotify-text " + (ctx._styles.text ? ctx._styles.text : ''))) { + div.className = div_class_value; + } + }, + + d(detach) { + if (detach) { + detachNode(div); + } + + if_block.d(); + if (component.refs.textContainer === div) component.refs.textContainer = null; + } + }; +} + +// (79:4) {#each _modulesAppendContainer as module (module.key)} +function create_each_block_1(component, key_1, ctx) { + var first, switch_instance_anchor; + + var switch_value = ctx.module; + + function switch_props(ctx) { + return { + root: component.root + }; + } + + if (switch_value) { + var switch_instance = new switch_value(switch_props(ctx)); + } + + function switch_instance_init(event) { + component.initModule(event.module); + } + + if (switch_instance) switch_instance.on("init", switch_instance_init); + + return { + key: key_1, + + first: null, + + c() { + first = createComment(); + switch_instance_anchor = createComment(); + if (switch_instance) switch_instance._fragment.c(); + this.first = first; + }, + + m(target, anchor) { + insertNode(first, target, anchor); + insertNode(switch_instance_anchor, target, anchor); + + if (switch_instance) { + switch_instance._mount(target, anchor); + } + }, + + d(detach) { + if (detach) { + detachNode(first); + detachNode(switch_instance_anchor); + } + + if (switch_instance) switch_instance.destroy(detach); + } + }; +} + +function get_each_context(ctx, list, i) { + const child_ctx = Object.create(ctx); + child_ctx.module = list[i]; + child_ctx.each_value = list; + child_ctx.module_index = i; + return child_ctx; +} + +function get_each_1_context(ctx, list, i) { + const child_ctx = Object.create(ctx); + child_ctx.module = list[i]; + child_ctx.each_value_1 = list; + child_ctx.module_index_1 = i; + return child_ctx; +} + +function PNotify_1(options) { + init(this, options); + this.refs = {}; + this._state = assign(data(), options.data); + this._recompute({ styling: 1, icons: 1, width: 1, minHeight: 1 }, this._state); + this._intro = true; + + if (!document.getElementById("svelte-1eldsjg-style")) add_css(); + + if (!options.root) { + this._oncreate = []; + this._beforecreate = []; + this._aftercreate = []; + } + + this._fragment = create_main_fragment(this, this._state); + + this.root._oncreate.push(() => { + oncreate.call(this); + this.fire("update", { changed: assignTrue({}, this._state), current: this._state }); + }); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + + this._lock = true; + callAll(this._beforecreate); + callAll(this._oncreate); + callAll(this._aftercreate); + this._lock = false; + } +} + +assign(PNotify_1.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); +assign(PNotify_1.prototype, methods); + +PNotify_1.prototype._recompute = function _recompute(changed, state) { + if (changed.styling) { + if (this._differs(state._styles, (state._styles = _styles(state)))) changed._styles = true; + } + + if (changed.icons) { + if (this._differs(state._icons, (state._icons = _icons(state)))) changed._icons = true; + } + + if (changed.width) { + if (this._differs(state._widthStyle, (state._widthStyle = _widthStyle(state)))) changed._widthStyle = true; + } + + if (changed.minHeight) { + if (this._differs(state._minHeightStyle, (state._minHeightStyle = _minHeightStyle(state)))) changed._minHeightStyle = true; + } +} + +setup(PNotify_1); + +function createElement(name) { + return document.createElement(name); +} + +function appendNode(node, target) { + target.appendChild(node); +} + +function blankObject() { + return Object.create(null); +} + +function createText(data) { + return document.createTextNode(data); +} + +function setAttribute(node, attribute, value) { + node.setAttribute(attribute, value); +} + +function addListener(node, event, handler) { + node.addEventListener(event, handler, false); +} + +function insertNode(node, target, anchor) { + target.insertBefore(node, anchor); +} + +function updateKeyedEach(old_blocks, component, changed, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, intro_method, next, get_context) { + var o = old_blocks.length; + var n = list.length; + + var i = o; + var old_indexes = {}; + while (i--) old_indexes[old_blocks[i].key] = i; + + var new_blocks = []; + var new_lookup = {}; + var deltas = {}; + + var i = n; + while (i--) { + var child_ctx = get_context(ctx, list, i); + var key = get_key(child_ctx); + var block = lookup[key]; + + if (!block) { + block = create_each_block(component, key, child_ctx); + block.c(); + } else if (dynamic) { + block.p(changed, child_ctx); + } + + new_blocks[i] = new_lookup[key] = block; + + if (key in old_indexes) deltas[key] = Math.abs(i - old_indexes[key]); + } + + var will_move = {}; + var did_move = {}; + + function insert(block) { + block[intro_method](node, next); + lookup[block.key] = block; + next = block.first; + n--; + } + + while (o && n) { + var new_block = new_blocks[n - 1]; + var old_block = old_blocks[o - 1]; + var new_key = new_block.key; + var old_key = old_block.key; + + if (new_block === old_block) { + // do nothing + next = new_block.first; + o--; + n--; + } + + else if (!new_lookup[old_key]) { + // remove old block + destroy(old_block, lookup); + o--; + } + + else if (!lookup[new_key] || will_move[new_key]) { + insert(new_block); + } + + else if (did_move[old_key]) { + o--; + + } else if (deltas[new_key] > deltas[old_key]) { + did_move[new_key] = true; + insert(new_block); + + } else { + will_move[old_key] = true; + o--; + } + } + + while (o--) { + var old_block = old_blocks[o]; + if (!new_lookup[old_block.key]) destroy(old_block, lookup); + } + + while (n) insert(new_blocks[n - 1]); + + return new_blocks; +} + +function destroyBlock(block, lookup) { + block.d(1); + lookup[block.key] = null; +} + +function detachNode(node) { + node.parentNode.removeChild(node); +} + +function removeListener(node, event, handler) { + node.removeEventListener(event, handler, false); +} + +function createComment() { + return document.createComment(''); +} + +function detachBetween(before, after) { + while (before.nextSibling && before.nextSibling !== after) { + before.parentNode.removeChild(before.nextSibling); + } +} + +function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; +} + +function assign(tar, src) { + for (var k in src) tar[k] = src[k]; + return tar; +} + +function assignTrue(tar, src) { + for (var k in src) tar[k] = 1; + return tar; +} + +function callAll(fns) { + while (fns && fns.length) fns.shift()(); +} + +function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; +} + +function get() { + return this._state; +} + +function fire(eventName, data) { + var handlers = + eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } +} + +function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; +} + +function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; +} + +function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } +} + +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); +} + +function _differs(a, b) { + return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); +} + +function noop() {} +export default PNotify_1; \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotify.js.map b/app/node_modules/pnotify/lib/es/PNotify.js.map new file mode 100644 index 00000000..81edcced --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotify.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PNotify.js","sources":["src/PNotify.html"],"sourcesContent":["\n\n
\n
\n {#each _modulesPrependContainer as module (module.key)}\n \n {/each}\n {#if icon !== false}\n
\n \n
\n {/if}\n {#if title !== false}\n

\n {#if titleTrusted}\n {@html title}\n {:else}\n {title}\n {/if}\n

\n {/if}\n {#if text !== false}\n
\n {#if textTrusted}\n {@html text}\n {:else}\n {text}\n {/if}\n
\n {/if}\n {#each _modulesAppendContainer as module (module.key)}\n \n {/each}\n
\n
\n\n\n\n\n"],"names":[],"mappings":";;AAqFE,IAAI,OAAO,CAAC;;AAEd,AAAE,IAAI,QAAQ,CAAC;;AAEf,AAAE;AACF,AAAE,IAAI,gBAAgB,GAAG,MAAM;AAC/B,AAAE,EAAE,OAAO,CAAC,YAAY,CAAC,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC;AACjD,AAAE;AACF,AAAE,EAAE,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM;AAC5C,AAAE,IAAI,IAAI,QAAQ,EAAE;AACpB,AAAE,MAAM,YAAY,CAAC,QAAQ,CAAC,CAAC;AAC/B,AAAE,KAAK;AACP,AAAE,IAAI,QAAQ,GAAG,UAAU,CAAC,MAAM;AAClC,AAAE,MAAM,OAAO,CAAC,WAAW,EAAE,CAAC;AAC9B,AAAE,KAAK,EAAE,EAAE,CAAC,CAAC;AACb,AAAE,GAAG,CAAC,CAAC;AACP,AAAE,CAAC,CAAC;;AAEJ,AAAE;AACF,AAAE,IAAI,kBAAkB,GAAG,CAAC,KAAK,KAAK;AACtC,AAAE,EAAE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;;;iDAWvE,IAAI;;;;;;;kDAAJ,IAAI;;;;;;;;;;;;;;;;;;;;yBAEV,IAAI;;;;;;;;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;UAHF,WAAW;;;;;;;;;;;+DAD6B,OAAO,CAAC,IAAI,OAAG,OAAO,CAAC,IAAI,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;6FAAhC,OAAO,CAAC,IAAI,OAAG,OAAO,CAAC,IAAI,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;wBASvD,MAAM;;;;;;;;;;;;;YAAW,WAAW,KAAK,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyAnimate.js b/app/node_modules/pnotify/lib/es/PNotifyAnimate.js new file mode 100644 index 00000000..e04f5469 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyAnimate.js @@ -0,0 +1,295 @@ +/* src/PNotifyAnimate.html generated by Svelte v2.6.3 */ +import PNotify from "./PNotify.js"; + +function data() { + return Object.assign({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.Animate.defaults); +}; + +var methods = { + initModule (options) { + this.set(options); + this.setUpAnimations(); + }, + + update () { + this.setUpAnimations(); + }, + + setUpAnimations () { + const {_notice, _options, animate} = this.get(); + if (animate) { + _notice.set({'animation': 'none'}); + if (!_notice._animateIn) { + _notice._animateIn = _notice.animateIn; + } + if (!_notice._animateOut) { + _notice._animateOut = _notice.animateOut; + } + _notice.animateIn = this.animateIn.bind(this); + _notice.animateOut = this.animateOut.bind(this); + var animSpeed = 250; + if (_options.animateSpeed === 'slow') { + animSpeed = 400; + } else if (_options.animateSpeed === 'fast') { + animSpeed = 100; + } else if (_options.animateSpeed > 0) { + animSpeed = _options.animateSpeed; + } + animSpeed = animSpeed / 1000; + _notice.refs.elem.style.WebkitAnimationDuration = animSpeed + 's'; + _notice.refs.elem.style.MozAnimationDuration = animSpeed + 's'; + _notice.refs.elem.style.animationDuration = animSpeed + 's'; + } else if (_notice._animateIn && _notice._animateOut) { + _notice.animateIn = _notice._animateIn; + delete _notice._animateIn; + _notice.animateOut = _notice._animateOut; + delete _notice._animateOut; + } + }, + + animateIn (callback) { + const {_notice} = this.get(); + // Declare that the notice is animating in. + _notice.set({'_animating': 'in'}); + + const finished = () => { + _notice.refs.elem.removeEventListener('webkitAnimationEnd', finished); + _notice.refs.elem.removeEventListener('mozAnimationEnd', finished); + _notice.refs.elem.removeEventListener('MSAnimationEnd', finished); + _notice.refs.elem.removeEventListener('oanimationend', finished); + _notice.refs.elem.removeEventListener('animationend', finished); + _notice.set({'_animatingClass': 'ui-pnotify-in animated'}); + if (callback) { + callback.call(); + } + // Declare that the notice has completed animating. + _notice.set({'_animating': false}); + }; + + _notice.refs.elem.addEventListener('webkitAnimationEnd', finished); + _notice.refs.elem.addEventListener('mozAnimationEnd', finished); + _notice.refs.elem.addEventListener('MSAnimationEnd', finished); + _notice.refs.elem.addEventListener('oanimationend', finished); + _notice.refs.elem.addEventListener('animationend', finished); + _notice.set({'_animatingClass': 'ui-pnotify-in animated ' + this.get().inClass}); + }, + + animateOut (callback) { + const {_notice} = this.get(); + // Declare that the notice is animating out. + _notice.set({'_animating': 'out'}); + + const finished = () => { + _notice.refs.elem.removeEventListener('webkitAnimationEnd', finished); + _notice.refs.elem.removeEventListener('mozAnimationEnd', finished); + _notice.refs.elem.removeEventListener('MSAnimationEnd', finished); + _notice.refs.elem.removeEventListener('oanimationend', finished); + _notice.refs.elem.removeEventListener('animationend', finished); + _notice.set({'_animatingClass': 'animated'}); + if (callback) { + callback.call(); + } + // Declare that the notice has completed animating. + _notice.set({'_animating': false}); + }; + + _notice.refs.elem.addEventListener('webkitAnimationEnd', finished); + _notice.refs.elem.addEventListener('mozAnimationEnd', finished); + _notice.refs.elem.addEventListener('MSAnimationEnd', finished); + _notice.refs.elem.addEventListener('oanimationend', finished); + _notice.refs.elem.addEventListener('animationend', finished); + _notice.set({'_animatingClass': 'ui-pnotify-in animated ' + this.get().outClass}); + } +}; + +function setup(Component) { + Component.key = 'Animate'; + + Component.defaults = { + // Use animate.css to animate the notice. + animate: false, + // The class to use to animate the notice in. + inClass: '', + // The class to use to animate the notice out. + outClass: '' + }; + + Component.init = (notice) => { + notice.attention = (aniClass, callback) => { + const cb = () => { + notice.refs.container.removeEventListener('webkitAnimationEnd', cb); + notice.refs.container.removeEventListener('mozAnimationEnd', cb); + notice.refs.container.removeEventListener('MSAnimationEnd', cb); + notice.refs.container.removeEventListener('oanimationend', cb); + notice.refs.container.removeEventListener('animationend', cb); + notice.refs.container.classList.remove(aniClass); + if (callback) { + callback.call(notice); + } + }; + notice.refs.container.addEventListener('webkitAnimationEnd', cb); + notice.refs.container.addEventListener('mozAnimationEnd', cb); + notice.refs.container.addEventListener('MSAnimationEnd', cb); + notice.refs.container.addEventListener('oanimationend', cb); + notice.refs.container.addEventListener('animationend', cb); + notice.refs.container.classList.add('animated'); + notice.refs.container.classList.add(aniClass); + }; + + return new Component({target: document.body}); + }; + + // Register the module with PNotify. + PNotify.modules.Animate = Component; +}; + +function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; +} + +function PNotifyAnimate(options) { + init(this, options); + this._state = assign(data(), options.data); + this._intro = true; + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } +} + +assign(PNotifyAnimate.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); +assign(PNotifyAnimate.prototype, methods); + +PNotifyAnimate.prototype._recompute = noop; + +setup(PNotifyAnimate); + +function noop() {} + +function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; +} + +function assign(tar, src) { + for (var k in src) tar[k] = src[k]; + return tar; +} + +function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; +} + +function get() { + return this._state; +} + +function fire(eventName, data) { + var handlers = + eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } +} + +function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; +} + +function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; +} + +function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } +} + +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); +} + +function _differs(a, b) { + return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); +} + +function blankObject() { + return Object.create(null); +} + +function callAll(fns) { + while (fns && fns.length) fns.shift()(); +} +export default PNotifyAnimate; \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyAnimate.js.map b/app/node_modules/pnotify/lib/es/PNotifyAnimate.js.map new file mode 100644 index 00000000..d24dedd5 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyAnimate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PNotifyAnimate.js","sources":["src/PNotifyAnimate.html"],"sourcesContent":["\n"],"names":[],"mappings":";;;aA6CS,GAAG;AACZ,AAAI,EAAE,OAAO,MAAM,CAAC,MAAM,CAAC;AAC3B,AAAI,IAAI,SAAS,EAAE,IAAI;AACvB,AAAI,IAAI,UAAU,EAAE,EAAE;AACtB,AAAI,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC3C,AAAI,CAAC;;cAEQ;AACb,AAAI,EAAE,UAAU,CAAC,CAAC,OAAO,EAAE;AAC3B,AAAI,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC1B,AAAI,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;AAC/B,AAAI,GAAG;;AAEP,AAAI,EAAE,MAAM,CAAC,GAAG;AAChB,AAAI,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;AAC/B,AAAI,GAAG;;AAEP,AAAI,EAAE,eAAe,CAAC,GAAG;AACzB,AAAI,IAAI,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;AACxD,AAAI,IAAI,IAAI,OAAO,EAAE;AACrB,AAAI,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;AAC7C,AAAI,MAAM,IAAI,CAAC,OAAO,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyButtons.js b/app/node_modules/pnotify/lib/es/PNotifyButtons.js new file mode 100644 index 00000000..d5335396 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyButtons.js @@ -0,0 +1,508 @@ +/* src/PNotifyButtons.html generated by Svelte v2.6.3 */ +import PNotify from "./PNotify.js"; + +function _showSticker({ sticker, _notice }) { + return sticker && !(_notice && _notice.refs.elem.classList.contains('nonblock')); +} + +function _showCloser({ closer, _notice }) { + return closer && !(_notice && _notice.refs.elem.classList.contains('nonblock')); +} + +function _pinUpClass({ classes, _notice }) { + return _notice ? (classes.pinUp === null ? _notice.get()._icons.pinUp : classes.pinUp) : ''; +} + +function _pinDownClass({ classes, _notice }) { + return _notice ? (classes.pinDown === null ? _notice.get()._icons.pinDown : classes.pinDown) : ''; +} + +function _closerClass({ classes, _notice }) { + return _notice ? (classes.closer === null ? _notice.get()._icons.closer : classes.closer) : ''; +} + +function data() { + return Object.assign({ + '_notice': null, // The PNotify notice. + '_options': {}, // The options for the notice. + '_mouseIsIn': false + }, PNotify.modules.Buttons.defaults); +}; + +var methods = { + initModule (options) { + this.set(options); + const {_notice} = this.get(); + _notice.on('mouseenter', () => this.set({'_mouseIsIn': true})); + _notice.on('mouseleave', () => this.set({'_mouseIsIn': false})); + _notice.on('state', ({changed, current}) => { + if (!changed.hide) { + return; + } + + const {sticker} = this.get(); + + if (!sticker) { + return; + } + + // Font Awesome 5 replaces our lovely element with a gross SVG. In + // order to make it play nice with Svelte, we have to clear the + // element and make it again. + const icon = current.hide ? this.get().classes.pinUp : this.get().classes.pinDown; + if ( + (this.get()._notice.get().icons === 'fontawesome5') || + (typeof icon === 'string' && icon.match(/(^| )fa[srlb]($| )/)) + ) { + this.set({'sticker': false}); + this.set({'sticker': true}); + } + }); + }, + + handleStickerClick () { + const {_notice} = this.get(); + _notice.update({hide: !_notice.get().hide}); + }, + + handleCloserClick () { + this.get()._notice.close(false); + this.set({'_mouseIsIn': false}); + } +}; + +function oncreate() { + this.fire('init', {module: this}); +}; + +function setup(Component) { + Component.key = 'Buttons'; + + Component.defaults = { + // Provide a button for the user to manually close the notice. + closer: true, + // Only show the closer button on hover. + closerHover: true, + // Provide a button for the user to manually stick the notice. + sticker: true, + // Only show the sticker button on hover. + stickerHover: true, + // The various displayed text, helps facilitating internationalization. + labels: { + close: 'Close', + stick: 'Stick', + unstick: 'Unstick' + }, + // The classes to use for button icons. Leave them null to use the classes from the styling you're using. + classes: { + closer: null, + pinUp: null, + pinDown: null + } + }; + + // Register the module with PNotify. + PNotify.modules.Buttons = Component; + // Prepend this module to the container. + PNotify.modulesPrependContainer.push(Component); + + // Add button icons to icons objects. + Object.assign(PNotify.icons.brighttheme, { + closer: 'brighttheme-icon-closer', + pinUp: 'brighttheme-icon-sticker', + pinDown: 'brighttheme-icon-sticker brighttheme-icon-stuck' + }); + Object.assign(PNotify.icons.bootstrap3, { + closer: 'glyphicon glyphicon-remove', + pinUp: 'glyphicon glyphicon-pause', + pinDown: 'glyphicon glyphicon-play' + }); + Object.assign(PNotify.icons.fontawesome4, { + closer: 'fa fa-times', + pinUp: 'fa fa-pause', + pinDown: 'fa fa-play' + }); + Object.assign(PNotify.icons.fontawesome5, { + closer: 'fas fa-times', + pinUp: 'fas fa-pause', + pinDown: 'fas fa-play' + }); +}; + +function add_css() { + var style = createElement("style"); + style.id = 'svelte-1yjle82-style'; + style.textContent = ".ui-pnotify-closer.svelte-1yjle82,.ui-pnotify-sticker.svelte-1yjle82{float:right;margin-left:.5em;cursor:pointer}[dir=rtl] .ui-pnotify-closer,[dir=rtl] .ui-pnotify-sticker{float:left;margin-right:.5em;margin-left:0}.ui-pnotify-buttons-hidden.svelte-1yjle82{visibility:hidden}"; + appendNode(style, document.head); +} + +function create_main_fragment(component, ctx) { + var text, if_block_1_anchor; + + var if_block = (ctx._showCloser) && create_if_block(component, ctx); + + var if_block_1 = (ctx._showSticker) && create_if_block_1(component, ctx); + + return { + c() { + if (if_block) if_block.c(); + text = createText("\n"); + if (if_block_1) if_block_1.c(); + if_block_1_anchor = createComment(); + }, + + m(target, anchor) { + if (if_block) if_block.m(target, anchor); + insertNode(text, target, anchor); + if (if_block_1) if_block_1.m(target, anchor); + insertNode(if_block_1_anchor, target, anchor); + }, + + p(changed, ctx) { + if (ctx._showCloser) { + if (if_block) { + if_block.p(changed, ctx); + } else { + if_block = create_if_block(component, ctx); + if_block.c(); + if_block.m(text.parentNode, text); + } + } else if (if_block) { + if_block.d(1); + if_block = null; + } + + if (ctx._showSticker) { + if (if_block_1) { + if_block_1.p(changed, ctx); + } else { + if_block_1 = create_if_block_1(component, ctx); + if_block_1.c(); + if_block_1.m(if_block_1_anchor.parentNode, if_block_1_anchor); + } + } else if (if_block_1) { + if_block_1.d(1); + if_block_1 = null; + } + }, + + d(detach) { + if (if_block) if_block.d(detach); + if (detach) { + detachNode(text); + } + + if (if_block_1) if_block_1.d(detach); + if (detach) { + detachNode(if_block_1_anchor); + } + } + }; +} + +// (1:0) {#if _showCloser} +function create_if_block(component, ctx) { + var div, span, div_class_value, div_title_value; + + function click_handler(event) { + component.handleCloserClick(); + } + + return { + c() { + div = createElement("div"); + span = createElement("span"); + span.className = "" + ctx._closerClass + " svelte-1yjle82"; + addListener(div, "click", click_handler); + div.className = div_class_value = "ui-pnotify-closer " + ((!ctx.closerHover || ctx._mouseIsIn) ? '' : 'ui-pnotify-buttons-hidden') + " svelte-1yjle82"; + setAttribute(div, "role", "button"); + div.tabIndex = "0"; + div.title = div_title_value = ctx.labels.close; + }, + + m(target, anchor) { + insertNode(div, target, anchor); + appendNode(span, div); + }, + + p(changed, ctx) { + if (changed._closerClass) { + span.className = "" + ctx._closerClass + " svelte-1yjle82"; + } + + if ((changed.closerHover || changed._mouseIsIn) && div_class_value !== (div_class_value = "ui-pnotify-closer " + ((!ctx.closerHover || ctx._mouseIsIn) ? '' : 'ui-pnotify-buttons-hidden') + " svelte-1yjle82")) { + div.className = div_class_value; + } + + if ((changed.labels) && div_title_value !== (div_title_value = ctx.labels.close)) { + div.title = div_title_value; + } + }, + + d(detach) { + if (detach) { + detachNode(div); + } + + removeListener(div, "click", click_handler); + } + }; +} + +// (11:0) {#if _showSticker} +function create_if_block_1(component, ctx) { + var div, span, span_class_value, div_class_value, div_aria_pressed_value, div_title_value; + + function click_handler(event) { + component.handleStickerClick(); + } + + return { + c() { + div = createElement("div"); + span = createElement("span"); + span.className = span_class_value = "" + (ctx._options.hide ? ctx._pinUpClass : ctx._pinDownClass) + " svelte-1yjle82"; + addListener(div, "click", click_handler); + div.className = div_class_value = "ui-pnotify-sticker " + ((!ctx.stickerHover || ctx._mouseIsIn) ? '' : 'ui-pnotify-buttons-hidden') + " svelte-1yjle82"; + setAttribute(div, "role", "button"); + setAttribute(div, "aria-pressed", div_aria_pressed_value = ctx._options.hide); + div.tabIndex = "0"; + div.title = div_title_value = ctx._options.hide ? ctx.labels.stick : ctx.labels.unstick; + }, + + m(target, anchor) { + insertNode(div, target, anchor); + appendNode(span, div); + }, + + p(changed, ctx) { + if ((changed._options || changed._pinUpClass || changed._pinDownClass) && span_class_value !== (span_class_value = "" + (ctx._options.hide ? ctx._pinUpClass : ctx._pinDownClass) + " svelte-1yjle82")) { + span.className = span_class_value; + } + + if ((changed.stickerHover || changed._mouseIsIn) && div_class_value !== (div_class_value = "ui-pnotify-sticker " + ((!ctx.stickerHover || ctx._mouseIsIn) ? '' : 'ui-pnotify-buttons-hidden') + " svelte-1yjle82")) { + div.className = div_class_value; + } + + if ((changed._options) && div_aria_pressed_value !== (div_aria_pressed_value = ctx._options.hide)) { + setAttribute(div, "aria-pressed", div_aria_pressed_value); + } + + if ((changed._options || changed.labels) && div_title_value !== (div_title_value = ctx._options.hide ? ctx.labels.stick : ctx.labels.unstick)) { + div.title = div_title_value; + } + }, + + d(detach) { + if (detach) { + detachNode(div); + } + + removeListener(div, "click", click_handler); + } + }; +} + +function PNotifyButtons(options) { + init(this, options); + this._state = assign(data(), options.data); + this._recompute({ sticker: 1, _notice: 1, closer: 1, classes: 1 }, this._state); + this._intro = true; + + if (!document.getElementById("svelte-1yjle82-style")) add_css(); + + if (!options.root) { + this._oncreate = []; + } + + this._fragment = create_main_fragment(this, this._state); + + this.root._oncreate.push(() => { + oncreate.call(this); + this.fire("update", { changed: assignTrue({}, this._state), current: this._state }); + }); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + + callAll(this._oncreate); + } +} + +assign(PNotifyButtons.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); +assign(PNotifyButtons.prototype, methods); + +PNotifyButtons.prototype._recompute = function _recompute(changed, state) { + if (changed.sticker || changed._notice) { + if (this._differs(state._showSticker, (state._showSticker = _showSticker(state)))) changed._showSticker = true; + } + + if (changed.closer || changed._notice) { + if (this._differs(state._showCloser, (state._showCloser = _showCloser(state)))) changed._showCloser = true; + } + + if (changed.classes || changed._notice) { + if (this._differs(state._pinUpClass, (state._pinUpClass = _pinUpClass(state)))) changed._pinUpClass = true; + if (this._differs(state._pinDownClass, (state._pinDownClass = _pinDownClass(state)))) changed._pinDownClass = true; + if (this._differs(state._closerClass, (state._closerClass = _closerClass(state)))) changed._closerClass = true; + } +} + +setup(PNotifyButtons); + +function createElement(name) { + return document.createElement(name); +} + +function appendNode(node, target) { + target.appendChild(node); +} + +function createText(data) { + return document.createTextNode(data); +} + +function createComment() { + return document.createComment(''); +} + +function insertNode(node, target, anchor) { + target.insertBefore(node, anchor); +} + +function detachNode(node) { + node.parentNode.removeChild(node); +} + +function addListener(node, event, handler) { + node.addEventListener(event, handler, false); +} + +function setAttribute(node, attribute, value) { + node.setAttribute(attribute, value); +} + +function removeListener(node, event, handler) { + node.removeEventListener(event, handler, false); +} + +function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; +} + +function assign(tar, src) { + for (var k in src) tar[k] = src[k]; + return tar; +} + +function assignTrue(tar, src) { + for (var k in src) tar[k] = 1; + return tar; +} + +function callAll(fns) { + while (fns && fns.length) fns.shift()(); +} + +function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; +} + +function get() { + return this._state; +} + +function fire(eventName, data) { + var handlers = + eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } +} + +function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; +} + +function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; +} + +function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } +} + +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); +} + +function _differs(a, b) { + return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); +} + +function blankObject() { + return Object.create(null); +} + +function noop() {} +export default PNotifyButtons; \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyButtons.js.map b/app/node_modules/pnotify/lib/es/PNotifyButtons.js.map new file mode 100644 index 00000000..5c1bc761 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyButtons.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PNotifyButtons.js","sources":["src/PNotifyButtons.html"],"sourcesContent":["{#if _showCloser}\n \n \n \n{/if}\n{#if _showSticker}\n \n \n \n{/if}\n\n\n\n\n"],"names":[],"mappings":";;;sBA8FqB,EAAE,OAAO,EAAE,OAAO,EAAE;QAAK,OAAO,IAAI,EAAE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;;;qBAEnG,EAAE,MAAM,EAAE,OAAO,EAAE;QAAK,MAAM,IAAI,EAAE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;;;qBAEhG,EAAE,OAAO,EAAE,OAAO,EAAE;QAAK,OAAO,IAAI,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE;;;uBAC3G,EAAE,OAAO,EAAE,OAAO,EAAE;QAAK,OAAO,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE;;;sBACpH,EAAE,OAAO,EAAE,OAAO,EAAE;QAAK,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,EAAE;;;aAhB5H,GAAG;AACZ,AAAI,EAAE,OAAO,MAAM,CAAC,MAAM,CAAC;AAC3B,AAAI,IAAI,SAAS,EAAE,IAAI;AACvB,AAAI,IAAI,UAAU,EAAE,EAAE;AACtB,AAAI,IAAI,YAAY,EAAE,KAAK;AAC3B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyCallbacks.js b/app/node_modules/pnotify/lib/es/PNotifyCallbacks.js new file mode 100644 index 00000000..0ed117c9 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyCallbacks.js @@ -0,0 +1,212 @@ +/* src/PNotifyCallbacks.html generated by Svelte v2.6.3 */ +import PNotify from "./PNotify.js"; + +let _open = PNotify.prototype.open; +let _close = PNotify.prototype.close; + +const callbacks = (notice, options, name) => { + let modules = notice ? notice.get().modules : options.modules; + let cbs = (modules && modules.Callbacks) ? modules.Callbacks : {}; + return cbs[name] ? cbs[name] : () => true; +}; + +PNotify.prototype.open = function (...args) { + let ret = callbacks(this, null, 'beforeOpen')(this); + if (ret !== false) { + _open.apply(this, args); + callbacks(this, null, 'afterOpen')(this); + } +}; + +PNotify.prototype.close = function (timerHide, ...args) { + let ret = callbacks(this, null, 'beforeClose')(this, timerHide); + if (ret !== false) { + _close.apply(this, [timerHide, ...args]); + callbacks(this, null, 'afterClose')(this, timerHide); + } +}; + +function setup(Component) { + Component.key = 'Callbacks'; + + Component.getCallbacks = callbacks; + + let _alert = PNotify.alert; + let _notice = PNotify.notice; + let _info = PNotify.info; + let _success = PNotify.success; + let _error = PNotify.error; + + let init = (original, options) => { + callbacks(null, options, 'beforeInit')(options); + let notice = original(options); + callbacks(notice, null, 'afterInit')(notice); + return notice; + }; + + PNotify.alert = (options) => { + return init(_alert, options); + }; + PNotify.notice = (options) => { + return init(_notice, options); + }; + PNotify.info = (options) => { + return init(_info, options); + }; + PNotify.success = (options) => { + return init(_success, options); + }; + PNotify.error = (options) => { + return init(_error, options); + }; + + // Register the module with PNotify. + PNotify.modules.Callbacks = Component; +}; + +function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; +} + +function PNotifyCallbacks(options) { + init(this, options); + this._state = assign({}, options.data); + this._intro = true; + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } +} + +assign(PNotifyCallbacks.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + +PNotifyCallbacks.prototype._recompute = noop; + +setup(PNotifyCallbacks); + +function noop() {} + +function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; +} + +function assign(tar, src) { + for (var k in src) tar[k] = src[k]; + return tar; +} + +function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; +} + +function get() { + return this._state; +} + +function fire(eventName, data) { + var handlers = + eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } +} + +function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; +} + +function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; +} + +function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } +} + +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); +} + +function _differs(a, b) { + return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); +} + +function blankObject() { + return Object.create(null); +} + +function callAll(fns) { + while (fns && fns.length) fns.shift()(); +} +export default PNotifyCallbacks; \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyCallbacks.js.map b/app/node_modules/pnotify/lib/es/PNotifyCallbacks.js.map new file mode 100644 index 00000000..3aecf4ee --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyCallbacks.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PNotifyCallbacks.js","sources":["src/PNotifyCallbacks.html"],"sourcesContent":["\n"],"names":[],"mappings":";;;AAGE,IAAI,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC;AACrC,AAAE,IAAI,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC;;AAEvC,AAAE,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,KAAK;AAC/C,AAAE,EAAE,IAAI,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAClE,AAAE,EAAE,IAAI,GAAG,GAAG,CAAC,OAAO,IAAI,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,SAAS,GAAG,EAAE,CAAC;AACtE,AAAE,EAAE,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,CAAC;AAC9C,AAAE,CAAC,CAAC;;AAEJ,AAAE,OAAO,CAAC,SAAS,CAAC,IAAI,GAAG,UAAU,GAAG,IA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J,AAAI,EAAE,OAAO,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;AAC5C,AAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyCompat.js b/app/node_modules/pnotify/lib/es/PNotifyCompat.js new file mode 100644 index 00000000..2b086875 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyCompat.js @@ -0,0 +1,225 @@ +import PNotify from "./PNotify.js"; + +// Translate v3 options to v4 options. +const translateOptions = (options, module, moduleName) => { + // Merge the classic default options. + const newOptions = module ? Object.assign({}, moduleName ? PNotifyCompat.prototype.options[moduleName] : {}, options) : Object.assign({}, PNotifyCompat.prototype.options, options); + const translateName = (badName) => { + let goodName = badName; + let underscoreIndex; + while ((underscoreIndex = goodName.indexOf('_')) !== -1) { + goodName = goodName.slice(0, underscoreIndex) + goodName.slice(underscoreIndex + 1, underscoreIndex + 2).toUpperCase() + goodName.slice(underscoreIndex + 2); + } + return goodName; + }; + + // Translate all options to the new style. + for (let name in newOptions) { + if (newOptions.hasOwnProperty(name) && name.indexOf('_') !== -1) { + const goodName = translateName(name); + newOptions[goodName] = newOptions[name]; + delete newOptions[name]; + } + } + + if (!module) { + // Options that have changed. + if (newOptions.hasOwnProperty('addclass')) { + newOptions.addClass = newOptions.addclass; + delete newOptions.addclass; + } + if (newOptions.hasOwnProperty('cornerclass')) { + newOptions.cornerClass = newOptions.cornerclass; + delete newOptions.cornerClass; + } + if (newOptions.hasOwnProperty('textEscape')) { + newOptions.textTrusted = !newOptions.textEscape; + delete newOptions.textEscape; + } + if (newOptions.hasOwnProperty('titleEscape')) { + newOptions.titleTrusted = !newOptions.titleEscape; + delete newOptions.titleEscape; + } + + // Styling and icons. + if (newOptions.hasOwnProperty('styling')) { + if (newOptions.styling === 'bootstrap3') { + newOptions.icons = 'bootstrap3'; + } else if (newOptions.styling === 'fontawesome') { + newOptions.styling = 'bootstrap3'; + newOptions.icons = 'fontawesome4'; + } + } + + // Stacks. + if (newOptions.hasOwnProperty('stack')) { + if (newOptions.stack.overlay_close) { + newOptions.stack.overlayClose = newOptions.stack.overlay_close; + } + } + + // Translate module options. + newOptions.modules = {}; + if (newOptions.hasOwnProperty('animate')) { + newOptions.modules.Animate = translateOptions(newOptions.animate, true, 'animate'); + delete newOptions.animate; + } + if (newOptions.hasOwnProperty('buttons')) { + newOptions.modules.Buttons = translateOptions(newOptions.buttons, true, 'buttons'); + delete newOptions.buttons; + if (newOptions.modules.Buttons.classes) { + newOptions.modules.Buttons.classes = translateOptions(newOptions.modules.Buttons.classes, true); + } + } + if (newOptions.hasOwnProperty('confirm')) { + newOptions.modules.Confirm = translateOptions(newOptions.confirm, true, 'confirm'); + if (newOptions.modules.Confirm.promptDefault) { + newOptions.modules.Confirm.promptValue = newOptions.modules.Confirm.promptDefault; + delete newOptions.modules.Confirm.promptDefault; + } + delete newOptions.confirm; + } + if (newOptions.hasOwnProperty('desktop')) { + newOptions.modules.Desktop = translateOptions(newOptions.desktop, true, 'desktop'); + delete newOptions.desktop; + } + if (newOptions.hasOwnProperty('history')) { + newOptions.modules.History = translateOptions(newOptions.history, true, 'history'); + delete newOptions.history; + } + if (newOptions.hasOwnProperty('mobile')) { + newOptions.modules.Mobile = translateOptions(newOptions.mobile, true, 'mobile'); + delete newOptions.mobile; + } + if (newOptions.hasOwnProperty('nonblock')) { + newOptions.modules.NonBlock = translateOptions(newOptions.nonblock, true, 'nonblock'); + delete newOptions.nonblock; + } + if (newOptions.hasOwnProperty('reference')) { + newOptions.modules.Reference = translateOptions(newOptions.reference, true, 'reference'); + delete newOptions.reference; + } + if (newOptions.hasOwnProperty('beforeInit')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.beforeInit = newOptions.beforeInit; + delete newOptions.beforeInit; + } + if (newOptions.hasOwnProperty('afterInit')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.afterInit = newOptions.afterInit; + delete newOptions.afterInit; + } + if (newOptions.hasOwnProperty('beforeOpen')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.beforeOpen = newOptions.beforeOpen; + delete newOptions.beforeOpen; + } + if (newOptions.hasOwnProperty('afterOpen')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.afterOpen = newOptions.afterOpen; + delete newOptions.afterOpen; + } + if (newOptions.hasOwnProperty('beforeClose')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.beforeClose = newOptions.beforeClose; + delete newOptions.beforeClose; + } + if (newOptions.hasOwnProperty('afterClose')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.afterClose = newOptions.afterClose; + delete newOptions.afterClose; + } + } + + return newOptions; +}; + +// The compatibility class. +class PNotifyCompat extends PNotify { + constructor (options) { + if (typeof options !== 'object') { + options = {'text': options}; + } + + // These need to be called directly, since we're not using PNotify.alert(). + if (PNotify.modules.Callbacks && options.before_init) { + options.before_init(options); + } + + options = translateOptions(options); + + super({target: document.body, data: options}); + + // Override the get function to return the element like it did in v3. + const _get = this.get; + this.get = function (option) { + if (option === undefined) { + return Object.assign(window.jQuery ? window.jQuery(this.refs.elem) : this.refs.elem, _get.call(this)); + } + return _get.call(this, option); + }; + + // Confirm module events. + this.on('pnotify.confirm', (e) => { + if (window.jQuery) { + window.jQuery(this.refs.elem).trigger('pnotify.confirm', [this, e.value]); + } + }); + this.on('pnotify.cancel', (e) => { + if (window.jQuery) { + window.jQuery(this.refs.elem).trigger('pnotify.cancel', this); + } + }); + + if (PNotify.modules.Callbacks) { + PNotify.modules.Callbacks.getCallbacks(this, null, 'afterInit')(this); + } + } + + update (options) { + options = translateOptions(options); + return super.update(options); + } +} + +// Lets you change defaults the old way. +PNotifyCompat.prototype.options = { + text_escape: false, + title_escape: false +}; + +// Forward static functions. +PNotifyCompat.reload = () => PNotifyCompat; +PNotifyCompat.removeAll = () => PNotify.removeAll(); +PNotifyCompat.removeStack = (stack) => PNotify.removeStack(stack); +PNotifyCompat.positionAll = (animate) => PNotify.positionAll(animate); + +// Desktop module permission method. +PNotifyCompat.desktop = { + permission: () => { + PNotify.modules.Desktop.permission(); + } +}; + +// Old style showLast() in History module. +if (window.jQuery) { + window.jQuery(() => { + window.jQuery(document.body).on('pnotify.history-last', function () { + PNotify.modules.History.showLast(); + }); + }); +} + +export default PNotifyCompat; diff --git a/app/node_modules/pnotify/lib/es/PNotifyConfirm.js b/app/node_modules/pnotify/lib/es/PNotifyConfirm.js new file mode 100644 index 00000000..1f5aa150 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyConfirm.js @@ -0,0 +1,753 @@ +/* src/PNotifyConfirm.html generated by Svelte v2.6.3 */ +import PNotify from "./PNotify.js"; + +function data() { + return Object.assign({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.Confirm.defaults); +}; + +var methods = { + initModule (options) { + this.set(options); + }, + + afterOpen () { + if (this.get().prompt) { + if (this.get().promptMultiLine) { + this.refs.promptMulti.focus(); + } else { + this.refs.promptSingle.focus(); + } + } + }, + + handleClick (button, event) { + if (button.click) { + button.click(this.get()._notice, this.get().prompt ? this.get().promptValue : null, event); + } + }, + + handleKeyPress (event) { + if (event.keyCode === 13 && !event.shiftKey) { + event.preventDefault(); + const {buttons} = this.get(); + for (let i = 0; i < buttons.length; i++) { + if (buttons[i].promptTrigger && buttons[i].click) { + buttons[i].click(this.get()._notice, this.get().prompt ? this.get().promptValue : null, event); + } + } + } + } +}; + +function oncreate() { + this.fire('init', {module: this}); +}; + +function setup(Component) { + Component.key = 'Confirm'; + + Component.defaults = { + // Make a confirmation box. + confirm: false, + // Make a prompt. + prompt: false, + // Classes to add to the input element of the prompt. + promptClass: '', + // The value of the prompt. + promptValue: '', + // Whether the prompt should accept multiple lines of text. + promptMultiLine: false, + // Where to align the buttons. (flex-start, center, flex-end, space-around, space-between) + align: 'flex-end', + // The buttons to display, and their callbacks. + buttons: [ + { + text: 'Ok', + textTrusted: false, + addClass: '', + primary: true, + // Whether to trigger this button when the user hits enter in a single line prompt. + promptTrigger: true, + click: (notice, value) => { + notice.close(); + notice.fire('pnotify.confirm', {notice, value}); + } + }, + { + text: 'Cancel', + textTrusted: false, + addClass: '', + click: (notice) => { + notice.close(); + notice.fire('pnotify.cancel', {notice}); + } + } + ] + }; + + // Register the module with PNotify. + PNotify.modules.Confirm = Component; + // Append this module to the container. + PNotify.modulesAppendContainer.push(Component); + + // Add button styles to styling objects. + Object.assign(PNotify.styling.brighttheme, { + actionBar: '', + promptBar: '', + btn: '', + btnPrimary: 'brighttheme-primary', + input: '' + }); + Object.assign(PNotify.styling.bootstrap3, { + actionBar: 'ui-pnotify-confirm-ml', + promptBar: 'ui-pnotify-confirm-ml', + btn: 'btn btn-default ui-pnotify-confirm-mx-1', + btnPrimary: 'btn btn-default ui-pnotify-confirm-mx-1 btn-primary', + input: 'form-control' + }); + Object.assign(PNotify.styling.bootstrap4, { + actionBar: 'ui-pnotify-confirm-ml', + promptBar: 'ui-pnotify-confirm-ml', + btn: 'btn btn-secondary mx-1', + btnPrimary: 'btn btn-primary mx-1', + input: 'form-control' + }); + if (!PNotify.styling.material) { + PNotify.styling.material = {}; + } + Object.assign(PNotify.styling.material, { + actionBar: '', + promptBar: '', + btn: '', + btnPrimary: 'ui-pnotify-material-primary', + input: '' + }); +}; + +function add_css() { + var style = createElement("style"); + style.id = 'svelte-1y9suua-style'; + style.textContent = ".ui-pnotify-action-bar.svelte-1y9suua,.ui-pnotify-prompt-bar.svelte-1y9suua{margin-top:5px;clear:both}.ui-pnotify-action-bar.svelte-1y9suua{display:flex;flex-wrap:wrap;justify-content:flex-end}.ui-pnotify-prompt-input.svelte-1y9suua{margin-bottom:5px;display:block;width:100%}.ui-pnotify-confirm-mx-1.svelte-1y9suua{margin:0 5px}.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-confirm-ml{margin-left:24px}[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-confirm-ml{margin-right:24px;margin-left:0}"; + appendNode(style, document.head); +} + +function create_main_fragment(component, ctx) { + var if_block_anchor; + + var if_block = (ctx.confirm || ctx.prompt) && create_if_block(component, ctx); + + return { + c() { + if (if_block) if_block.c(); + if_block_anchor = createComment(); + }, + + m(target, anchor) { + if (if_block) if_block.m(target, anchor); + insertNode(if_block_anchor, target, anchor); + }, + + p(changed, ctx) { + if (ctx.confirm || ctx.prompt) { + if (if_block) { + if_block.p(changed, ctx); + } else { + if_block = create_if_block(component, ctx); + if_block.c(); + if_block.m(if_block_anchor.parentNode, if_block_anchor); + } + } else if (if_block) { + if_block.d(1); + if_block = null; + } + }, + + d(detach) { + if (if_block) if_block.d(detach); + if (detach) { + detachNode(if_block_anchor); + } + } + }; +} + +// (10:8) {#if promptMultiLine} +function create_if_block_2(component, ctx) { + var textarea, textarea_updating = false, textarea_class_value; + + function textarea_input_handler() { + textarea_updating = true; + component.set({ promptValue: textarea.value }); + textarea_updating = false; + } + + function keypress_handler(event) { + component.handleKeyPress(event); + } + + return { + c() { + textarea = createElement("textarea"); + addListener(textarea, "input", textarea_input_handler); + addListener(textarea, "keypress", keypress_handler); + textarea.rows = "5"; + textarea.className = textarea_class_value = "\n ui-pnotify-prompt-input\n " + (ctx._notice.get()._styles.input ? ctx._notice.get()._styles.input : '') + "\n " + ctx.promptClass + "\n " + " svelte-1y9suua"; + }, + + m(target, anchor) { + insertNode(textarea, target, anchor); + component.refs.promptMulti = textarea; + + textarea.value = ctx.promptValue; + }, + + p(changed, ctx) { + if (!textarea_updating) textarea.value = ctx.promptValue; + if ((changed._notice || changed.promptClass) && textarea_class_value !== (textarea_class_value = "\n ui-pnotify-prompt-input\n " + (ctx._notice.get()._styles.input ? ctx._notice.get()._styles.input : '') + "\n " + ctx.promptClass + "\n " + " svelte-1y9suua")) { + textarea.className = textarea_class_value; + } + }, + + d(detach) { + if (detach) { + detachNode(textarea); + } + + removeListener(textarea, "input", textarea_input_handler); + removeListener(textarea, "keypress", keypress_handler); + if (component.refs.promptMulti === textarea) component.refs.promptMulti = null; + } + }; +} + +// (21:8) {:else} +function create_if_block_3(component, ctx) { + var input, input_updating = false, input_class_value; + + function input_input_handler() { + input_updating = true; + component.set({ promptValue: input.value }); + input_updating = false; + } + + function keypress_handler(event) { + component.handleKeyPress(event); + } + + return { + c() { + input = createElement("input"); + addListener(input, "input", input_input_handler); + addListener(input, "keypress", keypress_handler); + setAttribute(input, "type", "text"); + input.className = input_class_value = "\n ui-pnotify-prompt-input\n " + (ctx._notice.get()._styles.input ? ctx._notice.get()._styles.input : '') + "\n " + ctx.promptClass + "\n " + " svelte-1y9suua"; + }, + + m(target, anchor) { + insertNode(input, target, anchor); + component.refs.promptSingle = input; + + input.value = ctx.promptValue; + }, + + p(changed, ctx) { + if (!input_updating) input.value = ctx.promptValue; + if ((changed._notice || changed.promptClass) && input_class_value !== (input_class_value = "\n ui-pnotify-prompt-input\n " + (ctx._notice.get()._styles.input ? ctx._notice.get()._styles.input : '') + "\n " + ctx.promptClass + "\n " + " svelte-1y9suua")) { + input.className = input_class_value; + } + }, + + d(detach) { + if (detach) { + detachNode(input); + } + + removeListener(input, "input", input_input_handler); + removeListener(input, "keypress", keypress_handler); + if (component.refs.promptSingle === input) component.refs.promptSingle = null; + } + }; +} + +// (3:4) {#if prompt} +function create_if_block_1(component, ctx) { + var div, div_class_value; + + function select_block_type(ctx) { + if (ctx.promptMultiLine) return create_if_block_2; + return create_if_block_3; + } + + var current_block_type = select_block_type(ctx); + var if_block = current_block_type(component, ctx); + + return { + c() { + div = createElement("div"); + if_block.c(); + div.className = div_class_value = "\n ui-pnotify-prompt-bar\n " + (ctx._notice.get()._styles.promptBar ? ctx._notice.get()._styles.promptBar : '') + "\n " + (ctx._notice.get()._styles.text ? ctx._notice.get()._styles.text : '') + "\n " + " svelte-1y9suua"; + }, + + m(target, anchor) { + insertNode(div, target, anchor); + if_block.m(div, null); + }, + + p(changed, ctx) { + if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) { + if_block.p(changed, ctx); + } else { + if_block.d(1); + if_block = current_block_type(component, ctx); + if_block.c(); + if_block.m(div, null); + } + + if ((changed._notice) && div_class_value !== (div_class_value = "\n ui-pnotify-prompt-bar\n " + (ctx._notice.get()._styles.promptBar ? ctx._notice.get()._styles.promptBar : '') + "\n " + (ctx._notice.get()._styles.text ? ctx._notice.get()._styles.text : '') + "\n " + " svelte-1y9suua")) { + div.className = div_class_value; + } + }, + + d(detach) { + if (detach) { + detachNode(div); + } + + if_block.d(); + } + }; +} + +// (42:6) {#each buttons as button} +function create_each_block(component, ctx) { + var button, button_class_value; + + function select_block_type_1(ctx) { + if (ctx.button.textTrusted) return create_if_block_4; + return create_if_block_5; + } + + var current_block_type = select_block_type_1(ctx); + var if_block = current_block_type(component, ctx); + + return { + c() { + button = createElement("button"); + if_block.c(); + button._svelte = { component, ctx }; + + addListener(button, "click", click_handler); + button.type = "button"; + button.className = button_class_value = "\n ui-pnotify-action-button\n " + (ctx.button.primary ? (ctx._notice.get()._styles.btnPrimary ? ctx._notice.get()._styles.btnPrimary : '') : (ctx._notice.get()._styles.btn ? ctx._notice.get()._styles.btn : '')) + "\n " + (ctx.button.addClass ? ctx.button.addClass : '') + "\n " + " svelte-1y9suua"; + }, + + m(target, anchor) { + insertNode(button, target, anchor); + if_block.m(button, null); + }, + + p(changed, ctx) { + if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block) { + if_block.p(changed, ctx); + } else { + if_block.d(1); + if_block = current_block_type(component, ctx); + if_block.c(); + if_block.m(button, null); + } + + button._svelte.ctx = ctx; + if ((changed.buttons || changed._notice) && button_class_value !== (button_class_value = "\n ui-pnotify-action-button\n " + (ctx.button.primary ? (ctx._notice.get()._styles.btnPrimary ? ctx._notice.get()._styles.btnPrimary : '') : (ctx._notice.get()._styles.btn ? ctx._notice.get()._styles.btn : '')) + "\n " + (ctx.button.addClass ? ctx.button.addClass : '') + "\n " + " svelte-1y9suua")) { + button.className = button_class_value; + } + }, + + d(detach) { + if (detach) { + detachNode(button); + } + + if_block.d(); + removeListener(button, "click", click_handler); + } + }; +} + +// (50:14) {#if button.textTrusted} +function create_if_block_4(component, ctx) { + var raw_value = ctx.button.text, raw_before, raw_after; + + return { + c() { + raw_before = createElement('noscript'); + raw_after = createElement('noscript'); + }, + + m(target, anchor) { + insertNode(raw_before, target, anchor); + raw_before.insertAdjacentHTML("afterend", raw_value); + insertNode(raw_after, target, anchor); + }, + + p(changed, ctx) { + if ((changed.buttons) && raw_value !== (raw_value = ctx.button.text)) { + detachBetween(raw_before, raw_after); + raw_before.insertAdjacentHTML("afterend", raw_value); + } + }, + + d(detach) { + if (detach) { + detachBetween(raw_before, raw_after); + detachNode(raw_before); + detachNode(raw_after); + } + } + }; +} + +// (50:57) {:else} +function create_if_block_5(component, ctx) { + var text_value = ctx.button.text, text; + + return { + c() { + text = createText(text_value); + }, + + m(target, anchor) { + insertNode(text, target, anchor); + }, + + p(changed, ctx) { + if ((changed.buttons) && text_value !== (text_value = ctx.button.text)) { + text.data = text_value; + } + }, + + d(detach) { + if (detach) { + detachNode(text); + } + } + }; +} + +// (1:0) {#if confirm || prompt} +function create_if_block(component, ctx) { + var div, text, div_1, div_1_class_value; + + var if_block = (ctx.prompt) && create_if_block_1(component, ctx); + + var each_value = ctx.buttons; + + var each_blocks = []; + + for (var i = 0; i < each_value.length; i += 1) { + each_blocks[i] = create_each_block(component, get_each_context(ctx, each_value, i)); + } + + return { + c() { + div = createElement("div"); + if (if_block) if_block.c(); + text = createText("\n "); + div_1 = createElement("div"); + + for (var i = 0; i < each_blocks.length; i += 1) { + each_blocks[i].c(); + } + div_1.className = div_1_class_value = "\n ui-pnotify-action-bar\n " + (ctx._notice.get()._styles.actionBar ? ctx._notice.get()._styles.actionBar : '') + "\n " + (ctx._notice.get()._styles.text ? ctx._notice.get()._styles.text : '') + "\n " + " svelte-1y9suua"; + setStyle(div_1, "justify-content", ctx.align); + div.className = "ui-pnotify-confirm"; + }, + + m(target, anchor) { + insertNode(div, target, anchor); + if (if_block) if_block.m(div, null); + appendNode(text, div); + appendNode(div_1, div); + + for (var i = 0; i < each_blocks.length; i += 1) { + each_blocks[i].m(div_1, null); + } + }, + + p(changed, ctx) { + if (ctx.prompt) { + if (if_block) { + if_block.p(changed, ctx); + } else { + if_block = create_if_block_1(component, ctx); + if_block.c(); + if_block.m(div, text); + } + } else if (if_block) { + if_block.d(1); + if_block = null; + } + + if (changed.buttons || changed._notice) { + each_value = ctx.buttons; + + for (var i = 0; i < each_value.length; i += 1) { + const child_ctx = get_each_context(ctx, each_value, i); + + if (each_blocks[i]) { + each_blocks[i].p(changed, child_ctx); + } else { + each_blocks[i] = create_each_block(component, child_ctx); + each_blocks[i].c(); + each_blocks[i].m(div_1, null); + } + } + + for (; i < each_blocks.length; i += 1) { + each_blocks[i].d(1); + } + each_blocks.length = each_value.length; + } + + if ((changed._notice) && div_1_class_value !== (div_1_class_value = "\n ui-pnotify-action-bar\n " + (ctx._notice.get()._styles.actionBar ? ctx._notice.get()._styles.actionBar : '') + "\n " + (ctx._notice.get()._styles.text ? ctx._notice.get()._styles.text : '') + "\n " + " svelte-1y9suua")) { + div_1.className = div_1_class_value; + } + + if (changed.align) { + setStyle(div_1, "justify-content", ctx.align); + } + }, + + d(detach) { + if (detach) { + detachNode(div); + } + + if (if_block) if_block.d(); + + destroyEach(each_blocks, detach); + } + }; +} + +function get_each_context(ctx, list, i) { + const child_ctx = Object.create(ctx); + child_ctx.button = list[i]; + child_ctx.each_value = list; + child_ctx.button_index = i; + return child_ctx; +} + +function click_handler(event) { + const { component, ctx } = this._svelte; + + component.handleClick(ctx.button, event); +} + +function PNotifyConfirm(options) { + init(this, options); + this.refs = {}; + this._state = assign(data(), options.data); + this._intro = true; + + if (!document.getElementById("svelte-1y9suua-style")) add_css(); + + if (!options.root) { + this._oncreate = []; + } + + this._fragment = create_main_fragment(this, this._state); + + this.root._oncreate.push(() => { + oncreate.call(this); + this.fire("update", { changed: assignTrue({}, this._state), current: this._state }); + }); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + + callAll(this._oncreate); + } +} + +assign(PNotifyConfirm.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); +assign(PNotifyConfirm.prototype, methods); + +PNotifyConfirm.prototype._recompute = noop; + +setup(PNotifyConfirm); + +function createElement(name) { + return document.createElement(name); +} + +function appendNode(node, target) { + target.appendChild(node); +} + +function createComment() { + return document.createComment(''); +} + +function insertNode(node, target, anchor) { + target.insertBefore(node, anchor); +} + +function detachNode(node) { + node.parentNode.removeChild(node); +} + +function addListener(node, event, handler) { + node.addEventListener(event, handler, false); +} + +function removeListener(node, event, handler) { + node.removeEventListener(event, handler, false); +} + +function setAttribute(node, attribute, value) { + node.setAttribute(attribute, value); +} + +function detachBetween(before, after) { + while (before.nextSibling && before.nextSibling !== after) { + before.parentNode.removeChild(before.nextSibling); + } +} + +function createText(data) { + return document.createTextNode(data); +} + +function setStyle(node, key, value) { + node.style.setProperty(key, value); +} + +function destroyEach(iterations, detach) { + for (var i = 0; i < iterations.length; i += 1) { + if (iterations[i]) iterations[i].d(detach); + } +} + +function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; +} + +function assign(tar, src) { + for (var k in src) tar[k] = src[k]; + return tar; +} + +function assignTrue(tar, src) { + for (var k in src) tar[k] = 1; + return tar; +} + +function callAll(fns) { + while (fns && fns.length) fns.shift()(); +} + +function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; +} + +function get() { + return this._state; +} + +function fire(eventName, data) { + var handlers = + eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } +} + +function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; +} + +function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; +} + +function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } +} + +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); +} + +function _differs(a, b) { + return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); +} + +function noop() {} + +function blankObject() { + return Object.create(null); +} +export default PNotifyConfirm; \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyConfirm.js.map b/app/node_modules/pnotify/lib/es/PNotifyConfirm.js.map new file mode 100644 index 00000000..1f9a8acc --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyConfirm.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PNotifyConfirm.js","sources":["src/PNotifyConfirm.html"],"sourcesContent":["{#if confirm || prompt}\n
\n {#if prompt}\n \n {#if promptMultiLine}\n \n {:else}\n \n {/if}\n
\n {/if}\n \n {#each buttons as button}\n {#if button.textTrusted}{@html button.text}{:else}{button.text}{/if}\n {/each}\n \n \n{/if}\n\n\n\n\n"],"names":[],"mappings":";;;aAgJS,GAAG;AACZ,AAAI,EAAE,OAAO,MAAM,CAAC,MAAM,CAAC;AAC3B,AAAI,IAAI,SAAS,EAAE,IAAI;AACvB,AAAI,IAAI,UAAU,EAAE,EAAE;AACtB,AAAI,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC3C,AAAI,CAAC;;cAEQ;AACb,AAAI,EAAE,UAAU,CAAC,CAAC,OAAO,EAAE;AAC3B,AAAI,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC1B,AAAI,GAAG;;AAEP,AAAI,EAAE,SAAS,CAAC,GAAG;AACnB,AAAI,IAAI,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE;AAC/B,AAAI,MAAM,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE;AAC1C,AAAI,QAAQ,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;AAC1C,AAAI,OAAO,MAAM;AACjB,AAAI,QAAQ,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;AAC3C,AAAI,OAAO;AACX,AAAI,KAAK;AACT,AAAI,GAAG;;AAEP,AAAI,EAAE,WAAW,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE;AAClC,AAAI,IAAI,IAAI,MAAM,CAAC,KAAK,EAAE;AAC1B,AAAI,MAAM,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,WAAW,GAAG,IAAI,EAAE,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;;;;;;;;6DAAX,MAAM,CAAC,IAAI;;;;;;;;;;;;;;;;;qBA/CnE,MAAM;;sBAuCF,OAAO;;;;gCAAZ;;;;;;;;;;;;;;gGAJG,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,OAAG,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,GAAG,EAAE,0BACtE,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,OAAG,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,GAAG,EAAE;0CAEtC,KAAK;;;;;;;;;;;;;;;;WAtC7B,MAAM;;;;;;;;;;;;;;qBAuCF,OAAO;;mCAAZ;;;;;;;;;;;;;;;oCAAA;;;8HAJG,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,OAAG,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,GAAG,EAAE,0BACtE,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,OAAG,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,GAAG,EAAE;;;;;2CAEtC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;WAIhB,gBAAY,MAAM,EAAE,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyDesktop.js b/app/node_modules/pnotify/lib/es/PNotifyDesktop.js new file mode 100644 index 00000000..c9ed8f38 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyDesktop.js @@ -0,0 +1,428 @@ +/* src/PNotifyDesktop.html generated by Svelte v2.6.3 */ +import PNotify from "./PNotify.js"; + +let permission; +const Notification = window.Notification; + +let notify = (title, options, onclick, onclose) => { + // Memoize based on feature detection. + if ('Notification' in window) { + notify = (title, options, onclick, onclose) => { + const notice = new Notification(title, options); + if ('NotificationEvent' in window) { + notice.addEventListener('notificationclick', onclick); + notice.addEventListener('close', onclose); + } else if ('addEventListener' in notice) { + notice.addEventListener('click', onclick); + notice.addEventListener('close', onclose); + } else { + notice.onclick = onclick; + notice.onclose = onclose; + } + return notice; + }; + } else if ('mozNotification' in navigator) { + notify = (title, options, onclick, onclose) => { + // Gecko < 22 + const notice = navigator.mozNotification + .createNotification(title, options.body, options.icon) + .show(); + notice.onclick = onclick; + notice.onclose = onclose; + return notice; + }; + } else if ('webkitNotifications' in window) { + notify = (title, options, onclick, onclose) => { + const notice = window.webkitNotifications.createNotification( + options.icon, + title, + options.body + ); + notice.onclick = onclick; + notice.onclose = onclose; + return notice; + }; + } else { + notify = (title, options, onclick, onclose) => { + return null; + }; + } + return notify(title, options, onclick, onclose); +}; + +function data() { + return Object.assign({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.Desktop.defaults); +}; + +var methods = { + initModule (options) { + this.set(options); + + const {_notice} = this.get(); + + // Animation should always be 'none' for desktop notices, but remember + // the old animation so it can be recovered. + this.set({'_oldAnimation': _notice.get().animation}); + _notice.on('state', ({changed, current, previous}) => { + if (changed.animation) { + if ( + previous.animation === undefined || + current.animation !== 'none' || + ( + previous.animation === 'none' && + current.animation !== this.get()._oldAnimation + ) + ) { + this.set({'_oldAnimation': current.animation}); + } + } + + // This is necessary so desktop notices don't cause spacing problems + // when positioning. + if (changed._animatingClass) { + if (!(current._animatingClass === '' || (permission !== 0 && this.get().fallback) || !this.get().desktop)) { + _notice.set({'_animatingClass': ''}); + } + } + }); + + if (!this.get().desktop) { + return; + } + + permission = PNotify.modules.Desktop.checkPermission(); + if (permission !== 0) { + // Keep the notice from opening if fallback is false. + if (!this.get().fallback) { + _notice.set({'autoDisplay': false}); + } + return; + } + + _notice.set({'animation': 'none'}); + _notice.addModuleClass('ui-pnotify-desktop-hide'); + + this.genNotice(); + }, + + update () { + const {_notice} = this.get(); + if ((permission !== 0 && this.get().fallback) || !this.get().desktop) { + _notice.set({'animation': this.get()._oldAnimation}); + _notice.removeModuleClass('ui-pnotify-desktop-hide'); + return; + } else { + _notice.set({'animation': 'none'}); + _notice.addModuleClass('ui-pnotify-desktop-hide'); + } + this.genNotice(); + }, + + beforeOpen () { + if (this.get().desktop && permission !== 0) { + PNotify.modules.Desktop.permission(); + } + if ((permission !== 0 && this.get().fallback) || !this.get().desktop) { + return; + } + const {_desktop} = this.get(); + if (_desktop && 'show' in _desktop) { + this.get()._notice.set({'_moduleIsNoticeOpen': true}); + _desktop.show(); + } + }, + + beforeClose () { + if ((permission !== 0 && this.get().fallback) || !this.get().desktop) { + return; + } + const {_desktop} = this.get(); + if (_desktop && 'close' in _desktop) { + _desktop.close(); + this.get()._notice.set({'_moduleIsNoticeOpen': false}); + } + }, + + genNotice () { + const {_notice, icon} = this.get(); + + if (icon === null) { + switch (_notice.get().type) { + case 'error': + this.set({'_icon': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQg7e6HvQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABr0lEQVRYw8WXu0oDQRSGv7hRSFYrLTTWKihaqUgUJO+gphBLL1jYpPSCVcAggpWthYhC7Ows9An0IbSPkMRCw8ZmFuI6yczs9cAPuzNz5v92brtrESxGARtokkCcAg2hk7jNl4G2R/m4zFPAiwTgWdRFHnmJuaulOAAaPQDqUZvv9DB3tR0lwIcGwHtU5uca5q4qYZvngJbHpAZ8CtU8dS1gLEyAisegBGTFKWiL65KnzVlY5uOSId6VtNuTtMupOu/TAHiQlNmSskHNXCOAGWBeUp7VhFoApoMAXAOWJoCszBJ9+ALY6vL0JiPgjsKmKUAaOOoBZwIAcNxlJLsCrAOTIQJMAWu62y4LOIqT7lGS96TIcYCMDkBZ46h1gB+PHI28ssq8X/G6DaqG8Piz2DrjVjGXbtSBy46F5QAHwJAizwZugKKscs7gSaqS/KpB/qxsFxwafhf6Odb/eblJi8BGwJdW26BtURxQpMU83hmaDQsNiPtvYMSwj3tgAqDgYzU7wJdHjo9+CgBvEW47lV5Tgj5DMtG0xIfESkIAF+522gdWxTzGEX3i9+6KpOMXF5UBt0NKJCAAAAAASUVORK5CYII='}); + break; + case 'success': + this.set({'_icon': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQPRj+65AAAAdBJREFUWMPtlzsvRFEQx3+7HmEjoiYKolVJJDRqnS8ggvVIVEQhCIUsEYJGCEH2E4h4FPREaLTbEo1IEJXHrmY2GTf33nPuY7ud5OTenTMz//89Z86ZWShLWf5LB3AOfACFiOMF2AkC3qOc88BXxFEAxlX8ftGdaNCEen8H6oFHYBR4FocwkpTngzzHgF01fwL0aYcp9fVtMW/rsMcWXWijK1Hexgye9smRT6CxaHgjytMYwccNSXqoja9FeVbiZS+OVaeDiUBLAPAJA/i2m5MXgRSQk7llC/DBMOBeBGqAe0eAjQhfvurH3EmgQk6EW6CVEHt+ZFo6J4EU8OoTcF35jhnAl2wSx20LFgyB1yyOWtY2c72ScMAAkPeZy6g4zUBdGAIAcyEq4Z7y7xbdTFgCACMBwPVJqVDHeNqvaplkH5i0sNuUwmaNkQxww20ZSOy7gFvX7SAk0i76jPQQlJoAwAEwq35ngfmwVatSdUMArZZ+K9JQ1Bp6iGqgSt7f/AIOqSzujLEn6AV+JG6zm4HuCZ+AJuAbWAQu5aIJu7JDck0ngDugC/j1c2qPqR13jpxuvWyS8liY/kQcean/lX6ACQ99DdAQYe+Lf0zylMUgf7qDKgzv284QAAAAAElFTkSuQmCC'}); + break; + case 'info': + this.set({'_icon': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQ09zRTwAAAAdxJREFUWMPtl88rRFEUxz8zBolRCgsrpOym8TMSO2WplLKwUrKi/B0W7JSFmhVLNlhSlLKx8CtRGpEsJpofpZk3Nkc9b968e++8mdlw6vTeu/edc773nl/3wl+ngOH/zUAf0AN0AmEgB7wCD8AtcFMJoM3ADpAHLHk62RIwL8B0uQwHgXVRnDfkS2DSj/EW4K0Ew05eLMV4O/CuUJwEUvJUgdgwMd4IpBUKl13kVG6aL+ZjJ20DDQqQXy5jKYVMDBhVrb5f069LLrKfGnInqh040HRTvsTAHgei9oGQ7X0YaNNUNCdFKChgQvKtQ1vAkNvEahlSToez9oXad2BCA30ceHZxRxMQMShuvZLmv+hOA32/h+KUwS7MugVhqwb6Go+5nEEwht0ABDUEzyXdFsrQYwqMJjTbdxio9Qkg6QbgvkpnkLw0uQIAZ1UCYNkXawdw4qPCmVBcuADAMZCpAoCVYr3AKtYyHZSWauakjMx50TWwrzJw6lFARjQOt3se8jM6W9TloSCqIb9bRHbN5Fg+KkEZcow/Ak+KFBsD6h3jR8CUabAMlqn7xfxEbAdwWKLhhO3sGPCbOsNSvSyF0Z/5TaCuEleziLhmAOiWG1NWrmZXwIVU1A/+SZO+AcgLC4wt0zD3AAAAAElFTkSuQmCC'}); + break; + case 'notice': + default: + this.set({'_icon': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATM4scOJLAAAAcxJREFUWMPtljtLA0EQx3+J0QRfnYqCiCA+MERBrIwgFtoFbMTOR61i5QcQBdEihZWNoEWwsNAvkMJeBLHRQtHC0iIP4utOmw2cx97d7l2SRgcGbufmv/Pf2dmdhb8uIR+YJqAPaBff30AeeAHuxLgqMgRkgS/AAEybGuLfEdBcycCTwKVYmY5mgO6gwdd8BLaqAST9Bs8EDG7VTd3gex4TbgEjwKjQOHDugZlRDb7sMZEJpCS4bYVMJOygsG1cB+wqHN0Gib1RYXFpLwL74nx7Sb3EFlXATQNjTgRagA3FbZIRiCliT5wITGgUaRACA0CPjMC4xtUcDUAgDAzLCCQ0MhALQCAE9MoIdGkQCJIBgE4ZgWiNMvDL10qgUMMMFGQEnjQmkLXbVg38s8y4qtFcTCAnHiJ5oKiJnSoHjVgIXAmHkGIl5yy+YcWruIy9dvqpupIDCfZWEXvh1gsWFVfxIbG9a3RbRwJnYiuqJYfAqxsBgBWFiQyJzfTAlIB1uzEicbwBFoBTl8lSwINoSuXKjrv4F4FBh61zlKUKvgn7/e5ZEngMEDgLdFSieHaAT42LpgTMVbqC24B54Bi4twV9E6cnDcw6PFj+RSo/l6rlSlldhx4AAAAASUVORK5CYII='}); + break; + } + } else if (icon === false) { + this.set({'_icon': null}); + } else { + this.set({'_icon': icon}); + } + + let {tag} = this.get(); + if (!this.get()._tag || tag !== null) { + this.set({ + '_tag': tag === null ? 'PNotify-' + Math.round(Math.random() * 1000000) : tag + }); + } + + const options = { + body: this.get().text || _notice.get().text, + tag: this.get()._tag + }; + if (!_notice.get().hide) { + options.requireInteraction = true; + } + if (this.get()._icon !== null) { + options.icon = this.get()._icon; + } + Object.apply(options, this.get().options); + + const _desktop = notify( + this.get().title || _notice.get().title, + options, + () => { + _notice.fire('click', {target: _desktop}); + }, + () => { + _notice.close(); + } + ); + + _notice.set({'_moduleIsNoticeOpen': true}); + this.set({_desktop}); + + if (!('close' in _desktop) && ('cancel' in _desktop)) { + _desktop.close = () => { + _desktop.cancel(); + }; + } + } +}; + +function setup(Component) { + Component.key = 'Desktop'; + + Component.defaults = { + // Display the notification as a desktop notification. + desktop: false, + // If desktop notifications are not supported or allowed, fall back to a regular notice. + fallback: true, + // The URL of the icon to display. If false, no icon will show. If null, a default icon will show. + icon: null, + // Using a tag lets you update an existing notice, or keep from duplicating notices between tabs. + // If you leave tag null, one will be generated, facilitating the 'update' function. + // see: http://www.w3.org/TR/notifications/#tags-example + tag: null, + // Optionally display a different title for the desktop. + title: null, + // Optionally display different text for the desktop. + text: null, + // Any additional options to be passed to the Notification constructor. + options: {} + }; + + Component.init = (notice) => { + return new Component({target: document.body}); + }; + + Component.permission = () => { + if (typeof Notification !== 'undefined' && 'requestPermission' in Notification) { + Notification.requestPermission(); + } else if ('webkitNotifications' in window) { + window.webkitNotifications.requestPermission(); + } + }; + + Component.checkPermission = () => { + if (typeof Notification !== 'undefined' && 'permission' in Notification) { + return (Notification.permission === 'granted' ? 0 : 1); + } else if ('webkitNotifications' in window) { + return window.webkitNotifications.checkPermission() == 0 ? 0 : 1; // eslint-disable-line eqeqeq + } else { + return 1; + } + }; + + permission = Component.checkPermission(); + + // Register the module with PNotify. + PNotify.modules.Desktop = Component; +}; + +function add_css() { + var style = createElement("style"); + style.id = 'svelte-xbgnx4-style'; + style.textContent = "[ui-pnotify].ui-pnotify-desktop-hide.ui-pnotify{left:-10000px !important;display:none !important}"; + appendNode(style, document.head); +} + +function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; +} + +function PNotifyDesktop(options) { + init(this, options); + this._state = assign(data(), options.data); + this._intro = true; + + if (!document.getElementById("svelte-xbgnx4-style")) add_css(); + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } +} + +assign(PNotifyDesktop.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); +assign(PNotifyDesktop.prototype, methods); + +PNotifyDesktop.prototype._recompute = noop; + +setup(PNotifyDesktop); + +function createElement(name) { + return document.createElement(name); +} + +function appendNode(node, target) { + target.appendChild(node); +} + +function noop() {} + +function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; +} + +function assign(tar, src) { + for (var k in src) tar[k] = src[k]; + return tar; +} + +function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; +} + +function get() { + return this._state; +} + +function fire(eventName, data) { + var handlers = + eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } +} + +function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; +} + +function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; +} + +function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } +} + +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); +} + +function _differs(a, b) { + return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); +} + +function blankObject() { + return Object.create(null); +} + +function callAll(fns) { + while (fns && fns.length) fns.shift()(); +} +export default PNotifyDesktop; \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyDesktop.js.map b/app/node_modules/pnotify/lib/es/PNotifyDesktop.js.map new file mode 100644 index 00000000..9a4f4b27 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyDesktop.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PNotifyDesktop.js","sources":["src/PNotifyDesktop.html"],"sourcesContent":["\n\n\n"],"names":[],"mappings":";;;AAGE,IAAI,UAAU,CAAC;AACjB,AAAE,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;;AAE3C,AAAE,IAAI,MAAM,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,KAAK;AACrD,AAAE;AACF,AAAE,EAAE,IAAI,cAAc,IAAI,MAAM,EAAE;AAClC,AAAE,IAAI,MAAM,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,KAAK;AACrD,AAAE,MAAM,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACxD,AAAE,MAAM,IAAI,mBAAmB,IAAI,MAAM,EAAE;AAC3C,AAAE,QAAQ,MAAM,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;AAChE,AAAE,QAAQ,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACpD,AAAE,OAAO,MAAM,IAAI,kBAAkB,IAAI,MAAM,EAAE;AACjD,AAAE,QAAQ,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACpD,AAAE,QAAQ,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACpD,AAAE,OAAO,MAAM;AACf,AAAE,QAAQ,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;AACnC,AAAE,QAAQ,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;AACnC,AAAE,OAAO;AACT,AAAE,MAAM,OA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K,WAAW,IAAI,YAAY,IAAI,YAAY,EAAE;AACjF,AAAI,MAAM,QAAQ,YAAY,CAAC,UAAU,KAAK,SAAS,GAAG,CAAC,GAAG,CAAC,EAAE;AACjE,AAAI,KAAK,MAAM,IAAI,qBAAqB,IAAI,MAAM,EAAE;AACpD,AAAI,MAAM,OAAO,MAAM,CAAC,mBAAmB,CAAC,eAAe,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC3E,AAAI,KAAK,MAAM;AACf,AAAI,MAAM,OAAO,CAAC,CAAC;AACnB,AAAI,KAAK;AACT,AAAI,GAAG,CAAC;;AAER,AAAI,EAAE,UAAU,GAAG,SAAS,CAAC,eAAe,EAAE,CAAC;;AAE/C,AAAI;AACJ,AAAI,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;AAC1C,AAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyHistory.js b/app/node_modules/pnotify/lib/es/PNotifyHistory.js new file mode 100644 index 00000000..6dc260a3 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyHistory.js @@ -0,0 +1,281 @@ +/* src/PNotifyHistory.html generated by Svelte v2.6.3 */ +import PNotify from "./PNotify.js"; + +function data() { + return Object.assign({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.History.defaults); +}; + +var methods = { + initModule (options) { + this.set(options); + + if (this.get().history) { + // Don't destroy notices that are in history. + const {_notice} = this.get(); + if (_notice.get().destroy) { + _notice.set({'destroy': false}); + } + } + }, + + beforeOpen () { + const {maxInStack, _options} = this.get(); + if (maxInStack === Infinity) { + return; + } + + const stack = _options.stack; + if (stack === false) { + return; + } + + // Remove oldest notifications leaving only maxInStack from the stack. + if (PNotify.notices && (PNotify.notices.length > maxInStack)) { + // Oldest are normally in front of array, or if stack.push=='top' then + // they are at the end of the array! + const top = stack.push === 'top'; + const forRemoval = []; + let currentOpen = 0; + + for (let i = (top ? 0 : PNotify.notices.length - 1); (top ? i < PNotify.notices.length : i >= 0); (top ? i++ : i--)) { + if ( + ['opening', 'open'].indexOf(PNotify.notices[i].get()._state) !== -1 && + PNotify.notices[i].get().stack === stack + ) { + if (currentOpen >= maxInStack) { + forRemoval.push(PNotify.notices[i]); + } else { + currentOpen++; + } + } + } + + for (let i = 0; i < forRemoval.length; i++) { + forRemoval[i].close(false); + } + } + } +}; + +function setup(Component) { + Component.key = 'History'; + + Component.defaults = { + // Place the notice in the history. + history: true, + // Maximum number of notices to have open in its stack. + maxInStack: Infinity + }; + + Component.init = (notice) => { + return new Component({target: document.body}); + }; + + Component.showLast = (stack) => { + if (stack === undefined) { + stack = PNotify.defaultStack; + } + if (stack === false) { + return; + } + const top = (stack.push === 'top'); + + // Look up the last history notice, and display it. + let i = (top ? 0 : PNotify.notices.length - 1); + + let notice; + do { + notice = PNotify.notices[i]; + + if (!notice) { + return; + } + + i += (top ? 1 : -1); + } while ( + notice.get().stack !== stack || + !notice.get()._modules.History.get().history || + notice.get()._state === 'opening' || + notice.get()._state === 'open' + ); + + notice.open(); + }; + + Component.showAll = (stack) => { + if (stack === undefined) { + stack = PNotify.defaultStack; + } + if (stack === false) { + return; + } + + // Display all notices. (Disregarding non-history notices.) + for (let i = 0; i < PNotify.notices.length; i++) { + const notice = PNotify.notices[i]; + if ( + ( + stack === true || + notice.get().stack === stack + ) && + notice.get()._modules.History.get().history + ) { + notice.open(); + } + } + }; + + // Register the module with PNotify. + PNotify.modules.History = Component; +}; + +function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; +} + +function PNotifyHistory(options) { + init(this, options); + this._state = assign(data(), options.data); + this._intro = true; + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } +} + +assign(PNotifyHistory.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); +assign(PNotifyHistory.prototype, methods); + +PNotifyHistory.prototype._recompute = noop; + +setup(PNotifyHistory); + +function noop() {} + +function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; +} + +function assign(tar, src) { + for (var k in src) tar[k] = src[k]; + return tar; +} + +function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; +} + +function get() { + return this._state; +} + +function fire(eventName, data) { + var handlers = + eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } +} + +function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; +} + +function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; +} + +function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } +} + +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); +} + +function _differs(a, b) { + return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); +} + +function blankObject() { + return Object.create(null); +} + +function callAll(fns) { + while (fns && fns.length) fns.shift()(); +} +export default PNotifyHistory; \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyHistory.js.map b/app/node_modules/pnotify/lib/es/PNotifyHistory.js.map new file mode 100644 index 00000000..2e7c850e --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyHistory.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PNotifyHistory.js","sources":["src/PNotifyHistory.html"],"sourcesContent":["\n"],"names":[],"mappings":";;;aA4ES,GAAG;AACZ,AAAI,EAAE,OAAO,MAAM,CAAC,MAAM,CAAC;AAC3B,AAAI,IAAI,SAAS,EAAE,IAAI;AACvB,AAAI,IAAI,UAAU,EAAE,EAAE;AACtB,AAAI,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC3C,AAAI,CAAC;;cAEQ;AACb,AAAI,EAAE,UAAU,CAAC,CAAC,OAAO,EAAE;AAC3B,AAAI,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;;AAE1B,AAAI,IAAI,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE;AAChC,AAAI;AACJ,AAAI,MAAM,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;AACvC,AAAI,MAAM,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE;AACrC,AAAI,QAAQ,OAAO,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;AAC5C,AAAI,OAAO;AACX,AAAI,KAAK;AACT,AAAI,GAAG;;AAEP,AAAI,EAAE,UAAU,CAAC,GAAG;AACpB,AAAI,IAAI,MAAM,CAAC,UAAU,EAAE,QAAQ,C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M,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAC5C,AAAI,MAAM;AACV,AAAI,QAAQ;AACZ,AAAI,UAAU,KAAK,KAAK,IAAI;AAC5B,AAAI,UAAU,MAAM,CAAC,GAAG,EAAE,CAAC,KAAK,KAAK,KAAK;AAC1C,AAAI;AACJ,AAAI,QAAQ,MAAM,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO;AACvD,AAAI,QAAQ;AACZ,AAAI,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;AAC1B,AAAI,OAAO;AACX,AAAI,KAAK;AACT,AAAI,GAAG,CAAC;;AAER,AAAI;AACJ,AAAI,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;AAC1C,AAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyMobile.js b/app/node_modules/pnotify/lib/es/PNotifyMobile.js new file mode 100644 index 00000000..cd300062 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyMobile.js @@ -0,0 +1,418 @@ +/* src/PNotifyMobile.html generated by Svelte v2.6.3 */ +import PNotify from "./PNotify.js"; + +function data() { + return Object.assign({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.Mobile.defaults); +}; + +var methods = { + initModule (options) { + this.set(options); + + const {_notice} = this.get(); + let origXY = null; + let diffXY = null; + let noticeWidthHeight = null; + let noticeOpacity = null; + let csspos = 'left'; + let direction = 'X'; + let span = 'Width'; + + _notice.on('touchstart', (e) => { + if (!this.get().swipeDismiss) { + return; + } + + const {stack} = _notice.get(); + if (stack !== false) { + switch (stack.dir1) { + case 'up': + case 'down': + csspos = 'left'; + direction = 'X'; + span = 'Width'; + break; + case 'left': + case 'right': + csspos = 'top'; + direction = 'Y'; + span = 'Height'; + break; + } + } + + origXY = e.touches[0]['screen' + direction]; + noticeWidthHeight = _notice.refs.elem['scroll' + span]; + noticeOpacity = window.getComputedStyle(_notice.refs.elem)['opacity']; + _notice.refs.container.style[csspos] = 0; + }); + + _notice.on('touchmove', (e) => { + if (!origXY || !this.get().swipeDismiss) { + return; + } + + const curXY = e.touches[0]['screen' + direction]; + + diffXY = curXY - origXY; + const opacity = (1 - (Math.abs(diffXY) / noticeWidthHeight)) * noticeOpacity; + + _notice.refs.elem.style.opacity = opacity; + _notice.refs.container.style[csspos] = diffXY + 'px'; + }); + + _notice.on('touchend', () => { + if (!origXY || !this.get().swipeDismiss) { + return; + } + + _notice.refs.container.classList.add('ui-pnotify-mobile-animate-left'); + if (Math.abs(diffXY) > 40) { + const goLeft = (diffXY < 0) ? noticeWidthHeight * -2 : noticeWidthHeight * 2; + _notice.refs.elem.style.opacity = 0; + _notice.refs.container.style[csspos] = goLeft + 'px'; + _notice.close(); + } else { + _notice.refs.elem.style.removeProperty('opacity'); + _notice.refs.container.style.removeProperty(csspos); + } + origXY = null; + diffXY = null; + noticeWidthHeight = null; + noticeOpacity = null; + }); + + _notice.on('touchcancel', () => { + if (!origXY || !this.get().swipeDismiss) { + return; + } + + _notice.refs.elem.style.removeProperty('opacity'); + _notice.refs.container.style.removeProperty(csspos); + origXY = null; + diffXY = null; + noticeWidthHeight = null; + noticeOpacity = null; + }); + + this.doMobileStyling(); + }, + + update () { + this.doMobileStyling(); + }, + + beforeOpen () { + // Add an event listener to watch the window resizes. + window.addEventListener('resize', this.get()._doMobileStylingBound); + }, + + afterClose () { + // Remove the event listener. + window.removeEventListener('resize', this.get()._doMobileStylingBound); + + // Remove any styling we added to close it. + if (!this.get().swipeDismiss) { + return; + } + + const {_notice} = this.get(); + _notice.refs.elem.style.removeProperty('opacity'); + _notice.refs.container.style.removeProperty('left'); + _notice.refs.container.style.removeProperty('top'); + }, + + doMobileStyling () { + const {_notice} = this.get(); + const {stack} = _notice.get(); + + if (this.get().styling) { + if (stack !== false) { + if (window.innerWidth <= 480) { + if (!stack.mobileOrigSpacing1) { + stack.mobileOrigSpacing1 = stack.spacing1; + } + stack.spacing1 = 0; + if (!stack.mobileOrigFirstpos1) { + stack.mobileOrigFirstpos1 = stack.firstpos1; + } + stack.firstpos1 = 0; + if (!stack.mobileOrigSpacing2) { + stack.mobileOrigSpacing2 = stack.spacing2; + } + stack.spacing2 = 0; + if (!stack.mobileOrigFirstpos2) { + stack.mobileOrigFirstpos2 = stack.firstpos2; + } + stack.firstpos2 = 0; + } else { + if (stack.mobileOrigSpacing1) { + stack.spacing1 = stack.mobileOrigSpacing1; + delete stack.mobileOrigSpacing1; + } + if (stack.mobileOrigFirstpos1) { + stack.firstpos1 = stack.mobileOrigFirstpos1; + delete stack.mobileOrigFirstpos1; + } + if (stack.mobileOrigSpacing2) { + stack.spacing2 = stack.mobileOrigSpacing2; + delete stack.mobileOrigSpacing2; + } + if (stack.mobileOrigFirstpos2) { + stack.firstpos2 = stack.mobileOrigFirstpos2; + delete stack.mobileOrigFirstpos2; + } + } + switch (stack.dir1) { + case 'down': + _notice.addModuleClass('ui-pnotify-mobile-top'); + break; + case 'up': + _notice.addModuleClass('ui-pnotify-mobile-bottom'); + break; + case 'left': + _notice.addModuleClass('ui-pnotify-mobile-right'); + break; + case 'right': + _notice.addModuleClass('ui-pnotify-mobile-left'); + break; + } + } + + _notice.addModuleClass('ui-pnotify-mobile-able'); + } else { + _notice.removeModuleClass( + 'ui-pnotify-mobile-able', + 'ui-pnotify-mobile-top', + 'ui-pnotify-mobile-bottom', + 'ui-pnotify-mobile-right', + 'ui-pnotify-mobile-left' + ); + + if (stack !== false) { + if (stack.mobileOrigSpacing1) { + stack.spacing1 = stack.mobileOrigSpacing1; + delete stack.mobileOrigSpacing1; + } + if (stack.mobileOrigFirstpos1) { + stack.firstpos1 = stack.mobileOrigFirstpos1; + delete stack.mobileOrigFirstpos1; + } + if (stack.mobileOrigSpacing2) { + stack.spacing2 = stack.mobileOrigSpacing2; + delete stack.mobileOrigSpacing2; + } + if (stack.mobileOrigFirstpos2) { + stack.firstpos2 = stack.mobileOrigFirstpos2; + delete stack.mobileOrigFirstpos2; + } + } + } + } +}; + +function oncreate() { + this.set({'_doMobileStylingBound': this.doMobileStyling.bind(this)}); +}; + +function setup(Component) { + Component.key = 'Mobile'; + + Component.defaults = { + // Let the user swipe the notice away. + swipeDismiss: true, + // Styles the notice to look good on mobile. + styling: true + }; + + Component.init = (notice) => { + return new Component({target: document.body}); + }; + + // Register the module with PNotify. + PNotify.modules.Mobile = Component; +}; + +function add_css() { + var style = createElement("style"); + style.id = 'svelte-49u8sj-style'; + style.textContent = "[ui-pnotify] .ui-pnotify-container{position:relative}[ui-pnotify] .ui-pnotify-mobile-animate-left{transition:left .1s ease}[ui-pnotify] .ui-pnotify-mobile-animate-top{transition:top .1s ease}@media(max-width: 480px){[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able{font-size:1.2em;-webkit-font-smoothing:antialiased;-moz-font-smoothing:antialiased;-ms-font-smoothing:antialiased;font-smoothing:antialiased}body > [ui-pnotify].ui-pnotify.ui-pnotify-mobile-able{position:fixed}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom{width:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right{height:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-shadow{border-bottom-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-shadow{border-top-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-shadow{border-right-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-shadow{border-left-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-container{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-container{width:auto !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-container{height:100% !important}}"; + appendNode(style, document.head); +} + +function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; +} + +function PNotifyMobile(options) { + init(this, options); + this._state = assign(data(), options.data); + this._intro = true; + + if (!document.getElementById("svelte-49u8sj-style")) add_css(); + + if (!options.root) { + this._oncreate = []; + } + + this._fragment = create_main_fragment(this, this._state); + + this.root._oncreate.push(() => { + oncreate.call(this); + this.fire("update", { changed: assignTrue({}, this._state), current: this._state }); + }); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + + callAll(this._oncreate); + } +} + +assign(PNotifyMobile.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); +assign(PNotifyMobile.prototype, methods); + +PNotifyMobile.prototype._recompute = noop; + +setup(PNotifyMobile); + +function createElement(name) { + return document.createElement(name); +} + +function appendNode(node, target) { + target.appendChild(node); +} + +function noop() {} + +function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; +} + +function assign(tar, src) { + for (var k in src) tar[k] = src[k]; + return tar; +} + +function assignTrue(tar, src) { + for (var k in src) tar[k] = 1; + return tar; +} + +function callAll(fns) { + while (fns && fns.length) fns.shift()(); +} + +function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; +} + +function get() { + return this._state; +} + +function fire(eventName, data) { + var handlers = + eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } +} + +function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; +} + +function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; +} + +function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } +} + +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); +} + +function _differs(a, b) { + return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); +} + +function blankObject() { + return Object.create(null); +} +export default PNotifyMobile; \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyMobile.js.map b/app/node_modules/pnotify/lib/es/PNotifyMobile.js.map new file mode 100644 index 00000000..915f9366 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyMobile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PNotifyMobile.js","sources":["src/PNotifyMobile.html"],"sourcesContent":["\n\n\n"],"names":[],"mappings":";;;aA0BS,GAAG;AACZ,AAAI,EAAE,OAAO,MAAM,CAAC,MAAM,CAAC;AAC3B,AAAI,IAAI,SAAS,EAAE,IAAI;AACvB,AAAI,IAAI,UAAU,EAAE,EAAE;AACtB,AAAI,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC1C,AAAI,CAAC;;cAEQ;AACb,AAAI,EAAE,UAAU,CAAC,CAAC,OAAO,EAAE;AAC3B,AAAI,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;;AAE1B,AAAI,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;AACrC,AAAI,IAAI,IAAI,MAAM,GAAG,IAAI,CAAC;AAC1B,AAAI,IAAI,IAAI,MAAM,GAAG,IAAI,CAAC;AAC1B,AAAI,IAAI,IAAI,iBAAiB,GAAG,IAAI,CAAC;AACrC,AAAI,IAAI,IAAI,aAAa,GAAG,IAAI,CAAC;AACjC,AAAI,IAAI,IAAI,MAAM,GAAG,MAAM,CAAC;AAC5B,AAAI,IAAI,IAAI,SAAS,GAAG,GAAG,CAAC;AAC5B,AAAI,IAAI,IAAI,IAAI,GAAG,OAAO,CAAC;;AAE3B,AAAI,IAAI,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,CAAC,CAAC,KAAK;AACxC,AAAI,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,YAAY,EAAE;AACxC,AAAI,QAAQ,OAAO;AACnB,AAAI,OAAO;;AAEX,AAAI,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,GAAG,EAAE,C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,IAAI,OAAO,EAAE,IAAI;AACrB,AAAI,GAAG,CAAC;;AAER,AAAI,EAAE,SAAS,CAAC,IAAI,GAAG,CAAC,MAAM,KAAK;AACnC,AAAI,IAAI,OAAO,IAAI,SAAS,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AACtD,AAAI,GAAG,CAAC;;AAER,AAAI;AACJ,AAAI,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;AACzC,AAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyNonBlock.js b/app/node_modules/pnotify/lib/es/PNotifyNonBlock.js new file mode 100644 index 00000000..35408d19 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyNonBlock.js @@ -0,0 +1,195 @@ +/* src/PNotifyNonBlock.html generated by Svelte v2.6.3 */ +import PNotify from "./PNotify.js"; + +function data() { + return Object.assign({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.NonBlock.defaults); +}; + +var methods = { + initModule (options) { + this.set(options); + this.doNonBlockClass(); + }, + + update () { + this.doNonBlockClass(); + }, + + doNonBlockClass () { + if (this.get().nonblock) { + this.get()._notice.addModuleClass('nonblock'); + } else { + this.get()._notice.removeModuleClass('nonblock'); + } + } +}; + +function setup(Component) { + Component.key = 'NonBlock'; + + Component.defaults = { + // Use NonBlock.js to create a non-blocking notice. It lets the user click elements underneath it. + nonblock: false + }; + + Component.init = (notice) => { + return new Component({target: document.body, + data: { + '_notice': notice + }}); + }; + + // Register the module with PNotify. + PNotify.modules.NonBlock = Component; +}; + +function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; +} + +function PNotifyNonBlock(options) { + init(this, options); + this._state = assign(data(), options.data); + this._intro = true; + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } +} + +assign(PNotifyNonBlock.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); +assign(PNotifyNonBlock.prototype, methods); + +PNotifyNonBlock.prototype._recompute = noop; + +setup(PNotifyNonBlock); + +function noop() {} + +function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; +} + +function assign(tar, src) { + for (var k in src) tar[k] = src[k]; + return tar; +} + +function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; +} + +function get() { + return this._state; +} + +function fire(eventName, data) { + var handlers = + eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } +} + +function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; +} + +function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; +} + +function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } +} + +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); +} + +function _differs(a, b) { + return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); +} + +function blankObject() { + return Object.create(null); +} + +function callAll(fns) { + while (fns && fns.length) fns.shift()(); +} +export default PNotifyNonBlock; \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyNonBlock.js.map b/app/node_modules/pnotify/lib/es/PNotifyNonBlock.js.map new file mode 100644 index 00000000..a008fc4e --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyNonBlock.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PNotifyNonBlock.js","sources":["src/PNotifyNonBlock.html"],"sourcesContent":["\n"],"names":[],"mappings":";;;aAuBS,GAAG;AACZ,AAAI,EAAE,OAAO,MAAM,CAAC,MAAM,CAAC;AAC3B,AAAI,IAAI,SAAS,EAAE,IAAI;AACvB,AAAI,IAAI,UAAU,EAAE,EAAE;AACtB,AAAI,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC5C,AAAI,CAAC;;cAEQ;AACb,AAAI,EAAE,UAAU,CAAC,CAAC,OAAO,EAAE;AAC3B,AAAI,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC1B,AAAI,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;AAC/B,AAAI,GAAG;;AAEP,AAAI,EAAE,MAAM,CAAC,GAAG;AAChB,AAAI,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;AAC/B,AAAI,GAAG;;AAEP,AAAI,EAAE,eAAe,CAAC,GAAG;AACzB,AAAI,IAAI,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;AACjC,AAAI,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;AACxD,AAAI,KAAK,MAAM;AACf,AAAI,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;AAC3D,AAAI,KAAK;AACT,AAAI,GAAG;AACP,AAAI,CAAC;;cA3CK,CAAC,SAAS,EAAE;AACtB,AAAI,EAAE,SAAS,CAAC,GAAG,GAAG,UAAU,CAAC;;AAEjC,AAAI,EAAE,SAAS,CAAC,QAAQ,GAAG;AAC3B,AAAI;AACJ,AAAI,IAAI,QAAQ,EAAE,KAAK;AACvB,AAAI,GAAG,CAAC;;AAER,AAAI,EAAE,SAAS,CAAC,IAAI,GAAG,CAAC,MAAM,KAAK;AACnC,AAAI,IAAI,OAAO,IAAI,SAAS,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI;AACnD,AAAI,MAAM,IAAI,EAAE;AAChB,AAAI,QAAQ,SAAS,EAAE,MAAM;AAC7B,AAAI,OAAO,CAAC,CAAC,CAAC;AACd,AAAI,GAAG,CAAC;;AAER,AAAI;AACJ,AAAI,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC;AAC3C,AAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyReference.js b/app/node_modules/pnotify/lib/es/PNotifyReference.js new file mode 100644 index 00000000..2a15e8e1 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyReference.js @@ -0,0 +1,412 @@ +/* src/PNotifyReference.html generated by Svelte v2.6.3 */ +import PNotify from "./PNotify.js"; + +function data() { + return Object.assign({ + '_notice': null, // The PNotify notice. + '_options': {}, // The options for the notice. + '_mouseIsIn': false + }, PNotify.modules.Reference.defaults); +}; + +var methods = { + // This method is called from the core to give us our actual options. + // Until it is called, our options will just be the defaults. + initModule (options) { + // Set our options. + this.set(options); + // Now that the notice is available to us, we can listen to events fired + // from it. + const {_notice} = this.get(); + _notice.on('mouseenter', () => this.set({'_mouseIsIn': true})); + _notice.on('mouseleave', () => this.set({'_mouseIsIn': false})); + }, + + doSomething () { + // Spin the notice around. + let curAngle = 0; + const {_notice} = this.get(); + const timer = setInterval(() => { + curAngle += 10; + if (curAngle === 360) { + curAngle = 0; + clearInterval(timer); + } + _notice.refs.elem.style.transform = 'rotate(' + curAngle + 'deg)'; + }, 20); + }, + + // I have nothing to put in these, just showing you that they exist. You + // won't need to include them if you aren't using them. + update () { + // Called when the notice is updating its options. + }, + beforeOpen () { + // Called before the notice is opened. + }, + afterOpen () { + // Called after the notice is opened. + }, + beforeClose () { + // Called before the notice is closed. + }, + afterClose () { + // Called after the notice is closed. + }, + beforeDestroy () { + // Called before the notice is destroyed. + }, + afterDestroy () { + // Called after the notice is destroyed. + } +}; + +function oncreate() { + // This is the second way to init a module. Because we put markup in the + // template, we have to fire this event to tell the core that we are ready + // to receive our options. + this.fire('init', {module: this}); +}; + +function setup(Component) { + // This is the key you use for registering your module with PNotify. + Component.key = 'Reference'; + + // This if the default values of your options. + Component.defaults = { + // Provide a thing for stuff. Turned off by default. + putThing: false, + // If you are displaying any text, you should use a labels options to + // support internationalization. + labels: { + text: 'Spin Around' + } + }; + + // This is the first way to init a module. If you aren't placing any + // markup in the template, you would do this. + // Component.init = (_notice) => { + // return new Component({target: document.body, data: {_notice}}); + // }; + + // Register the module with PNotify. + PNotify.modules.Reference = Component; + // Append our markup to the container. + PNotify.modulesAppendContainer.push(Component); + + // This is where you would add any styling or icons classes you are using in your code. + Object.assign(PNotify.icons.brighttheme, { + athing: 'bt-icon bt-icon-refresh' + }); + Object.assign(PNotify.icons.bootstrap3, { + athing: 'glyphicon glyphicon-refresh' + }); + Object.assign(PNotify.icons.fontawesome4, { + athing: 'fa fa-refresh' + }); + Object.assign(PNotify.icons.fontawesome5, { + athing: 'fas fa-sync' + }); + if (!PNotify.icons.material) { + PNotify.icons.material = {}; + } + Object.assign(PNotify.icons.material, { + athing: 'material-icons pnotify-material-icon-refresh' + }); +}; + +function add_css() { + var style = createElement("style"); + style.id = 'svelte-1qy4b0e-style'; + style.textContent = ".ui-pnotify-reference-button.svelte-1qy4b0e{float:right}.ui-pnotify-reference-clearing.svelte-1qy4b0e{clear:right;line-height:0}"; + appendNode(style, document.head); +} + +function create_main_fragment(component, ctx) { + var if_block_anchor; + + var if_block = (ctx.putThing) && create_if_block(component, ctx); + + return { + c() { + if (if_block) if_block.c(); + if_block_anchor = createComment(); + }, + + m(target, anchor) { + if (if_block) if_block.m(target, anchor); + insertNode(if_block_anchor, target, anchor); + }, + + p(changed, ctx) { + if (ctx.putThing) { + if (if_block) { + if_block.p(changed, ctx); + } else { + if_block = create_if_block(component, ctx); + if_block.c(); + if_block.m(if_block_anchor.parentNode, if_block_anchor); + } + } else if (if_block) { + if_block.d(1); + if_block = null; + } + }, + + d(detach) { + if (if_block) if_block.d(detach); + if (detach) { + detachNode(if_block_anchor); + } + } + }; +} + +// (2:0) {#if putThing} +function create_if_block(component, ctx) { + var button, i, i_class_value, text, text_1_value = ctx.labels.text, text_1, button_disabled_value, text_3, div; + + function click_handler(event) { + component.doSomething(); + } + + return { + c() { + button = createElement("button"); + i = createElement("i"); + text = createText(" "); + text_1 = createText(text_1_value); + text_3 = createText("\n \n "); + div = createElement("div"); + i.className = i_class_value = "" + ctx._notice.get()._icons.athing + " svelte-1qy4b0e"; + addListener(button, "click", click_handler); + button.className = "ui-pnotify-reference-button btn btn-default svelte-1qy4b0e"; + button.type = "button"; + button.disabled = button_disabled_value = !ctx._mouseIsIn; + div.className = "ui-pnotify-reference-clearing svelte-1qy4b0e"; + }, + + m(target, anchor) { + insertNode(button, target, anchor); + appendNode(i, button); + appendNode(text, button); + appendNode(text_1, button); + component.refs.thingElem = button; + insertNode(text_3, target, anchor); + insertNode(div, target, anchor); + }, + + p(changed, ctx) { + if ((changed._notice) && i_class_value !== (i_class_value = "" + ctx._notice.get()._icons.athing + " svelte-1qy4b0e")) { + i.className = i_class_value; + } + + if ((changed.labels) && text_1_value !== (text_1_value = ctx.labels.text)) { + text_1.data = text_1_value; + } + + if ((changed._mouseIsIn) && button_disabled_value !== (button_disabled_value = !ctx._mouseIsIn)) { + button.disabled = button_disabled_value; + } + }, + + d(detach) { + if (detach) { + detachNode(button); + } + + removeListener(button, "click", click_handler); + if (component.refs.thingElem === button) component.refs.thingElem = null; + if (detach) { + detachNode(text_3); + detachNode(div); + } + } + }; +} + +function PNotifyReference(options) { + init(this, options); + this.refs = {}; + this._state = assign(data(), options.data); + this._intro = true; + + if (!document.getElementById("svelte-1qy4b0e-style")) add_css(); + + if (!options.root) { + this._oncreate = []; + } + + this._fragment = create_main_fragment(this, this._state); + + this.root._oncreate.push(() => { + oncreate.call(this); + this.fire("update", { changed: assignTrue({}, this._state), current: this._state }); + }); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + + callAll(this._oncreate); + } +} + +assign(PNotifyReference.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); +assign(PNotifyReference.prototype, methods); + +PNotifyReference.prototype._recompute = noop; + +setup(PNotifyReference); + +function createElement(name) { + return document.createElement(name); +} + +function appendNode(node, target) { + target.appendChild(node); +} + +function createComment() { + return document.createComment(''); +} + +function insertNode(node, target, anchor) { + target.insertBefore(node, anchor); +} + +function detachNode(node) { + node.parentNode.removeChild(node); +} + +function createText(data) { + return document.createTextNode(data); +} + +function addListener(node, event, handler) { + node.addEventListener(event, handler, false); +} + +function removeListener(node, event, handler) { + node.removeEventListener(event, handler, false); +} + +function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; +} + +function assign(tar, src) { + for (var k in src) tar[k] = src[k]; + return tar; +} + +function assignTrue(tar, src) { + for (var k in src) tar[k] = 1; + return tar; +} + +function callAll(fns) { + while (fns && fns.length) fns.shift()(); +} + +function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; +} + +function get() { + return this._state; +} + +function fire(eventName, data) { + var handlers = + eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } +} + +function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; +} + +function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; +} + +function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } +} + +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); +} + +function _differs(a, b) { + return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); +} + +function noop() {} + +function blankObject() { + return Object.create(null); +} +export default PNotifyReference; \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyReference.js.map b/app/node_modules/pnotify/lib/es/PNotifyReference.js.map new file mode 100644 index 00000000..2a9e0fb2 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyReference.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PNotifyReference.js","sources":["src/PNotifyReference.html"],"sourcesContent":["\n{#if putThing} \n \n \n  {labels.text}\n \n \n
\n{/if}\n\n\n\n\n"],"names":[],"mappings":";;;aA4ES,GAAG;AACZ,AAAI,EAAE,OAAO,MAAM,CAAC,MAAM,CAAC;AAC3B,AAAI,IAAI,SAAS,EAAE,IAAI;AACvB,AAAI,IAAI,UAAU,EAAE,EAAE;AACtB,AAAI,IAAI,YAAY,EAAE,KAAK;AAC3B,AAAI,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;AAC7C,AAAI,CAAC;;cAEQ;AACb,AAAI;AACJ,AAAI;AACJ,AAAI,EAAE,UAAU,CAAC,CAAC,OAAO,EAAE;AAC3B,AAAI;AACJ,AAAI,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC1B,AAAI;AACJ,AAAI;AACJ,AAAI,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;AACrC,AAAI,IAAI,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,IAAI,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AACvE,AAAI,IAAI,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,IAAI,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;AACxE,AAAI,GAAG;;AAEP,AAAI,EAAE,WAAW,CAAC,GAAG;AACrB,AAAI;AACJ,AAAI,IAAI,IAAI,QAAQ,GAAG,CAAC,CAAC;AACzB,AAAI,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;AACrC,AAAI,IAAI,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM;A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AA8C;AAC9D,AAAI,GAAG,CAAC,CAAC;AACT,AAAI,CAAC;;;;;;;;;;;;qBAlEA,QAAQ;;;;;;;;;;;;;;WAAR,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;wDAWyC,MAAM,CAAC,IAAI;;;YADjD,aAAa;;;;;;;;;;;0CACd,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM;;;;6CAFzB,KAAC,UAAU;;;;;;;;;;;;;;;wEAEb,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM;;;;gEAAY,MAAM,CAAC,IAAI;;;;kFAFhD,KAAC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyStyleMaterial.js b/app/node_modules/pnotify/lib/es/PNotifyStyleMaterial.js new file mode 100644 index 00000000..8d00c491 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyStyleMaterial.js @@ -0,0 +1,199 @@ +/* src/PNotifyStyleMaterial.html generated by Svelte v2.6.3 */ +import PNotify from "./PNotify.js"; + +function setup(Component) { + Component.key = 'StyleMaterial'; + + // Register the module with PNotify. + PNotify.modules.StyleMaterial = Component; + // Prepend this module to the container. + PNotify.modulesPrependContainer.push(Component); + + if (!PNotify.styling.material) { + PNotify.styling.material = {}; + } + PNotify.styling.material = Object.assign(PNotify.styling.material, { + container: 'pnotify-material', + notice: 'pnotify-material-notice', + info: 'pnotify-material-info', + success: 'pnotify-material-success', + error: 'pnotify-material-error' + }); + + if (!PNotify.icons.material) { + PNotify.icons.material = {}; + } + PNotify.icons.material = Object.assign(PNotify.icons.material, { + notice: 'material-icons pnotify-material-icon-notice', + info: 'material-icons pnotify-material-icon-info', + success: 'material-icons pnotify-material-icon-success', + error: 'material-icons pnotify-material-icon-error', + closer: 'material-icons pnotify-material-icon-closer', + pinUp: 'material-icons pnotify-material-icon-sticker', + pinDown: 'material-icons pnotify-material-icon-sticker pnotify-material-icon-stuck' + }); +}; + +function add_css() { + var style = createElement("style"); + style.id = 'svelte-19og8nx-style'; + style.textContent = "[ui-pnotify] .pnotify-material{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;font-size:14px}[ui-pnotify] .pnotify-material.ui-pnotify-shadow{-webkit-box-shadow:0px 6px 24px 0px rgba(0,0,0,0.2);-moz-box-shadow:0px 6px 24px 0px rgba(0,0,0,0.2);box-shadow:0px 6px 24px 0px rgba(0,0,0,0.2)}[ui-pnotify] .pnotify-material.ui-pnotify-container{padding:24px}[ui-pnotify] .pnotify-material .ui-pnotify-title{font-size:20px;margin-bottom:20px;line-height:24px}[ui-pnotify] .pnotify-material .ui-pnotify-title:last-child{margin-bottom:0}[ui-pnotify] .pnotify-material .ui-pnotify-text{font-size:16px;line-height:24px}[ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-title,[ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-text,[ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-confirm{margin-left:32px}[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-title,[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-text,[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-confirm{margin-right:32px;margin-left:0}[ui-pnotify] .pnotify-material .ui-pnotify-action-bar{margin-top:20px;margin-right:-16px;margin-bottom:-16px}[dir=rtl] [ui-pnotify] .pnotify-material .ui-pnotify-action-bar{margin-left:-16px;margin-right:0}[ui-pnotify] .pnotify-material-notice{background-color:#FFEE58;border:none;color:#000}[ui-pnotify] .pnotify-material-info{background-color:#26C6DA;border:none;color:#000}[ui-pnotify] .pnotify-material-success{background-color:#66BB6A;border:none;color:#fff}[ui-pnotify] .pnotify-material-error{background-color:#EF5350;border:none;color:#fff}[ui-pnotify] .pnotify-material-icon-notice,[ui-pnotify] .pnotify-material-icon-info,[ui-pnotify] .pnotify-material-icon-success,[ui-pnotify] .pnotify-material-icon-error,[ui-pnotify] .pnotify-material-icon-closer,[ui-pnotify] .pnotify-material-icon-sticker{position:relative}[ui-pnotify] .pnotify-material-icon-closer,[ui-pnotify] .pnotify-material-icon-sticker{height:20px;width:20px;font-size:20px;line-height:20px;position:relative}[ui-pnotify] .pnotify-material-icon-notice:after,[ui-pnotify] .pnotify-material-icon-info:after,[ui-pnotify] .pnotify-material-icon-success:after,[ui-pnotify] .pnotify-material-icon-error:after,[ui-pnotify] .pnotify-material-icon-closer:after,[ui-pnotify] .pnotify-material-icon-sticker:after{font-family:'Material Icons'}[ui-pnotify] .pnotify-material-icon-notice:after{content:\"announcement\"}[ui-pnotify] .pnotify-material-icon-info:after{content:\"info\"}[ui-pnotify] .pnotify-material-icon-success:after{content:\"check_circle\"}[ui-pnotify] .pnotify-material-icon-error:after{content:\"error\"}[ui-pnotify] .pnotify-material-icon-closer,[ui-pnotify] .pnotify-material-icon-sticker{display:inline-block}[ui-pnotify] .pnotify-material-icon-closer:after{top:-4px;content:\"close\"}[ui-pnotify] .pnotify-material-icon-sticker:after{top:-5px;content:\"pause\"}[ui-pnotify] .pnotify-material-icon-sticker.pnotify-material-icon-stuck:after{content:\"play_arrow\"}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-prompt-input{display:block;width:100%;margin-bottom:8px;padding:15px 0 8px;background-color:transparent;color:inherit;border-radius:0;border-top:none;border-left:none;border-right:none;border-bottom-style:solid;border-bottom-color:inherit;border-bottom-width:1px}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-prompt-input:focus{outline:none;border-bottom-color:#3F51B5;border-bottom-width:2px}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button{position:relative;padding:0 16px;overflow:hidden;border-width:0;outline:none;border-radius:2px;background-color:transparent;color:inherit;transition:background-color .3s;text-transform:uppercase;height:36px;margin:6px;min-width:64px;font-weight:bold}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button.ui-pnotify-material-primary{color:#3F51B5}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button:hover,[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button:focus{background-color:rgba(0, 0, 0, .12);color:inherit}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button.ui-pnotify-material-primary:hover,[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button.ui-pnotify-material-primary:focus{color:#303F9F}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button:before{content:\"\";position:absolute;top:50%;left:50%;display:block;width:0;padding-top:0;border-radius:100%;background-color:rgba(153, 153, 153, .4);-webkit-transform:translate(-50%, -50%);-moz-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);-o-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button:active:before{width:120%;padding-top:120%;transition:width .2s ease-out, padding-top .2s ease-out}"; + appendNode(style, document.head); +} + +function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; +} + +function PNotifyStyleMaterial(options) { + init(this, options); + this._state = assign({}, options.data); + this._intro = true; + + if (!document.getElementById("svelte-19og8nx-style")) add_css(); + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } +} + +assign(PNotifyStyleMaterial.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + +PNotifyStyleMaterial.prototype._recompute = noop; + +setup(PNotifyStyleMaterial); + +function createElement(name) { + return document.createElement(name); +} + +function appendNode(node, target) { + target.appendChild(node); +} + +function noop() {} + +function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; +} + +function assign(tar, src) { + for (var k in src) tar[k] = src[k]; + return tar; +} + +function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; +} + +function get() { + return this._state; +} + +function fire(eventName, data) { + var handlers = + eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } +} + +function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; +} + +function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; +} + +function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } +} + +function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); +} + +function _differs(a, b) { + return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); +} + +function blankObject() { + return Object.create(null); +} + +function callAll(fns) { + while (fns && fns.length) fns.shift()(); +} +export default PNotifyStyleMaterial; \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/es/PNotifyStyleMaterial.js.map b/app/node_modules/pnotify/lib/es/PNotifyStyleMaterial.js.map new file mode 100644 index 00000000..88367b83 --- /dev/null +++ b/app/node_modules/pnotify/lib/es/PNotifyStyleMaterial.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PNotifyStyleMaterial.js","sources":["src/PNotifyStyleMaterial.html"],"sourcesContent":["\n\n\n"],"names":[],"mappings":";;;cAIU,CAAC,SAAS,EAAE;AACtB,AAAI,EAAE,SAAS,CAAC,GAAG,GAAG,eAAe,CAAC;;AAEtC,AAAI;AACJ,AAAI,EAAE,OAAO,CAAC,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;AAChD,AAAI;AACJ,AAAI,EAAE,OAAO,CAAC,uBAAuB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;;AAEtD,AAAI,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE;AACrC,AAAI,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,GAAG,EAAE,CAAC;AACtC,AAAI,GAAG;AACP,AAAI,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE;AACzE,AAAI,IAAI,SAAS,EAAE,kBAAkB;AACrC,AAAI,IAAI,MAAM,EAAE,yBAAyB;AACzC,AAAI,IAAI,IAAI,EAAE,uBAAuB;AACrC,AAAI,IAAI,OAAO,EAAE,0BAA0B;AAC3C,AAAI,IAAI,KAAK,EAAE,wBAAwB;AACvC,AAAI,GAAG,CAAC,CAAC;;AAET,AAAI,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE;AACnC,AAAI,IAAI,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,EAAE,CAAC;AACpC,AAAI,GAAG;AACP,AAAI,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE;AACrE,AAAI,IAAI,MAAM,EAAE,6CAA6C;AAC7D,AAAI,IAAI,IAAI,EAAE,2CAA2C;AACzD,AAAI,IAAI,OAAO,EAAE,8CAA8C;AAC/D,AAAI,IAAI,KAAK,EAAE,4CAA4C;AAC3D,AAAI,IAAI,MAAM,EAAE,6CAA6C;AAC7D,AAAI,IAAI,KAAK,EAAE,8CAA8C;AAC7D,AAAI,IAAI,OAAO,EAAE,0EAA0E;AAC3F,AAAI,GAAG,CAAC,CAAC;AACT,AAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotify.js b/app/node_modules/pnotify/lib/iife/PNotify.js new file mode 100644 index 00000000..f83c8f13 --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotify.js @@ -0,0 +1,1985 @@ +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +/* src/PNotify.html generated by Svelte v2.6.3 */ +var PNotify = function () { + "use strict"; + + var PNotify = void 0; + + var posTimer = void 0; // Position all timer. + + // These actions need to be done once the DOM is ready. + var onDocumentLoaded = function onDocumentLoaded() { + PNotify.defaultStack.context = document.body; + // Reposition the notices when the window resizes. + window.addEventListener('resize', function () { + if (posTimer) { + clearTimeout(posTimer); + } + posTimer = setTimeout(function () { + PNotify.positionAll(); + }, 10); + }); + }; + + // Creates the background overlay for modal stacks. + var createStackOverlay = function createStackOverlay(stack) { + var overlay = document.createElement('div'); + overlay.classList.add('ui-pnotify-modal-overlay'); + if (stack.context !== document.body) { + overlay.style.height = stack.context.scrollHeight + 'px'; + overlay.style.width = stack.context.scrollWidth + 'px'; + } + // Close the notices on overlay click. + overlay.addEventListener('click', function () { + if (stack.overlayClose) { + PNotify.closeStack(stack); + } + }); + stack.overlay = overlay; + }; + + var insertStackOverlay = function insertStackOverlay(stack) { + if (stack.overlay.parentNode !== stack.context) { + stack.overlay = stack.context.insertBefore(stack.overlay, stack.context.firstChild); + } + }; + + var removeStackOverlay = function removeStackOverlay(stack) { + if (stack.overlay.parentNode) { + stack.overlay.parentNode.removeChild(stack.overlay); + } + }; + + // Default arguments for the new notice helper functions. + var getDefaultArgs = function getDefaultArgs(options, type) { + if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) !== 'object') { + options = { 'text': options }; + } + + // Only assign the type if it was requested, so we don't overwrite + // options.type if it has something assigned. + if (type) { + options.type = type; + } + + return { target: document.body, data: options }; + }; + + function _styles(_ref) { + var styling = _ref.styling; + + return (typeof styling === 'undefined' ? 'undefined' : _typeof(styling)) === 'object' ? styling : PNotify.styling[styling]; + } + + function _icons(_ref2) { + var icons = _ref2.icons; + + return (typeof icons === 'undefined' ? 'undefined' : _typeof(icons)) === 'object' ? icons : PNotify.icons[icons]; + } + + function _widthStyle(_ref3) { + var width = _ref3.width; + + return typeof width === 'string' ? 'width: ' + width + ';' : ''; + } + + function _minHeightStyle(_ref4) { + var minHeight = _ref4.minHeight; + + return typeof minHeight === 'string' ? 'min-height: ' + minHeight + ';' : ''; + } + + function data() { + var data = _extends({ + '_state': 'initializing', // The state can be 'initializing', 'opening', 'open', 'closing', and 'closed'. + '_timer': null, // Auto close timer. + '_animTimer': null, // Animation timer. + '_animating': false, // Stores what is currently being animated (in or out). + '_animatingClass': '', // Stores the class that adds entry/exit animation effects. + '_moveClass': '', // Stores the class that adds movement animation effects. + '_timerHide': false, // Stores whether the notice was hidden by a timer. + '_moduleClasses': [], // Modules can add classes here to be added to the notice element. (They should play nice and not remove classes that aren't theirs.) + '_moduleIsNoticeOpen': false, // Modules that change how the notice displays (causing the notice element to not appear) can set this to true to make PNotify assume the notice has opened. + '_modules': {}, // Stores the instances of the modules. + '_modulesPrependContainer': PNotify.modulesPrependContainer, + '_modulesAppendContainer': PNotify.modulesAppendContainer + }, PNotify.defaults); + data.modules = _extends({}, PNotify.defaults.modules); + return data; + }; + + var methods = { + // This runs an event on all the modules. + runModules: function runModules(event) { + if (event === 'init') { + // Initializing a module should only be done if it has an init + // function, which means it's not rendered in the template. + for (var key in PNotify.modules) { + if (!PNotify.modules.hasOwnProperty(key)) { + continue; + } + if (typeof PNotify.modules[key].init === 'function') { + var module = PNotify.modules[key].init(this); + this.initModule(module); + } + } + } else { + var _get = this.get(), + _modules = _get._modules; + + for (var _module in _modules) { + if (!_modules.hasOwnProperty(_module)) { + continue; + } + var moduleOptions = _extends({ + '_notice': this, + '_options': this.get() + }, this.get().modules[_module]); + _modules[_module].set(moduleOptions); + if (typeof _modules[_module][event] === 'function') { + _modules[_module][event](); + } + } + } + }, + + + // This passes module options to a module. + initModule: function initModule(module) { + var _get2 = this.get(), + modules = _get2.modules; + + if (!modules.hasOwnProperty(module.constructor.key)) { + modules[module.constructor.key] = {}; + } + var moduleOptions = _extends({ + '_notice': this, + '_options': this.get() + }, modules[module.constructor.key]); + module.initModule(moduleOptions); + + // Now save the module instance. + + var _get3 = this.get(), + _modules = _get3._modules; + + _modules[module.constructor.key] = module; + }, + update: function update(options) { + // Save old options. + var oldHide = this.get().hide; + var oldIcon = this.get().icon; + + this.set(options); + + // Run the modules. + this.runModules('update'); + + // Update the timed hiding. + if (!this.get().hide) { + this.cancelClose(); + } else if (!oldHide) { + this.queueClose(); + } + this.queuePosition(); + + // Font Awesome 5 replaces our lovely element with a gross SVG. In order + // to make it play nice with Svelte, we have to clear the element and + // make it again. + + var _get4 = this.get(), + icon = _get4.icon; + + if (icon !== oldIcon && (icon === true && this.get().icons === 'fontawesome5' || typeof icon === 'string' && icon.match(/(^| )fa[srlb]($| )/))) { + this.set({ 'icon': false }); + this.set({ 'icon': icon }); + } + + return this; + }, + + + // Display the notice. + open: function open() { + var _this = this; + + var _get5 = this.get(), + _state = _get5._state, + hide = _get5.hide; + + if (_state === 'opening') { + return; + } + if (_state === 'open') { + if (hide) { + this.queueClose(); + } + return; + } + this.set({ + '_state': 'opening', + // This makes the notice visibity: hidden; so its dimensions can be + // determined. + '_animatingClass': 'ui-pnotify-initial-hidden' + }); + // Run the modules. + this.runModules('beforeOpen'); + + var _get6 = this.get(), + stack = _get6.stack; + // If the notice is not in the DOM, or in the wrong context, append it. + + + if (!this.refs.elem.parentNode || stack && stack.context && stack.context !== this.refs.elem.parentNode) { + if (stack && stack.context) { + stack.context.appendChild(this.refs.elem); + } else if (document.body) { + document.body.appendChild(this.refs.elem); + } else { + throw new Error('No context to open this notice in.'); + } + } + + // Wait until the DOM is updated. + setTimeout(function () { + if (stack) { + // Mark the stack so it won't animate the new notice. + stack.animation = false; + // Now position all the notices. + PNotify.positionAll(); + // Reset animation. + stack.animation = true; + } + + _this.animateIn(function () { + // Now set it to hide. + if (_this.get().hide) { + _this.queueClose(); + } + + _this.set({ '_state': 'open' }); + + // Run the modules. + _this.runModules('afterOpen'); + }); + }, 0); + + return this; + }, + remove: function remove(timerHide) { + return this.close(timerHide); + }, + + + // Remove the notice. + close: function close(timerHide) { + var _this2 = this; + + var _get7 = this.get(), + _state = _get7._state; + + if (_state === 'closing' || _state === 'closed') { + return; + } + this.set({ '_state': 'closing', '_timerHide': !!timerHide }); // Make sure it's a boolean. + // Run the modules. + this.runModules('beforeClose'); + + var _get8 = this.get(), + _timer = _get8._timer; + + if (_timer && clearTimeout) { + clearTimeout(_timer); + this.set({ '_timer': null }); + } + this.animateOut(function () { + _this2.set({ '_state': 'closed' }); + // Run the modules. + _this2.runModules('afterClose'); + _this2.queuePosition(); + // If we're supposed to remove the notice from the DOM, do it. + if (_this2.get().remove) { + _this2.refs.elem.parentNode.removeChild(_this2.refs.elem); + } + // Run the modules. + _this2.runModules('beforeDestroy'); + // Remove object from PNotify.notices to prevent memory leak (issue #49) + // unless destroy is off + if (_this2.get().destroy) { + if (PNotify.notices !== null) { + var idx = PNotify.notices.indexOf(_this2); + if (idx !== -1) { + PNotify.notices.splice(idx, 1); + } + } + } + // Run the modules. + _this2.runModules('afterDestroy'); + }); + + return this; + }, + + + // Animate the notice in. + animateIn: function animateIn(callback) { + var _this3 = this; + + // Declare that the notice is animating in. + this.set({ '_animating': 'in' }); + var finished = function finished() { + _this3.refs.elem.removeEventListener('transitionend', finished); + + var _get9 = _this3.get(), + _animTimer = _get9._animTimer, + _animating = _get9._animating, + _moduleIsNoticeOpen = _get9._moduleIsNoticeOpen; + + if (_animTimer) { + clearTimeout(_animTimer); + } + if (_animating !== 'in') { + return; + } + var visible = _moduleIsNoticeOpen; + if (!visible) { + var domRect = _this3.refs.elem.getBoundingClientRect(); + for (var prop in domRect) { + if (domRect[prop] > 0) { + visible = true; + break; + } + } + } + if (visible) { + if (callback) { + callback.call(); + } + // Declare that the notice has completed animating. + _this3.set({ '_animating': false }); + } else { + _this3.set({ '_animTimer': setTimeout(finished, 40) }); + } + }; + + if (this.get().animation === 'fade') { + this.refs.elem.addEventListener('transitionend', finished); + this.set({ '_animatingClass': 'ui-pnotify-in' }); + // eslint-disable-next-line no-unused-expressions + this.refs.elem.style.opacity; // This line is necessary for some reason. Some notices don't fade without it. + this.set({ '_animatingClass': 'ui-pnotify-in ui-pnotify-fade-in' }); + // Just in case the event doesn't fire, call it after 650 ms. + this.set({ '_animTimer': setTimeout(finished, 650) }); + } else { + this.set({ '_animatingClass': 'ui-pnotify-in' }); + finished(); + } + }, + + + // Animate the notice out. + animateOut: function animateOut(callback) { + var _this4 = this; + + // Declare that the notice is animating out. + this.set({ '_animating': 'out' }); + var finished = function finished() { + _this4.refs.elem.removeEventListener('transitionend', finished); + + var _get10 = _this4.get(), + _animTimer = _get10._animTimer, + _animating = _get10._animating, + _moduleIsNoticeOpen = _get10._moduleIsNoticeOpen; + + if (_animTimer) { + clearTimeout(_animTimer); + } + if (_animating !== 'out') { + return; + } + var visible = _moduleIsNoticeOpen; + if (!visible) { + var domRect = _this4.refs.elem.getBoundingClientRect(); + for (var prop in domRect) { + if (domRect[prop] > 0) { + visible = true; + break; + } + } + } + if (!_this4.refs.elem.style.opacity || _this4.refs.elem.style.opacity === '0' || !visible) { + _this4.set({ '_animatingClass': '' }); + + var _get11 = _this4.get(), + stack = _get11.stack; + + if (stack && stack.overlay) { + // Go through the modal stack to see if any are left open. + // TODO: Rewrite this cause it sucks. + var stillOpen = false; + for (var i = 0; i < PNotify.notices.length; i++) { + var notice = PNotify.notices[i]; + if (notice !== _this4 && notice.get().stack === stack && notice.get()._state !== 'closed') { + stillOpen = true; + break; + } + } + if (!stillOpen) { + removeStackOverlay(stack); + } + } + if (callback) { + callback.call(); + } + // Declare that the notice has completed animating. + _this4.set({ '_animating': false }); + } else { + // In case this was called before the notice finished animating. + _this4.set({ '_animTimer': setTimeout(finished, 40) }); + } + }; + + if (this.get().animation === 'fade') { + this.refs.elem.addEventListener('transitionend', finished); + this.set({ '_animatingClass': 'ui-pnotify-in' }); + // Just in case the event doesn't fire, call it after 650 ms. + this.set({ '_animTimer': setTimeout(finished, 650) }); + } else { + this.set({ '_animatingClass': '' }); + finished(); + } + }, + + + // Position the notice. + position: function position() { + // Get the notice's stack. + var _get12 = this.get(), + stack = _get12.stack; + + var elem = this.refs.elem; + if (!stack) { + return; + } + if (!stack.context) { + stack.context = document.body; + } + if (typeof stack.nextpos1 !== 'number') { + stack.nextpos1 = stack.firstpos1; + } + if (typeof stack.nextpos2 !== 'number') { + stack.nextpos2 = stack.firstpos2; + } + if (typeof stack.addpos2 !== 'number') { + stack.addpos2 = 0; + } + + // Skip this notice if it's not shown. + if (!elem.classList.contains('ui-pnotify-in') && !elem.classList.contains('ui-pnotify-initial-hidden')) { + return this; + } + + if (stack.modal) { + if (!stack.overlay) { + createStackOverlay(stack); + } + insertStackOverlay(stack); + } + + // Read from the DOM to cause refresh. + elem.getBoundingClientRect(); + + if (stack.animation) { + // Add animate class. + this.set({ '_moveClass': 'ui-pnotify-move' }); + } + + var spaceY = stack.context === document.body ? window.innerHeight : stack.context.scrollHeight; + var spaceX = stack.context === document.body ? window.innerWidth : stack.context.scrollWidth; + + var csspos1 = void 0; + + if (stack.dir1) { + csspos1 = { + 'down': 'top', + 'up': 'bottom', + 'left': 'right', + 'right': 'left' + }[stack.dir1]; + + // Calculate the current pos1 value. + var curpos1 = void 0; + switch (stack.dir1) { + case 'down': + curpos1 = elem.offsetTop; + break; + case 'up': + curpos1 = spaceY - elem.scrollHeight - elem.offsetTop; + break; + case 'left': + curpos1 = spaceX - elem.scrollWidth - elem.offsetLeft; + break; + case 'right': + curpos1 = elem.offsetLeft; + break; + } + // Remember the first pos1, so the first notice goes there. + if (typeof stack.firstpos1 === 'undefined') { + stack.firstpos1 = curpos1; + stack.nextpos1 = stack.firstpos1; + } + } + + if (stack.dir1 && stack.dir2) { + var csspos2 = { + 'down': 'top', + 'up': 'bottom', + 'left': 'right', + 'right': 'left' + }[stack.dir2]; + + // Calculate the current pos2 value. + var curpos2 = void 0; + switch (stack.dir2) { + case 'down': + curpos2 = elem.offsetTop; + break; + case 'up': + curpos2 = spaceY - elem.scrollHeight - elem.offsetTop; + break; + case 'left': + curpos2 = spaceX - elem.scrollWidth - elem.offsetLeft; + break; + case 'right': + curpos2 = elem.offsetLeft; + break; + } + // Remember the first pos2, so the first notice goes there. + if (typeof stack.firstpos2 === 'undefined') { + stack.firstpos2 = curpos2; + stack.nextpos2 = stack.firstpos2; + } + + // Check that it's not beyond the viewport edge. + var endY = stack.nextpos1 + elem.offsetHeight + (typeof stack.spacing1 === 'undefined' ? 25 : stack.spacing1); + var endX = stack.nextpos1 + elem.offsetWidth + (typeof stack.spacing1 === 'undefined' ? 25 : stack.spacing1); + if ((stack.dir1 === 'down' || stack.dir1 === 'up') && endY > spaceY || (stack.dir1 === 'left' || stack.dir1 === 'right') && endX > spaceX) { + // If it is, it needs to go back to the first pos1, and over on pos2. + stack.nextpos1 = stack.firstpos1; + stack.nextpos2 += stack.addpos2 + (typeof stack.spacing2 === 'undefined' ? 25 : stack.spacing2); + stack.addpos2 = 0; + } + + // Move the notice on dir2. + if (typeof stack.nextpos2 === 'number') { + elem.style[csspos2] = stack.nextpos2 + 'px'; + if (!stack.animation) { + // eslint-disable-next-line no-unused-expressions + elem.style[csspos2]; // Read from the DOM for update. + } + } + + // Keep track of the widest/tallest notice in the column/row, so we can push the next column/row. + switch (stack.dir2) { + case 'down': + case 'up': + if (elem.offsetHeight + (parseFloat(elem.style.marginTop, 10) || 0) + (parseFloat(elem.style.marginBottom, 10) || 0) > stack.addpos2) { + stack.addpos2 = elem.offsetHeight; + } + break; + case 'left': + case 'right': + if (elem.offsetWidth + (parseFloat(elem.style.marginLeft, 10) || 0) + (parseFloat(elem.style.marginRight, 10) || 0) > stack.addpos2) { + stack.addpos2 = elem.offsetWidth; + } + break; + } + } else if (stack.dir1) { + // Center the notice along dir1 axis, because the stack has no dir2. + var cssMiddle = void 0, + cssposCross = void 0; + switch (stack.dir1) { + case 'down': + case 'up': + cssposCross = ['left', 'right']; + cssMiddle = stack.context.scrollWidth / 2 - elem.offsetWidth / 2; + break; + case 'left': + case 'right': + cssposCross = ['top', 'bottom']; + cssMiddle = spaceY / 2 - elem.offsetHeight / 2; + break; + } + elem.style[cssposCross[0]] = cssMiddle + 'px'; + elem.style[cssposCross[1]] = 'auto'; + if (!stack.animation) { + // eslint-disable-next-line no-unused-expressions + elem.style[cssposCross[0]]; // Read from the DOM for update. + } + } + + if (stack.dir1) { + // Move the notice on dir1. + if (typeof stack.nextpos1 === 'number') { + elem.style[csspos1] = stack.nextpos1 + 'px'; + if (!stack.animation) { + // eslint-disable-next-line no-unused-expressions + elem.style[csspos1]; // Read from the DOM for update. + } + } + + // Calculate the next dir1 position. + switch (stack.dir1) { + case 'down': + case 'up': + stack.nextpos1 += elem.offsetHeight + (typeof stack.spacing1 === 'undefined' ? 25 : stack.spacing1); + break; + case 'left': + case 'right': + stack.nextpos1 += elem.offsetWidth + (typeof stack.spacing1 === 'undefined' ? 25 : stack.spacing1); + break; + } + } else { + // Center the notice on the screen, because the stack has no dir1. + var cssMiddleLeft = spaceX / 2 - elem.offsetWidth / 2; + var cssMiddleTop = spaceY / 2 - elem.offsetHeight / 2; + elem.style.left = cssMiddleLeft + 'px'; + elem.style.top = cssMiddleTop + 'px'; + if (!stack.animation) { + // eslint-disable-next-line no-unused-expressions + elem.style.left; // Read from the DOM for update. + } + } + + return this; + }, + + + // Queue the position all function so it doesn't run repeatedly and + // use up resources. + queuePosition: function queuePosition(milliseconds) { + if (posTimer) { + clearTimeout(posTimer); + } + if (!milliseconds) { + milliseconds = 10; + } + posTimer = setTimeout(function () { + PNotify.positionAll(); + }, milliseconds); + return this; + }, + cancelRemove: function cancelRemove() { + return this.cancelClose(); + }, + + + // Cancel any pending removal timer. + cancelClose: function cancelClose() { + var _get13 = this.get(), + _timer = _get13._timer, + _animTimer = _get13._animTimer, + _state = _get13._state, + animation = _get13.animation; + + if (_timer) { + clearTimeout(_timer); + } + if (_animTimer) { + clearTimeout(_animTimer); + } + if (_state === 'closing') { + // If it's animating out, stop it. + this.set({ + '_state': 'open', + '_animating': false, + '_animatingClass': animation === 'fade' ? 'ui-pnotify-in ui-pnotify-fade-in' : 'ui-pnotify-in' + }); + } + return this; + }, + queueRemove: function queueRemove() { + return this.queueClose(); + }, + + + // Queue a close timer. + queueClose: function queueClose() { + var _this5 = this; + + // Cancel any current close timer. + this.cancelClose(); + this.set({ + '_timer': setTimeout(function () { + return _this5.close(true); + }, isNaN(this.get().delay) ? 0 : this.get().delay) + }); + return this; + }, + addModuleClass: function addModuleClass() { + var _get14 = this.get(), + _moduleClasses = _get14._moduleClasses; + + for (var _len = arguments.length, classNames = Array(_len), _key = 0; _key < _len; _key++) { + classNames[_key] = arguments[_key]; + } + + for (var i = 0; i < classNames.length; i++) { + var className = classNames[i]; + if (_moduleClasses.indexOf(className) === -1) { + _moduleClasses.push(className); + } + } + this.set({ _moduleClasses: _moduleClasses }); + }, + removeModuleClass: function removeModuleClass() { + var _get15 = this.get(), + _moduleClasses = _get15._moduleClasses; + + for (var _len2 = arguments.length, classNames = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + classNames[_key2] = arguments[_key2]; + } + + for (var i = 0; i < classNames.length; i++) { + var className = classNames[i]; + var idx = _moduleClasses.indexOf(className); + if (idx !== -1) { + _moduleClasses.splice(idx, 1); + } + } + this.set({ _moduleClasses: _moduleClasses }); + }, + hasModuleClass: function hasModuleClass() { + var _get16 = this.get(), + _moduleClasses = _get16._moduleClasses; + + for (var _len3 = arguments.length, classNames = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { + classNames[_key3] = arguments[_key3]; + } + + for (var i = 0; i < classNames.length; i++) { + var className = classNames[i]; + if (_moduleClasses.indexOf(className) === -1) { + return false; + } + } + return true; + } + }; + + function oncreate() { + var _this6 = this; + + this.on('mouseenter', function (e) { + // Stop animation, reset the removal timer when the user mouses over. + if (_this6.get().mouseReset && _this6.get()._animating === 'out') { + if (!_this6.get()._timerHide) { + return; + } + _this6.cancelClose(); + } + // Stop the close timer. + if (_this6.get().hide && _this6.get().mouseReset) { + _this6.cancelClose(); + } + }); + + this.on('mouseleave', function (e) { + // Start the close timer. + if (_this6.get().hide && _this6.get().mouseReset && _this6.get()._animating !== 'out') { + _this6.queueClose(); + } + PNotify.positionAll(); + }); + + var _get17 = this.get(), + stack = _get17.stack; + + // Add the notice to the notice array. + + + if (stack && stack.push === 'top') { + PNotify.notices.splice(0, 0, this); + } else { + PNotify.notices.push(this); + } + + // Run the modules. + this.runModules('init'); + + // We're now initialized, but haven't been opened yet. + this.set({ '_state': 'closed' }); + + // Display the notice. + if (this.get().autoDisplay) { + this.open(); + } + }; + + function setup(Component) { + // Add static properties to the PNotify object. + PNotify = Component; + + PNotify.VERSION = '4.0.0-alpha.3'; + + PNotify.defaultStack = { + dir1: 'down', + dir2: 'left', + firstpos1: 25, + firstpos2: 25, + spacing1: 36, + spacing2: 36, + push: 'bottom', + context: window && document.body + }; + + PNotify.defaults = { + // The notice's title. + title: false, + // Whether to trust the title or escape its contents. (Not allow HTML.) + titleTrusted: false, + // The notice's text. + text: false, + // Whether to trust the text or escape its contents. (Not allow HTML.) + textTrusted: false, + // What styling classes to use. (Can be 'brighttheme', 'bootstrap3', 'bootstrap4', or a styling object.) + styling: 'brighttheme', + // What icons to use (Can be 'brighttheme', 'bootstrap3', 'fontawesome4', 'fontawesome5', or an icon object.) + icons: 'brighttheme', + // Additional classes to be added to the notice. (For custom styling.) + addClass: '', + // Class to be added to the notice for corner styling. + cornerClass: '', + // Display the notice when it is created. + autoDisplay: true, + // Width of the notice. + width: '360px', + // Minimum height of the notice. It will expand to fit content. + minHeight: '16px', + // Type of the notice. 'notice', 'info', 'success', or 'error'. + type: 'notice', + // Set icon to true to use the default icon for the selected + // style/type, false for no icon, or a string for your own icon class. + icon: true, + // The animation to use when displaying and hiding the notice. 'none' + // and 'fade' are supported through CSS. Others are supported + // through the Animate module and Animate.css. + animation: 'fade', + // Speed at which the notice animates in and out. 'slow', 'normal', + // or 'fast'. Respectively, 400ms, 250ms, 100ms. + animateSpeed: 'normal', + // Display a drop shadow. + shadow: true, + // After a delay, remove the notice. + hide: true, + // Delay in milliseconds before the notice is removed. + delay: 8000, + // Reset the hide timer if the mouse moves over the notice. + mouseReset: true, + // Remove the notice's elements from the DOM after it is removed. + remove: true, + // Whether to remove the notice from the global array when it is closed. + destroy: true, + // The stack on which the notices will be placed. Also controls the + // direction the notices stack. + stack: PNotify.defaultStack, + // This is where options for modules should be defined. + modules: {} + }; + + // An array of all active notices. + PNotify.notices = []; + + // This object holds all the PNotify modules. They are used to provide + // additional functionality. + PNotify.modules = {}; + + // Modules can add themselves to these to be rendered in the template. + PNotify.modulesPrependContainer = []; + PNotify.modulesAppendContainer = []; + + // Helper function to create a new notice. + PNotify.alert = function (options) { + return new PNotify(getDefaultArgs(options)); + }; + // Helper function to create a new notice (notice type). + PNotify.notice = function (options) { + return new PNotify(getDefaultArgs(options, 'notice')); + }; + // Helper function to create a new notice (info type). + PNotify.info = function (options) { + return new PNotify(getDefaultArgs(options, 'info')); + }; + // Helper function to create a new notice (success type). + PNotify.success = function (options) { + return new PNotify(getDefaultArgs(options, 'success')); + }; + // Helper function to create a new notice (error type). + PNotify.error = function (options) { + return new PNotify(getDefaultArgs(options, 'error')); + }; + + PNotify.removeAll = function () { + PNotify.closeAll(); + }; + + // Close all notices. + PNotify.closeAll = function () { + for (var i = 0; i < PNotify.notices.length; i++) { + if (PNotify.notices[i].close) { + PNotify.notices[i].close(false); + } + } + }; + + PNotify.removeStack = function (stack) { + PNotify.closeStack(stack); + }; + + // Close all notices in a single stack. + PNotify.closeStack = function (stack) { + if (stack === false) { + return; + } + for (var i = 0; i < PNotify.notices.length; i++) { + if (PNotify.notices[i].close && PNotify.notices[i].get().stack === stack) { + PNotify.notices[i].close(false); + } + } + }; + + // Position all notices. + PNotify.positionAll = function () { + // This timer is used for queueing this function so it doesn't run + // repeatedly. + if (posTimer) { + clearTimeout(posTimer); + } + posTimer = null; + // Reset the next position data. + if (PNotify.notices.length > 0) { + for (var i = 0; i < PNotify.notices.length; i++) { + var notice = PNotify.notices[i]; + + var _notice$get = notice.get(), + stack = _notice$get.stack; + + if (!stack) { + continue; + } + if (stack.overlay) { + removeStackOverlay(stack); + } + stack.nextpos1 = stack.firstpos1; + stack.nextpos2 = stack.firstpos2; + stack.addpos2 = 0; + } + for (var _i = 0; _i < PNotify.notices.length; _i++) { + PNotify.notices[_i].position(); + } + } else { + delete PNotify.defaultStack.nextpos1; + delete PNotify.defaultStack.nextpos2; + } + }; + + PNotify.styling = { + brighttheme: { + // Bright Theme doesn't require any UI libraries. + container: 'brighttheme', + notice: 'brighttheme-notice', + info: 'brighttheme-info', + success: 'brighttheme-success', + error: 'brighttheme-error' + }, + bootstrap3: { + container: 'alert', + notice: 'alert-warning', + info: 'alert-info', + success: 'alert-success', + error: 'alert-danger', + icon: 'ui-pnotify-icon-bs3' + }, + bootstrap4: { + container: 'alert', + notice: 'alert-warning', + info: 'alert-info', + success: 'alert-success', + error: 'alert-danger', + icon: 'ui-pnotify-icon-bs4', + title: 'ui-pnotify-title-bs4' + } + }; + + // icons are separate from the style, since bs4 doesn't come with any + PNotify.icons = { + brighttheme: { + notice: 'brighttheme-icon-notice', + info: 'brighttheme-icon-info', + success: 'brighttheme-icon-success', + error: 'brighttheme-icon-error' + }, + bootstrap3: { + notice: 'glyphicon glyphicon-exclamation-sign', + info: 'glyphicon glyphicon-info-sign', + success: 'glyphicon glyphicon-ok-sign', + error: 'glyphicon glyphicon-warning-sign' + }, + // User must have Font Awesome v4.0+ + fontawesome4: { + notice: 'fa fa-exclamation-circle', + info: 'fa fa-info-circle', + success: 'fa fa-check-circle', + error: 'fa fa-exclamation-triangle' + }, + // User must have Font Awesome v5.0+ + fontawesome5: { + notice: 'fas fa-exclamation-circle', + info: 'fas fa-info-circle', + success: 'fas fa-check-circle', + error: 'fas fa-exclamation-triangle' + } + }; + + // Run the deferred actions once the DOM is ready. + if (window && document.body) { + onDocumentLoaded(); + } else { + document.addEventListener('DOMContentLoaded', onDocumentLoaded); + } + } + + function add_css() { + var style = createElement("style"); + style.id = 'svelte-1eldsjg-style'; + style.textContent = "body > .ui-pnotify{position:fixed;z-index:100040}body > .ui-pnotify.ui-pnotify-modal{z-index:100042}.ui-pnotify{position:absolute;height:auto;z-index:1;display:none}.ui-pnotify.ui-pnotify-modal{z-index:3}.ui-pnotify.ui-pnotify-in{display:block}.ui-pnotify.ui-pnotify-initial-hidden{display:block;visibility:hidden}.ui-pnotify.ui-pnotify-move{transition:left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-slow{transition:opacity .4s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-slow.ui-pnotify.ui-pnotify-move{transition:opacity .4s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-normal{transition:opacity .25s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-normal.ui-pnotify.ui-pnotify-move{transition:opacity .25s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-fast{transition:opacity .1s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-fast.ui-pnotify.ui-pnotify-move{transition:opacity .1s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-in{opacity:1}.ui-pnotify .ui-pnotify-shadow{-webkit-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);-moz-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1)}.ui-pnotify-container{background-position:0 0;padding:.8em;height:100%;margin:0}.ui-pnotify-container:after{content:\" \";visibility:hidden;display:block;height:0;clear:both}.ui-pnotify-container.ui-pnotify-sharp{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ui-pnotify-title{display:block;white-space:pre-line;margin-bottom:.4em;margin-top:0}.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-left:24px}[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-right:24px;margin-left:0}.ui-pnotify-title-bs4{font-size:1.2rem}.ui-pnotify-text{display:block;white-space:pre-line}.ui-pnotify-icon,.ui-pnotify-icon span{display:block;float:left}[dir=rtl] .ui-pnotify-icon,[dir=rtl] .ui-pnotify-icon span{float:right}.ui-pnotify-icon-bs3 > span{position:relative;top:2px}.ui-pnotify-icon-bs4 > span{position:relative;top:4px}.ui-pnotify-modal-overlay{background-color:rgba(0, 0, 0, .4);top:0;left:0;position:absolute;height:100%;width:100%;z-index:2}body > .ui-pnotify-modal-overlay{position:fixed;z-index:100041}"; + appendNode(style, document.head); + } + + function create_main_fragment(component, ctx) { + var div, + div_1, + each_blocks_1 = [], + each_lookup = blankObject(), + text, + text_1, + text_2, + text_3, + each_1_blocks_1 = [], + each_1_lookup = blankObject(), + div_1_class_value, + div_1_style_value, + div_class_value; + + var each_value = ctx._modulesPrependContainer; + + var get_key = function get_key(ctx) { + return ctx.module.key; + }; + + for (var i = 0; i < each_value.length; i += 1) { + var child_ctx = get_each_context(ctx, each_value, i); + var key = get_key(child_ctx); + each_blocks_1[i] = each_lookup[key] = create_each_block(component, key, child_ctx); + } + + var if_block = ctx.icon !== false && create_if_block(component, ctx); + + var if_block_1 = ctx.title !== false && create_if_block_1(component, ctx); + + var if_block_2 = ctx.text !== false && create_if_block_4(component, ctx); + + var each_value_1 = ctx._modulesAppendContainer; + + var get_key_1 = function get_key_1(ctx) { + return ctx.module.key; + }; + + for (var i = 0; i < each_value_1.length; i += 1) { + var _child_ctx = get_each_1_context(ctx, each_value_1, i); + var _key4 = get_key_1(_child_ctx); + each_1_blocks_1[i] = each_1_lookup[_key4] = create_each_block_1(component, _key4, _child_ctx); + } + + function mouseover_handler(event) { + component.fire("mouseover", event); + } + + function mouseout_handler(event) { + component.fire("mouseout", event); + } + + function mouseenter_handler(event) { + component.fire("mouseenter", event); + } + + function mouseleave_handler(event) { + component.fire("mouseleave", event); + } + + function mousemove_handler(event) { + component.fire("mousemove", event); + } + + function mousedown_handler(event) { + component.fire("mousedown", event); + } + + function mouseup_handler(event) { + component.fire("mouseup", event); + } + + function click_handler(event) { + component.fire("click", event); + } + + function dblclick_handler(event) { + component.fire("dblclick", event); + } + + function focus_handler(event) { + component.fire("focus", event); + } + + function blur_handler(event) { + component.fire("blur", event); + } + + function touchstart_handler(event) { + component.fire("touchstart", event); + } + + function touchmove_handler(event) { + component.fire("touchmove", event); + } + + function touchend_handler(event) { + component.fire("touchend", event); + } + + function touchcancel_handler(event) { + component.fire("touchcancel", event); + } + + return { + c: function c() { + div = createElement("div"); + div_1 = createElement("div"); + + for (i = 0; i < each_blocks_1.length; i += 1) { + each_blocks_1[i].c(); + }text = createText("\n "); + if (if_block) if_block.c(); + text_1 = createText("\n "); + if (if_block_1) if_block_1.c(); + text_2 = createText("\n "); + if (if_block_2) if_block_2.c(); + text_3 = createText("\n "); + + for (i = 0; i < each_1_blocks_1.length; i += 1) { + each_1_blocks_1[i].c(); + }div_1.className = div_1_class_value = "\n ui-pnotify-container\n " + (ctx._styles.container ? ctx._styles.container : '') + "\n " + (ctx._styles[ctx.type] ? ctx._styles[ctx.type] : '') + "\n " + ctx.cornerClass + "\n " + (ctx.shadow ? 'ui-pnotify-shadow' : '') + "\n "; + div_1.style.cssText = div_1_style_value = "" + ctx._widthStyle + " " + ctx._minHeightStyle; + setAttribute(div_1, "role", "alert"); + addListener(div, "mouseover", mouseover_handler); + addListener(div, "mouseout", mouseout_handler); + addListener(div, "mouseenter", mouseenter_handler); + addListener(div, "mouseleave", mouseleave_handler); + addListener(div, "mousemove", mousemove_handler); + addListener(div, "mousedown", mousedown_handler); + addListener(div, "mouseup", mouseup_handler); + addListener(div, "click", click_handler); + addListener(div, "dblclick", dblclick_handler); + addListener(div, "focus", focus_handler); + addListener(div, "blur", blur_handler); + addListener(div, "touchstart", touchstart_handler); + addListener(div, "touchmove", touchmove_handler); + addListener(div, "touchend", touchend_handler); + addListener(div, "touchcancel", touchcancel_handler); + div.className = div_class_value = "\n ui-pnotify\n " + (ctx.icon !== false ? 'ui-pnotify-with-icon' : '') + "\n " + (ctx._styles.element ? ctx._styles.element : '') + "\n " + ctx.addClass + "\n " + ctx._animatingClass + "\n " + ctx._moveClass + "\n " + (ctx.animation === 'fade' ? 'ui-pnotify-fade-' + ctx.animateSpeed : '') + "\n " + (ctx.stack && ctx.stack.modal ? 'ui-pnotify-modal' : '') + "\n " + ctx._moduleClasses.join(' ') + "\n "; + setAttribute(div, "aria-live", "assertive"); + setAttribute(div, "role", "alertdialog"); + setAttribute(div, "ui-pnotify", true); + }, + m: function m(target, anchor) { + insertNode(div, target, anchor); + appendNode(div_1, div); + + for (i = 0; i < each_blocks_1.length; i += 1) { + each_blocks_1[i].m(div_1, null); + }appendNode(text, div_1); + if (if_block) if_block.m(div_1, null); + appendNode(text_1, div_1); + if (if_block_1) if_block_1.m(div_1, null); + appendNode(text_2, div_1); + if (if_block_2) if_block_2.m(div_1, null); + appendNode(text_3, div_1); + + for (i = 0; i < each_1_blocks_1.length; i += 1) { + each_1_blocks_1[i].m(div_1, null); + }component.refs.container = div_1; + component.refs.elem = div; + }, + p: function p(changed, ctx) { + var each_value = ctx._modulesPrependContainer; + each_blocks_1 = updateKeyedEach(each_blocks_1, component, changed, get_key, 0, ctx, each_value, each_lookup, div_1, destroyBlock, create_each_block, "m", text, get_each_context); + + if (ctx.icon !== false) { + if (if_block) { + if_block.p(changed, ctx); + } else { + if_block = create_if_block(component, ctx); + if_block.c(); + if_block.m(div_1, text_1); + } + } else if (if_block) { + if_block.d(1); + if_block = null; + } + + if (ctx.title !== false) { + if (if_block_1) { + if_block_1.p(changed, ctx); + } else { + if_block_1 = create_if_block_1(component, ctx); + if_block_1.c(); + if_block_1.m(div_1, text_2); + } + } else if (if_block_1) { + if_block_1.d(1); + if_block_1 = null; + } + + if (ctx.text !== false) { + if (if_block_2) { + if_block_2.p(changed, ctx); + } else { + if_block_2 = create_if_block_4(component, ctx); + if_block_2.c(); + if_block_2.m(div_1, text_3); + } + } else if (if_block_2) { + if_block_2.d(1); + if_block_2 = null; + } + + var each_value_1 = ctx._modulesAppendContainer; + each_1_blocks_1 = updateKeyedEach(each_1_blocks_1, component, changed, get_key_1, 0, ctx, each_value_1, each_1_lookup, div_1, destroyBlock, create_each_block_1, "m", null, get_each_1_context); + + if ((changed._styles || changed.type || changed.cornerClass || changed.shadow) && div_1_class_value !== (div_1_class_value = "\n ui-pnotify-container\n " + (ctx._styles.container ? ctx._styles.container : '') + "\n " + (ctx._styles[ctx.type] ? ctx._styles[ctx.type] : '') + "\n " + ctx.cornerClass + "\n " + (ctx.shadow ? 'ui-pnotify-shadow' : '') + "\n ")) { + div_1.className = div_1_class_value; + } + + if ((changed._widthStyle || changed._minHeightStyle) && div_1_style_value !== (div_1_style_value = "" + ctx._widthStyle + " " + ctx._minHeightStyle)) { + div_1.style.cssText = div_1_style_value; + } + + if ((changed.icon || changed._styles || changed.addClass || changed._animatingClass || changed._moveClass || changed.animation || changed.animateSpeed || changed.stack || changed._moduleClasses) && div_class_value !== (div_class_value = "\n ui-pnotify\n " + (ctx.icon !== false ? 'ui-pnotify-with-icon' : '') + "\n " + (ctx._styles.element ? ctx._styles.element : '') + "\n " + ctx.addClass + "\n " + ctx._animatingClass + "\n " + ctx._moveClass + "\n " + (ctx.animation === 'fade' ? 'ui-pnotify-fade-' + ctx.animateSpeed : '') + "\n " + (ctx.stack && ctx.stack.modal ? 'ui-pnotify-modal' : '') + "\n " + ctx._moduleClasses.join(' ') + "\n ")) { + div.className = div_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(div); + } + + for (i = 0; i < each_blocks_1.length; i += 1) { + each_blocks_1[i].d(); + }if (if_block) if_block.d(); + if (if_block_1) if_block_1.d(); + if (if_block_2) if_block_2.d(); + + for (i = 0; i < each_1_blocks_1.length; i += 1) { + each_1_blocks_1[i].d(); + }if (component.refs.container === div_1) component.refs.container = null; + removeListener(div, "mouseover", mouseover_handler); + removeListener(div, "mouseout", mouseout_handler); + removeListener(div, "mouseenter", mouseenter_handler); + removeListener(div, "mouseleave", mouseleave_handler); + removeListener(div, "mousemove", mousemove_handler); + removeListener(div, "mousedown", mousedown_handler); + removeListener(div, "mouseup", mouseup_handler); + removeListener(div, "click", click_handler); + removeListener(div, "dblclick", dblclick_handler); + removeListener(div, "focus", focus_handler); + removeListener(div, "blur", blur_handler); + removeListener(div, "touchstart", touchstart_handler); + removeListener(div, "touchmove", touchmove_handler); + removeListener(div, "touchend", touchend_handler); + removeListener(div, "touchcancel", touchcancel_handler); + if (component.refs.elem === div) component.refs.elem = null; + } + }; + } + + // (53:4) {#each _modulesPrependContainer as module (module.key)} + function create_each_block(component, key_1, ctx) { + var first, switch_instance_anchor; + + var switch_value = ctx.module; + + function switch_props(ctx) { + return { + root: component.root + }; + } + + if (switch_value) { + var switch_instance = new switch_value(switch_props(ctx)); + } + + function switch_instance_init(event) { + component.initModule(event.module); + } + + if (switch_instance) switch_instance.on("init", switch_instance_init); + + return { + key: key_1, + + first: null, + + c: function c() { + first = createComment(); + switch_instance_anchor = createComment(); + if (switch_instance) switch_instance._fragment.c(); + this.first = first; + }, + m: function m(target, anchor) { + insertNode(first, target, anchor); + insertNode(switch_instance_anchor, target, anchor); + + if (switch_instance) { + switch_instance._mount(target, anchor); + } + }, + d: function d(detach) { + if (detach) { + detachNode(first); + detachNode(switch_instance_anchor); + } + + if (switch_instance) switch_instance.destroy(detach); + } + }; + } + + // (56:4) {#if icon !== false} + function create_if_block(component, ctx) { + var div, span, span_class_value, div_class_value; + + return { + c: function c() { + div = createElement("div"); + span = createElement("span"); + span.className = span_class_value = ctx.icon === true ? ctx._icons[ctx.type] ? ctx._icons[ctx.type] : '' : ctx.icon; + div.className = div_class_value = "ui-pnotify-icon " + (ctx._styles.icon ? ctx._styles.icon : ''); + }, + m: function m(target, anchor) { + insertNode(div, target, anchor); + appendNode(span, div); + component.refs.iconContainer = div; + }, + p: function p(changed, ctx) { + if ((changed.icon || changed._icons || changed.type) && span_class_value !== (span_class_value = ctx.icon === true ? ctx._icons[ctx.type] ? ctx._icons[ctx.type] : '' : ctx.icon)) { + span.className = span_class_value; + } + + if (changed._styles && div_class_value !== (div_class_value = "ui-pnotify-icon " + (ctx._styles.icon ? ctx._styles.icon : ''))) { + div.className = div_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(div); + } + + if (component.refs.iconContainer === div) component.refs.iconContainer = null; + } + }; + } + + // (63:8) {#if titleTrusted} + function create_if_block_2(component, ctx) { + var raw_before, raw_after; + + return { + c: function c() { + raw_before = createElement('noscript'); + raw_after = createElement('noscript'); + }, + m: function m(target, anchor) { + insertNode(raw_before, target, anchor); + raw_before.insertAdjacentHTML("afterend", ctx.title); + insertNode(raw_after, target, anchor); + }, + p: function p(changed, ctx) { + if (changed.title) { + detachBetween(raw_before, raw_after); + raw_before.insertAdjacentHTML("afterend", ctx.title); + } + }, + d: function d(detach) { + if (detach) { + detachBetween(raw_before, raw_after); + detachNode(raw_before); + detachNode(raw_after); + } + } + }; + } + + // (65:8) {:else} + function create_if_block_3(component, ctx) { + var text; + + return { + c: function c() { + text = createText(ctx.title); + }, + m: function m(target, anchor) { + insertNode(text, target, anchor); + }, + p: function p(changed, ctx) { + if (changed.title) { + text.data = ctx.title; + } + }, + d: function d(detach) { + if (detach) { + detachNode(text); + } + } + }; + } + + // (61:4) {#if title !== false} + function create_if_block_1(component, ctx) { + var h4, h4_class_value; + + function select_block_type(ctx) { + if (ctx.titleTrusted) return create_if_block_2; + return create_if_block_3; + } + + var current_block_type = select_block_type(ctx); + var if_block = current_block_type(component, ctx); + + return { + c: function c() { + h4 = createElement("h4"); + if_block.c(); + h4.className = h4_class_value = "ui-pnotify-title " + (ctx._styles.title ? ctx._styles.title : ''); + }, + m: function m(target, anchor) { + insertNode(h4, target, anchor); + if_block.m(h4, null); + component.refs.titleContainer = h4; + }, + p: function p(changed, ctx) { + if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) { + if_block.p(changed, ctx); + } else { + if_block.d(1); + if_block = current_block_type(component, ctx); + if_block.c(); + if_block.m(h4, null); + } + + if (changed._styles && h4_class_value !== (h4_class_value = "ui-pnotify-title " + (ctx._styles.title ? ctx._styles.title : ''))) { + h4.className = h4_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(h4); + } + + if_block.d(); + if (component.refs.titleContainer === h4) component.refs.titleContainer = null; + } + }; + } + + // (72:8) {#if textTrusted} + function create_if_block_5(component, ctx) { + var raw_before, raw_after; + + return { + c: function c() { + raw_before = createElement('noscript'); + raw_after = createElement('noscript'); + }, + m: function m(target, anchor) { + insertNode(raw_before, target, anchor); + raw_before.insertAdjacentHTML("afterend", ctx.text); + insertNode(raw_after, target, anchor); + }, + p: function p(changed, ctx) { + if (changed.text) { + detachBetween(raw_before, raw_after); + raw_before.insertAdjacentHTML("afterend", ctx.text); + } + }, + d: function d(detach) { + if (detach) { + detachBetween(raw_before, raw_after); + detachNode(raw_before); + detachNode(raw_after); + } + } + }; + } + + // (74:8) {:else} + function create_if_block_6(component, ctx) { + var text; + + return { + c: function c() { + text = createText(ctx.text); + }, + m: function m(target, anchor) { + insertNode(text, target, anchor); + }, + p: function p(changed, ctx) { + if (changed.text) { + text.data = ctx.text; + } + }, + d: function d(detach) { + if (detach) { + detachNode(text); + } + } + }; + } + + // (70:4) {#if text !== false} + function create_if_block_4(component, ctx) { + var div, div_class_value; + + function select_block_type_1(ctx) { + if (ctx.textTrusted) return create_if_block_5; + return create_if_block_6; + } + + var current_block_type = select_block_type_1(ctx); + var if_block = current_block_type(component, ctx); + + return { + c: function c() { + div = createElement("div"); + if_block.c(); + div.className = div_class_value = "ui-pnotify-text " + (ctx._styles.text ? ctx._styles.text : ''); + setAttribute(div, "role", "alert"); + }, + m: function m(target, anchor) { + insertNode(div, target, anchor); + if_block.m(div, null); + component.refs.textContainer = div; + }, + p: function p(changed, ctx) { + if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block) { + if_block.p(changed, ctx); + } else { + if_block.d(1); + if_block = current_block_type(component, ctx); + if_block.c(); + if_block.m(div, null); + } + + if (changed._styles && div_class_value !== (div_class_value = "ui-pnotify-text " + (ctx._styles.text ? ctx._styles.text : ''))) { + div.className = div_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(div); + } + + if_block.d(); + if (component.refs.textContainer === div) component.refs.textContainer = null; + } + }; + } + + // (79:4) {#each _modulesAppendContainer as module (module.key)} + function create_each_block_1(component, key_1, ctx) { + var first, switch_instance_anchor; + + var switch_value = ctx.module; + + function switch_props(ctx) { + return { + root: component.root + }; + } + + if (switch_value) { + var switch_instance = new switch_value(switch_props(ctx)); + } + + function switch_instance_init(event) { + component.initModule(event.module); + } + + if (switch_instance) switch_instance.on("init", switch_instance_init); + + return { + key: key_1, + + first: null, + + c: function c() { + first = createComment(); + switch_instance_anchor = createComment(); + if (switch_instance) switch_instance._fragment.c(); + this.first = first; + }, + m: function m(target, anchor) { + insertNode(first, target, anchor); + insertNode(switch_instance_anchor, target, anchor); + + if (switch_instance) { + switch_instance._mount(target, anchor); + } + }, + d: function d(detach) { + if (detach) { + detachNode(first); + detachNode(switch_instance_anchor); + } + + if (switch_instance) switch_instance.destroy(detach); + } + }; + } + + function get_each_context(ctx, list, i) { + var child_ctx = Object.create(ctx); + child_ctx.module = list[i]; + child_ctx.each_value = list; + child_ctx.module_index = i; + return child_ctx; + } + + function get_each_1_context(ctx, list, i) { + var child_ctx = Object.create(ctx); + child_ctx.module = list[i]; + child_ctx.each_value_1 = list; + child_ctx.module_index_1 = i; + return child_ctx; + } + + function PNotify_1(options) { + var _this7 = this; + + init(this, options); + this.refs = {}; + this._state = assign(data(), options.data); + this._recompute({ styling: 1, icons: 1, width: 1, minHeight: 1 }, this._state); + this._intro = true; + + if (!document.getElementById("svelte-1eldsjg-style")) add_css(); + + if (!options.root) { + this._oncreate = []; + this._beforecreate = []; + this._aftercreate = []; + } + + this._fragment = create_main_fragment(this, this._state); + + this.root._oncreate.push(function () { + oncreate.call(_this7); + _this7.fire("update", { changed: assignTrue({}, _this7._state), current: _this7._state }); + }); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + + this._lock = true; + callAll(this._beforecreate); + callAll(this._oncreate); + callAll(this._aftercreate); + this._lock = false; + } + } + + assign(PNotify_1.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotify_1.prototype, methods); + + PNotify_1.prototype._recompute = function _recompute(changed, state) { + if (changed.styling) { + if (this._differs(state._styles, state._styles = _styles(state))) changed._styles = true; + } + + if (changed.icons) { + if (this._differs(state._icons, state._icons = _icons(state))) changed._icons = true; + } + + if (changed.width) { + if (this._differs(state._widthStyle, state._widthStyle = _widthStyle(state))) changed._widthStyle = true; + } + + if (changed.minHeight) { + if (this._differs(state._minHeightStyle, state._minHeightStyle = _minHeightStyle(state))) changed._minHeightStyle = true; + } + }; + + setup(PNotify_1); + + function createElement(name) { + return document.createElement(name); + } + + function appendNode(node, target) { + target.appendChild(node); + } + + function blankObject() { + return Object.create(null); + } + + function createText(data) { + return document.createTextNode(data); + } + + function setAttribute(node, attribute, value) { + node.setAttribute(attribute, value); + } + + function addListener(node, event, handler) { + node.addEventListener(event, handler, false); + } + + function insertNode(node, target, anchor) { + target.insertBefore(node, anchor); + } + + function updateKeyedEach(old_blocks, component, changed, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, intro_method, next, get_context) { + var o = old_blocks.length; + var n = list.length; + + var i = o; + var old_indexes = {}; + while (i--) { + old_indexes[old_blocks[i].key] = i; + }var new_blocks = []; + var new_lookup = {}; + var deltas = {}; + + var i = n; + while (i--) { + var child_ctx = get_context(ctx, list, i); + var key = get_key(child_ctx); + var block = lookup[key]; + + if (!block) { + block = create_each_block(component, key, child_ctx); + block.c(); + } else if (dynamic) { + block.p(changed, child_ctx); + } + + new_blocks[i] = new_lookup[key] = block; + + if (key in old_indexes) deltas[key] = Math.abs(i - old_indexes[key]); + } + + var will_move = {}; + var did_move = {}; + + function insert(block) { + block[intro_method](node, next); + lookup[block.key] = block; + next = block.first; + n--; + } + + while (o && n) { + var new_block = new_blocks[n - 1]; + var old_block = old_blocks[o - 1]; + var new_key = new_block.key; + var old_key = old_block.key; + + if (new_block === old_block) { + // do nothing + next = new_block.first; + o--; + n--; + } else if (!new_lookup[old_key]) { + // remove old block + destroy(old_block, lookup); + o--; + } else if (!lookup[new_key] || will_move[new_key]) { + insert(new_block); + } else if (did_move[old_key]) { + o--; + } else if (deltas[new_key] > deltas[old_key]) { + did_move[new_key] = true; + insert(new_block); + } else { + will_move[old_key] = true; + o--; + } + } + + while (o--) { + var old_block = old_blocks[o]; + if (!new_lookup[old_block.key]) destroy(old_block, lookup); + } + + while (n) { + insert(new_blocks[n - 1]); + }return new_blocks; + } + + function destroyBlock(block, lookup) { + block.d(1); + lookup[block.key] = null; + } + + function detachNode(node) { + node.parentNode.removeChild(node); + } + + function removeListener(node, event, handler) { + node.removeEventListener(event, handler, false); + } + + function createComment() { + return document.createComment(''); + } + + function detachBetween(before, after) { + while (before.nextSibling && before.nextSibling !== after) { + before.parentNode.removeChild(before.nextSibling); + } + } + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function assignTrue(tar, src) { + for (var k in src) { + tar[k] = 1; + }return tar; + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === 'undefined' ? 'undefined' : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function noop() {} + return PNotify_1; +}(); +//# sourceMappingURL=PNotify.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotify.js.map b/app/node_modules/pnotify/lib/iife/PNotify.js.map new file mode 100644 index 00000000..c098e116 --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotify.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotify.html"],"names":[],"mappings":";;;;;;;;AAqFE,MAAI,gBAAJ;;AAEA,MAAI,iBAAJ,C,CAAa;;AAEb;AACA,MAAI,mBAAmB,SAAnB,gBAAmB,GAAM;AAC3B,YAAQ,YAAR,CAAqB,OAArB,GAA+B,SAAS,IAAxC;AACF;AACE,WAAO,gBAAP,CAAwB,QAAxB,EAAkC,YAAM;AACtC,UAAI,QAAJ,EAAc;AACZ,qBAAa,QAAb;AACD;AACD,iBAAW,WAAW,YAAM;AAC1B,gBAAQ,WAAR;AACD,OAFU,EAER,EAFQ,CAAX;AAGD,KAPD;AAQD,GAXD;;AAaA;AACA,MAAI,qBAAqB,SAArB,kBAAqB,CAAC,KAAD,EAAW;AAClC,QAAM,UAAU,SAAS,aAAT,CAAuB,KAAvB,CAAhB;AACA,YAAQ,SAAR,CAAkB,GAAlB,CAAsB,0BAAtB;AACA,QAAI,MAAM,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KAAS,I,GAAO,IAAC,MAAD,CAAO,IAAC,IAAR,IAAa,IAAG,MAAH,CAAS,IAAC,IAAV,CAAb,GAA+B,E,GAAG,IAAG,I,GAAI;;;;gGAD1B,O,CAAQ,I,GAAI,IAAG,OAAH,CAAW,I,GAAO,E,IAAE;;;;;;;;;;;;;;;;;;;;;;;;;sDAOpE,K;;;;;;wDAAA,K;;;;;;;;;;;;;;;;;;;8BAEN,K;;;;;;;0BAAA,K;;;;;;;;;;;;;;;;cAHE,Y,EAAY,OAAA,iBAAA;;;;;;;;;;;mEAD6B,O,CAAQ,K,GAAK,IAAG,OAAH,CAAW,K,GAAQ,E;;;;;;;;;;;;;;;;;+FAAhC,O,CAAQ,K,GAAK,IAAG,OAAH,CAAW,K,GAAQ,E,IAAE;;;;;;;;;;;;;;;;;;;;;;;;;;sDAWvE,I;;;;;;wDAAA,I;;;;;;;;;;;;;;;;;;;8BAEN,I;;;;;;;0BAAA,I;;;;;;;;;;;;;;;;cAHE,W,EAAW,OAAA,iBAAA;;;;;;;;;;;oEAD6B,O,CAAQ,I,GAAI,IAAG,OAAH,CAAW,I,GAAO,E;;;;;;;;;;;;;;;;;;gGAA9B,O,CAAQ,I,GAAI,IAAG,OAAH,CAAW,I,GAAO,E,IAAE;;;;;;;;;;;;;;;;;;;2BASvD,M;;;;;;;;;;;;;gBAAiB,U,CAAW,MAAM,M","sourcesContent":["\n\n
\n
\n {#each _modulesPrependContainer as module (module.key)}\n \n {/each}\n {#if icon !== false}\n
\n \n
\n {/if}\n {#if title !== false}\n

\n {#if titleTrusted}\n {@html title}\n {:else}\n {title}\n {/if}\n

\n {/if}\n {#if text !== false}\n
\n {#if textTrusted}\n {@html text}\n {:else}\n {text}\n {/if}\n
\n {/if}\n {#each _modulesAppendContainer as module (module.key)}\n \n {/each}\n
\n
\n\n\n\n\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyAnimate.js b/app/node_modules/pnotify/lib/iife/PNotifyAnimate.js new file mode 100644 index 00000000..23bd6270 --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyAnimate.js @@ -0,0 +1,312 @@ +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +/* src/PNotifyAnimate.html generated by Svelte v2.6.3 */ +var PNotifyAnimate = function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.Animate.defaults); + }; + + var methods = { + initModule: function initModule(options) { + this.set(options); + this.setUpAnimations(); + }, + update: function update() { + this.setUpAnimations(); + }, + setUpAnimations: function setUpAnimations() { + var _get = this.get(), + _notice = _get._notice, + _options = _get._options, + animate = _get.animate; + + if (animate) { + _notice.set({ 'animation': 'none' }); + if (!_notice._animateIn) { + _notice._animateIn = _notice.animateIn; + } + if (!_notice._animateOut) { + _notice._animateOut = _notice.animateOut; + } + _notice.animateIn = this.animateIn.bind(this); + _notice.animateOut = this.animateOut.bind(this); + var animSpeed = 250; + if (_options.animateSpeed === 'slow') { + animSpeed = 400; + } else if (_options.animateSpeed === 'fast') { + animSpeed = 100; + } else if (_options.animateSpeed > 0) { + animSpeed = _options.animateSpeed; + } + animSpeed = animSpeed / 1000; + _notice.refs.elem.style.WebkitAnimationDuration = animSpeed + 's'; + _notice.refs.elem.style.MozAnimationDuration = animSpeed + 's'; + _notice.refs.elem.style.animationDuration = animSpeed + 's'; + } else if (_notice._animateIn && _notice._animateOut) { + _notice.animateIn = _notice._animateIn; + delete _notice._animateIn; + _notice.animateOut = _notice._animateOut; + delete _notice._animateOut; + } + }, + animateIn: function animateIn(callback) { + var _get2 = this.get(), + _notice = _get2._notice; + // Declare that the notice is animating in. + + + _notice.set({ '_animating': 'in' }); + + var finished = function finished() { + _notice.refs.elem.removeEventListener('webkitAnimationEnd', finished); + _notice.refs.elem.removeEventListener('mozAnimationEnd', finished); + _notice.refs.elem.removeEventListener('MSAnimationEnd', finished); + _notice.refs.elem.removeEventListener('oanimationend', finished); + _notice.refs.elem.removeEventListener('animationend', finished); + _notice.set({ '_animatingClass': 'ui-pnotify-in animated' }); + if (callback) { + callback.call(); + } + // Declare that the notice has completed animating. + _notice.set({ '_animating': false }); + }; + + _notice.refs.elem.addEventListener('webkitAnimationEnd', finished); + _notice.refs.elem.addEventListener('mozAnimationEnd', finished); + _notice.refs.elem.addEventListener('MSAnimationEnd', finished); + _notice.refs.elem.addEventListener('oanimationend', finished); + _notice.refs.elem.addEventListener('animationend', finished); + _notice.set({ '_animatingClass': 'ui-pnotify-in animated ' + this.get().inClass }); + }, + animateOut: function animateOut(callback) { + var _get3 = this.get(), + _notice = _get3._notice; + // Declare that the notice is animating out. + + + _notice.set({ '_animating': 'out' }); + + var finished = function finished() { + _notice.refs.elem.removeEventListener('webkitAnimationEnd', finished); + _notice.refs.elem.removeEventListener('mozAnimationEnd', finished); + _notice.refs.elem.removeEventListener('MSAnimationEnd', finished); + _notice.refs.elem.removeEventListener('oanimationend', finished); + _notice.refs.elem.removeEventListener('animationend', finished); + _notice.set({ '_animatingClass': 'animated' }); + if (callback) { + callback.call(); + } + // Declare that the notice has completed animating. + _notice.set({ '_animating': false }); + }; + + _notice.refs.elem.addEventListener('webkitAnimationEnd', finished); + _notice.refs.elem.addEventListener('mozAnimationEnd', finished); + _notice.refs.elem.addEventListener('MSAnimationEnd', finished); + _notice.refs.elem.addEventListener('oanimationend', finished); + _notice.refs.elem.addEventListener('animationend', finished); + _notice.set({ '_animatingClass': 'ui-pnotify-in animated ' + this.get().outClass }); + } + }; + + function setup(Component) { + Component.key = 'Animate'; + + Component.defaults = { + // Use animate.css to animate the notice. + animate: false, + // The class to use to animate the notice in. + inClass: '', + // The class to use to animate the notice out. + outClass: '' + }; + + Component.init = function (notice) { + notice.attention = function (aniClass, callback) { + var cb = function cb() { + notice.refs.container.removeEventListener('webkitAnimationEnd', cb); + notice.refs.container.removeEventListener('mozAnimationEnd', cb); + notice.refs.container.removeEventListener('MSAnimationEnd', cb); + notice.refs.container.removeEventListener('oanimationend', cb); + notice.refs.container.removeEventListener('animationend', cb); + notice.refs.container.classList.remove(aniClass); + if (callback) { + callback.call(notice); + } + }; + notice.refs.container.addEventListener('webkitAnimationEnd', cb); + notice.refs.container.addEventListener('mozAnimationEnd', cb); + notice.refs.container.addEventListener('MSAnimationEnd', cb); + notice.refs.container.addEventListener('oanimationend', cb); + notice.refs.container.addEventListener('animationend', cb); + notice.refs.container.classList.add('animated'); + notice.refs.container.classList.add(aniClass); + }; + + return new Component({ target: document.body }); + }; + + // Register the module with PNotify. + PNotify.modules.Animate = Component; + }; + + function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; + } + + function PNotifyAnimate(options) { + init(this, options); + this._state = assign(data(), options.data); + this._intro = true; + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } + } + + assign(PNotifyAnimate.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyAnimate.prototype, methods); + + PNotifyAnimate.prototype._recompute = noop; + + setup(PNotifyAnimate); + + function noop() {} + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + return PNotifyAnimate; +}(PNotify); +//# sourceMappingURL=PNotifyAnimate.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyAnimate.js.map b/app/node_modules/pnotify/lib/iife/PNotifyAnimate.js.map new file mode 100644 index 00000000..3527e360 --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyAnimate.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyAnimate.html"],"names":[],"mappings":";;;;;;;;;;WA6CS,I,GAAG;AACN,WA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AAO,IAAP,CAAY,SAAZ,CAAsB,gBAAtB,CAAuC,gBAAvC,EAAyD,EAAzD;AACA,eAAO,IAAP,CAAY,SAAZ,CAAsB,gBAAtB,CAAuC,eAAvC,EAAwD,EAAxD;AACA,eAAO,IAAP,CAAY,SAAZ,CAAsB,gBAAtB,CAAuC,cAAvC,EAAuD,EAAvD;AACA,eAAO,IAAP,CAAY,SAAZ,CAAsB,SAAtB,CAAgC,GAAhC,CAAoC,UAApC;AACA,eAAO,IAAP,CAAY,SAAZ,CAAsB,SAAtB,CAAgC,GAAhC,CAAoC,QAApC;AACD,OAnBD;;AAqBA,aAAO,IAAI,SAAJ,CAAc,EAAC,QAAQ,SAAS,IAAlB,EAAd,CAAP;AACD,KAvBD;;AAyBF;AACE,YAAQ,OAAR,CAAgB,OAAhB,GAA0B,SAA1B;AACD","sourcesContent":["\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyButtons.js b/app/node_modules/pnotify/lib/iife/PNotifyButtons.js new file mode 100644 index 00000000..5c130f1f --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyButtons.js @@ -0,0 +1,538 @@ +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +/* src/PNotifyButtons.html generated by Svelte v2.6.3 */ +var PNotifyButtons = function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function _showSticker(_ref) { + var sticker = _ref.sticker, + _notice = _ref._notice; + + return sticker && !(_notice && _notice.refs.elem.classList.contains('nonblock')); + } + + function _showCloser(_ref2) { + var closer = _ref2.closer, + _notice = _ref2._notice; + + return closer && !(_notice && _notice.refs.elem.classList.contains('nonblock')); + } + + function _pinUpClass(_ref3) { + var classes = _ref3.classes, + _notice = _ref3._notice; + + return _notice ? classes.pinUp === null ? _notice.get()._icons.pinUp : classes.pinUp : ''; + } + + function _pinDownClass(_ref4) { + var classes = _ref4.classes, + _notice = _ref4._notice; + + return _notice ? classes.pinDown === null ? _notice.get()._icons.pinDown : classes.pinDown : ''; + } + + function _closerClass(_ref5) { + var classes = _ref5.classes, + _notice = _ref5._notice; + + return _notice ? classes.closer === null ? _notice.get()._icons.closer : classes.closer : ''; + } + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {}, // The options for the notice. + '_mouseIsIn': false + }, PNotify.modules.Buttons.defaults); + }; + + var methods = { + initModule: function initModule(options) { + var _this = this; + + this.set(options); + + var _get = this.get(), + _notice = _get._notice; + + _notice.on('mouseenter', function () { + return _this.set({ '_mouseIsIn': true }); + }); + _notice.on('mouseleave', function () { + return _this.set({ '_mouseIsIn': false }); + }); + _notice.on('state', function (_ref6) { + var changed = _ref6.changed, + current = _ref6.current; + + if (!changed.hide) { + return; + } + + var _get2 = _this.get(), + sticker = _get2.sticker; + + if (!sticker) { + return; + } + + // Font Awesome 5 replaces our lovely element with a gross SVG. In + // order to make it play nice with Svelte, we have to clear the + // element and make it again. + var icon = current.hide ? _this.get().classes.pinUp : _this.get().classes.pinDown; + if (_this.get()._notice.get().icons === 'fontawesome5' || typeof icon === 'string' && icon.match(/(^| )fa[srlb]($| )/)) { + _this.set({ 'sticker': false }); + _this.set({ 'sticker': true }); + } + }); + }, + handleStickerClick: function handleStickerClick() { + var _get3 = this.get(), + _notice = _get3._notice; + + _notice.update({ hide: !_notice.get().hide }); + }, + handleCloserClick: function handleCloserClick() { + this.get()._notice.close(false); + this.set({ '_mouseIsIn': false }); + } + }; + + function oncreate() { + this.fire('init', { module: this }); + }; + + function setup(Component) { + Component.key = 'Buttons'; + + Component.defaults = { + // Provide a button for the user to manually close the notice. + closer: true, + // Only show the closer button on hover. + closerHover: true, + // Provide a button for the user to manually stick the notice. + sticker: true, + // Only show the sticker button on hover. + stickerHover: true, + // The various displayed text, helps facilitating internationalization. + labels: { + close: 'Close', + stick: 'Stick', + unstick: 'Unstick' + }, + // The classes to use for button icons. Leave them null to use the classes from the styling you're using. + classes: { + closer: null, + pinUp: null, + pinDown: null + } + }; + + // Register the module with PNotify. + PNotify.modules.Buttons = Component; + // Prepend this module to the container. + PNotify.modulesPrependContainer.push(Component); + + // Add button icons to icons objects. + _extends(PNotify.icons.brighttheme, { + closer: 'brighttheme-icon-closer', + pinUp: 'brighttheme-icon-sticker', + pinDown: 'brighttheme-icon-sticker brighttheme-icon-stuck' + }); + _extends(PNotify.icons.bootstrap3, { + closer: 'glyphicon glyphicon-remove', + pinUp: 'glyphicon glyphicon-pause', + pinDown: 'glyphicon glyphicon-play' + }); + _extends(PNotify.icons.fontawesome4, { + closer: 'fa fa-times', + pinUp: 'fa fa-pause', + pinDown: 'fa fa-play' + }); + _extends(PNotify.icons.fontawesome5, { + closer: 'fas fa-times', + pinUp: 'fas fa-pause', + pinDown: 'fas fa-play' + }); + }; + + function add_css() { + var style = createElement("style"); + style.id = 'svelte-1yjle82-style'; + style.textContent = ".ui-pnotify-closer.svelte-1yjle82,.ui-pnotify-sticker.svelte-1yjle82{float:right;margin-left:.5em;cursor:pointer}[dir=rtl] .ui-pnotify-closer,[dir=rtl] .ui-pnotify-sticker{float:left;margin-right:.5em;margin-left:0}.ui-pnotify-buttons-hidden.svelte-1yjle82{visibility:hidden}"; + appendNode(style, document.head); + } + + function create_main_fragment(component, ctx) { + var text, if_block_1_anchor; + + var if_block = ctx._showCloser && create_if_block(component, ctx); + + var if_block_1 = ctx._showSticker && create_if_block_1(component, ctx); + + return { + c: function c() { + if (if_block) if_block.c(); + text = createText("\n"); + if (if_block_1) if_block_1.c(); + if_block_1_anchor = createComment(); + }, + m: function m(target, anchor) { + if (if_block) if_block.m(target, anchor); + insertNode(text, target, anchor); + if (if_block_1) if_block_1.m(target, anchor); + insertNode(if_block_1_anchor, target, anchor); + }, + p: function p(changed, ctx) { + if (ctx._showCloser) { + if (if_block) { + if_block.p(changed, ctx); + } else { + if_block = create_if_block(component, ctx); + if_block.c(); + if_block.m(text.parentNode, text); + } + } else if (if_block) { + if_block.d(1); + if_block = null; + } + + if (ctx._showSticker) { + if (if_block_1) { + if_block_1.p(changed, ctx); + } else { + if_block_1 = create_if_block_1(component, ctx); + if_block_1.c(); + if_block_1.m(if_block_1_anchor.parentNode, if_block_1_anchor); + } + } else if (if_block_1) { + if_block_1.d(1); + if_block_1 = null; + } + }, + d: function d(detach) { + if (if_block) if_block.d(detach); + if (detach) { + detachNode(text); + } + + if (if_block_1) if_block_1.d(detach); + if (detach) { + detachNode(if_block_1_anchor); + } + } + }; + } + + // (1:0) {#if _showCloser} + function create_if_block(component, ctx) { + var div, span, div_class_value, div_title_value; + + function click_handler(event) { + component.handleCloserClick(); + } + + return { + c: function c() { + div = createElement("div"); + span = createElement("span"); + span.className = "" + ctx._closerClass + " svelte-1yjle82"; + addListener(div, "click", click_handler); + div.className = div_class_value = "ui-pnotify-closer " + (!ctx.closerHover || ctx._mouseIsIn ? '' : 'ui-pnotify-buttons-hidden') + " svelte-1yjle82"; + setAttribute(div, "role", "button"); + div.tabIndex = "0"; + div.title = div_title_value = ctx.labels.close; + }, + m: function m(target, anchor) { + insertNode(div, target, anchor); + appendNode(span, div); + }, + p: function p(changed, ctx) { + if (changed._closerClass) { + span.className = "" + ctx._closerClass + " svelte-1yjle82"; + } + + if ((changed.closerHover || changed._mouseIsIn) && div_class_value !== (div_class_value = "ui-pnotify-closer " + (!ctx.closerHover || ctx._mouseIsIn ? '' : 'ui-pnotify-buttons-hidden') + " svelte-1yjle82")) { + div.className = div_class_value; + } + + if (changed.labels && div_title_value !== (div_title_value = ctx.labels.close)) { + div.title = div_title_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(div); + } + + removeListener(div, "click", click_handler); + } + }; + } + + // (11:0) {#if _showSticker} + function create_if_block_1(component, ctx) { + var div, span, span_class_value, div_class_value, div_aria_pressed_value, div_title_value; + + function click_handler(event) { + component.handleStickerClick(); + } + + return { + c: function c() { + div = createElement("div"); + span = createElement("span"); + span.className = span_class_value = "" + (ctx._options.hide ? ctx._pinUpClass : ctx._pinDownClass) + " svelte-1yjle82"; + addListener(div, "click", click_handler); + div.className = div_class_value = "ui-pnotify-sticker " + (!ctx.stickerHover || ctx._mouseIsIn ? '' : 'ui-pnotify-buttons-hidden') + " svelte-1yjle82"; + setAttribute(div, "role", "button"); + setAttribute(div, "aria-pressed", div_aria_pressed_value = ctx._options.hide); + div.tabIndex = "0"; + div.title = div_title_value = ctx._options.hide ? ctx.labels.stick : ctx.labels.unstick; + }, + m: function m(target, anchor) { + insertNode(div, target, anchor); + appendNode(span, div); + }, + p: function p(changed, ctx) { + if ((changed._options || changed._pinUpClass || changed._pinDownClass) && span_class_value !== (span_class_value = "" + (ctx._options.hide ? ctx._pinUpClass : ctx._pinDownClass) + " svelte-1yjle82")) { + span.className = span_class_value; + } + + if ((changed.stickerHover || changed._mouseIsIn) && div_class_value !== (div_class_value = "ui-pnotify-sticker " + (!ctx.stickerHover || ctx._mouseIsIn ? '' : 'ui-pnotify-buttons-hidden') + " svelte-1yjle82")) { + div.className = div_class_value; + } + + if (changed._options && div_aria_pressed_value !== (div_aria_pressed_value = ctx._options.hide)) { + setAttribute(div, "aria-pressed", div_aria_pressed_value); + } + + if ((changed._options || changed.labels) && div_title_value !== (div_title_value = ctx._options.hide ? ctx.labels.stick : ctx.labels.unstick)) { + div.title = div_title_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(div); + } + + removeListener(div, "click", click_handler); + } + }; + } + + function PNotifyButtons(options) { + var _this2 = this; + + init(this, options); + this._state = assign(data(), options.data); + this._recompute({ sticker: 1, _notice: 1, closer: 1, classes: 1 }, this._state); + this._intro = true; + + if (!document.getElementById("svelte-1yjle82-style")) add_css(); + + if (!options.root) { + this._oncreate = []; + } + + this._fragment = create_main_fragment(this, this._state); + + this.root._oncreate.push(function () { + oncreate.call(_this2); + _this2.fire("update", { changed: assignTrue({}, _this2._state), current: _this2._state }); + }); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + + callAll(this._oncreate); + } + } + + assign(PNotifyButtons.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyButtons.prototype, methods); + + PNotifyButtons.prototype._recompute = function _recompute(changed, state) { + if (changed.sticker || changed._notice) { + if (this._differs(state._showSticker, state._showSticker = _showSticker(state))) changed._showSticker = true; + } + + if (changed.closer || changed._notice) { + if (this._differs(state._showCloser, state._showCloser = _showCloser(state))) changed._showCloser = true; + } + + if (changed.classes || changed._notice) { + if (this._differs(state._pinUpClass, state._pinUpClass = _pinUpClass(state))) changed._pinUpClass = true; + if (this._differs(state._pinDownClass, state._pinDownClass = _pinDownClass(state))) changed._pinDownClass = true; + if (this._differs(state._closerClass, state._closerClass = _closerClass(state))) changed._closerClass = true; + } + }; + + setup(PNotifyButtons); + + function createElement(name) { + return document.createElement(name); + } + + function appendNode(node, target) { + target.appendChild(node); + } + + function createText(data) { + return document.createTextNode(data); + } + + function createComment() { + return document.createComment(''); + } + + function insertNode(node, target, anchor) { + target.insertBefore(node, anchor); + } + + function detachNode(node) { + node.parentNode.removeChild(node); + } + + function addListener(node, event, handler) { + node.addEventListener(event, handler, false); + } + + function setAttribute(node, attribute, value) { + node.setAttribute(attribute, value); + } + + function removeListener(node, event, handler) { + node.removeEventListener(event, handler, false); + } + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function assignTrue(tar, src) { + for (var k in src) { + tar[k] = 1; + }return tar; + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + + function noop() {} + return PNotifyButtons; +}(PNotify); +//# sourceMappingURL=PNotifyButtons.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyButtons.js.map b/app/node_modules/pnotify/lib/iife/PNotifyButtons.js.map new file mode 100644 index 00000000..ce9e691d --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyButtons.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["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;YAUX,Y,EAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAJD,iB;;;;;;;8BACE,Y,GAAY,iB;;8DALG,CAAA,IAAC,WAAD,IAAY,IAAI,UAAjB,GAA+B,EAA/B,GAAoC,2B,IAA2B,iB;;;sCAGjF,M,CAAO,K;;;;;;;;+BAEH,Y,GAAY,iB;;;sHALG,CAAA,IAAC,WAAD,IAAY,IAAI,UAAjB,GAA+B,EAA/B,GAAoC,2B,IAA2B,iB,GAAA;;;;qEAGjF,M,CAAO,K,GAAK;;;;;;;;;;;;;;;;;;;aAYV,kB;;;;;;;kDACE,Q,CAAS,I,GAAI,IAAG,W,GAAW,IAAG,a,IAAa,iB;;+DAN3B,CAAA,IAAC,YAAD,IAAa,IAAI,UAAlB,GAAgC,EAAhC,GAAqC,2B,IAA2B,iB;;mEAE5E,Q,CAAS,I;;sCAEhB,Q,CAAS,I,GAAI,IAAG,MAAH,CAAU,K,GAAK,IAAG,MAAH,CAAU,O;;;;;;;iIAElC,Q,CAAS,I,GAAI,IAAG,W,GAAW,IAAG,a,IAAa,iB,GAAA;;;;wHAN3B,CAAA,IAAC,YAAD,IAAa,IAAI,UAAlB,GAAgC,EAAhC,GAAqC,2B,IAA2B,iB,GAAA;;;;qFAE5E,Q,CAAS,I,GAAI;;;;2FAEpB,Q,CAAS,I,GAAI,IAAG,MAAH,CAAU,K,GAAK,IAAG,MAAH,CAAU,O,GAAO","sourcesContent":["{#if _showCloser}\n \n \n
\n{/if}\n{#if _showSticker}\n \n \n \n{/if}\n\n\n\n\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyCallbacks.js b/app/node_modules/pnotify/lib/iife/PNotifyCallbacks.js new file mode 100644 index 00000000..6e8a810a --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyCallbacks.js @@ -0,0 +1,231 @@ +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +/* src/PNotifyCallbacks.html generated by Svelte v2.6.3 */ +var PNotifyCallbacks = function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + var _open = PNotify.prototype.open; + var _close = PNotify.prototype.close; + + var callbacks = function callbacks(notice, options, name) { + var modules = notice ? notice.get().modules : options.modules; + var cbs = modules && modules.Callbacks ? modules.Callbacks : {}; + return cbs[name] ? cbs[name] : function () { + return true; + }; + }; + + PNotify.prototype.open = function () { + var ret = callbacks(this, null, 'beforeOpen')(this); + if (ret !== false) { + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _open.apply(this, args); + callbacks(this, null, 'afterOpen')(this); + } + }; + + PNotify.prototype.close = function (timerHide) { + var ret = callbacks(this, null, 'beforeClose')(this, timerHide); + if (ret !== false) { + for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + + _close.apply(this, [timerHide].concat(args)); + callbacks(this, null, 'afterClose')(this, timerHide); + } + }; + + function setup(Component) { + Component.key = 'Callbacks'; + + Component.getCallbacks = callbacks; + + var _alert = PNotify.alert; + var _notice = PNotify.notice; + var _info = PNotify.info; + var _success = PNotify.success; + var _error = PNotify.error; + + var init = function init(original, options) { + callbacks(null, options, 'beforeInit')(options); + var notice = original(options); + callbacks(notice, null, 'afterInit')(notice); + return notice; + }; + + PNotify.alert = function (options) { + return init(_alert, options); + }; + PNotify.notice = function (options) { + return init(_notice, options); + }; + PNotify.info = function (options) { + return init(_info, options); + }; + PNotify.success = function (options) { + return init(_success, options); + }; + PNotify.error = function (options) { + return init(_error, options); + }; + + // Register the module with PNotify. + PNotify.modules.Callbacks = Component; + }; + + function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; + } + + function PNotifyCallbacks(options) { + init(this, options); + this._state = assign({}, options.data); + this._intro = true; + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } + } + + assign(PNotifyCallbacks.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + + PNotifyCallbacks.prototype._recompute = noop; + + setup(PNotifyCallbacks); + + function noop() {} + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + return PNotifyCallbacks; +}(PNotify); +//# sourceMappingURL=PNotifyCallbacks.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyCallbacks.js.map b/app/node_modules/pnotify/lib/iife/PNotifyCallbacks.js.map new file mode 100644 index 00000000..d7f290eb --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyCallbacks.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyCallbacks.html"],"names":[],"mappings":";;;;;;;;AAGE,KAAI,QAAQ,QAAQ,SAAR,CAAkB,IAA9B;AACA,KAAI,SAAS,QAAQ,SAAR,CAAkB,KAA/B;;AAEA,KAAM,YAAY,SAAZ,SAAY,CAAC,MAAD,EAAS,OAAT,EAAkB,IAAlB,EAA2B;AAC3C,MAAI,UAAU,SAAS,OAAO,GAAP,GAAa,OAAtB,GAAgC,QAAQ,OAAtD;AACA,MAAI,MAAO,WAAW,QAAQ,SAApB,GAAiC,QAAQ,SAAzC,GAAqD,EAA/D;AACA,SAAO,IAAI,IAAJ,IAAY,IAAI,IAAJ,CAAZ,GAAwB;AAAA,UAAM,IAAN;AAAA,GAA/B;AACD,EAJD;;AAMA,SAAQ,SAAR,CAAkB,IAAlB,GAAyB,YAAmB;AAC1C,MAAI,MAAM,UAAU,IAAV,EAAgB,IAAhB,EAAsB,YAAtB,EAAoC,IAApC,CAAV;AACA,MAAI,QAAQ,KAAZ,EAAmB;AAAA,qCAFiB,IAEjB;AAFiB,QAEjB;AAAA;;AACjB,SAAM,KAAN,CAAY,IAAZ,EAAkB,IAAlB;AACA,aAAU,IAAV,EAAgB,IAAhB,EAAsB,WAAtB,EAA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OAAD,EAAa;AAC7B,UAAO,KAAK,QAAL,EAAe,OAAf,CAAP;AACD,GAFD;AAGA,UAAQ,KAAR,GAAgB,UAAC,OAAD,EAAa;AAC3B,UAAO,KAAK,MAAL,EAAa,OAAb,CAAP;AACD,GAFD;;AAIF;AACE,UAAQ,OAAR,CAAgB,SAAhB,GAA4B,SAA5B;AACD","sourcesContent":["\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyCompat.js b/app/node_modules/pnotify/lib/iife/PNotifyCompat.js new file mode 100644 index 00000000..9a84513a --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyCompat.js @@ -0,0 +1,261 @@ +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get2 = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var PNotify = window.PNotify; + +// Translate v3 options to v4 options. +var translateOptions = function translateOptions(options, module, moduleName) { + // Merge the classic default options. + var newOptions = module ? _extends({}, moduleName ? PNotifyCompat.prototype.options[moduleName] : {}, options) : _extends({}, PNotifyCompat.prototype.options, options); + var translateName = function translateName(badName) { + var goodName = badName; + var underscoreIndex = void 0; + while ((underscoreIndex = goodName.indexOf('_')) !== -1) { + goodName = goodName.slice(0, underscoreIndex) + goodName.slice(underscoreIndex + 1, underscoreIndex + 2).toUpperCase() + goodName.slice(underscoreIndex + 2); + } + return goodName; + }; + + // Translate all options to the new style. + for (var name in newOptions) { + if (newOptions.hasOwnProperty(name) && name.indexOf('_') !== -1) { + var goodName = translateName(name); + newOptions[goodName] = newOptions[name]; + delete newOptions[name]; + } + } + + if (!module) { + // Options that have changed. + if (newOptions.hasOwnProperty('addclass')) { + newOptions.addClass = newOptions.addclass; + delete newOptions.addclass; + } + if (newOptions.hasOwnProperty('cornerclass')) { + newOptions.cornerClass = newOptions.cornerclass; + delete newOptions.cornerClass; + } + if (newOptions.hasOwnProperty('textEscape')) { + newOptions.textTrusted = !newOptions.textEscape; + delete newOptions.textEscape; + } + if (newOptions.hasOwnProperty('titleEscape')) { + newOptions.titleTrusted = !newOptions.titleEscape; + delete newOptions.titleEscape; + } + + // Styling and icons. + if (newOptions.hasOwnProperty('styling')) { + if (newOptions.styling === 'bootstrap3') { + newOptions.icons = 'bootstrap3'; + } else if (newOptions.styling === 'fontawesome') { + newOptions.styling = 'bootstrap3'; + newOptions.icons = 'fontawesome4'; + } + } + + // Stacks. + if (newOptions.hasOwnProperty('stack')) { + if (newOptions.stack.overlay_close) { + newOptions.stack.overlayClose = newOptions.stack.overlay_close; + } + } + + // Translate module options. + newOptions.modules = {}; + if (newOptions.hasOwnProperty('animate')) { + newOptions.modules.Animate = translateOptions(newOptions.animate, true, 'animate'); + delete newOptions.animate; + } + if (newOptions.hasOwnProperty('buttons')) { + newOptions.modules.Buttons = translateOptions(newOptions.buttons, true, 'buttons'); + delete newOptions.buttons; + if (newOptions.modules.Buttons.classes) { + newOptions.modules.Buttons.classes = translateOptions(newOptions.modules.Buttons.classes, true); + } + } + if (newOptions.hasOwnProperty('confirm')) { + newOptions.modules.Confirm = translateOptions(newOptions.confirm, true, 'confirm'); + if (newOptions.modules.Confirm.promptDefault) { + newOptions.modules.Confirm.promptValue = newOptions.modules.Confirm.promptDefault; + delete newOptions.modules.Confirm.promptDefault; + } + delete newOptions.confirm; + } + if (newOptions.hasOwnProperty('desktop')) { + newOptions.modules.Desktop = translateOptions(newOptions.desktop, true, 'desktop'); + delete newOptions.desktop; + } + if (newOptions.hasOwnProperty('history')) { + newOptions.modules.History = translateOptions(newOptions.history, true, 'history'); + delete newOptions.history; + } + if (newOptions.hasOwnProperty('mobile')) { + newOptions.modules.Mobile = translateOptions(newOptions.mobile, true, 'mobile'); + delete newOptions.mobile; + } + if (newOptions.hasOwnProperty('nonblock')) { + newOptions.modules.NonBlock = translateOptions(newOptions.nonblock, true, 'nonblock'); + delete newOptions.nonblock; + } + if (newOptions.hasOwnProperty('reference')) { + newOptions.modules.Reference = translateOptions(newOptions.reference, true, 'reference'); + delete newOptions.reference; + } + if (newOptions.hasOwnProperty('beforeInit')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.beforeInit = newOptions.beforeInit; + delete newOptions.beforeInit; + } + if (newOptions.hasOwnProperty('afterInit')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.afterInit = newOptions.afterInit; + delete newOptions.afterInit; + } + if (newOptions.hasOwnProperty('beforeOpen')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.beforeOpen = newOptions.beforeOpen; + delete newOptions.beforeOpen; + } + if (newOptions.hasOwnProperty('afterOpen')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.afterOpen = newOptions.afterOpen; + delete newOptions.afterOpen; + } + if (newOptions.hasOwnProperty('beforeClose')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.beforeClose = newOptions.beforeClose; + delete newOptions.beforeClose; + } + if (newOptions.hasOwnProperty('afterClose')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.afterClose = newOptions.afterClose; + delete newOptions.afterClose; + } + } + + return newOptions; +}; + +// The compatibility class. + +var PNotifyCompat = function (_PNotify) { + _inherits(PNotifyCompat, _PNotify); + + function PNotifyCompat(options) { + _classCallCheck(this, PNotifyCompat); + + if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) !== 'object') { + options = { 'text': options }; + } + + // These need to be called directly, since we're not using PNotify.alert(). + if (PNotify.modules.Callbacks && options.before_init) { + options.before_init(options); + } + + options = translateOptions(options); + + // Override the get function to return the element like it did in v3. + var _this = _possibleConstructorReturn(this, (PNotifyCompat.__proto__ || Object.getPrototypeOf(PNotifyCompat)).call(this, { target: document.body, data: options })); + + var _get = _this.get; + _this.get = function (option) { + if (option === undefined) { + return _extends(window.jQuery ? window.jQuery(this.refs.elem) : this.refs.elem, _get.call(this)); + } + return _get.call(this, option); + }; + + // Confirm module events. + _this.on('pnotify.confirm', function (e) { + if (window.jQuery) { + window.jQuery(_this.refs.elem).trigger('pnotify.confirm', [_this, e.value]); + } + }); + _this.on('pnotify.cancel', function (e) { + if (window.jQuery) { + window.jQuery(_this.refs.elem).trigger('pnotify.cancel', _this); + } + }); + + if (PNotify.modules.Callbacks) { + PNotify.modules.Callbacks.getCallbacks(_this, null, 'afterInit')(_this); + } + return _this; + } + + _createClass(PNotifyCompat, [{ + key: 'update', + value: function update(options) { + options = translateOptions(options); + return _get2(PNotifyCompat.prototype.__proto__ || Object.getPrototypeOf(PNotifyCompat.prototype), 'update', this).call(this, options); + } + }]); + + return PNotifyCompat; +}(PNotify); + +// Lets you change defaults the old way. + + +PNotifyCompat.prototype.options = { + text_escape: false, + title_escape: false +}; + +// Forward static functions. +PNotifyCompat.reload = function () { + return PNotifyCompat; +}; +PNotifyCompat.removeAll = function () { + return PNotify.removeAll(); +}; +PNotifyCompat.removeStack = function (stack) { + return PNotify.removeStack(stack); +}; +PNotifyCompat.positionAll = function (animate) { + return PNotify.positionAll(animate); +}; + +// Desktop module permission method. +PNotifyCompat.desktop = { + permission: function permission() { + PNotify.modules.Desktop.permission(); + } +}; + +// Old style showLast() in History module. +if (window.jQuery) { + window.jQuery(function () { + window.jQuery(document.body).on('pnotify.history-last', function () { + PNotify.modules.History.showLast(); + }); + }); +} + +window.PNotifyCompat = PNotifyCompat; +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlBOb3RpZnlDb21wYXQuanMiXSwibmFtZXMiOlsiUE5vdGlmeSIsIndpbmRvdyIsInRyYW5zbGF0ZU9wdGlvbnMiLCJvcHRpb25zIiwibW9kdWxlIiwibW9kdWxlTmFtZSIsIm5ld09wdGlvbnMiLCJQTm90aWZ5Q29tcGF0IiwicHJvdG90eXBlIiwidHJhbnNsYXRlTmFtZSIsImJhZE5hbWUiLCJnb29kTmFtZSIsInVuZGVyc2NvcmVJbmRleCIsImluZGV4T2YiLCJzbGljZSIsInRvVXBwZXJDYXNlIiwibmFtZSIsImhhc093blByb3BlcnR5IiwiYWRkQ2xhc3MiLCJhZGRjbGFzcyIsImN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0bGVfZXNjYXBlOiBmYWxzZVxufTtcblxuLy8gRm9yd2FyZCBzdGF0aWMgZnVuY3Rpb25zLlxuUE5vdGlmeUNvbXBhdC5yZWxvYWQgPSAoKSA9PiBQTm90aWZ5Q29tcGF0O1xuUE5vdGlmeUNvbXBhdC5yZW1vdmVBbGwgPSAoKSA9PiBQTm90aWZ5LnJlbW92ZUFsbCgpO1xuUE5vdGlmeUNvbXBhdC5yZW1vdmVTdGFjayA9IChzdGFjaykgPT4gUE5vdGlmeS5yZW1vdmVTdGFjayhzdGFjayk7XG5QTm90aWZ5Q29tcGF0LnBvc2l0aW9uQWxsID0gKGFuaW1hdGUpID0+IFBOb3RpZnkucG9zaXRpb25BbGwoYW5pbWF0ZSk7XG5cbi8vIERlc2t0b3AgbW9kdWxlIHBlcm1pc3Npb24gbWV0aG9kLlxuUE5vdGlmeUNvbXBhdC5kZXNrdG9wID0ge1xuICBwZXJtaXNzaW9uOiAoKSA9PiB7XG4gICAgUE5vdGlmeS5tb2R1bGVzLkRlc2t0b3AucGVybWlzc2lvbigpO1xuICB9XG59O1xuXG4vLyBPbGQgc3R5bGUgc2hvd0xhc3QoKSBpbiBIaXN0b3J5IG1vZHVsZS5cbmlmICh3aW5kb3cualF1ZXJ5KSB7XG4gIHdpbmRvdy5qUXVlcnkoKCkgPT4ge1xuICAgIHdpbmRvdy5qUXVlcnkoZG9jdW1lbnQuYm9keSkub24oJ3Bub3RpZnkuaGlzdG9yeS1sYXN0JywgZnVuY3Rpb24gKCkge1xuICAgICAgUE5vdGlmeS5tb2R1bGVzLkhpc3Rvcnkuc2hvd0xhc3QoKTtcbiAgICB9KTtcbiAgfSk7XG59XG5cbndpbmRvdy5QTm90aWZ5Q29tcGF0ID0gUE5vdGlmeUNvbXBhdDtcbiJdfQ== \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyCompat.js.map b/app/node_modules/pnotify/lib/iife/PNotifyCompat.js.map new file mode 100644 index 00000000..cdfaa8f0 --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyCompat.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["PNotifyCompat.js"],"names":["PNotify","window","translateOptions","options","module","moduleName","newOptions","PNotifyCompat","prototype","translateName","badName","goodName","underscoreIndex","indexOf","slice","toUpperCase","name","hasOwnProperty","addClass","addclass","cornerClass","cornerclass","textTrusted","textEscape","titleTrusted","titleEscape","styling","icons","stack","overlay_close","overlayClose","modules","Animate","animate","Buttons","buttons","classes","Confirm","confirm","promptDefault","promptValue","Desktop","desktop","History","history","Mobile","mobile","NonBlock","nonblock","Reference","reference","Callbacks","beforeInit","afterInit","beforeOpen","afterOpen","beforeClose","afterClose","before_init","target","document","body","data","_get","get","option","undefined","jQuery","refs","elem","call","on","e","trigger","value","getCallbacks","text_escape","title_escape","reload","removeAll","removeStack","positionAll","permission","showLast"],"mappings":";;;;;;;;;;;;;;AAAA,IAAIA,UAAUC,OAAOD,OAArB;;AAEA;AACA,IAAME,mBAAmB,SAAnBA,gBAAmB,CAACC,OAAD,EAAUC,MAAV,EAAkBC,UAAlB,EAAiC;AACxD;AACA,MAAMC,aAAaF,SAAS,SAAc,EAAd,EAAkBC,aAAaE,cAAcC,SAAd,CAAwBL,OAAxB,CAAgCE,UAAhC,CAAb,GAA2D,EAA7E,EAAiFF,OAAjF,CAAT,GAAqG,SAAc,EAAd,EAAkBI,cAAcC,SAAd,CAAwBL,OAA1C,EAAmDA,OAAnD,CAAxH;AACA,MAAMM,gBAAgB,SAAhBA,aAAgB,CAACC,OAAD,EAAa;AACjC,QAAIC,WAAWD,OAAf;AACA,QAAIE,wBAAJ;AACA,WAAO,CAACA,kBAAkBD,SAASE,OAAT,CAAiB,GAAjB,CAAnB,MAA8C,CAAC,CAAtD,EAAyD;AACvDF,iBAAWA,SAASG,KAAT,CAAe,CAAf,EAAkBF,eAAlB,IAAqCD,SAASG,KAAT,CAAeF,kBAAkB,CAAjC,EAAoCA,kBAAkB,CAAtD,EAAyDG,WAAzD,E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AAmB;AACjBlE,SAAOkE,MAAP,CAAc,YAAM;AAClBlE,WAAOkE,MAAP,CAAcP,SAASC,IAAvB,EAA6BU,EAA7B,CAAgC,sBAAhC,EAAwD,YAAY;AAClEvE,cAAQ+B,OAAR,CAAgBY,OAAhB,CAAwBwC,QAAxB;AACD,KAFD;AAGD,GAJD;AAKD;;AAEDlF,OAAOM,aAAP,GAAuBA,aAAvB","file":"src/PNotifyCompat.js","sourceRoot":"../","sourcesContent":["var PNotify = window.PNotify;\n\n// Translate v3 options to v4 options.\nconst translateOptions = (options, module, moduleName) => {\n // Merge the classic default options.\n const newOptions = module ? Object.assign({}, moduleName ? PNotifyCompat.prototype.options[moduleName] : {}, options) : Object.assign({}, PNotifyCompat.prototype.options, options);\n const translateName = (badName) => {\n let goodName = badName;\n let underscoreIndex;\n while ((underscoreIndex = goodName.indexOf('_')) !== -1) {\n goodName = goodName.slice(0, underscoreIndex) + goodName.slice(underscoreIndex + 1, underscoreIndex + 2).toUpperCase() + goodName.slice(underscoreIndex + 2);\n }\n return goodName;\n };\n\n // Translate all options to the new style.\n for (let name in newOptions) {\n if (newOptions.hasOwnProperty(name) && name.indexOf('_') !== -1) {\n const goodName = translateName(name);\n newOptions[goodName] = newOptions[name];\n delete newOptions[name];\n }\n }\n\n if (!module) {\n // Options that have changed.\n if (newOptions.hasOwnProperty('addclass')) {\n newOptions.addClass = newOptions.addclass;\n delete newOptions.addclass;\n }\n if (newOptions.hasOwnProperty('cornerclass')) {\n newOptions.cornerClass = newOptions.cornerclass;\n delete newOptions.cornerClass;\n }\n if (newOptions.hasOwnProperty('textEscape')) {\n newOptions.textTrusted = !newOptions.textEscape;\n delete newOptions.textEscape;\n }\n if (newOptions.hasOwnProperty('titleEscape')) {\n newOptions.titleTrusted = !newOptions.titleEscape;\n delete newOptions.titleEscape;\n }\n\n // Styling and icons.\n if (newOptions.hasOwnProperty('styling')) {\n if (newOptions.styling === 'bootstrap3') {\n newOptions.icons = 'bootstrap3';\n } else if (newOptions.styling === 'fontawesome') {\n newOptions.styling = 'bootstrap3';\n newOptions.icons = 'fontawesome4';\n }\n }\n\n // Stacks.\n if (newOptions.hasOwnProperty('stack')) {\n if (newOptions.stack.overlay_close) {\n newOptions.stack.overlayClose = newOptions.stack.overlay_close;\n }\n }\n\n // Translate module options.\n newOptions.modules = {};\n if (newOptions.hasOwnProperty('animate')) {\n newOptions.modules.Animate = translateOptions(newOptions.animate, true, 'animate');\n delete newOptions.animate;\n }\n if (newOptions.hasOwnProperty('buttons')) {\n newOptions.modules.Buttons = translateOptions(newOptions.buttons, true, 'buttons');\n delete newOptions.buttons;\n if (newOptions.modules.Buttons.classes) {\n newOptions.modules.Buttons.classes = translateOptions(newOptions.modules.Buttons.classes, true);\n }\n }\n if (newOptions.hasOwnProperty('confirm')) {\n newOptions.modules.Confirm = translateOptions(newOptions.confirm, true, 'confirm');\n if (newOptions.modules.Confirm.promptDefault) {\n newOptions.modules.Confirm.promptValue = newOptions.modules.Confirm.promptDefault;\n delete newOptions.modules.Confirm.promptDefault;\n }\n delete newOptions.confirm;\n }\n if (newOptions.hasOwnProperty('desktop')) {\n newOptions.modules.Desktop = translateOptions(newOptions.desktop, true, 'desktop');\n delete newOptions.desktop;\n }\n if (newOptions.hasOwnProperty('history')) {\n newOptions.modules.History = translateOptions(newOptions.history, true, 'history');\n delete newOptions.history;\n }\n if (newOptions.hasOwnProperty('mobile')) {\n newOptions.modules.Mobile = translateOptions(newOptions.mobile, true, 'mobile');\n delete newOptions.mobile;\n }\n if (newOptions.hasOwnProperty('nonblock')) {\n newOptions.modules.NonBlock = translateOptions(newOptions.nonblock, true, 'nonblock');\n delete newOptions.nonblock;\n }\n if (newOptions.hasOwnProperty('reference')) {\n newOptions.modules.Reference = translateOptions(newOptions.reference, true, 'reference');\n delete newOptions.reference;\n }\n if (newOptions.hasOwnProperty('beforeInit')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.beforeInit = newOptions.beforeInit;\n delete newOptions.beforeInit;\n }\n if (newOptions.hasOwnProperty('afterInit')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.afterInit = newOptions.afterInit;\n delete newOptions.afterInit;\n }\n if (newOptions.hasOwnProperty('beforeOpen')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.beforeOpen = newOptions.beforeOpen;\n delete newOptions.beforeOpen;\n }\n if (newOptions.hasOwnProperty('afterOpen')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.afterOpen = newOptions.afterOpen;\n delete newOptions.afterOpen;\n }\n if (newOptions.hasOwnProperty('beforeClose')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.beforeClose = newOptions.beforeClose;\n delete newOptions.beforeClose;\n }\n if (newOptions.hasOwnProperty('afterClose')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.afterClose = newOptions.afterClose;\n delete newOptions.afterClose;\n }\n }\n\n return newOptions;\n};\n\n// The compatibility class.\nclass PNotifyCompat extends PNotify {\n constructor (options) {\n if (typeof options !== 'object') {\n options = {'text': options};\n }\n\n // These need to be called directly, since we're not using PNotify.alert().\n if (PNotify.modules.Callbacks && options.before_init) {\n options.before_init(options);\n }\n\n options = translateOptions(options);\n\n super({target: document.body, data: options});\n\n // Override the get function to return the element like it did in v3.\n const _get = this.get;\n this.get = function (option) {\n if (option === undefined) {\n return Object.assign(window.jQuery ? window.jQuery(this.refs.elem) : this.refs.elem, _get.call(this));\n }\n return _get.call(this, option);\n };\n\n // Confirm module events.\n this.on('pnotify.confirm', (e) => {\n if (window.jQuery) {\n window.jQuery(this.refs.elem).trigger('pnotify.confirm', [this, e.value]);\n }\n });\n this.on('pnotify.cancel', (e) => {\n if (window.jQuery) {\n window.jQuery(this.refs.elem).trigger('pnotify.cancel', this);\n }\n });\n\n if (PNotify.modules.Callbacks) {\n PNotify.modules.Callbacks.getCallbacks(this, null, 'afterInit')(this);\n }\n }\n\n update (options) {\n options = translateOptions(options);\n return super.update(options);\n }\n}\n\n// Lets you change defaults the old way.\nPNotifyCompat.prototype.options = {\n text_escape: false,\n title_escape: false\n};\n\n// Forward static functions.\nPNotifyCompat.reload = () => PNotifyCompat;\nPNotifyCompat.removeAll = () => PNotify.removeAll();\nPNotifyCompat.removeStack = (stack) => PNotify.removeStack(stack);\nPNotifyCompat.positionAll = (animate) => PNotify.positionAll(animate);\n\n// Desktop module permission method.\nPNotifyCompat.desktop = {\n permission: () => {\n PNotify.modules.Desktop.permission();\n }\n};\n\n// Old style showLast() in History module.\nif (window.jQuery) {\n window.jQuery(() => {\n window.jQuery(document.body).on('pnotify.history-last', function () {\n PNotify.modules.History.showLast();\n });\n });\n}\n\nwindow.PNotifyCompat = PNotifyCompat;\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyConfirm.js b/app/node_modules/pnotify/lib/iife/PNotifyConfirm.js new file mode 100644 index 00000000..c6daaa72 --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyConfirm.js @@ -0,0 +1,750 @@ +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +/* src/PNotifyConfirm.html generated by Svelte v2.6.3 */ +var PNotifyConfirm = function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.Confirm.defaults); + }; + + var methods = { + initModule: function initModule(options) { + this.set(options); + }, + afterOpen: function afterOpen() { + if (this.get().prompt) { + if (this.get().promptMultiLine) { + this.refs.promptMulti.focus(); + } else { + this.refs.promptSingle.focus(); + } + } + }, + handleClick: function handleClick(button, event) { + if (button.click) { + button.click(this.get()._notice, this.get().prompt ? this.get().promptValue : null, event); + } + }, + handleKeyPress: function handleKeyPress(event) { + if (event.keyCode === 13 && !event.shiftKey) { + event.preventDefault(); + + var _get = this.get(), + buttons = _get.buttons; + + for (var i = 0; i < buttons.length; i++) { + if (buttons[i].promptTrigger && buttons[i].click) { + buttons[i].click(this.get()._notice, this.get().prompt ? this.get().promptValue : null, event); + } + } + } + } + }; + + function oncreate() { + this.fire('init', { module: this }); + }; + + function setup(Component) { + Component.key = 'Confirm'; + + Component.defaults = { + // Make a confirmation box. + confirm: false, + // Make a prompt. + prompt: false, + // Classes to add to the input element of the prompt. + promptClass: '', + // The value of the prompt. + promptValue: '', + // Whether the prompt should accept multiple lines of text. + promptMultiLine: false, + // Where to align the buttons. (flex-start, center, flex-end, space-around, space-between) + align: 'flex-end', + // The buttons to display, and their callbacks. + buttons: [{ + text: 'Ok', + textTrusted: false, + addClass: '', + primary: true, + // Whether to trigger this button when the user hits enter in a single line prompt. + promptTrigger: true, + click: function click(notice, value) { + notice.close(); + notice.fire('pnotify.confirm', { notice: notice, value: value }); + } + }, { + text: 'Cancel', + textTrusted: false, + addClass: '', + click: function click(notice) { + notice.close(); + notice.fire('pnotify.cancel', { notice: notice }); + } + }] + }; + + // Register the module with PNotify. + PNotify.modules.Confirm = Component; + // Append this module to the container. + PNotify.modulesAppendContainer.push(Component); + + // Add button styles to styling objects. + _extends(PNotify.styling.brighttheme, { + actionBar: '', + promptBar: '', + btn: '', + btnPrimary: 'brighttheme-primary', + input: '' + }); + _extends(PNotify.styling.bootstrap3, { + actionBar: 'ui-pnotify-confirm-ml', + promptBar: 'ui-pnotify-confirm-ml', + btn: 'btn btn-default ui-pnotify-confirm-mx-1', + btnPrimary: 'btn btn-default ui-pnotify-confirm-mx-1 btn-primary', + input: 'form-control' + }); + _extends(PNotify.styling.bootstrap4, { + actionBar: 'ui-pnotify-confirm-ml', + promptBar: 'ui-pnotify-confirm-ml', + btn: 'btn btn-secondary mx-1', + btnPrimary: 'btn btn-primary mx-1', + input: 'form-control' + }); + if (!PNotify.styling.material) { + PNotify.styling.material = {}; + } + _extends(PNotify.styling.material, { + actionBar: '', + promptBar: '', + btn: '', + btnPrimary: 'ui-pnotify-material-primary', + input: '' + }); + }; + + function add_css() { + var style = createElement("style"); + style.id = 'svelte-1y9suua-style'; + style.textContent = ".ui-pnotify-action-bar.svelte-1y9suua,.ui-pnotify-prompt-bar.svelte-1y9suua{margin-top:5px;clear:both}.ui-pnotify-action-bar.svelte-1y9suua{display:flex;flex-wrap:wrap;justify-content:flex-end}.ui-pnotify-prompt-input.svelte-1y9suua{margin-bottom:5px;display:block;width:100%}.ui-pnotify-confirm-mx-1.svelte-1y9suua{margin:0 5px}.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-confirm-ml{margin-left:24px}[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-confirm-ml{margin-right:24px;margin-left:0}"; + appendNode(style, document.head); + } + + function create_main_fragment(component, ctx) { + var if_block_anchor; + + var if_block = (ctx.confirm || ctx.prompt) && create_if_block(component, ctx); + + return { + c: function c() { + if (if_block) if_block.c(); + if_block_anchor = createComment(); + }, + m: function m(target, anchor) { + if (if_block) if_block.m(target, anchor); + insertNode(if_block_anchor, target, anchor); + }, + p: function p(changed, ctx) { + if (ctx.confirm || ctx.prompt) { + if (if_block) { + if_block.p(changed, ctx); + } else { + if_block = create_if_block(component, ctx); + if_block.c(); + if_block.m(if_block_anchor.parentNode, if_block_anchor); + } + } else if (if_block) { + if_block.d(1); + if_block = null; + } + }, + d: function d(detach) { + if (if_block) if_block.d(detach); + if (detach) { + detachNode(if_block_anchor); + } + } + }; + } + + // (10:8) {#if promptMultiLine} + function create_if_block_2(component, ctx) { + var textarea, + textarea_updating = false, + textarea_class_value; + + function textarea_input_handler() { + textarea_updating = true; + component.set({ promptValue: textarea.value }); + textarea_updating = false; + } + + function keypress_handler(event) { + component.handleKeyPress(event); + } + + return { + c: function c() { + textarea = createElement("textarea"); + addListener(textarea, "input", textarea_input_handler); + addListener(textarea, "keypress", keypress_handler); + textarea.rows = "5"; + textarea.className = textarea_class_value = "\n ui-pnotify-prompt-input\n " + (ctx._notice.get()._styles.input ? ctx._notice.get()._styles.input : '') + "\n " + ctx.promptClass + "\n " + " svelte-1y9suua"; + }, + m: function m(target, anchor) { + insertNode(textarea, target, anchor); + component.refs.promptMulti = textarea; + + textarea.value = ctx.promptValue; + }, + p: function p(changed, ctx) { + if (!textarea_updating) textarea.value = ctx.promptValue; + if ((changed._notice || changed.promptClass) && textarea_class_value !== (textarea_class_value = "\n ui-pnotify-prompt-input\n " + (ctx._notice.get()._styles.input ? ctx._notice.get()._styles.input : '') + "\n " + ctx.promptClass + "\n " + " svelte-1y9suua")) { + textarea.className = textarea_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(textarea); + } + + removeListener(textarea, "input", textarea_input_handler); + removeListener(textarea, "keypress", keypress_handler); + if (component.refs.promptMulti === textarea) component.refs.promptMulti = null; + } + }; + } + + // (21:8) {:else} + function create_if_block_3(component, ctx) { + var input, + input_updating = false, + input_class_value; + + function input_input_handler() { + input_updating = true; + component.set({ promptValue: input.value }); + input_updating = false; + } + + function keypress_handler(event) { + component.handleKeyPress(event); + } + + return { + c: function c() { + input = createElement("input"); + addListener(input, "input", input_input_handler); + addListener(input, "keypress", keypress_handler); + setAttribute(input, "type", "text"); + input.className = input_class_value = "\n ui-pnotify-prompt-input\n " + (ctx._notice.get()._styles.input ? ctx._notice.get()._styles.input : '') + "\n " + ctx.promptClass + "\n " + " svelte-1y9suua"; + }, + m: function m(target, anchor) { + insertNode(input, target, anchor); + component.refs.promptSingle = input; + + input.value = ctx.promptValue; + }, + p: function p(changed, ctx) { + if (!input_updating) input.value = ctx.promptValue; + if ((changed._notice || changed.promptClass) && input_class_value !== (input_class_value = "\n ui-pnotify-prompt-input\n " + (ctx._notice.get()._styles.input ? ctx._notice.get()._styles.input : '') + "\n " + ctx.promptClass + "\n " + " svelte-1y9suua")) { + input.className = input_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(input); + } + + removeListener(input, "input", input_input_handler); + removeListener(input, "keypress", keypress_handler); + if (component.refs.promptSingle === input) component.refs.promptSingle = null; + } + }; + } + + // (3:4) {#if prompt} + function create_if_block_1(component, ctx) { + var div, div_class_value; + + function select_block_type(ctx) { + if (ctx.promptMultiLine) return create_if_block_2; + return create_if_block_3; + } + + var current_block_type = select_block_type(ctx); + var if_block = current_block_type(component, ctx); + + return { + c: function c() { + div = createElement("div"); + if_block.c(); + div.className = div_class_value = "\n ui-pnotify-prompt-bar\n " + (ctx._notice.get()._styles.promptBar ? ctx._notice.get()._styles.promptBar : '') + "\n " + (ctx._notice.get()._styles.text ? ctx._notice.get()._styles.text : '') + "\n " + " svelte-1y9suua"; + }, + m: function m(target, anchor) { + insertNode(div, target, anchor); + if_block.m(div, null); + }, + p: function p(changed, ctx) { + if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) { + if_block.p(changed, ctx); + } else { + if_block.d(1); + if_block = current_block_type(component, ctx); + if_block.c(); + if_block.m(div, null); + } + + if (changed._notice && div_class_value !== (div_class_value = "\n ui-pnotify-prompt-bar\n " + (ctx._notice.get()._styles.promptBar ? ctx._notice.get()._styles.promptBar : '') + "\n " + (ctx._notice.get()._styles.text ? ctx._notice.get()._styles.text : '') + "\n " + " svelte-1y9suua")) { + div.className = div_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(div); + } + + if_block.d(); + } + }; + } + + // (42:6) {#each buttons as button} + function create_each_block(component, ctx) { + var button, button_class_value; + + function select_block_type_1(ctx) { + if (ctx.button.textTrusted) return create_if_block_4; + return create_if_block_5; + } + + var current_block_type = select_block_type_1(ctx); + var if_block = current_block_type(component, ctx); + + return { + c: function c() { + button = createElement("button"); + if_block.c(); + button._svelte = { component: component, ctx: ctx }; + + addListener(button, "click", click_handler); + button.type = "button"; + button.className = button_class_value = "\n ui-pnotify-action-button\n " + (ctx.button.primary ? ctx._notice.get()._styles.btnPrimary ? ctx._notice.get()._styles.btnPrimary : '' : ctx._notice.get()._styles.btn ? ctx._notice.get()._styles.btn : '') + "\n " + (ctx.button.addClass ? ctx.button.addClass : '') + "\n " + " svelte-1y9suua"; + }, + m: function m(target, anchor) { + insertNode(button, target, anchor); + if_block.m(button, null); + }, + p: function p(changed, ctx) { + if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block) { + if_block.p(changed, ctx); + } else { + if_block.d(1); + if_block = current_block_type(component, ctx); + if_block.c(); + if_block.m(button, null); + } + + button._svelte.ctx = ctx; + if ((changed.buttons || changed._notice) && button_class_value !== (button_class_value = "\n ui-pnotify-action-button\n " + (ctx.button.primary ? ctx._notice.get()._styles.btnPrimary ? ctx._notice.get()._styles.btnPrimary : '' : ctx._notice.get()._styles.btn ? ctx._notice.get()._styles.btn : '') + "\n " + (ctx.button.addClass ? ctx.button.addClass : '') + "\n " + " svelte-1y9suua")) { + button.className = button_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(button); + } + + if_block.d(); + removeListener(button, "click", click_handler); + } + }; + } + + // (50:14) {#if button.textTrusted} + function create_if_block_4(component, ctx) { + var raw_value = ctx.button.text, + raw_before, + raw_after; + + return { + c: function c() { + raw_before = createElement('noscript'); + raw_after = createElement('noscript'); + }, + m: function m(target, anchor) { + insertNode(raw_before, target, anchor); + raw_before.insertAdjacentHTML("afterend", raw_value); + insertNode(raw_after, target, anchor); + }, + p: function p(changed, ctx) { + if (changed.buttons && raw_value !== (raw_value = ctx.button.text)) { + detachBetween(raw_before, raw_after); + raw_before.insertAdjacentHTML("afterend", raw_value); + } + }, + d: function d(detach) { + if (detach) { + detachBetween(raw_before, raw_after); + detachNode(raw_before); + detachNode(raw_after); + } + } + }; + } + + // (50:57) {:else} + function create_if_block_5(component, ctx) { + var text_value = ctx.button.text, + text; + + return { + c: function c() { + text = createText(text_value); + }, + m: function m(target, anchor) { + insertNode(text, target, anchor); + }, + p: function p(changed, ctx) { + if (changed.buttons && text_value !== (text_value = ctx.button.text)) { + text.data = text_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(text); + } + } + }; + } + + // (1:0) {#if confirm || prompt} + function create_if_block(component, ctx) { + var div, text, div_1, div_1_class_value; + + var if_block = ctx.prompt && create_if_block_1(component, ctx); + + var each_value = ctx.buttons; + + var each_blocks = []; + + for (var i = 0; i < each_value.length; i += 1) { + each_blocks[i] = create_each_block(component, get_each_context(ctx, each_value, i)); + } + + return { + c: function c() { + div = createElement("div"); + if (if_block) if_block.c(); + text = createText("\n "); + div_1 = createElement("div"); + + for (var i = 0; i < each_blocks.length; i += 1) { + each_blocks[i].c(); + } + div_1.className = div_1_class_value = "\n ui-pnotify-action-bar\n " + (ctx._notice.get()._styles.actionBar ? ctx._notice.get()._styles.actionBar : '') + "\n " + (ctx._notice.get()._styles.text ? ctx._notice.get()._styles.text : '') + "\n " + " svelte-1y9suua"; + setStyle(div_1, "justify-content", ctx.align); + div.className = "ui-pnotify-confirm"; + }, + m: function m(target, anchor) { + insertNode(div, target, anchor); + if (if_block) if_block.m(div, null); + appendNode(text, div); + appendNode(div_1, div); + + for (var i = 0; i < each_blocks.length; i += 1) { + each_blocks[i].m(div_1, null); + } + }, + p: function p(changed, ctx) { + if (ctx.prompt) { + if (if_block) { + if_block.p(changed, ctx); + } else { + if_block = create_if_block_1(component, ctx); + if_block.c(); + if_block.m(div, text); + } + } else if (if_block) { + if_block.d(1); + if_block = null; + } + + if (changed.buttons || changed._notice) { + each_value = ctx.buttons; + + for (var i = 0; i < each_value.length; i += 1) { + var child_ctx = get_each_context(ctx, each_value, i); + + if (each_blocks[i]) { + each_blocks[i].p(changed, child_ctx); + } else { + each_blocks[i] = create_each_block(component, child_ctx); + each_blocks[i].c(); + each_blocks[i].m(div_1, null); + } + } + + for (; i < each_blocks.length; i += 1) { + each_blocks[i].d(1); + } + each_blocks.length = each_value.length; + } + + if (changed._notice && div_1_class_value !== (div_1_class_value = "\n ui-pnotify-action-bar\n " + (ctx._notice.get()._styles.actionBar ? ctx._notice.get()._styles.actionBar : '') + "\n " + (ctx._notice.get()._styles.text ? ctx._notice.get()._styles.text : '') + "\n " + " svelte-1y9suua")) { + div_1.className = div_1_class_value; + } + + if (changed.align) { + setStyle(div_1, "justify-content", ctx.align); + } + }, + d: function d(detach) { + if (detach) { + detachNode(div); + } + + if (if_block) if_block.d(); + + destroyEach(each_blocks, detach); + } + }; + } + + function get_each_context(ctx, list, i) { + var child_ctx = Object.create(ctx); + child_ctx.button = list[i]; + child_ctx.each_value = list; + child_ctx.button_index = i; + return child_ctx; + } + + function click_handler(event) { + var _svelte = this._svelte, + component = _svelte.component, + ctx = _svelte.ctx; + + + component.handleClick(ctx.button, event); + } + + function PNotifyConfirm(options) { + var _this = this; + + init(this, options); + this.refs = {}; + this._state = assign(data(), options.data); + this._intro = true; + + if (!document.getElementById("svelte-1y9suua-style")) add_css(); + + if (!options.root) { + this._oncreate = []; + } + + this._fragment = create_main_fragment(this, this._state); + + this.root._oncreate.push(function () { + oncreate.call(_this); + _this.fire("update", { changed: assignTrue({}, _this._state), current: _this._state }); + }); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + + callAll(this._oncreate); + } + } + + assign(PNotifyConfirm.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyConfirm.prototype, methods); + + PNotifyConfirm.prototype._recompute = noop; + + setup(PNotifyConfirm); + + function createElement(name) { + return document.createElement(name); + } + + function appendNode(node, target) { + target.appendChild(node); + } + + function createComment() { + return document.createComment(''); + } + + function insertNode(node, target, anchor) { + target.insertBefore(node, anchor); + } + + function detachNode(node) { + node.parentNode.removeChild(node); + } + + function addListener(node, event, handler) { + node.addEventListener(event, handler, false); + } + + function removeListener(node, event, handler) { + node.removeEventListener(event, handler, false); + } + + function setAttribute(node, attribute, value) { + node.setAttribute(attribute, value); + } + + function detachBetween(before, after) { + while (before.nextSibling && before.nextSibling !== after) { + before.parentNode.removeChild(before.nextSibling); + } + } + + function createText(data) { + return document.createTextNode(data); + } + + function setStyle(node, key, value) { + node.style.setProperty(key, value); + } + + function destroyEach(iterations, detach) { + for (var i = 0; i < iterations.length; i += 1) { + if (iterations[i]) iterations[i].d(detach); + } + } + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function assignTrue(tar, src) { + for (var k in src) { + tar[k] = 1; + }return tar; + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function noop() {} + + function blankObject() { + return Object.create(null); + } + return PNotifyConfirm; +}(PNotify); +//# sourceMappingURL=PNotifyConfirm.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyConfirm.js.map b/app/node_modules/pnotify/lib/iife/PNotifyConfirm.js.map new file mode 100644 index 00000000..1eccf5db --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyConfirm.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyConfirm.html"],"names":[],"mappings":";;;;;;;;;;UAgJS,I,GAAG;AACN,SAAO,SAAc;AACnB,cAAW,IADQ,EACJ;AACf,eAAY,EAFO,CAEL;AAFK,GAAd,EAGJ,QAAQ,OAAR,CAAgB,OAAhB,CAAwB,QAHpB,CAAP;AAID;;eAEQ;AACP,YADO,sBACK,OADL,EACc;AACnB,QAAK,GAAL,CAAS,OAAT;AACD,GAHM;AAKP,WALO,uBAKM;AACX,OAAI,KAAK,GAAL,GAAW,MAAf,EAAuB;AACrB,QAAI,KAAK,GAAL,GAAW,eAAf,EAAgC;AAC9B,UAAK,IAAL,CAAU,WAAV,CAAsB,KAAtB;AACD,KAFD,MAEO;AACL,UAAK,IAAL,CAAU,YAAV,CAAuB,KAAvB;AACD;AACF;AACF,GAbM;AAeP,aAfO,uBAeM,MAfN,EAec,KAfd,EAeqB;AAC1B,OAAI,OAAO,KAAX,EAAkB;AAChB,WAAO,KAAP,CAAa,KAAK,GAAL,G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;iGAJG,O,CAAQ,G,GAAM,O,CAAQ,S,GAAS,IAAG,OAAH,CAAW,GAAX,GAAiB,OAAjB,CAAyB,S,GAAY,E,IAAE,c,IAAA,IACtE,OADsE,CAC9D,GAD8D,GACxD,OADwD,CAChD,IADgD,GAC5C,IAAG,OAAH,CAAW,GAAX,GAAiB,OAAjB,CAAyB,IADmB,GACZ,E,IAAE,Y,GAAA,iB;2CAEtC,K;;;;;;;;;;;;;;YAtCxB,M,EAAM;;;;;;;;;;;;;;sBAuCF,O;;oCAAL,M,EAAA,KAAA,C,EAAA;;;;;;;;;;;;;;;qCAAA,M;;;6HAJG,O,CAAQ,G,GAAM,O,CAAQ,S,GAAS,IAAG,OAAH,CAAW,GAAX,GAAiB,OAAjB,CAAyB,S,GAAY,E,IAAE,c,IAAA,IACtE,OADsE,CAC9D,GAD8D,GACxD,OADwD,CAChD,IADgD,GAC5C,IAAG,OAAH,CAAW,GAAX,GAAiB,OAAjB,CAAyB,IADmB,GACZ,E,IAAE,Y,GAAA,iB,GAAA;;;;;4CAEtC,K;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAIX,W,CAAA,IAAY,M,EAAQ,K","sourcesContent":["{#if confirm || prompt}\n
\n {#if prompt}\n \n {#if promptMultiLine}\n \n {:else}\n \n {/if}\n
\n {/if}\n \n {#each buttons as button}\n {#if button.textTrusted}{@html button.text}{:else}{button.text}{/if}\n {/each}\n \n \n{/if}\n\n\n\n\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyDesktop.js b/app/node_modules/pnotify/lib/iife/PNotifyDesktop.js new file mode 100644 index 00000000..f45fa8fe --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyDesktop.js @@ -0,0 +1,438 @@ +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +/* src/PNotifyDesktop.html generated by Svelte v2.6.3 */ +var PNotifyDesktop = function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + var permission = void 0; + var Notification = window.Notification; + + var _notify = function notify(title, options, onclick, onclose) { + // Memoize based on feature detection. + if ('Notification' in window) { + _notify = function notify(title, options, onclick, onclose) { + var notice = new Notification(title, options); + if ('NotificationEvent' in window) { + notice.addEventListener('notificationclick', onclick); + notice.addEventListener('close', onclose); + } else if ('addEventListener' in notice) { + notice.addEventListener('click', onclick); + notice.addEventListener('close', onclose); + } else { + notice.onclick = onclick; + notice.onclose = onclose; + } + return notice; + }; + } else if ('mozNotification' in navigator) { + _notify = function notify(title, options, onclick, onclose) { + // Gecko < 22 + var notice = navigator.mozNotification.createNotification(title, options.body, options.icon).show(); + notice.onclick = onclick; + notice.onclose = onclose; + return notice; + }; + } else if ('webkitNotifications' in window) { + _notify = function notify(title, options, onclick, onclose) { + var notice = window.webkitNotifications.createNotification(options.icon, title, options.body); + notice.onclick = onclick; + notice.onclose = onclose; + return notice; + }; + } else { + _notify = function notify(title, options, onclick, onclose) { + return null; + }; + } + return _notify(title, options, onclick, onclose); + }; + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.Desktop.defaults); + }; + + var methods = { + initModule: function initModule(options) { + var _this = this; + + this.set(options); + + var _get = this.get(), + _notice = _get._notice; + + // Animation should always be 'none' for desktop notices, but remember + // the old animation so it can be recovered. + + + this.set({ '_oldAnimation': _notice.get().animation }); + _notice.on('state', function (_ref) { + var changed = _ref.changed, + current = _ref.current, + previous = _ref.previous; + + if (changed.animation) { + if (previous.animation === undefined || current.animation !== 'none' || previous.animation === 'none' && current.animation !== _this.get()._oldAnimation) { + _this.set({ '_oldAnimation': current.animation }); + } + } + + // This is necessary so desktop notices don't cause spacing problems + // when positioning. + if (changed._animatingClass) { + if (!(current._animatingClass === '' || permission !== 0 && _this.get().fallback || !_this.get().desktop)) { + _notice.set({ '_animatingClass': '' }); + } + } + }); + + if (!this.get().desktop) { + return; + } + + permission = PNotify.modules.Desktop.checkPermission(); + if (permission !== 0) { + // Keep the notice from opening if fallback is false. + if (!this.get().fallback) { + _notice.set({ 'autoDisplay': false }); + } + return; + } + + _notice.set({ 'animation': 'none' }); + _notice.addModuleClass('ui-pnotify-desktop-hide'); + + this.genNotice(); + }, + update: function update() { + var _get2 = this.get(), + _notice = _get2._notice; + + if (permission !== 0 && this.get().fallback || !this.get().desktop) { + _notice.set({ 'animation': this.get()._oldAnimation }); + _notice.removeModuleClass('ui-pnotify-desktop-hide'); + return; + } else { + _notice.set({ 'animation': 'none' }); + _notice.addModuleClass('ui-pnotify-desktop-hide'); + } + this.genNotice(); + }, + beforeOpen: function beforeOpen() { + if (this.get().desktop && permission !== 0) { + PNotify.modules.Desktop.permission(); + } + if (permission !== 0 && this.get().fallback || !this.get().desktop) { + return; + } + + var _get3 = this.get(), + _desktop = _get3._desktop; + + if (_desktop && 'show' in _desktop) { + this.get()._notice.set({ '_moduleIsNoticeOpen': true }); + _desktop.show(); + } + }, + beforeClose: function beforeClose() { + if (permission !== 0 && this.get().fallback || !this.get().desktop) { + return; + } + + var _get4 = this.get(), + _desktop = _get4._desktop; + + if (_desktop && 'close' in _desktop) { + _desktop.close(); + this.get()._notice.set({ '_moduleIsNoticeOpen': false }); + } + }, + genNotice: function genNotice() { + var _get5 = this.get(), + _notice = _get5._notice, + icon = _get5.icon; + + if (icon === null) { + switch (_notice.get().type) { + case 'error': + this.set({ '_icon': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQg7e6HvQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABr0lEQVRYw8WXu0oDQRSGv7hRSFYrLTTWKihaqUgUJO+gphBLL1jYpPSCVcAggpWthYhC7Ows9An0IbSPkMRCw8ZmFuI6yczs9cAPuzNz5v92brtrESxGARtokkCcAg2hk7jNl4G2R/m4zFPAiwTgWdRFHnmJuaulOAAaPQDqUZvv9DB3tR0lwIcGwHtU5uca5q4qYZvngJbHpAZ8CtU8dS1gLEyAisegBGTFKWiL65KnzVlY5uOSId6VtNuTtMupOu/TAHiQlNmSskHNXCOAGWBeUp7VhFoApoMAXAOWJoCszBJ9+ALY6vL0JiPgjsKmKUAaOOoBZwIAcNxlJLsCrAOTIQJMAWu62y4LOIqT7lGS96TIcYCMDkBZ46h1gB+PHI28ssq8X/G6DaqG8Piz2DrjVjGXbtSBy46F5QAHwJAizwZugKKscs7gSaqS/KpB/qxsFxwafhf6Odb/eblJi8BGwJdW26BtURxQpMU83hmaDQsNiPtvYMSwj3tgAqDgYzU7wJdHjo9+CgBvEW47lV5Tgj5DMtG0xIfESkIAF+522gdWxTzGEX3i9+6KpOMXF5UBt0NKJCAAAAAASUVORK5CYII=' }); + break; + case 'success': + this.set({ '_icon': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQPRj+65AAAAdBJREFUWMPtlzsvRFEQx3+7HmEjoiYKolVJJDRqnS8ggvVIVEQhCIUsEYJGCEH2E4h4FPREaLTbEo1IEJXHrmY2GTf33nPuY7ud5OTenTMz//89Z86ZWShLWf5LB3AOfACFiOMF2AkC3qOc88BXxFEAxlX8ftGdaNCEen8H6oFHYBR4FocwkpTngzzHgF01fwL0aYcp9fVtMW/rsMcWXWijK1Hexgye9smRT6CxaHgjytMYwccNSXqoja9FeVbiZS+OVaeDiUBLAPAJA/i2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D6h3jR8CUabAMlqn7xfxEbAdwWKLhhO3sGPCbOsNSvSyF0Z/5TaCuEleziLhmAOiWG1NWrmZXwIVU1A/+SZO+AcgLC4wt0zD3AAAAAElFTkSuQmCC' }); + break; + case 'notice': + default: + this.set({ '_icon': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATM4scOJLAAAAcxJREFUWMPtljtLA0EQx3+J0QRfnYqCiCA+MERBrIwgFtoFbMTOR61i5QcQBdEihZWNoEWwsNAvkMJeBLHRQtHC0iIP4utOmw2cx97d7l2SRgcGbufmv/Pf2dmdhb8uIR+YJqAPaBff30AeeAHuxLgqMgRkgS/AAEybGuLfEdBcycCTwKVYmY5mgO6gwdd8BLaqAST9Bs8EDG7VTd3gex4TbgEjwKjQOHDugZlRDb7sMZEJpCS4bYVMJOygsG1cB+wqHN0Gib1RYXFpLwL74nx7Sb3EFlXATQNjTgRagA3FbZIRiCliT5wITGgUaRACA0CPjMC4xtUcDUAgDAzLCCQ0MhALQCAE9MoIdGkQCJIBgE4ZgWiNMvDL10qgUMMMFGQEnjQmkLXbVg38s8y4qtFcTCAnHiJ5oKiJnSoHjVgIXAmHkGIl5yy+YcWruIy9dvqpupIDCfZWEXvh1gsWFVfxIbG9a3RbRwJnYiuqJYfAqxsBgBWFiQyJzfTAlIB1uzEicbwBFoBTl8lSwINoSuXKjrv4F4FBh61zlKUKvgn7/e5ZEngMEDgLdFSieHaAT42LpgTMVbqC24B54Bi4twV9E6cnDcw6PFj+RSo/l6rlSlldhx4AAAAASUVORK5CYII=' }); + break; + } + } else if (icon === false) { + this.set({ '_icon': null }); + } else { + this.set({ '_icon': icon }); + } + + var _get6 = this.get(), + tag = _get6.tag; + + if (!this.get()._tag || tag !== null) { + this.set({ + '_tag': tag === null ? 'PNotify-' + Math.round(Math.random() * 1000000) : tag + }); + } + + var options = { + body: this.get().text || _notice.get().text, + tag: this.get()._tag + }; + if (!_notice.get().hide) { + options.requireInteraction = true; + } + if (this.get()._icon !== null) { + options.icon = this.get()._icon; + } + Object.apply(options, this.get().options); + + var _desktop = _notify(this.get().title || _notice.get().title, options, function () { + _notice.fire('click', { target: _desktop }); + }, function () { + _notice.close(); + }); + + _notice.set({ '_moduleIsNoticeOpen': true }); + this.set({ _desktop: _desktop }); + + if (!('close' in _desktop) && 'cancel' in _desktop) { + _desktop.close = function () { + _desktop.cancel(); + }; + } + } + }; + + function setup(Component) { + Component.key = 'Desktop'; + + Component.defaults = { + // Display the notification as a desktop notification. + desktop: false, + // If desktop notifications are not supported or allowed, fall back to a regular notice. + fallback: true, + // The URL of the icon to display. If false, no icon will show. If null, a default icon will show. + icon: null, + // Using a tag lets you update an existing notice, or keep from duplicating notices between tabs. + // If you leave tag null, one will be generated, facilitating the 'update' function. + // see: http://www.w3.org/TR/notifications/#tags-example + tag: null, + // Optionally display a different title for the desktop. + title: null, + // Optionally display different text for the desktop. + text: null, + // Any additional options to be passed to the Notification constructor. + options: {} + }; + + Component.init = function (notice) { + return new Component({ target: document.body }); + }; + + Component.permission = function () { + if (typeof Notification !== 'undefined' && 'requestPermission' in Notification) { + Notification.requestPermission(); + } else if ('webkitNotifications' in window) { + window.webkitNotifications.requestPermission(); + } + }; + + Component.checkPermission = function () { + if (typeof Notification !== 'undefined' && 'permission' in Notification) { + return Notification.permission === 'granted' ? 0 : 1; + } else if ('webkitNotifications' in window) { + return window.webkitNotifications.checkPermission() == 0 ? 0 : 1; // eslint-disable-line eqeqeq + } else { + return 1; + } + }; + + permission = Component.checkPermission(); + + // Register the module with PNotify. + PNotify.modules.Desktop = Component; + }; + + function add_css() { + var style = createElement("style"); + style.id = 'svelte-xbgnx4-style'; + style.textContent = "[ui-pnotify].ui-pnotify-desktop-hide.ui-pnotify{left:-10000px !important;display:none !important}"; + appendNode(style, document.head); + } + + function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; + } + + function PNotifyDesktop(options) { + init(this, options); + this._state = assign(data(), options.data); + this._intro = true; + + if (!document.getElementById("svelte-xbgnx4-style")) add_css(); + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } + } + + assign(PNotifyDesktop.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyDesktop.prototype, methods); + + PNotifyDesktop.prototype._recompute = noop; + + setup(PNotifyDesktop); + + function createElement(name) { + return document.createElement(name); + } + + function appendNode(node, target) { + target.appendChild(node); + } + + function noop() {} + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + return PNotifyDesktop; +}(PNotify); +//# sourceMappingURL=PNotifyDesktop.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyDesktop.js.map b/app/node_modules/pnotify/lib/iife/PNotifyDesktop.js.map new file mode 100644 index 00000000..91068c1c --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyDesktop.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyDesktop.html"],"names":[],"mappings":";;;;;;;;;;AAGE,MAAI,mBAAJ;AACA,MAAM,eAAe,OAAO,YAA5B;;AAEA,MAAI,UAAS,gBAAC,KAAD,EAAQ,OAAR,EAAiB,OAAjB,EAA0B,OAA1B,EAAsC;AACnD;AACE,QAAI,kBAAkB,MAAtB,EAA8B;AAC5B,gBAAS,gBAAC,KAAD,EAAQ,OAAR,EAAiB,OAAjB,EAA0B,OAA1B,EAAsC;AAC7C,YAAM,SAAS,IAAI,YAAJ,CAAiB,KAAjB,EAAwB,OAAxB,CAAf;AACA,YAAI,uBAAuB,MAA3B,EAAmC;AACjC,iBAAO,gBAAP,CAAwB,mBAAxB,EAA6C,OAA7C;AACA,iBAAO,gBAAP,CAAwB,OAAxB,EAAiC,OAAjC;AACD,SAHD,MAGO,IAAI,sBAAsB,MAA1B,EAAkC;AACvC,iBAAO,gBAAP,CAAwB,OAAxB,EAAiC,OAAjC;AACA,iBAAO,gBAAP,CAAwB,OAAxB,EA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,WAAxB,IAAuC,gBAAgB,YAA3D,EAAyE;AACvE,eAAQ,aAAa,UAAb,KAA4B,SAA5B,GAAwC,CAAxC,GAA4C,CAApD;AACD,OAFD,MAEO,IAAI,yBAAyB,MAA7B,EAAqC;AAC1C,eAAO,OAAO,mBAAP,CAA2B,eAA3B,MAAgD,CAAhD,GAAoD,CAApD,GAAwD,CAA/D,CAD0C,CACuB;AAClE,OAFM,MAEA;AACL,eAAO,CAAP;AACD;AACF,KARD;;AAUA,iBAAa,UAAU,eAAV,EAAb;;AAEF;AACE,YAAQ,OAAR,CAAgB,OAAhB,GAA0B,SAA1B;AACD","sourcesContent":["\n\n\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyHistory.js b/app/node_modules/pnotify/lib/iife/PNotifyHistory.js new file mode 100644 index 00000000..ae08b7d6 --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyHistory.js @@ -0,0 +1,282 @@ +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +/* src/PNotifyHistory.html generated by Svelte v2.6.3 */ +var PNotifyHistory = function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.History.defaults); + }; + + var methods = { + initModule: function initModule(options) { + this.set(options); + + if (this.get().history) { + // Don't destroy notices that are in history. + var _get = this.get(), + _notice = _get._notice; + + if (_notice.get().destroy) { + _notice.set({ 'destroy': false }); + } + } + }, + beforeOpen: function beforeOpen() { + var _get2 = this.get(), + maxInStack = _get2.maxInStack, + _options = _get2._options; + + if (maxInStack === Infinity) { + return; + } + + var stack = _options.stack; + if (stack === false) { + return; + } + + // Remove oldest notifications leaving only maxInStack from the stack. + if (PNotify.notices && PNotify.notices.length > maxInStack) { + // Oldest are normally in front of array, or if stack.push=='top' then + // they are at the end of the array! + var top = stack.push === 'top'; + var forRemoval = []; + var currentOpen = 0; + + for (var i = top ? 0 : PNotify.notices.length - 1; top ? i < PNotify.notices.length : i >= 0; top ? i++ : i--) { + if (['opening', 'open'].indexOf(PNotify.notices[i].get()._state) !== -1 && PNotify.notices[i].get().stack === stack) { + if (currentOpen >= maxInStack) { + forRemoval.push(PNotify.notices[i]); + } else { + currentOpen++; + } + } + } + + for (var _i = 0; _i < forRemoval.length; _i++) { + forRemoval[_i].close(false); + } + } + } + }; + + function setup(Component) { + Component.key = 'History'; + + Component.defaults = { + // Place the notice in the history. + history: true, + // Maximum number of notices to have open in its stack. + maxInStack: Infinity + }; + + Component.init = function (notice) { + return new Component({ target: document.body }); + }; + + Component.showLast = function (stack) { + if (stack === undefined) { + stack = PNotify.defaultStack; + } + if (stack === false) { + return; + } + var top = stack.push === 'top'; + + // Look up the last history notice, and display it. + var i = top ? 0 : PNotify.notices.length - 1; + + var notice = void 0; + do { + notice = PNotify.notices[i]; + + if (!notice) { + return; + } + + i += top ? 1 : -1; + } while (notice.get().stack !== stack || !notice.get()._modules.History.get().history || notice.get()._state === 'opening' || notice.get()._state === 'open'); + + notice.open(); + }; + + Component.showAll = function (stack) { + if (stack === undefined) { + stack = PNotify.defaultStack; + } + if (stack === false) { + return; + } + + // Display all notices. (Disregarding non-history notices.) + for (var i = 0; i < PNotify.notices.length; i++) { + var notice = PNotify.notices[i]; + if ((stack === true || notice.get().stack === stack) && notice.get()._modules.History.get().history) { + notice.open(); + } + } + }; + + // Register the module with PNotify. + PNotify.modules.History = Component; + }; + + function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; + } + + function PNotifyHistory(options) { + init(this, options); + this._state = assign(data(), options.data); + this._intro = true; + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } + } + + assign(PNotifyHistory.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyHistory.prototype, methods); + + PNotifyHistory.prototype._recompute = noop; + + setup(PNotifyHistory); + + function noop() {} + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + return PNotifyHistory; +}(PNotify); +//# sourceMappingURL=PNotifyHistory.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyHistory.js.map b/app/node_modules/pnotify/lib/iife/PNotifyHistory.js.map new file mode 100644 index 00000000..37889aa0 --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyHistory.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyHistory.html"],"names":[],"mappings":";;;;;;;;;;WA4ES,I,GAAG;AACN,WAAO,SAAc;AACnB,iBAAW,IADQ,EACJ;AACf,kBAAY,EAFO,CAEL;AAFK,KAAd,EAGJ,QAAQ,OAAR,CAAgB,OAAhB,CAAwB,QAHpB,CAAP;AAID;;gBAEQ;AACP,cADO,sBACK,OADL,EACc;AACnB,WAAK,GAAL,CAAS,OAAT;;AAEA,UAAI,KAAK,GAAL,GAAW,OAAf,EAAwB;AAC5B;AAD4B,mBAEJ,KAAK,GAAL,EAFI;AAAA,YAEf,OAFe,QAEf,OAFe;;AAGtB,YAAI,QAAQ,GAAR,GAAc,OAAlB,EAA2B;AACzB,kBAAQ,GAAR,CAAY,EAAC,WAAW,KAAZ,EAAZ;AACD;AACF;AACF,KAXM;AAaP,cAbO,wBAaO;AAAA,kBACmB,KAAK,GAAL,EADnB;AAAA,UACL,UADK,SACL,UADK;AAAA,UACO,QADP,SACO,QADP;;AAEZ,UAAI,eAAe,QAAnB,EAA6B;AAC3B;AACD;;AAED,UAAM,QAAQ,SAAS,KAAvB;AACA,UAAI,UAAU,KAAd,EAAqB;AACnB;AACD;;AAEL;AACI,UAAI,QAAQ,OAAR,IAAoB,QAAQ,OAAR,CAAgB,MAAh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UAAM,MAAO,MAAM,IAAN,KAAe,KAA5B;;AAEJ;AACI,UAAI,IAAK,MAAM,CAAN,GAAU,QAAQ,OAAR,CAAgB,MAAhB,GAAyB,CAA5C;;AAEA,UAAI,eAAJ;AACA,SAAG;AACD,iBAAS,QAAQ,OAAR,CAAgB,CAAhB,CAAT;;AAEA,YAAI,CAAC,MAAL,EAAa;AACX;AACD;;AAED,aAAM,MAAM,CAAN,GAAU,CAAC,CAAjB;AACD,OARD,QASE,OAAO,GAAP,GAAa,KAAb,KAAuB,KAAvB,IACA,CAAC,OAAO,GAAP,GAAa,QAAb,CAAsB,OAAtB,CAA8B,GAA9B,GAAoC,OADrC,IAEA,OAAO,GAAP,GAAa,MAAb,KAAwB,SAFxB,IAGA,OAAO,GAAP,GAAa,MAAb,KAAwB,MAZ1B;;AAeA,aAAO,IAAP;AACD,KA7BD;;AA+BA,cAAU,OAAV,GAAoB,UAAC,KAAD,EAAW;AAC7B,UAAI,UAAU,SAAd,EAAyB;AACvB,gBAAQ,QAAQ,YAAhB;AACD;AACD,UAAI,UAAU,KAAd,EAAqB;AACnB;AACD;;AAEL;AACI,WAAK,IAAI,IAAI,CAAb,EAAgB,IAAI,QAAQ,OAAR,CAAgB,MAApC,EAA4C,GAA5C,EAAiD;AAC/C,YAAM,SAAS,QAAQ,OAAR,CAAgB,CAAhB,CAAf;AACA,YACE,CACE,UAAU,IAAV,IACA,OAAO,GAAP,GAAa,KAAb,KAAuB,KAFzB,KAIA,OAAO,GAAP,GAAa,QAAb,CAAsB,OAAtB,CAA8B,GAA9B,GAAoC,OALtC,EAME;AACA,iBAAO,IAAP;AACD;AACF;AACF,KArBD;;AAuBF;AACE,YAAQ,OAAR,CAAgB,OAAhB,GAA0B,SAA1B;AACD","sourcesContent":["\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyMobile.js b/app/node_modules/pnotify/lib/iife/PNotifyMobile.js new file mode 100644 index 00000000..65887834 --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyMobile.js @@ -0,0 +1,433 @@ +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +/* src/PNotifyMobile.html generated by Svelte v2.6.3 */ +var PNotifyMobile = function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.Mobile.defaults); + }; + + var methods = { + initModule: function initModule(options) { + var _this = this; + + this.set(options); + + var _get = this.get(), + _notice = _get._notice; + + var origXY = null; + var diffXY = null; + var noticeWidthHeight = null; + var noticeOpacity = null; + var csspos = 'left'; + var direction = 'X'; + var span = 'Width'; + + _notice.on('touchstart', function (e) { + if (!_this.get().swipeDismiss) { + return; + } + + var _notice$get = _notice.get(), + stack = _notice$get.stack; + + if (stack !== false) { + switch (stack.dir1) { + case 'up': + case 'down': + csspos = 'left'; + direction = 'X'; + span = 'Width'; + break; + case 'left': + case 'right': + csspos = 'top'; + direction = 'Y'; + span = 'Height'; + break; + } + } + + origXY = e.touches[0]['screen' + direction]; + noticeWidthHeight = _notice.refs.elem['scroll' + span]; + noticeOpacity = window.getComputedStyle(_notice.refs.elem)['opacity']; + _notice.refs.container.style[csspos] = 0; + }); + + _notice.on('touchmove', function (e) { + if (!origXY || !_this.get().swipeDismiss) { + return; + } + + var curXY = e.touches[0]['screen' + direction]; + + diffXY = curXY - origXY; + var opacity = (1 - Math.abs(diffXY) / noticeWidthHeight) * noticeOpacity; + + _notice.refs.elem.style.opacity = opacity; + _notice.refs.container.style[csspos] = diffXY + 'px'; + }); + + _notice.on('touchend', function () { + if (!origXY || !_this.get().swipeDismiss) { + return; + } + + _notice.refs.container.classList.add('ui-pnotify-mobile-animate-left'); + if (Math.abs(diffXY) > 40) { + var goLeft = diffXY < 0 ? noticeWidthHeight * -2 : noticeWidthHeight * 2; + _notice.refs.elem.style.opacity = 0; + _notice.refs.container.style[csspos] = goLeft + 'px'; + _notice.close(); + } else { + _notice.refs.elem.style.removeProperty('opacity'); + _notice.refs.container.style.removeProperty(csspos); + } + origXY = null; + diffXY = null; + noticeWidthHeight = null; + noticeOpacity = null; + }); + + _notice.on('touchcancel', function () { + if (!origXY || !_this.get().swipeDismiss) { + return; + } + + _notice.refs.elem.style.removeProperty('opacity'); + _notice.refs.container.style.removeProperty(csspos); + origXY = null; + diffXY = null; + noticeWidthHeight = null; + noticeOpacity = null; + }); + + this.doMobileStyling(); + }, + update: function update() { + this.doMobileStyling(); + }, + beforeOpen: function beforeOpen() { + // Add an event listener to watch the window resizes. + window.addEventListener('resize', this.get()._doMobileStylingBound); + }, + afterClose: function afterClose() { + // Remove the event listener. + window.removeEventListener('resize', this.get()._doMobileStylingBound); + + // Remove any styling we added to close it. + if (!this.get().swipeDismiss) { + return; + } + + var _get2 = this.get(), + _notice = _get2._notice; + + _notice.refs.elem.style.removeProperty('opacity'); + _notice.refs.container.style.removeProperty('left'); + _notice.refs.container.style.removeProperty('top'); + }, + doMobileStyling: function doMobileStyling() { + var _get3 = this.get(), + _notice = _get3._notice; + + var _notice$get2 = _notice.get(), + stack = _notice$get2.stack; + + if (this.get().styling) { + if (stack !== false) { + if (window.innerWidth <= 480) { + if (!stack.mobileOrigSpacing1) { + stack.mobileOrigSpacing1 = stack.spacing1; + } + stack.spacing1 = 0; + if (!stack.mobileOrigFirstpos1) { + stack.mobileOrigFirstpos1 = stack.firstpos1; + } + stack.firstpos1 = 0; + if (!stack.mobileOrigSpacing2) { + stack.mobileOrigSpacing2 = stack.spacing2; + } + stack.spacing2 = 0; + if (!stack.mobileOrigFirstpos2) { + stack.mobileOrigFirstpos2 = stack.firstpos2; + } + stack.firstpos2 = 0; + } else { + if (stack.mobileOrigSpacing1) { + stack.spacing1 = stack.mobileOrigSpacing1; + delete stack.mobileOrigSpacing1; + } + if (stack.mobileOrigFirstpos1) { + stack.firstpos1 = stack.mobileOrigFirstpos1; + delete stack.mobileOrigFirstpos1; + } + if (stack.mobileOrigSpacing2) { + stack.spacing2 = stack.mobileOrigSpacing2; + delete stack.mobileOrigSpacing2; + } + if (stack.mobileOrigFirstpos2) { + stack.firstpos2 = stack.mobileOrigFirstpos2; + delete stack.mobileOrigFirstpos2; + } + } + switch (stack.dir1) { + case 'down': + _notice.addModuleClass('ui-pnotify-mobile-top'); + break; + case 'up': + _notice.addModuleClass('ui-pnotify-mobile-bottom'); + break; + case 'left': + _notice.addModuleClass('ui-pnotify-mobile-right'); + break; + case 'right': + _notice.addModuleClass('ui-pnotify-mobile-left'); + break; + } + } + + _notice.addModuleClass('ui-pnotify-mobile-able'); + } else { + _notice.removeModuleClass('ui-pnotify-mobile-able', 'ui-pnotify-mobile-top', 'ui-pnotify-mobile-bottom', 'ui-pnotify-mobile-right', 'ui-pnotify-mobile-left'); + + if (stack !== false) { + if (stack.mobileOrigSpacing1) { + stack.spacing1 = stack.mobileOrigSpacing1; + delete stack.mobileOrigSpacing1; + } + if (stack.mobileOrigFirstpos1) { + stack.firstpos1 = stack.mobileOrigFirstpos1; + delete stack.mobileOrigFirstpos1; + } + if (stack.mobileOrigSpacing2) { + stack.spacing2 = stack.mobileOrigSpacing2; + delete stack.mobileOrigSpacing2; + } + if (stack.mobileOrigFirstpos2) { + stack.firstpos2 = stack.mobileOrigFirstpos2; + delete stack.mobileOrigFirstpos2; + } + } + } + } + }; + + function oncreate() { + this.set({ '_doMobileStylingBound': this.doMobileStyling.bind(this) }); + }; + + function setup(Component) { + Component.key = 'Mobile'; + + Component.defaults = { + // Let the user swipe the notice away. + swipeDismiss: true, + // Styles the notice to look good on mobile. + styling: true + }; + + Component.init = function (notice) { + return new Component({ target: document.body }); + }; + + // Register the module with PNotify. + PNotify.modules.Mobile = Component; + }; + + function add_css() { + var style = createElement("style"); + style.id = 'svelte-49u8sj-style'; + style.textContent = "[ui-pnotify] .ui-pnotify-container{position:relative}[ui-pnotify] .ui-pnotify-mobile-animate-left{transition:left .1s ease}[ui-pnotify] .ui-pnotify-mobile-animate-top{transition:top .1s ease}@media(max-width: 480px){[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able{font-size:1.2em;-webkit-font-smoothing:antialiased;-moz-font-smoothing:antialiased;-ms-font-smoothing:antialiased;font-smoothing:antialiased}body > [ui-pnotify].ui-pnotify.ui-pnotify-mobile-able{position:fixed}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom{width:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right{height:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-shadow{border-bottom-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-shadow{border-top-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-shadow{border-right-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-shadow{border-left-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-container{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-container{width:auto !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-container{height:100% !important}}"; + appendNode(style, document.head); + } + + function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; + } + + function PNotifyMobile(options) { + var _this2 = this; + + init(this, options); + this._state = assign(data(), options.data); + this._intro = true; + + if (!document.getElementById("svelte-49u8sj-style")) add_css(); + + if (!options.root) { + this._oncreate = []; + } + + this._fragment = create_main_fragment(this, this._state); + + this.root._oncreate.push(function () { + oncreate.call(_this2); + _this2.fire("update", { changed: assignTrue({}, _this2._state), current: _this2._state }); + }); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + + callAll(this._oncreate); + } + } + + assign(PNotifyMobile.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyMobile.prototype, methods); + + PNotifyMobile.prototype._recompute = noop; + + setup(PNotifyMobile); + + function createElement(name) { + return document.createElement(name); + } + + function appendNode(node, target) { + target.appendChild(node); + } + + function noop() {} + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function assignTrue(tar, src) { + for (var k in src) { + tar[k] = 1; + }return tar; + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + return PNotifyMobile; +}(PNotify); +//# sourceMappingURL=PNotifyMobile.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyMobile.js.map b/app/node_modules/pnotify/lib/iife/PNotifyMobile.js.map new file mode 100644 index 00000000..c1010727 --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyMobile.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyMobile.html"],"names":[],"mappings":";;;;;;;;;;WA0BS,I,GAAG;AACN,WAAO,SAAc;AACnB,iBAAW,IADQ,EACJ;AACf,kBAAY,EAFO,CAEL;AAFK,KAAd,EAGJ,QAAQ,OAAR,CAAgB,MAAhB,CAAuB,QAHnB,CAAP;AA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AAU,KAAd,EAAqB;AACnB,cAAI,MAAM,kBAAV,EAA8B;AAC5B,kBAAM,QAAN,GAAiB,MAAM,kBAAvB;AACA,mBAAO,MAAM,kBAAb;AACD;AACD,cAAI,MAAM,mBAAV,EAA+B;AAC7B,kBAAM,SAAN,GAAkB,MAAM,mBAAxB;AACA,mBAAO,MAAM,mBAAb;AACD;AACD,cAAI,MAAM,kBAAV,EAA8B;AAC5B,kBAAM,QAAN,GAAiB,MAAM,kBAAvB;AACA,mBAAO,MAAM,kBAAb;AACD;AACD,cAAI,MAAM,mBAAV,EAA+B;AAC7B,kBAAM,SAAN,GAAkB,MAAM,mBAAxB;AACA,mBAAO,MAAM,mBAAb;AACD;AACF;AACF;AACF;AA3MM,G;;WAXA,Q,GAAG;AACV,SAAK,GAAL,CAAS,EAAC,yBAAyB,KAAK,eAAL,CAAqB,IAArB,CAA0B,IAA1B,CAA1B,EAAT;AACD;;WApBK,K,CAAC,S,EAAW;AAChB,cAAU,GAAV,GAAgB,QAAhB;;AAEA,cAAU,QAAV,GAAqB;AACvB;AACI,oBAAc,IAFK;AAGvB;AACI,eAAS;AAJU,KAArB;;AAOA,cAAU,IAAV,GAAiB,UAAC,MAAD,EAAY;AAC3B,aAAO,IAAI,SAAJ,CAAc,EAAC,QAAQ,SAAS,IAAlB,EAAd,CAAP;AACD,KAFD;;AAIF;AACE,YAAQ,OAAR,CAAgB,MAAhB,GAAyB,SAAzB;AACD","sourcesContent":["\n\n\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyNonBlock.js b/app/node_modules/pnotify/lib/iife/PNotifyNonBlock.js new file mode 100644 index 00000000..86501f26 --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyNonBlock.js @@ -0,0 +1,204 @@ +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +/* src/PNotifyNonBlock.html generated by Svelte v2.6.3 */ +var PNotifyNonBlock = function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.NonBlock.defaults); + }; + + var methods = { + initModule: function initModule(options) { + this.set(options); + this.doNonBlockClass(); + }, + update: function update() { + this.doNonBlockClass(); + }, + doNonBlockClass: function doNonBlockClass() { + if (this.get().nonblock) { + this.get()._notice.addModuleClass('nonblock'); + } else { + this.get()._notice.removeModuleClass('nonblock'); + } + } + }; + + function setup(Component) { + Component.key = 'NonBlock'; + + Component.defaults = { + // Use NonBlock.js to create a non-blocking notice. It lets the user click elements underneath it. + nonblock: false + }; + + Component.init = function (notice) { + return new Component({ target: document.body, + data: { + '_notice': notice + } }); + }; + + // Register the module with PNotify. + PNotify.modules.NonBlock = Component; + }; + + function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; + } + + function PNotifyNonBlock(options) { + init(this, options); + this._state = assign(data(), options.data); + this._intro = true; + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } + } + + assign(PNotifyNonBlock.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyNonBlock.prototype, methods); + + PNotifyNonBlock.prototype._recompute = noop; + + setup(PNotifyNonBlock); + + function noop() {} + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + return PNotifyNonBlock; +}(PNotify); +//# sourceMappingURL=PNotifyNonBlock.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyNonBlock.js.map b/app/node_modules/pnotify/lib/iife/PNotifyNonBlock.js.map new file mode 100644 index 00000000..02cdfb3a --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyNonBlock.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyNonBlock.html"],"names":[],"mappings":";;;;;;;;;;UAuBS,I,GAAG;AACN,SAAO,SAAc;AACnB,cAAW,IADQ,EACJ;AACf,eAAY,EAFO,CAEL;AAFK,GAAd,EAGJ,QAAQ,OAAR,CAAgB,QAAhB,CAAyB,QAHrB,CAAP;AAID;;eAEQ;AACP,YADO,sBACK,OADL,EACc;AACnB,QAAK,GAAL,CAAS,OAAT;AACA,QAAK,eAAL;AACD,GAJM;AAMP,QANO,oBAMG;AACR,QAAK,eAAL;AACD,GARM;AAUP,iBAVO,6BAUY;AACjB,OAAI,KAAK,GAAL,GAAW,QAAf,EAAyB;AACvB,SAAK,GAAL,GAAW,OAAX,CAAmB,cAAnB,CAAkC,UAAlC;AACD,IAFD,MAEO;AACL,SAAK,GAAL,GAAW,OAAX,CAAmB,iBAAnB,CAAqC,UAArC;AACD;AACF;AAhBM,E;;UA1BH,K,CAAC,S,EAAW;AAChB,YAAU,GAAV,GAAgB,UAAhB;;AAEA,YAAU,QAAV,GAAqB;AACvB;AACI,aAAU;AAFS,GAArB;;AAKA,YAAU,IAAV,GAAiB,UAAC,MAAD,EAAY;AAC3B,UAAO,IAAI,SAAJ,CAAc,EAAC,QAAQ,SAAS,IAAlB;AACnB,UAAM;AACJ,gBAAW;AADP,KADa,EAAd,CAAP;AAID,GALD;;AAOF;AACE,UAAQ,OAAR,CAAgB,QAAhB,GAA2B,SAA3B;AACD","sourcesContent":["\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyReference.js b/app/node_modules/pnotify/lib/iife/PNotifyReference.js new file mode 100644 index 00000000..2cafa903 --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyReference.js @@ -0,0 +1,440 @@ +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +/* src/PNotifyReference.html generated by Svelte v2.6.3 */ +var PNotifyReference = function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {}, // The options for the notice. + '_mouseIsIn': false + }, PNotify.modules.Reference.defaults); + }; + + var methods = { + // This method is called from the core to give us our actual options. + // Until it is called, our options will just be the defaults. + initModule: function initModule(options) { + var _this = this; + + // Set our options. + this.set(options); + // Now that the notice is available to us, we can listen to events fired + // from it. + + var _get = this.get(), + _notice = _get._notice; + + _notice.on('mouseenter', function () { + return _this.set({ '_mouseIsIn': true }); + }); + _notice.on('mouseleave', function () { + return _this.set({ '_mouseIsIn': false }); + }); + }, + doSomething: function doSomething() { + // Spin the notice around. + var curAngle = 0; + + var _get2 = this.get(), + _notice = _get2._notice; + + var timer = setInterval(function () { + curAngle += 10; + if (curAngle === 360) { + curAngle = 0; + clearInterval(timer); + } + _notice.refs.elem.style.transform = 'rotate(' + curAngle + 'deg)'; + }, 20); + }, + + + // I have nothing to put in these, just showing you that they exist. You + // won't need to include them if you aren't using them. + update: function update() { + // Called when the notice is updating its options. + }, + beforeOpen: function beforeOpen() { + // Called before the notice is opened. + }, + afterOpen: function afterOpen() { + // Called after the notice is opened. + }, + beforeClose: function beforeClose() { + // Called before the notice is closed. + }, + afterClose: function afterClose() { + // Called after the notice is closed. + }, + beforeDestroy: function beforeDestroy() { + // Called before the notice is destroyed. + }, + afterDestroy: function afterDestroy() { + // Called after the notice is destroyed. + } + }; + + function oncreate() { + // This is the second way to init a module. Because we put markup in the + // template, we have to fire this event to tell the core that we are ready + // to receive our options. + this.fire('init', { module: this }); + }; + + function setup(Component) { + // This is the key you use for registering your module with PNotify. + Component.key = 'Reference'; + + // This if the default values of your options. + Component.defaults = { + // Provide a thing for stuff. Turned off by default. + putThing: false, + // If you are displaying any text, you should use a labels options to + // support internationalization. + labels: { + text: 'Spin Around' + } + }; + + // This is the first way to init a module. If you aren't placing any + // markup in the template, you would do this. + // Component.init = (_notice) => { + // return new Component({target: document.body, data: {_notice}}); + // }; + + // Register the module with PNotify. + PNotify.modules.Reference = Component; + // Append our markup to the container. + PNotify.modulesAppendContainer.push(Component); + + // This is where you would add any styling or icons classes you are using in your code. + _extends(PNotify.icons.brighttheme, { + athing: 'bt-icon bt-icon-refresh' + }); + _extends(PNotify.icons.bootstrap3, { + athing: 'glyphicon glyphicon-refresh' + }); + _extends(PNotify.icons.fontawesome4, { + athing: 'fa fa-refresh' + }); + _extends(PNotify.icons.fontawesome5, { + athing: 'fas fa-sync' + }); + if (!PNotify.icons.material) { + PNotify.icons.material = {}; + } + _extends(PNotify.icons.material, { + athing: 'material-icons pnotify-material-icon-refresh' + }); + }; + + function add_css() { + var style = createElement("style"); + style.id = 'svelte-1qy4b0e-style'; + style.textContent = ".ui-pnotify-reference-button.svelte-1qy4b0e{float:right}.ui-pnotify-reference-clearing.svelte-1qy4b0e{clear:right;line-height:0}"; + appendNode(style, document.head); + } + + function create_main_fragment(component, ctx) { + var if_block_anchor; + + var if_block = ctx.putThing && create_if_block(component, ctx); + + return { + c: function c() { + if (if_block) if_block.c(); + if_block_anchor = createComment(); + }, + m: function m(target, anchor) { + if (if_block) if_block.m(target, anchor); + insertNode(if_block_anchor, target, anchor); + }, + p: function p(changed, ctx) { + if (ctx.putThing) { + if (if_block) { + if_block.p(changed, ctx); + } else { + if_block = create_if_block(component, ctx); + if_block.c(); + if_block.m(if_block_anchor.parentNode, if_block_anchor); + } + } else if (if_block) { + if_block.d(1); + if_block = null; + } + }, + d: function d(detach) { + if (if_block) if_block.d(detach); + if (detach) { + detachNode(if_block_anchor); + } + } + }; + } + + // (2:0) {#if putThing} + function create_if_block(component, ctx) { + var button, + i, + i_class_value, + text, + text_1_value = ctx.labels.text, + text_1, + button_disabled_value, + text_3, + div; + + function click_handler(event) { + component.doSomething(); + } + + return { + c: function c() { + button = createElement("button"); + i = createElement("i"); + text = createText(" "); + text_1 = createText(text_1_value); + text_3 = createText("\n \n "); + div = createElement("div"); + i.className = i_class_value = "" + ctx._notice.get()._icons.athing + " svelte-1qy4b0e"; + addListener(button, "click", click_handler); + button.className = "ui-pnotify-reference-button btn btn-default svelte-1qy4b0e"; + button.type = "button"; + button.disabled = button_disabled_value = !ctx._mouseIsIn; + div.className = "ui-pnotify-reference-clearing svelte-1qy4b0e"; + }, + m: function m(target, anchor) { + insertNode(button, target, anchor); + appendNode(i, button); + appendNode(text, button); + appendNode(text_1, button); + component.refs.thingElem = button; + insertNode(text_3, target, anchor); + insertNode(div, target, anchor); + }, + p: function p(changed, ctx) { + if (changed._notice && i_class_value !== (i_class_value = "" + ctx._notice.get()._icons.athing + " svelte-1qy4b0e")) { + i.className = i_class_value; + } + + if (changed.labels && text_1_value !== (text_1_value = ctx.labels.text)) { + text_1.data = text_1_value; + } + + if (changed._mouseIsIn && button_disabled_value !== (button_disabled_value = !ctx._mouseIsIn)) { + button.disabled = button_disabled_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(button); + } + + removeListener(button, "click", click_handler); + if (component.refs.thingElem === button) component.refs.thingElem = null; + if (detach) { + detachNode(text_3); + detachNode(div); + } + } + }; + } + + function PNotifyReference(options) { + var _this2 = this; + + init(this, options); + this.refs = {}; + this._state = assign(data(), options.data); + this._intro = true; + + if (!document.getElementById("svelte-1qy4b0e-style")) add_css(); + + if (!options.root) { + this._oncreate = []; + } + + this._fragment = create_main_fragment(this, this._state); + + this.root._oncreate.push(function () { + oncreate.call(_this2); + _this2.fire("update", { changed: assignTrue({}, _this2._state), current: _this2._state }); + }); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + + callAll(this._oncreate); + } + } + + assign(PNotifyReference.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyReference.prototype, methods); + + PNotifyReference.prototype._recompute = noop; + + setup(PNotifyReference); + + function createElement(name) { + return document.createElement(name); + } + + function appendNode(node, target) { + target.appendChild(node); + } + + function createComment() { + return document.createComment(''); + } + + function insertNode(node, target, anchor) { + target.insertBefore(node, anchor); + } + + function detachNode(node) { + node.parentNode.removeChild(node); + } + + function createText(data) { + return document.createTextNode(data); + } + + function addListener(node, event, handler) { + node.addEventListener(event, handler, false); + } + + function removeListener(node, event, handler) { + node.removeEventListener(event, handler, false); + } + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function assignTrue(tar, src) { + for (var k in src) { + tar[k] = 1; + }return tar; + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function noop() {} + + function blankObject() { + return Object.create(null); + } + return PNotifyReference; +}(PNotify); +//# sourceMappingURL=PNotifyReference.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyReference.js.map b/app/node_modules/pnotify/lib/iife/PNotifyReference.js.map new file mode 100644 index 00000000..0cc7b42a --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyReference.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyReference.html"],"names":[],"mappings":";;;;;;;;;;UA4ES,I,GAAG;AACN,SAAO,SAAc;AACnB,cAAW,IADQ,EACJ;AACf,eAAY,EAFO,EAEL;AACd,iBAAc;AAHK,GAAd,EAIJ,QAAQ,OAAR,CAAgB,SAAhB,CAA0B,QAJtB,CAAP;AAKD;;eAEQ;AACT;AACA;AACE,YAHO,sBAGK,OAHL,EAGc;AAAA;;AACvB;AACI,QAAK,GAAL,CAAS,OAAT;AACJ;AACA;;AAJuB,cAKD,KAAK,GAAL,EALC;AAAA,OAKZ,OALY,QAKZ,OALY;;AAMnB,WAAQ,EAAR,CAAW,YAAX,EAAyB;AAAA,WAAM,MAAK,GAAL,CAAS,EAAC,cAAc,IAAf,EAAT,CAAN;AAAA,IAAzB;AACA,WAAQ,EAAR,CAAW,YAAX,EAAyB;AAAA,WAAM,MAAK,GAAL,CAAS,EAAC,cAAc,KAAf,EAAT,CAAN;AAAA,IAAzB;AACD,GAXM;AAaP,aAbO,yBAaQ;AACjB;A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5B,EAA0C;AACxC,WAAQ;AADgC,GAA1C;AAGA,WAAc,QAAQ,KAAR,CAAc,YAA5B,EAA0C;AACxC,WAAQ;AADgC,GAA1C;AAGA,MAAI,CAAC,QAAQ,KAAR,CAAc,QAAnB,EAA6B;AAC3B,WAAQ,KAAR,CAAc,QAAd,GAAyB,EAAzB;AACD;AACD,WAAc,QAAQ,KAAR,CAAc,QAA5B,EAAsC;AACpC,WAAQ;AAD4B,GAAtC;AAGD;;;;;;;;;;;;qBAlEA,Q,IAAQ,gBAAA,SAAA,EAAA,GAAA,C;;;;;;;;;;;;YAAR,Q,EAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAWyC,M,CAAO,I;MAAI,M;MAAA,qB;MAAA,M;MAAA,G;;;aADjD,W;;;;;;;;;;;2CACD,O,CAAQ,G,GAAM,M,CAAO,M,GAAM,iB;;;;8CAFzB,CAAA,IAAC,U;;;;;;;;;;;;;uEAEH,O,CAAQ,G,GAAM,M,CAAO,M,GAAM,iB,GAAA;;;;+DAAY,M,CAAO,I,GAAI;;;;iFAFhD,CAAA,IAAC,U,GAAU","sourcesContent":["\n{#if putThing} \n \n \n  {labels.text}\n \n \n
\n{/if}\n\n\n\n\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyStyleMaterial.js b/app/node_modules/pnotify/lib/iife/PNotifyStyleMaterial.js new file mode 100644 index 00000000..2ba6b133 --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyStyleMaterial.js @@ -0,0 +1,210 @@ +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +/* src/PNotifyStyleMaterial.html generated by Svelte v2.6.3 */ +var PNotifyStyleMaterial = function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function setup(Component) { + Component.key = 'StyleMaterial'; + + // Register the module with PNotify. + PNotify.modules.StyleMaterial = Component; + // Prepend this module to the container. + PNotify.modulesPrependContainer.push(Component); + + if (!PNotify.styling.material) { + PNotify.styling.material = {}; + } + PNotify.styling.material = _extends(PNotify.styling.material, { + container: 'pnotify-material', + notice: 'pnotify-material-notice', + info: 'pnotify-material-info', + success: 'pnotify-material-success', + error: 'pnotify-material-error' + }); + + if (!PNotify.icons.material) { + PNotify.icons.material = {}; + } + PNotify.icons.material = _extends(PNotify.icons.material, { + notice: 'material-icons pnotify-material-icon-notice', + info: 'material-icons pnotify-material-icon-info', + success: 'material-icons pnotify-material-icon-success', + error: 'material-icons pnotify-material-icon-error', + closer: 'material-icons pnotify-material-icon-closer', + pinUp: 'material-icons pnotify-material-icon-sticker', + pinDown: 'material-icons pnotify-material-icon-sticker pnotify-material-icon-stuck' + }); + }; + + function add_css() { + var style = createElement("style"); + style.id = 'svelte-19og8nx-style'; + style.textContent = "[ui-pnotify] .pnotify-material{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;font-size:14px}[ui-pnotify] .pnotify-material.ui-pnotify-shadow{-webkit-box-shadow:0px 6px 24px 0px rgba(0,0,0,0.2);-moz-box-shadow:0px 6px 24px 0px rgba(0,0,0,0.2);box-shadow:0px 6px 24px 0px rgba(0,0,0,0.2)}[ui-pnotify] .pnotify-material.ui-pnotify-container{padding:24px}[ui-pnotify] .pnotify-material .ui-pnotify-title{font-size:20px;margin-bottom:20px;line-height:24px}[ui-pnotify] .pnotify-material .ui-pnotify-title:last-child{margin-bottom:0}[ui-pnotify] .pnotify-material .ui-pnotify-text{font-size:16px;line-height:24px}[ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-title,[ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-text,[ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-confirm{margin-left:32px}[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-title,[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-text,[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-confirm{margin-right:32px;margin-left:0}[ui-pnotify] .pnotify-material .ui-pnotify-action-bar{margin-top:20px;margin-right:-16px;margin-bottom:-16px}[dir=rtl] [ui-pnotify] .pnotify-material .ui-pnotify-action-bar{margin-left:-16px;margin-right:0}[ui-pnotify] .pnotify-material-notice{background-color:#FFEE58;border:none;color:#000}[ui-pnotify] .pnotify-material-info{background-color:#26C6DA;border:none;color:#000}[ui-pnotify] .pnotify-material-success{background-color:#66BB6A;border:none;color:#fff}[ui-pnotify] .pnotify-material-error{background-color:#EF5350;border:none;color:#fff}[ui-pnotify] .pnotify-material-icon-notice,[ui-pnotify] .pnotify-material-icon-info,[ui-pnotify] .pnotify-material-icon-success,[ui-pnotify] .pnotify-material-icon-error,[ui-pnotify] .pnotify-material-icon-closer,[ui-pnotify] .pnotify-material-icon-sticker{position:relative}[ui-pnotify] .pnotify-material-icon-closer,[ui-pnotify] .pnotify-material-icon-sticker{height:20px;width:20px;font-size:20px;line-height:20px;position:relative}[ui-pnotify] .pnotify-material-icon-notice:after,[ui-pnotify] .pnotify-material-icon-info:after,[ui-pnotify] .pnotify-material-icon-success:after,[ui-pnotify] .pnotify-material-icon-error:after,[ui-pnotify] .pnotify-material-icon-closer:after,[ui-pnotify] .pnotify-material-icon-sticker:after{font-family:'Material Icons'}[ui-pnotify] .pnotify-material-icon-notice:after{content:\"announcement\"}[ui-pnotify] .pnotify-material-icon-info:after{content:\"info\"}[ui-pnotify] .pnotify-material-icon-success:after{content:\"check_circle\"}[ui-pnotify] .pnotify-material-icon-error:after{content:\"error\"}[ui-pnotify] .pnotify-material-icon-closer,[ui-pnotify] .pnotify-material-icon-sticker{display:inline-block}[ui-pnotify] .pnotify-material-icon-closer:after{top:-4px;content:\"close\"}[ui-pnotify] .pnotify-material-icon-sticker:after{top:-5px;content:\"pause\"}[ui-pnotify] .pnotify-material-icon-sticker.pnotify-material-icon-stuck:after{content:\"play_arrow\"}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-prompt-input{display:block;width:100%;margin-bottom:8px;padding:15px 0 8px;background-color:transparent;color:inherit;border-radius:0;border-top:none;border-left:none;border-right:none;border-bottom-style:solid;border-bottom-color:inherit;border-bottom-width:1px}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-prompt-input:focus{outline:none;border-bottom-color:#3F51B5;border-bottom-width:2px}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button{position:relative;padding:0 16px;overflow:hidden;border-width:0;outline:none;border-radius:2px;background-color:transparent;color:inherit;transition:background-color .3s;text-transform:uppercase;height:36px;margin:6px;min-width:64px;font-weight:bold}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button.ui-pnotify-material-primary{color:#3F51B5}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button:hover,[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button:focus{background-color:rgba(0, 0, 0, .12);color:inherit}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button.ui-pnotify-material-primary:hover,[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button.ui-pnotify-material-primary:focus{color:#303F9F}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button:before{content:\"\";position:absolute;top:50%;left:50%;display:block;width:0;padding-top:0;border-radius:100%;background-color:rgba(153, 153, 153, .4);-webkit-transform:translate(-50%, -50%);-moz-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);-o-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button:active:before{width:120%;padding-top:120%;transition:width .2s ease-out, padding-top .2s ease-out}"; + appendNode(style, document.head); + } + + function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; + } + + function PNotifyStyleMaterial(options) { + init(this, options); + this._state = assign({}, options.data); + this._intro = true; + + if (!document.getElementById("svelte-19og8nx-style")) add_css(); + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } + } + + assign(PNotifyStyleMaterial.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + + PNotifyStyleMaterial.prototype._recompute = noop; + + setup(PNotifyStyleMaterial); + + function createElement(name) { + return document.createElement(name); + } + + function appendNode(node, target) { + target.appendChild(node); + } + + function noop() {} + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + return PNotifyStyleMaterial; +}(PNotify); +//# sourceMappingURL=PNotifyStyleMaterial.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/iife/PNotifyStyleMaterial.js.map b/app/node_modules/pnotify/lib/iife/PNotifyStyleMaterial.js.map new file mode 100644 index 00000000..c3cd7b73 --- /dev/null +++ b/app/node_modules/pnotify/lib/iife/PNotifyStyleMaterial.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyStyleMaterial.html"],"names":[],"mappings":";;;;;;;;;;UAIU,K,CAAC,S,EAAW;AAChB,YAAU,GAAV,GAAgB,eAAhB;;AAEF;AACE,UAAQ,OAAR,CAAgB,aAAhB,GAAgC,SAAhC;AACF;AACE,UAAQ,uBAAR,CAAgC,IAAhC,CAAqC,SAArC;;AAEA,MAAI,CAAC,QAAQ,OAAR,CAAgB,QAArB,EAA+B;AAC7B,WAAQ,OAAR,CAAgB,QAAhB,GAA2B,EAA3B;AACD;AACD,UAAQ,OAAR,CAAgB,QAAhB,GAA2B,SAAc,QAAQ,OAAR,CAAgB,QAA9B,EAAwC;AACjE,cAAW,kBADsD;AAEjE,WAAQ,yBAFyD;AAGjE,SAAM,uBAH2D;AAIjE,YAAS,0BAJwD;AAKjE,UAAO;AAL0D,GAAxC,CAA3B;;AAQA,MAAI,CAAC,QAAQ,KAAR,CAAc,QAAnB,EAA6B;AAC3B,WAAQ,KAAR,CAAc,QAAd,GAAyB,EAAzB;AACD;AACD,UAAQ,KAAR,CAAc,QAAd,GAAyB,SAAc,QAAQ,KAAR,CAAc,QAA5B,EAAsC;AAC7D,WAAQ,6CADqD;AAE7D,SAAM,2CAFuD;AAG7D,YAAS,8CAHoD;AAI7D,UAAO,4CAJsD;AAK7D,WAAQ,6CALqD;AAM7D,UAAO,8CANsD;AAO7D,YAAS;AAPoD,GAAtC,CAAzB;AASD","sourcesContent":["\n\n\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotify.js b/app/node_modules/pnotify/lib/umd/PNotify.js new file mode 100644 index 00000000..6ab47af3 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotify.js @@ -0,0 +1,1988 @@ +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +/* src/PNotify.html generated by Svelte v2.6.3 */ +(function (global, factory) { + (typeof exports === "undefined" ? "undefined" : _typeof(exports)) === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define('PNotify', factory) : global.PNotify = factory(); +})(this, function () { + "use strict"; + + var PNotify = void 0; + + var posTimer = void 0; // Position all timer. + + // These actions need to be done once the DOM is ready. + var onDocumentLoaded = function onDocumentLoaded() { + PNotify.defaultStack.context = document.body; + // Reposition the notices when the window resizes. + window.addEventListener('resize', function () { + if (posTimer) { + clearTimeout(posTimer); + } + posTimer = setTimeout(function () { + PNotify.positionAll(); + }, 10); + }); + }; + + // Creates the background overlay for modal stacks. + var createStackOverlay = function createStackOverlay(stack) { + var overlay = document.createElement('div'); + overlay.classList.add('ui-pnotify-modal-overlay'); + if (stack.context !== document.body) { + overlay.style.height = stack.context.scrollHeight + 'px'; + overlay.style.width = stack.context.scrollWidth + 'px'; + } + // Close the notices on overlay click. + overlay.addEventListener('click', function () { + if (stack.overlayClose) { + PNotify.closeStack(stack); + } + }); + stack.overlay = overlay; + }; + + var insertStackOverlay = function insertStackOverlay(stack) { + if (stack.overlay.parentNode !== stack.context) { + stack.overlay = stack.context.insertBefore(stack.overlay, stack.context.firstChild); + } + }; + + var removeStackOverlay = function removeStackOverlay(stack) { + if (stack.overlay.parentNode) { + stack.overlay.parentNode.removeChild(stack.overlay); + } + }; + + // Default arguments for the new notice helper functions. + var getDefaultArgs = function getDefaultArgs(options, type) { + if ((typeof options === "undefined" ? "undefined" : _typeof(options)) !== 'object') { + options = { 'text': options }; + } + + // Only assign the type if it was requested, so we don't overwrite + // options.type if it has something assigned. + if (type) { + options.type = type; + } + + return { target: document.body, data: options }; + }; + + function _styles(_ref) { + var styling = _ref.styling; + + return (typeof styling === "undefined" ? "undefined" : _typeof(styling)) === 'object' ? styling : PNotify.styling[styling]; + } + + function _icons(_ref2) { + var icons = _ref2.icons; + + return (typeof icons === "undefined" ? "undefined" : _typeof(icons)) === 'object' ? icons : PNotify.icons[icons]; + } + + function _widthStyle(_ref3) { + var width = _ref3.width; + + return typeof width === 'string' ? 'width: ' + width + ';' : ''; + } + + function _minHeightStyle(_ref4) { + var minHeight = _ref4.minHeight; + + return typeof minHeight === 'string' ? 'min-height: ' + minHeight + ';' : ''; + } + + function data() { + var data = _extends({ + '_state': 'initializing', // The state can be 'initializing', 'opening', 'open', 'closing', and 'closed'. + '_timer': null, // Auto close timer. + '_animTimer': null, // Animation timer. + '_animating': false, // Stores what is currently being animated (in or out). + '_animatingClass': '', // Stores the class that adds entry/exit animation effects. + '_moveClass': '', // Stores the class that adds movement animation effects. + '_timerHide': false, // Stores whether the notice was hidden by a timer. + '_moduleClasses': [], // Modules can add classes here to be added to the notice element. (They should play nice and not remove classes that aren't theirs.) + '_moduleIsNoticeOpen': false, // Modules that change how the notice displays (causing the notice element to not appear) can set this to true to make PNotify assume the notice has opened. + '_modules': {}, // Stores the instances of the modules. + '_modulesPrependContainer': PNotify.modulesPrependContainer, + '_modulesAppendContainer': PNotify.modulesAppendContainer + }, PNotify.defaults); + data.modules = _extends({}, PNotify.defaults.modules); + return data; + }; + + var methods = { + // This runs an event on all the modules. + runModules: function runModules(event) { + if (event === 'init') { + // Initializing a module should only be done if it has an init + // function, which means it's not rendered in the template. + for (var key in PNotify.modules) { + if (!PNotify.modules.hasOwnProperty(key)) { + continue; + } + if (typeof PNotify.modules[key].init === 'function') { + var _module = PNotify.modules[key].init(this); + this.initModule(_module); + } + } + } else { + var _get = this.get(), + _modules = _get._modules; + + for (var _module2 in _modules) { + if (!_modules.hasOwnProperty(_module2)) { + continue; + } + var moduleOptions = _extends({ + '_notice': this, + '_options': this.get() + }, this.get().modules[_module2]); + _modules[_module2].set(moduleOptions); + if (typeof _modules[_module2][event] === 'function') { + _modules[_module2][event](); + } + } + } + }, + + + // This passes module options to a module. + initModule: function initModule(module) { + var _get2 = this.get(), + modules = _get2.modules; + + if (!modules.hasOwnProperty(module.constructor.key)) { + modules[module.constructor.key] = {}; + } + var moduleOptions = _extends({ + '_notice': this, + '_options': this.get() + }, modules[module.constructor.key]); + module.initModule(moduleOptions); + + // Now save the module instance. + + var _get3 = this.get(), + _modules = _get3._modules; + + _modules[module.constructor.key] = module; + }, + update: function update(options) { + // Save old options. + var oldHide = this.get().hide; + var oldIcon = this.get().icon; + + this.set(options); + + // Run the modules. + this.runModules('update'); + + // Update the timed hiding. + if (!this.get().hide) { + this.cancelClose(); + } else if (!oldHide) { + this.queueClose(); + } + this.queuePosition(); + + // Font Awesome 5 replaces our lovely element with a gross SVG. In order + // to make it play nice with Svelte, we have to clear the element and + // make it again. + + var _get4 = this.get(), + icon = _get4.icon; + + if (icon !== oldIcon && (icon === true && this.get().icons === 'fontawesome5' || typeof icon === 'string' && icon.match(/(^| )fa[srlb]($| )/))) { + this.set({ 'icon': false }); + this.set({ 'icon': icon }); + } + + return this; + }, + + + // Display the notice. + open: function open() { + var _this = this; + + var _get5 = this.get(), + _state = _get5._state, + hide = _get5.hide; + + if (_state === 'opening') { + return; + } + if (_state === 'open') { + if (hide) { + this.queueClose(); + } + return; + } + this.set({ + '_state': 'opening', + // This makes the notice visibity: hidden; so its dimensions can be + // determined. + '_animatingClass': 'ui-pnotify-initial-hidden' + }); + // Run the modules. + this.runModules('beforeOpen'); + + var _get6 = this.get(), + stack = _get6.stack; + // If the notice is not in the DOM, or in the wrong context, append it. + + + if (!this.refs.elem.parentNode || stack && stack.context && stack.context !== this.refs.elem.parentNode) { + if (stack && stack.context) { + stack.context.appendChild(this.refs.elem); + } else if (document.body) { + document.body.appendChild(this.refs.elem); + } else { + throw new Error('No context to open this notice in.'); + } + } + + // Wait until the DOM is updated. + setTimeout(function () { + if (stack) { + // Mark the stack so it won't animate the new notice. + stack.animation = false; + // Now position all the notices. + PNotify.positionAll(); + // Reset animation. + stack.animation = true; + } + + _this.animateIn(function () { + // Now set it to hide. + if (_this.get().hide) { + _this.queueClose(); + } + + _this.set({ '_state': 'open' }); + + // Run the modules. + _this.runModules('afterOpen'); + }); + }, 0); + + return this; + }, + remove: function remove(timerHide) { + return this.close(timerHide); + }, + + + // Remove the notice. + close: function close(timerHide) { + var _this2 = this; + + var _get7 = this.get(), + _state = _get7._state; + + if (_state === 'closing' || _state === 'closed') { + return; + } + this.set({ '_state': 'closing', '_timerHide': !!timerHide }); // Make sure it's a boolean. + // Run the modules. + this.runModules('beforeClose'); + + var _get8 = this.get(), + _timer = _get8._timer; + + if (_timer && clearTimeout) { + clearTimeout(_timer); + this.set({ '_timer': null }); + } + this.animateOut(function () { + _this2.set({ '_state': 'closed' }); + // Run the modules. + _this2.runModules('afterClose'); + _this2.queuePosition(); + // If we're supposed to remove the notice from the DOM, do it. + if (_this2.get().remove) { + _this2.refs.elem.parentNode.removeChild(_this2.refs.elem); + } + // Run the modules. + _this2.runModules('beforeDestroy'); + // Remove object from PNotify.notices to prevent memory leak (issue #49) + // unless destroy is off + if (_this2.get().destroy) { + if (PNotify.notices !== null) { + var idx = PNotify.notices.indexOf(_this2); + if (idx !== -1) { + PNotify.notices.splice(idx, 1); + } + } + } + // Run the modules. + _this2.runModules('afterDestroy'); + }); + + return this; + }, + + + // Animate the notice in. + animateIn: function animateIn(callback) { + var _this3 = this; + + // Declare that the notice is animating in. + this.set({ '_animating': 'in' }); + var finished = function finished() { + _this3.refs.elem.removeEventListener('transitionend', finished); + + var _get9 = _this3.get(), + _animTimer = _get9._animTimer, + _animating = _get9._animating, + _moduleIsNoticeOpen = _get9._moduleIsNoticeOpen; + + if (_animTimer) { + clearTimeout(_animTimer); + } + if (_animating !== 'in') { + return; + } + var visible = _moduleIsNoticeOpen; + if (!visible) { + var domRect = _this3.refs.elem.getBoundingClientRect(); + for (var prop in domRect) { + if (domRect[prop] > 0) { + visible = true; + break; + } + } + } + if (visible) { + if (callback) { + callback.call(); + } + // Declare that the notice has completed animating. + _this3.set({ '_animating': false }); + } else { + _this3.set({ '_animTimer': setTimeout(finished, 40) }); + } + }; + + if (this.get().animation === 'fade') { + this.refs.elem.addEventListener('transitionend', finished); + this.set({ '_animatingClass': 'ui-pnotify-in' }); + // eslint-disable-next-line no-unused-expressions + this.refs.elem.style.opacity; // This line is necessary for some reason. Some notices don't fade without it. + this.set({ '_animatingClass': 'ui-pnotify-in ui-pnotify-fade-in' }); + // Just in case the event doesn't fire, call it after 650 ms. + this.set({ '_animTimer': setTimeout(finished, 650) }); + } else { + this.set({ '_animatingClass': 'ui-pnotify-in' }); + finished(); + } + }, + + + // Animate the notice out. + animateOut: function animateOut(callback) { + var _this4 = this; + + // Declare that the notice is animating out. + this.set({ '_animating': 'out' }); + var finished = function finished() { + _this4.refs.elem.removeEventListener('transitionend', finished); + + var _get10 = _this4.get(), + _animTimer = _get10._animTimer, + _animating = _get10._animating, + _moduleIsNoticeOpen = _get10._moduleIsNoticeOpen; + + if (_animTimer) { + clearTimeout(_animTimer); + } + if (_animating !== 'out') { + return; + } + var visible = _moduleIsNoticeOpen; + if (!visible) { + var domRect = _this4.refs.elem.getBoundingClientRect(); + for (var prop in domRect) { + if (domRect[prop] > 0) { + visible = true; + break; + } + } + } + if (!_this4.refs.elem.style.opacity || _this4.refs.elem.style.opacity === '0' || !visible) { + _this4.set({ '_animatingClass': '' }); + + var _get11 = _this4.get(), + stack = _get11.stack; + + if (stack && stack.overlay) { + // Go through the modal stack to see if any are left open. + // TODO: Rewrite this cause it sucks. + var stillOpen = false; + for (var i = 0; i < PNotify.notices.length; i++) { + var notice = PNotify.notices[i]; + if (notice !== _this4 && notice.get().stack === stack && notice.get()._state !== 'closed') { + stillOpen = true; + break; + } + } + if (!stillOpen) { + removeStackOverlay(stack); + } + } + if (callback) { + callback.call(); + } + // Declare that the notice has completed animating. + _this4.set({ '_animating': false }); + } else { + // In case this was called before the notice finished animating. + _this4.set({ '_animTimer': setTimeout(finished, 40) }); + } + }; + + if (this.get().animation === 'fade') { + this.refs.elem.addEventListener('transitionend', finished); + this.set({ '_animatingClass': 'ui-pnotify-in' }); + // Just in case the event doesn't fire, call it after 650 ms. + this.set({ '_animTimer': setTimeout(finished, 650) }); + } else { + this.set({ '_animatingClass': '' }); + finished(); + } + }, + + + // Position the notice. + position: function position() { + // Get the notice's stack. + var _get12 = this.get(), + stack = _get12.stack; + + var elem = this.refs.elem; + if (!stack) { + return; + } + if (!stack.context) { + stack.context = document.body; + } + if (typeof stack.nextpos1 !== 'number') { + stack.nextpos1 = stack.firstpos1; + } + if (typeof stack.nextpos2 !== 'number') { + stack.nextpos2 = stack.firstpos2; + } + if (typeof stack.addpos2 !== 'number') { + stack.addpos2 = 0; + } + + // Skip this notice if it's not shown. + if (!elem.classList.contains('ui-pnotify-in') && !elem.classList.contains('ui-pnotify-initial-hidden')) { + return this; + } + + if (stack.modal) { + if (!stack.overlay) { + createStackOverlay(stack); + } + insertStackOverlay(stack); + } + + // Read from the DOM to cause refresh. + elem.getBoundingClientRect(); + + if (stack.animation) { + // Add animate class. + this.set({ '_moveClass': 'ui-pnotify-move' }); + } + + var spaceY = stack.context === document.body ? window.innerHeight : stack.context.scrollHeight; + var spaceX = stack.context === document.body ? window.innerWidth : stack.context.scrollWidth; + + var csspos1 = void 0; + + if (stack.dir1) { + csspos1 = { + 'down': 'top', + 'up': 'bottom', + 'left': 'right', + 'right': 'left' + }[stack.dir1]; + + // Calculate the current pos1 value. + var curpos1 = void 0; + switch (stack.dir1) { + case 'down': + curpos1 = elem.offsetTop; + break; + case 'up': + curpos1 = spaceY - elem.scrollHeight - elem.offsetTop; + break; + case 'left': + curpos1 = spaceX - elem.scrollWidth - elem.offsetLeft; + break; + case 'right': + curpos1 = elem.offsetLeft; + break; + } + // Remember the first pos1, so the first notice goes there. + if (typeof stack.firstpos1 === 'undefined') { + stack.firstpos1 = curpos1; + stack.nextpos1 = stack.firstpos1; + } + } + + if (stack.dir1 && stack.dir2) { + var csspos2 = { + 'down': 'top', + 'up': 'bottom', + 'left': 'right', + 'right': 'left' + }[stack.dir2]; + + // Calculate the current pos2 value. + var curpos2 = void 0; + switch (stack.dir2) { + case 'down': + curpos2 = elem.offsetTop; + break; + case 'up': + curpos2 = spaceY - elem.scrollHeight - elem.offsetTop; + break; + case 'left': + curpos2 = spaceX - elem.scrollWidth - elem.offsetLeft; + break; + case 'right': + curpos2 = elem.offsetLeft; + break; + } + // Remember the first pos2, so the first notice goes there. + if (typeof stack.firstpos2 === 'undefined') { + stack.firstpos2 = curpos2; + stack.nextpos2 = stack.firstpos2; + } + + // Check that it's not beyond the viewport edge. + var endY = stack.nextpos1 + elem.offsetHeight + (typeof stack.spacing1 === 'undefined' ? 25 : stack.spacing1); + var endX = stack.nextpos1 + elem.offsetWidth + (typeof stack.spacing1 === 'undefined' ? 25 : stack.spacing1); + if ((stack.dir1 === 'down' || stack.dir1 === 'up') && endY > spaceY || (stack.dir1 === 'left' || stack.dir1 === 'right') && endX > spaceX) { + // If it is, it needs to go back to the first pos1, and over on pos2. + stack.nextpos1 = stack.firstpos1; + stack.nextpos2 += stack.addpos2 + (typeof stack.spacing2 === 'undefined' ? 25 : stack.spacing2); + stack.addpos2 = 0; + } + + // Move the notice on dir2. + if (typeof stack.nextpos2 === 'number') { + elem.style[csspos2] = stack.nextpos2 + 'px'; + if (!stack.animation) { + // eslint-disable-next-line no-unused-expressions + elem.style[csspos2]; // Read from the DOM for update. + } + } + + // Keep track of the widest/tallest notice in the column/row, so we can push the next column/row. + switch (stack.dir2) { + case 'down': + case 'up': + if (elem.offsetHeight + (parseFloat(elem.style.marginTop, 10) || 0) + (parseFloat(elem.style.marginBottom, 10) || 0) > stack.addpos2) { + stack.addpos2 = elem.offsetHeight; + } + break; + case 'left': + case 'right': + if (elem.offsetWidth + (parseFloat(elem.style.marginLeft, 10) || 0) + (parseFloat(elem.style.marginRight, 10) || 0) > stack.addpos2) { + stack.addpos2 = elem.offsetWidth; + } + break; + } + } else if (stack.dir1) { + // Center the notice along dir1 axis, because the stack has no dir2. + var cssMiddle = void 0, + cssposCross = void 0; + switch (stack.dir1) { + case 'down': + case 'up': + cssposCross = ['left', 'right']; + cssMiddle = stack.context.scrollWidth / 2 - elem.offsetWidth / 2; + break; + case 'left': + case 'right': + cssposCross = ['top', 'bottom']; + cssMiddle = spaceY / 2 - elem.offsetHeight / 2; + break; + } + elem.style[cssposCross[0]] = cssMiddle + 'px'; + elem.style[cssposCross[1]] = 'auto'; + if (!stack.animation) { + // eslint-disable-next-line no-unused-expressions + elem.style[cssposCross[0]]; // Read from the DOM for update. + } + } + + if (stack.dir1) { + // Move the notice on dir1. + if (typeof stack.nextpos1 === 'number') { + elem.style[csspos1] = stack.nextpos1 + 'px'; + if (!stack.animation) { + // eslint-disable-next-line no-unused-expressions + elem.style[csspos1]; // Read from the DOM for update. + } + } + + // Calculate the next dir1 position. + switch (stack.dir1) { + case 'down': + case 'up': + stack.nextpos1 += elem.offsetHeight + (typeof stack.spacing1 === 'undefined' ? 25 : stack.spacing1); + break; + case 'left': + case 'right': + stack.nextpos1 += elem.offsetWidth + (typeof stack.spacing1 === 'undefined' ? 25 : stack.spacing1); + break; + } + } else { + // Center the notice on the screen, because the stack has no dir1. + var cssMiddleLeft = spaceX / 2 - elem.offsetWidth / 2; + var cssMiddleTop = spaceY / 2 - elem.offsetHeight / 2; + elem.style.left = cssMiddleLeft + 'px'; + elem.style.top = cssMiddleTop + 'px'; + if (!stack.animation) { + // eslint-disable-next-line no-unused-expressions + elem.style.left; // Read from the DOM for update. + } + } + + return this; + }, + + + // Queue the position all function so it doesn't run repeatedly and + // use up resources. + queuePosition: function queuePosition(milliseconds) { + if (posTimer) { + clearTimeout(posTimer); + } + if (!milliseconds) { + milliseconds = 10; + } + posTimer = setTimeout(function () { + PNotify.positionAll(); + }, milliseconds); + return this; + }, + cancelRemove: function cancelRemove() { + return this.cancelClose(); + }, + + + // Cancel any pending removal timer. + cancelClose: function cancelClose() { + var _get13 = this.get(), + _timer = _get13._timer, + _animTimer = _get13._animTimer, + _state = _get13._state, + animation = _get13.animation; + + if (_timer) { + clearTimeout(_timer); + } + if (_animTimer) { + clearTimeout(_animTimer); + } + if (_state === 'closing') { + // If it's animating out, stop it. + this.set({ + '_state': 'open', + '_animating': false, + '_animatingClass': animation === 'fade' ? 'ui-pnotify-in ui-pnotify-fade-in' : 'ui-pnotify-in' + }); + } + return this; + }, + queueRemove: function queueRemove() { + return this.queueClose(); + }, + + + // Queue a close timer. + queueClose: function queueClose() { + var _this5 = this; + + // Cancel any current close timer. + this.cancelClose(); + this.set({ + '_timer': setTimeout(function () { + return _this5.close(true); + }, isNaN(this.get().delay) ? 0 : this.get().delay) + }); + return this; + }, + addModuleClass: function addModuleClass() { + var _get14 = this.get(), + _moduleClasses = _get14._moduleClasses; + + for (var _len = arguments.length, classNames = Array(_len), _key = 0; _key < _len; _key++) { + classNames[_key] = arguments[_key]; + } + + for (var i = 0; i < classNames.length; i++) { + var className = classNames[i]; + if (_moduleClasses.indexOf(className) === -1) { + _moduleClasses.push(className); + } + } + this.set({ _moduleClasses: _moduleClasses }); + }, + removeModuleClass: function removeModuleClass() { + var _get15 = this.get(), + _moduleClasses = _get15._moduleClasses; + + for (var _len2 = arguments.length, classNames = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + classNames[_key2] = arguments[_key2]; + } + + for (var i = 0; i < classNames.length; i++) { + var className = classNames[i]; + var idx = _moduleClasses.indexOf(className); + if (idx !== -1) { + _moduleClasses.splice(idx, 1); + } + } + this.set({ _moduleClasses: _moduleClasses }); + }, + hasModuleClass: function hasModuleClass() { + var _get16 = this.get(), + _moduleClasses = _get16._moduleClasses; + + for (var _len3 = arguments.length, classNames = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { + classNames[_key3] = arguments[_key3]; + } + + for (var i = 0; i < classNames.length; i++) { + var className = classNames[i]; + if (_moduleClasses.indexOf(className) === -1) { + return false; + } + } + return true; + } + }; + + function oncreate() { + var _this6 = this; + + this.on('mouseenter', function (e) { + // Stop animation, reset the removal timer when the user mouses over. + if (_this6.get().mouseReset && _this6.get()._animating === 'out') { + if (!_this6.get()._timerHide) { + return; + } + _this6.cancelClose(); + } + // Stop the close timer. + if (_this6.get().hide && _this6.get().mouseReset) { + _this6.cancelClose(); + } + }); + + this.on('mouseleave', function (e) { + // Start the close timer. + if (_this6.get().hide && _this6.get().mouseReset && _this6.get()._animating !== 'out') { + _this6.queueClose(); + } + PNotify.positionAll(); + }); + + var _get17 = this.get(), + stack = _get17.stack; + + // Add the notice to the notice array. + + + if (stack && stack.push === 'top') { + PNotify.notices.splice(0, 0, this); + } else { + PNotify.notices.push(this); + } + + // Run the modules. + this.runModules('init'); + + // We're now initialized, but haven't been opened yet. + this.set({ '_state': 'closed' }); + + // Display the notice. + if (this.get().autoDisplay) { + this.open(); + } + }; + + function setup(Component) { + // Add static properties to the PNotify object. + PNotify = Component; + + PNotify.VERSION = '4.0.0-alpha.3'; + + PNotify.defaultStack = { + dir1: 'down', + dir2: 'left', + firstpos1: 25, + firstpos2: 25, + spacing1: 36, + spacing2: 36, + push: 'bottom', + context: window && document.body + }; + + PNotify.defaults = { + // The notice's title. + title: false, + // Whether to trust the title or escape its contents. (Not allow HTML.) + titleTrusted: false, + // The notice's text. + text: false, + // Whether to trust the text or escape its contents. (Not allow HTML.) + textTrusted: false, + // What styling classes to use. (Can be 'brighttheme', 'bootstrap3', 'bootstrap4', or a styling object.) + styling: 'brighttheme', + // What icons to use (Can be 'brighttheme', 'bootstrap3', 'fontawesome4', 'fontawesome5', or an icon object.) + icons: 'brighttheme', + // Additional classes to be added to the notice. (For custom styling.) + addClass: '', + // Class to be added to the notice for corner styling. + cornerClass: '', + // Display the notice when it is created. + autoDisplay: true, + // Width of the notice. + width: '360px', + // Minimum height of the notice. It will expand to fit content. + minHeight: '16px', + // Type of the notice. 'notice', 'info', 'success', or 'error'. + type: 'notice', + // Set icon to true to use the default icon for the selected + // style/type, false for no icon, or a string for your own icon class. + icon: true, + // The animation to use when displaying and hiding the notice. 'none' + // and 'fade' are supported through CSS. Others are supported + // through the Animate module and Animate.css. + animation: 'fade', + // Speed at which the notice animates in and out. 'slow', 'normal', + // or 'fast'. Respectively, 400ms, 250ms, 100ms. + animateSpeed: 'normal', + // Display a drop shadow. + shadow: true, + // After a delay, remove the notice. + hide: true, + // Delay in milliseconds before the notice is removed. + delay: 8000, + // Reset the hide timer if the mouse moves over the notice. + mouseReset: true, + // Remove the notice's elements from the DOM after it is removed. + remove: true, + // Whether to remove the notice from the global array when it is closed. + destroy: true, + // The stack on which the notices will be placed. Also controls the + // direction the notices stack. + stack: PNotify.defaultStack, + // This is where options for modules should be defined. + modules: {} + }; + + // An array of all active notices. + PNotify.notices = []; + + // This object holds all the PNotify modules. They are used to provide + // additional functionality. + PNotify.modules = {}; + + // Modules can add themselves to these to be rendered in the template. + PNotify.modulesPrependContainer = []; + PNotify.modulesAppendContainer = []; + + // Helper function to create a new notice. + PNotify.alert = function (options) { + return new PNotify(getDefaultArgs(options)); + }; + // Helper function to create a new notice (notice type). + PNotify.notice = function (options) { + return new PNotify(getDefaultArgs(options, 'notice')); + }; + // Helper function to create a new notice (info type). + PNotify.info = function (options) { + return new PNotify(getDefaultArgs(options, 'info')); + }; + // Helper function to create a new notice (success type). + PNotify.success = function (options) { + return new PNotify(getDefaultArgs(options, 'success')); + }; + // Helper function to create a new notice (error type). + PNotify.error = function (options) { + return new PNotify(getDefaultArgs(options, 'error')); + }; + + PNotify.removeAll = function () { + PNotify.closeAll(); + }; + + // Close all notices. + PNotify.closeAll = function () { + for (var i = 0; i < PNotify.notices.length; i++) { + if (PNotify.notices[i].close) { + PNotify.notices[i].close(false); + } + } + }; + + PNotify.removeStack = function (stack) { + PNotify.closeStack(stack); + }; + + // Close all notices in a single stack. + PNotify.closeStack = function (stack) { + if (stack === false) { + return; + } + for (var i = 0; i < PNotify.notices.length; i++) { + if (PNotify.notices[i].close && PNotify.notices[i].get().stack === stack) { + PNotify.notices[i].close(false); + } + } + }; + + // Position all notices. + PNotify.positionAll = function () { + // This timer is used for queueing this function so it doesn't run + // repeatedly. + if (posTimer) { + clearTimeout(posTimer); + } + posTimer = null; + // Reset the next position data. + if (PNotify.notices.length > 0) { + for (var i = 0; i < PNotify.notices.length; i++) { + var notice = PNotify.notices[i]; + + var _notice$get = notice.get(), + stack = _notice$get.stack; + + if (!stack) { + continue; + } + if (stack.overlay) { + removeStackOverlay(stack); + } + stack.nextpos1 = stack.firstpos1; + stack.nextpos2 = stack.firstpos2; + stack.addpos2 = 0; + } + for (var _i = 0; _i < PNotify.notices.length; _i++) { + PNotify.notices[_i].position(); + } + } else { + delete PNotify.defaultStack.nextpos1; + delete PNotify.defaultStack.nextpos2; + } + }; + + PNotify.styling = { + brighttheme: { + // Bright Theme doesn't require any UI libraries. + container: 'brighttheme', + notice: 'brighttheme-notice', + info: 'brighttheme-info', + success: 'brighttheme-success', + error: 'brighttheme-error' + }, + bootstrap3: { + container: 'alert', + notice: 'alert-warning', + info: 'alert-info', + success: 'alert-success', + error: 'alert-danger', + icon: 'ui-pnotify-icon-bs3' + }, + bootstrap4: { + container: 'alert', + notice: 'alert-warning', + info: 'alert-info', + success: 'alert-success', + error: 'alert-danger', + icon: 'ui-pnotify-icon-bs4', + title: 'ui-pnotify-title-bs4' + } + }; + + // icons are separate from the style, since bs4 doesn't come with any + PNotify.icons = { + brighttheme: { + notice: 'brighttheme-icon-notice', + info: 'brighttheme-icon-info', + success: 'brighttheme-icon-success', + error: 'brighttheme-icon-error' + }, + bootstrap3: { + notice: 'glyphicon glyphicon-exclamation-sign', + info: 'glyphicon glyphicon-info-sign', + success: 'glyphicon glyphicon-ok-sign', + error: 'glyphicon glyphicon-warning-sign' + }, + // User must have Font Awesome v4.0+ + fontawesome4: { + notice: 'fa fa-exclamation-circle', + info: 'fa fa-info-circle', + success: 'fa fa-check-circle', + error: 'fa fa-exclamation-triangle' + }, + // User must have Font Awesome v5.0+ + fontawesome5: { + notice: 'fas fa-exclamation-circle', + info: 'fas fa-info-circle', + success: 'fas fa-check-circle', + error: 'fas fa-exclamation-triangle' + } + }; + + // Run the deferred actions once the DOM is ready. + if (window && document.body) { + onDocumentLoaded(); + } else { + document.addEventListener('DOMContentLoaded', onDocumentLoaded); + } + } + + function add_css() { + var style = createElement("style"); + style.id = 'svelte-1eldsjg-style'; + style.textContent = "body > .ui-pnotify{position:fixed;z-index:100040}body > .ui-pnotify.ui-pnotify-modal{z-index:100042}.ui-pnotify{position:absolute;height:auto;z-index:1;display:none}.ui-pnotify.ui-pnotify-modal{z-index:3}.ui-pnotify.ui-pnotify-in{display:block}.ui-pnotify.ui-pnotify-initial-hidden{display:block;visibility:hidden}.ui-pnotify.ui-pnotify-move{transition:left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-slow{transition:opacity .4s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-slow.ui-pnotify.ui-pnotify-move{transition:opacity .4s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-normal{transition:opacity .25s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-normal.ui-pnotify.ui-pnotify-move{transition:opacity .25s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-fast{transition:opacity .1s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-fast.ui-pnotify.ui-pnotify-move{transition:opacity .1s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-in{opacity:1}.ui-pnotify .ui-pnotify-shadow{-webkit-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);-moz-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1)}.ui-pnotify-container{background-position:0 0;padding:.8em;height:100%;margin:0}.ui-pnotify-container:after{content:\" \";visibility:hidden;display:block;height:0;clear:both}.ui-pnotify-container.ui-pnotify-sharp{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ui-pnotify-title{display:block;white-space:pre-line;margin-bottom:.4em;margin-top:0}.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-left:24px}[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-right:24px;margin-left:0}.ui-pnotify-title-bs4{font-size:1.2rem}.ui-pnotify-text{display:block;white-space:pre-line}.ui-pnotify-icon,.ui-pnotify-icon span{display:block;float:left}[dir=rtl] .ui-pnotify-icon,[dir=rtl] .ui-pnotify-icon span{float:right}.ui-pnotify-icon-bs3 > span{position:relative;top:2px}.ui-pnotify-icon-bs4 > span{position:relative;top:4px}.ui-pnotify-modal-overlay{background-color:rgba(0, 0, 0, .4);top:0;left:0;position:absolute;height:100%;width:100%;z-index:2}body > .ui-pnotify-modal-overlay{position:fixed;z-index:100041}"; + appendNode(style, document.head); + } + + function create_main_fragment(component, ctx) { + var div, + div_1, + each_blocks_1 = [], + each_lookup = blankObject(), + text, + text_1, + text_2, + text_3, + each_1_blocks_1 = [], + each_1_lookup = blankObject(), + div_1_class_value, + div_1_style_value, + div_class_value; + + var each_value = ctx._modulesPrependContainer; + + var get_key = function get_key(ctx) { + return ctx.module.key; + }; + + for (var i = 0; i < each_value.length; i += 1) { + var child_ctx = get_each_context(ctx, each_value, i); + var key = get_key(child_ctx); + each_blocks_1[i] = each_lookup[key] = create_each_block(component, key, child_ctx); + } + + var if_block = ctx.icon !== false && create_if_block(component, ctx); + + var if_block_1 = ctx.title !== false && create_if_block_1(component, ctx); + + var if_block_2 = ctx.text !== false && create_if_block_4(component, ctx); + + var each_value_1 = ctx._modulesAppendContainer; + + var get_key_1 = function get_key_1(ctx) { + return ctx.module.key; + }; + + for (var i = 0; i < each_value_1.length; i += 1) { + var _child_ctx = get_each_1_context(ctx, each_value_1, i); + var _key4 = get_key_1(_child_ctx); + each_1_blocks_1[i] = each_1_lookup[_key4] = create_each_block_1(component, _key4, _child_ctx); + } + + function mouseover_handler(event) { + component.fire("mouseover", event); + } + + function mouseout_handler(event) { + component.fire("mouseout", event); + } + + function mouseenter_handler(event) { + component.fire("mouseenter", event); + } + + function mouseleave_handler(event) { + component.fire("mouseleave", event); + } + + function mousemove_handler(event) { + component.fire("mousemove", event); + } + + function mousedown_handler(event) { + component.fire("mousedown", event); + } + + function mouseup_handler(event) { + component.fire("mouseup", event); + } + + function click_handler(event) { + component.fire("click", event); + } + + function dblclick_handler(event) { + component.fire("dblclick", event); + } + + function focus_handler(event) { + component.fire("focus", event); + } + + function blur_handler(event) { + component.fire("blur", event); + } + + function touchstart_handler(event) { + component.fire("touchstart", event); + } + + function touchmove_handler(event) { + component.fire("touchmove", event); + } + + function touchend_handler(event) { + component.fire("touchend", event); + } + + function touchcancel_handler(event) { + component.fire("touchcancel", event); + } + + return { + c: function c() { + div = createElement("div"); + div_1 = createElement("div"); + + for (i = 0; i < each_blocks_1.length; i += 1) { + each_blocks_1[i].c(); + }text = createText("\n "); + if (if_block) if_block.c(); + text_1 = createText("\n "); + if (if_block_1) if_block_1.c(); + text_2 = createText("\n "); + if (if_block_2) if_block_2.c(); + text_3 = createText("\n "); + + for (i = 0; i < each_1_blocks_1.length; i += 1) { + each_1_blocks_1[i].c(); + }div_1.className = div_1_class_value = "\n ui-pnotify-container\n " + (ctx._styles.container ? ctx._styles.container : '') + "\n " + (ctx._styles[ctx.type] ? ctx._styles[ctx.type] : '') + "\n " + ctx.cornerClass + "\n " + (ctx.shadow ? 'ui-pnotify-shadow' : '') + "\n "; + div_1.style.cssText = div_1_style_value = "" + ctx._widthStyle + " " + ctx._minHeightStyle; + setAttribute(div_1, "role", "alert"); + addListener(div, "mouseover", mouseover_handler); + addListener(div, "mouseout", mouseout_handler); + addListener(div, "mouseenter", mouseenter_handler); + addListener(div, "mouseleave", mouseleave_handler); + addListener(div, "mousemove", mousemove_handler); + addListener(div, "mousedown", mousedown_handler); + addListener(div, "mouseup", mouseup_handler); + addListener(div, "click", click_handler); + addListener(div, "dblclick", dblclick_handler); + addListener(div, "focus", focus_handler); + addListener(div, "blur", blur_handler); + addListener(div, "touchstart", touchstart_handler); + addListener(div, "touchmove", touchmove_handler); + addListener(div, "touchend", touchend_handler); + addListener(div, "touchcancel", touchcancel_handler); + div.className = div_class_value = "\n ui-pnotify\n " + (ctx.icon !== false ? 'ui-pnotify-with-icon' : '') + "\n " + (ctx._styles.element ? ctx._styles.element : '') + "\n " + ctx.addClass + "\n " + ctx._animatingClass + "\n " + ctx._moveClass + "\n " + (ctx.animation === 'fade' ? 'ui-pnotify-fade-' + ctx.animateSpeed : '') + "\n " + (ctx.stack && ctx.stack.modal ? 'ui-pnotify-modal' : '') + "\n " + ctx._moduleClasses.join(' ') + "\n "; + setAttribute(div, "aria-live", "assertive"); + setAttribute(div, "role", "alertdialog"); + setAttribute(div, "ui-pnotify", true); + }, + m: function m(target, anchor) { + insertNode(div, target, anchor); + appendNode(div_1, div); + + for (i = 0; i < each_blocks_1.length; i += 1) { + each_blocks_1[i].m(div_1, null); + }appendNode(text, div_1); + if (if_block) if_block.m(div_1, null); + appendNode(text_1, div_1); + if (if_block_1) if_block_1.m(div_1, null); + appendNode(text_2, div_1); + if (if_block_2) if_block_2.m(div_1, null); + appendNode(text_3, div_1); + + for (i = 0; i < each_1_blocks_1.length; i += 1) { + each_1_blocks_1[i].m(div_1, null); + }component.refs.container = div_1; + component.refs.elem = div; + }, + p: function p(changed, ctx) { + var each_value = ctx._modulesPrependContainer; + each_blocks_1 = updateKeyedEach(each_blocks_1, component, changed, get_key, 0, ctx, each_value, each_lookup, div_1, destroyBlock, create_each_block, "m", text, get_each_context); + + if (ctx.icon !== false) { + if (if_block) { + if_block.p(changed, ctx); + } else { + if_block = create_if_block(component, ctx); + if_block.c(); + if_block.m(div_1, text_1); + } + } else if (if_block) { + if_block.d(1); + if_block = null; + } + + if (ctx.title !== false) { + if (if_block_1) { + if_block_1.p(changed, ctx); + } else { + if_block_1 = create_if_block_1(component, ctx); + if_block_1.c(); + if_block_1.m(div_1, text_2); + } + } else if (if_block_1) { + if_block_1.d(1); + if_block_1 = null; + } + + if (ctx.text !== false) { + if (if_block_2) { + if_block_2.p(changed, ctx); + } else { + if_block_2 = create_if_block_4(component, ctx); + if_block_2.c(); + if_block_2.m(div_1, text_3); + } + } else if (if_block_2) { + if_block_2.d(1); + if_block_2 = null; + } + + var each_value_1 = ctx._modulesAppendContainer; + each_1_blocks_1 = updateKeyedEach(each_1_blocks_1, component, changed, get_key_1, 0, ctx, each_value_1, each_1_lookup, div_1, destroyBlock, create_each_block_1, "m", null, get_each_1_context); + + if ((changed._styles || changed.type || changed.cornerClass || changed.shadow) && div_1_class_value !== (div_1_class_value = "\n ui-pnotify-container\n " + (ctx._styles.container ? ctx._styles.container : '') + "\n " + (ctx._styles[ctx.type] ? ctx._styles[ctx.type] : '') + "\n " + ctx.cornerClass + "\n " + (ctx.shadow ? 'ui-pnotify-shadow' : '') + "\n ")) { + div_1.className = div_1_class_value; + } + + if ((changed._widthStyle || changed._minHeightStyle) && div_1_style_value !== (div_1_style_value = "" + ctx._widthStyle + " " + ctx._minHeightStyle)) { + div_1.style.cssText = div_1_style_value; + } + + if ((changed.icon || changed._styles || changed.addClass || changed._animatingClass || changed._moveClass || changed.animation || changed.animateSpeed || changed.stack || changed._moduleClasses) && div_class_value !== (div_class_value = "\n ui-pnotify\n " + (ctx.icon !== false ? 'ui-pnotify-with-icon' : '') + "\n " + (ctx._styles.element ? ctx._styles.element : '') + "\n " + ctx.addClass + "\n " + ctx._animatingClass + "\n " + ctx._moveClass + "\n " + (ctx.animation === 'fade' ? 'ui-pnotify-fade-' + ctx.animateSpeed : '') + "\n " + (ctx.stack && ctx.stack.modal ? 'ui-pnotify-modal' : '') + "\n " + ctx._moduleClasses.join(' ') + "\n ")) { + div.className = div_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(div); + } + + for (i = 0; i < each_blocks_1.length; i += 1) { + each_blocks_1[i].d(); + }if (if_block) if_block.d(); + if (if_block_1) if_block_1.d(); + if (if_block_2) if_block_2.d(); + + for (i = 0; i < each_1_blocks_1.length; i += 1) { + each_1_blocks_1[i].d(); + }if (component.refs.container === div_1) component.refs.container = null; + removeListener(div, "mouseover", mouseover_handler); + removeListener(div, "mouseout", mouseout_handler); + removeListener(div, "mouseenter", mouseenter_handler); + removeListener(div, "mouseleave", mouseleave_handler); + removeListener(div, "mousemove", mousemove_handler); + removeListener(div, "mousedown", mousedown_handler); + removeListener(div, "mouseup", mouseup_handler); + removeListener(div, "click", click_handler); + removeListener(div, "dblclick", dblclick_handler); + removeListener(div, "focus", focus_handler); + removeListener(div, "blur", blur_handler); + removeListener(div, "touchstart", touchstart_handler); + removeListener(div, "touchmove", touchmove_handler); + removeListener(div, "touchend", touchend_handler); + removeListener(div, "touchcancel", touchcancel_handler); + if (component.refs.elem === div) component.refs.elem = null; + } + }; + } + + // (53:4) {#each _modulesPrependContainer as module (module.key)} + function create_each_block(component, key_1, ctx) { + var first, switch_instance_anchor; + + var switch_value = ctx.module; + + function switch_props(ctx) { + return { + root: component.root + }; + } + + if (switch_value) { + var switch_instance = new switch_value(switch_props(ctx)); + } + + function switch_instance_init(event) { + component.initModule(event.module); + } + + if (switch_instance) switch_instance.on("init", switch_instance_init); + + return { + key: key_1, + + first: null, + + c: function c() { + first = createComment(); + switch_instance_anchor = createComment(); + if (switch_instance) switch_instance._fragment.c(); + this.first = first; + }, + m: function m(target, anchor) { + insertNode(first, target, anchor); + insertNode(switch_instance_anchor, target, anchor); + + if (switch_instance) { + switch_instance._mount(target, anchor); + } + }, + d: function d(detach) { + if (detach) { + detachNode(first); + detachNode(switch_instance_anchor); + } + + if (switch_instance) switch_instance.destroy(detach); + } + }; + } + + // (56:4) {#if icon !== false} + function create_if_block(component, ctx) { + var div, span, span_class_value, div_class_value; + + return { + c: function c() { + div = createElement("div"); + span = createElement("span"); + span.className = span_class_value = ctx.icon === true ? ctx._icons[ctx.type] ? ctx._icons[ctx.type] : '' : ctx.icon; + div.className = div_class_value = "ui-pnotify-icon " + (ctx._styles.icon ? ctx._styles.icon : ''); + }, + m: function m(target, anchor) { + insertNode(div, target, anchor); + appendNode(span, div); + component.refs.iconContainer = div; + }, + p: function p(changed, ctx) { + if ((changed.icon || changed._icons || changed.type) && span_class_value !== (span_class_value = ctx.icon === true ? ctx._icons[ctx.type] ? ctx._icons[ctx.type] : '' : ctx.icon)) { + span.className = span_class_value; + } + + if (changed._styles && div_class_value !== (div_class_value = "ui-pnotify-icon " + (ctx._styles.icon ? ctx._styles.icon : ''))) { + div.className = div_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(div); + } + + if (component.refs.iconContainer === div) component.refs.iconContainer = null; + } + }; + } + + // (63:8) {#if titleTrusted} + function create_if_block_2(component, ctx) { + var raw_before, raw_after; + + return { + c: function c() { + raw_before = createElement('noscript'); + raw_after = createElement('noscript'); + }, + m: function m(target, anchor) { + insertNode(raw_before, target, anchor); + raw_before.insertAdjacentHTML("afterend", ctx.title); + insertNode(raw_after, target, anchor); + }, + p: function p(changed, ctx) { + if (changed.title) { + detachBetween(raw_before, raw_after); + raw_before.insertAdjacentHTML("afterend", ctx.title); + } + }, + d: function d(detach) { + if (detach) { + detachBetween(raw_before, raw_after); + detachNode(raw_before); + detachNode(raw_after); + } + } + }; + } + + // (65:8) {:else} + function create_if_block_3(component, ctx) { + var text; + + return { + c: function c() { + text = createText(ctx.title); + }, + m: function m(target, anchor) { + insertNode(text, target, anchor); + }, + p: function p(changed, ctx) { + if (changed.title) { + text.data = ctx.title; + } + }, + d: function d(detach) { + if (detach) { + detachNode(text); + } + } + }; + } + + // (61:4) {#if title !== false} + function create_if_block_1(component, ctx) { + var h4, h4_class_value; + + function select_block_type(ctx) { + if (ctx.titleTrusted) return create_if_block_2; + return create_if_block_3; + } + + var current_block_type = select_block_type(ctx); + var if_block = current_block_type(component, ctx); + + return { + c: function c() { + h4 = createElement("h4"); + if_block.c(); + h4.className = h4_class_value = "ui-pnotify-title " + (ctx._styles.title ? ctx._styles.title : ''); + }, + m: function m(target, anchor) { + insertNode(h4, target, anchor); + if_block.m(h4, null); + component.refs.titleContainer = h4; + }, + p: function p(changed, ctx) { + if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) { + if_block.p(changed, ctx); + } else { + if_block.d(1); + if_block = current_block_type(component, ctx); + if_block.c(); + if_block.m(h4, null); + } + + if (changed._styles && h4_class_value !== (h4_class_value = "ui-pnotify-title " + (ctx._styles.title ? ctx._styles.title : ''))) { + h4.className = h4_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(h4); + } + + if_block.d(); + if (component.refs.titleContainer === h4) component.refs.titleContainer = null; + } + }; + } + + // (72:8) {#if textTrusted} + function create_if_block_5(component, ctx) { + var raw_before, raw_after; + + return { + c: function c() { + raw_before = createElement('noscript'); + raw_after = createElement('noscript'); + }, + m: function m(target, anchor) { + insertNode(raw_before, target, anchor); + raw_before.insertAdjacentHTML("afterend", ctx.text); + insertNode(raw_after, target, anchor); + }, + p: function p(changed, ctx) { + if (changed.text) { + detachBetween(raw_before, raw_after); + raw_before.insertAdjacentHTML("afterend", ctx.text); + } + }, + d: function d(detach) { + if (detach) { + detachBetween(raw_before, raw_after); + detachNode(raw_before); + detachNode(raw_after); + } + } + }; + } + + // (74:8) {:else} + function create_if_block_6(component, ctx) { + var text; + + return { + c: function c() { + text = createText(ctx.text); + }, + m: function m(target, anchor) { + insertNode(text, target, anchor); + }, + p: function p(changed, ctx) { + if (changed.text) { + text.data = ctx.text; + } + }, + d: function d(detach) { + if (detach) { + detachNode(text); + } + } + }; + } + + // (70:4) {#if text !== false} + function create_if_block_4(component, ctx) { + var div, div_class_value; + + function select_block_type_1(ctx) { + if (ctx.textTrusted) return create_if_block_5; + return create_if_block_6; + } + + var current_block_type = select_block_type_1(ctx); + var if_block = current_block_type(component, ctx); + + return { + c: function c() { + div = createElement("div"); + if_block.c(); + div.className = div_class_value = "ui-pnotify-text " + (ctx._styles.text ? ctx._styles.text : ''); + setAttribute(div, "role", "alert"); + }, + m: function m(target, anchor) { + insertNode(div, target, anchor); + if_block.m(div, null); + component.refs.textContainer = div; + }, + p: function p(changed, ctx) { + if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block) { + if_block.p(changed, ctx); + } else { + if_block.d(1); + if_block = current_block_type(component, ctx); + if_block.c(); + if_block.m(div, null); + } + + if (changed._styles && div_class_value !== (div_class_value = "ui-pnotify-text " + (ctx._styles.text ? ctx._styles.text : ''))) { + div.className = div_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(div); + } + + if_block.d(); + if (component.refs.textContainer === div) component.refs.textContainer = null; + } + }; + } + + // (79:4) {#each _modulesAppendContainer as module (module.key)} + function create_each_block_1(component, key_1, ctx) { + var first, switch_instance_anchor; + + var switch_value = ctx.module; + + function switch_props(ctx) { + return { + root: component.root + }; + } + + if (switch_value) { + var switch_instance = new switch_value(switch_props(ctx)); + } + + function switch_instance_init(event) { + component.initModule(event.module); + } + + if (switch_instance) switch_instance.on("init", switch_instance_init); + + return { + key: key_1, + + first: null, + + c: function c() { + first = createComment(); + switch_instance_anchor = createComment(); + if (switch_instance) switch_instance._fragment.c(); + this.first = first; + }, + m: function m(target, anchor) { + insertNode(first, target, anchor); + insertNode(switch_instance_anchor, target, anchor); + + if (switch_instance) { + switch_instance._mount(target, anchor); + } + }, + d: function d(detach) { + if (detach) { + detachNode(first); + detachNode(switch_instance_anchor); + } + + if (switch_instance) switch_instance.destroy(detach); + } + }; + } + + function get_each_context(ctx, list, i) { + var child_ctx = Object.create(ctx); + child_ctx.module = list[i]; + child_ctx.each_value = list; + child_ctx.module_index = i; + return child_ctx; + } + + function get_each_1_context(ctx, list, i) { + var child_ctx = Object.create(ctx); + child_ctx.module = list[i]; + child_ctx.each_value_1 = list; + child_ctx.module_index_1 = i; + return child_ctx; + } + + function PNotify_1(options) { + var _this7 = this; + + init(this, options); + this.refs = {}; + this._state = assign(data(), options.data); + this._recompute({ styling: 1, icons: 1, width: 1, minHeight: 1 }, this._state); + this._intro = true; + + if (!document.getElementById("svelte-1eldsjg-style")) add_css(); + + if (!options.root) { + this._oncreate = []; + this._beforecreate = []; + this._aftercreate = []; + } + + this._fragment = create_main_fragment(this, this._state); + + this.root._oncreate.push(function () { + oncreate.call(_this7); + _this7.fire("update", { changed: assignTrue({}, _this7._state), current: _this7._state }); + }); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + + this._lock = true; + callAll(this._beforecreate); + callAll(this._oncreate); + callAll(this._aftercreate); + this._lock = false; + } + } + + assign(PNotify_1.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotify_1.prototype, methods); + + PNotify_1.prototype._recompute = function _recompute(changed, state) { + if (changed.styling) { + if (this._differs(state._styles, state._styles = _styles(state))) changed._styles = true; + } + + if (changed.icons) { + if (this._differs(state._icons, state._icons = _icons(state))) changed._icons = true; + } + + if (changed.width) { + if (this._differs(state._widthStyle, state._widthStyle = _widthStyle(state))) changed._widthStyle = true; + } + + if (changed.minHeight) { + if (this._differs(state._minHeightStyle, state._minHeightStyle = _minHeightStyle(state))) changed._minHeightStyle = true; + } + }; + + setup(PNotify_1); + + function createElement(name) { + return document.createElement(name); + } + + function appendNode(node, target) { + target.appendChild(node); + } + + function blankObject() { + return Object.create(null); + } + + function createText(data) { + return document.createTextNode(data); + } + + function setAttribute(node, attribute, value) { + node.setAttribute(attribute, value); + } + + function addListener(node, event, handler) { + node.addEventListener(event, handler, false); + } + + function insertNode(node, target, anchor) { + target.insertBefore(node, anchor); + } + + function updateKeyedEach(old_blocks, component, changed, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, intro_method, next, get_context) { + var o = old_blocks.length; + var n = list.length; + + var i = o; + var old_indexes = {}; + while (i--) { + old_indexes[old_blocks[i].key] = i; + }var new_blocks = []; + var new_lookup = {}; + var deltas = {}; + + var i = n; + while (i--) { + var child_ctx = get_context(ctx, list, i); + var key = get_key(child_ctx); + var block = lookup[key]; + + if (!block) { + block = create_each_block(component, key, child_ctx); + block.c(); + } else if (dynamic) { + block.p(changed, child_ctx); + } + + new_blocks[i] = new_lookup[key] = block; + + if (key in old_indexes) deltas[key] = Math.abs(i - old_indexes[key]); + } + + var will_move = {}; + var did_move = {}; + + function insert(block) { + block[intro_method](node, next); + lookup[block.key] = block; + next = block.first; + n--; + } + + while (o && n) { + var new_block = new_blocks[n - 1]; + var old_block = old_blocks[o - 1]; + var new_key = new_block.key; + var old_key = old_block.key; + + if (new_block === old_block) { + // do nothing + next = new_block.first; + o--; + n--; + } else if (!new_lookup[old_key]) { + // remove old block + destroy(old_block, lookup); + o--; + } else if (!lookup[new_key] || will_move[new_key]) { + insert(new_block); + } else if (did_move[old_key]) { + o--; + } else if (deltas[new_key] > deltas[old_key]) { + did_move[new_key] = true; + insert(new_block); + } else { + will_move[old_key] = true; + o--; + } + } + + while (o--) { + var old_block = old_blocks[o]; + if (!new_lookup[old_block.key]) destroy(old_block, lookup); + } + + while (n) { + insert(new_blocks[n - 1]); + }return new_blocks; + } + + function destroyBlock(block, lookup) { + block.d(1); + lookup[block.key] = null; + } + + function detachNode(node) { + node.parentNode.removeChild(node); + } + + function removeListener(node, event, handler) { + node.removeEventListener(event, handler, false); + } + + function createComment() { + return document.createComment(''); + } + + function detachBetween(before, after) { + while (before.nextSibling && before.nextSibling !== after) { + before.parentNode.removeChild(before.nextSibling); + } + } + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function assignTrue(tar, src) { + for (var k in src) { + tar[k] = 1; + }return tar; + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function noop() {} + + return PNotify_1; +}); +//# sourceMappingURL=PNotify.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotify.js.map b/app/node_modules/pnotify/lib/umd/PNotify.js.map new file mode 100644 index 00000000..b2c5d8b3 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotify.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotify.html"],"names":[],"mappings":";;;;;;;;;;AAqFE,MAAI,gBAAJ;;AAEA,MAAI,iBAAJ,C,CAAa;;AAEb;AACA,MAAI,mBAAmB,SAAnB,gBAAmB,GAAM;AAC3B,YAAQ,YAAR,CAAqB,OAArB,GAA+B,SAAS,IAAxC;AACF;AACE,WAAO,gBAAP,CAAwB,QAAxB,EAAkC,YAAM;AACtC,UAAI,QAAJ,EAAc;AACZ,qBAAa,QAAb;AACD;AACD,iBAAW,WAAW,YAAM;AAC1B,gBAAQ,WAAR;AACD,OAFU,EAER,EAFQ,CAAX;AAGD,KAPD;AAQD,GAXD;;AAaA;AACA,MAAI,qBAAqB,SAArB,kBAAqB,CAAC,KAAD,EAAW;AAClC,QAAM,UAAU,SAAS,aAAT,CAAuB,KAAvB,CAAhB;AACA,YAAQ,SAAR,CAAkB,GAAlB,CAAsB,0BAAtB;AACA,QAAI,MAAM,OAAN,KAAkB,SAAS,IAA/B,EAAqC;AACnC,cAAQ,KAAR,CAAc,MAAd,GAAuB,MAA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AAV,CAAb,GAA+B,E,GAAG,IAAG,I,GAAI;;;;gGAD1B,O,CAAQ,I,GAAI,IAAG,OAAH,CAAW,I,GAAO,E,IAAE;;;;;;;;;;;;;;;;;;;;;;;;;sDAOpE,K;;;;;;wDAAA,K;;;;;;;;;;;;;;;;;;;8BAEN,K;;;;;;;0BAAA,K;;;;;;;;;;;;;;;;cAHE,Y,EAAY,OAAA,iBAAA;;;;;;;;;;;mEAD6B,O,CAAQ,K,GAAK,IAAG,OAAH,CAAW,K,GAAQ,E;;;;;;;;;;;;;;;;;+FAAhC,O,CAAQ,K,GAAK,IAAG,OAAH,CAAW,K,GAAQ,E,IAAE;;;;;;;;;;;;;;;;;;;;;;;;;;sDAWvE,I;;;;;;wDAAA,I;;;;;;;;;;;;;;;;;;;8BAEN,I;;;;;;;0BAAA,I;;;;;;;;;;;;;;;;cAHE,W,EAAW,OAAA,iBAAA;;;;;;;;;;;oEAD6B,O,CAAQ,I,GAAI,IAAG,OAAH,CAAW,I,GAAO,E;;;;;;;;;;;;;;;;;;gGAA9B,O,CAAQ,I,GAAI,IAAG,OAAH,CAAW,I,GAAO,E,IAAE;;;;;;;;;;;;;;;;;;;2BASvD,M;;;;;;;;;;;;;gBAAiB,U,CAAW,MAAM,M","sourcesContent":["\n\n
\n
\n {#each _modulesPrependContainer as module (module.key)}\n \n {/each}\n {#if icon !== false}\n
\n \n
\n {/if}\n {#if title !== false}\n

\n {#if titleTrusted}\n {@html title}\n {:else}\n {title}\n {/if}\n

\n {/if}\n {#if text !== false}\n
\n {#if textTrusted}\n {@html text}\n {:else}\n {text}\n {/if}\n
\n {/if}\n {#each _modulesAppendContainer as module (module.key)}\n \n {/each}\n
\n
\n\n\n\n\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyAnimate.js b/app/node_modules/pnotify/lib/umd/PNotifyAnimate.js new file mode 100644 index 00000000..b5e43688 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyAnimate.js @@ -0,0 +1,315 @@ +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +/* src/PNotifyAnimate.html generated by Svelte v2.6.3 */ +(function (global, factory) { + (typeof exports === "undefined" ? "undefined" : _typeof(exports)) === "object" && typeof module !== "undefined" ? module.exports = factory(require('./PNotify')) : typeof define === "function" && define.amd ? define('PNotifyAnimate', ["./PNotify"], factory) : global.PNotifyAnimate = factory(PNotify); +})(this, function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.Animate.defaults); + }; + + var methods = { + initModule: function initModule(options) { + this.set(options); + this.setUpAnimations(); + }, + update: function update() { + this.setUpAnimations(); + }, + setUpAnimations: function setUpAnimations() { + var _get = this.get(), + _notice = _get._notice, + _options = _get._options, + animate = _get.animate; + + if (animate) { + _notice.set({ 'animation': 'none' }); + if (!_notice._animateIn) { + _notice._animateIn = _notice.animateIn; + } + if (!_notice._animateOut) { + _notice._animateOut = _notice.animateOut; + } + _notice.animateIn = this.animateIn.bind(this); + _notice.animateOut = this.animateOut.bind(this); + var animSpeed = 250; + if (_options.animateSpeed === 'slow') { + animSpeed = 400; + } else if (_options.animateSpeed === 'fast') { + animSpeed = 100; + } else if (_options.animateSpeed > 0) { + animSpeed = _options.animateSpeed; + } + animSpeed = animSpeed / 1000; + _notice.refs.elem.style.WebkitAnimationDuration = animSpeed + 's'; + _notice.refs.elem.style.MozAnimationDuration = animSpeed + 's'; + _notice.refs.elem.style.animationDuration = animSpeed + 's'; + } else if (_notice._animateIn && _notice._animateOut) { + _notice.animateIn = _notice._animateIn; + delete _notice._animateIn; + _notice.animateOut = _notice._animateOut; + delete _notice._animateOut; + } + }, + animateIn: function animateIn(callback) { + var _get2 = this.get(), + _notice = _get2._notice; + // Declare that the notice is animating in. + + + _notice.set({ '_animating': 'in' }); + + var finished = function finished() { + _notice.refs.elem.removeEventListener('webkitAnimationEnd', finished); + _notice.refs.elem.removeEventListener('mozAnimationEnd', finished); + _notice.refs.elem.removeEventListener('MSAnimationEnd', finished); + _notice.refs.elem.removeEventListener('oanimationend', finished); + _notice.refs.elem.removeEventListener('animationend', finished); + _notice.set({ '_animatingClass': 'ui-pnotify-in animated' }); + if (callback) { + callback.call(); + } + // Declare that the notice has completed animating. + _notice.set({ '_animating': false }); + }; + + _notice.refs.elem.addEventListener('webkitAnimationEnd', finished); + _notice.refs.elem.addEventListener('mozAnimationEnd', finished); + _notice.refs.elem.addEventListener('MSAnimationEnd', finished); + _notice.refs.elem.addEventListener('oanimationend', finished); + _notice.refs.elem.addEventListener('animationend', finished); + _notice.set({ '_animatingClass': 'ui-pnotify-in animated ' + this.get().inClass }); + }, + animateOut: function animateOut(callback) { + var _get3 = this.get(), + _notice = _get3._notice; + // Declare that the notice is animating out. + + + _notice.set({ '_animating': 'out' }); + + var finished = function finished() { + _notice.refs.elem.removeEventListener('webkitAnimationEnd', finished); + _notice.refs.elem.removeEventListener('mozAnimationEnd', finished); + _notice.refs.elem.removeEventListener('MSAnimationEnd', finished); + _notice.refs.elem.removeEventListener('oanimationend', finished); + _notice.refs.elem.removeEventListener('animationend', finished); + _notice.set({ '_animatingClass': 'animated' }); + if (callback) { + callback.call(); + } + // Declare that the notice has completed animating. + _notice.set({ '_animating': false }); + }; + + _notice.refs.elem.addEventListener('webkitAnimationEnd', finished); + _notice.refs.elem.addEventListener('mozAnimationEnd', finished); + _notice.refs.elem.addEventListener('MSAnimationEnd', finished); + _notice.refs.elem.addEventListener('oanimationend', finished); + _notice.refs.elem.addEventListener('animationend', finished); + _notice.set({ '_animatingClass': 'ui-pnotify-in animated ' + this.get().outClass }); + } + }; + + function setup(Component) { + Component.key = 'Animate'; + + Component.defaults = { + // Use animate.css to animate the notice. + animate: false, + // The class to use to animate the notice in. + inClass: '', + // The class to use to animate the notice out. + outClass: '' + }; + + Component.init = function (notice) { + notice.attention = function (aniClass, callback) { + var cb = function cb() { + notice.refs.container.removeEventListener('webkitAnimationEnd', cb); + notice.refs.container.removeEventListener('mozAnimationEnd', cb); + notice.refs.container.removeEventListener('MSAnimationEnd', cb); + notice.refs.container.removeEventListener('oanimationend', cb); + notice.refs.container.removeEventListener('animationend', cb); + notice.refs.container.classList.remove(aniClass); + if (callback) { + callback.call(notice); + } + }; + notice.refs.container.addEventListener('webkitAnimationEnd', cb); + notice.refs.container.addEventListener('mozAnimationEnd', cb); + notice.refs.container.addEventListener('MSAnimationEnd', cb); + notice.refs.container.addEventListener('oanimationend', cb); + notice.refs.container.addEventListener('animationend', cb); + notice.refs.container.classList.add('animated'); + notice.refs.container.classList.add(aniClass); + }; + + return new Component({ target: document.body }); + }; + + // Register the module with PNotify. + PNotify.modules.Animate = Component; + }; + + function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; + } + + function PNotifyAnimate(options) { + init(this, options); + this._state = assign(data(), options.data); + this._intro = true; + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } + } + + assign(PNotifyAnimate.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyAnimate.prototype, methods); + + PNotifyAnimate.prototype._recompute = noop; + + setup(PNotifyAnimate); + + function noop() {} + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + return PNotifyAnimate; +}); +//# sourceMappingURL=PNotifyAnimate.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyAnimate.js.map b/app/node_modules/pnotify/lib/umd/PNotifyAnimate.js.map new file mode 100644 index 00000000..476e04d3 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyAnimate.js.map @@ -0,0 +1 @@ +{"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,eAAO,IAAP,CAAY,SAAZ,CAAsB,gBAAtB,CAAuC,iBAAvC,EAA0D,EAA1D;AACA,eAAO,IAAP,CAAY,SAAZ,CAAsB,gBAAtB,CAAuC,gBAAvC,EAAyD,EAAzD;AACA,eAAO,IAAP,CAAY,SAAZ,CAAsB,gBAAtB,CAAuC,eAAvC,EAAwD,EAAxD;AACA,eAAO,IAAP,CAAY,SAAZ,CAAsB,gBAAtB,CAAuC,cAAvC,EAAuD,EAAvD;AACA,eAAO,IAAP,CAAY,SAAZ,CAAsB,SAAtB,CAAgC,GAAhC,CAAoC,UAApC;AACA,eAAO,IAAP,CAAY,SAAZ,CAAsB,SAAtB,CAAgC,GAAhC,CAAoC,QAApC;AACD,OAnBD;;AAqBA,aAAO,IAAI,SAAJ,CAAc,EAAC,QAAQ,SAAS,IAAlB,EAAd,CAAP;AACD,KAvBD;;AAyBF;AACE,YAAQ,OAAR,CAAgB,OAAhB,GAA0B,SAA1B;AACD","sourcesContent":["\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyButtons.js b/app/node_modules/pnotify/lib/umd/PNotifyButtons.js new file mode 100644 index 00000000..322d3469 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyButtons.js @@ -0,0 +1,541 @@ +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +/* src/PNotifyButtons.html generated by Svelte v2.6.3 */ +(function (global, factory) { + (typeof exports === "undefined" ? "undefined" : _typeof(exports)) === "object" && typeof module !== "undefined" ? module.exports = factory(require('./PNotify')) : typeof define === "function" && define.amd ? define('PNotifyButtons', ["./PNotify"], factory) : global.PNotifyButtons = factory(PNotify); +})(this, function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function _showSticker(_ref) { + var sticker = _ref.sticker, + _notice = _ref._notice; + + return sticker && !(_notice && _notice.refs.elem.classList.contains('nonblock')); + } + + function _showCloser(_ref2) { + var closer = _ref2.closer, + _notice = _ref2._notice; + + return closer && !(_notice && _notice.refs.elem.classList.contains('nonblock')); + } + + function _pinUpClass(_ref3) { + var classes = _ref3.classes, + _notice = _ref3._notice; + + return _notice ? classes.pinUp === null ? _notice.get()._icons.pinUp : classes.pinUp : ''; + } + + function _pinDownClass(_ref4) { + var classes = _ref4.classes, + _notice = _ref4._notice; + + return _notice ? classes.pinDown === null ? _notice.get()._icons.pinDown : classes.pinDown : ''; + } + + function _closerClass(_ref5) { + var classes = _ref5.classes, + _notice = _ref5._notice; + + return _notice ? classes.closer === null ? _notice.get()._icons.closer : classes.closer : ''; + } + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {}, // The options for the notice. + '_mouseIsIn': false + }, PNotify.modules.Buttons.defaults); + }; + + var methods = { + initModule: function initModule(options) { + var _this = this; + + this.set(options); + + var _get = this.get(), + _notice = _get._notice; + + _notice.on('mouseenter', function () { + return _this.set({ '_mouseIsIn': true }); + }); + _notice.on('mouseleave', function () { + return _this.set({ '_mouseIsIn': false }); + }); + _notice.on('state', function (_ref6) { + var changed = _ref6.changed, + current = _ref6.current; + + if (!changed.hide) { + return; + } + + var _get2 = _this.get(), + sticker = _get2.sticker; + + if (!sticker) { + return; + } + + // Font Awesome 5 replaces our lovely element with a gross SVG. In + // order to make it play nice with Svelte, we have to clear the + // element and make it again. + var icon = current.hide ? _this.get().classes.pinUp : _this.get().classes.pinDown; + if (_this.get()._notice.get().icons === 'fontawesome5' || typeof icon === 'string' && icon.match(/(^| )fa[srlb]($| )/)) { + _this.set({ 'sticker': false }); + _this.set({ 'sticker': true }); + } + }); + }, + handleStickerClick: function handleStickerClick() { + var _get3 = this.get(), + _notice = _get3._notice; + + _notice.update({ hide: !_notice.get().hide }); + }, + handleCloserClick: function handleCloserClick() { + this.get()._notice.close(false); + this.set({ '_mouseIsIn': false }); + } + }; + + function oncreate() { + this.fire('init', { module: this }); + }; + + function setup(Component) { + Component.key = 'Buttons'; + + Component.defaults = { + // Provide a button for the user to manually close the notice. + closer: true, + // Only show the closer button on hover. + closerHover: true, + // Provide a button for the user to manually stick the notice. + sticker: true, + // Only show the sticker button on hover. + stickerHover: true, + // The various displayed text, helps facilitating internationalization. + labels: { + close: 'Close', + stick: 'Stick', + unstick: 'Unstick' + }, + // The classes to use for button icons. Leave them null to use the classes from the styling you're using. + classes: { + closer: null, + pinUp: null, + pinDown: null + } + }; + + // Register the module with PNotify. + PNotify.modules.Buttons = Component; + // Prepend this module to the container. + PNotify.modulesPrependContainer.push(Component); + + // Add button icons to icons objects. + _extends(PNotify.icons.brighttheme, { + closer: 'brighttheme-icon-closer', + pinUp: 'brighttheme-icon-sticker', + pinDown: 'brighttheme-icon-sticker brighttheme-icon-stuck' + }); + _extends(PNotify.icons.bootstrap3, { + closer: 'glyphicon glyphicon-remove', + pinUp: 'glyphicon glyphicon-pause', + pinDown: 'glyphicon glyphicon-play' + }); + _extends(PNotify.icons.fontawesome4, { + closer: 'fa fa-times', + pinUp: 'fa fa-pause', + pinDown: 'fa fa-play' + }); + _extends(PNotify.icons.fontawesome5, { + closer: 'fas fa-times', + pinUp: 'fas fa-pause', + pinDown: 'fas fa-play' + }); + }; + + function add_css() { + var style = createElement("style"); + style.id = 'svelte-1yjle82-style'; + style.textContent = ".ui-pnotify-closer.svelte-1yjle82,.ui-pnotify-sticker.svelte-1yjle82{float:right;margin-left:.5em;cursor:pointer}[dir=rtl] .ui-pnotify-closer,[dir=rtl] .ui-pnotify-sticker{float:left;margin-right:.5em;margin-left:0}.ui-pnotify-buttons-hidden.svelte-1yjle82{visibility:hidden}"; + appendNode(style, document.head); + } + + function create_main_fragment(component, ctx) { + var text, if_block_1_anchor; + + var if_block = ctx._showCloser && create_if_block(component, ctx); + + var if_block_1 = ctx._showSticker && create_if_block_1(component, ctx); + + return { + c: function c() { + if (if_block) if_block.c(); + text = createText("\n"); + if (if_block_1) if_block_1.c(); + if_block_1_anchor = createComment(); + }, + m: function m(target, anchor) { + if (if_block) if_block.m(target, anchor); + insertNode(text, target, anchor); + if (if_block_1) if_block_1.m(target, anchor); + insertNode(if_block_1_anchor, target, anchor); + }, + p: function p(changed, ctx) { + if (ctx._showCloser) { + if (if_block) { + if_block.p(changed, ctx); + } else { + if_block = create_if_block(component, ctx); + if_block.c(); + if_block.m(text.parentNode, text); + } + } else if (if_block) { + if_block.d(1); + if_block = null; + } + + if (ctx._showSticker) { + if (if_block_1) { + if_block_1.p(changed, ctx); + } else { + if_block_1 = create_if_block_1(component, ctx); + if_block_1.c(); + if_block_1.m(if_block_1_anchor.parentNode, if_block_1_anchor); + } + } else if (if_block_1) { + if_block_1.d(1); + if_block_1 = null; + } + }, + d: function d(detach) { + if (if_block) if_block.d(detach); + if (detach) { + detachNode(text); + } + + if (if_block_1) if_block_1.d(detach); + if (detach) { + detachNode(if_block_1_anchor); + } + } + }; + } + + // (1:0) {#if _showCloser} + function create_if_block(component, ctx) { + var div, span, div_class_value, div_title_value; + + function click_handler(event) { + component.handleCloserClick(); + } + + return { + c: function c() { + div = createElement("div"); + span = createElement("span"); + span.className = "" + ctx._closerClass + " svelte-1yjle82"; + addListener(div, "click", click_handler); + div.className = div_class_value = "ui-pnotify-closer " + (!ctx.closerHover || ctx._mouseIsIn ? '' : 'ui-pnotify-buttons-hidden') + " svelte-1yjle82"; + setAttribute(div, "role", "button"); + div.tabIndex = "0"; + div.title = div_title_value = ctx.labels.close; + }, + m: function m(target, anchor) { + insertNode(div, target, anchor); + appendNode(span, div); + }, + p: function p(changed, ctx) { + if (changed._closerClass) { + span.className = "" + ctx._closerClass + " svelte-1yjle82"; + } + + if ((changed.closerHover || changed._mouseIsIn) && div_class_value !== (div_class_value = "ui-pnotify-closer " + (!ctx.closerHover || ctx._mouseIsIn ? '' : 'ui-pnotify-buttons-hidden') + " svelte-1yjle82")) { + div.className = div_class_value; + } + + if (changed.labels && div_title_value !== (div_title_value = ctx.labels.close)) { + div.title = div_title_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(div); + } + + removeListener(div, "click", click_handler); + } + }; + } + + // (11:0) {#if _showSticker} + function create_if_block_1(component, ctx) { + var div, span, span_class_value, div_class_value, div_aria_pressed_value, div_title_value; + + function click_handler(event) { + component.handleStickerClick(); + } + + return { + c: function c() { + div = createElement("div"); + span = createElement("span"); + span.className = span_class_value = "" + (ctx._options.hide ? ctx._pinUpClass : ctx._pinDownClass) + " svelte-1yjle82"; + addListener(div, "click", click_handler); + div.className = div_class_value = "ui-pnotify-sticker " + (!ctx.stickerHover || ctx._mouseIsIn ? '' : 'ui-pnotify-buttons-hidden') + " svelte-1yjle82"; + setAttribute(div, "role", "button"); + setAttribute(div, "aria-pressed", div_aria_pressed_value = ctx._options.hide); + div.tabIndex = "0"; + div.title = div_title_value = ctx._options.hide ? ctx.labels.stick : ctx.labels.unstick; + }, + m: function m(target, anchor) { + insertNode(div, target, anchor); + appendNode(span, div); + }, + p: function p(changed, ctx) { + if ((changed._options || changed._pinUpClass || changed._pinDownClass) && span_class_value !== (span_class_value = "" + (ctx._options.hide ? ctx._pinUpClass : ctx._pinDownClass) + " svelte-1yjle82")) { + span.className = span_class_value; + } + + if ((changed.stickerHover || changed._mouseIsIn) && div_class_value !== (div_class_value = "ui-pnotify-sticker " + (!ctx.stickerHover || ctx._mouseIsIn ? '' : 'ui-pnotify-buttons-hidden') + " svelte-1yjle82")) { + div.className = div_class_value; + } + + if (changed._options && div_aria_pressed_value !== (div_aria_pressed_value = ctx._options.hide)) { + setAttribute(div, "aria-pressed", div_aria_pressed_value); + } + + if ((changed._options || changed.labels) && div_title_value !== (div_title_value = ctx._options.hide ? ctx.labels.stick : ctx.labels.unstick)) { + div.title = div_title_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(div); + } + + removeListener(div, "click", click_handler); + } + }; + } + + function PNotifyButtons(options) { + var _this2 = this; + + init(this, options); + this._state = assign(data(), options.data); + this._recompute({ sticker: 1, _notice: 1, closer: 1, classes: 1 }, this._state); + this._intro = true; + + if (!document.getElementById("svelte-1yjle82-style")) add_css(); + + if (!options.root) { + this._oncreate = []; + } + + this._fragment = create_main_fragment(this, this._state); + + this.root._oncreate.push(function () { + oncreate.call(_this2); + _this2.fire("update", { changed: assignTrue({}, _this2._state), current: _this2._state }); + }); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + + callAll(this._oncreate); + } + } + + assign(PNotifyButtons.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyButtons.prototype, methods); + + PNotifyButtons.prototype._recompute = function _recompute(changed, state) { + if (changed.sticker || changed._notice) { + if (this._differs(state._showSticker, state._showSticker = _showSticker(state))) changed._showSticker = true; + } + + if (changed.closer || changed._notice) { + if (this._differs(state._showCloser, state._showCloser = _showCloser(state))) changed._showCloser = true; + } + + if (changed.classes || changed._notice) { + if (this._differs(state._pinUpClass, state._pinUpClass = _pinUpClass(state))) changed._pinUpClass = true; + if (this._differs(state._pinDownClass, state._pinDownClass = _pinDownClass(state))) changed._pinDownClass = true; + if (this._differs(state._closerClass, state._closerClass = _closerClass(state))) changed._closerClass = true; + } + }; + + setup(PNotifyButtons); + + function createElement(name) { + return document.createElement(name); + } + + function appendNode(node, target) { + target.appendChild(node); + } + + function createText(data) { + return document.createTextNode(data); + } + + function createComment() { + return document.createComment(''); + } + + function insertNode(node, target, anchor) { + target.insertBefore(node, anchor); + } + + function detachNode(node) { + node.parentNode.removeChild(node); + } + + function addListener(node, event, handler) { + node.addEventListener(event, handler, false); + } + + function setAttribute(node, attribute, value) { + node.setAttribute(attribute, value); + } + + function removeListener(node, event, handler) { + node.removeEventListener(event, handler, false); + } + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function assignTrue(tar, src) { + for (var k in src) { + tar[k] = 1; + }return tar; + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + + function noop() {} + + return PNotifyButtons; +}); +//# sourceMappingURL=PNotifyButtons.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyButtons.js.map b/app/node_modules/pnotify/lib/umd/PNotifyButtons.js.map new file mode 100644 index 00000000..92dd0d55 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyButtons.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyButtons.html"],"names":[],"mappings":";;;;;;;;;;;;UA8FqB,Y,OAAoB;AAAA,MAAlB,OAAkB,QAAlB,OAAkB;AAAA,MAAT,OAAS,QAAT,OAAS;;SAAK,WAAW,EAAE,WAAW,QAAQ,IAAR,CAAa,IAAb,CAAkB,SAAlB,CAA4B,QAA5B,CAAqC,UAArC,CAAb,C;;;UAErC,W,QAAmB;AAAA,MAAjB,MAAiB,SAAjB,MAAiB;AAAA,MAAT,OAAS,SAAT,OAAS;;SAAK,UAAU,EAAE,WAAW,QAAQ,IAAR,CAAa,IAAb,CAAkB,SAAlB,CAA4B,QAA5B,CAAqC,UAArC,CAAb,C;;;UAElC,W,QAAoB;AAAA,MAAlB,OAAkB,SAAlB,OAAkB;AAAA,MAAT,OAAS,SAAT,OAAS;;SAAK,UAAW,QAAQ,KAAR,KAAkB,IAAlB,GAAyB,QAAQ,GAAR,GAAc,MAAd,CAAqB,KAA9C,GAAsD,QAAQ,KAAzE,GAAkF,E;;;UACzG,a,QAAoB;AAAA,MAAlB,OAAkB,SAAlB,OAAkB;AAAA,MAAT,OAAS,SAAT,OAAS;;SAAK,UAAW,QAAQ,OAAR,KAAoB,IAApB,GAA2B,QAAQ,GAAR,GAAc,MAAd,CAAqB,OAAhD,GAA0D,QAAQ,OAA7E,GAAwF,E;;;UAClH,Y,QAAoB;AAAA,MAAlB,OAAkB,SAAlB,OAAkB;AAAA,MAAT,OAAS,SAAT,OAAS;;SAAK,UAAW,QAAQ,MAAR,KAAmB,IAAnB,GAA0B,QAAQ,GAAR,GAAc,MAAd,CAAqB,MAA/C,GAAwD,QAAQ,MA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/umd/PNotifyCallbacks.js b/app/node_modules/pnotify/lib/umd/PNotifyCallbacks.js new file mode 100644 index 00000000..e33ea83b --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyCallbacks.js @@ -0,0 +1,234 @@ +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +/* src/PNotifyCallbacks.html generated by Svelte v2.6.3 */ +(function (global, factory) { + (typeof exports === "undefined" ? "undefined" : _typeof(exports)) === "object" && typeof module !== "undefined" ? module.exports = factory(require('./PNotify')) : typeof define === "function" && define.amd ? define('PNotifyCallbacks', ["./PNotify"], factory) : global.PNotifyCallbacks = factory(PNotify); +})(this, function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + var _open = PNotify.prototype.open; + var _close = PNotify.prototype.close; + + var callbacks = function callbacks(notice, options, name) { + var modules = notice ? notice.get().modules : options.modules; + var cbs = modules && modules.Callbacks ? modules.Callbacks : {}; + return cbs[name] ? cbs[name] : function () { + return true; + }; + }; + + PNotify.prototype.open = function () { + var ret = callbacks(this, null, 'beforeOpen')(this); + if (ret !== false) { + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _open.apply(this, args); + callbacks(this, null, 'afterOpen')(this); + } + }; + + PNotify.prototype.close = function (timerHide) { + var ret = callbacks(this, null, 'beforeClose')(this, timerHide); + if (ret !== false) { + for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + + _close.apply(this, [timerHide].concat(args)); + callbacks(this, null, 'afterClose')(this, timerHide); + } + }; + + function setup(Component) { + Component.key = 'Callbacks'; + + Component.getCallbacks = callbacks; + + var _alert = PNotify.alert; + var _notice = PNotify.notice; + var _info = PNotify.info; + var _success = PNotify.success; + var _error = PNotify.error; + + var init = function init(original, options) { + callbacks(null, options, 'beforeInit')(options); + var notice = original(options); + callbacks(notice, null, 'afterInit')(notice); + return notice; + }; + + PNotify.alert = function (options) { + return init(_alert, options); + }; + PNotify.notice = function (options) { + return init(_notice, options); + }; + PNotify.info = function (options) { + return init(_info, options); + }; + PNotify.success = function (options) { + return init(_success, options); + }; + PNotify.error = function (options) { + return init(_error, options); + }; + + // Register the module with PNotify. + PNotify.modules.Callbacks = Component; + }; + + function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; + } + + function PNotifyCallbacks(options) { + init(this, options); + this._state = assign({}, options.data); + this._intro = true; + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } + } + + assign(PNotifyCallbacks.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + + PNotifyCallbacks.prototype._recompute = noop; + + setup(PNotifyCallbacks); + + function noop() {} + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + return PNotifyCallbacks; +}); +//# sourceMappingURL=PNotifyCallbacks.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyCallbacks.js.map b/app/node_modules/pnotify/lib/umd/PNotifyCallbacks.js.map new file mode 100644 index 00000000..cd29dc1e --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyCallbacks.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyCallbacks.html"],"names":[],"mappings":";;;;;;;;;;AAGE,KAAI,QAAQ,QAAQ,SAAR,CAAkB,IAA9B;AACA,KAAI,SAAS,QAAQ,SAAR,CAAkB,KAA/B;;AAEA,KAAM,YAAY,SAAZ,SAAY,CAAC,MAAD,EAAS,OAAT,EAAkB,IAAlB,EAA2B;AAC3C,MAAI,UAAU,SAAS,OAAO,GAAP,GAAa,OAAtB,GAAgC,QAAQ,OAAtD;AACA,MAAI,MAAO,WAAW,QAAQ,SAApB,GAAiC,QAAQ,SAAzC,GAAqD,EAA/D;AACA,SAAO,IAA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,EAAwB,WAAxB,EAAqC,MAArC;AACA,UAAO,MAAP;AACD,GALD;;AAOA,UAAQ,KAAR,GAAgB,UAAC,OAAD,EAAa;AAC3B,UAAO,KAAK,MAAL,EAAa,OAAb,CAAP;AACD,GAFD;AAGA,UAAQ,MAAR,GAAiB,UAAC,OAAD,EAAa;AAC5B,UAAO,KAAK,OAAL,EAAc,OAAd,CAAP;AACD,GAFD;AAGA,UAAQ,IAAR,GAAe,UAAC,OAAD,EAAa;AAC1B,UAAO,KAAK,KAAL,EAAY,OAAZ,CAAP;AACD,GAFD;AAGA,UAAQ,OAAR,GAAkB,UAAC,OAAD,EAAa;AAC7B,UAAO,KAAK,QAAL,EAAe,OAAf,CAAP;AACD,GAFD;AAGA,UAAQ,KAAR,GAAgB,UAAC,OAAD,EAAa;AAC3B,UAAO,KAAK,MAAL,EAAa,OAAb,CAAP;AACD,GAFD;;AAIF;AACE,UAAQ,OAAR,CAAgB,SAAhB,GAA4B,SAA5B;AACD","sourcesContent":["\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyCompat.js b/app/node_modules/pnotify/lib/umd/PNotifyCompat.js new file mode 100644 index 00000000..417b6aa7 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyCompat.js @@ -0,0 +1,365 @@ +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define('PNotifyCompat', ['module', 'exports', './PNotify'], factory); + } else if (typeof exports !== "undefined") { + factory(module, exports, require('./PNotify')); + } else { + var mod = { + exports: {} + }; + factory(mod, mod.exports, global.PNotify); + global.PNotifyCompat = mod.exports; + } +})(this, function (module, exports, _PNotify2) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _PNotify3 = _interopRequireDefault(_PNotify2); + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { + return typeof obj; + } : function (obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + + var _createClass = function () { + function defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + + return function (Constructor, protoProps, staticProps) { + if (protoProps) defineProperties(Constructor.prototype, protoProps); + if (staticProps) defineProperties(Constructor, staticProps); + return Constructor; + }; + }(); + + function _possibleConstructorReturn(self, call) { + if (!self) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return call && (typeof call === "object" || typeof call === "function") ? call : self; + } + + var _get2 = function get(object, property, receiver) { + if (object === null) object = Function.prototype; + var desc = Object.getOwnPropertyDescriptor(object, property); + + if (desc === undefined) { + var parent = Object.getPrototypeOf(object); + + if (parent === null) { + return undefined; + } else { + return get(parent, property, receiver); + } + } else if ("value" in desc) { + return desc.value; + } else { + var getter = desc.get; + + if (getter === undefined) { + return undefined; + } + + return getter.call(receiver); + } + }; + + function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); + } + + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + enumerable: false, + writable: true, + configurable: true + } + }); + if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; + } + + var _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + // Translate v3 options to v4 options. + var translateOptions = function translateOptions(options, module, moduleName) { + // Merge the classic default options. + var newOptions = module ? _extends({}, moduleName ? PNotifyCompat.prototype.options[moduleName] : {}, options) : _extends({}, PNotifyCompat.prototype.options, options); + var translateName = function translateName(badName) { + var goodName = badName; + var underscoreIndex = void 0; + while ((underscoreIndex = goodName.indexOf('_')) !== -1) { + goodName = goodName.slice(0, underscoreIndex) + goodName.slice(underscoreIndex + 1, underscoreIndex + 2).toUpperCase() + goodName.slice(underscoreIndex + 2); + } + return goodName; + }; + + // Translate all options to the new style. + for (var name in newOptions) { + if (newOptions.hasOwnProperty(name) && name.indexOf('_') !== -1) { + var goodName = translateName(name); + newOptions[goodName] = newOptions[name]; + delete newOptions[name]; + } + } + + if (!module) { + // Options that have changed. + if (newOptions.hasOwnProperty('addclass')) { + newOptions.addClass = newOptions.addclass; + delete newOptions.addclass; + } + if (newOptions.hasOwnProperty('cornerclass')) { + newOptions.cornerClass = newOptions.cornerclass; + delete newOptions.cornerClass; + } + if (newOptions.hasOwnProperty('textEscape')) { + newOptions.textTrusted = !newOptions.textEscape; + delete newOptions.textEscape; + } + if (newOptions.hasOwnProperty('titleEscape')) { + newOptions.titleTrusted = !newOptions.titleEscape; + delete newOptions.titleEscape; + } + + // Styling and icons. + if (newOptions.hasOwnProperty('styling')) { + if (newOptions.styling === 'bootstrap3') { + newOptions.icons = 'bootstrap3'; + } else if (newOptions.styling === 'fontawesome') { + newOptions.styling = 'bootstrap3'; + newOptions.icons = 'fontawesome4'; + } + } + + // Stacks. + if (newOptions.hasOwnProperty('stack')) { + if (newOptions.stack.overlay_close) { + newOptions.stack.overlayClose = newOptions.stack.overlay_close; + } + } + + // Translate module options. + newOptions.modules = {}; + if (newOptions.hasOwnProperty('animate')) { + newOptions.modules.Animate = translateOptions(newOptions.animate, true, 'animate'); + delete newOptions.animate; + } + if (newOptions.hasOwnProperty('buttons')) { + newOptions.modules.Buttons = translateOptions(newOptions.buttons, true, 'buttons'); + delete newOptions.buttons; + if (newOptions.modules.Buttons.classes) { + newOptions.modules.Buttons.classes = translateOptions(newOptions.modules.Buttons.classes, true); + } + } + if (newOptions.hasOwnProperty('confirm')) { + newOptions.modules.Confirm = translateOptions(newOptions.confirm, true, 'confirm'); + if (newOptions.modules.Confirm.promptDefault) { + newOptions.modules.Confirm.promptValue = newOptions.modules.Confirm.promptDefault; + delete newOptions.modules.Confirm.promptDefault; + } + delete newOptions.confirm; + } + if (newOptions.hasOwnProperty('desktop')) { + newOptions.modules.Desktop = translateOptions(newOptions.desktop, true, 'desktop'); + delete newOptions.desktop; + } + if (newOptions.hasOwnProperty('history')) { + newOptions.modules.History = translateOptions(newOptions.history, true, 'history'); + delete newOptions.history; + } + if (newOptions.hasOwnProperty('mobile')) { + newOptions.modules.Mobile = translateOptions(newOptions.mobile, true, 'mobile'); + delete newOptions.mobile; + } + if (newOptions.hasOwnProperty('nonblock')) { + newOptions.modules.NonBlock = translateOptions(newOptions.nonblock, true, 'nonblock'); + delete newOptions.nonblock; + } + if (newOptions.hasOwnProperty('reference')) { + newOptions.modules.Reference = translateOptions(newOptions.reference, true, 'reference'); + delete newOptions.reference; + } + if (newOptions.hasOwnProperty('beforeInit')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.beforeInit = newOptions.beforeInit; + delete newOptions.beforeInit; + } + if (newOptions.hasOwnProperty('afterInit')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.afterInit = newOptions.afterInit; + delete newOptions.afterInit; + } + if (newOptions.hasOwnProperty('beforeOpen')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.beforeOpen = newOptions.beforeOpen; + delete newOptions.beforeOpen; + } + if (newOptions.hasOwnProperty('afterOpen')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.afterOpen = newOptions.afterOpen; + delete newOptions.afterOpen; + } + if (newOptions.hasOwnProperty('beforeClose')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.beforeClose = newOptions.beforeClose; + delete newOptions.beforeClose; + } + if (newOptions.hasOwnProperty('afterClose')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.afterClose = newOptions.afterClose; + delete newOptions.afterClose; + } + } + + return newOptions; + }; + + // The compatibility class. + + var PNotifyCompat = function (_PNotify) { + _inherits(PNotifyCompat, _PNotify); + + function PNotifyCompat(options) { + _classCallCheck(this, PNotifyCompat); + + if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) !== 'object') { + options = { 'text': options }; + } + + // These need to be called directly, since we're not using PNotify.alert(). + if (_PNotify3.default.modules.Callbacks && options.before_init) { + options.before_init(options); + } + + options = translateOptions(options); + + var _this = _possibleConstructorReturn(this, (PNotifyCompat.__proto__ || Object.getPrototypeOf(PNotifyCompat)).call(this, { target: document.body, data: options })); + + // Override the get function to return the element like it did in v3. + var _get = _this.get; + _this.get = function (option) { + if (option === undefined) { + return _extends(window.jQuery ? window.jQuery(this.refs.elem) : this.refs.elem, _get.call(this)); + } + return _get.call(this, option); + }; + + // Confirm module events. + _this.on('pnotify.confirm', function (e) { + if (window.jQuery) { + window.jQuery(_this.refs.elem).trigger('pnotify.confirm', [_this, e.value]); + } + }); + _this.on('pnotify.cancel', function (e) { + if (window.jQuery) { + window.jQuery(_this.refs.elem).trigger('pnotify.cancel', _this); + } + }); + + if (_PNotify3.default.modules.Callbacks) { + _PNotify3.default.modules.Callbacks.getCallbacks(_this, null, 'afterInit')(_this); + } + return _this; + } + + _createClass(PNotifyCompat, [{ + key: 'update', + value: function update(options) { + options = translateOptions(options); + return _get2(PNotifyCompat.prototype.__proto__ || Object.getPrototypeOf(PNotifyCompat.prototype), 'update', this).call(this, options); + } + }]); + + return PNotifyCompat; + }(_PNotify3.default); + + // Lets you change defaults the old way. + PNotifyCompat.prototype.options = { + text_escape: false, + title_escape: false + }; + + // Forward static functions. + PNotifyCompat.reload = function () { + return PNotifyCompat; + }; + PNotifyCompat.removeAll = function () { + return _PNotify3.default.removeAll(); + }; + PNotifyCompat.removeStack = function (stack) { + return _PNotify3.default.removeStack(stack); + }; + PNotifyCompat.positionAll = function (animate) { + return _PNotify3.default.positionAll(animate); + }; + + // Desktop module permission method. + PNotifyCompat.desktop = { + permission: function permission() { + _PNotify3.default.modules.Desktop.permission(); + } + }; + + // Old style showLast() in History module. + if (window.jQuery) { + window.jQuery(function () { + window.jQuery(document.body).on('pnotify.history-last', function () { + _PNotify3.default.modules.History.showLast(); + }); + }); + } + + exports.default = PNotifyCompat; + module.exports = exports['default']; +}); +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlBOb3RpZnlDb21wYXQuanMiXSwibmFtZXMiOlsidHJhbnNsYXRlT3B0aW9ucyIsIm9wdGlvbnMiLCJtb2R1bGUiLCJtb2R1bGVOYW1lIiwibmV3T3B0aW9ucyIsIlBOb3RpZnlDb21wYXQiLCJwcm90b3R5cGUiLCJ0cmFuc2xhdGVOYW1lIiwiYmFkTmFtZSIsImdvb2ROYW1lIiwidW5kZXJzY29yZUluZGV4IiwiaW5kZXhPZiIsInNsaWNlIiwidG9VcHBlckNhc2UiLCJuYW1lIiwiaGFzT3duUHJvcGVydHkiLCJhZGRDbGFzcyIsImFkZGNsYXNzIiwiY29ybmVyQ2xhc3MiLCJjb3JuZXJjbGFzcyIsInRleHRUcnVzdGVkIiwidGV4dEVzY2FwZSIsInRpdGxlVHJ1c3RlZCIsInRpdGxlRXNjYXBlIiwic3R5bGluZyIsImljb25zIiwic3RhY2siLCJvdmVybGF5X2Nsb3NlIiwib3ZlcmxheUNsb3NlIiwibW9kdWxlcyIsIkFuaW1hdGUiLCJhbmltYXRlIiwiQnV0dG9ucyIsImJ1dHRvbnMiLCJjbGFzc2VzIiwiQ29uZmlybSIsImNvbmZpcm0iLCJwcm9tcHREZWZhdWx0IiwicHJvbXB0VmFsdWUiLCJEZXNrdG9wIiw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Z5Q29tcGF0LnBvc2l0aW9uQWxsID0gKGFuaW1hdGUpID0+IFBOb3RpZnkucG9zaXRpb25BbGwoYW5pbWF0ZSk7XG5cbi8vIERlc2t0b3AgbW9kdWxlIHBlcm1pc3Npb24gbWV0aG9kLlxuUE5vdGlmeUNvbXBhdC5kZXNrdG9wID0ge1xuICBwZXJtaXNzaW9uOiAoKSA9PiB7XG4gICAgUE5vdGlmeS5tb2R1bGVzLkRlc2t0b3AucGVybWlzc2lvbigpO1xuICB9XG59O1xuXG4vLyBPbGQgc3R5bGUgc2hvd0xhc3QoKSBpbiBIaXN0b3J5IG1vZHVsZS5cbmlmICh3aW5kb3cualF1ZXJ5KSB7XG4gIHdpbmRvdy5qUXVlcnkoKCkgPT4ge1xuICAgIHdpbmRvdy5qUXVlcnkoZG9jdW1lbnQuYm9keSkub24oJ3Bub3RpZnkuaGlzdG9yeS1sYXN0JywgZnVuY3Rpb24gKCkge1xuICAgICAgUE5vdGlmeS5tb2R1bGVzLkhpc3Rvcnkuc2hvd0xhc3QoKTtcbiAgICB9KTtcbiAgfSk7XG59XG5cbmV4cG9ydCBkZWZhdWx0IFBOb3RpZnlDb21wYXQ7XG4iXX0= \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyCompat.js.map b/app/node_modules/pnotify/lib/umd/PNotifyCompat.js.map new file mode 100644 index 00000000..60a5fd1d --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyCompat.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["PNotifyCompat.js"],"names":["translateOptions","options","module","moduleName","newOptions","PNotifyCompat","prototype","translateName","badName","goodName","underscoreIndex","indexOf","slice","toUpperCase","name","hasOwnProperty","addClass","addclass","cornerClass","cornerclass","textTrusted","textEscape","titleTrusted","titleEscape","styling","icons","stack","overlay_close","overlayClose","modules","Animate","animate","Buttons","buttons","classes","Confirm","confirm","promptDefault","promptValue","Desktop","desktop","History","history","Mobile","mobile","NonBlock","nonblock","Reference","reference","Callbacks","beforeInit","afterInit","beforeOpen","afterOpen","beforeClose","afterClose","before_init","target","document","body","data","_get","get","option","undefined","window","jQuery","refs","elem","call","on","e","trigger","value","getCallbacks","text_escape","title_escape","reload","removeAll","removeStack","positionAll","permission","showLast"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AACA,MAAMA,mBAAmB,SAAnBA,gBAAmB,CAACC,OAAD,EAAUC,MAAV,EAAkBC,UAAlB,EAAiC;AACxD;AACA,QAAMC,aAAaF,SAAS,SAAc,EAAd,EAAkBC,aAAaE,cAAcC,SAAd,CAAwBL,OAAxB,CAAgCE,UAAhC,CAAb,GAA2D,EAA7E,EAAiFF,OAAjF,CAAT,GAAqG,SAAc,EAAd,EAAkBI,cAAcC,SAAd,CAAwBL,OAA1C,EAAmDA,OAAnD,CAAxH;AACA,QAAMM,gBAAgB,SAAhBA,aAAgB,CAACC,OAAD,EAAa;AACjC,UAAIC,WAAWD,OAAf;AACA,UAAIE,wBAAJ;AACA,aAAO,CAACA,kBAAkBD,SAASE,OAAT,CAAiB,GAAjB,CAAnB,MAA8C,CAAC,CAAtD,EAAyD;AACvDF,mBAAWA,SAASG,KAAT,CAAe,CAAf,EAAkBF,eAAlB,IAAqCD,SAASG,KAAT,CAAeF,kBAAkB,CAAjC,EAAoCA,kBAAkB,CAAtD,EAAyDG,WAAzD,EAArC,GAA8GJ,SAASG,KAAT,CAAeF,kBAAkB,CAAjC,CAAzH;AACD;AACD,aAAOD,QAAP;AACD,KAPD;;AASA;AACA,SAAK,IAAIK,IAAT,IAAiBV,UAAjB,EAA6B;AAC3B,UAAIA,WAAWW,cAAX,CAA0BD,IAA1B,KAAmCA,KAAKH,OAAL,CAAa,GAAb,MAAsB,CAAC,CAA9D,EAAiE;AAC/D,YAAMF,WAAWF,cAAcO,IAAd,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IAAxB,EAA8BI,OAA9B,CAAsC,gBAAtC;AACD;AACF,OAJD;;AAMA,UAAI,kBAAQ3C,OAAR,CAAgBoB,SAApB,EAA+B;AAC7B,0BAAQpB,OAAR,CAAgBoB,SAAhB,CAA0ByB,YAA1B,QAA6C,IAA7C,EAAmD,WAAnD;AACD;AArCmB;AAsCrB;;;;6BAEOzE,O,EAAS;AACfA,kBAAUD,iBAAiBC,OAAjB,CAAV;AACA,qIAAoBA,OAApB;AACD;;;;;;AAGH;AACAI,gBAAcC,SAAd,CAAwBL,OAAxB,GAAkC;AAChC0E,iBAAa,KADmB;AAEhCC,kBAAc;AAFkB,GAAlC;;AAKA;AACAvE,gBAAcwE,MAAd,GAAuB;AAAA,WAAMxE,aAAN;AAAA,GAAvB;AACAA,gBAAcyE,SAAd,GAA0B;AAAA,WAAM,kBAAQA,SAAR,EAAN;AAAA,GAA1B;AACAzE,gBAAc0E,WAAd,GAA4B,UAACrD,KAAD;AAAA,WAAW,kBAAQqD,WAAR,CAAoBrD,KAApB,CAAX;AAAA,GAA5B;AACArB,gBAAc2E,WAAd,GAA4B,UAACjD,OAAD;AAAA,WAAa,kBAAQiD,WAAR,CAAoBjD,OAApB,CAAb;AAAA,GAA5B;;AAEA;AACA1B,gBAAcmC,OAAd,GAAwB;AACtByC,gBAAY,sBAAM;AAChB,wBAAQpD,OAAR,CAAgBU,OAAhB,CAAwB0C,UAAxB;AACD;AAHqB,GAAxB;;AAMA;AACA,MAAIhB,OAAOC,MAAX,EAAmB;AACjBD,WAAOC,MAAP,CAAc,YAAM;AAClBD,aAAOC,MAAP,CAAcR,SAASC,IAAvB,EAA6BW,EAA7B,CAAgC,sBAAhC,EAAwD,YAAY;AAClE,0BAAQzC,OAAR,CAAgBY,OAAhB,CAAwByC,QAAxB;AACD,OAFD;AAGD,KAJD;AAKD;;oBAEc7E,a","file":"src/PNotifyCompat.js","sourceRoot":"../","sourcesContent":["import PNotify from './PNotify.html';\n\n// Translate v3 options to v4 options.\nconst translateOptions = (options, module, moduleName) => {\n // Merge the classic default options.\n const newOptions = module ? Object.assign({}, moduleName ? PNotifyCompat.prototype.options[moduleName] : {}, options) : Object.assign({}, PNotifyCompat.prototype.options, options);\n const translateName = (badName) => {\n let goodName = badName;\n let underscoreIndex;\n while ((underscoreIndex = goodName.indexOf('_')) !== -1) {\n goodName = goodName.slice(0, underscoreIndex) + goodName.slice(underscoreIndex + 1, underscoreIndex + 2).toUpperCase() + goodName.slice(underscoreIndex + 2);\n }\n return goodName;\n };\n\n // Translate all options to the new style.\n for (let name in newOptions) {\n if (newOptions.hasOwnProperty(name) && name.indexOf('_') !== -1) {\n const goodName = translateName(name);\n newOptions[goodName] = newOptions[name];\n delete newOptions[name];\n }\n }\n\n if (!module) {\n // Options that have changed.\n if (newOptions.hasOwnProperty('addclass')) {\n newOptions.addClass = newOptions.addclass;\n delete newOptions.addclass;\n }\n if (newOptions.hasOwnProperty('cornerclass')) {\n newOptions.cornerClass = newOptions.cornerclass;\n delete newOptions.cornerClass;\n }\n if (newOptions.hasOwnProperty('textEscape')) {\n newOptions.textTrusted = !newOptions.textEscape;\n delete newOptions.textEscape;\n }\n if (newOptions.hasOwnProperty('titleEscape')) {\n newOptions.titleTrusted = !newOptions.titleEscape;\n delete newOptions.titleEscape;\n }\n\n // Styling and icons.\n if (newOptions.hasOwnProperty('styling')) {\n if (newOptions.styling === 'bootstrap3') {\n newOptions.icons = 'bootstrap3';\n } else if (newOptions.styling === 'fontawesome') {\n newOptions.styling = 'bootstrap3';\n newOptions.icons = 'fontawesome4';\n }\n }\n\n // Stacks.\n if (newOptions.hasOwnProperty('stack')) {\n if (newOptions.stack.overlay_close) {\n newOptions.stack.overlayClose = newOptions.stack.overlay_close;\n }\n }\n\n // Translate module options.\n newOptions.modules = {};\n if (newOptions.hasOwnProperty('animate')) {\n newOptions.modules.Animate = translateOptions(newOptions.animate, true, 'animate');\n delete newOptions.animate;\n }\n if (newOptions.hasOwnProperty('buttons')) {\n newOptions.modules.Buttons = translateOptions(newOptions.buttons, true, 'buttons');\n delete newOptions.buttons;\n if (newOptions.modules.Buttons.classes) {\n newOptions.modules.Buttons.classes = translateOptions(newOptions.modules.Buttons.classes, true);\n }\n }\n if (newOptions.hasOwnProperty('confirm')) {\n newOptions.modules.Confirm = translateOptions(newOptions.confirm, true, 'confirm');\n if (newOptions.modules.Confirm.promptDefault) {\n newOptions.modules.Confirm.promptValue = newOptions.modules.Confirm.promptDefault;\n delete newOptions.modules.Confirm.promptDefault;\n }\n delete newOptions.confirm;\n }\n if (newOptions.hasOwnProperty('desktop')) {\n newOptions.modules.Desktop = translateOptions(newOptions.desktop, true, 'desktop');\n delete newOptions.desktop;\n }\n if (newOptions.hasOwnProperty('history')) {\n newOptions.modules.History = translateOptions(newOptions.history, true, 'history');\n delete newOptions.history;\n }\n if (newOptions.hasOwnProperty('mobile')) {\n newOptions.modules.Mobile = translateOptions(newOptions.mobile, true, 'mobile');\n delete newOptions.mobile;\n }\n if (newOptions.hasOwnProperty('nonblock')) {\n newOptions.modules.NonBlock = translateOptions(newOptions.nonblock, true, 'nonblock');\n delete newOptions.nonblock;\n }\n if (newOptions.hasOwnProperty('reference')) {\n newOptions.modules.Reference = translateOptions(newOptions.reference, true, 'reference');\n delete newOptions.reference;\n }\n if (newOptions.hasOwnProperty('beforeInit')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.beforeInit = newOptions.beforeInit;\n delete newOptions.beforeInit;\n }\n if (newOptions.hasOwnProperty('afterInit')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.afterInit = newOptions.afterInit;\n delete newOptions.afterInit;\n }\n if (newOptions.hasOwnProperty('beforeOpen')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.beforeOpen = newOptions.beforeOpen;\n delete newOptions.beforeOpen;\n }\n if (newOptions.hasOwnProperty('afterOpen')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.afterOpen = newOptions.afterOpen;\n delete newOptions.afterOpen;\n }\n if (newOptions.hasOwnProperty('beforeClose')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.beforeClose = newOptions.beforeClose;\n delete newOptions.beforeClose;\n }\n if (newOptions.hasOwnProperty('afterClose')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.afterClose = newOptions.afterClose;\n delete newOptions.afterClose;\n }\n }\n\n return newOptions;\n};\n\n// The compatibility class.\nclass PNotifyCompat extends PNotify {\n constructor (options) {\n if (typeof options !== 'object') {\n options = {'text': options};\n }\n\n // These need to be called directly, since we're not using PNotify.alert().\n if (PNotify.modules.Callbacks && options.before_init) {\n options.before_init(options);\n }\n\n options = translateOptions(options);\n\n super({target: document.body, data: options});\n\n // Override the get function to return the element like it did in v3.\n const _get = this.get;\n this.get = function (option) {\n if (option === undefined) {\n return Object.assign(window.jQuery ? window.jQuery(this.refs.elem) : this.refs.elem, _get.call(this));\n }\n return _get.call(this, option);\n };\n\n // Confirm module events.\n this.on('pnotify.confirm', (e) => {\n if (window.jQuery) {\n window.jQuery(this.refs.elem).trigger('pnotify.confirm', [this, e.value]);\n }\n });\n this.on('pnotify.cancel', (e) => {\n if (window.jQuery) {\n window.jQuery(this.refs.elem).trigger('pnotify.cancel', this);\n }\n });\n\n if (PNotify.modules.Callbacks) {\n PNotify.modules.Callbacks.getCallbacks(this, null, 'afterInit')(this);\n }\n }\n\n update (options) {\n options = translateOptions(options);\n return super.update(options);\n }\n}\n\n// Lets you change defaults the old way.\nPNotifyCompat.prototype.options = {\n text_escape: false,\n title_escape: false\n};\n\n// Forward static functions.\nPNotifyCompat.reload = () => PNotifyCompat;\nPNotifyCompat.removeAll = () => PNotify.removeAll();\nPNotifyCompat.removeStack = (stack) => PNotify.removeStack(stack);\nPNotifyCompat.positionAll = (animate) => PNotify.positionAll(animate);\n\n// Desktop module permission method.\nPNotifyCompat.desktop = {\n permission: () => {\n PNotify.modules.Desktop.permission();\n }\n};\n\n// Old style showLast() in History module.\nif (window.jQuery) {\n window.jQuery(() => {\n window.jQuery(document.body).on('pnotify.history-last', function () {\n PNotify.modules.History.showLast();\n });\n });\n}\n\nexport default PNotifyCompat;\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyConfirm.js b/app/node_modules/pnotify/lib/umd/PNotifyConfirm.js new file mode 100644 index 00000000..7e0746a4 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyConfirm.js @@ -0,0 +1,753 @@ +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +/* src/PNotifyConfirm.html generated by Svelte v2.6.3 */ +(function (global, factory) { + (typeof exports === "undefined" ? "undefined" : _typeof(exports)) === "object" && typeof module !== "undefined" ? module.exports = factory(require('./PNotify')) : typeof define === "function" && define.amd ? define('PNotifyConfirm', ["./PNotify"], factory) : global.PNotifyConfirm = factory(PNotify); +})(this, function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.Confirm.defaults); + }; + + var methods = { + initModule: function initModule(options) { + this.set(options); + }, + afterOpen: function afterOpen() { + if (this.get().prompt) { + if (this.get().promptMultiLine) { + this.refs.promptMulti.focus(); + } else { + this.refs.promptSingle.focus(); + } + } + }, + handleClick: function handleClick(button, event) { + if (button.click) { + button.click(this.get()._notice, this.get().prompt ? this.get().promptValue : null, event); + } + }, + handleKeyPress: function handleKeyPress(event) { + if (event.keyCode === 13 && !event.shiftKey) { + event.preventDefault(); + + var _get = this.get(), + buttons = _get.buttons; + + for (var i = 0; i < buttons.length; i++) { + if (buttons[i].promptTrigger && buttons[i].click) { + buttons[i].click(this.get()._notice, this.get().prompt ? this.get().promptValue : null, event); + } + } + } + } + }; + + function oncreate() { + this.fire('init', { module: this }); + }; + + function setup(Component) { + Component.key = 'Confirm'; + + Component.defaults = { + // Make a confirmation box. + confirm: false, + // Make a prompt. + prompt: false, + // Classes to add to the input element of the prompt. + promptClass: '', + // The value of the prompt. + promptValue: '', + // Whether the prompt should accept multiple lines of text. + promptMultiLine: false, + // Where to align the buttons. (flex-start, center, flex-end, space-around, space-between) + align: 'flex-end', + // The buttons to display, and their callbacks. + buttons: [{ + text: 'Ok', + textTrusted: false, + addClass: '', + primary: true, + // Whether to trigger this button when the user hits enter in a single line prompt. + promptTrigger: true, + click: function click(notice, value) { + notice.close(); + notice.fire('pnotify.confirm', { notice: notice, value: value }); + } + }, { + text: 'Cancel', + textTrusted: false, + addClass: '', + click: function click(notice) { + notice.close(); + notice.fire('pnotify.cancel', { notice: notice }); + } + }] + }; + + // Register the module with PNotify. + PNotify.modules.Confirm = Component; + // Append this module to the container. + PNotify.modulesAppendContainer.push(Component); + + // Add button styles to styling objects. + _extends(PNotify.styling.brighttheme, { + actionBar: '', + promptBar: '', + btn: '', + btnPrimary: 'brighttheme-primary', + input: '' + }); + _extends(PNotify.styling.bootstrap3, { + actionBar: 'ui-pnotify-confirm-ml', + promptBar: 'ui-pnotify-confirm-ml', + btn: 'btn btn-default ui-pnotify-confirm-mx-1', + btnPrimary: 'btn btn-default ui-pnotify-confirm-mx-1 btn-primary', + input: 'form-control' + }); + _extends(PNotify.styling.bootstrap4, { + actionBar: 'ui-pnotify-confirm-ml', + promptBar: 'ui-pnotify-confirm-ml', + btn: 'btn btn-secondary mx-1', + btnPrimary: 'btn btn-primary mx-1', + input: 'form-control' + }); + if (!PNotify.styling.material) { + PNotify.styling.material = {}; + } + _extends(PNotify.styling.material, { + actionBar: '', + promptBar: '', + btn: '', + btnPrimary: 'ui-pnotify-material-primary', + input: '' + }); + }; + + function add_css() { + var style = createElement("style"); + style.id = 'svelte-1y9suua-style'; + style.textContent = ".ui-pnotify-action-bar.svelte-1y9suua,.ui-pnotify-prompt-bar.svelte-1y9suua{margin-top:5px;clear:both}.ui-pnotify-action-bar.svelte-1y9suua{display:flex;flex-wrap:wrap;justify-content:flex-end}.ui-pnotify-prompt-input.svelte-1y9suua{margin-bottom:5px;display:block;width:100%}.ui-pnotify-confirm-mx-1.svelte-1y9suua{margin:0 5px}.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-confirm-ml{margin-left:24px}[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-confirm-ml{margin-right:24px;margin-left:0}"; + appendNode(style, document.head); + } + + function create_main_fragment(component, ctx) { + var if_block_anchor; + + var if_block = (ctx.confirm || ctx.prompt) && create_if_block(component, ctx); + + return { + c: function c() { + if (if_block) if_block.c(); + if_block_anchor = createComment(); + }, + m: function m(target, anchor) { + if (if_block) if_block.m(target, anchor); + insertNode(if_block_anchor, target, anchor); + }, + p: function p(changed, ctx) { + if (ctx.confirm || ctx.prompt) { + if (if_block) { + if_block.p(changed, ctx); + } else { + if_block = create_if_block(component, ctx); + if_block.c(); + if_block.m(if_block_anchor.parentNode, if_block_anchor); + } + } else if (if_block) { + if_block.d(1); + if_block = null; + } + }, + d: function d(detach) { + if (if_block) if_block.d(detach); + if (detach) { + detachNode(if_block_anchor); + } + } + }; + } + + // (10:8) {#if promptMultiLine} + function create_if_block_2(component, ctx) { + var textarea, + textarea_updating = false, + textarea_class_value; + + function textarea_input_handler() { + textarea_updating = true; + component.set({ promptValue: textarea.value }); + textarea_updating = false; + } + + function keypress_handler(event) { + component.handleKeyPress(event); + } + + return { + c: function c() { + textarea = createElement("textarea"); + addListener(textarea, "input", textarea_input_handler); + addListener(textarea, "keypress", keypress_handler); + textarea.rows = "5"; + textarea.className = textarea_class_value = "\n ui-pnotify-prompt-input\n " + (ctx._notice.get()._styles.input ? ctx._notice.get()._styles.input : '') + "\n " + ctx.promptClass + "\n " + " svelte-1y9suua"; + }, + m: function m(target, anchor) { + insertNode(textarea, target, anchor); + component.refs.promptMulti = textarea; + + textarea.value = ctx.promptValue; + }, + p: function p(changed, ctx) { + if (!textarea_updating) textarea.value = ctx.promptValue; + if ((changed._notice || changed.promptClass) && textarea_class_value !== (textarea_class_value = "\n ui-pnotify-prompt-input\n " + (ctx._notice.get()._styles.input ? ctx._notice.get()._styles.input : '') + "\n " + ctx.promptClass + "\n " + " svelte-1y9suua")) { + textarea.className = textarea_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(textarea); + } + + removeListener(textarea, "input", textarea_input_handler); + removeListener(textarea, "keypress", keypress_handler); + if (component.refs.promptMulti === textarea) component.refs.promptMulti = null; + } + }; + } + + // (21:8) {:else} + function create_if_block_3(component, ctx) { + var input, + input_updating = false, + input_class_value; + + function input_input_handler() { + input_updating = true; + component.set({ promptValue: input.value }); + input_updating = false; + } + + function keypress_handler(event) { + component.handleKeyPress(event); + } + + return { + c: function c() { + input = createElement("input"); + addListener(input, "input", input_input_handler); + addListener(input, "keypress", keypress_handler); + setAttribute(input, "type", "text"); + input.className = input_class_value = "\n ui-pnotify-prompt-input\n " + (ctx._notice.get()._styles.input ? ctx._notice.get()._styles.input : '') + "\n " + ctx.promptClass + "\n " + " svelte-1y9suua"; + }, + m: function m(target, anchor) { + insertNode(input, target, anchor); + component.refs.promptSingle = input; + + input.value = ctx.promptValue; + }, + p: function p(changed, ctx) { + if (!input_updating) input.value = ctx.promptValue; + if ((changed._notice || changed.promptClass) && input_class_value !== (input_class_value = "\n ui-pnotify-prompt-input\n " + (ctx._notice.get()._styles.input ? ctx._notice.get()._styles.input : '') + "\n " + ctx.promptClass + "\n " + " svelte-1y9suua")) { + input.className = input_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(input); + } + + removeListener(input, "input", input_input_handler); + removeListener(input, "keypress", keypress_handler); + if (component.refs.promptSingle === input) component.refs.promptSingle = null; + } + }; + } + + // (3:4) {#if prompt} + function create_if_block_1(component, ctx) { + var div, div_class_value; + + function select_block_type(ctx) { + if (ctx.promptMultiLine) return create_if_block_2; + return create_if_block_3; + } + + var current_block_type = select_block_type(ctx); + var if_block = current_block_type(component, ctx); + + return { + c: function c() { + div = createElement("div"); + if_block.c(); + div.className = div_class_value = "\n ui-pnotify-prompt-bar\n " + (ctx._notice.get()._styles.promptBar ? ctx._notice.get()._styles.promptBar : '') + "\n " + (ctx._notice.get()._styles.text ? ctx._notice.get()._styles.text : '') + "\n " + " svelte-1y9suua"; + }, + m: function m(target, anchor) { + insertNode(div, target, anchor); + if_block.m(div, null); + }, + p: function p(changed, ctx) { + if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) { + if_block.p(changed, ctx); + } else { + if_block.d(1); + if_block = current_block_type(component, ctx); + if_block.c(); + if_block.m(div, null); + } + + if (changed._notice && div_class_value !== (div_class_value = "\n ui-pnotify-prompt-bar\n " + (ctx._notice.get()._styles.promptBar ? ctx._notice.get()._styles.promptBar : '') + "\n " + (ctx._notice.get()._styles.text ? ctx._notice.get()._styles.text : '') + "\n " + " svelte-1y9suua")) { + div.className = div_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(div); + } + + if_block.d(); + } + }; + } + + // (42:6) {#each buttons as button} + function create_each_block(component, ctx) { + var button, button_class_value; + + function select_block_type_1(ctx) { + if (ctx.button.textTrusted) return create_if_block_4; + return create_if_block_5; + } + + var current_block_type = select_block_type_1(ctx); + var if_block = current_block_type(component, ctx); + + return { + c: function c() { + button = createElement("button"); + if_block.c(); + button._svelte = { component: component, ctx: ctx }; + + addListener(button, "click", click_handler); + button.type = "button"; + button.className = button_class_value = "\n ui-pnotify-action-button\n " + (ctx.button.primary ? ctx._notice.get()._styles.btnPrimary ? ctx._notice.get()._styles.btnPrimary : '' : ctx._notice.get()._styles.btn ? ctx._notice.get()._styles.btn : '') + "\n " + (ctx.button.addClass ? ctx.button.addClass : '') + "\n " + " svelte-1y9suua"; + }, + m: function m(target, anchor) { + insertNode(button, target, anchor); + if_block.m(button, null); + }, + p: function p(changed, ctx) { + if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block) { + if_block.p(changed, ctx); + } else { + if_block.d(1); + if_block = current_block_type(component, ctx); + if_block.c(); + if_block.m(button, null); + } + + button._svelte.ctx = ctx; + if ((changed.buttons || changed._notice) && button_class_value !== (button_class_value = "\n ui-pnotify-action-button\n " + (ctx.button.primary ? ctx._notice.get()._styles.btnPrimary ? ctx._notice.get()._styles.btnPrimary : '' : ctx._notice.get()._styles.btn ? ctx._notice.get()._styles.btn : '') + "\n " + (ctx.button.addClass ? ctx.button.addClass : '') + "\n " + " svelte-1y9suua")) { + button.className = button_class_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(button); + } + + if_block.d(); + removeListener(button, "click", click_handler); + } + }; + } + + // (50:14) {#if button.textTrusted} + function create_if_block_4(component, ctx) { + var raw_value = ctx.button.text, + raw_before, + raw_after; + + return { + c: function c() { + raw_before = createElement('noscript'); + raw_after = createElement('noscript'); + }, + m: function m(target, anchor) { + insertNode(raw_before, target, anchor); + raw_before.insertAdjacentHTML("afterend", raw_value); + insertNode(raw_after, target, anchor); + }, + p: function p(changed, ctx) { + if (changed.buttons && raw_value !== (raw_value = ctx.button.text)) { + detachBetween(raw_before, raw_after); + raw_before.insertAdjacentHTML("afterend", raw_value); + } + }, + d: function d(detach) { + if (detach) { + detachBetween(raw_before, raw_after); + detachNode(raw_before); + detachNode(raw_after); + } + } + }; + } + + // (50:57) {:else} + function create_if_block_5(component, ctx) { + var text_value = ctx.button.text, + text; + + return { + c: function c() { + text = createText(text_value); + }, + m: function m(target, anchor) { + insertNode(text, target, anchor); + }, + p: function p(changed, ctx) { + if (changed.buttons && text_value !== (text_value = ctx.button.text)) { + text.data = text_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(text); + } + } + }; + } + + // (1:0) {#if confirm || prompt} + function create_if_block(component, ctx) { + var div, text, div_1, div_1_class_value; + + var if_block = ctx.prompt && create_if_block_1(component, ctx); + + var each_value = ctx.buttons; + + var each_blocks = []; + + for (var i = 0; i < each_value.length; i += 1) { + each_blocks[i] = create_each_block(component, get_each_context(ctx, each_value, i)); + } + + return { + c: function c() { + div = createElement("div"); + if (if_block) if_block.c(); + text = createText("\n "); + div_1 = createElement("div"); + + for (var i = 0; i < each_blocks.length; i += 1) { + each_blocks[i].c(); + } + div_1.className = div_1_class_value = "\n ui-pnotify-action-bar\n " + (ctx._notice.get()._styles.actionBar ? ctx._notice.get()._styles.actionBar : '') + "\n " + (ctx._notice.get()._styles.text ? ctx._notice.get()._styles.text : '') + "\n " + " svelte-1y9suua"; + setStyle(div_1, "justify-content", ctx.align); + div.className = "ui-pnotify-confirm"; + }, + m: function m(target, anchor) { + insertNode(div, target, anchor); + if (if_block) if_block.m(div, null); + appendNode(text, div); + appendNode(div_1, div); + + for (var i = 0; i < each_blocks.length; i += 1) { + each_blocks[i].m(div_1, null); + } + }, + p: function p(changed, ctx) { + if (ctx.prompt) { + if (if_block) { + if_block.p(changed, ctx); + } else { + if_block = create_if_block_1(component, ctx); + if_block.c(); + if_block.m(div, text); + } + } else if (if_block) { + if_block.d(1); + if_block = null; + } + + if (changed.buttons || changed._notice) { + each_value = ctx.buttons; + + for (var i = 0; i < each_value.length; i += 1) { + var child_ctx = get_each_context(ctx, each_value, i); + + if (each_blocks[i]) { + each_blocks[i].p(changed, child_ctx); + } else { + each_blocks[i] = create_each_block(component, child_ctx); + each_blocks[i].c(); + each_blocks[i].m(div_1, null); + } + } + + for (; i < each_blocks.length; i += 1) { + each_blocks[i].d(1); + } + each_blocks.length = each_value.length; + } + + if (changed._notice && div_1_class_value !== (div_1_class_value = "\n ui-pnotify-action-bar\n " + (ctx._notice.get()._styles.actionBar ? ctx._notice.get()._styles.actionBar : '') + "\n " + (ctx._notice.get()._styles.text ? ctx._notice.get()._styles.text : '') + "\n " + " svelte-1y9suua")) { + div_1.className = div_1_class_value; + } + + if (changed.align) { + setStyle(div_1, "justify-content", ctx.align); + } + }, + d: function d(detach) { + if (detach) { + detachNode(div); + } + + if (if_block) if_block.d(); + + destroyEach(each_blocks, detach); + } + }; + } + + function get_each_context(ctx, list, i) { + var child_ctx = Object.create(ctx); + child_ctx.button = list[i]; + child_ctx.each_value = list; + child_ctx.button_index = i; + return child_ctx; + } + + function click_handler(event) { + var _svelte = this._svelte, + component = _svelte.component, + ctx = _svelte.ctx; + + + component.handleClick(ctx.button, event); + } + + function PNotifyConfirm(options) { + var _this = this; + + init(this, options); + this.refs = {}; + this._state = assign(data(), options.data); + this._intro = true; + + if (!document.getElementById("svelte-1y9suua-style")) add_css(); + + if (!options.root) { + this._oncreate = []; + } + + this._fragment = create_main_fragment(this, this._state); + + this.root._oncreate.push(function () { + oncreate.call(_this); + _this.fire("update", { changed: assignTrue({}, _this._state), current: _this._state }); + }); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + + callAll(this._oncreate); + } + } + + assign(PNotifyConfirm.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyConfirm.prototype, methods); + + PNotifyConfirm.prototype._recompute = noop; + + setup(PNotifyConfirm); + + function createElement(name) { + return document.createElement(name); + } + + function appendNode(node, target) { + target.appendChild(node); + } + + function createComment() { + return document.createComment(''); + } + + function insertNode(node, target, anchor) { + target.insertBefore(node, anchor); + } + + function detachNode(node) { + node.parentNode.removeChild(node); + } + + function addListener(node, event, handler) { + node.addEventListener(event, handler, false); + } + + function removeListener(node, event, handler) { + node.removeEventListener(event, handler, false); + } + + function setAttribute(node, attribute, value) { + node.setAttribute(attribute, value); + } + + function detachBetween(before, after) { + while (before.nextSibling && before.nextSibling !== after) { + before.parentNode.removeChild(before.nextSibling); + } + } + + function createText(data) { + return document.createTextNode(data); + } + + function setStyle(node, key, value) { + node.style.setProperty(key, value); + } + + function destroyEach(iterations, detach) { + for (var i = 0; i < iterations.length; i += 1) { + if (iterations[i]) iterations[i].d(detach); + } + } + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function assignTrue(tar, src) { + for (var k in src) { + tar[k] = 1; + }return tar; + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function noop() {} + + function blankObject() { + return Object.create(null); + } + + return PNotifyConfirm; +}); +//# sourceMappingURL=PNotifyConfirm.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyConfirm.js.map b/app/node_modules/pnotify/lib/umd/PNotifyConfirm.js.map new file mode 100644 index 00000000..fb422b67 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyConfirm.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyConfirm.html"],"names":[],"mappings":";;;;;;;;;;;;UAgJS,I,GAAG;AACN,SAAO,SAAc;AACnB,cAAW,IADQ,EACJ;AACf,eAAY,EAFO,CAEL;AAFK,GAAd,EAGJ,QAAQ,OAAR,CAAgB,OAAhB,CAAwB,QAHpB,CAAP;AAID;;eAEQ;AACP,YADO,sBACK,OADL,EACc;AACnB,QAAK,GAAL,CAAS,OAAT;AACD,GAHM;AAKP,WALO,uBAKM;AACX,OAAI,KAAK,GAAL,GAAW,MAAf,EAAuB;AACrB,QAAI,KAAK,GAAL,GAAW,eAAf,EAAgC;AAC9B,UAAK,IAAL,CAAU,WAAV,CAAsB,KAAtB;AACD,KAFD,MAEO;AACL,UAAK,IAAL,CAAU,YAAV,CAAuB,KAAvB;AACD;AACF;AACF,GAbM;AAeP,aAfO,uBAeM,MAfN,EAec,KAfd,EAeqB;AAC1B,OAAI,OAAO,KAAX,EAAkB;AAChB,WAAO,KAAP,CAAa,KAAK,GAAL,GAAW,OAAxB,EAAiC,KAAK,GAAL,GAAW,MAAX,GAAoB,KAAK,GAAL,GAAW,WAA/B,GAA6C,IAA9E,EAAoF,KAApF;AACD;AACF,GAnBM;AAqBP,gBArBO,0BAqBS,KArBT,EAqBgB;AACrB,OAAI,MAAM,OAAN,KAAkB,EAAlB,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,GAAiB,OAAjB,CAAyB,IADmB,GACZ,E,IAAE,Y,GAAA,iB;2CAEtC,K;;;;;;;;;;;;;;YAtCxB,M,EAAM;;;;;;;;;;;;;;sBAuCF,O;;oCAAL,M,EAAA,KAAA,C,EAAA;;;;;;;;;;;;;;;qCAAA,M;;;6HAJG,O,CAAQ,G,GAAM,O,CAAQ,S,GAAS,IAAG,OAAH,CAAW,GAAX,GAAiB,OAAjB,CAAyB,S,GAAY,E,IAAE,c,IAAA,IACtE,OADsE,CAC9D,GAD8D,GACxD,OADwD,CAChD,IADgD,GAC5C,IAAG,OAAH,CAAW,GAAX,GAAiB,OAAjB,CAAyB,IADmB,GACZ,E,IAAE,Y,GAAA,iB,GAAA;;;;;4CAEtC,K;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAIX,W,CAAA,IAAY,M,EAAQ,K","sourcesContent":["{#if confirm || prompt}\n
\n {#if prompt}\n \n {#if promptMultiLine}\n \n {:else}\n \n {/if}\n
\n {/if}\n \n {#each buttons as button}\n {#if button.textTrusted}{@html button.text}{:else}{button.text}{/if}\n {/each}\n \n \n{/if}\n\n\n\n\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyDesktop.js b/app/node_modules/pnotify/lib/umd/PNotifyDesktop.js new file mode 100644 index 00000000..57297a27 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyDesktop.js @@ -0,0 +1,441 @@ +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +/* src/PNotifyDesktop.html generated by Svelte v2.6.3 */ +(function (global, factory) { + (typeof exports === "undefined" ? "undefined" : _typeof(exports)) === "object" && typeof module !== "undefined" ? module.exports = factory(require('./PNotify')) : typeof define === "function" && define.amd ? define('PNotifyDesktop', ["./PNotify"], factory) : global.PNotifyDesktop = factory(PNotify); +})(this, function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + var permission = void 0; + var Notification = window.Notification; + + var _notify = function notify(title, options, onclick, onclose) { + // Memoize based on feature detection. + if ('Notification' in window) { + _notify = function notify(title, options, onclick, onclose) { + var notice = new Notification(title, options); + if ('NotificationEvent' in window) { + notice.addEventListener('notificationclick', onclick); + notice.addEventListener('close', onclose); + } else if ('addEventListener' in notice) { + notice.addEventListener('click', onclick); + notice.addEventListener('close', onclose); + } else { + notice.onclick = onclick; + notice.onclose = onclose; + } + return notice; + }; + } else if ('mozNotification' in navigator) { + _notify = function notify(title, options, onclick, onclose) { + // Gecko < 22 + var notice = navigator.mozNotification.createNotification(title, options.body, options.icon).show(); + notice.onclick = onclick; + notice.onclose = onclose; + return notice; + }; + } else if ('webkitNotifications' in window) { + _notify = function notify(title, options, onclick, onclose) { + var notice = window.webkitNotifications.createNotification(options.icon, title, options.body); + notice.onclick = onclick; + notice.onclose = onclose; + return notice; + }; + } else { + _notify = function notify(title, options, onclick, onclose) { + return null; + }; + } + return _notify(title, options, onclick, onclose); + }; + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.Desktop.defaults); + }; + + var methods = { + initModule: function initModule(options) { + var _this = this; + + this.set(options); + + var _get = this.get(), + _notice = _get._notice; + + // Animation should always be 'none' for desktop notices, but remember + // the old animation so it can be recovered. + + + this.set({ '_oldAnimation': _notice.get().animation }); + _notice.on('state', function (_ref) { + var changed = _ref.changed, + current = _ref.current, + previous = _ref.previous; + + if (changed.animation) { + if (previous.animation === undefined || current.animation !== 'none' || previous.animation === 'none' && current.animation !== _this.get()._oldAnimation) { + _this.set({ '_oldAnimation': current.animation }); + } + } + + // This is necessary so desktop notices don't cause spacing problems + // when positioning. + if (changed._animatingClass) { + if (!(current._animatingClass === '' || permission !== 0 && _this.get().fallback || !_this.get().desktop)) { + _notice.set({ '_animatingClass': '' }); + } + } + }); + + if (!this.get().desktop) { + return; + } + + permission = PNotify.modules.Desktop.checkPermission(); + if (permission !== 0) { + // Keep the notice from opening if fallback is false. + if (!this.get().fallback) { + _notice.set({ 'autoDisplay': false }); + } + return; + } + + _notice.set({ 'animation': 'none' }); + _notice.addModuleClass('ui-pnotify-desktop-hide'); + + this.genNotice(); + }, + update: function update() { + var _get2 = this.get(), + _notice = _get2._notice; + + if (permission !== 0 && this.get().fallback || !this.get().desktop) { + _notice.set({ 'animation': this.get()._oldAnimation }); + _notice.removeModuleClass('ui-pnotify-desktop-hide'); + return; + } else { + _notice.set({ 'animation': 'none' }); + _notice.addModuleClass('ui-pnotify-desktop-hide'); + } + this.genNotice(); + }, + beforeOpen: function beforeOpen() { + if (this.get().desktop && permission !== 0) { + PNotify.modules.Desktop.permission(); + } + if (permission !== 0 && this.get().fallback || !this.get().desktop) { + return; + } + + var _get3 = this.get(), + _desktop = _get3._desktop; + + if (_desktop && 'show' in _desktop) { + this.get()._notice.set({ '_moduleIsNoticeOpen': true }); + _desktop.show(); + } + }, + beforeClose: function beforeClose() { + if (permission !== 0 && this.get().fallback || !this.get().desktop) { + return; + } + + var _get4 = this.get(), + _desktop = _get4._desktop; + + if (_desktop && 'close' in _desktop) { + _desktop.close(); + this.get()._notice.set({ '_moduleIsNoticeOpen': false }); + } + }, + genNotice: function genNotice() { + var _get5 = this.get(), + _notice = _get5._notice, + icon = _get5.icon; + + if (icon === null) { + switch (_notice.get().type) { + case 'error': + this.set({ '_icon': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQg7e6HvQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABr0lEQVRYw8WXu0oDQRSGv7hRSFYrLTTWKihaqUgUJO+gphBLL1jYpPSCVcAggpWthYhC7Ows9An0IbSPkMRCw8ZmFuI6yczs9cAPuzNz5v92brtrESxGARtokkCcAg2hk7jNl4G2R/m4zFPAiwTgWdRFHnmJuaulOAAaPQDqUZvv9DB3tR0lwIcGwHtU5uca5q4qYZvngJbHpAZ8CtU8dS1gLEyAisegBGTFKWiL65KnzVlY5uOSId6VtNuTtMupOu/TAHiQlNmSskHNXCOAGWBeUp7VhFoApoMAXAOWJoCszBJ9+ALY6vL0JiPgjsKmKUAaOOoBZwIAcNxlJLsCrAOTIQJMAWu62y4LOIqT7lGS96TIcYCMDkBZ46h1gB+PHI28ssq8X/G6DaqG8Piz2DrjVjGXbtSBy46F5QAHwJAizwZugKKscs7gSaqS/KpB/qxsFxwafhf6Odb/eblJi8BGwJdW26BtURxQpMU83hmaDQsNiPtvYMSwj3tgAqDgYzU7wJdHjo9+CgBvEW47lV5Tgj5DMtG0xIfESkIAF+522gdWxTzGEX3i9+6KpOMXF5UBt0NKJCAAAAAASUVORK5CYII=' }); + break; + case 'success': + this.set({ '_icon': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQPRj+65AAAAdBJREFUWMPtlzsvRFEQx3+7HmEjoiYKolVJJDRqnS8ggvVIVEQhCIUsEYJGCEH2E4h4FPREaLTbEo1IEJXHrmY2GTf33nPuY7ud5OTenTMz//89Z86ZWShLWf5LB3AOfACFiOMF2AkC3qOc88BXxFEAxlX8ftGdaNCEen8H6oFHYBR4FocwkpTngzzHgF01fwL0aYcp9fVtMW/rsMcWXWijK1Hexgye9smRT6CxaHgjytMYwccNSXqoja9FeVbiZS+OVaeDiUBLAPAJA/i2m5MXgRSQk7llC/DBMOBeBGqAe0eAjQhfvurH3E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OsNSvSyF0Z/5TaCuEleziLhmAOiWG1NWrmZXwIVU1A/+SZO+AcgLC4wt0zD3AAAAAElFTkSuQmCC' }); + break; + case 'notice': + default: + this.set({ '_icon': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATM4scOJLAAAAcxJREFUWMPtljtLA0EQx3+J0QRfnYqCiCA+MERBrIwgFtoFbMTOR61i5QcQBdEihZWNoEWwsNAvkMJeBLHRQtHC0iIP4utOmw2cx97d7l2SRgcGbufmv/Pf2dmdhb8uIR+YJqAPaBff30AeeAHuxLgqMgRkgS/AAEybGuLfEdBcycCTwKVYmY5mgO6gwdd8BLaqAST9Bs8EDG7VTd3gex4TbgEjwKjQOHDugZlRDb7sMZEJpCS4bYVMJOygsG1cB+wqHN0Gib1RYXFpLwL74nx7Sb3EFlXATQNjTgRagA3FbZIRiCliT5wITGgUaRACA0CPjMC4xtUcDUAgDAzLCCQ0MhALQCAE9MoIdGkQCJIBgE4ZgWiNMvDL10qgUMMMFGQEnjQmkLXbVg38s8y4qtFcTCAnHiJ5oKiJnSoHjVgIXAmHkGIl5yy+YcWruIy9dvqpupIDCfZWEXvh1gsWFVfxIbG9a3RbRwJnYiuqJYfAqxsBgBWFiQyJzfTAlIB1uzEicbwBFoBTl8lSwINoSuXKjrv4F4FBh61zlKUKvgn7/e5ZEngMEDgLdFSieHaAT42LpgTMVbqC24B54Bi4twV9E6cnDcw6PFj+RSo/l6rlSlldhx4AAAAASUVORK5CYII=' }); + break; + } + } else if (icon === false) { + this.set({ '_icon': null }); + } else { + this.set({ '_icon': icon }); + } + + var _get6 = this.get(), + tag = _get6.tag; + + if (!this.get()._tag || tag !== null) { + this.set({ + '_tag': tag === null ? 'PNotify-' + Math.round(Math.random() * 1000000) : tag + }); + } + + var options = { + body: this.get().text || _notice.get().text, + tag: this.get()._tag + }; + if (!_notice.get().hide) { + options.requireInteraction = true; + } + if (this.get()._icon !== null) { + options.icon = this.get()._icon; + } + Object.apply(options, this.get().options); + + var _desktop = _notify(this.get().title || _notice.get().title, options, function () { + _notice.fire('click', { target: _desktop }); + }, function () { + _notice.close(); + }); + + _notice.set({ '_moduleIsNoticeOpen': true }); + this.set({ _desktop: _desktop }); + + if (!('close' in _desktop) && 'cancel' in _desktop) { + _desktop.close = function () { + _desktop.cancel(); + }; + } + } + }; + + function setup(Component) { + Component.key = 'Desktop'; + + Component.defaults = { + // Display the notification as a desktop notification. + desktop: false, + // If desktop notifications are not supported or allowed, fall back to a regular notice. + fallback: true, + // The URL of the icon to display. If false, no icon will show. If null, a default icon will show. + icon: null, + // Using a tag lets you update an existing notice, or keep from duplicating notices between tabs. + // If you leave tag null, one will be generated, facilitating the 'update' function. + // see: http://www.w3.org/TR/notifications/#tags-example + tag: null, + // Optionally display a different title for the desktop. + title: null, + // Optionally display different text for the desktop. + text: null, + // Any additional options to be passed to the Notification constructor. + options: {} + }; + + Component.init = function (notice) { + return new Component({ target: document.body }); + }; + + Component.permission = function () { + if (typeof Notification !== 'undefined' && 'requestPermission' in Notification) { + Notification.requestPermission(); + } else if ('webkitNotifications' in window) { + window.webkitNotifications.requestPermission(); + } + }; + + Component.checkPermission = function () { + if (typeof Notification !== 'undefined' && 'permission' in Notification) { + return Notification.permission === 'granted' ? 0 : 1; + } else if ('webkitNotifications' in window) { + return window.webkitNotifications.checkPermission() == 0 ? 0 : 1; // eslint-disable-line eqeqeq + } else { + return 1; + } + }; + + permission = Component.checkPermission(); + + // Register the module with PNotify. + PNotify.modules.Desktop = Component; + }; + + function add_css() { + var style = createElement("style"); + style.id = 'svelte-xbgnx4-style'; + style.textContent = "[ui-pnotify].ui-pnotify-desktop-hide.ui-pnotify{left:-10000px !important;display:none !important}"; + appendNode(style, document.head); + } + + function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; + } + + function PNotifyDesktop(options) { + init(this, options); + this._state = assign(data(), options.data); + this._intro = true; + + if (!document.getElementById("svelte-xbgnx4-style")) add_css(); + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } + } + + assign(PNotifyDesktop.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyDesktop.prototype, methods); + + PNotifyDesktop.prototype._recompute = noop; + + setup(PNotifyDesktop); + + function createElement(name) { + return document.createElement(name); + } + + function appendNode(node, target) { + target.appendChild(node); + } + + function noop() {} + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + return PNotifyDesktop; +}); +//# sourceMappingURL=PNotifyDesktop.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyDesktop.js.map b/app/node_modules/pnotify/lib/umd/PNotifyDesktop.js.map new file mode 100644 index 00000000..cf08a70c --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyDesktop.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyDesktop.html"],"names":[],"mappings":";;;;;;;;;;;;AAGE,MAAI,mBAAJ;AACA,MAAM,eAAe,OAAO,YAA5B;;AAEA,MAAI,UAAS,gBAAC,KAAD,EAAQ,OAAR,EAAiB,OAAjB,EAA0B,OAA1B,EAAsC;AACnD;AACE,QAAI,kBAAkB,MAAtB,EAA8B;AAC5B,gBAAS,gBAAC,KAAD,EAAQ,OAAR,EAAiB,OAAjB,EAA0B,OAA1B,EAAsC;AAC7C,YAAM,SAAS,IAAI,YAAJ,CAAiB,KAAjB,EAAwB,OAAxB,CAAf;AACA,YAAI,uBAAuB,MAA3B,EAAmC;AACjC,iBAAO,gBAAP,CAAwB,mBAAxB,EAA6C,OAA7C;AACA,iBAAO,gBAAP,CAAwB,OAAxB,EAAiC,OAAjC;AACD,SAHD,MAGO,IAAI,sBAAsB,MAA1B,EAAkC;AACvC,iBAAO,gBAAP,CAAwB,OAAxB,EAAiC,OAAjC;AACA,iBAAO,gBAAP,CAAwB,OAAxB,EAAiC,OAAjC;AACD,SAHM,MAGA;AACL,iBAAO,OAA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eAAQ,aAAa,UAAb,KAA4B,SAA5B,GAAwC,CAAxC,GAA4C,CAApD;AACD,OAFD,MAEO,IAAI,yBAAyB,MAA7B,EAAqC;AAC1C,eAAO,OAAO,mBAAP,CAA2B,eAA3B,MAAgD,CAAhD,GAAoD,CAApD,GAAwD,CAA/D,CAD0C,CACuB;AAClE,OAFM,MAEA;AACL,eAAO,CAAP;AACD;AACF,KARD;;AAUA,iBAAa,UAAU,eAAV,EAAb;;AAEF;AACE,YAAQ,OAAR,CAAgB,OAAhB,GAA0B,SAA1B;AACD","sourcesContent":["\n\n\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyHistory.js b/app/node_modules/pnotify/lib/umd/PNotifyHistory.js new file mode 100644 index 00000000..adb0793a --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyHistory.js @@ -0,0 +1,285 @@ +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +/* src/PNotifyHistory.html generated by Svelte v2.6.3 */ +(function (global, factory) { + (typeof exports === "undefined" ? "undefined" : _typeof(exports)) === "object" && typeof module !== "undefined" ? module.exports = factory(require('./PNotify')) : typeof define === "function" && define.amd ? define('PNotifyHistory', ["./PNotify"], factory) : global.PNotifyHistory = factory(PNotify); +})(this, function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.History.defaults); + }; + + var methods = { + initModule: function initModule(options) { + this.set(options); + + if (this.get().history) { + // Don't destroy notices that are in history. + var _get = this.get(), + _notice = _get._notice; + + if (_notice.get().destroy) { + _notice.set({ 'destroy': false }); + } + } + }, + beforeOpen: function beforeOpen() { + var _get2 = this.get(), + maxInStack = _get2.maxInStack, + _options = _get2._options; + + if (maxInStack === Infinity) { + return; + } + + var stack = _options.stack; + if (stack === false) { + return; + } + + // Remove oldest notifications leaving only maxInStack from the stack. + if (PNotify.notices && PNotify.notices.length > maxInStack) { + // Oldest are normally in front of array, or if stack.push=='top' then + // they are at the end of the array! + var top = stack.push === 'top'; + var forRemoval = []; + var currentOpen = 0; + + for (var i = top ? 0 : PNotify.notices.length - 1; top ? i < PNotify.notices.length : i >= 0; top ? i++ : i--) { + if (['opening', 'open'].indexOf(PNotify.notices[i].get()._state) !== -1 && PNotify.notices[i].get().stack === stack) { + if (currentOpen >= maxInStack) { + forRemoval.push(PNotify.notices[i]); + } else { + currentOpen++; + } + } + } + + for (var _i = 0; _i < forRemoval.length; _i++) { + forRemoval[_i].close(false); + } + } + } + }; + + function setup(Component) { + Component.key = 'History'; + + Component.defaults = { + // Place the notice in the history. + history: true, + // Maximum number of notices to have open in its stack. + maxInStack: Infinity + }; + + Component.init = function (notice) { + return new Component({ target: document.body }); + }; + + Component.showLast = function (stack) { + if (stack === undefined) { + stack = PNotify.defaultStack; + } + if (stack === false) { + return; + } + var top = stack.push === 'top'; + + // Look up the last history notice, and display it. + var i = top ? 0 : PNotify.notices.length - 1; + + var notice = void 0; + do { + notice = PNotify.notices[i]; + + if (!notice) { + return; + } + + i += top ? 1 : -1; + } while (notice.get().stack !== stack || !notice.get()._modules.History.get().history || notice.get()._state === 'opening' || notice.get()._state === 'open'); + + notice.open(); + }; + + Component.showAll = function (stack) { + if (stack === undefined) { + stack = PNotify.defaultStack; + } + if (stack === false) { + return; + } + + // Display all notices. (Disregarding non-history notices.) + for (var i = 0; i < PNotify.notices.length; i++) { + var notice = PNotify.notices[i]; + if ((stack === true || notice.get().stack === stack) && notice.get()._modules.History.get().history) { + notice.open(); + } + } + }; + + // Register the module with PNotify. + PNotify.modules.History = Component; + }; + + function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; + } + + function PNotifyHistory(options) { + init(this, options); + this._state = assign(data(), options.data); + this._intro = true; + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } + } + + assign(PNotifyHistory.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyHistory.prototype, methods); + + PNotifyHistory.prototype._recompute = noop; + + setup(PNotifyHistory); + + function noop() {} + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + return PNotifyHistory; +}); +//# sourceMappingURL=PNotifyHistory.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyHistory.js.map b/app/node_modules/pnotify/lib/umd/PNotifyHistory.js.map new file mode 100644 index 00000000..3d1169ef --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyHistory.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyHistory.html"],"names":[],"mappings":";;;;;;;;;;;;WA4ES,I,GAAG;AACN,WAAO,SAAc;AACnB,iBAAW,IADQ,EACJ;AACf,kBAAY,EAFO,CAEL;AAFK,KAAd,EAGJ,QAAQ,OAAR,CAAgB,OAAhB,CAAwB,QAHpB,CAAP;AAID;;gBAEQ;AACP,cADO,sBACK,OADL,EACc;AACnB,WAAK,GAAL,CAAS,OAAT;;AAEA,UAAI,KAAK,GAAL,GAAW,OAAf,EAAwB;AAC5B;AAD4B,mBAEJ,KAAK,GAAL,EAFI;AAAA,YAEf,OAFe,QAEf,OAFe;;AAGtB,YAAI,QAAQ,GAAR,GAAc,OAAlB,EAA2B;AACzB,kBAAQ,GAAR,CAAY,EAAC,WAAW,KAAZ,EAAZ;AACD;AACF;AACF,KAXM;AAaP,cAbO,wBAaO;AAAA,kBACmB,KAAK,GAAL,EADnB;AAAA,UACL,UADK,SACL,UADK;AAAA,UACO,QADP,SACO,QADP;;AAEZ,UAAI,eAAe,QAAnB,EAA6B;AAC3B;AACD;;AAED,UAAM,QAAQ,SAAS,KAAvB;A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otify/lib/umd/PNotifyMobile.js b/app/node_modules/pnotify/lib/umd/PNotifyMobile.js new file mode 100644 index 00000000..52eac2cb --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyMobile.js @@ -0,0 +1,436 @@ +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +/* src/PNotifyMobile.html generated by Svelte v2.6.3 */ +(function (global, factory) { + (typeof exports === "undefined" ? "undefined" : _typeof(exports)) === "object" && typeof module !== "undefined" ? module.exports = factory(require('./PNotify')) : typeof define === "function" && define.amd ? define('PNotifyMobile', ["./PNotify"], factory) : global.PNotifyMobile = factory(PNotify); +})(this, function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.Mobile.defaults); + }; + + var methods = { + initModule: function initModule(options) { + var _this = this; + + this.set(options); + + var _get = this.get(), + _notice = _get._notice; + + var origXY = null; + var diffXY = null; + var noticeWidthHeight = null; + var noticeOpacity = null; + var csspos = 'left'; + var direction = 'X'; + var span = 'Width'; + + _notice.on('touchstart', function (e) { + if (!_this.get().swipeDismiss) { + return; + } + + var _notice$get = _notice.get(), + stack = _notice$get.stack; + + if (stack !== false) { + switch (stack.dir1) { + case 'up': + case 'down': + csspos = 'left'; + direction = 'X'; + span = 'Width'; + break; + case 'left': + case 'right': + csspos = 'top'; + direction = 'Y'; + span = 'Height'; + break; + } + } + + origXY = e.touches[0]['screen' + direction]; + noticeWidthHeight = _notice.refs.elem['scroll' + span]; + noticeOpacity = window.getComputedStyle(_notice.refs.elem)['opacity']; + _notice.refs.container.style[csspos] = 0; + }); + + _notice.on('touchmove', function (e) { + if (!origXY || !_this.get().swipeDismiss) { + return; + } + + var curXY = e.touches[0]['screen' + direction]; + + diffXY = curXY - origXY; + var opacity = (1 - Math.abs(diffXY) / noticeWidthHeight) * noticeOpacity; + + _notice.refs.elem.style.opacity = opacity; + _notice.refs.container.style[csspos] = diffXY + 'px'; + }); + + _notice.on('touchend', function () { + if (!origXY || !_this.get().swipeDismiss) { + return; + } + + _notice.refs.container.classList.add('ui-pnotify-mobile-animate-left'); + if (Math.abs(diffXY) > 40) { + var goLeft = diffXY < 0 ? noticeWidthHeight * -2 : noticeWidthHeight * 2; + _notice.refs.elem.style.opacity = 0; + _notice.refs.container.style[csspos] = goLeft + 'px'; + _notice.close(); + } else { + _notice.refs.elem.style.removeProperty('opacity'); + _notice.refs.container.style.removeProperty(csspos); + } + origXY = null; + diffXY = null; + noticeWidthHeight = null; + noticeOpacity = null; + }); + + _notice.on('touchcancel', function () { + if (!origXY || !_this.get().swipeDismiss) { + return; + } + + _notice.refs.elem.style.removeProperty('opacity'); + _notice.refs.container.style.removeProperty(csspos); + origXY = null; + diffXY = null; + noticeWidthHeight = null; + noticeOpacity = null; + }); + + this.doMobileStyling(); + }, + update: function update() { + this.doMobileStyling(); + }, + beforeOpen: function beforeOpen() { + // Add an event listener to watch the window resizes. + window.addEventListener('resize', this.get()._doMobileStylingBound); + }, + afterClose: function afterClose() { + // Remove the event listener. + window.removeEventListener('resize', this.get()._doMobileStylingBound); + + // Remove any styling we added to close it. + if (!this.get().swipeDismiss) { + return; + } + + var _get2 = this.get(), + _notice = _get2._notice; + + _notice.refs.elem.style.removeProperty('opacity'); + _notice.refs.container.style.removeProperty('left'); + _notice.refs.container.style.removeProperty('top'); + }, + doMobileStyling: function doMobileStyling() { + var _get3 = this.get(), + _notice = _get3._notice; + + var _notice$get2 = _notice.get(), + stack = _notice$get2.stack; + + if (this.get().styling) { + if (stack !== false) { + if (window.innerWidth <= 480) { + if (!stack.mobileOrigSpacing1) { + stack.mobileOrigSpacing1 = stack.spacing1; + } + stack.spacing1 = 0; + if (!stack.mobileOrigFirstpos1) { + stack.mobileOrigFirstpos1 = stack.firstpos1; + } + stack.firstpos1 = 0; + if (!stack.mobileOrigSpacing2) { + stack.mobileOrigSpacing2 = stack.spacing2; + } + stack.spacing2 = 0; + if (!stack.mobileOrigFirstpos2) { + stack.mobileOrigFirstpos2 = stack.firstpos2; + } + stack.firstpos2 = 0; + } else { + if (stack.mobileOrigSpacing1) { + stack.spacing1 = stack.mobileOrigSpacing1; + delete stack.mobileOrigSpacing1; + } + if (stack.mobileOrigFirstpos1) { + stack.firstpos1 = stack.mobileOrigFirstpos1; + delete stack.mobileOrigFirstpos1; + } + if (stack.mobileOrigSpacing2) { + stack.spacing2 = stack.mobileOrigSpacing2; + delete stack.mobileOrigSpacing2; + } + if (stack.mobileOrigFirstpos2) { + stack.firstpos2 = stack.mobileOrigFirstpos2; + delete stack.mobileOrigFirstpos2; + } + } + switch (stack.dir1) { + case 'down': + _notice.addModuleClass('ui-pnotify-mobile-top'); + break; + case 'up': + _notice.addModuleClass('ui-pnotify-mobile-bottom'); + break; + case 'left': + _notice.addModuleClass('ui-pnotify-mobile-right'); + break; + case 'right': + _notice.addModuleClass('ui-pnotify-mobile-left'); + break; + } + } + + _notice.addModuleClass('ui-pnotify-mobile-able'); + } else { + _notice.removeModuleClass('ui-pnotify-mobile-able', 'ui-pnotify-mobile-top', 'ui-pnotify-mobile-bottom', 'ui-pnotify-mobile-right', 'ui-pnotify-mobile-left'); + + if (stack !== false) { + if (stack.mobileOrigSpacing1) { + stack.spacing1 = stack.mobileOrigSpacing1; + delete stack.mobileOrigSpacing1; + } + if (stack.mobileOrigFirstpos1) { + stack.firstpos1 = stack.mobileOrigFirstpos1; + delete stack.mobileOrigFirstpos1; + } + if (stack.mobileOrigSpacing2) { + stack.spacing2 = stack.mobileOrigSpacing2; + delete stack.mobileOrigSpacing2; + } + if (stack.mobileOrigFirstpos2) { + stack.firstpos2 = stack.mobileOrigFirstpos2; + delete stack.mobileOrigFirstpos2; + } + } + } + } + }; + + function oncreate() { + this.set({ '_doMobileStylingBound': this.doMobileStyling.bind(this) }); + }; + + function setup(Component) { + Component.key = 'Mobile'; + + Component.defaults = { + // Let the user swipe the notice away. + swipeDismiss: true, + // Styles the notice to look good on mobile. + styling: true + }; + + Component.init = function (notice) { + return new Component({ target: document.body }); + }; + + // Register the module with PNotify. + PNotify.modules.Mobile = Component; + }; + + function add_css() { + var style = createElement("style"); + style.id = 'svelte-49u8sj-style'; + style.textContent = "[ui-pnotify] .ui-pnotify-container{position:relative}[ui-pnotify] .ui-pnotify-mobile-animate-left{transition:left .1s ease}[ui-pnotify] .ui-pnotify-mobile-animate-top{transition:top .1s ease}@media(max-width: 480px){[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able{font-size:1.2em;-webkit-font-smoothing:antialiased;-moz-font-smoothing:antialiased;-ms-font-smoothing:antialiased;font-smoothing:antialiased}body > [ui-pnotify].ui-pnotify.ui-pnotify-mobile-able{position:fixed}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom{width:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right{height:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-shadow{border-bottom-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-shadow{border-top-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-shadow{border-right-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-shadow{border-left-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-container{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-container{width:auto !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-container{height:100% !important}}"; + appendNode(style, document.head); + } + + function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; + } + + function PNotifyMobile(options) { + var _this2 = this; + + init(this, options); + this._state = assign(data(), options.data); + this._intro = true; + + if (!document.getElementById("svelte-49u8sj-style")) add_css(); + + if (!options.root) { + this._oncreate = []; + } + + this._fragment = create_main_fragment(this, this._state); + + this.root._oncreate.push(function () { + oncreate.call(_this2); + _this2.fire("update", { changed: assignTrue({}, _this2._state), current: _this2._state }); + }); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + + callAll(this._oncreate); + } + } + + assign(PNotifyMobile.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyMobile.prototype, methods); + + PNotifyMobile.prototype._recompute = noop; + + setup(PNotifyMobile); + + function createElement(name) { + return document.createElement(name); + } + + function appendNode(node, target) { + target.appendChild(node); + } + + function noop() {} + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function assignTrue(tar, src) { + for (var k in src) { + tar[k] = 1; + }return tar; + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + + return PNotifyMobile; +}); +//# sourceMappingURL=PNotifyMobile.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyMobile.js.map b/app/node_modules/pnotify/lib/umd/PNotifyMobile.js.map new file mode 100644 index 00000000..8996c02b --- /dev/null +++ b/app/node_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ules/pnotify/lib/umd/PNotifyNonBlock.js new file mode 100644 index 00000000..3f216a17 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyNonBlock.js @@ -0,0 +1,207 @@ +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +/* src/PNotifyNonBlock.html generated by Svelte v2.6.3 */ +(function (global, factory) { + (typeof exports === "undefined" ? "undefined" : _typeof(exports)) === "object" && typeof module !== "undefined" ? module.exports = factory(require('./PNotify')) : typeof define === "function" && define.amd ? define('PNotifyNonBlock', ["./PNotify"], factory) : global.PNotifyNonBlock = factory(PNotify); +})(this, function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {} // The options for the notice. + }, PNotify.modules.NonBlock.defaults); + }; + + var methods = { + initModule: function initModule(options) { + this.set(options); + this.doNonBlockClass(); + }, + update: function update() { + this.doNonBlockClass(); + }, + doNonBlockClass: function doNonBlockClass() { + if (this.get().nonblock) { + this.get()._notice.addModuleClass('nonblock'); + } else { + this.get()._notice.removeModuleClass('nonblock'); + } + } + }; + + function setup(Component) { + Component.key = 'NonBlock'; + + Component.defaults = { + // Use NonBlock.js to create a non-blocking notice. It lets the user click elements underneath it. + nonblock: false + }; + + Component.init = function (notice) { + return new Component({ target: document.body, + data: { + '_notice': notice + } }); + }; + + // Register the module with PNotify. + PNotify.modules.NonBlock = Component; + }; + + function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; + } + + function PNotifyNonBlock(options) { + init(this, options); + this._state = assign(data(), options.data); + this._intro = true; + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } + } + + assign(PNotifyNonBlock.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyNonBlock.prototype, methods); + + PNotifyNonBlock.prototype._recompute = noop; + + setup(PNotifyNonBlock); + + function noop() {} + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + return PNotifyNonBlock; +}); +//# sourceMappingURL=PNotifyNonBlock.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyNonBlock.js.map b/app/node_modules/pnotify/lib/umd/PNotifyNonBlock.js.map new file mode 100644 index 00000000..eafc9478 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyNonBlock.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyNonBlock.html"],"names":[],"mappings":";;;;;;;;;;;;UAuBS,I,GAAG;AACN,SAAO,SAAc;AACnB,cAAW,IADQ,EACJ;AACf,eAAY,EAFO,CAEL;AAFK,GAAd,EAGJ,QAAQ,OAAR,CAAgB,QAAhB,CAAyB,QAHrB,CAAP;AAID;;eAEQ;AACP,YADO,sBACK,OADL,EACc;AACnB,QAAK,GAAL,CAAS,OAAT;AACA,QAAK,eAAL;AACD,GAJM;AAMP,QANO,oBAMG;AACR,QAAK,eAAL;AACD,GARM;AAUP,iBAVO,6BAUY;AACjB,OAAI,KAAK,GAAL,GAAW,QAAf,EAAyB;AACvB,SAAK,GAAL,GAAW,OAAX,CAAmB,cAAnB,CAAkC,UAAlC;AACD,IAFD,MAEO;AACL,SAAK,GAAL,GAAW,OAAX,CAAmB,iBAAnB,CAAqC,UAArC;AACD;AACF;AAhBM,E;;UA1BH,K,CAAC,S,EAAW;AAChB,YAAU,GAAV,GAAgB,UAAhB;;AAEA,YAAU,QAAV,GAAqB;AACvB;AACI,aAAU;AAFS,GAArB;;AAKA,YAAU,IAAV,GAAiB,UAAC,MAAD,EAAY;AAC3B,UAAO,IAAI,SAAJ,CAAc,EAAC,QAAQ,SAAS,IAAlB;AACnB,UAAM;AACJ,gBAAW;AADP,KADa,EAAd,CAAP;AAID,GALD;;AAOF;AACE,UAAQ,OAAR,CAAgB,QAAhB,GAA2B,SAA3B;AACD","sourcesContent":["\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyReference.js b/app/node_modules/pnotify/lib/umd/PNotifyReference.js new file mode 100644 index 00000000..92a61b77 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyReference.js @@ -0,0 +1,443 @@ +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +/* src/PNotifyReference.html generated by Svelte v2.6.3 */ +(function (global, factory) { + (typeof exports === "undefined" ? "undefined" : _typeof(exports)) === "object" && typeof module !== "undefined" ? module.exports = factory(require('./PNotify')) : typeof define === "function" && define.amd ? define('PNotifyReference', ["./PNotify"], factory) : global.PNotifyReference = factory(PNotify); +})(this, function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function data() { + return _extends({ + '_notice': null, // The PNotify notice. + '_options': {}, // The options for the notice. + '_mouseIsIn': false + }, PNotify.modules.Reference.defaults); + }; + + var methods = { + // This method is called from the core to give us our actual options. + // Until it is called, our options will just be the defaults. + initModule: function initModule(options) { + var _this = this; + + // Set our options. + this.set(options); + // Now that the notice is available to us, we can listen to events fired + // from it. + + var _get = this.get(), + _notice = _get._notice; + + _notice.on('mouseenter', function () { + return _this.set({ '_mouseIsIn': true }); + }); + _notice.on('mouseleave', function () { + return _this.set({ '_mouseIsIn': false }); + }); + }, + doSomething: function doSomething() { + // Spin the notice around. + var curAngle = 0; + + var _get2 = this.get(), + _notice = _get2._notice; + + var timer = setInterval(function () { + curAngle += 10; + if (curAngle === 360) { + curAngle = 0; + clearInterval(timer); + } + _notice.refs.elem.style.transform = 'rotate(' + curAngle + 'deg)'; + }, 20); + }, + + + // I have nothing to put in these, just showing you that they exist. You + // won't need to include them if you aren't using them. + update: function update() { + // Called when the notice is updating its options. + }, + beforeOpen: function beforeOpen() { + // Called before the notice is opened. + }, + afterOpen: function afterOpen() { + // Called after the notice is opened. + }, + beforeClose: function beforeClose() { + // Called before the notice is closed. + }, + afterClose: function afterClose() { + // Called after the notice is closed. + }, + beforeDestroy: function beforeDestroy() { + // Called before the notice is destroyed. + }, + afterDestroy: function afterDestroy() { + // Called after the notice is destroyed. + } + }; + + function oncreate() { + // This is the second way to init a module. Because we put markup in the + // template, we have to fire this event to tell the core that we are ready + // to receive our options. + this.fire('init', { module: this }); + }; + + function setup(Component) { + // This is the key you use for registering your module with PNotify. + Component.key = 'Reference'; + + // This if the default values of your options. + Component.defaults = { + // Provide a thing for stuff. Turned off by default. + putThing: false, + // If you are displaying any text, you should use a labels options to + // support internationalization. + labels: { + text: 'Spin Around' + } + }; + + // This is the first way to init a module. If you aren't placing any + // markup in the template, you would do this. + // Component.init = (_notice) => { + // return new Component({target: document.body, data: {_notice}}); + // }; + + // Register the module with PNotify. + PNotify.modules.Reference = Component; + // Append our markup to the container. + PNotify.modulesAppendContainer.push(Component); + + // This is where you would add any styling or icons classes you are using in your code. + _extends(PNotify.icons.brighttheme, { + athing: 'bt-icon bt-icon-refresh' + }); + _extends(PNotify.icons.bootstrap3, { + athing: 'glyphicon glyphicon-refresh' + }); + _extends(PNotify.icons.fontawesome4, { + athing: 'fa fa-refresh' + }); + _extends(PNotify.icons.fontawesome5, { + athing: 'fas fa-sync' + }); + if (!PNotify.icons.material) { + PNotify.icons.material = {}; + } + _extends(PNotify.icons.material, { + athing: 'material-icons pnotify-material-icon-refresh' + }); + }; + + function add_css() { + var style = createElement("style"); + style.id = 'svelte-1qy4b0e-style'; + style.textContent = ".ui-pnotify-reference-button.svelte-1qy4b0e{float:right}.ui-pnotify-reference-clearing.svelte-1qy4b0e{clear:right;line-height:0}"; + appendNode(style, document.head); + } + + function create_main_fragment(component, ctx) { + var if_block_anchor; + + var if_block = ctx.putThing && create_if_block(component, ctx); + + return { + c: function c() { + if (if_block) if_block.c(); + if_block_anchor = createComment(); + }, + m: function m(target, anchor) { + if (if_block) if_block.m(target, anchor); + insertNode(if_block_anchor, target, anchor); + }, + p: function p(changed, ctx) { + if (ctx.putThing) { + if (if_block) { + if_block.p(changed, ctx); + } else { + if_block = create_if_block(component, ctx); + if_block.c(); + if_block.m(if_block_anchor.parentNode, if_block_anchor); + } + } else if (if_block) { + if_block.d(1); + if_block = null; + } + }, + d: function d(detach) { + if (if_block) if_block.d(detach); + if (detach) { + detachNode(if_block_anchor); + } + } + }; + } + + // (2:0) {#if putThing} + function create_if_block(component, ctx) { + var button, + i, + i_class_value, + text, + text_1_value = ctx.labels.text, + text_1, + button_disabled_value, + text_3, + div; + + function click_handler(event) { + component.doSomething(); + } + + return { + c: function c() { + button = createElement("button"); + i = createElement("i"); + text = createText(" "); + text_1 = createText(text_1_value); + text_3 = createText("\n \n "); + div = createElement("div"); + i.className = i_class_value = "" + ctx._notice.get()._icons.athing + " svelte-1qy4b0e"; + addListener(button, "click", click_handler); + button.className = "ui-pnotify-reference-button btn btn-default svelte-1qy4b0e"; + button.type = "button"; + button.disabled = button_disabled_value = !ctx._mouseIsIn; + div.className = "ui-pnotify-reference-clearing svelte-1qy4b0e"; + }, + m: function m(target, anchor) { + insertNode(button, target, anchor); + appendNode(i, button); + appendNode(text, button); + appendNode(text_1, button); + component.refs.thingElem = button; + insertNode(text_3, target, anchor); + insertNode(div, target, anchor); + }, + p: function p(changed, ctx) { + if (changed._notice && i_class_value !== (i_class_value = "" + ctx._notice.get()._icons.athing + " svelte-1qy4b0e")) { + i.className = i_class_value; + } + + if (changed.labels && text_1_value !== (text_1_value = ctx.labels.text)) { + text_1.data = text_1_value; + } + + if (changed._mouseIsIn && button_disabled_value !== (button_disabled_value = !ctx._mouseIsIn)) { + button.disabled = button_disabled_value; + } + }, + d: function d(detach) { + if (detach) { + detachNode(button); + } + + removeListener(button, "click", click_handler); + if (component.refs.thingElem === button) component.refs.thingElem = null; + if (detach) { + detachNode(text_3); + detachNode(div); + } + } + }; + } + + function PNotifyReference(options) { + var _this2 = this; + + init(this, options); + this.refs = {}; + this._state = assign(data(), options.data); + this._intro = true; + + if (!document.getElementById("svelte-1qy4b0e-style")) add_css(); + + if (!options.root) { + this._oncreate = []; + } + + this._fragment = create_main_fragment(this, this._state); + + this.root._oncreate.push(function () { + oncreate.call(_this2); + _this2.fire("update", { changed: assignTrue({}, _this2._state), current: _this2._state }); + }); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + + callAll(this._oncreate); + } + } + + assign(PNotifyReference.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + assign(PNotifyReference.prototype, methods); + + PNotifyReference.prototype._recompute = noop; + + setup(PNotifyReference); + + function createElement(name) { + return document.createElement(name); + } + + function appendNode(node, target) { + target.appendChild(node); + } + + function createComment() { + return document.createComment(''); + } + + function insertNode(node, target, anchor) { + target.insertBefore(node, anchor); + } + + function detachNode(node) { + node.parentNode.removeChild(node); + } + + function createText(data) { + return document.createTextNode(data); + } + + function addListener(node, event, handler) { + node.addEventListener(event, handler, false); + } + + function removeListener(node, event, handler) { + node.removeEventListener(event, handler, false); + } + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function assignTrue(tar, src) { + for (var k in src) { + tar[k] = 1; + }return tar; + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function noop() {} + + function blankObject() { + return Object.create(null); + } + + return PNotifyReference; +}); +//# sourceMappingURL=PNotifyReference.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyReference.js.map b/app/node_modules/pnotify/lib/umd/PNotifyReference.js.map new file mode 100644 index 00000000..f4331c42 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyReference.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyReference.html"],"names":[],"mappings":";;;;;;;;;;;;UA4ES,I,GAAG;AACN,SAAO,SAA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A,IAAC,U,GAAU","sourcesContent":["\n{#if putThing} \n \n \n  {labels.text}\n \n \n
\n{/if}\n\n\n\n\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyStyleMaterial.js b/app/node_modules/pnotify/lib/umd/PNotifyStyleMaterial.js new file mode 100644 index 00000000..588affe7 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyStyleMaterial.js @@ -0,0 +1,213 @@ +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +/* src/PNotifyStyleMaterial.html generated by Svelte v2.6.3 */ +(function (global, factory) { + (typeof exports === "undefined" ? "undefined" : _typeof(exports)) === "object" && typeof module !== "undefined" ? module.exports = factory(require('./PNotify')) : typeof define === "function" && define.amd ? define('PNotifyStyleMaterial', ["./PNotify"], factory) : global.PNotifyStyleMaterial = factory(PNotify); +})(this, function (PNotify) { + "use strict"; + + PNotify = PNotify && PNotify.__esModule ? PNotify["default"] : PNotify; + + function setup(Component) { + Component.key = 'StyleMaterial'; + + // Register the module with PNotify. + PNotify.modules.StyleMaterial = Component; + // Prepend this module to the container. + PNotify.modulesPrependContainer.push(Component); + + if (!PNotify.styling.material) { + PNotify.styling.material = {}; + } + PNotify.styling.material = _extends(PNotify.styling.material, { + container: 'pnotify-material', + notice: 'pnotify-material-notice', + info: 'pnotify-material-info', + success: 'pnotify-material-success', + error: 'pnotify-material-error' + }); + + if (!PNotify.icons.material) { + PNotify.icons.material = {}; + } + PNotify.icons.material = _extends(PNotify.icons.material, { + notice: 'material-icons pnotify-material-icon-notice', + info: 'material-icons pnotify-material-icon-info', + success: 'material-icons pnotify-material-icon-success', + error: 'material-icons pnotify-material-icon-error', + closer: 'material-icons pnotify-material-icon-closer', + pinUp: 'material-icons pnotify-material-icon-sticker', + pinDown: 'material-icons pnotify-material-icon-sticker pnotify-material-icon-stuck' + }); + }; + + function add_css() { + var style = createElement("style"); + style.id = 'svelte-19og8nx-style'; + style.textContent = "[ui-pnotify] .pnotify-material{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;font-size:14px}[ui-pnotify] .pnotify-material.ui-pnotify-shadow{-webkit-box-shadow:0px 6px 24px 0px rgba(0,0,0,0.2);-moz-box-shadow:0px 6px 24px 0px rgba(0,0,0,0.2);box-shadow:0px 6px 24px 0px rgba(0,0,0,0.2)}[ui-pnotify] .pnotify-material.ui-pnotify-container{padding:24px}[ui-pnotify] .pnotify-material .ui-pnotify-title{font-size:20px;margin-bottom:20px;line-height:24px}[ui-pnotify] .pnotify-material .ui-pnotify-title:last-child{margin-bottom:0}[ui-pnotify] .pnotify-material .ui-pnotify-text{font-size:16px;line-height:24px}[ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-title,[ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-text,[ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-confirm{margin-left:32px}[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-title,[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-text,[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .pnotify-material .ui-pnotify-confirm{margin-right:32px;margin-left:0}[ui-pnotify] .pnotify-material .ui-pnotify-action-bar{margin-top:20px;margin-right:-16px;margin-bottom:-16px}[dir=rtl] [ui-pnotify] .pnotify-material .ui-pnotify-action-bar{margin-left:-16px;margin-right:0}[ui-pnotify] .pnotify-material-notice{background-color:#FFEE58;border:none;color:#000}[ui-pnotify] .pnotify-material-info{background-color:#26C6DA;border:none;color:#000}[ui-pnotify] .pnotify-material-success{background-color:#66BB6A;border:none;color:#fff}[ui-pnotify] .pnotify-material-error{background-color:#EF5350;border:none;color:#fff}[ui-pnotify] .pnotify-material-icon-notice,[ui-pnotify] .pnotify-material-icon-info,[ui-pnotify] .pnotify-material-icon-success,[ui-pnotify] .pnotify-material-icon-error,[ui-pnotify] .pnotify-material-icon-closer,[ui-pnotify] .pnotify-material-icon-sticker{position:relative}[ui-pnotify] .pnotify-material-icon-closer,[ui-pnotify] .pnotify-material-icon-sticker{height:20px;width:20px;font-size:20px;line-height:20px;position:relative}[ui-pnotify] .pnotify-material-icon-notice:after,[ui-pnotify] .pnotify-material-icon-info:after,[ui-pnotify] .pnotify-material-icon-success:after,[ui-pnotify] .pnotify-material-icon-error:after,[ui-pnotify] .pnotify-material-icon-closer:after,[ui-pnotify] .pnotify-material-icon-sticker:after{font-family:'Material Icons'}[ui-pnotify] .pnotify-material-icon-notice:after{content:\"announcement\"}[ui-pnotify] .pnotify-material-icon-info:after{content:\"info\"}[ui-pnotify] .pnotify-material-icon-success:after{content:\"check_circle\"}[ui-pnotify] .pnotify-material-icon-error:after{content:\"error\"}[ui-pnotify] .pnotify-material-icon-closer,[ui-pnotify] .pnotify-material-icon-sticker{display:inline-block}[ui-pnotify] .pnotify-material-icon-closer:after{top:-4px;content:\"close\"}[ui-pnotify] .pnotify-material-icon-sticker:after{top:-5px;content:\"pause\"}[ui-pnotify] .pnotify-material-icon-sticker.pnotify-material-icon-stuck:after{content:\"play_arrow\"}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-prompt-input{display:block;width:100%;margin-bottom:8px;padding:15px 0 8px;background-color:transparent;color:inherit;border-radius:0;border-top:none;border-left:none;border-right:none;border-bottom-style:solid;border-bottom-color:inherit;border-bottom-width:1px}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-prompt-input:focus{outline:none;border-bottom-color:#3F51B5;border-bottom-width:2px}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button{position:relative;padding:0 16px;overflow:hidden;border-width:0;outline:none;border-radius:2px;background-color:transparent;color:inherit;transition:background-color .3s;text-transform:uppercase;height:36px;margin:6px;min-width:64px;font-weight:bold}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button.ui-pnotify-material-primary{color:#3F51B5}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button:hover,[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button:focus{background-color:rgba(0, 0, 0, .12);color:inherit}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button.ui-pnotify-material-primary:hover,[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button.ui-pnotify-material-primary:focus{color:#303F9F}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button:before{content:\"\";position:absolute;top:50%;left:50%;display:block;width:0;padding-top:0;border-radius:100%;background-color:rgba(153, 153, 153, .4);-webkit-transform:translate(-50%, -50%);-moz-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);-o-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}[ui-pnotify].ui-pnotify .pnotify-material .ui-pnotify-action-button:active:before{width:120%;padding-top:120%;transition:width .2s ease-out, padding-top .2s ease-out}"; + appendNode(style, document.head); + } + + function create_main_fragment(component, ctx) { + + return { + c: noop, + + m: noop, + + p: noop, + + d: noop + }; + } + + function PNotifyStyleMaterial(options) { + init(this, options); + this._state = assign({}, options.data); + this._intro = true; + + if (!document.getElementById("svelte-19og8nx-style")) add_css(); + + this._fragment = create_main_fragment(this, this._state); + + if (options.target) { + this._fragment.c(); + this._mount(options.target, options.anchor); + } + } + + assign(PNotifyStyleMaterial.prototype, { + destroy: destroy, + get: get, + fire: fire, + on: on, + set: set, + _set: _set, + _mount: _mount, + _differs: _differs + }); + + PNotifyStyleMaterial.prototype._recompute = noop; + + setup(PNotifyStyleMaterial); + + function createElement(name) { + return document.createElement(name); + } + + function appendNode(node, target) { + target.appendChild(node); + } + + function noop() {} + + function init(component, options) { + component._handlers = blankObject(); + component._bind = options._bind; + + component.options = options; + component.root = options.root || component; + component.store = component.root.store || options.store; + } + + function assign(tar, src) { + for (var k in src) { + tar[k] = src[k]; + }return tar; + } + + function destroy(detach) { + this.destroy = noop; + this.fire('destroy'); + this.set = noop; + + this._fragment.d(detach !== false); + this._fragment = null; + this._state = {}; + } + + function get() { + return this._state; + } + + function fire(eventName, data) { + var handlers = eventName in this._handlers && this._handlers[eventName].slice(); + if (!handlers) return; + + for (var i = 0; i < handlers.length; i += 1) { + var handler = handlers[i]; + + if (!handler.__calling) { + handler.__calling = true; + handler.call(this, data); + handler.__calling = false; + } + } + } + + function on(eventName, handler) { + var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); + handlers.push(handler); + + return { + cancel: function cancel() { + var index = handlers.indexOf(handler); + if (~index) handlers.splice(index, 1); + } + }; + } + + function set(newState) { + this._set(assign({}, newState)); + if (this.root._lock) return; + this.root._lock = true; + callAll(this.root._beforecreate); + callAll(this.root._oncreate); + callAll(this.root._aftercreate); + this.root._lock = false; + } + + function _set(newState) { + var oldState = this._state, + changed = {}, + dirty = false; + + for (var key in newState) { + if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; + } + if (!dirty) return; + + this._state = assign(assign({}, oldState), newState); + this._recompute(changed, this._state); + if (this._bind) this._bind(changed, this._state); + + if (this._fragment) { + this.fire("state", { changed: changed, current: this._state, previous: oldState }); + this._fragment.p(changed, this._state); + this.fire("update", { changed: changed, current: this._state, previous: oldState }); + } + } + + function _mount(target, anchor) { + this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); + } + + function _differs(a, b) { + return a != a ? b == b : a !== b || a && (typeof a === "undefined" ? "undefined" : _typeof(a)) === 'object' || typeof a === 'function'; + } + + function blankObject() { + return Object.create(null); + } + + function callAll(fns) { + while (fns && fns.length) { + fns.shift()(); + } + } + + return PNotifyStyleMaterial; +}); +//# sourceMappingURL=PNotifyStyleMaterial.js.map \ No newline at end of file diff --git a/app/node_modules/pnotify/lib/umd/PNotifyStyleMaterial.js.map b/app/node_modules/pnotify/lib/umd/PNotifyStyleMaterial.js.map new file mode 100644 index 00000000..9d150798 --- /dev/null +++ b/app/node_modules/pnotify/lib/umd/PNotifyStyleMaterial.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["src/PNotifyStyleMaterial.html"],"names":[],"mappings":";;;;;;;;;;;;UAIU,K,CAAC,S,EAAW;AAChB,YAAU,GAAV,GAAgB,eAAhB;;AAEF;AACE,UAAQ,OAAR,CAAgB,aAAhB,GAAgC,SAAhC;AACF;AACE,UAAQ,uBAAR,CAAgC,IAAhC,CAAqC,SAArC;;AAEA,MAAI,CAAC,QAAQ,OAAR,CAAgB,QAArB,EAA+B;AAC7B,WAAQ,OAAR,CAAgB,QAAhB,GAA2B,EAA3B;AACD;AACD,UAAQ,OAAR,CAAgB,QAAhB,GAA2B,SAAc,QAAQ,OAAR,CAAgB,QAA9B,EAAwC;AACjE,cAAW,kBADsD;AAEjE,WAAQ,yBAFyD;AAGjE,SAAM,uBAH2D;AAIjE,YAAS,0BAJwD;AAKjE,UAAO;AAL0D,GAAxC,CAA3B;;AAQA,MAAI,CAAC,QAAQ,KAAR,CAAc,QAAnB,EAA6B;AAC3B,WAAQ,KAAR,CAAc,QAAd,GAAyB,EAAzB;AACD;AACD,UAAQ,KAAR,CAAc,QAAd,GAAyB,SAAc,QAAQ,KAAR,CAAc,QAA5B,EAAsC;AAC7D,WAAQ,6CADqD;AAE7D,SAAM,2CAFuD;AAG7D,YAAS,8CAHoD;AAI7D,UAAO,4CAJsD;AAK7D,WAAQ,6CALqD;AAM7D,UAAO,8CANsD;AAO7D,YAAS;AAPoD,GAAtC,CAAzB;AASD","sourcesContent":["\n\n\n"]} \ No newline at end of file diff --git a/app/node_modules/pnotify/make.js b/app/node_modules/pnotify/make.js new file mode 100644 index 00000000..d75cd003 --- /dev/null +++ b/app/node_modules/pnotify/make.js @@ -0,0 +1,264 @@ +#!/user/bin/env nodejs +'use strict'; +/* eslint-env shelljs */ + +const fs = require('fs'); +require('shelljs/make'); + +let pnotifySrc = { + // Main code. + 'core': 'PNotify.html', + 'animate': 'PNotifyAnimate.html', + 'buttons': 'PNotifyButtons.html', + 'callbacks': 'PNotifyCallbacks.html', + 'nonblock': 'PNotifyNonBlock.html', + 'mobile': 'PNotifyMobile.html', + 'history': 'PNotifyHistory.html', + 'desktop': 'PNotifyDesktop.html', + 'confirm': 'PNotifyConfirm.html', + + // Compat module. + 'compat': 'PNotifyCompat.js', + + // Styles. + 'stylematerial': 'PNotifyStyleMaterial.html', + + // Reference module. + 'reference': 'PNotifyReference.html' +}; + +let pnotifyJs = { + // Main code. + 'core': 'PNotify.js', + 'animate': 'PNotifyAnimate.js', + 'buttons': 'PNotifyButtons.js', + 'callbacks': 'PNotifyCallbacks.js', + 'nonblock': 'PNotifyNonBlock.js', + 'mobile': 'PNotifyMobile.js', + 'history': 'PNotifyHistory.js', + 'desktop': 'PNotifyDesktop.js', + 'confirm': 'PNotifyConfirm.js', + + // Compat module. + 'compat': 'PNotifyCompat.js', + + // Styles. + 'stylematerial': 'PNotifyStyleMaterial.js', + + // Reference module. + 'reference': 'PNotifyReference.js' +}; + +let pnotifyCss = { + 'brighttheme': 'PNotifyBrightTheme.css' +}; + +for (let module in pnotifySrc) { + target[module + '_lib'] = (args) => compileJs(module, pnotifySrc[module], args); + + ((target) => { + const existing = target[module]; + + target[module] = (args) => { + existing && existing(args); + target[module + '_lib'](args); + }; + })(target); +} + +for (let module in pnotifyJs) { + target[module + '_js'] = (args) => compressJs(module, pnotifyJs[module], args); + + ((target) => { + const existing = target[module]; + + target[module] = (args) => { + existing && existing(args); + target[module + '_js'](args); + }; + })(target); +} + +for (let module in pnotifyCss) { + target[module + '_css'] = () => compressCss(module, pnotifyCss[module]); + + ((target) => { + const existing = target[module]; + + target[module] = (args) => { + existing && existing(args); + target[module + '_css'](args); + }; + })(target); +} + +target.dist = (args) => { + for (let module in pnotifySrc) { + target[module + '_lib'](args); + } + for (let module in pnotifyJs) { + target[module + '_js'](args); + } + for (let module in pnotifyCss) { + target[module + '_css'](args); + } +}; + +// Functions + +let compileJs = (module, filename, args) => { + let format = setup(args); + + const srcFilename = 'src/' + filename; + const dstFilename = 'lib/' + format + '/' + filename.replace(/\.html$/, '.js'); + console.log('Compiling JavaScript ' + module + ' from ' + srcFilename + ' to ' + dstFilename); + console.log('Generating source map for ' + dstFilename + ' in ' + dstFilename + '.map'); + + // Gather code. + let code; + let map; + let inputCode; + let inputMap; + let isSvelte = filename.slice(-4) === 'html'; + inputCode = code = fs.readFileSync(srcFilename, 'utf8'); + inputMap = map = null; + + // Pre-compile transforms. + if (module === 'compat' && format === 'iife') { + inputCode = code = code.replace(/import PNotify(\w*) from ["']\.\/PNotify(\w*)\.html["'];/g, 'var PNotify$1 = window.PNotify$2;'); + inputCode = code = code.replace(/export default PNotifyCompat;/g, 'window.PNotifyCompat = PNotifyCompat;'); + } + + // Compile. + if (isSvelte) { + // Use Svelte to compile the code first. + const svelte = require('svelte'); + const {js} = svelte.compile(code, { + format: format, + filename: srcFilename, + name: filename.replace(/\.html$/, ''), + amd: { + id: filename.replace(/\.html$/, '') + }, + globals: { + './PNotify.html': 'PNotify' + }, + onerror: err => { + console.error(err); + }, + onwarn: warning => { + console.warn(warning); + }, + css: true, + cascade: false + }); + ({code, map} = js); + [inputCode, inputMap] = [code, map]; + inputMap.file = filename.replace(/\.html$/, '.js'); + inputCode += '\n//# sourceMappingURL=' + filename.replace(/\.html$/, '.js') + '.map'; + } + if (format !== 'es') { + const babel = require('babel-core'); + const babelOptions = { + moduleId: filename.replace(/\.(html|js)$/, ''), + filename: filename.replace(/\.html$/, '.js'), + filenameRelative: srcFilename, + sourceMapTarget: srcFilename, + moduleRoot: '', + sourceMaps: 'both', + sourceRoot: '../', + plugins: [ + 'transform-object-assign' + ], + sourceType: (format !== 'es' && isSvelte) ? 'script' : 'module' + }; + + if (inputMap) { + babelOptions.inputSourceMap = inputMap; + } + + if (format === 'umd' && !isSvelte) { + babelOptions.passPerPreset = true; + babelOptions.presets = [ + ['env', { + modules: 'umd' + }], + 'stage-3' + ]; + babelOptions.plugins.push('add-module-exports'); + } else { + babelOptions.presets = [ + ['env', { + modules: false + }], + 'stage-3' + ]; + } + + ({code, map} = babel.transform(inputCode, babelOptions)); + } + + // Post-compile transforms. + if (format === 'es') { + code = code.replace(/import PNotify(\w*) from ["']\.\/PNotify(\w*)\.html["'];/g, 'import PNotify$1 from "./PNotify$2.js";'); + } + if (format === 'umd') { + code = code.replace(/require\(["']\.\/PNotify(\w*)?\.html["']\)/g, 'require(\'./PNotify$1\')'); + code = code.replace(/, ["']\.\/PNotify(\w*)?\.html["']/g, ', \'./PNotify$1\''); + } + + fs.writeFileSync(dstFilename, code); + if (map) { + fs.writeFileSync(dstFilename + '.map', JSON.stringify(map)); + } +}; + +let compressJs = (module, filename, args) => { + let format = setup(args); + + const srcFilename = 'lib/' + format + '/' + filename; + const dstFilename = 'dist/' + format + '/' + filename; + console.log('Compressing JavaScript ' + module + ' from ' + srcFilename + ' to ' + dstFilename); + console.log('Generating source map for ' + dstFilename + ' in ' + dstFilename + '.map'); + + const UglifyJS = format === 'es' ? require('uglify-es') : require('uglify-js'); + const options = { + sourceMap: { + root: '../', + filename: filename, + url: filename + '.map' + } + }; + const {code, map, error} = UglifyJS.minify({ + [filename]: fs.readFileSync(srcFilename, 'utf8') + }, options); + if (!code) { + console.log('error:', error); + } + fs.writeFileSync(dstFilename, code); + if (map) { + fs.writeFileSync(dstFilename + '.map', map); + } +}; + +let compressCss = (module, filename) => { + setup(); + const srcFilename = 'src/' + filename; + const dstFilename = 'dist/' + filename; + console.log('Compressing CSS ' + module + ' from ' + srcFilename + ' to ' + dstFilename); + + const CleanCSS = require('clean-css'); + const options = { + rebase: false + }; + fs.writeFileSync(dstFilename, (new CleanCSS(options).minify(fs.readFileSync(srcFilename, 'utf8'))).styles); +}; + +let setup = (args) => { + let format = 'iife'; + (args || []).filter(arg => arg.match(/^--format=/)).map(arg => (format = arg.slice(9))); + cd(__dirname); + mkdir('-p', 'lib/' + (args ? format : '')); + mkdir('-p', 'dist/' + (args ? format : '')); + return format; +}; diff --git a/app/node_modules/pnotify/package.json b/app/node_modules/pnotify/package.json new file mode 100644 index 00000000..7eadca49 --- /dev/null +++ b/app/node_modules/pnotify/package.json @@ -0,0 +1,100 @@ +{ + "_from": "pnotify@^4.0.0-alpha.4", + "_id": "pnotify@4.0.0-alpha.4", + "_inBundle": false, + "_integrity": "sha512-onzGW2UjHHeYB8B+Bea7fbH0wmhqwIExR8QoEB+saGQ0qbxTyWCeBVd1c+yhtrGFpXPN00gzMFFWIyzZmNZZWw==", + "_location": "/pnotify", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "pnotify@^4.0.0-alpha.4", + "name": "pnotify", + "escapedName": "pnotify", + "rawSpec": "^4.0.0-alpha.4", + "saveSpec": null, + "fetchSpec": "^4.0.0-alpha.4" + }, + "_requiredBy": [ + "#USER", + "/" + ], + "_resolved": "https://registry.npmjs.org/pnotify/-/pnotify-4.0.0-alpha.4.tgz", + "_shasum": "3d5ab2906fdb24ed58f060014c148378a4508608", + "_spec": "pnotify@^4.0.0-alpha.4", + "_where": "E:\\projects\\p\\gitlit\\app", + "author": { + "name": "Hunter Perrin" + }, + "bugs": { + "url": "https://github.com/sciactive/pnotify/issues" + }, + "bundleDependencies": false, + "dependencies": {}, + "deprecated": false, + "description": "Beautiful dependency free notifications.", + "devDependencies": { + "babel-core": "^6.26.3", + "babel-plugin-add-module-exports": "^0.2.1", + "babel-plugin-iife-wrap": "^1.1.0", + "babel-plugin-transform-object-assign": "^6.22.0", + "babel-preset-env": "^1.7.0", + "babel-preset-stage-3": "^6.24.1", + "clean-css": "^4.1.11", + "eslint": "^4.19.1", + "eslint-config-semistandard": "^12.0.1", + "eslint-config-standard": "^11.0.0", + "eslint-plugin-html": "^4.0.3", + "eslint-plugin-import": "^2.12.0", + "eslint-plugin-node": "^6.0.1", + "eslint-plugin-promise": "^3.7.0", + "eslint-plugin-react": "^7.8.2", + "eslint-plugin-standard": "^3.1.0", + "shelljs": "^0.8.2", + "svelte": "^2.6.3", + "uglify-es": "3.3.9", + "uglify-js": "^3.3.25" + }, + "directories": { + "lib": "lib/umd" + }, + "files": [ + "dist", + "lib", + "src", + "make.js" + ], + "homepage": "https://github.com/sciactive/pnotify", + "keywords": [ + "notice", + "notices", + "notification", + "notifications", + "alert", + "alerts", + "web notifications", + "prompts", + "non blocking", + "notify" + ], + "license": "Apache-2.0", + "name": "pnotify", + "peerDependencies": { + "animate.css": "^3.5.2", + "material-design-icons": "^3.0.1", + "nonblockjs": "^1.0.8" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/sciactive/pnotify.git" + }, + "scripts": { + "build": "npm run build-iife && npm run build-umd && npm run build-es", + "build-es": "node make.js dist -- --format=es", + "build-iife": "node make.js dist -- --format=iife", + "build-umd": "node make.js dist -- --format=umd", + "lint": "eslint index.html make.js src/ demo/", + "prepare": "npm run lint && npm run build" + }, + "version": "4.0.0-alpha.4" +} diff --git a/app/node_modules/pnotify/src/PNotify.html b/app/node_modules/pnotify/src/PNotify.html new file mode 100644 index 00000000..1b5551d6 --- /dev/null +++ b/app/node_modules/pnotify/src/PNotify.html @@ -0,0 +1,1181 @@ + + +
+ +
+ + + + diff --git a/app/node_modules/pnotify/src/PNotifyAnimate.html b/app/node_modules/pnotify/src/PNotifyAnimate.html new file mode 100644 index 00000000..6c4ad917 --- /dev/null +++ b/app/node_modules/pnotify/src/PNotifyAnimate.html @@ -0,0 +1,150 @@ + diff --git a/app/node_modules/pnotify/src/PNotifyBrightTheme.css b/app/node_modules/pnotify/src/PNotifyBrightTheme.css new file mode 100644 index 00000000..7aa692ab --- /dev/null +++ b/app/node_modules/pnotify/src/PNotifyBrightTheme.css @@ -0,0 +1,174 @@ +/* +Color Scheme: http://paletton.com/palette.php?uid=c1T3n2J040kpEKzpEKzbEPSOEyiNk9W +*/ +[ui-pnotify].ui-pnotify .brighttheme { + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; +} +[ui-pnotify].ui-pnotify .brighttheme.ui-pnotify-container { + padding: 1.3rem; +} +[ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-title, +[ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-text, +[ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-confirm { + margin-left: 1.8rem; +} +[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-title, +[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-text, +[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-confirm { + margin-right: 1.8rem; + margin-left: 0; +} +[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-title { + font-size: 1.2rem; + line-height: 1.4rem; + margin-top: -.2rem; + margin-bottom: 1rem; +} +[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-text { + font-size: 1rem; + line-height: 1.2rem; + margin-top: 0; +} +[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-icon { + line-height: 1; +} +[ui-pnotify].ui-pnotify .brighttheme-notice { + background-color: #FFFFA2; + border: 0 solid #FFFF00; + color: #4F4F00; +} +[ui-pnotify].ui-pnotify .brighttheme-info { + background-color: #8FCEDD; + border: 0 solid #0286A5; + color: #012831; +} +[ui-pnotify].ui-pnotify .brighttheme-success { + background-color: #AFF29A; + border: 0 solid #35DB00; + color: #104300; +} +[ui-pnotify].ui-pnotify .brighttheme-error { + background-color: #FFABA2; + background-image: repeating-linear-gradient(135deg, transparent, transparent 35px, rgba(255,255,255,.3) 35px, rgba(255,255,255,.3) 70px); + border: 0 solid #FF1800; + color: #4F0800; +} +[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-closer, +[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-sticker { + font-size: 1rem; + line-height: 1.2rem; +} +[ui-pnotify].ui-pnotify .brighttheme-icon-notice, +[ui-pnotify].ui-pnotify .brighttheme-icon-info, +[ui-pnotify].ui-pnotify .brighttheme-icon-success, +[ui-pnotify].ui-pnotify .brighttheme-icon-error, +[ui-pnotify].ui-pnotify .brighttheme-icon-closer, +[ui-pnotify].ui-pnotify .brighttheme-icon-sticker { + position: relative; + width: 1rem; + height: 1rem; + font-size: 1rem; + font-weight: bold; + line-height: 1rem; + font-family: "Courier New",Courier,monospace; + border-radius: 50%; +} +[ui-pnotify].ui-pnotify .brighttheme-icon-notice:after, +[ui-pnotify].ui-pnotify .brighttheme-icon-info:after, +[ui-pnotify].ui-pnotify .brighttheme-icon-success:after, +[ui-pnotify].ui-pnotify .brighttheme-icon-closer:after, +[ui-pnotify].ui-pnotify .brighttheme-icon-sticker:after { + position: absolute; + top: 0; + left: .2rem; +} +[ui-pnotify].ui-pnotify .brighttheme-icon-notice { + background-color: #2E2E00; + color: #FFFFA2; +} +[ui-pnotify].ui-pnotify .brighttheme-icon-notice:after { + content: "!"; +} +[ui-pnotify].ui-pnotify .brighttheme-icon-info { + background-color: #012831; + color: #8FCEDD; +} +[ui-pnotify].ui-pnotify .brighttheme-icon-info:after { + content: "i"; +} +[ui-pnotify].ui-pnotify .brighttheme-icon-success { + background-color: #104300; + color: #AFF29A; +} +[ui-pnotify].ui-pnotify .brighttheme-icon-success:after { + content: "\002713"; +} +[ui-pnotify].ui-pnotify .brighttheme-icon-error { + width: 0; + height: 0; + font-size: 0; + line-height: 0; + border-radius: 0; + border-left: .6rem solid transparent; + border-right: .6rem solid transparent; + border-bottom: 1.2rem solid #2E0400; + color: #FFABA2; +} +[ui-pnotify].ui-pnotify .brighttheme-icon-error:after { + position: absolute; + top: .1rem; + left: -0.25rem; + font-size: .9rem; + font-weight: bold; + line-height: 1.4rem; + font-family: "Courier New",Courier,monospace; + content: "!"; +} +[ui-pnotify].ui-pnotify .brighttheme-icon-closer, +[ui-pnotify].ui-pnotify .brighttheme-icon-sticker { + display: inline-block; +} +[ui-pnotify].ui-pnotify .brighttheme-icon-closer:after { + content: "\002715"; +} +[ui-pnotify].ui-pnotify .brighttheme-icon-sticker:after { + top: -1px; + content: "\002016"; +} +[ui-pnotify].ui-pnotify .brighttheme-icon-sticker.brighttheme-icon-stuck:after { + content: "\00003E"; +} + +[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-confirm { + margin-top: 1rem; +} +[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-prompt-bar { + margin-bottom: 1rem; +} +[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-action-button { + text-transform: uppercase; + font-weight: bold; + padding: .4rem 1rem; + border: none; + background: transparent; + cursor: pointer; +} + +[ui-pnotify].ui-pnotify .brighttheme-notice .ui-pnotify-action-button.brighttheme-primary { + background-color: #FFFF00; + color: #4F4F00; +} +[ui-pnotify].ui-pnotify .brighttheme-info .ui-pnotify-action-button.brighttheme-primary { + background-color: #0286A5; + color: #012831; +} +[ui-pnotify].ui-pnotify .brighttheme-success .ui-pnotify-action-button.brighttheme-primary { + background-color: #35DB00; + color: #104300; +} +[ui-pnotify].ui-pnotify .brighttheme-error .ui-pnotify-action-button.brighttheme-primary { + background-color: #FF1800; + color: #4F0800; +} diff --git a/app/node_modules/pnotify/src/PNotifyButtons.html b/app/node_modules/pnotify/src/PNotifyButtons.html new file mode 100644 index 00000000..7e9c67cc --- /dev/null +++ b/app/node_modules/pnotify/src/PNotifyButtons.html @@ -0,0 +1,164 @@ +{#if _showCloser} +
+ +
+{/if} +{#if _showSticker} +
+ +
+{/if} + + + + diff --git a/app/node_modules/pnotify/src/PNotifyCallbacks.html b/app/node_modules/pnotify/src/PNotifyCallbacks.html new file mode 100644 index 00000000..11a37c17 --- /dev/null +++ b/app/node_modules/pnotify/src/PNotifyCallbacks.html @@ -0,0 +1,68 @@ + diff --git a/app/node_modules/pnotify/src/PNotifyCompat.js b/app/node_modules/pnotify/src/PNotifyCompat.js new file mode 100644 index 00000000..b5001b05 --- /dev/null +++ b/app/node_modules/pnotify/src/PNotifyCompat.js @@ -0,0 +1,225 @@ +import PNotify from './PNotify.html'; + +// Translate v3 options to v4 options. +const translateOptions = (options, module, moduleName) => { + // Merge the classic default options. + const newOptions = module ? Object.assign({}, moduleName ? PNotifyCompat.prototype.options[moduleName] : {}, options) : Object.assign({}, PNotifyCompat.prototype.options, options); + const translateName = (badName) => { + let goodName = badName; + let underscoreIndex; + while ((underscoreIndex = goodName.indexOf('_')) !== -1) { + goodName = goodName.slice(0, underscoreIndex) + goodName.slice(underscoreIndex + 1, underscoreIndex + 2).toUpperCase() + goodName.slice(underscoreIndex + 2); + } + return goodName; + }; + + // Translate all options to the new style. + for (let name in newOptions) { + if (newOptions.hasOwnProperty(name) && name.indexOf('_') !== -1) { + const goodName = translateName(name); + newOptions[goodName] = newOptions[name]; + delete newOptions[name]; + } + } + + if (!module) { + // Options that have changed. + if (newOptions.hasOwnProperty('addclass')) { + newOptions.addClass = newOptions.addclass; + delete newOptions.addclass; + } + if (newOptions.hasOwnProperty('cornerclass')) { + newOptions.cornerClass = newOptions.cornerclass; + delete newOptions.cornerClass; + } + if (newOptions.hasOwnProperty('textEscape')) { + newOptions.textTrusted = !newOptions.textEscape; + delete newOptions.textEscape; + } + if (newOptions.hasOwnProperty('titleEscape')) { + newOptions.titleTrusted = !newOptions.titleEscape; + delete newOptions.titleEscape; + } + + // Styling and icons. + if (newOptions.hasOwnProperty('styling')) { + if (newOptions.styling === 'bootstrap3') { + newOptions.icons = 'bootstrap3'; + } else if (newOptions.styling === 'fontawesome') { + newOptions.styling = 'bootstrap3'; + newOptions.icons = 'fontawesome4'; + } + } + + // Stacks. + if (newOptions.hasOwnProperty('stack')) { + if (newOptions.stack.overlay_close) { + newOptions.stack.overlayClose = newOptions.stack.overlay_close; + } + } + + // Translate module options. + newOptions.modules = {}; + if (newOptions.hasOwnProperty('animate')) { + newOptions.modules.Animate = translateOptions(newOptions.animate, true, 'animate'); + delete newOptions.animate; + } + if (newOptions.hasOwnProperty('buttons')) { + newOptions.modules.Buttons = translateOptions(newOptions.buttons, true, 'buttons'); + delete newOptions.buttons; + if (newOptions.modules.Buttons.classes) { + newOptions.modules.Buttons.classes = translateOptions(newOptions.modules.Buttons.classes, true); + } + } + if (newOptions.hasOwnProperty('confirm')) { + newOptions.modules.Confirm = translateOptions(newOptions.confirm, true, 'confirm'); + if (newOptions.modules.Confirm.promptDefault) { + newOptions.modules.Confirm.promptValue = newOptions.modules.Confirm.promptDefault; + delete newOptions.modules.Confirm.promptDefault; + } + delete newOptions.confirm; + } + if (newOptions.hasOwnProperty('desktop')) { + newOptions.modules.Desktop = translateOptions(newOptions.desktop, true, 'desktop'); + delete newOptions.desktop; + } + if (newOptions.hasOwnProperty('history')) { + newOptions.modules.History = translateOptions(newOptions.history, true, 'history'); + delete newOptions.history; + } + if (newOptions.hasOwnProperty('mobile')) { + newOptions.modules.Mobile = translateOptions(newOptions.mobile, true, 'mobile'); + delete newOptions.mobile; + } + if (newOptions.hasOwnProperty('nonblock')) { + newOptions.modules.NonBlock = translateOptions(newOptions.nonblock, true, 'nonblock'); + delete newOptions.nonblock; + } + if (newOptions.hasOwnProperty('reference')) { + newOptions.modules.Reference = translateOptions(newOptions.reference, true, 'reference'); + delete newOptions.reference; + } + if (newOptions.hasOwnProperty('beforeInit')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.beforeInit = newOptions.beforeInit; + delete newOptions.beforeInit; + } + if (newOptions.hasOwnProperty('afterInit')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.afterInit = newOptions.afterInit; + delete newOptions.afterInit; + } + if (newOptions.hasOwnProperty('beforeOpen')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.beforeOpen = newOptions.beforeOpen; + delete newOptions.beforeOpen; + } + if (newOptions.hasOwnProperty('afterOpen')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.afterOpen = newOptions.afterOpen; + delete newOptions.afterOpen; + } + if (newOptions.hasOwnProperty('beforeClose')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.beforeClose = newOptions.beforeClose; + delete newOptions.beforeClose; + } + if (newOptions.hasOwnProperty('afterClose')) { + if (!newOptions.modules.Callbacks) { + newOptions.modules.Callbacks = {}; + } + newOptions.modules.Callbacks.afterClose = newOptions.afterClose; + delete newOptions.afterClose; + } + } + + return newOptions; +}; + +// The compatibility class. +class PNotifyCompat extends PNotify { + constructor (options) { + if (typeof options !== 'object') { + options = {'text': options}; + } + + // These need to be called directly, since we're not using PNotify.alert(). + if (PNotify.modules.Callbacks && options.before_init) { + options.before_init(options); + } + + options = translateOptions(options); + + super({target: document.body, data: options}); + + // Override the get function to return the element like it did in v3. + const _get = this.get; + this.get = function (option) { + if (option === undefined) { + return Object.assign(window.jQuery ? window.jQuery(this.refs.elem) : this.refs.elem, _get.call(this)); + } + return _get.call(this, option); + }; + + // Confirm module events. + this.on('pnotify.confirm', (e) => { + if (window.jQuery) { + window.jQuery(this.refs.elem).trigger('pnotify.confirm', [this, e.value]); + } + }); + this.on('pnotify.cancel', (e) => { + if (window.jQuery) { + window.jQuery(this.refs.elem).trigger('pnotify.cancel', this); + } + }); + + if (PNotify.modules.Callbacks) { + PNotify.modules.Callbacks.getCallbacks(this, null, 'afterInit')(this); + } + } + + update (options) { + options = translateOptions(options); + return super.update(options); + } +} + +// Lets you change defaults the old way. +PNotifyCompat.prototype.options = { + text_escape: false, + title_escape: false +}; + +// Forward static functions. +PNotifyCompat.reload = () => PNotifyCompat; +PNotifyCompat.removeAll = () => PNotify.removeAll(); +PNotifyCompat.removeStack = (stack) => PNotify.removeStack(stack); +PNotifyCompat.positionAll = (animate) => PNotify.positionAll(animate); + +// Desktop module permission method. +PNotifyCompat.desktop = { + permission: () => { + PNotify.modules.Desktop.permission(); + } +}; + +// Old style showLast() in History module. +if (window.jQuery) { + window.jQuery(() => { + window.jQuery(document.body).on('pnotify.history-last', function () { + PNotify.modules.History.showLast(); + }); + }); +} + +export default PNotifyCompat; diff --git a/app/node_modules/pnotify/src/PNotifyConfirm.html b/app/node_modules/pnotify/src/PNotifyConfirm.html new file mode 100644 index 00000000..42b1076e --- /dev/null +++ b/app/node_modules/pnotify/src/PNotifyConfirm.html @@ -0,0 +1,214 @@ +{#if confirm || prompt} +
+ {#if prompt} +
+ {#if promptMultiLine} + + {:else} + + {/if} +
+ {/if} +
+ {#each buttons as button} + + {/each} +
+
+{/if} + + + + diff --git a/app/node_modules/pnotify/src/PNotifyDesktop.html b/app/node_modules/pnotify/src/PNotifyDesktop.html new file mode 100644 index 00000000..5f0e76db --- /dev/null +++ b/app/node_modules/pnotify/src/PNotifyDesktop.html @@ -0,0 +1,273 @@ + + + diff --git a/app/node_modules/pnotify/src/PNotifyHistory.html b/app/node_modules/pnotify/src/PNotifyHistory.html new file mode 100644 index 00000000..a0de8af8 --- /dev/null +++ b/app/node_modules/pnotify/src/PNotifyHistory.html @@ -0,0 +1,136 @@ + diff --git a/app/node_modules/pnotify/src/PNotifyMobile.html b/app/node_modules/pnotify/src/PNotifyMobile.html new file mode 100644 index 00000000..a97fc865 --- /dev/null +++ b/app/node_modules/pnotify/src/PNotifyMobile.html @@ -0,0 +1,303 @@ + + + diff --git a/app/node_modules/pnotify/src/PNotifyNonBlock.html b/app/node_modules/pnotify/src/PNotifyNonBlock.html new file mode 100644 index 00000000..9f3ecaa6 --- /dev/null +++ b/app/node_modules/pnotify/src/PNotifyNonBlock.html @@ -0,0 +1,50 @@ + diff --git a/app/node_modules/pnotify/src/PNotifyReference.html b/app/node_modules/pnotify/src/PNotifyReference.html new file mode 100644 index 00000000..74c50d03 --- /dev/null +++ b/app/node_modules/pnotify/src/PNotifyReference.html @@ -0,0 +1,147 @@ + +{#if putThing} + + + +
+{/if} + + + + diff --git a/app/node_modules/pnotify/src/PNotifyStyleMaterial.html b/app/node_modules/pnotify/src/PNotifyStyleMaterial.html new file mode 100644 index 00000000..d32d8406 --- /dev/null +++ b/app/node_modules/pnotify/src/PNotifyStyleMaterial.html @@ -0,0 +1,258 @@ + + + diff --git a/app/node_modules/popper.js/README.md b/app/node_modules/popper.js/README.md new file mode 100644 index 00000000..7d682faf --- /dev/null +++ b/app/node_modules/popper.js/README.md @@ -0,0 +1,219 @@ + + +

Popper.js

+ +

+ A library used to position poppers in web applications. +

+ +

+ Build Status + Stable Release Size + bitHound Overall Score + Istanbul Code Coverage + Get support or discuss +
+ SauceLabs Reports +

+ + + + + +## Wut? Poppers? + +A popper is an element on the screen which "pops out" from the natural flow of your application. +Common examples of poppers are tooltips, popovers and drop-downs. + + +## So, yet another tooltip library? + +Well, basically, **no**. +Popper.js is a **positioning engine**, its purpose is to calculate the position of an element +to make it possible to position it near a given reference element. + +The engine is completely modular and most of its features are implemented as **modifiers** +(similar to middlewares or plugins). +The whole code base is written in ES2015 and its features are automatically tested on real browsers thanks to [SauceLabs](https://saucelabs.com/) and [TravisCI](https://travis-ci.org/). + +Popper.js has zero dependencies. No jQuery, no LoDash, nothing. +It's used by big companies like [Twitter in Bootstrap v4](https://getbootstrap.com/), [Microsoft in WebClipper](https://github.com/OneNoteDev/WebClipper) and [Atlassian in AtlasKit](https://aui-cdn.atlassian.com/atlaskit/registry/). + +### Popper.js + +This is the engine, the library that computes and, optionally, applies the styles to +the poppers. + +Some of the key points are: + +- Position elements keeping them in their original DOM context (doesn't mess with your DOM!); +- Allows to export the computed informations to integrate with React and other view libraries; +- Supports Shadow DOM elements; +- Completely customizable thanks to the modifiers based structure; + +Visit our [project page](https://fezvrasta.github.io/popper.js) to see a lot of examples of what you can do with Popper.js! + +Find [the documentation here](/docs/_includes/popper-documentation.md). + + +### Tooltip.js + +Since lots of users just need a simple way to integrate powerful tooltips in their projects, +we created **Tooltip.js**. +It's a small library that makes it easy to automatically create tooltips using as engine Popper.js. +Its API is almost identical to the famous tooltip system of Bootstrap, in this way it will be +easy to integrate it in your projects. +The tooltips generated by Tooltip.js are accessible thanks to the `aria` tags. + +Find [the documentation here](/docs/_includes/tooltip-documentation.md). + + +## Installation +Popper.js is available on the following package managers and CDNs: + +| Source | | +|:-------|:---------------------------------------------------------------------------------| +| npm | `npm install popper.js --save` | +| yarn | `yarn add popper.js` | +| NuGet | `PM> Install-Package popper.js` | +| Bower | `bower install popper.js --save` | +| unpkg | [`https://unpkg.com/popper.js`](https://unpkg.com/popper.js) | +| cdnjs | [`https://cdnjs.com/libraries/popper.js`](https://cdnjs.com/libraries/popper.js) | + +Tooltip.js as well: + +| Source | | +|:-------|:---------------------------------------------------------------------------------| +| npm | `npm install tooltip.js --save` | +| yarn | `yarn add tooltip.js` | +| Bower* | `bower install tooltip.js=https://unpkg.com/tooltip.js --save` | +| unpkg | [`https://unpkg.com/tooltip.js`](https://unpkg.com/tooltip.js) | +| cdnjs | [`https://cdnjs.com/libraries/popper.js`](https://cdnjs.com/libraries/popper.js) | + +\*: Bower isn't officially supported, it can be used to install Tooltip.js only trough the unpkg.com CDN. This method has the limitation of not being able to define a specific version of the library. Bower and Popper.js suggests to use npm or Yarn for your projects. +For more info, [read the related issue](https://github.com/FezVrasta/popper.js/issues/390). + +### Dist targets + +Popper.js is currently shipped with 3 targets in mind: UMD, ESM and ESNext. + +- UMD - Universal Module Definition: AMD, RequireJS and globals; +- ESM - ES Modules: For webpack/Rollup or browser supporting the spec; +- ESNext: Available in `dist/`, can be used with webpack and `babel-preset-env`; + +Make sure to use the right one for your needs. If you want to import it with a `