Created
March 7, 2017 21:21
-
-
Save JeroenVinke/268d61ad787ff88a7c03288ffa2b9213 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define("app", ["require", "exports"], function(e, t) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var n = (function() { | |
function e() {} | |
return e | |
}(), function() { | |
function e() { | |
this.keepModalOpen = !1, this.message = "Hello World!", this.newTodo = { | |
title: "" | |
}, this.todos = [] | |
} | |
return e.prototype.addTodo = function() { | |
this.addTodoModal.open() | |
}, e.prototype.saveTodo = function() { | |
this.todos.push({ | |
done: !1, | |
title: this.newTodo.title | |
}), this.newTodo.title = "", this.keepModalOpen || this.addTodoModal.close() | |
}, e | |
}()); | |
t.App = n | |
}), define("environment", ["require", "exports"], function(e, t) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.default = { | |
debug: !1, | |
testing: !1 | |
} | |
}), define("main", ["require", "exports", "aurelia-i18n", "./environment"], function(e, t, n, i) { | |
"use strict"; | |
function o(e) { | |
e.use.standardConfiguration().feature("resources"), i.default.debug && e.use.developmentLogging(), i.default.testing && e.use.plugin("aurelia-testing"), e.use.plugin("aurelia-materialize-bridge", function(e) { | |
return e.useAll() | |
}), e.use.plugin("aurelia-i18n", function(t) { | |
return t.i18next.use(n.Backend.with(e.loader)), t.setup({ | |
backend: { | |
loadPath: "../locales/{{lng}}/{{ns}}.json" | |
}, | |
lng: "de", | |
attributes: ["t", "i18n"], | |
fallbackLng: "en", | |
debug: !1 | |
}) | |
}), e.start().then(function() { | |
return e.setRoot() | |
}) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), Promise.config({ | |
warnings: { | |
wForgottenReturn: !1 | |
} | |
}), t.configure = o | |
}), define("resources/index", ["require", "exports"], function(e, t) { | |
"use strict"; | |
function n(e) { | |
e.globalResources(["./attributes/md-auto-focus", "./elements/nav-bar"]) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.configure = n | |
}); | |
var __decorate = this && this.__decorate || function(e, t, n, i) { | |
var o, r = arguments.length, | |
a = r < 3 ? t : null === i ? i = Object.getOwnPropertyDescriptor(t, n) : i; | |
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, i); | |
else | |
for (var u = e.length - 1; u >= 0; u--)(o = e[u]) && (a = (r < 3 ? o(a) : r > 3 ? o(t, n, a) : o(t, n)) || a); | |
return r > 3 && a && Object.defineProperty(t, n, a), a | |
}, | |
__metadata = this && this.__metadata || function(e, t) { | |
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(e, t) | |
}; | |
define("resources/attributes/md-auto-focus", ["require", "exports", "aurelia-framework"], function(e, t, n) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var i = function() { | |
function e(e, t) { | |
this.element = e, this.taskQueue = t | |
} | |
return e.prototype.attached = function() { | |
var e = this; | |
this.taskQueue.queueTask(function() { | |
var t = e.element.getElementsByTagName("input"); | |
if (t.length > 0) { | |
var n = t[0]; | |
n.focus(); | |
var i = n.nextElementSibling; | |
"LABEL" === i.nodeName && e.taskQueue.queueTask(function() { | |
i.classList.add("active") | |
}) | |
} else console.warn("No input element found for auto-focus") | |
}) | |
}, e | |
}(); | |
i = __decorate([n.autoinject(), __metadata("design:paramtypes", [Element, n.TaskQueue])], i), t.MdAutoFocusCustomAttribute = i | |
}); | |
var __decorate = this && this.__decorate || function(e, t, n, i) { | |
var o, r = arguments.length, | |
a = r < 3 ? t : null === i ? i = Object.getOwnPropertyDescriptor(t, n) : i; | |
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, i); | |
else | |
for (var u = e.length - 1; u >= 0; u--)(o = e[u]) && (a = (r < 3 ? o(a) : r > 3 ? o(t, n, a) : o(t, n)) || a); | |
return r > 3 && a && Object.defineProperty(t, n, a), a | |
}, | |
__metadata = this && this.__metadata || function(e, t) { | |
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(e, t) | |
}; | |
define("resources/elements/nav-bar", ["require", "exports", "aurelia-framework"], function(e, t, n) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var i = function() { | |
function e() {} | |
return e | |
}(); | |
__decorate([n.bindable(), __metadata("design:type", Object)], i.prototype, "title", void 0), t.NavBar = i | |
}), define("aurelia-templating-resources/compose", ["exports", "aurelia-dependency-injection", "aurelia-task-queue", "aurelia-templating", "aurelia-pal"], function(e, t, n, i, o) { | |
"use strict"; | |
function r(e, t, n, i) { | |
n && Object.defineProperty(e, t, { | |
enumerable: n.enumerable, | |
configurable: n.configurable, | |
writable: n.writable, | |
value: n.initializer ? n.initializer.call(i) : void 0 | |
}) | |
} | |
function a(e, t, n, i, o) { | |
var r = {}; | |
return Object.keys(i).forEach(function(e) { | |
r[e] = i[e] | |
}), r.enumerable = !!r.enumerable, r.configurable = !!r.configurable, ("value" in r || r.initializer) && (r.writable = !0), r = n.slice().reverse().reduce(function(n, i) { | |
return i(e, t, n) || n | |
}, r), o && void 0 !== r.initializer && (r.value = r.initializer ? r.initializer.call(o) : void 0, r.initializer = void 0), void 0 === r.initializer && (Object.defineProperty(e, t, r), r = null), r | |
} | |
function u(e, t) { | |
return Object.assign(t, { | |
bindingContext: e.bindingContext, | |
overrideContext: e.overrideContext, | |
owningView: e.owningView, | |
container: e.container, | |
viewSlot: e.viewSlot, | |
viewResources: e.viewResources, | |
currentController: e.currentController, | |
host: e.element, | |
swapOrder: e.swapOrder | |
}) | |
} | |
function s(e, t) { | |
e.currentInstruction = null, e.compositionEngine.compose(t).then(function(t) { | |
e.currentController = t, e.currentViewModel = t ? t.viewModel : null | |
}) | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.Compose = void 0; | |
var l, _, c, d, p, h, f, v; | |
e.Compose = (l = (0, i.customElement)("compose"), _ = (0, t.inject)(o.DOM.Element, t.Container, i.CompositionEngine, i.ViewSlot, i.ViewResources, n.TaskQueue), l(c = (0, i.noView)(c = _((d = function() { | |
function e(e, t, n, i, o, a) { | |
r(this, "model", p, this), r(this, "view", h, this), r(this, "viewModel", f, this), r(this, "swapOrder", v, this), this.element = e, this.container = t, this.compositionEngine = n, this.viewSlot = i, this.viewResources = o, this.taskQueue = a, this.currentController = null, this.currentViewModel = null | |
} | |
return e.prototype.created = function(e) { | |
this.owningView = e | |
}, e.prototype.bind = function(e, t) { | |
this.bindingContext = e, this.overrideContext = t, s(this, u(this, { | |
view: this.view, | |
viewModel: this.viewModel, | |
model: this.model | |
})) | |
}, e.prototype.unbind = function(e, t) { | |
this.bindingContext = null, this.overrideContext = null; | |
this.viewSlot.removeAll(!0, !0) | |
}, e.prototype.modelChanged = function(e, t) { | |
var n = this; | |
if (this.currentInstruction) return void(this.currentInstruction.model = e); | |
this.taskQueue.queueMicroTask(function() { | |
if (n.currentInstruction) return void(n.currentInstruction.model = e); | |
var t = n.currentViewModel; | |
t && "function" == typeof t.activate && t.activate(e) | |
}) | |
}, e.prototype.viewChanged = function(e, t) { | |
var n = this, | |
i = u(this, { | |
view: e, | |
viewModel: this.currentViewModel || this.viewModel, | |
model: this.model | |
}); | |
if (this.currentInstruction) return void(this.currentInstruction = i); | |
this.currentInstruction = i, this.taskQueue.queueMicroTask(function() { | |
return s(n, n.currentInstruction) | |
}) | |
}, e.prototype.viewModelChanged = function(e, t) { | |
var n = this, | |
i = u(this, { | |
viewModel: e, | |
view: this.view, | |
model: this.model | |
}); | |
if (this.currentInstruction) return void(this.currentInstruction = i); | |
this.currentInstruction = i, this.taskQueue.queueMicroTask(function() { | |
return s(n, n.currentInstruction) | |
}) | |
}, e | |
}(), p = a(d.prototype, "model", [i.bindable], { | |
enumerable: !0, | |
initializer: null | |
}), h = a(d.prototype, "view", [i.bindable], { | |
enumerable: !0, | |
initializer: null | |
}), f = a(d.prototype, "viewModel", [i.bindable], { | |
enumerable: !0, | |
initializer: null | |
}), v = a(d.prototype, "swapOrder", [i.bindable], { | |
enumerable: !0, | |
initializer: null | |
}), c = d)) || c) || c) || c) | |
}), define("aurelia-templating-resources/if", ["exports", "aurelia-templating", "aurelia-dependency-injection"], function(e, t, n) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.If = void 0; | |
var i, o, r; | |
e.If = (i = (0, t.customAttribute)("if"), o = (0, n.inject)(t.BoundViewFactory, t.ViewSlot), i(r = (0, t.templateController)(r = o(r = function() { | |
function e(e, t) { | |
this.viewFactory = e, this.viewSlot = t, this.showing = !1, this.view = null, this.bindingContext = null, this.overrideContext = null | |
} | |
return e.prototype.bind = function(e, t) { | |
this.bindingContext = e, this.overrideContext = t, this.valueChanged(this.value) | |
}, e.prototype.valueChanged = function(e) { | |
var t = this; | |
if (this.__queuedChanges) return void this.__queuedChanges.push(e); | |
var n = this._runValueChanged(e); | |
n instanceof Promise && function() { | |
var e = t.__queuedChanges = [], | |
i = function n() { | |
if (!e.length) return void(t.__queuedChanges = void 0); | |
(t._runValueChanged(e.shift()) || Promise.resolve()).then(n) | |
}; | |
n.then(i) | |
}() | |
}, e.prototype._runValueChanged = function(e) { | |
var t = this; | |
if (!e) { | |
var n = void 0; | |
return null !== this.view && this.showing && (n = this.viewSlot.remove(this.view), n instanceof Promise ? n.then(function() { | |
return t.view.unbind() | |
}) : this.view.unbind()), this.showing = !1, n | |
} | |
if (null === this.view && (this.view = this.viewFactory.create()), this.view.isBound || this.view.bind(this.bindingContext, this.overrideContext), !this.showing) return this.showing = !0, this.viewSlot.add(this.view) | |
}, e.prototype.unbind = function() { | |
null !== this.view && (this.view.unbind(), this.viewFactory.isCaching && (this.showing && (this.showing = !1, this.viewSlot.remove(this.view, !0, !0)), this.view.returnToCache(), this.view = null)) | |
}, e | |
}()) || r) || r) || r) | |
}), define("aurelia-templating-resources/with", ["exports", "aurelia-dependency-injection", "aurelia-templating", "aurelia-binding"], function(e, t, n, i) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.With = void 0; | |
var o, r, a; | |
e.With = (o = (0, n.customAttribute)("with"), r = (0, t.inject)(n.BoundViewFactory, n.ViewSlot), o(a = (0, n.templateController)(a = r(a = function() { | |
function e(e, t) { | |
this.viewFactory = e, this.viewSlot = t, this.parentOverrideContext = null, this.view = null | |
} | |
return e.prototype.bind = function(e, t) { | |
this.parentOverrideContext = t, this.valueChanged(this.value) | |
}, e.prototype.valueChanged = function(e) { | |
var t = (0, i.createOverrideContext)(e, this.parentOverrideContext); | |
this.view ? this.view.bind(e, t) : (this.view = this.viewFactory.create(), this.view.bind(e, t), this.viewSlot.add(this.view)) | |
}, e.prototype.unbind = function() { | |
this.parentOverrideContext = null, this.view && this.view.unbind() | |
}, e | |
}()) || a) || a) || a) | |
}), define("aurelia-templating-resources/repeat", ["exports", "aurelia-dependency-injection", "aurelia-binding", "aurelia-templating", "./repeat-strategy-locator", "./repeat-utilities", "./analyze-view-factory", "./abstract-repeater"], function(e, t, n, i, o, r, a, u) { | |
"use strict"; | |
function s(e, t, n, i) { | |
n && Object.defineProperty(e, t, { | |
enumerable: n.enumerable, | |
configurable: n.configurable, | |
writable: n.writable, | |
value: n.initializer ? n.initializer.call(i) : void 0 | |
}) | |
} | |
function l(e, t) { | |
if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return !t || "object" != typeof t && "function" != typeof t ? e : t | |
} | |
function _(e, t) { | |
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
e.prototype = Object.create(t && t.prototype, { | |
constructor: { | |
value: e, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
} | |
function c(e, t, n, i, o) { | |
var r = {}; | |
return Object.keys(i).forEach(function(e) { | |
r[e] = i[e] | |
}), r.enumerable = !!r.enumerable, r.configurable = !!r.configurable, ("value" in r || r.initializer) && (r.writable = !0), r = n.slice().reverse().reduce(function(n, i) { | |
return i(e, t, n) || n | |
}, r), o && void 0 !== r.initializer && (r.value = r.initializer ? r.initializer.call(o) : void 0, r.initializer = void 0), void 0 === r.initializer && (Object.defineProperty(e, t, r), r = null), r | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.Repeat = void 0; | |
var d, p, h, f, v, g, m, y; | |
e.Repeat = (d = (0, i.customAttribute)("repeat"), p = (0, t.inject)(i.BoundViewFactory, i.TargetInstruction, i.ViewSlot, i.ViewResources, n.ObserverLocator, o.RepeatStrategyLocator), d(h = (0, i.templateController)(h = p((f = function(e) { | |
function t(t, n, i, o, u, _) { | |
var c = l(this, e.call(this, { | |
local: "item", | |
viewsRequireLifecycle: (0, a.viewsRequireLifecycle)(t) | |
})); | |
return s(c, "items", v, c), s(c, "local", g, c), s(c, "key", m, c), s(c, "value", y, c), c.viewFactory = t, c.instruction = n, c.viewSlot = i, c.lookupFunctions = o.lookupFunctions, c.observerLocator = u, c.key = "key", c.value = "value", c.strategyLocator = _, c.ignoreMutation = !1, c.sourceExpression = (0, r.getItemsSourceExpression)(c.instruction, "repeat.for"), c.isOneTime = (0, r.isOneTime)(c.sourceExpression), c.viewsRequireLifecycle = (0, a.viewsRequireLifecycle)(t), c | |
} | |
return _(t, e), t.prototype.call = function(e, t) { | |
this[e](this.items, t) | |
}, t.prototype.bind = function(e, t) { | |
this.scope = { | |
bindingContext: e, | |
overrideContext: t | |
}, this.matcherBinding = this._captureAndRemoveMatcherBinding(), this.itemsChanged() | |
}, t.prototype.unbind = function() { | |
this.scope = null, this.items = null, this.matcherBinding = null, this.viewSlot.removeAll(!0), this._unsubscribeCollection() | |
}, t.prototype._unsubscribeCollection = function() { | |
this.collectionObserver && (this.collectionObserver.unsubscribe(this.callContext, this), this.collectionObserver = null, this.callContext = null) | |
}, t.prototype.itemsChanged = function() { | |
if (this._unsubscribeCollection(), this.scope) { | |
var e = this.items; | |
if (this.strategy = this.strategyLocator.getStrategy(e), !this.strategy) throw new Error("Value for '" + this.sourceExpression + "' is non-repeatable"); | |
this.isOneTime || this._observeInnerCollection() || this._observeCollection(), this.strategy.instanceChanged(this, e) | |
} | |
}, t.prototype._getInnerCollection = function() { | |
var e = (0, r.unwrapExpression)(this.sourceExpression); | |
return e ? e.evaluate(this.scope, null) : null | |
}, t.prototype.handleCollectionMutated = function(e, t) { | |
this.collectionObserver && this.strategy.instanceMutated(this, e, t) | |
}, t.prototype.handleInnerCollectionMutated = function(e, t) { | |
var n = this; | |
if (this.collectionObserver && !this.ignoreMutation) { | |
this.ignoreMutation = !0; | |
var i = this.sourceExpression.evaluate(this.scope, this.lookupFunctions); | |
this.observerLocator.taskQueue.queueMicroTask(function() { | |
return n.ignoreMutation = !1 | |
}), i === this.items ? this.itemsChanged() : this.items = i | |
} | |
}, t.prototype._observeInnerCollection = function() { | |
var e = this._getInnerCollection(), | |
t = this.strategyLocator.getStrategy(e); | |
return !!t && (this.collectionObserver = t.getCollectionObserver(this.observerLocator, e), !!this.collectionObserver && (this.callContext = "handleInnerCollectionMutated", this.collectionObserver.subscribe(this.callContext, this), !0)) | |
}, t.prototype._observeCollection = function() { | |
var e = this.items; | |
this.collectionObserver = this.strategy.getCollectionObserver(this.observerLocator, e), this.collectionObserver && (this.callContext = "handleCollectionMutated", this.collectionObserver.subscribe(this.callContext, this)) | |
}, t.prototype._captureAndRemoveMatcherBinding = function() { | |
if (this.viewFactory.viewFactory) | |
for (var e = this.viewFactory.viewFactory.instructions, t = Object.keys(e), n = 0; n < t.length; n++) { | |
var i = e[t[n]].expressions; | |
if (i) | |
for (; n < i.length; n++) | |
if ("matcher" === i[0].targetProperty) { | |
var o = i[0]; | |
return i.splice(0, 1), o | |
} | |
} | |
}, t.prototype.viewCount = function() { | |
return this.viewSlot.children.length | |
}, t.prototype.views = function() { | |
return this.viewSlot.children | |
}, t.prototype.view = function(e) { | |
return this.viewSlot.children[e] | |
}, t.prototype.matcher = function() { | |
return this.matcherBinding ? this.matcherBinding.sourceExpression.evaluate(this.scope, this.matcherBinding.lookupFunctions) : null | |
}, t.prototype.addView = function(e, t) { | |
var n = this.viewFactory.create(); | |
n.bind(e, t), this.viewSlot.add(n) | |
}, t.prototype.insertView = function(e, t, n) { | |
var i = this.viewFactory.create(); | |
i.bind(t, n), this.viewSlot.insert(e, i) | |
}, t.prototype.moveView = function(e, t) { | |
this.viewSlot.move(e, t) | |
}, t.prototype.removeAllViews = function(e, t) { | |
return this.viewSlot.removeAll(e, t) | |
}, t.prototype.removeViews = function(e, t, n) { | |
return this.viewSlot.removeMany(e, t, n) | |
}, t.prototype.removeView = function(e, t, n) { | |
return this.viewSlot.removeAt(e, t, n) | |
}, t.prototype.updateBindings = function(e) { | |
for (var t = e.bindings.length; t--;)(0, r.updateOneTimeBinding)(e.bindings[t]); | |
for (t = e.controllers.length; t--;) | |
for (var n = e.controllers[t].boundProperties.length; n--;) { | |
var i = e.controllers[t].boundProperties[n].binding; | |
(0, r.updateOneTimeBinding)(i) | |
} | |
}, t | |
}(u.AbstractRepeater), v = c(f.prototype, "items", [i.bindable], { | |
enumerable: !0, | |
initializer: null | |
}), g = c(f.prototype, "local", [i.bindable], { | |
enumerable: !0, | |
initializer: null | |
}), m = c(f.prototype, "key", [i.bindable], { | |
enumerable: !0, | |
initializer: null | |
}), y = c(f.prototype, "value", [i.bindable], { | |
enumerable: !0, | |
initializer: null | |
}), h = f)) || h) || h) || h) | |
}), define("aurelia-templating-resources/repeat-strategy-locator", ["exports", "./null-repeat-strategy", "./array-repeat-strategy", "./map-repeat-strategy", "./set-repeat-strategy", "./number-repeat-strategy"], function(e, t, n, i, o, r) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.RepeatStrategyLocator = void 0; | |
e.RepeatStrategyLocator = function() { | |
function e() { | |
this.matchers = [], this.strategies = [], this.addStrategy(function(e) { | |
return null === e || void 0 === e | |
}, new t.NullRepeatStrategy), this.addStrategy(function(e) { | |
return e instanceof Array | |
}, new n.ArrayRepeatStrategy), this.addStrategy(function(e) { | |
return e instanceof Map | |
}, new i.MapRepeatStrategy), this.addStrategy(function(e) { | |
return e instanceof Set | |
}, new o.SetRepeatStrategy), this.addStrategy(function(e) { | |
return "number" == typeof e | |
}, new r.NumberRepeatStrategy) | |
} | |
return e.prototype.addStrategy = function(e, t) { | |
this.matchers.push(e), this.strategies.push(t) | |
}, e.prototype.getStrategy = function(e) { | |
for (var t = this.matchers, n = 0, i = t.length; n < i; ++n) | |
if (t[n](e)) return this.strategies[n]; | |
return null | |
}, e | |
}() | |
}), define("aurelia-templating-resources/null-repeat-strategy", ["exports"], function(e) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
e.NullRepeatStrategy = function() { | |
function e() {} | |
return e.prototype.instanceChanged = function(e, t) { | |
e.removeAllViews(!0) | |
}, e.prototype.getCollectionObserver = function(e, t) {}, e | |
}() | |
}), define("aurelia-templating-resources/array-repeat-strategy", ["exports", "./repeat-utilities", "aurelia-binding"], function(e, t, n) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.ArrayRepeatStrategy = void 0; | |
e.ArrayRepeatStrategy = function() { | |
function e() {} | |
return e.prototype.getCollectionObserver = function(e, t) { | |
return e.getArrayObserver(t) | |
}, e.prototype.instanceChanged = function(e, n) { | |
var i = this, | |
o = n.length; | |
if (!n || 0 === o) return void e.removeAllViews(!0, !e.viewsRequireLifecycle); | |
var r = e.views(), | |
a = r.length; | |
if (0 === a) return void this._standardProcessInstanceChanged(e, n); | |
e.viewsRequireLifecycle ? function() { | |
for (var u = r.slice(0), s = e.local, l = e.matcher(), _ = [], c = [], d = 0; d < a; d++) { | |
var p = u[d], | |
h = p.bindingContext[s]; | |
(0, t.indexOf)(n, h, l) === -1 ? c.push(p) : _.push(h) | |
} | |
var f = void 0, | |
v = void 0; | |
_.length > 0 ? (v = e.removeViews(c, !0, !e.viewsRequireLifecycle), f = function() { | |
for (var a = 0; a < o; a++) { | |
var u = n[a], | |
s = (0, t.indexOf)(_, u, l, a), | |
c = void 0; | |
if (s === -1) { | |
var d = (0, t.createFullOverrideContext)(e, n[a], a, o); | |
e.insertView(a, d.bindingContext, d), _.splice(a, 0, void 0) | |
} else s === a ? (c = r[s], _[s] = void 0) : (c = r[s], e.moveView(s, a), _.splice(s, 1), _.splice(a, 0, void 0)); | |
c && (0, t.updateOverrideContext)(c.overrideContext, a, o) | |
} | |
i._inPlaceProcessItems(e, n) | |
}) : (v = e.removeAllViews(!0, !e.viewsRequireLifecycle), f = function() { | |
return i._standardProcessInstanceChanged(e, n) | |
}), v instanceof Promise ? v.then(f) : f() | |
}() : this._inPlaceProcessItems(e, n) | |
}, e.prototype._standardProcessInstanceChanged = function(e, n) { | |
for (var i = 0, o = n.length; i < o; i++) { | |
var r = (0, t.createFullOverrideContext)(e, n[i], i, o); | |
e.addView(r.bindingContext, r) | |
} | |
}, e.prototype._inPlaceProcessItems = function(e, n) { | |
for (var i = n.length, o = e.viewCount(); o > i;) o--, e.removeView(o, !0, !e.viewsRequireLifecycle); | |
for (var r = e.local, a = 0; a < o; a++) { | |
var u = e.view(a), | |
s = a === i - 1, | |
l = 0 !== a && !s; | |
u.bindingContext[r] === n[a] && u.overrideContext.$middle === l && u.overrideContext.$last === s || (u.bindingContext[r] = n[a], u.overrideContext.$middle = l, u.overrideContext.$last = s, e.updateBindings(u)) | |
} | |
for (var _ = o; _ < i; _++) { | |
var c = (0, t.createFullOverrideContext)(e, n[_], _, i); | |
e.addView(c.bindingContext, c) | |
} | |
}, e.prototype.instanceMutated = function(e, t, i) { | |
var o = this; | |
if (e.__queuedSplices) { | |
for (var r = 0, a = i.length; r < a; ++r) { | |
var u = i[r], | |
s = u.index, | |
l = u.removed, | |
_ = u.addedCount; | |
(0, n.mergeSplice)(e.__queuedSplices, s, l, _) | |
} | |
return void(e.__array = t.slice(0)) | |
} | |
var c = this._runSplices(e, t.slice(0), i); | |
c instanceof Promise && function() { | |
var t = e.__queuedSplices = [], | |
n = function n() { | |
if (!t.length) return e.__queuedSplices = void 0, void(e.__array = void 0); | |
var i = o._runSplices(e, e.__array, t) || Promise.resolve(); | |
t = e.__queuedSplices = [], i.then(n) | |
}; | |
c.then(n) | |
}() | |
}, e.prototype._runSplices = function(e, n, i) { | |
for (var o = this, r = 0, a = [], u = 0, s = i.length; u < s; ++u) { | |
for (var l = i[u], _ = l.removed, c = 0, d = _.length; c < d; ++c) { | |
var p = e.removeView(l.index + r + a.length, !0); | |
p instanceof Promise && a.push(p) | |
} | |
r -= l.addedCount | |
} | |
if (a.length > 0) return Promise.all(a).then(function() { | |
var r = o._handleAddedSplices(e, n, i); | |
(0, t.updateOverrideContexts)(e.views(), r) | |
}); | |
var h = this._handleAddedSplices(e, n, i); | |
(0, t.updateOverrideContexts)(e.views(), h) | |
}, e.prototype._handleAddedSplices = function(e, n, i) { | |
for (var o = void 0, r = void 0, a = n.length, u = 0, s = i.length; u < s; ++u) { | |
var l = i[u], | |
_ = o = l.index, | |
c = l.index + l.addedCount; | |
for ((void 0 === r || null === r || r > l.index) && (r = o); _ < c; ++_) { | |
var d = (0, t.createFullOverrideContext)(e, n[_], _, a); | |
e.insertView(_, d.bindingContext, d) | |
} | |
} | |
return r | |
}, e | |
}() | |
}), define("aurelia-templating-resources/repeat-utilities", ["exports", "aurelia-binding"], function(e, t) { | |
"use strict"; | |
function n(e, t) { | |
var n = e.length; | |
for (t > 0 && (t -= 1); t < n; ++t) o(e[t].overrideContext, t, n) | |
} | |
function i(e, n, i, r, a) { | |
var u = {}, | |
s = (0, t.createOverrideContext)(u, e.scope.overrideContext); | |
return void 0 !== a ? (u[e.key] = a, u[e.value] = n) : u[e.local] = n, o(s, i, r), s | |
} | |
function o(e, t, n) { | |
var i = 0 === t, | |
o = t === n - 1, | |
r = t % 2 === 0; | |
e.$index = t, e.$first = i, e.$last = o, e.$middle = !(i || o), e.$odd = !r, e.$even = r | |
} | |
function r(e, t) { | |
return e.behaviorInstructions.filter(function(e) { | |
return e.originalAttrName === t | |
})[0].attributes.items.sourceExpression | |
} | |
function a(e) { | |
for (var n = !1; e instanceof t.BindingBehavior;) e = e.expression; | |
for (; e instanceof t.ValueConverter;) e = e.expression, n = !0; | |
return n ? e : null | |
} | |
function u(e) { | |
for (; e instanceof t.BindingBehavior;) { | |
if ("oneTime" === e.name) return !0; | |
e = e.expression | |
} | |
return !1 | |
} | |
function s(e) { | |
e.call && e.mode === _ ? e.call(t.sourceContext) : e.updateOneTimeBindings && e.updateOneTimeBindings() | |
} | |
function l(e, t, n, i) { | |
if (!n) return e.indexOf(t); | |
for (var o = e.length, r = i || 0; r < o; r++) | |
if (n(e[r], t)) return r; | |
return -1 | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.updateOverrideContexts = n, e.createFullOverrideContext = i, e.updateOverrideContext = o, e.getItemsSourceExpression = r, e.unwrapExpression = a, e.isOneTime = u, e.updateOneTimeBinding = s, e.indexOf = l; | |
var _ = t.bindingMode.oneTime | |
}), define("aurelia-templating-resources/map-repeat-strategy", ["exports", "./repeat-utilities"], function(e, t) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.MapRepeatStrategy = void 0; | |
e.MapRepeatStrategy = function() { | |
function e() {} | |
return e.prototype.getCollectionObserver = function(e, t) { | |
return e.getMapObserver(t) | |
}, e.prototype.instanceChanged = function(e, t) { | |
var n = this, | |
i = e.removeAllViews(!0, !e.viewsRequireLifecycle); | |
if (i instanceof Promise) return void i.then(function() { | |
return n._standardProcessItems(e, t) | |
}); | |
this._standardProcessItems(e, t) | |
}, e.prototype._standardProcessItems = function(e, n) { | |
var i = 0, | |
o = void 0; | |
n.forEach(function(r, a) { | |
o = (0, t.createFullOverrideContext)(e, r, i, n.size, a), e.addView(o.bindingContext, o), ++i | |
}) | |
}, e.prototype.instanceMutated = function(e, n, i) { | |
var o = void 0, | |
r = void 0, | |
a = void 0, | |
u = void 0, | |
s = void 0, | |
l = void 0, | |
_ = [], | |
c = void 0; | |
for (r = 0, a = i.length; r < a; ++r) switch (l = i[r], o = l.key, l.type) { | |
case "update": | |
s = this._getViewIndexByKey(e, o), c = e.removeView(s, !0, !e.viewsRequireLifecycle), c instanceof Promise && _.push(c), u = (0, t.createFullOverrideContext)(e, n.get(o), s, n.size, o), e.insertView(s, u.bindingContext, u); | |
break; | |
case "add": | |
u = (0, t.createFullOverrideContext)(e, n.get(o), n.size - 1, n.size, o), e.insertView(n.size - 1, u.bindingContext, u); | |
break; | |
case "delete": | |
if (void 0 === l.oldValue) return; | |
s = this._getViewIndexByKey(e, o), c = e.removeView(s, !0, !e.viewsRequireLifecycle), c instanceof Promise && _.push(c); | |
break; | |
case "clear": | |
e.removeAllViews(!0, !e.viewsRequireLifecycle); | |
break; | |
default: | |
continue | |
} | |
_.length > 0 ? Promise.all(_).then(function() { | |
(0, t.updateOverrideContexts)(e.views(), 0) | |
}) : (0, t.updateOverrideContexts)(e.views(), 0) | |
}, e.prototype._getViewIndexByKey = function(e, t) { | |
var n = void 0, | |
i = void 0, | |
o = void 0; | |
for (n = 0, i = e.viewCount(); n < i; ++n) | |
if (o = e.view(n), o.bindingContext[e.key] === t) return n | |
}, e | |
}() | |
}), define("aurelia-templating-resources/set-repeat-strategy", ["exports", "./repeat-utilities"], function(e, t) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.SetRepeatStrategy = void 0; | |
e.SetRepeatStrategy = function() { | |
function e() {} | |
return e.prototype.getCollectionObserver = function(e, t) { | |
return e.getSetObserver(t) | |
}, e.prototype.instanceChanged = function(e, t) { | |
var n = this, | |
i = e.removeAllViews(!0, !e.viewsRequireLifecycle); | |
if (i instanceof Promise) return void i.then(function() { | |
return n._standardProcessItems(e, t) | |
}); | |
this._standardProcessItems(e, t) | |
}, e.prototype._standardProcessItems = function(e, n) { | |
var i = 0, | |
o = void 0; | |
n.forEach(function(r) { | |
o = (0, t.createFullOverrideContext)(e, r, i, n.size), e.addView(o.bindingContext, o), ++i | |
}) | |
}, e.prototype.instanceMutated = function(e, n, i) { | |
var o = void 0, | |
r = void 0, | |
a = void 0, | |
u = void 0, | |
s = void 0, | |
l = void 0, | |
_ = [], | |
c = void 0; | |
for (r = 0, a = i.length; r < a; ++r) switch (l = i[r], o = l.value, l.type) { | |
case "add": | |
u = (0, t.createFullOverrideContext)(e, o, n.size - 1, n.size), e.insertView(n.size - 1, u.bindingContext, u); | |
break; | |
case "delete": | |
s = this._getViewIndexByValue(e, o), c = e.removeView(s, !0, !e.viewsRequireLifecycle), c instanceof Promise && _.push(c); | |
break; | |
case "clear": | |
e.removeAllViews(!0, !e.viewsRequireLifecycle); | |
break; | |
default: | |
continue | |
} | |
_.length > 0 ? Promise.all(_).then(function() { | |
(0, t.updateOverrideContexts)(e.views(), 0) | |
}) : (0, t.updateOverrideContexts)(e.views(), 0) | |
}, e.prototype._getViewIndexByValue = function(e, t) { | |
var n = void 0, | |
i = void 0, | |
o = void 0; | |
for (n = 0, i = e.viewCount(); n < i; ++n) | |
if (o = e.view(n), o.bindingContext[e.local] === t) return n | |
}, e | |
}() | |
}), define("aurelia-templating-resources/number-repeat-strategy", ["exports", "./repeat-utilities"], function(e, t) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.NumberRepeatStrategy = void 0; | |
e.NumberRepeatStrategy = function() { | |
function e() {} | |
return e.prototype.getCollectionObserver = function() { | |
return null | |
}, e.prototype.instanceChanged = function(e, t) { | |
var n = this, | |
i = e.removeAllViews(!0, !e.viewsRequireLifecycle); | |
if (i instanceof Promise) return void i.then(function() { | |
return n._standardProcessItems(e, t) | |
}); | |
this._standardProcessItems(e, t) | |
}, e.prototype._standardProcessItems = function(e, n) { | |
var i = e.viewCount(), | |
o = void 0, | |
r = void 0, | |
a = void 0, | |
u = void 0; | |
if (n = Math.floor(n), u = i - n, u > 0) | |
for (u > i && (u = i), o = 0, r = u; o < r; ++o) e.removeView(i - (o + 1), !0, !e.viewsRequireLifecycle); | |
else { | |
for (o = i, r = n; o < r; ++o) a = (0, t.createFullOverrideContext)(e, o, o, r), e.addView(a.bindingContext, a); | |
(0, t.updateOverrideContexts)(e.views(), 0) | |
} | |
}, e | |
}() | |
}), define("aurelia-templating-resources/analyze-view-factory", ["exports"], function(e) { | |
"use strict"; | |
function t(e) { | |
var t = e.type, | |
n = null !== t.elementName ? t.elementName : t.attributeName; | |
return o.indexOf(n) === -1 && (t.handlesAttached || t.handlesBind || t.handlesCreated || t.handlesDetached || t.handlesUnbind) || t.viewFactory && i(t.viewFactory) || e.viewFactory && i(e.viewFactory) | |
} | |
function n(e) { | |
var n = e.behaviorInstructions; | |
if (n) | |
for (var o = n.length; o--;) | |
if (t(n[o])) return !0; | |
return e.viewFactory && i(e.viewFactory) | |
} | |
function i(e) { | |
if ("_viewsRequireLifecycle" in e) return e._viewsRequireLifecycle; | |
if (e._viewsRequireLifecycle = !1, e.viewFactory) return e._viewsRequireLifecycle = i(e.viewFactory), e._viewsRequireLifecycle; | |
if (e.template.querySelector(".au-animate")) return e._viewsRequireLifecycle = !0, !0; | |
for (var t in e.instructions) | |
if (n(e.instructions[t])) return e._viewsRequireLifecycle = !0, !0; | |
return e._viewsRequireLifecycle = !1, !1 | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.viewsRequireLifecycle = i; | |
var o = e.lifecycleOptionalBehaviors = ["focus", "if", "repeat", "show", "with"] | |
}), define("aurelia-templating-resources/abstract-repeater", ["exports"], function(e) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
e.AbstractRepeater = function() { | |
function e(e) { | |
Object.assign(this, { | |
local: "items", | |
viewsRequireLifecycle: !0 | |
}, e) | |
} | |
return e.prototype.viewCount = function() { | |
throw new Error("subclass must implement `viewCount`") | |
}, e.prototype.views = function() { | |
throw new Error("subclass must implement `views`") | |
}, e.prototype.view = function(e) { | |
throw new Error("subclass must implement `view`") | |
}, e.prototype.matcher = function() { | |
throw new Error("subclass must implement `matcher`") | |
}, e.prototype.addView = function(e, t) { | |
throw new Error("subclass must implement `addView`") | |
}, e.prototype.insertView = function(e, t, n) { | |
throw new Error("subclass must implement `insertView`") | |
}, e.prototype.moveView = function(e, t) { | |
throw new Error("subclass must implement `moveView`") | |
}, e.prototype.removeAllViews = function(e, t) { | |
throw new Error("subclass must implement `removeAllViews`") | |
}, e.prototype.removeViews = function(e, t, n) { | |
throw new Error("subclass must implement `removeView`") | |
}, e.prototype.removeView = function(e, t, n) { | |
throw new Error("subclass must implement `removeView`") | |
}, e.prototype.updateBindings = function(e) { | |
throw new Error("subclass must implement `updateBindings`") | |
}, e | |
}() | |
}), define("aurelia-templating-resources/show", ["exports", "aurelia-dependency-injection", "aurelia-templating", "aurelia-pal", "./aurelia-hide-style"], function(e, t, n, i, o) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.Show = void 0; | |
var r, a, u; | |
e.Show = (r = (0, n.customAttribute)("show"), a = (0, t.inject)(i.DOM.Element, n.Animator, t.Optional.of(i.DOM.boundary, !0)), r(u = a(u = function() { | |
function e(e, t, n) { | |
this.element = e, this.animator = t, this.domBoundary = n | |
} | |
return e.prototype.created = function() { | |
(0, o.injectAureliaHideStyleAtBoundary)(this.domBoundary) | |
}, e.prototype.valueChanged = function(e) { | |
e ? this.animator.removeClass(this.element, o.aureliaHideClassName) : this.animator.addClass(this.element, o.aureliaHideClassName) | |
}, e.prototype.bind = function(e) { | |
this.valueChanged(this.value) | |
}, e | |
}()) || u) || u) | |
}), define("aurelia-templating-resources/aurelia-hide-style", ["exports", "aurelia-pal"], function(e, t) { | |
"use strict"; | |
function n() { | |
t.DOM.injectStyles(r) | |
} | |
function i(e) { | |
t.FEATURE.shadowDOM && e && !e.hasAureliaHideStyle && (e.hasAureliaHideStyle = !0, t.DOM.injectStyles(r, e)) | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.aureliaHideClassName = void 0, e.injectAureliaHideStyleAtHead = n, e.injectAureliaHideStyleAtBoundary = i; | |
var o = e.aureliaHideClassName = "aurelia-hide", | |
r = "." + o + " { display:none !important; }" | |
}), define("aurelia-templating-resources/hide", ["exports", "aurelia-dependency-injection", "aurelia-templating", "aurelia-pal", "./aurelia-hide-style"], function(e, t, n, i, o) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.Hide = void 0; | |
var r, a, u; | |
e.Hide = (r = (0, n.customAttribute)("hide"), a = (0, t.inject)(i.DOM.Element, n.Animator, t.Optional.of(i.DOM.boundary, !0)), r(u = a(u = function() { | |
function e(e, t, n) { | |
this.element = e, this.animator = t, this.domBoundary = n | |
} | |
return e.prototype.created = function() { | |
(0, o.injectAureliaHideStyleAtBoundary)(this.domBoundary) | |
}, e.prototype.valueChanged = function(e) { | |
e ? this.animator.addClass(this.element, o.aureliaHideClassName) : this.animator.removeClass(this.element, o.aureliaHideClassName) | |
}, e.prototype.bind = function(e) { | |
this.valueChanged(this.value) | |
}, e | |
}()) || u) || u) | |
}), define("aurelia-templating-resources/sanitize-html", ["exports", "aurelia-binding", "aurelia-dependency-injection", "./html-sanitizer"], function(e, t, n, i) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.SanitizeHTMLValueConverter = void 0; | |
var o, r, a; | |
e.SanitizeHTMLValueConverter = (o = (0, t.valueConverter)("sanitizeHTML"), r = (0, n.inject)(i.HTMLSanitizer), o(a = r(a = function() { | |
function e(e) { | |
this.sanitizer = e | |
} | |
return e.prototype.toView = function(e) { | |
return null === e || void 0 === e ? null : this.sanitizer.sanitize(e) | |
}, e | |
}()) || a) || a) | |
}), define("aurelia-templating-resources/html-sanitizer", ["exports"], function(e) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
e.HTMLSanitizer = function() { | |
function e() {} | |
return e.prototype.sanitize = function(e) { | |
return e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, "") | |
}, e | |
}() | |
}), define("aurelia-templating-resources/replaceable", ["exports", "aurelia-dependency-injection", "aurelia-templating"], function(e, t, n) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.Replaceable = void 0; | |
var i, o, r; | |
e.Replaceable = (i = (0, n.customAttribute)("replaceable"), o = (0, t.inject)(n.BoundViewFactory, n.ViewSlot), i(r = (0, n.templateController)(r = o(r = function() { | |
function e(e, t) { | |
this.viewFactory = e, this.viewSlot = t, this.view = null | |
} | |
return e.prototype.bind = function(e, t) { | |
null === this.view && (this.view = this.viewFactory.create(), this.viewSlot.add(this.view)), this.view.bind(e, t) | |
}, e.prototype.unbind = function() { | |
this.view.unbind() | |
}, e | |
}()) || r) || r) || r) | |
}), define("aurelia-templating-resources/focus", ["exports", "aurelia-templating", "aurelia-binding", "aurelia-dependency-injection", "aurelia-task-queue", "aurelia-pal"], function(e, t, n, i, o, r) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.Focus = void 0; | |
var a, u, s; | |
e.Focus = (a = (0, t.customAttribute)("focus", n.bindingMode.twoWay), u = (0, i.inject)(r.DOM.Element, o.TaskQueue), a(s = u(s = function() { | |
function e(e, t) { | |
var n = this; | |
this.element = e, this.taskQueue = t, this.isAttached = !1, | |
this.needsApply = !1, this.focusListener = function(e) { | |
n.value = !0 | |
}, this.blurListener = function(e) { | |
r.DOM.activeElement !== n.element && (n.value = !1) | |
} | |
} | |
return e.prototype.valueChanged = function(e) { | |
this.isAttached ? this._apply() : this.needsApply = !0 | |
}, e.prototype._apply = function() { | |
var e = this; | |
this.value ? this.taskQueue.queueMicroTask(function() { | |
e.value && e.element.focus() | |
}) : this.element.blur() | |
}, e.prototype.attached = function() { | |
this.isAttached = !0, this.needsApply && (this.needsApply = !1, this._apply()), this.element.addEventListener("focus", this.focusListener), this.element.addEventListener("blur", this.blurListener) | |
}, e.prototype.detached = function() { | |
this.isAttached = !1, this.element.removeEventListener("focus", this.focusListener), this.element.removeEventListener("blur", this.blurListener) | |
}, e | |
}()) || s) || s) | |
}), define("aurelia-templating-resources/css-resource", ["exports", "aurelia-templating", "aurelia-loader", "aurelia-dependency-injection", "aurelia-path", "aurelia-pal"], function(e, t, n, i, o, r) { | |
"use strict"; | |
function a(e, t) { | |
if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return !t || "object" != typeof t && "function" != typeof t ? e : t | |
} | |
function u(e, t) { | |
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
e.prototype = Object.create(t && t.prototype, { | |
constructor: { | |
value: e, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
} | |
function s(e, t) { | |
if ("string" != typeof t) throw new Error("Failed loading required CSS file: " + e); | |
return t.replace(/url\((?!['"]data)([^)]+)\)/gi, function(t, n) { | |
var i = n.charAt(0); | |
return "'" !== i && '"' !== i || (n = n.substr(1, n.length - 2)), "url('" + (0, o.relativeToFile)(n, e) + "')" | |
}) | |
} | |
function l(e) { | |
var n, i; | |
return n = (0, t.resource)(new _(e)), n(i = function(e) { | |
function t() { | |
return a(this, e.apply(this, arguments)) | |
} | |
return u(t, e), t | |
}(c)) || i | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e._createCSSResource = l; | |
var _ = function() { | |
function e(e) { | |
this.address = e, this._scoped = null, this._global = !1, this._alreadyGloballyInjected = !1 | |
} | |
return e.prototype.initialize = function(e, t) { | |
this._scoped = new t(this) | |
}, e.prototype.register = function(e, t) { | |
"scoped" === t ? e.registerViewEngineHooks(this._scoped) : this._global = !0 | |
}, e.prototype.load = function(e) { | |
var t = this; | |
return e.get(n.Loader).loadText(this.address).catch(function(e) { | |
return null | |
}).then(function(e) { | |
e = s(t.address, e), t._scoped.css = e, t._global && (t._alreadyGloballyInjected = !0, r.DOM.injectStyles(e)) | |
}) | |
}, e | |
}(), | |
c = function() { | |
function e(e) { | |
this.owner = e, this.css = null | |
} | |
return e.prototype.beforeCompile = function(e, t, n) { | |
if (n.targetShadowDOM) r.DOM.injectStyles(this.css, e, !0); | |
else if (r.FEATURE.scopedCSS) { | |
var i = r.DOM.injectStyles(this.css, e, !0); | |
i.setAttribute("scoped", "scoped") | |
} else this.owner._alreadyGloballyInjected || (r.DOM.injectStyles(this.css), this.owner._alreadyGloballyInjected = !0) | |
}, e | |
}() | |
}), define("aurelia-templating-resources/attr-binding-behavior", ["exports", "aurelia-binding"], function(e, t) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.AttrBindingBehavior = void 0; | |
e.AttrBindingBehavior = function() { | |
function e() {} | |
return e.prototype.bind = function(e, n) { | |
e.targetObserver = new t.DataAttributeObserver(e.target, e.targetProperty) | |
}, e.prototype.unbind = function(e, t) {}, e | |
}() | |
}), define("aurelia-templating-resources/binding-mode-behaviors", ["exports", "aurelia-binding", "aurelia-metadata"], function(e, t, n) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.TwoWayBindingBehavior = e.OneWayBindingBehavior = e.OneTimeBindingBehavior = void 0; | |
var i, o, r, a, u, s, l = { | |
bind: function(e, t, n) { | |
e.originalMode = e.mode, e.mode = this.mode | |
}, | |
unbind: function(e, t) { | |
e.mode = e.originalMode, e.originalMode = null | |
} | |
}; | |
e.OneTimeBindingBehavior = (i = (0, n.mixin)(l), i(o = function() { | |
this.mode = t.bindingMode.oneTime | |
}) || o), e.OneWayBindingBehavior = (r = (0, n.mixin)(l), r(a = function() { | |
this.mode = t.bindingMode.oneWay | |
}) || a), e.TwoWayBindingBehavior = (u = (0, n.mixin)(l), u(s = function() { | |
this.mode = t.bindingMode.twoWay | |
}) || s) | |
}), define("aurelia-templating-resources/throttle-binding-behavior", ["exports", "aurelia-binding"], function(e, t) { | |
"use strict"; | |
function n(e) { | |
var t = this, | |
n = this.throttleState, | |
i = +new Date - n.last; | |
if (i >= n.delay) return clearTimeout(n.timeoutId), n.timeoutId = null, n.last = +new Date, void this.throttledMethod(e); | |
n.newValue = e, null === n.timeoutId && (n.timeoutId = setTimeout(function() { | |
n.timeoutId = null, n.last = +new Date, t.throttledMethod(n.newValue) | |
}, n.delay - i)) | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.ThrottleBindingBehavior = void 0; | |
e.ThrottleBindingBehavior = function() { | |
function e() {} | |
return e.prototype.bind = function(e, i) { | |
var o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 200, | |
r = "updateTarget"; | |
e.callSource ? r = "callSource" : e.updateSource && e.mode === t.bindingMode.twoWay && (r = "updateSource"), e.throttledMethod = e[r], e.throttledMethod.originalName = r, e[r] = n, e.throttleState = { | |
delay: o, | |
last: 0, | |
timeoutId: null | |
} | |
}, e.prototype.unbind = function(e, t) { | |
e[e.throttledMethod.originalName] = e.throttledMethod, e.throttledMethod = null, clearTimeout(e.throttleState.timeoutId), e.throttleState = null | |
}, e | |
}() | |
}), define("aurelia-templating-resources/debounce-binding-behavior", ["exports", "aurelia-binding"], function(e, t) { | |
"use strict"; | |
function n(e) { | |
var t = this, | |
n = this.debounceState; | |
if (n.immediate) return n.immediate = !1, void this.debouncedMethod(e); | |
clearTimeout(n.timeoutId), n.timeoutId = setTimeout(function() { | |
return t.debouncedMethod(e) | |
}, n.delay) | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.DebounceBindingBehavior = void 0; | |
e.DebounceBindingBehavior = function() { | |
function e() {} | |
return e.prototype.bind = function(e, i) { | |
var o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 200, | |
r = "updateTarget"; | |
e.callSource ? r = "callSource" : e.updateSource && e.mode === t.bindingMode.twoWay && (r = "updateSource"), e.debouncedMethod = e[r], e.debouncedMethod.originalName = r, e[r] = n, e.debounceState = { | |
delay: o, | |
timeoutId: null, | |
immediate: "updateTarget" === r | |
} | |
}, e.prototype.unbind = function(e, t) { | |
e[e.debouncedMethod.originalName] = e.debouncedMethod, e.debouncedMethod = null, clearTimeout(e.debounceState.timeoutId), e.debounceState = null | |
}, e | |
}() | |
}), define("aurelia-templating-resources/self-binding-behavior", ["exports"], function(e) { | |
"use strict"; | |
function t(e) { | |
return e.path && e.path[0] || e.deepPath && e.deepPath[0] || e.target | |
} | |
function n(e) { | |
var n = t(e); | |
this.target === n && this.selfEventCallSource(e) | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
e.SelfBindingBehavior = function() { | |
function e() {} | |
return e.prototype.bind = function(e, t) { | |
if (!e.callSource || !e.targetEvent) throw new Error("Self binding behavior only supports event."); | |
e.selfEventCallSource = e.callSource, e.callSource = n | |
}, e.prototype.unbind = function(e, t) { | |
e.callSource = e.selfEventCallSource, e.selfEventCallSource = null | |
}, e | |
}() | |
}), define("aurelia-templating-resources/signal-binding-behavior", ["exports", "./binding-signaler"], function(e, t) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.SignalBindingBehavior = void 0; | |
e.SignalBindingBehavior = function() { | |
function e(e) { | |
this.signals = e.signals | |
} | |
return e.inject = function() { | |
return [t.BindingSignaler] | |
}, e.prototype.bind = function(e, t) { | |
if (!e.updateTarget) throw new Error("Only property bindings and string interpolation bindings can be signaled. Trigger, delegate and call bindings cannot be signaled."); | |
if (3 === arguments.length) { | |
var n = arguments[2]; | |
(this.signals[n] || (this.signals[n] = [])).push(e), e.signalName = n | |
} else { | |
if (!(arguments.length > 3)) throw new Error("Signal name is required."); | |
for (var i = Array.prototype.slice.call(arguments, 2), o = i.length; o--;) { | |
var r = i[o]; | |
(this.signals[r] || (this.signals[r] = [])).push(e) | |
} | |
e.signalName = i | |
} | |
}, e.prototype.unbind = function(e, t) { | |
var n = e.signalName; | |
if (e.signalName = null, Array.isArray(n)) | |
for (var i = n, o = i.length; o--;) { | |
var r = i[o], | |
a = this.signals[r]; | |
a.splice(a.indexOf(e), 1) | |
} else { | |
var u = this.signals[n]; | |
u.splice(u.indexOf(e), 1) | |
} | |
}, e | |
}() | |
}), define("aurelia-templating-resources/binding-signaler", ["exports", "aurelia-binding"], function(e, t) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.BindingSignaler = void 0; | |
e.BindingSignaler = function() { | |
function e() { | |
this.signals = {} | |
} | |
return e.prototype.signal = function(e) { | |
var n = this.signals[e]; | |
if (n) | |
for (var i = n.length; i--;) n[i].call(t.sourceContext) | |
}, e | |
}() | |
}), define("aurelia-templating-resources/update-trigger-binding-behavior", ["exports", "aurelia-binding"], function(e, t) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.UpdateTriggerBindingBehavior = void 0; | |
var n, i, o = "The updateTrigger binding behavior can only be applied to two-way bindings on input/select elements."; | |
e.UpdateTriggerBindingBehavior = (i = n = function() { | |
function e(e) { | |
this.eventManager = e | |
} | |
return e.prototype.bind = function(e, n) { | |
for (var i = arguments.length, r = Array(i > 2 ? i - 2 : 0), a = 2; a < i; a++) r[a - 2] = arguments[a]; | |
if (0 === r.length) throw new Error("The updateTrigger binding behavior requires at least one event name argument: eg <input value.bind=\"firstName & updateTrigger:'blur'\">"); | |
if (e.mode !== t.bindingMode.twoWay) throw new Error(o); | |
var u = e.observerLocator.getObserver(e.target, e.targetProperty); | |
if (!u.handler) throw new Error(o); | |
e.targetObserver = u, u.originalHandler = e.targetObserver.handler; | |
var s = this.eventManager.createElementHandler(r); | |
u.handler = s | |
}, e.prototype.unbind = function(e, t) { | |
e.targetObserver.handler = e.targetObserver.originalHandler, e.targetObserver.originalHandler = null | |
}, e | |
}(), n.inject = [t.EventManager], i) | |
}), define("aurelia-templating-resources/html-resource-plugin", ["exports", "aurelia-templating", "./dynamic-element"], function(e, t, n) { | |
"use strict"; | |
function i(e) { | |
return /([^\/^\?]+)\.html/i.exec(e)[1].toLowerCase() | |
} | |
function o(e) { | |
var o = e.container.get(t.ViewEngine), | |
r = e.aurelia.loader; | |
o.addResourcePlugin(".html", { | |
fetch: function(e) { | |
return r.loadTemplate(e).then(function(t) { | |
var o, r = t.template.getAttribute("bindable"), | |
a = i(e); | |
return r ? (r = r.split(",").map(function(e) { | |
return e.trim() | |
}), t.template.removeAttribute("bindable")) : r = [], o = {}, o[a] = (0, n._createDynamicElement)(a, e, r), o | |
}) | |
} | |
}) | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.getElementName = i, e.configure = o | |
}), define("aurelia-templating-resources/dynamic-element", ["exports", "aurelia-templating"], function(e, t) { | |
"use strict"; | |
function n(e, n, i) { | |
for (var o, r, a, u = (o = (0, t.customElement)(e), r = (0, t.useView)(n), o(a = r(a = function() { | |
function e() {} | |
return e.prototype.bind = function(e) { | |
this.$parent = e | |
}, e | |
}()) || a) || a), s = 0, l = i.length; s < l; ++s)(0, t.bindable)(i[s])(u); | |
return u | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e._createDynamicElement = n | |
}), define("aurelia-i18n/i18n", ["exports", "i18next", "aurelia-pal", "aurelia-event-aggregator", "aurelia-templating-resources"], function(e, t, n, i, o) { | |
"use strict"; | |
function r(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.I18N = void 0; | |
var a, u, s = r(t); | |
e.I18N = (u = a = function() { | |
function e(e, t) { | |
var n = this; | |
this.globalVars = {}, this.params = {}, this.i18nextDefered = { | |
resolve: null, | |
promise: null | |
}, this.i18next = s.default, this.ea = e, this.Intl = window.Intl, this.signaler = t, this.i18nextDefered.promise = new Promise(function(e) { | |
return n.i18nextDefered.resolve = e | |
}) | |
} | |
return e.prototype.setup = function(e) { | |
var t = this, | |
n = { | |
compatibilityAPI: "v1", | |
compatibilityJSON: "v1", | |
lng: "en", | |
attributes: ["t", "i18n"], | |
fallbackLng: "en", | |
debug: !1 | |
}; | |
return s.default.init(e || n, function(e, n) { | |
s.default.options.attributes instanceof String && (s.default.options.attributes = [s.default.options.attributes]), t.i18nextDefered.resolve(t.i18next) | |
}), this.i18nextDefered.promise | |
}, e.prototype.i18nextReady = function() { | |
return this.i18nextDefered.promise | |
}, e.prototype.setLocale = function(e) { | |
var t = this; | |
return new Promise(function(n) { | |
var i = t.getLocale(); | |
t.i18next.changeLanguage(e, function(o, r) { | |
t.ea.publish("i18n:locale:changed", { | |
oldValue: i, | |
newValue: e | |
}), t.signaler.signal("aurelia-translation-signal"), n(r) | |
}) | |
}) | |
}, e.prototype.getLocale = function() { | |
return this.i18next.language | |
}, e.prototype.nf = function(e, t) { | |
return new this.Intl.NumberFormat(t || this.getLocale(), e || {}) | |
}, e.prototype.uf = function(e, t) { | |
var n = this.nf({}, t || this.getLocale()), | |
i = n.format(1e4 / 3), | |
o = i[1], | |
r = i[5], | |
a = e.replace(o, "").replace(/[^\d.,-]/g, "").replace(r, "."); | |
return Number(a) | |
}, e.prototype.df = function(e, t) { | |
return new this.Intl.DateTimeFormat(t || this.getLocale(), e) | |
}, e.prototype.tr = function(e, t) { | |
var n = this.globalVars; | |
return void 0 !== t && (n = Object.assign(Object.assign({}, this.globalVars), t)), this.i18next.t(e, n) | |
}, e.prototype.registerGlobalVariable = function(e, t) { | |
this.globalVars[e] = t | |
}, e.prototype.unregisterGlobalVariable = function(e) { | |
delete this.globalVars[e] | |
}, e.prototype.updateTranslations = function(e) { | |
if (e && e.querySelectorAll) { | |
var t = void 0, | |
n = void 0, | |
i = [].concat(this.i18next.options.attributes); | |
for (t = 0, n = i.length; t < n; t++) i[t] = "[" + i[t] + "]"; | |
i = i.join(","); | |
var o = e.querySelectorAll(i); | |
for (t = 0, n = o.length; t < n; t++) { | |
for (var r = o[t], a = void 0, u = 0, s = this.i18next.options.attributes.length; u < s && !(a = r.getAttribute(this.i18next.options.attributes[u])); u++); | |
a && this.updateValue(r, a) | |
} | |
} | |
}, e.prototype.updateValue = function(e, t, i) { | |
if (null !== t && void 0 !== t) | |
for (var o = t.split(";"), r = o.length; r--;) { | |
var a = o[r], | |
u = /\[([a-z\-]*)\]/gi, | |
s = void 0, | |
l = "text"; | |
for ("IMG" === e.nodeName && (l = "src"); null !== (s = u.exec(a));) s.index === u.lastIndex && u.lastIndex++, s && (a = a.replace(s[0], ""), l = s[1]); | |
e._textContent || (e._textContent = e.textContent), e._innerHTML || (e._innerHTML = e.innerHTML); | |
var _ = l.replace(/-([a-z])/g, function(e) { | |
return e[1].toUpperCase() | |
}); | |
switch (l) { | |
case "text": | |
var c = n.DOM.createTextNode(this.tr(a, i)); | |
for (e._newChild && e.removeChild(e._newChild), e._newChild = c; e.firstChild;) e.removeChild(e.firstChild); | |
e.appendChild(e._newChild); | |
break; | |
case "prepend": | |
var d = n.DOM.createElement("div"); | |
d.innerHTML = this.tr(a, i); | |
for (var p = e.childNodes.length - 1; p >= 0; p--) e.childNodes[p]._prepended && e.removeChild(e.childNodes[p]); | |
for (var h = d.childNodes.length - 1; h >= 0; h--) d.childNodes[h]._prepended = !0, e.firstChild ? e.insertBefore(d.childNodes[h], e.firstChild) : e.appendChild(d.childNodes[h]); | |
break; | |
case "append": | |
var f = n.DOM.createElement("div"); | |
f.innerHTML = this.tr(a, i); | |
for (var v = e.childNodes.length - 1; v >= 0; v--) e.childNodes[v]._appended && e.removeChild(e.childNodes[v]); | |
for (; f.firstChild;) f.firstChild._appended = !0, e.appendChild(f.firstChild); | |
break; | |
case "html": | |
e.innerHTML = this.tr(a, i); | |
break; | |
default: | |
e.au && e.au.controller && e.au.controller.viewModel && _ in e.au.controller.viewModel ? e.au.controller.viewModel[_] = this.tr(a, i) : e.setAttribute(l, this.tr(a, i)) | |
} | |
} | |
}, e | |
}(), a.inject = [i.EventAggregator, o.BindingSignaler], u) | |
}), define("aurelia-i18n/relativeTime", ["exports", "./i18n", "./defaultTranslations/relative.time", "aurelia-event-aggregator"], function(e, t, n, i) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.RelativeTime = void 0; | |
e.RelativeTime = function() { | |
function e(e, t) { | |
var n = this; | |
this.service = e, this.ea = t, this.service.i18nextReady().then(function() { | |
n.setup() | |
}), this.ea.subscribe("i18n:locale:changed", function(e) { | |
n.setup(e) | |
}) | |
} | |
return e.inject = function() { | |
return [t.I18N, i.EventAggregator] | |
}, e.prototype.setup = function(e) { | |
var t = n.translations.default || n.translations, | |
i = e && e.newValue ? e.newValue : this.service.getLocale(), | |
o = this.service.i18next.fallbackLng, | |
r = 0; | |
if ((r = i.indexOf("-")) >= 0) { | |
var a = i.substring(0, r); | |
t[a] && this.addTranslationResource(a, t[a].translation) | |
} | |
t[i] && this.addTranslationResource(i, t[i].translation), t[o] && this.addTranslationResource(i, t[o].translation) | |
}, e.prototype.addTranslationResource = function(e, t) { | |
var n = this.service.i18next.options; | |
if (n.interpolation && "__" !== n.interpolation.prefix || "__" !== n.interpolation.suffix) | |
for (var i in t) t[i] = t[i].replace("__count__", n.interpolation.prefix + "count" + n.interpolation.suffix); | |
this.service.i18next.addResources(e, n.defaultNS, t) | |
}, e.prototype.getRelativeTime = function(e) { | |
var t = new Date, | |
n = t.getTime() - e.getTime(), | |
i = this.getTimeDiffDescription(n, "year", 31104e6); | |
return i || (i = this.getTimeDiffDescription(n, "month", 2592e6), i || (i = this.getTimeDiffDescription(n, "day", 864e5), i || (i = this.getTimeDiffDescription(n, "hour", 36e5), i || (i = this.getTimeDiffDescription(n, "minute", 6e4), i || (i = this.getTimeDiffDescription(n, "second", 1e3), i || (i = this.service.tr("now"))))))), i | |
}, e.prototype.getTimeDiffDescription = function(e, t, n) { | |
var i = (e / n).toFixed(0); | |
if (i > 0) return this.service.tr(t, { | |
count: parseInt(i, 10), | |
context: "ago" | |
}); | |
if (i < 0) { | |
var o = Math.abs(i); | |
return this.service.tr(t, { | |
count: o, | |
context: "in" | |
}) | |
} | |
return null | |
}, e | |
}() | |
}), define("aurelia-i18n/defaultTranslations/relative.time", ["exports"], function(e) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
e.translations = { | |
ar: { | |
translation: { | |
now: "الآن", | |
second_ago: "منذ __count__ ثانية", | |
second_ago_plural: "منذ __count__ ثواني", | |
second_in: "ÙÙŠ __count__ ثانية", | |
second_in_plural: "ÙÙŠ __count__ ثواني", | |
minute_ago: "منذ __count__ دقيقة", | |
minute_ago_plural: "منذ __count__ دقائق", | |
minute_in: "ÙÙŠ __count__ دقيقة", | |
minute_in_plural: "ÙÙŠ __count__ دقائق", | |
hour_ago: "منذ __count__ ساعة", | |
hour_ago_plural: "منذ __count__ ساعات", | |
hour_in: "ÙÙŠ __count__ ساعة", | |
hour_in_plural: "ÙÙŠ __count__ ساعات", | |
day_ago: "منذ __count__ يوم", | |
day_ago_plural: "منذ __count__ أيام", | |
day_in: "ÙÙŠ __count__ يوم", | |
day_in_plural: "ÙÙŠ __count__ أيام" | |
} | |
}, | |
en: { | |
translation: { | |
now: "just now", | |
second_ago: "__count__ second ago", | |
second_ago_plural: "__count__ seconds ago", | |
second_in: "in __count__ second", | |
second_in_plural: "in __count__ seconds", | |
minute_ago: "__count__ minute ago", | |
minute_ago_plural: "__count__ minutes ago", | |
minute_in: "in __count__ minute", | |
minute_in_plural: "in __count__ minutes", | |
hour_ago: "__count__ hour ago", | |
hour_ago_plural: "__count__ hours ago", | |
hour_in: "in __count__ hour", | |
hour_in_plural: "in __count__ hours", | |
day_ago: "__count__ day ago", | |
day_ago_plural: "__count__ days ago", | |
day_in: "in __count__ day", | |
day_in_plural: "in __count__ days", | |
month_ago: "__count__ month ago", | |
month_ago_plural: "__count__ months ago", | |
month_in: "in __count__ month", | |
month_in_plural: "in __count__ months", | |
year_ago: "__count__ year ago", | |
year_ago_plural: "__count__ years ago", | |
year_in: "in __count__ year", | |
year_in_plural: "in __count__ years" | |
} | |
}, | |
it: { | |
translation: { | |
now: "adesso", | |
second_ago: "__count__ secondo fa", | |
second_ago_plural: "__count__ secondi fa", | |
second_in: "in __count__ secondo", | |
second_in_plural: "in __count__ secondi", | |
minute_ago: "__count__ minuto fa", | |
minute_ago_plural: "__count__ minuti fa", | |
minute_in: "in __count__ minuto", | |
minute_in_plural: "in __count__ minuti", | |
hour_ago: "__count__ ora fa", | |
hour_ago_plural: "__count__ ore fa", | |
hour_in: "in __count__ ora", | |
hour_in_plural: "in __count__ ore", | |
day_ago: "__count__ giorno fa", | |
day_ago_plural: "__count__ giorni fa", | |
day_in: "in __count__ giorno", | |
day_in_plural: "in __count__ giorni", | |
month_ago: "__count__ mese fa", | |
month_ago_plural: "__count__ mesi fa", | |
month_in: "in __count__ mese", | |
month_in_plural: "in __count__ mesi", | |
year_ago: "__count__ anno fa", | |
year_ago_plural: "__count__ anni fa", | |
year_in: "in __count__ anno", | |
year_in_plural: "in __count__ anni" | |
} | |
}, | |
de: { | |
translation: { | |
now: "jetzt gerade", | |
second_ago: "vor __count__ Sekunde", | |
second_ago_plural: "vor __count__ Sekunden", | |
second_in: "in __count__ Sekunde", | |
second_in_plural: "in __count__ Sekunden", | |
minute_ago: "vor __count__ Minute", | |
minute_ago_plural: "vor __count__ Minuten", | |
minute_in: "in __count__ Minute", | |
minute_in_plural: "in __count__ Minuten", | |
hour_ago: "vor __count__ Stunde", | |
hour_ago_plural: "vor __count__ Stunden", | |
hour_in: "in __count__ Stunde", | |
hour_in_plural: "in __count__ Stunden", | |
day_ago: "vor __count__ Tag", | |
day_ago_plural: "vor __count__ Tagen", | |
day_in: "in __count__ Tag", | |
day_in_plural: "in __count__ Tagen", | |
month_ago: "vor __count__ Monat", | |
month_ago_plural: "vor __count__ Monaten", | |
month_in: "in __count__ Monat", | |
month_in_plural: "in __count__ Monaten", | |
year_ago: "vor __count__ Jahr", | |
year_ago_plural: "vor __count__ Jahren", | |
year_in: "in __count__ Jahr", | |
year_in_plural: "in __count__ Jahren" | |
} | |
}, | |
nl: { | |
translation: { | |
now: "zonet", | |
second_ago: "__count__ seconde geleden", | |
second_ago_plural: "__count__ seconden geleden", | |
second_in: "in __count__ seconde", | |
second_in_plural: "in __count__ seconden", | |
minute_ago: "__count__ minuut geleden", | |
minute_ago_plural: "__count__ minuten geleden", | |
minute_in: "in __count__ minuut", | |
minute_in_plural: "in __count__ minuten", | |
hour_ago: "__count__ uur geleden", | |
hour_ago_plural: "__count__ uren geleden", | |
hour_in: "in __count__ uur", | |
hour_in_plural: "in __count__ uren", | |
day_ago: "__count__ dag geleden", | |
day_ago_plural: "__count__ dagen geleden", | |
day_in: "in __count__ dag", | |
day_in_plural: "in __count__ dagen", | |
month_ago: "__count__ maand geleden", | |
month_ago_plural: "__count__ maanden geleden", | |
month_in: "in __count__ maand", | |
month_in_plural: "in __count__ maanden", | |
year_ago: "__count__ jaar geleden", | |
year_ago_plural: "__count__ jaren geleden", | |
year_in: "in __count__ jaar", | |
year_in_plural: "in __count__ jaren" | |
} | |
}, | |
fr: { | |
translation: { | |
now: "maintenant", | |
second_ago: "__count__ seconde plus tôt", | |
second_ago_plural: "__count__ secondes plus tôt", | |
second_in: "en __count__ seconde", | |
second_in_plural: "en __count__ secondes", | |
minute_ago: "__count__ minute plus tôt", | |
minute_ago_plural: "__count__ minutes plus tôt", | |
minute_in: "en __count__ minute", | |
minute_in_plural: "en __count__ minutes", | |
hour_ago: "__count__ heure plus tôt", | |
hour_ago_plural: "__count__ heures plus tôt", | |
hour_in: "en __count__ heure", | |
hour_in_plural: "en __count__ heures", | |
day_ago: "__count__ jour plus tôt", | |
day_ago_plural: "__count__ jours plus tôt", | |
day_in: "en __count__ jour", | |
day_in_plural: "en __count__ jours" | |
} | |
}, | |
th: { | |
translation: { | |
now: "เมื่à¸à¸à¸µà¹‰", | |
second_ago: "__count__ วินาที ที่ผ่านมา", | |
second_ago_plural: "__count__ วินาที ที่ผ่านมา", | |
second_in: "à¸à¸µà¸ __count__ วินาที", | |
second_in_plural: "à¸à¸µà¸ __count__ วินาที", | |
minute_ago: "__count__ นาที ที่ผ่านมา", | |
minute_ago_plural: "__count__ นาที ที่ผ่านมา", | |
minute_in: "à¸à¸µà¸ __count__ นาที", | |
minute_in_plural: "à¸à¸µà¸ __count__ นาที", | |
hour_ago: "__count__ ชั่วโมง ที่ผ่านมา", | |
hour_ago_plural: "__count__ ชั่วโมง ที่ผ่านมา", | |
hour_in: "à¸à¸µà¸ __count__ ชั่วโมง", | |
hour_in_plural: "à¸à¸µà¸ __count__ ชั่วโมง", | |
day_ago: "__count__ วัน ที่ผ่านมา", | |
day_ago_plural: "__count__ วัน ที่ผ่านมา", | |
day_in: "à¸à¸µà¸ __count__ วัน", | |
day_in_plural: "à¸à¸µà¸ __count__ วัน" | |
} | |
}, | |
sv: { | |
translation: { | |
now: "just nu", | |
second_ago: "__count__ sekund sedan", | |
second_ago_plural: "__count__ sekunder sedan", | |
second_in: "om __count__ sekund", | |
second_in_plural: "om __count__ sekunder", | |
minute_ago: "__count__ minut sedan", | |
minute_ago_plural: "__count__ minuter sedan", | |
minute_in: "om __count__ minut", | |
minute_in_plural: "om __count__ minuter", | |
hour_ago: "__count__ timme sedan", | |
hour_ago_plural: "__count__ timmar sedan", | |
hour_in: "om __count__ timme", | |
hour_in_plural: "om __count__ timmar", | |
day_ago: "__count__ dag sedan", | |
day_ago_plural: "__count__ dagar sedan", | |
day_in: "om __count__ dag", | |
day_in_plural: "om __count__ dagar" | |
} | |
}, | |
da: { | |
translation: { | |
now: "lige nu", | |
second_ago: "__count__ sekunder siden", | |
second_ago_plural: "__count__ sekunder siden", | |
second_in: "om __count__ sekund", | |
second_in_plural: "om __count__ sekunder", | |
minute_ago: "__count__ minut siden", | |
minute_ago_plural: "__count__ minutter siden", | |
minute_in: "om __count__ minut", | |
minute_in_plural: "om __count__ minutter", | |
hour_ago: "__count__ time siden", | |
hour_ago_plural: "__count__ timer siden", | |
hour_in: "om __count__ time", | |
hour_in_plural: "om __count__ timer", | |
day_ago: "__count__ dag siden", | |
day_ago_plural: "__count__ dage siden", | |
day_in: "om __count__ dag", | |
day_in_plural: "om __count__ dage" | |
} | |
}, | |
no: { | |
translation: { | |
now: "akkurat nå", | |
second_ago: "__count__ sekund siden", | |
second_ago_plural: "__count__ sekunder siden", | |
second_in: "om __count__ sekund", | |
second_in_plural: "om __count__ sekunder", | |
minute_ago: "__count__ minutt siden", | |
minute_ago_plural: "__count__ minutter siden", | |
minute_in: "om __count__ minutt", | |
minute_in_plural: "om __count__ minutter", | |
hour_ago: "__count__ time siden", | |
hour_ago_plural: "__count__ timer siden", | |
hour_in: "om __count__ time", | |
hour_in_plural: "om __count__ timer", | |
day_ago: "__count__ dag siden", | |
day_ago_plural: "__count__ dager siden", | |
day_in: "om __count__ dag", | |
day_in_plural: "om __count__ dager" | |
} | |
}, | |
jp: { | |
translation: { | |
now: "ãŸã£ãŸä»Š", | |
second_ago: "__count__ ç§’å‰", | |
second_ago_plural: "__count__ ç§’å‰", | |
second_in: "ã‚㨠__count__ ç§’", | |
second_in_plural: "ã‚㨠__count__ ç§’", | |
minute_ago: "__count__ 分å‰", | |
minute_ago_plural: "__count__ 分å‰", | |
minute_in: "ã‚㨠__count__ 分", | |
minute_in_plural: "ã‚㨠__count__ 分", | |
hour_ago: "__count__ 時間å‰", | |
hour_ago_plural: "__count__ 時間å‰", | |
hour_in: "ã‚㨠__count__ 時間", | |
hour_in_plural: "ã‚㨠__count__ 時間", | |
day_ago: "__count__ 日間å‰", | |
day_ago_plural: "__count__ 日間å‰", | |
day_in: "ã‚㨠__count__ 日間", | |
day_in_plural: "ã‚㨠__count__ 日間" | |
} | |
}, | |
pt: { | |
translation: { | |
now: "neste exato momento", | |
second_ago: "__count__ segundo atrás", | |
second_ago_plural: "__count__ segundos atrás", | |
second_in: "em __count__ segundo", | |
second_in_plural: "em __count__ segundos", | |
minute_ago: "__count__ minuto atrás", | |
minute_ago_plural: "__count__ minutos atrás", | |
minute_in: "em __count__ minuto", | |
minute_in_plural: "em __count__ minutos", | |
hour_ago: "__count__ hora atrás", | |
hour_ago_plural: "__count__ horas atrás", | |
hour_in: "em __count__ hora", | |
hour_in_plural: "em __count__ horas", | |
day_ago: "__count__ dia atrás", | |
day_ago_plural: "__count__ dias atrás", | |
day_in: "em __count__ dia", | |
day_in_plural: "em __count__ dias", | |
month_ago: "__count__ mês atrás", | |
month_ago_plural: "__count__ meses atrás", | |
month_in: "em __count__ mês", | |
month_in_plural: "em __count__ meses", | |
year_ago: "__count__ ano atrás", | |
year_ago_plural: "__count__ anos atrás", | |
year_in: "em __count__ ano", | |
year_in_plural: "em __count__ anos" | |
} | |
}, | |
zh: { | |
translation: { | |
now: "刚æ‰", | |
second_ago: "__count__ ç§’é’Ÿå‰", | |
second_ago_plural: "__count__ ç§’é’Ÿå‰", | |
second_in: "__count__ 秒内", | |
second_in_plural: "__count__ 秒内", | |
minute_ago: "__count__ 分钟å‰", | |
minute_ago_plural: "__count__ 分钟å‰", | |
minute_in: "__count__ 分钟内", | |
minute_in_plural: "__count__ 分钟内", | |
hour_ago: "__count__ å°æ—¶å‰", | |
hour_ago_plural: "__count__ å°æ—¶å‰", | |
hour_in: "__count__ å°æ—¶å†…", | |
hour_in_plural: "__count__ å°æ—¶å†…", | |
day_ago: "__count__ 天å‰", | |
day_ago_plural: "__count__ 天å‰", | |
day_in: "__count__ 天内", | |
day_in_plural: "__count__ 天内", | |
month_ago: "__count__ 月å‰", | |
month_ago_plural: "__count__ 月å‰", | |
month_in: "__count__ 月内", | |
month_in_plural: "__count__ 月内", | |
year_ago: "__count__ å¹´å‰", | |
year_ago_plural: "__count__ å¹´å‰", | |
year_in: "__count__ 年内", | |
year_in_plural: "__count__ 年内" | |
} | |
}, | |
"zh-CN": { | |
translation: { | |
now: "刚æ‰", | |
second_ago: "__count__ ç§’é’Ÿå‰", | |
second_ago_plural: "__count__ ç§’é’Ÿå‰", | |
second_in: "__count__ 秒内", | |
second_in_plural: "__count__ 秒内", | |
minute_ago: "__count__ 分钟å‰", | |
minute_ago_plural: "__count__ 分钟å‰", | |
minute_in: "__count__ 分钟内", | |
minute_in_plural: "__count__ 分钟内", | |
hour_ago: "__count__ å°æ—¶å‰", | |
hour_ago_plural: "__count__ å°æ—¶å‰", | |
hour_in: "__count__ å°æ—¶å†…", | |
hour_in_plural: "__count__ å°æ—¶å†…", | |
day_ago: "__count__ 天å‰", | |
day_ago_plural: "__count__ 天å‰", | |
day_in: "__count__ 天内", | |
day_in_plural: "__count__ 天内", | |
month_ago: "__count__ 月å‰", | |
month_ago_plural: "__count__ 月å‰", | |
month_in: "__count__ 月内", | |
month_in_plural: "__count__ 月内", | |
year_ago: "__count__ å¹´å‰", | |
year_ago_plural: "__count__ å¹´å‰", | |
year_in: "__count__ 年内", | |
year_in_plural: "__count__ 年内" | |
} | |
}, | |
"zh-HK": { | |
translation: { | |
now: "剛æ‰", | |
second_ago: "__count__ ç§’é˜å‰", | |
second_ago_plural: "__count__ ç§’é˜å‰", | |
second_in: "__count__ ç§’å…§", | |
second_in_plural: "__count__ ç§’å…§", | |
minute_ago: "__count__ 分é˜å‰", | |
minute_ago_plural: "__count__ 分é˜å‰", | |
minute_in: "__count__ 分é˜å…§", | |
minute_in_plural: "__count__ 分é˜å…§", | |
hour_ago: "__count__ å°æ™‚å‰", | |
hour_ago_plural: "__count__ å°æ™‚å‰", | |
hour_in: "__count__ å°æ™‚å…§", | |
hour_in_plural: "__count__ å°æ™‚å…§", | |
day_ago: "__count__ 天å‰", | |
day_ago_plural: "__count__ 天å‰", | |
day_in: "__count__ 天內", | |
day_in_plural: "__count__ 天內", | |
month_ago: "__count__ 月å‰", | |
month_ago_plural: "__count__ 月å‰", | |
month_in: "__count__ 月內", | |
month_in_plural: "__count__ 月內", | |
year_ago: "__count__ å¹´å‰", | |
year_ago_plural: "__count__ å¹´å‰", | |
year_in: "__count__ å¹´å…§", | |
year_in_plural: "__count__ å¹´å…§" | |
} | |
}, | |
"zh-TW": { | |
translation: { | |
now: "剛æ‰", | |
second_ago: "__count__ ç§’é˜å‰", | |
second_ago_plural: "__count__ ç§’é˜å‰", | |
second_in: "__count__ ç§’å…§", | |
second_in_plural: "__count__ ç§’å…§", | |
minute_ago: "__count__ 分é˜å‰", | |
minute_ago_plural: "__count__ 分é˜å‰", | |
minute_in: "__count__ 分é˜å…§", | |
minute_in_plural: "__count__ 分é˜å…§", | |
hour_ago: "__count__ å°æ™‚å‰", | |
hour_ago_plural: "__count__ å°æ™‚å‰", | |
hour_in: "__count__ å°æ™‚å…§", | |
hour_in_plural: "__count__ å°æ™‚å…§", | |
day_ago: "__count__ 天å‰", | |
day_ago_plural: "__count__ 天å‰", | |
day_in: "__count__ 天內", | |
day_in_plural: "__count__ 天內", | |
month_ago: "__count__ 月å‰", | |
month_ago_plural: "__count__ 月å‰", | |
month_in: "__count__ 月內", | |
month_in_plural: "__count__ 月內", | |
year_ago: "__count__ å¹´å‰", | |
year_ago_plural: "__count__ å¹´å‰", | |
year_in: "__count__ å¹´å…§", | |
year_in_plural: "__count__ å¹´å…§" | |
} | |
} | |
} | |
}), define("aurelia-i18n/df", ["exports", "aurelia-logging", "./i18n", "aurelia-templating-resources", "aurelia-binding"], function(e, t, n, i, o) { | |
"use strict"; | |
function r(e) { | |
if (e && e.__esModule) return e; | |
var t = {}; | |
if (null != e) | |
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); | |
return t.default = e, t | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.DfBindingBehavior = e.DfValueConverter = void 0; | |
var a = r(t); | |
e.DfValueConverter = function() { | |
function e(e) { | |
this.service = e | |
} | |
return e.inject = function() { | |
return [n.I18N] | |
}, e.prototype.toView = function(e, t, n, i) { | |
if (null === e || void 0 === e || "string" == typeof e && "" === e.trim()) return e; | |
if (t && "function" == typeof t.format) return t.format(e); | |
if (i) { | |
a.getLogger("i18n").warn("This ValueConverter signature is depcrecated and will be removed in future releases. Please use the signature [dfOrOptions, locale]") | |
} else i = this.service.df(t, n || this.service.getLocale()); | |
return "string" == typeof e && isNaN(e) && !Number.isInteger(e) && (e = new Date(e)), i.format(e) | |
}, e | |
}(), e.DfBindingBehavior = function() { | |
function e(e) { | |
this.signalBindingBehavior = e | |
} | |
return e.inject = function() { | |
return [i.SignalBindingBehavior] | |
}, e.prototype.bind = function(e, t) { | |
this.signalBindingBehavior.bind(e, t, "aurelia-translation-signal"); | |
var n = e.sourceExpression; | |
if (!n.rewritten) { | |
n.rewritten = !0; | |
var i = n.expression; | |
n.expression = new o.ValueConverter(i, "df", n.args, [i].concat(n.args)) | |
} | |
}, e.prototype.unbind = function(e, t) { | |
this.signalBindingBehavior.unbind(e, t) | |
}, e | |
}() | |
}), define("aurelia-i18n/nf", ["exports", "aurelia-logging", "./i18n", "aurelia-templating-resources", "aurelia-binding"], function(e, t, n, i, o) { | |
"use strict"; | |
function r(e) { | |
if (e && e.__esModule) return e; | |
var t = {}; | |
if (null != e) | |
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); | |
return t.default = e, t | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.NfBindingBehavior = e.NfValueConverter = void 0; | |
var a = r(t); | |
e.NfValueConverter = function() { | |
function e(e) { | |
this.service = e | |
} | |
return e.inject = function() { | |
return [n.I18N] | |
}, e.prototype.toView = function(e, t, n, i) { | |
if (null === e || void 0 === e || "string" == typeof e && "" === e.trim()) return e; | |
if (t && "function" == typeof t.format) return t.format(e); | |
if (i) { | |
a.getLogger("i18n").warn("This ValueConverter signature is depcrecated and will be removed in future releases. Please use the signature [nfOrOptions, locale]") | |
} else i = this.service.nf(t, n || this.service.getLocale()); | |
return i.format(e) | |
}, e | |
}(), e.NfBindingBehavior = function() { | |
function e(e) { | |
this.signalBindingBehavior = e | |
} | |
return e.inject = function() { | |
return [i.SignalBindingBehavior] | |
}, e.prototype.bind = function(e, t) { | |
this.signalBindingBehavior.bind(e, t, "aurelia-translation-signal"); | |
var n = e.sourceExpression; | |
if (!n.rewritten) { | |
n.rewritten = !0; | |
var i = n.expression; | |
n.expression = new o.ValueConverter(i, "nf", n.args, [i].concat(n.args)) | |
} | |
}, e.prototype.unbind = function(e, t) { | |
this.signalBindingBehavior.unbind(e, t) | |
}, e | |
}() | |
}), define("aurelia-i18n/rt", ["exports", "./relativeTime"], function(e, t) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.RtValueConverter = void 0; | |
e.RtValueConverter = function() { | |
function e(e) { | |
this.service = e | |
} | |
return e.inject = function() { | |
return [t.RelativeTime] | |
}, e.prototype.toView = function(e) { | |
return null === e || void 0 === e || "string" == typeof e && "" === e.trim() ? e : ("string" == typeof e && isNaN(e) && !Number.isInteger(e) && (e = new Date(e)), this.service.getRelativeTime(e)) | |
}, e | |
}() | |
}), define("aurelia-i18n/t", ["exports", "./i18n", "aurelia-event-aggregator", "aurelia-templating", "aurelia-templating-resources", "aurelia-binding", "./utils"], function(e, t, n, i, o, r, a) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.TBindingBehavior = e.TCustomAttribute = e.TParamsCustomAttribute = e.TValueConverter = void 0; | |
var u, s, l, _, c, d, p, h, f, v, g = (e.TValueConverter = function() { | |
function e(e) { | |
this.service = e | |
} | |
return e.inject = function() { | |
return [t.I18N] | |
}, e.prototype.toView = function(e, t) { | |
return this.service.tr(e, t) | |
}, e | |
}(), e.TParamsCustomAttribute = (u = (0, i.customAttribute)("t-params"), u((_ = l = function() { | |
function e(e) { | |
this.element = e | |
} | |
return e.prototype.valueChanged = function() {}, e | |
}(), l.inject = [Element], s = _)) || s)); | |
e.TCustomAttribute = (c = (0, i.customAttribute)("t"), c((h = p = function() { | |
function e(e, t, n, i) { | |
this.element = e, this.service = t, this.ea = n, this.lazyParams = i | |
} | |
return e.prototype.bind = function() { | |
var e = this; | |
this.params = this.lazyParams(), this.params && (this.params.valueChanged = function(t, n) { | |
e.paramsChanged(e.value, t, n) | |
}); | |
var t = null !== this.params ? this.params.value : void 0; | |
this.subscription = this.ea.subscribe("i18n:locale:changed", function() { | |
e.service.updateValue(e.element, e.value, null !== e.params ? e.params.value : void 0) | |
}), this.service.updateValue(this.element, this.value, t) | |
}, e.prototype.paramsChanged = function(e, t) { | |
this.service.updateValue(this.element, e, t) | |
}, e.prototype.valueChanged = function(e) { | |
var t = null !== this.params ? this.params.value : void 0; | |
this.service.updateValue(this.element, e, t) | |
}, e.prototype.unbind = function() { | |
this.subscription && this.subscription.dispose() | |
}, e | |
}(), p.inject = [Element, t.I18N, n.EventAggregator, a.LazyOptional.of(g)], d = h)) || d), e.TBindingBehavior = (v = f = function() { | |
function e(e) { | |
this.signalBindingBehavior = e | |
} | |
return e.prototype.bind = function(e, t) { | |
this.signalBindingBehavior.bind(e, t, "aurelia-translation-signal"); | |
var n = e.sourceExpression; | |
if (!n.rewritten) { | |
n.rewritten = !0; | |
var i = n.expression; | |
n.expression = new r.ValueConverter(i, "t", n.args, [i].concat(n.args)) | |
} | |
}, e.prototype.unbind = function(e, t) { | |
this.signalBindingBehavior.unbind(e, t) | |
}, e | |
}(), f.inject = [o.SignalBindingBehavior], v) | |
}), define("aurelia-i18n/utils", ["exports", "aurelia-dependency-injection"], function(e, t) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.LazyOptional = e.assignObjectToKeys = e.extend = void 0; | |
var n, i, o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} : function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol ? "symbol" : typeof e | |
}, | |
r = e.extend = function(e, t) { | |
for (var n in t) e[n] = t[n]; | |
return e | |
}; | |
e.assignObjectToKeys = function e(t, n) { | |
if (void 0 === n || null === n) return n; | |
var i = {}; | |
return Object.keys(n).map(function(a) { | |
"object" === o(n[a]) ? r(i, e(a, n[a])) : i["" !== t ? t + "." + a : a] = n[a] | |
}), i | |
}, e.LazyOptional = (n = (0, t.resolver)(), n(i = function() { | |
function e(e) { | |
this.key = e | |
} | |
return e.prototype.get = function(e) { | |
var t = this; | |
return function() { | |
return e.hasResolver(t.key, !1) ? e.get(t.key) : null | |
} | |
}, e.of = function(t) { | |
return new e(t) | |
}, e | |
}()) || i) | |
}), define("aurelia-i18n/base-i18n", ["exports", "./i18n", "aurelia-event-aggregator"], function(e, t, n) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), e.BaseI18N = void 0; | |
var i, o; | |
e.BaseI18N = (o = i = function() { | |
function e(e, t, n) { | |
var i = this; | |
this.i18n = e, this.element = t, this.__i18nDisposer = n.subscribe("i18n:locale:changed", function() { | |
i.i18n.updateTranslations(i.element) | |
}) | |
} | |
return e.prototype.attached = function() { | |
this.i18n.updateTranslations(this.element) | |
}, e.prototype.detached = function() { | |
this.__i18nDisposer.dispose() | |
}, e | |
}(), i.inject = [t.I18N, Element, n.EventAggregator], o) | |
}), define("aurelia-i18n/aurelia-i18n-loader", ["exports"], function(e) { | |
"use strict"; | |
function t() { | |
return { | |
loadPath: "/locales/{{lng}}/{{ns}}.json", | |
addPath: "locales/add/{{lng}}/{{ns}}", | |
allowMultiLoading: !1, | |
parse: JSON.parse | |
} | |
} | |
function n(e) { | |
return u.call(s.call(arguments, 1), function(t) { | |
if (t) | |
for (var n in t) void 0 === e[n] && (e[n] = t[n]) | |
}), e | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
var i, o, r = e.Backend = (o = i = function() { | |
function e(e) { | |
var t = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1]; | |
this.init(e, t), this.type = "backend" | |
} | |
return e.with = function(e) { | |
return this.loader = e, this | |
}, e.prototype.init = function(e) { | |
var i = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1]; | |
this.services = e, this.options = n(i, this.options || {}, t()) | |
}, e.prototype.readMulti = function(e, t, n) { | |
var i = this.options.loadPath; | |
"function" == typeof this.options.loadPath && (i = this.options.loadPath(e, t)); | |
var o = this.services.interpolator.interpolate(i, { | |
lng: e.join("+"), | |
ns: t.join("+") | |
}); | |
this.loadUrl(o, n) | |
}, e.prototype.read = function(e, t, n) { | |
var i = this.options.loadPath; | |
"function" == typeof this.options.loadPath && (i = this.options.loadPath([e], [t])); | |
var o = this.services.interpolator.interpolate(i, { | |
lng: e, | |
ns: t | |
}); | |
this.loadUrl(o, n) | |
}, e.prototype.loadUrl = function(e, t) { | |
var n = this; | |
this.constructor.loader.loadText(e).then(function(i) { | |
var o = void 0, | |
r = void 0; | |
try { | |
o = n.options.parse(i, e) | |
} catch (t) { | |
r = "failed parsing " + e + " to json" | |
} | |
if (r) return t(r, !1); | |
t(null, o) | |
}, function(n) { | |
return t("failed loading " + e, !1) | |
}) | |
}, e.prototype.create = function(e, t, n, i) {}, e | |
}(), i.loader = null, o); | |
r.type = "backend", e.default = r; | |
var a = [], | |
u = a.forEach, | |
s = a.slice | |
}), define("text!app.html", ["module"], function(e) { | |
e.exports = '<template>\n <require from="./app.css"></require>\n <md-colors md-primary-color="#78909C" md-accent-color="#FF80AB"></md-colors>\n <nav-bar i18n="[title]app-title"></nav-bar>\n\n <div class="todo-list-placeholder valign-wrapper" show.bind="todos.length === 0">\n <h2 class="valign">\n Add a todo by clicking the "plus" in the lower right corner.\n </h2>\n </div>\n <md-collection class="todo-list" show.bind="todos.length > 0">\n <md-collection-item repeat.for="todo of todos">\n <md-checkbox md-checked.bind="todo.done"></md-checkbox>\n <span class="todo-title ${ todo.done ? \'done\' : \'\' }">${todo.title}</span>\n </md-collection-item>\n </md-collection>\n\n <div class="fixed-action-btn" style="bottom: 45px; right: 24px;">\n <a click.delegate="addTodo()" md-button="floating: true; large: true;" md-tooltip="position: left; text: todo.add;" md-waves="color: light; circle: true;">\n <i class="large material-icons">add</i>\n </a>\n </div>\n\n <div md-modal md-modal.ref="addTodoModal">\n <div class="modal-content">\n <h4>Add a todo</h4>\n <form submit.delegate="saveTodo()">\n <div>\n <md-input md-auto-focus md-label="put some text here" md-value.bind="newTodo.title"></md-input>\n </div>\n </form>\n <div>\n <md-checkbox md-checked.bind="keepModalOpen">keep open</md-checkbox>\n </div>\n </div>\n <div class="modal-footer">\n <a click.delegate="saveTodo()" md-button="flat: true;" md-waves="color: primary;" class="modal-action primary-text">Add</a>\n <a md-button="flat: true;" md-waves="color: primary;" class="modal-action modal-close">Cancel</a>\n </div>\n </div>\n</template>\n' | |
}), define("text!app.css", ["module"], function(e) { | |
e.exports = "html {\n height: calc(100% - 64px); }\n\nbody {\n height: 100%; }\n\n.todo-list md-checkbox {\n position: relative;\n top: 7px; }\n\n.todo-list .todo-title.done {\n text-decoration: line-through; }\n\n.todo-list-placeholder {\n color: #b3b3b3;\n height: 100%;\n justify-content: center; }\n" | |
}), define("text!resources/elements/nav-bar.html", ["module"], function(e) { | |
e.exports = '<template>\n <require from="./nav-bar.css"></require>\n <md-navbar>\n <a href="#/" class="brand-logo"><span>${title}</span></a>\n <!--<ul class="hide-on-med-and-down right">\n <li md-waves><a>About</a></li>\n <li md-waves><a>Installation</a></li>\n <li md-waves><a>Project Status</a></li>\n </ul>-->\n </md-navbar>\n</template>\n' | |
}), define("text!resources/elements/nav-bar.css", ["module"], function(e) { | |
e.exports = "nav-bar .nav-wrapper .brand-logo {\n padding-left: 15px; }\n" | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment