resizingChatPhotos

This commit is contained in:
ivan gomes
2021-11-18 13:01:53 +01:00
parent 4262597360
commit e622acc98e
332 changed files with 6194 additions and 45009 deletions
+2 -2
View File
@@ -1162,7 +1162,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ 3786);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2316);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 71258);
/* harmony import */ var _attendees_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./attendees.page */ 60963);
/* harmony import */ var _attendees_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./attendees.page */ 55199);
@@ -1202,7 +1202,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 1707);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic/angular */ 7602);
/* harmony import */ var _attendees_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./attendees-routing.module */ 15042);
/* harmony import */ var _attendees_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./attendees.page */ 60963);
/* harmony import */ var _attendees_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./attendees.page */ 55199);
+2 -2
View File
@@ -1854,7 +1854,7 @@
var _attendees_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./attendees.page */
60963);
55199);
var routes = [{
path: '',
@@ -1930,7 +1930,7 @@
var _attendees_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./attendees.page */
60963);
55199);
var _AttendeesPageModule = function AttendeesPageModule() {
_classCallCheck(this, AttendeesPageModule);
-27
View File
@@ -73,14 +73,6 @@
"Fingerprint"
]
},
{
"id": "info.protonet.imageresizer.ImageResizer",
"file": "plugins/info.protonet.imageresizer/www/image_resizer.js",
"pluginId": "info.protonet.imageresizer",
"clobbers": [
"ImageResizer"
]
},
{
"id": "cordova-plugin-media-capture.MediaFile",
"file": "plugins/cordova-plugin-media-capture/www/MediaFile.js",
@@ -129,14 +121,6 @@
"PhotoViewer"
]
},
{
"id": "cordova-plugin-telerik-imagepicker.ImagePicker",
"file": "plugins/cordova-plugin-telerik-imagepicker/www/imagepicker.js",
"pluginId": "cordova-plugin-telerik-imagepicker",
"clobbers": [
"plugins.imagePicker"
]
},
{
"id": "cordova-sqlite-storage.SQLitePlugin",
"file": "plugins/cordova-sqlite-storage/www/SQLitePlugin.js",
@@ -145,14 +129,6 @@
"SQLitePlugin"
]
},
{
"id": "cordova-plugin-streaming-media.StreamingMedia",
"file": "plugins/cordova-plugin-streaming-media/www/StreamingMedia.js",
"pluginId": "cordova-plugin-streaming-media",
"clobbers": [
"streamingMedia"
]
},
{
"id": "cordova-plugin-file.DirectoryEntry",
"file": "plugins/cordova-plugin-file/www/DirectoryEntry.js",
@@ -384,7 +360,6 @@
{
"cordova-plugin-dbcopy": "2.1.2",
"cordova-sqlite-storage": "5.1.0",
"info.protonet.imageresizer": "0.1.1",
"com-sarriaroman-photoviewer": "1.2.4",
"cordova-plugin-device": "2.0.3",
"cordova-plugin-dialogs": "2.0.2",
@@ -395,8 +370,6 @@
"cordova-plugin-media": "5.0.3",
"cordova-plugin-media-capture": "3.0.3",
"cordova-plugin-network-information": "3.0.0",
"cordova-plugin-streaming-media": "2.3.0",
"cordova-plugin-telerik-imagepicker": "2.3.5",
"es6-promise-plugin": "4.2.2",
"uk.co.workingedge.cordova.plugin.sqliteporter": "1.1.1"
};
@@ -1,543 +0,0 @@
"use strict";
(self["webpackChunkgabinete_digital"] = self["webpackChunkgabinete_digital"] || []).push([["default-node_modules_capacitor_core_dist_index_js"],{
/***/ 41899:
/*!****************************************************!*\
!*** ./node_modules/@capacitor/core/dist/index.js ***!
\****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Capacitor": function() { return /* binding */ Capacitor; },
/* harmony export */ "CapacitorException": function() { return /* binding */ CapacitorException; },
/* harmony export */ "CapacitorPlatforms": function() { return /* binding */ CapacitorPlatforms; },
/* harmony export */ "ExceptionCode": function() { return /* binding */ ExceptionCode; },
/* harmony export */ "Plugins": function() { return /* binding */ Plugins; },
/* harmony export */ "WebPlugin": function() { return /* binding */ WebPlugin; },
/* harmony export */ "WebView": function() { return /* binding */ WebView; },
/* harmony export */ "addPlatform": function() { return /* binding */ addPlatform; },
/* harmony export */ "registerPlugin": function() { return /* binding */ registerPlugin; },
/* harmony export */ "registerWebPlugin": function() { return /* binding */ registerWebPlugin; },
/* harmony export */ "setPlatform": function() { return /* binding */ setPlatform; }
/* harmony export */ });
/* harmony import */ var C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator */ 19369);
/*! Capacitor: https://capacitorjs.com/ - MIT License */
const createCapacitorPlatforms = win => {
const defaultPlatformMap = new Map();
defaultPlatformMap.set('web', {
name: 'web'
});
const capPlatforms = win.CapacitorPlatforms || {
currentPlatform: {
name: 'web'
},
platforms: defaultPlatformMap
};
const addPlatform = (name, platform) => {
capPlatforms.platforms.set(name, platform);
};
const setPlatform = name => {
if (capPlatforms.platforms.has(name)) {
capPlatforms.currentPlatform = capPlatforms.platforms.get(name);
}
};
capPlatforms.addPlatform = addPlatform;
capPlatforms.setPlatform = setPlatform;
return capPlatforms;
};
const initPlatforms = win => win.CapacitorPlatforms = createCapacitorPlatforms(win);
/**
* @deprecated Set `CapacitorCustomPlatform` on the window object prior to runtime executing in the web app instead
*/
const CapacitorPlatforms = /*#__PURE__*/initPlatforms(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {});
/**
* @deprecated Set `CapacitorCustomPlatform` on the window object prior to runtime executing in the web app instead
*/
const addPlatform = CapacitorPlatforms.addPlatform;
/**
* @deprecated Set `CapacitorCustomPlatform` on the window object prior to runtime executing in the web app instead
*/
const setPlatform = CapacitorPlatforms.setPlatform;
const legacyRegisterWebPlugin = (cap, webPlugin) => {
var _a;
const config = webPlugin.config;
const Plugins = cap.Plugins;
if (!config || !config.name) {
// TODO: add link to upgrade guide
throw new Error(`Capacitor WebPlugin is using the deprecated "registerWebPlugin()" function, but without the config. Please use "registerPlugin()" instead to register this web plugin."`);
} // TODO: add link to upgrade guide
console.warn(`Capacitor plugin "${config.name}" is using the deprecated "registerWebPlugin()" function`);
if (!Plugins[config.name] || ((_a = config === null || config === void 0 ? void 0 : config.platforms) === null || _a === void 0 ? void 0 : _a.includes(cap.getPlatform()))) {
// Add the web plugin into the plugins registry if there already isn't
// an existing one. If it doesn't already exist, that means
// there's no existing native implementation for it.
// - OR -
// If we already have a plugin registered (meaning it was defined in the native layer),
// then we should only overwrite it if the corresponding web plugin activates on
// a certain platform. For example: Geolocation uses the WebPlugin on Android but not iOS
Plugins[config.name] = webPlugin;
}
};
var ExceptionCode;
(function (ExceptionCode) {
/**
* API is not implemented.
*
* This usually means the API can't be used because it is not implemented for
* the current platform.
*/
ExceptionCode["Unimplemented"] = "UNIMPLEMENTED";
/**
* API is not available.
*
* This means the API can't be used right now because:
* - it is currently missing a prerequisite, such as network connectivity
* - it requires a particular platform or browser version
*/
ExceptionCode["Unavailable"] = "UNAVAILABLE";
})(ExceptionCode || (ExceptionCode = {}));
class CapacitorException extends Error {
constructor(message, code) {
super(message);
this.message = message;
this.code = code;
}
}
const getPlatformId = win => {
var _a, _b;
if (win === null || win === void 0 ? void 0 : win.androidBridge) {
return 'android';
} else if ((_b = (_a = win === null || win === void 0 ? void 0 : win.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.bridge) {
return 'ios';
} else {
return 'web';
}
};
const createCapacitor = win => {
var _a, _b, _c, _d, _e;
const capCustomPlatform = win.CapacitorCustomPlatform || null;
const cap = win.Capacitor || {};
const Plugins = cap.Plugins = cap.Plugins || {};
/**
* @deprecated Use `capCustomPlatform` instead, default functions like registerPlugin will function with the new object.
*/
const capPlatforms = win.CapacitorPlatforms;
const defaultGetPlatform = () => {
return capCustomPlatform !== null ? capCustomPlatform.name : getPlatformId(win);
};
const getPlatform = ((_a = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _a === void 0 ? void 0 : _a.getPlatform) || defaultGetPlatform;
const defaultIsNativePlatform = () => getPlatform() !== 'web';
const isNativePlatform = ((_b = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _b === void 0 ? void 0 : _b.isNativePlatform) || defaultIsNativePlatform;
const defaultIsPluginAvailable = pluginName => {
const plugin = registeredPlugins.get(pluginName);
if (plugin === null || plugin === void 0 ? void 0 : plugin.platforms.has(getPlatform())) {
// JS implementation available for the current platform.
return true;
}
if (getPluginHeader(pluginName)) {
// Native implementation available.
return true;
}
return false;
};
const isPluginAvailable = ((_c = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _c === void 0 ? void 0 : _c.isPluginAvailable) || defaultIsPluginAvailable;
const defaultGetPluginHeader = pluginName => {
var _a;
return (_a = cap.PluginHeaders) === null || _a === void 0 ? void 0 : _a.find(h => h.name === pluginName);
};
const getPluginHeader = ((_d = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _d === void 0 ? void 0 : _d.getPluginHeader) || defaultGetPluginHeader;
const handleError = err => win.console.error(err);
const pluginMethodNoop = (_target, prop, pluginName) => {
return Promise.reject(`${pluginName} does not have an implementation of "${prop}".`);
};
const registeredPlugins = new Map();
const defaultRegisterPlugin = (pluginName, jsImplementations = {}) => {
const registeredPlugin = registeredPlugins.get(pluginName);
if (registeredPlugin) {
console.warn(`Capacitor plugin "${pluginName}" already registered. Cannot register plugins twice.`);
return registeredPlugin.proxy;
}
const platform = getPlatform();
const pluginHeader = getPluginHeader(pluginName);
let jsImplementation;
const loadPluginImplementation = /*#__PURE__*/function () {
var _ref = (0,C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__.default)(function* () {
if (!jsImplementation && platform in jsImplementations) {
jsImplementation = typeof jsImplementations[platform] === 'function' ? jsImplementation = yield jsImplementations[platform]() : jsImplementation = jsImplementations[platform];
} else if (capCustomPlatform !== null && !jsImplementation && 'web' in jsImplementations) {
jsImplementation = typeof jsImplementations['web'] === 'function' ? jsImplementation = yield jsImplementations['web']() : jsImplementation = jsImplementations['web'];
}
return jsImplementation;
});
return function loadPluginImplementation() {
return _ref.apply(this, arguments);
};
}();
const createPluginMethod = (impl, prop) => {
var _a, _b;
if (pluginHeader) {
const methodHeader = pluginHeader === null || pluginHeader === void 0 ? void 0 : pluginHeader.methods.find(m => prop === m.name);
if (methodHeader) {
if (methodHeader.rtype === 'promise') {
return options => cap.nativePromise(pluginName, prop.toString(), options);
} else {
return (options, callback) => cap.nativeCallback(pluginName, prop.toString(), options, callback);
}
} else if (impl) {
return (_a = impl[prop]) === null || _a === void 0 ? void 0 : _a.bind(impl);
}
} else if (impl) {
return (_b = impl[prop]) === null || _b === void 0 ? void 0 : _b.bind(impl);
} else {
throw new CapacitorException(`"${pluginName}" plugin is not implemented on ${platform}`, ExceptionCode.Unimplemented);
}
};
const createPluginMethodWrapper = prop => {
let remove;
const wrapper = (...args) => {
const p = loadPluginImplementation().then(impl => {
const fn = createPluginMethod(impl, prop);
if (fn) {
const p = fn(...args);
remove = p === null || p === void 0 ? void 0 : p.remove;
return p;
} else {
throw new CapacitorException(`"${pluginName}.${prop}()" is not implemented on ${platform}`, ExceptionCode.Unimplemented);
}
});
if (prop === 'addListener') {
p.remove = /*#__PURE__*/(0,C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__.default)(function* () {
return remove();
});
}
return p;
}; // Some flair ✨
wrapper.toString = () => `${prop.toString()}() { [capacitor code] }`;
Object.defineProperty(wrapper, 'name', {
value: prop,
writable: false,
configurable: false
});
return wrapper;
};
const addListener = createPluginMethodWrapper('addListener');
const removeListener = createPluginMethodWrapper('removeListener');
const addListenerNative = (eventName, callback) => {
const call = addListener({
eventName
}, callback);
const remove = /*#__PURE__*/function () {
var _ref3 = (0,C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__.default)(function* () {
const callbackId = yield call;
removeListener({
eventName,
callbackId
}, callback);
});
return function remove() {
return _ref3.apply(this, arguments);
};
}();
const p = new Promise(resolve => call.then(() => resolve({
remove
})));
p.remove = /*#__PURE__*/(0,C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__.default)(function* () {
console.warn(`Using addListener() without 'await' is deprecated.`);
yield remove();
});
return p;
};
const proxy = new Proxy({}, {
get(_, prop) {
switch (prop) {
// https://github.com/facebook/react/issues/20030
case '$$typeof':
return undefined;
case 'toJSON':
return () => ({});
case 'addListener':
return pluginHeader ? addListenerNative : addListener;
case 'removeListener':
return removeListener;
default:
return createPluginMethodWrapper(prop);
}
}
});
Plugins[pluginName] = proxy;
registeredPlugins.set(pluginName, {
name: pluginName,
proxy,
platforms: new Set([...Object.keys(jsImplementations), ...(pluginHeader ? [platform] : [])])
});
return proxy;
};
const registerPlugin = ((_e = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _e === void 0 ? void 0 : _e.registerPlugin) || defaultRegisterPlugin; // Add in convertFileSrc for web, it will already be available in native context
if (!cap.convertFileSrc) {
cap.convertFileSrc = filePath => filePath;
}
cap.getPlatform = getPlatform;
cap.handleError = handleError;
cap.isNativePlatform = isNativePlatform;
cap.isPluginAvailable = isPluginAvailable;
cap.pluginMethodNoop = pluginMethodNoop;
cap.registerPlugin = registerPlugin;
cap.Exception = CapacitorException;
cap.DEBUG = !!cap.DEBUG;
cap.isLoggingEnabled = !!cap.isLoggingEnabled; // Deprecated props
cap.platform = cap.getPlatform();
cap.isNative = cap.isNativePlatform();
return cap;
};
const initCapacitorGlobal = win => win.Capacitor = createCapacitor(win);
const Capacitor = /*#__PURE__*/initCapacitorGlobal(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {});
const registerPlugin = Capacitor.registerPlugin;
/**
* @deprecated Provided for backwards compatibility for Capacitor v2 plugins.
* Capacitor v3 plugins should import the plugin directly. This "Plugins"
* export is deprecated in v3, and will be removed in v4.
*/
const Plugins = Capacitor.Plugins;
/**
* Provided for backwards compatibility. Use the registerPlugin() API
* instead, and provide the web plugin as the "web" implmenetation.
* For example
*
* export const Example = registerPlugin('Example', {
* web: () => import('./web').then(m => new m.Example())
* })
*
* @deprecated Deprecated in v3, will be removed from v4.
*/
const registerWebPlugin = plugin => legacyRegisterWebPlugin(Capacitor, plugin);
/**
* Base class web plugins should extend.
*/
class WebPlugin {
constructor(config) {
this.listeners = {};
this.windowListeners = {};
if (config) {
// TODO: add link to upgrade guide
console.warn(`Capacitor WebPlugin "${config.name}" config object was deprecated in v3 and will be removed in v4.`);
this.config = config;
}
}
addListener(eventName, listenerFunc) {
var _this = this;
const listeners = this.listeners[eventName];
if (!listeners) {
this.listeners[eventName] = [];
}
this.listeners[eventName].push(listenerFunc); // If we haven't added a window listener for this event and it requires one,
// go ahead and add it
const windowListener = this.windowListeners[eventName];
if (windowListener && !windowListener.registered) {
this.addWindowListener(windowListener);
}
const remove = /*#__PURE__*/function () {
var _ref5 = (0,C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__.default)(function* () {
return _this.removeListener(eventName, listenerFunc);
});
return function remove() {
return _ref5.apply(this, arguments);
};
}();
const p = Promise.resolve({
remove
});
Object.defineProperty(p, 'remove', {
value: function () {
var _ref6 = (0,C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__.default)(function* () {
console.warn(`Using addListener() without 'await' is deprecated.`);
yield remove();
});
return function value() {
return _ref6.apply(this, arguments);
};
}()
});
return p;
}
removeAllListeners() {
var _this2 = this;
return (0,C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__.default)(function* () {
_this2.listeners = {};
for (const listener in _this2.windowListeners) {
_this2.removeWindowListener(_this2.windowListeners[listener]);
}
_this2.windowListeners = {};
})();
}
notifyListeners(eventName, data) {
const listeners = this.listeners[eventName];
if (listeners) {
listeners.forEach(listener => listener(data));
}
}
hasListeners(eventName) {
return !!this.listeners[eventName].length;
}
registerWindowListener(windowEventName, pluginEventName) {
this.windowListeners[pluginEventName] = {
registered: false,
windowEventName,
pluginEventName,
handler: event => {
this.notifyListeners(pluginEventName, event);
}
};
}
unimplemented(msg = 'not implemented') {
return new Capacitor.Exception(msg, ExceptionCode.Unimplemented);
}
unavailable(msg = 'not available') {
return new Capacitor.Exception(msg, ExceptionCode.Unavailable);
}
removeListener(eventName, listenerFunc) {
var _this3 = this;
return (0,C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__.default)(function* () {
const listeners = _this3.listeners[eventName];
if (!listeners) {
return;
}
const index = listeners.indexOf(listenerFunc);
_this3.listeners[eventName].splice(index, 1); // If there are no more listeners for this type of event,
// remove the window listener
if (!_this3.listeners[eventName].length) {
_this3.removeWindowListener(_this3.windowListeners[eventName]);
}
})();
}
addWindowListener(handle) {
window.addEventListener(handle.windowEventName, handle.handler);
handle.registered = true;
}
removeWindowListener(handle) {
if (!handle) {
return;
}
window.removeEventListener(handle.windowEventName, handle.handler);
handle.registered = false;
}
}
const WebView = /*#__PURE__*/registerPlugin('WebView');
/***/ })
}]);
//# sourceMappingURL=default-node_modules_capacitor_core_dist_index_js-es2015.js.map
File diff suppressed because one or more lines are too long
@@ -1,877 +0,0 @@
(function () {
"use strict";
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
(self["webpackChunkgabinete_digital"] = self["webpackChunkgabinete_digital"] || []).push([["default-node_modules_capacitor_core_dist_index_js"], {
/***/
41899: function _(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */
__webpack_require__.d(__webpack_exports__, {
/* harmony export */
"Capacitor": function Capacitor() {
return (
/* binding */
_Capacitor
);
},
/* harmony export */
"CapacitorException": function CapacitorException() {
return (
/* binding */
_CapacitorException
);
},
/* harmony export */
"CapacitorPlatforms": function CapacitorPlatforms() {
return (
/* binding */
_CapacitorPlatforms
);
},
/* harmony export */
"ExceptionCode": function ExceptionCode() {
return (
/* binding */
_ExceptionCode
);
},
/* harmony export */
"Plugins": function Plugins() {
return (
/* binding */
_Plugins
);
},
/* harmony export */
"WebPlugin": function WebPlugin() {
return (
/* binding */
_WebPlugin
);
},
/* harmony export */
"WebView": function WebView() {
return (
/* binding */
_WebView
);
},
/* harmony export */
"addPlatform": function addPlatform() {
return (
/* binding */
_addPlatform
);
},
/* harmony export */
"registerPlugin": function registerPlugin() {
return (
/* binding */
_registerPlugin
);
},
/* harmony export */
"registerWebPlugin": function registerWebPlugin() {
return (
/* binding */
_registerWebPlugin
);
},
/* harmony export */
"setPlatform": function setPlatform() {
return (
/* binding */
_setPlatform
);
}
/* harmony export */
});
/* harmony import */
var C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator */
19369);
/*! Capacitor: https://capacitorjs.com/ - MIT License */
var createCapacitorPlatforms = function createCapacitorPlatforms(win) {
var defaultPlatformMap = new Map();
defaultPlatformMap.set('web', {
name: 'web'
});
var capPlatforms = win.CapacitorPlatforms || {
currentPlatform: {
name: 'web'
},
platforms: defaultPlatformMap
};
var addPlatform = function addPlatform(name, platform) {
capPlatforms.platforms.set(name, platform);
};
var setPlatform = function setPlatform(name) {
if (capPlatforms.platforms.has(name)) {
capPlatforms.currentPlatform = capPlatforms.platforms.get(name);
}
};
capPlatforms.addPlatform = addPlatform;
capPlatforms.setPlatform = setPlatform;
return capPlatforms;
};
var initPlatforms = function initPlatforms(win) {
return win.CapacitorPlatforms = createCapacitorPlatforms(win);
};
/**
* @deprecated Set `CapacitorCustomPlatform` on the window object prior to runtime executing in the web app instead
*/
var _CapacitorPlatforms = /*#__PURE__*/initPlatforms(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {});
/**
* @deprecated Set `CapacitorCustomPlatform` on the window object prior to runtime executing in the web app instead
*/
var _addPlatform = _CapacitorPlatforms.addPlatform;
/**
* @deprecated Set `CapacitorCustomPlatform` on the window object prior to runtime executing in the web app instead
*/
var _setPlatform = _CapacitorPlatforms.setPlatform;
var legacyRegisterWebPlugin = function legacyRegisterWebPlugin(cap, webPlugin) {
var _a;
var config = webPlugin.config;
var Plugins = cap.Plugins;
if (!config || !config.name) {
// TODO: add link to upgrade guide
throw new Error("Capacitor WebPlugin is using the deprecated \"registerWebPlugin()\" function, but without the config. Please use \"registerPlugin()\" instead to register this web plugin.\"");
} // TODO: add link to upgrade guide
console.warn("Capacitor plugin \"".concat(config.name, "\" is using the deprecated \"registerWebPlugin()\" function"));
if (!Plugins[config.name] || ((_a = config === null || config === void 0 ? void 0 : config.platforms) === null || _a === void 0 ? void 0 : _a.includes(cap.getPlatform()))) {
// Add the web plugin into the plugins registry if there already isn't
// an existing one. If it doesn't already exist, that means
// there's no existing native implementation for it.
// - OR -
// If we already have a plugin registered (meaning it was defined in the native layer),
// then we should only overwrite it if the corresponding web plugin activates on
// a certain platform. For example: Geolocation uses the WebPlugin on Android but not iOS
Plugins[config.name] = webPlugin;
}
};
var _ExceptionCode;
(function (ExceptionCode) {
/**
* API is not implemented.
*
* This usually means the API can't be used because it is not implemented for
* the current platform.
*/
ExceptionCode["Unimplemented"] = "UNIMPLEMENTED";
/**
* API is not available.
*
* This means the API can't be used right now because:
* - it is currently missing a prerequisite, such as network connectivity
* - it requires a particular platform or browser version
*/
ExceptionCode["Unavailable"] = "UNAVAILABLE";
})(_ExceptionCode || (_ExceptionCode = {}));
var _CapacitorException = /*#__PURE__*/function (_Error) {
_inherits(_CapacitorException, _Error);
var _super = _createSuper(_CapacitorException);
function _CapacitorException(message, code) {
var _this4;
_classCallCheck(this, _CapacitorException);
_this4 = _super.call(this, message);
_this4.message = message;
_this4.code = code;
return _this4;
}
return _CapacitorException;
}( /*#__PURE__*/_wrapNativeSuper(Error));
var getPlatformId = function getPlatformId(win) {
var _a, _b;
if (win === null || win === void 0 ? void 0 : win.androidBridge) {
return 'android';
} else if ((_b = (_a = win === null || win === void 0 ? void 0 : win.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.bridge) {
return 'ios';
} else {
return 'web';
}
};
var createCapacitor = function createCapacitor(win) {
var _a, _b, _c, _d, _e;
var capCustomPlatform = win.CapacitorCustomPlatform || null;
var cap = win.Capacitor || {};
var Plugins = cap.Plugins = cap.Plugins || {};
/**
* @deprecated Use `capCustomPlatform` instead, default functions like registerPlugin will function with the new object.
*/
var capPlatforms = win.CapacitorPlatforms;
var defaultGetPlatform = function defaultGetPlatform() {
return capCustomPlatform !== null ? capCustomPlatform.name : getPlatformId(win);
};
var getPlatform = ((_a = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _a === void 0 ? void 0 : _a.getPlatform) || defaultGetPlatform;
var defaultIsNativePlatform = function defaultIsNativePlatform() {
return getPlatform() !== 'web';
};
var isNativePlatform = ((_b = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _b === void 0 ? void 0 : _b.isNativePlatform) || defaultIsNativePlatform;
var defaultIsPluginAvailable = function defaultIsPluginAvailable(pluginName) {
var plugin = registeredPlugins.get(pluginName);
if (plugin === null || plugin === void 0 ? void 0 : plugin.platforms.has(getPlatform())) {
// JS implementation available for the current platform.
return true;
}
if (getPluginHeader(pluginName)) {
// Native implementation available.
return true;
}
return false;
};
var isPluginAvailable = ((_c = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _c === void 0 ? void 0 : _c.isPluginAvailable) || defaultIsPluginAvailable;
var defaultGetPluginHeader = function defaultGetPluginHeader(pluginName) {
var _a;
return (_a = cap.PluginHeaders) === null || _a === void 0 ? void 0 : _a.find(function (h) {
return h.name === pluginName;
});
};
var getPluginHeader = ((_d = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _d === void 0 ? void 0 : _d.getPluginHeader) || defaultGetPluginHeader;
var handleError = function handleError(err) {
return win.console.error(err);
};
var pluginMethodNoop = function pluginMethodNoop(_target, prop, pluginName) {
return Promise.reject("".concat(pluginName, " does not have an implementation of \"").concat(prop, "\"."));
};
var registeredPlugins = new Map();
var defaultRegisterPlugin = function defaultRegisterPlugin(pluginName) {
var jsImplementations = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var registeredPlugin = registeredPlugins.get(pluginName);
if (registeredPlugin) {
console.warn("Capacitor plugin \"".concat(pluginName, "\" already registered. Cannot register plugins twice."));
return registeredPlugin.proxy;
}
var platform = getPlatform();
var pluginHeader = getPluginHeader(pluginName);
var jsImplementation;
var loadPluginImplementation = /*#__PURE__*/function () {
var _ref = (0, C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__["default"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
if (!(!jsImplementation && platform in jsImplementations)) {
_context.next = 11;
break;
}
if (!(typeof jsImplementations[platform] === 'function')) {
_context.next = 7;
break;
}
_context.next = 4;
return jsImplementations[platform]();
case 4:
_context.t0 = jsImplementation = _context.sent;
_context.next = 8;
break;
case 7:
_context.t0 = jsImplementation = jsImplementations[platform];
case 8:
jsImplementation = _context.t0;
_context.next = 20;
break;
case 11:
if (!(capCustomPlatform !== null && !jsImplementation && 'web' in jsImplementations)) {
_context.next = 20;
break;
}
if (!(typeof jsImplementations['web'] === 'function')) {
_context.next = 18;
break;
}
_context.next = 15;
return jsImplementations['web']();
case 15:
_context.t1 = jsImplementation = _context.sent;
_context.next = 19;
break;
case 18:
_context.t1 = jsImplementation = jsImplementations['web'];
case 19:
jsImplementation = _context.t1;
case 20:
return _context.abrupt("return", jsImplementation);
case 21:
case "end":
return _context.stop();
}
}
}, _callee);
}));
return function loadPluginImplementation() {
return _ref.apply(this, arguments);
};
}();
var createPluginMethod = function createPluginMethod(impl, prop) {
var _a, _b;
if (pluginHeader) {
var methodHeader = pluginHeader === null || pluginHeader === void 0 ? void 0 : pluginHeader.methods.find(function (m) {
return prop === m.name;
});
if (methodHeader) {
if (methodHeader.rtype === 'promise') {
return function (options) {
return cap.nativePromise(pluginName, prop.toString(), options);
};
} else {
return function (options, callback) {
return cap.nativeCallback(pluginName, prop.toString(), options, callback);
};
}
} else if (impl) {
return (_a = impl[prop]) === null || _a === void 0 ? void 0 : _a.bind(impl);
}
} else if (impl) {
return (_b = impl[prop]) === null || _b === void 0 ? void 0 : _b.bind(impl);
} else {
throw new _CapacitorException("\"".concat(pluginName, "\" plugin is not implemented on ").concat(platform), _ExceptionCode.Unimplemented);
}
};
var createPluginMethodWrapper = function createPluginMethodWrapper(prop) {
var remove;
var wrapper = function wrapper() {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
var p = loadPluginImplementation().then(function (impl) {
var fn = createPluginMethod(impl, prop);
if (fn) {
var _p = fn.apply(void 0, args);
remove = _p === null || _p === void 0 ? void 0 : _p.remove;
return _p;
} else {
throw new _CapacitorException("\"".concat(pluginName, ".").concat(prop, "()\" is not implemented on ").concat(platform), _ExceptionCode.Unimplemented);
}
});
if (prop === 'addListener') {
p.remove = /*#__PURE__*/(0, C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__["default"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
return regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
return _context2.abrupt("return", remove());
case 1:
case "end":
return _context2.stop();
}
}
}, _callee2);
}));
}
return p;
}; // Some flair ✨
wrapper.toString = function () {
return "".concat(prop.toString(), "() { [capacitor code] }");
};
Object.defineProperty(wrapper, 'name', {
value: prop,
writable: false,
configurable: false
});
return wrapper;
};
var addListener = createPluginMethodWrapper('addListener');
var removeListener = createPluginMethodWrapper('removeListener');
var addListenerNative = function addListenerNative(eventName, callback) {
var call = addListener({
eventName: eventName
}, callback);
var remove = /*#__PURE__*/function () {
var _ref3 = (0, C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__["default"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
var callbackId;
return regeneratorRuntime.wrap(function _callee3$(_context3) {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return call;
case 2:
callbackId = _context3.sent;
removeListener({
eventName: eventName,
callbackId: callbackId
}, callback);
case 4:
case "end":
return _context3.stop();
}
}
}, _callee3);
}));
return function remove() {
return _ref3.apply(this, arguments);
};
}();
var p = new Promise(function (resolve) {
return call.then(function () {
return resolve({
remove: remove
});
});
});
p.remove = /*#__PURE__*/(0, C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__["default"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
return regeneratorRuntime.wrap(function _callee4$(_context4) {
while (1) {
switch (_context4.prev = _context4.next) {
case 0:
console.warn("Using addListener() without 'await' is deprecated.");
_context4.next = 3;
return remove();
case 3:
case "end":
return _context4.stop();
}
}
}, _callee4);
}));
return p;
};
var proxy = new Proxy({}, {
get: function get(_, prop) {
switch (prop) {
// https://github.com/facebook/react/issues/20030
case '$$typeof':
return undefined;
case 'toJSON':
return function () {
return {};
};
case 'addListener':
return pluginHeader ? addListenerNative : addListener;
case 'removeListener':
return removeListener;
default:
return createPluginMethodWrapper(prop);
}
}
});
Plugins[pluginName] = proxy;
registeredPlugins.set(pluginName, {
name: pluginName,
proxy: proxy,
platforms: new Set([].concat(_toConsumableArray(Object.keys(jsImplementations)), _toConsumableArray(pluginHeader ? [platform] : [])))
});
return proxy;
};
var registerPlugin = ((_e = capPlatforms === null || capPlatforms === void 0 ? void 0 : capPlatforms.currentPlatform) === null || _e === void 0 ? void 0 : _e.registerPlugin) || defaultRegisterPlugin; // Add in convertFileSrc for web, it will already be available in native context
if (!cap.convertFileSrc) {
cap.convertFileSrc = function (filePath) {
return filePath;
};
}
cap.getPlatform = getPlatform;
cap.handleError = handleError;
cap.isNativePlatform = isNativePlatform;
cap.isPluginAvailable = isPluginAvailable;
cap.pluginMethodNoop = pluginMethodNoop;
cap.registerPlugin = registerPlugin;
cap.Exception = _CapacitorException;
cap.DEBUG = !!cap.DEBUG;
cap.isLoggingEnabled = !!cap.isLoggingEnabled; // Deprecated props
cap.platform = cap.getPlatform();
cap.isNative = cap.isNativePlatform();
return cap;
};
var initCapacitorGlobal = function initCapacitorGlobal(win) {
return win.Capacitor = createCapacitor(win);
};
var _Capacitor = /*#__PURE__*/initCapacitorGlobal(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {});
var _registerPlugin = _Capacitor.registerPlugin;
/**
* @deprecated Provided for backwards compatibility for Capacitor v2 plugins.
* Capacitor v3 plugins should import the plugin directly. This "Plugins"
* export is deprecated in v3, and will be removed in v4.
*/
var _Plugins = _Capacitor.Plugins;
/**
* Provided for backwards compatibility. Use the registerPlugin() API
* instead, and provide the web plugin as the "web" implmenetation.
* For example
*
* export const Example = registerPlugin('Example', {
* web: () => import('./web').then(m => new m.Example())
* })
*
* @deprecated Deprecated in v3, will be removed from v4.
*/
var _registerWebPlugin = function _registerWebPlugin(plugin) {
return legacyRegisterWebPlugin(_Capacitor, plugin);
};
/**
* Base class web plugins should extend.
*/
var _WebPlugin = /*#__PURE__*/function () {
function _WebPlugin(config) {
_classCallCheck(this, _WebPlugin);
this.listeners = {};
this.windowListeners = {};
if (config) {
// TODO: add link to upgrade guide
console.warn("Capacitor WebPlugin \"".concat(config.name, "\" config object was deprecated in v3 and will be removed in v4."));
this.config = config;
}
}
_createClass(_WebPlugin, [{
key: "addListener",
value: function addListener(eventName, listenerFunc) {
var _this = this;
var listeners = this.listeners[eventName];
if (!listeners) {
this.listeners[eventName] = [];
}
this.listeners[eventName].push(listenerFunc); // If we haven't added a window listener for this event and it requires one,
// go ahead and add it
var windowListener = this.windowListeners[eventName];
if (windowListener && !windowListener.registered) {
this.addWindowListener(windowListener);
}
var remove = /*#__PURE__*/function () {
var _ref5 = (0, C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__["default"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
return regeneratorRuntime.wrap(function _callee5$(_context5) {
while (1) {
switch (_context5.prev = _context5.next) {
case 0:
return _context5.abrupt("return", _this.removeListener(eventName, listenerFunc));
case 1:
case "end":
return _context5.stop();
}
}
}, _callee5);
}));
return function remove() {
return _ref5.apply(this, arguments);
};
}();
var p = Promise.resolve({
remove: remove
});
Object.defineProperty(p, 'remove', {
value: function () {
var _ref6 = (0, C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__["default"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
return regeneratorRuntime.wrap(function _callee6$(_context6) {
while (1) {
switch (_context6.prev = _context6.next) {
case 0:
console.warn("Using addListener() without 'await' is deprecated.");
_context6.next = 3;
return remove();
case 3:
case "end":
return _context6.stop();
}
}
}, _callee6);
}));
return function value() {
return _ref6.apply(this, arguments);
};
}()
});
return p;
}
}, {
key: "removeAllListeners",
value: function removeAllListeners() {
var _this2 = this;
return (0, C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__["default"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
var listener;
return regeneratorRuntime.wrap(function _callee7$(_context7) {
while (1) {
switch (_context7.prev = _context7.next) {
case 0:
_this2.listeners = {};
for (listener in _this2.windowListeners) {
_this2.removeWindowListener(_this2.windowListeners[listener]);
}
_this2.windowListeners = {};
case 3:
case "end":
return _context7.stop();
}
}
}, _callee7);
}))();
}
}, {
key: "notifyListeners",
value: function notifyListeners(eventName, data) {
var listeners = this.listeners[eventName];
if (listeners) {
listeners.forEach(function (listener) {
return listener(data);
});
}
}
}, {
key: "hasListeners",
value: function hasListeners(eventName) {
return !!this.listeners[eventName].length;
}
}, {
key: "registerWindowListener",
value: function registerWindowListener(windowEventName, pluginEventName) {
var _this5 = this;
this.windowListeners[pluginEventName] = {
registered: false,
windowEventName: windowEventName,
pluginEventName: pluginEventName,
handler: function handler(event) {
_this5.notifyListeners(pluginEventName, event);
}
};
}
}, {
key: "unimplemented",
value: function unimplemented() {
var msg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'not implemented';
return new _Capacitor.Exception(msg, _ExceptionCode.Unimplemented);
}
}, {
key: "unavailable",
value: function unavailable() {
var msg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'not available';
return new _Capacitor.Exception(msg, _ExceptionCode.Unavailable);
}
}, {
key: "removeListener",
value: function removeListener(eventName, listenerFunc) {
var _this3 = this;
return (0, C_Users_ivan_gomes_development_gabinete_digital_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__["default"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
var listeners, index;
return regeneratorRuntime.wrap(function _callee8$(_context8) {
while (1) {
switch (_context8.prev = _context8.next) {
case 0:
listeners = _this3.listeners[eventName];
if (listeners) {
_context8.next = 3;
break;
}
return _context8.abrupt("return");
case 3:
index = listeners.indexOf(listenerFunc);
_this3.listeners[eventName].splice(index, 1); // If there are no more listeners for this type of event,
// remove the window listener
if (!_this3.listeners[eventName].length) {
_this3.removeWindowListener(_this3.windowListeners[eventName]);
}
case 6:
case "end":
return _context8.stop();
}
}
}, _callee8);
}))();
}
}, {
key: "addWindowListener",
value: function addWindowListener(handle) {
window.addEventListener(handle.windowEventName, handle.handler);
handle.registered = true;
}
}, {
key: "removeWindowListener",
value: function removeWindowListener(handle) {
if (!handle) {
return;
}
window.removeEventListener(handle.windowEventName, handle.handler);
handle.registered = false;
}
}]);
return _WebPlugin;
}();
var _WebView = /*#__PURE__*/_registerPlugin('WebView');
/***/
}
}]);
})();
//# sourceMappingURL=default-node_modules_capacitor_core_dist_index_js-es5.js.map
File diff suppressed because one or more lines are too long
@@ -110,7 +110,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var src_app_pages_gabinete_digital_discart_expedient_modal_discart_expedient_modal_page__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/pages/gabinete-digital/discart-expedient-modal/discart-expedient-modal.page */ 45896);
/* harmony import */ var src_app_pages_gabinete_digital_expediente_expediente_detail_expediente_detail_page__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page */ 86857);
/* harmony import */ var src_app_pages_search_search_page__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/pages/search/search.page */ 9166);
/* harmony import */ var src_app_pages_events_attendees_attendees_page__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/pages/events/attendees/attendees.page */ 60963);
/* harmony import */ var src_app_pages_events_attendees_attendees_page__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/pages/events/attendees/attendees.page */ 55199);
/* harmony import */ var src_app_services_toast_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/services/toast.service */ 84465);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/forms */ 1707);
/* harmony import */ var _angular_material_components_datetime_picker__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular-material-components/datetime-picker */ 23514);
@@ -340,7 +340,7 @@ let CreateProcessPage = class CreateProcessPage {
this.modalController.dismiss();
}
catch (error) {
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
}
finally {
loader.remove();
@@ -366,10 +366,10 @@ let CreateProcessPage = class CreateProcessPage {
yield this.pedidoService.taskCompleteParecer({ serialNumber: this.task.serialNumber }).toPromise();
}
this.modalController.dismiss();
this.toastService.successMessage('Pedido de Parecer enviado');
this.toastService._successMessage('Pedido de Parecer enviado');
}
catch (error) {
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
}
finally {
loader.remove();
@@ -389,10 +389,10 @@ let CreateProcessPage = class CreateProcessPage {
yield this.pedidoService.createDeferimento(this.postData).toPromise();
yield this.pedidoService.taskCompleteDeferimento({ serialNumber: this.task.serialNumber }).toPromise();
this.modalController.dismiss();
this.toastService.successMessage('Pedido de Deferimento criado');
this.toastService._successMessage('Pedido de Deferimento criado');
}
catch (error) {
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
}
finally {
loader.remove();
@@ -417,10 +417,10 @@ let CreateProcessPage = class CreateProcessPage {
yield this.despachoService.createDespacho(this.postData).toPromise();
yield this.despachoService.CompleteTask({ serialNumber: this.task.serialNumber }).toPromise();
this.modalController.dismiss();
this.toastService.successMessage('Despacho criado');
this.toastService._successMessage('Despacho criado');
}
catch (error) {
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
}
finally {
//loader.remove();
@@ -428,7 +428,7 @@ let CreateProcessPage = class CreateProcessPage {
}
else {
this.validateField = true;
this.toastService.badRequest('Por favor adicione uma descrição');
this.toastService._badRequest('Por favor adicione uma descrição');
}
loader.remove();
break;
@@ -452,10 +452,10 @@ let CreateProcessPage = class CreateProcessPage {
yield this.pedidoService.taskCompleteParecer({ serialNumber: this.task.serialNumber }).toPromise();
}
this.modalController.dismiss();
this.toastService.successMessage('Pedido de Parecer criado');
this.toastService._successMessage('Pedido de Parecer criado');
}
catch (error) {
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
}
finally {
loader.remove();
@@ -475,10 +475,10 @@ let CreateProcessPage = class CreateProcessPage {
yield this.pedidoService.createDeferimento(this.postData).toPromise();
yield this.pedidoService.taskCompleteDeferimento({ serialNumber: this.task.serialNumber }).toPromise();
this.modalController.dismiss();
this.toastService.successMessage('Pedido de Deferimento criado');
this.toastService._successMessage('Pedido de Deferimento criado');
}
catch (error) {
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
}
finally {
loader.remove();
@@ -525,10 +525,10 @@ let CreateProcessPage = class CreateProcessPage {
console.log(body);
try {
yield this.processes.CompleteTask(body).toPromise();
this.toastService.successMessage(message);
this.toastService._successMessage(message);
}
catch (error) {
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
}
finally {
loader.remove();
File diff suppressed because one or more lines are too long
@@ -232,7 +232,7 @@
var src_app_pages_events_attendees_attendees_page__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
/*! src/app/pages/events/attendees/attendees.page */
60963);
55199);
/* harmony import */
@@ -548,7 +548,8 @@
case 28:
_context2.prev = 28;
_context2.t2 = _context2["catch"](20);
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
case 31:
_context2.prev = 31;
@@ -602,14 +603,17 @@
case 49:
this.modalController.dismiss();
this.toastService.successMessage('Pedido de Parecer enviado');
this.toastService._successMessage('Pedido de Parecer enviado');
_context2.next = 56;
break;
case 53:
_context2.prev = 53;
_context2.t3 = _context2["catch"](37);
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
case 56:
_context2.prev = 56;
@@ -642,14 +646,17 @@
case 67:
this.modalController.dismiss();
this.toastService.successMessage('Pedido de Deferimento criado');
this.toastService._successMessage('Pedido de Deferimento criado');
_context2.next = 74;
break;
case 71:
_context2.prev = 71;
_context2.t4 = _context2["catch"](62);
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
case 74:
_context2.prev = 74;
@@ -696,14 +703,17 @@
case 90:
this.modalController.dismiss();
this.toastService.successMessage('Despacho criado');
this.toastService._successMessage('Despacho criado');
_context2.next = 97;
break;
case 94:
_context2.prev = 94;
_context2.t6 = _context2["catch"](85);
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
case 97:
_context2.prev = 97;
@@ -715,7 +725,8 @@
case 101:
this.validateField = true;
this.toastService.badRequest('Por favor adicione uma descrição');
this.toastService._badRequest('Por favor adicione uma descrição');
case 103:
loader.remove();
@@ -765,14 +776,17 @@
case 119:
this.modalController.dismiss();
this.toastService.successMessage('Pedido de Parecer criado');
this.toastService._successMessage('Pedido de Parecer criado');
_context2.next = 126;
break;
case 123:
_context2.prev = 123;
_context2.t7 = _context2["catch"](107);
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
case 126:
_context2.prev = 126;
@@ -805,14 +819,17 @@
case 137:
this.modalController.dismiss();
this.toastService.successMessage('Pedido de Deferimento criado');
this.toastService._successMessage('Pedido de Deferimento criado');
_context2.next = 144;
break;
case 141:
_context2.prev = 141;
_context2.t8 = _context2["catch"](132);
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
case 144:
_context2.prev = 144;
@@ -872,14 +889,16 @@
return this.processes.CompleteTask(body).toPromise();
case 5:
this.toastService.successMessage(message);
this.toastService._successMessage(message);
_context3.next = 11;
break;
case 8:
_context3.prev = 8;
_context3.t0 = _context3["catch"](2);
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
case 11:
_context3.prev = 11;
File diff suppressed because one or more lines are too long
@@ -73,10 +73,10 @@ let DarParecerPage = class DarParecerPage {
try {
yield this.processes.CompleteTask(body).toPromise();
this.modalController.dismiss();
this.toastService.successMessage('Parecer enviado');
this.toastService._successMessage('Parecer enviado');
}
catch (error) {
this.toastService.badRequest("Parecer não solicitado");
this.toastService._badRequest("Parecer não solicitado");
}
finally {
loader.remove();
File diff suppressed because one or more lines are too long
@@ -141,14 +141,17 @@
case 8:
this.modalController.dismiss();
this.toastService.successMessage('Parecer enviado');
this.toastService._successMessage('Parecer enviado');
_context.next = 15;
break;
case 12:
_context.prev = 12;
_context.t0 = _context["catch"](5);
this.toastService.badRequest("Parecer não solicitado");
this.toastService._badRequest("Parecer não solicitado");
case 15:
_context.prev = 15;
File diff suppressed because one or more lines are too long
@@ -24,7 +24,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var src_app_pages_gabinete_digital_discart_expedient_modal_discart_expedient_modal_page__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/pages/gabinete-digital/discart-expedient-modal/discart-expedient-modal.page */ 45896);
/* harmony import */ var src_app_services_alert_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/services/alert.service */ 36017);
/* harmony import */ var src_app_services_toast_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/services/toast.service */ 84465);
/* harmony import */ var src_app_pages_events_attendees_attendees_page__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/pages/events/attendees/attendees.page */ 60963);
/* harmony import */ var src_app_pages_events_attendees_attendees_page__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/pages/events/attendees/attendees.page */ 55199);
/* harmony import */ var src_app_pages_search_search_page__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/pages/search/search.page */ 9166);
/* harmony import */ var src_app_services_theme_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/services/theme.service */ 8140);
@@ -89,10 +89,10 @@ let DelegarPage = class DelegarPage {
saveTask() {
return (0,tslib__WEBPACK_IMPORTED_MODULE_12__.__awaiter)(this, void 0, void 0, function* () {
if (this.taskParticipants.length < 1) {
this.toastService.badRequest("Selecione um destinatário");
this.toastService._badRequest("Selecione um destinatário");
}
else if (this.taskParticipants.length > 1) {
this.toastService.badRequest("Selecione apenas um destinatário");
this.toastService._badRequest("Selecione apenas um destinatário");
}
else {
let body = {
@@ -107,10 +107,10 @@ let DelegarPage = class DelegarPage {
const loader = this.toastService.loading();
this.processes.DelegateTask(body).subscribe(res => {
console.log(res);
this.toastService.successMessage('Processo delegado');
this.toastService._successMessage('Processo delegado');
this.close();
}, (error) => {
this.toastService.badRequest("Processo não delegado");
this.toastService._badRequest("Processo não delegado");
}, () => {
loader.remove();
});
File diff suppressed because one or more lines are too long
@@ -108,7 +108,7 @@
var src_app_pages_events_attendees_attendees_page__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
/*! src/app/pages/events/attendees/attendees.page */
60963);
55199);
/* harmony import */
@@ -193,9 +193,9 @@
switch (_context.prev = _context.next) {
case 0:
if (this.taskParticipants.length < 1) {
this.toastService.badRequest("Selecione um destinatário");
this.toastService._badRequest("Selecione um destinatário");
} else if (this.taskParticipants.length > 1) {
this.toastService.badRequest("Selecione apenas um destinatário");
this.toastService._badRequest("Selecione apenas um destinatário");
} else {
body = {
"SerialNumber": this.task.SerialNumber,
@@ -210,11 +210,11 @@
this.processes.DelegateTask(body).subscribe(function (res) {
console.log(res);
_this.toastService.successMessage('Processo delegado');
_this.toastService._successMessage('Processo delegado');
_this.close();
}, function (error) {
_this.toastService.badRequest("Processo não delegado");
_this.toastService._badRequest("Processo não delegado");
}, function () {
loader.remove();
});
File diff suppressed because one or more lines are too long
@@ -24,7 +24,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var src_app_services_alert_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/services/alert.service */ 36017);
/* harmony import */ var src_app_services_toast_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/services/toast.service */ 84465);
/* harmony import */ var src_app_pages_search_search_page__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/pages/search/search.page */ 9166);
/* harmony import */ var src_app_pages_events_attendees_attendees_page__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/pages/events/attendees/attendees.page */ 60963);
/* harmony import */ var src_app_pages_events_attendees_attendees_page__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/pages/events/attendees/attendees.page */ 55199);
/* harmony import */ var src_app_services_theme_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/services/theme.service */ 8140);
@@ -122,7 +122,7 @@ let ForwardPage = class ForwardPage {
Attachments: DocumentToSave,
};
if (this.taskParticipants.length < 1) {
this.toastService.badRequest("Selecione um destinatário");
this.toastService._badRequest("Selecione um destinatário");
}
else {
let attendees = this.taskParticipants.concat(this.taskParticipantsCc);
@@ -146,10 +146,10 @@ let ForwardPage = class ForwardPage {
console.log(body);
this.processes.CompleteParecerPrTask(body).subscribe(res => {
console.log(res);
this.toastService.successMessage('Processo delegado');
this.toastService._successMessage('Processo delegado');
this.goBack();
}, (error) => {
this.toastService.badRequest("Processo não delegado");
this.toastService._badRequest("Processo não delegado");
});
}
});
File diff suppressed because one or more lines are too long
@@ -108,7 +108,7 @@
var src_app_pages_events_attendees_attendees_page__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
/*! src/app/pages/events/attendees/attendees.page */
60963);
55199);
/* harmony import */
@@ -237,7 +237,7 @@
};
if (this.taskParticipants.length < 1) {
this.toastService.badRequest("Selecione um destinatário");
this.toastService._badRequest("Selecione um destinatário");
} else {
attendees = this.taskParticipants.concat(this.taskParticipantsCc);
attendees = attendees.map(function (val) {
@@ -261,11 +261,11 @@
this.processes.CompleteParecerPrTask(body).subscribe(function (res) {
console.log(res);
_this.toastService.successMessage('Processo delegado');
_this.toastService._successMessage('Processo delegado');
_this.goBack();
}, function (error) {
_this.toastService.badRequest("Processo não delegado");
_this.toastService._badRequest("Processo não delegado");
});
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"version":3,"file":"default-src_app_modals_preview-images_preview-images_page_ts-es2015.js","mappings":";;;;;;;;;;;;;;;;;;;;;AAAgF;AACT;IAO1D,iBAAiB,SAAjB,iBAAiB;IAiB5B,YACU,eAAgC,EAChC,SAAmB;QADnB,oBAAe,GAAf,eAAe,CAAiB;QAChC,cAAS,GAAT,SAAS,CAAU;QAX7B,yBAAyB;QACzB,6BAA6B;QAC7B,yBAAyB;QAEzB,cAAS,GAAG;YACV,IAAI,EAAE,IAAI;SAEX;IAOE,CAAC;IAGJ,QAAQ;QACN,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC;QACxC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC;QAC9C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC;QAClD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;IACzB,CAAC;IAED,eAAe;QACb,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;IACtB,CAAC;IAEI,IAAI,CAAC,MAAe;;YACzB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,EAAC,eAAe;YAC5D,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI;YACxB,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,EAAC,CAAC,IAAI,CAAC,GAAG,EAAE;QAChC,CAAC;KAAA;IAED,KAAK;QACH,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE;IAC9B,CAAC;CACF;;YApDQ,2DAAe;YAAa,qDAAS;;;qBAU3C,oDAAS,SAAC,qDAAS;;AAHT,iBAAiB;IAL7B,wDAAS,CAAC;QACT,QAAQ,EAAE,oBAAoB;QAC9B,oLAAyC;;KAE1C,CAAC;GACW,iBAAiB,CA6C7B;AA7C6B;;;;;;;;;;;;ACR9B,+DAAe,+DAA+D,aAAa,QAAQ,YAAY,gHAAgH,OAAO,+9BAA+9B","sources":["./src/app/modals/preview-images/preview-images.page.ts","./src/app/modals/preview-images/preview-images.page.html"],"sourcesContent":["import { Component, OnInit, ViewChild, Input, ElementRef } from '@angular/core';\nimport { ModalController, IonSlides, NavParams } from '@ionic/angular';\n\n@Component({\n selector: 'app-preview-images',\n templateUrl: './preview-images.page.html',\n styleUrls: ['./preview-images.page.scss'],\n})\nexport class PreviewImagesPage implements OnInit {\n\n\n @ViewChild(IonSlides) slides : IonSlides\n image: any;\n username: string\n _updatedAt: string\n\n // @Input('img') img: any\n // @Input() username: string;\n // @Input() date: string;\n\n slideOpts = {\n zoom: true\n \n }\n\n constructor(\n private modalController: ModalController,\n private navParams:NavParams\n ) {\n \n }\n\n \n ngOnInit() { \n this.image = this.navParams.get('image')\n this.username = this.navParams.get('username')\n this._updatedAt = this.navParams.get('_updatedAt')\n console.log(this.image)\n }\n\n ionViewDidEnter(){\n this.slides.update()\n }\n\n async zoom(zoomIn: boolean){\n const slider = await this.slides.getSwiper() //is swipper =!\n const zoom = slider.zoom\n zoomIn ? zoom.in(): zoom.out()\n}\n\nclose(){\n this.modalController.dismiss()\n }\n}","export default \"\\n<ion-header translucent>\\n <ion-toolbar>\\n <ion-title>{{username}} <span>{{_updatedAt}}</span> </ion-title>\\n </ion-toolbar>\\n</ion-header>\\n<ion-content fullscreen>\\n <ion-card>\\n <img src=\\\"{{image}}\\\" />\\n </ion-card>\\n\\n <!-- <ion-slides #slider [options]=\\\"slideOpts\\\">\\n <ion-slide >\\n <div class=\\\"swiper-zoom-container\\\">\\n \\n </div>\\n </ion-slide>\\n </ion-slides> -->\\n</ion-content>\\n\\n<ion-footer>\\n <ion-row>\\n <ion-col size=\\\"4\\\" class=\\\"ion-text-center\\\">\\n <ion-button (click)=\\\"zoom(false)\\\" fill=\\\"clear\\\" color=\\\"light\\\">\\n <ion-icon name=\\\"remove\\\" slot=\\\"start\\\"></ion-icon>\\n out\\n </ion-button>\\n </ion-col>\\n <ion-col size=\\\"4\\\" class=\\\"ion-text-center\\\">\\n <ion-button (click)=\\\"close()\\\" fill=\\\"clear\\\" color=\\\"light\\\">\\n <ion-icon name=\\\"close\\\" slot=\\\"start\\\"></ion-icon>\\n out\\n </ion-button>\\n </ion-col>\\n <ion-col size=\\\"4\\\" class=\\\"ion-text-center\\\">\\n <ion-button (click)=\\\"zoom(true)\\\" fill=\\\"clear\\\" color=\\\"light\\\">\\n <ion-icon name=\\\"add\\\" slot=\\\"start\\\"></ion-icon>\\n in\\n </ion-button>\\n </ion-col>\\n </ion-row>\\n</ion-footer>\\n\\n\\n\\n\";"],"names":[],"sourceRoot":"webpack:///"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"version":3,"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAQaA,kBAAiB;AAiB5B,mCACUC,eADV,EAEUC,SAFV,EAE6B;AAAA;;AADnB;AACA,qCAAmB,CAX7B;AACA;AACA;;AAEA,2BAAY;AACVC,gBAAI,EAAE;AADI,WAAZ;AAUI;;AAtBwB;AAAA;AAAA,iBAyB5B,oBAAQ;AACN,iBAAKC,KAAL,GAAa,KAAKF,SAAL,CAAeG,GAAf,CAAmB,OAAnB,CAAb;AACA,iBAAKC,QAAL,GAAgB,KAAKJ,SAAL,CAAeG,GAAf,CAAmB,UAAnB,CAAhB;AACA,iBAAKE,UAAL,GAAkB,KAAKL,SAAL,CAAeG,GAAf,CAAmB,YAAnB,CAAlB;AACAG,mBAAO,CAACC,GAAR,CAAY,KAAKL,KAAjB;AACD;AA9B2B;AAAA;AAAA,iBAgC5B,2BAAe;AACb,iBAAKM,MAAL,CAAYC,MAAZ;AACD;AAlC2B;AAAA;AAAA,iBAoCvB,cAAKC,MAAL,EAAoB;;;;;;;;AACV,6BAAM,KAAKF,MAAL,CAAYG,SAAZ,EAAN;;;AAATC;AAAuC;AACvCX,6BAAOW,MAAM,CAACX;AACpBS,4BAAM,GAAGT,IAAI,MAAJ,EAAH,GAAcA,IAAI,CAACY,GAAL,EAApB;;;;;;;;;AACD;AAxC6B;AAAA;AAAA,iBA0C9B,iBAAK;AACH,iBAAKd,eAAL,CAAqBe,OAArB;AACC;AA5C2B;;AAAA;AAAA;;;;gBAPrBC;;gBAA4BA;;;;;;gBAUlCC;AAASC,iBAACF,qDAAD;;;AAHCjB,wBAAiB,uDAL7B,0DAAU;AACToB,gBAAQ,EAAE,oBADD;AAETC,+LAFS;;AAAA,OAAV,CAK6B,GAAjBrB,kBAAiB,CAAjB;;;;;;;ACRb;;;AAAAsB,uCAAe,srCAAf;;;;;;;;;","names":["PreviewImagesPage","modalController","navParams","zoom","image","get","username","_updatedAt","console","log","slides","update","zoomIn","getSwiper","slider","out","dismiss","_ionic_angular__WEBPACK_IMPORTED_MODULE_3__","_angular_core__WEBPACK_IMPORTED_MODULE_4__","args","selector","template","__webpack_exports__"],"sources":["webpack:///src/app/modals/preview-images/preview-images.page.ts","webpack:///src/app/modals/preview-images/preview-images.page.html"],"sourcesContent":["import { Component, OnInit, ViewChild, Input, ElementRef } from '@angular/core';\nimport { ModalController, IonSlides, NavParams } from '@ionic/angular';\n\n@Component({\n selector: 'app-preview-images',\n templateUrl: './preview-images.page.html',\n styleUrls: ['./preview-images.page.scss'],\n})\nexport class PreviewImagesPage implements OnInit {\n\n\n @ViewChild(IonSlides) slides : IonSlides\n image: any;\n username: string\n _updatedAt: string\n\n // @Input('img') img: any\n // @Input() username: string;\n // @Input() date: string;\n\n slideOpts = {\n zoom: true\n \n }\n\n constructor(\n private modalController: ModalController,\n private navParams:NavParams\n ) {\n \n }\n\n \n ngOnInit() { \n this.image = this.navParams.get('image')\n this.username = this.navParams.get('username')\n this._updatedAt = this.navParams.get('_updatedAt')\n console.log(this.image)\n }\n\n ionViewDidEnter(){\n this.slides.update()\n }\n\n async zoom(zoomIn: boolean){\n const slider = await this.slides.getSwiper() //is swipper =!\n const zoom = slider.zoom\n zoomIn ? zoom.in(): zoom.out()\n}\n\nclose(){\n this.modalController.dismiss()\n }\n}","export default \"\\n<ion-header translucent>\\n <ion-toolbar>\\n <ion-title>{{username}} <span>{{_updatedAt}}</span> </ion-title>\\n </ion-toolbar>\\n</ion-header>\\n<ion-content fullscreen>\\n <ion-card>\\n <img src=\\\"{{image}}\\\" />\\n </ion-card>\\n\\n <!-- <ion-slides #slider [options]=\\\"slideOpts\\\">\\n <ion-slide >\\n <div class=\\\"swiper-zoom-container\\\">\\n \\n </div>\\n </ion-slide>\\n </ion-slides> -->\\n</ion-content>\\n\\n<ion-footer>\\n <ion-row>\\n <ion-col size=\\\"4\\\" class=\\\"ion-text-center\\\">\\n <ion-button (click)=\\\"zoom(false)\\\" fill=\\\"clear\\\" color=\\\"light\\\">\\n <ion-icon name=\\\"remove\\\" slot=\\\"start\\\"></ion-icon>\\n out\\n </ion-button>\\n </ion-col>\\n <ion-col size=\\\"4\\\" class=\\\"ion-text-center\\\">\\n <ion-button (click)=\\\"close()\\\" fill=\\\"clear\\\" color=\\\"light\\\">\\n <ion-icon name=\\\"close\\\" slot=\\\"start\\\"></ion-icon>\\n out\\n </ion-button>\\n </ion-col>\\n <ion-col size=\\\"4\\\" class=\\\"ion-text-center\\\">\\n <ion-button (click)=\\\"zoom(true)\\\" fill=\\\"clear\\\" color=\\\"light\\\">\\n <ion-icon name=\\\"add\\\" slot=\\\"start\\\"></ion-icon>\\n in\\n </ion-button>\\n </ion-col>\\n </ion-row>\\n</ion-footer>\\n\\n\\n\\n\";"]}
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
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
"use strict";
(self["webpackChunkgabinete_digital"] = self["webpackChunkgabinete_digital"] || []).push([["default-src_app_pages_events_attendees_attendees_page_ts"],{
/***/ 60963:
/***/ 55199:
/*!**********************************************************!*\
!*** ./src/app/pages/events/attendees/attendees.page.ts ***!
\**********************************************************/
@@ -9,7 +9,7 @@
(self["webpackChunkgabinete_digital"] = self["webpackChunkgabinete_digital"] || []).push([["default-src_app_pages_events_attendees_attendees_page_ts"], {
/***/
60963: function _(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
55199: function _(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */
@@ -105,7 +105,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _models_event_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../models/event.model */ 18119);
/* harmony import */ var src_app_models_eventbody_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/models/eventbody.model */ 52724);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ionic/angular */ 7602);
/* harmony import */ var src_app_pages_events_attendees_attendees_page__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/pages/events/attendees/attendees.page */ 60963);
/* harmony import */ var src_app_pages_events_attendees_attendees_page__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/pages/events/attendees/attendees.page */ 55199);
/* harmony import */ var src_app_services_alert_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/services/alert.service */ 36017);
/* harmony import */ var src_app_services_attachments_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/services/attachments.service */ 20985);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 1707);
@@ -245,7 +245,7 @@
var src_app_pages_events_attendees_attendees_page__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! src/app/pages/events/attendees/attendees.page */
60963);
55199);
/* harmony import */
@@ -245,7 +245,7 @@ let DespachoPrPage = class DespachoPrPage {
catch (e) {
window.history.back();
}
this.toastService.badRequest('Processo não encontrado');
this.toastService._badRequest('Processo não encontrado');
}
});
});
@@ -352,10 +352,10 @@ let DespachoPrPage = class DespachoPrPage {
try {
yield this.processes.CompleteTask(body).toPromise();
this.close();
this.toastService.successMessage();
this.toastService._successMessage();
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
@@ -376,11 +376,11 @@ let DespachoPrPage = class DespachoPrPage {
const loader = this.toastService.loading();
try {
yield this.processes.CompleteTask(body).toPromise();
this.toastService.successMessage('Processo arquivado');
this.toastService._successMessage('Processo arquivado');
this.close();
}
catch (error) {
this.toastService.badRequest('Processo não arquivado');
this.toastService._badRequest('Processo não arquivado');
}
finally {
loader.remove();
@@ -396,11 +396,11 @@ let DespachoPrPage = class DespachoPrPage {
note,
documents
}).toPromise();
this.toastService.successMessage('Processo criado');
this.toastService._successMessage('Processo criado');
this.close();
}
catch (error) {
this.toastService.badRequest('Processo não criado');
this.toastService._badRequest('Processo não criado');
}
finally {
loader.remove();
@@ -421,11 +421,11 @@ let DespachoPrPage = class DespachoPrPage {
const loader = this.toastService.loading();
try {
yield this.processes.CompleteTask(body).toPromise();
this.toastService.successMessage('');
this.toastService._successMessage('');
this.close();
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
@@ -446,11 +446,11 @@ let DespachoPrPage = class DespachoPrPage {
const loader = this.toastService.loading();
try {
yield this.processes.CompleteTask(body).toPromise();
this.toastService.successMessage();
this.toastService._successMessage();
this.close();
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
@@ -463,10 +463,10 @@ let DespachoPrPage = class DespachoPrPage {
sendExpedienteToPending() {
this.processes.SetTaskToPending(this.serialNumber).subscribe(res => {
this.popoverController.dismiss('close');
this.toastService.successMessage('Processo enviado para pendentes');
this.toastService._successMessage('Processo enviado para pendentes');
this.goBack();
}, () => {
this.toastService.badRequest('Processo não encontrado');
this.toastService._badRequest('Processo não encontrado');
});
}
openAddNoteModal(actionName) {
@@ -439,7 +439,7 @@
window.history.back();
}
_this3.toastService.badRequest('Processo não encontrado');
_this3.toastService._badRequest('Processo não encontrado');
}
});
@@ -588,14 +588,17 @@
case 5:
this.close();
this.toastService.successMessage();
this.toastService._successMessage();
_context3.next = 12;
break;
case 9:
_context3.prev = 9;
_context3.t0 = _context3["catch"](2);
this.toastService.badRequest();
this.toastService._badRequest();
case 12:
_context3.prev = 12;
@@ -634,7 +637,8 @@
return this.processes.CompleteTask(body).toPromise();
case 5:
this.toastService.successMessage('Processo arquivado');
this.toastService._successMessage('Processo arquivado');
this.close();
_context4.next = 12;
break;
@@ -642,7 +646,8 @@
case 9:
_context4.prev = 9;
_context4.t0 = _context4["catch"](2);
this.toastService.badRequest('Processo não arquivado');
this.toastService._badRequest('Processo não arquivado');
case 12:
_context4.prev = 12;
@@ -676,7 +681,8 @@
}).toPromise();
case 4:
this.toastService.successMessage('Processo criado');
this.toastService._successMessage('Processo criado');
this.close();
_context5.next = 11;
break;
@@ -684,7 +690,8 @@
case 8:
_context5.prev = 8;
_context5.t0 = _context5["catch"](1);
this.toastService.badRequest('Processo não criado');
this.toastService._badRequest('Processo não criado');
case 11:
_context5.prev = 11;
@@ -723,7 +730,8 @@
return this.processes.CompleteTask(body).toPromise();
case 5:
this.toastService.successMessage('');
this.toastService._successMessage('');
this.close();
_context6.next = 12;
break;
@@ -731,7 +739,8 @@
case 9:
_context6.prev = 9;
_context6.t0 = _context6["catch"](2);
this.toastService.badRequest();
this.toastService._badRequest();
case 12:
_context6.prev = 12;
@@ -770,7 +779,8 @@
return this.processes.CompleteTask(body).toPromise();
case 5:
this.toastService.successMessage();
this.toastService._successMessage();
this.close();
_context7.next = 12;
break;
@@ -778,7 +788,8 @@
case 9:
_context7.prev = 9;
_context7.t0 = _context7["catch"](2);
this.toastService.badRequest();
this.toastService._badRequest();
case 12:
_context7.prev = 12;
@@ -806,11 +817,11 @@
this.processes.SetTaskToPending(this.serialNumber).subscribe(function (res) {
_this5.popoverController.dismiss('close');
_this5.toastService.successMessage('Processo enviado para pendentes');
_this5.toastService._successMessage('Processo enviado para pendentes');
_this5.goBack();
}, function () {
_this5.toastService.badRequest('Processo não encontrado');
_this5.toastService._badRequest('Processo não encontrado');
});
}
}, {
@@ -206,7 +206,7 @@ let DiplomaAssinarPage = class DiplomaAssinarPage {
this.getDocumentDetails(this.task.FolderId, '361');
}, (error) => {
try {
this.toastService.badRequest('Processo não encontrado');
this.toastService._badRequest('Processo não encontrado');
this.goBack();
}
catch (e) {
@@ -214,10 +214,10 @@ let DiplomaAssinarPage = class DiplomaAssinarPage {
}
finally {
if (error.status == 0) {
this.toastService.badRequest('Não é possível visualizar este processo no modo offline');
this.toastService._badRequest('Não é possível visualizar este processo no modo offline');
}
else {
this.toastService.badRequest('Processo não encontrado');
this.toastService._badRequest('Processo não encontrado');
}
}
});
@@ -266,12 +266,12 @@ let DiplomaAssinarPage = class DiplomaAssinarPage {
const loader = this.toastService.loading();
try {
yield this.processes.CompleteTask(body).toPromise();
this.toastService.successMessage(false, () => {
this.toastService._successMessage(false, () => {
this.goBack();
});
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
@@ -378,16 +378,16 @@
_this2.getDocumentDetails(_this2.task.FolderId, '361');
}, function (error) {
try {
_this2.toastService.badRequest('Processo não encontrado');
_this2.toastService._badRequest('Processo não encontrado');
_this2.goBack();
} catch (e) {
window.history.back();
} finally {
if (error.status == 0) {
_this2.toastService.badRequest('Não é possível visualizar este processo no modo offline');
_this2.toastService._badRequest('Não é possível visualizar este processo no modo offline');
} else {
_this2.toastService.badRequest('Processo não encontrado');
_this2.toastService._badRequest('Processo não encontrado');
}
}
});
@@ -478,16 +478,18 @@
return this.processes.CompleteTask(body).toPromise();
case 5:
this.toastService.successMessage(false, function () {
this.toastService._successMessage(false, function () {
_this4.goBack();
});
_context4.next = 11;
break;
case 8:
_context4.prev = 8;
_context4.t0 = _context4["catch"](2);
this.toastService.badRequest();
this.toastService._badRequest();
case 11:
_context4.prev = 11;
@@ -257,7 +257,7 @@ let DiplomaPage = class DiplomaPage {
catch (e) {
window.history.back();
}
this.toastService.badRequest('Processo não encontrado');
this.toastService._badRequest('Processo não encontrado');
}
});
});
@@ -364,12 +364,12 @@ let DiplomaPage = class DiplomaPage {
const loader = this.toastService.loading();
try {
yield this.processes.CompleteTask(body).toPromise();
this.toastService.successMessage(false, () => {
this.toastService._successMessage(false, () => {
this.close();
});
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
@@ -390,10 +390,10 @@ let DiplomaPage = class DiplomaPage {
const loader = this.toastService.loading();
try {
yield this.processes.CompleteTask(body).toPromise();
this.toastService.successMessage();
this.toastService._successMessage();
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
@@ -414,10 +414,10 @@ let DiplomaPage = class DiplomaPage {
const loader = this.toastService.loading();
try {
yield this.processes.CompleteTask(body).toPromise();
this.toastService.successMessage('Processo concluído');
this.toastService._successMessage('Processo concluído');
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
File diff suppressed because one or more lines are too long
@@ -448,7 +448,7 @@
window.history.back();
}
_this3.toastService.badRequest('Processo não encontrado');
_this3.toastService._badRequest('Processo não encontrado');
}
});
@@ -601,16 +601,18 @@
return this.processes.CompleteTask(body).toPromise();
case 5:
this.toastService.successMessage(false, function () {
this.toastService._successMessage(false, function () {
_this6.close();
});
_context4.next = 11;
break;
case 8:
_context4.prev = 8;
_context4.t0 = _context4["catch"](2);
this.toastService.badRequest();
this.toastService._badRequest();
case 11:
_context4.prev = 11;
@@ -649,14 +651,16 @@
return this.processes.CompleteTask(body).toPromise();
case 5:
this.toastService.successMessage();
this.toastService._successMessage();
_context5.next = 11;
break;
case 8:
_context5.prev = 8;
_context5.t0 = _context5["catch"](2);
this.toastService.badRequest();
this.toastService._badRequest();
case 11:
_context5.prev = 11;
@@ -695,14 +699,16 @@
return this.processes.CompleteTask(body).toPromise();
case 5:
this.toastService.successMessage('Processo concluído');
this.toastService._successMessage('Processo concluído');
_context6.next = 11;
break;
case 8:
_context6.prev = 8;
_context6.t0 = _context6["catch"](2);
this.toastService.badRequest();
this.toastService._badRequest();
case 11:
_context6.prev = 11;
File diff suppressed because one or more lines are too long
@@ -105,13 +105,13 @@ let ApproveEventModalPage = class ApproveEventModalPage {
const loader = this.toastService.loading();
try {
yield this.processes.PostTaskAction(body).toPromise();
this.toastService.successMessage('Evento aprovado', () => {
this.toastService._successMessage('Evento aprovado', () => {
this.router.navigate(['/home/gabinete-digital/event-list']);
this.modalController.dismiss(null);
});
}
catch (error) {
this.toastService.badRequest('Evento não aprovado');
this.toastService._badRequest('Evento não aprovado');
}
finally {
loader.remove();
@@ -131,12 +131,12 @@ let ApproveEventModalPage = class ApproveEventModalPage {
const loader = this.toastService.loading();
try {
yield this.processes.PostTaskAction(body).toPromise();
this.toastService.successMessage('Evento rejeitado', () => {
this.toastService._successMessage('Evento rejeitado', () => {
this.router.navigate(['/home/gabinete-digital/event-list']);
});
}
catch (error) {
this.toastService.badRequest('Evento não rejeitado');
this.toastService._badRequest('Evento não rejeitado');
}
finally {
loader.remove();
@@ -216,18 +216,20 @@
return this.processes.PostTaskAction(body).toPromise();
case 7:
this.toastService.successMessage('Evento aprovado', function () {
this.toastService._successMessage('Evento aprovado', function () {
_this4.router.navigate(['/home/gabinete-digital/event-list']);
_this4.modalController.dismiss(null);
});
_context.next = 13;
break;
case 10:
_context.prev = 10;
_context.t0 = _context["catch"](4);
this.toastService.badRequest('Evento não aprovado');
this.toastService._badRequest('Evento não aprovado');
case 13:
_context.prev = 13;
@@ -273,16 +275,18 @@
return this.processes.PostTaskAction(body).toPromise();
case 5:
this.toastService.successMessage('Evento rejeitado', function () {
this.toastService._successMessage('Evento rejeitado', function () {
_this5.router.navigate(['/home/gabinete-digital/event-list']);
});
_context2.next = 11;
break;
case 8:
_context2.prev = 8;
_context2.t0 = _context2["catch"](2);
this.toastService.badRequest('Evento não rejeitado');
this.toastService._badRequest('Evento não rejeitado');
case 11:
_context2.prev = 11;
@@ -96,12 +96,12 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "ApproveEventPage": function() { return /* binding */ ApproveEventPage; }
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! tslib */ 3786);
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! tslib */ 3786);
/* harmony import */ var _C_Users_ivan_gomes_development_gabinete_digital_node_modules_ngtools_webpack_src_loaders_direct_resource_js_approve_event_page_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !./node_modules/@ngtools/webpack/src/loaders/direct-resource.js!./approve-event.page.html */ 98520);
/* harmony import */ var _approve_event_page_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./approve-event.page.scss */ 87079);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/core */ 2316);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/router */ 71258);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @ionic/angular */ 7602);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/core */ 2316);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/router */ 71258);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ionic/angular */ 7602);
/* harmony import */ var src_app_services_alert_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/alert.service */ 36017);
/* harmony import */ var src_app_services_attachments_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/attachments.service */ 20985);
/* harmony import */ var src_app_services_processes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/processes.service */ 28621);
@@ -110,11 +110,13 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ionic_native_in_app_browser_ngx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ionic-native/in-app-browser/ngx */ 1331);
/* harmony import */ var src_app_shared_gabinete_digital_edit_event_to_approve_edit_event_page__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/shared/gabinete-digital/edit-event-to-approve/edit-event.page */ 82265);
/* harmony import */ var src_app_services_toast_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/services/toast.service */ 84465);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/common */ 54364);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/common */ 54364);
/* harmony import */ var src_app_modals_view_document_view_document_page__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/modals/view-document/view-document.page */ 10725);
/* harmony import */ var _services_sqlite_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../services/sqlite.service */ 90636);
/* harmony import */ var _services_background_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../services/background.service */ 65077);
/* harmony import */ var src_app_services_theme_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/services/theme.service */ 8140);
/* harmony import */ var src_app_services_offline_manager_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/services/offline-manager.service */ 28624);
@@ -136,7 +138,7 @@ __webpack_require__.r(__webpack_exports__);
let ApproveEventPage = class ApproveEventPage {
constructor(router, activatedRoute, modalController, processes, attachmentsService, popoverController, menu, alertService, iab, animationController, toastService, location, sqliteservice, platform, backgroundservice, ThemeService) {
constructor(router, activatedRoute, modalController, processes, attachmentsService, popoverController, menu, alertService, iab, animationController, toastService, location, sqliteservice, platform, backgroundservice, ThemeService, offlineManager) {
this.router = router;
this.activatedRoute = activatedRoute;
this.modalController = modalController;
@@ -153,13 +155,14 @@ let ApproveEventPage = class ApproveEventPage {
this.platform = platform;
this.backgroundservice = backgroundservice;
this.ThemeService = ThemeService;
this.offlineManager = offlineManager;
this.loadedEvent = false;
this.show = false;
this.months = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
this.days = ["Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado"];
this.approveEventDismiss = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
this.closeEventToApprove = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
this.AproveEventEditEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
this.approveEventDismiss = new _angular_core__WEBPACK_IMPORTED_MODULE_15__.EventEmitter();
this.closeEventToApprove = new _angular_core__WEBPACK_IMPORTED_MODULE_15__.EventEmitter();
this.AproveEventEditEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_15__.EventEmitter();
this.activatedRoute.paramMap.subscribe(params => {
// console.log(params["params"]);
if (params["params"].serialNumber) {
@@ -259,8 +262,8 @@ let ApproveEventPage = class ApproveEventPage {
console.log('Offlineee');
}
getTask() {
return (0,tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, function* () {
this.processes.GetTask(this.serialNumber).subscribe((res) => (0,tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, function* () {
return (0,tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, function* () {
this.processes.GetTask(this.serialNumber).subscribe((res) => (0,tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, function* () {
this.loadedEvent = yield this.processes.GetTask(this.serialNumber).toPromise();
console.log(this.loadedEvent);
this.today = new Date(this.loadedEvent.workflowInstanceDataFields.StartDate);
@@ -271,17 +274,17 @@ let ApproveEventPage = class ApproveEventPage {
});
}
approveTask(serialNumber) {
return (0,tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, function* () {
return (0,tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, function* () {
let body = { "serialNumber": serialNumber, "action": "Aprovar" };
console.log(body);
const loader = this.toastService.loading();
try {
yield this.processes.PostTaskAction(body).toPromise();
this.toastService.successMessage();
this.toastService._successMessage();
this.goBack();
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
@@ -298,7 +301,7 @@ let ApproveEventPage = class ApproveEventPage {
});
}
emendTask(serialNumber) {
return (0,tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, function* () {
return (0,tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, function* () {
console.log('Desktop');
const modal = yield this.modalController.create({
component: src_app_pages_agenda_emend_message_modal_emend_message_modal_page__WEBPACK_IMPORTED_MODULE_5__.EmendMessageModalPage,
@@ -308,7 +311,7 @@ let ApproveEventPage = class ApproveEventPage {
});
yield modal.present();
modal.onDidDismiss()
.then((res) => (0,tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, function* () {
.then((res) => (0,tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, function* () {
console.log(res.data);
if (res.data !== '') {
let body = {
@@ -321,12 +324,16 @@ let ApproveEventPage = class ApproveEventPage {
console.log(body);
const loader = this.toastService.loading();
try {
yield this.processes.PostTaskAction(body).toPromise();
this.toastService.successMessage('Pedido enviado');
yield this.processes.PostTaskAction(body).toPromise()
.catch(() => {
console.log('Send event to approve for revition');
this.offlineManager.storeRequestData('event-listRever', body);
});
this.toastService._successMessage('Pedido enviado');
this.goBack();
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
@@ -341,17 +348,17 @@ let ApproveEventPage = class ApproveEventPage {
});
}
rejeitar(serialNumber) {
return (0,tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, function* () {
return (0,tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, function* () {
let body = { "serialNumber": serialNumber, "action": "Rejeitar" };
console.log(body);
const loader = this.toastService.loading();
try {
yield this.processes.PostTaskAction(body).toPromise();
yield this.toastService.successMessage('Processo rejeitado');
yield this.toastService._successMessage('Processo rejeitado');
this.goBack();
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
@@ -359,7 +366,7 @@ let ApproveEventPage = class ApproveEventPage {
});
}
viewDocument(DocId, Document) {
return (0,tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, function* () {
return (0,tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, function* () {
const modal = yield this.modalController.create({
component: src_app_modals_view_document_view_document_page__WEBPACK_IMPORTED_MODULE_10__.ViewDocumentPage,
componentProps: {
@@ -381,7 +388,7 @@ let ApproveEventPage = class ApproveEventPage {
});
}
openOptions(ev) {
return (0,tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, function* () {
return (0,tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, function* () {
const popover = yield this.popoverController.create({
component: src_app_pages_agenda_event_actions_popover_event_actions_popover_page__WEBPACK_IMPORTED_MODULE_6__.EventActionsPopoverPage,
cssClass: 'events-options',
@@ -399,7 +406,7 @@ let ApproveEventPage = class ApproveEventPage {
this.menu.open();
}
openEmendMessageModal(serialNumber) {
return (0,tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, function* () {
return (0,tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, function* () {
const modal = yield this.modalController.create({
component: src_app_pages_agenda_emend_message_modal_emend_message_modal_page__WEBPACK_IMPORTED_MODULE_5__.EmendMessageModalPage,
componentProps: {},
@@ -407,7 +414,7 @@ let ApproveEventPage = class ApproveEventPage {
backdropDismiss: false
});
yield modal.present();
modal.onDidDismiss().then((res) => (0,tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, function* () {
modal.onDidDismiss().then((res) => (0,tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, function* () {
console.log(res.data);
if (res.data !== '') {
let body = {
@@ -421,11 +428,11 @@ let ApproveEventPage = class ApproveEventPage {
const loader = this.toastService.loading();
try {
yield this.processes.PostTaskAction(body).toPromise();
this.toastService.successMessage();
this.toastService._successMessage();
this.goBack();
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
@@ -446,7 +453,7 @@ let ApproveEventPage = class ApproveEventPage {
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
}
editar(serialNumber) {
return (0,tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, function* () {
return (0,tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, function* () {
const modal = yield this.modalController.create({
component: src_app_shared_gabinete_digital_edit_event_to_approve_edit_event_page__WEBPACK_IMPORTED_MODULE_8__.EditEventToApproveComponent,
componentProps: {
@@ -464,31 +471,32 @@ let ApproveEventPage = class ApproveEventPage {
}
};
ApproveEventPage.ctorParameters = () => [
{ type: _angular_router__WEBPACK_IMPORTED_MODULE_16__.Router },
{ type: _angular_router__WEBPACK_IMPORTED_MODULE_16__.ActivatedRoute },
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_17__.ModalController },
{ type: _angular_router__WEBPACK_IMPORTED_MODULE_17__.Router },
{ type: _angular_router__WEBPACK_IMPORTED_MODULE_17__.ActivatedRoute },
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_18__.ModalController },
{ type: src_app_services_processes_service__WEBPACK_IMPORTED_MODULE_4__.ProcessesService },
{ type: src_app_services_attachments_service__WEBPACK_IMPORTED_MODULE_3__.AttachmentsService },
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_17__.PopoverController },
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_17__.MenuController },
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_18__.PopoverController },
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_18__.MenuController },
{ type: src_app_services_alert_service__WEBPACK_IMPORTED_MODULE_2__.AlertService },
{ type: _ionic_native_in_app_browser_ngx__WEBPACK_IMPORTED_MODULE_7__.InAppBrowser },
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_17__.AnimationController },
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_18__.AnimationController },
{ type: src_app_services_toast_service__WEBPACK_IMPORTED_MODULE_9__.ToastService },
{ type: _angular_common__WEBPACK_IMPORTED_MODULE_18__.Location },
{ type: _angular_common__WEBPACK_IMPORTED_MODULE_19__.Location },
{ type: _services_sqlite_service__WEBPACK_IMPORTED_MODULE_11__.SqliteService },
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_17__.Platform },
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_18__.Platform },
{ type: _services_background_service__WEBPACK_IMPORTED_MODULE_12__.BackgroundService },
{ type: src_app_services_theme_service__WEBPACK_IMPORTED_MODULE_13__.ThemeService }
{ type: src_app_services_theme_service__WEBPACK_IMPORTED_MODULE_13__.ThemeService },
{ type: src_app_services_offline_manager_service__WEBPACK_IMPORTED_MODULE_14__.OfflineManagerService }
];
ApproveEventPage.propDecorators = {
InstanceId: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_14__.Input }],
approveEventDismiss: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_14__.Output }],
closeEventToApprove: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_14__.Output }],
AproveEventEditEvent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_14__.Output }]
InstanceId: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_15__.Input }],
approveEventDismiss: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_15__.Output }],
closeEventToApprove: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_15__.Output }],
AproveEventEditEvent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_15__.Output }]
};
ApproveEventPage = (0,tslib__WEBPACK_IMPORTED_MODULE_15__.__decorate)([
(0,_angular_core__WEBPACK_IMPORTED_MODULE_14__.Component)({
ApproveEventPage = (0,tslib__WEBPACK_IMPORTED_MODULE_16__.__decorate)([
(0,_angular_core__WEBPACK_IMPORTED_MODULE_15__.Component)({
selector: 'app-approve-event',
template: _C_Users_ivan_gomes_development_gabinete_digital_node_modules_ngtools_webpack_src_loaders_direct_resource_js_approve_event_page_html__WEBPACK_IMPORTED_MODULE_0__.default,
styles: [_approve_event_page_scss__WEBPACK_IMPORTED_MODULE_1__]
@@ -169,7 +169,7 @@
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
var tslib__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
/*! tslib */
3786);
/* harmony import */
@@ -187,19 +187,19 @@
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
var _angular_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
/*! @angular/core */
2316);
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
var _angular_router__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
/*! @angular/router */
71258);
/* harmony import */
var _ionic_angular__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
var _ionic_angular__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
/*! @ionic/angular */
7602);
/* harmony import */
@@ -253,7 +253,7 @@
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
var _angular_common__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
/*! @angular/common */
54364);
/* harmony import */
@@ -280,9 +280,15 @@
var src_app_services_theme_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
/*! src/app/services/theme.service */
8140);
/* harmony import */
var src_app_services_offline_manager_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
/*! src/app/services/offline-manager.service */
28624);
var _ApproveEventPage = /*#__PURE__*/function () {
function ApproveEventPage(router, activatedRoute, modalController, processes, attachmentsService, popoverController, menu, alertService, iab, animationController, toastService, location, sqliteservice, platform, backgroundservice, ThemeService) {
function ApproveEventPage(router, activatedRoute, modalController, processes, attachmentsService, popoverController, menu, alertService, iab, animationController, toastService, location, sqliteservice, platform, backgroundservice, ThemeService, offlineManager) {
var _this = this;
_classCallCheck(this, ApproveEventPage);
@@ -303,13 +309,14 @@
this.platform = platform;
this.backgroundservice = backgroundservice;
this.ThemeService = ThemeService;
this.offlineManager = offlineManager;
this.loadedEvent = false;
this.show = false;
this.months = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
this.days = ["Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado"];
this.approveEventDismiss = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
this.closeEventToApprove = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
this.AproveEventEditEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
this.approveEventDismiss = new _angular_core__WEBPACK_IMPORTED_MODULE_15__.EventEmitter();
this.closeEventToApprove = new _angular_core__WEBPACK_IMPORTED_MODULE_15__.EventEmitter();
this.AproveEventEditEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_15__.EventEmitter();
this.activatedRoute.paramMap.subscribe(function (params) {
// console.log(params["params"]);
if (params["params"].serialNumber) {
@@ -430,7 +437,7 @@
}, {
key: "getTask",
value: function getTask() {
return (0, tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
return (0, tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
var _this5 = this;
return regeneratorRuntime.wrap(function _callee2$(_context2) {
@@ -438,7 +445,7 @@
switch (_context2.prev = _context2.next) {
case 0:
this.processes.GetTask(this.serialNumber).subscribe(function (res) {
return (0, tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(_this5, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
return (0, tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(_this5, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
@@ -474,7 +481,7 @@
}, {
key: "approveTask",
value: function approveTask(serialNumber) {
return (0, tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
return (0, tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
var body, loader;
return regeneratorRuntime.wrap(function _callee3$(_context3) {
while (1) {
@@ -491,7 +498,8 @@
return this.processes.PostTaskAction(body).toPromise();
case 6:
this.toastService.successMessage();
this.toastService._successMessage();
this.goBack();
_context3.next = 13;
break;
@@ -499,7 +507,8 @@
case 10:
_context3.prev = 10;
_context3.t0 = _context3["catch"](3);
this.toastService.badRequest();
this.toastService._badRequest();
case 13:
_context3.prev = 13;
@@ -517,7 +526,7 @@
}, {
key: "emendTask",
value: function emendTask(serialNumber) {
return (0, tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
return (0, tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
var _this6 = this;
var modal;
@@ -541,7 +550,9 @@
case 6:
modal.onDidDismiss().then(function (res) {
return (0, tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(_this6, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
return (0, tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(_this6, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
var _this7 = this;
var body, loader;
return regeneratorRuntime.wrap(function _callee4$(_context4) {
while (1) {
@@ -565,10 +576,15 @@
loader = this.toastService.loading();
_context4.prev = 5;
_context4.next = 8;
return this.processes.PostTaskAction(body).toPromise();
return this.processes.PostTaskAction(body).toPromise()["catch"](function () {
console.log('Send event to approve for revition');
_this7.offlineManager.storeRequestData('event-listRever', body);
});
case 8:
this.toastService.successMessage('Pedido enviado');
this.toastService._successMessage('Pedido enviado');
this.goBack();
_context4.next = 15;
break;
@@ -576,7 +592,8 @@
case 12:
_context4.prev = 12;
_context4.t0 = _context4["catch"](5);
this.toastService.badRequest();
this.toastService._badRequest();
case 15:
_context4.prev = 15;
@@ -608,7 +625,7 @@
}, {
key: "rejeitar",
value: function rejeitar(serialNumber) {
return (0, tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
return (0, tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
var body, loader;
return regeneratorRuntime.wrap(function _callee6$(_context6) {
while (1) {
@@ -626,7 +643,7 @@
case 6:
_context6.next = 8;
return this.toastService.successMessage('Processo rejeitado');
return this.toastService._successMessage('Processo rejeitado');
case 8:
this.goBack();
@@ -636,7 +653,8 @@
case 11:
_context6.prev = 11;
_context6.t0 = _context6["catch"](3);
this.toastService.badRequest();
this.toastService._badRequest();
case 14:
_context6.prev = 14;
@@ -654,7 +672,7 @@
}, {
key: "viewDocument",
value: function viewDocument(DocId, Document) {
return (0, tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
return (0, tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
var modal;
return regeneratorRuntime.wrap(function _callee7$(_context7) {
while (1) {
@@ -695,7 +713,7 @@
}, {
key: "openOptions",
value: function openOptions(ev) {
return (0, tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
return (0, tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
var popover;
return regeneratorRuntime.wrap(function _callee8$(_context8) {
while (1) {
@@ -737,8 +755,8 @@
}, {
key: "openEmendMessageModal",
value: function openEmendMessageModal(serialNumber) {
return (0, tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
var _this7 = this;
return (0, tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
var _this8 = this;
var modal;
return regeneratorRuntime.wrap(function _callee10$(_context10) {
@@ -760,7 +778,7 @@
case 5:
modal.onDidDismiss().then(function (res) {
return (0, tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(_this7, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
return (0, tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(_this8, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
var body, loader;
return regeneratorRuntime.wrap(function _callee9$(_context9) {
while (1) {
@@ -787,7 +805,8 @@
return this.processes.PostTaskAction(body).toPromise();
case 8:
this.toastService.successMessage();
this.toastService._successMessage();
this.goBack();
_context9.next = 15;
break;
@@ -795,7 +814,8 @@
case 12:
_context9.prev = 12;
_context9.t0 = _context9["catch"](5);
this.toastService.badRequest();
this.toastService._badRequest();
case 15:
_context9.prev = 15;
@@ -836,8 +856,8 @@
}, {
key: "editar",
value: function editar(serialNumber) {
return (0, tslib__WEBPACK_IMPORTED_MODULE_15__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
var _this8 = this;
return (0, tslib__WEBPACK_IMPORTED_MODULE_16__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
var _this9 = this;
var modal;
return regeneratorRuntime.wrap(function _callee11$(_context11) {
@@ -862,7 +882,7 @@
case 5:
modal.onDidDismiss().then(function (res) {
_this8.getTask();
_this9.getTask();
});
case 6:
@@ -880,55 +900,57 @@
_ApproveEventPage.ctorParameters = function () {
return [{
type: _angular_router__WEBPACK_IMPORTED_MODULE_16__.Router
type: _angular_router__WEBPACK_IMPORTED_MODULE_17__.Router
}, {
type: _angular_router__WEBPACK_IMPORTED_MODULE_16__.ActivatedRoute
type: _angular_router__WEBPACK_IMPORTED_MODULE_17__.ActivatedRoute
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_17__.ModalController
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_18__.ModalController
}, {
type: src_app_services_processes_service__WEBPACK_IMPORTED_MODULE_4__.ProcessesService
}, {
type: src_app_services_attachments_service__WEBPACK_IMPORTED_MODULE_3__.AttachmentsService
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_17__.PopoverController
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_18__.PopoverController
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_17__.MenuController
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_18__.MenuController
}, {
type: src_app_services_alert_service__WEBPACK_IMPORTED_MODULE_2__.AlertService
}, {
type: _ionic_native_in_app_browser_ngx__WEBPACK_IMPORTED_MODULE_7__.InAppBrowser
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_17__.AnimationController
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_18__.AnimationController
}, {
type: src_app_services_toast_service__WEBPACK_IMPORTED_MODULE_9__.ToastService
}, {
type: _angular_common__WEBPACK_IMPORTED_MODULE_18__.Location
type: _angular_common__WEBPACK_IMPORTED_MODULE_19__.Location
}, {
type: _services_sqlite_service__WEBPACK_IMPORTED_MODULE_11__.SqliteService
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_17__.Platform
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_18__.Platform
}, {
type: _services_background_service__WEBPACK_IMPORTED_MODULE_12__.BackgroundService
}, {
type: src_app_services_theme_service__WEBPACK_IMPORTED_MODULE_13__.ThemeService
}, {
type: src_app_services_offline_manager_service__WEBPACK_IMPORTED_MODULE_14__.OfflineManagerService
}];
};
_ApproveEventPage.propDecorators = {
InstanceId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_14__.Input
type: _angular_core__WEBPACK_IMPORTED_MODULE_15__.Input
}],
approveEventDismiss: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_14__.Output
type: _angular_core__WEBPACK_IMPORTED_MODULE_15__.Output
}],
closeEventToApprove: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_14__.Output
type: _angular_core__WEBPACK_IMPORTED_MODULE_15__.Output
}],
AproveEventEditEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_14__.Output
type: _angular_core__WEBPACK_IMPORTED_MODULE_15__.Output
}]
};
_ApproveEventPage = (0, tslib__WEBPACK_IMPORTED_MODULE_15__.__decorate)([(0, _angular_core__WEBPACK_IMPORTED_MODULE_14__.Component)({
_ApproveEventPage = (0, tslib__WEBPACK_IMPORTED_MODULE_16__.__decorate)([(0, _angular_core__WEBPACK_IMPORTED_MODULE_15__.Component)({
selector: 'app-approve-event',
template: _C_Users_ivan_gomes_development_gabinete_digital_node_modules_ngtools_webpack_src_loaders_direct_resource_js_approve_event_page_html__WEBPACK_IMPORTED_MODULE_0__["default"],
styles: [_approve_event_page_scss__WEBPACK_IMPORTED_MODULE_1__]
@@ -166,16 +166,21 @@ let ExpedientePage = class ExpedientePage {
});
}
LoadList() {
this.skeletonLoader = true;
this.processes.GetTaskListExpediente(false).subscribe(result => {
this.taskslist = [];
this.skeletonLoader = false;
let res = result.reverse().filter(data => data.workflowInstanceDataFields.Status == "Active");
res.forEach(element => {
this.processes.GetTaskListExpediente(false).subscribe((res) => (0,tslib__WEBPACK_IMPORTED_MODULE_10__.__awaiter)(this, void 0, void 0, function* () {
this.skeletonLoader = true;
const result = res;
this.taskslist = new Array();
let ress = result.reverse().filter((data) => data.workflowInstanceDataFields.Status == "Active");
ress.forEach((element) => {
let task = this.expedienteTaskPipe.transform(element);
this.taskslist.push(task);
this.addProcessTODb(task);
});
this.expedientegbstore.reset(this.taskslist);
this.listToPresent = this.taskslist;
console.log('expediente list', this.listToPresent);
this.skeletonLoader = false;
}), (error) => {
this.getEventsFromLocalDb();
});
}
refreshing() {
@@ -198,6 +203,13 @@ let ExpedientePage = class ExpedientePage {
//console.log('ABRE');
this.router.navigate(['/home/gabinete-digital/expediente', serialNumber, 'gabinete-digital']);
}
addProcessTODb(task) {
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
}
else {
this.sqliteservice.addProcess(task);
}
}
SqliteAddExpediente(list) {
list.forEach((expediente) => {
let data = {
File diff suppressed because one or more lines are too long
@@ -317,42 +317,63 @@
value: function LoadList() {
var _this2 = this;
this.skeletonLoader = true;
this.processes.GetTaskListExpediente(false).subscribe(function (result) {
_this2.taskslist = [];
_this2.skeletonLoader = false;
var res = result.reverse().filter(function (data) {
return data.workflowInstanceDataFields.Status == "Active";
});
res.forEach(function (element) {
var task = _this2.expedienteTaskPipe.transform(element);
this.processes.GetTaskListExpediente(false).subscribe(function (res) {
return (0, tslib__WEBPACK_IMPORTED_MODULE_10__.__awaiter)(_this2, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var _this3 = this;
_this2.taskslist.push(task);
});
var result, ress;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
this.skeletonLoader = true;
result = res;
this.taskslist = new Array();
ress = result.reverse().filter(function (data) {
return data.workflowInstanceDataFields.Status == "Active";
});
ress.forEach(function (element) {
var task = _this3.expedienteTaskPipe.transform(element);
_this2.expedientegbstore.reset(_this2.taskslist);
_this3.taskslist.push(task);
_this3.addProcessTODb(task);
});
this.listToPresent = this.taskslist;
console.log('expediente list', this.listToPresent);
this.skeletonLoader = false;
case 8:
case "end":
return _context.stop();
}
}
}, _callee, this);
}));
}, function (error) {
_this2.getEventsFromLocalDb();
});
}
}, {
key: "refreshing",
value: function refreshing() {
return (0, tslib__WEBPACK_IMPORTED_MODULE_10__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var _this3 = this;
return (0, tslib__WEBPACK_IMPORTED_MODULE_10__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
var _this4 = this;
return regeneratorRuntime.wrap(function _callee$(_context) {
return regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context.prev = _context.next) {
switch (_context2.prev = _context2.next) {
case 0:
setTimeout(function () {
_this3.LoadList();
_this4.LoadList();
}, 1000);
case 1:
case "end":
return _context.stop();
return _context2.stop();
}
}
}, _callee);
}, _callee2);
}));
}
}, {
@@ -374,10 +395,17 @@
//console.log('ABRE');
this.router.navigate(['/home/gabinete-digital/expediente', serialNumber, 'gabinete-digital']);
}
}, {
key: "addProcessTODb",
value: function addProcessTODb(task) {
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {} else {
this.sqliteservice.addProcess(task);
}
}
}, {
key: "SqliteAddExpediente",
value: function SqliteAddExpediente(list) {
var _this4 = this;
var _this5 = this;
list.forEach(function (expediente) {
var data = {
@@ -397,13 +425,13 @@
workflowName: expediente.workflowName
};
_this4.sqliteservice.addExpediente(data);
_this5.sqliteservice.addExpediente(data);
});
}
}, {
key: "getEventsFromLocalDb",
value: function getEventsFromLocalDb() {
var _this5 = this;
var _this6 = this;
this.taskslist = new Array();
this.sqliteservice.getprocessByworkflow("Expediente").then(function (expediente) {
@@ -421,9 +449,9 @@
"activityInstanceName": element.activityInstanceName
};
_this5.taskslist.push(exped);
_this6.taskslist.push(exped);
});
_this5.listToPresent = _this5.taskslist;
_this6.listToPresent = _this6.taskslist;
});
}
}]);
File diff suppressed because one or more lines are too long
@@ -225,10 +225,10 @@ let ExpedientePrPage = class ExpedientePrPage {
sendExpedienteToPending() {
this.processes.SetTaskToPending(this.serialnumber).subscribe(res => {
console.log(res);
this.toastService.successMessage('Processo enviado para pendentes');
this.toastService._successMessage('Processo enviado para pendentes');
this.goBack();
}, (error) => {
this.toastService.badRequest('Processo não enviado para pendentes');
this.toastService._badRequest('Processo não enviado para pendentes');
});
}
LoadTaskDetail(serial) {
@@ -265,7 +265,7 @@ let ExpedientePrPage = class ExpedientePrPage {
});
}, (error) => {
try {
this.toastService.badRequest('Processo não encontrado');
this.toastService._badRequest('Processo não encontrado');
this.goBack();
}
catch (e) {
@@ -273,10 +273,10 @@ let ExpedientePrPage = class ExpedientePrPage {
}
finally {
if (error.status == 0) {
this.toastService.badRequest('Não é possível visualizar este processo no modo offline');
this.toastService._badRequest('Não é possível visualizar este processo no modo offline');
}
else {
this.toastService.badRequest('Processo não encontrado');
this.toastService._badRequest('Processo não encontrado');
}
}
});
@@ -376,10 +376,10 @@ let ExpedientePrPage = class ExpedientePrPage {
try {
yield this.processes.CompleteTask(body).toPromise();
this.close();
this.toastService.successMessage('Processo aprovado');
this.toastService._successMessage('Processo aprovado');
}
catch (error) {
this.toastService.badRequest('Processo não aprovado');
this.toastService._badRequest('Processo não aprovado');
}
finally {
loader.remove();
@@ -401,10 +401,10 @@ let ExpedientePrPage = class ExpedientePrPage {
try {
yield this.processes.CompleteTask(body).toPromise();
this.close();
this.toastService.successMessage();
this.toastService._successMessage();
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
@@ -520,11 +520,11 @@ let ExpedientePrPage = class ExpedientePrPage {
const loader = this.toastService.loading();
try {
yield this.processes.CompleteTask(otherbody).toPromise();
this.toastService.successMessage('Processo descartado');
this.toastService._successMessage('Processo descartado');
this.goBack();
}
catch (error) {
this.toastService.badRequest('Processo não descartado');
this.toastService._badRequest('Processo não descartado');
}
finally {
loader.remove();
@@ -539,11 +539,11 @@ let ExpedientePrPage = class ExpedientePrPage {
const loader = this.toastService.loading();
try {
yield this.processes.CompleteTask(body).toPromise();
// this.toastService.successMessage('Processo descartado');
// this.toastService._successMessage('Processo descartado');
this.goBack();
}
catch (error) {
// this.toastService.badRequest('Processo não descartado')
// this.toastService._badRequest('Processo não descartado')
}
finally {
loader.remove();
@@ -555,11 +555,11 @@ let ExpedientePrPage = class ExpedientePrPage {
const loader = this.toastService.loading();
try {
yield this.processes.UpdateTaskStatus(this.task.FolderId).toPromise();
this.toastService.successMessage();
this.toastService._successMessage();
this.goBack();
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
@@ -405,11 +405,11 @@
this.processes.SetTaskToPending(this.serialnumber).subscribe(function (res) {
console.log(res);
_this3.toastService.successMessage('Processo enviado para pendentes');
_this3.toastService._successMessage('Processo enviado para pendentes');
_this3.goBack();
}, function (error) {
_this3.toastService.badRequest('Processo não enviado para pendentes');
_this3.toastService._badRequest('Processo não enviado para pendentes');
});
}
}, {
@@ -455,16 +455,16 @@
});
}, function (error) {
try {
_this4.toastService.badRequest('Processo não encontrado');
_this4.toastService._badRequest('Processo não encontrado');
_this4.goBack();
} catch (e) {
window.history.back();
} finally {
if (error.status == 0) {
_this4.toastService.badRequest('Não é possível visualizar este processo no modo offline');
_this4.toastService._badRequest('Não é possível visualizar este processo no modo offline');
} else {
_this4.toastService.badRequest('Processo não encontrado');
_this4.toastService._badRequest('Processo não encontrado');
}
}
});
@@ -634,14 +634,17 @@
case 6:
this.close();
this.toastService.successMessage('Processo aprovado');
this.toastService._successMessage('Processo aprovado');
_context4.next = 13;
break;
case 10:
_context4.prev = 10;
_context4.t0 = _context4["catch"](3);
this.toastService.badRequest('Processo não aprovado');
this.toastService._badRequest('Processo não aprovado');
case 13:
_context4.prev = 13;
@@ -681,14 +684,17 @@
case 5:
this.close();
this.toastService.successMessage();
this.toastService._successMessage();
_context5.next = 12;
break;
case 9:
_context5.prev = 9;
_context5.t0 = _context5["catch"](2);
this.toastService.badRequest();
this.toastService._badRequest();
case 12:
_context5.prev = 12;
@@ -922,7 +928,8 @@
return this.processes.CompleteTask(otherbody).toPromise();
case 8:
this.toastService.successMessage('Processo descartado');
this.toastService._successMessage('Processo descartado');
this.goBack();
_context9.next = 15;
break;
@@ -930,7 +937,8 @@
case 12:
_context9.prev = 12;
_context9.t0 = _context9["catch"](5);
this.toastService.badRequest('Processo não descartado');
this.toastService._badRequest('Processo não descartado');
case 15:
_context9.prev = 15;
@@ -961,7 +969,7 @@
return this.processes.CompleteTask(body).toPromise();
case 28:
// this.toastService.successMessage('Processo descartado');
// this.toastService._successMessage('Processo descartado');
this.goBack();
_context9.next = 33;
break;
@@ -995,7 +1003,8 @@
return this.processes.UpdateTaskStatus(this.task.FolderId).toPromise();
case 45:
this.toastService.successMessage();
this.toastService._successMessage();
this.goBack();
_context9.next = 52;
break;
@@ -1003,7 +1012,8 @@
case 49:
_context9.prev = 49;
_context9.t2 = _context9["catch"](42);
this.toastService.badRequest();
this.toastService._badRequest();
case 52:
_context9.prev = 52;
@@ -190,7 +190,8 @@ let ExpedientesPrPage = class ExpedientesPrPage {
}, 2000);
}
goToExpediente(serialNumber) {
this.router.navigate(['/home/gabinete-digital/expedientes-pr', serialNumber, 'gabinete-digital']);
//this.router.navigate(['/home/gabinete-digital/expedientes-pr',serialNumber,'gabinete-digital']);
this.router.navigate(['/home/gabinete-digital/expediente', serialNumber, 'gabinete-digital']);
}
viewExpedientDetail(serialNumber) {
return (0,tslib__WEBPACK_IMPORTED_MODULE_11__.__awaiter)(this, void 0, void 0, function* () {
@@ -351,7 +351,8 @@
}, {
key: "goToExpediente",
value: function goToExpediente(serialNumber) {
this.router.navigate(['/home/gabinete-digital/expedientes-pr', serialNumber, 'gabinete-digital']);
//this.router.navigate(['/home/gabinete-digital/expedientes-pr',serialNumber,'gabinete-digital']);
this.router.navigate(['/home/gabinete-digital/expediente', serialNumber, 'gabinete-digital']);
}
}, {
key: "viewExpedientDetail",
File diff suppressed because one or more lines are too long
@@ -188,7 +188,7 @@ let PedidoPage = class PedidoPage {
catch (e) {
window.history.back();
}
this.toastService.badRequest('Processo não encontrado');
this.toastService._badRequest('Processo não encontrado');
}
});
});
@@ -358,11 +358,11 @@ let PedidoPage = class PedidoPage {
const loader = this.toastService.loading();
try {
yield this.processes.CompleteTask(body).toPromise();
this.toastService.successMessage();
this.toastService._successMessage();
this.close();
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
@@ -378,11 +378,11 @@ let PedidoPage = class PedidoPage {
documents,
note
}).toPromise();
this.toastService.successMessage('Processo arquivado');
this.toastService._successMessage('Processo arquivado');
this.close();
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
@@ -403,11 +403,11 @@ let PedidoPage = class PedidoPage {
const loader = this.toastService.loading();
try {
yield this.processes.CompleteTask(body).toPromise();
this.toastService.successMessage('Processo arquivado');
this.toastService._successMessage('Processo arquivado');
this.close();
}
catch (error) {
this.toastService.badRequest();
this.toastService._badRequest();
}
finally {
loader.remove();
@@ -418,7 +418,7 @@ let PedidoPage = class PedidoPage {
this.processes.SetTaskToPending(this.serialnumber).subscribe(res => {
this.goBack();
}, () => {
this.toastService.badRequest('Processo não encontrado');
this.toastService._badRequest('Processo não encontrado');
});
}
openExpedientActionsModal(taskAction, task) {
File diff suppressed because one or more lines are too long
@@ -339,7 +339,7 @@
window.history.back();
}
_this3.toastService.badRequest('Processo não encontrado');
_this3.toastService._badRequest('Processo não encontrado');
}
});
@@ -581,7 +581,8 @@
return this.processes.CompleteTask(body).toPromise();
case 5:
this.toastService.successMessage();
this.toastService._successMessage();
this.close();
_context4.next = 12;
break;
@@ -589,7 +590,8 @@
case 9:
_context4.prev = 9;
_context4.t0 = _context4["catch"](2);
this.toastService.badRequest();
this.toastService._badRequest();
case 12:
_context4.prev = 12;
@@ -623,7 +625,8 @@
}).toPromise();
case 4:
this.toastService.successMessage('Processo arquivado');
this.toastService._successMessage('Processo arquivado');
this.close();
_context5.next = 11;
break;
@@ -631,7 +634,8 @@
case 8:
_context5.prev = 8;
_context5.t0 = _context5["catch"](1);
this.toastService.badRequest();
this.toastService._badRequest();
case 11:
_context5.prev = 11;
@@ -670,7 +674,8 @@
return this.processes.CompleteTask(body).toPromise();
case 5:
this.toastService.successMessage('Processo arquivado');
this.toastService._successMessage('Processo arquivado');
this.close();
_context6.next = 12;
break;
@@ -678,7 +683,8 @@
case 9:
_context6.prev = 9;
_context6.t0 = _context6["catch"](2);
this.toastService.badRequest();
this.toastService._badRequest();
case 12:
_context6.prev = 12;
@@ -701,7 +707,7 @@
this.processes.SetTaskToPending(this.serialnumber).subscribe(function (res) {
_this7.goBack();
}, function () {
_this7.toastService.badRequest('Processo não encontrado');
_this7.toastService._badRequest('Processo não encontrado');
});
}
}, {
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
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
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
@@ -193,7 +193,7 @@ let ViewPublicationsPage = class ViewPublicationsPage {
component: _new_publication_new_publication_page__WEBPACK_IMPORTED_MODULE_8__.NewPublicationPage,
componentProps: {
publicationType: publicationType,
folderId: folderId,
folderId: this.folderId,
},
cssClass: 'new-publication modal modal-desktop',
backdropDismiss: false
@@ -341,7 +341,7 @@
component: _new_publication_new_publication_page__WEBPACK_IMPORTED_MODULE_8__.NewPublicationPage,
componentProps: {
publicationType: publicationType,
folderId: folderId
folderId: this.folderId
},
cssClass: 'new-publication modal modal-desktop',
backdropDismiss: false
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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,317 +0,0 @@
"use strict";
(self["webpackChunkgabinete_digital"] = self["webpackChunkgabinete_digital"] || []).push([["default-src_app_services_background_service_ts-src_app_services_toast_service_ts"],{
/***/ 65077:
/*!************************************************!*\
!*** ./src/app/services/background.service.ts ***!
\************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "BackgroundService": function() { return /* binding */ BackgroundService; }
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ 3786);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2316);
/* harmony import */ var src_app_services_theme_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/services/theme.service */ 8140);
let BackgroundService = class BackgroundService {
constructor(themeservice) {
this.themeservice = themeservice;
this.callBacks = [];
}
online() {
if (this.themeservice.currentTheme == 'gov') {
document.body.style.setProperty(`--color`, "#d9d9d9");
document.body.style.setProperty(`--color2`, "#f0f0f0");
document.body.style.setProperty(`--color3`, "#d9d9d9");
document.body.style.setProperty(`--color4`, "#d9d9d9ee");
document.body.style.setProperty(`--color5`, "#ececec");
}
else {
document.body.style.setProperty(`--color`, "#0782C9");
document.body.style.setProperty(`--color2`, "#45BAFF");
document.body.style.setProperty(`--color3`, "#0782C9");
document.body.style.setProperty(`--color4`, "#0782c9f0");
document.body.style.setProperty(`--color5`, "#45BAFF");
}
this.callBacks.forEach((e) => {
if (e.type == 'Online') {
e.funx();
}
});
}
offline() {
document.body.style.setProperty(`--color`, "#ffb703");
document.body.style.setProperty(`--color2`, "#ffb703");
document.body.style.setProperty(`--color3`, "#ffb703");
document.body.style.setProperty(`--color4`, "#ffb703");
document.body.style.setProperty(`--color5`, "#ffb703");
this.callBacks.forEach((e) => {
if (e.type == 'Offline') {
e.funx();
}
});
}
registerBackService(type, funx, object = '') {
this.callBacks.push({
type,
funx,
object
});
}
greyTheme() {
document.body.style.setProperty(`--color`, "#D9D9D9");
document.body.style.setProperty(`--color2`, "#f0f0f0");
document.body.style.setProperty(`--color3`, "#D9D9D9");
document.body.style.setProperty(`--color4`, "#d9d9d9ee");
document.body.style.setProperty(`--color5`, "#ececec");
document.body.style.setProperty(`--header-container-background`, "#fff");
document.body.style.setProperty(`--headercolor`, "#000");
document.body.style.setProperty(`--login-background`, "linear-gradient(180deg, #c63527 60%, #000 100%) !important");
document.body.style.setProperty(`--button-hover`, "#ffb81c");
document.body.style.setProperty(`--inicio-open-page-from-box`, "#c63527");
document.body.style.setProperty(`--header-tab-top-border`, "#000");
document.body.style.setProperty(`--header-tab-text-white`, "rgb(0, 0, 0)");
document.body.style.setProperty(`--header-tab-text-white`, "rgb(0, 0, 0)");
document.body.style.setProperty(`--header-bottom-line-background`, "rgb(255, 0, 0)");
document.body.style.setProperty(`--header-bottom-line-background-image`, "linear-gradient(to right, #C63527, #FFB81C, #FFC72C)");
}
blueTheme() {
document.body.style.setProperty(`--color`, "#0782C9");
document.body.style.setProperty(`--color2`, "#45BAFF");
document.body.style.setProperty(`--color3`, "#0782C9");
document.body.style.setProperty(`--color4`, "#0782c9f0");
document.body.style.setProperty(`--color5`, "#f7f5f2");
document.body.style.setProperty(`--header-container-background`, "linear-gradient(270deg, var(--color2) 0%, var(--color3) 23.44%, var(--color4) 78.13%, var(--color5) 100%) !important");
document.body.style.setProperty(`--headercolor`, "#000");
document.body.style.setProperty(`--header-bottom-line-background`, "linear-gradient(270deg, var(--color2) 0%, var(--color3) 23.44%, var(--color4) 78.13%, var(--color5) 100%) !important");
document.body.style.setProperty(`--header-bottom-line-background-image`, "linear-gradient(270deg, var(--color2) 0%, var(--color3) 23.44%, var(--color4) 78.13%, var(--color5) 100%) !important");
document.body.style.setProperty(`--login-background`, "linear-gradient(180deg, #42b9fe 0%, #0782c9 100%) !importantt");
document.body.style.setProperty(`--button-hover`, "#42b9fe");
document.body.style.setProperty(`--inicio-open-page-from-box`, "#42b9fe");
document.body.style.setProperty(`--header-tab-top-border`, "white");
document.body.style.setProperty(`--header-tab-text-white`, "white");
}
default() {
document.body.style.setProperty(`--color`, "#0782C9");
document.body.style.setProperty(`--color2`, "#45BAFF");
document.body.style.setProperty(`--color3`, "#0782C9");
document.body.style.setProperty(`--color4`, "#0782c9f0");
document.body.style.setProperty(`--color5`, "#45BAFF");
}
};
BackgroundService.ctorParameters = () => [
{ type: src_app_services_theme_service__WEBPACK_IMPORTED_MODULE_0__.ThemeService }
];
BackgroundService = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.Injectable)({
providedIn: 'root'
})
], BackgroundService);
/***/ }),
/***/ 8140:
/*!*******************************************!*\
!*** ./src/app/services/theme.service.ts ***!
\*******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "ThemeService": function() { return /* binding */ ThemeService; }
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ 3786);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2316);
/* harmony import */ var src_app_services_storage_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/services/storage.service */ 71188);
let ThemeService = class ThemeService {
constructor(storageservice) {
this.storageservice = storageservice;
this.themes = [
'gov',
'default',
'tribunal'
];
this.currentTheme = 'gov';
}
setTheme(theme) {
document.body.classList.remove("gov");
document.body.classList.remove("default");
document.body.classList.remove("tribunal");
document.body.classList.add(theme);
this.currentTheme = theme;
console.log('Current theme', theme);
this.storageservice.store('theme', theme);
}
};
ThemeService.ctorParameters = () => [
{ type: src_app_services_storage_service__WEBPACK_IMPORTED_MODULE_0__.StorageService }
];
ThemeService = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.Injectable)({
providedIn: 'root'
})
], ThemeService);
/***/ }),
/***/ 84465:
/*!*******************************************!*\
!*** ./src/app/services/toast.service.ts ***!
\*******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "ToastService": function() { return /* binding */ ToastService; }
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 3786);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2316);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ionic/angular */ 7602);
let ToastService = class ToastService {
constructor(toastController, animationController, modalController) {
this.toastController = toastController;
this.animationController = animationController;
this.modalController = modalController;
}
ngOnInit() { }
presentToast(infoMessage) {
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
const toast = yield this.toastController.create({
message: infoMessage,
duration: 2000
});
toast.present();
});
}
successMessage(message, callback) {
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
let notification = document.createElement('div');
notification.className = 'notification';
notification.innerHTML = `
<div class="main-content width-100 pa-20">
<p class="message d-flex align-center success">
<ion-icon slot="end" class="title-icon pr-10" src="/assets/images/nofitication-success.svg"></ion-icon>
<p class="text">{{ message }}</p>
</p>
</div>
`;
// document.body.append(notification)
notification.querySelector('.text').innerHTML = message || 'Processo efetuado';
setTimeout(() => {
if (callback) {
callback();
}
notification.style.right = "-100%";
setTimeout(() => {
notification.remove();
}, 1000);
}, 6000);
});
}
badRequest(message, callback) {
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
let notification = document.createElement('div');
notification.className = 'notification';
notification.innerHTML = `
<div class="main-content width-100 pa-20">
<p class="message d-flex align-center faild">
<ion-icon slot="end" class="title-icon pr-10" src="/assets/images/notification-error.svg"></ion-icon>
<p class="text">{{ message }}</p>
</p>
</div>
`;
notification.style.animationName = 'notification-top';
// document.body.append(notification)
notification.querySelector('.text').innerHTML = message || 'Processo não efetuado';
setTimeout(() => {
if (callback) {
callback();
}
notification.style.right = "-100%";
setTimeout(() => {
notification.remove();
}, 1000);
}, 6000);
});
}
notificationMessage(message, callback, data) {
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
let notification = document.createElement('div');
notification.className = 'notificationPush';
notification.innerHTML = `
<div class="main-content width-100 pa-20">
<p class="message d-flex align-left">
<p class="text">{{ message }}</p>
</p>
</div>
`;
let funcx = () => {
callback(data);
document.body.removeEventListener('click', funcx);
notification.remove();
};
// document.body.append(notification)
document.body.addEventListener('click', funcx);
notification.querySelector('.text').innerHTML = message || 'Processo efetuado';
setTimeout(() => {
notification.style.top = "-100%";
setTimeout(() => {
notification.remove();
}, 1000);
}, 6000);
});
}
loading() {
let loader = document.createElement('div');
loader.innerHTML = `
<div class="loading-blocker">
<div class="loading-blocker-container">
<img src="/assets/images/Blocks-loader.gif" />
</div>
</div>
`;
document.body.append(loader);
loader.addEventListener('click', () => {
// loader.remove()
});
return loader;
}
};
ToastService.ctorParameters = () => [
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_1__.ToastController },
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_1__.AnimationController },
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_1__.ModalController }
];
ToastService = (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.Injectable)({
providedIn: 'root'
})
], ToastService);
/***/ })
}]);
//# sourceMappingURL=default-src_app_services_background_service_ts-src_app_services_toast_service_ts-es2015.js.map
@@ -1,449 +0,0 @@
(function () {
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
(self["webpackChunkgabinete_digital"] = self["webpackChunkgabinete_digital"] || []).push([["default-src_app_services_background_service_ts-src_app_services_toast_service_ts"], {
/***/
65077: function _(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */
__webpack_require__.d(__webpack_exports__, {
/* harmony export */
"BackgroundService": function BackgroundService() {
return (
/* binding */
_BackgroundService
);
}
/* harmony export */
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! tslib */
3786);
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/core */
2316);
/* harmony import */
var src_app_services_theme_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! src/app/services/theme.service */
8140);
var _BackgroundService = /*#__PURE__*/function () {
function BackgroundService(themeservice) {
_classCallCheck(this, BackgroundService);
this.themeservice = themeservice;
this.callBacks = [];
}
_createClass(BackgroundService, [{
key: "online",
value: function online() {
if (this.themeservice.currentTheme == 'gov') {
document.body.style.setProperty("--color", "#d9d9d9");
document.body.style.setProperty("--color2", "#f0f0f0");
document.body.style.setProperty("--color3", "#d9d9d9");
document.body.style.setProperty("--color4", "#d9d9d9ee");
document.body.style.setProperty("--color5", "#ececec");
} else {
document.body.style.setProperty("--color", "#0782C9");
document.body.style.setProperty("--color2", "#45BAFF");
document.body.style.setProperty("--color3", "#0782C9");
document.body.style.setProperty("--color4", "#0782c9f0");
document.body.style.setProperty("--color5", "#45BAFF");
}
this.callBacks.forEach(function (e) {
if (e.type == 'Online') {
e.funx();
}
});
}
}, {
key: "offline",
value: function offline() {
document.body.style.setProperty("--color", "#ffb703");
document.body.style.setProperty("--color2", "#ffb703");
document.body.style.setProperty("--color3", "#ffb703");
document.body.style.setProperty("--color4", "#ffb703");
document.body.style.setProperty("--color5", "#ffb703");
this.callBacks.forEach(function (e) {
if (e.type == 'Offline') {
e.funx();
}
});
}
}, {
key: "registerBackService",
value: function registerBackService(type, funx) {
var object = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
this.callBacks.push({
type: type,
funx: funx,
object: object
});
}
}, {
key: "greyTheme",
value: function greyTheme() {
document.body.style.setProperty("--color", "#D9D9D9");
document.body.style.setProperty("--color2", "#f0f0f0");
document.body.style.setProperty("--color3", "#D9D9D9");
document.body.style.setProperty("--color4", "#d9d9d9ee");
document.body.style.setProperty("--color5", "#ececec");
document.body.style.setProperty("--header-container-background", "#fff");
document.body.style.setProperty("--headercolor", "#000");
document.body.style.setProperty("--login-background", "linear-gradient(180deg, #c63527 60%, #000 100%) !important");
document.body.style.setProperty("--button-hover", "#ffb81c");
document.body.style.setProperty("--inicio-open-page-from-box", "#c63527");
document.body.style.setProperty("--header-tab-top-border", "#000");
document.body.style.setProperty("--header-tab-text-white", "rgb(0, 0, 0)");
document.body.style.setProperty("--header-tab-text-white", "rgb(0, 0, 0)");
document.body.style.setProperty("--header-bottom-line-background", "rgb(255, 0, 0)");
document.body.style.setProperty("--header-bottom-line-background-image", "linear-gradient(to right, #C63527, #FFB81C, #FFC72C)");
}
}, {
key: "blueTheme",
value: function blueTheme() {
document.body.style.setProperty("--color", "#0782C9");
document.body.style.setProperty("--color2", "#45BAFF");
document.body.style.setProperty("--color3", "#0782C9");
document.body.style.setProperty("--color4", "#0782c9f0");
document.body.style.setProperty("--color5", "#f7f5f2");
document.body.style.setProperty("--header-container-background", "linear-gradient(270deg, var(--color2) 0%, var(--color3) 23.44%, var(--color4) 78.13%, var(--color5) 100%) !important");
document.body.style.setProperty("--headercolor", "#000");
document.body.style.setProperty("--header-bottom-line-background", "linear-gradient(270deg, var(--color2) 0%, var(--color3) 23.44%, var(--color4) 78.13%, var(--color5) 100%) !important");
document.body.style.setProperty("--header-bottom-line-background-image", "linear-gradient(270deg, var(--color2) 0%, var(--color3) 23.44%, var(--color4) 78.13%, var(--color5) 100%) !important");
document.body.style.setProperty("--login-background", "linear-gradient(180deg, #42b9fe 0%, #0782c9 100%) !importantt");
document.body.style.setProperty("--button-hover", "#42b9fe");
document.body.style.setProperty("--inicio-open-page-from-box", "#42b9fe");
document.body.style.setProperty("--header-tab-top-border", "white");
document.body.style.setProperty("--header-tab-text-white", "white");
}
}, {
key: "default",
value: function _default() {
document.body.style.setProperty("--color", "#0782C9");
document.body.style.setProperty("--color2", "#45BAFF");
document.body.style.setProperty("--color3", "#0782C9");
document.body.style.setProperty("--color4", "#0782c9f0");
document.body.style.setProperty("--color5", "#45BAFF");
}
}]);
return BackgroundService;
}();
_BackgroundService.ctorParameters = function () {
return [{
type: src_app_services_theme_service__WEBPACK_IMPORTED_MODULE_0__.ThemeService
}];
};
_BackgroundService = (0, tslib__WEBPACK_IMPORTED_MODULE_1__.__decorate)([(0, _angular_core__WEBPACK_IMPORTED_MODULE_2__.Injectable)({
providedIn: 'root'
})], _BackgroundService);
/***/
},
/***/
8140: function _(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */
__webpack_require__.d(__webpack_exports__, {
/* harmony export */
"ThemeService": function ThemeService() {
return (
/* binding */
_ThemeService
);
}
/* harmony export */
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! tslib */
3786);
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/core */
2316);
/* harmony import */
var src_app_services_storage_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! src/app/services/storage.service */
71188);
var _ThemeService = /*#__PURE__*/function () {
function ThemeService(storageservice) {
_classCallCheck(this, ThemeService);
this.storageservice = storageservice;
this.themes = ['gov', 'default', 'tribunal'];
this.currentTheme = 'gov';
}
_createClass(ThemeService, [{
key: "setTheme",
value: function setTheme(theme) {
document.body.classList.remove("gov");
document.body.classList.remove("default");
document.body.classList.remove("tribunal");
document.body.classList.add(theme);
this.currentTheme = theme;
console.log('Current theme', theme);
this.storageservice.store('theme', theme);
}
}]);
return ThemeService;
}();
_ThemeService.ctorParameters = function () {
return [{
type: src_app_services_storage_service__WEBPACK_IMPORTED_MODULE_0__.StorageService
}];
};
_ThemeService = (0, tslib__WEBPACK_IMPORTED_MODULE_1__.__decorate)([(0, _angular_core__WEBPACK_IMPORTED_MODULE_2__.Injectable)({
providedIn: 'root'
})], _ThemeService);
/***/
},
/***/
84465: function _(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */
__webpack_require__.d(__webpack_exports__, {
/* harmony export */
"ToastService": function ToastService() {
return (
/* binding */
_ToastService
);
}
/* harmony export */
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
3786);
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/core */
2316);
/* harmony import */
var _ionic_angular__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @ionic/angular */
7602);
var _ToastService = /*#__PURE__*/function () {
function ToastService(toastController, animationController, modalController) {
_classCallCheck(this, ToastService);
this.toastController = toastController;
this.animationController = animationController;
this.modalController = modalController;
}
_createClass(ToastService, [{
key: "ngOnInit",
value: function ngOnInit() {}
}, {
key: "presentToast",
value: function presentToast(infoMessage) {
return (0, tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var toast;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return this.toastController.create({
message: infoMessage,
duration: 2000
});
case 2:
toast = _context.sent;
toast.present();
case 4:
case "end":
return _context.stop();
}
}
}, _callee, this);
}));
}
}, {
key: "successMessage",
value: function successMessage(message, callback) {
return (0, tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
var notification;
return regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
notification = document.createElement('div');
notification.className = 'notification';
notification.innerHTML = "\n\n <div class=\"main-content width-100 pa-20\">\n <p class=\"message d-flex align-center success\">\n <ion-icon slot=\"end\" class=\"title-icon pr-10\" src=\"/assets/images/nofitication-success.svg\"></ion-icon>\n <p class=\"text\">{{ message }}</p>\n </p>\n \n </div>\n "; // document.body.append(notification)
notification.querySelector('.text').innerHTML = message || 'Processo efetuado';
setTimeout(function () {
if (callback) {
callback();
}
notification.style.right = "-100%";
setTimeout(function () {
notification.remove();
}, 1000);
}, 6000);
case 5:
case "end":
return _context2.stop();
}
}
}, _callee2);
}));
}
}, {
key: "badRequest",
value: function badRequest(message, callback) {
return (0, tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
var notification;
return regeneratorRuntime.wrap(function _callee3$(_context3) {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
notification = document.createElement('div');
notification.className = 'notification';
notification.innerHTML = "\n\n <div class=\"main-content width-100 pa-20\">\n <p class=\"message d-flex align-center faild\">\n <ion-icon slot=\"end\" class=\"title-icon pr-10\" src=\"/assets/images/notification-error.svg\"></ion-icon>\n <p class=\"text\">{{ message }}</p>\n </p>\n \n </div>\n ";
notification.style.animationName = 'notification-top'; // document.body.append(notification)
notification.querySelector('.text').innerHTML = message || 'Processo não efetuado';
setTimeout(function () {
if (callback) {
callback();
}
notification.style.right = "-100%";
setTimeout(function () {
notification.remove();
}, 1000);
}, 6000);
case 6:
case "end":
return _context3.stop();
}
}
}, _callee3);
}));
}
}, {
key: "notificationMessage",
value: function notificationMessage(message, callback, data) {
return (0, tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
var notification, funcx;
return regeneratorRuntime.wrap(function _callee4$(_context4) {
while (1) {
switch (_context4.prev = _context4.next) {
case 0:
notification = document.createElement('div');
notification.className = 'notificationPush';
notification.innerHTML = "\n\n <div class=\"main-content width-100 pa-20\">\n <p class=\"message d-flex align-left\">\n <p class=\"text\">{{ message }}</p>\n </p>\n \n </div>\n ";
funcx = function funcx() {
callback(data);
document.body.removeEventListener('click', funcx);
notification.remove();
}; // document.body.append(notification)
document.body.addEventListener('click', funcx);
notification.querySelector('.text').innerHTML = message || 'Processo efetuado';
setTimeout(function () {
notification.style.top = "-100%";
setTimeout(function () {
notification.remove();
}, 1000);
}, 6000);
case 7:
case "end":
return _context4.stop();
}
}
}, _callee4);
}));
}
}, {
key: "loading",
value: function loading() {
var loader = document.createElement('div');
loader.innerHTML = "\n\n <div class=\"loading-blocker\">\n <div class=\"loading-blocker-container\">\n <img src=\"/assets/images/Blocks-loader.gif\" />\n </div>\n </div>\n ";
document.body.append(loader);
loader.addEventListener('click', function () {// loader.remove()
});
return loader;
}
}]);
return ToastService;
}();
_ToastService.ctorParameters = function () {
return [{
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_1__.ToastController
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_1__.AnimationController
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_1__.ModalController
}];
};
_ToastService = (0, tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([(0, _angular_core__WEBPACK_IMPORTED_MODULE_2__.Injectable)({
providedIn: 'root'
})], _ToastService);
/***/
}
}]);
})();
//# sourceMappingURL=default-src_app_services_background_service_ts-src_app_services_toast_service_ts-es5.js.map
@@ -285,6 +285,7 @@ let EventsService = class EventsService {
params: params
};
return this.http.put(`${puturl}`, event, options).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.catchError)(err => {
console.log('Event edit saved offline');
this.offlinemanager.storeRequestData('eventEdit', arrayReq);
throw new Error(err);
}));
@@ -402,6 +403,7 @@ let EventsService = class EventsService {
break;
}
return this.http.delete(`${puturl}`, options).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.catchError)(err => {
console.log('Event edit saved offline');
this.offlinemanager.storeRequestData('eventDelete', arrayReq);
throw new Error(err);
}));
File diff suppressed because one or more lines are too long
@@ -435,6 +435,8 @@
params: params
};
return this.http.put("".concat(puturl), event, options).pipe((0, rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.catchError)(function (err) {
console.log('Event edit saved offline');
_this3.offlinemanager.storeRequestData('eventEdit', arrayReq);
throw new Error(err);
@@ -570,6 +572,8 @@
}
return this.http["delete"]("".concat(puturl), options).pipe((0, rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.catchError)(function (err) {
console.log('Event edit saved offline');
_this4.offlinemanager.storeRequestData('eventDelete', arrayReq);
throw new Error(err);
File diff suppressed because one or more lines are too long
@@ -130,106 +130,45 @@ let NotificationsService = class NotificationsService {
this.adding = "intervenient";
this.DataArray = new Array();
this.callbacks = [];
/* async onReceviNotification() {
if(window['WLAuthorizationManager']) {
if(window['WLAuthorizationManager'].obtainAccessToken) {
window['WLAuthorizationManager'].obtainAccessToken("push.mobileclient").then(
(token) => {
console.log('Push Notification: Success ' + token);
window['MFPPush'].initialize(
function (successResponse) {
console.log("Push notification Successfully intialized: " + successResponse);
window['MFPPush'].registerNotificationsCallback(notificationReceived);
},
function (failureResponse) {
console.log("Push notification failure intialized: " + failureResponse);
}
);
var notificationReceived = (message) => {
//this.jsonstore.createCollection('Notifications',message);
this.DataArray.push(message)
console.log("On ReceiveNotification", this.DataArray)
this.storageService.store("Notifications",this.DataArray)
console.log(message);
this.eventtrigger.publishSomeData({
notification: "recive"
})
var data = JSON.parse(message.payload);
//synchro.$send(data)
console.log('data.Service', data.Service); // module
console.log('data.IdObject', data.IdObject); // Object id
console.log('data.Object', data.Object); // details
if(message.actionName){
this.notificatinsRoutes(data);
} else {
/* this.toastService.notificationMessage(message.alert,this.notificatinsRoutes, data);
//this.notificatinsRoutes(data);
console.log(data)
}
this.callbacks.forEach( e=> {
if(e.type == data.Object || e.type == "any") {
e.funx()
}
})
}
}, (error) => {
console.log('Push notification recived: failure ' + error.responseText);
console.log(JSON.stringify(error));
}
);
}
}
} */
this.notificatinsRoutes = (notification) => {
if (notification.data.Service === "agenda") {
this.zone.run(() => this.router.navigate(['/home/agenda', notification.data.IdObject, 'agenda']));
console.log('Push action performed 2222: ' + JSON.stringify(notification.data));
if (notification.notification.data.Service === "agenda" && notification.notification.data.IdObject.length > 10) {
console.log("Id Lenght", notification.notification.data.IdObject.length);
this.zone.run(() => this.router.navigate(['/home/agenda', notification.notification.data.IdObject, 'agenda']));
}
else if (notification.data.Service === "gabinete-digital" && notification.data.Object === "expediente") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/expediente', notification.data.IdObject, 'gabinete-digital']));
else if (notification.notification.data.Service === "gabinete-digital" && notification.notification.data.Object === "expediente") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/expediente', notification.notification.data.IdObject, 'gabinete-digital']));
}
else if (notification.data.Service === "agenda" && notification.data.Object === "event-list") {
this.zone.run(() => this.router.navigate(['/home/agenda/event-list/approve-event', notification.data.IdObject, 'agenda']));
else if (notification.notification.data.Service === "agenda" && notification.notification.data.Object === "event-list") {
//this.zone.run(() => this.router.navigate(['/home/gabinete-digital/event-list/approve-event',IdObject, 'agenda']));
this.zone.run(() => this.router.navigate(['/home/agenda/event-list/approve-event', notification.notification.data.IdObject, 'agenda']));
}
else if (notification.data.Service === "gabinete-digital" && notification.data.Object === "despachos") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/despachos', notification.data.IdObject, 'gabinete-digital'], { replaceUrl: true }));
else if (notification.notification.data.Service === "gabinete-digital" && notification.notification.data.Object === "despachos") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/despachos', notification.notification.data.IdObject, 'gabinete-digital'], { replaceUrl: true }));
}
else if (notification.data.Service === "gabinete-digital" && notification.data.Object === "parecer") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/pedidos', notification.data.IdObject, 'gabinete-digital']));
else if (notification.notification.data.Service === "gabinete-digital" && notification.notification.data.Object === "parecer") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/pedidos', notification.notification.data.IdObject, 'gabinete-digital']));
}
else if (notification.data.Service === "gabinete-digital" && notification.data.Object === "deferimento") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/pedidos', notification.data.IdObject, 'gabinete-digital']));
else if (notification.notification.data.Service === "gabinete-digital" && notification.notification.data.Object === "deferimento") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/pedidos', notification.notification.data.IdObject, 'gabinete-digital']));
}
else if (notification.data.Service === "gabinete-digital" && notification.data.Object === "despachos-pr") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/despachos-pr', notification.data.IdObject, 'gabinete-digital']));
else if (notification.notification.data.Service === "gabinete-digital" && notification.notification.data.Object === "despachos-pr") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/despachos-pr', notification.notification.data.IdObject, 'gabinete-digital']));
}
else if (notification.data.Service === "accoes" && notification.data.Object === "accao") {
this.zone.run(() => this.router.navigate(['/home/publications', notification.data.IdObject]));
else if (notification.notification.data.Service === "accoes" && notification.notification.data.Object === "accao") {
this.zone.run(() => this.router.navigate(['/home/publications', notification.notification.data.IdObject]));
}
else if (notification.data.Service === "accoes" && notification.data.Object === "publicacao") {
this.zone.run(() => this.router.navigate(['/home/publications/view-publications', notification.data.FolderId, notification.data.IdObject]));
else if (notification.notification.data.Service === "accoes" && notification.notification.data.Object === "publicacao") {
this.zone.run(() => this.router.navigate(['/home/publications/view-publications', notification.notification.data.FolderId, notification.data.IdObject]));
}
else if (notification.data.Service === "gabinete-digital" && notification.data.Object === "diplomas") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/diplomas', notification.data.IdObject, 'gabinete-digital']));
else if (notification.notification.data.Service === "gabinete-digital" && notification.notification.data.Object === "diplomas") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/diplomas', notification.notification.data.IdObject, 'gabinete-digital']));
}
else if (notification.data.Service === "gabinete-digital" && notification.data.Object === "diplomas-assinar") {
let navigationExtras = {
queryParams: {
"serialNumber": notification.data.IdObject,
}
};
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/diplomas-assinar/diploma-assinar'], navigationExtras));
else if (notification.notification.data.Service === "gabinete-digital" && notification.notification.data.Object === "diplomas-assinar") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/diplomas-assinar', notification.notification.data.IdObject, 'gabinete-digital']));
}
else if (notification.data.Service === "gabinete-digital" && notification.data.Object === "expedientes-pr") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/expedientes-pr', notification.data.IdObject, 'gabinete-digital']));
else if (notification.notification.data.Service === "gabinete-digital" && notification.notification.data.Object === "expedientes-pr") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/expedientes-pr', notification.notification.data.IdObject, 'gabinete-digital']));
}
};
this.storageService.get("Notifications").then((value) => {
@@ -319,110 +258,18 @@ let NotificationsService = class NotificationsService {
onReciveBackground() {
_capacitor_push_notifications__WEBPACK_IMPORTED_MODULE_8__.PushNotifications.addListener('pushNotificationActionPerformed', (notification) => {
console.log('Push action performed: ' + JSON.stringify(notification));
/* this.DataArray.push(notification.notification)
console.log("On ReceiveNotification", this.DataArray)
this.storageService.store("Notifications", this.DataArray)
this.eventtrigger.publishSomeData({
notification: "recive"
}) */
this.notificatinsRoutes(notification);
});
}
/*
async onReceviNotification() {
this.fcm.onNotification().subscribe(data => {
if (data.click_action) {
console.log("Received in background: ", data);
this.notificatinsRoutes(data)
} else {
console.log("Received in foreground: ", data);
console.log(data.Service)
console.log(data.Object)
console.log(data.IdObject)
this.DataArray.push(data)
console.log("On ReceiveNotification", this.DataArray)
this.storageService.store("Notifications", this.DataArray)
};
});
} */
/////////////////////////////////////////////////////
/* getTokenByUserIdAndId(user, userID) {
const geturl = environment.apiURL + 'notifications/user/' + userID;
return this.http.get<Token[]>(`${geturl}`);
}
*/
/* getAndpostToken(username) {
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
//console.log('Notifications not supported')
} else {
const geturl = environment.apiURL + 'notifications/token';
if(window['WLAuthorizationManager']) {
if(window['WLAuthorizationManager'].obtainAccessToken) {
window['WLAuthorizationManager'].obtainAccessToken("push.mobileclient").then(
(token) => {
console.log('Push Notification: Success ' + token);
window['MFPPush'].initialize(
function (successResponse) {
console.log("Push notification Successfully Service intialized: " + successResponse);
},
function (failureResponse) {
console.log("Push notification failure Service intialized: " + failureResponse);
}
);
window['MFPPush'].registerDevice(null, async (successResponse) => {
console.log("Successfully registered: " + JSON.stringify(successResponse));
console.log('token: ', successResponse.deviceId)
await this.storageService.store(username, successResponse.deviceId).then((tokennoti) => {
console.log('token store',tokennoti)
});
await this.storageService.get(username).then(value => {
console.log('STORAGE TOKEN', value)
this.storageService.get(AuthConnstants.USER).then(res => {
console.log('USERID', res);
const headers = { 'Authorization': SessionStore.user.BasicAuthKey };
const body = {
UserId: res.UserId,
TokenId: successResponse.deviceId,
Status: 1,
Service: 1
};
this.http.post<Token>(`${geturl}`, body, { headers }).subscribe(data => {
console.log('TOKEN USER MIDLE', data);
})
});
});
},
function (failureResponse) {
console.log("Successfully failue: " + JSON.stringify(failureResponse));
}
);
}, (error) => {
console.log('Push notification recived: failure ' + error.responseText);
console.log(JSON.stringify(error));
}
);
}
}
}
} */
tempClearArray() {
this.DataArray = new Array;
}
platformVerify() {
if (this.platform.is('cordova')) {
}
else {
}
}
};
NotificationsService.ctorParameters = () => [
{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpClient },

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