{"version":3,"file":"vendors-4eb65531.9729664bca28a8e6916d.bundle.js","mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AC3nBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACpnBA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://www.zeusteam.com/./node_modules/bcx-aurelia-dnd/dist/index.js","webpack://www.zeusteam.com/./node_modules/bcx-aurelia-dnd/dist/preview-drawers.js","webpack://www.zeusteam.com/./node_modules/bcx-aurelia-reorderable-repeat/dist/native-modules/index.js","webpack://www.zeusteam.com/./node_modules/bcx-aurelia-reorderable-repeat/dist/native-modules/reorderable-after-reordering.js","webpack://www.zeusteam.com/./node_modules/bcx-aurelia-reorderable-repeat/dist/native-modules/reorderable-direction.js","webpack://www.zeusteam.com/./node_modules/bcx-aurelia-reorderable-repeat/dist/native-modules/reorderable-dnd-handler-selector.js","webpack://www.zeusteam.com/./node_modules/bcx-aurelia-reorderable-repeat/dist/native-modules/reorderable-dnd-preview.js","webpack://www.zeusteam.com/./node_modules/bcx-aurelia-reorderable-repeat/dist/native-modules/reorderable-group-for.js","webpack://www.zeusteam.com/./node_modules/bcx-aurelia-reorderable-repeat/dist/native-modules/reorderable-group-map.js","webpack://www.zeusteam.com/./node_modules/bcx-aurelia-reorderable-repeat/dist/native-modules/reorderable-group.js","webpack://www.zeusteam.com/./node_modules/bcx-aurelia-reorderable-repeat/dist/native-modules/reorderable-repeat-strategy-locator.js","webpack://www.zeusteam.com/./node_modules/bcx-aurelia-reorderable-repeat/dist/native-modules/reorderable-repeat.js","webpack://www.zeusteam.com/./node_modules/bcx-aurelia-reorderable-repeat/dist/native-modules/repeater-dnd-type.js","webpack://www.zeusteam.com/./node_modules/bcx-aurelia-reorderable-repeat/dist/native-modules/simple-array-repeat-strategy.js","webpack://www.zeusteam.com/./node_modules/bootstrap-daterangepicker/daterangepicker.css"],"sourcesContent":["\"use strict\";\nexports.__esModule = true;\nexports.DndService = void 0;\nvar aurelia_event_aggregator_1 = require(\"aurelia-event-aggregator\");\nvar preview_drawers_1 = require(\"./preview-drawers\");\nvar doc = document;\nvar documentElement = doc && doc.documentElement;\nvar css = \"\\n/* bcx-aurelia-dnd styles */\\n\\n/*\\nbcx-aurelia-dnd relies on html/body margin 0.\\nYour css stack should have done this.\\nAdded here as safe guard.\\n*/\\nhtml, body {\\n margin: 0;\\n}\\n\\n.bcx-dnd-preview {\\n position: absolute !important;\\n margin: 0 !important;\\n z-index: 9999 !important;\\n opacity: 0.8;\\n box-shadow: 0 0 16px gray;\\n}\\n\\n.bcx-dnd-preview .bcx-dnd-preview-hide {\\n visibility: hidden !important;\\n}\\n\\n.bcx-dnd-hide {\\n display: none !important;\\n}\\n\\n.bcx-dnd-hide-cursor .bcx-dnd-preview {\\n cursor: none !important;\\n}\\n\\n.bcx-dnd-unselectable {\\n -webkit-user-select: none !important;\\n -moz-user-select: none !important;\\n -ms-user-select: none !important;\\n user-select: none !important;\\n}\\n\";\nvar _stylesInjected = false;\nfunction injectStyles() {\n if (_stylesInjected)\n return;\n _stylesInjected = true;\n var node = doc.createElement('style');\n node.innerHTML = css;\n node.type = 'text/css';\n if (doc.head.childNodes.length > 0) {\n doc.head.insertBefore(node, doc.head.childNodes[0]);\n }\n else {\n doc.head.appendChild(node);\n }\n}\nvar classes = (function () {\n var cache = {};\n var start = '(?:^|\\\\s)';\n var end = '(?:\\\\s|$)';\n function lookupClass(className) {\n var cached = cache[className];\n if (cached) {\n cached.lastIndex = 0;\n }\n else {\n cache[className] = cached = new RegExp(start + className + end, 'g');\n }\n return cached;\n }\n function addClass(el, className) {\n var current = el.className;\n if (!current.length) {\n el.className = className;\n }\n else if (!lookupClass(className).test(current)) {\n el.className += ' ' + className;\n }\n }\n function rmClass(el, className) {\n el.className = el.className.replace(lookupClass(className), ' ').trim();\n }\n return { add: addClass, rm: rmClass };\n}());\nfunction whichMouseButton(e) {\n var te = e;\n if (te.touches !== undefined) {\n return te.touches.length;\n }\n if (e.which !== undefined && e.which !== 0) {\n return e.which;\n }\n var me = e;\n if (me.buttons !== undefined) {\n return me.buttons;\n }\n var button = me.button;\n if (button !== undefined) {\n return button & 1 ? 1 : button & 2 ? 3 : (button & 4 ? 2 : 0);\n }\n}\nfunction getPageRect(el) {\n var rect = el.getBoundingClientRect();\n return {\n x: rect.left + getScroll('scrollLeft', 'pageXOffset'),\n y: rect.top + getScroll('scrollTop', 'pageYOffset'),\n width: getRectWidth(rect),\n height: getRectHeight(rect)\n };\n}\nfunction getScroll(scrollProp, offsetProp) {\n if (typeof window[offsetProp] !== 'undefined') {\n return window[offsetProp];\n }\n if (documentElement.clientHeight) {\n return documentElement[scrollProp];\n }\n return doc.body[scrollProp];\n}\nfunction getElementBehindPreview(preview, x, y) {\n var className = '';\n if (preview) {\n className = preview.className;\n preview.className += ' bcx-dnd-hide';\n }\n var el = doc.elementFromPoint(x, y);\n if (preview) {\n preview.className = className;\n }\n return el;\n}\nfunction getRectWidth(rect) {\n return rect.width || (rect.right - rect.left);\n}\nfunction getRectHeight(rect) {\n return rect.height || (rect.bottom - rect.top);\n}\nfunction getParent(el) {\n if (el.parentNode === doc)\n return null;\n return el.parentNode;\n}\nfunction isInput(el) {\n return el.tagName === 'INPUT' ||\n el.tagName === 'TEXTAREA' ||\n el.tagName === 'SELECT' ||\n isEditable(el);\n}\nfunction isEditable(el) {\n if (!el) {\n return false;\n }\n if (el.contentEditable === 'false') {\n return false;\n }\n if (el.contentEditable === 'true') {\n return true;\n }\n return isEditable(getParent(el));\n}\nfunction getEventHost(e) {\n var te = e;\n if (te.targetTouches && te.targetTouches.length) {\n return te.targetTouches[0];\n }\n if (te.changedTouches && te.changedTouches.length) {\n return te.changedTouches[0];\n }\n return e;\n}\nfunction getCoord(coord, e) {\n var host = getEventHost(e);\n var missMap = {\n pageX: 'clientX',\n pageY: 'clientY'\n };\n if (coord in missMap && !(coord in host) && missMap[coord] in host) {\n coord = missMap[coord];\n }\n return host[coord];\n}\nvar DndSource = (function () {\n function DndSource(delegate, options) {\n if (options === void 0) { options = {}; }\n if (!delegate) {\n throw new Error(\"Missing delegate for dnd source.\");\n }\n if (typeof delegate.dndModel !== 'function') {\n throw new Error(\"Missing dndModel() method on dnd source delegate.\");\n }\n this.delegate = delegate;\n if (options.element) {\n this.element = options.element;\n }\n else {\n this.element = delegate.dndElement;\n }\n if (options.handler) {\n if (!(options.handler instanceof Element)) {\n throw new Error(\"specified handler is not a DOM element\");\n }\n this.handler = options.handler;\n }\n else {\n this.handler = this.element;\n }\n if (!(this.element instanceof Element)) {\n throw new Error(\"Missing dndElement or options.element on dnd source delegate.\");\n }\n this.noPreview = options.noPreview ? true : false;\n this.hideCursor = options.hideCursor ? true : false;\n this.centerPreviewToMousePosition = options.centerPreviewToMousePosition ? true : false;\n }\n return DndSource;\n}());\nvar DndTarget = (function () {\n function DndTarget(delegate, options) {\n if (options === void 0) { options = {}; }\n if (!delegate) {\n throw new Error(\"Missing delegate for dnd target.\");\n }\n if (typeof delegate.dndCanDrop !== 'function') {\n throw new Error(\"Missing dndCanDrop() method on delegate.\");\n }\n if (typeof delegate.dndDrop !== 'function') {\n throw new Error(\"Missing dndDrop() method on dnd target delegate.\");\n }\n this.delegate = delegate;\n if (options.element) {\n this.element = options.element;\n }\n else {\n this.element = delegate.dndElement;\n }\n if (!(this.element instanceof Element)) {\n throw new Error(\"Missing dndElement or options.element on dnd target delegate.\");\n }\n if (typeof delegate.dndHover === 'function') {\n this.dndHover = delegate.dndHover.bind(delegate);\n }\n }\n return DndTarget;\n}());\nfunction indexOfElementOrDelegate(array, delegateOrElement) {\n var test = (delegateOrElement instanceof Element) ?\n (function (o) { return o.element === delegateOrElement; }) :\n (function (o) { return o.delegate === delegateOrElement; });\n var len = array.length;\n for (var i = 0; i < len; i += 1) {\n if (test(array[i]))\n return i;\n }\n return -1;\n}\nfunction indexOfHandler(array, handler) {\n var test = (function (o) { return o.handler === handler; });\n var len = array.length;\n for (var i = 0; i < len; i += 1) {\n if (test(array[i]))\n return i;\n }\n return -1;\n}\nvar DndService = (function () {\n function DndService(ea) {\n this.ea = ea;\n this.dndSources = [];\n this.dndTargets = [];\n this.previewDrawers = [];\n injectStyles();\n this.addPreviewDrawer(preview_drawers_1.defaultPreview);\n this.addPreviewDrawer(preview_drawers_1.unknownTagPreview);\n this.addPreviewDrawer(preview_drawers_1.liPreview);\n this.addPreviewDrawer(preview_drawers_1.trPreview);\n this._grab = this._grab.bind(this);\n this._release = this._release.bind(this);\n this._startBecauseMouseMoved = this._startBecauseMouseMoved.bind(this);\n this._preventGrabbed = this._preventGrabbed.bind(this);\n this._drag = this._drag.bind(this);\n this._esc = this._esc.bind(this);\n documentElement.addEventListener('mousedown', this._grab);\n documentElement.addEventListener('touchstart', this._grab, { passive: false });\n documentElement.addEventListener('mouseup', this._release);\n documentElement.addEventListener('touchend', this._release);\n }\n DndService.prototype.addPreviewDrawer = function (drawer) {\n this.previewDrawers.unshift(drawer);\n };\n DndService.prototype.addSource = function (delegate, options) {\n if (options === void 0) { options = {}; }\n this.dndSources.push(new DndSource(delegate, options));\n };\n DndService.prototype.removeSource = function (delegateOrElement) {\n var idx = indexOfElementOrDelegate(this.dndSources, delegateOrElement);\n if (idx >= 0) {\n this.dndSources.splice(idx, 1);\n }\n };\n DndService.prototype.addTarget = function (delegate, options) {\n if (options === void 0) { options = {}; }\n delegate.dnd = {\n isProcessing: false\n };\n var dndTarget = new DndTarget(delegate, options);\n if (this.isProcessing) {\n var canDrop = dndTarget.delegate.dndCanDrop(this.model);\n var dnd = dndTarget.delegate.dnd;\n dnd.canDrop = canDrop;\n dnd.isProcessing = true;\n dnd.model = this.model;\n }\n this.dndTargets.push(dndTarget);\n };\n DndService.prototype.removeTarget = function (delegateOrElement) {\n var idx = indexOfElementOrDelegate(this.dndTargets, delegateOrElement);\n if (idx >= 0) {\n var dndTarget = this.dndTargets[idx];\n dndTarget.delegate.dnd = null;\n this.dndTargets.splice(idx, 1);\n }\n };\n DndService.prototype._sourceOf = function (element) {\n var idx = indexOfHandler(this.dndSources, element);\n return idx >= 0 ? this.dndSources[idx] : undefined;\n };\n DndService.prototype._startListeningEventualMovements = function () {\n documentElement.addEventListener('mousemove', this._startBecauseMouseMoved);\n documentElement.addEventListener('touchmove', this._startBecauseMouseMoved, { passive: false });\n this._element && this._element.addEventListener('touchmove', this._startBecauseMouseMoved, { passive: false });\n this._element && this._element.addEventListener('touchend', this._release, { passive: false });\n };\n DndService.prototype._stopListeningEventualMovements = function () {\n documentElement.removeEventListener('mousemove', this._startBecauseMouseMoved);\n documentElement.removeEventListener('touchmove', this._startBecauseMouseMoved);\n this._element && this._element.removeEventListener('touchmove', this._startBecauseMouseMoved);\n };\n DndService.prototype._startListeningMovements = function () {\n documentElement.addEventListener('selectstart', this._preventGrabbed);\n documentElement.addEventListener('click', this._preventGrabbed);\n documentElement.addEventListener('keydown', this._esc);\n documentElement.addEventListener('mousemove', this._drag);\n documentElement.addEventListener('touchmove', this._drag, { passive: false });\n this._element && this._element.addEventListener('touchmove', this._drag, { passive: false });\n };\n DndService.prototype._stopListeningMovements = function () {\n documentElement.removeEventListener('selectstart', this._preventGrabbed);\n documentElement.removeEventListener('click', this._preventGrabbed);\n documentElement.removeEventListener('keydown', this._esc);\n documentElement.removeEventListener('mousemove', this._drag);\n documentElement.removeEventListener('touchmove', this._drag);\n this._element && this._element.removeEventListener('touchmove', this._drag);\n this._element && this._element.removeEventListener('touchend', this._release);\n };\n DndService.prototype._preventGrabbed = function (e) {\n if (this._grabbed) {\n e.preventDefault();\n }\n };\n DndService.prototype._grab = function (e) {\n this._moveX = getCoord('clientX', e);\n this._moveY = getCoord('clientY', e);\n var ignore = whichMouseButton(e) !== 1 || e.metaKey || e.ctrlKey;\n if (ignore) {\n return;\n }\n var element = e.target;\n this._element = element;\n var dndSource = this._startingSource(element);\n if (!dndSource)\n return;\n this._grabbed = dndSource;\n this._startListeningEventualMovements();\n if (e.type === 'mousedown') {\n if (isInput(element)) {\n element.focus();\n }\n else {\n e.preventDefault();\n }\n }\n else {\n e.preventDefault();\n }\n };\n DndService.prototype._ungrab = function () {\n this._grabbed = undefined;\n this._stopListeningEventualMovements();\n this._stopListeningMovements();\n this._element = undefined;\n };\n DndService.prototype._release = function (e) {\n this._ungrab();\n if (!this.isProcessing)\n return;\n this.ea && this.ea.publish('dnd:willEnd');\n var shallowTarget = this._landingTargets(e).shallowTarget;\n if (shallowTarget) {\n shallowTarget.delegate.dndDrop(this._locationInfo(shallowTarget.element, e));\n }\n this._cleanup();\n this.ea && this.ea.publish('dnd:didEnd');\n };\n DndService.prototype._startingSource = function (element) {\n if (this.isProcessing) {\n return;\n }\n var dndSource;\n while (element) {\n if (!element)\n break;\n var s = this._sourceOf(element);\n if (s && (typeof s.delegate.dndCanDrag !== 'function' ||\n s.delegate.dndCanDrag())) {\n dndSource = s;\n break;\n }\n element = getParent(element);\n }\n return dndSource;\n };\n DndService.prototype._startBecauseMouseMoved = function (e) {\n if (!this._grabbed)\n return;\n if (whichMouseButton(e) === 0) {\n this._cleanup();\n return;\n }\n var clientX = getCoord('clientX', e);\n var clientY = getCoord('clientY', e);\n if (clientX !== undefined &&\n clientX === this._moveX &&\n clientY !== undefined &&\n clientY === this._moveY) {\n return;\n }\n var elementBehindCursor = doc.elementFromPoint(clientX, clientY);\n if (isInput(elementBehindCursor)) {\n return;\n }\n var grabbed = this._grabbed;\n this._stopListeningEventualMovements();\n this._startListeningMovements();\n if (this.isProcessing)\n this._cleanup();\n this._start(grabbed);\n this._sourceElementRect = getPageRect(this._sourceElement);\n this._offsetX = getCoord('pageX', e) - this._sourceElementRect.x;\n this._offsetY = getCoord('pageY', e) - this._sourceElementRect.y;\n this._renderPreviewImage();\n this._drag(e);\n };\n DndService.prototype._start = function (dndSource) {\n var _this = this;\n this.ea && this.ea.publish('dnd:willStart');\n this.isProcessing = true;\n this.model = dndSource.delegate.dndModel();\n this._sourceElement = dndSource.element;\n if (dndSource.noPreview) {\n this._noPreview = true;\n }\n else if (dndSource.delegate.dndPreview) {\n this._sourcePreview = dndSource.delegate.dndPreview(this.model);\n }\n if (!this._noPreview) {\n if (dndSource.hideCursor) {\n this._hideCursor = true;\n }\n if (dndSource.centerPreviewToMousePosition) {\n this._centerPreviewToMousePosition = true;\n }\n }\n this.dndTargets.forEach(function (dndTarget) {\n var canDrop = dndTarget.delegate.dndCanDrop(_this.model);\n var dnd = dndTarget.delegate.dnd;\n dnd.canDrop = canDrop;\n dnd.isProcessing = true;\n dnd.model = _this.model;\n });\n this.ea && this.ea.publish('dnd:didStart');\n };\n DndService.prototype._cleanup = function () {\n this._ungrab();\n this._removePreviewImage();\n this.isProcessing = undefined;\n this.model = undefined;\n this._sourceElement = undefined;\n this._noPreview = undefined;\n this._hideCursor = undefined;\n this._centerPreviewToMousePosition = undefined;\n this._sourcePreview = undefined;\n this._sourceElementRect = undefined;\n this._offsetX = 0;\n this._offsetY = 0;\n this.dndTargets.forEach(function (dndTarget) {\n var dnd = dndTarget.delegate.dnd;\n dnd.canDrop = undefined;\n dnd.isProcessing = undefined;\n dnd.isHoveringShallowly = undefined;\n dnd.isHovering = undefined;\n dnd.model = undefined;\n });\n };\n DndService.prototype._landingTargets = function (e) {\n var _a;\n if (!this.isProcessing) {\n return { shallowTarget: null, possibleTargets: [] };\n }\n var clientX = getCoord('clientX', e);\n var clientY = getCoord('clientY', e);\n var possibleTargets = this.dndTargets.filter(function (dndTarget) {\n if (!dndTarget.delegate.dnd.canDrop)\n return;\n var clientRect = dndTarget.element.getBoundingClientRect();\n return clientRect.left <= clientX &&\n clientRect.right >= clientX &&\n clientRect.top <= clientY &&\n clientRect.bottom >= clientY;\n });\n var dndTarget;\n var element = getElementBehindPreview(this._preview, clientX, clientY);\n while (!dndTarget && element) {\n var idx = indexOfElementOrDelegate(possibleTargets, element);\n if (idx >= 0) {\n dndTarget = possibleTargets[idx];\n }\n else {\n element = getParent(element);\n }\n }\n if (dndTarget) {\n possibleTargets.splice(possibleTargets.indexOf(dndTarget), 1);\n }\n else if (possibleTargets.length > 0) {\n _a = possibleTargets, dndTarget = _a[0], possibleTargets = _a.slice(1);\n }\n return { shallowTarget: dndTarget, possibleTargets: possibleTargets };\n };\n DndService.prototype._drag = function (e) {\n var _this = this;\n if (!this.isProcessing) {\n return;\n }\n e.preventDefault();\n this._updatePreviewLocation(e);\n var _a = this._landingTargets(e), shallowTarget = _a.shallowTarget, possibleTargets = _a.possibleTargets;\n this.dndTargets.forEach(function (dndTarget) {\n var dnd = dndTarget.delegate.dnd;\n if (!dnd.isProcessing)\n return;\n if (dndTarget === shallowTarget) {\n dnd.isHoveringShallowly = true;\n dnd.isHovering = true;\n if (dndTarget.dndHover) {\n dndTarget.dndHover(_this._locationInfo(dndTarget.element, e));\n }\n }\n else if (possibleTargets.indexOf(dndTarget) >= 0) {\n dnd.isHoveringShallowly = false;\n dnd.isHovering = true;\n if (dndTarget.dndHover) {\n dndTarget.dndHover(_this._locationInfo(dndTarget.element, e));\n }\n }\n else {\n dnd.isHoveringShallowly = false;\n dnd.isHovering = false;\n }\n });\n };\n DndService.prototype._esc = function (e) {\n if (!this.isProcessing) {\n return;\n }\n if (e.key === 'Escape') {\n e.preventDefault();\n this._cleanup();\n this.ea && this.ea.publish('dnd:didCancel');\n }\n };\n DndService.prototype._updatePreviewLocation = function (e) {\n if (this._preview) {\n var pageX = getCoord('pageX', e);\n var pageY = getCoord('pageY', e);\n if (this._centerPreviewToMousePosition) {\n var rect = this._preview.getBoundingClientRect();\n var width = getRectWidth(rect);\n var height = getRectHeight(rect);\n this._preview.style.left = (pageX - Math.floor(width / 2)) + 'px';\n this._preview.style.top = (pageY - Math.floor(height / 2)) + 'px';\n }\n else {\n this._preview.style.left = (pageX - this._offsetX) + 'px';\n this._preview.style.top = (pageY - this._offsetY) + 'px';\n }\n }\n };\n DndService.prototype._locationInfo = function (targetElement, e) {\n var mouseStartAt = {\n x: this._sourceElementRect.x + this._offsetX,\n y: this._sourceElementRect.y + this._offsetY\n };\n var pageX = getCoord('pageX', e);\n var pageY = getCoord('pageY', e);\n var mouseEndAt = { x: pageX, y: pageY };\n var targetElementRect = getPageRect(targetElement);\n var previewElementRect;\n if (this._preview) {\n previewElementRect = getPageRect(this._preview);\n }\n else {\n previewElementRect = {\n x: pageX - this._offsetX,\n y: pageY - this._offsetY,\n width: this._sourceElementRect.width,\n height: this._sourceElementRect.height\n };\n }\n return {\n mouseStartAt: mouseStartAt,\n mouseEndAt: mouseEndAt,\n sourceElementRect: this._sourceElementRect,\n targetElementRect: targetElementRect,\n previewElementRect: previewElementRect\n };\n };\n DndService.prototype._renderPreviewImage = function () {\n if (this._preview)\n return;\n if (this._noPreview)\n return;\n var customised = !!this._sourcePreview;\n if (customised) {\n this._preview = this._sourcePreview;\n this._sourcePreview = undefined;\n }\n else {\n var el = this._sourceElement;\n if (!el)\n return;\n for (var i = 0; i < this.previewDrawers.length; i++) {\n this._preview = this.previewDrawers[i](el);\n if (this._preview)\n break;\n }\n if (!this._preview)\n return;\n }\n classes.add(this._preview, 'bcx-dnd-preview');\n doc.body.appendChild(this._preview);\n classes.add(doc.body, 'bcx-dnd-unselectable');\n if (!customised && getComputedStyle(this._preview).backgroundColor === 'rgba(0, 0, 0, 0)') {\n this._preview.style.backgroundColor = 'white';\n }\n if (this._hideCursor) {\n classes.add(doc.body, 'bcx-dnd-hide-cursor');\n }\n };\n DndService.prototype._removePreviewImage = function () {\n if (this._preview) {\n classes.rm(doc.body, 'bcx-dnd-unselectable');\n classes.rm(doc.body, 'bcx-dnd-hide-cursor');\n getParent(this._preview).removeChild(this._preview);\n this._preview = null;\n }\n };\n return DndService;\n}());\nexports.DndService = DndService;\nDndService['inject'] = [aurelia_event_aggregator_1.EventAggregator];\n","\"use strict\";\nexports.__esModule = true;\nexports.defaultPreview = exports.unknownTagPreview = exports.liPreview = exports.trPreview = void 0;\nfunction trPreview(el) {\n if (el.tagName !== 'TR')\n return;\n if (!el.parentNode)\n return;\n if (!el.parentNode.parentNode || el.parentNode.parentNode.tagName !== 'TABLE')\n return;\n var newTr = el.cloneNode(true);\n var tdCount = el.childElementCount;\n for (var i = 0; i < tdCount - 1; i++) {\n var computed = getComputedStyle(el.children[i]);\n newTr.children[i].style.width = computed.width;\n newTr.children[i].style.height = computed.height;\n }\n var section = el.parentNode;\n var newSection = section.cloneNode();\n newSection.appendChild(newTr);\n var table = section.parentNode;\n var newTable = table.cloneNode();\n newTable.appendChild(newSection);\n var tableComputed = getComputedStyle(table);\n newTable.style.width = tableComputed.width;\n return newTable;\n}\nexports.trPreview = trPreview;\nfunction liPreview(el) {\n if (el.tagName !== 'LI')\n return;\n if (!el.parentNode)\n return;\n var tagName = el.parentNode.tagName;\n if (tagName !== 'UL' && tagName !== 'OL')\n return;\n var newLi = el.cloneNode(true);\n var computed = getComputedStyle(el);\n newLi.style.width = computed.width;\n newLi.style.height = computed.height;\n newLi.style.flex = '0 0 auto';\n var newUlOrOl = el.parentNode.cloneNode();\n newUlOrOl.appendChild(newLi);\n newUlOrOl.style.width = 'auto';\n newUlOrOl.style.height = 'auto';\n newUlOrOl.style.listStyleType = 'none';\n return newUlOrOl;\n}\nexports.liPreview = liPreview;\nfunction unknownTagPreview(el) {\n var computed = getComputedStyle(el);\n var isUnknownTag = computed.display === 'inline' &&\n computed.width === 'auto' &&\n computed.height === 'auto' &&\n el.style.width === '' &&\n el.style.height === '';\n if (!isUnknownTag)\n return;\n var preview = el.cloneNode(true);\n var len = el.childElementCount;\n for (var i = 0; i < len; i++) {\n var computed_1 = getComputedStyle(el.children[i]);\n preview.children[i].style.width = computed_1.width;\n preview.children[i].style.height = computed_1.height;\n }\n return preview;\n}\nexports.unknownTagPreview = unknownTagPreview;\nfunction defaultPreview(el) {\n var preview = el.cloneNode(true);\n var computed = getComputedStyle(el);\n preview.style.width = computed.width;\n preview.style.height = computed.height;\n return preview;\n}\nexports.defaultPreview = defaultPreview;\n","import { DOM } from 'aurelia-pal';\nimport { ReorderableRepeat } from './reorderable-repeat';\nimport { ReorderableDirection } from './reorderable-direction';\nimport { ReorderableGroup } from './reorderable-group';\nimport { ReorderableGroupFor } from './reorderable-group-for';\nimport { ReorderableDndPreview } from './reorderable-dnd-preview';\nimport { ReorderableDndHandlerSelector } from './reorderable-dnd-handler-selector';\nimport { ReorderableAfterReordering } from './reorderable-after-reordering';\nvar css = \"\\n.reorderable-repeat-dragging-me {\\n visibility: hidden;\\n}\\n\";\nexport function configure(config) {\n DOM.injectStyles(css);\n config.globalResources([\n ReorderableRepeat,\n ReorderableDirection,\n ReorderableGroup,\n ReorderableGroupFor,\n ReorderableDndPreview,\n ReorderableDndHandlerSelector,\n ReorderableAfterReordering\n ]);\n}\n\n//# sourceMappingURL=index.js.map\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { customAttribute } from 'aurelia-templating';\nvar ReorderableAfterReordering = (function () {\n function ReorderableAfterReordering() {\n }\n ReorderableAfterReordering = __decorate([\n customAttribute('reorderable-after-reordering')\n ], ReorderableAfterReordering);\n return ReorderableAfterReordering;\n}());\nexport { ReorderableAfterReordering };\n\n//# sourceMappingURL=reorderable-after-reordering.js.map\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { customAttribute } from 'aurelia-templating';\nvar ReorderableDirection = (function () {\n function ReorderableDirection() {\n }\n ReorderableDirection = __decorate([\n customAttribute('reorderable-direction')\n ], ReorderableDirection);\n return ReorderableDirection;\n}());\nexport { ReorderableDirection };\n\n//# sourceMappingURL=reorderable-direction.js.map\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { customAttribute } from 'aurelia-templating';\nvar ReorderableDndHandlerSelector = (function () {\n function ReorderableDndHandlerSelector() {\n }\n ReorderableDndHandlerSelector = __decorate([\n customAttribute('reorderable-dnd-handler-selector')\n ], ReorderableDndHandlerSelector);\n return ReorderableDndHandlerSelector;\n}());\nexport { ReorderableDndHandlerSelector };\n\n//# sourceMappingURL=reorderable-dnd-handler-selector.js.map\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { customAttribute } from 'aurelia-templating';\nvar ReorderableDndPreview = (function () {\n function ReorderableDndPreview() {\n }\n ReorderableDndPreview = __decorate([\n customAttribute('reorderable-dnd-preview')\n ], ReorderableDndPreview);\n return ReorderableDndPreview;\n}());\nexport { ReorderableDndPreview };\n\n//# sourceMappingURL=reorderable-dnd-preview.js.map\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { inject } from 'aurelia-dependency-injection';\nimport { customAttribute } from 'aurelia-templating';\nimport { DndService } from 'bcx-aurelia-dnd';\nimport { EventAggregator } from 'aurelia-event-aggregator';\nimport { ReorderableGroupMap } from './reorderable-group-map';\nimport repeaterDndType from './repeater-dnd-type';\nvar example = 'reorderable-group-for.bind=\"arrayModel\"';\nvar ReorderableGroupFor = (function () {\n function ReorderableGroupFor(element, ea, dndService, groupMap) {\n this.intention = null;\n this.element = element;\n this.ea = ea;\n this.dndService = dndService;\n this.groupMap = groupMap;\n this.resetIntention = this.resetIntention.bind(this);\n }\n ReorderableGroupFor.prototype.bind = function () {\n var _this = this;\n var value = this.value;\n if (!Array.isArray(value)) {\n throw new Error('reorderable-group-for needs items to be an array. e.g. ' + example);\n }\n this._subsribers = [\n this.ea.subscribe('dnd:willStart', function () {\n var repeaterInfo = _this.groupMap.get(value);\n if (repeaterInfo) {\n _this.group = repeaterDndType(repeaterInfo.group());\n _this.repeaterId = repeaterDndType(repeaterInfo.repeaterId);\n }\n else {\n _this.group = null;\n _this.repeaterId = null;\n }\n _this.resetIntention();\n }),\n this.ea.subscribe('dnd:didEnd', this.resetIntention),\n this.ea.subscribe('reorderable-group:intention-changed', function (intention) {\n if (intention.type !== _this.group)\n return;\n _this.intention = intention;\n })\n ];\n };\n ReorderableGroupFor.prototype.unbind = function () {\n this._subsribers.forEach(function (s) { return s.dispose(); });\n this._subsribers = [];\n };\n ReorderableGroupFor.prototype.resetIntention = function () {\n this.intention = null;\n };\n ReorderableGroupFor.prototype.attached = function () {\n this.dndService.addTarget(this, { element: this.element });\n };\n ReorderableGroupFor.prototype.detached = function () {\n this.dndService.removeTarget(this);\n };\n ReorderableGroupFor.prototype.dndCanDrop = function (model) {\n return model.type === this.group;\n };\n ReorderableGroupFor.prototype.dndHover = function () {\n if (!this.repeaterId)\n return;\n var _a = this.dnd, isHoveringShallowly = _a.isHoveringShallowly, model = _a.model;\n if (!isHoveringShallowly)\n return;\n var type = model.type, index = model.index, item = model.item, repeaterId = model.repeaterId;\n var length = this.value ? this.value.length : 0;\n var inSameGroup = model.repeaterId === this.repeaterId;\n var defaultTargetIndex = inSameGroup ? length - 1 : length;\n if (!this.intention || this.intention.toRepeaterId !== this.repeaterId) {\n this.ea.publish('reorderable-group:intention-changed', {\n type: type,\n item: item,\n fromIndex: index,\n fromRepeaterId: repeaterId,\n toIndex: defaultTargetIndex,\n toRepeaterId: this.repeaterId\n });\n }\n };\n ReorderableGroupFor.prototype.dndDrop = function () {\n };\n ReorderableGroupFor = __decorate([\n customAttribute('reorderable-group-for'),\n inject(Element, EventAggregator, DndService, ReorderableGroupMap),\n __metadata(\"design:paramtypes\", [Object, Object, Object, Object])\n ], ReorderableGroupFor);\n return ReorderableGroupFor;\n}());\nexport { ReorderableGroupFor };\n\n//# sourceMappingURL=reorderable-group-for.js.map\n","var ReorderableGroupMap = (function () {\n function ReorderableGroupMap() {\n this._map = new WeakMap();\n }\n ReorderableGroupMap.prototype.add = function (repeater) {\n var repeaterId = repeater.repeaterId, items = repeater.items;\n this._map.set(items, { group: function () { return repeater.type; }, repeaterId: repeaterId });\n };\n ReorderableGroupMap.prototype.remove = function (repeater) {\n var items = repeater.items;\n this._map.delete(items);\n };\n ReorderableGroupMap.prototype.get = function (items) {\n return this._map.get(items);\n };\n return ReorderableGroupMap;\n}());\nexport { ReorderableGroupMap };\n\n//# sourceMappingURL=reorderable-group-map.js.map\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { customAttribute } from 'aurelia-templating';\nvar ReorderableGroup = (function () {\n function ReorderableGroup() {\n }\n ReorderableGroup = __decorate([\n customAttribute('reorderable-group')\n ], ReorderableGroup);\n return ReorderableGroup;\n}());\nexport { ReorderableGroup };\n\n//# sourceMappingURL=reorderable-group.js.map\n","import { SimpleArrayRepeatStrategy } from './simple-array-repeat-strategy';\nimport { ArrayRepeatStrategy } from 'aurelia-templating-resources';\nvar ReorderableRepeatStrategyLocator = (function () {\n function ReorderableRepeatStrategyLocator() {\n this.matchers = [];\n this.strategies = [];\n this.addStrategy(function (items) {\n if (items instanceof Array) {\n return items.length === 0 || typeof items[0] !== 'object';\n }\n }, new SimpleArrayRepeatStrategy());\n this.addStrategy(function (items) {\n if (items instanceof Array) {\n return items.length && typeof items[0] === 'object';\n }\n }, new ArrayRepeatStrategy());\n }\n ReorderableRepeatStrategyLocator.prototype.addStrategy = function (matcher, strategy) {\n this.matchers.push(matcher);\n this.strategies.push(strategy);\n };\n ReorderableRepeatStrategyLocator.prototype.getStrategy = function (items) {\n var matchers = this.matchers;\n for (var i = 0, ii = matchers.length; i < ii; ++i) {\n if (matchers[i](items)) {\n return this.strategies[i];\n }\n }\n return null;\n };\n return ReorderableRepeatStrategyLocator;\n}());\nexport { ReorderableRepeatStrategyLocator };\n\n//# sourceMappingURL=reorderable-repeat-strategy-locator.js.map\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nimport { inject } from 'aurelia-dependency-injection';\nimport { ObserverLocator, observable, BindingEngine, BindingBehavior, ValueConverter, getContextFor } from 'aurelia-binding';\nimport { BoundViewFactory, TargetInstruction, ViewSlot, ViewResources, customAttribute, bindable, templateController } from 'aurelia-templating';\nimport { getItemsSourceExpression, isOneTime, updateOneTimeBinding, viewsRequireLifecycle, AbstractRepeater } from 'aurelia-templating-resources';\nimport { ReorderableRepeatStrategyLocator } from './reorderable-repeat-strategy-locator';\nimport { DndService } from 'bcx-aurelia-dnd';\nimport { EventAggregator } from 'aurelia-event-aggregator';\nimport { TaskQueue } from 'aurelia-task-queue';\nimport repeaterDndType from './repeater-dnd-type';\nimport { ReorderableGroupMap } from './reorderable-group-map';\nvar seed = 0;\nvar classes = (function () {\n var cache = {};\n var start = '(?:^|\\\\s)';\n var end = '(?:\\\\s|$)';\n function lookupClass(className) {\n var cached = cache[className];\n if (cached) {\n cached.lastIndex = 0;\n }\n else {\n cache[className] = cached = new RegExp(start + className + end, 'g');\n }\n return cached;\n }\n function addClass(el, className) {\n var current = el.className;\n if (!current.length) {\n el.className = className;\n }\n else if (!lookupClass(className).test(current)) {\n el.className += ' ' + className;\n }\n }\n function rmClass(el, className) {\n el.className = el.className.replace(lookupClass(className), ' ').trim();\n }\n return { add: addClass, rm: rmClass };\n}());\nvar ReorderableRepeat = (function (_super) {\n __extends(ReorderableRepeat, _super);\n function ReorderableRepeat(ea, taskQueue, bindingEngine, dndService, viewFactory, instruction, viewSlot, viewResources, observerLocator, strategyLocator, groupMap) {\n var _this = _super.call(this, {\n local: 'item',\n viewsRequireLifecycle: viewsRequireLifecycle(viewFactory)\n }) || this;\n _this.intention = null;\n _this.type = null;\n _this.repeaterId = seed;\n _this.type = _this.repeaterId;\n seed += 1;\n _this.ea = ea;\n _this.taskQueue = taskQueue;\n _this.bindingEngine = bindingEngine;\n _this.dndService = dndService;\n _this.viewFactory = viewFactory;\n _this.instruction = instruction;\n _this.viewSlot = viewSlot;\n _this.lookupFunctions = viewResources.lookupFunctions;\n _this.observerLocator = observerLocator;\n _this.strategyLocator = strategyLocator;\n _this.groupMap = groupMap;\n _this.ignoreMutation = false;\n _this.sourceExpression = getItemsSourceExpression(_this.instruction, 'reorderable-repeat.for');\n if (_this.sourceExpression instanceof BindingBehavior) {\n throw new Error('BindingBehavior is not supported in reorderable-repeat');\n }\n if (_this.sourceExpression instanceof ValueConverter) {\n throw new Error('ValueConverter is not supported in reorderable-repeat');\n }\n if (isOneTime(_this.sourceExpression)) {\n throw new Error('oneTime binding is not supported in reorderable-repeat');\n }\n _this.viewsRequireLifecycle = viewsRequireLifecycle(viewFactory);\n _this.group = _this._reorderableGroup();\n return _this;\n }\n ReorderableRepeat.prototype.call = function (context, changes) {\n this[context](this.items, changes);\n };\n ReorderableRepeat.prototype.bind = function (bindingContext, overrideContext) {\n var _this = this;\n this.scope = { bindingContext: bindingContext, overrideContext: overrideContext };\n this.matcherBinding = this._captureAndRemoveMatcherBinding();\n this.arrayObserver = this.bindingEngine.collectionObserver(this.items).subscribe(this._itemsMutated.bind(this));\n this._subsribers = [\n this.ea.subscribe('dnd:willStart', function () {\n _this.intention = null;\n _this.views().forEach(function (v) {\n classes.rm(v.firstChild, 'reorderable-repeat-reordering');\n classes.rm(v.firstChild, 'reorderable-repeat-dragging-me');\n });\n }),\n this.ea.subscribe('dnd:didCancel', function () {\n _this.intention = null;\n _this.views().forEach(function (v) {\n classes.rm(v.firstChild, 'reorderable-repeat-reordering');\n classes.rm(v.firstChild, 'reorderable-repeat-dragging-me');\n });\n }),\n this.ea.subscribe('dnd:didEnd', function () {\n _this.views().forEach(function (v) {\n classes.rm(v.firstChild, 'reorderable-repeat-reordering');\n classes.rm(v.firstChild, 'reorderable-repeat-dragging-me');\n });\n if (!_this.intention)\n return;\n var _a = _this.intention, item = _a.item, fromIndex = _a.fromIndex, fromRepeaterId = _a.fromRepeaterId, toIndex = _a.toIndex, toRepeaterId = _a.toRepeaterId;\n _this.intention = null;\n var repeaterId = repeaterDndType(_this.repeaterId);\n if (repeaterId !== fromRepeaterId && repeaterId !== toRepeaterId)\n return;\n if (fromRepeaterId === toRepeaterId && fromIndex === toIndex)\n return;\n var change = { item: item, fromIndex: fromIndex, toIndex: toIndex };\n if (repeaterId === fromRepeaterId) {\n _this.items.splice(fromIndex, 1);\n change.removedFromThisList = true;\n }\n if (repeaterId === toRepeaterId) {\n _this.items.splice(toIndex, 0, item);\n change.insertedToThisList = true;\n }\n var afterReordering = _this._reorderableAfterReorderingFunc();\n if (afterReordering) {\n _this.taskQueue.queueMicroTask(function () {\n afterReordering(_this.items, change);\n });\n }\n }),\n this.ea.subscribe('reorderable-group:intention-changed', function (intention) {\n if (intention.type !== repeaterDndType(_this.type))\n return;\n if (_this.intention &&\n intention.type === _this.intention.type &&\n intention.fromIndex === _this.intention.fromIndex &&\n intention.fromRepeaterId === _this.intention.fromRepeaterId &&\n intention.toIndex === _this.intention.toIndex &&\n intention.toRepeaterId === _this.intention.toRepeaterId)\n return;\n _this.intention = intention;\n })\n ];\n if (typeof this.group === 'string') {\n this.type = this.group;\n }\n else if (this.group) {\n this.group.targetProperty = 'type',\n this._typeBinding = this.group.createBinding(this);\n this._typeBinding.bind(this.scope);\n }\n this.patchedItems = __spreadArray([], this.items, true);\n this.patchedItemsChanged();\n };\n ReorderableRepeat.prototype.unbind = function () {\n this.groupMap.remove(this);\n if (this._typeBinding) {\n this._typeBinding.unbind();\n delete this._typeBinding;\n }\n if (this.arrayObserver) {\n this.arrayObserver.dispose();\n this.arrayObserver = null;\n }\n this._subsribers.forEach(function (s) { return s.dispose(); });\n this._subsribers = [];\n this.removeAllViews(true, true);\n this.scope = null;\n this.items = null;\n this.matcherBinding = null;\n };\n ReorderableRepeat.prototype.intentionChanged = function (newIntention) {\n if (newIntention) {\n var repeaterId = repeaterDndType(this.repeaterId);\n var item = newIntention.item, fromIndex = newIntention.fromIndex, fromRepeaterId = newIntention.fromRepeaterId, toIndex = newIntention.toIndex, toRepeaterId = newIntention.toRepeaterId;\n var patched = __spreadArray([], this.items, true);\n if (repeaterId === fromRepeaterId) {\n patched.splice(fromIndex, 1);\n }\n if (repeaterId === toRepeaterId) {\n patched.splice(toIndex, 0, item);\n }\n this.patchedItems = patched;\n }\n else {\n if (this.items) {\n this.patchedItems = __spreadArray([], this.items, true);\n }\n else {\n this.patchedItems = null;\n }\n }\n };\n ReorderableRepeat.prototype.itemsChanged = function () {\n if (!this.scope) {\n return;\n }\n if (this.arrayObserver) {\n this.arrayObserver.dispose();\n this.arrayObserver = null;\n }\n this.arrayObserver = this.bindingEngine.collectionObserver(this.items).subscribe(this._itemsMutated.bind(this));\n if (this.intention === null) {\n this.patchedItems = __spreadArray([], this.items, true);\n }\n else {\n this.intention = null;\n }\n };\n ReorderableRepeat.prototype._itemsMutated = function () {\n if (this.intention === null) {\n this.patchedItems = __spreadArray([], this.items, true);\n }\n else {\n this.intention = null;\n }\n };\n ReorderableRepeat.prototype.patchedItemsChanged = function () {\n this._reload();\n };\n ReorderableRepeat.prototype.typeChanged = function () {\n this._reload();\n };\n ReorderableRepeat.prototype._reload = function () {\n var _this = this;\n if (!this.scope) {\n return;\n }\n if (!this.patchedItems) {\n return;\n }\n this.strategy = this.strategyLocator.getStrategy(this.patchedItems);\n if (!this.strategy) {\n throw new Error(\"Value for '\".concat(this.sourceExpression, \"' is non-repeatable\"));\n }\n this.strategy.instanceChanged(this, this.patchedItems);\n this.taskQueue.queueMicroTask(function () {\n if (!_this.scope) {\n return;\n }\n _this.groupMap.remove(_this);\n _this.views().forEach(function (view) {\n _this._unRegisterDnd(view);\n _this._registerDnd(view);\n });\n _this.groupMap.add(_this);\n });\n };\n ReorderableRepeat.prototype._captureAndRemoveMatcherBinding = function () {\n if (this.viewFactory.viewFactory) {\n var instructions = this.viewFactory.viewFactory.instructions;\n var instructionIds = Object.keys(instructions);\n for (var i = 0; i < instructionIds.length; i++) {\n var expressions = instructions[instructionIds[i]].expressions;\n if (expressions) {\n for (var ii = 0; i < expressions.length; i++) {\n if (expressions[ii].targetProperty === 'matcher') {\n var matcherBinding = expressions[ii];\n expressions.splice(ii, 1);\n return matcherBinding;\n }\n }\n }\n }\n }\n return undefined;\n };\n ReorderableRepeat.prototype.viewCount = function () { return this.viewSlot.children.length; };\n ReorderableRepeat.prototype.views = function () { return this.viewSlot.children; };\n ReorderableRepeat.prototype.view = function (index) { return this.viewSlot.children[index]; };\n ReorderableRepeat.prototype.matcher = function () { return this.matcherBinding ? this.matcherBinding.sourceExpression.evaluate(this.scope, this.matcherBinding.lookupFunctions) : null; };\n ReorderableRepeat.prototype.addView = function (bindingContext, overrideContext) {\n var view = this.viewFactory.create();\n view.bind(bindingContext, overrideContext);\n this.viewSlot.add(view);\n };\n ReorderableRepeat.prototype.insertView = function (index, bindingContext, overrideContext) {\n var view = this.viewFactory.create();\n view.bind(bindingContext, overrideContext);\n this.viewSlot.insert(index, view);\n };\n ReorderableRepeat.prototype.moveView = function (sourceIndex, targetIndex) {\n this.viewSlot.move(sourceIndex, targetIndex);\n };\n ReorderableRepeat.prototype.removeAllViews = function (returnToCache, skipAnimation) {\n var _this = this;\n this.views().forEach(function (view) { return _this._unRegisterDnd(view); });\n return this.viewSlot.removeAll(returnToCache, skipAnimation);\n };\n ReorderableRepeat.prototype.removeViews = function (viewsToRemove, returnToCache, skipAnimation) {\n var _this = this;\n viewsToRemove.forEach(function (view) { return _this._unRegisterDnd(view); });\n return this.viewSlot.removeMany(viewsToRemove, returnToCache, skipAnimation);\n };\n ReorderableRepeat.prototype.removeView = function (index, returnToCache, skipAnimation) {\n this._unRegisterDnd(this.view(index));\n return this.viewSlot.removeAt(index, returnToCache, skipAnimation);\n };\n ReorderableRepeat.prototype.updateBindings = function (view) {\n var j = view.bindings.length;\n while (j--) {\n updateOneTimeBinding(view.bindings[j]);\n }\n j = view.controllers.length;\n while (j--) {\n var k = view.controllers[j].boundProperties.length;\n while (k--) {\n var binding = view.controllers[j].boundProperties[k].binding;\n updateOneTimeBinding(binding);\n }\n }\n };\n ReorderableRepeat.prototype._additionalAttribute = function (view, attribute) {\n if (view && view.firstChild && view.firstChild.au && view.firstChild.au[attribute]) {\n return view.firstChild.au[attribute].instruction.attributes[attribute];\n }\n return this._getPlainAttribute(attribute);\n };\n ReorderableRepeat.prototype._getPlainAttribute = function (name) {\n if (this.viewFactory && this.viewFactory.viewFactory) {\n var node = this.viewFactory.viewFactory.template.firstChild;\n if (node && node.hasAttribute(name)) {\n return node.getAttribute(name);\n }\n }\n };\n ReorderableRepeat.prototype._reorderableGroup = function () {\n if (this.viewFactory && this.viewFactory.viewFactory) {\n var node = this.viewFactory.viewFactory.template.firstChild;\n var targetId = node.getAttribute('au-target-id');\n var instruction = this.viewFactory.viewFactory.instructions[targetId];\n if (instruction) {\n var bi = instruction.behaviorInstructions.find(function (bi) { return bi.attrName === 'reorderable-group'; });\n if (bi) {\n var exp = bi.attributes && bi.attributes['reorderable-group'];\n if (exp && typeof exp.createBinding === 'function') {\n return exp;\n }\n }\n }\n }\n return this._getPlainAttribute('reorderable-group');\n };\n ReorderableRepeat.prototype._reorderableDirection = function (view) {\n var attr = this._additionalAttribute(view, 'reorderable-direction');\n if (attr && attr.sourceExpression) {\n attr = attr.sourceExpression.evaluate(this.scope);\n }\n if (typeof attr === 'string') {\n return attr.toLowerCase() || 'down';\n }\n return 'down';\n };\n ReorderableRepeat.prototype._dndHandlerSelector = function (view) {\n var attr = this._additionalAttribute(view, 'reorderable-dnd-handler-selector');\n if (attr && attr.sourceExpression) {\n attr = attr.sourceExpression.evaluate(this.scope);\n }\n if (typeof attr === 'string') {\n return attr;\n }\n };\n ReorderableRepeat.prototype._dndPreviewFunc = function (view) {\n var func = this._additionalAttribute(view, 'reorderable-dnd-preview');\n if (!func) {\n return null;\n }\n else if (typeof func === 'string') {\n var context = getContextFor(func, this.scope);\n var funcCall = context[func];\n if (typeof funcCall === 'function') {\n return funcCall.bind(context);\n }\n throw new Error(\"'reorderable-dnd-preview' must be a function or evaluate to a function\");\n }\n else if (func.sourceExpression) {\n return function (_, scope) {\n return func.sourceExpression.evaluate(scope);\n };\n }\n else {\n throw new Error(\"'reorderable-dnd-preview' must be a function or evaluate to a function\");\n }\n };\n ReorderableRepeat.prototype._reorderableAfterReorderingFunc = function () {\n var _this = this;\n var func = this._additionalAttribute(this.view(0), 'reorderable-after-reordering');\n if (!func) {\n return null;\n }\n else if (typeof func === 'string') {\n var context = getContextFor(func, this.scope);\n var funcCall = context[func];\n if (typeof funcCall === 'function') {\n return funcCall.bind(context);\n }\n throw new Error(\"'reorderable-after-reordering' must be a function or evaluate to a function\");\n }\n else if (func.sourceExpression) {\n return function () { return func.sourceExpression.evaluate(_this.scope); };\n }\n else {\n throw new Error(\"'reorderable-after-reordering' must be a function or evaluate to a function\");\n }\n };\n ReorderableRepeat.prototype._dndHover = function (location, index, direction) {\n var repeaterId = repeaterDndType(this.repeaterId);\n if (this.intention &&\n this.intention.toRepeaterId === repeaterId &&\n this.intention.toIndex === index) {\n return;\n }\n var model = this.dndService.model;\n var mouseEndAt = location.mouseEndAt, targetElementRect = location.targetElementRect;\n var x = mouseEndAt.x - targetElementRect.x;\n var y = mouseEndAt.y - targetElementRect.y;\n var inLeastHalf;\n if (direction === 'left') {\n inLeastHalf = x > (targetElementRect.width / 2);\n }\n else if (direction === 'right') {\n inLeastHalf = x < (targetElementRect.width / 2);\n }\n else if (direction === 'up') {\n inLeastHalf = y > (targetElementRect.height / 2);\n }\n else {\n inLeastHalf = y < (targetElementRect.height / 2);\n }\n if (inLeastHalf ||\n (!this.intention && model.repeaterId === repeaterId && index === model.index)) {\n this._updateIntention(index, true);\n }\n else {\n this._updateIntention(index, false);\n }\n };\n ReorderableRepeat.prototype._registerDnd = function (view) {\n var _this = this;\n var local = this.local;\n var el = view.firstChild;\n var item = view.bindingContext[local];\n var index = view.overrideContext.$index;\n var handlerSelector = this._dndHandlerSelector(view);\n var handler;\n if (handlerSelector) {\n handler = el.querySelector(handlerSelector);\n }\n var repeaterId = repeaterDndType(this.repeaterId);\n var direction = this._reorderableDirection(view);\n var _previewFunc = this._dndPreviewFunc(view);\n this.dndService.addSource({\n dndModel: function () { return ({ type: repeaterDndType(_this.type), index: index, item: item, repeaterId: repeaterId }); },\n dndPreview: _previewFunc && (function () { return _previewFunc(item, view); }),\n dndElement: el\n }, handler && { handler: handler });\n this.dndService.addTarget({\n dndElement: el,\n dndCanDrop: function (model) {\n if (model.type !== repeaterDndType(_this.type))\n return false;\n var intention = _this.intention;\n var inSameGroup = model.repeaterId === repeaterId;\n _this.taskQueue.queueMicroTask(function () {\n classes.add(el, 'reorderable-repeat-reordering');\n });\n var draggingMe;\n if (intention) {\n draggingMe = intention.toRepeaterId === repeaterId &&\n intention.toIndex === index;\n }\n else if (inSameGroup) {\n draggingMe = model.index === index;\n }\n if (draggingMe) {\n _this.taskQueue.queueMicroTask(function () {\n classes.add(el, 'reorderable-repeat-dragging-me');\n });\n }\n return true;\n },\n dndHover: function (location) {\n _this._dndHover(location, index, direction);\n },\n dndDrop: function () { }\n });\n };\n ReorderableRepeat.prototype._unRegisterDnd = function (view) {\n classes.rm(view.firstChild, 'reorderable-repeat-reordering');\n classes.rm(view.firstChild, 'reorderable-repeat-dragging-me');\n this.dndService.removeSource(view.firstChild);\n this.dndService.removeTarget(view.firstChild);\n };\n ReorderableRepeat.prototype._updateIntention = function (targetIndex, beforeTarget) {\n var _a = this.dndService, isProcessing = _a.isProcessing, model = _a.model;\n if (!isProcessing)\n return;\n if (model.type !== repeaterDndType(this.type))\n return;\n var repeaterId = repeaterDndType(this.repeaterId);\n var isUsingGroup = model.type !== model.repeaterId;\n var inSameGroup = model.repeaterId === repeaterId;\n if (targetIndex < 0)\n return;\n var originalIndex;\n var currentIndex;\n var nextIndex;\n if (inSameGroup) {\n if (this.intention) {\n originalIndex = this.intention.fromIndex;\n currentIndex = this.intention.toIndex;\n }\n else {\n originalIndex = model.index;\n if (originalIndex < 0)\n return;\n currentIndex = originalIndex;\n }\n }\n else {\n if (this.intention && this.intention.toRepeaterId === repeaterId) {\n originalIndex = this.intention.fromIndex;\n currentIndex = this.intention.toIndex;\n }\n else {\n originalIndex = model.index;\n if (originalIndex < 0)\n return;\n currentIndex = targetIndex;\n }\n }\n if (currentIndex < targetIndex) {\n if (beforeTarget) {\n nextIndex = targetIndex - 1;\n }\n else {\n nextIndex = targetIndex;\n }\n }\n else {\n if (beforeTarget) {\n nextIndex = targetIndex;\n }\n else {\n nextIndex = targetIndex + 1;\n }\n }\n if (!this.intention ||\n this.intention.fromIndex !== originalIndex ||\n this.intention.fromRepeaterId !== model.repeaterId ||\n this.intention.toIndex !== nextIndex ||\n this.intention.toRepeaterId !== repeaterId) {\n this.intention = {\n type: model.type,\n item: model.item,\n fromIndex: originalIndex,\n fromRepeaterId: model.repeaterId,\n toIndex: nextIndex,\n toRepeaterId: repeaterId\n };\n if (isUsingGroup) {\n this.ea.publish('reorderable-group:intention-changed', this.intention);\n }\n }\n };\n __decorate([\n bindable,\n __metadata(\"design:type\", Object)\n ], ReorderableRepeat.prototype, \"items\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", Object)\n ], ReorderableRepeat.prototype, \"local\", void 0);\n __decorate([\n observable,\n __metadata(\"design:type\", Object)\n ], ReorderableRepeat.prototype, \"intention\", void 0);\n __decorate([\n observable,\n __metadata(\"design:type\", Object)\n ], ReorderableRepeat.prototype, \"patchedItems\", void 0);\n __decorate([\n observable,\n __metadata(\"design:type\", Object)\n ], ReorderableRepeat.prototype, \"type\", void 0);\n ReorderableRepeat = __decorate([\n customAttribute('reorderable-repeat'),\n templateController,\n inject(EventAggregator, TaskQueue, BindingEngine, DndService, BoundViewFactory, TargetInstruction, ViewSlot, ViewResources, ObserverLocator, ReorderableRepeatStrategyLocator, ReorderableGroupMap),\n __metadata(\"design:paramtypes\", [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])\n ], ReorderableRepeat);\n return ReorderableRepeat;\n}(AbstractRepeater));\nexport { ReorderableRepeat };\n\n//# sourceMappingURL=reorderable-repeat.js.map\n","var prefix = 'bcx-aurelia-reorderable-repeat:';\nexport default function (ref) {\n return prefix + ref;\n}\n\n//# sourceMappingURL=repeater-dnd-type.js.map\n","import { createFullOverrideContext } from 'aurelia-templating-resources';\nvar SimpleArrayRepeatStrategy = (function () {\n function SimpleArrayRepeatStrategy() {\n }\n SimpleArrayRepeatStrategy.prototype.getCollectionObserver = function (observerLocator, items) {\n return observerLocator.getArrayObserver(items);\n };\n SimpleArrayRepeatStrategy.prototype.instanceChanged = function (repeat, items) {\n repeat.removeAllViews(true, !repeat.viewsRequireLifecycle);\n var itemsLength = items.length;\n if (items && itemsLength > 0) {\n this._standardProcessInstanceChanged(repeat, items);\n }\n };\n SimpleArrayRepeatStrategy.prototype._standardProcessInstanceChanged = function (repeat, items) {\n for (var i = 0, ii = items.length; i < ii; i++) {\n var overrideContext = createFullOverrideContext(repeat, items[i], i, ii);\n repeat.addView(overrideContext.bindingContext, overrideContext);\n }\n };\n return SimpleArrayRepeatStrategy;\n}());\nexport { SimpleArrayRepeatStrategy };\n\n//# sourceMappingURL=simple-array-repeat-strategy.js.map\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".daterangepicker {\\r\\n position: absolute;\\r\\n color: inherit;\\r\\n background-color: #fff;\\r\\n border-radius: 4px;\\r\\n border: 1px solid #ddd;\\r\\n width: 278px;\\r\\n max-width: none;\\r\\n padding: 0;\\r\\n margin-top: 7px;\\r\\n top: 100px;\\r\\n left: 20px;\\r\\n z-index: 3001;\\r\\n display: none;\\r\\n font-family: arial;\\r\\n font-size: 15px;\\r\\n line-height: 1em;\\r\\n}\\r\\n\\r\\n.daterangepicker:before, .daterangepicker:after {\\r\\n position: absolute;\\r\\n display: inline-block;\\r\\n border-bottom-color: rgba(0, 0, 0, 0.2);\\r\\n content: '';\\r\\n}\\r\\n\\r\\n.daterangepicker:before {\\r\\n top: -7px;\\r\\n border-right: 7px solid transparent;\\r\\n border-left: 7px solid transparent;\\r\\n border-bottom: 7px solid #ccc;\\r\\n}\\r\\n\\r\\n.daterangepicker:after {\\r\\n top: -6px;\\r\\n border-right: 6px solid transparent;\\r\\n border-bottom: 6px solid #fff;\\r\\n border-left: 6px solid transparent;\\r\\n}\\r\\n\\r\\n.daterangepicker.opensleft:before {\\r\\n right: 9px;\\r\\n}\\r\\n\\r\\n.daterangepicker.opensleft:after {\\r\\n right: 10px;\\r\\n}\\r\\n\\r\\n.daterangepicker.openscenter:before {\\r\\n left: 0;\\r\\n right: 0;\\r\\n width: 0;\\r\\n margin-left: auto;\\r\\n margin-right: auto;\\r\\n}\\r\\n\\r\\n.daterangepicker.openscenter:after {\\r\\n left: 0;\\r\\n right: 0;\\r\\n width: 0;\\r\\n margin-left: auto;\\r\\n margin-right: auto;\\r\\n}\\r\\n\\r\\n.daterangepicker.opensright:before {\\r\\n left: 9px;\\r\\n}\\r\\n\\r\\n.daterangepicker.opensright:after {\\r\\n left: 10px;\\r\\n}\\r\\n\\r\\n.daterangepicker.drop-up {\\r\\n margin-top: -7px;\\r\\n}\\r\\n\\r\\n.daterangepicker.drop-up:before {\\r\\n top: initial;\\r\\n bottom: -7px;\\r\\n border-bottom: initial;\\r\\n border-top: 7px solid #ccc;\\r\\n}\\r\\n\\r\\n.daterangepicker.drop-up:after {\\r\\n top: initial;\\r\\n bottom: -6px;\\r\\n border-bottom: initial;\\r\\n border-top: 6px solid #fff;\\r\\n}\\r\\n\\r\\n.daterangepicker.single .daterangepicker .ranges, .daterangepicker.single .drp-calendar {\\r\\n float: none;\\r\\n}\\r\\n\\r\\n.daterangepicker.single .drp-selected {\\r\\n display: none;\\r\\n}\\r\\n\\r\\n.daterangepicker.show-calendar .drp-calendar {\\r\\n display: block;\\r\\n}\\r\\n\\r\\n.daterangepicker.show-calendar .drp-buttons {\\r\\n display: block;\\r\\n}\\r\\n\\r\\n.daterangepicker.auto-apply .drp-buttons {\\r\\n display: none;\\r\\n}\\r\\n\\r\\n.daterangepicker .drp-calendar {\\r\\n display: none;\\r\\n max-width: 270px;\\r\\n}\\r\\n\\r\\n.daterangepicker .drp-calendar.left {\\r\\n padding: 8px 0 8px 8px;\\r\\n}\\r\\n\\r\\n.daterangepicker .drp-calendar.right {\\r\\n padding: 8px;\\r\\n}\\r\\n\\r\\n.daterangepicker .drp-calendar.single .calendar-table {\\r\\n border: none;\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-table .next span, .daterangepicker .calendar-table .prev span {\\r\\n color: #fff;\\r\\n border: solid black;\\r\\n border-width: 0 2px 2px 0;\\r\\n border-radius: 0;\\r\\n display: inline-block;\\r\\n padding: 3px;\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-table .next span {\\r\\n transform: rotate(-45deg);\\r\\n -webkit-transform: rotate(-45deg);\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-table .prev span {\\r\\n transform: rotate(135deg);\\r\\n -webkit-transform: rotate(135deg);\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-table th, .daterangepicker .calendar-table td {\\r\\n white-space: nowrap;\\r\\n text-align: center;\\r\\n vertical-align: middle;\\r\\n min-width: 32px;\\r\\n width: 32px;\\r\\n height: 24px;\\r\\n line-height: 24px;\\r\\n font-size: 12px;\\r\\n border-radius: 4px;\\r\\n border: 1px solid transparent;\\r\\n white-space: nowrap;\\r\\n cursor: pointer;\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-table {\\r\\n border: 1px solid #fff;\\r\\n border-radius: 4px;\\r\\n background-color: #fff;\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-table table {\\r\\n width: 100%;\\r\\n margin: 0;\\r\\n border-spacing: 0;\\r\\n border-collapse: collapse;\\r\\n}\\r\\n\\r\\n.daterangepicker td.available:hover, .daterangepicker th.available:hover {\\r\\n background-color: #eee;\\r\\n border-color: transparent;\\r\\n color: inherit;\\r\\n}\\r\\n\\r\\n.daterangepicker td.week, .daterangepicker th.week {\\r\\n font-size: 80%;\\r\\n color: #ccc;\\r\\n}\\r\\n\\r\\n.daterangepicker td.off, .daterangepicker td.off.in-range, .daterangepicker td.off.start-date, .daterangepicker td.off.end-date {\\r\\n background-color: #fff;\\r\\n border-color: transparent;\\r\\n color: #999;\\r\\n}\\r\\n\\r\\n.daterangepicker td.in-range {\\r\\n background-color: #ebf4f8;\\r\\n border-color: transparent;\\r\\n color: #000;\\r\\n border-radius: 0;\\r\\n}\\r\\n\\r\\n.daterangepicker td.start-date {\\r\\n border-radius: 4px 0 0 4px;\\r\\n}\\r\\n\\r\\n.daterangepicker td.end-date {\\r\\n border-radius: 0 4px 4px 0;\\r\\n}\\r\\n\\r\\n.daterangepicker td.start-date.end-date {\\r\\n border-radius: 4px;\\r\\n}\\r\\n\\r\\n.daterangepicker td.active, .daterangepicker td.active:hover {\\r\\n background-color: #357ebd;\\r\\n border-color: transparent;\\r\\n color: #fff;\\r\\n}\\r\\n\\r\\n.daterangepicker th.month {\\r\\n width: auto;\\r\\n}\\r\\n\\r\\n.daterangepicker td.disabled, .daterangepicker option.disabled {\\r\\n color: #999;\\r\\n cursor: not-allowed;\\r\\n text-decoration: line-through;\\r\\n}\\r\\n\\r\\n.daterangepicker select.monthselect, .daterangepicker select.yearselect {\\r\\n font-size: 12px;\\r\\n padding: 1px;\\r\\n height: auto;\\r\\n margin: 0;\\r\\n cursor: default;\\r\\n}\\r\\n\\r\\n.daterangepicker select.monthselect {\\r\\n margin-right: 2%;\\r\\n width: 56%;\\r\\n}\\r\\n\\r\\n.daterangepicker select.yearselect {\\r\\n width: 40%;\\r\\n}\\r\\n\\r\\n.daterangepicker select.hourselect, .daterangepicker select.minuteselect, .daterangepicker select.secondselect, .daterangepicker select.ampmselect {\\r\\n width: 50px;\\r\\n margin: 0 auto;\\r\\n background: #eee;\\r\\n border: 1px solid #eee;\\r\\n padding: 2px;\\r\\n outline: 0;\\r\\n font-size: 12px;\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-time {\\r\\n text-align: center;\\r\\n margin: 4px auto 0 auto;\\r\\n line-height: 30px;\\r\\n position: relative;\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-time select.disabled {\\r\\n color: #ccc;\\r\\n cursor: not-allowed;\\r\\n}\\r\\n\\r\\n.daterangepicker .drp-buttons {\\r\\n clear: both;\\r\\n text-align: right;\\r\\n padding: 8px;\\r\\n border-top: 1px solid #ddd;\\r\\n display: none;\\r\\n line-height: 12px;\\r\\n vertical-align: middle;\\r\\n}\\r\\n\\r\\n.daterangepicker .drp-selected {\\r\\n display: inline-block;\\r\\n font-size: 12px;\\r\\n padding-right: 8px;\\r\\n}\\r\\n\\r\\n.daterangepicker .drp-buttons .btn {\\r\\n margin-left: 8px;\\r\\n font-size: 12px;\\r\\n font-weight: bold;\\r\\n padding: 4px 8px;\\r\\n}\\r\\n\\r\\n.daterangepicker.show-ranges.single.rtl .drp-calendar.left {\\r\\n border-right: 1px solid #ddd;\\r\\n}\\r\\n\\r\\n.daterangepicker.show-ranges.single.ltr .drp-calendar.left {\\r\\n border-left: 1px solid #ddd;\\r\\n}\\r\\n\\r\\n.daterangepicker.show-ranges.rtl .drp-calendar.right {\\r\\n border-right: 1px solid #ddd;\\r\\n}\\r\\n\\r\\n.daterangepicker.show-ranges.ltr .drp-calendar.left {\\r\\n border-left: 1px solid #ddd;\\r\\n}\\r\\n\\r\\n.daterangepicker .ranges {\\r\\n float: none;\\r\\n text-align: left;\\r\\n margin: 0;\\r\\n}\\r\\n\\r\\n.daterangepicker.show-calendar .ranges {\\r\\n margin-top: 8px;\\r\\n}\\r\\n\\r\\n.daterangepicker .ranges ul {\\r\\n list-style: none;\\r\\n margin: 0 auto;\\r\\n padding: 0;\\r\\n width: 100%;\\r\\n}\\r\\n\\r\\n.daterangepicker .ranges li {\\r\\n font-size: 12px;\\r\\n padding: 8px 12px;\\r\\n cursor: pointer;\\r\\n}\\r\\n\\r\\n.daterangepicker .ranges li:hover {\\r\\n background-color: #eee;\\r\\n}\\r\\n\\r\\n.daterangepicker .ranges li.active {\\r\\n background-color: #08c;\\r\\n color: #fff;\\r\\n}\\r\\n\\r\\n/* Larger Screen Styling */\\r\\n@media (min-width: 564px) {\\r\\n .daterangepicker {\\r\\n width: auto;\\r\\n }\\r\\n\\r\\n .daterangepicker .ranges ul {\\r\\n width: 140px;\\r\\n }\\r\\n\\r\\n .daterangepicker.single .ranges ul {\\r\\n width: 100%;\\r\\n }\\r\\n\\r\\n .daterangepicker.single .drp-calendar.left {\\r\\n clear: none;\\r\\n }\\r\\n\\r\\n .daterangepicker.single .ranges, .daterangepicker.single .drp-calendar {\\r\\n float: left;\\r\\n }\\r\\n\\r\\n .daterangepicker {\\r\\n direction: ltr;\\r\\n text-align: left;\\r\\n }\\r\\n\\r\\n .daterangepicker .drp-calendar.left {\\r\\n clear: left;\\r\\n margin-right: 0;\\r\\n }\\r\\n\\r\\n .daterangepicker .drp-calendar.left .calendar-table {\\r\\n border-right: none;\\r\\n border-top-right-radius: 0;\\r\\n border-bottom-right-radius: 0;\\r\\n }\\r\\n\\r\\n .daterangepicker .drp-calendar.right {\\r\\n margin-left: 0;\\r\\n }\\r\\n\\r\\n .daterangepicker .drp-calendar.right .calendar-table {\\r\\n border-left: none;\\r\\n border-top-left-radius: 0;\\r\\n border-bottom-left-radius: 0;\\r\\n }\\r\\n\\r\\n .daterangepicker .drp-calendar.left .calendar-table {\\r\\n padding-right: 8px;\\r\\n }\\r\\n\\r\\n .daterangepicker .ranges, .daterangepicker .drp-calendar {\\r\\n float: left;\\r\\n }\\r\\n}\\r\\n\\r\\n@media (min-width: 730px) {\\r\\n .daterangepicker .ranges {\\r\\n width: auto;\\r\\n }\\r\\n\\r\\n .daterangepicker .ranges {\\r\\n float: left;\\r\\n }\\r\\n\\r\\n .daterangepicker.rtl .ranges {\\r\\n float: right;\\r\\n }\\r\\n\\r\\n .daterangepicker .drp-calendar.left {\\r\\n clear: none !important;\\r\\n }\\r\\n}\\r\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./node_modules/bootstrap-daterangepicker/daterangepicker.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,kBAAkB;EAClB,cAAc;EACd,sBAAsB;EACtB,kBAAkB;EAClB,sBAAsB;EACtB,YAAY;EACZ,eAAe;EACf,UAAU;EACV,eAAe;EACf,UAAU;EACV,UAAU;EACV,aAAa;EACb,aAAa;EACb,kBAAkB;EAClB,eAAe;EACf,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,uCAAuC;EACvC,WAAW;AACb;;AAEA;EACE,SAAS;EACT,mCAAmC;EACnC,kCAAkC;EAClC,6BAA6B;AAC/B;;AAEA;EACE,SAAS;EACT,mCAAmC;EACnC,6BAA6B;EAC7B,kCAAkC;AACpC;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA;EACE,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,YAAY;EACZ,YAAY;EACZ,sBAAsB;EACtB,0BAA0B;AAC5B;;AAEA;EACE,YAAY;EACZ,YAAY;EACZ,sBAAsB;EACtB,0BAA0B;AAC5B;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;EACb,gBAAgB;AAClB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,WAAW;EACX,mBAAmB;EACnB,yBAAyB;EACzB,gBAAgB;EAChB,qBAAqB;EACrB,YAAY;AACd;;AAEA;EACE,yBAAyB;EACzB,iCAAiC;AACnC;;AAEA;EACE,yBAAyB;EACzB,iCAAiC;AACnC;;AAEA;EACE,mBAAmB;EACnB,kBAAkB;EAClB,sBAAsB;EACtB,eAAe;EACf,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,eAAe;EACf,kBAAkB;EAClB,6BAA6B;EAC7B,mBAAmB;EACnB,eAAe;AACjB;;AAEA;EACE,sBAAsB;EACtB,kBAAkB;EAClB,sBAAsB;AACxB;;AAEA;EACE,WAAW;EACX,SAAS;EACT,iBAAiB;EACjB,yBAAyB;AAC3B;;AAEA;EACE,sBAAsB;EACtB,yBAAyB;EACzB,cAAc;AAChB;;AAEA;EACE,cAAc;EACd,WAAW;AACb;;AAEA;EACE,sBAAsB;EACtB,yBAAyB;EACzB,WAAW;AACb;;AAEA;EACE,yBAAyB;EACzB,yBAAyB;EACzB,WAAW;EACX,gBAAgB;AAClB;;AAEA;EACE,0BAA0B;AAC5B;;AAEA;EACE,0BAA0B;AAC5B;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,yBAAyB;EACzB,yBAAyB;EACzB,WAAW;AACb;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,WAAW;EACX,mBAAmB;EACnB,6BAA6B;AAC/B;;AAEA;EACE,eAAe;EACf,YAAY;EACZ,YAAY;EACZ,SAAS;EACT,eAAe;AACjB;;AAEA;EACE,gBAAgB;EAChB,UAAU;AACZ;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,WAAW;EACX,cAAc;EACd,gBAAgB;EAChB,sBAAsB;EACtB,YAAY;EACZ,UAAU;EACV,eAAe;AACjB;;AAEA;EACE,kBAAkB;EAClB,uBAAuB;EACvB,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,mBAAmB;AACrB;;AAEA;EACE,WAAW;EACX,iBAAiB;EACjB,YAAY;EACZ,0BAA0B;EAC1B,aAAa;EACb,iBAAiB;EACjB,sBAAsB;AACxB;;AAEA;EACE,qBAAqB;EACrB,eAAe;EACf,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;EAChB,eAAe;EACf,iBAAiB;EACjB,gBAAgB;AAClB;;AAEA;EACE,4BAA4B;AAC9B;;AAEA;EACE,2BAA2B;AAC7B;;AAEA;EACE,4BAA4B;AAC9B;;AAEA;EACE,2BAA2B;AAC7B;;AAEA;EACE,WAAW;EACX,gBAAgB;EAChB,SAAS;AACX;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,gBAAgB;EAChB,cAAc;EACd,UAAU;EACV,WAAW;AACb;;AAEA;EACE,eAAe;EACf,iBAAiB;EACjB,eAAe;AACjB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,sBAAsB;EACtB,WAAW;AACb;;AAEA,2BAA2B;AAC3B;EACE;IACE,WAAW;EACb;;EAEA;IACE,YAAY;EACd;;EAEA;IACE,WAAW;EACb;;EAEA;IACE,WAAW;EACb;;EAEA;IACE,WAAW;EACb;;EAEA;IACE,cAAc;IACd,gBAAgB;EAClB;;EAEA;IACE,WAAW;IACX,eAAe;EACjB;;EAEA;IACE,kBAAkB;IAClB,0BAA0B;IAC1B,6BAA6B;EAC/B;;EAEA;IACE,cAAc;EAChB;;EAEA;IACE,iBAAiB;IACjB,yBAAyB;IACzB,4BAA4B;EAC9B;;EAEA;IACE,kBAAkB;EACpB;;EAEA;IACE,WAAW;EACb;AACF;;AAEA;EACE;IACE,WAAW;EACb;;EAEA;IACE,WAAW;EACb;;EAEA;IACE,YAAY;EACd;;EAEA;IACE,sBAAsB;EACxB;AACF\",\"sourcesContent\":[\".daterangepicker {\\r\\n position: absolute;\\r\\n color: inherit;\\r\\n background-color: #fff;\\r\\n border-radius: 4px;\\r\\n border: 1px solid #ddd;\\r\\n width: 278px;\\r\\n max-width: none;\\r\\n padding: 0;\\r\\n margin-top: 7px;\\r\\n top: 100px;\\r\\n left: 20px;\\r\\n z-index: 3001;\\r\\n display: none;\\r\\n font-family: arial;\\r\\n font-size: 15px;\\r\\n line-height: 1em;\\r\\n}\\r\\n\\r\\n.daterangepicker:before, .daterangepicker:after {\\r\\n position: absolute;\\r\\n display: inline-block;\\r\\n border-bottom-color: rgba(0, 0, 0, 0.2);\\r\\n content: '';\\r\\n}\\r\\n\\r\\n.daterangepicker:before {\\r\\n top: -7px;\\r\\n border-right: 7px solid transparent;\\r\\n border-left: 7px solid transparent;\\r\\n border-bottom: 7px solid #ccc;\\r\\n}\\r\\n\\r\\n.daterangepicker:after {\\r\\n top: -6px;\\r\\n border-right: 6px solid transparent;\\r\\n border-bottom: 6px solid #fff;\\r\\n border-left: 6px solid transparent;\\r\\n}\\r\\n\\r\\n.daterangepicker.opensleft:before {\\r\\n right: 9px;\\r\\n}\\r\\n\\r\\n.daterangepicker.opensleft:after {\\r\\n right: 10px;\\r\\n}\\r\\n\\r\\n.daterangepicker.openscenter:before {\\r\\n left: 0;\\r\\n right: 0;\\r\\n width: 0;\\r\\n margin-left: auto;\\r\\n margin-right: auto;\\r\\n}\\r\\n\\r\\n.daterangepicker.openscenter:after {\\r\\n left: 0;\\r\\n right: 0;\\r\\n width: 0;\\r\\n margin-left: auto;\\r\\n margin-right: auto;\\r\\n}\\r\\n\\r\\n.daterangepicker.opensright:before {\\r\\n left: 9px;\\r\\n}\\r\\n\\r\\n.daterangepicker.opensright:after {\\r\\n left: 10px;\\r\\n}\\r\\n\\r\\n.daterangepicker.drop-up {\\r\\n margin-top: -7px;\\r\\n}\\r\\n\\r\\n.daterangepicker.drop-up:before {\\r\\n top: initial;\\r\\n bottom: -7px;\\r\\n border-bottom: initial;\\r\\n border-top: 7px solid #ccc;\\r\\n}\\r\\n\\r\\n.daterangepicker.drop-up:after {\\r\\n top: initial;\\r\\n bottom: -6px;\\r\\n border-bottom: initial;\\r\\n border-top: 6px solid #fff;\\r\\n}\\r\\n\\r\\n.daterangepicker.single .daterangepicker .ranges, .daterangepicker.single .drp-calendar {\\r\\n float: none;\\r\\n}\\r\\n\\r\\n.daterangepicker.single .drp-selected {\\r\\n display: none;\\r\\n}\\r\\n\\r\\n.daterangepicker.show-calendar .drp-calendar {\\r\\n display: block;\\r\\n}\\r\\n\\r\\n.daterangepicker.show-calendar .drp-buttons {\\r\\n display: block;\\r\\n}\\r\\n\\r\\n.daterangepicker.auto-apply .drp-buttons {\\r\\n display: none;\\r\\n}\\r\\n\\r\\n.daterangepicker .drp-calendar {\\r\\n display: none;\\r\\n max-width: 270px;\\r\\n}\\r\\n\\r\\n.daterangepicker .drp-calendar.left {\\r\\n padding: 8px 0 8px 8px;\\r\\n}\\r\\n\\r\\n.daterangepicker .drp-calendar.right {\\r\\n padding: 8px;\\r\\n}\\r\\n\\r\\n.daterangepicker .drp-calendar.single .calendar-table {\\r\\n border: none;\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-table .next span, .daterangepicker .calendar-table .prev span {\\r\\n color: #fff;\\r\\n border: solid black;\\r\\n border-width: 0 2px 2px 0;\\r\\n border-radius: 0;\\r\\n display: inline-block;\\r\\n padding: 3px;\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-table .next span {\\r\\n transform: rotate(-45deg);\\r\\n -webkit-transform: rotate(-45deg);\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-table .prev span {\\r\\n transform: rotate(135deg);\\r\\n -webkit-transform: rotate(135deg);\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-table th, .daterangepicker .calendar-table td {\\r\\n white-space: nowrap;\\r\\n text-align: center;\\r\\n vertical-align: middle;\\r\\n min-width: 32px;\\r\\n width: 32px;\\r\\n height: 24px;\\r\\n line-height: 24px;\\r\\n font-size: 12px;\\r\\n border-radius: 4px;\\r\\n border: 1px solid transparent;\\r\\n white-space: nowrap;\\r\\n cursor: pointer;\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-table {\\r\\n border: 1px solid #fff;\\r\\n border-radius: 4px;\\r\\n background-color: #fff;\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-table table {\\r\\n width: 100%;\\r\\n margin: 0;\\r\\n border-spacing: 0;\\r\\n border-collapse: collapse;\\r\\n}\\r\\n\\r\\n.daterangepicker td.available:hover, .daterangepicker th.available:hover {\\r\\n background-color: #eee;\\r\\n border-color: transparent;\\r\\n color: inherit;\\r\\n}\\r\\n\\r\\n.daterangepicker td.week, .daterangepicker th.week {\\r\\n font-size: 80%;\\r\\n color: #ccc;\\r\\n}\\r\\n\\r\\n.daterangepicker td.off, .daterangepicker td.off.in-range, .daterangepicker td.off.start-date, .daterangepicker td.off.end-date {\\r\\n background-color: #fff;\\r\\n border-color: transparent;\\r\\n color: #999;\\r\\n}\\r\\n\\r\\n.daterangepicker td.in-range {\\r\\n background-color: #ebf4f8;\\r\\n border-color: transparent;\\r\\n color: #000;\\r\\n border-radius: 0;\\r\\n}\\r\\n\\r\\n.daterangepicker td.start-date {\\r\\n border-radius: 4px 0 0 4px;\\r\\n}\\r\\n\\r\\n.daterangepicker td.end-date {\\r\\n border-radius: 0 4px 4px 0;\\r\\n}\\r\\n\\r\\n.daterangepicker td.start-date.end-date {\\r\\n border-radius: 4px;\\r\\n}\\r\\n\\r\\n.daterangepicker td.active, .daterangepicker td.active:hover {\\r\\n background-color: #357ebd;\\r\\n border-color: transparent;\\r\\n color: #fff;\\r\\n}\\r\\n\\r\\n.daterangepicker th.month {\\r\\n width: auto;\\r\\n}\\r\\n\\r\\n.daterangepicker td.disabled, .daterangepicker option.disabled {\\r\\n color: #999;\\r\\n cursor: not-allowed;\\r\\n text-decoration: line-through;\\r\\n}\\r\\n\\r\\n.daterangepicker select.monthselect, .daterangepicker select.yearselect {\\r\\n font-size: 12px;\\r\\n padding: 1px;\\r\\n height: auto;\\r\\n margin: 0;\\r\\n cursor: default;\\r\\n}\\r\\n\\r\\n.daterangepicker select.monthselect {\\r\\n margin-right: 2%;\\r\\n width: 56%;\\r\\n}\\r\\n\\r\\n.daterangepicker select.yearselect {\\r\\n width: 40%;\\r\\n}\\r\\n\\r\\n.daterangepicker select.hourselect, .daterangepicker select.minuteselect, .daterangepicker select.secondselect, .daterangepicker select.ampmselect {\\r\\n width: 50px;\\r\\n margin: 0 auto;\\r\\n background: #eee;\\r\\n border: 1px solid #eee;\\r\\n padding: 2px;\\r\\n outline: 0;\\r\\n font-size: 12px;\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-time {\\r\\n text-align: center;\\r\\n margin: 4px auto 0 auto;\\r\\n line-height: 30px;\\r\\n position: relative;\\r\\n}\\r\\n\\r\\n.daterangepicker .calendar-time select.disabled {\\r\\n color: #ccc;\\r\\n cursor: not-allowed;\\r\\n}\\r\\n\\r\\n.daterangepicker .drp-buttons {\\r\\n clear: both;\\r\\n text-align: right;\\r\\n padding: 8px;\\r\\n border-top: 1px solid #ddd;\\r\\n display: none;\\r\\n line-height: 12px;\\r\\n vertical-align: middle;\\r\\n}\\r\\n\\r\\n.daterangepicker .drp-selected {\\r\\n display: inline-block;\\r\\n font-size: 12px;\\r\\n padding-right: 8px;\\r\\n}\\r\\n\\r\\n.daterangepicker .drp-buttons .btn {\\r\\n margin-left: 8px;\\r\\n font-size: 12px;\\r\\n font-weight: bold;\\r\\n padding: 4px 8px;\\r\\n}\\r\\n\\r\\n.daterangepicker.show-ranges.single.rtl .drp-calendar.left {\\r\\n border-right: 1px solid #ddd;\\r\\n}\\r\\n\\r\\n.daterangepicker.show-ranges.single.ltr .drp-calendar.left {\\r\\n border-left: 1px solid #ddd;\\r\\n}\\r\\n\\r\\n.daterangepicker.show-ranges.rtl .drp-calendar.right {\\r\\n border-right: 1px solid #ddd;\\r\\n}\\r\\n\\r\\n.daterangepicker.show-ranges.ltr .drp-calendar.left {\\r\\n border-left: 1px solid #ddd;\\r\\n}\\r\\n\\r\\n.daterangepicker .ranges {\\r\\n float: none;\\r\\n text-align: left;\\r\\n margin: 0;\\r\\n}\\r\\n\\r\\n.daterangepicker.show-calendar .ranges {\\r\\n margin-top: 8px;\\r\\n}\\r\\n\\r\\n.daterangepicker .ranges ul {\\r\\n list-style: none;\\r\\n margin: 0 auto;\\r\\n padding: 0;\\r\\n width: 100%;\\r\\n}\\r\\n\\r\\n.daterangepicker .ranges li {\\r\\n font-size: 12px;\\r\\n padding: 8px 12px;\\r\\n cursor: pointer;\\r\\n}\\r\\n\\r\\n.daterangepicker .ranges li:hover {\\r\\n background-color: #eee;\\r\\n}\\r\\n\\r\\n.daterangepicker .ranges li.active {\\r\\n background-color: #08c;\\r\\n color: #fff;\\r\\n}\\r\\n\\r\\n/* Larger Screen Styling */\\r\\n@media (min-width: 564px) {\\r\\n .daterangepicker {\\r\\n width: auto;\\r\\n }\\r\\n\\r\\n .daterangepicker .ranges ul {\\r\\n width: 140px;\\r\\n }\\r\\n\\r\\n .daterangepicker.single .ranges ul {\\r\\n width: 100%;\\r\\n }\\r\\n\\r\\n .daterangepicker.single .drp-calendar.left {\\r\\n clear: none;\\r\\n }\\r\\n\\r\\n .daterangepicker.single .ranges, .daterangepicker.single .drp-calendar {\\r\\n float: left;\\r\\n }\\r\\n\\r\\n .daterangepicker {\\r\\n direction: ltr;\\r\\n text-align: left;\\r\\n }\\r\\n\\r\\n .daterangepicker .drp-calendar.left {\\r\\n clear: left;\\r\\n margin-right: 0;\\r\\n }\\r\\n\\r\\n .daterangepicker .drp-calendar.left .calendar-table {\\r\\n border-right: none;\\r\\n border-top-right-radius: 0;\\r\\n border-bottom-right-radius: 0;\\r\\n }\\r\\n\\r\\n .daterangepicker .drp-calendar.right {\\r\\n margin-left: 0;\\r\\n }\\r\\n\\r\\n .daterangepicker .drp-calendar.right .calendar-table {\\r\\n border-left: none;\\r\\n border-top-left-radius: 0;\\r\\n border-bottom-left-radius: 0;\\r\\n }\\r\\n\\r\\n .daterangepicker .drp-calendar.left .calendar-table {\\r\\n padding-right: 8px;\\r\\n }\\r\\n\\r\\n .daterangepicker .ranges, .daterangepicker .drp-calendar {\\r\\n float: left;\\r\\n }\\r\\n}\\r\\n\\r\\n@media (min-width: 730px) {\\r\\n .daterangepicker .ranges {\\r\\n width: auto;\\r\\n }\\r\\n\\r\\n .daterangepicker .ranges {\\r\\n float: left;\\r\\n }\\r\\n\\r\\n .daterangepicker.rtl .ranges {\\r\\n float: right;\\r\\n }\\r\\n\\r\\n .daterangepicker .drp-calendar.left {\\r\\n clear: none !important;\\r\\n }\\r\\n}\\r\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n"],"names":[],"sourceRoot":""}