1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-02 20:30:05 +02:00

make lock/unlock work

This commit is contained in:
s2
2018-05-18 16:52:09 +02:00
parent 80699aa7c5
commit 0a2e639e1c
194 changed files with 34229 additions and 12 deletions

View File

@@ -7,6 +7,10 @@
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script> <script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="node_modules/jquery/dist/jquery.js"></script> <script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.js"></script> <script src="node_modules/bootstrap/dist/js/bootstrap.js"></script>
<script type="text/javascript" src="node_modules/pnotify/dist/iife/PNotify.js"></script>
<script type="text/javascript" src="node_modules/pnotify/dist/iife/PNotifyButtons.js"></script>
<script src="node_modules/ejs/ejs.js"></script> <script src="node_modules/ejs/ejs.js"></script>
<script src="js/templates.js"></script> <script src="js/templates.js"></script>
<script src="js/index.js"></script> <script src="js/index.js"></script>
@@ -14,8 +18,10 @@
<link href="node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet"> <link href="node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
</head> </head>
<body> <body>
<div class="js-container">
<div class="alert alert-primary" role="alert"> <div class="alert alert-primary" role="alert">
Getting file list... Getting file list...
</div> </div>
</div>
</body> </body>
</html> </html>

View File

@@ -1,6 +1,58 @@
(function($) { (function($) {
let ipcRenderer = require('electron').ipcRenderer; let ipcRenderer = require('electron').ipcRenderer;
//events
ipcRenderer.on('fileList', (event, files) => { 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); })(jQuery);

View File

@@ -1,7 +1,7 @@
window.gitlit = window.gitlit || {}; window.gitlit = window.gitlit || {};
gitlit.templates = { gitlit.templates = {
main: ejs.compile(` main: ejs.compile(`
<table class="table"> <table class="table table-striped">
<tr> <tr>
<th>file</th> <th>file</th>
<th>status</th> <th>status</th>
@@ -9,18 +9,34 @@ gitlit.templates = {
</tr> </tr>
<% files.forEach((file) => { %> <% files.forEach((file) => { %>
<tr class="<%= file.lockedBy ? 'alert alert-danger' : '' %>"> <tr>
<td><%= file.file %></td> <td><%= file.file %></td>
<td><%= file.lockedBy ? file.lockedBy + ' (id: ' + file.id + ')' : 'not locked' %></td> <td><%= file.lockedBy ? file.lockedBy + ' (id: ' + file.id + ')' : 'not locked' %></td>
<td> <td>
<a class="btn btn-<%= file.lockedBy ? 'danger' : 'primary' %>" <a class="btn btn-primary js-lock"
href="javascript:///"> href="javascript:///"
<%= file.lockedBy ? 'Unlock' : 'Lock' %> data-file="<%= file.file %>"
style="<%= file.lockedBy ? 'display: none;' : '' %>"
>
Lock
</a>
<a class="btn btn-danger js-unlock"
href="javascript:///"
data-file="<%= file.file %>"
style="<%= file.lockedBy ? '' : 'display: none;' %>"
>
Unlock
</a> </a>
</td> </td>
</tr> </tr>
<% }); %> <% }); %>
</table> </table>
<div>
<a class="btn btn-secondary js-refresh" href="javascript:///">
Refresh
</a>
</div>
`) `)
}; };

View File

@@ -1,4 +1,4 @@
const {app, BrowserWindow} = require('electron'); const {app, BrowserWindow, ipcMain} = require('electron');
const path = require('path'); const path = require('path');
const url = require('url'); const url = require('url');
const electronLocalshortcut = require('electron-localshortcut'); 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) { function getLfsFileList(dir, cb) {
exec('git lfs ls-files', { exec('git lfs ls-files', {
@@ -19,9 +20,10 @@ function getLfsFileList(dir, cb) {
cb(error); cb(error);
return; return;
} }
let parsedFiles = [];
if (stdout) { if (stdout) {
let files = stdout.split('\n'); let files = stdout.split('\n');
let parsedFiles = [];
files.forEach((file) => { files.forEach((file) => {
file = file.split(' * '); file = file.split(' * ');
if (file[1]) { if (file[1]) {
@@ -29,6 +31,8 @@ function getLfsFileList(dir, cb) {
} }
}); });
cb(null, parsedFiles);
} else {
cb(null, parsedFiles); cb(null, parsedFiles);
} }
}); });
@@ -43,9 +47,10 @@ function getLfsLocks(dir, cb) {
cb(error); cb(error);
return; return;
} }
let parsedFiles = [];
if (stdout) { if (stdout) {
let files = stdout.split('\n'); let files = stdout.split('\n');
let parsedFiles = [];
files.forEach((file) => { files.forEach((file) => {
if (file) { if (file) {
let fileName = file.split('\t')[0].trim(); let fileName = file.split('\t')[0].trim();
@@ -59,6 +64,8 @@ function getLfsLocks(dir, cb) {
} }
}); });
cb(null, parsedFiles);
} else {
cb(null, parsedFiles); cb(null, parsedFiles);
} }
}); });
@@ -93,8 +100,16 @@ function createWindow() {
win.webContents.on('did-finish-load', () => { win.webContents.on('did-finish-load', () => {
console.log('getting file list and lock status...'); console.log('getting file list and lock status...');
getLfsFileList(args._.join(' '), (err, files) => { getLfsFileList(repoDir, (err, files) => {
getLfsLocks(args._.join(' '), (err, lockedFiles) => { if (err) {
console.error(err);
process.exit(1);
}
getLfsLocks(repoDir, (err, lockedFiles) => {
if (err) {
console.error(err);
process.exit(1);
}
let allFiles = []; let allFiles = [];
files.forEach((file) => { 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); app.on('ready', createWindow);

202
app/node_modules/pnotify/LICENSE generated vendored Normal file
View File

@@ -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.

683
app/node_modules/pnotify/README.md generated vendored Normal file
View File

@@ -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.
<h1>Demos</h1>
* http://sciactive.com/pnotify/ for the latest release (v3)
* https://sciactive.github.io/pnotify/ for what's in development (v4-alpha)
<h1>Table of Contents</h1>
<!-- TOC START min:1 max:3 link:true update:true -->
- [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)
<!-- TOC END -->
# 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
<script type="text/javascript" src="node_modules/pnotify/dist/iife/PNotify.js"></script>
<script type="text/javascript" src="node_modules/pnotify/dist/iife/PNotifyButtons.js"></script>
<script type="text/javascript">
PNotify.alert('Notice me, senpai!');
</script>
```
## 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
<link href="node_modules/pnotify/dist/PNotifyBrightTheme.css" rel="stylesheet" type="text/css" />
```
## 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
<link rel="stylesheet" href="node_modules/material-design-icons/iconfont/material-icons.css" />
```
Alternatively, you can use the Google Fonts CDN:
```html
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Material+Icons" />
```
## 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.
<h2>Support on Beerpay</h2>
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)

1
app/node_modules/pnotify/dist/PNotifyBrightTheme.css generated vendored Normal file
View File

@@ -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}

2
app/node_modules/pnotify/dist/es/PNotify.js generated vendored Normal file

File diff suppressed because one or more lines are too long

1
app/node_modules/pnotify/dist/es/PNotify.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/es/PNotifyAnimate.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/es/PNotifyButtons.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/es/PNotifyCallbacks.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import PNotify from"./PNotify.js";let _open=PNotify.prototype.open,_close=PNotify.prototype.close;const callbacks=(t,e,o)=>{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<o.length;s+=1){var i=o[s];i.__calling||(i.__calling=!0,i.call(this,e),i.__calling=!1)}}function on(t,e){var o=this._handlers[t]||(this._handlers[t]=[]);return o.push(e),{cancel:function(){var t=o.indexOf(e);~t&&o.splice(t,1)}}}function set(t){this._set(assign({},t)),this.root._lock||(this.root._lock=!0,callAll(this.root._beforecreate),callAll(this.root._oncreate),callAll(this.root._aftercreate),this.root._lock=!1)}function _set(t){var e=this._state,o={},s=!1;for(var i in t)this._differs(t[i],e[i])&&(o[i]=s=!0);s&&(this._state=assign(assign({},e),t),this._recompute(o,this._state),this._bind&&this._bind(o,this._state),this._fragment&&(this.fire("state",{changed:o,current:this._state,previous:e}),this._fragment.p(o,this._state),this.fire("update",{changed:o,current:this._state,previous:e})))}function _mount(t,e){this._fragment[this._fragment.i?"i":"m"](t,e||null)}function _differs(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function blankObject(){return Object.create(null)}function callAll(t){for(;t&&t.length;)t.shift()()}PNotify.prototype.open=function(...t){!1!==callbacks(this,null,"beforeOpen")(this)&&(_open.apply(this,t),callbacks(this,null,"afterOpen")(this))},PNotify.prototype.close=function(t,...e){!1!==callbacks(this,null,"beforeClose")(this,t)&&(_close.apply(this,[t,...e]),callbacks(this,null,"afterClose")(this,t))},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);export default PNotifyCallbacks;
//# sourceMappingURL=PNotifyCallbacks.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["PNotifyCallbacks.js"],"names":["PNotify","_open","prototype","open","_close","close","callbacks","notice","options","name","modules","get","cbs","Callbacks","setup","Component","key","getCallbacks","_alert","alert","_notice","_info","info","_success","success","_error","error","init","original","create_main_fragment","component","ctx","c","noop","m","p","d","PNotifyCallbacks","this","_state","assign","data","_intro","_fragment","target","_mount","anchor","_handlers","blankObject","_bind","root","store","tar","src","k","destroy","detach","fire","set","eventName","handlers","slice","i","length","handler","__calling","call","on","push","cancel","index","indexOf","splice","newState","_set","_lock","callAll","_beforecreate","_oncreate","_aftercreate","oldState","changed","dirty","_differs","_recompute","current","previous","a","b","Object","create","fns","shift","args","apply","timerHide"],"mappings":"OACOA,YAAa,eAEpB,IAAIC,MAAQD,QAAQE,UAAUC,KAC1BC,OAASJ,QAAQE,UAAUG,MAE/B,MAAMC,UAAY,CAACC,EAAQC,EAASC,KAClC,IAAIC,EAAUH,EAASA,EAAOI,MAAMD,QAAUF,EAAQE,QAClDE,EAAOF,GAAWA,EAAQG,UAAaH,EAAQG,aACnD,OAAOD,EAAIH,GAAQG,EAAIH,GAAQ,KAAM,GAmBvC,SAASK,MAAMC,GACbA,EAAUC,IAAM,YAEhBD,EAAUE,aAAeX,UAEzB,IAAIY,EAASlB,QAAQmB,MACjBC,EAAUpB,QAAQO,OAClBc,EAAQrB,QAAQsB,KAChBC,EAAWvB,QAAQwB,QACnBC,EAASzB,QAAQ0B,MAEjBC,EAAO,CAACC,EAAUpB,KACpBF,UAAU,KAAME,EAAS,aAAzBF,CAAuCE,GACvC,IAAID,EAASqB,EAASpB,GAEtB,OADAF,UAAUC,EAAQ,KAAM,YAAxBD,CAAqCC,GAC9BA,GAGTP,QAAQmB,MAAQ,CAACX,GAC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SAASI,EAAGC,GACpB,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAOD,GAAkB,iBAANA,GAAgC,mBAANA,EAG7E,SAASvC,cACR,OAAOyC,OAAOC,OAAO,MAGtB,SAASd,QAAQe,GAChB,KAAOA,GAAOA,EAAI5B,QAAQ4B,EAAIC,OAAJD,GArM3B3F,QAAQE,UAAUC,KAAO,YAAa0F,IAExB,IADFvF,UAAUgC,KAAM,KAAM,aAAtBhC,CAAoCgC,QAE5CrC,MAAM6F,MAAMxD,KAAMuD,GAClBvF,UAAUgC,KAAM,KAAM,YAAtBhC,CAAmCgC,QAIvCtC,QAAQE,UAAUG,MAAQ,SAAU0F,KAAcF,IAEpC,IADFvF,UAAUgC,KAAM,KAAM,cAAtBhC,CAAqCgC,KAAMyD,KAEnD3F,OAAO0F,MAAMxD,MAAOyD,KAAcF,IAClCvF,UAAUgC,KAAM,KAAM,aAAtBhC,CAAoCgC,KAAMyD,KAoE9CvD,OAAOH,iBAAiBnC,WACtBqD,QAASA,QACT5C,IAAKA,IACL8C,KAAMA,KACNU,GAAIA,GACJT,IAAKA,IACLgB,KAAMA,KACN7B,OAAQA,OACRsC,SAAUA,WAGZ9C,iBAAiBnC,UAAUkF,WAAanD,KAExCnB,MAAMuB,iCA0GSA","file":"PNotifyCallbacks.js","sourceRoot":"../"}

2
app/node_modules/pnotify/dist/es/PNotifyCompat.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import PNotify from"./PNotify.js";const translateOptions=(e,t,o)=>{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

View File

@@ -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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,SAAUC,GACnB,YAAeC,IAAXD,EACKhE,OAAOC,OAAOiE,OAAOC,OAASD,OAAOC,OAAOL,KAAKM,KAAKC,MAAQP,KAAKM,KAAKC,KAAMR,EAAKS,KAAKR,OAE1FD,EAAKS,KAAKR,KAAME,IAIzBF,KAAKS,GAAG,kBAAoBC,IACtBN,OAAOC,QACTD,OAAOC,OAAOL,KAAKM,KAAKC,MAAMI,QAAQ,mBAAoBX,KAAMU,EAAEE,UAGtEZ,KAAKS,GAAG,iBAAmBC,IACrBN,OAAOC,QACTD,OAAOC,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":"../"}

2
app/node_modules/pnotify/dist/es/PNotifyConfirm.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/es/PNotifyDesktop.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/es/PNotifyHistory.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import PNotify from"./PNotify.js";function data(){return Object.assign({_notice:null,_options:{}},PNotify.modules.History.defaults)}var methods={initModule(t){if(this.set(t),this.get().history){const{_notice:t}=this.get();t.get().destroy&&t.set({destroy:!1})}},beforeOpen(){const{maxInStack:t,_options:o}=this.get();if(t===1/0)return;const e=o.stack;if(!1!==e&&PNotify.notices&&PNotify.notices.length>t){const o="top"===e.push,i=[];let s=0;for(let n=o?0:PNotify.notices.length-1;o?n<PNotify.notices.length: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;t<i.length;t++)i[t].close(!1)}}};function setup(t){t.key="History",t.defaults={history:!0,maxInStack:1/0},t.init=(o=>new 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<PNotify.notices.length;o++){const e=PNotify.notices[o];!0!==t&&e.get().stack!==t||!e.get()._modules.History.get().history||e.open()}}),PNotify.modules.History=t}function create_main_fragment(t,o){return{c:noop,m:noop,p:noop,d:noop}}function PNotifyHistory(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 e in o)t[e]=o[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,o){var e=t in this._handlers&&this._handlers[t].slice();if(e)for(var i=0;i<e.length;i+=1){var s=e[i];s.__calling||(s.__calling=!0,s.call(this,o),s.__calling=!1)}}function on(t,o){var e=this._handlers[t]||(this._handlers[t]=[]);return e.push(o),{cancel:function(){var t=e.indexOf(o);~t&&e.splice(t,1)}}}function set(t){this._set(assign({},t)),this.root._lock||(this.root._lock=!0,callAll(this.root._beforecreate),callAll(this.root._oncreate),callAll(this.root._aftercreate),this.root._lock=!1)}function _set(t){var o=this._state,e={},i=!1;for(var s in t)this._differs(t[s],o[s])&&(e[s]=i=!0);i&&(this._state=assign(assign({},o),t),this._recompute(e,this._state),this._bind&&this._bind(e,this._state),this._fragment&&(this.fire("state",{changed:e,current:this._state,previous:o}),this._fragment.p(e,this._state),this.fire("update",{changed:e,current:this._state,previous:o})))}function _mount(t,o){this._fragment[this._fragment.i?"i":"m"](t,o||null)}function _differs(t,o){return t!=t?o==o:t!==o||t&&"object"==typeof t||"function"==typeof t}function blankObject(){return Object.create(null)}function callAll(t){for(;t&&t.length;)t.shift()()}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);export default PNotifyHistory;
//# sourceMappingURL=PNotifyHistory.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["PNotifyHistory.js"],"names":["PNotify","data","Object","assign","_notice","_options","modules","History","defaults","methods","[object Object]","options","this","set","get","history","destroy","maxInStack","Infinity","stack","notices","length","top","push","forRemoval","currentOpen","i","indexOf","_state","close","setup","Component","key","init","notice","target","document","body","showLast","undefined","defaultStack","_modules","open","showAll","create_main_fragment","component","ctx","c","noop","m","p","d","PNotifyHistory","_intro","_fragment","_mount","anchor","_handlers","blankObject","_bind","root","store","tar","src","k","detach","fire","eventName","handlers","slice","handler","__calling","call","on","cancel","index","splice","newState","_set","_lock","callAll","_beforecreate","_oncreate","_aftercreate","oldState","changed","dirty","_differs","_recompute","current","previous","a","b","create","fns","shift","prototype"],"mappings":"OACOA,YAAa,eAEpB,SAASC,OACP,OAAOC,OAAOC,QACZC,QAAW,KACXC,aACCL,QAAQM,QAAQC,QAAQC,UAG7B,IAAIC,SACFC,WAAYC,GAGV,GAFAC,KAAKC,IAAIF,GAELC,KAAKE,MAAMC,QAAS,CAEtB,MAAMX,QAACA,GAAWQ,KAAKE,MACnBV,EAAQU,MAAME,SAChBZ,EAAQS,KAAKG,SAAW,MAK9BN,aACE,MAAMO,WAACA,EAAUZ,SAAEA,GAAYO,KAAKE,MACpC,GAAIG,IAAeC,EAAAA,EACjB,OAGF,MAAMC,EAAQd,EAASc,MACvB,IAAc,IAAVA,GAKAnB,QAAQoB,SAAYpB,QAAQoB,QAAQC,OAASJ,EAAa,CAG5D,MAAMK,EAAqB,QAAfH,EAAMI,KACZC,KACN,IAAIC,EAAc,EAElB,IAAK,IAAIC,EAAKJ,EAAM,EAAItB,QAAQoB,QAAQC,OAAS,EAAKC,EAAMI,EAAI1B,QAAQoB,QAAQC,OAASK,GAAK,EAAKJ,EAAMI,IAAMA,KAEzC,KAAjE,UAAW,QAAQC,QAAQ3B,QAAQoB,QAAQM,GAAGZ,MAAMc,SACrD5B,QAAQoB,QAAQM,GAAGZ,MAAMK,QAAUA,IAE/BM,GAAeR,EACjBO,EAAWD,KAAKvB,QAAQoB,QAAQM,IAEhCD,KAKN,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAWH,OAAQK,IACrCF,EAAWE,GAAGG,OAAM,MAM5B,SAASC,MAAMC,GACbA,EAAUC,IAAM,UAEhBD,EAAUvB,UAERO,SAAS,EAETE,WAAYC,EAAAA,GAGda,EAAUE,KAAO,CAACC,GACT,IAAIH,GAAWI,OAAQC,SAASC,QAGzCN,EAAUO,SAAW,CAACnB,IAIpB,QAHcoB,IAAVpB,IACFA,EAAQnB,QAAQwC,eAEJ,IAAVrB,EACF,OAEF,MAAMG,EAAsB,QAAfH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UAAWiF,GAAWP,GAC3CjE,KAAK4E,WAAWH,EAASzE,KAAKgB,QAC1BhB,KAAK+C,OAAO/C,KAAK+C,MAAM0B,EAASzE,KAAKgB,QAErChB,KAAK0C,YACR1C,KAAKsD,KAAK,SAAWmB,QAASA,EAASI,QAAS7E,KAAKgB,OAAQ8D,SAAUN,IACvExE,KAAK0C,UAAUJ,EAAEmC,EAASzE,KAAKgB,QAC/BhB,KAAKsD,KAAK,UAAYmB,QAASA,EAASI,QAAS7E,KAAKgB,OAAQ8D,SAAUN,MAI1E,SAAS7B,OAAOpB,EAAQqB,GACvB5C,KAAK0C,UAAU1C,KAAK0C,UAAU5B,EAAI,IAAM,KAAKS,EAAQqB,GAAU,MAGhE,SAAS+B,SAASI,EAAGC,GACpB,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAOD,GAAkB,iBAANA,GAAgC,mBAANA,EAG7E,SAASjC,cACR,OAAOxD,OAAO2F,OAAO,MAGtB,SAASb,QAAQc,GAChB,KAAOA,GAAOA,EAAIzE,QAAQyE,EAAIC,OAAJD,GAtH3B3F,OAAOiD,eAAe4C,WACpBhF,QAASA,QACTF,IAAKA,IACLoD,KAAMA,KACNO,GAAIA,GACJ5D,IAAKA,IACLiE,KAAMA,KACNvB,OAAQA,OACRgC,SAAUA,WAEZpF,OAAOiD,eAAe4C,UAAWvF,SAEjC2C,eAAe4C,UAAUR,WAAaxC,KAEtClB,MAAMsB,+BA0GSA","file":"PNotifyHistory.js","sourceRoot":"../"}

2
app/node_modules/pnotify/dist/es/PNotifyMobile.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/es/PNotifyNonBlock.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import PNotify from"./PNotify.js";function data(){return Object.assign({_notice:null,_options:{}},PNotify.modules.NonBlock.defaults)}var methods={initModule(t){this.set(t),this.doNonBlockClass()},update(){this.doNonBlockClass()},doNonBlockClass(){this.get().nonblock?this.get()._notice.addModuleClass("nonblock"):this.get()._notice.removeModuleClass("nonblock")}};function setup(t){t.key="NonBlock",t.defaults={nonblock:!1},t.init=(o=>new 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;e<n.length;e+=1){var i=n[e];i.__calling||(i.__calling=!0,i.call(this,o),i.__calling=!1)}}function on(t,o){var n=this._handlers[t]||(this._handlers[t]=[]);return n.push(o),{cancel:function(){var t=n.indexOf(o);~t&&n.splice(t,1)}}}function set(t){this._set(assign({},t)),this.root._lock||(this.root._lock=!0,callAll(this.root._beforecreate),callAll(this.root._oncreate),callAll(this.root._aftercreate),this.root._lock=!1)}function _set(t){var o=this._state,n={},e=!1;for(var i in t)this._differs(t[i],o[i])&&(n[i]=e=!0);e&&(this._state=assign(assign({},o),t),this._recompute(n,this._state),this._bind&&this._bind(n,this._state),this._fragment&&(this.fire("state",{changed:n,current:this._state,previous:o}),this._fragment.p(n,this._state),this.fire("update",{changed:n,current:this._state,previous:o})))}function _mount(t,o){this._fragment[this._fragment.i?"i":"m"](t,o||null)}function _differs(t,o){return t!=t?o==o:t!==o||t&&"object"==typeof t||"function"==typeof t}function blankObject(){return Object.create(null)}function callAll(t){for(;t&&t.length;)t.shift()()}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);export default PNotifyNonBlock;
//# sourceMappingURL=PNotifyNonBlock.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["PNotifyNonBlock.js"],"names":["PNotify","data","Object","assign","_notice","_options","modules","NonBlock","defaults","methods","[object Object]","options","this","set","doNonBlockClass","get","nonblock","addModuleClass","removeModuleClass","setup","Component","key","init","notice","target","document","body","create_main_fragment","component","ctx","c","noop","m","p","d","PNotifyNonBlock","_state","_intro","_fragment","_mount","anchor","_handlers","blankObject","_bind","root","store","tar","src","k","destroy","detach","fire","eventName","handlers","slice","i","length","handler","__calling","call","on","push","cancel","index","indexOf","splice","newState","_set","_lock","callAll","_beforecreate","_oncreate","_aftercreate","oldState","changed","dirty","_differs","_recompute","current","previous","a","b","create","fns","shift","prototype"],"mappings":"OACOA,YAAa,eAEpB,SAASC,OACP,OAAOC,OAAOC,QACZC,QAAW,KACXC,aACCL,QAAQM,QAAQC,SAASC,UAG9B,IAAIC,SACFC,WAAYC,GACVC,KAAKC,IAAIF,GACTC,KAAKE,mBAGPJ,SACEE,KAAKE,mBAGPJ,kBACME,KAAKG,MAAMC,SACbJ,KAAKG,MAAMX,QAAQa,eAAe,YAElCL,KAAKG,MAAMX,QAAQc,kBAAkB,cAK3C,SAASC,MAAMC,GACbA,EAAUC,IAAM,WAEhBD,EAAUZ,UAERQ,UAAU,GAGZI,EAAUE,KAAO,CAACC,GACT,IAAIH,GAAWI,OAAQC,SAASC,KACrCzB,MACEG,QAAWmB,MAKjBvB,QAAQM,QAAQC,SAAWa,EAG7B,SAASO,qBAAqBC,EAAWC,GAExC,OACCC,EAAGC,KAEHC,EAAGD,KAEHE,EAAGF,KAEHG,EAAGH,MAIL,SAASI,gBAAgBxB,GACxBW,KAAKV,KAAMD,GACXC,KAAKwB,OAASjC,OAAOF,OAAQU,EAAQV,MACrCW,KAAKyB,QAAS,EAEdzB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D,UAAUR,WAAa9C,KAEvCZ,MAAMgB,gCA0GSA","file":"PNotifyNonBlock.js","sourceRoot":"../"}

2
app/node_modules/pnotify/dist/es/PNotifyReference.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"sources":["PNotifyStyleMaterial.js"],"names":["PNotify","setup","Component","key","modules","StyleMaterial","modulesPrependContainer","push","styling","material","Object","assign","container","notice","info","success","error","icons","closer","pinUp","pinDown","add_css","style","createElement","id","textContent","appendNode","document","head","create_main_fragment","component","ctx","c","noop","m","p","d","PNotifyStyleMaterial","options","init","this","_state","data","_intro","getElementById","_fragment","target","_mount","anchor","name","node","appendChild","_handlers","blankObject","_bind","root","store","tar","src","k","destroy","detach","fire","set","get","eventName","handlers","slice","i","length","handler","__calling","call","on","cancel","index","indexOf","splice","newState","_set","_lock","callAll","_beforecreate","_oncreate","_aftercreate","oldState","changed","dirty","_differs","_recompute","current","previous","a","b","create","fns","shift","prototype"],"mappings":"OACOA,YAAa,eAEpB,SAASC,MAAMC,GACbA,EAAUC,IAAM,gBAGhBH,QAAQI,QAAQC,cAAgBH,EAEhCF,QAAQM,wBAAwBC,KAAKL,GAEhCF,QAAQQ,QAAQC,WACnBT,QAAQQ,QAAQC,aAElBT,QAAQQ,QAAQC,SAAWC,OAAOC,OAAOX,QAAQQ,QAAQC,UACvDG,UAAW,mBACXC,OAAQ,0BACRC,KAAM,wBACNC,QAAS,2BACTC,MAAO,2BAGJhB,QAAQiB,MAAMR,WACjBT,QAAQiB,MAAMR,aAEhBT,QAAQiB,MAAMR,SAAWC,OAAOC,OAAOX,QAAQiB,MAAMR,UACnDI,OAAQ,8CACRC,KAAM,4CACNC,QAAS,+CACTC,MAAO,6CACPE,OAAQ,8CACRC,MAAO,+CACPC,QAAS,6EAIb,SAASC,UACR,IAAIC,EAAQC,cAAc,SAC1BD,EAAME,GAAK,uBACXF,EAAMG,YAAc,0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mBAANA,EAG7E,SAASvC,cACR,OAAO3C,OAAOoF,OAAO,MAGtB,SAASb,QAAQc,GAChB,KAAOA,GAAOA,EAAI1B,QAAQ0B,EAAIC,OAAJD,GA7H3BpF,OAAO0B,qBAAqB4D,WAC1BrC,QAASA,QACTI,IAAKA,IACLF,KAAMA,KACNW,GAAIA,GACJV,IAAKA,IACLgB,KAAMA,KACNhC,OAAQA,OACRyC,SAAUA,WAGZnD,qBAAqB4D,UAAUR,WAAaxD,KAE5ChC,MAAMoC,qCAkHSA","file":"PNotifyStyleMaterial.js","sourceRoot":"../"}

2
app/node_modules/pnotify/dist/iife/PNotify.js generated vendored Normal file

File diff suppressed because one or more lines are too long

1
app/node_modules/pnotify/dist/iife/PNotify.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/iife/PNotifyAnimate.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/iife/PNotifyButtons.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},PNotifyCallbacks=function(a){"use strict";var r=(a=a&&a.__esModule?a.default:a).prototype.open,o=a.prototype.close,f=function(t,e,n){var r=t?t.get().modules:e.modules,o=r&&r.Callbacks?r.Callbacks:{};return o[n]?o[n]:function(){return!0}};function t(t){var e,n;n=t,(e=this)._handlers=Object.create(null),e._bind=n._bind,e.options=n,e.root=n.root||e,e.store=e.root.store||n.store,this._state=s({},t.data),this._intro=!0,this._fragment=(this._state,{c:i,m:i,p:i,d:i}),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor))}function i(){}function s(t,e){for(var n in e)t[n]=e[n];return t}function e(t){for(;t&&t.length;)t.shift()()}return a.prototype.open=function(){if(!1!==f(this,null,"beforeOpen")(this)){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];r.apply(this,e),f(this,null,"afterOpen")(this)}},a.prototype.close=function(t){if(!1!==f(this,null,"beforeClose")(this,t)){for(var e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];o.apply(this,[t].concat(n)),f(this,null,"afterClose")(this,t)}},s(t.prototype,{destroy:function(t){this.destroy=i,this.fire("destroy"),this.set=i,this._fragment.d(!1!==t),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(t,e){var n=t in this._handlers&&this._handlers[t].slice();if(!n)return;for(var r=0;r<n.length;r+=1){var o=n[r];o.__calling||(o.__calling=!0,o.call(this,e),o.__calling=!1)}},on:function(t,e){var n=this._handlers[t]||(this._handlers[t]=[]);return n.push(e),{cancel:function(){var t=n.indexOf(e);~t&&n.splice(t,1)}}},set:function(t){if(this._set(s({},t)),this.root._lock)return;this.root._lock=!0,e(this.root._beforecreate),e(this.root._oncreate),e(this.root._aftercreate),this.root._lock=!1},_set:function(t){var e=this._state,n={},r=!1;for(var o in t)this._differs(t[o],e[o])&&(n[o]=r=!0);if(!r)return;this._state=s(s({},e),t),this._recompute(n,this._state),this._bind&&this._bind(n,this._state);this._fragment&&(this.fire("state",{changed:n,current:this._state,previous:e}),this._fragment.p(n,this._state),this.fire("update",{changed:n,current:this._state,previous:e}))},_mount:function(t,e){this._fragment[this._fragment.i?"i":"m"](t,e||null)},_differs:function(t,e){return t!=t?e==e:t!==e||t&&"object"===(void 0===t?"undefined":_typeof(t))||"function"==typeof t}}),t.prototype._recompute=i,function(t){t.key="Callbacks",t.getCallbacks=f;var e=a.alert,n=a.notice,r=a.info,o=a.success,i=a.error,s=function(t,e){f(null,e,"beforeInit")(e);var n=t(e);return f(n,null,"afterInit")(n),n};a.alert=function(t){return s(e,t)},a.notice=function(t){return s(n,t)},a.info=function(t){return s(r,t)},a.success=function(t){return s(o,t)},a.error=function(t){return s(i,t)},a.modules.Callbacks=t}(t),t}(PNotify);
//# sourceMappingURL=PNotifyCallbacks.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["PNotifyCallbacks.js"],"names":["_typeof","Symbol","iterator","obj","constructor","prototype","PNotifyCallbacks","PNotify","_open","__esModule","open","_close","close","callbacks","notice","options","name","modules","get","cbs","Callbacks","component","this","_handlers","Object","create","_bind","root","store","_state","assign","data","_intro","_fragment","c","noop","m","p","d","target","_mount","anchor","tar","src","k","callAll","fns","length","shift","_len","arguments","args","Array","_key","apply","timerHide","_len2","_key2","concat","destroy","detach","fire","set","eventName","handlers","slice","i","handler","__calling","call","on","push","cancel","index","indexOf","splice","newState","_set","_lock","_beforecreate","_oncreate","_aftercreate","oldState","changed","dirty","key","_differs","_recompute","current","previous","a","b","Component","getCallbacks","_alert","alert","_notice","_info","info","_success","success","_error","error","init","original","setup"],"mappings":"AAAA,IAAIA,QAA4B,mBAAXC,QAAoD,iBAApBA,OAAOC,SAAwB,SAAUC,GAAO,cAAcA,GAAS,SAAUA,GAAO,OAAOA,GAAyB,mBAAXF,QAAyBE,EAAIC,cAAgBH,QAAUE,IAAQF,OAAOI,UAAY,gBAAkBF,GAGlQG,iBAAmB,SAAUC,GAChC,aAIA,IAAIC,GAFJD,EAAUA,GAAWA,EAAQE,WAAaF,EAAiB,QAAIA,GAE3CF,UAAUK,KAC1BC,EAASJ,EAAQF,UAAUO,MAE3BC,EAAY,SAAmBC,EAAQC,EAASC,GACnD,IAAIC,EAAUH,EAASA,EAAOI,MAAMD,QAAUF,EAAQE,QAClDE,EAAMF,GAAWA,EAAQG,UAAYH,EAAQG,UAAY,GAC7D,OAAOD,EAAIH,GAAQG,EAAIH,GAAQ,WAC9B,OAAO,IA+ET,SAASV,EAAiBS,GA8B1B,IAAcM,EAAWN,EAAAA,EA7BbA,GA6BEM,EA7BRC,MA8BKC,UA+FHC,OAAOC,OAAO,MA9FrBJ,EAAUK,MAAQX,EAAQW,MAE1BL,EAAUN,QAAU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F,EAAQtF,IAIrBR,EAAQU,QAAQG,UAAYwE,EA0C7Ba,CAAMnG,GA4GCA,EAjOe,CAkOrBC","file":"PNotifyCallbacks.js","sourceRoot":"../"}

2
app/node_modules/pnotify/dist/iife/PNotifyCompat.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/iife/PNotifyConfirm.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/iife/PNotifyDesktop.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/iife/PNotifyHistory.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},PNotifyHistory=function(c){"use strict";c=c&&c.__esModule?c.default:c;var e,t={initModule:function(t){if(this.set(t),this.get().history){var e=this.get()._notice;e.get().destroy&&e.set({destroy:!1})}},beforeOpen:function(){var t=this.get(),e=t.maxInStack,o=t._options;if(e!==1/0){var i=o.stack;if(!1!==i&&c.notices&&c.notices.length>e){for(var n="top"===i.push,s=[],r=0,a=n?0:c.notices.length-1;n?a<c.notices.length:0<=a;n?a++:a--)-1!==["opening","open"].indexOf(c.notices[a].get()._state)&&c.notices[a].get().stack===i&&(e<=r?s.push(c.notices[a]):r++);for(var f=0;f<s.length;f++)s[f].close(!1)}}}};function o(t){var e,o;o=t,(e=this)._handlers=Object.create(null),e._bind=o._bind,e.options=o,e.root=o.root||e,e.store=e.root.store||o.store,this._state=s(_extends({_notice:null,_options:{}},c.modules.History.defaults),t.data),this._intro=!0,this._fragment=(this._state,{c:i,m:i,p:i,d:i}),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor))}function i(){}function s(t,e){for(var o in e)t[o]=e[o];return t}function n(t){for(;t&&t.length;)t.shift()()}return s(o.prototype,{destroy:function(t){this.destroy=i,this.fire("destroy"),this.set=i,this._fragment.d(!1!==t),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(t,e){var o=t in this._handlers&&this._handlers[t].slice();if(!o)return;for(var i=0;i<o.length;i+=1){var n=o[i];n.__calling||(n.__calling=!0,n.call(this,e),n.__calling=!1)}},on:function(t,e){var o=this._handlers[t]||(this._handlers[t]=[]);return o.push(e),{cancel:function(){var t=o.indexOf(e);~t&&o.splice(t,1)}}},set:function(t){if(this._set(s({},t)),this.root._lock)return;this.root._lock=!0,n(this.root._beforecreate),n(this.root._oncreate),n(this.root._aftercreate),this.root._lock=!1},_set:function(t){var e=this._state,o={},i=!1;for(var n in t)this._differs(t[n],e[n])&&(o[n]=i=!0);if(!i)return;this._state=s(s({},e),t),this._recompute(o,this._state),this._bind&&this._bind(o,this._state);this._fragment&&(this.fire("state",{changed:o,current:this._state,previous:e}),this._fragment.p(o,this._state),this.fire("update",{changed:o,current:this._state,previous:e}))},_mount:function(t,e){this._fragment[this._fragment.i?"i":"m"](t,e||null)},_differs:function(t,e){return t!=t?e==e:t!==e||t&&"object"===(void 0===t?"undefined":_typeof(t))||"function"==typeof t}}),s(o.prototype,t),o.prototype._recompute=i,(e=o).key="History",e.defaults={history:!0,maxInStack:1/0},e.init=function(t){return new e({target:document.body})},e.showLast=function(t){if(void 0===t&&(t=c.defaultStack),!1!==t){var e="top"===t.push,o=e?0:c.notices.length-1,i=void 0;do{if(!(i=c.notices[o]))return;o+=e?1:-1}while(i.get().stack!==t||!i.get()._modules.History.get().history||"opening"===i.get()._state||"open"===i.get()._state);i.open()}},e.showAll=function(t){if(void 0===t&&(t=c.defaultStack),!1!==t)for(var e=0;e<c.notices.length;e++){var o=c.notices[e];!0!==t&&o.get().stack!==t||!o.get()._modules.History.get().history||o.open()}},c.modules.History=e,o}(PNotify);
//# sourceMappingURL=PNotifyHistory.js.map

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/iife/PNotifyMobile.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_extends=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var e=arguments[o];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},PNotifyNonBlock=function(n){"use strict";n=n&&n.__esModule?n.default:n;var o;function t(t){var o,e;e=t,(o=this)._handlers=Object.create(null),o._bind=e._bind,o.options=e,o.root=e.root||o,o.store=o.root.store||e.store,this._state=s(_extends({_notice:null,_options:{}},n.modules.NonBlock.defaults),t.data),this._intro=!0,this._fragment=(this._state,{c:i,m:i,p:i,d:i}),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor))}function i(){}function s(t,o){for(var e in o)t[e]=o[e];return t}function e(t){for(;t&&t.length;)t.shift()()}return s(t.prototype,{destroy:function(t){this.destroy=i,this.fire("destroy"),this.set=i,this._fragment.d(!1!==t),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(t,o){var e=t in this._handlers&&this._handlers[t].slice();if(!e)return;for(var n=0;n<e.length;n+=1){var i=e[n];i.__calling||(i.__calling=!0,i.call(this,o),i.__calling=!1)}},on:function(t,o){var e=this._handlers[t]||(this._handlers[t]=[]);return e.push(o),{cancel:function(){var t=e.indexOf(o);~t&&e.splice(t,1)}}},set:function(t){if(this._set(s({},t)),this.root._lock)return;this.root._lock=!0,e(this.root._beforecreate),e(this.root._oncreate),e(this.root._aftercreate),this.root._lock=!1},_set:function(t){var o=this._state,e={},n=!1;for(var i in t)this._differs(t[i],o[i])&&(e[i]=n=!0);if(!n)return;this._state=s(s({},o),t),this._recompute(e,this._state),this._bind&&this._bind(e,this._state);this._fragment&&(this.fire("state",{changed:e,current:this._state,previous:o}),this._fragment.p(e,this._state),this.fire("update",{changed:e,current:this._state,previous:o}))},_mount:function(t,o){this._fragment[this._fragment.i?"i":"m"](t,o||null)},_differs:function(t,o){return t!=t?o==o:t!==o||t&&"object"===(void 0===t?"undefined":_typeof(t))||"function"==typeof t}}),s(t.prototype,{initModule:function(t){this.set(t),this.doNonBlockClass()},update:function(){this.doNonBlockClass()},doNonBlockClass:function(){this.get().nonblock?this.get()._notice.addModuleClass("nonblock"):this.get()._notice.removeModuleClass("nonblock")}}),t.prototype._recompute=i,(o=t).key="NonBlock",o.defaults={nonblock:!1},o.init=function(t){return new o({target:document.body,data:{_notice:t}})},n.modules.NonBlock=o,t}(PNotify);
//# sourceMappingURL=PNotifyNonBlock.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["PNotifyNonBlock.js"],"names":["_typeof","Symbol","iterator","obj","constructor","prototype","_extends","Object","assign","target","i","arguments","length","source","key","hasOwnProperty","call","PNotifyNonBlock","PNotify","__esModule","Component","options","component","this","_handlers","create","_bind","root","store","_state","_notice","_options","modules","NonBlock","defaults","data","_intro","_fragment","c","noop","m","p","d","_mount","anchor","tar","src","k","callAll","fns","shift","destroy","detach","fire","set","get","eventName","handlers","slice","handler","__calling","on","push","cancel","index","indexOf","splice","newState","_set","_lock","_beforecreate","_oncreate","_aftercreate","oldState","changed","dirty","_differs","_recompute","current","previous","a","b","initModule","doNonBlockClass","update","nonblock","addModuleClass","removeModuleClass","init","notice","document","body"],"mappings":"AAAA,IAAIA,QAA4B,mBAAXC,QAAoD,iBAApBA,OAAOC,SAAwB,SAAUC,GAAO,cAAcA,GAAS,SAAUA,GAAO,OAAOA,GAAyB,mBAAXF,QAAyBE,EAAIC,cAAgBH,QAAUE,IAAQF,OAAOI,UAAY,gBAAkBF,GAElQG,SAAWC,OAAOC,QAAU,SAAUC,GAAU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,QAASvD,KAAKM,OAAQkD,SAAUN,IACvElD,KAAKc,UAAUI,EAAEiC,EAASnD,KAAKM,QAC/BN,KAAK8B,KAAK,SAAU,CAAEqB,QAASA,EAASI,QAASvD,KAAKM,OAAQkD,SAAUN,MA9FzE9B,OAkGD,SAAgBlC,EAAQmC,GACvBrB,KAAKc,UAAUd,KAAKc,UAAU3B,EAAI,IAAM,KAAKD,EAAQmC,GAAU,OAlG/DgC,SAqGD,SAAkBI,EAAGC,GACpB,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAKD,GAA+D,iBAA5C,IAANA,EAAoB,YAAchF,QAAQgF,KAAiC,mBAANA,KApGvHxE,EAAOS,EAAgBZ,UAxET,CACb6E,WAAY,SAAoB7D,GAC/BE,KAAK+B,IAAIjC,GACTE,KAAK4D,mBAENC,OAAQ,WACP7D,KAAK4D,mBAENA,gBAAiB,WACZ5D,KAAKgC,MAAM8B,SACd9D,KAAKgC,MAAMzB,QAAQwD,eAAe,YAElC/D,KAAKgC,MAAMzB,QAAQyD,kBAAkB,eA8DxCtE,EAAgBZ,UAAUwE,WAAatC,GAzDxBnB,EA2DTH,GA1DKH,IAAM,WAEhBM,EAAUc,SAAW,CAEpBmD,UAAU,GAGXjE,EAAUoE,KAAO,SAAUC,GAC1B,OAAO,IAAIrE,EAAU,CAAEX,OAAQiF,SAASC,KACvCxD,KAAM,CACLL,QAAW2D,MAKdvE,EAAQc,QAAQC,SAAWb,EAuJrBH,EApMc,CAqMpBC","file":"PNotifyNonBlock.js","sourceRoot":"../"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"sources":["PNotifyStyleMaterial.js"],"names":["_typeof","Symbol","iterator","obj","constructor","prototype","_extends","Object","assign","target","i","arguments","length","source","key","hasOwnProperty","call","PNotifyStyleMaterial","PNotify","add_css","name","node","style","document","createElement","id","textContent","head","appendChild","options","component","this","_handlers","create","_bind","root","store","_state","data","_intro","getElementById","_fragment","c","noop","m","p","d","_mount","anchor","Component","tar","src","k","callAll","fns","shift","__esModule","destroy","detach","fire","set","get","eventName","handlers","slice","handler","__calling","on","push","cancel","index","indexOf","splice","newState","_set","_lock","_beforecreate","_oncreate","_aftercreate","oldState","changed","dirty","_differs","_recompute","current","previous","a","b","modules","StyleMaterial","modulesPrependContainer","styling","material","container","notice","info","success","error","icons","closer","pinUp","pinDown"],"mappings":"AAAA,IAAIA,QAA4B,mBAAXC,QAAoD,iBAApBA,OAAOC,SAAwB,SAAUC,GAAO,cAAcA,GAAS,SAAUA,GAAO,OAAOA,GAAyB,mBAAXF,QAAyBE,EAAIC,cAAgBH,QAAUE,IAAQF,OAAOI,UAAY,gBAAkBF,GAElQG,SAAWC,OAAOC,QAAU,SAAUC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAASF,UAAUD,GAAI,IAAK,IAAII,KAAOD,EAAcN,OAAOF,UAAUU,eAAeC,KAAKH,EAAQC,KAAQL,EAAOK,GAAOD,EAAOC,IAAY,OAAOL,GAGnPQ,qBAAuB,SAAUC,GACpC,aAqCA,SAASC,IACR,IAiDsBC,EAIHC,EArDfC,GAiDkBF,EAjDI,QAkDnBG,SAASC,cAAcJ,IAjD9BE,EAAMG,GAAK,uBACXH,EAAMI,YAAc,0zJAmDDL,EAlDRC,EAAOC,SAASI,KAmDpBC,YAAYP,GAnCpB,SAASJ,EAAqBY,GAwC9B,IAAcC,EAAWD,EAAAA,EAvCbA,GAuCEC,EAvCRC,MAwCKC,UA+FHzB,OAAO0B,OAAO,MA9FrBH,EAAUI,MAAQL,EAAQK,MAE1BJ,EAAUD,QAAUA,EACpBC,EAAUK,KAAON,EAAQM,MAAQL,EACjCA,EAAUM,MAAQN,EAAUK,KAAKC,OAASP,EAAQO,MA5ClDL,KAAKM,OAAS7B,EAAO,GAAIqB,EAAQS,MACjCP,KAAKQ,QAAS,EAEThB,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AQC,WACpB1E,EAAQyE,QAAQC,SAAW,IAE5B1E,EAAQyE,QAAQC,SAAWtF,SAASY,EAAQyE,QAAQC,SAAU,CAC7DC,UAAW,mBACXC,OAAQ,0BACRC,KAAM,wBACNC,QAAS,2BACTC,MAAO,2BAGH/E,EAAQgF,MAAMN,WAClB1E,EAAQgF,MAAMN,SAAW,IAE1B1E,EAAQgF,MAAMN,SAAWtF,SAASY,EAAQgF,MAAMN,SAAU,CACzDE,OAAQ,8CACRC,KAAM,4CACNC,QAAS,+CACTC,MAAO,6CACPE,OAAQ,8CACRC,MAAO,+CACPC,QAAS,6EAwKJpF,EA1MmB,CA2MzBC","file":"PNotifyStyleMaterial.js","sourceRoot":"../"}

2
app/node_modules/pnotify/dist/umd/PNotify.js generated vendored Normal file

File diff suppressed because one or more lines are too long

1
app/node_modules/pnotify/dist/umd/PNotify.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/umd/PNotifyAnimate.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/umd/PNotifyButtons.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e(require("./PNotify")):"function"==typeof define&&define.amd?define("PNotifyCallbacks",["./PNotify"],e):t.PNotifyCallbacks=e(PNotify)}(this,function(f){"use strict";var o=(f=f&&f.__esModule?f.default:f).prototype.open,r=f.prototype.close,a=function(t,e,n){var o=t?t.get().modules:e.modules,r=o&&o.Callbacks?o.Callbacks:{};return r[n]?r[n]:function(){return!0}};function t(t){var e,n;n=t,(e=this)._handlers=Object.create(null),e._bind=n._bind,e.options=n,e.root=n.root||e,e.store=e.root.store||n.store,this._state=s({},t.data),this._intro=!0,this._fragment=(this._state,{c:i,m:i,p:i,d:i}),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor))}function i(){}function s(t,e){for(var n in e)t[n]=e[n];return t}function e(t){for(;t&&t.length;)t.shift()()}return f.prototype.open=function(){if(!1!==a(this,null,"beforeOpen")(this)){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];o.apply(this,e),a(this,null,"afterOpen")(this)}},f.prototype.close=function(t){if(!1!==a(this,null,"beforeClose")(this,t)){for(var e=arguments.length,n=Array(1<e?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];r.apply(this,[t].concat(n)),a(this,null,"afterClose")(this,t)}},s(t.prototype,{destroy:function(t){this.destroy=i,this.fire("destroy"),this.set=i,this._fragment.d(!1!==t),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(t,e){var n=t in this._handlers&&this._handlers[t].slice();if(!n)return;for(var o=0;o<n.length;o+=1){var r=n[o];r.__calling||(r.__calling=!0,r.call(this,e),r.__calling=!1)}},on:function(t,e){var n=this._handlers[t]||(this._handlers[t]=[]);return n.push(e),{cancel:function(){var t=n.indexOf(e);~t&&n.splice(t,1)}}},set:function(t){if(this._set(s({},t)),this.root._lock)return;this.root._lock=!0,e(this.root._beforecreate),e(this.root._oncreate),e(this.root._aftercreate),this.root._lock=!1},_set:function(t){var e=this._state,n={},o=!1;for(var r in t)this._differs(t[r],e[r])&&(n[r]=o=!0);if(!o)return;this._state=s(s({},e),t),this._recompute(n,this._state),this._bind&&this._bind(n,this._state);this._fragment&&(this.fire("state",{changed:n,current:this._state,previous:e}),this._fragment.p(n,this._state),this.fire("update",{changed:n,current:this._state,previous:e}))},_mount:function(t,e){this._fragment[this._fragment.i?"i":"m"](t,e||null)},_differs:function(t,e){return t!=t?e==e:t!==e||t&&"object"===(void 0===t?"undefined":_typeof(t))||"function"==typeof t}}),t.prototype._recompute=i,function(t){t.key="Callbacks",t.getCallbacks=a;var e=f.alert,n=f.notice,o=f.info,r=f.success,i=f.error,s=function(t,e){a(null,e,"beforeInit")(e);var n=t(e);return a(n,null,"afterInit")(n),n};f.alert=function(t){return s(e,t)},f.notice=function(t){return s(n,t)},f.info=function(t){return s(o,t)},f.success=function(t){return s(r,t)},f.error=function(t){return s(i,t)},f.modules.Callbacks=t}(t),t});
//# sourceMappingURL=PNotifyCallbacks.js.map

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/umd/PNotifyCompat.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/umd/PNotifyConfirm.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/umd/PNotifyDesktop.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/umd/PNotifyHistory.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e(require("./PNotify")):"function"==typeof define&&define.amd?define("PNotifyHistory",["./PNotify"],e):t.PNotifyHistory=e(PNotify)}(this,function(c){"use strict";c=c&&c.__esModule?c.default:c;var e,t={initModule:function(t){if(this.set(t),this.get().history){var e=this.get()._notice;e.get().destroy&&e.set({destroy:!1})}},beforeOpen:function(){var t=this.get(),e=t.maxInStack,o=t._options;if(e!==1/0){var i=o.stack;if(!1!==i&&c.notices&&c.notices.length>e){for(var n="top"===i.push,s=[],r=0,f=n?0:c.notices.length-1;n?f<c.notices.length:0<=f;n?f++:f--)-1!==["opening","open"].indexOf(c.notices[f].get()._state)&&c.notices[f].get().stack===i&&(e<=r?s.push(c.notices[f]):r++);for(var a=0;a<s.length;a++)s[a].close(!1)}}}};function o(t){var e,o;o=t,(e=this)._handlers=Object.create(null),e._bind=o._bind,e.options=o,e.root=o.root||e,e.store=e.root.store||o.store,this._state=s(_extends({_notice:null,_options:{}},c.modules.History.defaults),t.data),this._intro=!0,this._fragment=(this._state,{c:i,m:i,p:i,d:i}),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor))}function i(){}function s(t,e){for(var o in e)t[o]=e[o];return t}function n(t){for(;t&&t.length;)t.shift()()}return s(o.prototype,{destroy:function(t){this.destroy=i,this.fire("destroy"),this.set=i,this._fragment.d(!1!==t),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(t,e){var o=t in this._handlers&&this._handlers[t].slice();if(!o)return;for(var i=0;i<o.length;i+=1){var n=o[i];n.__calling||(n.__calling=!0,n.call(this,e),n.__calling=!1)}},on:function(t,e){var o=this._handlers[t]||(this._handlers[t]=[]);return o.push(e),{cancel:function(){var t=o.indexOf(e);~t&&o.splice(t,1)}}},set:function(t){if(this._set(s({},t)),this.root._lock)return;this.root._lock=!0,n(this.root._beforecreate),n(this.root._oncreate),n(this.root._aftercreate),this.root._lock=!1},_set:function(t){var e=this._state,o={},i=!1;for(var n in t)this._differs(t[n],e[n])&&(o[n]=i=!0);if(!i)return;this._state=s(s({},e),t),this._recompute(o,this._state),this._bind&&this._bind(o,this._state);this._fragment&&(this.fire("state",{changed:o,current:this._state,previous:e}),this._fragment.p(o,this._state),this.fire("update",{changed:o,current:this._state,previous:e}))},_mount:function(t,e){this._fragment[this._fragment.i?"i":"m"](t,e||null)},_differs:function(t,e){return t!=t?e==e:t!==e||t&&"object"===(void 0===t?"undefined":_typeof(t))||"function"==typeof t}}),s(o.prototype,t),o.prototype._recompute=i,(e=o).key="History",e.defaults={history:!0,maxInStack:1/0},e.init=function(t){return new e({target:document.body})},e.showLast=function(t){if(void 0===t&&(t=c.defaultStack),!1!==t){var e="top"===t.push,o=e?0:c.notices.length-1,i=void 0;do{if(!(i=c.notices[o]))return;o+=e?1:-1}while(i.get().stack!==t||!i.get()._modules.History.get().history||"opening"===i.get()._state||"open"===i.get()._state);i.open()}},e.showAll=function(t){if(void 0===t&&(t=c.defaultStack),!1!==t)for(var e=0;e<c.notices.length;e++){var o=c.notices[e];!0!==t&&o.get().stack!==t||!o.get()._modules.History.get().history||o.open()}},c.modules.History=e,o});
//# sourceMappingURL=PNotifyHistory.js.map

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/umd/PNotifyMobile.js generated vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
app/node_modules/pnotify/dist/umd/PNotifyNonBlock.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e(require("./PNotify")):"function"==typeof define&&define.amd?define("PNotifyNonBlock",["./PNotify"],e):t.PNotifyNonBlock=e(PNotify)}(this,function(n){"use strict";n=n&&n.__esModule?n.default:n;var e;function t(t){var e,o;o=t,(e=this)._handlers=Object.create(null),e._bind=o._bind,e.options=o,e.root=o.root||e,e.store=e.root.store||o.store,this._state=s(_extends({_notice:null,_options:{}},n.modules.NonBlock.defaults),t.data),this._intro=!0,this._fragment=(this._state,{c:i,m:i,p:i,d:i}),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor))}function i(){}function s(t,e){for(var o in e)t[o]=e[o];return t}function o(t){for(;t&&t.length;)t.shift()()}return s(t.prototype,{destroy:function(t){this.destroy=i,this.fire("destroy"),this.set=i,this._fragment.d(!1!==t),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(t,e){var o=t in this._handlers&&this._handlers[t].slice();if(!o)return;for(var n=0;n<o.length;n+=1){var i=o[n];i.__calling||(i.__calling=!0,i.call(this,e),i.__calling=!1)}},on:function(t,e){var o=this._handlers[t]||(this._handlers[t]=[]);return o.push(e),{cancel:function(){var t=o.indexOf(e);~t&&o.splice(t,1)}}},set:function(t){if(this._set(s({},t)),this.root._lock)return;this.root._lock=!0,o(this.root._beforecreate),o(this.root._oncreate),o(this.root._aftercreate),this.root._lock=!1},_set:function(t){var e=this._state,o={},n=!1;for(var i in t)this._differs(t[i],e[i])&&(o[i]=n=!0);if(!n)return;this._state=s(s({},e),t),this._recompute(o,this._state),this._bind&&this._bind(o,this._state);this._fragment&&(this.fire("state",{changed:o,current:this._state,previous:e}),this._fragment.p(o,this._state),this.fire("update",{changed:o,current:this._state,previous:e}))},_mount:function(t,e){this._fragment[this._fragment.i?"i":"m"](t,e||null)},_differs:function(t,e){return t!=t?e==e:t!==e||t&&"object"===(void 0===t?"undefined":_typeof(t))||"function"==typeof t}}),s(t.prototype,{initModule:function(t){this.set(t),this.doNonBlockClass()},update:function(){this.doNonBlockClass()},doNonBlockClass:function(){this.get().nonblock?this.get()._notice.addModuleClass("nonblock"):this.get()._notice.removeModuleClass("nonblock")}}),t.prototype._recompute=i,(e=t).key="NonBlock",e.defaults={nonblock:!1},e.init=function(t){return new e({target:document.body,data:{_notice:t}})},n.modules.NonBlock=e,t});
//# sourceMappingURL=PNotifyNonBlock.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["PNotifyNonBlock.js"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","_typeof","Symbol","iterator","obj","constructor","global","factory","exports","module","require","define","amd","PNotifyNonBlock","PNotify","this","__esModule","Component","options","component","_handlers","create","_bind","root","store","_state","_notice","_options","modules","NonBlock","defaults","data","_intro","_fragment","c","noop","m","p","d","_mount","anchor","tar","src","k","callAll","fns","shift","destroy","detach","fire","set","get","eventName","handlers","slice","handler","__calling","on","push","cancel","index","indexOf","splice","newState","_set","_lock","_beforecreate","_oncreate","_aftercreate","oldState","changed","dirty","_differs","_recompute","current","previous","a","b","initModule","doNonBlockClass","update","nonblock","addModuleClass","removeModuleClass","init","notice","document","body"],"mappings":"AAAA,IAAIA,SAAWC,OAAOC,QAAU,SAAUC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAASF,UAAUD,GAAI,IAAK,IAAII,KAAOD,EAAcN,OAAOQ,UAAUC,eAAeC,KAAKJ,EAAQC,KAAQL,EAAOK,GAAOD,EAAOC,IAAY,OAAOL,GAEnPS,QAA4B,mBAAXC,QAAoD,iBAApBA,OAAOC,SAAwB,SAAUC,GAAO,cAAcA,GAAS,SAAUA,GAAO,OAAOA,GAAyB,mBAAXF,QAAyBE,EAAIC,cAAgBH,QAAUE,IAAQF,OAAOJ,UAAY,gBAAkBM,IAGtQ,SAAWE,EAAQC,GACoD,YAAlD,oBAAZC,QAA0B,YAAcP,QAAQO,WAA4C,oBAAXC,OAAyBA,OAAOD,QAAUD,EAAQG,QAAQ,cAAkC,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,kBAAmB,CAAC,aAAcJ,GAAWD,EAAOO,gBAAkBN,EAAQO,SADtS,CAEGC,KAAM,SAAUD,GAClB,aAEAA,EAAUA,GAAWA,EAAQE,WAAaF,EAAiB,QAAIA,EAS/D,IAiBeG,EAgCf,SAASJ,EAAgBK,GA+BzB,IAAcC,EAAWD,EAAAA,EA9BbA,GA8BEC,EA9BRJ,MA+BKK,UA+FH9B,OAAO+B,OAAO,MA9FrBF,EAAUG,MAAQJ,EAAQI,MAE1BH,EAAUD,QAAUA,EACpBC,EAAUI,KAAOL,EAAQK,MAAQJ,E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AY,SAAoB5D,GAC/BH,KAAKmC,IAAIhC,GACTH,KAAKgE,mBAENC,OAAQ,WACPjE,KAAKgE,mBAENA,gBAAiB,WACZhE,KAAKoC,MAAM8B,SACdlE,KAAKoC,MAAMzB,QAAQwD,eAAe,YAElCnE,KAAKoC,MAAMzB,QAAQyD,kBAAkB,eA8DxCtE,EAAgBf,UAAU2E,WAAatC,GAzDxBlB,EA2DTJ,GA1DKhB,IAAM,WAEhBoB,EAAUa,SAAW,CAEpBmD,UAAU,GAGXhE,EAAUmE,KAAO,SAAUC,GAC1B,OAAO,IAAIpE,EAAU,CAAEzB,OAAQ8F,SAASC,KACvCxD,KAAM,CACLL,QAAW2D,MAKdvE,EAAQc,QAAQC,SAAWZ,EAwJrBJ","file":"PNotifyNonBlock.js","sourceRoot":"../"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"sources":["PNotifyStyleMaterial.js"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","_typeof","Symbol","iterator","obj","constructor","global","factory","exports","module","require","define","amd","PNotifyStyleMaterial","PNotify","this","add_css","name","node","style","document","createElement","id","textContent","head","appendChild","options","component","_handlers","create","_bind","root","store","_state","data","_intro","getElementById","_fragment","c","noop","m","p","d","_mount","anchor","Component","tar","src","k","callAll","fns","shift","__esModule","destroy","detach","fire","set","get","eventName","handlers","slice","handler","__calling","on","push","cancel","index","indexOf","splice","newState","_set","_lock","_beforecreate","_oncreate","_aftercreate","oldState","changed","dirty","_differs","_recompute","current","previous","a","b","modules","StyleMaterial","modulesPrependContainer","styling","material","container","notice","info","success","error","icons","closer","pinUp","pinDown"],"mappings":"AAAA,IAAIA,SAAWC,OAAOC,QAAU,SAAUC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAASF,UAAUD,GAAI,IAAK,IAAII,KAAOD,EAAcN,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O,2BAGH/E,EAAQgF,MAAMN,WAClB1E,EAAQgF,MAAMN,SAAW,IAE1B1E,EAAQgF,MAAMN,SAAWnG,SAASyB,EAAQgF,MAAMN,SAAU,CACzDE,OAAQ,8CACRC,KAAM,4CACNC,QAAS,+CACTC,MAAO,6CACPE,OAAQ,8CACRC,MAAO,+CACPC,QAAS,6EAyKJpF","file":"PNotifyStyleMaterial.js","sourceRoot":"../"}

1911
app/node_modules/pnotify/lib/es/PNotify.js generated vendored Normal file

File diff suppressed because it is too large Load Diff

1
app/node_modules/pnotify/lib/es/PNotify.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

295
app/node_modules/pnotify/lib/es/PNotifyAnimate.js generated vendored Normal file
View File

@@ -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;

File diff suppressed because one or more lines are too long

508
app/node_modules/pnotify/lib/es/PNotifyButtons.js generated vendored Normal file
View File

@@ -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;

File diff suppressed because one or more lines are too long

212
app/node_modules/pnotify/lib/es/PNotifyCallbacks.js generated vendored Normal file
View File

@@ -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;

View File

@@ -0,0 +1 @@
{"version":3,"file":"PNotifyCallbacks.js","sources":["src/PNotifyCallbacks.html"],"sourcesContent":["<script>\n import PNotify from './PNotify.html';\n\n let _open = PNotify.prototype.open;\n let _close = PNotify.prototype.close;\n\n const callbacks = (notice, options, name) => {\n let modules = notice ? notice.get().modules : options.modules;\n let cbs = (modules && modules.Callbacks) ? modules.Callbacks : {};\n return cbs[name] ? cbs[name] : () => true;\n };\n\n PNotify.prototype.open = function (...args) {\n let ret = callbacks(this, null, 'beforeOpen')(this);\n if (ret !== false) {\n _open.apply(this, args);\n callbacks(this, null, 'afterOpen')(this);\n }\n };\n\n PNotify.prototype.close = function (timerHide, ...args) {\n let ret = callbacks(this, null, 'beforeClose')(this, timerHide);\n if (ret !== false) {\n _close.apply(this, [timerHide, ...args]);\n callbacks(this, null, 'afterClose')(this, timerHide);\n }\n };\n\n export default {\n setup (Component) {\n Component.key = 'Callbacks';\n\n Component.getCallbacks = callbacks;\n\n let _alert = PNotify.alert;\n let _notice = PNotify.notice;\n let _info = PNotify.info;\n let _success = PNotify.success;\n let _error = PNotify.error;\n\n let init = (original, options) => {\n callbacks(null, options, 'beforeInit')(options);\n let notice = original(options);\n callbacks(notice, null, 'afterInit')(notice);\n return notice;\n };\n\n PNotify.alert = (options) => {\n return init(_alert, options);\n };\n PNotify.notice = (options) => {\n return init(_notice, options);\n };\n PNotify.info = (options) => {\n return init(_info, options);\n };\n PNotify.success = (options) => {\n return init(_success, options);\n };\n PNotify.error = (options) => {\n return init(_error, options);\n };\n\n // Register the module with PNotify.\n PNotify.modules.Callbacks = Component;\n }\n };\n</script>\n"],"names":[],"mappings":";;;AAGE,IAAI,KAAK,GAAG,OAAO,CAAC,SAAS,CA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,GAAG,CAAC,OAAO,KAAK;AACpC,AAAI,IAAI,OAAO,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACtC,AAAI,GAAG,CAAC;AACR,AAAI,EAAE,OAAO,CAAC,IAAI,GAAG,CAAC,OAAO,KAAK;AAClC,AAAI,IAAI,OAAO,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACpC,AAAI,GAAG,CAAC;AACR,AAAI,EAAE,OAAO,CAAC,OAAO,GAAG,CAAC,OAAO,KAAK;AACrC,AAAI,IAAI,OAAO,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACvC,AAAI,GAAG,CAAC;AACR,AAAI,EAAE,OAAO,CAAC,KAAK,GAAG,CAAC,OAAO,KAAK;AACnC,AAAI,IAAI,OAAO,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrC,AAAI,GAAG,CAAC;;AAER,AAAI;AACJ,AAAI,EAAE,OAAO,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;AAC5C,AAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}

225
app/node_modules/pnotify/lib/es/PNotifyCompat.js generated vendored Normal file
View File

@@ -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;

753
app/node_modules/pnotify/lib/es/PNotifyConfirm.js generated vendored Normal file
View File

@@ -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;

File diff suppressed because one or more lines are too long

428
app/node_modules/pnotify/lib/es/PNotifyDesktop.js generated vendored Normal file
View File

@@ -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+gvaeTAAAACXBIWXMAAA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gEjwKjQOHDugZlRDb7sMZEJpCS4bYVMJOygsG1cB+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;

File diff suppressed because one or more lines are too long

281
app/node_modules/pnotify/lib/es/PNotifyHistory.js generated vendored Normal file
View File

@@ -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;

File diff suppressed because one or more lines are too long

418
app/node_modules/pnotify/lib/es/PNotifyMobile.js generated vendored Normal file
View File

@@ -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;

1
app/node_modules/pnotify/lib/es/PNotifyMobile.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

195
app/node_modules/pnotify/lib/es/PNotifyNonBlock.js generated vendored Normal file
View File

@@ -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;

View File

@@ -0,0 +1 @@
{"version":3,"file":"PNotifyNonBlock.js","sources":["src/PNotifyNonBlock.html"],"sourcesContent":["<script>\n import PNotify from './PNotify.html';\n\n export default {\n setup (Component) {\n Component.key = 'NonBlock';\n\n Component.defaults = {\n // Use NonBlock.js to create a non-blocking notice. It lets the user click elements underneath it.\n nonblock: false\n };\n\n Component.init = (notice) => {\n return new Component({target: document.body,\n data: {\n '_notice': notice\n }});\n };\n\n // Register the module with PNotify.\n PNotify.modules.NonBlock = Component;\n },\n\n data () {\n return Object.assign({\n '_notice': null, // The PNotify notice.\n '_options': {} // The options for the notice.\n }, PNotify.modules.NonBlock.defaults);\n },\n\n methods: {\n initModule (options) {\n this.set(options);\n this.doNonBlockClass();\n },\n\n update () {\n this.doNonBlockClass();\n },\n\n doNonBlockClass () {\n if (this.get().nonblock) {\n this.get()._notice.addModuleClass('nonblock');\n } else {\n this.get()._notice.removeModuleClass('nonblock');\n }\n }\n }\n };\n</script>\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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}

412
app/node_modules/pnotify/lib/es/PNotifyReference.js generated vendored Normal file
View File

@@ -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;

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More