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OAAS,QAAsByI,IAAjBP,UAAU,GAAmBA,UAAU,GAAK,CAAC,OAAQ,OAEtFmJ,EAA4B,kBAAXhE,EAAsB,CAACA,GAAUA,EAClDiE,IAAYhI,SAASiI,sBAMzB,OAJAF,EAAQrQ,SAAQ,SAAUqM,GACtBiE,EAAUA,KAAahI,SAASiI,sBAAsBlE,EAC1D,IAEOiE,CACX,KAGGb,CACX,CA3GgB,CA2GdT,EAAchE,SAOhB,SAASmF,EAAkBK,EAAQhK,GAC/B,IAAIiK,EAAY,kBAAoBD,EAEpC,GAAKhK,EAAQqC,aAAa4H,GAI1B,OAAOjK,EAAQsG,aAAa2D,EAChC,CAEA5L,EAAOC,QAAU2K,CACrB,GAEA,EAAE,CAAC,qBAAqB,EAAE,gBAAgB,EAAE,eAAe,KAAK,CAAC,EAAE,CAAC,GA9wB8S,CA8wB1S","sources":["webpack://app/./app/assets/javascripts/helpers/url.js","webpack://app/./app/assets/javascripts/models/task.js","webpack://app/./app/assets/javascripts/views/dialogs/backbone.js","webpack://app/./app/assets/javascripts/views/task.js","webpack://app/./vendor/assets/javascripts/clipboard.js"],"sourcesContent":["import { each, has, omit, extend } from 'underscore'\nimport { isBlank } from 'utils/common'\n\nexport const getPath = function (url) {\n if (!url) {\n url = window.location.search.substring(1)\n }\n return url.split('?')[0]\n}\n\n// returns a hash of key/value url params; optionally does type conversion where appropriate\nexport const getUrlParams = function (url) {\n if (url == null) {\n url = window.location.search.substring(1)\n }\n let parts = url.split('?')\n url = parts.length > 1 ? parts[1] : parts[0]\n const params = {}\n\n each(url.split('&'), function (param) {\n param = param.split('=')\n if (param.length === 2) {\n const key = decodeURIComponent(param[0])\n parts = key.match(/(.*)\\[\\]$/)\n if (parts) {\n // array parameter\n if (!(parts[0] in params)) {\n params[parts[1]] = []\n }\n params[parts[1]].push(decodeURIComponent(param[1]))\n } else {\n params[key] = decodeURIComponent(param[1])\n }\n }\n })\n return params\n}\n\nexport const getUrlParam = function (param, defaultValue = false) {\n const params = getUrlParams()\n if (has(params, param)) {\n return params[param]\n } else {\n return defaultValue\n }\n}\n\nexport const toQuery = function (params) {\n const pairs = []\n each(params, function (value, key) {\n if (!(value instanceof Array)) {\n pairs.push(key + '=' + encodeURIComponent(value).replace(/%2C/g, ','))\n } else {\n each(value, (v) =>\n pairs.push(key + '[]=' + encodeURIComponent(v).replace(/%2C/g, ','))\n )\n }\n })\n return pairs.join('&')\n}\n\nexport const buildUrl = function (url, params, omitted = []) {\n let existing = getUrlParams(url)\n\n if (params) {\n if (Object.keys(params).length === 0) {\n // clear existing\n existing = {}\n } else {\n // if a given param is null, remove it from existing url\n Object.keys(params).forEach(function (param) {\n if (params[param] == null || isBlank(params[param])) {\n delete existing[param]\n delete params[param]\n }\n })\n }\n }\n params = toQuery(omit(extend(existing, params), omitted))\n\n url = getPath(url)\n if (params !== '') {\n url = url + (url.indexOf('?') === -1 ? '?' : '&') + params\n }\n return url\n}\n\nexport const getSortDescending = (value) => value && value[0] === '-'\n\nexport const getSortKey = function (value) {\n if (getSortDescending(value)) {\n return value.slice(1)\n } else {\n return value\n }\n}\n","import BaseModel from 'models/base'\n\nexport default class Task extends BaseModel {\n // converts results into attributes on the task (assumes JSON)\n parseResults () {\n return this.set(JSON.parse(this.get('results')))\n }\n}\n","import { defaults } from 'underscore'\nimport Dialog from 'views/dialogs/dialog'\n\n//\n// Dialog that embeds a Backbone view\n//\nexport default class BackboneDialog extends Dialog {\n initialize (options) {\n super.initialize(options)\n defaults(this.options, { useBodyEl: true })\n this.view = this.options.view\n this.view.modal = this\n }\n\n createModal () {\n super.createModal()\n const el = this.options.useBodyEl ? this.getBody() : this.modal\n this.view.setElement(el)\n this.view.render()\n }\n}\n","/* global $, Cable */\nimport { delay, defaults } from 'underscore'\nimport { noty } from 'helpers/flash'\nimport { functionValue } from 'utils/common'\nimport BaseView from 'views/base'\n\nexport default class Task extends BaseView {\n initialize (options) {\n super.initialize(options)\n defaults(this.options, {\n success: $.noop,\n error: $.noop,\n hideSpinner: false,\n successMessage: null,\n errorMessage: 'Sorry, something went wrong.',\n })\n if (!this.process()) {\n this.watch()\n }\n }\n\n process () {\n let type\n if (this.model.get('state') === 'complete') {\n let success = this.model.get('results')?.success\n if (success == null) {\n success = true\n }\n type = success ? 'success' : 'warning'\n const duration = success ? 4000 : 10000\n\n if (this.options.successMessage) {\n this.progress.setType(type)\n this.progress.setText(\n functionValue(this.options.successMessage, this.model)\n )\n this.done()\n delay(() => this.progress.close(), duration)\n } else {\n this.close()\n }\n return true\n } else if (this.model.get('state') === 'aborted') {\n this.close()\n\n const error = noty({\n text: this.options.errorMessage,\n layout: 'topCenter',\n closeWith: ['click'],\n type: 'error',\n })\n delay(() => error.close(), 10000)\n\n this.options.error(this.model)\n\n return true\n } else {\n if (this.progress != null && this.model.get('progress_percent') != null) {\n this.progress.setText(this.notyText())\n }\n return false // can't be processed yet\n }\n }\n\n watch () {\n this.progress = noty({\n text: this.notyText(),\n layout: 'topCenter',\n closeWith: ['click'],\n type: 'alert',\n })\n\n this.subscription = Cable.subscriptions.create(\n { channel: 'TasksChannel', id: this.model.get('task_id') },\n {\n received: (resp) => {\n this.model.set(resp)\n this.process()\n },\n }\n )\n }\n\n close () {\n this.progress?.close()\n this.done()\n }\n\n done () {\n this.subscription?.unsubscribe()\n this.options.success(this.model)\n }\n\n notyText () {\n let { message } = this.options\n if (\n this.model.get('progress_percent') != null &&\n this.model.get('progress_percent') > 0\n ) {\n message = `${this.options.message} ${this.model.get('progress_percent')}%`\n }\n return `${\n this.options.hideSpinner\n ? ''\n : ''\n } ${\n message != null ? message : 'Running...'\n }`\n }\n}\n","/*!\n * clipboard.js v1.7.1\n * https://zenorocha.github.io/clipboard.js\n *\n * Licensed MIT © Zeno Rocha\n */\n(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.Clipboard = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n this.action = options.action;\n this.container = options.container;\n this.emitter = options.emitter;\n this.target = options.target;\n this.text = options.text;\n this.trigger = options.trigger;\n\n this.selectedText = '';\n }\n }, {\n key: 'initSelection',\n value: function initSelection() {\n if (this.text) {\n this.selectFake();\n } else if (this.target) {\n this.selectTarget();\n }\n }\n }, {\n key: 'selectFake',\n value: function selectFake() {\n var _this = this;\n\n var isRTL = document.documentElement.getAttribute('dir') == 'rtl';\n\n this.removeFake();\n\n this.fakeHandlerCallback = function () {\n return _this.removeFake();\n };\n this.fakeHandler = this.container.addEventListener('click', this.fakeHandlerCallback) || true;\n\n this.fakeElem = document.createElement('textarea');\n // Prevent zooming on iOS\n this.fakeElem.style.fontSize = '12pt';\n // Reset box model\n this.fakeElem.style.border = '0';\n this.fakeElem.style.padding = '0';\n this.fakeElem.style.margin = '0';\n // Move element out of screen horizontally\n this.fakeElem.style.position = 'absolute';\n this.fakeElem.style[isRTL ? 'right' : 'left'] = '-9999px';\n // Move element to the same position vertically\n var yPosition = window.pageYOffset || document.documentElement.scrollTop;\n this.fakeElem.style.top = yPosition + 'px';\n\n this.fakeElem.setAttribute('readonly', '');\n this.fakeElem.value = this.text;\n\n this.container.appendChild(this.fakeElem);\n\n this.selectedText = (0, _select2.default)(this.fakeElem);\n this.copyText();\n }\n }, {\n key: 'removeFake',\n value: function removeFake() {\n if (this.fakeHandler) {\n this.container.removeEventListener('click', this.fakeHandlerCallback);\n this.fakeHandler = null;\n this.fakeHandlerCallback = null;\n }\n\n if (this.fakeElem) {\n this.container.removeChild(this.fakeElem);\n this.fakeElem = null;\n }\n }\n }, {\n key: 'selectTarget',\n value: function selectTarget() {\n this.selectedText = (0, _select2.default)(this.target);\n this.copyText();\n }\n }, {\n key: 'copyText',\n value: function copyText() {\n var succeeded = void 0;\n\n try {\n succeeded = document.execCommand(this.action);\n } catch (err) {\n succeeded = false;\n }\n\n this.handleResult(succeeded);\n }\n }, {\n key: 'handleResult',\n value: function handleResult(succeeded) {\n this.emitter.emit(succeeded ? 'success' : 'error', {\n action: this.action,\n text: this.selectedText,\n trigger: this.trigger,\n clearSelection: this.clearSelection.bind(this)\n });\n }\n }, {\n key: 'clearSelection',\n value: function clearSelection() {\n if (this.trigger) {\n this.trigger.focus();\n }\n\n window.getSelection().removeAllRanges();\n }\n }, {\n key: 'destroy',\n value: function destroy() {\n this.removeFake();\n }\n }, {\n key: 'action',\n set: function set() {\n var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'copy';\n\n this._action = action;\n\n if (this._action !== 'copy' && this._action !== 'cut') {\n throw new Error('Invalid \"action\" value, use either \"copy\" or \"cut\"');\n }\n },\n get: function get() {\n return this._action;\n }\n }, {\n key: 'target',\n set: function set(target) {\n if (target !== undefined) {\n if (target && (typeof target === 'undefined' ? 'undefined' : _typeof(target)) === 'object' && target.nodeType === 1) {\n if (this.action === 'copy' && target.hasAttribute('disabled')) {\n throw new Error('Invalid \"target\" attribute. Please use \"readonly\" instead of \"disabled\" attribute');\n }\n\n if (this.action === 'cut' && (target.hasAttribute('readonly') || target.hasAttribute('disabled'))) {\n throw new Error('Invalid \"target\" attribute. You can\\'t cut text from elements with \"readonly\" or \"disabled\" attributes');\n }\n\n this._target = target;\n } else {\n throw new Error('Invalid \"target\" value, use a valid Element');\n }\n }\n },\n get: function get() {\n return this._target;\n }\n }]);\n\n return ClipboardAction;\n }();\n\n module.exports = ClipboardAction;\n});\n\n},{\"select\":5}],8:[function(require,module,exports){\n(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['module', './clipboard-action', 'tiny-emitter', 'good-listener'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(module, require('./clipboard-action'), require('tiny-emitter'), require('good-listener'));\n } else {\n var mod = {\n exports: {}\n };\n factory(mod, global.clipboardAction, global.tinyEmitter, global.goodListener);\n global.clipboard = mod.exports;\n }\n})(this, function (module, _clipboardAction, _tinyEmitter, _goodListener) {\n 'use strict';\n\n var _clipboardAction2 = _interopRequireDefault(_clipboardAction);\n\n var _tinyEmitter2 = _interopRequireDefault(_tinyEmitter);\n\n var _goodListener2 = _interopRequireDefault(_goodListener);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n }\n\n var Clipboard = function (_Emitter) {\n _inherits(Clipboard, _Emitter);\n\n /**\n * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n * @param {Object} options\n */\n function Clipboard(trigger, options) {\n _classCallCheck(this, Clipboard);\n\n var _this = _possibleConstructorReturn(this, (Clipboard.__proto__ || Object.getPrototypeOf(Clipboard)).call(this));\n\n _this.resolveOptions(options);\n _this.listenClick(trigger);\n return _this;\n }\n\n /**\n * Defines if attributes would be resolved using internal setter functions\n * or custom functions that were passed in the constructor.\n * @param {Object} options\n */\n\n\n _createClass(Clipboard, [{\n key: 'resolveOptions',\n value: function resolveOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n this.action = typeof options.action === 'function' ? options.action : this.defaultAction;\n this.target = typeof options.target === 'function' ? options.target : this.defaultTarget;\n this.text = typeof options.text === 'function' ? options.text : this.defaultText;\n this.container = _typeof(options.container) === 'object' ? options.container : document.body;\n }\n }, {\n key: 'listenClick',\n value: function listenClick(trigger) {\n var _this2 = this;\n\n this.listener = (0, _goodListener2.default)(trigger, 'click', function (e) {\n return _this2.onClick(e);\n });\n }\n }, {\n key: 'onClick',\n value: function onClick(e) {\n var trigger = e.delegateTarget || e.currentTarget;\n\n if (this.clipboardAction) {\n this.clipboardAction = null;\n }\n\n this.clipboardAction = new _clipboardAction2.default({\n action: this.action(trigger),\n target: this.target(trigger),\n text: this.text(trigger),\n container: this.container,\n trigger: trigger,\n emitter: this\n });\n }\n }, {\n key: 'defaultAction',\n value: function defaultAction(trigger) {\n return getAttributeValue('action', trigger);\n }\n }, {\n key: 'defaultTarget',\n value: function defaultTarget(trigger) {\n var selector = getAttributeValue('target', trigger);\n\n if (selector) {\n return document.querySelector(selector);\n }\n }\n }, {\n key: 'defaultText',\n value: function defaultText(trigger) {\n return getAttributeValue('text', trigger);\n }\n }, {\n key: 'destroy',\n value: function destroy() {\n this.listener.destroy();\n\n if (this.clipboardAction) {\n this.clipboardAction.destroy();\n this.clipboardAction = null;\n }\n }\n }], [{\n key: 'isSupported',\n value: function isSupported() {\n var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['copy', 'cut'];\n\n var actions = typeof action === 'string' ? [action] : action;\n var support = !!document.queryCommandSupported;\n\n actions.forEach(function (action) {\n support = support && !!document.queryCommandSupported(action);\n });\n\n return support;\n }\n }]);\n\n return Clipboard;\n }(_tinyEmitter2.default);\n\n /**\n * Helper function to retrieve attribute value.\n * @param {String} suffix\n * @param {Element} element\n */\n function getAttributeValue(suffix, element) {\n var attribute = 'data-clipboard-' + suffix;\n\n if (!element.hasAttribute(attribute)) {\n return;\n }\n\n return element.getAttribute(attribute);\n }\n\n module.exports = Clipboard;\n});\n\n},{\"./clipboard-action\":7,\"good-listener\":4,\"tiny-emitter\":6}]},{},[8])(8)\n});\n"],"names":["getPath","url","window","location","search","substring","split","getUrlParams","parts","length","params","each","param","key","decodeURIComponent","match","push","getUrlParam","defaultValue","has","buildUrl","omitted","existing","Object","keys","forEach","isBlank","pairs","value","Array","v","encodeURIComponent","replace","join","toQuery","omit","extend","indexOf","getSortDescending","getSortKey","slice","Task","BaseModel","parseResults","this","set","JSON","parse","get","BackboneDialog","Dialog","initialize","options","super","defaults","useBodyEl","view","modal","createModal","el","getBody","setElement","render","BaseView","success","$","noop","error","hideSpinner","successMessage","errorMessage","process","watch","type","model","_this$model$get","duration","progress","setType","setText","functionValue","done","delay","close","noty","text","layout","closeWith","notyText","subscription","Cable","subscriptions","create","channel","id","received","resp","_this$progress","_this$subscription","unsubscribe","message","define","module","exports","e","t","n","r","s","o","u","i","f","Error","code","l","call","require","DOCUMENT_NODE_TYPE","Element","prototype","matches","proto","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector","closest","element","selector","nodeType","parentNode","delegate","callback","useCapture","listenerFn","listener","apply","arguments","addEventListener","destroy","removeEventListener","delegateTarget","target","node","undefined","HTMLElement","nodeList","toString","string","String","fn","is","listen","TypeError","listenNode","listenNodeList","listenSelector","document","body","select","selectedText","nodeName","focus","isReadOnly","hasAttribute","setAttribute","setSelectionRange","removeAttribute","selection","getSelection","range","createRange","selectNodeContents","removeAllRanges","addRange","E","on","name","ctx","once","self","off","_","emit","data","evtArr","len","evts","liveEvents","global","factory","amd","mod","clipboardAction","_select","_select2","_interopRequireDefault","obj","__esModule","default","_typeof","Symbol","iterator","constructor","_classCallCheck","instance","Constructor","_createClass","defineProperties","props","descriptor","enumerable","configurable","writable","defineProperty","protoProps","staticProps","ClipboardAction","resolveOptions","initSelection","action","container","emitter","trigger","selectFake","selectTarget","_this","isRTL","documentElement","getAttribute","removeFake","fakeHandlerCallback","fakeHandler","fakeElem","createElement","style","fontSize","border","padding","margin","position","yPosition","pageYOffset","scrollTop","top","appendChild","copyText","removeChild","succeeded","execCommand","err","handleResult","clearSelection","bind","_action","_target","tinyEmitter","goodListener","clipboard","_clipboardAction","_tinyEmitter","_goodListener","_clipboardAction2","_tinyEmitter2","_goodListener2","_possibleConstructorReturn","ReferenceError","_inherits","subClass","superClass","setPrototypeOf","__proto__","Clipboard","_Emitter","getPrototypeOf","listenClick","defaultAction","defaultTarget","defaultText","_this2","onClick","currentTarget","getAttributeValue","querySelector","actions","support","queryCommandSupported","suffix","attribute"],"sourceRoot":""}